OSDN Git Service

* configure.ac (ld_vers): Parse GNU ld version 2.17.50.0.3-6 20060715
[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.60.
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 Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38   echo "#! /bin/sh" >conf$$.sh
39   echo  "exit 0"   >>conf$$.sh
40   chmod +x conf$$.sh
41   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42     PATH_SEPARATOR=';'
43   else
44     PATH_SEPARATOR=:
45   fi
46   rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51   as_unset=unset
52 else
53   as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order.  Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" ""        $as_nl"
65
66 # Find who we are.  Look in the path if we contain no directory separator.
67 case $0 in
68   *[\\/]* ) as_myself=$0 ;;
69   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72   IFS=$as_save_IFS
73   test -z "$as_dir" && as_dir=.
74   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78      ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83   as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87   { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102   LC_TELEPHONE LC_TIME
103 do
104   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105     eval $as_var=C; export $as_var
106   else
107     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108   fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113    test "X`expr 00001 : '.*\(...\)'`" = X001; then
114   as_expr=expr
115 else
116   as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120   as_basename=basename
121 else
122   as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129          X"$0" : 'X\(//\)$' \| \
130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132     sed '/^.*\/\([^/][^/]*\)\/*$/{
133             s//\1/
134             q
135           }
136           /^X\/\(\/\/\)$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\).*/{
141             s//\1/
142             q
143           }
144           s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151   if (eval ":") 2>/dev/null; then
152   as_have_required=yes
153 else
154   as_have_required=no
155 fi
156
157   if test $as_have_required = yes &&     (eval ":
158 (as_func_return () {
159   (exit \$1)
160 }
161 as_func_success () {
162   as_func_return 0
163 }
164 as_func_failure () {
165   as_func_return 1
166 }
167 as_func_ret_success () {
168   return 0
169 }
170 as_func_ret_failure () {
171   return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176   :
177 else
178   exitcode=1
179   echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183   exitcode=1
184   echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188   :
189 else
190   exitcode=1
191   echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195   exitcode=1
196   echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200   :
201 else
202   exitcode=1
203   echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209   as_lineno_1=\$LINENO
210   as_lineno_2=\$LINENO
211   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214   :
215 else
216   as_candidate_shells=
217     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   case $as_dir in
223          /*)
224            for as_base in sh bash ksh sh5; do
225              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226            done;;
227        esac
228 done
229 IFS=$as_save_IFS
230
231
232       for as_shell in $as_candidate_shells $SHELL; do
233          # Try only shells that exist, to save several forks.
234          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235                 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238   emulate sh
239   NULLCMD=:
240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241   # is contrary to our usage.  Disable this feature.
242   alias -g '${1+"$@"}'='"$@"'
243   setopt NO_GLOB_SUBST
244 else
245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253   CONFIG_SHELL=$as_shell
254                as_have_required=yes
255                if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258   emulate sh
259   NULLCMD=:
260   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261   # is contrary to our usage.  Disable this feature.
262   alias -g '${1+"$@"}'='"$@"'
263   setopt NO_GLOB_SUBST
264 else
265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272   (exit $1)
273 }
274 as_func_success () {
275   as_func_return 0
276 }
277 as_func_failure () {
278   as_func_return 1
279 }
280 as_func_ret_success () {
281   return 0
282 }
283 as_func_ret_failure () {
284   return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289   :
290 else
291   exitcode=1
292   echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296   exitcode=1
297   echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301   :
302 else
303   exitcode=1
304   echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308   exitcode=1
309   echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313   :
314 else
315   exitcode=1
316   echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322   as_lineno_1=$LINENO
323   as_lineno_2=$LINENO
324   test "x$as_lineno_1" != "x$as_lineno_2" &&
325   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329   break
330 fi
331
332 fi
333
334       done
335
336       if test "x$CONFIG_SHELL" != x; then
337   for as_var in BASH_ENV ENV
338         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339         done
340         export CONFIG_SHELL
341         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345     if test $as_have_required = no; then
346   echo This script requires a shell more modern than all the
347       echo shells that I found on your system.  Please install a
348       echo modern shell, or manually run the script under such a
349       echo shell if you do have one.
350       { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361   (exit \$1)
362 }
363 as_func_success () {
364   as_func_return 0
365 }
366 as_func_failure () {
367   as_func_return 1
368 }
369 as_func_ret_success () {
370   return 0
371 }
372 as_func_ret_failure () {
373   return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378   :
379 else
380   exitcode=1
381   echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385   exitcode=1
386   echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390   :
391 else
392   exitcode=1
393   echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397   exitcode=1
398   echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402   :
403 else
404   exitcode=1
405   echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409   echo No shell found that supports shell functions.
410   echo Please tell autoconf@gnu.org about your system,
411   echo including any error possibly output before this
412   echo message
413 }
414
415
416
417   as_lineno_1=$LINENO
418   as_lineno_2=$LINENO
419   test "x$as_lineno_1" != "x$as_lineno_2" &&
420   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423   # uniformly replaced by the line number.  The first 'sed' inserts a
424   # line-number line after each line using $LINENO; the second 'sed'
425   # does the real work.  The second script uses 'N' to pair each
426   # line-number line with the line containing $LINENO, and appends
427   # trailing '-' during substitution so that $LINENO is not a special
428   # case at line end.
429   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430   # scripts with optimization help from Paolo Bonzini.  Blame Lee
431   # E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449    { (exit 1); exit 1; }; }
450
451   # Don't try to exec as it changes $[0], causing all sort of problems
452   # (the dirname of $[0] is not the place where we might find the
453   # original and so on.  Autoconf is especially sensitive to this).
454   . "./$as_me.lineno"
455   # Exit status is that of the last command.
456   exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469   case `echo 'x\c'` in
470   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
471   *)   ECHO_C='\c';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478    test "X`expr 00001 : '.*\(...\)'`" = X001; then
479   as_expr=expr
480 else
481   as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493   as_ln_s='ln -s'
494   # ... but there are two gotchas:
495   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497   # In both cases, we have to default to `cp -p'.
498   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499     as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s=ln
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p=:
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523   as_executable_p="test -x"
524 else
525   as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #if HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #if HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #if STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # if HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #if HAVE_STRING_H
583 # if !STDC_HEADERS && HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #if HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #if HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #if HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #if HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='SHELL
602 PATH_SEPARATOR
603 PACKAGE_NAME
604 PACKAGE_TARNAME
605 PACKAGE_VERSION
606 PACKAGE_STRING
607 PACKAGE_BUGREPORT
608 exec_prefix
609 prefix
610 program_transform_name
611 bindir
612 sbindir
613 libexecdir
614 datarootdir
615 datadir
616 sysconfdir
617 sharedstatedir
618 localstatedir
619 includedir
620 oldincludedir
621 docdir
622 infodir
623 htmldir
624 dvidir
625 pdfdir
626 psdir
627 libdir
628 localedir
629 mandir
630 DEFS
631 ECHO_C
632 ECHO_N
633 ECHO_T
634 LIBS
635 build_alias
636 host_alias
637 target_alias
638 build
639 build_cpu
640 build_vendor
641 build_os
642 host
643 host_cpu
644 host_vendor
645 host_os
646 target
647 target_cpu
648 target_vendor
649 target_os
650 target_noncanonical
651 build_libsubdir
652 build_subdir
653 host_subdir
654 target_subdir
655 GENINSRC
656 CC
657 CFLAGS
658 LDFLAGS
659 CPPFLAGS
660 ac_ct_CC
661 EXEEXT
662 OBJEXT
663 NO_MINUS_C_MINUS_O
664 OUTPUT_OPTION
665 CPP
666 GREP
667 EGREP
668 strict1_warn
669 cxx_compat_warn
670 warn_cflags
671 WERROR
672 nocommon_flag
673 TREEBROWSER
674 valgrind_path
675 valgrind_path_defines
676 valgrind_command
677 coverage_flags
678 enable_multilib
679 enable_decimal_float
680 enable_shared
681 TARGET_SYSTEM_ROOT
682 TARGET_SYSTEM_ROOT_DEFINE
683 CROSS_SYSTEM_HEADER_DIR
684 onestep
685 SET_MAKE
686 AWK
687 LN_S
688 LN
689 RANLIB
690 ranlib_flags
691 INSTALL
692 INSTALL_PROGRAM
693 INSTALL_DATA
694 make_compare_target
695 have_mktemp_command
696 MAKEINFO
697 BUILD_INFO
698 GENERATED_MANPAGES
699 FLEX
700 BISON
701 NM
702 AR
703 stage1_cflags
704 COLLECT2_LIBS
705 GNAT_LIBEXC
706 LDEXP_LIB
707 TARGET_GETGROUPS_T
708 LIBICONV
709 LTLIBICONV
710 LIBICONV_DEP
711 manext
712 objext
713 gthread_flags
714 extra_modes_file
715 extra_opt_files
716 USE_NLS
717 LIBINTL
718 LIBINTL_DEP
719 INCINTL
720 XGETTEXT
721 GMSGFMT
722 POSUB
723 CATALOGS
724 DATADIRNAME
725 INSTOBJEXT
726 GENCAT
727 CATOBJEXT
728 host_cc_for_libada
729 CROSS
730 ALL
731 SYSTEM_HEADER_DIR
732 inhibit_libc
733 CC_FOR_BUILD
734 BUILD_CFLAGS
735 STMP_FIXINC
736 STMP_FIXPROTO
737 collect2
738 gcc_cv_as
739 ORIGINAL_AS_FOR_TARGET
740 gcc_cv_ld
741 ORIGINAL_LD_FOR_TARGET
742 gcc_cv_nm
743 ORIGINAL_NM_FOR_TARGET
744 gcc_cv_objdump
745 libgcc_visibility
746 GGC
747 zlibdir
748 zlibinc
749 MAINT
750 gcc_tooldir
751 dollar
752 slibdir
753 objdir
754 subdirs
755 srcdir
756 all_boot_languages
757 all_compilers
758 all_gtfiles
759 all_gtfiles_files_langs
760 all_gtfiles_files_files
761 all_lang_makefrags
762 all_lang_makefiles
763 all_languages
764 all_selected_languages
765 all_stagestuff
766 build_exeext
767 build_install_headers_dir
768 build_xm_file_list
769 build_xm_include_list
770 build_xm_defines
771 check_languages
772 cc_set_by_configure
773 quoted_cc_set_by_configure
774 cpp_install_dir
775 xmake_file
776 tmake_file
777 extra_gcc_objs
778 extra_headers_list
779 extra_objs
780 extra_parts
781 extra_passes
782 extra_programs
783 float_h_file
784 gcc_config_arguments
785 gcc_gxx_include_dir
786 host_exeext
787 host_xm_file_list
788 host_xm_include_list
789 host_xm_defines
790 out_host_hook_obj
791 install
792 lang_opt_files
793 lang_specs_files
794 lang_tree_files
795 local_prefix
796 md_file
797 objc_boehm_gc
798 out_file
799 out_object_file
800 stage_prefix_set_by_configure
801 quoted_stage_prefix_set_by_configure
802 thread_file
803 tm_file_list
804 tm_include_list
805 tm_defines
806 tm_p_file_list
807 tm_p_include_list
808 xm_file_list
809 xm_include_list
810 xm_defines
811 c_target_objs
812 cxx_target_objs
813 target_cpu_default
814 GMPLIBS
815 GMPINC
816 LIBOBJS
817 LTLIBOBJS'
818 ac_subst_files='language_hooks'
819       ac_precious_vars='build_alias
820 host_alias
821 target_alias
822 CC
823 CFLAGS
824 LDFLAGS
825 CPPFLAGS
826 CPP
827 GMPLIBS
828 GMPINC'
829
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
836 cache_file=/dev/null
837 exec_prefix=NONE
838 no_create=
839 no_recursion=
840 prefix=NONE
841 program_prefix=NONE
842 program_suffix=NONE
843 program_transform_name=s,x,x,
844 silent=
845 site=
846 srcdir=
847 verbose=
848 x_includes=NONE
849 x_libraries=NONE
850
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE}'
868 infodir='${datarootdir}/info'
869 htmldir='${docdir}'
870 dvidir='${docdir}'
871 pdfdir='${docdir}'
872 psdir='${docdir}'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
876
877 ac_prev=
878 ac_dashdash=
879 for ac_option
880 do
881   # If the previous option needs an argument, assign it.
882   if test -n "$ac_prev"; then
883     eval $ac_prev=\$ac_option
884     ac_prev=
885     continue
886   fi
887
888   case $ac_option in
889   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890   *)    ac_optarg=yes ;;
891   esac
892
893   # Accept the important Cygnus configure options, so we can diagnose typos.
894
895   case $ac_dashdash$ac_option in
896   --)
897     ac_dashdash=yes ;;
898
899   -bindir | --bindir | --bindi | --bind | --bin | --bi)
900     ac_prev=bindir ;;
901   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902     bindir=$ac_optarg ;;
903
904   -build | --build | --buil | --bui | --bu)
905     ac_prev=build_alias ;;
906   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907     build_alias=$ac_optarg ;;
908
909   -cache-file | --cache-file | --cache-fil | --cache-fi \
910   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911     ac_prev=cache_file ;;
912   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914     cache_file=$ac_optarg ;;
915
916   --config-cache | -C)
917     cache_file=config.cache ;;
918
919   -datadir | --datadir | --datadi | --datad)
920     ac_prev=datadir ;;
921   -datadir=* | --datadir=* | --datadi=* | --datad=*)
922     datadir=$ac_optarg ;;
923
924   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925   | --dataroo | --dataro | --datar)
926     ac_prev=datarootdir ;;
927   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929     datarootdir=$ac_optarg ;;
930
931   -disable-* | --disable-*)
932     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933     # Reject names that are not valid shell variable names.
934     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936    { (exit 1); exit 1; }; }
937     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938     eval enable_$ac_feature=no ;;
939
940   -docdir | --docdir | --docdi | --doc | --do)
941     ac_prev=docdir ;;
942   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943     docdir=$ac_optarg ;;
944
945   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946     ac_prev=dvidir ;;
947   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948     dvidir=$ac_optarg ;;
949
950   -enable-* | --enable-*)
951     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952     # Reject names that are not valid shell variable names.
953     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
954       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955    { (exit 1); exit 1; }; }
956     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
957     eval enable_$ac_feature=\$ac_optarg ;;
958
959   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961   | --exec | --exe | --ex)
962     ac_prev=exec_prefix ;;
963   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965   | --exec=* | --exe=* | --ex=*)
966     exec_prefix=$ac_optarg ;;
967
968   -gas | --gas | --ga | --g)
969     # Obsolete; use --with-gas.
970     with_gas=yes ;;
971
972   -help | --help | --hel | --he | -h)
973     ac_init_help=long ;;
974   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975     ac_init_help=recursive ;;
976   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977     ac_init_help=short ;;
978
979   -host | --host | --hos | --ho)
980     ac_prev=host_alias ;;
981   -host=* | --host=* | --hos=* | --ho=*)
982     host_alias=$ac_optarg ;;
983
984   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985     ac_prev=htmldir ;;
986   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987   | --ht=*)
988     htmldir=$ac_optarg ;;
989
990   -includedir | --includedir | --includedi | --included | --include \
991   | --includ | --inclu | --incl | --inc)
992     ac_prev=includedir ;;
993   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994   | --includ=* | --inclu=* | --incl=* | --inc=*)
995     includedir=$ac_optarg ;;
996
997   -infodir | --infodir | --infodi | --infod | --info | --inf)
998     ac_prev=infodir ;;
999   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000     infodir=$ac_optarg ;;
1001
1002   -libdir | --libdir | --libdi | --libd)
1003     ac_prev=libdir ;;
1004   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005     libdir=$ac_optarg ;;
1006
1007   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008   | --libexe | --libex | --libe)
1009     ac_prev=libexecdir ;;
1010   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011   | --libexe=* | --libex=* | --libe=*)
1012     libexecdir=$ac_optarg ;;
1013
1014   -localedir | --localedir | --localedi | --localed | --locale)
1015     ac_prev=localedir ;;
1016   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017     localedir=$ac_optarg ;;
1018
1019   -localstatedir | --localstatedir | --localstatedi | --localstated \
1020   | --localstate | --localstat | --localsta | --localst | --locals)
1021     ac_prev=localstatedir ;;
1022   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024     localstatedir=$ac_optarg ;;
1025
1026   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027     ac_prev=mandir ;;
1028   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029     mandir=$ac_optarg ;;
1030
1031   -nfp | --nfp | --nf)
1032     # Obsolete; use --without-fp.
1033     with_fp=no ;;
1034
1035   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036   | --no-cr | --no-c | -n)
1037     no_create=yes ;;
1038
1039   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041     no_recursion=yes ;;
1042
1043   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045   | --oldin | --oldi | --old | --ol | --o)
1046     ac_prev=oldincludedir ;;
1047   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050     oldincludedir=$ac_optarg ;;
1051
1052   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053     ac_prev=prefix ;;
1054   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055     prefix=$ac_optarg ;;
1056
1057   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058   | --program-pre | --program-pr | --program-p)
1059     ac_prev=program_prefix ;;
1060   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062     program_prefix=$ac_optarg ;;
1063
1064   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065   | --program-suf | --program-su | --program-s)
1066     ac_prev=program_suffix ;;
1067   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069     program_suffix=$ac_optarg ;;
1070
1071   -program-transform-name | --program-transform-name \
1072   | --program-transform-nam | --program-transform-na \
1073   | --program-transform-n | --program-transform- \
1074   | --program-transform | --program-transfor \
1075   | --program-transfo | --program-transf \
1076   | --program-trans | --program-tran \
1077   | --progr-tra | --program-tr | --program-t)
1078     ac_prev=program_transform_name ;;
1079   -program-transform-name=* | --program-transform-name=* \
1080   | --program-transform-nam=* | --program-transform-na=* \
1081   | --program-transform-n=* | --program-transform-=* \
1082   | --program-transform=* | --program-transfor=* \
1083   | --program-transfo=* | --program-transf=* \
1084   | --program-trans=* | --program-tran=* \
1085   | --progr-tra=* | --program-tr=* | --program-t=*)
1086     program_transform_name=$ac_optarg ;;
1087
1088   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089     ac_prev=pdfdir ;;
1090   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091     pdfdir=$ac_optarg ;;
1092
1093   -psdir | --psdir | --psdi | --psd | --ps)
1094     ac_prev=psdir ;;
1095   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096     psdir=$ac_optarg ;;
1097
1098   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099   | -silent | --silent | --silen | --sile | --sil)
1100     silent=yes ;;
1101
1102   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103     ac_prev=sbindir ;;
1104   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105   | --sbi=* | --sb=*)
1106     sbindir=$ac_optarg ;;
1107
1108   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110   | --sharedst | --shareds | --shared | --share | --shar \
1111   | --sha | --sh)
1112     ac_prev=sharedstatedir ;;
1113   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116   | --sha=* | --sh=*)
1117     sharedstatedir=$ac_optarg ;;
1118
1119   -site | --site | --sit)
1120     ac_prev=site ;;
1121   -site=* | --site=* | --sit=*)
1122     site=$ac_optarg ;;
1123
1124   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125     ac_prev=srcdir ;;
1126   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127     srcdir=$ac_optarg ;;
1128
1129   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130   | --syscon | --sysco | --sysc | --sys | --sy)
1131     ac_prev=sysconfdir ;;
1132   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134     sysconfdir=$ac_optarg ;;
1135
1136   -target | --target | --targe | --targ | --tar | --ta | --t)
1137     ac_prev=target_alias ;;
1138   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139     target_alias=$ac_optarg ;;
1140
1141   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142     verbose=yes ;;
1143
1144   -version | --version | --versio | --versi | --vers | -V)
1145     ac_init_version=: ;;
1146
1147   -with-* | --with-*)
1148     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151       { echo "$as_me: error: invalid package name: $ac_package" >&2
1152    { (exit 1); exit 1; }; }
1153     ac_package=`echo $ac_package| sed 's/-/_/g'`
1154     eval with_$ac_package=\$ac_optarg ;;
1155
1156   -without-* | --without-*)
1157     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158     # Reject names that are not valid shell variable names.
1159     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1160       { echo "$as_me: error: invalid package name: $ac_package" >&2
1161    { (exit 1); exit 1; }; }
1162     ac_package=`echo $ac_package | sed 's/-/_/g'`
1163     eval with_$ac_package=no ;;
1164
1165   --x)
1166     # Obsolete; use --with-x.
1167     with_x=yes ;;
1168
1169   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170   | --x-incl | --x-inc | --x-in | --x-i)
1171     ac_prev=x_includes ;;
1172   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174     x_includes=$ac_optarg ;;
1175
1176   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178     ac_prev=x_libraries ;;
1179   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181     x_libraries=$ac_optarg ;;
1182
1183   -*) { echo "$as_me: error: unrecognized option: $ac_option
1184 Try \`$0 --help' for more information." >&2
1185    { (exit 1); exit 1; }; }
1186     ;;
1187
1188   *=*)
1189     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190     # Reject names that are not valid shell variable names.
1191     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1192       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193    { (exit 1); exit 1; }; }
1194     eval $ac_envvar=\$ac_optarg
1195     export $ac_envvar ;;
1196
1197   *)
1198     # FIXME: should be removed in autoconf 3.0.
1199     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1203     ;;
1204
1205   esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210   { echo "$as_me: error: missing argument to $ac_option" >&2
1211    { (exit 1); exit 1; }; }
1212 fi
1213
1214 # Be sure to have absolute directory names.
1215 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216                 datadir sysconfdir sharedstatedir localstatedir includedir \
1217                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218                 libdir localedir mandir
1219 do
1220   eval ac_val=\$$ac_var
1221   case $ac_val in
1222     [\\/$]* | ?:[\\/]* )  continue;;
1223     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224   esac
1225   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226    { (exit 1); exit 1; }; }
1227 done
1228
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1235
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238   if test "x$build_alias" = x; then
1239     cross_compiling=maybe
1240     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241     If a cross compiler is detected then cross compile mode will be used." >&2
1242   elif test "x$build_alias" != "x$host_alias"; then
1243     cross_compiling=yes
1244   fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256   { echo "$as_me: error: Working directory cannot be determined" >&2
1257    { (exit 1); exit 1; }; }
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259   { echo "$as_me: error: pwd does not report name of working directory" >&2
1260    { (exit 1); exit 1; }; }
1261
1262
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265   ac_srcdir_defaulted=yes
1266   # Try the directory containing this script, then the parent directory.
1267   ac_confdir=`$as_dirname -- "$0" ||
1268 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269          X"$0" : 'X\(//\)[^/]' \| \
1270          X"$0" : 'X\(//\)$' \| \
1271          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1272 echo X"$0" |
1273     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274             s//\1/
1275             q
1276           }
1277           /^X\(\/\/\)[^/].*/{
1278             s//\1/
1279             q
1280           }
1281           /^X\(\/\/\)$/{
1282             s//\1/
1283             q
1284           }
1285           /^X\(\/\).*/{
1286             s//\1/
1287             q
1288           }
1289           s/.*/./; q'`
1290   srcdir=$ac_confdir
1291   if test ! -r "$srcdir/$ac_unique_file"; then
1292     srcdir=..
1293   fi
1294 else
1295   ac_srcdir_defaulted=no
1296 fi
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300    { (exit 1); exit 1; }; }
1301 fi
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305    { (exit 1); exit 1; }; }
1306         pwd)`
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309   srcdir=.
1310 fi
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1314 case $srcdir in
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 esac
1317 for ac_var in $ac_precious_vars; do
1318   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319   eval ac_env_${ac_var}_value=\$${ac_var}
1320   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 done
1323
1324 #
1325 # Report the --help message.
1326 #
1327 if test "$ac_init_help" = "long"; then
1328   # Omit some internal or obsolete options to make the list less imposing.
1329   # This message is too long to be a string in the A/UX 3.1 sh.
1330   cat <<_ACEOF
1331 \`configure' configures this package to adapt to many kinds of systems.
1332
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE.  See below for descriptions of some of the useful variables.
1337
1338 Defaults for the options are specified in brackets.
1339
1340 Configuration:
1341   -h, --help              display this help and exit
1342       --help=short        display options specific to this package
1343       --help=recursive    display the short help of all the included packages
1344   -V, --version           display version information and exit
1345   -q, --quiet, --silent   do not print \`checking...' messages
1346       --cache-file=FILE   cache test results in FILE [disabled]
1347   -C, --config-cache      alias for \`--cache-file=config.cache'
1348   -n, --no-create         do not create output files
1349       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1350
1351 Installation directories:
1352   --prefix=PREFIX         install architecture-independent files in PREFIX
1353                           [$ac_default_prefix]
1354   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1355                           [PREFIX]
1356
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1361
1362 For better control, use the options below.
1363
1364 Fine tuning of the installation directories:
1365   --bindir=DIR           user executables [EPREFIX/bin]
1366   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1367   --libexecdir=DIR       program executables [EPREFIX/libexec]
1368   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1369   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1370   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1371   --libdir=DIR           object code libraries [EPREFIX/lib]
1372   --includedir=DIR       C header files [PREFIX/include]
1373   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1374   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1375   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1376   --infodir=DIR          info documentation [DATAROOTDIR/info]
1377   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1378   --mandir=DIR           man documentation [DATAROOTDIR/man]
1379   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1380   --htmldir=DIR          html documentation [DOCDIR]
1381   --dvidir=DIR           dvi documentation [DOCDIR]
1382   --pdfdir=DIR           pdf documentation [DOCDIR]
1383   --psdir=DIR            ps documentation [DOCDIR]
1384 _ACEOF
1385
1386   cat <<\_ACEOF
1387
1388 Program names:
1389   --program-prefix=PREFIX            prepend PREFIX to installed program names
1390   --program-suffix=SUFFIX            append SUFFIX to installed program names
1391   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1392
1393 System types:
1394   --build=BUILD     configure for building on BUILD [guessed]
1395   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396   --target=TARGET   configure for building compilers for TARGET [HOST]
1397 _ACEOF
1398 fi
1399
1400 if test -n "$ac_init_help"; then
1401
1402   cat <<\_ACEOF
1403
1404 Optional Features:
1405   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407   --enable-generated-files-in-srcdir
1408                           put copies of generated files in source dir
1409                           intended for creating source tarballs for users
1410                           without texinfo bison or flex.
1411   --enable-werror-always         enable -Werror always
1412   --enable-werror         enable -Werror in bootstrap stage2 and later
1413   --enable-checking=LIST
1414                           enable expensive run-time checks.  With LIST,
1415                           enable only specific categories of checks.
1416                           Categories are: yes,no,all,none,release.
1417                           Flags are: assert,fold,gc,gcac,misc,
1418                           rtlflag,rtl,runtime,tree,valgrind.
1419   --enable-mapped-location   location_t is fileline integer cookie
1420   --enable-coverage=LEVEL
1421                           enable compiler's code coverage collection.
1422                           Use to measure compiler performance and locate
1423                           unused parts of the compiler. With LEVEL, specify
1424                           optimization. Values are opt, noopt,
1425                           default is noopt
1426   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1427   --enable-multilib       enable library support for multiple ABIs
1428   --enable-__cxa_atexit   enable __cxa_atexit for C++
1429   --enable-decimal-float  enable decimal float extension to C
1430   --enable-threads        enable thread usage for target GCC
1431   --enable-threads=LIB    use LIB thread package for target GCC
1432   --enable-tls            enable or disable generation of tls code
1433                           overriding the assembler check for tls support
1434   --enable-objc-gc        enable the use of Boehm's garbage collector with
1435                           the GNU Objective-C runtime
1436   --disable-shared        don't provide a shared libgcc
1437   --enable-intermodule    build the compiler in one step
1438   --enable-languages=LIST specify which front-ends to build
1439   --disable-rpath         do not hardcode runtime library paths
1440   --enable-initfini-array       use .init_array/.fini_array sections
1441   --enable-sjlj-exceptions
1442                           arrange to use setjmp/longjmp exception handling
1443   --enable-secureplt      enable -msecure-plt by default for PowerPC
1444   --disable-win32-registry
1445                           disable lookup of installation paths in the
1446                           Registry on Windows hosts
1447   --enable-win32-registry enable registry lookup (default)
1448   --enable-win32-registry=KEY
1449                           use KEY instead of GCC version as the last portion
1450                           of the registry key
1451   --enable-maintainer-mode
1452                           enable make rules and dependencies not useful
1453                           (and sometimes confusing) to the casual installer
1454   --enable-version-specific-runtime-libs
1455                           specify that runtime libraries should be
1456                           installed in a compiler-specific directory
1457
1458 Optional Packages:
1459   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1460   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1461   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1462   --with-local-prefix=DIR specifies directory to put local include
1463   --with-gxx-include-dir=DIR
1464                           specifies directory to put g++ header files
1465   --with-cpp-install-dir=DIR
1466                           install the user visible C preprocessor in DIR
1467                           (relative to PREFIX) as well as PREFIX/bin
1468   --with-gnu-ld           arrange to work with GNU ld.
1469   --with-ld               arrange to use the specified ld (full pathname)
1470   --with-demangler-in-ld  try to use demangler in GNU ld.
1471   --with-gnu-as           arrange to work with GNU as
1472   --with-as               arrange to use the specified as (full pathname)
1473   --with-stabs            arrange to use stabs instead of host debug format
1474   --with-dwarf2           force the default debug format to be DWARF 2
1475   --with-build-sysroot=sysroot
1476                           use sysroot as the system root during the build
1477   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1478   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1479   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1480   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1481   --with-system-libunwind use installed libunwind
1482   --with-long-double-128  Use 128-bit long double by default.
1483   --with-gc={page,zone}   choose the garbage collection mechanism to use
1484                           with the compiler
1485   --with-system-zlib      use installed libz
1486   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1487   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
1488   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
1489   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
1490
1491 Some influential environment variables:
1492   CC          C compiler command
1493   CFLAGS      C compiler flags
1494   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1495               nonstandard directory <lib dir>
1496   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1497               you have headers in a nonstandard directory <include dir>
1498   CPP         C preprocessor
1499   GMPLIBS     How to link GMP
1500   GMPINC      How to find GMP include files
1501
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1504
1505 _ACEOF
1506 ac_status=$?
1507 fi
1508
1509 if test "$ac_init_help" = "recursive"; then
1510   # If there are subdirs, report their specific --help.
1511   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512     test -d "$ac_dir" || continue
1513     ac_builddir=.
1514
1515 case "$ac_dir" in
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *)
1518   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1519   # A ".." for each directory in $ac_dir_suffix.
1520   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1521   case $ac_top_builddir_sub in
1522   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524   esac ;;
1525 esac
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1530
1531 case $srcdir in
1532   .)  # We are building in place.
1533     ac_srcdir=.
1534     ac_top_srcdir=$ac_top_builddir_sub
1535     ac_abs_top_srcdir=$ac_pwd ;;
1536   [\\/]* | ?:[\\/]* )  # Absolute name.
1537     ac_srcdir=$srcdir$ac_dir_suffix;
1538     ac_top_srcdir=$srcdir
1539     ac_abs_top_srcdir=$srcdir ;;
1540   *) # Relative name.
1541     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542     ac_top_srcdir=$ac_top_build_prefix$srcdir
1543     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 esac
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546
1547     cd "$ac_dir" || { ac_status=$?; continue; }
1548     # Check for guested configure.
1549     if test -f "$ac_srcdir/configure.gnu"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552     elif test -f "$ac_srcdir/configure"; then
1553       echo &&
1554       $SHELL "$ac_srcdir/configure" --help=recursive
1555     else
1556       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557     fi || ac_status=$?
1558     cd "$ac_pwd" || { ac_status=$?; break; }
1559   done
1560 fi
1561
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1564   cat <<\_ACEOF
1565 configure
1566 generated by GNU Autoconf 2.60
1567
1568 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1569 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1572 _ACEOF
1573   exit
1574 fi
1575 cat >config.log <<_ACEOF
1576 This file contains any messages produced by compilers while
1577 running configure, to aid debugging if configure makes a mistake.
1578
1579 It was created by $as_me, which was
1580 generated by GNU Autoconf 2.60.  Invocation command line was
1581
1582   $ $0 $@
1583
1584 _ACEOF
1585 exec 5>>config.log
1586 {
1587 cat <<_ASUNAME
1588 ## --------- ##
1589 ## Platform. ##
1590 ## --------- ##
1591
1592 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1593 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1594 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1595 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1596 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1597
1598 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1599 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1600
1601 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1602 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1603 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1604 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1605 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1606 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1607 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1608
1609 _ASUNAME
1610
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1613 do
1614   IFS=$as_save_IFS
1615   test -z "$as_dir" && as_dir=.
1616   echo "PATH: $as_dir"
1617 done
1618 IFS=$as_save_IFS
1619
1620 } >&5
1621
1622 cat >&5 <<_ACEOF
1623
1624
1625 ## ----------- ##
1626 ## Core tests. ##
1627 ## ----------- ##
1628
1629 _ACEOF
1630
1631
1632 # Keep a trace of the command line.
1633 # Strip out --no-create and --no-recursion so they do not pile up.
1634 # Strip out --silent because we don't want to record it for future runs.
1635 # Also quote any args containing shell meta-characters.
1636 # Make two passes to allow for proper duplicate-argument suppression.
1637 ac_configure_args=
1638 ac_configure_args0=
1639 ac_configure_args1=
1640 ac_must_keep_next=false
1641 for ac_pass in 1 2
1642 do
1643   for ac_arg
1644   do
1645     case $ac_arg in
1646     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1647     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1648     | -silent | --silent | --silen | --sile | --sil)
1649       continue ;;
1650     *\'*)
1651       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1652     esac
1653     case $ac_pass in
1654     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1655     2)
1656       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1657       if test $ac_must_keep_next = true; then
1658         ac_must_keep_next=false # Got value, back to normal.
1659       else
1660         case $ac_arg in
1661           *=* | --config-cache | -C | -disable-* | --disable-* \
1662           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1663           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1664           | -with-* | --with-* | -without-* | --without-* | --x)
1665             case "$ac_configure_args0 " in
1666               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1667             esac
1668             ;;
1669           -* ) ac_must_keep_next=true ;;
1670         esac
1671       fi
1672       ac_configure_args="$ac_configure_args '$ac_arg'"
1673       ;;
1674     esac
1675   done
1676 done
1677 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1678 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1679
1680 # When interrupted or exit'd, cleanup temporary files, and complete
1681 # config.log.  We remove comments because anyway the quotes in there
1682 # would cause problems or look ugly.
1683 # WARNING: Use '\'' to represent an apostrophe within the trap.
1684 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1685 trap 'exit_status=$?
1686   # Save into config.log some information that might help in debugging.
1687   {
1688     echo
1689
1690     cat <<\_ASBOX
1691 ## ---------------- ##
1692 ## Cache variables. ##
1693 ## ---------------- ##
1694 _ASBOX
1695     echo
1696     # The following way of writing the cache mishandles newlines in values,
1697 (
1698   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1699     eval ac_val=\$$ac_var
1700     case $ac_val in #(
1701     *${as_nl}*)
1702       case $ac_var in #(
1703       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1704 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1705       esac
1706       case $ac_var in #(
1707       _ | IFS | as_nl) ;; #(
1708       *) $as_unset $ac_var ;;
1709       esac ;;
1710     esac
1711   done
1712   (set) 2>&1 |
1713     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1714     *${as_nl}ac_space=\ *)
1715       sed -n \
1716         "s/'\''/'\''\\\\'\'''\''/g;
1717           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1718       ;; #(
1719     *)
1720       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721       ;;
1722     esac |
1723     sort
1724 )
1725     echo
1726
1727     cat <<\_ASBOX
1728 ## ----------------- ##
1729 ## Output variables. ##
1730 ## ----------------- ##
1731 _ASBOX
1732     echo
1733     for ac_var in $ac_subst_vars
1734     do
1735       eval ac_val=\$$ac_var
1736       case $ac_val in
1737       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738       esac
1739       echo "$ac_var='\''$ac_val'\''"
1740     done | sort
1741     echo
1742
1743     if test -n "$ac_subst_files"; then
1744       cat <<\_ASBOX
1745 ## ------------------- ##
1746 ## File substitutions. ##
1747 ## ------------------- ##
1748 _ASBOX
1749       echo
1750       for ac_var in $ac_subst_files
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     fi
1760
1761     if test -s confdefs.h; then
1762       cat <<\_ASBOX
1763 ## ----------- ##
1764 ## confdefs.h. ##
1765 ## ----------- ##
1766 _ASBOX
1767       echo
1768       cat confdefs.h
1769       echo
1770     fi
1771     test "$ac_signal" != 0 &&
1772       echo "$as_me: caught signal $ac_signal"
1773     echo "$as_me: exit $exit_status"
1774   } >&5
1775   rm -f core *.core core.conftest.* &&
1776     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1777     exit $exit_status
1778 ' 0
1779 for ac_signal in 1 2 13 15; do
1780   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1781 done
1782 ac_signal=0
1783
1784 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1785 rm -f -r conftest* confdefs.h
1786
1787 # Predefined preprocessor variables.
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_NAME "$PACKAGE_NAME"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_STRING "$PACKAGE_STRING"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1811 _ACEOF
1812
1813
1814 # Let the site file select an alternate cache file if it wants to.
1815 # Prefer explicitly selected file to automatically selected ones.
1816 if test -n "$CONFIG_SITE"; then
1817   set x "$CONFIG_SITE"
1818 elif test "x$prefix" != xNONE; then
1819   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1820 else
1821   set x "$ac_default_prefix/share/config.site" \
1822         "$ac_default_prefix/etc/config.site"
1823 fi
1824 shift
1825 for ac_site_file
1826 do
1827   if test -r "$ac_site_file"; then
1828     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1829 echo "$as_me: loading site script $ac_site_file" >&6;}
1830     sed 's/^/| /' "$ac_site_file" >&5
1831     . "$ac_site_file"
1832   fi
1833 done
1834
1835 if test -r "$cache_file"; then
1836   # Some versions of bash will fail to source /dev/null (special
1837   # files actually), so we avoid doing that.
1838   if test -f "$cache_file"; then
1839     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1840 echo "$as_me: loading cache $cache_file" >&6;}
1841     case $cache_file in
1842       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1843       *)                      . "./$cache_file";;
1844     esac
1845   fi
1846 else
1847   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1848 echo "$as_me: creating cache $cache_file" >&6;}
1849   >$cache_file
1850 fi
1851
1852 # Check that the precious variables saved in the cache have kept the same
1853 # value.
1854 ac_cache_corrupted=false
1855 for ac_var in $ac_precious_vars; do
1856   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1857   eval ac_new_set=\$ac_env_${ac_var}_set
1858   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1859   eval ac_new_val=\$ac_env_${ac_var}_value
1860   case $ac_old_set,$ac_new_set in
1861     set,)
1862       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1863 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1864       ac_cache_corrupted=: ;;
1865     ,set)
1866       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1868       ac_cache_corrupted=: ;;
1869     ,);;
1870     *)
1871       if test "x$ac_old_val" != "x$ac_new_val"; then
1872         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1873 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1874         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1875 echo "$as_me:   former value:  $ac_old_val" >&2;}
1876         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1877 echo "$as_me:   current value: $ac_new_val" >&2;}
1878         ac_cache_corrupted=:
1879       fi;;
1880   esac
1881   # Pass precious variables to config.status.
1882   if test "$ac_new_set" = set; then
1883     case $ac_new_val in
1884     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1885     *) ac_arg=$ac_var=$ac_new_val ;;
1886     esac
1887     case " $ac_configure_args " in
1888       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1889       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1890     esac
1891   fi
1892 done
1893 if $ac_cache_corrupted; then
1894   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1895 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1896   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1897 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1898    { (exit 1); exit 1; }; }
1899 fi
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917 ac_ext=c
1918 ac_cpp='$CPP $CPPFLAGS'
1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1922
1923
1924
1925 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1926
1927
1928 gcc_version=`cat $srcdir/BASE-VER`
1929
1930 # Determine the host, build, and target systems
1931 ac_aux_dir=
1932 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933   if test -f "$ac_dir/install-sh"; then
1934     ac_aux_dir=$ac_dir
1935     ac_install_sh="$ac_aux_dir/install-sh -c"
1936     break
1937   elif test -f "$ac_dir/install.sh"; then
1938     ac_aux_dir=$ac_dir
1939     ac_install_sh="$ac_aux_dir/install.sh -c"
1940     break
1941   elif test -f "$ac_dir/shtool"; then
1942     ac_aux_dir=$ac_dir
1943     ac_install_sh="$ac_aux_dir/shtool install -c"
1944     break
1945   fi
1946 done
1947 if test -z "$ac_aux_dir"; then
1948   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1950    { (exit 1); exit 1; }; }
1951 fi
1952
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1960
1961
1962 # Make sure we can run config.sub.
1963 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1964   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1965 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1966    { (exit 1); exit 1; }; }
1967
1968 { echo "$as_me:$LINENO: checking build system type" >&5
1969 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1970 if test "${ac_cv_build+set}" = set; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   ac_build_alias=$build_alias
1974 test "x$ac_build_alias" = x &&
1975   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1976 test "x$ac_build_alias" = x &&
1977   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1978 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1979    { (exit 1); exit 1; }; }
1980 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1981   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1982 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1983    { (exit 1); exit 1; }; }
1984
1985 fi
1986 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1987 echo "${ECHO_T}$ac_cv_build" >&6; }
1988 case $ac_cv_build in
1989 *-*-*) ;;
1990 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1991 echo "$as_me: error: invalid value of canonical build" >&2;}
1992    { (exit 1); exit 1; }; };;
1993 esac
1994 build=$ac_cv_build
1995 ac_save_IFS=$IFS; IFS='-'
1996 set x $ac_cv_build
1997 shift
1998 build_cpu=$1
1999 build_vendor=$2
2000 shift; shift
2001 # Remember, the first character of IFS is used to create $*,
2002 # except with old shells:
2003 build_os=$*
2004 IFS=$ac_save_IFS
2005 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2006
2007
2008 { echo "$as_me:$LINENO: checking host system type" >&5
2009 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2010 if test "${ac_cv_host+set}" = set; then
2011   echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013   if test "x$host_alias" = x; then
2014   ac_cv_host=$ac_cv_build
2015 else
2016   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2017     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2018 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2019    { (exit 1); exit 1; }; }
2020 fi
2021
2022 fi
2023 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2024 echo "${ECHO_T}$ac_cv_host" >&6; }
2025 case $ac_cv_host in
2026 *-*-*) ;;
2027 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2028 echo "$as_me: error: invalid value of canonical host" >&2;}
2029    { (exit 1); exit 1; }; };;
2030 esac
2031 host=$ac_cv_host
2032 ac_save_IFS=$IFS; IFS='-'
2033 set x $ac_cv_host
2034 shift
2035 host_cpu=$1
2036 host_vendor=$2
2037 shift; shift
2038 # Remember, the first character of IFS is used to create $*,
2039 # except with old shells:
2040 host_os=$*
2041 IFS=$ac_save_IFS
2042 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2043
2044
2045 { echo "$as_me:$LINENO: checking target system type" >&5
2046 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2047 if test "${ac_cv_target+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   if test "x$target_alias" = x; then
2051   ac_cv_target=$ac_cv_host
2052 else
2053   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2054     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2055 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2056    { (exit 1); exit 1; }; }
2057 fi
2058
2059 fi
2060 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2061 echo "${ECHO_T}$ac_cv_target" >&6; }
2062 case $ac_cv_target in
2063 *-*-*) ;;
2064 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2065 echo "$as_me: error: invalid value of canonical target" >&2;}
2066    { (exit 1); exit 1; }; };;
2067 esac
2068 target=$ac_cv_target
2069 ac_save_IFS=$IFS; IFS='-'
2070 set x $ac_cv_target
2071 shift
2072 target_cpu=$1
2073 target_vendor=$2
2074 shift; shift
2075 # Remember, the first character of IFS is used to create $*,
2076 # except with old shells:
2077 target_os=$*
2078 IFS=$ac_save_IFS
2079 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2080
2081
2082 # The aliases save the names the user supplied, while $host etc.
2083 # will get canonicalized.
2084 test -n "$target_alias" &&
2085   test "$program_prefix$program_suffix$program_transform_name" = \
2086     NONENONEs,x,x, &&
2087   program_prefix=${target_alias}-
2088
2089 # Determine the noncanonical target name, for directory use.
2090  case ${build_alias} in
2091   "") build_noncanonical=${build} ;;
2092   *) build_noncanonical=${build_alias} ;;
2093 esac
2094
2095  case ${host_alias} in
2096   "") host_noncanonical=${build_noncanonical} ;;
2097   *) host_noncanonical=${host_alias} ;;
2098 esac
2099
2100  case ${target_alias} in
2101   "") target_noncanonical=${host_noncanonical} ;;
2102   *) target_noncanonical=${target_alias} ;;
2103 esac
2104
2105
2106
2107
2108 # Determine the target- and build-specific subdirectories
2109
2110 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2111 # have matching libraries, they should use host libraries: Makefile.tpl
2112 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2113 # However, they still use the build modules, because the corresponding
2114 # host modules (e.g. bison) are only built for the host when bootstrap
2115 # finishes. So:
2116 # - build_subdir is where we find build modules, and never changes.
2117 # - build_libsubdir is where we find build libraries, and can be overridden.
2118
2119 # Prefix 'build-' so this never conflicts with target_subdir.
2120 build_subdir="build-${build_noncanonical}"
2121
2122 # Check whether --with-build-libsubdir was given.
2123 if test "${with_build_libsubdir+set}" = set; then
2124   withval=$with_build_libsubdir; build_libsubdir="$withval"
2125 else
2126   build_libsubdir="$build_subdir"
2127 fi
2128
2129 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2130 if ( test $srcdir = . && test -d gcc ) \
2131    || test -d $srcdir/../host-${host_noncanonical}; then
2132   host_subdir="host-${host_noncanonical}"
2133 else
2134   host_subdir=.
2135 fi
2136 # No prefix.
2137 target_subdir=${target_noncanonical}
2138
2139
2140 # Set program_transform_name
2141 test "$program_prefix" != NONE &&
2142   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2143 # Use a double $ so make ignores it.
2144 test "$program_suffix" != NONE &&
2145   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2146 # Double any \ or $.  echo might interpret backslashes.
2147 # By default was `s,x,x', remove it if useless.
2148 cat <<\_ACEOF >conftest.sed
2149 s/[\\$]/&&/g;s/;s,x,x,$//
2150 _ACEOF
2151 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2152 rm -f conftest.sed
2153
2154
2155 # Check for bogus environment variables.
2156 # Test if LIBRARY_PATH contains the notation for the current directory
2157 # since this would lead to problems installing/building glibc.
2158 # LIBRARY_PATH contains the current directory if one of the following
2159 # is true:
2160 # - one of the terminals (":" and ";") is the first or last sign
2161 # - two terminals occur directly after each other
2162 # - the path contains an element with a dot in it
2163 { echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
2164 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6; }
2165 case ${LIBRARY_PATH} in
2166   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2167     library_path_setting="contains current directory"
2168     ;;
2169   *)
2170     library_path_setting="ok"
2171     ;;
2172 esac
2173 { echo "$as_me:$LINENO: result: $library_path_setting" >&5
2174 echo "${ECHO_T}$library_path_setting" >&6; }
2175 if test "$library_path_setting" != "ok"; then
2176 { { echo "$as_me:$LINENO: error:
2177 *** LIBRARY_PATH shouldn't contain the current directory when
2178 *** building gcc. Please change the environment variable
2179 *** and run configure again." >&5
2180 echo "$as_me: error:
2181 *** LIBRARY_PATH shouldn't contain the current directory when
2182 *** building gcc. Please change the environment variable
2183 *** and run configure again." >&2;}
2184    { (exit 1); exit 1; }; }
2185 fi
2186
2187 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
2188 # since this would lead to problems installing/building glibc.
2189 # GCC_EXEC_PREFIX contains the current directory if one of the following
2190 # is true:
2191 # - one of the terminals (":" and ";") is the first or last sign
2192 # - two terminals occur directly after each other
2193 # - the path contains an element with a dot in it
2194 { echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
2195 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6; }
2196 case ${GCC_EXEC_PREFIX} in
2197   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2198     gcc_exec_prefix_setting="contains current directory"
2199     ;;
2200   *)
2201     gcc_exec_prefix_setting="ok"
2202     ;;
2203 esac
2204 { echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
2205 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6; }
2206 if test "$gcc_exec_prefix_setting" != "ok"; then
2207 { { echo "$as_me:$LINENO: error:
2208 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2209 *** building gcc. Please change the environment variable
2210 *** and run configure again." >&5
2211 echo "$as_me: error:
2212 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
2213 *** building gcc. Please change the environment variable
2214 *** and run configure again." >&2;}
2215    { (exit 1); exit 1; }; }
2216 fi
2217
2218 # -----------
2219 # Directories
2220 # -----------
2221
2222 # Specify the local prefix
2223 local_prefix=
2224
2225 # Check whether --with-local-prefix was given.
2226 if test "${with_local_prefix+set}" = set; then
2227   withval=$with_local_prefix; case "${withval}" in
2228 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
2229 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
2230    { (exit 1); exit 1; }; } ;;
2231 no)     ;;
2232 *)      local_prefix=$with_local_prefix ;;
2233 esac
2234 fi
2235
2236
2237 # Default local prefix if it is empty
2238 if test x$local_prefix = x; then
2239         local_prefix=/usr/local
2240 fi
2241
2242 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
2243 # passed in by the toplevel make and thus we'd get different behavior
2244 # depending on where we built the sources.
2245 gcc_gxx_include_dir=
2246 # Specify the g++ header file directory
2247
2248 # Check whether --with-gxx-include-dir was given.
2249 if test "${with_gxx_include_dir+set}" = set; then
2250   withval=$with_gxx_include_dir; case "${withval}" in
2251 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
2252 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
2253    { (exit 1); exit 1; }; } ;;
2254 no)     ;;
2255 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
2256 esac
2257 fi
2258
2259
2260 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
2261 if test x${gcc_gxx_include_dir} = x; then
2262   if test x${enable_version_specific_runtime_libs} = xyes; then
2263     gcc_gxx_include_dir='${libsubdir}/include/c++'
2264   else
2265     libstdcxx_incdir='include/c++/$(version)'
2266     if test x$host != x$target; then
2267        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
2268     fi
2269     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
2270   fi
2271 fi
2272
2273
2274 # Check whether --with-cpp_install_dir was given.
2275 if test "${with_cpp_install_dir+set}" = set; then
2276   withval=$with_cpp_install_dir; if test x$withval = xyes; then
2277   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
2278 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
2279    { (exit 1); exit 1; }; }
2280 elif test x$withval != xno; then
2281   cpp_install_dir=$withval
2282 fi
2283 fi
2284
2285
2286 # We would like to our source tree to be readonly.  However when releases or
2287 # pre-releases are generated, the flex/bison generated files as well as the
2288 # various formats of manuals need to be included along with the rest of the
2289 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
2290 # just that.
2291
2292 { echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
2293 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6; }
2294     # Check whether --enable-generated-files-in-srcdir was given.
2295 if test "${enable_generated_files_in_srcdir+set}" = set; then
2296   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
2297 else
2298   generated_files_in_srcdir=no
2299 fi
2300
2301
2302 { echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
2303 echo "${ECHO_T}$generated_files_in_srcdir" >&6; }
2304
2305 if test "$generated_files_in_srcdir" = "yes"; then
2306   GENINSRC=''
2307 else
2308   GENINSRC='#'
2309 fi
2310
2311
2312 # -------------------
2313 # Find default linker
2314 # -------------------
2315
2316 # With GNU ld
2317
2318 # Check whether --with-gnu-ld was given.
2319 if test "${with_gnu_ld+set}" = set; then
2320   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
2321 else
2322   gnu_ld_flag=no
2323 fi
2324
2325
2326 # With pre-defined ld
2327
2328 # Check whether --with-ld was given.
2329 if test "${with_ld+set}" = set; then
2330   withval=$with_ld; DEFAULT_LINKER="$with_ld"
2331 fi
2332
2333 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2334   if test ! -x "$DEFAULT_LINKER"; then
2335     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
2336 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
2337    { (exit 1); exit 1; }; }
2338   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2339     gnu_ld_flag=yes
2340   fi
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define DEFAULT_LINKER "$DEFAULT_LINKER"
2344 _ACEOF
2345
2346 fi
2347
2348 { echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
2349 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6; }
2350 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2351   if test x"$gnu_ld_flag" = x"no"; then
2352     { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
2353 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6; }
2354   else
2355     { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
2356 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6; }
2357   fi
2358 else
2359   { echo "$as_me:$LINENO: result: no" >&5
2360 echo "${ECHO_T}no" >&6; }
2361 fi
2362
2363 # With demangler in GNU ld
2364
2365 # Check whether --with-demangler-in-ld was given.
2366 if test "${with_demangler_in_ld+set}" = set; then
2367   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
2368 else
2369   demangler_in_ld=no
2370 fi
2371
2372
2373 # ----------------------
2374 # Find default assembler
2375 # ----------------------
2376
2377 # With GNU as
2378
2379 # Check whether --with-gnu-as was given.
2380 if test "${with_gnu_as+set}" = set; then
2381   withval=$with_gnu_as; gas_flag="$with_gnu_as"
2382 else
2383   gas_flag=no
2384 fi
2385
2386
2387
2388 # Check whether --with-as was given.
2389 if test "${with_as+set}" = set; then
2390   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
2391 fi
2392
2393 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2394   if test ! -x "$DEFAULT_ASSEMBLER"; then
2395     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2396 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2397    { (exit 1); exit 1; }; }
2398   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2399     gas_flag=yes
2400   fi
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2404 _ACEOF
2405
2406 fi
2407
2408 { echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2409 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6; }
2410 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2411   if test x"$gas_flag" = x"no"; then
2412     { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2413 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6; }
2414   else
2415     { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2416 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
2417   fi
2418 else
2419   { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2421 fi
2422
2423 # ---------------
2424 # Find C compiler
2425 # ---------------
2426
2427 # If a non-executable a.out is present (e.g. created by GNU as above even if
2428 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2429 # file, even when creating an executable, so an execution test fails.
2430 # Remove possible default executable files to avoid this.
2431 #
2432 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2433 # Autoconf includes it.
2434 rm -f a.out a.exe b.out
2435
2436 # Find the native compiler
2437 ac_ext=c
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2442 if test -n "$ac_tool_prefix"; then
2443   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2444 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_CC+set}" = set; then
2448   echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450   if test -n "$CC"; then
2451   ac_cv_prog_CC="$CC" # Let the user override the test.
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456   IFS=$as_save_IFS
2457   test -z "$as_dir" && as_dir=.
2458   for ac_exec_ext in '' $ac_executable_extensions; do
2459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2460     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462     break 2
2463   fi
2464 done
2465 done
2466 IFS=$as_save_IFS
2467
2468 fi
2469 fi
2470 CC=$ac_cv_prog_CC
2471 if test -n "$CC"; then
2472   { echo "$as_me:$LINENO: result: $CC" >&5
2473 echo "${ECHO_T}$CC" >&6; }
2474 else
2475   { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2477 fi
2478
2479
2480 fi
2481 if test -z "$ac_cv_prog_CC"; then
2482   ac_ct_CC=$CC
2483   # Extract the first word of "gcc", so it can be a program name with args.
2484 set dummy gcc; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   if test -n "$ac_ct_CC"; then
2491   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496   IFS=$as_save_IFS
2497   test -z "$as_dir" && as_dir=.
2498   for ac_exec_ext in '' $ac_executable_extensions; do
2499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2500     ac_cv_prog_ac_ct_CC="gcc"
2501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505 done
2506 IFS=$as_save_IFS
2507
2508 fi
2509 fi
2510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2511 if test -n "$ac_ct_CC"; then
2512   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2513 echo "${ECHO_T}$ac_ct_CC" >&6; }
2514 else
2515   { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2517 fi
2518
2519   if test "x$ac_ct_CC" = x; then
2520     CC=""
2521   else
2522     case $cross_compiling:$ac_tool_warned in
2523 yes:)
2524 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet.  If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&5
2527 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2528 whose name does not start with the host triplet.  If you think this
2529 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2530 ac_tool_warned=yes ;;
2531 esac
2532     CC=$ac_ct_CC
2533   fi
2534 else
2535   CC="$ac_cv_prog_CC"
2536 fi
2537
2538 if test -z "$CC"; then
2539           if test -n "$ac_tool_prefix"; then
2540     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2541 set dummy ${ac_tool_prefix}cc; ac_word=$2
2542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2544 if test "${ac_cv_prog_CC+set}" = set; then
2545   echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547   if test -n "$CC"; then
2548   ac_cv_prog_CC="$CC" # Let the user override the test.
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553   IFS=$as_save_IFS
2554   test -z "$as_dir" && as_dir=.
2555   for ac_exec_ext in '' $ac_executable_extensions; do
2556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2557     ac_cv_prog_CC="${ac_tool_prefix}cc"
2558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559     break 2
2560   fi
2561 done
2562 done
2563 IFS=$as_save_IFS
2564
2565 fi
2566 fi
2567 CC=$ac_cv_prog_CC
2568 if test -n "$CC"; then
2569   { echo "$as_me:$LINENO: result: $CC" >&5
2570 echo "${ECHO_T}$CC" >&6; }
2571 else
2572   { echo "$as_me:$LINENO: result: no" >&5
2573 echo "${ECHO_T}no" >&6; }
2574 fi
2575
2576
2577   fi
2578 fi
2579 if test -z "$CC"; then
2580   # Extract the first word of "cc", so it can be a program name with args.
2581 set dummy cc; ac_word=$2
2582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2584 if test "${ac_cv_prog_CC+set}" = set; then
2585   echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587   if test -n "$CC"; then
2588   ac_cv_prog_CC="$CC" # Let the user override the test.
2589 else
2590   ac_prog_rejected=no
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594   IFS=$as_save_IFS
2595   test -z "$as_dir" && as_dir=.
2596   for ac_exec_ext in '' $ac_executable_extensions; do
2597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2598     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2599        ac_prog_rejected=yes
2600        continue
2601      fi
2602     ac_cv_prog_CC="cc"
2603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604     break 2
2605   fi
2606 done
2607 done
2608 IFS=$as_save_IFS
2609
2610 if test $ac_prog_rejected = yes; then
2611   # We found a bogon in the path, so make sure we never use it.
2612   set dummy $ac_cv_prog_CC
2613   shift
2614   if test $# != 0; then
2615     # We chose a different compiler from the bogus one.
2616     # However, it has the same basename, so the bogon will be chosen
2617     # first if we set CC to just the basename; use the full file name.
2618     shift
2619     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2620   fi
2621 fi
2622 fi
2623 fi
2624 CC=$ac_cv_prog_CC
2625 if test -n "$CC"; then
2626   { echo "$as_me:$LINENO: result: $CC" >&5
2627 echo "${ECHO_T}$CC" >&6; }
2628 else
2629   { echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6; }
2631 fi
2632
2633
2634 fi
2635 if test -z "$CC"; then
2636   if test -n "$ac_tool_prefix"; then
2637   for ac_prog in cl.exe
2638   do
2639     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2640 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643 if test "${ac_cv_prog_CC+set}" = set; then
2644   echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646   if test -n "$CC"; then
2647   ac_cv_prog_CC="$CC" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654   for ac_exec_ext in '' $ac_executable_extensions; do
2655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2656     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658     break 2
2659   fi
2660 done
2661 done
2662 IFS=$as_save_IFS
2663
2664 fi
2665 fi
2666 CC=$ac_cv_prog_CC
2667 if test -n "$CC"; then
2668   { echo "$as_me:$LINENO: result: $CC" >&5
2669 echo "${ECHO_T}$CC" >&6; }
2670 else
2671   { echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6; }
2673 fi
2674
2675
2676     test -n "$CC" && break
2677   done
2678 fi
2679 if test -z "$CC"; then
2680   ac_ct_CC=$CC
2681   for ac_prog in cl.exe
2682 do
2683   # Extract the first word of "$ac_prog", so it can be a program name with args.
2684 set dummy $ac_prog; ac_word=$2
2685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2688   echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690   if test -n "$ac_ct_CC"; then
2691   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2695 do
2696   IFS=$as_save_IFS
2697   test -z "$as_dir" && as_dir=.
2698   for ac_exec_ext in '' $ac_executable_extensions; do
2699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2700     ac_cv_prog_ac_ct_CC="$ac_prog"
2701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702     break 2
2703   fi
2704 done
2705 done
2706 IFS=$as_save_IFS
2707
2708 fi
2709 fi
2710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2711 if test -n "$ac_ct_CC"; then
2712   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2713 echo "${ECHO_T}$ac_ct_CC" >&6; }
2714 else
2715   { echo "$as_me:$LINENO: result: no" >&5
2716 echo "${ECHO_T}no" >&6; }
2717 fi
2718
2719
2720   test -n "$ac_ct_CC" && break
2721 done
2722
2723   if test "x$ac_ct_CC" = x; then
2724     CC=""
2725   else
2726     case $cross_compiling:$ac_tool_warned in
2727 yes:)
2728 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2729 whose name does not start with the host triplet.  If you think this
2730 configuration is useful to you, please write to autoconf@gnu.org." >&5
2731 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2732 whose name does not start with the host triplet.  If you think this
2733 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2734 ac_tool_warned=yes ;;
2735 esac
2736     CC=$ac_ct_CC
2737   fi
2738 fi
2739
2740 fi
2741
2742
2743 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2744 See \`config.log' for more details." >&5
2745 echo "$as_me: error: no acceptable C compiler found in \$PATH
2746 See \`config.log' for more details." >&2;}
2747    { (exit 1); exit 1; }; }
2748
2749 # Provide some information about the compiler.
2750 echo "$as_me:$LINENO: checking for C compiler version" >&5
2751 ac_compiler=`set X $ac_compile; echo $2`
2752 { (ac_try="$ac_compiler --version >&5"
2753 case "(($ac_try" in
2754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755   *) ac_try_echo=$ac_try;;
2756 esac
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758   (eval "$ac_compiler --version >&5") 2>&5
2759   ac_status=$?
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); }
2762 { (ac_try="$ac_compiler -v >&5"
2763 case "(($ac_try" in
2764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765   *) ac_try_echo=$ac_try;;
2766 esac
2767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768   (eval "$ac_compiler -v >&5") 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }
2772 { (ac_try="$ac_compiler -V >&5"
2773 case "(($ac_try" in
2774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775   *) ac_try_echo=$ac_try;;
2776 esac
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778   (eval "$ac_compiler -V >&5") 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }
2782
2783 cat >conftest.$ac_ext <<_ACEOF
2784 /* confdefs.h.  */
2785 _ACEOF
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h.  */
2789
2790 int
2791 main ()
2792 {
2793
2794   ;
2795   return 0;
2796 }
2797 _ACEOF
2798 ac_clean_files_save=$ac_clean_files
2799 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2800 # Try to create an executable without -o first, disregard a.out.
2801 # It will help us diagnose broken compilers, and finding out an intuition
2802 # of exeext.
2803 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2804 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2805 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2806 #
2807 # List of possible output files, starting from the most likely.
2808 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2809 # only as a last resort.  b.out is created by i960 compilers.
2810 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2811 #
2812 # The IRIX 6 linker writes into existing files which may not be
2813 # executable, retaining their permissions.  Remove them first so a
2814 # subsequent execution test works.
2815 ac_rmfiles=
2816 for ac_file in $ac_files
2817 do
2818   case $ac_file in
2819     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2820     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2821   esac
2822 done
2823 rm -f $ac_rmfiles
2824
2825 if { (ac_try="$ac_link_default"
2826 case "(($ac_try" in
2827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828   *) ac_try_echo=$ac_try;;
2829 esac
2830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831   (eval "$ac_link_default") 2>&5
2832   ac_status=$?
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); }; then
2835   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2836 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2837 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2838 # so that the user can short-circuit this test for compilers unknown to
2839 # Autoconf.
2840 for ac_file in $ac_files
2841 do
2842   test -f "$ac_file" || continue
2843   case $ac_file in
2844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2845         ;;
2846     [ab].out )
2847         # We found the default executable, but exeext='' is most
2848         # certainly right.
2849         break;;
2850     *.* )
2851         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2852         then :; else
2853            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2854         fi
2855         # We set ac_cv_exeext here because the later test for it is not
2856         # safe: cross compilers may not add the suffix if given an `-o'
2857         # argument, so we may need to know it at that point already.
2858         # Even if this section looks crufty: it has the advantage of
2859         # actually working.
2860         break;;
2861     * )
2862         break;;
2863   esac
2864 done
2865 test "$ac_cv_exeext" = no && ac_cv_exeext=
2866
2867 else
2868   echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2870
2871 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: C compiler cannot create executables
2874 See \`config.log' for more details." >&2;}
2875    { (exit 77); exit 77; }; }
2876 fi
2877
2878 ac_exeext=$ac_cv_exeext
2879 { echo "$as_me:$LINENO: result: $ac_file" >&5
2880 echo "${ECHO_T}$ac_file" >&6; }
2881
2882 # Check that the compiler produces executables we can run.  If not, either
2883 # the compiler is broken, or we cross compile.
2884 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2885 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2886 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2887 # If not cross compiling, check that we can run a simple program.
2888 if test "$cross_compiling" != yes; then
2889   if { ac_try='./$ac_file'
2890   { (case "(($ac_try" in
2891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892   *) ac_try_echo=$ac_try;;
2893 esac
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895   (eval "$ac_try") 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }; }; then
2899     cross_compiling=no
2900   else
2901     if test "$cross_compiling" = maybe; then
2902         cross_compiling=yes
2903     else
2904         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2905 If you meant to cross compile, use \`--host'.
2906 See \`config.log' for more details." >&5
2907 echo "$as_me: error: cannot run C compiled programs.
2908 If you meant to cross compile, use \`--host'.
2909 See \`config.log' for more details." >&2;}
2910    { (exit 1); exit 1; }; }
2911     fi
2912   fi
2913 fi
2914 { echo "$as_me:$LINENO: result: yes" >&5
2915 echo "${ECHO_T}yes" >&6; }
2916
2917 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2918 ac_clean_files=$ac_clean_files_save
2919 # Check that the compiler produces executables we can run.  If not, either
2920 # the compiler is broken, or we cross compile.
2921 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2922 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2923 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2924 echo "${ECHO_T}$cross_compiling" >&6; }
2925
2926 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2927 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2928 if { (ac_try="$ac_link"
2929 case "(($ac_try" in
2930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931   *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934   (eval "$ac_link") 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; then
2938   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2939 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2940 # work properly (i.e., refer to `conftest.exe'), while it won't with
2941 # `rm'.
2942 for ac_file in conftest.exe conftest conftest.*; do
2943   test -f "$ac_file" || continue
2944   case $ac_file in
2945     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2946     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2947           break;;
2948     * ) break;;
2949   esac
2950 done
2951 else
2952   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2955 See \`config.log' for more details." >&2;}
2956    { (exit 1); exit 1; }; }
2957 fi
2958
2959 rm -f conftest$ac_cv_exeext
2960 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2961 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2962
2963 rm -f conftest.$ac_ext
2964 EXEEXT=$ac_cv_exeext
2965 ac_exeext=$EXEEXT
2966 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2967 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2968 if test "${ac_cv_objext+set}" = set; then
2969   echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971   cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h.  */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h.  */
2977
2978 int
2979 main ()
2980 {
2981
2982   ;
2983   return 0;
2984 }
2985 _ACEOF
2986 rm -f conftest.o conftest.obj
2987 if { (ac_try="$ac_compile"
2988 case "(($ac_try" in
2989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990   *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993   (eval "$ac_compile") 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; then
2997   for ac_file in conftest.o conftest.obj conftest.*; do
2998   test -f "$ac_file" || continue;
2999   case $ac_file in
3000     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3001     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3002        break;;
3003   esac
3004 done
3005 else
3006   echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3012 See \`config.log' for more details." >&2;}
3013    { (exit 1); exit 1; }; }
3014 fi
3015
3016 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3017 fi
3018 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3019 echo "${ECHO_T}$ac_cv_objext" >&6; }
3020 OBJEXT=$ac_cv_objext
3021 ac_objext=$OBJEXT
3022 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3023 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3024 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3025   echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027   cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h.  */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h.  */
3033
3034 int
3035 main ()
3036 {
3037 #ifndef __GNUC__
3038        choke me
3039 #endif
3040
3041   ;
3042   return 0;
3043 }
3044 _ACEOF
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3047 case "(($ac_try" in
3048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049   *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052   (eval "$ac_compile") 2>conftest.er1
3053   ac_status=$?
3054   grep -v '^ *+' conftest.er1 >conftest.err
3055   rm -f conftest.er1
3056   cat conftest.err >&5
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); } &&
3059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3060   { (case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_try") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; } &&
3069          { ac_try='test -s conftest.$ac_objext'
3070   { (case "(($ac_try" in
3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072   *) ac_try_echo=$ac_try;;
3073 esac
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075   (eval "$ac_try") 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); }; }; then
3079   ac_compiler_gnu=yes
3080 else
3081   echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084         ac_compiler_gnu=no
3085 fi
3086
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3089
3090 fi
3091 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3092 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3093 GCC=`test $ac_compiler_gnu = yes && echo yes`
3094 ac_test_CFLAGS=${CFLAGS+set}
3095 ac_save_CFLAGS=$CFLAGS
3096 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3097 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3098 if test "${ac_cv_prog_cc_g+set}" = set; then
3099   echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101   ac_save_c_werror_flag=$ac_c_werror_flag
3102    ac_c_werror_flag=yes
3103    ac_cv_prog_cc_g=no
3104    CFLAGS="-g"
3105    cat >conftest.$ac_ext <<_ACEOF
3106 /* confdefs.h.  */
3107 _ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h.  */
3111
3112 int
3113 main ()
3114 {
3115
3116   ;
3117   return 0;
3118 }
3119 _ACEOF
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3122 case "(($ac_try" in
3123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124   *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127   (eval "$ac_compile") 2>conftest.er1
3128   ac_status=$?
3129   grep -v '^ *+' conftest.er1 >conftest.err
3130   rm -f conftest.er1
3131   cat conftest.err >&5
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); } &&
3134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3135   { (case "(($ac_try" in
3136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137   *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140   (eval "$ac_try") 2>&5
3141   ac_status=$?
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); }; } &&
3144          { ac_try='test -s conftest.$ac_objext'
3145   { (case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_try") 2>&5
3151   ac_status=$?
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); }; }; then
3154   ac_cv_prog_cc_g=yes
3155 else
3156   echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159         CFLAGS=""
3160       cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h.  */
3166
3167 int
3168 main ()
3169 {
3170
3171   ;
3172   return 0;
3173 }
3174 _ACEOF
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compile") 2>conftest.er1
3183   ac_status=$?
3184   grep -v '^ *+' conftest.er1 >conftest.err
3185   rm -f conftest.er1
3186   cat conftest.err >&5
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); } &&
3189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3190   { (case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_try") 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; } &&
3199          { ac_try='test -s conftest.$ac_objext'
3200   { (case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_try") 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }; }; then
3209   :
3210 else
3211   echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214         ac_c_werror_flag=$ac_save_c_werror_flag
3215          CFLAGS="-g"
3216          cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h.  */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h.  */
3222
3223 int
3224 main ()
3225 {
3226
3227   ;
3228   return 0;
3229 }
3230 _ACEOF
3231 rm -f conftest.$ac_objext
3232 if { (ac_try="$ac_compile"
3233 case "(($ac_try" in
3234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235   *) ac_try_echo=$ac_try;;
3236 esac
3237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238   (eval "$ac_compile") 2>conftest.er1
3239   ac_status=$?
3240   grep -v '^ *+' conftest.er1 >conftest.err
3241   rm -f conftest.er1
3242   cat conftest.err >&5
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); } &&
3245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3246   { (case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_try") 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; } &&
3255          { ac_try='test -s conftest.$ac_objext'
3256   { (case "(($ac_try" in
3257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258   *) ac_try_echo=$ac_try;;
3259 esac
3260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261   (eval "$ac_try") 2>&5
3262   ac_status=$?
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); }; }; then
3265   ac_cv_prog_cc_g=yes
3266 else
3267   echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270
3271 fi
3272
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 fi
3275
3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277 fi
3278
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280    ac_c_werror_flag=$ac_save_c_werror_flag
3281 fi
3282 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3283 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3284 if test "$ac_test_CFLAGS" = set; then
3285   CFLAGS=$ac_save_CFLAGS
3286 elif test $ac_cv_prog_cc_g = yes; then
3287   if test "$GCC" = yes; then
3288     CFLAGS="-g -O2"
3289   else
3290     CFLAGS="-g"
3291   fi
3292 else
3293   if test "$GCC" = yes; then
3294     CFLAGS="-O2"
3295   else
3296     CFLAGS=
3297   fi
3298 fi
3299 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3300 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3301 if test "${ac_cv_prog_cc_c89+set}" = set; then
3302   echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304   ac_cv_prog_cc_c89=no
3305 ac_save_CC=$CC
3306 cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h.  */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h.  */
3312 #include <stdarg.h>
3313 #include <stdio.h>
3314 #include <sys/types.h>
3315 #include <sys/stat.h>
3316 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3317 struct buf { int x; };
3318 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3319 static char *e (p, i)
3320      char **p;
3321      int i;
3322 {
3323   return p[i];
3324 }
3325 static char *f (char * (*g) (char **, int), char **p, ...)
3326 {
3327   char *s;
3328   va_list v;
3329   va_start (v,p);
3330   s = g (p, va_arg (v,int));
3331   va_end (v);
3332   return s;
3333 }
3334
3335 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3336    function prototypes and stuff, but not '\xHH' hex character constants.
3337    These don't provoke an error unfortunately, instead are silently treated
3338    as 'x'.  The following induces an error, until -std is added to get
3339    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3340    array size at least.  It's necessary to write '\x00'==0 to get something
3341    that's true only with -std.  */
3342 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3343
3344 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3345    inside strings and character constants.  */
3346 #define FOO(x) 'x'
3347 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3348
3349 int test (int i, double x);
3350 struct s1 {int (*f) (int a);};
3351 struct s2 {int (*f) (double a);};
3352 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3353 int argc;
3354 char **argv;
3355 int
3356 main ()
3357 {
3358 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3359   ;
3360   return 0;
3361 }
3362 _ACEOF
3363 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3364         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3365 do
3366   CC="$ac_save_CC $ac_arg"
3367   rm -f conftest.$ac_objext
3368 if { (ac_try="$ac_compile"
3369 case "(($ac_try" in
3370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371   *) ac_try_echo=$ac_try;;
3372 esac
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374   (eval "$ac_compile") 2>conftest.er1
3375   ac_status=$?
3376   grep -v '^ *+' conftest.er1 >conftest.err
3377   rm -f conftest.er1
3378   cat conftest.err >&5
3379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380   (exit $ac_status); } &&
3381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3382   { (case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387   (eval "$ac_try") 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; } &&
3391          { ac_try='test -s conftest.$ac_objext'
3392   { (case "(($ac_try" in
3393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394   *) ac_try_echo=$ac_try;;
3395 esac
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397   (eval "$ac_try") 2>&5
3398   ac_status=$?
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); }; }; then
3401   ac_cv_prog_cc_c89=$ac_arg
3402 else
3403   echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406
3407 fi
3408
3409 rm -f core conftest.err conftest.$ac_objext
3410   test "x$ac_cv_prog_cc_c89" != "xno" && break
3411 done
3412 rm -f conftest.$ac_ext
3413 CC=$ac_save_CC
3414
3415 fi
3416 # AC_CACHE_VAL
3417 case "x$ac_cv_prog_cc_c89" in
3418   x)
3419     { echo "$as_me:$LINENO: result: none needed" >&5
3420 echo "${ECHO_T}none needed" >&6; } ;;
3421   xno)
3422     { echo "$as_me:$LINENO: result: unsupported" >&5
3423 echo "${ECHO_T}unsupported" >&6; } ;;
3424   *)
3425     CC="$CC $ac_cv_prog_cc_c89"
3426     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3427 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3428 esac
3429
3430
3431 ac_ext=c
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436
3437 if test "x$CC" != xcc; then
3438   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3439 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3440 else
3441   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3442 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3443 fi
3444 set dummy $CC; ac_cc=`echo $2 |
3445                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3446 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3447   echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449   cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h.  */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h.  */
3455
3456 int
3457 main ()
3458 {
3459
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 # Make sure it works both with $CC and with simple cc.
3465 # We do the test twice because some compilers refuse to overwrite an
3466 # existing .o file with -o, though they will create one.
3467 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3468 rm -f conftest2.*
3469 if { (case "(($ac_try" in
3470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471   *) ac_try_echo=$ac_try;;
3472 esac
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474   (eval "$ac_try") 2>&5
3475   ac_status=$?
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); } &&
3478    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480   *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483   (eval "$ac_try") 2>&5
3484   ac_status=$?
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); };
3487 then
3488   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3489   if test "x$CC" != xcc; then
3490     # Test first that cc exists at all.
3491     if { ac_try='cc -c conftest.$ac_ext >&5'
3492   { (case "(($ac_try" in
3493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494   *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497   (eval "$ac_try") 2>&5
3498   ac_status=$?
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); }; }; then
3501       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3502       rm -f conftest2.*
3503       if { (case "(($ac_try" in
3504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505   *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508   (eval "$ac_try") 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); } &&
3512          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514   *) ac_try_echo=$ac_try;;
3515 esac
3516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517   (eval "$ac_try") 2>&5
3518   ac_status=$?
3519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520   (exit $ac_status); };
3521       then
3522         # cc works too.
3523         :
3524       else
3525         # cc exists but doesn't like -o.
3526         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3527       fi
3528     fi
3529   fi
3530 else
3531   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3532 fi
3533 rm -f core conftest*
3534
3535 fi
3536 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3537   { echo "$as_me:$LINENO: result: yes" >&5
3538 echo "${ECHO_T}yes" >&6; }
3539 else
3540   { echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6; }
3542
3543 cat >>confdefs.h <<\_ACEOF
3544 #define NO_MINUS_C_MINUS_O 1
3545 _ACEOF
3546
3547 fi
3548
3549 # expand $ac_aux_dir to an absolute path
3550 am_aux_dir=`cd $ac_aux_dir && pwd`
3551
3552 # FIXME: we rely on the cache variable name because
3553 # there is no other way.
3554 set dummy $CC
3555 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3556 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3557    # Losing compiler, so override with the script.
3558    # FIXME: It is wrong to rewrite CC.
3559    # But if we don't then we get into trouble of one sort or another.
3560    # A longer-term fix would be to have automake use am__CC in this case,
3561    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3562    CC="$am_aux_dir/compile $CC"
3563 fi
3564
3565 # autoconf is lame and doesn't give us any substitution variable for this.
3566 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3567   NO_MINUS_C_MINUS_O=yes
3568 else
3569   OUTPUT_OPTION='-o $@'
3570 fi
3571
3572
3573
3574 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3575 # optimizations to be activated explicitly by the toplevel.
3576 case "$CC" in
3577   */prev-gcc/xgcc*) ;;
3578   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3579 esac
3580
3581
3582 # -------------------------
3583 # Check C compiler features
3584 # -------------------------
3585
3586 ac_ext=c
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3592 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3593 # On Suns, sometimes $CPP names a directory.
3594 if test -n "$CPP" && test -d "$CPP"; then
3595   CPP=
3596 fi
3597 if test -z "$CPP"; then
3598   if test "${ac_cv_prog_CPP+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601       # Double quotes because CPP needs to be expanded
3602     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3603     do
3604       ac_preproc_ok=false
3605 for ac_c_preproc_warn_flag in '' yes
3606 do
3607   # Use a header file that comes with gcc, so configuring glibc
3608   # with a fresh cross-compiler works.
3609   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3610   # <limits.h> exists even on freestanding compilers.
3611   # On the NeXT, cc -E runs the code through the compiler's parser,
3612   # not just through cpp. "Syntax error" is here to catch this case.
3613   cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h.  */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h.  */
3619 #ifdef __STDC__
3620 # include <limits.h>
3621 #else
3622 # include <assert.h>
3623 #endif
3624                      Syntax error
3625 _ACEOF
3626 if { (ac_try="$ac_cpp conftest.$ac_ext"
3627 case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3633   ac_status=$?
3634   grep -v '^ *+' conftest.er1 >conftest.err
3635   rm -f conftest.er1
3636   cat conftest.err >&5
3637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638   (exit $ac_status); } >/dev/null; then
3639   if test -s conftest.err; then
3640     ac_cpp_err=$ac_c_preproc_warn_flag
3641     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3642   else
3643     ac_cpp_err=
3644   fi
3645 else
3646   ac_cpp_err=yes
3647 fi
3648 if test -z "$ac_cpp_err"; then
3649   :
3650 else
3651   echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654   # Broken: fails on valid input.
3655 continue
3656 fi
3657
3658 rm -f conftest.err conftest.$ac_ext
3659
3660   # OK, works on sane cases.  Now check whether nonexistent headers
3661   # can be detected and how.
3662   cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668 #include <ac_nonexistent.h>
3669 _ACEOF
3670 if { (ac_try="$ac_cpp conftest.$ac_ext"
3671 case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3677   ac_status=$?
3678   grep -v '^ *+' conftest.er1 >conftest.err
3679   rm -f conftest.er1
3680   cat conftest.err >&5
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); } >/dev/null; then
3683   if test -s conftest.err; then
3684     ac_cpp_err=$ac_c_preproc_warn_flag
3685     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3686   else
3687     ac_cpp_err=
3688   fi
3689 else
3690   ac_cpp_err=yes
3691 fi
3692 if test -z "$ac_cpp_err"; then
3693   # Broken: success on invalid input.
3694 continue
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699   # Passes both tests.
3700 ac_preproc_ok=:
3701 break
3702 fi
3703
3704 rm -f conftest.err conftest.$ac_ext
3705
3706 done
3707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3708 rm -f conftest.err conftest.$ac_ext
3709 if $ac_preproc_ok; then
3710   break
3711 fi
3712
3713     done
3714     ac_cv_prog_CPP=$CPP
3715
3716 fi
3717   CPP=$ac_cv_prog_CPP
3718 else
3719   ac_cv_prog_CPP=$CPP
3720 fi
3721 { echo "$as_me:$LINENO: result: $CPP" >&5
3722 echo "${ECHO_T}$CPP" >&6; }
3723 ac_preproc_ok=false
3724 for ac_c_preproc_warn_flag in '' yes
3725 do
3726   # Use a header file that comes with gcc, so configuring glibc
3727   # with a fresh cross-compiler works.
3728   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3729   # <limits.h> exists even on freestanding compilers.
3730   # On the NeXT, cc -E runs the code through the compiler's parser,
3731   # not just through cpp. "Syntax error" is here to catch this case.
3732   cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h.  */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h.  */
3738 #ifdef __STDC__
3739 # include <limits.h>
3740 #else
3741 # include <assert.h>
3742 #endif
3743                      Syntax error
3744 _ACEOF
3745 if { (ac_try="$ac_cpp conftest.$ac_ext"
3746 case "(($ac_try" in
3747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748   *) ac_try_echo=$ac_try;;
3749 esac
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3752   ac_status=$?
3753   grep -v '^ *+' conftest.er1 >conftest.err
3754   rm -f conftest.er1
3755   cat conftest.err >&5
3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); } >/dev/null; then
3758   if test -s conftest.err; then
3759     ac_cpp_err=$ac_c_preproc_warn_flag
3760     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3761   else
3762     ac_cpp_err=
3763   fi
3764 else
3765   ac_cpp_err=yes
3766 fi
3767 if test -z "$ac_cpp_err"; then
3768   :
3769 else
3770   echo "$as_me: failed program was:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3772
3773   # Broken: fails on valid input.
3774 continue
3775 fi
3776
3777 rm -f conftest.err conftest.$ac_ext
3778
3779   # OK, works on sane cases.  Now check whether nonexistent headers
3780   # can be detected and how.
3781   cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h.  */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h.  */
3787 #include <ac_nonexistent.h>
3788 _ACEOF
3789 if { (ac_try="$ac_cpp conftest.$ac_ext"
3790 case "(($ac_try" in
3791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792   *) ac_try_echo=$ac_try;;
3793 esac
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3796   ac_status=$?
3797   grep -v '^ *+' conftest.er1 >conftest.err
3798   rm -f conftest.er1
3799   cat conftest.err >&5
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); } >/dev/null; then
3802   if test -s conftest.err; then
3803     ac_cpp_err=$ac_c_preproc_warn_flag
3804     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3805   else
3806     ac_cpp_err=
3807   fi
3808 else
3809   ac_cpp_err=yes
3810 fi
3811 if test -z "$ac_cpp_err"; then
3812   # Broken: success on invalid input.
3813 continue
3814 else
3815   echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818   # Passes both tests.
3819 ac_preproc_ok=:
3820 break
3821 fi
3822
3823 rm -f conftest.err conftest.$ac_ext
3824
3825 done
3826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3827 rm -f conftest.err conftest.$ac_ext
3828 if $ac_preproc_ok; then
3829   :
3830 else
3831   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3832 See \`config.log' for more details." >&5
3833 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3834 See \`config.log' for more details." >&2;}
3835    { (exit 1); exit 1; }; }
3836 fi
3837
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843
3844
3845 { echo "$as_me:$LINENO: checking for inline" >&5
3846 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3847 if test "${ac_cv_c_inline+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   ac_cv_c_inline=no
3851 for ac_kw in inline __inline__ __inline; do
3852   cat >conftest.$ac_ext <<_ACEOF
3853 /* confdefs.h.  */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h.  */
3858 #ifndef __cplusplus
3859 typedef int foo_t;
3860 static $ac_kw foo_t static_foo () {return 0; }
3861 $ac_kw foo_t foo () {return 0; }
3862 #endif
3863
3864 _ACEOF
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3867 case "(($ac_try" in
3868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869   *) ac_try_echo=$ac_try;;
3870 esac
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872   (eval "$ac_compile") 2>conftest.er1
3873   ac_status=$?
3874   grep -v '^ *+' conftest.er1 >conftest.err
3875   rm -f conftest.er1
3876   cat conftest.err >&5
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); } &&
3879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3880   { (case "(($ac_try" in
3881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882   *) ac_try_echo=$ac_try;;
3883 esac
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885   (eval "$ac_try") 2>&5
3886   ac_status=$?
3887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888   (exit $ac_status); }; } &&
3889          { ac_try='test -s conftest.$ac_objext'
3890   { (case "(($ac_try" in
3891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892   *) ac_try_echo=$ac_try;;
3893 esac
3894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895   (eval "$ac_try") 2>&5
3896   ac_status=$?
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); }; }; then
3899   ac_cv_c_inline=$ac_kw
3900 else
3901   echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3903
3904
3905 fi
3906
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908   test "$ac_cv_c_inline" != no && break
3909 done
3910
3911 fi
3912 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3913 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3914
3915
3916 case $ac_cv_c_inline in
3917   inline | yes) ;;
3918   *)
3919     case $ac_cv_c_inline in
3920       no) ac_val=;;
3921       *) ac_val=$ac_cv_c_inline;;
3922     esac
3923     cat >>confdefs.h <<_ACEOF
3924 #ifndef __cplusplus
3925 #define inline $ac_val
3926 #endif
3927 _ACEOF
3928     ;;
3929 esac
3930
3931
3932 # sizeof(char) is 1 by definition.
3933
3934 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3935 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3936 if test "${ac_cv_path_GREP+set}" = set; then
3937   echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939   # Extract the first word of "grep ggrep" to use in msg output
3940 if test -z "$GREP"; then
3941 set dummy grep ggrep; ac_prog_name=$2
3942 if test "${ac_cv_path_GREP+set}" = set; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   ac_path_GREP_found=false
3946 # Loop through the user's path and test for each of PROGNAME-LIST
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3949 do
3950   IFS=$as_save_IFS
3951   test -z "$as_dir" && as_dir=.
3952   for ac_prog in grep ggrep; do
3953   for ac_exec_ext in '' $ac_executable_extensions; do
3954     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3955     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3956     # Check for GNU ac_path_GREP and select it if it is found.
3957   # Check for GNU $ac_path_GREP
3958 case `"$ac_path_GREP" --version 2>&1` in
3959 *GNU*)
3960   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3961 *)
3962   ac_count=0
3963   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3964   while :
3965   do
3966     cat "conftest.in" "conftest.in" >"conftest.tmp"
3967     mv "conftest.tmp" "conftest.in"
3968     cp "conftest.in" "conftest.nl"
3969     echo 'GREP' >> "conftest.nl"
3970     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3971     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3972     ac_count=`expr $ac_count + 1`
3973     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3974       # Best one so far, save it but keep looking for a better one
3975       ac_cv_path_GREP="$ac_path_GREP"
3976       ac_path_GREP_max=$ac_count
3977     fi
3978     # 10*(2^10) chars as input seems more than enough
3979     test $ac_count -gt 10 && break
3980   done
3981   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3982 esac
3983
3984
3985     $ac_path_GREP_found && break 3
3986   done
3987 done
3988
3989 done
3990 IFS=$as_save_IFS
3991
3992
3993 fi
3994
3995 GREP="$ac_cv_path_GREP"
3996 if test -z "$GREP"; then
3997   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3998 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3999    { (exit 1); exit 1; }; }
4000 fi
4001
4002 else
4003   ac_cv_path_GREP=$GREP
4004 fi
4005
4006
4007 fi
4008 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4009 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4010  GREP="$ac_cv_path_GREP"
4011
4012
4013 { echo "$as_me:$LINENO: checking for egrep" >&5
4014 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4015 if test "${ac_cv_path_EGREP+set}" = set; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4019    then ac_cv_path_EGREP="$GREP -E"
4020    else
4021      # Extract the first word of "egrep" to use in msg output
4022 if test -z "$EGREP"; then
4023 set dummy egrep; ac_prog_name=$2
4024 if test "${ac_cv_path_EGREP+set}" = set; then
4025   echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027   ac_path_EGREP_found=false
4028 # Loop through the user's path and test for each of PROGNAME-LIST
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4031 do
4032   IFS=$as_save_IFS
4033   test -z "$as_dir" && as_dir=.
4034   for ac_prog in egrep; do
4035   for ac_exec_ext in '' $ac_executable_extensions; do
4036     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4037     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4038     # Check for GNU ac_path_EGREP and select it if it is found.
4039   # Check for GNU $ac_path_EGREP
4040 case `"$ac_path_EGREP" --version 2>&1` in
4041 *GNU*)
4042   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4043 *)
4044   ac_count=0
4045   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4046   while :
4047   do
4048     cat "conftest.in" "conftest.in" >"conftest.tmp"
4049     mv "conftest.tmp" "conftest.in"
4050     cp "conftest.in" "conftest.nl"
4051     echo 'EGREP' >> "conftest.nl"
4052     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4053     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4054     ac_count=`expr $ac_count + 1`
4055     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4056       # Best one so far, save it but keep looking for a better one
4057       ac_cv_path_EGREP="$ac_path_EGREP"
4058       ac_path_EGREP_max=$ac_count
4059     fi
4060     # 10*(2^10) chars as input seems more than enough
4061     test $ac_count -gt 10 && break
4062   done
4063   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4064 esac
4065
4066
4067     $ac_path_EGREP_found && break 3
4068   done
4069 done
4070
4071 done
4072 IFS=$as_save_IFS
4073
4074
4075 fi
4076
4077 EGREP="$ac_cv_path_EGREP"
4078 if test -z "$EGREP"; then
4079   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4080 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4081    { (exit 1); exit 1; }; }
4082 fi
4083
4084 else
4085   ac_cv_path_EGREP=$EGREP
4086 fi
4087
4088
4089    fi
4090 fi
4091 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4092 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4093  EGREP="$ac_cv_path_EGREP"
4094
4095
4096 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4097 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4098 if test "${ac_cv_header_stdc+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h.  */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h.  */
4107 #include <stdlib.h>
4108 #include <stdarg.h>
4109 #include <string.h>
4110 #include <float.h>
4111
4112 int
4113 main ()
4114 {
4115
4116   ;
4117   return 0;
4118 }
4119 _ACEOF
4120 rm -f conftest.$ac_objext
4121 if { (ac_try="$ac_compile"
4122 case "(($ac_try" in
4123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124   *) ac_try_echo=$ac_try;;
4125 esac
4126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4127   (eval "$ac_compile") 2>conftest.er1
4128   ac_status=$?
4129   grep -v '^ *+' conftest.er1 >conftest.err
4130   rm -f conftest.er1
4131   cat conftest.err >&5
4132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133   (exit $ac_status); } &&
4134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4135   { (case "(($ac_try" in
4136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137   *) ac_try_echo=$ac_try;;
4138 esac
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140   (eval "$ac_try") 2>&5
4141   ac_status=$?
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); }; } &&
4144          { ac_try='test -s conftest.$ac_objext'
4145   { (case "(($ac_try" in
4146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147   *) ac_try_echo=$ac_try;;
4148 esac
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150   (eval "$ac_try") 2>&5
4151   ac_status=$?
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); }; }; then
4154   ac_cv_header_stdc=yes
4155 else
4156   echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159         ac_cv_header_stdc=no
4160 fi
4161
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163
4164 if test $ac_cv_header_stdc = yes; then
4165   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4166   cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h.  */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h.  */
4172 #include <string.h>
4173
4174 _ACEOF
4175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176   $EGREP "memchr" >/dev/null 2>&1; then
4177   :
4178 else
4179   ac_cv_header_stdc=no
4180 fi
4181 rm -f conftest*
4182
4183 fi
4184
4185 if test $ac_cv_header_stdc = yes; then
4186   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4187   cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h.  */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h.  */
4193 #include <stdlib.h>
4194
4195 _ACEOF
4196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4197   $EGREP "free" >/dev/null 2>&1; then
4198   :
4199 else
4200   ac_cv_header_stdc=no
4201 fi
4202 rm -f conftest*
4203
4204 fi
4205
4206 if test $ac_cv_header_stdc = yes; then
4207   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4208   if test "$cross_compiling" = yes; then
4209   :
4210 else
4211   cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h.  */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h.  */
4217 #include <ctype.h>
4218 #include <stdlib.h>
4219 #if ((' ' & 0x0FF) == 0x020)
4220 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4221 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4222 #else
4223 # define ISLOWER(c) \
4224                    (('a' <= (c) && (c) <= 'i') \
4225                      || ('j' <= (c) && (c) <= 'r') \
4226                      || ('s' <= (c) && (c) <= 'z'))
4227 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4228 #endif
4229
4230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4231 int
4232 main ()
4233 {
4234   int i;
4235   for (i = 0; i < 256; i++)
4236     if (XOR (islower (i), ISLOWER (i))
4237         || toupper (i) != TOUPPER (i))
4238       return 2;
4239   return 0;
4240 }
4241 _ACEOF
4242 rm -f conftest$ac_exeext
4243 if { (ac_try="$ac_link"
4244 case "(($ac_try" in
4245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246   *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249   (eval "$ac_link") 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4253   { (case "(($ac_try" in
4254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255   *) ac_try_echo=$ac_try;;
4256 esac
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258   (eval "$ac_try") 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); }; }; then
4262   :
4263 else
4264   echo "$as_me: program exited with status $ac_status" >&5
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268 ( exit $ac_status )
4269 ac_cv_header_stdc=no
4270 fi
4271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4272 fi
4273
4274
4275 fi
4276 fi
4277 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4278 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4279 if test $ac_cv_header_stdc = yes; then
4280
4281 cat >>confdefs.h <<\_ACEOF
4282 #define STDC_HEADERS 1
4283 _ACEOF
4284
4285 fi
4286
4287 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4298                   inttypes.h stdint.h unistd.h
4299 do
4300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   cat >conftest.$ac_ext <<_ACEOF
4307 /* confdefs.h.  */
4308 _ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h.  */
4312 $ac_includes_default
4313
4314 #include <$ac_header>
4315 _ACEOF
4316 rm -f conftest.$ac_objext
4317 if { (ac_try="$ac_compile"
4318 case "(($ac_try" in
4319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320   *) ac_try_echo=$ac_try;;
4321 esac
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323   (eval "$ac_compile") 2>conftest.er1
4324   ac_status=$?
4325   grep -v '^ *+' conftest.er1 >conftest.err
4326   rm -f conftest.er1
4327   cat conftest.err >&5
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); } &&
4330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4331   { (case "(($ac_try" in
4332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333   *) ac_try_echo=$ac_try;;
4334 esac
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336   (eval "$ac_try") 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; } &&
4340          { ac_try='test -s conftest.$ac_objext'
4341   { (case "(($ac_try" in
4342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343   *) ac_try_echo=$ac_try;;
4344 esac
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346   (eval "$ac_try") 2>&5
4347   ac_status=$?
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); }; }; then
4350   eval "$as_ac_Header=yes"
4351 else
4352   echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4354
4355         eval "$as_ac_Header=no"
4356 fi
4357
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 fi
4360 ac_res=`eval echo '${'$as_ac_Header'}'`
4361                { echo "$as_me:$LINENO: result: $ac_res" >&5
4362 echo "${ECHO_T}$ac_res" >&6; }
4363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4364   cat >>confdefs.h <<_ACEOF
4365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4366 _ACEOF
4367
4368 fi
4369
4370 done
4371
4372
4373 { echo "$as_me:$LINENO: checking for void *" >&5
4374 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4375 if test "${ac_cv_type_void_p+set}" = set; then
4376   echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378   cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h.  */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h.  */
4384 $ac_includes_default
4385 typedef void * ac__type_new_;
4386 int
4387 main ()
4388 {
4389 if ((ac__type_new_ *) 0)
4390   return 0;
4391 if (sizeof (ac__type_new_))
4392   return 0;
4393   ;
4394   return 0;
4395 }
4396 _ACEOF
4397 rm -f conftest.$ac_objext
4398 if { (ac_try="$ac_compile"
4399 case "(($ac_try" in
4400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401   *) ac_try_echo=$ac_try;;
4402 esac
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404   (eval "$ac_compile") 2>conftest.er1
4405   ac_status=$?
4406   grep -v '^ *+' conftest.er1 >conftest.err
4407   rm -f conftest.er1
4408   cat conftest.err >&5
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); } &&
4411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4412   { (case "(($ac_try" in
4413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414   *) ac_try_echo=$ac_try;;
4415 esac
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417   (eval "$ac_try") 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); }; } &&
4421          { ac_try='test -s conftest.$ac_objext'
4422   { (case "(($ac_try" in
4423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424   *) ac_try_echo=$ac_try;;
4425 esac
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427   (eval "$ac_try") 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }; }; then
4431   ac_cv_type_void_p=yes
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436         ac_cv_type_void_p=no
4437 fi
4438
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440 fi
4441 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4442 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4443
4444 { echo "$as_me:$LINENO: checking size of void *" >&5
4445 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4446 if test "${ac_cv_sizeof_void_p+set}" = set; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449   if test "$ac_cv_type_void_p" = yes; then
4450   # The cast to long int works around a bug in the HP C Compiler
4451   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4452   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4453   # This bug is HP SR number 8606223364.
4454   if test "$cross_compiling" = yes; then
4455   # Depending upon the size, compute the lo and hi bounds.
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4462 $ac_includes_default
4463                    typedef void * ac__type_sizeof_;
4464 int
4465 main ()
4466 {
4467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4468 test_array [0] = 0
4469
4470   ;
4471   return 0;
4472 }
4473 _ACEOF
4474 rm -f conftest.$ac_objext
4475 if { (ac_try="$ac_compile"
4476 case "(($ac_try" in
4477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478   *) ac_try_echo=$ac_try;;
4479 esac
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481   (eval "$ac_compile") 2>conftest.er1
4482   ac_status=$?
4483   grep -v '^ *+' conftest.er1 >conftest.err
4484   rm -f conftest.er1
4485   cat conftest.err >&5
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); } &&
4488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4489   { (case "(($ac_try" in
4490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491   *) ac_try_echo=$ac_try;;
4492 esac
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494   (eval "$ac_try") 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); }; } &&
4498          { ac_try='test -s conftest.$ac_objext'
4499   { (case "(($ac_try" in
4500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501   *) ac_try_echo=$ac_try;;
4502 esac
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504   (eval "$ac_try") 2>&5
4505   ac_status=$?
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); }; }; then
4508   ac_lo=0 ac_mid=0
4509   while :; do
4510     cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h.  */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h.  */
4516 $ac_includes_default
4517                    typedef void * ac__type_sizeof_;
4518 int
4519 main ()
4520 {
4521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4522 test_array [0] = 0
4523
4524   ;
4525   return 0;
4526 }
4527 _ACEOF
4528 rm -f conftest.$ac_objext
4529 if { (ac_try="$ac_compile"
4530 case "(($ac_try" in
4531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532   *) ac_try_echo=$ac_try;;
4533 esac
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535   (eval "$ac_compile") 2>conftest.er1
4536   ac_status=$?
4537   grep -v '^ *+' conftest.er1 >conftest.err
4538   rm -f conftest.er1
4539   cat conftest.err >&5
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); } &&
4542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4543   { (case "(($ac_try" in
4544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545   *) ac_try_echo=$ac_try;;
4546 esac
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548   (eval "$ac_try") 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }; } &&
4552          { ac_try='test -s conftest.$ac_objext'
4553   { (case "(($ac_try" in
4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555   *) ac_try_echo=$ac_try;;
4556 esac
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558   (eval "$ac_try") 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); }; }; then
4562   ac_hi=$ac_mid; break
4563 else
4564   echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4566
4567         ac_lo=`expr $ac_mid + 1`
4568                         if test $ac_lo -le $ac_mid; then
4569                           ac_lo= ac_hi=
4570                           break
4571                         fi
4572                         ac_mid=`expr 2 '*' $ac_mid + 1`
4573 fi
4574
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576   done
4577 else
4578   echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4580
4581         cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h.  */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h.  */
4587 $ac_includes_default
4588                    typedef void * ac__type_sizeof_;
4589 int
4590 main ()
4591 {
4592 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4593 test_array [0] = 0
4594
4595   ;
4596   return 0;
4597 }
4598 _ACEOF
4599 rm -f conftest.$ac_objext
4600 if { (ac_try="$ac_compile"
4601 case "(($ac_try" in
4602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603   *) ac_try_echo=$ac_try;;
4604 esac
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606   (eval "$ac_compile") 2>conftest.er1
4607   ac_status=$?
4608   grep -v '^ *+' conftest.er1 >conftest.err
4609   rm -f conftest.er1
4610   cat conftest.err >&5
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); } &&
4613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4614   { (case "(($ac_try" in
4615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616   *) ac_try_echo=$ac_try;;
4617 esac
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619   (eval "$ac_try") 2>&5
4620   ac_status=$?
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); }; } &&
4623          { ac_try='test -s conftest.$ac_objext'
4624   { (case "(($ac_try" in
4625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626   *) ac_try_echo=$ac_try;;
4627 esac
4628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4629   (eval "$ac_try") 2>&5
4630   ac_status=$?
4631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632   (exit $ac_status); }; }; then
4633   ac_hi=-1 ac_mid=-1
4634   while :; do
4635     cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h.  */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h.  */
4641 $ac_includes_default
4642                    typedef void * ac__type_sizeof_;
4643 int
4644 main ()
4645 {
4646 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4647 test_array [0] = 0
4648
4649   ;
4650   return 0;
4651 }
4652 _ACEOF
4653 rm -f conftest.$ac_objext
4654 if { (ac_try="$ac_compile"
4655 case "(($ac_try" in
4656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657   *) ac_try_echo=$ac_try;;
4658 esac
4659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660   (eval "$ac_compile") 2>conftest.er1
4661   ac_status=$?
4662   grep -v '^ *+' conftest.er1 >conftest.err
4663   rm -f conftest.er1
4664   cat conftest.err >&5
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); } &&
4667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4668   { (case "(($ac_try" in
4669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670   *) ac_try_echo=$ac_try;;
4671 esac
4672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4673   (eval "$ac_try") 2>&5
4674   ac_status=$?
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); }; } &&
4677          { ac_try='test -s conftest.$ac_objext'
4678   { (case "(($ac_try" in
4679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680   *) ac_try_echo=$ac_try;;
4681 esac
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683   (eval "$ac_try") 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; }; then
4687   ac_lo=$ac_mid; break
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692         ac_hi=`expr '(' $ac_mid ')' - 1`
4693                         if test $ac_mid -le $ac_hi; then
4694                           ac_lo= ac_hi=
4695                           break
4696                         fi
4697                         ac_mid=`expr 2 '*' $ac_mid`
4698 fi
4699
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701   done
4702 else
4703   echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706         ac_lo= ac_hi=
4707 fi
4708
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 fi
4711
4712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 # Binary search between lo and hi bounds.
4714 while test "x$ac_lo" != "x$ac_hi"; do
4715   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4716   cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h.  */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h.  */
4722 $ac_includes_default
4723                    typedef void * ac__type_sizeof_;
4724 int
4725 main ()
4726 {
4727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4728 test_array [0] = 0
4729
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 rm -f conftest.$ac_objext
4735 if { (ac_try="$ac_compile"
4736 case "(($ac_try" in
4737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738   *) ac_try_echo=$ac_try;;
4739 esac
4740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741   (eval "$ac_compile") 2>conftest.er1
4742   ac_status=$?
4743   grep -v '^ *+' conftest.er1 >conftest.err
4744   rm -f conftest.er1
4745   cat conftest.err >&5
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); } &&
4748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4749   { (case "(($ac_try" in
4750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751   *) ac_try_echo=$ac_try;;
4752 esac
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754   (eval "$ac_try") 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }; } &&
4758          { ac_try='test -s conftest.$ac_objext'
4759   { (case "(($ac_try" in
4760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761   *) ac_try_echo=$ac_try;;
4762 esac
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764   (eval "$ac_try") 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }; }; then
4768   ac_hi=$ac_mid
4769 else
4770   echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773         ac_lo=`expr '(' $ac_mid ')' + 1`
4774 fi
4775
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 done
4778 case $ac_lo in
4779 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4780 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4781 See \`config.log' for more details." >&5
4782 echo "$as_me: error: cannot compute sizeof (void *)
4783 See \`config.log' for more details." >&2;}
4784    { (exit 77); exit 77; }; } ;;
4785 esac
4786 else
4787   cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h.  */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h.  */
4793 $ac_includes_default
4794                    typedef void * ac__type_sizeof_;
4795 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4796 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4797 #include <stdio.h>
4798 #include <stdlib.h>
4799 int
4800 main ()
4801 {
4802
4803   FILE *f = fopen ("conftest.val", "w");
4804   if (! f)
4805     return 1;
4806   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4807     {
4808       long int i = longval ();
4809       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4810         return 1;
4811       fprintf (f, "%ld\n", i);
4812     }
4813   else
4814     {
4815       unsigned long int i = ulongval ();
4816       if (i != ((long int) (sizeof (ac__type_sizeof_))))
4817         return 1;
4818       fprintf (f, "%lu\n", i);
4819     }
4820   return ferror (f) || fclose (f) != 0;
4821
4822   ;
4823   return 0;
4824 }
4825 _ACEOF
4826 rm -f conftest$ac_exeext
4827 if { (ac_try="$ac_link"
4828 case "(($ac_try" in
4829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4830   *) ac_try_echo=$ac_try;;
4831 esac
4832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4833   (eval "$ac_link") 2>&5
4834   ac_status=$?
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4837   { (case "(($ac_try" in
4838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839   *) ac_try_echo=$ac_try;;
4840 esac
4841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842   (eval "$ac_try") 2>&5
4843   ac_status=$?
4844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845   (exit $ac_status); }; }; then
4846   ac_cv_sizeof_void_p=`cat conftest.val`
4847 else
4848   echo "$as_me: program exited with status $ac_status" >&5
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4851
4852 ( exit $ac_status )
4853 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4854 See \`config.log' for more details." >&5
4855 echo "$as_me: error: cannot compute sizeof (void *)
4856 See \`config.log' for more details." >&2;}
4857    { (exit 77); exit 77; }; }
4858 fi
4859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4860 fi
4861 rm -f conftest.val
4862 else
4863   ac_cv_sizeof_void_p=0
4864 fi
4865 fi
4866 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4867 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4868 cat >>confdefs.h <<_ACEOF
4869 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4870 _ACEOF
4871
4872
4873 { echo "$as_me:$LINENO: checking for short" >&5
4874 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
4875 if test "${ac_cv_type_short+set}" = set; then
4876   echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878   cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h.  */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h.  */
4884 $ac_includes_default
4885 typedef short ac__type_new_;
4886 int
4887 main ()
4888 {
4889 if ((ac__type_new_ *) 0)
4890   return 0;
4891 if (sizeof (ac__type_new_))
4892   return 0;
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897 rm -f conftest.$ac_objext
4898 if { (ac_try="$ac_compile"
4899 case "(($ac_try" in
4900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901   *) ac_try_echo=$ac_try;;
4902 esac
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904   (eval "$ac_compile") 2>conftest.er1
4905   ac_status=$?
4906   grep -v '^ *+' conftest.er1 >conftest.err
4907   rm -f conftest.er1
4908   cat conftest.err >&5
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); } &&
4911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4912   { (case "(($ac_try" in
4913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914   *) ac_try_echo=$ac_try;;
4915 esac
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917   (eval "$ac_try") 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); }; } &&
4921          { ac_try='test -s conftest.$ac_objext'
4922   { (case "(($ac_try" in
4923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924   *) ac_try_echo=$ac_try;;
4925 esac
4926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4927   (eval "$ac_try") 2>&5
4928   ac_status=$?
4929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930   (exit $ac_status); }; }; then
4931   ac_cv_type_short=yes
4932 else
4933   echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4935
4936         ac_cv_type_short=no
4937 fi
4938
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 fi
4941 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4942 echo "${ECHO_T}$ac_cv_type_short" >&6; }
4943
4944 { echo "$as_me:$LINENO: checking size of short" >&5
4945 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
4946 if test "${ac_cv_sizeof_short+set}" = set; then
4947   echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949   if test "$ac_cv_type_short" = yes; then
4950   # The cast to long int works around a bug in the HP C Compiler
4951   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4952   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4953   # This bug is HP SR number 8606223364.
4954   if test "$cross_compiling" = yes; then
4955   # Depending upon the size, compute the lo and hi bounds.
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h.  */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h.  */
4962 $ac_includes_default
4963                    typedef short ac__type_sizeof_;
4964 int
4965 main ()
4966 {
4967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4968 test_array [0] = 0
4969
4970   ;
4971   return 0;
4972 }
4973 _ACEOF
4974 rm -f conftest.$ac_objext
4975 if { (ac_try="$ac_compile"
4976 case "(($ac_try" in
4977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978   *) ac_try_echo=$ac_try;;
4979 esac
4980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981   (eval "$ac_compile") 2>conftest.er1
4982   ac_status=$?
4983   grep -v '^ *+' conftest.er1 >conftest.err
4984   rm -f conftest.er1
4985   cat conftest.err >&5
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); } &&
4988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4989   { (case "(($ac_try" in
4990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991   *) ac_try_echo=$ac_try;;
4992 esac
4993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994   (eval "$ac_try") 2>&5
4995   ac_status=$?
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); }; } &&
4998          { ac_try='test -s conftest.$ac_objext'
4999   { (case "(($ac_try" in
5000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001   *) ac_try_echo=$ac_try;;
5002 esac
5003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5004   (eval "$ac_try") 2>&5
5005   ac_status=$?
5006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007   (exit $ac_status); }; }; then
5008   ac_lo=0 ac_mid=0
5009   while :; do
5010     cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h.  */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h.  */
5016 $ac_includes_default
5017                    typedef short ac__type_sizeof_;
5018 int
5019 main ()
5020 {
5021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5022 test_array [0] = 0
5023
5024   ;
5025   return 0;
5026 }
5027 _ACEOF
5028 rm -f conftest.$ac_objext
5029 if { (ac_try="$ac_compile"
5030 case "(($ac_try" in
5031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032   *) ac_try_echo=$ac_try;;
5033 esac
5034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035   (eval "$ac_compile") 2>conftest.er1
5036   ac_status=$?
5037   grep -v '^ *+' conftest.er1 >conftest.err
5038   rm -f conftest.er1
5039   cat conftest.err >&5
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); } &&
5042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5043   { (case "(($ac_try" in
5044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045   *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048   (eval "$ac_try") 2>&5
5049   ac_status=$?
5050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); }; } &&
5052          { ac_try='test -s conftest.$ac_objext'
5053   { (case "(($ac_try" in
5054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055   *) ac_try_echo=$ac_try;;
5056 esac
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058   (eval "$ac_try") 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }; }; then
5062   ac_hi=$ac_mid; break
5063 else
5064   echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5066
5067         ac_lo=`expr $ac_mid + 1`
5068                         if test $ac_lo -le $ac_mid; then
5069                           ac_lo= ac_hi=
5070                           break
5071                         fi
5072                         ac_mid=`expr 2 '*' $ac_mid + 1`
5073 fi
5074
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076   done
5077 else
5078   echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5080
5081         cat >conftest.$ac_ext <<_ACEOF
5082 /* confdefs.h.  */
5083 _ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h.  */
5087 $ac_includes_default
5088                    typedef short ac__type_sizeof_;
5089 int
5090 main ()
5091 {
5092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5093 test_array [0] = 0
5094
5095   ;
5096   return 0;
5097 }
5098 _ACEOF
5099 rm -f conftest.$ac_objext
5100 if { (ac_try="$ac_compile"
5101 case "(($ac_try" in
5102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103   *) ac_try_echo=$ac_try;;
5104 esac
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106   (eval "$ac_compile") 2>conftest.er1
5107   ac_status=$?
5108   grep -v '^ *+' conftest.er1 >conftest.err
5109   rm -f conftest.er1
5110   cat conftest.err >&5
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); } &&
5113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5114   { (case "(($ac_try" in
5115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116   *) ac_try_echo=$ac_try;;
5117 esac
5118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119   (eval "$ac_try") 2>&5
5120   ac_status=$?
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); }; } &&
5123          { ac_try='test -s conftest.$ac_objext'
5124   { (case "(($ac_try" in
5125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126   *) ac_try_echo=$ac_try;;
5127 esac
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129   (eval "$ac_try") 2>&5
5130   ac_status=$?
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); }; }; then
5133   ac_hi=-1 ac_mid=-1
5134   while :; do
5135     cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h.  */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h.  */
5141 $ac_includes_default
5142                    typedef short ac__type_sizeof_;
5143 int
5144 main ()
5145 {
5146 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5147 test_array [0] = 0
5148
5149   ;
5150   return 0;
5151 }
5152 _ACEOF
5153 rm -f conftest.$ac_objext
5154 if { (ac_try="$ac_compile"
5155 case "(($ac_try" in
5156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157   *) ac_try_echo=$ac_try;;
5158 esac
5159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5160   (eval "$ac_compile") 2>conftest.er1
5161   ac_status=$?
5162   grep -v '^ *+' conftest.er1 >conftest.err
5163   rm -f conftest.er1
5164   cat conftest.err >&5
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); } &&
5167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5168   { (case "(($ac_try" in
5169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170   *) ac_try_echo=$ac_try;;
5171 esac
5172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173   (eval "$ac_try") 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; } &&
5177          { ac_try='test -s conftest.$ac_objext'
5178   { (case "(($ac_try" in
5179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180   *) ac_try_echo=$ac_try;;
5181 esac
5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183   (eval "$ac_try") 2>&5
5184   ac_status=$?
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); }; }; then
5187   ac_lo=$ac_mid; break
5188 else
5189   echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5191
5192         ac_hi=`expr '(' $ac_mid ')' - 1`
5193                         if test $ac_mid -le $ac_hi; then
5194                           ac_lo= ac_hi=
5195                           break
5196                         fi
5197                         ac_mid=`expr 2 '*' $ac_mid`
5198 fi
5199
5200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201   done
5202 else
5203   echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5205
5206         ac_lo= ac_hi=
5207 fi
5208
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 fi
5211
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 # Binary search between lo and hi bounds.
5214 while test "x$ac_lo" != "x$ac_hi"; do
5215   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5216   cat >conftest.$ac_ext <<_ACEOF
5217 /* confdefs.h.  */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h.  */
5222 $ac_includes_default
5223                    typedef short ac__type_sizeof_;
5224 int
5225 main ()
5226 {
5227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5228 test_array [0] = 0
5229
5230   ;
5231   return 0;
5232 }
5233 _ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (ac_try="$ac_compile"
5236 case "(($ac_try" in
5237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238   *) ac_try_echo=$ac_try;;
5239 esac
5240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241   (eval "$ac_compile") 2>conftest.er1
5242   ac_status=$?
5243   grep -v '^ *+' conftest.er1 >conftest.err
5244   rm -f conftest.er1
5245   cat conftest.err >&5
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); } &&
5248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5249   { (case "(($ac_try" in
5250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251   *) ac_try_echo=$ac_try;;
5252 esac
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254   (eval "$ac_try") 2>&5
5255   ac_status=$?
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); }; } &&
5258          { ac_try='test -s conftest.$ac_objext'
5259   { (case "(($ac_try" in
5260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261   *) ac_try_echo=$ac_try;;
5262 esac
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264   (eval "$ac_try") 2>&5
5265   ac_status=$?
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); }; }; then
5268   ac_hi=$ac_mid
5269 else
5270   echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5272
5273         ac_lo=`expr '(' $ac_mid ')' + 1`
5274 fi
5275
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 done
5278 case $ac_lo in
5279 ?*) ac_cv_sizeof_short=$ac_lo;;
5280 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5281 See \`config.log' for more details." >&5
5282 echo "$as_me: error: cannot compute sizeof (short)
5283 See \`config.log' for more details." >&2;}
5284    { (exit 77); exit 77; }; } ;;
5285 esac
5286 else
5287   cat >conftest.$ac_ext <<_ACEOF
5288 /* confdefs.h.  */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h.  */
5293 $ac_includes_default
5294                    typedef short ac__type_sizeof_;
5295 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5296 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5297 #include <stdio.h>
5298 #include <stdlib.h>
5299 int
5300 main ()
5301 {
5302
5303   FILE *f = fopen ("conftest.val", "w");
5304   if (! f)
5305     return 1;
5306   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5307     {
5308       long int i = longval ();
5309       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5310         return 1;
5311       fprintf (f, "%ld\n", i);
5312     }
5313   else
5314     {
5315       unsigned long int i = ulongval ();
5316       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5317         return 1;
5318       fprintf (f, "%lu\n", i);
5319     }
5320   return ferror (f) || fclose (f) != 0;
5321
5322   ;
5323   return 0;
5324 }
5325 _ACEOF
5326 rm -f conftest$ac_exeext
5327 if { (ac_try="$ac_link"
5328 case "(($ac_try" in
5329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330   *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333   (eval "$ac_link") 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5337   { (case "(($ac_try" in
5338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339   *) ac_try_echo=$ac_try;;
5340 esac
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342   (eval "$ac_try") 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); }; }; then
5346   ac_cv_sizeof_short=`cat conftest.val`
5347 else
5348   echo "$as_me: program exited with status $ac_status" >&5
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5351
5352 ( exit $ac_status )
5353 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5354 See \`config.log' for more details." >&5
5355 echo "$as_me: error: cannot compute sizeof (short)
5356 See \`config.log' for more details." >&2;}
5357    { (exit 77); exit 77; }; }
5358 fi
5359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5360 fi
5361 rm -f conftest.val
5362 else
5363   ac_cv_sizeof_short=0
5364 fi
5365 fi
5366 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5367 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5368 cat >>confdefs.h <<_ACEOF
5369 #define SIZEOF_SHORT $ac_cv_sizeof_short
5370 _ACEOF
5371
5372
5373 { echo "$as_me:$LINENO: checking for int" >&5
5374 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5375 if test "${ac_cv_type_int+set}" = set; then
5376   echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378   cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h.  */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h.  */
5384 $ac_includes_default
5385 typedef int ac__type_new_;
5386 int
5387 main ()
5388 {
5389 if ((ac__type_new_ *) 0)
5390   return 0;
5391 if (sizeof (ac__type_new_))
5392   return 0;
5393   ;
5394   return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (ac_try="$ac_compile"
5399 case "(($ac_try" in
5400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401   *) ac_try_echo=$ac_try;;
5402 esac
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404   (eval "$ac_compile") 2>conftest.er1
5405   ac_status=$?
5406   grep -v '^ *+' conftest.er1 >conftest.err
5407   rm -f conftest.er1
5408   cat conftest.err >&5
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); } &&
5411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5412   { (case "(($ac_try" in
5413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414   *) ac_try_echo=$ac_try;;
5415 esac
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417   (eval "$ac_try") 2>&5
5418   ac_status=$?
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); }; } &&
5421          { ac_try='test -s conftest.$ac_objext'
5422   { (case "(($ac_try" in
5423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424   *) ac_try_echo=$ac_try;;
5425 esac
5426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427   (eval "$ac_try") 2>&5
5428   ac_status=$?
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); }; }; then
5431   ac_cv_type_int=yes
5432 else
5433   echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436         ac_cv_type_int=no
5437 fi
5438
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 fi
5441 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5442 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5443
5444 { echo "$as_me:$LINENO: checking size of int" >&5
5445 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5446 if test "${ac_cv_sizeof_int+set}" = set; then
5447   echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449   if test "$ac_cv_type_int" = yes; then
5450   # The cast to long int works around a bug in the HP C Compiler
5451   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5452   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5453   # This bug is HP SR number 8606223364.
5454   if test "$cross_compiling" = yes; then
5455   # Depending upon the size, compute the lo and hi bounds.
5456 cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h.  */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h.  */
5462 $ac_includes_default
5463                    typedef int ac__type_sizeof_;
5464 int
5465 main ()
5466 {
5467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5468 test_array [0] = 0
5469
5470   ;
5471   return 0;
5472 }
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (ac_try="$ac_compile"
5476 case "(($ac_try" in
5477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478   *) ac_try_echo=$ac_try;;
5479 esac
5480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481   (eval "$ac_compile") 2>conftest.er1
5482   ac_status=$?
5483   grep -v '^ *+' conftest.er1 >conftest.err
5484   rm -f conftest.er1
5485   cat conftest.err >&5
5486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487   (exit $ac_status); } &&
5488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5489   { (case "(($ac_try" in
5490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491   *) ac_try_echo=$ac_try;;
5492 esac
5493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494   (eval "$ac_try") 2>&5
5495   ac_status=$?
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); }; } &&
5498          { ac_try='test -s conftest.$ac_objext'
5499   { (case "(($ac_try" in
5500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501   *) ac_try_echo=$ac_try;;
5502 esac
5503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504   (eval "$ac_try") 2>&5
5505   ac_status=$?
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); }; }; then
5508   ac_lo=0 ac_mid=0
5509   while :; do
5510     cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h.  */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h.  */
5516 $ac_includes_default
5517                    typedef int ac__type_sizeof_;
5518 int
5519 main ()
5520 {
5521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5522 test_array [0] = 0
5523
5524   ;
5525   return 0;
5526 }
5527 _ACEOF
5528 rm -f conftest.$ac_objext
5529 if { (ac_try="$ac_compile"
5530 case "(($ac_try" in
5531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532   *) ac_try_echo=$ac_try;;
5533 esac
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535   (eval "$ac_compile") 2>conftest.er1
5536   ac_status=$?
5537   grep -v '^ *+' conftest.er1 >conftest.err
5538   rm -f conftest.er1
5539   cat conftest.err >&5
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); } &&
5542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5543   { (case "(($ac_try" in
5544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545   *) ac_try_echo=$ac_try;;
5546 esac
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548   (eval "$ac_try") 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; } &&
5552          { ac_try='test -s conftest.$ac_objext'
5553   { (case "(($ac_try" in
5554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555   *) ac_try_echo=$ac_try;;
5556 esac
5557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5558   (eval "$ac_try") 2>&5
5559   ac_status=$?
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); }; }; then
5562   ac_hi=$ac_mid; break
5563 else
5564   echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5566
5567         ac_lo=`expr $ac_mid + 1`
5568                         if test $ac_lo -le $ac_mid; then
5569                           ac_lo= ac_hi=
5570                           break
5571                         fi
5572                         ac_mid=`expr 2 '*' $ac_mid + 1`
5573 fi
5574
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576   done
5577 else
5578   echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5580
5581         cat >conftest.$ac_ext <<_ACEOF
5582 /* confdefs.h.  */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h.  */
5587 $ac_includes_default
5588                    typedef int ac__type_sizeof_;
5589 int
5590 main ()
5591 {
5592 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5593 test_array [0] = 0
5594
5595   ;
5596   return 0;
5597 }
5598 _ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (ac_try="$ac_compile"
5601 case "(($ac_try" in
5602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603   *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606   (eval "$ac_compile") 2>conftest.er1
5607   ac_status=$?
5608   grep -v '^ *+' conftest.er1 >conftest.err
5609   rm -f conftest.er1
5610   cat conftest.err >&5
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } &&
5613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5614   { (case "(($ac_try" in
5615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616   *) ac_try_echo=$ac_try;;
5617 esac
5618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619   (eval "$ac_try") 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); }; } &&
5623          { ac_try='test -s conftest.$ac_objext'
5624   { (case "(($ac_try" in
5625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626   *) ac_try_echo=$ac_try;;
5627 esac
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629   (eval "$ac_try") 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); }; }; then
5633   ac_hi=-1 ac_mid=-1
5634   while :; do
5635     cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h.  */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h.  */
5641 $ac_includes_default
5642                    typedef int ac__type_sizeof_;
5643 int
5644 main ()
5645 {
5646 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5647 test_array [0] = 0
5648
5649   ;
5650   return 0;
5651 }
5652 _ACEOF
5653 rm -f conftest.$ac_objext
5654 if { (ac_try="$ac_compile"
5655 case "(($ac_try" in
5656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657   *) ac_try_echo=$ac_try;;
5658 esac
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660   (eval "$ac_compile") 2>conftest.er1
5661   ac_status=$?
5662   grep -v '^ *+' conftest.er1 >conftest.err
5663   rm -f conftest.er1
5664   cat conftest.err >&5
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); } &&
5667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5668   { (case "(($ac_try" in
5669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670   *) ac_try_echo=$ac_try;;
5671 esac
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673   (eval "$ac_try") 2>&5
5674   ac_status=$?
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); }; } &&
5677          { ac_try='test -s conftest.$ac_objext'
5678   { (case "(($ac_try" in
5679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680   *) ac_try_echo=$ac_try;;
5681 esac
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683   (eval "$ac_try") 2>&5
5684   ac_status=$?
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); }; }; 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 int 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          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5749   { (case "(($ac_try" in
5750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751   *) ac_try_echo=$ac_try;;
5752 esac
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754   (eval "$ac_try") 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); }; } &&
5758          { ac_try='test -s conftest.$ac_objext'
5759   { (case "(($ac_try" in
5760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761   *) ac_try_echo=$ac_try;;
5762 esac
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764   (eval "$ac_try") 2>&5
5765   ac_status=$?
5766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); }; }; then
5768   ac_hi=$ac_mid
5769 else
5770   echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773         ac_lo=`expr '(' $ac_mid ')' + 1`
5774 fi
5775
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 done
5778 case $ac_lo in
5779 ?*) ac_cv_sizeof_int=$ac_lo;;
5780 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5781 See \`config.log' for more details." >&5
5782 echo "$as_me: error: cannot compute sizeof (int)
5783 See \`config.log' for more details." >&2;}
5784    { (exit 77); exit 77; }; } ;;
5785 esac
5786 else
5787   cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h.  */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h.  */
5793 $ac_includes_default
5794                    typedef int ac__type_sizeof_;
5795 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5796 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5797 #include <stdio.h>
5798 #include <stdlib.h>
5799 int
5800 main ()
5801 {
5802
5803   FILE *f = fopen ("conftest.val", "w");
5804   if (! f)
5805     return 1;
5806   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5807     {
5808       long int i = longval ();
5809       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5810         return 1;
5811       fprintf (f, "%ld\n", i);
5812     }
5813   else
5814     {
5815       unsigned long int i = ulongval ();
5816       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5817         return 1;
5818       fprintf (f, "%lu\n", i);
5819     }
5820   return ferror (f) || fclose (f) != 0;
5821
5822   ;
5823   return 0;
5824 }
5825 _ACEOF
5826 rm -f conftest$ac_exeext
5827 if { (ac_try="$ac_link"
5828 case "(($ac_try" in
5829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830   *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833   (eval "$ac_link") 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5837   { (case "(($ac_try" in
5838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839   *) ac_try_echo=$ac_try;;
5840 esac
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842   (eval "$ac_try") 2>&5
5843   ac_status=$?
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); }; }; then
5846   ac_cv_sizeof_int=`cat conftest.val`
5847 else
5848   echo "$as_me: program exited with status $ac_status" >&5
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 ( exit $ac_status )
5853 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5854 See \`config.log' for more details." >&5
5855 echo "$as_me: error: cannot compute sizeof (int)
5856 See \`config.log' for more details." >&2;}
5857    { (exit 77); exit 77; }; }
5858 fi
5859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5860 fi
5861 rm -f conftest.val
5862 else
5863   ac_cv_sizeof_int=0
5864 fi
5865 fi
5866 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5867 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
5868 cat >>confdefs.h <<_ACEOF
5869 #define SIZEOF_INT $ac_cv_sizeof_int
5870 _ACEOF
5871
5872
5873 { echo "$as_me:$LINENO: checking for long" >&5
5874 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
5875 if test "${ac_cv_type_long+set}" = set; then
5876   echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878   cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h.  */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h.  */
5884 $ac_includes_default
5885 typedef long ac__type_new_;
5886 int
5887 main ()
5888 {
5889 if ((ac__type_new_ *) 0)
5890   return 0;
5891 if (sizeof (ac__type_new_))
5892   return 0;
5893   ;
5894   return 0;
5895 }
5896 _ACEOF
5897 rm -f conftest.$ac_objext
5898 if { (ac_try="$ac_compile"
5899 case "(($ac_try" in
5900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901   *) ac_try_echo=$ac_try;;
5902 esac
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904   (eval "$ac_compile") 2>conftest.er1
5905   ac_status=$?
5906   grep -v '^ *+' conftest.er1 >conftest.err
5907   rm -f conftest.er1
5908   cat conftest.err >&5
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); } &&
5911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5912   { (case "(($ac_try" in
5913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914   *) ac_try_echo=$ac_try;;
5915 esac
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917   (eval "$ac_try") 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; } &&
5921          { ac_try='test -s conftest.$ac_objext'
5922   { (case "(($ac_try" in
5923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924   *) ac_try_echo=$ac_try;;
5925 esac
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927   (eval "$ac_try") 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); }; }; then
5931   ac_cv_type_long=yes
5932 else
5933   echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936         ac_cv_type_long=no
5937 fi
5938
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 fi
5941 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5942 echo "${ECHO_T}$ac_cv_type_long" >&6; }
5943
5944 { echo "$as_me:$LINENO: checking size of long" >&5
5945 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
5946 if test "${ac_cv_sizeof_long+set}" = set; then
5947   echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949   if test "$ac_cv_type_long" = yes; then
5950   # The cast to long int works around a bug in the HP C Compiler
5951   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5952   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5953   # This bug is HP SR number 8606223364.
5954   if test "$cross_compiling" = yes; then
5955   # Depending upon the size, compute the lo and hi bounds.
5956 cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962 $ac_includes_default
5963                    typedef long ac__type_sizeof_;
5964 int
5965 main ()
5966 {
5967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5968 test_array [0] = 0
5969
5970   ;
5971   return 0;
5972 }
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (ac_try="$ac_compile"
5976 case "(($ac_try" in
5977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978   *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981   (eval "$ac_compile") 2>conftest.er1
5982   ac_status=$?
5983   grep -v '^ *+' conftest.er1 >conftest.err
5984   rm -f conftest.er1
5985   cat conftest.err >&5
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); } &&
5988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5989   { (case "(($ac_try" in
5990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991   *) ac_try_echo=$ac_try;;
5992 esac
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994   (eval "$ac_try") 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); }; } &&
5998          { ac_try='test -s conftest.$ac_objext'
5999   { (case "(($ac_try" in
6000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001   *) ac_try_echo=$ac_try;;
6002 esac
6003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004   (eval "$ac_try") 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); }; }; then
6008   ac_lo=0 ac_mid=0
6009   while :; do
6010     cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h.  */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h.  */
6016 $ac_includes_default
6017                    typedef long ac__type_sizeof_;
6018 int
6019 main ()
6020 {
6021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6022 test_array [0] = 0
6023
6024   ;
6025   return 0;
6026 }
6027 _ACEOF
6028 rm -f conftest.$ac_objext
6029 if { (ac_try="$ac_compile"
6030 case "(($ac_try" in
6031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032   *) ac_try_echo=$ac_try;;
6033 esac
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035   (eval "$ac_compile") 2>conftest.er1
6036   ac_status=$?
6037   grep -v '^ *+' conftest.er1 >conftest.err
6038   rm -f conftest.er1
6039   cat conftest.err >&5
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); } &&
6042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6043   { (case "(($ac_try" in
6044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045   *) ac_try_echo=$ac_try;;
6046 esac
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048   (eval "$ac_try") 2>&5
6049   ac_status=$?
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); }; } &&
6052          { ac_try='test -s conftest.$ac_objext'
6053   { (case "(($ac_try" in
6054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055   *) ac_try_echo=$ac_try;;
6056 esac
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058   (eval "$ac_try") 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); }; }; then
6062   ac_hi=$ac_mid; break
6063 else
6064   echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067         ac_lo=`expr $ac_mid + 1`
6068                         if test $ac_lo -le $ac_mid; then
6069                           ac_lo= ac_hi=
6070                           break
6071                         fi
6072                         ac_mid=`expr 2 '*' $ac_mid + 1`
6073 fi
6074
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076   done
6077 else
6078   echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6080
6081         cat >conftest.$ac_ext <<_ACEOF
6082 /* confdefs.h.  */
6083 _ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h.  */
6087 $ac_includes_default
6088                    typedef long ac__type_sizeof_;
6089 int
6090 main ()
6091 {
6092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6093 test_array [0] = 0
6094
6095   ;
6096   return 0;
6097 }
6098 _ACEOF
6099 rm -f conftest.$ac_objext
6100 if { (ac_try="$ac_compile"
6101 case "(($ac_try" in
6102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103   *) ac_try_echo=$ac_try;;
6104 esac
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106   (eval "$ac_compile") 2>conftest.er1
6107   ac_status=$?
6108   grep -v '^ *+' conftest.er1 >conftest.err
6109   rm -f conftest.er1
6110   cat conftest.err >&5
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); } &&
6113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6114   { (case "(($ac_try" in
6115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116   *) ac_try_echo=$ac_try;;
6117 esac
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119   (eval "$ac_try") 2>&5
6120   ac_status=$?
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); }; } &&
6123          { ac_try='test -s conftest.$ac_objext'
6124   { (case "(($ac_try" in
6125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126   *) ac_try_echo=$ac_try;;
6127 esac
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129   (eval "$ac_try") 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); }; }; then
6133   ac_hi=-1 ac_mid=-1
6134   while :; do
6135     cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h.  */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h.  */
6141 $ac_includes_default
6142                    typedef long ac__type_sizeof_;
6143 int
6144 main ()
6145 {
6146 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6147 test_array [0] = 0
6148
6149   ;
6150   return 0;
6151 }
6152 _ACEOF
6153 rm -f conftest.$ac_objext
6154 if { (ac_try="$ac_compile"
6155 case "(($ac_try" in
6156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157   *) ac_try_echo=$ac_try;;
6158 esac
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160   (eval "$ac_compile") 2>conftest.er1
6161   ac_status=$?
6162   grep -v '^ *+' conftest.er1 >conftest.err
6163   rm -f conftest.er1
6164   cat conftest.err >&5
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); } &&
6167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6168   { (case "(($ac_try" in
6169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170   *) ac_try_echo=$ac_try;;
6171 esac
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173   (eval "$ac_try") 2>&5
6174   ac_status=$?
6175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176   (exit $ac_status); }; } &&
6177          { ac_try='test -s conftest.$ac_objext'
6178   { (case "(($ac_try" in
6179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180   *) ac_try_echo=$ac_try;;
6181 esac
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183   (eval "$ac_try") 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); }; }; then
6187   ac_lo=$ac_mid; break
6188 else
6189   echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192         ac_hi=`expr '(' $ac_mid ')' - 1`
6193                         if test $ac_mid -le $ac_hi; then
6194                           ac_lo= ac_hi=
6195                           break
6196                         fi
6197                         ac_mid=`expr 2 '*' $ac_mid`
6198 fi
6199
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201   done
6202 else
6203   echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6205
6206         ac_lo= ac_hi=
6207 fi
6208
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210 fi
6211
6212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213 # Binary search between lo and hi bounds.
6214 while test "x$ac_lo" != "x$ac_hi"; do
6215   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6216   cat >conftest.$ac_ext <<_ACEOF
6217 /* confdefs.h.  */
6218 _ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h.  */
6222 $ac_includes_default
6223                    typedef long ac__type_sizeof_;
6224 int
6225 main ()
6226 {
6227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6228 test_array [0] = 0
6229
6230   ;
6231   return 0;
6232 }
6233 _ACEOF
6234 rm -f conftest.$ac_objext
6235 if { (ac_try="$ac_compile"
6236 case "(($ac_try" in
6237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238   *) ac_try_echo=$ac_try;;
6239 esac
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241   (eval "$ac_compile") 2>conftest.er1
6242   ac_status=$?
6243   grep -v '^ *+' conftest.er1 >conftest.err
6244   rm -f conftest.er1
6245   cat conftest.err >&5
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); } &&
6248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6249   { (case "(($ac_try" in
6250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251   *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254   (eval "$ac_try") 2>&5
6255   ac_status=$?
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); }; } &&
6258          { ac_try='test -s conftest.$ac_objext'
6259   { (case "(($ac_try" in
6260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261   *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264   (eval "$ac_try") 2>&5
6265   ac_status=$?
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); }; }; then
6268   ac_hi=$ac_mid
6269 else
6270   echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6272
6273         ac_lo=`expr '(' $ac_mid ')' + 1`
6274 fi
6275
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 done
6278 case $ac_lo in
6279 ?*) ac_cv_sizeof_long=$ac_lo;;
6280 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6281 See \`config.log' for more details." >&5
6282 echo "$as_me: error: cannot compute sizeof (long)
6283 See \`config.log' for more details." >&2;}
6284    { (exit 77); exit 77; }; } ;;
6285 esac
6286 else
6287   cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h.  */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h.  */
6293 $ac_includes_default
6294                    typedef long ac__type_sizeof_;
6295 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6296 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6297 #include <stdio.h>
6298 #include <stdlib.h>
6299 int
6300 main ()
6301 {
6302
6303   FILE *f = fopen ("conftest.val", "w");
6304   if (! f)
6305     return 1;
6306   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6307     {
6308       long int i = longval ();
6309       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6310         return 1;
6311       fprintf (f, "%ld\n", i);
6312     }
6313   else
6314     {
6315       unsigned long int i = ulongval ();
6316       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6317         return 1;
6318       fprintf (f, "%lu\n", i);
6319     }
6320   return ferror (f) || fclose (f) != 0;
6321
6322   ;
6323   return 0;
6324 }
6325 _ACEOF
6326 rm -f conftest$ac_exeext
6327 if { (ac_try="$ac_link"
6328 case "(($ac_try" in
6329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330   *) ac_try_echo=$ac_try;;
6331 esac
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333   (eval "$ac_link") 2>&5
6334   ac_status=$?
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6337   { (case "(($ac_try" in
6338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339   *) ac_try_echo=$ac_try;;
6340 esac
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342   (eval "$ac_try") 2>&5
6343   ac_status=$?
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); }; }; then
6346   ac_cv_sizeof_long=`cat conftest.val`
6347 else
6348   echo "$as_me: program exited with status $ac_status" >&5
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6351
6352 ( exit $ac_status )
6353 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6354 See \`config.log' for more details." >&5
6355 echo "$as_me: error: cannot compute sizeof (long)
6356 See \`config.log' for more details." >&2;}
6357    { (exit 77); exit 77; }; }
6358 fi
6359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6360 fi
6361 rm -f conftest.val
6362 else
6363   ac_cv_sizeof_long=0
6364 fi
6365 fi
6366 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6367 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6368 cat >>confdefs.h <<_ACEOF
6369 #define SIZEOF_LONG $ac_cv_sizeof_long
6370 _ACEOF
6371
6372
6373 { echo "$as_me:$LINENO: checking for long long" >&5
6374 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6375 if test "${ac_cv_type_long_long+set}" = set; then
6376   echo $ECHO_N "(cached) $ECHO_C" >&6
6377 else
6378   cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h.  */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h.  */
6384 $ac_includes_default
6385 typedef long long ac__type_new_;
6386 int
6387 main ()
6388 {
6389 if ((ac__type_new_ *) 0)
6390   return 0;
6391 if (sizeof (ac__type_new_))
6392   return 0;
6393   ;
6394   return 0;
6395 }
6396 _ACEOF
6397 rm -f conftest.$ac_objext
6398 if { (ac_try="$ac_compile"
6399 case "(($ac_try" in
6400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401   *) ac_try_echo=$ac_try;;
6402 esac
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404   (eval "$ac_compile") 2>conftest.er1
6405   ac_status=$?
6406   grep -v '^ *+' conftest.er1 >conftest.err
6407   rm -f conftest.er1
6408   cat conftest.err >&5
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); } &&
6411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6412   { (case "(($ac_try" in
6413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414   *) ac_try_echo=$ac_try;;
6415 esac
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417   (eval "$ac_try") 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; } &&
6421          { ac_try='test -s conftest.$ac_objext'
6422   { (case "(($ac_try" in
6423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424   *) ac_try_echo=$ac_try;;
6425 esac
6426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6427   (eval "$ac_try") 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); }; }; then
6431   ac_cv_type_long_long=yes
6432 else
6433   echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6435
6436         ac_cv_type_long_long=no
6437 fi
6438
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 fi
6441 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6442 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6443 if test $ac_cv_type_long_long = yes; then
6444
6445 cat >>confdefs.h <<_ACEOF
6446 #define HAVE_LONG_LONG 1
6447 _ACEOF
6448
6449 { echo "$as_me:$LINENO: checking for long long" >&5
6450 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6451 if test "${ac_cv_type_long_long+set}" = set; then
6452   echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
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 long long ac__type_new_;
6462 int
6463 main ()
6464 {
6465 if ((ac__type_new_ *) 0)
6466   return 0;
6467 if (sizeof (ac__type_new_))
6468   return 0;
6469   ;
6470   return 0;
6471 }
6472 _ACEOF
6473 rm -f conftest.$ac_objext
6474 if { (ac_try="$ac_compile"
6475 case "(($ac_try" in
6476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477   *) ac_try_echo=$ac_try;;
6478 esac
6479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480   (eval "$ac_compile") 2>conftest.er1
6481   ac_status=$?
6482   grep -v '^ *+' conftest.er1 >conftest.err
6483   rm -f conftest.er1
6484   cat conftest.err >&5
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); } &&
6487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6488   { (case "(($ac_try" in
6489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490   *) ac_try_echo=$ac_try;;
6491 esac
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493   (eval "$ac_try") 2>&5
6494   ac_status=$?
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); }; } &&
6497          { ac_try='test -s conftest.$ac_objext'
6498   { (case "(($ac_try" in
6499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500   *) ac_try_echo=$ac_try;;
6501 esac
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503   (eval "$ac_try") 2>&5
6504   ac_status=$?
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); }; }; then
6507   ac_cv_type_long_long=yes
6508 else
6509   echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6511
6512         ac_cv_type_long_long=no
6513 fi
6514
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 fi
6517 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6518 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6519
6520 { echo "$as_me:$LINENO: checking size of long long" >&5
6521 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6522 if test "${ac_cv_sizeof_long_long+set}" = set; then
6523   echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525   if test "$ac_cv_type_long_long" = yes; then
6526   # The cast to long int works around a bug in the HP C Compiler
6527   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6528   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6529   # This bug is HP SR number 8606223364.
6530   if test "$cross_compiling" = yes; then
6531   # Depending upon the size, compute the lo and hi bounds.
6532 cat >conftest.$ac_ext <<_ACEOF
6533 /* confdefs.h.  */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h.  */
6538 $ac_includes_default
6539                    typedef long long ac__type_sizeof_;
6540 int
6541 main ()
6542 {
6543 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6544 test_array [0] = 0
6545
6546   ;
6547   return 0;
6548 }
6549 _ACEOF
6550 rm -f conftest.$ac_objext
6551 if { (ac_try="$ac_compile"
6552 case "(($ac_try" in
6553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554   *) ac_try_echo=$ac_try;;
6555 esac
6556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557   (eval "$ac_compile") 2>conftest.er1
6558   ac_status=$?
6559   grep -v '^ *+' conftest.er1 >conftest.err
6560   rm -f conftest.er1
6561   cat conftest.err >&5
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); } &&
6564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
6571   ac_status=$?
6572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573   (exit $ac_status); }; } &&
6574          { ac_try='test -s conftest.$ac_objext'
6575   { (case "(($ac_try" in
6576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577   *) ac_try_echo=$ac_try;;
6578 esac
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580   (eval "$ac_try") 2>&5
6581   ac_status=$?
6582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583   (exit $ac_status); }; }; then
6584   ac_lo=0 ac_mid=0
6585   while :; do
6586     cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h.  */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h.  */
6592 $ac_includes_default
6593                    typedef long long ac__type_sizeof_;
6594 int
6595 main ()
6596 {
6597 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6598 test_array [0] = 0
6599
6600   ;
6601   return 0;
6602 }
6603 _ACEOF
6604 rm -f conftest.$ac_objext
6605 if { (ac_try="$ac_compile"
6606 case "(($ac_try" in
6607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608   *) ac_try_echo=$ac_try;;
6609 esac
6610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6611   (eval "$ac_compile") 2>conftest.er1
6612   ac_status=$?
6613   grep -v '^ *+' conftest.er1 >conftest.err
6614   rm -f conftest.er1
6615   cat conftest.err >&5
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); } &&
6618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6619   { (case "(($ac_try" in
6620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621   *) ac_try_echo=$ac_try;;
6622 esac
6623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624   (eval "$ac_try") 2>&5
6625   ac_status=$?
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); }; } &&
6628          { ac_try='test -s conftest.$ac_objext'
6629   { (case "(($ac_try" in
6630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631   *) ac_try_echo=$ac_try;;
6632 esac
6633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6634   (eval "$ac_try") 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); }; }; then
6638   ac_hi=$ac_mid; break
6639 else
6640   echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6642
6643         ac_lo=`expr $ac_mid + 1`
6644                         if test $ac_lo -le $ac_mid; then
6645                           ac_lo= ac_hi=
6646                           break
6647                         fi
6648                         ac_mid=`expr 2 '*' $ac_mid + 1`
6649 fi
6650
6651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652   done
6653 else
6654   echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6656
6657         cat >conftest.$ac_ext <<_ACEOF
6658 /* confdefs.h.  */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h.  */
6663 $ac_includes_default
6664                    typedef long long ac__type_sizeof_;
6665 int
6666 main ()
6667 {
6668 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6669 test_array [0] = 0
6670
6671   ;
6672   return 0;
6673 }
6674 _ACEOF
6675 rm -f conftest.$ac_objext
6676 if { (ac_try="$ac_compile"
6677 case "(($ac_try" in
6678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6679   *) ac_try_echo=$ac_try;;
6680 esac
6681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6682   (eval "$ac_compile") 2>conftest.er1
6683   ac_status=$?
6684   grep -v '^ *+' conftest.er1 >conftest.err
6685   rm -f conftest.er1
6686   cat conftest.err >&5
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); } &&
6689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6690   { (case "(($ac_try" in
6691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692   *) ac_try_echo=$ac_try;;
6693 esac
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695   (eval "$ac_try") 2>&5
6696   ac_status=$?
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); }; } &&
6699          { ac_try='test -s conftest.$ac_objext'
6700   { (case "(($ac_try" in
6701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702   *) ac_try_echo=$ac_try;;
6703 esac
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705   (eval "$ac_try") 2>&5
6706   ac_status=$?
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); }; }; then
6709   ac_hi=-1 ac_mid=-1
6710   while :; do
6711     cat >conftest.$ac_ext <<_ACEOF
6712 /* confdefs.h.  */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h.  */
6717 $ac_includes_default
6718                    typedef long long ac__type_sizeof_;
6719 int
6720 main ()
6721 {
6722 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6723 test_array [0] = 0
6724
6725   ;
6726   return 0;
6727 }
6728 _ACEOF
6729 rm -f conftest.$ac_objext
6730 if { (ac_try="$ac_compile"
6731 case "(($ac_try" in
6732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6733   *) ac_try_echo=$ac_try;;
6734 esac
6735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6736   (eval "$ac_compile") 2>conftest.er1
6737   ac_status=$?
6738   grep -v '^ *+' conftest.er1 >conftest.err
6739   rm -f conftest.er1
6740   cat conftest.err >&5
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); } &&
6743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6744   { (case "(($ac_try" in
6745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746   *) ac_try_echo=$ac_try;;
6747 esac
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749   (eval "$ac_try") 2>&5
6750   ac_status=$?
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); }; } &&
6753          { ac_try='test -s conftest.$ac_objext'
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_lo=$ac_mid; break
6764 else
6765   echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6767
6768         ac_hi=`expr '(' $ac_mid ')' - 1`
6769                         if test $ac_mid -le $ac_hi; then
6770                           ac_lo= ac_hi=
6771                           break
6772                         fi
6773                         ac_mid=`expr 2 '*' $ac_mid`
6774 fi
6775
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777   done
6778 else
6779   echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782         ac_lo= ac_hi=
6783 fi
6784
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 fi
6787
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 # Binary search between lo and hi bounds.
6790 while test "x$ac_lo" != "x$ac_hi"; do
6791   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6792   cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h.  */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h.  */
6798 $ac_includes_default
6799                    typedef long long ac__type_sizeof_;
6800 int
6801 main ()
6802 {
6803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6804 test_array [0] = 0
6805
6806   ;
6807   return 0;
6808 }
6809 _ACEOF
6810 rm -f conftest.$ac_objext
6811 if { (ac_try="$ac_compile"
6812 case "(($ac_try" in
6813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814   *) ac_try_echo=$ac_try;;
6815 esac
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817   (eval "$ac_compile") 2>conftest.er1
6818   ac_status=$?
6819   grep -v '^ *+' conftest.er1 >conftest.err
6820   rm -f conftest.er1
6821   cat conftest.err >&5
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); } &&
6824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6825   { (case "(($ac_try" in
6826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827   *) ac_try_echo=$ac_try;;
6828 esac
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830   (eval "$ac_try") 2>&5
6831   ac_status=$?
6832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833   (exit $ac_status); }; } &&
6834          { ac_try='test -s conftest.$ac_objext'
6835   { (case "(($ac_try" in
6836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837   *) ac_try_echo=$ac_try;;
6838 esac
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840   (eval "$ac_try") 2>&5
6841   ac_status=$?
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); }; }; then
6844   ac_hi=$ac_mid
6845 else
6846   echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6848
6849         ac_lo=`expr '(' $ac_mid ')' + 1`
6850 fi
6851
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853 done
6854 case $ac_lo in
6855 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6856 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6857 See \`config.log' for more details." >&5
6858 echo "$as_me: error: cannot compute sizeof (long long)
6859 See \`config.log' for more details." >&2;}
6860    { (exit 77); exit 77; }; } ;;
6861 esac
6862 else
6863   cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h.  */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h.  */
6869 $ac_includes_default
6870                    typedef long long ac__type_sizeof_;
6871 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6872 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6873 #include <stdio.h>
6874 #include <stdlib.h>
6875 int
6876 main ()
6877 {
6878
6879   FILE *f = fopen ("conftest.val", "w");
6880   if (! f)
6881     return 1;
6882   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6883     {
6884       long int i = longval ();
6885       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6886         return 1;
6887       fprintf (f, "%ld\n", i);
6888     }
6889   else
6890     {
6891       unsigned long int i = ulongval ();
6892       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6893         return 1;
6894       fprintf (f, "%lu\n", i);
6895     }
6896   return ferror (f) || fclose (f) != 0;
6897
6898   ;
6899   return 0;
6900 }
6901 _ACEOF
6902 rm -f conftest$ac_exeext
6903 if { (ac_try="$ac_link"
6904 case "(($ac_try" in
6905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906   *) ac_try_echo=$ac_try;;
6907 esac
6908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6909   (eval "$ac_link") 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6913   { (case "(($ac_try" in
6914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915   *) ac_try_echo=$ac_try;;
6916 esac
6917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918   (eval "$ac_try") 2>&5
6919   ac_status=$?
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); }; }; then
6922   ac_cv_sizeof_long_long=`cat conftest.val`
6923 else
6924   echo "$as_me: program exited with status $ac_status" >&5
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928 ( exit $ac_status )
6929 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6930 See \`config.log' for more details." >&5
6931 echo "$as_me: error: cannot compute sizeof (long long)
6932 See \`config.log' for more details." >&2;}
6933    { (exit 77); exit 77; }; }
6934 fi
6935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6936 fi
6937 rm -f conftest.val
6938 else
6939   ac_cv_sizeof_long_long=0
6940 fi
6941 fi
6942 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6943 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6944 cat >>confdefs.h <<_ACEOF
6945 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6946 _ACEOF
6947
6948
6949 fi
6950
6951 { echo "$as_me:$LINENO: checking for __int64" >&5
6952 echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
6953 if test "${ac_cv_type___int64+set}" = set; then
6954   echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956   cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h.  */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h.  */
6962 $ac_includes_default
6963 typedef __int64 ac__type_new_;
6964 int
6965 main ()
6966 {
6967 if ((ac__type_new_ *) 0)
6968   return 0;
6969 if (sizeof (ac__type_new_))
6970   return 0;
6971   ;
6972   return 0;
6973 }
6974 _ACEOF
6975 rm -f conftest.$ac_objext
6976 if { (ac_try="$ac_compile"
6977 case "(($ac_try" in
6978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979   *) ac_try_echo=$ac_try;;
6980 esac
6981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6982   (eval "$ac_compile") 2>conftest.er1
6983   ac_status=$?
6984   grep -v '^ *+' conftest.er1 >conftest.err
6985   rm -f conftest.er1
6986   cat conftest.err >&5
6987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988   (exit $ac_status); } &&
6989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6990   { (case "(($ac_try" in
6991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6992   *) ac_try_echo=$ac_try;;
6993 esac
6994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6995   (eval "$ac_try") 2>&5
6996   ac_status=$?
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); }; } &&
6999          { ac_try='test -s conftest.$ac_objext'
7000   { (case "(($ac_try" in
7001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002   *) ac_try_echo=$ac_try;;
7003 esac
7004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7005   (eval "$ac_try") 2>&5
7006   ac_status=$?
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); }; }; then
7009   ac_cv_type___int64=yes
7010 else
7011   echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7013
7014         ac_cv_type___int64=no
7015 fi
7016
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 fi
7019 { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
7020 echo "${ECHO_T}$ac_cv_type___int64" >&6; }
7021 if test $ac_cv_type___int64 = yes; then
7022
7023 cat >>confdefs.h <<_ACEOF
7024 #define HAVE___INT64 1
7025 _ACEOF
7026
7027 { echo "$as_me:$LINENO: checking for __int64" >&5
7028 echo $ECHO_N "checking for __int64... $ECHO_C" >&6; }
7029 if test "${ac_cv_type___int64+set}" = set; then
7030   echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032   cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h.  */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h.  */
7038 $ac_includes_default
7039 typedef __int64 ac__type_new_;
7040 int
7041 main ()
7042 {
7043 if ((ac__type_new_ *) 0)
7044   return 0;
7045 if (sizeof (ac__type_new_))
7046   return 0;
7047   ;
7048   return 0;
7049 }
7050 _ACEOF
7051 rm -f conftest.$ac_objext
7052 if { (ac_try="$ac_compile"
7053 case "(($ac_try" in
7054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055   *) ac_try_echo=$ac_try;;
7056 esac
7057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058   (eval "$ac_compile") 2>conftest.er1
7059   ac_status=$?
7060   grep -v '^ *+' conftest.er1 >conftest.err
7061   rm -f conftest.er1
7062   cat conftest.err >&5
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); } &&
7065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7066   { (case "(($ac_try" in
7067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068   *) ac_try_echo=$ac_try;;
7069 esac
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071   (eval "$ac_try") 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); }; } &&
7075          { ac_try='test -s conftest.$ac_objext'
7076   { (case "(($ac_try" in
7077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078   *) ac_try_echo=$ac_try;;
7079 esac
7080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7081   (eval "$ac_try") 2>&5
7082   ac_status=$?
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); }; }; then
7085   ac_cv_type___int64=yes
7086 else
7087   echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7089
7090         ac_cv_type___int64=no
7091 fi
7092
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 fi
7095 { echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
7096 echo "${ECHO_T}$ac_cv_type___int64" >&6; }
7097
7098 { echo "$as_me:$LINENO: checking size of __int64" >&5
7099 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6; }
7100 if test "${ac_cv_sizeof___int64+set}" = set; then
7101   echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103   if test "$ac_cv_type___int64" = yes; then
7104   # The cast to long int works around a bug in the HP C Compiler
7105   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7106   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7107   # This bug is HP SR number 8606223364.
7108   if test "$cross_compiling" = yes; then
7109   # Depending upon the size, compute the lo and hi bounds.
7110 cat >conftest.$ac_ext <<_ACEOF
7111 /* confdefs.h.  */
7112 _ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h.  */
7116 $ac_includes_default
7117                    typedef __int64 ac__type_sizeof_;
7118 int
7119 main ()
7120 {
7121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7122 test_array [0] = 0
7123
7124   ;
7125   return 0;
7126 }
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7130 case "(($ac_try" in
7131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132   *) ac_try_echo=$ac_try;;
7133 esac
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135   (eval "$ac_compile") 2>conftest.er1
7136   ac_status=$?
7137   grep -v '^ *+' conftest.er1 >conftest.err
7138   rm -f conftest.er1
7139   cat conftest.err >&5
7140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141   (exit $ac_status); } &&
7142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7143   { (case "(($ac_try" in
7144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145   *) ac_try_echo=$ac_try;;
7146 esac
7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148   (eval "$ac_try") 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); }; } &&
7152          { ac_try='test -s conftest.$ac_objext'
7153   { (case "(($ac_try" in
7154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7155   *) ac_try_echo=$ac_try;;
7156 esac
7157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7158   (eval "$ac_try") 2>&5
7159   ac_status=$?
7160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161   (exit $ac_status); }; }; then
7162   ac_lo=0 ac_mid=0
7163   while :; do
7164     cat >conftest.$ac_ext <<_ACEOF
7165 /* confdefs.h.  */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h.  */
7170 $ac_includes_default
7171                    typedef __int64 ac__type_sizeof_;
7172 int
7173 main ()
7174 {
7175 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7176 test_array [0] = 0
7177
7178   ;
7179   return 0;
7180 }
7181 _ACEOF
7182 rm -f conftest.$ac_objext
7183 if { (ac_try="$ac_compile"
7184 case "(($ac_try" in
7185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186   *) ac_try_echo=$ac_try;;
7187 esac
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189   (eval "$ac_compile") 2>conftest.er1
7190   ac_status=$?
7191   grep -v '^ *+' conftest.er1 >conftest.err
7192   rm -f conftest.er1
7193   cat conftest.err >&5
7194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195   (exit $ac_status); } &&
7196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7197   { (case "(($ac_try" in
7198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199   *) ac_try_echo=$ac_try;;
7200 esac
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202   (eval "$ac_try") 2>&5
7203   ac_status=$?
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); }; } &&
7206          { ac_try='test -s conftest.$ac_objext'
7207   { (case "(($ac_try" in
7208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209   *) ac_try_echo=$ac_try;;
7210 esac
7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212   (eval "$ac_try") 2>&5
7213   ac_status=$?
7214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); }; }; then
7216   ac_hi=$ac_mid; break
7217 else
7218   echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7220
7221         ac_lo=`expr $ac_mid + 1`
7222                         if test $ac_lo -le $ac_mid; then
7223                           ac_lo= ac_hi=
7224                           break
7225                         fi
7226                         ac_mid=`expr 2 '*' $ac_mid + 1`
7227 fi
7228
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230   done
7231 else
7232   echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7234
7235         cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h.  */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h.  */
7241 $ac_includes_default
7242                    typedef __int64 ac__type_sizeof_;
7243 int
7244 main ()
7245 {
7246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7247 test_array [0] = 0
7248
7249   ;
7250   return 0;
7251 }
7252 _ACEOF
7253 rm -f conftest.$ac_objext
7254 if { (ac_try="$ac_compile"
7255 case "(($ac_try" in
7256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257   *) ac_try_echo=$ac_try;;
7258 esac
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260   (eval "$ac_compile") 2>conftest.er1
7261   ac_status=$?
7262   grep -v '^ *+' conftest.er1 >conftest.err
7263   rm -f conftest.er1
7264   cat conftest.err >&5
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); } &&
7267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7268   { (case "(($ac_try" in
7269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270   *) ac_try_echo=$ac_try;;
7271 esac
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273   (eval "$ac_try") 2>&5
7274   ac_status=$?
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); }; } &&
7277          { ac_try='test -s conftest.$ac_objext'
7278   { (case "(($ac_try" in
7279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280   *) ac_try_echo=$ac_try;;
7281 esac
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283   (eval "$ac_try") 2>&5
7284   ac_status=$?
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); }; }; then
7287   ac_hi=-1 ac_mid=-1
7288   while :; do
7289     cat >conftest.$ac_ext <<_ACEOF
7290 /* confdefs.h.  */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h.  */
7295 $ac_includes_default
7296                    typedef __int64 ac__type_sizeof_;
7297 int
7298 main ()
7299 {
7300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7301 test_array [0] = 0
7302
7303   ;
7304   return 0;
7305 }
7306 _ACEOF
7307 rm -f conftest.$ac_objext
7308 if { (ac_try="$ac_compile"
7309 case "(($ac_try" in
7310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311   *) ac_try_echo=$ac_try;;
7312 esac
7313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7314   (eval "$ac_compile") 2>conftest.er1
7315   ac_status=$?
7316   grep -v '^ *+' conftest.er1 >conftest.err
7317   rm -f conftest.er1
7318   cat conftest.err >&5
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); } &&
7321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7322   { (case "(($ac_try" in
7323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324   *) ac_try_echo=$ac_try;;
7325 esac
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327   (eval "$ac_try") 2>&5
7328   ac_status=$?
7329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330   (exit $ac_status); }; } &&
7331          { ac_try='test -s conftest.$ac_objext'
7332   { (case "(($ac_try" in
7333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334   *) ac_try_echo=$ac_try;;
7335 esac
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337   (eval "$ac_try") 2>&5
7338   ac_status=$?
7339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340   (exit $ac_status); }; }; then
7341   ac_lo=$ac_mid; break
7342 else
7343   echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7345
7346         ac_hi=`expr '(' $ac_mid ')' - 1`
7347                         if test $ac_mid -le $ac_hi; then
7348                           ac_lo= ac_hi=
7349                           break
7350                         fi
7351                         ac_mid=`expr 2 '*' $ac_mid`
7352 fi
7353
7354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355   done
7356 else
7357   echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7359
7360         ac_lo= ac_hi=
7361 fi
7362
7363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7364 fi
7365
7366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 # Binary search between lo and hi bounds.
7368 while test "x$ac_lo" != "x$ac_hi"; do
7369   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7370   cat >conftest.$ac_ext <<_ACEOF
7371 /* confdefs.h.  */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h.  */
7376 $ac_includes_default
7377                    typedef __int64 ac__type_sizeof_;
7378 int
7379 main ()
7380 {
7381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7382 test_array [0] = 0
7383
7384   ;
7385   return 0;
7386 }
7387 _ACEOF
7388 rm -f conftest.$ac_objext
7389 if { (ac_try="$ac_compile"
7390 case "(($ac_try" in
7391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392   *) ac_try_echo=$ac_try;;
7393 esac
7394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7395   (eval "$ac_compile") 2>conftest.er1
7396   ac_status=$?
7397   grep -v '^ *+' conftest.er1 >conftest.err
7398   rm -f conftest.er1
7399   cat conftest.err >&5
7400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401   (exit $ac_status); } &&
7402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7403   { (case "(($ac_try" in
7404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405   *) ac_try_echo=$ac_try;;
7406 esac
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408   (eval "$ac_try") 2>&5
7409   ac_status=$?
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); }; } &&
7412          { ac_try='test -s conftest.$ac_objext'
7413   { (case "(($ac_try" in
7414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415   *) ac_try_echo=$ac_try;;
7416 esac
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418   (eval "$ac_try") 2>&5
7419   ac_status=$?
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); }; }; then
7422   ac_hi=$ac_mid
7423 else
7424   echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7426
7427         ac_lo=`expr '(' $ac_mid ')' + 1`
7428 fi
7429
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431 done
7432 case $ac_lo in
7433 ?*) ac_cv_sizeof___int64=$ac_lo;;
7434 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
7435 See \`config.log' for more details." >&5
7436 echo "$as_me: error: cannot compute sizeof (__int64)
7437 See \`config.log' for more details." >&2;}
7438    { (exit 77); exit 77; }; } ;;
7439 esac
7440 else
7441   cat >conftest.$ac_ext <<_ACEOF
7442 /* confdefs.h.  */
7443 _ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h.  */
7447 $ac_includes_default
7448                    typedef __int64 ac__type_sizeof_;
7449 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7450 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7451 #include <stdio.h>
7452 #include <stdlib.h>
7453 int
7454 main ()
7455 {
7456
7457   FILE *f = fopen ("conftest.val", "w");
7458   if (! f)
7459     return 1;
7460   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7461     {
7462       long int i = longval ();
7463       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7464         return 1;
7465       fprintf (f, "%ld\n", i);
7466     }
7467   else
7468     {
7469       unsigned long int i = ulongval ();
7470       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7471         return 1;
7472       fprintf (f, "%lu\n", i);
7473     }
7474   return ferror (f) || fclose (f) != 0;
7475
7476   ;
7477   return 0;
7478 }
7479 _ACEOF
7480 rm -f conftest$ac_exeext
7481 if { (ac_try="$ac_link"
7482 case "(($ac_try" in
7483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484   *) ac_try_echo=$ac_try;;
7485 esac
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487   (eval "$ac_link") 2>&5
7488   ac_status=$?
7489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7491   { (case "(($ac_try" in
7492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493   *) ac_try_echo=$ac_try;;
7494 esac
7495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496   (eval "$ac_try") 2>&5
7497   ac_status=$?
7498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499   (exit $ac_status); }; }; then
7500   ac_cv_sizeof___int64=`cat conftest.val`
7501 else
7502   echo "$as_me: program exited with status $ac_status" >&5
7503 echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7505
7506 ( exit $ac_status )
7507 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64)
7508 See \`config.log' for more details." >&5
7509 echo "$as_me: error: cannot compute sizeof (__int64)
7510 See \`config.log' for more details." >&2;}
7511    { (exit 77); exit 77; }; }
7512 fi
7513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7514 fi
7515 rm -f conftest.val
7516 else
7517   ac_cv_sizeof___int64=0
7518 fi
7519 fi
7520 { echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
7521 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6; }
7522 cat >>confdefs.h <<_ACEOF
7523 #define SIZEOF___INT64 $ac_cv_sizeof___int64
7524 _ACEOF
7525
7526
7527 fi
7528
7529
7530 # ---------------------
7531 # Warnings and checking
7532 # ---------------------
7533
7534 # Check $CC warning features (if it's GCC).
7535 # We want to use -pedantic, but we don't want warnings about
7536 # * 'long long'
7537 # * variadic macros
7538 # * overlong strings
7539 # So, we only use -pedantic if we can disable those warnings.
7540
7541 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
7542 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6; }
7543 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546   save_CFLAGS="$CFLAGS"
7547   CFLAGS="-Wno-long-long"
7548   cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h.  */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h.  */
7554
7555 _ACEOF
7556 rm -f conftest.$ac_objext
7557 if { (ac_try="$ac_compile"
7558 case "(($ac_try" in
7559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560   *) ac_try_echo=$ac_try;;
7561 esac
7562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7563   (eval "$ac_compile") 2>conftest.er1
7564   ac_status=$?
7565   grep -v '^ *+' conftest.er1 >conftest.err
7566   rm -f conftest.er1
7567   cat conftest.err >&5
7568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569   (exit $ac_status); } &&
7570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7571   { (case "(($ac_try" in
7572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573   *) ac_try_echo=$ac_try;;
7574 esac
7575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576   (eval "$ac_try") 2>&5
7577   ac_status=$?
7578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579   (exit $ac_status); }; } &&
7580          { ac_try='test -s conftest.$ac_objext'
7581   { (case "(($ac_try" in
7582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7583   *) ac_try_echo=$ac_try;;
7584 esac
7585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7586   (eval "$ac_try") 2>&5
7587   ac_status=$?
7588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589   (exit $ac_status); }; }; then
7590   ac_cv_prog_cc_w_no_long_long=yes
7591 else
7592   echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7594
7595         ac_cv_prog_cc_w_no_long_long=no
7596 fi
7597
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599   CFLAGS="$save_CFLAGS"
7600
7601 fi
7602 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
7603 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6; }
7604
7605 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
7606 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6; }
7607 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   save_CFLAGS="$CFLAGS"
7611   CFLAGS="-Wno-variadic-macros"
7612   cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h.  */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h.  */
7618
7619 _ACEOF
7620 rm -f conftest.$ac_objext
7621 if { (ac_try="$ac_compile"
7622 case "(($ac_try" in
7623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624   *) ac_try_echo=$ac_try;;
7625 esac
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627   (eval "$ac_compile") 2>conftest.er1
7628   ac_status=$?
7629   grep -v '^ *+' conftest.er1 >conftest.err
7630   rm -f conftest.er1
7631   cat conftest.err >&5
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); } &&
7634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7635   { (case "(($ac_try" in
7636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637   *) ac_try_echo=$ac_try;;
7638 esac
7639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640   (eval "$ac_try") 2>&5
7641   ac_status=$?
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); }; } &&
7644          { ac_try='test -s conftest.$ac_objext'
7645   { (case "(($ac_try" in
7646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647   *) ac_try_echo=$ac_try;;
7648 esac
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650   (eval "$ac_try") 2>&5
7651   ac_status=$?
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); }; }; then
7654   ac_cv_prog_cc_w_no_variadic_macros=yes
7655 else
7656   echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7658
7659         ac_cv_prog_cc_w_no_variadic_macros=no
7660 fi
7661
7662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663   CFLAGS="$save_CFLAGS"
7664
7665 fi
7666 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
7667 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6; }
7668
7669 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
7670 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6; }
7671 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
7672   echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674   save_CFLAGS="$CFLAGS"
7675   CFLAGS="-Wno-overlength-strings"
7676   cat >conftest.$ac_ext <<_ACEOF
7677 /* confdefs.h.  */
7678 _ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h.  */
7682
7683 _ACEOF
7684 rm -f conftest.$ac_objext
7685 if { (ac_try="$ac_compile"
7686 case "(($ac_try" in
7687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7688   *) ac_try_echo=$ac_try;;
7689 esac
7690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7691   (eval "$ac_compile") 2>conftest.er1
7692   ac_status=$?
7693   grep -v '^ *+' conftest.er1 >conftest.err
7694   rm -f conftest.er1
7695   cat conftest.err >&5
7696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697   (exit $ac_status); } &&
7698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7699   { (case "(($ac_try" in
7700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701   *) ac_try_echo=$ac_try;;
7702 esac
7703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7704   (eval "$ac_try") 2>&5
7705   ac_status=$?
7706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707   (exit $ac_status); }; } &&
7708          { ac_try='test -s conftest.$ac_objext'
7709   { (case "(($ac_try" in
7710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711   *) ac_try_echo=$ac_try;;
7712 esac
7713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7714   (eval "$ac_try") 2>&5
7715   ac_status=$?
7716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717   (exit $ac_status); }; }; then
7718   ac_cv_prog_cc_w_no_overlength_strings=yes
7719 else
7720   echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7722
7723         ac_cv_prog_cc_w_no_overlength_strings=no
7724 fi
7725
7726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727   CFLAGS="$save_CFLAGS"
7728
7729 fi
7730 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
7731 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6; }
7732
7733 strict1_warn=
7734 if test $ac_cv_prog_cc_w_no_long_long = yes \
7735    && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
7736    && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
7737   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7738 fi
7739
7740 # Add -Wold-style-definition if it's accepted
7741 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
7742 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6; }
7743 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
7744   echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746   save_CFLAGS="$CFLAGS"
7747   CFLAGS="-Wold-style-definition"
7748   cat >conftest.$ac_ext <<_ACEOF
7749 /* confdefs.h.  */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h.  */
7754
7755 _ACEOF
7756 rm -f conftest.$ac_objext
7757 if { (ac_try="$ac_compile"
7758 case "(($ac_try" in
7759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7760   *) ac_try_echo=$ac_try;;
7761 esac
7762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7763   (eval "$ac_compile") 2>conftest.er1
7764   ac_status=$?
7765   grep -v '^ *+' conftest.er1 >conftest.err
7766   rm -f conftest.er1
7767   cat conftest.err >&5
7768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769   (exit $ac_status); } &&
7770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7771   { (case "(($ac_try" in
7772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773   *) ac_try_echo=$ac_try;;
7774 esac
7775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776   (eval "$ac_try") 2>&5
7777   ac_status=$?
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); }; } &&
7780          { ac_try='test -s conftest.$ac_objext'
7781   { (case "(($ac_try" in
7782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783   *) ac_try_echo=$ac_try;;
7784 esac
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786   (eval "$ac_try") 2>&5
7787   ac_status=$?
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); }; }; then
7790   ac_cv_prog_cc_w_old_style_definition=yes
7791 else
7792   echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795         ac_cv_prog_cc_w_old_style_definition=no
7796 fi
7797
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799   CFLAGS="$save_CFLAGS"
7800
7801 fi
7802 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
7803 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6; }
7804 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
7805   strict1_warn="${strict1_warn} -Wold-style-definition"
7806 fi
7807
7808 # Add -Wmissing-format-attribute if it's accepted
7809 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
7810 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6; }
7811 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
7812   echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814   save_CFLAGS="$CFLAGS"
7815   CFLAGS="-Wmissing-format-attribute"
7816   cat >conftest.$ac_ext <<_ACEOF
7817 /* confdefs.h.  */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h.  */
7822
7823 _ACEOF
7824 rm -f conftest.$ac_objext
7825 if { (ac_try="$ac_compile"
7826 case "(($ac_try" in
7827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7828   *) ac_try_echo=$ac_try;;
7829 esac
7830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7831   (eval "$ac_compile") 2>conftest.er1
7832   ac_status=$?
7833   grep -v '^ *+' conftest.er1 >conftest.err
7834   rm -f conftest.er1
7835   cat conftest.err >&5
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); } &&
7838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7839   { (case "(($ac_try" in
7840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841   *) ac_try_echo=$ac_try;;
7842 esac
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844   (eval "$ac_try") 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); }; } &&
7848          { ac_try='test -s conftest.$ac_objext'
7849   { (case "(($ac_try" in
7850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851   *) ac_try_echo=$ac_try;;
7852 esac
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854   (eval "$ac_try") 2>&5
7855   ac_status=$?
7856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857   (exit $ac_status); }; }; then
7858   ac_cv_prog_cc_w_missing_format_attribute=yes
7859 else
7860   echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7862
7863         ac_cv_prog_cc_w_missing_format_attribute=no
7864 fi
7865
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867   CFLAGS="$save_CFLAGS"
7868
7869 fi
7870 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
7871 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6; }
7872 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
7873   strict1_warn="${strict1_warn} -Wmissing-format-attribute"
7874 fi
7875
7876 # Enable -Werror, period.
7877 # Check whether --enable-werror_always was given.
7878 if test "${enable_werror_always+set}" = set; then
7879   enableval=$enable_werror_always;
7880 else
7881   enable_werror_always=no
7882 fi
7883
7884 if test x${enable_werror_always} = xyes ; then
7885   strict1_warn="${strict1_warn} -Werror"
7886   WERROR=-Werror
7887 fi
7888
7889
7890
7891 # Get C++ compatibility warning flag, if supported.
7892 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
7893 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6; }
7894 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
7895   echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897   save_CFLAGS="$CFLAGS"
7898   CFLAGS="-Wc++-compat"
7899   cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905
7906 _ACEOF
7907 rm -f conftest.$ac_objext
7908 if { (ac_try="$ac_compile"
7909 case "(($ac_try" in
7910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911   *) ac_try_echo=$ac_try;;
7912 esac
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914   (eval "$ac_compile") 2>conftest.er1
7915   ac_status=$?
7916   grep -v '^ *+' conftest.er1 >conftest.err
7917   rm -f conftest.er1
7918   cat conftest.err >&5
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); } &&
7921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7922   { (case "(($ac_try" in
7923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924   *) ac_try_echo=$ac_try;;
7925 esac
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927   (eval "$ac_try") 2>&5
7928   ac_status=$?
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); }; } &&
7931          { ac_try='test -s conftest.$ac_objext'
7932   { (case "(($ac_try" in
7933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934   *) ac_try_echo=$ac_try;;
7935 esac
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937   (eval "$ac_try") 2>&5
7938   ac_status=$?
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); }; }; then
7941   ac_cv_prog_cc_w_cxx_compat=yes
7942 else
7943   echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7945
7946         ac_cv_prog_cc_w_cxx_compat=no
7947 fi
7948
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950   CFLAGS="$save_CFLAGS"
7951
7952 fi
7953 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
7954 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6; }
7955 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
7956   cxx_compat_warn="-Wc++-compat"
7957 fi
7958
7959
7960
7961 # If the native compiler is GCC, we can enable warnings even in stage1.
7962 # That's useful for people building cross-compilers, or just running a
7963 # quick `make'.
7964 warn_cflags=
7965 if test "x$GCC" = "xyes"; then
7966   warn_cflags='$(GCC_WARN_CFLAGS)'
7967 fi
7968
7969
7970 # Enable -Werror in bootstrap stage2 and later.
7971 is_release=
7972 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7973   is_release=yes
7974 fi
7975 # Check whether --enable-werror was given.
7976 if test "${enable_werror+set}" = set; then
7977   enableval=$enable_werror;
7978 else
7979   if test x$is_release = x ; then
7980   # Default to "yes" on development branches.
7981   enable_werror=yes
7982 else
7983   # Default to "no" on release branches.
7984   enable_werror=no
7985 fi
7986 fi
7987
7988 if test x$enable_werror = xyes ; then
7989   WERROR=-Werror
7990 fi
7991
7992
7993 # Enable expensive internal checks
7994 # Check whether --enable-checking was given.
7995 if test "${enable_checking+set}" = set; then
7996   enableval=$enable_checking; ac_checking_flags="${enableval}"
7997 else
7998
7999 # Determine the default checks.
8000 if test x$is_release = x ; then
8001   ac_checking_flags=yes
8002 else
8003   ac_checking_flags=release
8004 fi
8005 fi
8006
8007 ac_assert_checking=1
8008 ac_checking=
8009 ac_fold_checking=
8010 ac_gc_checking=
8011 ac_gc_always_collect=
8012 ac_rtl_checking=
8013 ac_rtlflag_checking=
8014 ac_runtime_checking=1
8015 ac_tree_checking=
8016 ac_valgrind_checking=
8017 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
8018 for check in $ac_checking_flags
8019 do
8020         case $check in
8021         # these set all the flags to specific states
8022         yes)            ac_assert_checking=1 ; ac_checking=1 ;
8023                         ac_fold_checking= ; ac_gc_checking=1 ;
8024                         ac_gc_always_collect= ; ac_rtl_checking= ;
8025                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
8026                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
8027         no|none)        ac_assert_checking= ; ac_checking= ;
8028                         ac_fold_checking= ; ac_gc_checking= ;
8029                         ac_gc_always_collect= ; ac_rtl_checking= ;
8030                         ac_rtlflag_checking= ; ac_runtime_checking= ;
8031                         ac_tree_checking= ; ac_valgrind_checking= ;;
8032         all)            ac_assert_checking=1 ; ac_checking=1 ;
8033                         ac_fold_checking=1 ; ac_gc_checking=1 ;
8034                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
8035                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
8036                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
8037         release)        ac_assert_checking=1 ; ac_checking= ;
8038                         ac_fold_checking= ; ac_gc_checking= ;
8039                         ac_gc_always_collect= ; ac_rtl_checking= ;
8040                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
8041                         ac_tree_checking= ; ac_valgrind_checking= ;;
8042         # these enable particular checks
8043         assert)         ac_assert_checking=1 ;;
8044         fold)           ac_fold_checking=1 ;;
8045         gc)             ac_gc_checking=1 ;;
8046         gcac)           ac_gc_always_collect=1 ;;
8047         misc)           ac_checking=1 ;;
8048         rtl)            ac_rtl_checking=1 ;;
8049         rtlflag)        ac_rtlflag_checking=1 ;;
8050         runtime)        ac_runtime_checking=1 ;;
8051         tree)           ac_tree_checking=1 ;;
8052         valgrind)       ac_valgrind_checking=1 ;;
8053         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
8054 echo "$as_me: error: unknown check category $check" >&2;}
8055    { (exit 1); exit 1; }; } ;;
8056         esac
8057 done
8058 IFS="$ac_save_IFS"
8059
8060 nocommon_flag=""
8061 if test x$ac_checking != x ; then
8062
8063 cat >>confdefs.h <<\_ACEOF
8064 #define ENABLE_CHECKING 1
8065 _ACEOF
8066
8067   nocommon_flag=-fno-common
8068 fi
8069
8070 if test x$ac_assert_checking != x ; then
8071
8072 cat >>confdefs.h <<\_ACEOF
8073 #define ENABLE_ASSERT_CHECKING 1
8074 _ACEOF
8075
8076 fi
8077
8078 if test x$ac_runtime_checking != x ; then
8079
8080 cat >>confdefs.h <<\_ACEOF
8081 #define ENABLE_RUNTIME_CHECKING 1
8082 _ACEOF
8083
8084 fi
8085 if test x$ac_tree_checking != x ; then
8086
8087 cat >>confdefs.h <<\_ACEOF
8088 #define ENABLE_TREE_CHECKING 1
8089 _ACEOF
8090
8091   TREEBROWSER=tree-browser.o
8092 fi
8093
8094 if test x$ac_rtl_checking != x ; then
8095
8096 cat >>confdefs.h <<\_ACEOF
8097 #define ENABLE_RTL_CHECKING 1
8098 _ACEOF
8099
8100 fi
8101 if test x$ac_rtlflag_checking != x ; then
8102
8103 cat >>confdefs.h <<\_ACEOF
8104 #define ENABLE_RTL_FLAG_CHECKING 1
8105 _ACEOF
8106
8107 fi
8108 if test x$ac_gc_checking != x ; then
8109
8110 cat >>confdefs.h <<\_ACEOF
8111 #define ENABLE_GC_CHECKING 1
8112 _ACEOF
8113
8114 fi
8115 if test x$ac_gc_always_collect != x ; then
8116
8117 cat >>confdefs.h <<\_ACEOF
8118 #define ENABLE_GC_ALWAYS_COLLECT 1
8119 _ACEOF
8120
8121 fi
8122 if test x$ac_fold_checking != x ; then
8123
8124 cat >>confdefs.h <<\_ACEOF
8125 #define ENABLE_FOLD_CHECKING 1
8126 _ACEOF
8127
8128 fi
8129 valgrind_path_defines=
8130 valgrind_command=
8131
8132 if test "${ac_cv_header_valgrind_h+set}" = set; then
8133   { echo "$as_me:$LINENO: checking for valgrind.h" >&5
8134 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6; }
8135 if test "${ac_cv_header_valgrind_h+set}" = set; then
8136   echo $ECHO_N "(cached) $ECHO_C" >&6
8137 fi
8138 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
8139 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6; }
8140 else
8141   # Is the header compilable?
8142 { echo "$as_me:$LINENO: checking valgrind.h usability" >&5
8143 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6; }
8144 cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h.  */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h.  */
8150 $ac_includes_default
8151 #include <valgrind.h>
8152 _ACEOF
8153 rm -f conftest.$ac_objext
8154 if { (ac_try="$ac_compile"
8155 case "(($ac_try" in
8156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157   *) ac_try_echo=$ac_try;;
8158 esac
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160   (eval "$ac_compile") 2>conftest.er1
8161   ac_status=$?
8162   grep -v '^ *+' conftest.er1 >conftest.err
8163   rm -f conftest.er1
8164   cat conftest.err >&5
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); } &&
8167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8168   { (case "(($ac_try" in
8169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170   *) ac_try_echo=$ac_try;;
8171 esac
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173   (eval "$ac_try") 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); }; } &&
8177          { ac_try='test -s conftest.$ac_objext'
8178   { (case "(($ac_try" in
8179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180   *) ac_try_echo=$ac_try;;
8181 esac
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183   (eval "$ac_try") 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; }; then
8187   ac_header_compiler=yes
8188 else
8189   echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8191
8192         ac_header_compiler=no
8193 fi
8194
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8197 echo "${ECHO_T}$ac_header_compiler" >&6; }
8198
8199 # Is the header present?
8200 { echo "$as_me:$LINENO: checking valgrind.h presence" >&5
8201 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6; }
8202 cat >conftest.$ac_ext <<_ACEOF
8203 /* confdefs.h.  */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h.  */
8208 #include <valgrind.h>
8209 _ACEOF
8210 if { (ac_try="$ac_cpp conftest.$ac_ext"
8211 case "(($ac_try" in
8212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213   *) ac_try_echo=$ac_try;;
8214 esac
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8217   ac_status=$?
8218   grep -v '^ *+' conftest.er1 >conftest.err
8219   rm -f conftest.er1
8220   cat conftest.err >&5
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); } >/dev/null; then
8223   if test -s conftest.err; then
8224     ac_cpp_err=$ac_c_preproc_warn_flag
8225     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8226   else
8227     ac_cpp_err=
8228   fi
8229 else
8230   ac_cpp_err=yes
8231 fi
8232 if test -z "$ac_cpp_err"; then
8233   ac_header_preproc=yes
8234 else
8235   echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8237
8238   ac_header_preproc=no
8239 fi
8240
8241 rm -f conftest.err conftest.$ac_ext
8242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8243 echo "${ECHO_T}$ac_header_preproc" >&6; }
8244
8245 # So?  What about this header?
8246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8247   yes:no: )
8248     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
8249 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8250     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
8251 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
8252     ac_header_preproc=yes
8253     ;;
8254   no:yes:* )
8255     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
8256 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
8257     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
8258 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
8259     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
8260 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
8261     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
8262 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8263     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
8264 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
8265     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
8266 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
8267
8268     ;;
8269 esac
8270 { echo "$as_me:$LINENO: checking for valgrind.h" >&5
8271 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6; }
8272 if test "${ac_cv_header_valgrind_h+set}" = set; then
8273   echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275   ac_cv_header_valgrind_h=$ac_header_preproc
8276 fi
8277 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
8278 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6; }
8279
8280 fi
8281 if test $ac_cv_header_valgrind_h = yes; then
8282   have_valgrind_h=yes
8283 else
8284   have_valgrind_h=no
8285 fi
8286
8287
8288
8289 if test x$ac_valgrind_checking != x ; then
8290   # It is certainly possible that there's valgrind but no valgrind.h.
8291   # GCC relies on making annotations so we must have both.
8292   { echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
8293 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6; }
8294   cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h.  */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h.  */
8300 #include <valgrind/memcheck.h>
8301 #ifndef VALGRIND_DISCARD
8302 #error VALGRIND_DISCARD not defined
8303 #endif
8304 _ACEOF
8305 if { (ac_try="$ac_cpp conftest.$ac_ext"
8306 case "(($ac_try" in
8307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308   *) ac_try_echo=$ac_try;;
8309 esac
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8312   ac_status=$?
8313   grep -v '^ *+' conftest.er1 >conftest.err
8314   rm -f conftest.er1
8315   cat conftest.err >&5
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } >/dev/null; then
8318   if test -s conftest.err; then
8319     ac_cpp_err=$ac_c_preproc_warn_flag
8320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8321   else
8322     ac_cpp_err=
8323   fi
8324 else
8325   ac_cpp_err=yes
8326 fi
8327 if test -z "$ac_cpp_err"; then
8328   gcc_cv_header_valgrind_memcheck_h=yes
8329 else
8330   echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8332
8333   gcc_cv_header_valgrind_memcheck_h=no
8334 fi
8335
8336 rm -f conftest.err conftest.$ac_ext
8337   { echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
8338 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6; }
8339   { echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
8340 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6; }
8341   cat >conftest.$ac_ext <<_ACEOF
8342 /* confdefs.h.  */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h.  */
8347 #include <memcheck.h>
8348 #ifndef VALGRIND_DISCARD
8349 #error VALGRIND_DISCARD not defined
8350 #endif
8351 _ACEOF
8352 if { (ac_try="$ac_cpp conftest.$ac_ext"
8353 case "(($ac_try" in
8354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355   *) ac_try_echo=$ac_try;;
8356 esac
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8359   ac_status=$?
8360   grep -v '^ *+' conftest.er1 >conftest.err
8361   rm -f conftest.er1
8362   cat conftest.err >&5
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } >/dev/null; then
8365   if test -s conftest.err; then
8366     ac_cpp_err=$ac_c_preproc_warn_flag
8367     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8368   else
8369     ac_cpp_err=
8370   fi
8371 else
8372   ac_cpp_err=yes
8373 fi
8374 if test -z "$ac_cpp_err"; then
8375   gcc_cv_header_memcheck_h=yes
8376 else
8377   echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8379
8380   gcc_cv_header_memcheck_h=no
8381 fi
8382
8383 rm -f conftest.err conftest.$ac_ext
8384   { echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
8385 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6; }
8386
8387 # Prepare PATH_SEPARATOR.
8388 # The user is always right.
8389 if test "${PATH_SEPARATOR+set}" != set; then
8390   echo "#! /bin/sh" >conf$$.sh
8391   echo  "exit 0"   >>conf$$.sh
8392   chmod +x conf$$.sh
8393   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8394     PATH_SEPARATOR=';'
8395   else
8396     PATH_SEPARATOR=:
8397   fi
8398   rm -f conf$$.sh
8399 fi
8400
8401 # Find out how to test for executable files. Don't use a zero-byte file,
8402 # as systems may use methods other than mode bits to determine executability.
8403 cat >conf$$.file <<_ASEOF
8404 #! /bin/sh
8405 exit 0
8406 _ASEOF
8407 chmod +x conf$$.file
8408 if test -x conf$$.file >/dev/null 2>&1; then
8409   ac_executable_p="test -x"
8410 else
8411   ac_executable_p="test -f"
8412 fi
8413 rm -f conf$$.file
8414
8415 # Extract the first word of "valgrind", so it can be a program name with args.
8416 set dummy valgrind; ac_word=$2
8417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8419 if test "${ac_cv_path_valgrind_path+set}" = set; then
8420   echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422   case "$valgrind_path" in
8423   [\\/]* | ?:[\\/]*)
8424     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
8425     ;;
8426   *)
8427     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8428     for ac_dir in $PATH; do
8429       IFS="$ac_save_IFS"
8430       test -z "$ac_dir" && ac_dir=.
8431       for ac_exec_ext in '' $ac_executable_extensions; do
8432         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8433           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
8434             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
8435             break 2
8436           fi
8437         fi
8438       done
8439     done
8440     IFS="$ac_save_IFS"
8441     ;;
8442 esac
8443 fi
8444 valgrind_path="$ac_cv_path_valgrind_path"
8445 if test -n "$valgrind_path"; then
8446   { echo "$as_me:$LINENO: result: $valgrind_path" >&5
8447 echo "${ECHO_T}$valgrind_path" >&6; }
8448 else
8449   { echo "$as_me:$LINENO: result: no" >&5
8450 echo "${ECHO_T}no" >&6; }
8451 fi
8452
8453   if test "x$valgrind_path" = "x" \
8454     || (test $have_valgrind_h = no \
8455         && test $gcc_cv_header_memcheck_h = no \
8456         && test $gcc_cv_header_valgrind_memcheck_h = no); then
8457         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
8458 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
8459    { (exit 1); exit 1; }; }
8460   fi
8461   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
8462   valgrind_command="$valgrind_path -q"
8463
8464 cat >>confdefs.h <<\_ACEOF
8465 #define ENABLE_VALGRIND_CHECKING 1
8466 _ACEOF
8467
8468   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
8469
8470 cat >>confdefs.h <<\_ACEOF
8471 #define HAVE_VALGRIND_MEMCHECK_H 1
8472 _ACEOF
8473
8474   fi
8475   if test $gcc_cv_header_memcheck_h = yes; then
8476
8477 cat >>confdefs.h <<\_ACEOF
8478 #define HAVE_MEMCHECK_H 1
8479 _ACEOF
8480
8481   fi
8482 fi
8483
8484
8485
8486 # Check whether --enable-mapped-location was given.
8487 if test "${enable_mapped_location+set}" = set; then
8488   enableval=$enable_mapped_location;
8489 else
8490   enable_mapped_location=no
8491 fi
8492
8493
8494 if test "$enable_mapped_location" = yes ; then
8495
8496 cat >>confdefs.h <<\_ACEOF
8497 #define USE_MAPPED_LOCATION 1
8498 _ACEOF
8499
8500 fi
8501
8502 # Enable code coverage collection
8503 # Check whether --enable-coverage was given.
8504 if test "${enable_coverage+set}" = set; then
8505   enableval=$enable_coverage; case "${enableval}" in
8506   yes|noopt)
8507     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
8508     ;;
8509   opt)
8510     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
8511     ;;
8512   no)
8513     # a.k.a. --disable-coverage
8514     coverage_flags=""
8515     ;;
8516   *)
8517     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
8518 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
8519    { (exit 1); exit 1; }; }
8520     ;;
8521 esac
8522 else
8523   coverage_flags=""
8524 fi
8525
8526
8527
8528 # Check whether --enable-gather-detailed-mem-stats was given.
8529 if test "${enable_gather_detailed_mem_stats+set}" = set; then
8530   enableval=$enable_gather_detailed_mem_stats;
8531 else
8532   enable_gather_detailed_mem_stats=no
8533 fi
8534
8535 if test x$enable_gather_detailed_mem_stats = xyes ; then
8536
8537 cat >>confdefs.h <<\_ACEOF
8538 #define GATHER_STATISTICS 1
8539 _ACEOF
8540
8541 fi
8542
8543 # -------------------------------
8544 # Miscenalleous configure options
8545 # -------------------------------
8546
8547 # With stabs
8548
8549 # Check whether --with-stabs was given.
8550 if test "${with_stabs+set}" = set; then
8551   withval=$with_stabs; stabs="$with_stabs"
8552 else
8553   stabs=no
8554 fi
8555
8556
8557 # Determine whether or not multilibs are enabled.
8558 # Check whether --enable-multilib was given.
8559 if test "${enable_multilib+set}" = set; then
8560   enableval=$enable_multilib;
8561 else
8562   enable_multilib=yes
8563 fi
8564
8565
8566
8567 # Enable __cxa_atexit for C++.
8568 # Check whether --enable-__cxa_atexit was given.
8569 if test "${enable___cxa_atexit+set}" = set; then
8570   enableval=$enable___cxa_atexit;
8571 fi
8572
8573
8574 # Enable C extension for decimal float if target supports it.
8575 # Check whether --enable-decimal-float was given.
8576 if test "${enable_decimal_float+set}" = set; then
8577   enableval=$enable_decimal_float;
8578   if test x$enablevar = xyes ; then
8579     case $target in
8580     powerpc*-*-linux* | i?86*-*-linux*)
8581       enable_decimal_float=yes
8582       ;;
8583     *)
8584       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
8585 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
8586       enable_decimal_float=no
8587       ;;
8588     esac
8589   fi
8590
8591 else
8592   enable_decimal_float=no
8593 fi
8594
8595
8596
8597
8598 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
8599
8600 cat >>confdefs.h <<_ACEOF
8601 #define ENABLE_DECIMAL_FLOAT $dfp
8602 _ACEOF
8603
8604
8605 # Enable threads
8606 # Pass with no value to take the default
8607 # Pass with a value to specify a thread package
8608 # Check whether --enable-threads was given.
8609 if test "${enable_threads+set}" = set; then
8610   enableval=$enable_threads;
8611 else
8612   enable_threads=''
8613 fi
8614
8615
8616 # Check whether --enable-tls was given.
8617 if test "${enable_tls+set}" = set; then
8618   enableval=$enable_tls;
8619   case $enable_tls in
8620     yes | no) ;;
8621     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
8622 Valid choices are 'yes' and 'no'." >&5
8623 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
8624 Valid choices are 'yes' and 'no'." >&2;}
8625    { (exit 1); exit 1; }; } ;;
8626   esac
8627
8628 else
8629   enable_tls=''
8630 fi
8631
8632
8633 # Check whether --enable-objc-gc was given.
8634 if test "${enable_objc_gc+set}" = set; then
8635   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8636         objc_boehm_gc=''
8637 else
8638         objc_boehm_gc=1
8639 fi
8640 else
8641   objc_boehm_gc=''
8642 fi
8643
8644
8645
8646 # Check whether --with-dwarf2 was given.
8647 if test "${with_dwarf2+set}" = set; then
8648   withval=$with_dwarf2; dwarf2="$with_dwarf2"
8649 else
8650   dwarf2=no
8651 fi
8652
8653
8654 # Check whether --enable-shared was given.
8655 if test "${enable_shared+set}" = set; then
8656   enableval=$enable_shared;
8657   case $enable_shared in
8658   yes | no) ;;
8659   *)
8660     enable_shared=no
8661     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8662     for pkg in $enableval; do
8663       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8664         enable_shared=yes
8665       fi
8666     done
8667     IFS="$ac_save_ifs"
8668     ;;
8669   esac
8670
8671 else
8672   enable_shared=yes
8673 fi
8674
8675
8676
8677
8678 # Check whether --with-build-sysroot was given.
8679 if test "${with_build_sysroot+set}" = set; then
8680   withval=$with_build_sysroot;
8681 fi
8682
8683
8684
8685 # Check whether --with-sysroot was given.
8686 if test "${with_sysroot+set}" = set; then
8687   withval=$with_sysroot;
8688  case ${with_sysroot} in
8689  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
8690  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
8691  esac
8692
8693  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8694  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
8695
8696  if test "x$exec_prefix" = xNONE; then
8697   if test "x$prefix" = xNONE; then
8698    test_prefix=/usr/local
8699   else
8700    test_prefix=$prefix
8701   fi
8702  else
8703   test_prefix=$exec_prefix
8704  fi
8705  case ${TARGET_SYSTEM_ROOT} in
8706  "${test_prefix}"|"${test_prefix}/"*|\
8707  '${exec_prefix}'|'${exec_prefix}/'*)
8708    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8709    TARGET_SYSTEM_ROOT_DEFINE="$t"
8710    ;;
8711  esac
8712
8713 else
8714
8715  TARGET_SYSTEM_ROOT=
8716  TARGET_SYSTEM_ROOT_DEFINE=
8717  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
8718
8719 fi
8720
8721
8722
8723
8724
8725 # Build with intermodule optimisations
8726 # Check whether --enable-intermodule was given.
8727 if test "${enable_intermodule+set}" = set; then
8728   enableval=$enable_intermodule; case ${enable_intermodule} in
8729   yes) onestep="-onestep";;
8730   *) onestep="";;
8731 esac
8732 else
8733   onestep=""
8734 fi
8735
8736
8737
8738 # Sanity check enable_languages in case someone does not run the toplevel
8739 # configure # script.
8740 # Check whether --enable-languages was given.
8741 if test "${enable_languages+set}" = set; then
8742   enableval=$enable_languages; case ,${enable_languages}, in
8743        ,,|,yes,)
8744                 # go safe -- we cannot be much sure without the toplevel
8745                 # configure's
8746                 # analysis of which target libs are present and usable
8747                 enable_languages=c
8748                 ;;
8749          *,all,*)
8750                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8751 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8752    { (exit 1); exit 1; }; }
8753                 ;;
8754         *,c,*)
8755                 ;;
8756         *)
8757                 enable_languages=c,${enable_languages}
8758                 ;;
8759 esac
8760 else
8761   enable_languages=c
8762 fi
8763
8764
8765 # Used by documentation targets
8766
8767
8768
8769
8770 # -------------------------
8771 # Checks for other programs
8772 # -------------------------
8773
8774 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8775 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8776 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8777 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8778   echo $ECHO_N "(cached) $ECHO_C" >&6
8779 else
8780   cat >conftest.make <<\_ACEOF
8781 SHELL = /bin/sh
8782 all:
8783         @echo '@@@%%%=$(MAKE)=@@@%%%'
8784 _ACEOF
8785 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8786 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8787   *@@@%%%=?*=@@@%%%*)
8788     eval ac_cv_prog_make_${ac_make}_set=yes;;
8789   *)
8790     eval ac_cv_prog_make_${ac_make}_set=no;;
8791 esac
8792 rm -f conftest.make
8793 fi
8794 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8795   { echo "$as_me:$LINENO: result: yes" >&5
8796 echo "${ECHO_T}yes" >&6; }
8797   SET_MAKE=
8798 else
8799   { echo "$as_me:$LINENO: result: no" >&5
8800 echo "${ECHO_T}no" >&6; }
8801   SET_MAKE="MAKE=${MAKE-make}"
8802 fi
8803
8804
8805 # Find some useful tools
8806 for ac_prog in gawk mawk nawk awk
8807 do
8808   # Extract the first word of "$ac_prog", so it can be a program name with args.
8809 set dummy $ac_prog; ac_word=$2
8810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8812 if test "${ac_cv_prog_AWK+set}" = set; then
8813   echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815   if test -n "$AWK"; then
8816   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8817 else
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 for as_dir in $PATH
8820 do
8821   IFS=$as_save_IFS
8822   test -z "$as_dir" && as_dir=.
8823   for ac_exec_ext in '' $ac_executable_extensions; do
8824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8825     ac_cv_prog_AWK="$ac_prog"
8826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8827     break 2
8828   fi
8829 done
8830 done
8831 IFS=$as_save_IFS
8832
8833 fi
8834 fi
8835 AWK=$ac_cv_prog_AWK
8836 if test -n "$AWK"; then
8837   { echo "$as_me:$LINENO: result: $AWK" >&5
8838 echo "${ECHO_T}$AWK" >&6; }
8839 else
8840   { echo "$as_me:$LINENO: result: no" >&5
8841 echo "${ECHO_T}no" >&6; }
8842 fi
8843
8844
8845   test -n "$AWK" && break
8846 done
8847
8848 # We need awk to create options.c and options.h.
8849 # Bail out if it's missing.
8850 case ${AWK} in
8851   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8852 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8853    { (exit 1); exit 1; }; } ;;
8854 esac
8855
8856 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
8857 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
8858 if test "${gcc_cv_prog_LN_S+set}" = set; then
8859   echo $ECHO_N "(cached) $ECHO_C" >&6
8860 else
8861   rm -f conftestdata_t
8862 echo >conftestdata_f
8863 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8864 then
8865   gcc_cv_prog_LN_S="ln -s"
8866 else
8867   if ln conftestdata_f conftestdata_t 2>/dev/null
8868   then
8869     gcc_cv_prog_LN_S=ln
8870   else
8871     if cp -p conftestdata_f conftestdata_t 2>/dev/null
8872     then
8873       gcc_cv_prog_LN_S="cp -p"
8874     else
8875       gcc_cv_prog_LN_S=cp
8876     fi
8877   fi
8878 fi
8879 rm -f conftestdata_f conftestdata_t
8880
8881 fi
8882 LN_S="$gcc_cv_prog_LN_S"
8883 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8884   { echo "$as_me:$LINENO: result: yes" >&5
8885 echo "${ECHO_T}yes" >&6; }
8886 else
8887   if test "$gcc_cv_prog_LN_S" = "ln"; then
8888     { echo "$as_me:$LINENO: result: no, using ln" >&5
8889 echo "${ECHO_T}no, using ln" >&6; }
8890   else
8891     { echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8892 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8893   fi
8894 fi
8895
8896 { echo "$as_me:$LINENO: checking whether ln works" >&5
8897 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
8898 if test "${acx_cv_prog_LN+set}" = set; then
8899   echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901   rm -f conftestdata_t
8902 echo >conftestdata_f
8903 if ln conftestdata_f conftestdata_t 2>/dev/null
8904 then
8905   acx_cv_prog_LN=ln
8906 else
8907   acx_cv_prog_LN=no
8908 fi
8909 rm -f conftestdata_f conftestdata_t
8910
8911 fi
8912 if test $acx_cv_prog_LN = no; then
8913   LN="$LN_S"
8914   { echo "$as_me:$LINENO: result: no, using $LN" >&5
8915 echo "${ECHO_T}no, using $LN" >&6; }
8916 else
8917   LN="$acx_cv_prog_LN"
8918   { echo "$as_me:$LINENO: result: yes" >&5
8919 echo "${ECHO_T}yes" >&6; }
8920 fi
8921
8922 if test -n "$ac_tool_prefix"; then
8923   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8924 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8927 if test "${ac_cv_prog_RANLIB+set}" = set; then
8928   echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930   if test -n "$RANLIB"; then
8931   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8932 else
8933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934 for as_dir in $PATH
8935 do
8936   IFS=$as_save_IFS
8937   test -z "$as_dir" && as_dir=.
8938   for ac_exec_ext in '' $ac_executable_extensions; do
8939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8940     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8942     break 2
8943   fi
8944 done
8945 done
8946 IFS=$as_save_IFS
8947
8948 fi
8949 fi
8950 RANLIB=$ac_cv_prog_RANLIB
8951 if test -n "$RANLIB"; then
8952   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8953 echo "${ECHO_T}$RANLIB" >&6; }
8954 else
8955   { echo "$as_me:$LINENO: result: no" >&5
8956 echo "${ECHO_T}no" >&6; }
8957 fi
8958
8959
8960 fi
8961 if test -z "$ac_cv_prog_RANLIB"; then
8962   ac_ct_RANLIB=$RANLIB
8963   # Extract the first word of "ranlib", so it can be a program name with args.
8964 set dummy ranlib; ac_word=$2
8965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8967 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8968   echo $ECHO_N "(cached) $ECHO_C" >&6
8969 else
8970   if test -n "$ac_ct_RANLIB"; then
8971   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8972 else
8973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974 for as_dir in $PATH
8975 do
8976   IFS=$as_save_IFS
8977   test -z "$as_dir" && as_dir=.
8978   for ac_exec_ext in '' $ac_executable_extensions; do
8979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8980     ac_cv_prog_ac_ct_RANLIB="ranlib"
8981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8982     break 2
8983   fi
8984 done
8985 done
8986 IFS=$as_save_IFS
8987
8988 fi
8989 fi
8990 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8991 if test -n "$ac_ct_RANLIB"; then
8992   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8993 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8994 else
8995   { echo "$as_me:$LINENO: result: no" >&5
8996 echo "${ECHO_T}no" >&6; }
8997 fi
8998
8999   if test "x$ac_ct_RANLIB" = x; then
9000     RANLIB=":"
9001   else
9002     case $cross_compiling:$ac_tool_warned in
9003 yes:)
9004 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9005 whose name does not start with the host triplet.  If you think this
9006 configuration is useful to you, please write to autoconf@gnu.org." >&5
9007 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9008 whose name does not start with the host triplet.  If you think this
9009 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9010 ac_tool_warned=yes ;;
9011 esac
9012     RANLIB=$ac_ct_RANLIB
9013   fi
9014 else
9015   RANLIB="$ac_cv_prog_RANLIB"
9016 fi
9017
9018 case "${host}" in
9019 *-*-darwin*)
9020   # By default, the Darwin ranlib will not treat common symbols as
9021   # definitions when  building the archive table of contents.  Other
9022   # ranlibs do that; pass an option to the Darwin ranlib that makes
9023   # it behave similarly.
9024   ranlib_flags="-c"
9025   ;;
9026 *)
9027   ranlib_flags=""
9028 esac
9029
9030
9031 # Find a good install program.  We prefer a C program (faster),
9032 # so one script is as good as another.  But avoid the broken or
9033 # incompatible versions:
9034 # SysV /etc/install, /usr/sbin/install
9035 # SunOS /usr/etc/install
9036 # IRIX /sbin/install
9037 # AIX /bin/install
9038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9040 # ./install, which can be erroneously created by make from ./install.sh.
9041 { echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
9042 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6; }
9043 if test -z "$INSTALL"; then
9044 if test "${ac_cv_path_install+set}" = set; then
9045   echo $ECHO_N "(cached) $ECHO_C" >&6
9046 else
9047     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
9048   for ac_dir in $PATH; do
9049     # Account for people who put trailing slashes in PATH elements.
9050     case "$ac_dir/" in
9051     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9052     *)
9053       # OSF1 and SCO ODT 3.0 have their own names for install.
9054       for ac_prog in ginstall scoinst install; do
9055         if test -f $ac_dir/$ac_prog; then
9056           if test $ac_prog = install &&
9057             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9058             # AIX install.  It has an incompatible calling convention.
9059             # OSF/1 installbsd also uses dspmsg, but is usable.
9060             :
9061           else
9062             ac_cv_path_install="$ac_dir/$ac_prog -c"
9063             break 2
9064           fi
9065         fi
9066       done
9067       ;;
9068     esac
9069   done
9070   IFS="$ac_save_IFS"
9071
9072 fi
9073   if test "${ac_cv_path_install+set}" = set; then
9074     INSTALL="$ac_cv_path_install"
9075   else
9076     # As a last resort, use the slow shell script.  We don't cache a
9077     # path for INSTALL within a source directory, because that will
9078     # break other packages using the cache if that directory is
9079     # removed, or if the path is relative.
9080     INSTALL="$ac_install_sh"
9081   fi
9082 fi
9083 { echo "$as_me:$LINENO: result: $INSTALL" >&5
9084 echo "${ECHO_T}$INSTALL" >&6; }
9085
9086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9087 # It thinks the first close brace ends the variable substitution.
9088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9089
9090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9091
9092
9093 # See if cmp has --ignore-initial.
9094 { echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
9095 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6; }
9096 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
9097   echo $ECHO_N "(cached) $ECHO_C" >&6
9098 else
9099    echo abfoo >t1
9100   echo cdfoo >t2
9101   gcc_cv_prog_cmp_skip=slowcompare
9102   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
9103     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
9104       :
9105     else
9106       gcc_cv_prog_cmp_skip=gnucompare
9107     fi
9108   fi
9109   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
9110     if cmp t1 t2 2 2 > /dev/null 2>&1; then
9111       if cmp t1 t2 1 1 > /dev/null 2>&1; then
9112         :
9113       else
9114         gcc_cv_prog_cmp_skip=fastcompare
9115       fi
9116     fi
9117   fi
9118   rm t1 t2
9119
9120 fi
9121 { echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
9122 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6; }
9123 make_compare_target=$gcc_cv_prog_cmp_skip
9124
9125
9126
9127 # See if we have the mktemp command.
9128 # Extract the first word of "mktemp", so it can be a program name with args.
9129 set dummy mktemp; ac_word=$2
9130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9132 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
9133   echo $ECHO_N "(cached) $ECHO_C" >&6
9134 else
9135   if test -n "$have_mktemp_command"; then
9136   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
9137 else
9138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9139 for as_dir in $PATH
9140 do
9141   IFS=$as_save_IFS
9142   test -z "$as_dir" && as_dir=.
9143   for ac_exec_ext in '' $ac_executable_extensions; do
9144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9145     ac_cv_prog_have_mktemp_command="yes"
9146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9147     break 2
9148   fi
9149 done
9150 done
9151 IFS=$as_save_IFS
9152
9153   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
9154 fi
9155 fi
9156 have_mktemp_command=$ac_cv_prog_have_mktemp_command
9157 if test -n "$have_mktemp_command"; then
9158   { echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
9159 echo "${ECHO_T}$have_mktemp_command" >&6; }
9160 else
9161   { echo "$as_me:$LINENO: result: no" >&5
9162 echo "${ECHO_T}no" >&6; }
9163 fi
9164
9165
9166
9167 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
9168
9169 # See if makeinfo has been installed and is modern enough
9170 # that we can use it.
9171
9172 ac_executable_extensions="$build_exeext"
9173
9174 # Extract the first word of "makeinfo", so it can be a program name with args.
9175 set dummy makeinfo; ac_word=$2
9176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9178 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
9179   echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181   if test -n "$MAKEINFO"; then
9182   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
9183 else
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185 for as_dir in $PATH
9186 do
9187   IFS=$as_save_IFS
9188   test -z "$as_dir" && as_dir=.
9189   for ac_exec_ext in '' $ac_executable_extensions; do
9190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9191     ac_cv_prog_MAKEINFO="makeinfo"
9192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9193     break 2
9194   fi
9195 done
9196 done
9197 IFS=$as_save_IFS
9198
9199 fi
9200 fi
9201 MAKEINFO=$ac_cv_prog_MAKEINFO
9202 if test -n "$MAKEINFO"; then
9203   { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
9204 echo "${ECHO_T}$MAKEINFO" >&6; }
9205 else
9206   { echo "$as_me:$LINENO: result: no" >&5
9207 echo "${ECHO_T}no" >&6; }
9208 fi
9209
9210
9211 if test -n "$MAKEINFO"; then
9212   # Found it, now check the version.
9213   { echo "$as_me:$LINENO: checking for modern makeinfo" >&5
9214 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6; }
9215 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218     ac_prog_version=`$MAKEINFO --version 2>&1 |
9219                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
9220   echo "configure:9220: version of makeinfo is $ac_prog_version" >&5
9221   case $ac_prog_version in
9222     '')     gcc_cv_prog_makeinfo_modern=no;;
9223     4.[4-9]*)
9224             gcc_cv_prog_makeinfo_modern=yes;;
9225     *)      gcc_cv_prog_makeinfo_modern=no;;
9226   esac
9227
9228 fi
9229 { echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
9230 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6; }
9231 else
9232   gcc_cv_prog_makeinfo_modern=no
9233 fi
9234
9235 if test $gcc_cv_prog_makeinfo_modern = no; then
9236   MAKEINFO="$MISSING makeinfo"
9237   { echo "$as_me:$LINENO: WARNING:
9238 *** Makeinfo is missing or too old.
9239 *** Info documentation will not be built." >&5
9240 echo "$as_me: WARNING:
9241 *** Makeinfo is missing or too old.
9242 *** Info documentation will not be built." >&2;}
9243   BUILD_INFO=
9244 else
9245   BUILD_INFO=info
9246 fi
9247
9248
9249 # Is pod2man recent enough to regenerate manpages?
9250 { echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
9251 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6; }
9252 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
9253   { echo "$as_me:$LINENO: result: yes" >&5
9254 echo "${ECHO_T}yes" >&6; }
9255   GENERATED_MANPAGES=generated-manpages
9256 else
9257   { echo "$as_me:$LINENO: result: no" >&5
9258 echo "${ECHO_T}no" >&6; }
9259   GENERATED_MANPAGES=
9260 fi
9261
9262
9263 # How about lex?
9264 for ac_prog in flex
9265 do
9266   # Extract the first word of "$ac_prog", so it can be a program name with args.
9267 set dummy $ac_prog; ac_word=$2
9268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9270 if test "${ac_cv_prog_FLEX+set}" = set; then
9271   echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273   if test -n "$FLEX"; then
9274   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
9275 else
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 for as_dir in $PATH
9278 do
9279   IFS=$as_save_IFS
9280   test -z "$as_dir" && as_dir=.
9281   for ac_exec_ext in '' $ac_executable_extensions; do
9282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9283     ac_cv_prog_FLEX="$ac_prog"
9284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9285     break 2
9286   fi
9287 done
9288 done
9289 IFS=$as_save_IFS
9290
9291 fi
9292 fi
9293 FLEX=$ac_cv_prog_FLEX
9294 if test -n "$FLEX"; then
9295   { echo "$as_me:$LINENO: result: $FLEX" >&5
9296 echo "${ECHO_T}$FLEX" >&6; }
9297 else
9298   { echo "$as_me:$LINENO: result: no" >&5
9299 echo "${ECHO_T}no" >&6; }
9300 fi
9301
9302
9303   test -n "$FLEX" && break
9304 done
9305 test -n "$FLEX" || FLEX="$MISSING flex"
9306
9307
9308 # Bison?
9309 for ac_prog in bison
9310 do
9311   # Extract the first word of "$ac_prog", so it can be a program name with args.
9312 set dummy $ac_prog; ac_word=$2
9313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9315 if test "${ac_cv_prog_BISON+set}" = set; then
9316   echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318   if test -n "$BISON"; then
9319   ac_cv_prog_BISON="$BISON" # Let the user override the test.
9320 else
9321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9322 for as_dir in $PATH
9323 do
9324   IFS=$as_save_IFS
9325   test -z "$as_dir" && as_dir=.
9326   for ac_exec_ext in '' $ac_executable_extensions; do
9327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9328     ac_cv_prog_BISON="$ac_prog"
9329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9330     break 2
9331   fi
9332 done
9333 done
9334 IFS=$as_save_IFS
9335
9336 fi
9337 fi
9338 BISON=$ac_cv_prog_BISON
9339 if test -n "$BISON"; then
9340   { echo "$as_me:$LINENO: result: $BISON" >&5
9341 echo "${ECHO_T}$BISON" >&6; }
9342 else
9343   { echo "$as_me:$LINENO: result: no" >&5
9344 echo "${ECHO_T}no" >&6; }
9345 fi
9346
9347
9348   test -n "$BISON" && break
9349 done
9350 test -n "$BISON" || BISON="$MISSING bison"
9351
9352
9353 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
9354 # check for build == host before using them.
9355
9356 # NM
9357 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9358   && test -d ../binutils ; then
9359   NM='$(objdir)/../binutils/nm-new'
9360 else
9361   # Extract the first word of "nm", so it can be a program name with args.
9362 set dummy nm; ac_word=$2
9363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9365 if test "${ac_cv_prog_NM+set}" = set; then
9366   echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368   if test -n "$NM"; then
9369   ac_cv_prog_NM="$NM" # Let the user override the test.
9370 else
9371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372 for as_dir in $PATH
9373 do
9374   IFS=$as_save_IFS
9375   test -z "$as_dir" && as_dir=.
9376   for ac_exec_ext in '' $ac_executable_extensions; do
9377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9378     ac_cv_prog_NM="nm"
9379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9380     break 2
9381   fi
9382 done
9383 done
9384 IFS=$as_save_IFS
9385
9386   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9387 fi
9388 fi
9389 NM=$ac_cv_prog_NM
9390 if test -n "$NM"; then
9391   { echo "$as_me:$LINENO: result: $NM" >&5
9392 echo "${ECHO_T}$NM" >&6; }
9393 else
9394   { echo "$as_me:$LINENO: result: no" >&5
9395 echo "${ECHO_T}no" >&6; }
9396 fi
9397
9398
9399 fi
9400
9401 # AR
9402 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9403   && test -d ../binutils ; then
9404   AR='$(objdir)/../binutils/ar'
9405 else
9406   # Extract the first word of "ar", so it can be a program name with args.
9407 set dummy ar; ac_word=$2
9408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9410 if test "${ac_cv_prog_AR+set}" = set; then
9411   echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413   if test -n "$AR"; then
9414   ac_cv_prog_AR="$AR" # Let the user override the test.
9415 else
9416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9417 for as_dir in $PATH
9418 do
9419   IFS=$as_save_IFS
9420   test -z "$as_dir" && as_dir=.
9421   for ac_exec_ext in '' $ac_executable_extensions; do
9422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9423     ac_cv_prog_AR="ar"
9424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9425     break 2
9426   fi
9427 done
9428 done
9429 IFS=$as_save_IFS
9430
9431   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9432 fi
9433 fi
9434 AR=$ac_cv_prog_AR
9435 if test -n "$AR"; then
9436   { echo "$as_me:$LINENO: result: $AR" >&5
9437 echo "${ECHO_T}$AR" >&6; }
9438 else
9439   { echo "$as_me:$LINENO: result: no" >&5
9440 echo "${ECHO_T}no" >&6; }
9441 fi
9442
9443
9444 fi
9445
9446
9447 # --------------------
9448 # Checks for C headers
9449 # --------------------
9450
9451 { echo "$as_me:$LINENO: checking for GNU C library" >&5
9452 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6; }
9453 if test "${gcc_cv_glibc+set}" = set; then
9454   echo $ECHO_N "(cached) $ECHO_C" >&6
9455 else
9456   cat >conftest.$ac_ext <<_ACEOF
9457 /* confdefs.h.  */
9458 _ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h.  */
9462 #include <features.h>
9463 int
9464 main ()
9465 {
9466
9467 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
9468 #error Not a GNU C library system
9469 #endif
9470   ;
9471   return 0;
9472 }
9473 _ACEOF
9474 rm -f conftest.$ac_objext
9475 if { (ac_try="$ac_compile"
9476 case "(($ac_try" in
9477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9478   *) ac_try_echo=$ac_try;;
9479 esac
9480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9481   (eval "$ac_compile") 2>conftest.er1
9482   ac_status=$?
9483   grep -v '^ *+' conftest.er1 >conftest.err
9484   rm -f conftest.er1
9485   cat conftest.err >&5
9486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487   (exit $ac_status); } &&
9488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9489   { (case "(($ac_try" in
9490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491   *) ac_try_echo=$ac_try;;
9492 esac
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494   (eval "$ac_try") 2>&5
9495   ac_status=$?
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); }; } &&
9498          { ac_try='test -s conftest.$ac_objext'
9499   { (case "(($ac_try" in
9500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501   *) ac_try_echo=$ac_try;;
9502 esac
9503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9504   (eval "$ac_try") 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); }; }; then
9508   gcc_cv_glibc=yes
9509 else
9510   echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9512
9513         gcc_cv_glibc=no
9514 fi
9515
9516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9517 fi
9518
9519 { echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
9520 echo "${ECHO_T}$gcc_cv_glibc" >&6; }
9521 if test $gcc_cv_glibc = yes; then
9522
9523 cat >>confdefs.h <<\_ACEOF
9524 #define _GNU_SOURCE 1
9525 _ACEOF
9526
9527 fi
9528
9529 # Need to reject headers which give warnings, so that the -Werror bootstrap
9530 # works later. *sigh*  This needs to come before all header checks.
9531
9532 ac_c_preproc_warn_flag=yes
9533
9534 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9535 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9536 if test "${ac_cv_header_stdc+set}" = set; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539   cat >conftest.$ac_ext <<_ACEOF
9540 /* confdefs.h.  */
9541 _ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h.  */
9545 #include <stdlib.h>
9546 #include <stdarg.h>
9547 #include <string.h>
9548 #include <float.h>
9549
9550 int
9551 main ()
9552 {
9553
9554   ;
9555   return 0;
9556 }
9557 _ACEOF
9558 rm -f conftest.$ac_objext
9559 if { (ac_try="$ac_compile"
9560 case "(($ac_try" in
9561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562   *) ac_try_echo=$ac_try;;
9563 esac
9564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565   (eval "$ac_compile") 2>conftest.er1
9566   ac_status=$?
9567   grep -v '^ *+' conftest.er1 >conftest.err
9568   rm -f conftest.er1
9569   cat conftest.err >&5
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); } &&
9572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9573   { (case "(($ac_try" in
9574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575   *) ac_try_echo=$ac_try;;
9576 esac
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578   (eval "$ac_try") 2>&5
9579   ac_status=$?
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); }; } &&
9582          { ac_try='test -s conftest.$ac_objext'
9583   { (case "(($ac_try" in
9584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585   *) ac_try_echo=$ac_try;;
9586 esac
9587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588   (eval "$ac_try") 2>&5
9589   ac_status=$?
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); }; }; then
9592   ac_cv_header_stdc=yes
9593 else
9594   echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9596
9597         ac_cv_header_stdc=no
9598 fi
9599
9600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9601
9602 if test $ac_cv_header_stdc = yes; then
9603   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9604   cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h.  */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h.  */
9610 #include <string.h>
9611
9612 _ACEOF
9613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9614   $EGREP "memchr" >/dev/null 2>&1; then
9615   :
9616 else
9617   ac_cv_header_stdc=no
9618 fi
9619 rm -f conftest*
9620
9621 fi
9622
9623 if test $ac_cv_header_stdc = yes; then
9624   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9625   cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h.  */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h.  */
9631 #include <stdlib.h>
9632
9633 _ACEOF
9634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9635   $EGREP "free" >/dev/null 2>&1; then
9636   :
9637 else
9638   ac_cv_header_stdc=no
9639 fi
9640 rm -f conftest*
9641
9642 fi
9643
9644 if test $ac_cv_header_stdc = yes; then
9645   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9646   if test "$cross_compiling" = yes; then
9647   :
9648 else
9649   cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h.  */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h.  */
9655 #include <ctype.h>
9656 #include <stdlib.h>
9657 #if ((' ' & 0x0FF) == 0x020)
9658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9660 #else
9661 # define ISLOWER(c) \
9662                    (('a' <= (c) && (c) <= 'i') \
9663                      || ('j' <= (c) && (c) <= 'r') \
9664                      || ('s' <= (c) && (c) <= 'z'))
9665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9666 #endif
9667
9668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9669 int
9670 main ()
9671 {
9672   int i;
9673   for (i = 0; i < 256; i++)
9674     if (XOR (islower (i), ISLOWER (i))
9675         || toupper (i) != TOUPPER (i))
9676       return 2;
9677   return 0;
9678 }
9679 _ACEOF
9680 rm -f conftest$ac_exeext
9681 if { (ac_try="$ac_link"
9682 case "(($ac_try" in
9683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684   *) ac_try_echo=$ac_try;;
9685 esac
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687   (eval "$ac_link") 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9691   { (case "(($ac_try" in
9692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693   *) ac_try_echo=$ac_try;;
9694 esac
9695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696   (eval "$ac_try") 2>&5
9697   ac_status=$?
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); }; }; then
9700   :
9701 else
9702   echo "$as_me: program exited with status $ac_status" >&5
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9705
9706 ( exit $ac_status )
9707 ac_cv_header_stdc=no
9708 fi
9709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9710 fi
9711
9712
9713 fi
9714 fi
9715 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9716 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9717 if test $ac_cv_header_stdc = yes; then
9718
9719 cat >>confdefs.h <<\_ACEOF
9720 #define STDC_HEADERS 1
9721 _ACEOF
9722
9723 fi
9724
9725 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9726 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9727 if test "${ac_cv_header_time+set}" = set; then
9728   echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730   cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h.  */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h.  */
9736 #include <sys/types.h>
9737 #include <sys/time.h>
9738 #include <time.h>
9739
9740 int
9741 main ()
9742 {
9743 if ((struct tm *) 0)
9744 return 0;
9745   ;
9746   return 0;
9747 }
9748 _ACEOF
9749 rm -f conftest.$ac_objext
9750 if { (ac_try="$ac_compile"
9751 case "(($ac_try" in
9752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753   *) ac_try_echo=$ac_try;;
9754 esac
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756   (eval "$ac_compile") 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } &&
9763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9764   { (case "(($ac_try" in
9765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766   *) ac_try_echo=$ac_try;;
9767 esac
9768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769   (eval "$ac_try") 2>&5
9770   ac_status=$?
9771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); }; } &&
9773          { ac_try='test -s conftest.$ac_objext'
9774   { (case "(($ac_try" in
9775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776   *) ac_try_echo=$ac_try;;
9777 esac
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779   (eval "$ac_try") 2>&5
9780   ac_status=$?
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); }; }; then
9783   ac_cv_header_time=yes
9784 else
9785   echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9787
9788         ac_cv_header_time=no
9789 fi
9790
9791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792 fi
9793 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9794 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9795 if test $ac_cv_header_time = yes; then
9796
9797 cat >>confdefs.h <<\_ACEOF
9798 #define TIME_WITH_SYS_TIME 1
9799 _ACEOF
9800
9801 fi
9802
9803 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9804 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
9805 if test "${gcc_cv_header_string+set}" = set; then
9806   echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808   cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h.  */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h.  */
9814 #include <string.h>
9815 #include <strings.h>
9816 int
9817 main ()
9818 {
9819
9820   ;
9821   return 0;
9822 }
9823 _ACEOF
9824 rm -f conftest.$ac_objext
9825 if { (ac_try="$ac_compile"
9826 case "(($ac_try" in
9827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828   *) ac_try_echo=$ac_try;;
9829 esac
9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831   (eval "$ac_compile") 2>conftest.er1
9832   ac_status=$?
9833   grep -v '^ *+' conftest.er1 >conftest.err
9834   rm -f conftest.er1
9835   cat conftest.err >&5
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); } &&
9838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9839   { (case "(($ac_try" in
9840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9841   *) ac_try_echo=$ac_try;;
9842 esac
9843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9844   (eval "$ac_try") 2>&5
9845   ac_status=$?
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); }; } &&
9848          { ac_try='test -s conftest.$ac_objext'
9849   { (case "(($ac_try" in
9850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851   *) ac_try_echo=$ac_try;;
9852 esac
9853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9854   (eval "$ac_try") 2>&5
9855   ac_status=$?
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); }; }; then
9858   gcc_cv_header_string=yes
9859 else
9860   echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9862
9863         gcc_cv_header_string=no
9864 fi
9865
9866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9867 fi
9868 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9869 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
9870 if test $gcc_cv_header_string = yes; then
9871
9872 cat >>confdefs.h <<\_ACEOF
9873 #define STRING_WITH_STRINGS 1
9874 _ACEOF
9875
9876 fi
9877
9878 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9879 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
9880 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9881   echo $ECHO_N "(cached) $ECHO_C" >&6
9882 else
9883   cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h.  */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h.  */
9889 #include <sys/types.h>
9890 #include <sys/wait.h>
9891 #ifndef WEXITSTATUS
9892 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9893 #endif
9894 #ifndef WIFEXITED
9895 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9896 #endif
9897
9898 int
9899 main ()
9900 {
9901   int s;
9902   wait (&s);
9903   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9904   ;
9905   return 0;
9906 }
9907 _ACEOF
9908 rm -f conftest.$ac_objext
9909 if { (ac_try="$ac_compile"
9910 case "(($ac_try" in
9911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912   *) ac_try_echo=$ac_try;;
9913 esac
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915   (eval "$ac_compile") 2>conftest.er1
9916   ac_status=$?
9917   grep -v '^ *+' conftest.er1 >conftest.err
9918   rm -f conftest.er1
9919   cat conftest.err >&5
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); } &&
9922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9923   { (case "(($ac_try" in
9924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925   *) ac_try_echo=$ac_try;;
9926 esac
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928   (eval "$ac_try") 2>&5
9929   ac_status=$?
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); }; } &&
9932          { ac_try='test -s conftest.$ac_objext'
9933   { (case "(($ac_try" in
9934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935   *) ac_try_echo=$ac_try;;
9936 esac
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938   (eval "$ac_try") 2>&5
9939   ac_status=$?
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); }; }; then
9942   ac_cv_header_sys_wait_h=yes
9943 else
9944   echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9946
9947         ac_cv_header_sys_wait_h=no
9948 fi
9949
9950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9951 fi
9952 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9953 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
9954 if test $ac_cv_header_sys_wait_h = yes; then
9955
9956 cat >>confdefs.h <<\_ACEOF
9957 #define HAVE_SYS_WAIT_H 1
9958 _ACEOF
9959
9960 fi
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9985                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9986                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
9987                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9988 do
9989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9993   echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995   cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h.  */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h.  */
10001 #include <$ac_header>
10002 _ACEOF
10003 if { (ac_try="$ac_cpp conftest.$ac_ext"
10004 case "(($ac_try" in
10005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006   *) ac_try_echo=$ac_try;;
10007 esac
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10010   ac_status=$?
10011   grep -v '^ *+' conftest.er1 >conftest.err
10012   rm -f conftest.er1
10013   cat conftest.err >&5
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); } >/dev/null; then
10016   if test -s conftest.err; then
10017     ac_cpp_err=$ac_c_preproc_warn_flag
10018     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10019   else
10020     ac_cpp_err=
10021   fi
10022 else
10023   ac_cpp_err=yes
10024 fi
10025 if test -z "$ac_cpp_err"; then
10026   eval "$as_ac_Header=yes"
10027 else
10028   echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10030
10031   eval "$as_ac_Header=no"
10032 fi
10033
10034 rm -f conftest.err conftest.$ac_ext
10035 fi
10036 ac_res=`eval echo '${'$as_ac_Header'}'`
10037                { echo "$as_me:$LINENO: result: $ac_res" >&5
10038 echo "${ECHO_T}$ac_res" >&6; }
10039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10040   cat >>confdefs.h <<_ACEOF
10041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10042 _ACEOF
10043
10044 fi
10045 done
10046
10047
10048 # Check for thread headers.
10049 { echo "$as_me:$LINENO: checking for thread.h" >&5
10050 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6; }
10051 if test "${ac_cv_header_thread_h+set}" = set; then
10052   echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054   cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h.  */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h.  */
10060 #include <thread.h>
10061 _ACEOF
10062 if { (ac_try="$ac_cpp conftest.$ac_ext"
10063 case "(($ac_try" in
10064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065   *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10069   ac_status=$?
10070   grep -v '^ *+' conftest.er1 >conftest.err
10071   rm -f conftest.er1
10072   cat conftest.err >&5
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); } >/dev/null; then
10075   if test -s conftest.err; then
10076     ac_cpp_err=$ac_c_preproc_warn_flag
10077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10078   else
10079     ac_cpp_err=
10080   fi
10081 else
10082   ac_cpp_err=yes
10083 fi
10084 if test -z "$ac_cpp_err"; then
10085   ac_cv_header_thread_h=yes
10086 else
10087   echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10089
10090   ac_cv_header_thread_h=no
10091 fi
10092
10093 rm -f conftest.err conftest.$ac_ext
10094 fi
10095 { echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
10096 echo "${ECHO_T}$ac_cv_header_thread_h" >&6; }
10097 if test $ac_cv_header_thread_h = yes; then
10098   have_thread_h=yes
10099 else
10100   have_thread_h=
10101 fi
10102
10103 { echo "$as_me:$LINENO: checking for pthread.h" >&5
10104 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
10105 if test "${ac_cv_header_pthread_h+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 #include <pthread.h>
10115 _ACEOF
10116 if { (ac_try="$ac_cpp conftest.$ac_ext"
10117 case "(($ac_try" in
10118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119   *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10123   ac_status=$?
10124   grep -v '^ *+' conftest.er1 >conftest.err
10125   rm -f conftest.er1
10126   cat conftest.err >&5
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); } >/dev/null; then
10129   if test -s conftest.err; then
10130     ac_cpp_err=$ac_c_preproc_warn_flag
10131     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10132   else
10133     ac_cpp_err=
10134   fi
10135 else
10136   ac_cpp_err=yes
10137 fi
10138 if test -z "$ac_cpp_err"; then
10139   ac_cv_header_pthread_h=yes
10140 else
10141   echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10143
10144   ac_cv_header_pthread_h=no
10145 fi
10146
10147 rm -f conftest.err conftest.$ac_ext
10148 fi
10149 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
10150 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
10151 if test $ac_cv_header_pthread_h = yes; then
10152   have_pthread_h=yes
10153 else
10154   have_pthread_h=
10155 fi
10156
10157
10158 # These tests can't be done till we know if we have limits.h.
10159 { echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
10160 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6; }
10161 if test "${gcc_cv_decl_char_bit+set}" = set; then
10162   echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164   cat >conftest.$ac_ext <<_ACEOF
10165 /* confdefs.h.  */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h.  */
10170 #ifdef HAVE_LIMITS_H
10171 #include <limits.h>
10172 #endif
10173 #ifdef CHAR_BIT
10174 found
10175 #endif
10176 _ACEOF
10177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10178   $EGREP "found" >/dev/null 2>&1; then
10179   gcc_cv_decl_char_bit=yes
10180 else
10181   gcc_cv_decl_char_bit=no
10182 fi
10183 rm -f conftest*
10184
10185
10186 fi
10187 { echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
10188 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6; }
10189 if test $gcc_cv_decl_char_bit = no; then
10190   { echo "$as_me:$LINENO: checking number of bits in a byte" >&5
10191 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6; }
10192 if test "${gcc_cv_c_nbby+set}" = set; then
10193   echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195   i=8
10196  gcc_cv_c_nbby=
10197  while test $i -lt 65; do
10198    cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h.  */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h.  */
10204
10205 int
10206 main ()
10207 {
10208 switch(0) {
10209   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
10210   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
10211   ; }
10212   ;
10213   return 0;
10214 }
10215 _ACEOF
10216 rm -f conftest.$ac_objext
10217 if { (ac_try="$ac_compile"
10218 case "(($ac_try" in
10219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220   *) ac_try_echo=$ac_try;;
10221 esac
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223   (eval "$ac_compile") 2>conftest.er1
10224   ac_status=$?
10225   grep -v '^ *+' conftest.er1 >conftest.err
10226   rm -f conftest.er1
10227   cat conftest.err >&5
10228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229   (exit $ac_status); } &&
10230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10231   { (case "(($ac_try" in
10232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233   *) ac_try_echo=$ac_try;;
10234 esac
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236   (eval "$ac_try") 2>&5
10237   ac_status=$?
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); }; } &&
10240          { ac_try='test -s conftest.$ac_objext'
10241   { (case "(($ac_try" in
10242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243   *) ac_try_echo=$ac_try;;
10244 esac
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246   (eval "$ac_try") 2>&5
10247   ac_status=$?
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); }; }; then
10250   gcc_cv_c_nbby=$i; break
10251 else
10252   echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10254
10255
10256 fi
10257
10258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10259    i=`expr $i + 1`
10260  done
10261  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
10262
10263 fi
10264 { echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
10265 echo "${ECHO_T}$gcc_cv_c_nbby" >&6; }
10266 if test $gcc_cv_c_nbby = failed; then
10267   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
10268 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
10269    { (exit 1); exit 1; }; }
10270 else
10271
10272 cat >>confdefs.h <<_ACEOF
10273 #define CHAR_BIT $gcc_cv_c_nbby
10274 _ACEOF
10275
10276 fi
10277 fi
10278 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10279 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
10280 if test "${ac_cv_c_bigendian+set}" = set; then
10281   echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283   # See if sys/param.h defines the BYTE_ORDER macro.
10284 cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h.  */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h.  */
10290 #include <sys/types.h>
10291 #include <sys/param.h>
10292
10293 int
10294 main ()
10295 {
10296 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10297  bogus endian macros
10298 #endif
10299
10300   ;
10301   return 0;
10302 }
10303 _ACEOF
10304 rm -f conftest.$ac_objext
10305 if { (ac_try="$ac_compile"
10306 case "(($ac_try" in
10307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308   *) ac_try_echo=$ac_try;;
10309 esac
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311   (eval "$ac_compile") 2>conftest.er1
10312   ac_status=$?
10313   grep -v '^ *+' conftest.er1 >conftest.err
10314   rm -f conftest.er1
10315   cat conftest.err >&5
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); } &&
10318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10319   { (case "(($ac_try" in
10320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321   *) ac_try_echo=$ac_try;;
10322 esac
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324   (eval "$ac_try") 2>&5
10325   ac_status=$?
10326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327   (exit $ac_status); }; } &&
10328          { ac_try='test -s conftest.$ac_objext'
10329   { (case "(($ac_try" in
10330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331   *) ac_try_echo=$ac_try;;
10332 esac
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334   (eval "$ac_try") 2>&5
10335   ac_status=$?
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); }; }; then
10338   # It does; now see whether it defined to BIG_ENDIAN or not.
10339 cat >conftest.$ac_ext <<_ACEOF
10340 /* confdefs.h.  */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h.  */
10345 #include <sys/types.h>
10346 #include <sys/param.h>
10347
10348 int
10349 main ()
10350 {
10351 #if BYTE_ORDER != BIG_ENDIAN
10352  not big endian
10353 #endif
10354
10355   ;
10356   return 0;
10357 }
10358 _ACEOF
10359 rm -f conftest.$ac_objext
10360 if { (ac_try="$ac_compile"
10361 case "(($ac_try" in
10362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363   *) ac_try_echo=$ac_try;;
10364 esac
10365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10366   (eval "$ac_compile") 2>conftest.er1
10367   ac_status=$?
10368   grep -v '^ *+' conftest.er1 >conftest.err
10369   rm -f conftest.er1
10370   cat conftest.err >&5
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); } &&
10373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10374   { (case "(($ac_try" in
10375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376   *) ac_try_echo=$ac_try;;
10377 esac
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379   (eval "$ac_try") 2>&5
10380   ac_status=$?
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); }; } &&
10383          { ac_try='test -s conftest.$ac_objext'
10384   { (case "(($ac_try" in
10385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386   *) ac_try_echo=$ac_try;;
10387 esac
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389   (eval "$ac_try") 2>&5
10390   ac_status=$?
10391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); }; }; then
10393   ac_cv_c_bigendian=yes
10394 else
10395   echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10397
10398         ac_cv_c_bigendian=no
10399 fi
10400
10401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10402 else
10403   echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10405
10406         # It does not; compile a test program.
10407 if test "$cross_compiling" = yes; then
10408   # try to guess the endianness by grepping values into an object file
10409   ac_cv_c_bigendian=unknown
10410   cat >conftest.$ac_ext <<_ACEOF
10411 /* confdefs.h.  */
10412 _ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h.  */
10416 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10417 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10418 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10419 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10420 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10421 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10422 int
10423 main ()
10424 {
10425  _ascii (); _ebcdic ();
10426   ;
10427   return 0;
10428 }
10429 _ACEOF
10430 rm -f conftest.$ac_objext
10431 if { (ac_try="$ac_compile"
10432 case "(($ac_try" in
10433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434   *) ac_try_echo=$ac_try;;
10435 esac
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437   (eval "$ac_compile") 2>conftest.er1
10438   ac_status=$?
10439   grep -v '^ *+' conftest.er1 >conftest.err
10440   rm -f conftest.er1
10441   cat conftest.err >&5
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); } &&
10444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10445   { (case "(($ac_try" in
10446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447   *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450   (eval "$ac_try") 2>&5
10451   ac_status=$?
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); }; } &&
10454          { ac_try='test -s conftest.$ac_objext'
10455   { (case "(($ac_try" in
10456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457   *) ac_try_echo=$ac_try;;
10458 esac
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460   (eval "$ac_try") 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; }; then
10464   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10465   ac_cv_c_bigendian=yes
10466 fi
10467 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10468   if test "$ac_cv_c_bigendian" = unknown; then
10469     ac_cv_c_bigendian=no
10470   else
10471     # finding both strings is unlikely to happen, but who knows?
10472     ac_cv_c_bigendian=unknown
10473   fi
10474 fi
10475 else
10476   echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10478
10479
10480 fi
10481
10482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10483 else
10484   cat >conftest.$ac_ext <<_ACEOF
10485 /* confdefs.h.  */
10486 _ACEOF
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h.  */
10490 $ac_includes_default
10491 int
10492 main ()
10493 {
10494
10495   /* Are we little or big endian?  From Harbison&Steele.  */
10496   union
10497   {
10498     long int l;
10499     char c[sizeof (long int)];
10500   } u;
10501   u.l = 1;
10502   return u.c[sizeof (long int) - 1] == 1;
10503
10504   ;
10505   return 0;
10506 }
10507 _ACEOF
10508 rm -f conftest$ac_exeext
10509 if { (ac_try="$ac_link"
10510 case "(($ac_try" in
10511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512   *) ac_try_echo=$ac_try;;
10513 esac
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515   (eval "$ac_link") 2>&5
10516   ac_status=$?
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10519   { (case "(($ac_try" in
10520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521   *) ac_try_echo=$ac_try;;
10522 esac
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524   (eval "$ac_try") 2>&5
10525   ac_status=$?
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); }; }; then
10528   ac_cv_c_bigendian=no
10529 else
10530   echo "$as_me: program exited with status $ac_status" >&5
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10533
10534 ( exit $ac_status )
10535 ac_cv_c_bigendian=yes
10536 fi
10537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10538 fi
10539
10540
10541 fi
10542
10543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10544 fi
10545 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10546 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
10547 case $ac_cv_c_bigendian in
10548   yes)
10549
10550 cat >>confdefs.h <<\_ACEOF
10551 #define WORDS_BIGENDIAN 1
10552 _ACEOF
10553  ;;
10554   no)
10555      ;;
10556   *)
10557     { { echo "$as_me:$LINENO: error: unknown endianness
10558 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10559 echo "$as_me: error: unknown endianness
10560 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10561    { (exit 1); exit 1; }; } ;;
10562 esac
10563
10564
10565 # --------
10566 # UNSORTED
10567 # --------
10568
10569 # Stage specific cflags for build.
10570 stage1_cflags=
10571 case $build in
10572 vax-*-*)
10573   if test x$GCC = xyes
10574   then
10575     stage1_cflags="-Wa,-J"
10576   else
10577     stage1_cflags="-J"
10578   fi
10579   ;;
10580 powerpc*-*-darwin*)
10581   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
10582   # sources; use -no-cpp-precomp to get to GNU cpp.
10583   # Apple's GCC has bugs in designated initializer handling, so disable
10584   # that too.
10585   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
10586   ;;
10587 esac
10588
10589
10590 # These libraries may be used by collect2.
10591 # We may need a special search path to get them linked.
10592 { echo "$as_me:$LINENO: checking for collect2 libraries" >&5
10593 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6; }
10594 if test "${gcc_cv_collect2_libs+set}" = set; then
10595   echo $ECHO_N "(cached) $ECHO_C" >&6
10596 else
10597   save_LIBS="$LIBS"
10598 for libs in '' -lld -lmld \
10599                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10600                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10601 do
10602         LIBS="$libs"
10603         cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h.  */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h.  */
10609
10610 /* Override any GCC internal prototype to avoid an error.
10611    Use char because int might match the return type of a GCC
10612    builtin and then its argument prototype would still apply.  */
10613 #ifdef __cplusplus
10614 extern "C"
10615 #endif
10616 char ldopen ();
10617 int
10618 main ()
10619 {
10620 return ldopen ();
10621   ;
10622   return 0;
10623 }
10624 _ACEOF
10625 rm -f conftest.$ac_objext conftest$ac_exeext
10626 if { (ac_try="$ac_link"
10627 case "(($ac_try" in
10628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629   *) ac_try_echo=$ac_try;;
10630 esac
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632   (eval "$ac_link") 2>conftest.er1
10633   ac_status=$?
10634   grep -v '^ *+' conftest.er1 >conftest.err
10635   rm -f conftest.er1
10636   cat conftest.err >&5
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); } &&
10639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10640   { (case "(($ac_try" in
10641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642   *) ac_try_echo=$ac_try;;
10643 esac
10644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645   (eval "$ac_try") 2>&5
10646   ac_status=$?
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); }; } &&
10649          { ac_try='test -s conftest$ac_exeext'
10650   { (case "(($ac_try" in
10651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652   *) ac_try_echo=$ac_try;;
10653 esac
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655   (eval "$ac_try") 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; }; then
10659   gcc_cv_collect2_libs="$libs"; break
10660 else
10661   echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10663
10664
10665 fi
10666
10667 rm -f core conftest.err conftest.$ac_objext \
10668       conftest$ac_exeext conftest.$ac_ext
10669 done
10670 LIBS="$save_LIBS"
10671 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10672 fi
10673 { echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
10674 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6; }
10675 case $gcc_cv_collect2_libs in
10676         "none required")        ;;
10677         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10678 esac
10679
10680
10681 # When building Ada code on Alpha, we need exc_resume which is usually in
10682 # -lexc.  So test for it.
10683 save_LIBS="$LIBS"
10684 LIBS=
10685 { echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
10686 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6; }
10687 if test "${ac_cv_search_exc_resume+set}" = set; then
10688   echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10690   ac_func_search_save_LIBS=$LIBS
10691 cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h.  */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h.  */
10697
10698 /* Override any GCC internal prototype to avoid an error.
10699    Use char because int might match the return type of a GCC
10700    builtin and then its argument prototype would still apply.  */
10701 #ifdef __cplusplus
10702 extern "C"
10703 #endif
10704 char exc_resume ();
10705 int
10706 main ()
10707 {
10708 return exc_resume ();
10709   ;
10710   return 0;
10711 }
10712 _ACEOF
10713 for ac_lib in '' exc; do
10714   if test -z "$ac_lib"; then
10715     ac_res="none required"
10716   else
10717     ac_res=-l$ac_lib
10718     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10719   fi
10720   rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (ac_try="$ac_link"
10722 case "(($ac_try" in
10723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724   *) ac_try_echo=$ac_try;;
10725 esac
10726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727   (eval "$ac_link") 2>conftest.er1
10728   ac_status=$?
10729   grep -v '^ *+' conftest.er1 >conftest.err
10730   rm -f conftest.er1
10731   cat conftest.err >&5
10732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733   (exit $ac_status); } &&
10734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10735   { (case "(($ac_try" in
10736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737   *) ac_try_echo=$ac_try;;
10738 esac
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740   (eval "$ac_try") 2>&5
10741   ac_status=$?
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); }; } &&
10744          { ac_try='test -s conftest$ac_exeext'
10745   { (case "(($ac_try" in
10746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747   *) ac_try_echo=$ac_try;;
10748 esac
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750   (eval "$ac_try") 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); }; }; then
10754   ac_cv_search_exc_resume=$ac_res
10755 else
10756   echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759
10760 fi
10761
10762 rm -f core conftest.err conftest.$ac_objext \
10763       conftest$ac_exeext
10764   if test "${ac_cv_search_exc_resume+set}" = set; then
10765   break
10766 fi
10767 done
10768 if test "${ac_cv_search_exc_resume+set}" = set; then
10769   :
10770 else
10771   ac_cv_search_exc_resume=no
10772 fi
10773 rm conftest.$ac_ext
10774 LIBS=$ac_func_search_save_LIBS
10775 fi
10776 { echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
10777 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6; }
10778 ac_res=$ac_cv_search_exc_resume
10779 if test "$ac_res" != no; then
10780   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10781
10782 fi
10783
10784 GNAT_LIBEXC="$LIBS"
10785 LIBS="$save_LIBS"
10786
10787
10788 # Some systems put ldexp and frexp in libm instead of libc; assume
10789 # they're both in the same place.  jcf-dump needs them.
10790 save_LIBS="$LIBS"
10791 LIBS=
10792 { echo "$as_me:$LINENO: checking for library containing ldexp" >&5
10793 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6; }
10794 if test "${ac_cv_search_ldexp+set}" = set; then
10795   echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797   ac_func_search_save_LIBS=$LIBS
10798 cat >conftest.$ac_ext <<_ACEOF
10799 /* confdefs.h.  */
10800 _ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h.  */
10804
10805 /* Override any GCC internal prototype to avoid an error.
10806    Use char because int might match the return type of a GCC
10807    builtin and then its argument prototype would still apply.  */
10808 #ifdef __cplusplus
10809 extern "C"
10810 #endif
10811 char ldexp ();
10812 int
10813 main ()
10814 {
10815 return ldexp ();
10816   ;
10817   return 0;
10818 }
10819 _ACEOF
10820 for ac_lib in '' m; do
10821   if test -z "$ac_lib"; then
10822     ac_res="none required"
10823   else
10824     ac_res=-l$ac_lib
10825     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10826   fi
10827   rm -f conftest.$ac_objext conftest$ac_exeext
10828 if { (ac_try="$ac_link"
10829 case "(($ac_try" in
10830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831   *) ac_try_echo=$ac_try;;
10832 esac
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834   (eval "$ac_link") 2>conftest.er1
10835   ac_status=$?
10836   grep -v '^ *+' conftest.er1 >conftest.err
10837   rm -f conftest.er1
10838   cat conftest.err >&5
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); } &&
10841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10842   { (case "(($ac_try" in
10843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844   *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847   (eval "$ac_try") 2>&5
10848   ac_status=$?
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); }; } &&
10851          { ac_try='test -s conftest$ac_exeext'
10852   { (case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_try") 2>&5
10858   ac_status=$?
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); }; }; then
10861   ac_cv_search_ldexp=$ac_res
10862 else
10863   echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10865
10866
10867 fi
10868
10869 rm -f core conftest.err conftest.$ac_objext \
10870       conftest$ac_exeext
10871   if test "${ac_cv_search_ldexp+set}" = set; then
10872   break
10873 fi
10874 done
10875 if test "${ac_cv_search_ldexp+set}" = set; then
10876   :
10877 else
10878   ac_cv_search_ldexp=no
10879 fi
10880 rm conftest.$ac_ext
10881 LIBS=$ac_func_search_save_LIBS
10882 fi
10883 { echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10884 echo "${ECHO_T}$ac_cv_search_ldexp" >&6; }
10885 ac_res=$ac_cv_search_ldexp
10886 if test "$ac_res" != no; then
10887   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10888
10889 fi
10890
10891 LDEXP_LIB="$LIBS"
10892 LIBS="$save_LIBS"
10893
10894
10895 # Use <inttypes.h> only if it exists,
10896 # doesn't clash with <sys/types.h>, and declares intmax_t.
10897 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10898 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10899 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10900   echo $ECHO_N "(cached) $ECHO_C" >&6
10901 else
10902   cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h.  */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h.  */
10908 #include <sys/types.h>
10909 #include <inttypes.h>
10910 int
10911 main ()
10912 {
10913 intmax_t i = -1;
10914   ;
10915   return 0;
10916 }
10917 _ACEOF
10918 rm -f conftest.$ac_objext
10919 if { (ac_try="$ac_compile"
10920 case "(($ac_try" in
10921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922   *) ac_try_echo=$ac_try;;
10923 esac
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925   (eval "$ac_compile") 2>conftest.er1
10926   ac_status=$?
10927   grep -v '^ *+' conftest.er1 >conftest.err
10928   rm -f conftest.er1
10929   cat conftest.err >&5
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); } &&
10932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10933   { (case "(($ac_try" in
10934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935   *) ac_try_echo=$ac_try;;
10936 esac
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938   (eval "$ac_try") 2>&5
10939   ac_status=$?
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); }; } &&
10942          { ac_try='test -s conftest.$ac_objext'
10943   { (case "(($ac_try" in
10944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945   *) ac_try_echo=$ac_try;;
10946 esac
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948   (eval "$ac_try") 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); }; }; then
10952   gcc_cv_header_inttypes_h=yes
10953 else
10954   echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10956
10957         gcc_cv_header_inttypes_h=no
10958 fi
10959
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 fi
10962
10963 { echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10964 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6; }
10965 if test $gcc_cv_header_inttypes_h = yes; then
10966
10967 cat >>confdefs.h <<\_ACEOF
10968 #define HAVE_INTTYPES_H 1
10969 _ACEOF
10970
10971 fi
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
11011         sysconf strsignal getrusage nl_langinfo scandir alphasort \
11012         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
11013         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
11014 do
11015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11019   echo $ECHO_N "(cached) $ECHO_C" >&6
11020 else
11021   cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h.  */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h.  */
11027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11029 #define $ac_func innocuous_$ac_func
11030
11031 /* System header to define __stub macros and hopefully few prototypes,
11032     which can conflict with char $ac_func (); below.
11033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11034     <limits.h> exists even on freestanding compilers.  */
11035
11036 #ifdef __STDC__
11037 # include <limits.h>
11038 #else
11039 # include <assert.h>
11040 #endif
11041
11042 #undef $ac_func
11043
11044 /* Override any GCC internal prototype to avoid an error.
11045    Use char because int might match the return type of a GCC
11046    builtin and then its argument prototype would still apply.  */
11047 #ifdef __cplusplus
11048 extern "C"
11049 #endif
11050 char $ac_func ();
11051 /* The GNU C library defines this for functions which it implements
11052     to always fail with ENOSYS.  Some functions are actually named
11053     something starting with __ and the normal name is an alias.  */
11054 #if defined __stub_$ac_func || defined __stub___$ac_func
11055 choke me
11056 #endif
11057
11058 int
11059 main ()
11060 {
11061 return $ac_func ();
11062   ;
11063   return 0;
11064 }
11065 _ACEOF
11066 rm -f conftest.$ac_objext conftest$ac_exeext
11067 if { (ac_try="$ac_link"
11068 case "(($ac_try" in
11069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11070   *) ac_try_echo=$ac_try;;
11071 esac
11072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11073   (eval "$ac_link") 2>conftest.er1
11074   ac_status=$?
11075   grep -v '^ *+' conftest.er1 >conftest.err
11076   rm -f conftest.er1
11077   cat conftest.err >&5
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); } &&
11080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11081   { (case "(($ac_try" in
11082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083   *) ac_try_echo=$ac_try;;
11084 esac
11085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086   (eval "$ac_try") 2>&5
11087   ac_status=$?
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); }; } &&
11090          { ac_try='test -s conftest$ac_exeext'
11091   { (case "(($ac_try" in
11092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093   *) ac_try_echo=$ac_try;;
11094 esac
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096   (eval "$ac_try") 2>&5
11097   ac_status=$?
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); }; }; then
11100   eval "$as_ac_var=yes"
11101 else
11102   echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11104
11105         eval "$as_ac_var=no"
11106 fi
11107
11108 rm -f core conftest.err conftest.$ac_objext \
11109       conftest$ac_exeext conftest.$ac_ext
11110 fi
11111 ac_res=`eval echo '${'$as_ac_var'}'`
11112                { echo "$as_me:$LINENO: result: $ac_res" >&5
11113 echo "${ECHO_T}$ac_res" >&6; }
11114 if test `eval echo '${'$as_ac_var'}'` = yes; then
11115   cat >>confdefs.h <<_ACEOF
11116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11117 _ACEOF
11118
11119 fi
11120 done
11121
11122
11123 if test x$ac_cv_func_mbstowcs = xyes; then
11124   { echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
11125 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6; }
11126 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
11127   echo $ECHO_N "(cached) $ECHO_C" >&6
11128 else
11129       if test "$cross_compiling" = yes; then
11130   gcc_cv_func_mbstowcs_works=yes
11131 else
11132   cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h.  */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h.  */
11138 #include <stdlib.h>
11139 int main()
11140 {
11141   mbstowcs(0, "", 0);
11142   return 0;
11143 }
11144 _ACEOF
11145 rm -f conftest$ac_exeext
11146 if { (ac_try="$ac_link"
11147 case "(($ac_try" in
11148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149   *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152   (eval "$ac_link") 2>&5
11153   ac_status=$?
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11156   { (case "(($ac_try" in
11157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158   *) ac_try_echo=$ac_try;;
11159 esac
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161   (eval "$ac_try") 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); }; }; then
11165   gcc_cv_func_mbstowcs_works=yes
11166 else
11167   echo "$as_me: program exited with status $ac_status" >&5
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11170
11171 ( exit $ac_status )
11172 gcc_cv_func_mbstowcs_works=no
11173 fi
11174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11175 fi
11176
11177
11178 fi
11179 { echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
11180 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6; }
11181   if test x$gcc_cv_func_mbstowcs_works = xyes; then
11182
11183 cat >>confdefs.h <<\_ACEOF
11184 #define HAVE_WORKING_MBSTOWCS 1
11185 _ACEOF
11186
11187   fi
11188 fi
11189
11190 { echo "$as_me:$LINENO: checking for ssize_t" >&5
11191 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
11192 if test "${ac_cv_type_ssize_t+set}" = set; then
11193   echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195   cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h.  */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h.  */
11201 $ac_includes_default
11202 typedef ssize_t ac__type_new_;
11203 int
11204 main ()
11205 {
11206 if ((ac__type_new_ *) 0)
11207   return 0;
11208 if (sizeof (ac__type_new_))
11209   return 0;
11210   ;
11211   return 0;
11212 }
11213 _ACEOF
11214 rm -f conftest.$ac_objext
11215 if { (ac_try="$ac_compile"
11216 case "(($ac_try" in
11217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218   *) ac_try_echo=$ac_try;;
11219 esac
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221   (eval "$ac_compile") 2>conftest.er1
11222   ac_status=$?
11223   grep -v '^ *+' conftest.er1 >conftest.err
11224   rm -f conftest.er1
11225   cat conftest.err >&5
11226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227   (exit $ac_status); } &&
11228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11229   { (case "(($ac_try" in
11230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231   *) ac_try_echo=$ac_try;;
11232 esac
11233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234   (eval "$ac_try") 2>&5
11235   ac_status=$?
11236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237   (exit $ac_status); }; } &&
11238          { ac_try='test -s conftest.$ac_objext'
11239   { (case "(($ac_try" in
11240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241   *) ac_try_echo=$ac_try;;
11242 esac
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244   (eval "$ac_try") 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); }; }; then
11248   ac_cv_type_ssize_t=yes
11249 else
11250   echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11252
11253         ac_cv_type_ssize_t=no
11254 fi
11255
11256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11257 fi
11258 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11259 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
11260 if test $ac_cv_type_ssize_t = yes; then
11261   :
11262 else
11263
11264 cat >>confdefs.h <<_ACEOF
11265 #define ssize_t int
11266 _ACEOF
11267
11268 fi
11269
11270
11271 # Try to determine the array type of the second argument of getgroups
11272 # for the target system (int or gid_t).
11273 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11274 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11275 if test "${ac_cv_type_uid_t+set}" = set; then
11276   echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278   cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h.  */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h.  */
11284 #include <sys/types.h>
11285
11286 _ACEOF
11287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11288   $EGREP "uid_t" >/dev/null 2>&1; then
11289   ac_cv_type_uid_t=yes
11290 else
11291   ac_cv_type_uid_t=no
11292 fi
11293 rm -f conftest*
11294
11295 fi
11296 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11297 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11298 if test $ac_cv_type_uid_t = no; then
11299
11300 cat >>confdefs.h <<\_ACEOF
11301 #define uid_t int
11302 _ACEOF
11303
11304
11305 cat >>confdefs.h <<\_ACEOF
11306 #define gid_t int
11307 _ACEOF
11308
11309 fi
11310
11311 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
11312 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
11313 if test "${ac_cv_type_getgroups+set}" = set; then
11314   echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316   if test "$cross_compiling" = yes; then
11317   ac_cv_type_getgroups=cross
11318 else
11319   cat >conftest.$ac_ext <<_ACEOF
11320 /* confdefs.h.  */
11321 _ACEOF
11322 cat confdefs.h >>conftest.$ac_ext
11323 cat >>conftest.$ac_ext <<_ACEOF
11324 /* end confdefs.h.  */
11325 /* Thanks to Mike Rendell for this test.  */
11326 $ac_includes_default
11327 #define NGID 256
11328 #undef MAX
11329 #define MAX(x, y) ((x) > (y) ? (x) : (y))
11330
11331 int
11332 main ()
11333 {
11334   gid_t gidset[NGID];
11335   int i, n;
11336   union { gid_t gval; long int lval; }  val;
11337
11338   val.lval = -1;
11339   for (i = 0; i < NGID; i++)
11340     gidset[i] = val.gval;
11341   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
11342                  gidset);
11343   /* Exit non-zero if getgroups seems to require an array of ints.  This
11344      happens when gid_t is short int but getgroups modifies an array
11345      of ints.  */
11346   return n > 0 && gidset[n] != val.gval;
11347 }
11348 _ACEOF
11349 rm -f conftest$ac_exeext
11350 if { (ac_try="$ac_link"
11351 case "(($ac_try" in
11352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353   *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356   (eval "$ac_link") 2>&5
11357   ac_status=$?
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11360   { (case "(($ac_try" in
11361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362   *) ac_try_echo=$ac_try;;
11363 esac
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365   (eval "$ac_try") 2>&5
11366   ac_status=$?
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); }; }; then
11369   ac_cv_type_getgroups=gid_t
11370 else
11371   echo "$as_me: program exited with status $ac_status" >&5
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11374
11375 ( exit $ac_status )
11376 ac_cv_type_getgroups=int
11377 fi
11378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11379 fi
11380
11381
11382 if test $ac_cv_type_getgroups = cross; then
11383         cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h.  */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h.  */
11389 #include <unistd.h>
11390
11391 _ACEOF
11392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11393   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
11394   ac_cv_type_getgroups=gid_t
11395 else
11396   ac_cv_type_getgroups=int
11397 fi
11398 rm -f conftest*
11399
11400 fi
11401 fi
11402 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
11403 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
11404
11405 cat >>confdefs.h <<_ACEOF
11406 #define GETGROUPS_T $ac_cv_type_getgroups
11407 _ACEOF
11408
11409
11410 if test "${target}" = "${build}"; then
11411   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
11412 else
11413   case "${target}" in
11414         # This condition may need some tweaking.  It should include all
11415         # targets where the array type of the second argument of getgroups
11416         # is int and the type of gid_t is not equivalent to int.
11417         *-*-sunos* | *-*-ultrix*)
11418                 TARGET_GETGROUPS_T=int
11419                 ;;
11420         *)
11421                 TARGET_GETGROUPS_T=gid_t
11422                 ;;
11423   esac
11424 fi
11425
11426
11427
11428 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11429 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
11430 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11431   echo $ECHO_N "(cached) $ECHO_C" >&6
11432 else
11433   cat >conftest.$ac_ext <<_ACEOF
11434 /* confdefs.h.  */
11435 _ACEOF
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h.  */
11439 #include <sys/mman.h>
11440 _ACEOF
11441 if { (ac_try="$ac_cpp conftest.$ac_ext"
11442 case "(($ac_try" in
11443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444   *) ac_try_echo=$ac_try;;
11445 esac
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11448   ac_status=$?
11449   grep -v '^ *+' conftest.er1 >conftest.err
11450   rm -f conftest.er1
11451   cat conftest.err >&5
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); } >/dev/null; then
11454   if test -s conftest.err; then
11455     ac_cpp_err=$ac_c_preproc_warn_flag
11456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11457   else
11458     ac_cpp_err=
11459   fi
11460 else
11461   ac_cpp_err=yes
11462 fi
11463 if test -z "$ac_cpp_err"; then
11464   ac_cv_header_sys_mman_h=yes
11465 else
11466   echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11468
11469   ac_cv_header_sys_mman_h=no
11470 fi
11471
11472 rm -f conftest.err conftest.$ac_ext
11473 fi
11474 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11475 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
11476 if test $ac_cv_header_sys_mman_h = yes; then
11477   gcc_header_sys_mman_h=yes
11478 else
11479   gcc_header_sys_mman_h=no
11480 fi
11481
11482 { echo "$as_me:$LINENO: checking for mmap" >&5
11483 echo $ECHO_N "checking for mmap... $ECHO_C" >&6; }
11484 if test "${ac_cv_func_mmap+set}" = set; then
11485   echo $ECHO_N "(cached) $ECHO_C" >&6
11486 else
11487   cat >conftest.$ac_ext <<_ACEOF
11488 /* confdefs.h.  */
11489 _ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h.  */
11493 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
11494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11495 #define mmap innocuous_mmap
11496
11497 /* System header to define __stub macros and hopefully few prototypes,
11498     which can conflict with char mmap (); below.
11499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11500     <limits.h> exists even on freestanding compilers.  */
11501
11502 #ifdef __STDC__
11503 # include <limits.h>
11504 #else
11505 # include <assert.h>
11506 #endif
11507
11508 #undef mmap
11509
11510 /* Override any GCC internal prototype to avoid an error.
11511    Use char because int might match the return type of a GCC
11512    builtin and then its argument prototype would still apply.  */
11513 #ifdef __cplusplus
11514 extern "C"
11515 #endif
11516 char mmap ();
11517 /* The GNU C library defines this for functions which it implements
11518     to always fail with ENOSYS.  Some functions are actually named
11519     something starting with __ and the normal name is an alias.  */
11520 #if defined __stub_mmap || defined __stub___mmap
11521 choke me
11522 #endif
11523
11524 int
11525 main ()
11526 {
11527 return mmap ();
11528   ;
11529   return 0;
11530 }
11531 _ACEOF
11532 rm -f conftest.$ac_objext conftest$ac_exeext
11533 if { (ac_try="$ac_link"
11534 case "(($ac_try" in
11535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536   *) ac_try_echo=$ac_try;;
11537 esac
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539   (eval "$ac_link") 2>conftest.er1
11540   ac_status=$?
11541   grep -v '^ *+' conftest.er1 >conftest.err
11542   rm -f conftest.er1
11543   cat conftest.err >&5
11544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545   (exit $ac_status); } &&
11546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11547   { (case "(($ac_try" in
11548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549   *) ac_try_echo=$ac_try;;
11550 esac
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552   (eval "$ac_try") 2>&5
11553   ac_status=$?
11554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555   (exit $ac_status); }; } &&
11556          { ac_try='test -s conftest$ac_exeext'
11557   { (case "(($ac_try" in
11558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559   *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562   (eval "$ac_try") 2>&5
11563   ac_status=$?
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); }; }; then
11566   ac_cv_func_mmap=yes
11567 else
11568   echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11570
11571         ac_cv_func_mmap=no
11572 fi
11573
11574 rm -f core conftest.err conftest.$ac_objext \
11575       conftest$ac_exeext conftest.$ac_ext
11576 fi
11577 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11578 echo "${ECHO_T}$ac_cv_func_mmap" >&6; }
11579 if test $ac_cv_func_mmap = yes; then
11580   gcc_func_mmap=yes
11581 else
11582   gcc_func_mmap=no
11583 fi
11584
11585 if test "$gcc_header_sys_mman_h" != yes \
11586  || test "$gcc_func_mmap" != yes; then
11587    gcc_cv_func_mmap_file=no
11588    gcc_cv_func_mmap_dev_zero=no
11589    gcc_cv_func_mmap_anon=no
11590 else
11591    { echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
11592 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6; }
11593 if test "${gcc_cv_func_mmap_file+set}" = set; then
11594   echo $ECHO_N "(cached) $ECHO_C" >&6
11595 else
11596   # Add a system to this blacklist if
11597    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11598    # memory area containing the same data that you'd get if you applied
11599    # read() to the same fd.  The only system known to have a problem here
11600    # is VMS, where text files have record structure.
11601    case "$host_os" in
11602      vms* | ultrix*)
11603         gcc_cv_func_mmap_file=no ;;
11604      *)
11605         gcc_cv_func_mmap_file=yes;;
11606    esac
11607 fi
11608 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
11609 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6; }
11610    { echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
11611 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6; }
11612 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
11613   echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615   # Add a system to this blacklist if it has mmap() but /dev/zero
11616    # does not exist, or if mmapping /dev/zero does not give anonymous
11617    # zeroed pages with both the following properties:
11618    # 1. If you map N consecutive pages in with one call, and then
11619    #    unmap any subset of those pages, the pages that were not
11620    #    explicitly unmapped remain accessible.
11621    # 2. If you map two adjacent blocks of memory and then unmap them
11622    #    both at once, they must both go away.
11623    # Systems known to be in this category are Windows (all variants),
11624    # VMS, and Darwin.
11625    case "$host_os" in
11626      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11627         gcc_cv_func_mmap_dev_zero=no ;;
11628      *)
11629         gcc_cv_func_mmap_dev_zero=yes;;
11630    esac
11631 fi
11632 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
11633 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6; }
11634
11635    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11636    { echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
11637 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6; }
11638 if test "${gcc_cv_decl_map_anon+set}" = set; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641   cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647 #include <sys/types.h>
11648 #include <sys/mman.h>
11649 #include <unistd.h>
11650
11651 #ifndef MAP_ANONYMOUS
11652 #define MAP_ANONYMOUS MAP_ANON
11653 #endif
11654
11655 int
11656 main ()
11657 {
11658 int n = MAP_ANONYMOUS;
11659   ;
11660   return 0;
11661 }
11662 _ACEOF
11663 rm -f conftest.$ac_objext
11664 if { (ac_try="$ac_compile"
11665 case "(($ac_try" in
11666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667   *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670   (eval "$ac_compile") 2>conftest.er1
11671   ac_status=$?
11672   grep -v '^ *+' conftest.er1 >conftest.err
11673   rm -f conftest.er1
11674   cat conftest.err >&5
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); } &&
11677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11678   { (case "(($ac_try" in
11679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680   *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683   (eval "$ac_try") 2>&5
11684   ac_status=$?
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); }; } &&
11687          { ac_try='test -s conftest.$ac_objext'
11688   { (case "(($ac_try" in
11689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690   *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693   (eval "$ac_try") 2>&5
11694   ac_status=$?
11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); }; }; then
11697   gcc_cv_decl_map_anon=yes
11698 else
11699   echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11701
11702         gcc_cv_decl_map_anon=no
11703 fi
11704
11705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11706 fi
11707 { echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
11708 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6; }
11709
11710    if test $gcc_cv_decl_map_anon = no; then
11711      gcc_cv_func_mmap_anon=no
11712    else
11713      { echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11714 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6; }
11715 if test "${gcc_cv_func_mmap_anon+set}" = set; then
11716   echo $ECHO_N "(cached) $ECHO_C" >&6
11717 else
11718   # Add a system to this blacklist if it has mmap() and MAP_ANON or
11719    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11720    # doesn't give anonymous zeroed pages with the same properties listed
11721    # above for use of /dev/zero.
11722    # Systems known to be in this category are Windows, VMS, and SCO Unix.
11723    case "$host_os" in
11724      vms* | cygwin* | pe | mingw* | sco* | udk* )
11725         gcc_cv_func_mmap_anon=no ;;
11726      *)
11727         gcc_cv_func_mmap_anon=yes;;
11728    esac
11729 fi
11730 { echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
11731 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6; }
11732    fi
11733 fi
11734
11735 if test $gcc_cv_func_mmap_file = yes; then
11736
11737 cat >>confdefs.h <<\_ACEOF
11738 #define HAVE_MMAP_FILE 1
11739 _ACEOF
11740
11741 fi
11742 if test $gcc_cv_func_mmap_dev_zero = yes; then
11743
11744 cat >>confdefs.h <<\_ACEOF
11745 #define HAVE_MMAP_DEV_ZERO 1
11746 _ACEOF
11747
11748 fi
11749 if test $gcc_cv_func_mmap_anon = yes; then
11750
11751 cat >>confdefs.h <<\_ACEOF
11752 #define HAVE_MMAP_ANON 1
11753 _ACEOF
11754
11755 fi
11756
11757
11758 case "${host}" in
11759 *-*-*vms*)
11760   # Under VMS, vfork works very differently than on Unix. The standard test
11761   # won't work, and it isn't easily adaptable. It makes more sense to
11762   # just force it.
11763   ac_cv_func_vfork_works=yes
11764   ;;
11765 esac
11766 { echo "$as_me:$LINENO: checking for pid_t" >&5
11767 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11768 if test "${ac_cv_type_pid_t+set}" = set; then
11769   echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771   cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h.  */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h.  */
11777 $ac_includes_default
11778 typedef pid_t ac__type_new_;
11779 int
11780 main ()
11781 {
11782 if ((ac__type_new_ *) 0)
11783   return 0;
11784 if (sizeof (ac__type_new_))
11785   return 0;
11786   ;
11787   return 0;
11788 }
11789 _ACEOF
11790 rm -f conftest.$ac_objext
11791 if { (ac_try="$ac_compile"
11792 case "(($ac_try" in
11793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794   *) ac_try_echo=$ac_try;;
11795 esac
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797   (eval "$ac_compile") 2>conftest.er1
11798   ac_status=$?
11799   grep -v '^ *+' conftest.er1 >conftest.err
11800   rm -f conftest.er1
11801   cat conftest.err >&5
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); } &&
11804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11805   { (case "(($ac_try" in
11806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807   *) ac_try_echo=$ac_try;;
11808 esac
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810   (eval "$ac_try") 2>&5
11811   ac_status=$?
11812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813   (exit $ac_status); }; } &&
11814          { ac_try='test -s conftest.$ac_objext'
11815   { (case "(($ac_try" in
11816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817   *) ac_try_echo=$ac_try;;
11818 esac
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820   (eval "$ac_try") 2>&5
11821   ac_status=$?
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); }; }; then
11824   ac_cv_type_pid_t=yes
11825 else
11826   echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11828
11829         ac_cv_type_pid_t=no
11830 fi
11831
11832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833 fi
11834 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11835 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11836 if test $ac_cv_type_pid_t = yes; then
11837   :
11838 else
11839
11840 cat >>confdefs.h <<_ACEOF
11841 #define pid_t int
11842 _ACEOF
11843
11844 fi
11845
11846
11847 for ac_header in vfork.h
11848 do
11849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11853   echo $ECHO_N "(cached) $ECHO_C" >&6
11854 else
11855   cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h.  */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h.  */
11861 #include <$ac_header>
11862 _ACEOF
11863 if { (ac_try="$ac_cpp conftest.$ac_ext"
11864 case "(($ac_try" in
11865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866   *) ac_try_echo=$ac_try;;
11867 esac
11868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11870   ac_status=$?
11871   grep -v '^ *+' conftest.er1 >conftest.err
11872   rm -f conftest.er1
11873   cat conftest.err >&5
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); } >/dev/null; then
11876   if test -s conftest.err; then
11877     ac_cpp_err=$ac_c_preproc_warn_flag
11878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11879   else
11880     ac_cpp_err=
11881   fi
11882 else
11883   ac_cpp_err=yes
11884 fi
11885 if test -z "$ac_cpp_err"; then
11886   eval "$as_ac_Header=yes"
11887 else
11888   echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11890
11891   eval "$as_ac_Header=no"
11892 fi
11893
11894 rm -f conftest.err conftest.$ac_ext
11895 fi
11896 ac_res=`eval echo '${'$as_ac_Header'}'`
11897                { echo "$as_me:$LINENO: result: $ac_res" >&5
11898 echo "${ECHO_T}$ac_res" >&6; }
11899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11900   cat >>confdefs.h <<_ACEOF
11901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11902 _ACEOF
11903
11904 fi
11905 done
11906
11907
11908
11909 for ac_func in fork vfork
11910 do
11911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11915   echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917   cat >conftest.$ac_ext <<_ACEOF
11918 /* confdefs.h.  */
11919 _ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h.  */
11923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11925 #define $ac_func innocuous_$ac_func
11926
11927 /* System header to define __stub macros and hopefully few prototypes,
11928     which can conflict with char $ac_func (); below.
11929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11930     <limits.h> exists even on freestanding compilers.  */
11931
11932 #ifdef __STDC__
11933 # include <limits.h>
11934 #else
11935 # include <assert.h>
11936 #endif
11937
11938 #undef $ac_func
11939
11940 /* Override any GCC internal prototype to avoid an error.
11941    Use char because int might match the return type of a GCC
11942    builtin and then its argument prototype would still apply.  */
11943 #ifdef __cplusplus
11944 extern "C"
11945 #endif
11946 char $ac_func ();
11947 /* The GNU C library defines this for functions which it implements
11948     to always fail with ENOSYS.  Some functions are actually named
11949     something starting with __ and the normal name is an alias.  */
11950 #if defined __stub_$ac_func || defined __stub___$ac_func
11951 choke me
11952 #endif
11953
11954 int
11955 main ()
11956 {
11957 return $ac_func ();
11958   ;
11959   return 0;
11960 }
11961 _ACEOF
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (ac_try="$ac_link"
11964 case "(($ac_try" in
11965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966   *) ac_try_echo=$ac_try;;
11967 esac
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969   (eval "$ac_link") 2>conftest.er1
11970   ac_status=$?
11971   grep -v '^ *+' conftest.er1 >conftest.err
11972   rm -f conftest.er1
11973   cat conftest.err >&5
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); } &&
11976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11977   { (case "(($ac_try" in
11978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979   *) ac_try_echo=$ac_try;;
11980 esac
11981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982   (eval "$ac_try") 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); }; } &&
11986          { ac_try='test -s conftest$ac_exeext'
11987   { (case "(($ac_try" in
11988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989   *) ac_try_echo=$ac_try;;
11990 esac
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992   (eval "$ac_try") 2>&5
11993   ac_status=$?
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); }; }; then
11996   eval "$as_ac_var=yes"
11997 else
11998   echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12000
12001         eval "$as_ac_var=no"
12002 fi
12003
12004 rm -f core conftest.err conftest.$ac_objext \
12005       conftest$ac_exeext conftest.$ac_ext
12006 fi
12007 ac_res=`eval echo '${'$as_ac_var'}'`
12008                { echo "$as_me:$LINENO: result: $ac_res" >&5
12009 echo "${ECHO_T}$ac_res" >&6; }
12010 if test `eval echo '${'$as_ac_var'}'` = yes; then
12011   cat >>confdefs.h <<_ACEOF
12012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12013 _ACEOF
12014
12015 fi
12016 done
12017
12018 if test "x$ac_cv_func_fork" = xyes; then
12019   { echo "$as_me:$LINENO: checking for working fork" >&5
12020 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
12021 if test "${ac_cv_func_fork_works+set}" = set; then
12022   echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024   if test "$cross_compiling" = yes; then
12025   ac_cv_func_fork_works=cross
12026 else
12027   cat >conftest.$ac_ext <<_ACEOF
12028 /* confdefs.h.  */
12029 _ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h.  */
12033 $ac_includes_default
12034 int
12035 main ()
12036 {
12037
12038           /* By Ruediger Kuhlmann. */
12039           return fork () < 0;
12040
12041   ;
12042   return 0;
12043 }
12044 _ACEOF
12045 rm -f conftest$ac_exeext
12046 if { (ac_try="$ac_link"
12047 case "(($ac_try" in
12048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049   *) ac_try_echo=$ac_try;;
12050 esac
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052   (eval "$ac_link") 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12056   { (case "(($ac_try" in
12057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058   *) ac_try_echo=$ac_try;;
12059 esac
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061   (eval "$ac_try") 2>&5
12062   ac_status=$?
12063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064   (exit $ac_status); }; }; then
12065   ac_cv_func_fork_works=yes
12066 else
12067   echo "$as_me: program exited with status $ac_status" >&5
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12070
12071 ( exit $ac_status )
12072 ac_cv_func_fork_works=no
12073 fi
12074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12075 fi
12076
12077
12078 fi
12079 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12080 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
12081
12082 else
12083   ac_cv_func_fork_works=$ac_cv_func_fork
12084 fi
12085 if test "x$ac_cv_func_fork_works" = xcross; then
12086   case $host in
12087     *-*-amigaos* | *-*-msdosdjgpp*)
12088       # Override, as these systems have only a dummy fork() stub
12089       ac_cv_func_fork_works=no
12090       ;;
12091     *)
12092       ac_cv_func_fork_works=yes
12093       ;;
12094   esac
12095   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12096 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12097 fi
12098 ac_cv_func_vfork_works=$ac_cv_func_vfork
12099 if test "x$ac_cv_func_vfork" = xyes; then
12100   { echo "$as_me:$LINENO: checking for working vfork" >&5
12101 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
12102 if test "${ac_cv_func_vfork_works+set}" = set; then
12103   echo $ECHO_N "(cached) $ECHO_C" >&6
12104 else
12105   if test "$cross_compiling" = yes; then
12106   ac_cv_func_vfork_works=cross
12107 else
12108   cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h.  */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h.  */
12114 /* Thanks to Paul Eggert for this test.  */
12115 $ac_includes_default
12116 #include <sys/wait.h>
12117 #if HAVE_VFORK_H
12118 # include <vfork.h>
12119 #endif
12120 /* On some sparc systems, changes by the child to local and incoming
12121    argument registers are propagated back to the parent.  The compiler
12122    is told about this with #include <vfork.h>, but some compilers
12123    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12124    static variable whose address is put into a register that is
12125    clobbered by the vfork.  */
12126 static void
12127 #ifdef __cplusplus
12128 sparc_address_test (int arg)
12129 # else
12130 sparc_address_test (arg) int arg;
12131 #endif
12132 {
12133   static pid_t child;
12134   if (!child) {
12135     child = vfork ();
12136     if (child < 0) {
12137       perror ("vfork");
12138       _exit(2);
12139     }
12140     if (!child) {
12141       arg = getpid();
12142       write(-1, "", 0);
12143       _exit (arg);
12144     }
12145   }
12146 }
12147
12148 int
12149 main ()
12150 {
12151   pid_t parent = getpid ();
12152   pid_t child;
12153
12154   sparc_address_test (0);
12155
12156   child = vfork ();
12157
12158   if (child == 0) {
12159     /* Here is another test for sparc vfork register problems.  This
12160        test uses lots of local variables, at least as many local
12161        variables as main has allocated so far including compiler
12162        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12163        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12164        reuse the register of parent for one of the local variables,
12165        since it will think that parent can't possibly be used any more
12166        in this routine.  Assigning to the local variable will thus
12167        munge parent in the parent process.  */
12168     pid_t
12169       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12170       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12171     /* Convince the compiler that p..p7 are live; otherwise, it might
12172        use the same hardware register for all 8 local variables.  */
12173     if (p != p1 || p != p2 || p != p3 || p != p4
12174         || p != p5 || p != p6 || p != p7)
12175       _exit(1);
12176
12177     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12178        from child file descriptors.  If the child closes a descriptor
12179        before it execs or exits, this munges the parent's descriptor
12180        as well.  Test for this by closing stdout in the child.  */
12181     _exit(close(fileno(stdout)) != 0);
12182   } else {
12183     int status;
12184     struct stat st;
12185
12186     while (wait(&status) != child)
12187       ;
12188     return (
12189          /* Was there some problem with vforking?  */
12190          child < 0
12191
12192          /* Did the child fail?  (This shouldn't happen.)  */
12193          || status
12194
12195          /* Did the vfork/compiler bug occur?  */
12196          || parent != getpid()
12197
12198          /* Did the file descriptor bug occur?  */
12199          || fstat(fileno(stdout), &st) != 0
12200          );
12201   }
12202 }
12203 _ACEOF
12204 rm -f conftest$ac_exeext
12205 if { (ac_try="$ac_link"
12206 case "(($ac_try" in
12207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208   *) ac_try_echo=$ac_try;;
12209 esac
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211   (eval "$ac_link") 2>&5
12212   ac_status=$?
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12215   { (case "(($ac_try" in
12216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217   *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220   (eval "$ac_try") 2>&5
12221   ac_status=$?
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); }; }; then
12224   ac_cv_func_vfork_works=yes
12225 else
12226   echo "$as_me: program exited with status $ac_status" >&5
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12229
12230 ( exit $ac_status )
12231 ac_cv_func_vfork_works=no
12232 fi
12233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12234 fi
12235
12236
12237 fi
12238 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12239 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
12240
12241 fi;
12242 if test "x$ac_cv_func_fork_works" = xcross; then
12243   ac_cv_func_vfork_works=$ac_cv_func_vfork
12244   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12245 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12246 fi
12247
12248 if test "x$ac_cv_func_vfork_works" = xyes; then
12249
12250 cat >>confdefs.h <<\_ACEOF
12251 #define HAVE_WORKING_VFORK 1
12252 _ACEOF
12253
12254 else
12255
12256 cat >>confdefs.h <<\_ACEOF
12257 #define vfork fork
12258 _ACEOF
12259
12260 fi
12261 if test "x$ac_cv_func_fork_works" = xyes; then
12262
12263 cat >>confdefs.h <<\_ACEOF
12264 #define HAVE_WORKING_FORK 1
12265 _ACEOF
12266
12267 fi
12268
12269
12270
12271       if test "X$prefix" = "XNONE"; then
12272     acl_final_prefix="$ac_default_prefix"
12273   else
12274     acl_final_prefix="$prefix"
12275   fi
12276   if test "X$exec_prefix" = "XNONE"; then
12277     acl_final_exec_prefix='${prefix}'
12278   else
12279     acl_final_exec_prefix="$exec_prefix"
12280   fi
12281   acl_save_prefix="$prefix"
12282   prefix="$acl_final_prefix"
12283   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12284   prefix="$acl_save_prefix"
12285
12286
12287 # Check whether --with-gnu-ld was given.
12288 if test "${with_gnu_ld+set}" = set; then
12289   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12290 else
12291   with_gnu_ld=no
12292 fi
12293
12294 # Prepare PATH_SEPARATOR.
12295 # The user is always right.
12296 if test "${PATH_SEPARATOR+set}" != set; then
12297   echo "#! /bin/sh" >conf$$.sh
12298   echo  "exit 0"   >>conf$$.sh
12299   chmod +x conf$$.sh
12300   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12301     PATH_SEPARATOR=';'
12302   else
12303     PATH_SEPARATOR=:
12304   fi
12305   rm -f conf$$.sh
12306 fi
12307 ac_prog=ld
12308 if test "$GCC" = yes; then
12309   # Check if gcc -print-prog-name=ld gives a path.
12310   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
12311 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
12312   case $host in
12313   *-*-mingw*)
12314     # gcc leaves a trailing carriage return which upsets mingw
12315     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12316   *)
12317     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12318   esac
12319   case $ac_prog in
12320     # Accept absolute paths.
12321     [\\/]* | [A-Za-z]:[\\/]*)
12322       re_direlt='/[^/][^/]*/\.\./'
12323       # Canonicalize the path of ld
12324       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12325       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12326         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12327       done
12328       test -z "$LD" && LD="$ac_prog"
12329       ;;
12330   "")
12331     # If it fails, then pretend we aren't using GCC.
12332     ac_prog=ld
12333     ;;
12334   *)
12335     # If it is relative, then search for the first ld in PATH.
12336     with_gnu_ld=unknown
12337     ;;
12338   esac
12339 elif test "$with_gnu_ld" = yes; then
12340   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12341 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12342 else
12343   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12344 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12345 fi
12346 if test "${acl_cv_path_LD+set}" = set; then
12347   echo $ECHO_N "(cached) $ECHO_C" >&6
12348 else
12349   if test -z "$LD"; then
12350   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12351   for ac_dir in $PATH; do
12352     test -z "$ac_dir" && ac_dir=.
12353     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12354       acl_cv_path_LD="$ac_dir/$ac_prog"
12355       # Check to see if the program is GNU ld.  I'd rather use --version,
12356       # but apparently some GNU ld's only accept -v.
12357       # Break only if it was the GNU/non-GNU ld that we prefer.
12358       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12359         test "$with_gnu_ld" != no && break
12360       else
12361         test "$with_gnu_ld" != yes && break
12362       fi
12363     fi
12364   done
12365   IFS="$ac_save_ifs"
12366 else
12367   acl_cv_path_LD="$LD" # Let the user override the test with a path.
12368 fi
12369 fi
12370
12371 LD="$acl_cv_path_LD"
12372 if test -n "$LD"; then
12373   { echo "$as_me:$LINENO: result: $LD" >&5
12374 echo "${ECHO_T}$LD" >&6; }
12375 else
12376   { echo "$as_me:$LINENO: result: no" >&5
12377 echo "${ECHO_T}no" >&6; }
12378 fi
12379 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12380 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12381    { (exit 1); exit 1; }; }
12382 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12383 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12384 if test "${acl_cv_prog_gnu_ld+set}" = set; then
12385   echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12388 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12389   acl_cv_prog_gnu_ld=yes
12390 else
12391   acl_cv_prog_gnu_ld=no
12392 fi
12393 fi
12394 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
12395 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
12396 with_gnu_ld=$acl_cv_prog_gnu_ld
12397
12398
12399
12400                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
12401 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
12402 if test "${acl_cv_rpath+set}" = set; then
12403   echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405
12406     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12407     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12408     . ./conftest.sh
12409     rm -f ./conftest.sh
12410     acl_cv_rpath=done
12411
12412 fi
12413 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
12414 echo "${ECHO_T}$acl_cv_rpath" >&6; }
12415   wl="$acl_cv_wl"
12416   libext="$acl_cv_libext"
12417   shlibext="$acl_cv_shlibext"
12418   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12419   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12420   hardcode_direct="$acl_cv_hardcode_direct"
12421   hardcode_minus_L="$acl_cv_hardcode_minus_L"
12422     # Check whether --enable-rpath was given.
12423 if test "${enable_rpath+set}" = set; then
12424   enableval=$enable_rpath; :
12425 else
12426   enable_rpath=yes
12427 fi
12428
12429
12430
12431
12432
12433
12434
12435
12436     use_additional=yes
12437
12438   acl_save_prefix="$prefix"
12439   prefix="$acl_final_prefix"
12440   acl_save_exec_prefix="$exec_prefix"
12441   exec_prefix="$acl_final_exec_prefix"
12442
12443     eval additional_includedir=\"$includedir\"
12444     eval additional_libdir=\"$libdir\"
12445
12446   exec_prefix="$acl_save_exec_prefix"
12447   prefix="$acl_save_prefix"
12448
12449
12450 # Check whether --with-libiconv-prefix was given.
12451 if test "${with_libiconv_prefix+set}" = set; then
12452   withval=$with_libiconv_prefix;
12453     if test "X$withval" = "Xno"; then
12454       use_additional=no
12455     else
12456       if test "X$withval" = "X"; then
12457
12458   acl_save_prefix="$prefix"
12459   prefix="$acl_final_prefix"
12460   acl_save_exec_prefix="$exec_prefix"
12461   exec_prefix="$acl_final_exec_prefix"
12462
12463           eval additional_includedir=\"$includedir\"
12464           eval additional_libdir=\"$libdir\"
12465
12466   exec_prefix="$acl_save_exec_prefix"
12467   prefix="$acl_save_prefix"
12468
12469       else
12470         additional_includedir="$withval/include"
12471         additional_libdir="$withval/lib"
12472       fi
12473     fi
12474
12475 fi
12476
12477       LIBICONV=
12478   LTLIBICONV=
12479   INCICONV=
12480   rpathdirs=
12481   ltrpathdirs=
12482   names_already_handled=
12483   names_next_round='iconv '
12484   while test -n "$names_next_round"; do
12485     names_this_round="$names_next_round"
12486     names_next_round=
12487     for name in $names_this_round; do
12488       already_handled=
12489       for n in $names_already_handled; do
12490         if test "$n" = "$name"; then
12491           already_handled=yes
12492           break
12493         fi
12494       done
12495       if test -z "$already_handled"; then
12496         names_already_handled="$names_already_handled $name"
12497                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12498         eval value=\"\$HAVE_LIB$uppername\"
12499         if test -n "$value"; then
12500           if test "$value" = yes; then
12501             eval value=\"\$LIB$uppername\"
12502             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12503             eval value=\"\$LTLIB$uppername\"
12504             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12505           else
12506                                     :
12507           fi
12508         else
12509                               found_dir=
12510           found_la=
12511           found_so=
12512           found_a=
12513           if test $use_additional = yes; then
12514             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12515               found_dir="$additional_libdir"
12516               found_so="$additional_libdir/lib$name.$shlibext"
12517               if test -f "$additional_libdir/lib$name.la"; then
12518                 found_la="$additional_libdir/lib$name.la"
12519               fi
12520             else
12521               if test -f "$additional_libdir/lib$name.$libext"; then
12522                 found_dir="$additional_libdir"
12523                 found_a="$additional_libdir/lib$name.$libext"
12524                 if test -f "$additional_libdir/lib$name.la"; then
12525                   found_la="$additional_libdir/lib$name.la"
12526                 fi
12527               fi
12528             fi
12529           fi
12530           if test "X$found_dir" = "X"; then
12531             for x in $LDFLAGS $LTLIBICONV; do
12532
12533   acl_save_prefix="$prefix"
12534   prefix="$acl_final_prefix"
12535   acl_save_exec_prefix="$exec_prefix"
12536   exec_prefix="$acl_final_exec_prefix"
12537   eval x=\"$x\"
12538   exec_prefix="$acl_save_exec_prefix"
12539   prefix="$acl_save_prefix"
12540
12541               case "$x" in
12542                 -L*)
12543                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12544                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12545                     found_dir="$dir"
12546                     found_so="$dir/lib$name.$shlibext"
12547                     if test -f "$dir/lib$name.la"; then
12548                       found_la="$dir/lib$name.la"
12549                     fi
12550                   else
12551                     if test -f "$dir/lib$name.$libext"; then
12552                       found_dir="$dir"
12553                       found_a="$dir/lib$name.$libext"
12554                       if test -f "$dir/lib$name.la"; then
12555                         found_la="$dir/lib$name.la"
12556                       fi
12557                     fi
12558                   fi
12559                   ;;
12560               esac
12561               if test "X$found_dir" != "X"; then
12562                 break
12563               fi
12564             done
12565           fi
12566           if test "X$found_dir" != "X"; then
12567                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12568             if test "X$found_so" != "X"; then
12569                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12570                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12571               else
12572                                                                                 haveit=
12573                 for x in $ltrpathdirs; do
12574                   if test "X$x" = "X$found_dir"; then
12575                     haveit=yes
12576                     break
12577                   fi
12578                 done
12579                 if test -z "$haveit"; then
12580                   ltrpathdirs="$ltrpathdirs $found_dir"
12581                 fi
12582                                 if test "$hardcode_direct" = yes; then
12583                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12584                 else
12585                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12586                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12587                                                             haveit=
12588                     for x in $rpathdirs; do
12589                       if test "X$x" = "X$found_dir"; then
12590                         haveit=yes
12591                         break
12592                       fi
12593                     done
12594                     if test -z "$haveit"; then
12595                       rpathdirs="$rpathdirs $found_dir"
12596                     fi
12597                   else
12598                                                                                 haveit=
12599                     for x in $LDFLAGS $LIBICONV; do
12600
12601   acl_save_prefix="$prefix"
12602   prefix="$acl_final_prefix"
12603   acl_save_exec_prefix="$exec_prefix"
12604   exec_prefix="$acl_final_exec_prefix"
12605   eval x=\"$x\"
12606   exec_prefix="$acl_save_exec_prefix"
12607   prefix="$acl_save_prefix"
12608
12609                       if test "X$x" = "X-L$found_dir"; then
12610                         haveit=yes
12611                         break
12612                       fi
12613                     done
12614                     if test -z "$haveit"; then
12615                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12616                     fi
12617                     if test "$hardcode_minus_L" != no; then
12618                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12619                     else
12620                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12621                     fi
12622                   fi
12623                 fi
12624               fi
12625             else
12626               if test "X$found_a" != "X"; then
12627                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12628               else
12629                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12630               fi
12631             fi
12632                         additional_includedir=
12633             case "$found_dir" in
12634               */lib | */lib/)
12635                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12636                 additional_includedir="$basedir/include"
12637                 ;;
12638             esac
12639             if test "X$additional_includedir" != "X"; then
12640                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12641                 haveit=
12642                 if test "X$additional_includedir" = "X/usr/local/include"; then
12643                   if test -n "$GCC"; then
12644                     case $host_os in
12645                       linux*) haveit=yes;;
12646                     esac
12647                   fi
12648                 fi
12649                 if test -z "$haveit"; then
12650                   for x in $CPPFLAGS $INCICONV; do
12651
12652   acl_save_prefix="$prefix"
12653   prefix="$acl_final_prefix"
12654   acl_save_exec_prefix="$exec_prefix"
12655   exec_prefix="$acl_final_exec_prefix"
12656   eval x=\"$x\"
12657   exec_prefix="$acl_save_exec_prefix"
12658   prefix="$acl_save_prefix"
12659
12660                     if test "X$x" = "X-I$additional_includedir"; then
12661                       haveit=yes
12662                       break
12663                     fi
12664                   done
12665                   if test -z "$haveit"; then
12666                     if test -d "$additional_includedir"; then
12667                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12668                     fi
12669                   fi
12670                 fi
12671               fi
12672             fi
12673                         if test -n "$found_la"; then
12674                                                         save_libdir="$libdir"
12675               case "$found_la" in
12676                 */* | *\\*) . "$found_la" ;;
12677                 *) . "./$found_la" ;;
12678               esac
12679               libdir="$save_libdir"
12680                             for dep in $dependency_libs; do
12681                 case "$dep" in
12682                   -L*)
12683                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12684                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12685                       haveit=
12686                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12687                         if test -n "$GCC"; then
12688                           case $host_os in
12689                             linux*) haveit=yes;;
12690                           esac
12691                         fi
12692                       fi
12693                       if test -z "$haveit"; then
12694                         haveit=
12695                         for x in $LDFLAGS $LIBICONV; do
12696
12697   acl_save_prefix="$prefix"
12698   prefix="$acl_final_prefix"
12699   acl_save_exec_prefix="$exec_prefix"
12700   exec_prefix="$acl_final_exec_prefix"
12701   eval x=\"$x\"
12702   exec_prefix="$acl_save_exec_prefix"
12703   prefix="$acl_save_prefix"
12704
12705                           if test "X$x" = "X-L$additional_libdir"; then
12706                             haveit=yes
12707                             break
12708                           fi
12709                         done
12710                         if test -z "$haveit"; then
12711                           if test -d "$additional_libdir"; then
12712                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12713                           fi
12714                         fi
12715                         haveit=
12716                         for x in $LDFLAGS $LTLIBICONV; do
12717
12718   acl_save_prefix="$prefix"
12719   prefix="$acl_final_prefix"
12720   acl_save_exec_prefix="$exec_prefix"
12721   exec_prefix="$acl_final_exec_prefix"
12722   eval x=\"$x\"
12723   exec_prefix="$acl_save_exec_prefix"
12724   prefix="$acl_save_prefix"
12725
12726                           if test "X$x" = "X-L$additional_libdir"; then
12727                             haveit=yes
12728                             break
12729                           fi
12730                         done
12731                         if test -z "$haveit"; then
12732                           if test -d "$additional_libdir"; then
12733                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12734                           fi
12735                         fi
12736                       fi
12737                     fi
12738                     ;;
12739                   -R*)
12740                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12741                     if test "$enable_rpath" != no; then
12742                                                                   haveit=
12743                       for x in $rpathdirs; do
12744                         if test "X$x" = "X$dir"; then
12745                           haveit=yes
12746                           break
12747                         fi
12748                       done
12749                       if test -z "$haveit"; then
12750                         rpathdirs="$rpathdirs $dir"
12751                       fi
12752                                                                   haveit=
12753                       for x in $ltrpathdirs; do
12754                         if test "X$x" = "X$dir"; then
12755                           haveit=yes
12756                           break
12757                         fi
12758                       done
12759                       if test -z "$haveit"; then
12760                         ltrpathdirs="$ltrpathdirs $dir"
12761                       fi
12762                     fi
12763                     ;;
12764                   -l*)
12765                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12766                     ;;
12767                   *.la)
12768                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12769                     ;;
12770                   *)
12771                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12772                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12773                     ;;
12774                 esac
12775               done
12776             fi
12777           else
12778                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12779             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12780           fi
12781         fi
12782       fi
12783     done
12784   done
12785   if test "X$rpathdirs" != "X"; then
12786     if test -n "$hardcode_libdir_separator"; then
12787                         alldirs=
12788       for found_dir in $rpathdirs; do
12789         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12790       done
12791             acl_save_libdir="$libdir"
12792       libdir="$alldirs"
12793       eval flag=\"$hardcode_libdir_flag_spec\"
12794       libdir="$acl_save_libdir"
12795       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12796     else
12797             for found_dir in $rpathdirs; do
12798         acl_save_libdir="$libdir"
12799         libdir="$found_dir"
12800         eval flag=\"$hardcode_libdir_flag_spec\"
12801         libdir="$acl_save_libdir"
12802         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12803       done
12804     fi
12805   fi
12806   if test "X$ltrpathdirs" != "X"; then
12807             for found_dir in $ltrpathdirs; do
12808       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12809     done
12810   fi
12811
12812
12813
12814
12815
12816
12817
12818           am_save_CPPFLAGS="$CPPFLAGS"
12819
12820   for element in $INCICONV; do
12821     haveit=
12822     for x in $CPPFLAGS; do
12823
12824   acl_save_prefix="$prefix"
12825   prefix="$acl_final_prefix"
12826   acl_save_exec_prefix="$exec_prefix"
12827   exec_prefix="$acl_final_exec_prefix"
12828   eval x=\"$x\"
12829   exec_prefix="$acl_save_exec_prefix"
12830   prefix="$acl_save_prefix"
12831
12832       if test "X$x" = "X$element"; then
12833         haveit=yes
12834         break
12835       fi
12836     done
12837     if test -z "$haveit"; then
12838       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12839     fi
12840   done
12841
12842
12843   { echo "$as_me:$LINENO: checking for iconv" >&5
12844 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12845 if test "${am_cv_func_iconv+set}" = set; then
12846   echo $ECHO_N "(cached) $ECHO_C" >&6
12847 else
12848
12849     am_cv_func_iconv="no, consider installing GNU libiconv"
12850     am_cv_lib_iconv=no
12851     cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h.  */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h.  */
12857 #include <stdlib.h>
12858 #include <iconv.h>
12859 int
12860 main ()
12861 {
12862 iconv_t cd = iconv_open("","");
12863        iconv(cd,NULL,NULL,NULL,NULL);
12864        iconv_close(cd);
12865   ;
12866   return 0;
12867 }
12868 _ACEOF
12869 rm -f conftest.$ac_objext conftest$ac_exeext
12870 if { (ac_try="$ac_link"
12871 case "(($ac_try" in
12872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873   *) ac_try_echo=$ac_try;;
12874 esac
12875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12876   (eval "$ac_link") 2>conftest.er1
12877   ac_status=$?
12878   grep -v '^ *+' conftest.er1 >conftest.err
12879   rm -f conftest.er1
12880   cat conftest.err >&5
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); } &&
12883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12884   { (case "(($ac_try" in
12885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886   *) ac_try_echo=$ac_try;;
12887 esac
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889   (eval "$ac_try") 2>&5
12890   ac_status=$?
12891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); }; } &&
12893          { ac_try='test -s conftest$ac_exeext'
12894   { (case "(($ac_try" in
12895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896   *) ac_try_echo=$ac_try;;
12897 esac
12898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899   (eval "$ac_try") 2>&5
12900   ac_status=$?
12901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); }; }; then
12903   am_cv_func_iconv=yes
12904 else
12905   echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12907
12908
12909 fi
12910
12911 rm -f core conftest.err conftest.$ac_objext \
12912       conftest$ac_exeext conftest.$ac_ext
12913     if test "$am_cv_func_iconv" != yes; then
12914       am_save_LIBS="$LIBS"
12915       LIBS="$LIBS $LIBICONV"
12916       cat >conftest.$ac_ext <<_ACEOF
12917 /* confdefs.h.  */
12918 _ACEOF
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h.  */
12922 #include <stdlib.h>
12923 #include <iconv.h>
12924 int
12925 main ()
12926 {
12927 iconv_t cd = iconv_open("","");
12928          iconv(cd,NULL,NULL,NULL,NULL);
12929          iconv_close(cd);
12930   ;
12931   return 0;
12932 }
12933 _ACEOF
12934 rm -f conftest.$ac_objext conftest$ac_exeext
12935 if { (ac_try="$ac_link"
12936 case "(($ac_try" in
12937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938   *) ac_try_echo=$ac_try;;
12939 esac
12940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12941   (eval "$ac_link") 2>conftest.er1
12942   ac_status=$?
12943   grep -v '^ *+' conftest.er1 >conftest.err
12944   rm -f conftest.er1
12945   cat conftest.err >&5
12946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947   (exit $ac_status); } &&
12948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12949   { (case "(($ac_try" in
12950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12951   *) ac_try_echo=$ac_try;;
12952 esac
12953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12954   (eval "$ac_try") 2>&5
12955   ac_status=$?
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); }; } &&
12958          { ac_try='test -s conftest$ac_exeext'
12959   { (case "(($ac_try" in
12960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961   *) ac_try_echo=$ac_try;;
12962 esac
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964   (eval "$ac_try") 2>&5
12965   ac_status=$?
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); }; }; then
12968   am_cv_lib_iconv=yes
12969         am_cv_func_iconv=yes
12970 else
12971   echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12973
12974
12975 fi
12976
12977 rm -f core conftest.err conftest.$ac_objext \
12978       conftest$ac_exeext conftest.$ac_ext
12979       LIBS="$am_save_LIBS"
12980     fi
12981
12982 fi
12983 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12984 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12985   if test "$am_cv_func_iconv" = yes; then
12986
12987 cat >>confdefs.h <<\_ACEOF
12988 #define HAVE_ICONV 1
12989 _ACEOF
12990
12991   fi
12992   if test "$am_cv_lib_iconv" = yes; then
12993     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12994 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12995     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12996 echo "${ECHO_T}$LIBICONV" >&6; }
12997   else
12998             CPPFLAGS="$am_save_CPPFLAGS"
12999     LIBICONV=
13000     LTLIBICONV=
13001   fi
13002
13003
13004
13005   if test "$am_cv_func_iconv" = yes; then
13006     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13007 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13008     if test "${am_cv_proto_iconv+set}" = set; then
13009   echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011
13012       cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h.  */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h.  */
13018
13019 #include <stdlib.h>
13020 #include <iconv.h>
13021 extern
13022 #ifdef __cplusplus
13023 "C"
13024 #endif
13025 #if defined(__STDC__) || defined(__cplusplus)
13026 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13027 #else
13028 size_t iconv();
13029 #endif
13030
13031 int
13032 main ()
13033 {
13034
13035   ;
13036   return 0;
13037 }
13038 _ACEOF
13039 rm -f conftest.$ac_objext
13040 if { (ac_try="$ac_compile"
13041 case "(($ac_try" in
13042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043   *) ac_try_echo=$ac_try;;
13044 esac
13045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046   (eval "$ac_compile") 2>conftest.er1
13047   ac_status=$?
13048   grep -v '^ *+' conftest.er1 >conftest.err
13049   rm -f conftest.er1
13050   cat conftest.err >&5
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); } &&
13053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13054   { (case "(($ac_try" in
13055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056   *) ac_try_echo=$ac_try;;
13057 esac
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059   (eval "$ac_try") 2>&5
13060   ac_status=$?
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); }; } &&
13063          { ac_try='test -s conftest.$ac_objext'
13064   { (case "(($ac_try" in
13065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066   *) ac_try_echo=$ac_try;;
13067 esac
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069   (eval "$ac_try") 2>&5
13070   ac_status=$?
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); }; }; then
13073   am_cv_proto_iconv_arg1=""
13074 else
13075   echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13077
13078         am_cv_proto_iconv_arg1="const"
13079 fi
13080
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13082       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);"
13083 fi
13084
13085     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13086     { echo "$as_me:$LINENO: result: ${ac_t:-
13087          }$am_cv_proto_iconv" >&5
13088 echo "${ECHO_T}${ac_t:-
13089          }$am_cv_proto_iconv" >&6; }
13090
13091 cat >>confdefs.h <<_ACEOF
13092 #define ICONV_CONST $am_cv_proto_iconv_arg1
13093 _ACEOF
13094
13095   fi
13096
13097 # Until we have in-tree GNU iconv:
13098 LIBICONV_DEP=
13099
13100
13101
13102   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13103 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13104 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13105   echo $ECHO_N "(cached) $ECHO_C" >&6
13106 else
13107   cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h.  */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h.  */
13113 #include <locale.h>
13114 int
13115 main ()
13116 {
13117 return LC_MESSAGES
13118   ;
13119   return 0;
13120 }
13121 _ACEOF
13122 rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (ac_try="$ac_link"
13124 case "(($ac_try" in
13125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126   *) ac_try_echo=$ac_try;;
13127 esac
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129   (eval "$ac_link") 2>conftest.er1
13130   ac_status=$?
13131   grep -v '^ *+' conftest.er1 >conftest.err
13132   rm -f conftest.er1
13133   cat conftest.err >&5
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); } &&
13136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137   { (case "(($ac_try" in
13138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139   *) ac_try_echo=$ac_try;;
13140 esac
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142   (eval "$ac_try") 2>&5
13143   ac_status=$?
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); }; } &&
13146          { ac_try='test -s conftest$ac_exeext'
13147   { (case "(($ac_try" in
13148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149   *) ac_try_echo=$ac_try;;
13150 esac
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152   (eval "$ac_try") 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); }; }; then
13156   am_cv_val_LC_MESSAGES=yes
13157 else
13158   echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13160
13161         am_cv_val_LC_MESSAGES=no
13162 fi
13163
13164 rm -f core conftest.err conftest.$ac_objext \
13165       conftest$ac_exeext conftest.$ac_ext
13166 fi
13167 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13168 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
13169   if test $am_cv_val_LC_MESSAGES = yes; then
13170
13171 cat >>confdefs.h <<\_ACEOF
13172 #define HAVE_LC_MESSAGES 1
13173 _ACEOF
13174
13175   fi
13176
13177
13178
13179   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13180 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13181 if test "${am_cv_langinfo_codeset+set}" = set; then
13182   echo $ECHO_N "(cached) $ECHO_C" >&6
13183 else
13184   cat >conftest.$ac_ext <<_ACEOF
13185 /* confdefs.h.  */
13186 _ACEOF
13187 cat confdefs.h >>conftest.$ac_ext
13188 cat >>conftest.$ac_ext <<_ACEOF
13189 /* end confdefs.h.  */
13190 #include <langinfo.h>
13191 int
13192 main ()
13193 {
13194 char* cs = nl_langinfo(CODESET);
13195   ;
13196   return 0;
13197 }
13198 _ACEOF
13199 rm -f conftest.$ac_objext conftest$ac_exeext
13200 if { (ac_try="$ac_link"
13201 case "(($ac_try" in
13202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203   *) ac_try_echo=$ac_try;;
13204 esac
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206   (eval "$ac_link") 2>conftest.er1
13207   ac_status=$?
13208   grep -v '^ *+' conftest.er1 >conftest.err
13209   rm -f conftest.er1
13210   cat conftest.err >&5
13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   (exit $ac_status); } &&
13213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13214   { (case "(($ac_try" in
13215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216   *) ac_try_echo=$ac_try;;
13217 esac
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219   (eval "$ac_try") 2>&5
13220   ac_status=$?
13221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222   (exit $ac_status); }; } &&
13223          { ac_try='test -s conftest$ac_exeext'
13224   { (case "(($ac_try" in
13225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226   *) ac_try_echo=$ac_try;;
13227 esac
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229   (eval "$ac_try") 2>&5
13230   ac_status=$?
13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232   (exit $ac_status); }; }; then
13233   am_cv_langinfo_codeset=yes
13234 else
13235   echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13237
13238         am_cv_langinfo_codeset=no
13239 fi
13240
13241 rm -f core conftest.err conftest.$ac_objext \
13242       conftest$ac_exeext conftest.$ac_ext
13243
13244 fi
13245 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13246 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13247   if test $am_cv_langinfo_codeset = yes; then
13248
13249 cat >>confdefs.h <<\_ACEOF
13250 #define HAVE_LANGINFO_CODESET 1
13251 _ACEOF
13252
13253   fi
13254
13255
13256 # We will need to find libiberty.h and ansidecl.h
13257 saved_CFLAGS="$CFLAGS"
13258 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
13299         strsignal strstr strverscmp \
13300         errno snprintf vsnprintf vasprintf malloc realloc calloc \
13301         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
13302 do
13303   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
13304 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13305 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
13306 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
13307   echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309   cat >conftest.$ac_ext <<_ACEOF
13310 /* confdefs.h.  */
13311 _ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h.  */
13315 #undef $ac_tr_decl
13316 #define $ac_tr_decl 1
13317
13318 #include "ansidecl.h"
13319 #include "system.h"
13320
13321 int
13322 main ()
13323 {
13324 #ifndef $ac_func
13325 char *(*pfn) = (char *(*)) $ac_func ;
13326 #endif
13327   ;
13328   return 0;
13329 }
13330 _ACEOF
13331 rm -f conftest.$ac_objext
13332 if { (ac_try="$ac_compile"
13333 case "(($ac_try" in
13334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335   *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338   (eval "$ac_compile") 2>conftest.er1
13339   ac_status=$?
13340   grep -v '^ *+' conftest.er1 >conftest.err
13341   rm -f conftest.er1
13342   cat conftest.err >&5
13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344   (exit $ac_status); } &&
13345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13346   { (case "(($ac_try" in
13347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348   *) ac_try_echo=$ac_try;;
13349 esac
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351   (eval "$ac_try") 2>&5
13352   ac_status=$?
13353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354   (exit $ac_status); }; } &&
13355          { ac_try='test -s conftest.$ac_objext'
13356   { (case "(($ac_try" in
13357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358   *) ac_try_echo=$ac_try;;
13359 esac
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361   (eval "$ac_try") 2>&5
13362   ac_status=$?
13363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364   (exit $ac_status); }; }; then
13365   eval "gcc_cv_have_decl_$ac_func=yes"
13366 else
13367   echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13369
13370         eval "gcc_cv_have_decl_$ac_func=no"
13371 fi
13372
13373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13374 fi
13375
13376 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13377   { echo "$as_me:$LINENO: result: yes" >&5
13378 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
13379 #define $ac_tr_decl 1
13380 _ACEOF
13381
13382 else
13383   { echo "$as_me:$LINENO: result: no" >&5
13384 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
13385 #define $ac_tr_decl 0
13386 _ACEOF
13387
13388 fi
13389
13390 done
13391
13392
13393
13394
13395
13396 for ac_func in getrlimit setrlimit getrusage
13397 do
13398   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
13399 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13400 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
13401 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
13402   echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404   cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h.  */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h.  */
13410 #undef $ac_tr_decl
13411 #define $ac_tr_decl 1
13412
13413 #include "ansidecl.h"
13414 #include "system.h"
13415 #ifdef HAVE_SYS_RESOURCE_H
13416 #include <sys/resource.h>
13417 #endif
13418
13419
13420 int
13421 main ()
13422 {
13423 #ifndef $ac_func
13424 char *(*pfn) = (char *(*)) $ac_func ;
13425 #endif
13426   ;
13427   return 0;
13428 }
13429 _ACEOF
13430 rm -f conftest.$ac_objext
13431 if { (ac_try="$ac_compile"
13432 case "(($ac_try" in
13433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434   *) ac_try_echo=$ac_try;;
13435 esac
13436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437   (eval "$ac_compile") 2>conftest.er1
13438   ac_status=$?
13439   grep -v '^ *+' conftest.er1 >conftest.err
13440   rm -f conftest.er1
13441   cat conftest.err >&5
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); } &&
13444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13445   { (case "(($ac_try" in
13446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447   *) ac_try_echo=$ac_try;;
13448 esac
13449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13450   (eval "$ac_try") 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; } &&
13454          { ac_try='test -s conftest.$ac_objext'
13455   { (case "(($ac_try" in
13456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457   *) ac_try_echo=$ac_try;;
13458 esac
13459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460   (eval "$ac_try") 2>&5
13461   ac_status=$?
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); }; }; then
13464   eval "gcc_cv_have_decl_$ac_func=yes"
13465 else
13466   echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13468
13469         eval "gcc_cv_have_decl_$ac_func=no"
13470 fi
13471
13472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13473 fi
13474
13475 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13476   { echo "$as_me:$LINENO: result: yes" >&5
13477 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
13478 #define $ac_tr_decl 1
13479 _ACEOF
13480
13481 else
13482   { echo "$as_me:$LINENO: result: no" >&5
13483 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
13484 #define $ac_tr_decl 0
13485 _ACEOF
13486
13487 fi
13488
13489 done
13490
13491
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h.  */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h.  */
13498
13499 #include "ansidecl.h"
13500 #include "system.h"
13501 #ifdef HAVE_SYS_RESOURCE_H
13502 #include <sys/resource.h>
13503 #endif
13504
13505 int
13506 main ()
13507 {
13508 rlim_t l = 0;
13509   ;
13510   return 0;
13511 }
13512 _ACEOF
13513 rm -f conftest.$ac_objext
13514 if { (ac_try="$ac_compile"
13515 case "(($ac_try" in
13516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517   *) ac_try_echo=$ac_try;;
13518 esac
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520   (eval "$ac_compile") 2>conftest.er1
13521   ac_status=$?
13522   grep -v '^ *+' conftest.er1 >conftest.err
13523   rm -f conftest.er1
13524   cat conftest.err >&5
13525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); } &&
13527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13528   { (case "(($ac_try" in
13529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530   *) ac_try_echo=$ac_try;;
13531 esac
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533   (eval "$ac_try") 2>&5
13534   ac_status=$?
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); }; } &&
13537          { ac_try='test -s conftest.$ac_objext'
13538   { (case "(($ac_try" in
13539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540   *) ac_try_echo=$ac_try;;
13541 esac
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543   (eval "$ac_try") 2>&5
13544   ac_status=$?
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); }; }; then
13547   :
13548 else
13549   echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13551
13552
13553 cat >>confdefs.h <<\_ACEOF
13554 #define rlim_t long
13555 _ACEOF
13556
13557 fi
13558
13559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13560
13561 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
13562 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
13563 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
13564 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
13565
13566 for ac_func in ldgetname
13567 do
13568   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
13569 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13570 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
13571 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
13572   echo $ECHO_N "(cached) $ECHO_C" >&6
13573 else
13574   cat >conftest.$ac_ext <<_ACEOF
13575 /* confdefs.h.  */
13576 _ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h.  */
13580 #undef $ac_tr_decl
13581 #define $ac_tr_decl 1
13582
13583 #include "ansidecl.h"
13584 #include "system.h"
13585 #ifdef HAVE_LDFCN_H
13586 #undef FREAD
13587 #undef FWRITE
13588 #include <ldfcn.h>
13589 #endif
13590
13591
13592 int
13593 main ()
13594 {
13595 #ifndef $ac_func
13596 char *(*pfn) = (char *(*)) $ac_func ;
13597 #endif
13598   ;
13599   return 0;
13600 }
13601 _ACEOF
13602 rm -f conftest.$ac_objext
13603 if { (ac_try="$ac_compile"
13604 case "(($ac_try" in
13605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606   *) ac_try_echo=$ac_try;;
13607 esac
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609   (eval "$ac_compile") 2>conftest.er1
13610   ac_status=$?
13611   grep -v '^ *+' conftest.er1 >conftest.err
13612   rm -f conftest.er1
13613   cat conftest.err >&5
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); } &&
13616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13617   { (case "(($ac_try" in
13618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619   *) ac_try_echo=$ac_try;;
13620 esac
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622   (eval "$ac_try") 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }; } &&
13626          { ac_try='test -s conftest.$ac_objext'
13627   { (case "(($ac_try" in
13628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629   *) ac_try_echo=$ac_try;;
13630 esac
13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632   (eval "$ac_try") 2>&5
13633   ac_status=$?
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); }; }; then
13636   eval "gcc_cv_have_decl_$ac_func=yes"
13637 else
13638   echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13640
13641         eval "gcc_cv_have_decl_$ac_func=no"
13642 fi
13643
13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645 fi
13646
13647 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13648   { echo "$as_me:$LINENO: result: yes" >&5
13649 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
13650 #define $ac_tr_decl 1
13651 _ACEOF
13652
13653 else
13654   { echo "$as_me:$LINENO: result: no" >&5
13655 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
13656 #define $ac_tr_decl 0
13657 _ACEOF
13658
13659 fi
13660
13661 done
13662
13663
13664
13665 for ac_func in times
13666 do
13667   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
13668 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13669 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
13670 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
13671   echo $ECHO_N "(cached) $ECHO_C" >&6
13672 else
13673   cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h.  */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h.  */
13679 #undef $ac_tr_decl
13680 #define $ac_tr_decl 1
13681
13682 #include "ansidecl.h"
13683 #include "system.h"
13684 #ifdef HAVE_SYS_TIMES_H
13685 #include <sys/times.h>
13686 #endif
13687
13688
13689 int
13690 main ()
13691 {
13692 #ifndef $ac_func
13693 char *(*pfn) = (char *(*)) $ac_func ;
13694 #endif
13695   ;
13696   return 0;
13697 }
13698 _ACEOF
13699 rm -f conftest.$ac_objext
13700 if { (ac_try="$ac_compile"
13701 case "(($ac_try" in
13702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13703   *) ac_try_echo=$ac_try;;
13704 esac
13705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13706   (eval "$ac_compile") 2>conftest.er1
13707   ac_status=$?
13708   grep -v '^ *+' conftest.er1 >conftest.err
13709   rm -f conftest.er1
13710   cat conftest.err >&5
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); } &&
13713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13714   { (case "(($ac_try" in
13715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716   *) ac_try_echo=$ac_try;;
13717 esac
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719   (eval "$ac_try") 2>&5
13720   ac_status=$?
13721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); }; } &&
13723          { ac_try='test -s conftest.$ac_objext'
13724   { (case "(($ac_try" in
13725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726   *) ac_try_echo=$ac_try;;
13727 esac
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729   (eval "$ac_try") 2>&5
13730   ac_status=$?
13731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); }; }; then
13733   eval "gcc_cv_have_decl_$ac_func=yes"
13734 else
13735   echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13737
13738         eval "gcc_cv_have_decl_$ac_func=no"
13739 fi
13740
13741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13742 fi
13743
13744 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13745   { echo "$as_me:$LINENO: result: yes" >&5
13746 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
13747 #define $ac_tr_decl 1
13748 _ACEOF
13749
13750 else
13751   { echo "$as_me:$LINENO: result: no" >&5
13752 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
13753 #define $ac_tr_decl 0
13754 _ACEOF
13755
13756 fi
13757
13758 done
13759
13760
13761
13762 for ac_func in sigaltstack
13763 do
13764   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
13765 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13766 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
13767 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
13768   echo $ECHO_N "(cached) $ECHO_C" >&6
13769 else
13770   cat >conftest.$ac_ext <<_ACEOF
13771 /* confdefs.h.  */
13772 _ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h.  */
13776 #undef $ac_tr_decl
13777 #define $ac_tr_decl 1
13778
13779 #include "ansidecl.h"
13780 #include "system.h"
13781 #include <signal.h>
13782
13783
13784 int
13785 main ()
13786 {
13787 #ifndef $ac_func
13788 char *(*pfn) = (char *(*)) $ac_func ;
13789 #endif
13790   ;
13791   return 0;
13792 }
13793 _ACEOF
13794 rm -f conftest.$ac_objext
13795 if { (ac_try="$ac_compile"
13796 case "(($ac_try" in
13797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798   *) ac_try_echo=$ac_try;;
13799 esac
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801   (eval "$ac_compile") 2>conftest.er1
13802   ac_status=$?
13803   grep -v '^ *+' conftest.er1 >conftest.err
13804   rm -f conftest.er1
13805   cat conftest.err >&5
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); } &&
13808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13809   { (case "(($ac_try" in
13810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811   *) ac_try_echo=$ac_try;;
13812 esac
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814   (eval "$ac_try") 2>&5
13815   ac_status=$?
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); }; } &&
13818          { ac_try='test -s conftest.$ac_objext'
13819   { (case "(($ac_try" in
13820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821   *) ac_try_echo=$ac_try;;
13822 esac
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824   (eval "$ac_try") 2>&5
13825   ac_status=$?
13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); }; }; then
13828   eval "gcc_cv_have_decl_$ac_func=yes"
13829 else
13830   echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13832
13833         eval "gcc_cv_have_decl_$ac_func=no"
13834 fi
13835
13836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13837 fi
13838
13839 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13840   { echo "$as_me:$LINENO: result: yes" >&5
13841 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
13842 #define $ac_tr_decl 1
13843 _ACEOF
13844
13845 else
13846   { echo "$as_me:$LINENO: result: no" >&5
13847 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
13848 #define $ac_tr_decl 0
13849 _ACEOF
13850
13851 fi
13852
13853 done
13854
13855
13856 # More time-related stuff.
13857 { echo "$as_me:$LINENO: checking for struct tms" >&5
13858 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6; }
13859 if test "${ac_cv_struct_tms+set}" = set; then
13860   echo $ECHO_N "(cached) $ECHO_C" >&6
13861 else
13862
13863 cat >conftest.$ac_ext <<_ACEOF
13864 /* confdefs.h.  */
13865 _ACEOF
13866 cat confdefs.h >>conftest.$ac_ext
13867 cat >>conftest.$ac_ext <<_ACEOF
13868 /* end confdefs.h.  */
13869
13870 #include "ansidecl.h"
13871 #include "system.h"
13872 #ifdef HAVE_SYS_TIMES_H
13873 #include <sys/times.h>
13874 #endif
13875
13876 int
13877 main ()
13878 {
13879 struct tms tms;
13880   ;
13881   return 0;
13882 }
13883 _ACEOF
13884 rm -f conftest.$ac_objext
13885 if { (ac_try="$ac_compile"
13886 case "(($ac_try" in
13887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888   *) ac_try_echo=$ac_try;;
13889 esac
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891   (eval "$ac_compile") 2>conftest.er1
13892   ac_status=$?
13893   grep -v '^ *+' conftest.er1 >conftest.err
13894   rm -f conftest.er1
13895   cat conftest.err >&5
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); } &&
13898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13899   { (case "(($ac_try" in
13900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901   *) ac_try_echo=$ac_try;;
13902 esac
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904   (eval "$ac_try") 2>&5
13905   ac_status=$?
13906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907   (exit $ac_status); }; } &&
13908          { ac_try='test -s conftest.$ac_objext'
13909   { (case "(($ac_try" in
13910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911   *) ac_try_echo=$ac_try;;
13912 esac
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914   (eval "$ac_try") 2>&5
13915   ac_status=$?
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); }; }; then
13918   ac_cv_struct_tms=yes
13919 else
13920   echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13922
13923         ac_cv_struct_tms=no
13924 fi
13925
13926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13927 fi
13928 { echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
13929 echo "${ECHO_T}$ac_cv_struct_tms" >&6; }
13930 if test $ac_cv_struct_tms = yes; then
13931
13932 cat >>confdefs.h <<\_ACEOF
13933 #define HAVE_STRUCT_TMS 1
13934 _ACEOF
13935
13936 fi
13937
13938 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
13939 # revisit after autoconf 2.50.
13940 { echo "$as_me:$LINENO: checking for clock_t" >&5
13941 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
13942 if test "${gcc_cv_type_clock_t+set}" = set; then
13943   echo $ECHO_N "(cached) $ECHO_C" >&6
13944 else
13945
13946 cat >conftest.$ac_ext <<_ACEOF
13947 /* confdefs.h.  */
13948 _ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h.  */
13952
13953 #include "ansidecl.h"
13954 #include "system.h"
13955
13956 int
13957 main ()
13958 {
13959 clock_t x;
13960   ;
13961   return 0;
13962 }
13963 _ACEOF
13964 rm -f conftest.$ac_objext
13965 if { (ac_try="$ac_compile"
13966 case "(($ac_try" in
13967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968   *) ac_try_echo=$ac_try;;
13969 esac
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971   (eval "$ac_compile") 2>conftest.er1
13972   ac_status=$?
13973   grep -v '^ *+' conftest.er1 >conftest.err
13974   rm -f conftest.er1
13975   cat conftest.err >&5
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); } &&
13978          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13979   { (case "(($ac_try" in
13980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981   *) ac_try_echo=$ac_try;;
13982 esac
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984   (eval "$ac_try") 2>&5
13985   ac_status=$?
13986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987   (exit $ac_status); }; } &&
13988          { ac_try='test -s conftest.$ac_objext'
13989   { (case "(($ac_try" in
13990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991   *) ac_try_echo=$ac_try;;
13992 esac
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994   (eval "$ac_try") 2>&5
13995   ac_status=$?
13996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); }; }; then
13998   gcc_cv_type_clock_t=yes
13999 else
14000   echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14002
14003         gcc_cv_type_clock_t=no
14004 fi
14005
14006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007 fi
14008 { echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
14009 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6; }
14010 if test $gcc_cv_type_clock_t = yes; then
14011
14012 cat >>confdefs.h <<\_ACEOF
14013 #define HAVE_CLOCK_T 1
14014 _ACEOF
14015
14016 fi
14017
14018 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
14019 CFLAGS="$saved_CFLAGS"
14020
14021 # Check whether --enable-initfini-array was given.
14022 if test "${enable_initfini_array+set}" = set; then
14023   enableval=$enable_initfini_array;
14024 else
14025
14026 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
14027 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
14028 if test "${gcc_cv_initfini_array+set}" = set; then
14029   echo $ECHO_N "(cached) $ECHO_C" >&6
14030 else
14031     if test "$cross_compiling" = yes; then
14032   gcc_cv_initfini_array=no
14033 else
14034   cat >conftest.$ac_ext <<_ACEOF
14035 /* confdefs.h.  */
14036 _ACEOF
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h.  */
14040
14041 static int x = -1;
14042 int main (void) { return x; }
14043 int foo (void) { x = 0; }
14044 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
14045 _ACEOF
14046 rm -f conftest$ac_exeext
14047 if { (ac_try="$ac_link"
14048 case "(($ac_try" in
14049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050   *) ac_try_echo=$ac_try;;
14051 esac
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053   (eval "$ac_link") 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14057   { (case "(($ac_try" in
14058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059   *) ac_try_echo=$ac_try;;
14060 esac
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062   (eval "$ac_try") 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); }; }; then
14066   gcc_cv_initfini_array=yes
14067 else
14068   echo "$as_me: program exited with status $ac_status" >&5
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14071
14072 ( exit $ac_status )
14073 gcc_cv_initfini_array=no
14074 fi
14075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14076 fi
14077
14078
14079 fi
14080 { echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
14081 echo "${ECHO_T}$gcc_cv_initfini_array" >&6; }
14082   enable_initfini_array=$gcc_cv_initfini_array
14083
14084 fi
14085
14086 if test $enable_initfini_array = yes; then
14087
14088 cat >>confdefs.h <<\_ACEOF
14089 #define HAVE_INITFINI_ARRAY 1
14090 _ACEOF
14091
14092 fi
14093
14094 # mkdir takes a single argument on some systems.
14095 { echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
14096 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6; }
14097 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
14098   echo $ECHO_N "(cached) $ECHO_C" >&6
14099 else
14100   cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h.  */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h.  */
14106
14107 #include <sys/types.h>
14108 #ifdef HAVE_SYS_STAT_H
14109 # include <sys/stat.h>
14110 #endif
14111 #ifdef HAVE_UNISTD_H
14112 # include <unistd.h>
14113 #endif
14114 #ifdef HAVE_DIRECT_H
14115 # include <direct.h>
14116 #endif
14117 int
14118 main ()
14119 {
14120 mkdir ("foo", 0);
14121   ;
14122   return 0;
14123 }
14124 _ACEOF
14125 rm -f conftest.$ac_objext
14126 if { (ac_try="$ac_compile"
14127 case "(($ac_try" in
14128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129   *) ac_try_echo=$ac_try;;
14130 esac
14131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132   (eval "$ac_compile") 2>conftest.er1
14133   ac_status=$?
14134   grep -v '^ *+' conftest.er1 >conftest.err
14135   rm -f conftest.er1
14136   cat conftest.err >&5
14137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138   (exit $ac_status); } &&
14139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14140   { (case "(($ac_try" in
14141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142   *) ac_try_echo=$ac_try;;
14143 esac
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145   (eval "$ac_try") 2>&5
14146   ac_status=$?
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); }; } &&
14149          { ac_try='test -s conftest.$ac_objext'
14150   { (case "(($ac_try" in
14151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152   *) ac_try_echo=$ac_try;;
14153 esac
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155   (eval "$ac_try") 2>&5
14156   ac_status=$?
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); }; }; then
14159   gcc_cv_mkdir_takes_one_arg=no
14160 else
14161   echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14163
14164         gcc_cv_mkdir_takes_one_arg=yes
14165 fi
14166
14167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14168 fi
14169 { echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
14170 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6; }
14171 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
14172
14173 cat >>confdefs.h <<\_ACEOF
14174 #define MKDIR_TAKES_ONE_ARG 1
14175 _ACEOF
14176
14177 fi
14178
14179
14180 # File extensions
14181 manext='.1'
14182 objext='.o'
14183
14184
14185
14186 # With Setjmp/Longjmp based exception handling.
14187 # Check whether --enable-sjlj-exceptions was given.
14188 if test "${enable_sjlj_exceptions+set}" = set; then
14189   enableval=$enable_sjlj_exceptions; sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
14190
14191 cat >>confdefs.h <<_ACEOF
14192 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
14193 _ACEOF
14194
14195 fi
14196
14197
14198 # For platforms with the unwind ABI which includes an unwind library,
14199 # libunwind, we can choose to use the system libunwind.
14200
14201 # Check whether --with-system-libunwind was given.
14202 if test "${with_system_libunwind+set}" = set; then
14203   withval=$with_system_libunwind;
14204 fi
14205
14206
14207 # config.gcc also contains tests of with_system_libunwind.
14208 if test x$with_system_libunwind = xyes; then
14209
14210 cat >>confdefs.h <<\_ACEOF
14211 #define HAVE_GETIPINFO 1
14212 _ACEOF
14213
14214 fi
14215
14216 # --------------------------------------------------------
14217 # Build, host, and target specific configuration fragments
14218 # --------------------------------------------------------
14219
14220 # Collect build-machine-specific information.
14221 . ${srcdir}/config.build
14222
14223 # Collect host-machine-specific information.
14224 . ${srcdir}/config.host
14225
14226 target_gtfiles=
14227
14228 # Collect target-machine-specific information.
14229 . ${srcdir}/config.gcc
14230
14231 extra_objs="${host_extra_objs} ${extra_objs}"
14232 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
14233
14234 # Default the target-machine variables that were not explicitly set.
14235 if test x"$tm_file" = x
14236 then tm_file=$cpu_type/$cpu_type.h; fi
14237
14238 if test x"$extra_headers" = x
14239 then extra_headers=; fi
14240
14241 if test x$md_file = x
14242 then md_file=$cpu_type/$cpu_type.md; fi
14243
14244 if test x$out_file = x
14245 then out_file=$cpu_type/$cpu_type.c; fi
14246
14247 if test x"$tmake_file" = x
14248 then tmake_file=$cpu_type/t-$cpu_type
14249 fi
14250
14251 if test x"$dwarf2" = xyes
14252 then tm_file="$tm_file tm-dwarf2.h"
14253 fi
14254
14255 # Say what files are being used for the output code and MD file.
14256 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
14257 echo "Using \`$srcdir/config/$md_file' as machine description file."
14258
14259 # If any of the xm_file variables contain nonexistent files, warn
14260 # about them and drop them.
14261
14262 bx=
14263 for x in $build_xm_file; do
14264   if    test -f $srcdir/config/$x
14265   then      bx="$bx $x"
14266   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
14267 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
14268   fi
14269 done
14270 build_xm_file="$bx"
14271
14272 hx=
14273 for x in $host_xm_file; do
14274   if    test -f $srcdir/config/$x
14275   then      hx="$hx $x"
14276   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
14277 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
14278   fi
14279 done
14280 host_xm_file="$hx"
14281
14282 tx=
14283 for x in $xm_file; do
14284   if    test -f $srcdir/config/$x
14285   then      tx="$tx $x"
14286   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
14287 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
14288   fi
14289 done
14290 xm_file="$tx"
14291
14292 count=a
14293 for f in $tm_file; do
14294         count=${count}x
14295 done
14296 if test $count = ax; then
14297         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
14298 else
14299         echo "Using the following target machine macro files:"
14300         for f in $tm_file; do
14301                 echo "  $srcdir/config/$f"
14302         done
14303 fi
14304
14305 if test x$need_64bit_hwint = xyes; then
14306
14307 cat >>confdefs.h <<\_ACEOF
14308 #define NEED_64BIT_HOST_WIDE_INT 1
14309 _ACEOF
14310
14311 fi
14312
14313 if test x$use_long_long_for_widest_fast_int = xyes; then
14314
14315 cat >>confdefs.h <<\_ACEOF
14316 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
14317 _ACEOF
14318
14319 fi
14320
14321 count=a
14322 for f in $host_xm_file; do
14323         count=${count}x
14324 done
14325 if test $count = a; then
14326         :
14327 elif test $count = ax; then
14328         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
14329 else
14330         echo "Using the following host machine macro files:"
14331         for f in $host_xm_file; do
14332                 echo "  $srcdir/config/$f"
14333         done
14334 fi
14335 echo "Using ${out_host_hook_obj} for host machine hooks."
14336
14337 if test "$host_xm_file" != "$build_xm_file"; then
14338         count=a
14339         for f in $build_xm_file; do
14340                 count=${count}x
14341         done
14342         if test $count = a; then
14343                 :
14344         elif test $count = ax; then
14345                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
14346         else
14347                 echo "Using the following build machine macro files:"
14348                 for f in $build_xm_file; do
14349                         echo "  $srcdir/config/$f"
14350                 done
14351         fi
14352 fi
14353
14354 case ${host} in
14355   powerpc*-*-darwin*)
14356     { echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
14357 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6; }
14358 if test "${gcc_cv_mcontext_underscores+set}" = set; then
14359   echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361   cat >conftest.$ac_ext <<_ACEOF
14362
14363 #include <sys/signal.h>
14364 #include <ucontext.h>
14365 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
14366
14367 _ACEOF
14368 rm -f conftest.$ac_objext
14369 if { (ac_try="$ac_compile"
14370 case "(($ac_try" in
14371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372   *) ac_try_echo=$ac_try;;
14373 esac
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375   (eval "$ac_compile") 2>conftest.er1
14376   ac_status=$?
14377   grep -v '^ *+' conftest.er1 >conftest.err
14378   rm -f conftest.er1
14379   cat conftest.err >&5
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); } &&
14382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14383   { (case "(($ac_try" in
14384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385   *) ac_try_echo=$ac_try;;
14386 esac
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388   (eval "$ac_try") 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; } &&
14392          { ac_try='test -s conftest.$ac_objext'
14393   { (case "(($ac_try" in
14394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395   *) ac_try_echo=$ac_try;;
14396 esac
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398   (eval "$ac_try") 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); }; }; then
14402   gcc_cv_mcontext_underscores=no
14403 else
14404   echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14406
14407         gcc_cv_mcontext_underscores=yes
14408 fi
14409
14410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14411 fi
14412 { echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
14413 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6; }
14414       if test $gcc_cv_mcontext_underscores = yes; then
14415
14416 cat >>confdefs.h <<\_ACEOF
14417 #define HAS_MCONTEXT_T_UNDERSCORES
14418 _ACEOF
14419
14420       fi
14421     ;;
14422 esac
14423
14424 # ---------
14425 # Threading
14426 # ---------
14427
14428 # Check if a valid thread package
14429 case ${enable_threads} in
14430   "" | no)
14431     # No threads
14432     target_thread_file='single'
14433     ;;
14434   yes)
14435     # default
14436     target_thread_file='single'
14437     ;;
14438   aix | dce | gnat | irix | posix | posix95 | rtems | \
14439   single | solaris | vxworks | win32 )
14440     target_thread_file=${enable_threads}
14441     ;;
14442   *)
14443     echo "${enable_threads} is an unknown thread package" 1>&2
14444     exit 1
14445     ;;
14446 esac
14447
14448 if test x${thread_file} = x; then
14449   # No thread file set by target-specific clauses in config.gcc,
14450   # so use file chosen by default logic above
14451   thread_file=${target_thread_file}
14452 fi
14453
14454 # Make gthr-default.h if we have a thread file.
14455 gthread_flags=
14456 if test $thread_file != single; then
14457   rm -f gthr-default.h
14458   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
14459   gthread_flags=-DHAVE_GTHR_DEFAULT
14460 fi
14461
14462
14463 # --------
14464 # UNSORTED
14465 # --------
14466
14467 use_cxa_atexit=no
14468 if test x$enable___cxa_atexit = xyes || \
14469    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
14470   if test x$host = x$target; then
14471     case $host in
14472       # mingw32 doesn't have __cxa_atexit but uses atexit registration
14473       # keyed to flag_use_cxa_atexit
14474       *-*-mingw32*)
14475         use_cxa_atexit=yes
14476         ;;
14477       *)
14478         { echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
14479 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6; }
14480 if test "${ac_cv_func___cxa_atexit+set}" = set; then
14481   echo $ECHO_N "(cached) $ECHO_C" >&6
14482 else
14483   cat >conftest.$ac_ext <<_ACEOF
14484 /* confdefs.h.  */
14485 _ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h.  */
14489 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
14490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14491 #define __cxa_atexit innocuous___cxa_atexit
14492
14493 /* System header to define __stub macros and hopefully few prototypes,
14494     which can conflict with char __cxa_atexit (); below.
14495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14496     <limits.h> exists even on freestanding compilers.  */
14497
14498 #ifdef __STDC__
14499 # include <limits.h>
14500 #else
14501 # include <assert.h>
14502 #endif
14503
14504 #undef __cxa_atexit
14505
14506 /* Override any GCC internal prototype to avoid an error.
14507    Use char because int might match the return type of a GCC
14508    builtin and then its argument prototype would still apply.  */
14509 #ifdef __cplusplus
14510 extern "C"
14511 #endif
14512 char __cxa_atexit ();
14513 /* The GNU C library defines this for functions which it implements
14514     to always fail with ENOSYS.  Some functions are actually named
14515     something starting with __ and the normal name is an alias.  */
14516 #if defined __stub___cxa_atexit || defined __stub_____cxa_atexit
14517 choke me
14518 #endif
14519
14520 int
14521 main ()
14522 {
14523 return __cxa_atexit ();
14524   ;
14525   return 0;
14526 }
14527 _ACEOF
14528 rm -f conftest.$ac_objext conftest$ac_exeext
14529 if { (ac_try="$ac_link"
14530 case "(($ac_try" in
14531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532   *) ac_try_echo=$ac_try;;
14533 esac
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535   (eval "$ac_link") 2>conftest.er1
14536   ac_status=$?
14537   grep -v '^ *+' conftest.er1 >conftest.err
14538   rm -f conftest.er1
14539   cat conftest.err >&5
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); } &&
14542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14543   { (case "(($ac_try" in
14544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545   *) ac_try_echo=$ac_try;;
14546 esac
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548   (eval "$ac_try") 2>&5
14549   ac_status=$?
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); }; } &&
14552          { ac_try='test -s conftest$ac_exeext'
14553   { (case "(($ac_try" in
14554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555   *) ac_try_echo=$ac_try;;
14556 esac
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558   (eval "$ac_try") 2>&5
14559   ac_status=$?
14560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561   (exit $ac_status); }; }; then
14562   ac_cv_func___cxa_atexit=yes
14563 else
14564   echo "$as_me: failed program was:" >&5
14565 sed 's/^/| /' conftest.$ac_ext >&5
14566
14567         ac_cv_func___cxa_atexit=no
14568 fi
14569
14570 rm -f core conftest.err conftest.$ac_objext \
14571       conftest$ac_exeext conftest.$ac_ext
14572 fi
14573 { echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
14574 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6; }
14575 if test $ac_cv_func___cxa_atexit = yes; then
14576   use_cxa_atexit=yes
14577 else
14578   echo "__cxa_atexit can't be enabled on this target"
14579 fi
14580
14581         ;;
14582     esac
14583   else
14584     # We can't check for __cxa_atexit when building a cross, so assume
14585     # it is available
14586     use_cxa_atexit=yes
14587   fi
14588   if test x$use_cxa_atexit = xyes; then
14589
14590 cat >>confdefs.h <<\_ACEOF
14591 #define DEFAULT_USE_CXA_ATEXIT 2
14592 _ACEOF
14593
14594   fi
14595 fi
14596
14597 use_getipinfo=yes
14598 if test x$with_system_libunwind = xyes; then
14599    if test x$host = x$target; then
14600      { echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
14601 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6; }
14602 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
14603   echo $ECHO_N "(cached) $ECHO_C" >&6
14604 else
14605   ac_func_search_save_LIBS=$LIBS
14606 cat >conftest.$ac_ext <<_ACEOF
14607 /* confdefs.h.  */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h.  */
14612
14613 /* Override any GCC internal prototype to avoid an error.
14614    Use char because int might match the return type of a GCC
14615    builtin and then its argument prototype would still apply.  */
14616 #ifdef __cplusplus
14617 extern "C"
14618 #endif
14619 char _Unwind_GetIPInfo ();
14620 int
14621 main ()
14622 {
14623 return _Unwind_GetIPInfo ();
14624   ;
14625   return 0;
14626 }
14627 _ACEOF
14628 for ac_lib in '' unwind; do
14629   if test -z "$ac_lib"; then
14630     ac_res="none required"
14631   else
14632     ac_res=-l$ac_lib
14633     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14634   fi
14635   rm -f conftest.$ac_objext conftest$ac_exeext
14636 if { (ac_try="$ac_link"
14637 case "(($ac_try" in
14638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639   *) ac_try_echo=$ac_try;;
14640 esac
14641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14642   (eval "$ac_link") 2>conftest.er1
14643   ac_status=$?
14644   grep -v '^ *+' conftest.er1 >conftest.err
14645   rm -f conftest.er1
14646   cat conftest.err >&5
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); } &&
14649          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14650   { (case "(($ac_try" in
14651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652   *) ac_try_echo=$ac_try;;
14653 esac
14654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655   (eval "$ac_try") 2>&5
14656   ac_status=$?
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); }; } &&
14659          { ac_try='test -s conftest$ac_exeext'
14660   { (case "(($ac_try" in
14661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662   *) ac_try_echo=$ac_try;;
14663 esac
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665   (eval "$ac_try") 2>&5
14666   ac_status=$?
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); }; }; then
14669   ac_cv_search__Unwind_GetIPInfo=$ac_res
14670 else
14671   echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14673
14674
14675 fi
14676
14677 rm -f core conftest.err conftest.$ac_objext \
14678       conftest$ac_exeext
14679   if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
14680   break
14681 fi
14682 done
14683 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
14684   :
14685 else
14686   ac_cv_search__Unwind_GetIPInfo=no
14687 fi
14688 rm conftest.$ac_ext
14689 LIBS=$ac_func_search_save_LIBS
14690 fi
14691 { echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
14692 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6; }
14693 ac_res=$ac_cv_search__Unwind_GetIPInfo
14694 if test "$ac_res" != no; then
14695   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14696
14697 else
14698   use_getipinfo=no
14699 fi
14700
14701    fi
14702 fi
14703
14704 if test x$use_getipinfo = xyes; then
14705
14706 cat >>confdefs.h <<\_ACEOF
14707 #define HAVE_GETIPINFO 1
14708 _ACEOF
14709
14710 else
14711    echo "The system unwind library does not support _Unwind_GetIPInfo."
14712 fi
14713
14714 # Look for a file containing extra machine modes.
14715 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
14716   extra_modes_file='$(srcdir)'/config/${extra_modes}
14717
14718
14719 cat >>confdefs.h <<_ACEOF
14720 #define EXTRA_MODES_FILE "config/$extra_modes"
14721 _ACEOF
14722
14723 fi
14724
14725 # Convert extra_options into a form suitable for Makefile use.
14726 extra_opt_files=
14727 for f in $extra_options; do
14728   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
14729 done
14730
14731
14732 # auto-host.h is the file containing items generated by autoconf and is
14733 # the first file included by config.h.
14734 # If host=build, it is correct to have bconfig include auto-host.h
14735 # as well.  If host!=build, we are in error and need to do more
14736 # work to find out the build config parameters.
14737 if test x$host = x$build
14738 then
14739         build_auto=auto-host.h
14740 else
14741         # We create a subdir, then run autoconf in the subdir.
14742         # To prevent recursion we set host and build for the new
14743         # invocation of configure to the build for this invocation
14744         # of configure.
14745         tempdir=build.$$
14746         rm -rf $tempdir
14747         mkdir $tempdir
14748         cd $tempdir
14749         case ${srcdir} in
14750         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
14751         *) realsrcdir=../${srcdir};;
14752         esac
14753         saved_CFLAGS="${CFLAGS}"
14754         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
14755         ${realsrcdir}/configure \
14756                 --enable-languages=${enable_languages-all} \
14757                 --target=$target_alias --host=$build_alias --build=$build_alias
14758         CFLAGS="${saved_CFLAGS}"
14759
14760         # We just finished tests for the build machine, so rename
14761         # the file auto-build.h in the gcc directory.
14762         mv auto-host.h ../auto-build.h
14763         cd ..
14764         rm -rf $tempdir
14765         build_auto=auto-build.h
14766 fi
14767
14768
14769 tm_file="${tm_file} defaults.h"
14770 tm_p_file="${tm_p_file} tm-preds.h"
14771 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
14772 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
14773 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
14774 # put this back in temporarily.
14775 xm_file="auto-host.h ansidecl.h ${xm_file}"
14776
14777 # --------
14778 # UNSORTED
14779 # --------
14780
14781 # Compile in configure arguments.
14782 if test -f configargs.h ; then
14783         # Being re-configured.
14784         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
14785         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
14786 else
14787         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
14788 fi
14789
14790 # Double all backslashes and backslash all quotes to turn
14791 # gcc_config_arguments into a C string.
14792 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
14793 $gcc_config_arguments
14794 EOF
14795 gcc_config_arguments_str=`cat conftest.out`
14796 rm -f conftest.out
14797
14798 cat > configargs.h <<EOF
14799 /* Generated automatically. */
14800 static const char configuration_arguments[] = "$gcc_config_arguments_str";
14801 static const char thread_model[] = "$thread_file";
14802
14803 static const struct {
14804   const char *name, *value;
14805 } configure_default_options[] = $configure_default_options;
14806 EOF
14807
14808 # Internationalization
14809 # If we haven't got the data from the intl directory,
14810 # assume NLS is disabled.
14811 USE_NLS=no
14812 LIBINTL=
14813 LIBINTL_DEP=
14814 INCINTL=
14815 XGETTEXT=
14816 GMSGFMT=
14817 POSUB=
14818
14819 if test -f  ../intl/config.intl; then
14820   .  ../intl/config.intl
14821 fi
14822 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
14823 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
14824 if test x"$USE_NLS" != xyes; then
14825   { echo "$as_me:$LINENO: result: no" >&5
14826 echo "${ECHO_T}no" >&6; }
14827 else
14828   { echo "$as_me:$LINENO: result: yes" >&5
14829 echo "${ECHO_T}yes" >&6; }
14830
14831 cat >>confdefs.h <<\_ACEOF
14832 #define ENABLE_NLS 1
14833 _ACEOF
14834
14835
14836   { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
14837 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
14838   # Look for .po and .gmo files in the source directory.
14839   CATALOGS=
14840   XLINGUAS=
14841   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14842     # If there aren't any .gmo files the shell will give us the
14843     # literal string "../path/to/srcdir/po/*.gmo" which has to be
14844     # weeded out.
14845     case "$cat" in *\**)
14846       continue;;
14847     esac
14848     # The quadruple backslash is collapsed to a double backslash
14849     # by the backticks, then collapsed again by the double quotes,
14850     # leaving us with one backslash in the sed expression (right
14851     # before the dot that mustn't act as a wildcard).
14852     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14853     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14854     # The user is allowed to set LINGUAS to a list of languages to
14855     # install catalogs for.  If it's empty that means "all of them."
14856     if test "x$LINGUAS" = x; then
14857       CATALOGS="$CATALOGS $cat"
14858       XLINGUAS="$XLINGUAS $lang"
14859     else
14860       case "$LINGUAS" in *$lang*)
14861         CATALOGS="$CATALOGS $cat"
14862         XLINGUAS="$XLINGUAS $lang"
14863         ;;
14864       esac
14865     fi
14866   done
14867   LINGUAS="$XLINGUAS"
14868   { echo "$as_me:$LINENO: result: $LINGUAS" >&5
14869 echo "${ECHO_T}$LINGUAS" >&6; }
14870
14871
14872     DATADIRNAME=share
14873
14874   INSTOBJEXT=.mo
14875
14876   GENCAT=gencat
14877
14878   CATOBJEXT=.gmo
14879
14880 fi
14881
14882 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14883 # -liconv on the link line twice.
14884 case "$LIBINTL" in *$LIBICONV*)
14885         LIBICONV= ;;
14886 esac
14887
14888 # Check whether --enable-secureplt was given.
14889 if test "${enable_secureplt+set}" = set; then
14890   enableval=$enable_secureplt;
14891 fi
14892
14893
14894 # Windows32 Registry support for specifying GCC installation paths.
14895 # Check whether --enable-win32-registry was given.
14896 if test "${enable_win32_registry+set}" = set; then
14897   enableval=$enable_win32_registry;
14898 fi
14899
14900
14901 case $host_os in
14902   win32 | pe | cygwin* | mingw32* | uwin*)
14903     if test "x$enable_win32_registry" != xno; then
14904       { echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
14905 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6; }
14906 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
14907   echo $ECHO_N "(cached) $ECHO_C" >&6
14908 else
14909   ac_func_search_save_LIBS=$LIBS
14910 cat >conftest.$ac_ext <<_ACEOF
14911 /* confdefs.h.  */
14912 _ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h.  */
14916
14917 /* Override any GCC internal prototype to avoid an error.
14918    Use char because int might match the return type of a GCC
14919    builtin and then its argument prototype would still apply.  */
14920 #ifdef __cplusplus
14921 extern "C"
14922 #endif
14923 char RegOpenKeyExA ();
14924 int
14925 main ()
14926 {
14927 return RegOpenKeyExA ();
14928   ;
14929   return 0;
14930 }
14931 _ACEOF
14932 for ac_lib in '' advapi32; do
14933   if test -z "$ac_lib"; then
14934     ac_res="none required"
14935   else
14936     ac_res=-l$ac_lib
14937     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14938   fi
14939   rm -f conftest.$ac_objext conftest$ac_exeext
14940 if { (ac_try="$ac_link"
14941 case "(($ac_try" in
14942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943   *) ac_try_echo=$ac_try;;
14944 esac
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946   (eval "$ac_link") 2>conftest.er1
14947   ac_status=$?
14948   grep -v '^ *+' conftest.er1 >conftest.err
14949   rm -f conftest.er1
14950   cat conftest.err >&5
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); } &&
14953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14954   { (case "(($ac_try" in
14955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956   *) ac_try_echo=$ac_try;;
14957 esac
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959   (eval "$ac_try") 2>&5
14960   ac_status=$?
14961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962   (exit $ac_status); }; } &&
14963          { ac_try='test -s conftest$ac_exeext'
14964   { (case "(($ac_try" in
14965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966   *) ac_try_echo=$ac_try;;
14967 esac
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969   (eval "$ac_try") 2>&5
14970   ac_status=$?
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); }; }; then
14973   ac_cv_search_RegOpenKeyExA=$ac_res
14974 else
14975   echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14977
14978
14979 fi
14980
14981 rm -f core conftest.err conftest.$ac_objext \
14982       conftest$ac_exeext
14983   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
14984   break
14985 fi
14986 done
14987 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
14988   :
14989 else
14990   ac_cv_search_RegOpenKeyExA=no
14991 fi
14992 rm conftest.$ac_ext
14993 LIBS=$ac_func_search_save_LIBS
14994 fi
14995 { echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
14996 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6; }
14997 ac_res=$ac_cv_search_RegOpenKeyExA
14998 if test "$ac_res" != no; then
14999   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15000
15001 else
15002   enable_win32_registry=no
15003 fi
15004
15005     fi
15006
15007     if test "x$enable_win32_registry" != xno; then
15008
15009 cat >>confdefs.h <<\_ACEOF
15010 #define ENABLE_WIN32_REGISTRY 1
15011 _ACEOF
15012
15013
15014       if test "x$enable_win32_registry" != xyes \
15015          && test "x$enable_win32_registry" != x; then
15016
15017 cat >>confdefs.h <<_ACEOF
15018 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
15019 _ACEOF
15020
15021       fi
15022     fi
15023   ;;
15024 esac
15025
15026 # Get an absolute path to the GCC top-level source directory
15027 holddir=`${PWDCMD-pwd}`
15028 cd $srcdir
15029 topdir=`${PWDCMD-pwd}`
15030 cd $holddir
15031
15032 # Conditionalize the makefile for this host machine.
15033 xmake_file=
15034 for f in ${host_xmake_file}
15035 do
15036         if test -f ${srcdir}/config/$f
15037         then
15038                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
15039         fi
15040 done
15041
15042 # Conditionalize the makefile for this target machine.
15043 tmake_file_=
15044 for f in ${tmake_file}
15045 do
15046         if test -f ${srcdir}/config/$f
15047         then
15048                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
15049         fi
15050 done
15051 tmake_file="${tmake_file_}"
15052
15053 # If the host doesn't support symlinks, modify CC in
15054 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
15055 # Otherwise, we can use "CC=$(CC)".
15056 rm -f symtest.tem
15057 case "$LN_S" in
15058         *-s*)
15059                 cc_set_by_configure="\$(CC)"
15060                 quoted_cc_set_by_configure="\$(CC)"
15061                 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
15062                 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
15063                 ;;
15064         *)
15065                 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
15066                 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
15067                 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
15068                 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
15069                 ;;
15070 esac
15071
15072 # This is a terrible hack which will go away some day.
15073 host_cc_for_libada=${CC}
15074
15075
15076 out_object_file=`basename $out_file .c`.o
15077
15078 tm_file_list="options.h"
15079 tm_include_list="options.h"
15080 for f in $tm_file; do
15081   case $f in
15082     defaults.h )
15083        tm_file_list="${tm_file_list} \$(srcdir)/$f"
15084        tm_include_list="${tm_include_list} $f"
15085        ;;
15086     * )
15087        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
15088        tm_include_list="${tm_include_list} config/$f"
15089        ;;
15090   esac
15091 done
15092
15093 tm_p_file_list=
15094 tm_p_include_list=
15095 for f in $tm_p_file; do
15096   case $f in
15097     tm-preds.h )
15098        tm_p_file_list="${tm_p_file_list} $f"
15099        tm_p_include_list="${tm_p_include_list} $f"
15100        ;;
15101     * )
15102        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
15103        tm_p_include_list="${tm_p_include_list} config/$f"
15104   esac
15105 done
15106
15107 xm_file_list=
15108 xm_include_list=
15109 for f in $xm_file; do
15110   case $f in
15111     ansidecl.h )
15112        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
15113        xm_include_list="${xm_include_list} $f"
15114        ;;
15115     auto-host.h )
15116        xm_file_list="${xm_file_list} $f"
15117        xm_include_list="${xm_include_list} $f"
15118        ;;
15119     * )
15120        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
15121        xm_include_list="${xm_include_list} config/$f"
15122        ;;
15123   esac
15124 done
15125
15126 host_xm_file_list=
15127 host_xm_include_list=
15128 for f in $host_xm_file; do
15129   case $f in
15130     ansidecl.h )
15131        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
15132        host_xm_include_list="${host_xm_include_list} $f"
15133        ;;
15134     auto-host.h )
15135        host_xm_file_list="${host_xm_file_list} $f"
15136        host_xm_include_list="${host_xm_include_list} $f"
15137        ;;
15138     * )
15139        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
15140        host_xm_include_list="${host_xm_include_list} config/$f"
15141        ;;
15142   esac
15143 done
15144
15145 build_xm_file_list=
15146 for f in $build_xm_file; do
15147   case $f in
15148     ansidecl.h )
15149        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
15150        build_xm_include_list="${build_xm_include_list} $f"
15151        ;;
15152     auto-build.h | auto-host.h )
15153        build_xm_file_list="${build_xm_file_list} $f"
15154        build_xm_include_list="${build_xm_include_list} $f"
15155        ;;
15156     * )
15157        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
15158        build_xm_include_list="${build_xm_include_list} config/$f"
15159        ;;
15160   esac
15161 done
15162
15163 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
15164 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
15165 CROSS=
15166 ALL=all.internal
15167 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
15168
15169 if test "x$with_build_sysroot" != x; then
15170   build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
15171 else
15172   # This value is used, even on a native system, because
15173   # CROSS_SYSTEM_HEADER_DIR is just
15174   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
15175   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
15176 fi
15177
15178 if test x$host != x$target
15179 then
15180         CROSS="-DCROSS_COMPILE"
15181         ALL=all.cross
15182         SYSTEM_HEADER_DIR=$build_system_header_dir
15183         case "$host","$target" in
15184         # Darwin crosses can use the host system's libraries and headers,
15185         # because of the fat library support.  Of course, it must be the
15186         # same version of Darwin on both sides.  Allow the user to
15187         # just say --target=foo-darwin without a version number to mean
15188         # "the version on this system".
15189             *-*-darwin*,*-*-darwin*)
15190                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
15191                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
15192                 if test $hostos = $targetos -o $targetos = darwin ; then
15193                     CROSS=
15194                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
15195                     with_headers=yes
15196                 fi
15197                 ;;
15198
15199             i?86-*-*,x86_64-*-* \
15200             | powerpc*-*-*,powerpc64*-*-*)
15201                 CROSS="$CROSS -DNATIVE_CROSS" ;;
15202         esac
15203 elif test "x$TARGET_SYSTEM_ROOT" != x; then
15204         SYSTEM_HEADER_DIR=$build_system_header_dir
15205 fi
15206
15207 # If this is a cross-compiler that does not
15208 # have its own set of headers then define
15209 # inhibit_libc
15210
15211 # If this is using newlib, without having the headers available now,
15212 # then define inhibit_libc in LIBGCC2_CFLAGS.
15213 # This prevents libgcc2 from containing any code which requires libc
15214 # support.
15215 inhibit_libc=false
15216 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
15217        test x$with_newlib = xyes ; } &&
15218      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
15219        inhibit_libc=true
15220 fi
15221
15222
15223 # When building gcc with a cross-compiler, we need to adjust things so
15224 # that the generator programs are still built with the native compiler.
15225 # Also, we cannot run fixincludes or fix-header.
15226
15227 # These are the normal (build=host) settings:
15228 CC_FOR_BUILD='$(CC)'
15229 BUILD_CFLAGS='$(ALL_CFLAGS)'
15230 STMP_FIXINC=stmp-fixinc
15231
15232 # Possibly disable fixproto, on a per-target basis.
15233 case ${use_fixproto} in
15234   no)
15235     STMP_FIXPROTO=
15236     ;;
15237   yes)
15238     STMP_FIXPROTO=stmp-fixproto
15239     ;;
15240 esac
15241
15242
15243 # And these apply if build != host, or we are generating coverage data
15244 if test x$build != x$host || test "x$coverage_flags" != x
15245 then
15246     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
15247
15248     if test "x$TARGET_SYSTEM_ROOT" = x; then
15249         if test "x$STMP_FIXPROTO" != x; then
15250           STMP_FIXPROTO=stmp-install-fixproto
15251         fi
15252     fi
15253 fi
15254
15255 # Expand extra_headers to include complete path.
15256 # This substitutes for lots of t-* files.
15257 extra_headers_list=
15258 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
15259 for file in ${extra_headers} ; do
15260   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
15261 done
15262
15263 # Define collect2 in Makefile.
15264 case $host_can_use_collect2 in
15265   no) collect2= ;;
15266   *) collect2='collect2$(exeext)' ;;
15267 esac
15268
15269
15270 # Add a definition of USE_COLLECT2 if system wants one.
15271 case $use_collect2 in
15272   no) use_collect2= ;;
15273   "") ;;
15274   *)
15275     host_xm_defines="${host_xm_defines} USE_COLLECT2"
15276     xm_defines="${xm_defines} USE_COLLECT2"
15277     case $host_can_use_collect2 in
15278       no)
15279         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
15280 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
15281    { (exit 1); exit 1; }; }
15282         ;;
15283     esac
15284     ;;
15285 esac
15286
15287 # ---------------------------
15288 # Assembler & linker features
15289 # ---------------------------
15290
15291 # Identify the assembler which will work hand-in-glove with the newly
15292 # built GCC, so that we can examine its features.  This is the assembler
15293 # which will be driven by the driver program.
15294 #
15295 # If build != host, and we aren't building gas in-tree, we identify a
15296 # build->target assembler and hope that it will have the same features
15297 # as the host->target assembler we'll be using.
15298 gcc_cv_gas_major_version=
15299 gcc_cv_gas_minor_version=
15300 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
15301
15302 if test "${gcc_cv_as+set}" = set; then
15303   :
15304 else
15305
15306 if test -x "$DEFAULT_ASSEMBLER"; then
15307         gcc_cv_as="$DEFAULT_ASSEMBLER"
15308 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
15309      && test -f ../gas/Makefile \
15310      && test x$build = x$host; then
15311         gcc_cv_as=../gas/as-new$build_exeext
15312 elif test -x as$build_exeext; then
15313         # Build using assembler in the current directory.
15314         gcc_cv_as=./as$build_exeext
15315 elif test -x $AS_FOR_TARGET; then
15316         gcc_cv_as="$AS_FOR_TARGET"
15317 else
15318         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
15319 set dummy $AS_FOR_TARGET; ac_word=$2
15320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15322 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
15323   echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325   case $gcc_cv_as in
15326   [\\/]* | ?:[\\/]*)
15327   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
15328   ;;
15329   *)
15330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331 for as_dir in $PATH
15332 do
15333   IFS=$as_save_IFS
15334   test -z "$as_dir" && as_dir=.
15335   for ac_exec_ext in '' $ac_executable_extensions; do
15336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15337     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
15338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15339     break 2
15340   fi
15341 done
15342 done
15343 IFS=$as_save_IFS
15344
15345   ;;
15346 esac
15347 fi
15348 gcc_cv_as=$ac_cv_path_gcc_cv_as
15349 if test -n "$gcc_cv_as"; then
15350   { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
15351 echo "${ECHO_T}$gcc_cv_as" >&6; }
15352 else
15353   { echo "$as_me:$LINENO: result: no" >&5
15354 echo "${ECHO_T}no" >&6; }
15355 fi
15356
15357
15358 fi
15359 fi
15360
15361
15362 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
15363
15364
15365 { echo "$as_me:$LINENO: checking what assembler to use" >&5
15366 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6; }
15367 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
15368   # Single tree build which includes gas.  We want to prefer it
15369   # over whatever linker top-level may have detected, since
15370   # we'll use what we're building after installation anyway.
15371   { echo "$as_me:$LINENO: result: newly built gas" >&5
15372 echo "${ECHO_T}newly built gas" >&6; }
15373   in_tree_gas=yes
15374   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
15375 for f in $gcc_cv_as_bfd_srcdir/configure \
15376          $gcc_cv_as_gas_srcdir/configure \
15377          $gcc_cv_as_gas_srcdir/configure.in \
15378          $gcc_cv_as_gas_srcdir/Makefile.in ; do
15379   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
15380   if test x$gcc_cv_gas_version != x; then
15381     break
15382   fi
15383 done
15384 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
15385 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
15386 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
15387 case $gcc_cv_gas_patch_version in
15388   "") gcc_cv_gas_patch_version="0" ;;
15389 esac
15390 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
15391                             + $gcc_cv_gas_minor_version \) \* 1000 \
15392                             + $gcc_cv_gas_patch_version`
15393
15394   in_tree_gas_is_elf=no
15395   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
15396      || (grep 'obj_format = multi' ../gas/Makefile \
15397          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
15398   then
15399     in_tree_gas_is_elf=yes
15400   fi
15401 else
15402   { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
15403 echo "${ECHO_T}$gcc_cv_as" >&6; }
15404   in_tree_gas=no
15405 fi
15406
15407 # Identify the linker which will work hand-in-glove with the newly
15408 # built GCC, so that we can examine its features.  This is the linker
15409 # which will be driven by the driver program.
15410 #
15411 # If build != host, and we aren't building gas in-tree, we identify a
15412 # build->target linker and hope that it will have the same features
15413 # as the host->target linker we'll be using.
15414 gcc_cv_gld_major_version=
15415 gcc_cv_gld_minor_version=
15416 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
15417 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
15418
15419 if test "${gcc_cv_ld+set}" = set; then
15420   :
15421 else
15422
15423 if test -x "$DEFAULT_LINKER"; then
15424         gcc_cv_ld="$DEFAULT_LINKER"
15425 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
15426      && test -f ../ld/Makefile \
15427      && test x$build = x$host; then
15428         gcc_cv_ld=../ld/ld-new$build_exeext
15429 elif test -x collect-ld$build_exeext; then
15430         # Build using linker in the current directory.
15431         gcc_cv_ld=./collect-ld$build_exeext
15432 elif test -x $LD_FOR_TARGET; then
15433         gcc_cv_ld="$LD_FOR_TARGET"
15434 else
15435         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
15436 set dummy $LD_FOR_TARGET; ac_word=$2
15437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15439 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
15440   echo $ECHO_N "(cached) $ECHO_C" >&6
15441 else
15442   case $gcc_cv_ld in
15443   [\\/]* | ?:[\\/]*)
15444   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
15445   ;;
15446   *)
15447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15448 for as_dir in $PATH
15449 do
15450   IFS=$as_save_IFS
15451   test -z "$as_dir" && as_dir=.
15452   for ac_exec_ext in '' $ac_executable_extensions; do
15453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15454     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
15455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15456     break 2
15457   fi
15458 done
15459 done
15460 IFS=$as_save_IFS
15461
15462   ;;
15463 esac
15464 fi
15465 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
15466 if test -n "$gcc_cv_ld"; then
15467   { echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
15468 echo "${ECHO_T}$gcc_cv_ld" >&6; }
15469 else
15470   { echo "$as_me:$LINENO: result: no" >&5
15471 echo "${ECHO_T}no" >&6; }
15472 fi
15473
15474
15475 fi
15476 fi
15477
15478
15479 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
15480
15481
15482 { echo "$as_me:$LINENO: checking what linker to use" >&5
15483 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6; }
15484 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
15485         # Single tree build which includes ld.  We want to prefer it
15486         # over whatever linker top-level may have detected, since
15487         # we'll use what we're building after installation anyway.
15488         { echo "$as_me:$LINENO: result: newly built ld" >&5
15489 echo "${ECHO_T}newly built ld" >&6; }
15490         in_tree_ld=yes
15491         in_tree_ld_is_elf=no
15492         if (grep 'EMUL = .*elf' ../ld/Makefile \
15493             || grep 'EMUL = .*linux' ../ld/Makefile \
15494             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
15495           in_tree_ld_is_elf=yes
15496         fi
15497         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
15498         do
15499                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
15500                 if test x$gcc_cv_gld_version != x; then
15501                         break
15502                 fi
15503         done
15504         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
15505         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
15506 else
15507         { echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
15508 echo "${ECHO_T}$gcc_cv_ld" >&6; }
15509         in_tree_ld=no
15510 fi
15511
15512 # Figure out what nm we will be using.
15513 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
15514 if test "${gcc_cv_nm+set}" = set; then
15515   :
15516 else
15517
15518 if test -f $gcc_cv_binutils_srcdir/configure.in \
15519      && test -f ../binutils/Makefile \
15520      && test x$build = x$host; then
15521         gcc_cv_nm=../binutils/nm-new$build_exeext
15522 elif test -x nm$build_exeext; then
15523         gcc_cv_nm=./nm$build_exeext
15524 elif test -x $NM_FOR_TARGET; then
15525         gcc_cv_nm="$NM_FOR_TARGET"
15526 else
15527         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
15528 set dummy $NM_FOR_TARGET; ac_word=$2
15529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15531 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
15532   echo $ECHO_N "(cached) $ECHO_C" >&6
15533 else
15534   case $gcc_cv_nm in
15535   [\\/]* | ?:[\\/]*)
15536   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
15537   ;;
15538   *)
15539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15540 for as_dir in $PATH
15541 do
15542   IFS=$as_save_IFS
15543   test -z "$as_dir" && as_dir=.
15544   for ac_exec_ext in '' $ac_executable_extensions; do
15545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15546     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
15547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15548     break 2
15549   fi
15550 done
15551 done
15552 IFS=$as_save_IFS
15553
15554   ;;
15555 esac
15556 fi
15557 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
15558 if test -n "$gcc_cv_nm"; then
15559   { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
15560 echo "${ECHO_T}$gcc_cv_nm" >&6; }
15561 else
15562   { echo "$as_me:$LINENO: result: no" >&5
15563 echo "${ECHO_T}no" >&6; }
15564 fi
15565
15566
15567 fi
15568 fi
15569
15570
15571 { echo "$as_me:$LINENO: checking what nm to use" >&5
15572 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6; }
15573 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
15574         # Single tree build which includes binutils.
15575         { echo "$as_me:$LINENO: result: newly built nm" >&5
15576 echo "${ECHO_T}newly built nm" >&6; }
15577         in_tree_nm=yes
15578 else
15579         { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
15580 echo "${ECHO_T}$gcc_cv_nm" >&6; }
15581         in_tree_nm=no
15582 fi
15583
15584 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
15585
15586
15587 # Figure out what objdump we will be using.
15588 if test "${gcc_cv_objdump+set}" = set; then
15589   :
15590 else
15591
15592 if test -f $gcc_cv_binutils_srcdir/configure.in \
15593      && test -f ../binutils/Makefile \
15594      && test x$build = x$host; then
15595         # Single tree build which includes binutils.
15596         gcc_cv_objdump=../binutils/objdump$build_exeext
15597 elif test -x objdump$build_exeext; then
15598         gcc_cv_objdump=./objdump$build_exeext
15599 elif test -x $OBJDUMP_FOR_TARGET; then
15600         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
15601 else
15602         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
15603 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
15604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15606 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
15607   echo $ECHO_N "(cached) $ECHO_C" >&6
15608 else
15609   case $gcc_cv_objdump in
15610   [\\/]* | ?:[\\/]*)
15611   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
15612   ;;
15613   *)
15614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15615 for as_dir in $PATH
15616 do
15617   IFS=$as_save_IFS
15618   test -z "$as_dir" && as_dir=.
15619   for ac_exec_ext in '' $ac_executable_extensions; do
15620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15621     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
15622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15623     break 2
15624   fi
15625 done
15626 done
15627 IFS=$as_save_IFS
15628
15629   ;;
15630 esac
15631 fi
15632 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
15633 if test -n "$gcc_cv_objdump"; then
15634   { echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
15635 echo "${ECHO_T}$gcc_cv_objdump" >&6; }
15636 else
15637   { echo "$as_me:$LINENO: result: no" >&5
15638 echo "${ECHO_T}no" >&6; }
15639 fi
15640
15641
15642 fi
15643 fi
15644
15645
15646 { echo "$as_me:$LINENO: checking what objdump to use" >&5
15647 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6; }
15648 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
15649         # Single tree build which includes binutils.
15650         { echo "$as_me:$LINENO: result: newly built objdump" >&5
15651 echo "${ECHO_T}newly built objdump" >&6; }
15652 elif test x$gcc_cv_objdump = x; then
15653         { echo "$as_me:$LINENO: result: not found" >&5
15654 echo "${ECHO_T}not found" >&6; }
15655 else
15656         { echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
15657 echo "${ECHO_T}$gcc_cv_objdump" >&6; }
15658 fi
15659
15660 # Figure out what assembler alignment features are present.
15661 { echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
15662 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6; }
15663 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
15664   echo $ECHO_N "(cached) $ECHO_C" >&6
15665 else
15666   gcc_cv_as_balign_and_p2align=no
15667     if test $in_tree_gas = yes; then
15668     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
15669   then gcc_cv_as_balign_and_p2align=yes
15670 fi
15671   elif test x$gcc_cv_as != x; then
15672     echo '.balign 4
15673 .p2align 2' > conftest.s
15674     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676   (eval $ac_try) 2>&5
15677   ac_status=$?
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); }; }
15680     then
15681         gcc_cv_as_balign_and_p2align=yes
15682     else
15683       echo "configure: failed program was" >&5
15684       cat conftest.s >&5
15685     fi
15686     rm -f conftest.o conftest.s
15687   fi
15688 fi
15689 { echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
15690 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6; }
15691 if test $gcc_cv_as_balign_and_p2align = yes; then
15692
15693 cat >>confdefs.h <<\_ACEOF
15694 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
15695 _ACEOF
15696
15697 fi
15698
15699 { echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
15700 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6; }
15701 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
15702   echo $ECHO_N "(cached) $ECHO_C" >&6
15703 else
15704   gcc_cv_as_max_skip_p2align=no
15705     if test $in_tree_gas = yes; then
15706     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
15707   then gcc_cv_as_max_skip_p2align=yes
15708 fi
15709   elif test x$gcc_cv_as != x; then
15710     echo '.p2align 4,,7' > conftest.s
15711     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713   (eval $ac_try) 2>&5
15714   ac_status=$?
15715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716   (exit $ac_status); }; }
15717     then
15718         gcc_cv_as_max_skip_p2align=yes
15719     else
15720       echo "configure: failed program was" >&5
15721       cat conftest.s >&5
15722     fi
15723     rm -f conftest.o conftest.s
15724   fi
15725 fi
15726 { echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
15727 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6; }
15728 if test $gcc_cv_as_max_skip_p2align = yes; then
15729
15730 cat >>confdefs.h <<\_ACEOF
15731 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
15732 _ACEOF
15733
15734 fi
15735
15736 { echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
15737 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6; }
15738 if test "${gcc_cv_as_subsection_m1+set}" = set; then
15739   echo $ECHO_N "(cached) $ECHO_C" >&6
15740 else
15741   gcc_cv_as_subsection_m1=no
15742     if test $in_tree_gas = yes; then
15743     if test $in_tree_gas_is_elf = yes \
15744   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15745   then gcc_cv_as_subsection_m1=yes
15746 fi
15747   elif test x$gcc_cv_as != x; then
15748     echo 'conftest_label1: .word 0
15749 .subsection -1
15750 conftest_label2: .word 0
15751 .previous' > conftest.s
15752     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754   (eval $ac_try) 2>&5
15755   ac_status=$?
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); }; }
15758     then
15759         if test x$gcc_cv_nm != x; then
15760     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
15761     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
15762     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
15763     then :
15764     else gcc_cv_as_subsection_m1=yes
15765     fi
15766     rm -f conftest.nm1 conftest.nm2
15767   fi
15768     else
15769       echo "configure: failed program was" >&5
15770       cat conftest.s >&5
15771     fi
15772     rm -f conftest.o conftest.s
15773   fi
15774 fi
15775 { echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
15776 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6; }
15777 if test $gcc_cv_as_subsection_m1 = yes; then
15778
15779 cat >>confdefs.h <<\_ACEOF
15780 #define HAVE_GAS_SUBSECTION_ORDERING 1
15781 _ACEOF
15782
15783 fi
15784
15785 { echo "$as_me:$LINENO: checking assembler for .weak" >&5
15786 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6; }
15787 if test "${gcc_cv_as_weak+set}" = set; then
15788   echo $ECHO_N "(cached) $ECHO_C" >&6
15789 else
15790   gcc_cv_as_weak=no
15791     if test $in_tree_gas = yes; then
15792     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
15793   then gcc_cv_as_weak=yes
15794 fi
15795   elif test x$gcc_cv_as != x; then
15796     echo '      .weak foobar' > conftest.s
15797     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799   (eval $ac_try) 2>&5
15800   ac_status=$?
15801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802   (exit $ac_status); }; }
15803     then
15804         gcc_cv_as_weak=yes
15805     else
15806       echo "configure: failed program was" >&5
15807       cat conftest.s >&5
15808     fi
15809     rm -f conftest.o conftest.s
15810   fi
15811 fi
15812 { echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
15813 echo "${ECHO_T}$gcc_cv_as_weak" >&6; }
15814 if test $gcc_cv_as_weak = yes; then
15815
15816 cat >>confdefs.h <<\_ACEOF
15817 #define HAVE_GAS_WEAK 1
15818 _ACEOF
15819
15820 fi
15821
15822 { echo "$as_me:$LINENO: checking assembler for .weakref" >&5
15823 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6; }
15824 if test "${gcc_cv_as_weakref+set}" = set; then
15825   echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827   gcc_cv_as_weakref=no
15828     if test $in_tree_gas = yes; then
15829     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15830   then gcc_cv_as_weakref=yes
15831 fi
15832   elif test x$gcc_cv_as != x; then
15833     echo '      .weakref foobar, barfnot' > conftest.s
15834     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836   (eval $ac_try) 2>&5
15837   ac_status=$?
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); }; }
15840     then
15841         gcc_cv_as_weakref=yes
15842     else
15843       echo "configure: failed program was" >&5
15844       cat conftest.s >&5
15845     fi
15846     rm -f conftest.o conftest.s
15847   fi
15848 fi
15849 { echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
15850 echo "${ECHO_T}$gcc_cv_as_weakref" >&6; }
15851 if test $gcc_cv_as_weakref = yes; then
15852
15853 cat >>confdefs.h <<\_ACEOF
15854 #define HAVE_GAS_WEAKREF 1
15855 _ACEOF
15856
15857 fi
15858
15859 { echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
15860 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6; }
15861 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
15862   echo $ECHO_N "(cached) $ECHO_C" >&6
15863 else
15864   gcc_cv_as_nsubspa_comdat=no
15865     if test $in_tree_gas = yes; then
15866     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15867   then gcc_cv_as_nsubspa_comdat=yes
15868 fi
15869   elif test x$gcc_cv_as != x; then
15870     echo '      .SPACE $TEXT$
15871         .NSUBSPA $CODE$,COMDAT' > conftest.s
15872     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874   (eval $ac_try) 2>&5
15875   ac_status=$?
15876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877   (exit $ac_status); }; }
15878     then
15879         gcc_cv_as_nsubspa_comdat=yes
15880     else
15881       echo "configure: failed program was" >&5
15882       cat conftest.s >&5
15883     fi
15884     rm -f conftest.o conftest.s
15885   fi
15886 fi
15887 { echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
15888 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6; }
15889 if test $gcc_cv_as_nsubspa_comdat = yes; then
15890
15891 cat >>confdefs.h <<\_ACEOF
15892 #define HAVE_GAS_NSUBSPA_COMDAT 1
15893 _ACEOF
15894
15895 fi
15896
15897 # .hidden needs to be supported in both the assembler and the linker,
15898 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
15899 # This is irritatingly difficult to feature test for; we have to check the
15900 # date string after the version number.  If we've got an in-tree
15901 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
15902 # to be safe.
15903 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
15904 { echo "$as_me:$LINENO: checking assembler for .hidden" >&5
15905 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6; }
15906 if test "${gcc_cv_as_hidden+set}" = set; then
15907   echo $ECHO_N "(cached) $ECHO_C" >&6
15908 else
15909   gcc_cv_as_hidden=no
15910     if test $in_tree_gas = yes; then
15911     if test $in_tree_gas_is_elf = yes \
15912   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
15913   then gcc_cv_as_hidden=yes
15914 fi
15915   elif test x$gcc_cv_as != x; then
15916     echo '      .hidden foobar
15917 foobar:' > conftest.s
15918     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920   (eval $ac_try) 2>&5
15921   ac_status=$?
15922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923   (exit $ac_status); }; }
15924     then
15925         gcc_cv_as_hidden=yes
15926     else
15927       echo "configure: failed program was" >&5
15928       cat conftest.s >&5
15929     fi
15930     rm -f conftest.o conftest.s
15931   fi
15932 fi
15933 { echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
15934 echo "${ECHO_T}$gcc_cv_as_hidden" >&6; }
15935
15936
15937 { echo "$as_me:$LINENO: checking linker for .hidden support" >&5
15938 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6; }
15939 if test "${gcc_cv_ld_hidden+set}" = set; then
15940   echo $ECHO_N "(cached) $ECHO_C" >&6
15941 else
15942   if test $in_tree_ld = yes ; then
15943   gcc_cv_ld_hidden=no
15944   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 \
15945      && test $in_tree_ld_is_elf = yes; then
15946      gcc_cv_ld_hidden=yes
15947   fi
15948 else
15949   gcc_cv_ld_hidden=yes
15950   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
15951   if echo "$ld_ver" | grep GNU > /dev/null; then
15952     ld_vers=`echo $ld_ver | sed -n \
15953         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
15954         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
15955         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
15956         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
15957         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
15958         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
15959         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   -].*$,\1,p'`
15960     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'`
15961     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
15962     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
15963     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
15964     if test 0"$ld_date" -lt 20020404; then
15965       if test -n "$ld_date"; then
15966         # If there was date string, but was earlier than 2002-04-04, fail
15967         gcc_cv_ld_hidden=no
15968       elif test -z "$ld_vers"; then
15969         # If there was no date string nor ld version number, something is wrong
15970         gcc_cv_ld_hidden=no
15971       else
15972         test -z "$ld_vers_patch" && ld_vers_patch=0
15973         if test "$ld_vers_major" -lt 2; then
15974           gcc_cv_ld_hidden=no
15975         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
15976           gcc_cv_ld_hidden="no"
15977         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
15978           gcc_cv_ld_hidden=no
15979         fi
15980       fi
15981     fi
15982   else
15983     case "${target}" in
15984       hppa64*-*-hpux* | ia64*-*-hpux*)
15985         gcc_cv_ld_hidden=yes
15986         ;;
15987       *)
15988         gcc_cv_ld_hidden=no
15989         ;;
15990     esac
15991   fi
15992 fi
15993 fi
15994 { echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
15995 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6; }
15996 libgcc_visibility=no
15997
15998
15999 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
16000   libgcc_visibility=yes
16001
16002 cat >>confdefs.h <<\_ACEOF
16003 #define HAVE_GAS_HIDDEN 1
16004 _ACEOF
16005
16006 fi
16007
16008 # Check if we have .[us]leb128, and support symbol arithmetic with it.
16009 { echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
16010 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6; }
16011 if test "${gcc_cv_as_leb128+set}" = set; then
16012   echo $ECHO_N "(cached) $ECHO_C" >&6
16013 else
16014   gcc_cv_as_leb128=no
16015     if test $in_tree_gas = yes; then
16016     if test $in_tree_gas_is_elf = yes \
16017   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16018   then gcc_cv_as_leb128=yes
16019 fi
16020   elif test x$gcc_cv_as != x; then
16021     echo '      .data
16022         .uleb128 L2 - L1
16023 L1:
16024         .uleb128 1280
16025         .sleb128 -1010
16026 L2:' > conftest.s
16027     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029   (eval $ac_try) 2>&5
16030   ac_status=$?
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); }; }
16033     then
16034         # GAS versions before 2.11 do not support uleb128,
16035   # despite appearing to.
16036   # ??? There exists an elf-specific test that will crash
16037   # the assembler.  Perhaps it's better to figure out whether
16038   # arbitrary sections are supported and try the test.
16039   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
16040   if echo "$as_ver" | grep GNU > /dev/null; then
16041     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
16042     as_major=`echo $as_ver | sed 's/\..*//'`
16043     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
16044     if test $as_major -eq 2 && test $as_minor -lt 11
16045     then :
16046     else gcc_cv_as_leb128=yes
16047     fi
16048   fi
16049     else
16050       echo "configure: failed program was" >&5
16051       cat conftest.s >&5
16052     fi
16053     rm -f conftest.o conftest.s
16054   fi
16055 fi
16056 { echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
16057 echo "${ECHO_T}$gcc_cv_as_leb128" >&6; }
16058 if test $gcc_cv_as_leb128 = yes; then
16059
16060 cat >>confdefs.h <<\_ACEOF
16061 #define HAVE_AS_LEB128 1
16062 _ACEOF
16063
16064 fi
16065
16066 # GAS versions up to and including 2.11.0 may mis-optimize
16067 # .eh_frame data.
16068 { echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
16069 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6; }
16070 if test "${gcc_cv_as_eh_frame+set}" = set; then
16071   echo $ECHO_N "(cached) $ECHO_C" >&6
16072 else
16073   gcc_cv_as_eh_frame=no
16074     if test $in_tree_gas = yes; then
16075     if test $in_tree_gas_is_elf = yes \
16076   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
16077   then gcc_cv_as_eh_frame=yes
16078 fi
16079   elif test x$gcc_cv_as != x; then
16080     echo '      .text
16081 .LFB1:
16082         .4byte  0
16083 .L1:
16084         .4byte  0
16085 .LFE1:
16086         .section        .eh_frame,"aw",@progbits
16087 __FRAME_BEGIN__:
16088         .4byte  .LECIE1-.LSCIE1
16089 .LSCIE1:
16090         .4byte  0x0
16091         .byte   0x1
16092         .ascii "z\0"
16093         .byte   0x1
16094         .byte   0x78
16095         .byte   0x1a
16096         .byte   0x0
16097         .byte   0x4
16098         .4byte  1
16099         .p2align 1
16100 .LECIE1:
16101 .LSFDE1:
16102         .4byte  .LEFDE1-.LASFDE1
16103 .LASFDE1:
16104         .4byte  .LASFDE1-__FRAME_BEGIN__
16105         .4byte  .LFB1
16106         .4byte  .LFE1-.LFB1
16107         .byte   0x4
16108         .4byte  .LFE1-.LFB1
16109         .byte   0x4
16110         .4byte  .L1-.LFB1
16111 .LEFDE1:' > conftest.s
16112     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114   (eval $ac_try) 2>&5
16115   ac_status=$?
16116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117   (exit $ac_status); }; }
16118     then
16119           cat > conftest.lit <<EOF
16120  0000 10000000 00000000 017a0001 781a0004  .........z..x...
16121  0010 01000000 12000000 18000000 00000000  ................
16122  0020 08000000 04080000 0044               .........D      
16123 EOF
16124 cat > conftest.big <<EOF
16125  0000 00000010 00000000 017a0001 781a0004  .........z..x...
16126  0010 00000001 00000012 00000018 00000000  ................
16127  0020 00000008 04000000 0844               .........D      
16128 EOF
16129   # If the assembler didn't choke, and we can objdump,
16130   # and we got the correct data, then succeed.
16131   # The text in the here-document typically retains its unix-style line
16132   # endings, while the output of objdump will use host line endings.
16133   # Therefore, use diff -b for the comparisons.
16134   if test x$gcc_cv_objdump != x \
16135   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
16136      | tail -3 > conftest.got \
16137   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
16138     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
16139   then
16140     gcc_cv_as_eh_frame=yes
16141   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
16142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143   (eval $ac_try) 2>&5
16144   ac_status=$?
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); }; }; then
16147     gcc_cv_as_eh_frame=buggy
16148   else
16149     # Uh oh, what do we do now?
16150     gcc_cv_as_eh_frame=no
16151   fi
16152     else
16153       echo "configure: failed program was" >&5
16154       cat conftest.s >&5
16155     fi
16156     rm -f conftest.o conftest.s
16157   fi
16158 fi
16159 { echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
16160 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6; }
16161
16162
16163 if test $gcc_cv_as_eh_frame = buggy; then
16164
16165 cat >>confdefs.h <<\_ACEOF
16166 #define USE_AS_TRADITIONAL_FORMAT 1
16167 _ACEOF
16168
16169 fi
16170
16171 { echo "$as_me:$LINENO: checking assembler for section merging support" >&5
16172 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6; }
16173 if test "${gcc_cv_as_shf_merge+set}" = set; then
16174   echo $ECHO_N "(cached) $ECHO_C" >&6
16175 else
16176   gcc_cv_as_shf_merge=no
16177     if test $in_tree_gas = yes; then
16178     if test $in_tree_gas_is_elf = yes \
16179   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
16180   then gcc_cv_as_shf_merge=yes
16181 fi
16182   elif test x$gcc_cv_as != x; then
16183     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
16184     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
16185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186   (eval $ac_try) 2>&5
16187   ac_status=$?
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); }; }
16190     then
16191         gcc_cv_as_shf_merge=yes
16192     else
16193       echo "configure: failed program was" >&5
16194       cat conftest.s >&5
16195     fi
16196     rm -f conftest.o conftest.s
16197   fi
16198 fi
16199 { echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
16200 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6; }
16201
16202 if test $gcc_cv_as_shf_merge = no; then
16203   { echo "$as_me:$LINENO: checking assembler for section merging support" >&5
16204 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6; }
16205 if test "${gcc_cv_as_shf_merge+set}" = set; then
16206   echo $ECHO_N "(cached) $ECHO_C" >&6
16207 else
16208   gcc_cv_as_shf_merge=no
16209     if test $in_tree_gas = yes; then
16210     if test $in_tree_gas_is_elf = yes \
16211   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
16212   then gcc_cv_as_shf_merge=yes
16213 fi
16214   elif test x$gcc_cv_as != x; then
16215     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
16216     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
16217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218   (eval $ac_try) 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); }; }
16222     then
16223         gcc_cv_as_shf_merge=yes
16224     else
16225       echo "configure: failed program was" >&5
16226       cat conftest.s >&5
16227     fi
16228     rm -f conftest.o conftest.s
16229   fi
16230 fi
16231 { echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
16232 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6; }
16233
16234 fi
16235
16236 cat >>confdefs.h <<_ACEOF
16237 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
16238 _ACEOF
16239
16240
16241 { echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
16242 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6; }
16243 if test "${gcc_cv_as_comdat_group+set}" = set; then
16244   echo $ECHO_N "(cached) $ECHO_C" >&6
16245 else
16246   gcc_cv_as_comdat_group=no
16247     if test $in_tree_gas = yes; then
16248     if test $in_tree_gas_is_elf = yes \
16249   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
16250   then gcc_cv_as_comdat_group=yes
16251 fi
16252   elif test x$gcc_cv_as != x; then
16253     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
16254     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
16255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256   (eval $ac_try) 2>&5
16257   ac_status=$?
16258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); }; }
16260     then
16261         gcc_cv_as_comdat_group=yes
16262     else
16263       echo "configure: failed program was" >&5
16264       cat conftest.s >&5
16265     fi
16266     rm -f conftest.o conftest.s
16267   fi
16268 fi
16269 { echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
16270 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6; }
16271
16272 if test $gcc_cv_as_comdat_group = yes; then
16273   gcc_cv_as_comdat_group_percent=no
16274 else
16275  { echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
16276 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6; }
16277 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
16278   echo $ECHO_N "(cached) $ECHO_C" >&6
16279 else
16280   gcc_cv_as_comdat_group_percent=no
16281     if test $in_tree_gas = yes; then
16282     if test $in_tree_gas_is_elf = yes \
16283   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
16284   then gcc_cv_as_comdat_group_percent=yes
16285 fi
16286   elif test x$gcc_cv_as != x; then
16287     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
16288     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
16289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290   (eval $ac_try) 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); }; }
16294     then
16295         gcc_cv_as_comdat_group_percent=yes
16296     else
16297       echo "configure: failed program was" >&5
16298       cat conftest.s >&5
16299     fi
16300     rm -f conftest.o conftest.s
16301   fi
16302 fi
16303 { echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
16304 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6; }
16305
16306 fi
16307 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
16308   comdat_group=yes
16309   if test 0"$ld_date" -lt 20050308; then
16310     if test -n "$ld_date"; then
16311       # If there was date string, but was earlier than 2005-03-08, fail
16312       comdat_group=no
16313     elif test "$ld_vers_major" -lt 2; then
16314       comdat_group=no
16315     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
16316       comdat_group=no
16317     fi
16318   fi
16319 else
16320   # assume linkers other than GNU ld don't support COMDAT group
16321   comdat_group=no
16322 fi
16323 if test $comdat_group = no; then
16324   gcc_cv_as_comdat_group=no
16325   gcc_cv_as_comdat_group_percent=no
16326 fi
16327
16328 cat >>confdefs.h <<_ACEOF
16329 #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`
16330 _ACEOF
16331
16332
16333 # Thread-local storage - the check is heavily parametrized.
16334 conftest_s=
16335 tls_first_major=
16336 tls_first_minor=
16337 tls_as_opt=
16338 case "$target" in
16339   alpha*-*-*)
16340     conftest_s='
16341         .section ".tdata","awT",@progbits
16342 foo:    .long   25
16343         .text
16344         ldq     $27,__tls_get_addr($29)         !literal!1
16345         lda     $16,foo($29)                    !tlsgd!1
16346         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
16347         ldq     $27,__tls_get_addr($29)         !literal!2
16348         lda     $16,foo($29)                    !tlsldm!2
16349         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
16350         ldq     $1,foo($29)                     !gotdtprel
16351         ldah    $2,foo($29)                     !dtprelhi
16352         lda     $3,foo($2)                      !dtprello
16353         lda     $4,foo($29)                     !dtprel
16354         ldq     $1,foo($29)                     !gottprel
16355         ldah    $2,foo($29)                     !tprelhi
16356         lda     $3,foo($2)                      !tprello
16357         lda     $4,foo($29)                     !tprel'
16358         tls_first_major=2
16359         tls_first_minor=13
16360         tls_as_opt=--fatal-warnings
16361         ;;
16362   frv*-*-*)
16363     conftest_s='
16364         .section ".tdata","awT",@progbits
16365 x:      .long   25
16366         .text
16367         call    #gettlsoff(x)'
16368         tls_first_major=2
16369         tls_first_minor=14
16370         ;;
16371   hppa*-*-linux*)
16372     conftest_s='
16373 t1:     .reg    %r20
16374 t2:     .reg    %r21
16375 gp:     .reg    %r19
16376         .section ".tdata","awT",@progbits
16377 foo:    .long   25
16378         .text
16379         .align  4
16380         addil LT%foo-$tls_gdidx$,gp
16381         ldo RT%foo-$tls_gdidx$(%r1),%arg0
16382         b __tls_get_addr
16383         nop
16384         addil LT%foo-$tls_ldidx$,gp
16385         b __tls_get_addr
16386         ldo RT%foo-$tls_ldidx$(%r1),%arg0
16387         addil LR%foo-$tls_dtpoff$,%ret0
16388         ldo RR%foo-$tls_dtpoff$(%r1),%t1
16389         mfctl %cr27,%t1
16390         addil LT%foo-$tls_ieoff$,gp
16391         ldw RT%foo-$tls_ieoff$(%r1),%t2
16392         add %t1,%t2,%t3
16393         mfctl %cr27,%t1
16394         addil LR%foo-$tls_leoff$,%t1
16395         ldo RR%foo-$tls_leoff$(%r1),%t2'
16396         tls_first_major=2
16397         tls_first_minor=15
16398         tls_as_opt=--fatal-warnings
16399         ;;
16400   arm*-*-*)
16401     conftest_s='
16402         .section ".tdata","awT",%progbits
16403 foo:    .long   25
16404         .text
16405 .word foo(gottpoff)
16406 .word foo(tpoff)
16407 .word foo(tlsgd)
16408 .word foo(tlsldm)
16409 .word foo(tlsldo)'
16410         tls_first_major=2
16411         tls_first_minor=17
16412         ;;
16413   i[34567]86-*-*)
16414     conftest_s='
16415         .section ".tdata","awT",@progbits
16416 foo:    .long   25
16417         .text
16418         movl    %gs:0, %eax
16419         leal    foo@TLSGD(,%ebx,1), %eax
16420         leal    foo@TLSLDM(%ebx), %eax
16421         leal    foo@DTPOFF(%eax), %edx
16422         movl    foo@GOTTPOFF(%ebx), %eax
16423         subl    foo@GOTTPOFF(%ebx), %eax
16424         addl    foo@GOTNTPOFF(%ebx), %eax
16425         movl    foo@INDNTPOFF, %eax
16426         movl    $foo@TPOFF, %eax
16427         subl    $foo@TPOFF, %eax
16428         leal    foo@NTPOFF(%ecx), %eax'
16429         tls_first_major=2
16430         tls_first_minor=14
16431         tls_as_opt=--fatal-warnings
16432         ;;
16433   x86_64-*-*)
16434     conftest_s='
16435         .section ".tdata","awT",@progbits
16436 foo:    .long   25
16437         .text
16438         movq    %fs:0, %rax
16439         leaq    foo@TLSGD(%rip), %rdi
16440         leaq    foo@TLSLD(%rip), %rdi
16441         leaq    foo@DTPOFF(%rax), %rdx
16442         movq    foo@GOTTPOFF(%rip), %rax
16443         movq    $foo@TPOFF, %rax'
16444         tls_first_major=2
16445         tls_first_minor=14
16446         tls_as_opt=--fatal-warnings
16447         ;;
16448   ia64-*-*)
16449     conftest_s='
16450         .section ".tdata","awT",@progbits
16451 foo:    data8   25
16452         .text
16453         addl    r16 = @ltoff(@dtpmod(foo#)), gp
16454         addl    r17 = @ltoff(@dtprel(foo#)), gp
16455         addl    r18 = @ltoff(@tprel(foo#)), gp
16456         addl    r19 = @dtprel(foo#), gp
16457         adds    r21 = @dtprel(foo#), r13
16458         movl    r23 = @dtprel(foo#)
16459         addl    r20 = @tprel(foo#), gp
16460         adds    r22 = @tprel(foo#), r13
16461         movl    r24 = @tprel(foo#)'
16462         tls_first_major=2
16463         tls_first_minor=13
16464         tls_as_opt=--fatal-warnings
16465         ;;
16466   mips*-*-*)
16467     conftest_s='
16468         .section .tdata,"awT",@progbits
16469 x:
16470         .word 2
16471         .text
16472         addiu $4, $28, %tlsgd(x)
16473         addiu $4, $28, %tlsldm(x)
16474         lui $4, %dtprel_hi(x)
16475         addiu $4, $4, %dtprel_lo(x)
16476         lw $4, %gottprel(x)($28)
16477         lui $4, %tprel_hi(x)
16478         addiu $4, $4, %tprel_lo(x)'
16479         tls_first_major=2
16480         tls_first_minor=16
16481         tls_as_opt='-32 --fatal-warnings'
16482         ;;
16483   powerpc-*-*)
16484     conftest_s='
16485         .section ".tdata","awT",@progbits
16486         .align 2
16487 ld0:    .space 4
16488 ld1:    .space 4
16489 x1:     .space 4
16490 x2:     .space 4
16491 x3:     .space 4
16492         .text
16493         addi 3,31,ld0@got@tlsgd
16494         bl __tls_get_addr
16495         addi 3,31,x1@got@tlsld
16496         bl __tls_get_addr
16497         addi 9,3,x1@dtprel
16498         addis 9,3,x2@dtprel@ha
16499         addi 9,9,x2@dtprel@l
16500         lwz 9,x3@got@tprel(31)
16501         add 9,9,x@tls
16502         addi 9,2,x1@tprel
16503         addis 9,2,x2@tprel@ha
16504         addi 9,9,x2@tprel@l'
16505         tls_first_major=2
16506         tls_first_minor=14
16507         tls_as_opt="-a32 --fatal-warnings"
16508         ;;
16509   powerpc64-*-*)
16510     conftest_s='
16511         .section ".tdata","awT",@progbits
16512         .align 3
16513 ld0:    .space 8
16514 ld1:    .space 8
16515 x1:     .space 8
16516 x2:     .space 8
16517 x3:     .space 8
16518         .text
16519         addi 3,2,ld0@got@tlsgd
16520         bl .__tls_get_addr
16521         nop
16522         addi 3,2,ld1@toc
16523         bl .__tls_get_addr
16524         nop
16525         addi 3,2,x1@got@tlsld
16526         bl .__tls_get_addr
16527         nop
16528         addi 9,3,x1@dtprel
16529         bl .__tls_get_addr
16530         nop
16531         addis 9,3,x2@dtprel@ha
16532         addi 9,9,x2@dtprel@l
16533         bl .__tls_get_addr
16534         nop
16535         ld 9,x3@got@dtprel(2)
16536         add 9,9,3
16537         bl .__tls_get_addr
16538         nop'
16539         tls_first_major=2
16540         tls_first_minor=14
16541         tls_as_opt="-a64 --fatal-warnings"
16542         ;;
16543   s390-*-*)
16544     conftest_s='
16545         .section ".tdata","awT",@progbits
16546 foo:    .long   25
16547         .text
16548         .long   foo@TLSGD
16549         .long   foo@TLSLDM
16550         .long   foo@DTPOFF
16551         .long   foo@NTPOFF
16552         .long   foo@GOTNTPOFF
16553         .long   foo@INDNTPOFF
16554         l       %r1,foo@GOTNTPOFF(%r12)
16555         l       %r1,0(%r1):tls_load:foo
16556         bas     %r14,0(%r1,%r13):tls_gdcall:foo
16557         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
16558         tls_first_major=2
16559         tls_first_minor=14
16560         tls_as_opt="-m31 --fatal-warnings"
16561         ;;
16562   s390x-*-*)
16563     conftest_s='
16564         .section ".tdata","awT",@progbits
16565 foo:    .long   25
16566         .text
16567         .quad   foo@TLSGD
16568         .quad   foo@TLSLDM
16569         .quad   foo@DTPOFF
16570         .quad   foo@NTPOFF
16571         .quad   foo@GOTNTPOFF
16572         lg      %r1,foo@GOTNTPOFF(%r12)
16573         larl    %r1,foo@INDNTPOFF
16574         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
16575         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
16576         tls_first_major=2
16577         tls_first_minor=14
16578         tls_as_opt="-m64 -Aesame --fatal-warnings"
16579         ;;
16580   sh-*-* | sh[34]-*-*)
16581     conftest_s='
16582         .section ".tdata","awT",@progbits
16583 foo:    .long   25
16584         .text
16585         .long   foo@TLSGD
16586         .long   foo@TLSLDM
16587         .long   foo@DTPOFF
16588         .long   foo@GOTTPOFF
16589         .long   foo@TPOFF'
16590         tls_first_major=2
16591         tls_first_minor=13
16592         tls_as_opt=--fatal-warnings
16593         ;;
16594   sparc*-*-*)
16595     case "$target" in
16596       sparc*-sun-solaris2.[56789]*)
16597         # TLS was introduced in the Solaris 9 4/04 release but
16598         # we do not enable it by default on Solaris 9 either.
16599         if test "x$enable_tls" = xyes ; then
16600           on_solaris=yes
16601         else
16602           enable_tls=no;
16603         fi
16604         ;;
16605       sparc*-sun-solaris2.*)
16606         on_solaris=yes
16607         ;;
16608       *)
16609         on_solaris=no
16610         ;;
16611     esac
16612     if test x$on_solaris = xyes && test x$gas_flag = xno; then
16613       conftest_s='
16614         .section ".tdata",#alloc,#write,#tls
16615 foo:    .long   25
16616         .text
16617         sethi   %tgd_hi22(foo), %o0
16618         add     %o0, %tgd_lo10(foo), %o1
16619         add     %l7, %o1, %o0, %tgd_add(foo)
16620         call    __tls_get_addr, %tgd_call(foo)
16621         sethi   %tldm_hi22(foo), %l1
16622         add     %l1, %tldm_lo10(foo), %l2
16623         add     %l7, %l2, %o0, %tldm_add(foo)
16624         call    __tls_get_addr, %tldm_call(foo)
16625         sethi   %tldo_hix22(foo), %l3
16626         xor     %l3, %tldo_lox10(foo), %l4
16627         add     %o0, %l4, %l5, %tldo_add(foo)
16628         sethi   %tie_hi22(foo), %o3
16629         add     %o3, %tie_lo10(foo), %o3
16630         ld      [%l7 + %o3], %o2, %tie_ld(foo)
16631         add     %g7, %o2, %o4, %tie_add(foo)
16632         sethi   %tle_hix22(foo), %l1
16633         xor     %l1, %tle_lox10(foo), %o5
16634         ld      [%g7 + %o5], %o1'
16635         tls_first_major=0
16636         tls_first_minor=0
16637     else
16638       conftest_s='
16639         .section ".tdata","awT",@progbits
16640 foo:    .long   25
16641         .text
16642         sethi   %tgd_hi22(foo), %o0
16643         add     %o0, %tgd_lo10(foo), %o1
16644         add     %l7, %o1, %o0, %tgd_add(foo)
16645         call    __tls_get_addr, %tgd_call(foo)
16646         sethi   %tldm_hi22(foo), %l1
16647         add     %l1, %tldm_lo10(foo), %l2
16648         add     %l7, %l2, %o0, %tldm_add(foo)
16649         call    __tls_get_addr, %tldm_call(foo)
16650         sethi   %tldo_hix22(foo), %l3
16651         xor     %l3, %tldo_lox10(foo), %l4
16652         add     %o0, %l4, %l5, %tldo_add(foo)
16653         sethi   %tie_hi22(foo), %o3
16654         add     %o3, %tie_lo10(foo), %o3
16655         ld      [%l7 + %o3], %o2, %tie_ld(foo)
16656         add     %g7, %o2, %o4, %tie_add(foo)
16657         sethi   %tle_hix22(foo), %l1
16658         xor     %l1, %tle_lox10(foo), %o5
16659         ld      [%g7 + %o5], %o1'
16660         tls_first_major=2
16661         tls_first_minor=14
16662         tls_as_opt="-32 --fatal-warnings"
16663       fi
16664         ;;
16665 esac
16666 set_have_as_tls=no
16667 if test "x$enable_tls" = xno ; then
16668   : # TLS explicitly disabled.
16669 elif test "x$enable_tls" = xyes ; then
16670   set_have_as_tls=yes # TLS explicitly enabled.
16671 elif test -z "$tls_first_major"; then
16672   : # If we don't have a check, assume no support.
16673 else
16674   { echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
16675 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6; }
16676 if test "${gcc_cv_as_tls+set}" = set; then
16677   echo $ECHO_N "(cached) $ECHO_C" >&6
16678 else
16679   gcc_cv_as_tls=no
16680     if test $in_tree_gas = yes; then
16681     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
16682   then gcc_cv_as_tls=yes
16683 fi
16684   elif test x$gcc_cv_as != x; then
16685     echo "$conftest_s" > conftest.s
16686     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
16687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688   (eval $ac_try) 2>&5
16689   ac_status=$?
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); }; }
16692     then
16693         gcc_cv_as_tls=yes
16694     else
16695       echo "configure: failed program was" >&5
16696       cat conftest.s >&5
16697     fi
16698     rm -f conftest.o conftest.s
16699   fi
16700 fi
16701 { echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
16702 echo "${ECHO_T}$gcc_cv_as_tls" >&6; }
16703 if test $gcc_cv_as_tls = yes; then
16704   set_have_as_tls=yes
16705 fi
16706 fi
16707 if test $set_have_as_tls = yes ; then
16708
16709 cat >>confdefs.h <<\_ACEOF
16710 #define HAVE_AS_TLS 1
16711 _ACEOF
16712
16713 fi
16714
16715 # Target-specific assembler checks.
16716
16717 { echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
16718 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6; }
16719 gcc_cv_ld_static_dynamic=no
16720 if test $in_tree_ld = yes ; then
16721   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
16722     gcc_cv_ld_static_dynamic=yes
16723   fi
16724 elif test x$gcc_cv_ld != x; then
16725         # Check if linker supports -Bstatic/-Bdynamic option
16726         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
16727           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
16728                 gcc_cv_ld_static_dynamic=yes
16729         fi
16730 fi
16731 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
16732
16733 cat >>confdefs.h <<\_ACEOF
16734 #define HAVE_LD_STATIC_DYNAMIC 1
16735 _ACEOF
16736
16737 fi
16738 { echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
16739 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6; }
16740
16741 if test x"$demangler_in_ld" = xyes; then
16742   { echo "$as_me:$LINENO: checking linker --demangle support" >&5
16743 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6; }
16744   gcc_cv_ld_demangle=no
16745   if test $in_tree_ld = yes; then
16746     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
16747       gcc_cv_ld_demangle=yes
16748     fi
16749   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
16750     # Check if the GNU linker supports --demangle option
16751     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
16752       gcc_cv_ld_demangle=yes
16753     fi
16754   fi
16755   if test x"$gcc_cv_ld_demangle" = xyes; then
16756
16757 cat >>confdefs.h <<\_ACEOF
16758 #define HAVE_LD_DEMANGLE 1
16759 _ACEOF
16760
16761   fi
16762   { echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
16763 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6; }
16764 fi
16765
16766 case "$target" in
16767   # All TARGET_ABI_OSF targets.
16768   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
16769     { echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
16770 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6; }
16771 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
16772   echo $ECHO_N "(cached) $ECHO_C" >&6
16773 else
16774   gcc_cv_as_alpha_explicit_relocs=no
16775     if test $in_tree_gas = yes; then
16776     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
16777   then gcc_cv_as_alpha_explicit_relocs=yes
16778 fi
16779   elif test x$gcc_cv_as != x; then
16780     echo '      .set nomacro
16781         .text
16782         extbl   $3, $2, $3      !lituse_bytoff!1
16783         ldq     $2, a($29)      !literal!1
16784         ldq     $4, b($29)      !literal!2
16785         ldq_u   $3, 0($2)       !lituse_base!1
16786         ldq     $27, f($29)     !literal!5
16787         jsr     $26, ($27), f   !lituse_jsr!5
16788         ldah    $29, 0($26)     !gpdisp!3
16789         lda     $0, c($29)      !gprel
16790         ldah    $1, d($29)      !gprelhigh
16791         lda     $1, d($1)       !gprellow
16792         lda     $29, 0($29)     !gpdisp!3' > conftest.s
16793     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795   (eval $ac_try) 2>&5
16796   ac_status=$?
16797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798   (exit $ac_status); }; }
16799     then
16800         gcc_cv_as_alpha_explicit_relocs=yes
16801     else
16802       echo "configure: failed program was" >&5
16803       cat conftest.s >&5
16804     fi
16805     rm -f conftest.o conftest.s
16806   fi
16807 fi
16808 { echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
16809 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6; }
16810 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
16811
16812 cat >>confdefs.h <<\_ACEOF
16813 #define HAVE_AS_EXPLICIT_RELOCS 1
16814 _ACEOF
16815
16816 fi
16817     { echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
16818 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6; }
16819 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
16820   echo $ECHO_N "(cached) $ECHO_C" >&6
16821 else
16822   gcc_cv_as_alpha_jsrdirect_relocs=no
16823     if test $in_tree_gas = yes; then
16824     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
16825   then gcc_cv_as_alpha_jsrdirect_relocs=yes
16826 fi
16827   elif test x$gcc_cv_as != x; then
16828     echo '      .set nomacro
16829         .text
16830         ldq     $27, a($29)     !literal!1
16831         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
16832     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834   (eval $ac_try) 2>&5
16835   ac_status=$?
16836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837   (exit $ac_status); }; }
16838     then
16839         gcc_cv_as_alpha_jsrdirect_relocs=yes
16840     else
16841       echo "configure: failed program was" >&5
16842       cat conftest.s >&5
16843     fi
16844     rm -f conftest.o conftest.s
16845   fi
16846 fi
16847 { echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
16848 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
16849 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
16850
16851 cat >>confdefs.h <<\_ACEOF
16852 #define HAVE_AS_JSRDIRECT_RELOCS 1
16853 _ACEOF
16854
16855 fi
16856     ;;
16857
16858   cris-*-*)
16859     { echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
16860 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6; }
16861 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
16862   echo $ECHO_N "(cached) $ECHO_C" >&6
16863 else
16864   gcc_cv_as_cris_no_mul_bug=no
16865     if test $in_tree_gas = yes; then
16866     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
16867   then gcc_cv_as_cris_no_mul_bug=yes
16868 fi
16869   elif test x$gcc_cv_as != x; then
16870     echo '.text' > conftest.s
16871     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
16872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873   (eval $ac_try) 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); }; }
16877     then
16878         gcc_cv_as_cris_no_mul_bug=yes
16879     else
16880       echo "configure: failed program was" >&5
16881       cat conftest.s >&5
16882     fi
16883     rm -f conftest.o conftest.s
16884   fi
16885 fi
16886 { echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
16887 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6; }
16888 if test $gcc_cv_as_cris_no_mul_bug = yes; then
16889
16890 cat >>confdefs.h <<\_ACEOF
16891 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
16892 _ACEOF
16893
16894 fi
16895     ;;
16896
16897   sparc*-*-*)
16898     { echo "$as_me:$LINENO: checking assembler for .register" >&5
16899 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6; }
16900 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
16901   echo $ECHO_N "(cached) $ECHO_C" >&6
16902 else
16903   gcc_cv_as_sparc_register_op=no
16904   if test x$gcc_cv_as != x; then
16905     echo '.register %g2, #scratch' > conftest.s
16906     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908   (eval $ac_try) 2>&5
16909   ac_status=$?
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); }; }
16912     then
16913         gcc_cv_as_sparc_register_op=yes
16914     else
16915       echo "configure: failed program was" >&5
16916       cat conftest.s >&5
16917     fi
16918     rm -f conftest.o conftest.s
16919   fi
16920 fi
16921 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
16922 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6; }
16923 if test $gcc_cv_as_sparc_register_op = yes; then
16924
16925 cat >>confdefs.h <<\_ACEOF
16926 #define HAVE_AS_REGISTER_PSEUDO_OP 1
16927 _ACEOF
16928
16929 fi
16930
16931     { echo "$as_me:$LINENO: checking assembler for -relax option" >&5
16932 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6; }
16933 if test "${gcc_cv_as_sparc_relax+set}" = set; then
16934   echo $ECHO_N "(cached) $ECHO_C" >&6
16935 else
16936   gcc_cv_as_sparc_relax=no
16937   if test x$gcc_cv_as != x; then
16938     echo '.text' > conftest.s
16939     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
16940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941   (eval $ac_try) 2>&5
16942   ac_status=$?
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); }; }
16945     then
16946         gcc_cv_as_sparc_relax=yes
16947     else
16948       echo "configure: failed program was" >&5
16949       cat conftest.s >&5
16950     fi
16951     rm -f conftest.o conftest.s
16952   fi
16953 fi
16954 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
16955 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6; }
16956 if test $gcc_cv_as_sparc_relax = yes; then
16957
16958 cat >>confdefs.h <<\_ACEOF
16959 #define HAVE_AS_RELAX_OPTION 1
16960 _ACEOF
16961
16962 fi
16963
16964     { echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
16965 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6; }
16966 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
16967   echo $ECHO_N "(cached) $ECHO_C" >&6
16968 else
16969   gcc_cv_as_sparc_ua_pcrel=no
16970   if test x$gcc_cv_as != x; then
16971     echo '.text
16972 foo:
16973         nop
16974 .data
16975 .align 4
16976 .byte 0
16977 .uaword %r_disp32(foo)' > conftest.s
16978     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
16979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980   (eval $ac_try) 2>&5
16981   ac_status=$?
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); }; }
16984     then
16985         if test x$gcc_cv_ld != x \
16986        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
16987          gcc_cv_as_sparc_ua_pcrel=yes
16988        fi
16989        rm -f conftest
16990     else
16991       echo "configure: failed program was" >&5
16992       cat conftest.s >&5
16993     fi
16994     rm -f conftest.o conftest.s
16995   fi
16996 fi
16997 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
16998 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6; }
16999 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
17000
17001 cat >>confdefs.h <<\_ACEOF
17002 #define HAVE_AS_SPARC_UA_PCREL 1
17003 _ACEOF
17004
17005
17006       { echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
17007 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6; }
17008 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
17009   echo $ECHO_N "(cached) $ECHO_C" >&6
17010 else
17011   gcc_cv_as_sparc_ua_pcrel_hidden=no
17012   if test x$gcc_cv_as != x; then
17013     echo '.data
17014 .align 4
17015 .byte 0x31
17016 .uaword %r_disp32(foo)
17017 .byte 0x32, 0x33, 0x34
17018 .global foo
17019 .hidden foo
17020 foo:
17021 .skip 4' > conftest.s
17022     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
17023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024   (eval $ac_try) 2>&5
17025   ac_status=$?
17026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027   (exit $ac_status); }; }
17028     then
17029         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
17030          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
17031          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
17032             | grep ' 31000000 07323334' > /dev/null 2>&1; then
17033             if $gcc_cv_objdump -R conftest 2> /dev/null \
17034                | grep 'DISP32' > /dev/null 2>&1; then
17035                 :
17036             else
17037                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
17038             fi
17039          fi
17040          rm -f conftest
17041     else
17042       echo "configure: failed program was" >&5
17043       cat conftest.s >&5
17044     fi
17045     rm -f conftest.o conftest.s
17046   fi
17047 fi
17048 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
17049 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
17050 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
17051
17052 cat >>confdefs.h <<\_ACEOF
17053 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
17054 _ACEOF
17055
17056 fi
17057
17058 fi # unaligned pcrel relocs
17059
17060     { echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
17061 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6; }
17062 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
17063   echo $ECHO_N "(cached) $ECHO_C" >&6
17064 else
17065   gcc_cv_as_sparc_offsetable_lo10=no
17066   if test x$gcc_cv_as != x; then
17067     echo '.text
17068         or %g1, %lo(ab) + 12, %g1
17069         or %g1, %lo(ab + 12), %g1' > conftest.s
17070     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
17071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17072   (eval $ac_try) 2>&5
17073   ac_status=$?
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); }; }
17076     then
17077         if test x$gcc_cv_objdump != x \
17078        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
17079           | grep ' 82106000 82106000' > /dev/null 2>&1; then
17080          gcc_cv_as_sparc_offsetable_lo10=yes
17081        fi
17082     else
17083       echo "configure: failed program was" >&5
17084       cat conftest.s >&5
17085     fi
17086     rm -f conftest.o conftest.s
17087   fi
17088 fi
17089 { echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
17090 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6; }
17091 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
17092
17093 cat >>confdefs.h <<\_ACEOF
17094 #define HAVE_AS_OFFSETABLE_LO10 1
17095 _ACEOF
17096
17097 fi
17098     ;;
17099
17100   i[34567]86-*-* | x86_64-*-*)
17101     case $target_os in
17102       cygwin* | pe | mingw32*)
17103         # Used for DWARF 2 in PE
17104         { echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
17105 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6; }
17106 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
17107   echo $ECHO_N "(cached) $ECHO_C" >&6
17108 else
17109   gcc_cv_as_ix86_pe_secrel32=no
17110     if test $in_tree_gas = yes; then
17111     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
17112   then gcc_cv_as_ix86_pe_secrel32=yes
17113 fi
17114   elif test x$gcc_cv_as != x; then
17115     echo '.text
17116 foo:    nop
17117 .data
17118         .secrel32 foo' > conftest.s
17119     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
17120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121   (eval $ac_try) 2>&5
17122   ac_status=$?
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); }; }
17125     then
17126         if test x$gcc_cv_ld != x \
17127            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
17128              gcc_cv_as_ix86_pe_secrel32=yes
17129            fi
17130            rm -f conftest
17131     else
17132       echo "configure: failed program was" >&5
17133       cat conftest.s >&5
17134     fi
17135     rm -f conftest.o conftest.s
17136   fi
17137 fi
17138 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
17139 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6; }
17140 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
17141
17142 cat >>confdefs.h <<\_ACEOF
17143 #define HAVE_GAS_PE_SECREL32_RELOC 1
17144 _ACEOF
17145
17146 fi
17147         ;;
17148     esac
17149
17150     { echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
17151 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6; }
17152 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
17153   echo $ECHO_N "(cached) $ECHO_C" >&6
17154 else
17155   gcc_cv_as_ix86_filds_fists=no
17156     if test $in_tree_gas = yes; then
17157     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
17158   then gcc_cv_as_ix86_filds_fists=yes
17159 fi
17160   elif test x$gcc_cv_as != x; then
17161     echo 'filds mem; fists mem' > conftest.s
17162     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
17163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164   (eval $ac_try) 2>&5
17165   ac_status=$?
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); }; }
17168     then
17169         gcc_cv_as_ix86_filds_fists=yes
17170     else
17171       echo "configure: failed program was" >&5
17172       cat conftest.s >&5
17173     fi
17174     rm -f conftest.o conftest.s
17175   fi
17176 fi
17177 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
17178 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6; }
17179 if test $gcc_cv_as_ix86_filds_fists = yes; then
17180
17181 cat >>confdefs.h <<\_ACEOF
17182 #define HAVE_GAS_FILDS_FISTS 1
17183 _ACEOF
17184
17185 fi
17186
17187     { echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
17188 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6; }
17189 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
17190   echo $ECHO_N "(cached) $ECHO_C" >&6
17191 else
17192   gcc_cv_as_ix86_cmov_sun_syntax=no
17193   if test x$gcc_cv_as != x; then
17194     echo 'cmovl.l %edx, %eax' > conftest.s
17195     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
17196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197   (eval $ac_try) 2>&5
17198   ac_status=$?
17199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200   (exit $ac_status); }; }
17201     then
17202         gcc_cv_as_ix86_cmov_sun_syntax=yes
17203     else
17204       echo "configure: failed program was" >&5
17205       cat conftest.s >&5
17206     fi
17207     rm -f conftest.o conftest.s
17208   fi
17209 fi
17210 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
17211 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
17212 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
17213
17214 cat >>confdefs.h <<\_ACEOF
17215 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
17216 _ACEOF
17217
17218 fi
17219
17220     { echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
17221 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6; }
17222 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
17223   echo $ECHO_N "(cached) $ECHO_C" >&6
17224 else
17225   gcc_cv_as_ix86_ffreep=no
17226   if test x$gcc_cv_as != x; then
17227     echo 'ffreep %st(1)' > conftest.s
17228     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
17229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230   (eval $ac_try) 2>&5
17231   ac_status=$?
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); }; }
17234     then
17235         gcc_cv_as_ix86_ffreep=yes
17236     else
17237       echo "configure: failed program was" >&5
17238       cat conftest.s >&5
17239     fi
17240     rm -f conftest.o conftest.s
17241   fi
17242 fi
17243 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
17244 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6; }
17245 if test $gcc_cv_as_ix86_ffreep = yes; then
17246
17247 cat >>confdefs.h <<\_ACEOF
17248 #define HAVE_AS_IX86_FFREEP 1
17249 _ACEOF
17250
17251 fi
17252
17253     { echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
17254 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6; }
17255 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
17256   echo $ECHO_N "(cached) $ECHO_C" >&6
17257 else
17258   gcc_cv_as_ix86_diff_sect_delta=no
17259   if test x$gcc_cv_as != x; then
17260     echo '.section .rodata
17261 .L1:
17262         .long .L2-.L1
17263         .long .L3-.L1
17264         .text
17265 .L3:    nop
17266 .L2:    nop' > conftest.s
17267     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
17268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269   (eval $ac_try) 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; }
17273     then
17274         gcc_cv_as_ix86_diff_sect_delta=yes
17275     else
17276       echo "configure: failed program was" >&5
17277       cat conftest.s >&5
17278     fi
17279     rm -f conftest.o conftest.s
17280   fi
17281 fi
17282 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
17283 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6; }
17284 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
17285
17286 cat >>confdefs.h <<\_ACEOF
17287 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
17288 _ACEOF
17289
17290 fi
17291
17292     # This one is used unconditionally by i386.[ch]; it is to be defined
17293     # to 1 if the feature is present, 0 otherwise.
17294     { echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
17295 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6; }
17296 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
17297   echo $ECHO_N "(cached) $ECHO_C" >&6
17298 else
17299   gcc_cv_as_ix86_gotoff_in_data=no
17300     if test $in_tree_gas = yes; then
17301     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
17302   then gcc_cv_as_ix86_gotoff_in_data=yes
17303 fi
17304   elif test x$gcc_cv_as != x; then
17305     echo '      .text
17306 .L0:
17307         nop
17308         .data
17309         .long .L0@GOTOFF' > conftest.s
17310     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
17311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312   (eval $ac_try) 2>&5
17313   ac_status=$?
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); }; }
17316     then
17317         gcc_cv_as_ix86_gotoff_in_data=yes
17318     else
17319       echo "configure: failed program was" >&5
17320       cat conftest.s >&5
17321     fi
17322     rm -f conftest.o conftest.s
17323   fi
17324 fi
17325 { echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
17326 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6; }
17327
17328
17329 cat >>confdefs.h <<_ACEOF
17330 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
17331 _ACEOF
17332
17333     ;;
17334
17335   ia64*-*-*)
17336     { echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
17337 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6; }
17338 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
17339   echo $ECHO_N "(cached) $ECHO_C" >&6
17340 else
17341   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
17342     if test $in_tree_gas = yes; then
17343     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
17344   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
17345 fi
17346   elif test x$gcc_cv_as != x; then
17347     echo '      .text
17348         addl r15 = @ltoffx(x#), gp
17349         ;;
17350         ld8.mov r16 = [r15], x#' > conftest.s
17351     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
17352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353   (eval $ac_try) 2>&5
17354   ac_status=$?
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); }; }
17357     then
17358         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
17359     else
17360       echo "configure: failed program was" >&5
17361       cat conftest.s >&5
17362     fi
17363     rm -f conftest.o conftest.s
17364   fi
17365 fi
17366 { echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
17367 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
17368 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
17369
17370 cat >>confdefs.h <<\_ACEOF
17371 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
17372 _ACEOF
17373
17374 fi
17375
17376     ;;
17377
17378   powerpc*-*-*)
17379     case $target in
17380       *-*-aix*) conftest_s='    .machine "pwr5"
17381         .csect .text[PR]
17382         mfcr 3,128';;
17383       *-*-darwin*)
17384         { echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
17385 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6; }
17386 if test "${gcc_cv_as_machine_directive+set}" = set; then
17387   echo $ECHO_N "(cached) $ECHO_C" >&6
17388 else
17389   gcc_cv_as_machine_directive=no
17390   if test x$gcc_cv_as != x; then
17391     echo '      .machine ppc7400' > conftest.s
17392     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
17393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17394   (eval $ac_try) 2>&5
17395   ac_status=$?
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); }; }
17398     then
17399         gcc_cv_as_machine_directive=yes
17400     else
17401       echo "configure: failed program was" >&5
17402       cat conftest.s >&5
17403     fi
17404     rm -f conftest.o conftest.s
17405   fi
17406 fi
17407 { echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
17408 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6; }
17409
17410         if test x$gcc_cv_as_machine_directive != xyes; then
17411           echo "*** This target requires an assembler supporting \".machine\"" >&2
17412           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
17413           test x$build = x$target && exit 1
17414         fi
17415         conftest_s='    .text
17416         mfcr r3,128';;
17417       *) conftest_s='   .machine power4
17418         .text
17419         mfcr 3,128';;
17420     esac
17421
17422     { echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
17423 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6; }
17424 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
17425   echo $ECHO_N "(cached) $ECHO_C" >&6
17426 else
17427   gcc_cv_as_powerpc_mfcrf=no
17428     if test $in_tree_gas = yes; then
17429     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
17430   then gcc_cv_as_powerpc_mfcrf=yes
17431 fi
17432   elif test x$gcc_cv_as != x; then
17433     echo "$conftest_s" > conftest.s
17434     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
17435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436   (eval $ac_try) 2>&5
17437   ac_status=$?
17438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439   (exit $ac_status); }; }
17440     then
17441         gcc_cv_as_powerpc_mfcrf=yes
17442     else
17443       echo "configure: failed program was" >&5
17444       cat conftest.s >&5
17445     fi
17446     rm -f conftest.o conftest.s
17447   fi
17448 fi
17449 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
17450 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6; }
17451 if test $gcc_cv_as_powerpc_mfcrf = yes; then
17452
17453 cat >>confdefs.h <<\_ACEOF
17454 #define HAVE_AS_MFCRF 1
17455 _ACEOF
17456
17457 fi
17458
17459     case $target in
17460       *-*-aix*) conftest_s='    .machine "pwr5"
17461         .csect .text[PR]
17462         popcntb 3,3';;
17463       *) conftest_s='   .machine power5
17464         .text
17465         popcntb 3,3';;
17466     esac
17467
17468     { echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
17469 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6; }
17470 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
17471   echo $ECHO_N "(cached) $ECHO_C" >&6
17472 else
17473   gcc_cv_as_powerpc_popcntb=no
17474     if test $in_tree_gas = yes; then
17475     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
17476   then gcc_cv_as_powerpc_popcntb=yes
17477 fi
17478   elif test x$gcc_cv_as != x; then
17479     echo "$conftest_s" > conftest.s
17480     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
17481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17482   (eval $ac_try) 2>&5
17483   ac_status=$?
17484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485   (exit $ac_status); }; }
17486     then
17487         gcc_cv_as_powerpc_popcntb=yes
17488     else
17489       echo "configure: failed program was" >&5
17490       cat conftest.s >&5
17491     fi
17492     rm -f conftest.o conftest.s
17493   fi
17494 fi
17495 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
17496 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6; }
17497 if test $gcc_cv_as_powerpc_popcntb = yes; then
17498
17499 cat >>confdefs.h <<\_ACEOF
17500 #define HAVE_AS_POPCNTB 1
17501 _ACEOF
17502
17503 fi
17504
17505     case $target in
17506       *-*-aix*) conftest_s='    .machine "pwr5x"
17507         .csect .text[PR]
17508         frin 1,1';;
17509       *) conftest_s='   .machine power5
17510         .text
17511         frin 1,1';;
17512     esac
17513
17514     { echo "$as_me:$LINENO: checking assembler for fp round support" >&5
17515 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6; }
17516 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
17517   echo $ECHO_N "(cached) $ECHO_C" >&6
17518 else
17519   gcc_cv_as_powerpc_fprnd=no
17520     if test $in_tree_gas = yes; then
17521     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
17522   then gcc_cv_as_powerpc_fprnd=yes
17523 fi
17524   elif test x$gcc_cv_as != x; then
17525     echo "$conftest_s" > conftest.s
17526     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
17527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528   (eval $ac_try) 2>&5
17529   ac_status=$?
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); }; }
17532     then
17533         gcc_cv_as_powerpc_fprnd=yes
17534     else
17535       echo "configure: failed program was" >&5
17536       cat conftest.s >&5
17537     fi
17538     rm -f conftest.o conftest.s
17539   fi
17540 fi
17541 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
17542 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6; }
17543 if test $gcc_cv_as_powerpc_fprnd = yes; then
17544
17545 cat >>confdefs.h <<\_ACEOF
17546 #define HAVE_AS_FPRND 1
17547 _ACEOF
17548
17549 fi
17550
17551     case $target in
17552       *-*-aix*) conftest_s='    .machine "pwr6"
17553         .csect .text[PR]
17554         mffgpr 1,3';;
17555       *) conftest_s='   .machine power6
17556         .text
17557         mffgpr 1,3';;
17558     esac
17559
17560     { echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
17561 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6; }
17562 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
17563   echo $ECHO_N "(cached) $ECHO_C" >&6
17564 else
17565   gcc_cv_as_powerpc_mfpgpr=no
17566     if test $in_tree_gas = yes; then
17567     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
17568   then gcc_cv_as_powerpc_mfpgpr=yes
17569 fi
17570   elif test x$gcc_cv_as != x; then
17571     echo "$conftest_s" > conftest.s
17572     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
17573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574   (eval $ac_try) 2>&5
17575   ac_status=$?
17576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577   (exit $ac_status); }; }
17578     then
17579         gcc_cv_as_powerpc_mfpgpr=yes
17580     else
17581       echo "configure: failed program was" >&5
17582       cat conftest.s >&5
17583     fi
17584     rm -f conftest.o conftest.s
17585   fi
17586 fi
17587 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
17588 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6; }
17589 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
17590
17591 cat >>confdefs.h <<\_ACEOF
17592 #define HAVE_AS_MFPGPR 1
17593 _ACEOF
17594
17595 fi
17596
17597     case $target in
17598       *-*-aix*) conftest_s='    .csect .text[PR]
17599 LCF..0:
17600         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
17601       *-*-darwin*)
17602         conftest_s='    .text
17603 LCF0:
17604         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
17605       *) conftest_s='   .text
17606 .LCF0:
17607         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
17608     esac
17609
17610     { echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
17611 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6; }
17612 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
17613   echo $ECHO_N "(cached) $ECHO_C" >&6
17614 else
17615   gcc_cv_as_powerpc_rel16=no
17616     if test $in_tree_gas = yes; then
17617     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
17618   then gcc_cv_as_powerpc_rel16=yes
17619 fi
17620   elif test x$gcc_cv_as != x; then
17621     echo "$conftest_s" > conftest.s
17622     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
17623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624   (eval $ac_try) 2>&5
17625   ac_status=$?
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); }; }
17628     then
17629         gcc_cv_as_powerpc_rel16=yes
17630     else
17631       echo "configure: failed program was" >&5
17632       cat conftest.s >&5
17633     fi
17634     rm -f conftest.o conftest.s
17635   fi
17636 fi
17637 { echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
17638 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6; }
17639 if test $gcc_cv_as_powerpc_rel16 = yes; then
17640
17641 cat >>confdefs.h <<\_ACEOF
17642 #define HAVE_AS_REL16 1
17643 _ACEOF
17644
17645 fi
17646     ;;
17647
17648   mips*-*-*)
17649     { echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
17650 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6; }
17651 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
17652   echo $ECHO_N "(cached) $ECHO_C" >&6
17653 else
17654   gcc_cv_as_mips_explicit_relocs=no
17655     if test $in_tree_gas = yes; then
17656     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
17657   then gcc_cv_as_mips_explicit_relocs=yes
17658 fi
17659   elif test x$gcc_cv_as != x; then
17660     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
17661     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
17662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663   (eval $ac_try) 2>&5
17664   ac_status=$?
17665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666   (exit $ac_status); }; }
17667     then
17668         gcc_cv_as_mips_explicit_relocs=yes
17669     else
17670       echo "configure: failed program was" >&5
17671       cat conftest.s >&5
17672     fi
17673     rm -f conftest.o conftest.s
17674   fi
17675 fi
17676 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
17677 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6; }
17678 if test $gcc_cv_as_mips_explicit_relocs = yes; then
17679   if test x$target_cpu_default = x
17680        then target_cpu_default=MASK_EXPLICIT_RELOCS
17681        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
17682        fi
17683 fi
17684     { echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
17685 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6; }
17686 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
17687   echo $ECHO_N "(cached) $ECHO_C" >&6
17688 else
17689   gcc_cv_as_mips_no_shared=no
17690     if test $in_tree_gas = yes; then
17691     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
17692   then gcc_cv_as_mips_no_shared=yes
17693 fi
17694   elif test x$gcc_cv_as != x; then
17695     echo 'nop' > conftest.s
17696     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
17697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698   (eval $ac_try) 2>&5
17699   ac_status=$?
17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701   (exit $ac_status); }; }
17702     then
17703         gcc_cv_as_mips_no_shared=yes
17704     else
17705       echo "configure: failed program was" >&5
17706       cat conftest.s >&5
17707     fi
17708     rm -f conftest.o conftest.s
17709   fi
17710 fi
17711 { echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
17712 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6; }
17713 if test $gcc_cv_as_mips_no_shared = yes; then
17714
17715 cat >>confdefs.h <<\_ACEOF
17716 #define HAVE_AS_NO_SHARED 1
17717 _ACEOF
17718
17719 fi
17720     ;;
17721 esac
17722
17723 # Mips and HP-UX need the GNU assembler.
17724 # Linux on IA64 might be able to use the Intel assembler.
17725
17726 case "$target" in
17727   mips*-*-* | *-*-hpux* )
17728     if test x$gas_flag = xyes \
17729        || test x"$host" != x"$build" \
17730        || test ! -x "$gcc_cv_as" \
17731        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
17732       :
17733     else
17734       echo "*** This configuration requires the GNU assembler" >&2
17735       exit 1
17736     fi
17737     ;;
17738 esac
17739
17740 # ??? Not all targets support dwarf2 debug_line, even within a version
17741 # of gas.  Moreover, we need to emit a valid instruction to trigger any
17742 # info to the output file.  So, as supported targets are added to gas 2.11,
17743 # add some instruction here to (also) show we expect this might work.
17744 # ??? Once 2.11 is released, probably need to add first known working
17745 # version to the per-target configury.
17746 case "$target" in
17747   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
17748   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
17749   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-*)
17750     insn="nop"
17751     ;;
17752   ia64*-*-* | s390*-*-*)
17753     insn="nop 0"
17754     ;;
17755   mmix-*-*)
17756     insn="swym 0"
17757     ;;
17758 esac
17759 if test x"$insn" != x; then
17760  conftest_s="\
17761         .file 1 \"conftest.s\"
17762         .loc 1 3 0
17763         $insn"
17764  { echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
17765 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6; }
17766 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
17767   echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769   gcc_cv_as_dwarf2_debug_line=no
17770     if test $in_tree_gas = yes; then
17771     if test $in_tree_gas_is_elf = yes \
17772   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
17773   then gcc_cv_as_dwarf2_debug_line=yes
17774 fi
17775   elif test x$gcc_cv_as != x; then
17776     echo "$conftest_s" > conftest.s
17777     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
17778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779   (eval $ac_try) 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); }; }
17783     then
17784         if test x$gcc_cv_objdump != x \
17785    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
17786       | grep debug_line > /dev/null 2>&1; then
17787      gcc_cv_as_dwarf2_debug_line=yes
17788    fi
17789     else
17790       echo "configure: failed program was" >&5
17791       cat conftest.s >&5
17792     fi
17793     rm -f conftest.o conftest.s
17794   fi
17795 fi
17796 { echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
17797 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6; }
17798
17799
17800 # The .debug_line file table must be in the exact order that
17801 # we specified the files, since these indices are also used
17802 # by DW_AT_decl_file.  Approximate this test by testing if
17803 # the assembler bitches if the same index is assigned twice.
17804  { echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
17805 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6; }
17806 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
17807   echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809   gcc_cv_as_dwarf2_file_buggy=no
17810   if test x$gcc_cv_as != x; then
17811     echo '      .file 1 "foo.s"
17812         .file 1 "bar.s"' > conftest.s
17813     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
17814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815   (eval $ac_try) 2>&5
17816   ac_status=$?
17817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818   (exit $ac_status); }; }
17819     then
17820         gcc_cv_as_dwarf2_file_buggy=yes
17821     else
17822       echo "configure: failed program was" >&5
17823       cat conftest.s >&5
17824     fi
17825     rm -f conftest.o conftest.s
17826   fi
17827 fi
17828 { echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
17829 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6; }
17830
17831
17832  if test $gcc_cv_as_dwarf2_debug_line = yes \
17833  && test $gcc_cv_as_dwarf2_file_buggy = no; then
17834
17835 cat >>confdefs.h <<\_ACEOF
17836 #define HAVE_AS_DWARF2_DEBUG_LINE 1
17837 _ACEOF
17838
17839  fi
17840
17841  { echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
17842 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6; }
17843 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
17844   echo $ECHO_N "(cached) $ECHO_C" >&6
17845 else
17846   gcc_cv_as_gdwarf2_flag=no
17847     if test $in_tree_gas = yes; then
17848     if test $in_tree_gas_is_elf = yes \
17849   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
17850   then gcc_cv_as_gdwarf2_flag=yes
17851 fi
17852   elif test x$gcc_cv_as != x; then
17853     echo "$insn" > conftest.s
17854     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
17855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856   (eval $ac_try) 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); }; }
17860     then
17861         gcc_cv_as_gdwarf2_flag=yes
17862     else
17863       echo "configure: failed program was" >&5
17864       cat conftest.s >&5
17865     fi
17866     rm -f conftest.o conftest.s
17867   fi
17868 fi
17869 { echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
17870 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6; }
17871 if test $gcc_cv_as_gdwarf2_flag = yes; then
17872
17873 cat >>confdefs.h <<\_ACEOF
17874 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
17875 _ACEOF
17876
17877 fi
17878
17879  { echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
17880 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6; }
17881 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
17882   echo $ECHO_N "(cached) $ECHO_C" >&6
17883 else
17884   gcc_cv_as_gstabs_flag=no
17885     if test $in_tree_gas = yes; then
17886     if test $in_tree_gas_is_elf = yes \
17887   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
17888   then gcc_cv_as_gstabs_flag=yes
17889 fi
17890   elif test x$gcc_cv_as != x; then
17891     echo "$insn" > conftest.s
17892     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
17893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894   (eval $ac_try) 2>&5
17895   ac_status=$?
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); }; }
17898     then
17899         # The native Solaris 9/Intel assembler doesn't understand --gstabs
17900    # and warns about it, but still exits successfully.  So check for
17901    # this.
17902    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
17903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904   (eval $ac_try) 2>&5
17905   ac_status=$?
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); }; }
17908    then :
17909    else gcc_cv_as_gstabs_flag=yes
17910    fi
17911     else
17912       echo "configure: failed program was" >&5
17913       cat conftest.s >&5
17914     fi
17915     rm -f conftest.o conftest.s
17916   fi
17917 fi
17918 { echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
17919 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6; }
17920 if test $gcc_cv_as_gstabs_flag = yes; then
17921
17922 cat >>confdefs.h <<\_ACEOF
17923 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
17924 _ACEOF
17925
17926 fi
17927 fi
17928
17929 { echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
17930 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6; }
17931 gcc_cv_ld_ro_rw_mix=unknown
17932 if test $in_tree_ld = yes ; then
17933   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 \
17934      && test $in_tree_ld_is_elf = yes; then
17935     gcc_cv_ld_ro_rw_mix=read-write
17936   fi
17937 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
17938   echo '.section myfoosect, "a"' > conftest1.s
17939   echo '.section myfoosect, "aw"' > conftest2.s
17940   echo '.byte 1' >> conftest2.s
17941   echo '.section myfoosect, "a"' > conftest3.s
17942   echo '.byte 0' >> conftest3.s
17943   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
17944      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
17945      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
17946      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
17947         conftest2.o conftest3.o > /dev/null 2>&1; then
17948     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
17949                          | sed -e '/myfoosect/!d' -e N`
17950     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
17951       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
17952         gcc_cv_ld_ro_rw_mix=read-only
17953       else
17954         gcc_cv_ld_ro_rw_mix=read-write
17955       fi
17956     fi
17957   fi
17958   rm -f conftest.* conftest[123].*
17959 fi
17960 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
17961
17962 cat >>confdefs.h <<\_ACEOF
17963 #define HAVE_LD_RO_RW_SECTION_MIXING 1
17964 _ACEOF
17965
17966 fi
17967 { echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
17968 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6; }
17969
17970 { echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
17971 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6; }
17972 gcc_cv_ld_eh_frame_hdr=no
17973 if test $in_tree_ld = yes ; then
17974   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 \
17975      && test $in_tree_ld_is_elf = yes; then
17976     gcc_cv_ld_eh_frame_hdr=yes
17977   fi
17978 elif test x$gcc_cv_ld != x; then
17979         # Check if linker supports --eh-frame-hdr option
17980         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
17981                 gcc_cv_ld_eh_frame_hdr=yes
17982         fi
17983 fi
17984
17985 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
17986
17987 cat >>confdefs.h <<\_ACEOF
17988 #define HAVE_LD_EH_FRAME_HDR 1
17989 _ACEOF
17990
17991 fi
17992 { echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
17993 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6; }
17994
17995 { echo "$as_me:$LINENO: checking linker position independent executable support" >&5
17996 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6; }
17997 gcc_cv_ld_pie=no
17998 if test $in_tree_ld = yes ; then
17999   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 \
18000      && test $in_tree_ld_is_elf = yes; then
18001     gcc_cv_ld_pie=yes
18002   fi
18003 elif test x$gcc_cv_ld != x; then
18004         # Check if linker supports -pie option
18005         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
18006                 gcc_cv_ld_pie=yes
18007         fi
18008 fi
18009 if test x"$gcc_cv_ld_pie" = xyes; then
18010
18011 cat >>confdefs.h <<\_ACEOF
18012 #define HAVE_LD_PIE 1
18013 _ACEOF
18014
18015 fi
18016 { echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
18017 echo "${ECHO_T}$gcc_cv_ld_pie" >&6; }
18018
18019 { echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
18020 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6; }
18021 gcc_cv_ld_eh_gc_sections=no
18022 if test $in_tree_ld = yes ; then
18023   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 \
18024      && test $in_tree_ld_is_elf = yes; then
18025     gcc_cv_ld_eh_gc_sections=yes
18026   fi
18027 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
18028   cat > conftest.s <<EOF
18029         .section        .text
18030 .globl _start
18031         .type _start, @function
18032 _start:
18033         .long foo
18034         .size _start, .-_start
18035         .section        .text.foo,"ax",@progbits
18036         .type foo, @function
18037 foo:
18038         .long 0
18039         .size foo, .-foo
18040         .section        .gcc_except_table.foo,"a",@progbits
18041 .L0:
18042         .long 0
18043         .section        .eh_frame,"a",@progbits
18044         .long .L0
18045 EOF
18046   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
18047     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
18048          | grep "gc-sections option ignored" > /dev/null; then
18049       gcc_cv_ld_eh_gc_sections=no
18050     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
18051       gcc_cv_ld_eh_gc_sections=yes
18052     fi
18053   fi
18054   rm -f conftest.s conftest.o conftest
18055 fi
18056 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
18057
18058 cat >>confdefs.h <<\_ACEOF
18059 #define HAVE_LD_EH_GC_SECTIONS 1
18060 _ACEOF
18061
18062 fi
18063 { echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
18064 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6; }
18065
18066 # --------
18067 # UNSORTED
18068 # --------
18069
18070 { echo "$as_me:$LINENO: checking linker --as-needed support" >&5
18071 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6; }
18072 if test "${gcc_cv_ld_as_needed+set}" = set; then
18073   echo $ECHO_N "(cached) $ECHO_C" >&6
18074 else
18075   gcc_cv_ld_as_needed=no
18076 if test $in_tree_ld = yes ; then
18077   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 \
18078      && test $in_tree_ld_is_elf = yes; then
18079     gcc_cv_ld_as_needed=yes
18080   fi
18081 elif test x$gcc_cv_ld != x; then
18082         # Check if linker supports --as-needed and --no-as-needed options
18083         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
18084                 gcc_cv_ld_as_needed=yes
18085         fi
18086 fi
18087
18088 fi
18089 { echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
18090 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6; }
18091 if test x"$gcc_cv_ld_as_needed" = xyes; then
18092
18093 cat >>confdefs.h <<\_ACEOF
18094 #define HAVE_LD_AS_NEEDED 1
18095 _ACEOF
18096
18097 fi
18098
18099 case "$target:$tm_file" in
18100   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
18101     { echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
18102 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6; }
18103 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
18104   echo $ECHO_N "(cached) $ECHO_C" >&6
18105 else
18106   gcc_cv_ld_no_dot_syms=no
18107     if test $in_tree_ld = yes ; then
18108       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
18109         gcc_cv_ld_no_dot_syms=yes
18110       fi
18111     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
18112       cat > conftest1.s <<EOF
18113         .text
18114         bl .foo
18115 EOF
18116       cat > conftest2.s <<EOF
18117         .section ".opd","aw"
18118         .align 3
18119         .globl foo
18120         .type foo,@function
18121 foo:
18122         .quad .LEfoo,.TOC.@tocbase,0
18123         .text
18124 .LEfoo:
18125         blr
18126         .size foo,.-.LEfoo
18127 EOF
18128       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
18129          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
18130          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
18131         gcc_cv_ld_no_dot_syms=yes
18132       fi
18133       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
18134     fi
18135
18136 fi
18137 { echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
18138 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6; }
18139     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
18140
18141 cat >>confdefs.h <<\_ACEOF
18142 #define HAVE_LD_NO_DOT_SYMS 1
18143 _ACEOF
18144
18145     fi
18146     ;;
18147 esac
18148
18149 { echo "$as_me:$LINENO: checking linker --sysroot support" >&5
18150 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6; }
18151 if test "${gcc_cv_ld_sysroot+set}" = set; then
18152   echo $ECHO_N "(cached) $ECHO_C" >&6
18153 else
18154   gcc_cv_ld_sysroot=no
18155   if test $in_tree_ld = yes ; then
18156       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
18157         gcc_cv_ld_sysroot=yes
18158       fi
18159   elif test x$gcc_cv_ld != x; then
18160     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
18161       gcc_cv_ld_sysroot=yes
18162     fi
18163   fi
18164 fi
18165 { echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
18166 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6; }
18167 if test x"$gcc_cv_ld_sysroot" = xyes; then
18168
18169 cat >>confdefs.h <<\_ACEOF
18170 #define HAVE_LD_SYSROOT 1
18171 _ACEOF
18172
18173 fi
18174
18175 if test x$with_sysroot = x && test x$host = x$target \
18176    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
18177    && test "$prefix" != "NONE"; then
18178
18179 cat >>confdefs.h <<_ACEOF
18180 #define PREFIX_INCLUDE_DIR "$prefix/include"
18181 _ACEOF
18182
18183 fi
18184
18185 # Test for stack protector support in target C library.
18186 case "$target" in
18187   *-*-linux*)
18188     { echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
18189 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6; }
18190 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
18191   echo $ECHO_N "(cached) $ECHO_C" >&6
18192 else
18193   gcc_cv_libc_provides_ssp=no
18194       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
18195         if test "x$with_sysroot" = x; then
18196           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
18197         elif test "x$with_sysroot" = xyes; then
18198           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
18199         else
18200           glibc_header_dir="${with_sysroot}/usr/include"
18201         fi
18202       else
18203         glibc_header_dir=/usr/include
18204       fi
18205       # glibc 2.4 and later provides __stack_chk_fail and
18206       # either __stack_chk_guard, or TLS access to stack guard canary.
18207       if test -f $glibc_header_dir/features.h \
18208          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
18209             $glibc_header_dir/features.h > /dev/null; then
18210         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
18211            $glibc_header_dir/features.h > /dev/null; then
18212           gcc_cv_libc_provides_ssp=yes
18213         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
18214              $glibc_header_dir/features.h > /dev/null \
18215              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
18216              $glibc_header_dir/features.h > /dev/null; then
18217           gcc_cv_libc_provides_ssp=yes
18218         fi
18219       fi
18220 fi
18221 { echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
18222 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6; } ;;
18223   *) gcc_cv_libc_provides_ssp=no ;;
18224 esac
18225 if test x$gcc_cv_libc_provides_ssp = xyes; then
18226
18227 cat >>confdefs.h <<\_ACEOF
18228 #define TARGET_LIBC_PROVIDES_SSP 1
18229 _ACEOF
18230
18231 fi
18232
18233 # Check if TFmode long double should be used by default or not.
18234 # Some glibc targets used DFmode long double, but with glibc 2.4
18235 # and later they can use TFmode.
18236 case "$target" in
18237   powerpc*-*-*gnu* | \
18238   sparc*-*-linux* | \
18239   s390*-*-linux* | \
18240   alpha*-*-linux*)
18241
18242 # Check whether --with-long-double-128 was given.
18243 if test "${with_long_double_128+set}" = set; then
18244   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
18245 else
18246   gcc_cv_target_ldbl128=no
18247       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
18248         if test "x$with_sysroot" = x; then
18249           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
18250         elif test "x$with_sysroot" = xyes; then
18251           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
18252         else
18253           glibc_header_dir="${with_sysroot}/usr/include"
18254         fi
18255       else
18256         glibc_header_dir=/usr/include
18257       fi
18258       grep '^   *#[     ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
18259         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
18260       && gcc_cv_target_ldbl128=yes
18261 fi
18262
18263     ;;
18264 esac
18265 if test x$gcc_cv_target_ldbl128 = xyes; then
18266
18267 cat >>confdefs.h <<\_ACEOF
18268 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
18269 _ACEOF
18270
18271 fi
18272
18273 # Find out what GC implementation we want, or may, use.
18274
18275 # Check whether --with-gc was given.
18276 if test "${with_gc+set}" = set; then
18277   withval=$with_gc; case "$withval" in
18278   page)
18279     GGC=ggc-$withval
18280     ;;
18281   zone)
18282     GGC=ggc-$withval
18283
18284 cat >>confdefs.h <<\_ACEOF
18285 #define GGC_ZONE 1
18286 _ACEOF
18287
18288     ;;
18289   *)
18290     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
18291 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
18292    { (exit 1); exit 1; }; }
18293     ;;
18294 esac
18295 else
18296   GGC=ggc-page
18297 fi
18298
18299
18300 echo "Using $GGC for garbage collection."
18301
18302 # Use the system's zlib library.
18303 zlibdir=-L../zlib
18304 zlibinc="-I\$(srcdir)/../zlib"
18305
18306 # Check whether --with-system-zlib was given.
18307 if test "${with_system_zlib+set}" = set; then
18308   withval=$with_system_zlib; zlibdir=
18309 zlibinc=
18310
18311 fi
18312
18313
18314
18315
18316
18317 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
18318 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
18319     # Check whether --enable-maintainer-mode was given.
18320 if test "${enable_maintainer_mode+set}" = set; then
18321   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
18322 else
18323   maintainer_mode=no
18324 fi
18325
18326
18327 { echo "$as_me:$LINENO: result: $maintainer_mode" >&5
18328 echo "${ECHO_T}$maintainer_mode" >&6; }
18329
18330 if test "$maintainer_mode" = "yes"; then
18331   MAINT=''
18332 else
18333   MAINT='#'
18334 fi
18335
18336 # --------------
18337 # Language hooks
18338 # --------------
18339
18340 # Make empty files to contain the specs and options for each language.
18341 # Then add #include lines to for a compiler that has specs and/or options.
18342
18343 subdirs=
18344 lang_opt_files=
18345 lang_specs_files=
18346 lang_tree_files=
18347 # These (without "all_") are set in each config-lang.in.
18348 # `language' must be a single word so is spelled singularly.
18349 all_languages=
18350 all_boot_languages=
18351 all_compilers=
18352 all_stagestuff=
18353 all_outputs='Makefile gccbug mklibgcc libada-mk'
18354 # List of language makefile fragments.
18355 all_lang_makefrags=
18356 # List of language subdirectory makefiles.  Deprecated.
18357 all_lang_makefiles=
18358 # Files for gengtype
18359 all_gtfiles="$target_gtfiles"
18360 # Files for gengtype with language
18361 all_gtfiles_files_langs=
18362 all_gtfiles_files_files=
18363
18364 # These are the languages that are set in --enable-languages,
18365 # and are available in the GCC tree.
18366 all_selected_languages=
18367
18368 # Add the language fragments.
18369 # Languages are added via two mechanisms.  Some information must be
18370 # recorded in makefile variables, these are defined in config-lang.in.
18371 # We accumulate them and plug them into the main Makefile.
18372 # The other mechanism is a set of hooks for each of the main targets
18373 # like `clean', `install', etc.
18374
18375 language_hooks="Make-hooks"
18376
18377 for lang in ${srcdir}/*/config-lang.in
18378 do
18379         test "$lang" = "${srcdir}/*/config-lang.in" && continue
18380
18381         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
18382         if test "x$lang_alias" = x
18383         then
18384               echo "$lang doesn't set \$language." 1>&2
18385               exit 1
18386         fi
18387         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
18388         subdirs="$subdirs $subdir"
18389         case ",$enable_languages," in
18390         *,$lang_alias,*)
18391             all_selected_languages="$all_selected_languages $lang_alias"
18392             if test -f $srcdir/$subdir/lang-specs.h; then
18393                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
18394             fi
18395             ;;
18396         esac
18397
18398         language=
18399         boot_language=
18400         compilers=
18401         stagestuff=
18402         outputs=
18403         gtfiles=
18404         subdir_requires=
18405         . ${srcdir}/$subdir/config-lang.in
18406         if test "x$language" = x
18407         then
18408                 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
18409                 exit 1
18410         fi
18411
18412         ok=:
18413         case ",$enable_languages," in
18414                 *,$lang_alias,*) ;;
18415                 *)
18416                         for i in $subdir_requires; do
18417                                 test -f "${srcdir}/$i/config-lang.in" && continue
18418                                 ok=false
18419                                 break
18420                         done
18421                 ;;
18422         esac
18423         $ok || continue
18424
18425         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
18426         if test -f $srcdir/$subdir/lang.opt; then
18427             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
18428         fi
18429         if test -f $srcdir/$subdir/$subdir-tree.def; then
18430             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
18431         fi
18432         if test -f ${srcdir}/$subdir/Makefile.in
18433                 then all_lang_makefiles="$subdir/Makefile"
18434         fi
18435         all_languages="$all_languages $language"
18436         if test "x$boot_language" = xyes
18437         then
18438                 all_boot_languages="$all_boot_languages $language"
18439         fi
18440         all_compilers="$all_compilers $compilers"
18441         all_stagestuff="$all_stagestuff $stagestuff"
18442         all_outputs="$all_outputs $outputs"
18443         all_gtfiles="$all_gtfiles $gtfiles"
18444         for f in $gtfiles
18445         do
18446                 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
18447                 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
18448         done
18449 done
18450
18451 # Pick up gtfiles for c
18452 gtfiles=
18453 subdir="c"
18454 . ${srcdir}/c-config-lang.in
18455 all_gtfiles="$all_gtfiles $gtfiles"
18456 for f in $gtfiles
18457 do
18458         all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
18459         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
18460 done
18461
18462 check_languages=
18463 for language in $all_selected_languages
18464 do
18465         check_languages="$check_languages check-$language"
18466 done
18467
18468 # We link each language in with a set of hooks, reached indirectly via
18469 # lang.${target}.  Only do so for selected languages.
18470
18471 rm -f Make-hooks
18472 touch Make-hooks
18473 target_list="all.cross start.encap rest.encap tags \
18474         install-common install-man install-info dvi pdf html \
18475         uninstall info man srcextra srcman srcinfo \
18476         mostlyclean clean distclean maintainer-clean \
18477         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
18478
18479 for t in $target_list
18480 do
18481         x=
18482         for lang in $all_selected_languages
18483         do
18484                 x="$x $lang.$t"
18485         done
18486         echo "lang.$t: $x" >> Make-hooks
18487 done
18488
18489 # --------
18490 # UNSORTED
18491 # --------
18492
18493 # Create .gdbinit.
18494
18495 echo "dir ." > .gdbinit
18496 echo "dir ${srcdir}" >> .gdbinit
18497 if test x$gdb_needs_out_file_path = xyes
18498 then
18499         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
18500 fi
18501 if test "x$subdirs" != x; then
18502         for s in $subdirs
18503         do
18504                 echo "dir ${srcdir}/$s" >> .gdbinit
18505         done
18506 fi
18507 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
18508
18509 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
18510 # absolute path for gcc_tooldir based on inserting the number of up-directory
18511 # movements required to get from $(exec_prefix) to $(prefix) into the basic
18512 # $(libsubdir)/@(unlibsubdir) based path.
18513 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
18514 # make and thus we'd get different behavior depending on where we built the
18515 # sources.
18516 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
18517     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
18518 else
18519 # An explanation of the sed strings:
18520 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
18521 #  -e 's|/$||'            match a trailing forward slash and eliminates it
18522 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
18523 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
18524 #
18525 # (*) Note this pattern overwrites the first character of the string
18526 # with a forward slash if one is not already present.  This is not a
18527 # problem because the exact names of the sub-directories concerned is
18528 # unimportant, just the number of them matters.
18529 #
18530 # The practical upshot of these patterns is like this:
18531 #
18532 #  prefix     exec_prefix        result
18533 #  ------     -----------        ------
18534 #   /foo        /foo/bar          ../
18535 #   /foo/       /foo/bar          ../
18536 #   /foo        /foo/bar/         ../
18537 #   /foo/       /foo/bar/         ../
18538 #   /foo        /foo/bar/ugg      ../../
18539 #
18540     dollar='$$'
18541     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
18542 fi
18543
18544
18545
18546 # Find a directory in which to install a shared libgcc.
18547
18548 # Check whether --enable-version-specific-runtime-libs was given.
18549 if test "${enable_version_specific_runtime_libs+set}" = set; then
18550   enableval=$enable_version_specific_runtime_libs;
18551 fi
18552
18553
18554
18555 # Check whether --with-slibdir was given.
18556 if test "${with_slibdir+set}" = set; then
18557   withval=$with_slibdir; slibdir="$with_slibdir"
18558 else
18559   if test "${enable_version_specific_runtime_libs+set}" = set; then
18560   slibdir='$(libsubdir)'
18561 elif test "$host" != "$target"; then
18562   slibdir='$(build_tooldir)/lib'
18563 else
18564   slibdir='$(libdir)'
18565 fi
18566 fi
18567
18568
18569
18570 objdir=`${PWDCMD-pwd}`
18571
18572
18573
18574 # Check whether --with-datarootdir was given.
18575 if test "${with_datarootdir+set}" = set; then
18576   withval=$with_datarootdir; datarootdir="\${prefix}/$with_datarootdir"
18577 else
18578   datarootdir='$(prefix)/share'
18579 fi
18580
18581
18582
18583
18584 # Check whether --with-docdir was given.
18585 if test "${with_docdir+set}" = set; then
18586   withval=$with_docdir; docdir="\${prefix}/$with_docdir"
18587 else
18588   docdir='$(datarootdir)'
18589 fi
18590
18591
18592
18593
18594 # Check whether --with-htmldir was given.
18595 if test "${with_htmldir+set}" = set; then
18596   withval=$with_htmldir; htmldir="\${prefix}/$with_htmldir"
18597 else
18598   htmldir='$(docdir)'
18599 fi
18600
18601
18602
18603 # Substitute configuration variables
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667 # Echo link setup.
18668 if test x${build} = x${host} ; then
18669   if test x${host} = x${target} ; then
18670     echo "Links are now set up to build a native compiler for ${target}." 1>&2
18671   else
18672     echo "Links are now set up to build a cross-compiler" 1>&2
18673     echo " from ${host} to ${target}." 1>&2
18674   fi
18675 else
18676   if test x${host} = x${target} ; then
18677     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
18678     echo " for ${target}." 1>&2
18679   else
18680     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
18681     echo " from ${host} to ${target}." 1>&2
18682   fi
18683 fi
18684
18685
18686
18687
18688 # Configure the subdirectories
18689 # AC_CONFIG_SUBDIRS($subdirs)
18690
18691 # Create the Makefile
18692 # and configure language subdirectories
18693 ac_config_files="$ac_config_files $all_outputs"
18694
18695
18696 ac_config_commands="$ac_config_commands default"
18697
18698 cat >confcache <<\_ACEOF
18699 # This file is a shell script that caches the results of configure
18700 # tests run on this system so they can be shared between configure
18701 # scripts and configure runs, see configure's option --config-cache.
18702 # It is not useful on other systems.  If it contains results you don't
18703 # want to keep, you may remove or edit it.
18704 #
18705 # config.status only pays attention to the cache file if you give it
18706 # the --recheck option to rerun configure.
18707 #
18708 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18709 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18710 # following values.
18711
18712 _ACEOF
18713
18714 # The following way of writing the cache mishandles newlines in values,
18715 # but we know of no workaround that is simple, portable, and efficient.
18716 # So, we kill variables containing newlines.
18717 # Ultrix sh set writes to stderr and can't be redirected directly,
18718 # and sets the high bit in the cache file unless we assign to the vars.
18719 (
18720   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18721     eval ac_val=\$$ac_var
18722     case $ac_val in #(
18723     *${as_nl}*)
18724       case $ac_var in #(
18725       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18726 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18727       esac
18728       case $ac_var in #(
18729       _ | IFS | as_nl) ;; #(
18730       *) $as_unset $ac_var ;;
18731       esac ;;
18732     esac
18733   done
18734
18735   (set) 2>&1 |
18736     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18737     *${as_nl}ac_space=\ *)
18738       # `set' does not quote correctly, so add quotes (double-quote
18739       # substitution turns \\\\ into \\, and sed turns \\ into \).
18740       sed -n \
18741         "s/'/'\\\\''/g;
18742           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18743       ;; #(
18744     *)
18745       # `set' quotes correctly as required by POSIX, so do not add quotes.
18746       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18747       ;;
18748     esac |
18749     sort
18750 ) |
18751   sed '
18752      /^ac_cv_env_/b end
18753      t clear
18754      :clear
18755      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18756      t end
18757      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18758      :end' >>confcache
18759 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18760   if test -w "$cache_file"; then
18761     test "x$cache_file" != "x/dev/null" &&
18762       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18763 echo "$as_me: updating cache $cache_file" >&6;}
18764     cat confcache >$cache_file
18765   else
18766     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18767 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18768   fi
18769 fi
18770 rm -f confcache
18771
18772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18773 # Let make expand exec_prefix.
18774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18775
18776 DEFS=-DHAVE_CONFIG_H
18777
18778 ac_libobjs=
18779 ac_ltlibobjs=
18780 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18781   # 1. Remove the extension, and $U if already installed.
18782   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18783   ac_i=`echo "$ac_i" | sed "$ac_script"`
18784   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18785   #    will be set to the directory where LIBOBJS objects are built.
18786   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18787   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18788 done
18789 LIBOBJS=$ac_libobjs
18790
18791 LTLIBOBJS=$ac_ltlibobjs
18792
18793
18794
18795 : ${CONFIG_STATUS=./config.status}
18796 ac_clean_files_save=$ac_clean_files
18797 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18798 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18799 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18800 cat >$CONFIG_STATUS <<_ACEOF
18801 #! $SHELL
18802 # Generated by $as_me.
18803 # Run this file to recreate the current configuration.
18804 # Compiler output produced by configure, useful for debugging
18805 # configure, is in config.log if it exists.
18806
18807 debug=false
18808 ac_cs_recheck=false
18809 ac_cs_silent=false
18810 SHELL=\${CONFIG_SHELL-$SHELL}
18811 _ACEOF
18812
18813 cat >>$CONFIG_STATUS <<\_ACEOF
18814 ## --------------------- ##
18815 ## M4sh Initialization.  ##
18816 ## --------------------- ##
18817
18818 # Be Bourne compatible
18819 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18820   emulate sh
18821   NULLCMD=:
18822   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18823   # is contrary to our usage.  Disable this feature.
18824   alias -g '${1+"$@"}'='"$@"'
18825   setopt NO_GLOB_SUBST
18826 else
18827   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18828 fi
18829 BIN_SH=xpg4; export BIN_SH # for Tru64
18830 DUALCASE=1; export DUALCASE # for MKS sh
18831
18832
18833 # PATH needs CR
18834 # Avoid depending upon Character Ranges.
18835 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18836 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18837 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18838 as_cr_digits='0123456789'
18839 as_cr_alnum=$as_cr_Letters$as_cr_digits
18840
18841 # The user is always right.
18842 if test "${PATH_SEPARATOR+set}" != set; then
18843   echo "#! /bin/sh" >conf$$.sh
18844   echo  "exit 0"   >>conf$$.sh
18845   chmod +x conf$$.sh
18846   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18847     PATH_SEPARATOR=';'
18848   else
18849     PATH_SEPARATOR=:
18850   fi
18851   rm -f conf$$.sh
18852 fi
18853
18854 # Support unset when possible.
18855 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18856   as_unset=unset
18857 else
18858   as_unset=false
18859 fi
18860
18861
18862 # IFS
18863 # We need space, tab and new line, in precisely that order.  Quoting is
18864 # there to prevent editors from complaining about space-tab.
18865 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18866 # splitting by setting IFS to empty value.)
18867 as_nl='
18868 '
18869 IFS=" ""        $as_nl"
18870
18871 # Find who we are.  Look in the path if we contain no directory separator.
18872 case $0 in
18873   *[\\/]* ) as_myself=$0 ;;
18874   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18875 for as_dir in $PATH
18876 do
18877   IFS=$as_save_IFS
18878   test -z "$as_dir" && as_dir=.
18879   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18880 done
18881 IFS=$as_save_IFS
18882
18883      ;;
18884 esac
18885 # We did not find ourselves, most probably we were run as `sh COMMAND'
18886 # in which case we are not to be found in the path.
18887 if test "x$as_myself" = x; then
18888   as_myself=$0
18889 fi
18890 if test ! -f "$as_myself"; then
18891   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18892   { (exit 1); exit 1; }
18893 fi
18894
18895 # Work around bugs in pre-3.0 UWIN ksh.
18896 for as_var in ENV MAIL MAILPATH
18897 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18898 done
18899 PS1='$ '
18900 PS2='> '
18901 PS4='+ '
18902
18903 # NLS nuisances.
18904 for as_var in \
18905   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18906   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18907   LC_TELEPHONE LC_TIME
18908 do
18909   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18910     eval $as_var=C; export $as_var
18911   else
18912     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18913   fi
18914 done
18915
18916 # Required to use basename.
18917 if expr a : '\(a\)' >/dev/null 2>&1 &&
18918    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18919   as_expr=expr
18920 else
18921   as_expr=false
18922 fi
18923
18924 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18925   as_basename=basename
18926 else
18927   as_basename=false
18928 fi
18929
18930
18931 # Name of the executable.
18932 as_me=`$as_basename -- "$0" ||
18933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18934          X"$0" : 'X\(//\)$' \| \
18935          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18936 echo X/"$0" |
18937     sed '/^.*\/\([^/][^/]*\)\/*$/{
18938             s//\1/
18939             q
18940           }
18941           /^X\/\(\/\/\)$/{
18942             s//\1/
18943             q
18944           }
18945           /^X\/\(\/\).*/{
18946             s//\1/
18947             q
18948           }
18949           s/.*/./; q'`
18950
18951 # CDPATH.
18952 $as_unset CDPATH
18953
18954
18955
18956   as_lineno_1=$LINENO
18957   as_lineno_2=$LINENO
18958   test "x$as_lineno_1" != "x$as_lineno_2" &&
18959   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18960
18961   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18962   # uniformly replaced by the line number.  The first 'sed' inserts a
18963   # line-number line after each line using $LINENO; the second 'sed'
18964   # does the real work.  The second script uses 'N' to pair each
18965   # line-number line with the line containing $LINENO, and appends
18966   # trailing '-' during substitution so that $LINENO is not a special
18967   # case at line end.
18968   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18969   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18970   # E. McMahon (1931-1989) for sed's syntax.  :-)
18971   sed -n '
18972     p
18973     /[$]LINENO/=
18974   ' <$as_myself |
18975     sed '
18976       s/[$]LINENO.*/&-/
18977       t lineno
18978       b
18979       :lineno
18980       N
18981       :loop
18982       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18983       t loop
18984       s/-\n.*//
18985     ' >$as_me.lineno &&
18986   chmod +x "$as_me.lineno" ||
18987     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18988    { (exit 1); exit 1; }; }
18989
18990   # Don't try to exec as it changes $[0], causing all sort of problems
18991   # (the dirname of $[0] is not the place where we might find the
18992   # original and so on.  Autoconf is especially sensitive to this).
18993   . "./$as_me.lineno"
18994   # Exit status is that of the last command.
18995   exit
18996 }
18997
18998
18999 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19000   as_dirname=dirname
19001 else
19002   as_dirname=false
19003 fi
19004
19005 ECHO_C= ECHO_N= ECHO_T=
19006 case `echo -n x` in
19007 -n*)
19008   case `echo 'x\c'` in
19009   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19010   *)   ECHO_C='\c';;
19011   esac;;
19012 *)
19013   ECHO_N='-n';;
19014 esac
19015
19016 if expr a : '\(a\)' >/dev/null 2>&1 &&
19017    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19018   as_expr=expr
19019 else
19020   as_expr=false
19021 fi
19022
19023 rm -f conf$$ conf$$.exe conf$$.file
19024 if test -d conf$$.dir; then
19025   rm -f conf$$.dir/conf$$.file
19026 else
19027   rm -f conf$$.dir
19028   mkdir conf$$.dir
19029 fi
19030 echo >conf$$.file
19031 if ln -s conf$$.file conf$$ 2>/dev/null; then
19032   as_ln_s='ln -s'
19033   # ... but there are two gotchas:
19034   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19035   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19036   # In both cases, we have to default to `cp -p'.
19037   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19038     as_ln_s='cp -p'
19039 elif ln conf$$.file conf$$ 2>/dev/null; then
19040   as_ln_s=ln
19041 else
19042   as_ln_s='cp -p'
19043 fi
19044 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19045 rmdir conf$$.dir 2>/dev/null
19046
19047 if mkdir -p . 2>/dev/null; then
19048   as_mkdir_p=:
19049 else
19050   test -d ./-p && rmdir ./-p
19051   as_mkdir_p=false
19052 fi
19053
19054 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
19055 # systems may use methods other than mode bits to determine executability.
19056 cat >conf$$.file <<_ASEOF
19057 #! /bin/sh
19058 exit 0
19059 _ASEOF
19060 chmod +x conf$$.file
19061 if test -x conf$$.file >/dev/null 2>&1; then
19062   as_executable_p="test -x"
19063 else
19064   as_executable_p=:
19065 fi
19066 rm -f conf$$.file
19067
19068 # Sed expression to map a string onto a valid CPP name.
19069 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19070
19071 # Sed expression to map a string onto a valid variable name.
19072 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19073
19074
19075 exec 6>&1
19076
19077 # Save the log message, to keep $[0] and so on meaningful, and to
19078 # report actual input values of CONFIG_FILES etc. instead of their
19079 # values after options handling.
19080 ac_log="
19081 This file was extended by $as_me, which was
19082 generated by GNU Autoconf 2.60.  Invocation command line was
19083
19084   CONFIG_FILES    = $CONFIG_FILES
19085   CONFIG_HEADERS  = $CONFIG_HEADERS
19086   CONFIG_LINKS    = $CONFIG_LINKS
19087   CONFIG_COMMANDS = $CONFIG_COMMANDS
19088   $ $0 $@
19089
19090 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19091 "
19092
19093 _ACEOF
19094
19095 cat >>$CONFIG_STATUS <<_ACEOF
19096 # Files that config.status was made for.
19097 config_files="$ac_config_files"
19098 config_headers="$ac_config_headers"
19099 config_commands="$ac_config_commands"
19100
19101 _ACEOF
19102
19103 cat >>$CONFIG_STATUS <<\_ACEOF
19104 ac_cs_usage="\
19105 \`$as_me' instantiates files from templates according to the
19106 current configuration.
19107
19108 Usage: $0 [OPTIONS] [FILE]...
19109
19110   -h, --help       print this help, then exit
19111   -V, --version    print version number, then exit
19112   -q, --quiet      do not print progress messages
19113   -d, --debug      don't remove temporary files
19114       --recheck    update $as_me by reconfiguring in the same conditions
19115   --file=FILE[:TEMPLATE]
19116                    instantiate the configuration file FILE
19117   --header=FILE[:TEMPLATE]
19118                    instantiate the configuration header FILE
19119
19120 Configuration files:
19121 $config_files
19122
19123 Configuration headers:
19124 $config_headers
19125
19126 Configuration commands:
19127 $config_commands
19128
19129 Report bugs to <bug-autoconf@gnu.org>."
19130
19131 _ACEOF
19132 cat >>$CONFIG_STATUS <<_ACEOF
19133 ac_cs_version="\\
19134 config.status
19135 configured by $0, generated by GNU Autoconf 2.60,
19136   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19137
19138 Copyright (C) 2006 Free Software Foundation, Inc.
19139 This config.status script is free software; the Free Software Foundation
19140 gives unlimited permission to copy, distribute and modify it."
19141
19142 ac_pwd='$ac_pwd'
19143 srcdir='$srcdir'
19144 _ACEOF
19145
19146 cat >>$CONFIG_STATUS <<\_ACEOF
19147 # If no file are specified by the user, then we need to provide default
19148 # value.  By we need to know if files were specified by the user.
19149 ac_need_defaults=:
19150 while test $# != 0
19151 do
19152   case $1 in
19153   --*=*)
19154     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19155     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19156     ac_shift=:
19157     ;;
19158   *)
19159     ac_option=$1
19160     ac_optarg=$2
19161     ac_shift=shift
19162     ;;
19163   esac
19164
19165   case $ac_option in
19166   # Handling of the options.
19167   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19168     ac_cs_recheck=: ;;
19169   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19170     echo "$ac_cs_version"; exit ;;
19171   --debug | --debu | --deb | --de | --d | -d )
19172     debug=: ;;
19173   --file | --fil | --fi | --f )
19174     $ac_shift
19175     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19176     ac_need_defaults=false;;
19177   --header | --heade | --head | --hea )
19178     $ac_shift
19179     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19180     ac_need_defaults=false;;
19181   --he | --h)
19182     # Conflict between --help and --header
19183     { echo "$as_me: error: ambiguous option: $1
19184 Try \`$0 --help' for more information." >&2
19185    { (exit 1); exit 1; }; };;
19186   --help | --hel | -h )
19187     echo "$ac_cs_usage"; exit ;;
19188   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19189   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19190     ac_cs_silent=: ;;
19191
19192   # This is an error.
19193   -*) { echo "$as_me: error: unrecognized option: $1
19194 Try \`$0 --help' for more information." >&2
19195    { (exit 1); exit 1; }; } ;;
19196
19197   *) ac_config_targets="$ac_config_targets $1"
19198      ac_need_defaults=false ;;
19199
19200   esac
19201   shift
19202 done
19203
19204 ac_configure_extra_args=
19205
19206 if $ac_cs_silent; then
19207   exec 6>/dev/null
19208   ac_configure_extra_args="$ac_configure_extra_args --silent"
19209 fi
19210
19211 _ACEOF
19212 cat >>$CONFIG_STATUS <<_ACEOF
19213 if \$ac_cs_recheck; then
19214   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19215   CONFIG_SHELL=$SHELL
19216   export CONFIG_SHELL
19217   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19218 fi
19219
19220 _ACEOF
19221 cat >>$CONFIG_STATUS <<\_ACEOF
19222 exec 5>>config.log
19223 {
19224   echo
19225   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19226 ## Running $as_me. ##
19227 _ASBOX
19228   echo "$ac_log"
19229 } >&5
19230
19231 _ACEOF
19232 cat >>$CONFIG_STATUS <<_ACEOF
19233 #
19234 # INIT-COMMANDS
19235 #
19236 subdirs='$subdirs'
19237
19238 _ACEOF
19239
19240 cat >>$CONFIG_STATUS <<\_ACEOF
19241
19242 # Handling of arguments.
19243 for ac_config_target in $ac_config_targets
19244 do
19245   case $ac_config_target in
19246     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
19247     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
19248     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19249
19250   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19251 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19252    { (exit 1); exit 1; }; };;
19253   esac
19254 done
19255
19256
19257 # If the user did not use the arguments to specify the items to instantiate,
19258 # then the envvar interface is used.  Set only those that are not.
19259 # We use the long form for the default assignment because of an extremely
19260 # bizarre bug on SunOS 4.1.3.
19261 if $ac_need_defaults; then
19262   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19263   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19264   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19265 fi
19266
19267 # Have a temporary directory for convenience.  Make it in the build tree
19268 # simply because there is no reason against having it here, and in addition,
19269 # creating and moving files from /tmp can sometimes cause problems.
19270 # Hook for its removal unless debugging.
19271 # Note that there is a small window in which the directory will not be cleaned:
19272 # after its creation but before its name has been assigned to `$tmp'.
19273 $debug ||
19274 {
19275   tmp=
19276   trap 'exit_status=$?
19277   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19278 ' 0
19279   trap '{ (exit 1); exit 1; }' 1 2 13 15
19280 }
19281 # Create a (secure) tmp directory for tmp files.
19282
19283 {
19284   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19285   test -n "$tmp" && test -d "$tmp"
19286 }  ||
19287 {
19288   tmp=./conf$$-$RANDOM
19289   (umask 077 && mkdir "$tmp")
19290 } ||
19291 {
19292    echo "$me: cannot create a temporary directory in ." >&2
19293    { (exit 1); exit 1; }
19294 }
19295
19296 #
19297 # Set up the sed scripts for CONFIG_FILES section.
19298 #
19299
19300 # No need to generate the scripts if there are no CONFIG_FILES.
19301 # This happens for instance when ./config.status config.h
19302 if test -n "$CONFIG_FILES"; then
19303
19304 _ACEOF
19305
19306 # Create sed commands to just substitute file output variables.
19307
19308 # Remaining file output variables are in a fragment that also has non-file
19309 # output varibles.
19310
19311
19312
19313 ac_delim='%!_!# '
19314 for ac_last_try in false false false false false :; do
19315   cat >conf$$subs.sed <<_ACEOF
19316 SHELL!$SHELL$ac_delim
19317 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19318 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19319 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19320 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19321 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19322 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19323 exec_prefix!$exec_prefix$ac_delim
19324 prefix!$prefix$ac_delim
19325 program_transform_name!$program_transform_name$ac_delim
19326 bindir!$bindir$ac_delim
19327 sbindir!$sbindir$ac_delim
19328 libexecdir!$libexecdir$ac_delim
19329 datarootdir!$datarootdir$ac_delim
19330 datadir!$datadir$ac_delim
19331 sysconfdir!$sysconfdir$ac_delim
19332 sharedstatedir!$sharedstatedir$ac_delim
19333 localstatedir!$localstatedir$ac_delim
19334 includedir!$includedir$ac_delim
19335 oldincludedir!$oldincludedir$ac_delim
19336 docdir!$docdir$ac_delim
19337 infodir!$infodir$ac_delim
19338 htmldir!$htmldir$ac_delim
19339 dvidir!$dvidir$ac_delim
19340 pdfdir!$pdfdir$ac_delim
19341 psdir!$psdir$ac_delim
19342 libdir!$libdir$ac_delim
19343 localedir!$localedir$ac_delim
19344 mandir!$mandir$ac_delim
19345 DEFS!$DEFS$ac_delim
19346 ECHO_C!$ECHO_C$ac_delim
19347 ECHO_N!$ECHO_N$ac_delim
19348 ECHO_T!$ECHO_T$ac_delim
19349 LIBS!$LIBS$ac_delim
19350 build_alias!$build_alias$ac_delim
19351 host_alias!$host_alias$ac_delim
19352 target_alias!$target_alias$ac_delim
19353 build!$build$ac_delim
19354 build_cpu!$build_cpu$ac_delim
19355 build_vendor!$build_vendor$ac_delim
19356 build_os!$build_os$ac_delim
19357 host!$host$ac_delim
19358 host_cpu!$host_cpu$ac_delim
19359 host_vendor!$host_vendor$ac_delim
19360 host_os!$host_os$ac_delim
19361 target!$target$ac_delim
19362 target_cpu!$target_cpu$ac_delim
19363 target_vendor!$target_vendor$ac_delim
19364 target_os!$target_os$ac_delim
19365 target_noncanonical!$target_noncanonical$ac_delim
19366 build_libsubdir!$build_libsubdir$ac_delim
19367 build_subdir!$build_subdir$ac_delim
19368 host_subdir!$host_subdir$ac_delim
19369 target_subdir!$target_subdir$ac_delim
19370 GENINSRC!$GENINSRC$ac_delim
19371 CC!$CC$ac_delim
19372 CFLAGS!$CFLAGS$ac_delim
19373 LDFLAGS!$LDFLAGS$ac_delim
19374 CPPFLAGS!$CPPFLAGS$ac_delim
19375 ac_ct_CC!$ac_ct_CC$ac_delim
19376 EXEEXT!$EXEEXT$ac_delim
19377 OBJEXT!$OBJEXT$ac_delim
19378 NO_MINUS_C_MINUS_O!$NO_MINUS_C_MINUS_O$ac_delim
19379 OUTPUT_OPTION!$OUTPUT_OPTION$ac_delim
19380 CPP!$CPP$ac_delim
19381 GREP!$GREP$ac_delim
19382 EGREP!$EGREP$ac_delim
19383 strict1_warn!$strict1_warn$ac_delim
19384 cxx_compat_warn!$cxx_compat_warn$ac_delim
19385 warn_cflags!$warn_cflags$ac_delim
19386 WERROR!$WERROR$ac_delim
19387 nocommon_flag!$nocommon_flag$ac_delim
19388 TREEBROWSER!$TREEBROWSER$ac_delim
19389 valgrind_path!$valgrind_path$ac_delim
19390 valgrind_path_defines!$valgrind_path_defines$ac_delim
19391 valgrind_command!$valgrind_command$ac_delim
19392 coverage_flags!$coverage_flags$ac_delim
19393 enable_multilib!$enable_multilib$ac_delim
19394 enable_decimal_float!$enable_decimal_float$ac_delim
19395 enable_shared!$enable_shared$ac_delim
19396 TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim
19397 TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim
19398 CROSS_SYSTEM_HEADER_DIR!$CROSS_SYSTEM_HEADER_DIR$ac_delim
19399 onestep!$onestep$ac_delim
19400 SET_MAKE!$SET_MAKE$ac_delim
19401 AWK!$AWK$ac_delim
19402 LN_S!$LN_S$ac_delim
19403 LN!$LN$ac_delim
19404 RANLIB!$RANLIB$ac_delim
19405 ranlib_flags!$ranlib_flags$ac_delim
19406 INSTALL!$INSTALL$ac_delim
19407 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19408 INSTALL_DATA!$INSTALL_DATA$ac_delim
19409 make_compare_target!$make_compare_target$ac_delim
19410 _ACEOF
19411
19412   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
19413     break
19414   elif $ac_last_try; then
19415     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19416 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19417    { (exit 1); exit 1; }; }
19418   else
19419     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19420   fi
19421 done
19422
19423 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19424 if test -n "$ac_eof"; then
19425   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19426   ac_eof=`expr $ac_eof + 1`
19427 fi
19428
19429 cat >>$CONFIG_STATUS <<_ACEOF
19430 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19431 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19432 /^[      ]*@language_hooks@[     ]*$/{
19433 r $language_hooks
19434 d
19435 }
19436 _ACEOF
19437 sed '
19438 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19439 s/^/s,@/; s/!/@,|#_!!_#|/
19440 :n
19441 t n
19442 s/'"$ac_delim"'$/,g/; t
19443 s/$/\\/; p
19444 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19445 ' >>$CONFIG_STATUS <conf$$subs.sed
19446 rm -f conf$$subs.sed
19447 cat >>$CONFIG_STATUS <<_ACEOF
19448 CEOF$ac_eof
19449 _ACEOF
19450
19451
19452 ac_delim='%!_!# '
19453 for ac_last_try in false false false false false :; do
19454   cat >conf$$subs.sed <<_ACEOF
19455 have_mktemp_command!$have_mktemp_command$ac_delim
19456 MAKEINFO!$MAKEINFO$ac_delim
19457 BUILD_INFO!$BUILD_INFO$ac_delim
19458 GENERATED_MANPAGES!$GENERATED_MANPAGES$ac_delim
19459 FLEX!$FLEX$ac_delim
19460 BISON!$BISON$ac_delim
19461 NM!$NM$ac_delim
19462 AR!$AR$ac_delim
19463 stage1_cflags!$stage1_cflags$ac_delim
19464 COLLECT2_LIBS!$COLLECT2_LIBS$ac_delim
19465 GNAT_LIBEXC!$GNAT_LIBEXC$ac_delim
19466 LDEXP_LIB!$LDEXP_LIB$ac_delim
19467 TARGET_GETGROUPS_T!$TARGET_GETGROUPS_T$ac_delim
19468 LIBICONV!$LIBICONV$ac_delim
19469 LTLIBICONV!$LTLIBICONV$ac_delim
19470 LIBICONV_DEP!$LIBICONV_DEP$ac_delim
19471 manext!$manext$ac_delim
19472 objext!$objext$ac_delim
19473 gthread_flags!$gthread_flags$ac_delim
19474 extra_modes_file!$extra_modes_file$ac_delim
19475 extra_opt_files!$extra_opt_files$ac_delim
19476 USE_NLS!$USE_NLS$ac_delim
19477 LIBINTL!$LIBINTL$ac_delim
19478 LIBINTL_DEP!$LIBINTL_DEP$ac_delim
19479 INCINTL!$INCINTL$ac_delim
19480 XGETTEXT!$XGETTEXT$ac_delim
19481 GMSGFMT!$GMSGFMT$ac_delim
19482 POSUB!$POSUB$ac_delim
19483 CATALOGS!$CATALOGS$ac_delim
19484 DATADIRNAME!$DATADIRNAME$ac_delim
19485 INSTOBJEXT!$INSTOBJEXT$ac_delim
19486 GENCAT!$GENCAT$ac_delim
19487 CATOBJEXT!$CATOBJEXT$ac_delim
19488 host_cc_for_libada!$host_cc_for_libada$ac_delim
19489 CROSS!$CROSS$ac_delim
19490 ALL!$ALL$ac_delim
19491 SYSTEM_HEADER_DIR!$SYSTEM_HEADER_DIR$ac_delim
19492 inhibit_libc!$inhibit_libc$ac_delim
19493 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
19494 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
19495 STMP_FIXINC!$STMP_FIXINC$ac_delim
19496 STMP_FIXPROTO!$STMP_FIXPROTO$ac_delim
19497 collect2!$collect2$ac_delim
19498 gcc_cv_as!$gcc_cv_as$ac_delim
19499 ORIGINAL_AS_FOR_TARGET!$ORIGINAL_AS_FOR_TARGET$ac_delim
19500 gcc_cv_ld!$gcc_cv_ld$ac_delim
19501 ORIGINAL_LD_FOR_TARGET!$ORIGINAL_LD_FOR_TARGET$ac_delim
19502 gcc_cv_nm!$gcc_cv_nm$ac_delim
19503 ORIGINAL_NM_FOR_TARGET!$ORIGINAL_NM_FOR_TARGET$ac_delim
19504 gcc_cv_objdump!$gcc_cv_objdump$ac_delim
19505 libgcc_visibility!$libgcc_visibility$ac_delim
19506 GGC!$GGC$ac_delim
19507 zlibdir!$zlibdir$ac_delim
19508 zlibinc!$zlibinc$ac_delim
19509 MAINT!$MAINT$ac_delim
19510 gcc_tooldir!$gcc_tooldir$ac_delim
19511 dollar!$dollar$ac_delim
19512 slibdir!$slibdir$ac_delim
19513 objdir!$objdir$ac_delim
19514 subdirs!$subdirs$ac_delim
19515 srcdir!$srcdir$ac_delim
19516 all_boot_languages!$all_boot_languages$ac_delim
19517 all_compilers!$all_compilers$ac_delim
19518 all_gtfiles!$all_gtfiles$ac_delim
19519 all_gtfiles_files_langs!$all_gtfiles_files_langs$ac_delim
19520 all_gtfiles_files_files!$all_gtfiles_files_files$ac_delim
19521 all_lang_makefrags!$all_lang_makefrags$ac_delim
19522 all_lang_makefiles!$all_lang_makefiles$ac_delim
19523 all_languages!$all_languages$ac_delim
19524 all_selected_languages!$all_selected_languages$ac_delim
19525 all_stagestuff!$all_stagestuff$ac_delim
19526 build_exeext!$build_exeext$ac_delim
19527 build_install_headers_dir!$build_install_headers_dir$ac_delim
19528 build_xm_file_list!$build_xm_file_list$ac_delim
19529 build_xm_include_list!$build_xm_include_list$ac_delim
19530 build_xm_defines!$build_xm_defines$ac_delim
19531 check_languages!$check_languages$ac_delim
19532 cc_set_by_configure!$cc_set_by_configure$ac_delim
19533 quoted_cc_set_by_configure!$quoted_cc_set_by_configure$ac_delim
19534 cpp_install_dir!$cpp_install_dir$ac_delim
19535 xmake_file!$xmake_file$ac_delim
19536 tmake_file!$tmake_file$ac_delim
19537 extra_gcc_objs!$extra_gcc_objs$ac_delim
19538 extra_headers_list!$extra_headers_list$ac_delim
19539 extra_objs!$extra_objs$ac_delim
19540 extra_parts!$extra_parts$ac_delim
19541 extra_passes!$extra_passes$ac_delim
19542 extra_programs!$extra_programs$ac_delim
19543 float_h_file!$float_h_file$ac_delim
19544 gcc_config_arguments!$gcc_config_arguments$ac_delim
19545 gcc_gxx_include_dir!$gcc_gxx_include_dir$ac_delim
19546 host_exeext!$host_exeext$ac_delim
19547 host_xm_file_list!$host_xm_file_list$ac_delim
19548 host_xm_include_list!$host_xm_include_list$ac_delim
19549 host_xm_defines!$host_xm_defines$ac_delim
19550 out_host_hook_obj!$out_host_hook_obj$ac_delim
19551 install!$install$ac_delim
19552 _ACEOF
19553
19554   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19555     break
19556   elif $ac_last_try; then
19557     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19558 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19559    { (exit 1); exit 1; }; }
19560   else
19561     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19562   fi
19563 done
19564
19565 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19566 if test -n "$ac_eof"; then
19567   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19568   ac_eof=`expr $ac_eof + 1`
19569 fi
19570
19571 cat >>$CONFIG_STATUS <<_ACEOF
19572 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19574 _ACEOF
19575 sed '
19576 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19577 s/^/s,@/; s/!/@,|#_!!_#|/
19578 :n
19579 t n
19580 s/'"$ac_delim"'$/,g/; t
19581 s/$/\\/; p
19582 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19583 ' >>$CONFIG_STATUS <conf$$subs.sed
19584 rm -f conf$$subs.sed
19585 cat >>$CONFIG_STATUS <<_ACEOF
19586 CEOF$ac_eof
19587 _ACEOF
19588
19589
19590 ac_delim='%!_!# '
19591 for ac_last_try in false false false false false :; do
19592   cat >conf$$subs.sed <<_ACEOF
19593 lang_opt_files!$lang_opt_files$ac_delim
19594 lang_specs_files!$lang_specs_files$ac_delim
19595 lang_tree_files!$lang_tree_files$ac_delim
19596 local_prefix!$local_prefix$ac_delim
19597 md_file!$md_file$ac_delim
19598 objc_boehm_gc!$objc_boehm_gc$ac_delim
19599 out_file!$out_file$ac_delim
19600 out_object_file!$out_object_file$ac_delim
19601 stage_prefix_set_by_configure!$stage_prefix_set_by_configure$ac_delim
19602 quoted_stage_prefix_set_by_configure!$quoted_stage_prefix_set_by_configure$ac_delim
19603 thread_file!$thread_file$ac_delim
19604 tm_file_list!$tm_file_list$ac_delim
19605 tm_include_list!$tm_include_list$ac_delim
19606 tm_defines!$tm_defines$ac_delim
19607 tm_p_file_list!$tm_p_file_list$ac_delim
19608 tm_p_include_list!$tm_p_include_list$ac_delim
19609 xm_file_list!$xm_file_list$ac_delim
19610 xm_include_list!$xm_include_list$ac_delim
19611 xm_defines!$xm_defines$ac_delim
19612 c_target_objs!$c_target_objs$ac_delim
19613 cxx_target_objs!$cxx_target_objs$ac_delim
19614 target_cpu_default!$target_cpu_default$ac_delim
19615 GMPLIBS!$GMPLIBS$ac_delim
19616 GMPINC!$GMPINC$ac_delim
19617 LIBOBJS!$LIBOBJS$ac_delim
19618 LTLIBOBJS!$LTLIBOBJS$ac_delim
19619 _ACEOF
19620
19621   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
19622     break
19623   elif $ac_last_try; then
19624     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19625 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19626    { (exit 1); exit 1; }; }
19627   else
19628     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19629   fi
19630 done
19631
19632 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19633 if test -n "$ac_eof"; then
19634   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19635   ac_eof=`expr $ac_eof + 1`
19636 fi
19637
19638 cat >>$CONFIG_STATUS <<_ACEOF
19639 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19641 _ACEOF
19642 sed '
19643 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19644 s/^/s,@/; s/!/@,|#_!!_#|/
19645 :n
19646 t n
19647 s/'"$ac_delim"'$/,g/; t
19648 s/$/\\/; p
19649 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19650 ' >>$CONFIG_STATUS <conf$$subs.sed
19651 rm -f conf$$subs.sed
19652 cat >>$CONFIG_STATUS <<_ACEOF
19653 :end
19654 s/|#_!!_#|//g
19655 CEOF$ac_eof
19656 _ACEOF
19657
19658
19659 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19660 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19661 # trailing colons and then remove the whole line if VPATH becomes empty
19662 # (actually we leave an empty line to preserve line numbers).
19663 if test "x$srcdir" = x.; then
19664   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19665 s/:*\$(srcdir):*/:/
19666 s/:*\${srcdir}:*/:/
19667 s/:*@srcdir@:*/:/
19668 s/^\([^=]*=[     ]*\):*/\1/
19669 s/:*$//
19670 s/^[^=]*=[       ]*$//
19671 }'
19672 fi
19673
19674 cat >>$CONFIG_STATUS <<\_ACEOF
19675 fi # test -n "$CONFIG_FILES"
19676
19677
19678 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19679 do
19680   case $ac_tag in
19681   :[FHLC]) ac_mode=$ac_tag; continue;;
19682   esac
19683   case $ac_mode$ac_tag in
19684   :[FHL]*:*);;
19685   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19686 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19687    { (exit 1); exit 1; }; };;
19688   :[FH]-) ac_tag=-:-;;
19689   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19690   esac
19691   ac_save_IFS=$IFS
19692   IFS=:
19693   set x $ac_tag
19694   IFS=$ac_save_IFS
19695   shift
19696   ac_file=$1
19697   shift
19698
19699   case $ac_mode in
19700   :L) ac_source=$1;;
19701   :[FH])
19702     ac_file_inputs=
19703     for ac_f
19704     do
19705       case $ac_f in
19706       -) ac_f="$tmp/stdin";;
19707       *) # Look for the file first in the build tree, then in the source tree
19708          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19709          # because $ac_f cannot contain `:'.
19710          test -f "$ac_f" ||
19711            case $ac_f in
19712            [\\/$]*) false;;
19713            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19714            esac ||
19715            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19716 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19717    { (exit 1); exit 1; }; };;
19718       esac
19719       ac_file_inputs="$ac_file_inputs $ac_f"
19720     done
19721
19722     # Let's still pretend it is `configure' which instantiates (i.e., don't
19723     # use $as_me), people would be surprised to read:
19724     #    /* config.h.  Generated by config.status.  */
19725     configure_input="Generated from "`IFS=:
19726           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19727     if test x"$ac_file" != x-; then
19728       configure_input="$ac_file.  $configure_input"
19729       { echo "$as_me:$LINENO: creating $ac_file" >&5
19730 echo "$as_me: creating $ac_file" >&6;}
19731     fi
19732
19733     case $ac_tag in
19734     *:-:* | *:-) cat >"$tmp/stdin";;
19735     esac
19736     ;;
19737   esac
19738
19739   ac_dir=`$as_dirname -- "$ac_file" ||
19740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19741          X"$ac_file" : 'X\(//\)[^/]' \| \
19742          X"$ac_file" : 'X\(//\)$' \| \
19743          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19744 echo X"$ac_file" |
19745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19746             s//\1/
19747             q
19748           }
19749           /^X\(\/\/\)[^/].*/{
19750             s//\1/
19751             q
19752           }
19753           /^X\(\/\/\)$/{
19754             s//\1/
19755             q
19756           }
19757           /^X\(\/\).*/{
19758             s//\1/
19759             q
19760           }
19761           s/.*/./; q'`
19762   { as_dir="$ac_dir"
19763   case $as_dir in #(
19764   -*) as_dir=./$as_dir;;
19765   esac
19766   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19767     as_dirs=
19768     while :; do
19769       case $as_dir in #(
19770       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19771       *) as_qdir=$as_dir;;
19772       esac
19773       as_dirs="'$as_qdir' $as_dirs"
19774       as_dir=`$as_dirname -- "$as_dir" ||
19775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19776          X"$as_dir" : 'X\(//\)[^/]' \| \
19777          X"$as_dir" : 'X\(//\)$' \| \
19778          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19779 echo X"$as_dir" |
19780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19781             s//\1/
19782             q
19783           }
19784           /^X\(\/\/\)[^/].*/{
19785             s//\1/
19786             q
19787           }
19788           /^X\(\/\/\)$/{
19789             s//\1/
19790             q
19791           }
19792           /^X\(\/\).*/{
19793             s//\1/
19794             q
19795           }
19796           s/.*/./; q'`
19797       test -d "$as_dir" && break
19798     done
19799     test -z "$as_dirs" || eval "mkdir $as_dirs"
19800   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19801 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19802    { (exit 1); exit 1; }; }; }
19803   ac_builddir=.
19804
19805 case "$ac_dir" in
19806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19807 *)
19808   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19809   # A ".." for each directory in $ac_dir_suffix.
19810   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19811   case $ac_top_builddir_sub in
19812   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19813   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19814   esac ;;
19815 esac
19816 ac_abs_top_builddir=$ac_pwd
19817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19818 # for backward compatibility:
19819 ac_top_builddir=$ac_top_build_prefix
19820
19821 case $srcdir in
19822   .)  # We are building in place.
19823     ac_srcdir=.
19824     ac_top_srcdir=$ac_top_builddir_sub
19825     ac_abs_top_srcdir=$ac_pwd ;;
19826   [\\/]* | ?:[\\/]* )  # Absolute name.
19827     ac_srcdir=$srcdir$ac_dir_suffix;
19828     ac_top_srcdir=$srcdir
19829     ac_abs_top_srcdir=$srcdir ;;
19830   *) # Relative name.
19831     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19832     ac_top_srcdir=$ac_top_build_prefix$srcdir
19833     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19834 esac
19835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19836
19837
19838   case $ac_mode in
19839   :F)
19840   #
19841   # CONFIG_FILE
19842   #
19843
19844 _ACEOF
19845
19846 cat >>$CONFIG_STATUS <<\_ACEOF
19847 # If the template does not know about datarootdir, expand it.
19848 # FIXME: This hack should be removed a few years after 2.60.
19849 ac_datarootdir_hack=; ac_datarootdir_seen=
19850
19851 case `sed -n '/datarootdir/ {
19852   p
19853   q
19854 }
19855 /@datadir@/p
19856 /@docdir@/p
19857 /@infodir@/p
19858 /@localedir@/p
19859 /@mandir@/p
19860 ' $ac_file_inputs` in
19861 *datarootdir*) ac_datarootdir_seen=yes;;
19862 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19863   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19864 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19865 _ACEOF
19866 cat >>$CONFIG_STATUS <<_ACEOF
19867   ac_datarootdir_hack='
19868   s&@datadir@&$datadir&g
19869   s&@docdir@&$docdir&g
19870   s&@infodir@&$infodir&g
19871   s&@localedir@&$localedir&g
19872   s&@mandir@&$mandir&g
19873     s&\\\${datarootdir}&$datarootdir&g' ;;
19874 esac
19875 _ACEOF
19876
19877 # Neutralize VPATH when `$srcdir' = `.'.
19878 # Shell code in configure.ac might set extrasub.
19879 # FIXME: do we really want to maintain this feature?
19880 cat >>$CONFIG_STATUS <<_ACEOF
19881   sed "$ac_vpsub
19882 $extrasub
19883 _ACEOF
19884 cat >>$CONFIG_STATUS <<\_ACEOF
19885 :t
19886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19887 s&@configure_input@&$configure_input&;t t
19888 s&@top_builddir@&$ac_top_builddir_sub&;t t
19889 s&@srcdir@&$ac_srcdir&;t t
19890 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19891 s&@top_srcdir@&$ac_top_srcdir&;t t
19892 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19893 s&@builddir@&$ac_builddir&;t t
19894 s&@abs_builddir@&$ac_abs_builddir&;t t
19895 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19896 $ac_datarootdir_hack
19897 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19898
19899 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19900   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19901   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19902   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19903 which seems to be undefined.  Please make sure it is defined." >&5
19904 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19905 which seems to be undefined.  Please make sure it is defined." >&2;}
19906
19907   rm -f "$tmp/stdin"
19908   case $ac_file in
19909   -) cat "$tmp/out"; rm -f "$tmp/out";;
19910   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19911   esac
19912  ;;
19913   :H)
19914   #
19915   # CONFIG_HEADER
19916   #
19917 _ACEOF
19918
19919 # Transform confdefs.h into a sed script `conftest.defines', that
19920 # substitutes the proper values into config.h.in to produce config.h.
19921 rm -f conftest.defines conftest.tail
19922 # First, append a space to every undef/define line, to ease matching.
19923 echo 's/$/ /' >conftest.defines
19924 # Then, protect against being on the right side of a sed subst, or in
19925 # an unquoted here document, in config.status.  If some macros were
19926 # called several times there might be several #defines for the same
19927 # symbol, which is useless.  But do not sort them, since the last
19928 # AC_DEFINE must be honored.
19929 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19930 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19931 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19932 # PARAMS is the parameter list in the macro definition--in most cases, it's
19933 # just an empty string.
19934 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19935 ac_dB='\\)[      (].*,\\1define\\2'
19936 ac_dC=' '
19937 ac_dD=' ,'
19938
19939 uniq confdefs.h |
19940   sed -n '
19941         t rset
19942         :rset
19943         s/^[     ]*#[    ]*define[       ][      ]*//
19944         t ok
19945         d
19946         :ok
19947         s/[\\&,]/\\&/g
19948         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19949         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19950   ' >>conftest.defines
19951
19952 # Remove the space that was appended to ease matching.
19953 # Then replace #undef with comments.  This is necessary, for
19954 # example, in the case of _POSIX_SOURCE, which is predefined and required
19955 # on some systems where configure will not decide to define it.
19956 # (The regexp can be short, since the line contains either #define or #undef.)
19957 echo 's/ $//
19958 s,^[     #]*u.*,/* & */,' >>conftest.defines
19959
19960 # Break up conftest.defines:
19961 ac_max_sed_lines=50
19962
19963 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19964 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19965 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19966 # et cetera.
19967 ac_in='$ac_file_inputs'
19968 ac_out='"$tmp/out1"'
19969 ac_nxt='"$tmp/out2"'
19970
19971 while :
19972 do
19973   # Write a here document:
19974     cat >>$CONFIG_STATUS <<_ACEOF
19975     # First, check the format of the line:
19976     cat >"\$tmp/defines.sed" <<\\CEOF
19977 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19978 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19979 b
19980 :def
19981 _ACEOF
19982   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19983   echo 'CEOF
19984     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19985   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19986   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19987   grep . conftest.tail >/dev/null || break
19988   rm -f conftest.defines
19989   mv conftest.tail conftest.defines
19990 done
19991 rm -f conftest.defines conftest.tail
19992
19993 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19994 cat >>$CONFIG_STATUS <<\_ACEOF
19995   if test x"$ac_file" != x-; then
19996     echo "/* $configure_input  */" >"$tmp/config.h"
19997     cat "$ac_result" >>"$tmp/config.h"
19998     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19999       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20000 echo "$as_me: $ac_file is unchanged" >&6;}
20001     else
20002       rm -f $ac_file
20003       mv "$tmp/config.h" $ac_file
20004     fi
20005   else
20006     echo "/* $configure_input  */"
20007     cat "$ac_result"
20008   fi
20009   rm -f "$tmp/out12"
20010  ;;
20011
20012   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20013 echo "$as_me: executing $ac_file commands" >&6;}
20014  ;;
20015   esac
20016
20017
20018   case $ac_file$ac_mode in
20019     "default":C)
20020 case ${CONFIG_HEADERS} in
20021   *auto-host.h:config.in*)
20022   echo > cstamp-h ;;
20023 esac
20024 # Make sure all the subdirs exist.
20025 for d in $subdirs doc build
20026 do
20027     test -d $d || mkdir $d
20028 done
20029 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
20030 # bootstrapping and the installation procedure can still use
20031 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
20032 # FLAGS_TO_PASS has been modified to solve the problem there.
20033 # This is virtually a duplicate of what happens in configure.lang; we do
20034 # an extra check to make sure this only happens if ln -s can be used.
20035 case "$LN_S" in
20036   *-s*)
20037     for d in ${subdirs} ; do
20038         STARTDIR=`${PWDCMD-pwd}`
20039         cd $d
20040         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
20041         do
20042                 rm -f $t
20043                 $LN_S ../$t $t 2>/dev/null
20044         done
20045         cd $STARTDIR
20046     done
20047   ;;
20048 esac
20049  ;;
20050
20051   esac
20052 done # for ac_tag
20053
20054
20055 { (exit 0); exit 0; }
20056 _ACEOF
20057 chmod +x $CONFIG_STATUS
20058 ac_clean_files=$ac_clean_files_save
20059
20060
20061 # configure is writing to config.log, and then calls config.status.
20062 # config.status does its own redirection, appending to config.log.
20063 # Unfortunately, on DOS this fails, as config.log is still kept open
20064 # by configure, so config.status won't be able to write to it; its
20065 # output is simply discarded.  So we exec the FD to /dev/null,
20066 # effectively closing config.log, so it can be properly (re)opened and
20067 # appended to by config.status.  When coming back to configure, we
20068 # need to make the FD available again.
20069 if test "$no_create" != yes; then
20070   ac_cs_success=:
20071   ac_config_status_args=
20072   test "$silent" = yes &&
20073     ac_config_status_args="$ac_config_status_args --quiet"
20074   exec 5>/dev/null
20075   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20076   exec 5>>config.log
20077   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20078   # would make configure fail if this is the last instruction.
20079   $ac_cs_success || { (exit 1); exit 1; }
20080 fi
20081