OSDN Git Service

2007-03-26 Stepan Kasal <skasal@redhat.com>
[pf3gnuchains/gcc-fork.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="move-if-change"
580 ac_subst_vars='SHELL
581 PATH_SEPARATOR
582 PACKAGE_NAME
583 PACKAGE_TARNAME
584 PACKAGE_VERSION
585 PACKAGE_STRING
586 PACKAGE_BUGREPORT
587 exec_prefix
588 prefix
589 program_transform_name
590 bindir
591 sbindir
592 libexecdir
593 datarootdir
594 datadir
595 sysconfdir
596 sharedstatedir
597 localstatedir
598 includedir
599 oldincludedir
600 docdir
601 infodir
602 htmldir
603 dvidir
604 pdfdir
605 psdir
606 libdir
607 localedir
608 mandir
609 DEFS
610 ECHO_C
611 ECHO_N
612 ECHO_T
613 LIBS
614 build_alias
615 host_alias
616 target_alias
617 build
618 build_cpu
619 build_vendor
620 build_os
621 build_noncanonical
622 host_noncanonical
623 target_noncanonical
624 host
625 host_cpu
626 host_vendor
627 host_os
628 target
629 target_cpu
630 target_vendor
631 target_os
632 INSTALL_PROGRAM
633 INSTALL_SCRIPT
634 INSTALL_DATA
635 LN
636 LN_S
637 TOPLEVEL_CONFIGURE_ARGUMENTS
638 build_libsubdir
639 build_subdir
640 host_subdir
641 target_subdir
642 CC
643 CFLAGS
644 LDFLAGS
645 CPPFLAGS
646 ac_ct_CC
647 EXEEXT
648 OBJEXT
649 CXX
650 CXXFLAGS
651 ac_ct_CXX
652 GNATBIND
653 GNATMAKE
654 do_compare
655 gmplibs
656 gmpinc
657 stage1_languages
658 SYSROOT_CFLAGS_FOR_TARGET
659 RPATH_ENVVAR
660 tooldir
661 build_tooldir
662 CONFIGURE_GDB_TK
663 GDB_TK
664 INSTALL_GDB_TK
665 build_configargs
666 build_configdirs
667 host_configargs
668 configdirs
669 target_configargs
670 CC_FOR_BUILD
671 config_shell
672 YACC
673 BISON
674 M4
675 LEX
676 FLEX
677 MAKEINFO
678 EXPECT
679 RUNTEST
680 AR
681 AS
682 DLLTOOL
683 LD
684 LIPO
685 NM
686 RANLIB
687 STRIP
688 WINDRES
689 OBJCOPY
690 OBJDUMP
691 CFLAGS_FOR_BUILD
692 CC_FOR_TARGET
693 CXX_FOR_TARGET
694 GCC_FOR_TARGET
695 GCJ_FOR_TARGET
696 GFORTRAN_FOR_TARGET
697 AR_FOR_TARGET
698 AS_FOR_TARGET
699 DLLTOOL_FOR_TARGET
700 LD_FOR_TARGET
701 LIPO_FOR_TARGET
702 NM_FOR_TARGET
703 OBJDUMP_FOR_TARGET
704 RANLIB_FOR_TARGET
705 STRIP_FOR_TARGET
706 WINDRES_FOR_TARGET
707 RAW_CXX_FOR_TARGET
708 FLAGS_FOR_TARGET
709 COMPILER_AS_FOR_TARGET
710 COMPILER_LD_FOR_TARGET
711 COMPILER_NM_FOR_TARGET
712 MAINTAINER_MODE_TRUE
713 MAINTAINER_MODE_FALSE
714 MAINT
715 stage1_cflags
716 stage1_checking
717 stage2_werror_flag
718 LIBOBJS
719 LTLIBOBJS'
720 ac_subst_files='serialization_dependencies
721 host_makefile_frag
722 target_makefile_frag
723 alphaieee_frag
724 ospace_frag'
725       ac_precious_vars='build_alias
726 host_alias
727 target_alias
728 CC
729 CFLAGS
730 LDFLAGS
731 LIBS
732 CPPFLAGS
733 CXX
734 CXXFLAGS
735 CCC
736 AR
737 AS
738 DLLTOOL
739 LD
740 LIPO
741 NM
742 RANLIB
743 STRIP
744 WINDRES
745 OBJCOPY
746 OBJDUMP
747 CC_FOR_TARGET
748 CXX_FOR_TARGET
749 GCC_FOR_TARGET
750 GCJ_FOR_TARGET
751 GFORTRAN_FOR_TARGET
752 AR_FOR_TARGET
753 AS_FOR_TARGET
754 DLLTOOL_FOR_TARGET
755 LD_FOR_TARGET
756 LIPO_FOR_TARGET
757 NM_FOR_TARGET
758 OBJDUMP_FOR_TARGET
759 RANLIB_FOR_TARGET
760 STRIP_FOR_TARGET
761 WINDRES_FOR_TARGET'
762
763
764 # Initialize some variables set by options.
765 ac_init_help=
766 ac_init_version=false
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
769 cache_file=/dev/null
770 exec_prefix=NONE
771 no_create=
772 no_recursion=
773 prefix=NONE
774 program_prefix=NONE
775 program_suffix=NONE
776 program_transform_name=s,x,x,
777 silent=
778 site=
779 srcdir=
780 verbose=
781 x_includes=NONE
782 x_libraries=NONE
783
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE}'
801 infodir='${datarootdir}/info'
802 htmldir='${docdir}'
803 dvidir='${docdir}'
804 pdfdir='${docdir}'
805 psdir='${docdir}'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
809
810 ac_prev=
811 ac_dashdash=
812 for ac_option
813 do
814   # If the previous option needs an argument, assign it.
815   if test -n "$ac_prev"; then
816     eval $ac_prev=\$ac_option
817     ac_prev=
818     continue
819   fi
820
821   case $ac_option in
822   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823   *)    ac_optarg=yes ;;
824   esac
825
826   # Accept the important Cygnus configure options, so we can diagnose typos.
827
828   case $ac_dashdash$ac_option in
829   --)
830     ac_dashdash=yes ;;
831
832   -bindir | --bindir | --bindi | --bind | --bin | --bi)
833     ac_prev=bindir ;;
834   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835     bindir=$ac_optarg ;;
836
837   -build | --build | --buil | --bui | --bu)
838     ac_prev=build_alias ;;
839   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840     build_alias=$ac_optarg ;;
841
842   -cache-file | --cache-file | --cache-fil | --cache-fi \
843   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844     ac_prev=cache_file ;;
845   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847     cache_file=$ac_optarg ;;
848
849   --config-cache | -C)
850     cache_file=config.cache ;;
851
852   -datadir | --datadir | --datadi | --datad)
853     ac_prev=datadir ;;
854   -datadir=* | --datadir=* | --datadi=* | --datad=*)
855     datadir=$ac_optarg ;;
856
857   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858   | --dataroo | --dataro | --datar)
859     ac_prev=datarootdir ;;
860   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862     datarootdir=$ac_optarg ;;
863
864   -disable-* | --disable-*)
865     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866     # Reject names that are not valid shell variable names.
867     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869    { (exit 1); exit 1; }; }
870     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871     eval enable_$ac_feature=no ;;
872
873   -docdir | --docdir | --docdi | --doc | --do)
874     ac_prev=docdir ;;
875   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
876     docdir=$ac_optarg ;;
877
878   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879     ac_prev=dvidir ;;
880   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
881     dvidir=$ac_optarg ;;
882
883   -enable-* | --enable-*)
884     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
885     # Reject names that are not valid shell variable names.
886     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
887       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
888    { (exit 1); exit 1; }; }
889     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
890     eval enable_$ac_feature=\$ac_optarg ;;
891
892   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
893   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
894   | --exec | --exe | --ex)
895     ac_prev=exec_prefix ;;
896   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
897   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
898   | --exec=* | --exe=* | --ex=*)
899     exec_prefix=$ac_optarg ;;
900
901   -gas | --gas | --ga | --g)
902     # Obsolete; use --with-gas.
903     with_gas=yes ;;
904
905   -help | --help | --hel | --he | -h)
906     ac_init_help=long ;;
907   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
908     ac_init_help=recursive ;;
909   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
910     ac_init_help=short ;;
911
912   -host | --host | --hos | --ho)
913     ac_prev=host_alias ;;
914   -host=* | --host=* | --hos=* | --ho=*)
915     host_alias=$ac_optarg ;;
916
917   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
918     ac_prev=htmldir ;;
919   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
920   | --ht=*)
921     htmldir=$ac_optarg ;;
922
923   -includedir | --includedir | --includedi | --included | --include \
924   | --includ | --inclu | --incl | --inc)
925     ac_prev=includedir ;;
926   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
927   | --includ=* | --inclu=* | --incl=* | --inc=*)
928     includedir=$ac_optarg ;;
929
930   -infodir | --infodir | --infodi | --infod | --info | --inf)
931     ac_prev=infodir ;;
932   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
933     infodir=$ac_optarg ;;
934
935   -libdir | --libdir | --libdi | --libd)
936     ac_prev=libdir ;;
937   -libdir=* | --libdir=* | --libdi=* | --libd=*)
938     libdir=$ac_optarg ;;
939
940   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
941   | --libexe | --libex | --libe)
942     ac_prev=libexecdir ;;
943   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
944   | --libexe=* | --libex=* | --libe=*)
945     libexecdir=$ac_optarg ;;
946
947   -localedir | --localedir | --localedi | --localed | --locale)
948     ac_prev=localedir ;;
949   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
950     localedir=$ac_optarg ;;
951
952   -localstatedir | --localstatedir | --localstatedi | --localstated \
953   | --localstate | --localstat | --localsta | --localst | --locals)
954     ac_prev=localstatedir ;;
955   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
956   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
957     localstatedir=$ac_optarg ;;
958
959   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
960     ac_prev=mandir ;;
961   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
962     mandir=$ac_optarg ;;
963
964   -nfp | --nfp | --nf)
965     # Obsolete; use --without-fp.
966     with_fp=no ;;
967
968   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
969   | --no-cr | --no-c | -n)
970     no_create=yes ;;
971
972   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
973   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
974     no_recursion=yes ;;
975
976   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
977   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
978   | --oldin | --oldi | --old | --ol | --o)
979     ac_prev=oldincludedir ;;
980   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
981   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
982   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
983     oldincludedir=$ac_optarg ;;
984
985   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
986     ac_prev=prefix ;;
987   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
988     prefix=$ac_optarg ;;
989
990   -program-prefix | --program-prefix | --program-prefi | --program-pref \
991   | --program-pre | --program-pr | --program-p)
992     ac_prev=program_prefix ;;
993   -program-prefix=* | --program-prefix=* | --program-prefi=* \
994   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
995     program_prefix=$ac_optarg ;;
996
997   -program-suffix | --program-suffix | --program-suffi | --program-suff \
998   | --program-suf | --program-su | --program-s)
999     ac_prev=program_suffix ;;
1000   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1001   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1002     program_suffix=$ac_optarg ;;
1003
1004   -program-transform-name | --program-transform-name \
1005   | --program-transform-nam | --program-transform-na \
1006   | --program-transform-n | --program-transform- \
1007   | --program-transform | --program-transfor \
1008   | --program-transfo | --program-transf \
1009   | --program-trans | --program-tran \
1010   | --progr-tra | --program-tr | --program-t)
1011     ac_prev=program_transform_name ;;
1012   -program-transform-name=* | --program-transform-name=* \
1013   | --program-transform-nam=* | --program-transform-na=* \
1014   | --program-transform-n=* | --program-transform-=* \
1015   | --program-transform=* | --program-transfor=* \
1016   | --program-transfo=* | --program-transf=* \
1017   | --program-trans=* | --program-tran=* \
1018   | --progr-tra=* | --program-tr=* | --program-t=*)
1019     program_transform_name=$ac_optarg ;;
1020
1021   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1022     ac_prev=pdfdir ;;
1023   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1024     pdfdir=$ac_optarg ;;
1025
1026   -psdir | --psdir | --psdi | --psd | --ps)
1027     ac_prev=psdir ;;
1028   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1029     psdir=$ac_optarg ;;
1030
1031   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032   | -silent | --silent | --silen | --sile | --sil)
1033     silent=yes ;;
1034
1035   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1036     ac_prev=sbindir ;;
1037   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1038   | --sbi=* | --sb=*)
1039     sbindir=$ac_optarg ;;
1040
1041   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1042   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1043   | --sharedst | --shareds | --shared | --share | --shar \
1044   | --sha | --sh)
1045     ac_prev=sharedstatedir ;;
1046   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1047   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1048   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1049   | --sha=* | --sh=*)
1050     sharedstatedir=$ac_optarg ;;
1051
1052   -site | --site | --sit)
1053     ac_prev=site ;;
1054   -site=* | --site=* | --sit=*)
1055     site=$ac_optarg ;;
1056
1057   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1058     ac_prev=srcdir ;;
1059   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1060     srcdir=$ac_optarg ;;
1061
1062   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1063   | --syscon | --sysco | --sysc | --sys | --sy)
1064     ac_prev=sysconfdir ;;
1065   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1066   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1067     sysconfdir=$ac_optarg ;;
1068
1069   -target | --target | --targe | --targ | --tar | --ta | --t)
1070     ac_prev=target_alias ;;
1071   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1072     target_alias=$ac_optarg ;;
1073
1074   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1075     verbose=yes ;;
1076
1077   -version | --version | --versio | --versi | --vers | -V)
1078     ac_init_version=: ;;
1079
1080   -with-* | --with-*)
1081     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1082     # Reject names that are not valid shell variable names.
1083     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084       { echo "$as_me: error: invalid package name: $ac_package" >&2
1085    { (exit 1); exit 1; }; }
1086     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1087     eval with_$ac_package=\$ac_optarg ;;
1088
1089   -without-* | --without-*)
1090     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1091     # Reject names that are not valid shell variable names.
1092     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1093       { echo "$as_me: error: invalid package name: $ac_package" >&2
1094    { (exit 1); exit 1; }; }
1095     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1096     eval with_$ac_package=no ;;
1097
1098   --x)
1099     # Obsolete; use --with-x.
1100     with_x=yes ;;
1101
1102   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1103   | --x-incl | --x-inc | --x-in | --x-i)
1104     ac_prev=x_includes ;;
1105   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1106   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1107     x_includes=$ac_optarg ;;
1108
1109   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1110   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1111     ac_prev=x_libraries ;;
1112   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1113   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1114     x_libraries=$ac_optarg ;;
1115
1116   -*) { echo "$as_me: error: unrecognized option: $ac_option
1117 Try \`$0 --help' for more information." >&2
1118    { (exit 1); exit 1; }; }
1119     ;;
1120
1121   *=*)
1122     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1123     # Reject names that are not valid shell variable names.
1124     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1125       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1126    { (exit 1); exit 1; }; }
1127     eval $ac_envvar=\$ac_optarg
1128     export $ac_envvar ;;
1129
1130   *)
1131     # FIXME: should be removed in autoconf 3.0.
1132     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1133     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1134       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1135     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1136     ;;
1137
1138   esac
1139 done
1140
1141 if test -n "$ac_prev"; then
1142   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1143   { echo "$as_me: error: missing argument to $ac_option" >&2
1144    { (exit 1); exit 1; }; }
1145 fi
1146
1147 # Be sure to have absolute directory names.
1148 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1149                 datadir sysconfdir sharedstatedir localstatedir includedir \
1150                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1151                 libdir localedir mandir
1152 do
1153   eval ac_val=\$$ac_var
1154   case $ac_val in
1155     [\\/$]* | ?:[\\/]* )  continue;;
1156     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1157   esac
1158   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1159    { (exit 1); exit 1; }; }
1160 done
1161
1162 # There might be people who depend on the old broken behavior: `$host'
1163 # used to hold the argument of --host etc.
1164 # FIXME: To remove some day.
1165 build=$build_alias
1166 host=$host_alias
1167 target=$target_alias
1168
1169 # FIXME: To remove some day.
1170 if test "x$host_alias" != x; then
1171   if test "x$build_alias" = x; then
1172     cross_compiling=maybe
1173     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1174     If a cross compiler is detected then cross compile mode will be used." >&2
1175   elif test "x$build_alias" != "x$host_alias"; then
1176     cross_compiling=yes
1177   fi
1178 fi
1179
1180 ac_tool_prefix=
1181 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182
1183 test "$silent" = yes && exec 6>/dev/null
1184
1185
1186 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di=`ls -di .` &&
1188 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189   { echo "$as_me: error: Working directory cannot be determined" >&2
1190    { (exit 1); exit 1; }; }
1191 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192   { echo "$as_me: error: pwd does not report name of working directory" >&2
1193    { (exit 1); exit 1; }; }
1194
1195
1196 # Find the source files, if location was not specified.
1197 if test -z "$srcdir"; then
1198   ac_srcdir_defaulted=yes
1199   # Try the directory containing this script, then the parent directory.
1200   ac_confdir=`$as_dirname -- "$0" ||
1201 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1202          X"$0" : 'X\(//\)[^/]' \| \
1203          X"$0" : 'X\(//\)$' \| \
1204          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1205 echo X"$0" |
1206     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1207             s//\1/
1208             q
1209           }
1210           /^X\(\/\/\)[^/].*/{
1211             s//\1/
1212             q
1213           }
1214           /^X\(\/\/\)$/{
1215             s//\1/
1216             q
1217           }
1218           /^X\(\/\).*/{
1219             s//\1/
1220             q
1221           }
1222           s/.*/./; q'`
1223   srcdir=$ac_confdir
1224   if test ! -r "$srcdir/$ac_unique_file"; then
1225     srcdir=..
1226   fi
1227 else
1228   ac_srcdir_defaulted=no
1229 fi
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1231   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1232   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1233    { (exit 1); exit 1; }; }
1234 fi
1235 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1236 ac_abs_confdir=`(
1237         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1238    { (exit 1); exit 1; }; }
1239         pwd)`
1240 # When building in place, set srcdir=.
1241 if test "$ac_abs_confdir" = "$ac_pwd"; then
1242   srcdir=.
1243 fi
1244 # Remove unnecessary trailing slashes from srcdir.
1245 # Double slashes in file names in object file debugging info
1246 # mess up M-x gdb in Emacs.
1247 case $srcdir in
1248 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249 esac
1250 for ac_var in $ac_precious_vars; do
1251   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1252   eval ac_env_${ac_var}_value=\$${ac_var}
1253   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1254   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1255 done
1256
1257 #
1258 # Report the --help message.
1259 #
1260 if test "$ac_init_help" = "long"; then
1261   # Omit some internal or obsolete options to make the list less imposing.
1262   # This message is too long to be a string in the A/UX 3.1 sh.
1263   cat <<_ACEOF
1264 \`configure' configures this package to adapt to many kinds of systems.
1265
1266 Usage: $0 [OPTION]... [VAR=VALUE]...
1267
1268 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1269 VAR=VALUE.  See below for descriptions of some of the useful variables.
1270
1271 Defaults for the options are specified in brackets.
1272
1273 Configuration:
1274   -h, --help              display this help and exit
1275       --help=short        display options specific to this package
1276       --help=recursive    display the short help of all the included packages
1277   -V, --version           display version information and exit
1278   -q, --quiet, --silent   do not print \`checking...' messages
1279       --cache-file=FILE   cache test results in FILE [disabled]
1280   -C, --config-cache      alias for \`--cache-file=config.cache'
1281   -n, --no-create         do not create output files
1282       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1283
1284 Installation directories:
1285   --prefix=PREFIX         install architecture-independent files in PREFIX
1286                           [$ac_default_prefix]
1287   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1288                           [PREFIX]
1289
1290 By default, \`make install' will install all the files in
1291 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1292 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1293 for instance \`--prefix=\$HOME'.
1294
1295 For better control, use the options below.
1296
1297 Fine tuning of the installation directories:
1298   --bindir=DIR           user executables [EPREFIX/bin]
1299   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1300   --libexecdir=DIR       program executables [EPREFIX/libexec]
1301   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1302   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1303   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1304   --libdir=DIR           object code libraries [EPREFIX/lib]
1305   --includedir=DIR       C header files [PREFIX/include]
1306   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1307   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1308   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1309   --infodir=DIR          info documentation [DATAROOTDIR/info]
1310   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1311   --mandir=DIR           man documentation [DATAROOTDIR/man]
1312   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1313   --htmldir=DIR          html documentation [DOCDIR]
1314   --dvidir=DIR           dvi documentation [DOCDIR]
1315   --pdfdir=DIR           pdf documentation [DOCDIR]
1316   --psdir=DIR            ps documentation [DOCDIR]
1317 _ACEOF
1318
1319   cat <<\_ACEOF
1320
1321 Program names:
1322   --program-prefix=PREFIX            prepend PREFIX to installed program names
1323   --program-suffix=SUFFIX            append SUFFIX to installed program names
1324   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1325
1326 System types:
1327   --build=BUILD     configure for building on BUILD [guessed]
1328   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1329   --target=TARGET   configure for building compilers for TARGET [HOST]
1330 _ACEOF
1331 fi
1332
1333 if test -n "$ac_init_help"; then
1334
1335   cat <<\_ACEOF
1336
1337 Optional Features:
1338   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1339   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1340   --enable-libada        Builds libada directory
1341   --enable-libssp        Builds libssp directory
1342   --enable-stage1-languages=all   choose additional languages to build during
1343                           stage1.  Mostly useful for compiler development.
1344   --enable-objc-gc       enable the use of Boehm's garbage collector with
1345                           the GNU Objective-C runtime.
1346   --enable-bootstrap           Enable bootstrapping yes if native build
1347   --enable-serial-{host,target,build}-configure
1348                           Force sequential configuration of
1349                           sub-packages for the host, target or build
1350                           machine, or all sub-packages
1351   --enable-maintainer-mode enable make rules and dependencies not useful
1352                           (and sometimes confusing) to the casual installer
1353   --enable-stage1-checking=all   choose additional checking for stage1
1354                           of the compiler.
1355   --enable-werror         enable -Werror in bootstrap stage2 and later
1356
1357 Optional Packages:
1358   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1359   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1360   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1361   --with-mpfr-dir=PATH    This option has been REMOVED
1362   --with-mpfr=PATH        Specify prefix directory for installed MPFR package
1363                           Equivalent to --with-mpfr-include=PATH/include
1364                           plus --with-mpfr-lib=PATH/lib
1365   --with-mpfr-include=PATH
1366                           Specify directory for installed MPFR include files
1367   --with-mpfr-lib=PATH    Specify the directory for the installed MPFR library
1368   --with-gmp-dir=PATH     This option has been REMOVED
1369   --with-gmp=PATH         Specify prefix directory for the installed GMP package
1370                           Equivalent to --with-gmp-include=PATH/include
1371                           plus --with-gmp-lib=PATH/lib
1372   --with-gmp-include=PATH Specify directory for installed GMP include files
1373   --with-gmp-lib=PATH     Specify the directory for the installed GMP library
1374   --with-build-sysroot=sysroot
1375                           use sysroot as the system root during the build
1376   --with-build-time-tools=path
1377                           use given path to find target tools during the build
1378   --with-datarootdir    Use datarootdir as the data root directory.
1379   --with-docdir Install documentation in this directory.
1380   --with-pdfdir Install pdf in this directory.
1381   --with-htmldir        Install html in this directory.
1382
1383 Some influential environment variables:
1384   CC          C compiler command
1385   CFLAGS      C compiler flags
1386   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1387               nonstandard directory <lib dir>
1388   LIBS        libraries to pass to the linker, e.g. -l<library>
1389   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1390               you have headers in a nonstandard directory <include dir>
1391   CXX         C++ compiler command
1392   CXXFLAGS    C++ compiler flags
1393   AR          AR for the host
1394   AS          AS for the host
1395   DLLTOOL     DLLTOOL for the host
1396   LD          LD for the host
1397   LIPO        LIPO for the host
1398   NM          NM for the host
1399   RANLIB      RANLIB for the host
1400   STRIP       STRIP for the host
1401   WINDRES     WINDRES for the host
1402   OBJCOPY     OBJCOPY for the host
1403   OBJDUMP     OBJDUMP for the host
1404   CC_FOR_TARGET
1405               CC for the target
1406   CXX_FOR_TARGET
1407               CXX for the target
1408   GCC_FOR_TARGET
1409               GCC for the target
1410   GCJ_FOR_TARGET
1411               GCJ for the target
1412   GFORTRAN_FOR_TARGET
1413               GFORTRAN for the target
1414   AR_FOR_TARGET
1415               AR for the target
1416   AS_FOR_TARGET
1417               AS for the target
1418   DLLTOOL_FOR_TARGET
1419               DLLTOOL for the target
1420   LD_FOR_TARGET
1421               LD for the target
1422   LIPO_FOR_TARGET
1423               LIPO for the target
1424   NM_FOR_TARGET
1425               NM for the target
1426   OBJDUMP_FOR_TARGET
1427               OBJDUMP for the target
1428   RANLIB_FOR_TARGET
1429               RANLIB for the target
1430   STRIP_FOR_TARGET
1431               STRIP for the target
1432   WINDRES_FOR_TARGET
1433               WINDRES for the target
1434
1435 Use these variables to override the choices made by `configure' or to help
1436 it to find libraries and programs with nonstandard names/locations.
1437
1438 _ACEOF
1439 ac_status=$?
1440 fi
1441
1442 if test "$ac_init_help" = "recursive"; then
1443   # If there are subdirs, report their specific --help.
1444   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445     test -d "$ac_dir" || continue
1446     ac_builddir=.
1447
1448 case "$ac_dir" in
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *)
1451   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1452   # A ".." for each directory in $ac_dir_suffix.
1453   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1454   case $ac_top_builddir_sub in
1455   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457   esac ;;
1458 esac
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1463
1464 case $srcdir in
1465   .)  # We are building in place.
1466     ac_srcdir=.
1467     ac_top_srcdir=$ac_top_builddir_sub
1468     ac_abs_top_srcdir=$ac_pwd ;;
1469   [\\/]* | ?:[\\/]* )  # Absolute name.
1470     ac_srcdir=$srcdir$ac_dir_suffix;
1471     ac_top_srcdir=$srcdir
1472     ac_abs_top_srcdir=$srcdir ;;
1473   *) # Relative name.
1474     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475     ac_top_srcdir=$ac_top_build_prefix$srcdir
1476     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 esac
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480     cd "$ac_dir" || { ac_status=$?; continue; }
1481     # Check for guested configure.
1482     if test -f "$ac_srcdir/configure.gnu"; then
1483       echo &&
1484       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485     elif test -f "$ac_srcdir/configure"; then
1486       echo &&
1487       $SHELL "$ac_srcdir/configure" --help=recursive
1488     else
1489       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490     fi || ac_status=$?
1491     cd "$ac_pwd" || { ac_status=$?; break; }
1492   done
1493 fi
1494
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1497   cat <<\_ACEOF
1498 configure
1499 generated by GNU Autoconf 2.61
1500
1501 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1502 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1505 _ACEOF
1506   exit
1507 fi
1508 cat >config.log <<_ACEOF
1509 This file contains any messages produced by compilers while
1510 running configure, to aid debugging if configure makes a mistake.
1511
1512 It was created by $as_me, which was
1513 generated by GNU Autoconf 2.61.  Invocation command line was
1514
1515   $ $0 $@
1516
1517 _ACEOF
1518 exec 5>>config.log
1519 {
1520 cat <<_ASUNAME
1521 ## --------- ##
1522 ## Platform. ##
1523 ## --------- ##
1524
1525 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1526 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1527 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1528 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1529 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1530
1531 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1532 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1533
1534 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1535 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1536 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1537 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1538 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1539 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1540 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1541
1542 _ASUNAME
1543
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545 for as_dir in $PATH
1546 do
1547   IFS=$as_save_IFS
1548   test -z "$as_dir" && as_dir=.
1549   echo "PATH: $as_dir"
1550 done
1551 IFS=$as_save_IFS
1552
1553 } >&5
1554
1555 cat >&5 <<_ACEOF
1556
1557
1558 ## ----------- ##
1559 ## Core tests. ##
1560 ## ----------- ##
1561
1562 _ACEOF
1563
1564
1565 # Keep a trace of the command line.
1566 # Strip out --no-create and --no-recursion so they do not pile up.
1567 # Strip out --silent because we don't want to record it for future runs.
1568 # Also quote any args containing shell meta-characters.
1569 # Make two passes to allow for proper duplicate-argument suppression.
1570 ac_configure_args=
1571 ac_configure_args0=
1572 ac_configure_args1=
1573 ac_must_keep_next=false
1574 for ac_pass in 1 2
1575 do
1576   for ac_arg
1577   do
1578     case $ac_arg in
1579     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1580     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1581     | -silent | --silent | --silen | --sile | --sil)
1582       continue ;;
1583     *\'*)
1584       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1585     esac
1586     case $ac_pass in
1587     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1588     2)
1589       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1590       if test $ac_must_keep_next = true; then
1591         ac_must_keep_next=false # Got value, back to normal.
1592       else
1593         case $ac_arg in
1594           *=* | --config-cache | -C | -disable-* | --disable-* \
1595           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1596           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1597           | -with-* | --with-* | -without-* | --without-* | --x)
1598             case "$ac_configure_args0 " in
1599               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1600             esac
1601             ;;
1602           -* ) ac_must_keep_next=true ;;
1603         esac
1604       fi
1605       ac_configure_args="$ac_configure_args '$ac_arg'"
1606       ;;
1607     esac
1608   done
1609 done
1610 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1611 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1612
1613 # When interrupted or exit'd, cleanup temporary files, and complete
1614 # config.log.  We remove comments because anyway the quotes in there
1615 # would cause problems or look ugly.
1616 # WARNING: Use '\'' to represent an apostrophe within the trap.
1617 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1618 trap 'exit_status=$?
1619   # Save into config.log some information that might help in debugging.
1620   {
1621     echo
1622
1623     cat <<\_ASBOX
1624 ## ---------------- ##
1625 ## Cache variables. ##
1626 ## ---------------- ##
1627 _ASBOX
1628     echo
1629     # The following way of writing the cache mishandles newlines in values,
1630 (
1631   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1632     eval ac_val=\$$ac_var
1633     case $ac_val in #(
1634     *${as_nl}*)
1635       case $ac_var in #(
1636       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1637 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1638       esac
1639       case $ac_var in #(
1640       _ | IFS | as_nl) ;; #(
1641       *) $as_unset $ac_var ;;
1642       esac ;;
1643     esac
1644   done
1645   (set) 2>&1 |
1646     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1647     *${as_nl}ac_space=\ *)
1648       sed -n \
1649         "s/'\''/'\''\\\\'\'''\''/g;
1650           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1651       ;; #(
1652     *)
1653       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1654       ;;
1655     esac |
1656     sort
1657 )
1658     echo
1659
1660     cat <<\_ASBOX
1661 ## ----------------- ##
1662 ## Output variables. ##
1663 ## ----------------- ##
1664 _ASBOX
1665     echo
1666     for ac_var in $ac_subst_vars
1667     do
1668       eval ac_val=\$$ac_var
1669       case $ac_val in
1670       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671       esac
1672       echo "$ac_var='\''$ac_val'\''"
1673     done | sort
1674     echo
1675
1676     if test -n "$ac_subst_files"; then
1677       cat <<\_ASBOX
1678 ## ------------------- ##
1679 ## File substitutions. ##
1680 ## ------------------- ##
1681 _ASBOX
1682       echo
1683       for ac_var in $ac_subst_files
1684       do
1685         eval ac_val=\$$ac_var
1686         case $ac_val in
1687         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688         esac
1689         echo "$ac_var='\''$ac_val'\''"
1690       done | sort
1691       echo
1692     fi
1693
1694     if test -s confdefs.h; then
1695       cat <<\_ASBOX
1696 ## ----------- ##
1697 ## confdefs.h. ##
1698 ## ----------- ##
1699 _ASBOX
1700       echo
1701       cat confdefs.h
1702       echo
1703     fi
1704     test "$ac_signal" != 0 &&
1705       echo "$as_me: caught signal $ac_signal"
1706     echo "$as_me: exit $exit_status"
1707   } >&5
1708   rm -f core *.core core.conftest.* &&
1709     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1710     exit $exit_status
1711 ' 0
1712 for ac_signal in 1 2 13 15; do
1713   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1714 done
1715 ac_signal=0
1716
1717 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1718 rm -f -r conftest* confdefs.h
1719
1720 # Predefined preprocessor variables.
1721
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_NAME "$PACKAGE_NAME"
1724 _ACEOF
1725
1726
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1729 _ACEOF
1730
1731
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1734 _ACEOF
1735
1736
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_STRING "$PACKAGE_STRING"
1739 _ACEOF
1740
1741
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1744 _ACEOF
1745
1746
1747 # Let the site file select an alternate cache file if it wants to.
1748 # Prefer explicitly selected file to automatically selected ones.
1749 if test -n "$CONFIG_SITE"; then
1750   set x "$CONFIG_SITE"
1751 elif test "x$prefix" != xNONE; then
1752   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1753 else
1754   set x "$ac_default_prefix/share/config.site" \
1755         "$ac_default_prefix/etc/config.site"
1756 fi
1757 shift
1758 for ac_site_file
1759 do
1760   if test -r "$ac_site_file"; then
1761     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1762 echo "$as_me: loading site script $ac_site_file" >&6;}
1763     sed 's/^/| /' "$ac_site_file" >&5
1764     . "$ac_site_file"
1765   fi
1766 done
1767
1768 if test -r "$cache_file"; then
1769   # Some versions of bash will fail to source /dev/null (special
1770   # files actually), so we avoid doing that.
1771   if test -f "$cache_file"; then
1772     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1773 echo "$as_me: loading cache $cache_file" >&6;}
1774     case $cache_file in
1775       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1776       *)                      . "./$cache_file";;
1777     esac
1778   fi
1779 else
1780   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1781 echo "$as_me: creating cache $cache_file" >&6;}
1782   >$cache_file
1783 fi
1784
1785 # Check that the precious variables saved in the cache have kept the same
1786 # value.
1787 ac_cache_corrupted=false
1788 for ac_var in $ac_precious_vars; do
1789   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1790   eval ac_new_set=\$ac_env_${ac_var}_set
1791   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1792   eval ac_new_val=\$ac_env_${ac_var}_value
1793   case $ac_old_set,$ac_new_set in
1794     set,)
1795       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1796 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1797       ac_cache_corrupted=: ;;
1798     ,set)
1799       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1800 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1801       ac_cache_corrupted=: ;;
1802     ,);;
1803     *)
1804       if test "x$ac_old_val" != "x$ac_new_val"; then
1805         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1806 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1807         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1808 echo "$as_me:   former value:  $ac_old_val" >&2;}
1809         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1810 echo "$as_me:   current value: $ac_new_val" >&2;}
1811         ac_cache_corrupted=:
1812       fi;;
1813   esac
1814   # Pass precious variables to config.status.
1815   if test "$ac_new_set" = set; then
1816     case $ac_new_val in
1817     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1818     *) ac_arg=$ac_var=$ac_new_val ;;
1819     esac
1820     case " $ac_configure_args " in
1821       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1822       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1823     esac
1824   fi
1825 done
1826 if $ac_cache_corrupted; then
1827   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1828 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1829   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1830 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1831    { (exit 1); exit 1; }; }
1832 fi
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850 ac_ext=c
1851 ac_cpp='$CPP $CPPFLAGS'
1852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1855
1856
1857
1858
1859 # Find the build, host, and target systems.
1860 ac_aux_dir=
1861 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1862   if test -f "$ac_dir/install-sh"; then
1863     ac_aux_dir=$ac_dir
1864     ac_install_sh="$ac_aux_dir/install-sh -c"
1865     break
1866   elif test -f "$ac_dir/install.sh"; then
1867     ac_aux_dir=$ac_dir
1868     ac_install_sh="$ac_aux_dir/install.sh -c"
1869     break
1870   elif test -f "$ac_dir/shtool"; then
1871     ac_aux_dir=$ac_dir
1872     ac_install_sh="$ac_aux_dir/shtool install -c"
1873     break
1874   fi
1875 done
1876 if test -z "$ac_aux_dir"; then
1877   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1878 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1879    { (exit 1); exit 1; }; }
1880 fi
1881
1882 # These three variables are undocumented and unsupported,
1883 # and are intended to be withdrawn in a future Autoconf release.
1884 # They can cause serious problems if a builder's source tree is in a directory
1885 # whose full name contains unusual characters.
1886 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1887 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1888 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1889
1890
1891 # Make sure we can run config.sub.
1892 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1893   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1894 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1895    { (exit 1); exit 1; }; }
1896
1897 { echo "$as_me:$LINENO: checking build system type" >&5
1898 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1899 if test "${ac_cv_build+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   ac_build_alias=$build_alias
1903 test "x$ac_build_alias" = x &&
1904   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1905 test "x$ac_build_alias" = x &&
1906   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1907 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1908    { (exit 1); exit 1; }; }
1909 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1910   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1911 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1912    { (exit 1); exit 1; }; }
1913
1914 fi
1915 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1916 echo "${ECHO_T}$ac_cv_build" >&6; }
1917 case $ac_cv_build in
1918 *-*-*) ;;
1919 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1920 echo "$as_me: error: invalid value of canonical build" >&2;}
1921    { (exit 1); exit 1; }; };;
1922 esac
1923 build=$ac_cv_build
1924 ac_save_IFS=$IFS; IFS='-'
1925 set x $ac_cv_build
1926 shift
1927 build_cpu=$1
1928 build_vendor=$2
1929 shift; shift
1930 # Remember, the first character of IFS is used to create $*,
1931 # except with old shells:
1932 build_os=$*
1933 IFS=$ac_save_IFS
1934 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1935
1936
1937  case ${build_alias} in
1938   "") build_noncanonical=${build} ;;
1939   *) build_noncanonical=${build_alias} ;;
1940 esac
1941
1942
1943
1944  case ${host_alias} in
1945   "") host_noncanonical=${build_noncanonical} ;;
1946   *) host_noncanonical=${host_alias} ;;
1947 esac
1948
1949
1950
1951  case ${target_alias} in
1952   "") target_noncanonical=${host_noncanonical} ;;
1953   *) target_noncanonical=${target_alias} ;;
1954 esac
1955
1956
1957
1958
1959 test "$host_noncanonical" = "$target_noncanonical" &&
1960   test "$program_prefix$program_suffix$program_transform_name" = \
1961     NONENONEs,x,x, &&
1962   program_transform_name=s,y,y,
1963
1964 { echo "$as_me:$LINENO: checking host system type" >&5
1965 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1966 if test "${ac_cv_host+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   if test "x$host_alias" = x; then
1970   ac_cv_host=$ac_cv_build
1971 else
1972   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1973     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1974 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1975    { (exit 1); exit 1; }; }
1976 fi
1977
1978 fi
1979 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1980 echo "${ECHO_T}$ac_cv_host" >&6; }
1981 case $ac_cv_host in
1982 *-*-*) ;;
1983 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1984 echo "$as_me: error: invalid value of canonical host" >&2;}
1985    { (exit 1); exit 1; }; };;
1986 esac
1987 host=$ac_cv_host
1988 ac_save_IFS=$IFS; IFS='-'
1989 set x $ac_cv_host
1990 shift
1991 host_cpu=$1
1992 host_vendor=$2
1993 shift; shift
1994 # Remember, the first character of IFS is used to create $*,
1995 # except with old shells:
1996 host_os=$*
1997 IFS=$ac_save_IFS
1998 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1999
2000
2001 { echo "$as_me:$LINENO: checking target system type" >&5
2002 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2003 if test "${ac_cv_target+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   if test "x$target_alias" = x; then
2007   ac_cv_target=$ac_cv_host
2008 else
2009   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2010     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2011 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2012    { (exit 1); exit 1; }; }
2013 fi
2014
2015 fi
2016 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2017 echo "${ECHO_T}$ac_cv_target" >&6; }
2018 case $ac_cv_target in
2019 *-*-*) ;;
2020 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2021 echo "$as_me: error: invalid value of canonical target" >&2;}
2022    { (exit 1); exit 1; }; };;
2023 esac
2024 target=$ac_cv_target
2025 ac_save_IFS=$IFS; IFS='-'
2026 set x $ac_cv_target
2027 shift
2028 target_cpu=$1
2029 target_vendor=$2
2030 shift; shift
2031 # Remember, the first character of IFS is used to create $*,
2032 # except with old shells:
2033 target_os=$*
2034 IFS=$ac_save_IFS
2035 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2036
2037
2038 # The aliases save the names the user supplied, while $host etc.
2039 # will get canonicalized.
2040 test -n "$target_alias" &&
2041   test "$program_prefix$program_suffix$program_transform_name" = \
2042     NONENONEs,x,x, &&
2043   program_prefix=${target_alias}-
2044 test "$program_prefix" != NONE &&
2045   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2046 # Use a double $ so make ignores it.
2047 test "$program_suffix" != NONE &&
2048   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2049 # Double any \ or $.  echo might interpret backslashes.
2050 # By default was `s,x,x', remove it if useless.
2051 cat <<\_ACEOF >conftest.sed
2052 s/[\\$]/&&/g;s/;s,x,x,$//
2053 _ACEOF
2054 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2055 rm -f conftest.sed
2056
2057
2058
2059 # Get 'install' or 'install-sh' and its variants.
2060 # Find a good install program.  We prefer a C program (faster),
2061 # so one script is as good as another.  But avoid the broken or
2062 # incompatible versions:
2063 # SysV /etc/install, /usr/sbin/install
2064 # SunOS /usr/etc/install
2065 # IRIX /sbin/install
2066 # AIX /bin/install
2067 # AmigaOS /C/install, which installs bootblocks on floppy discs
2068 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2069 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2070 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2071 # OS/2's system install, which has a completely different semantic
2072 # ./install, which can be erroneously created by make from ./install.sh.
2073 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2074 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2075 if test -z "$INSTALL"; then
2076 if test "${ac_cv_path_install+set}" = set; then
2077   echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2081 do
2082   IFS=$as_save_IFS
2083   test -z "$as_dir" && as_dir=.
2084   # Account for people who put trailing slashes in PATH elements.
2085 case $as_dir/ in
2086   ./ | .// | /cC/* | \
2087   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2088   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2089   /usr/ucb/* ) ;;
2090   *)
2091     # OSF1 and SCO ODT 3.0 have their own names for install.
2092     # Don't use installbsd from OSF since it installs stuff as root
2093     # by default.
2094     for ac_prog in ginstall scoinst install; do
2095       for ac_exec_ext in '' $ac_executable_extensions; do
2096         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2097           if test $ac_prog = install &&
2098             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2099             # AIX install.  It has an incompatible calling convention.
2100             :
2101           elif test $ac_prog = install &&
2102             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2103             # program-specific install script used by HP pwplus--don't use.
2104             :
2105           else
2106             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2107             break 3
2108           fi
2109         fi
2110       done
2111     done
2112     ;;
2113 esac
2114 done
2115 IFS=$as_save_IFS
2116
2117
2118 fi
2119   if test "${ac_cv_path_install+set}" = set; then
2120     INSTALL=$ac_cv_path_install
2121   else
2122     # As a last resort, use the slow shell script.  Don't cache a
2123     # value for INSTALL within a source directory, because that will
2124     # break other packages using the cache if that directory is
2125     # removed, or if the value is a relative name.
2126     INSTALL=$ac_install_sh
2127   fi
2128 fi
2129 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2130 echo "${ECHO_T}$INSTALL" >&6; }
2131
2132 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2133 # It thinks the first close brace ends the variable substitution.
2134 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2135
2136 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2137
2138 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2139
2140 { echo "$as_me:$LINENO: checking whether ln works" >&5
2141 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
2142 if test "${acx_cv_prog_LN+set}" = set; then
2143   echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145   rm -f conftestdata_t
2146 echo >conftestdata_f
2147 if ln conftestdata_f conftestdata_t 2>/dev/null
2148 then
2149   acx_cv_prog_LN=ln
2150 else
2151   acx_cv_prog_LN=no
2152 fi
2153 rm -f conftestdata_f conftestdata_t
2154
2155 fi
2156 if test $acx_cv_prog_LN = no; then
2157   LN="cp"
2158   { echo "$as_me:$LINENO: result: no, using $LN" >&5
2159 echo "${ECHO_T}no, using $LN" >&6; }
2160 else
2161   LN="$acx_cv_prog_LN"
2162   { echo "$as_me:$LINENO: result: yes" >&5
2163 echo "${ECHO_T}yes" >&6; }
2164 fi
2165
2166 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2167 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2168 LN_S=$as_ln_s
2169 if test "$LN_S" = "ln -s"; then
2170   { echo "$as_me:$LINENO: result: yes" >&5
2171 echo "${ECHO_T}yes" >&6; }
2172 else
2173   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2174 echo "${ECHO_T}no, using $LN_S" >&6; }
2175 fi
2176
2177
2178 ### we might need to use some other shell than /bin/sh for running subshells
2179 ### If we are on Windows, search for the shell.  This will permit people
2180 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2181 ### without also having to set CONFIG_SHELL.  This code will work when
2182 ### using bash, which sets OSTYPE.
2183 case "${OSTYPE}" in
2184 *win32*)
2185   if test x${CONFIG_SHELL} = x ; then
2186     if test ! -f /bin/sh ; then
2187       if test x${SHELL} != x && test -f ${SHELL} ; then
2188         CONFIG_SHELL=${SHELL}
2189         export CONFIG_SHELL
2190       else
2191         for prog in sh sh.exe bash bash.exe; do
2192           IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
2193           for dir in $PATH; do
2194             test -z "$dir" && dir=.
2195             if test -f $dir/$prog; then
2196               CONFIG_SHELL=$dir/$prog
2197               export CONFIG_SHELL
2198               break
2199             fi
2200           done
2201           IFS="$save_ifs"
2202           test -n "${CONFIG_SHELL}" && break
2203         done
2204       fi
2205     fi
2206   fi
2207   ;;
2208 esac
2209
2210 config_shell=${CONFIG_SHELL-/bin/sh}
2211
2212 progname=$0
2213 # if PWD already has a value, it is probably wrong.
2214 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2215
2216 # Export original configure arguments for use by sub-configures.
2217 # Quote arguments with shell meta charatcers.
2218 TOPLEVEL_CONFIGURE_ARGUMENTS=
2219 set -- "$progname" "$@"
2220 for ac_arg
2221 do
2222   case "$ac_arg" in
2223   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2224     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2225     # if the argument is of the form -foo=baz, quote the baz part only
2226     ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2227   *) ;;
2228   esac
2229   # Add the quoted argument to the list.
2230   TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2231 done
2232 # Remove the initial space we just introduced and, as these will be
2233 # expanded by make, quote '$'.
2234 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2235
2236
2237 moveifchange=${srcdir}/move-if-change
2238
2239 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2240
2241 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
2242 # a relative path.
2243 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2244   INSTALL="${srcpwd}/install-sh -c"
2245 fi
2246
2247 # Set srcdir to "." if that's what it is.
2248 # This is important for multilib support.
2249 pwd=`${PWDCMD-pwd}`
2250 if test "${pwd}" = "${srcpwd}" ; then
2251   srcdir=.
2252 fi
2253
2254 topsrcdir=$srcpwd
2255
2256 extra_host_args=
2257
2258 ### To add a new directory to the tree, first choose whether it is a target
2259 ### or a host dependent tool.  Then put it into the appropriate list
2260 ### (library or tools, host or target), doing a dependency sort.
2261
2262 # Subdirs will be configured in the order listed in build_configdirs,
2263 # configdirs, or target_configdirs; see the serialization section below.
2264
2265 # Dependency sorting is only needed when *configuration* must be done in
2266 # a particular order.  In all cases a dependency should be specified in
2267 # the Makefile, whether or not it's implicitly specified here.
2268
2269 # Double entries in build_configdirs, configdirs, or target_configdirs may
2270 # cause circular dependencies and break everything horribly.
2271
2272 # these library is used by various programs built for the build
2273 # environment
2274 #
2275 build_libs="build-libiberty"
2276
2277 # these tools are built for the build environment
2278 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2279
2280 # these libraries are used by various programs built for the host environment
2281 #
2282 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
2283
2284 # these tools are built for the host environment
2285 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2286 # know that we are building the simulator.
2287 # binutils, gas and ld appear in that order because it makes sense to run
2288 # "make check" in that particular order.
2289 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2290
2291 # libgcj represents the runtime libraries only used by gcj.
2292 libgcj="target-libffi \
2293         target-zlib \
2294         target-qthreads \
2295         target-libjava"
2296
2297 # these libraries are built for the target environment, and are built after
2298 # the host libraries and the host tools (which may be a cross compiler)
2299 #
2300 target_libraries="target-libgcc \
2301                 target-libiberty \
2302                 target-libgloss \
2303                 target-newlib \
2304                 target-libstdc++-v3 \
2305                 target-libmudflap \
2306                 target-libssp \
2307                 target-libgfortran \
2308                 target-boehm-gc \
2309                 ${libgcj} \
2310                 target-libobjc \
2311                 target-libada \
2312                 target-libgomp"
2313
2314 # these tools are built using the target libraries, and are intended to
2315 # run only in the target environment
2316 #
2317 # note: any program that *uses* libraries that are in the "target_libraries"
2318 # list belongs in this list.  those programs are also very likely
2319 # candidates for the "native_only" list which follows
2320 #
2321 target_tools="target-examples target-groff target-gperf target-rda"
2322
2323 ################################################################################
2324
2325 ## All tools belong in one of the four categories, and are assigned above
2326 ## We assign ${configdirs} this way to remove all embedded newlines.  This
2327 ## is important because configure will choke if they ever get through.
2328 ## ${configdirs} is directories we build using the host tools.
2329 ## ${target_configdirs} is directories we build using the target tools.
2330 configdirs=`echo ${host_libs} ${host_tools}`
2331 target_configdirs=`echo ${target_libraries} ${target_tools}`
2332 build_configdirs=`echo ${build_libs} ${build_tools}`
2333
2334 ################################################################################
2335
2336 srcname="gnu development package"
2337
2338 # This gets set non-empty for some net releases of packages.
2339 appdirs=""
2340
2341 # Define is_cross_compiler to save on calls to 'test'.
2342 is_cross_compiler=
2343 if test x"${host}" = x"${target}" ; then
2344   is_cross_compiler=no
2345 else
2346   is_cross_compiler=yes
2347 fi
2348
2349 # Find the build and target subdir names.
2350
2351 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2352 # have matching libraries, they should use host libraries: Makefile.tpl
2353 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2354 # However, they still use the build modules, because the corresponding
2355 # host modules (e.g. bison) are only built for the host when bootstrap
2356 # finishes. So:
2357 # - build_subdir is where we find build modules, and never changes.
2358 # - build_libsubdir is where we find build libraries, and can be overridden.
2359
2360 # Prefix 'build-' so this never conflicts with target_subdir.
2361 build_subdir="build-${build_noncanonical}"
2362
2363 # Check whether --with-build-libsubdir was given.
2364 if test "${with_build_libsubdir+set}" = set; then
2365   withval=$with_build_libsubdir; build_libsubdir="$withval"
2366 else
2367   build_libsubdir="$build_subdir"
2368 fi
2369
2370 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2371 if ( test $srcdir = . && test -d gcc ) \
2372    || test -d $srcdir/../host-${host_noncanonical}; then
2373   host_subdir="host-${host_noncanonical}"
2374 else
2375   host_subdir=.
2376 fi
2377 # No prefix.
2378 target_subdir=${target_noncanonical}
2379
2380
2381 # Skipdirs are removed silently.
2382 skipdirs=
2383 # Noconfigdirs are removed loudly.
2384 noconfigdirs=""
2385
2386 use_gnu_ld=
2387 # Make sure we don't let GNU ld be added if we didn't want it.
2388 if test x$with_gnu_ld = xno ; then
2389   use_gnu_ld=no
2390   noconfigdirs="$noconfigdirs ld"
2391 fi
2392
2393 use_gnu_as=
2394 # Make sure we don't let GNU as be added if we didn't want it.
2395 if test x$with_gnu_as = xno ; then
2396   use_gnu_as=no
2397   noconfigdirs="$noconfigdirs gas"
2398 fi
2399
2400 # some tools are so dependent upon X11 that if we're not building with X,
2401 # it's not even worth trying to configure, much less build, that tool.
2402
2403 case ${with_x} in
2404   yes | "") ;; # the default value for this tree is that X11 is available
2405   no)
2406     skipdirs="${skipdirs} tk itcl libgui"
2407     # We won't be able to build gdbtk without X.
2408     enable_gdbtk=no
2409     ;;
2410   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2411 esac
2412
2413 # Some tools are only suitable for building in a "native" situation.
2414 # Remove these if host!=target.
2415 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2416
2417 # Similarly, some are only suitable for cross toolchains.
2418 # Remove these if host=target.
2419 cross_only="target-libgloss target-newlib target-opcodes"
2420
2421 case $is_cross_compiler in
2422   no) skipdirs="${skipdirs} ${cross_only}" ;;
2423   yes) skipdirs="${skipdirs} ${native_only}" ;;
2424 esac
2425
2426 # If both --with-headers and --with-libs are specified, default to
2427 # --without-newlib.
2428 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2429    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2430   if test x"${with_newlib}" = x ; then
2431     with_newlib=no
2432   fi
2433 fi
2434
2435 # Recognize --with-newlib/--without-newlib.
2436 case ${with_newlib} in
2437   no) skipdirs="${skipdirs} target-newlib" ;;
2438   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2439 esac
2440
2441 # Configure extra directories which are host specific
2442
2443 case "${host}" in
2444   *-cygwin*)
2445     configdirs="$configdirs libtermcap" ;;
2446 esac
2447
2448 # A target can indicate whether a language isn't supported for some reason.
2449 # Only spaces may be used in this macro; not newlines or tabs.
2450 unsupported_languages=
2451
2452 # Remove more programs from consideration, based on the host or
2453 # target this usually means that a port of the program doesn't
2454 # exist yet.
2455
2456 case "${host}" in
2457   hppa*64*-*-*)
2458     noconfigdirs="$noconfigdirs byacc"
2459     ;;
2460   i[3456789]86-*-vsta)
2461     noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2462     ;;
2463   i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2464     noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2465     ;;
2466   x86_64-*-mingw*)
2467     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2468     ;;
2469   i[3456789]86-*-mingw32*)
2470     # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2471     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2472     ;;
2473   i[3456789]86-*-beos*)
2474     noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2475     ;;
2476   *-*-cygwin*)
2477     noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2478     ;;
2479   *-*-netbsd*)
2480     noconfigdirs="$noconfigdirs rcs"
2481     ;;
2482   ppc*-*-pe)
2483     noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2484     ;;
2485   powerpc-*-beos*)
2486     noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2487     ;;
2488 esac
2489
2490
2491 # Check whether --enable-libada was given.
2492 if test "${enable_libada+set}" = set; then
2493   enableval=$enable_libada; ENABLE_LIBADA=$enableval
2494 else
2495   ENABLE_LIBADA=yes
2496 fi
2497
2498 if test "${ENABLE_LIBADA}" != "yes" ; then
2499   noconfigdirs="$noconfigdirs gnattools"
2500 fi
2501
2502 # Check whether --enable-libssp was given.
2503 if test "${enable_libssp+set}" = set; then
2504   enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2505 else
2506   ENABLE_LIBSSP=yes
2507 fi
2508
2509
2510 # Save it here so that, even in case of --enable-libgcj, if the Java
2511 # front-end isn't enabled, we still get libgcj disabled.
2512 libgcj_saved=$libgcj
2513 case $enable_libgcj in
2514 yes)
2515   # If we reset it here, it won't get added to noconfigdirs in the
2516   # target-specific build rules, so it will be forcibly enabled
2517   # (unless the Java language itself isn't enabled).
2518   libgcj=
2519   ;;
2520 no)
2521   # Make sure we get it printed in the list of not supported target libs.
2522   noconfigdirs="$noconfigdirs ${libgcj}"
2523   ;;
2524 esac
2525
2526
2527 # Disable libmudflap on some systems.
2528 if test x$enable_libmudflap = x ; then
2529     case "${target}" in
2530     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2531         # Enable libmudflap by default in GNU and friends.
2532         ;;
2533     *-*-freebsd*)
2534         # Enable libmudflap by default in FreeBSD.
2535         ;;
2536     *)
2537         # Disable it by default everywhere else.
2538         noconfigdirs="$noconfigdirs target-libmudflap"
2539         ;;
2540     esac
2541 fi
2542
2543 # Disable libgomp on non POSIX hosted systems.
2544 if test x$enable_libgomp = x ; then
2545     # Enable libgomp by default on hosted POSIX systems.
2546     case "${target}" in
2547     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2548         ;;
2549     *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2550         ;;
2551     *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2552         ;;
2553     *-*-darwin* | *-*-aix*)
2554         ;;
2555     *)
2556         noconfigdirs="$noconfigdirs target-libgomp"
2557         ;;
2558     esac
2559 fi
2560
2561
2562 case "${target}" in
2563   *-*-chorusos)
2564     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2565     ;;
2566   powerpc-*-darwin* | i[3456789]86-*-darwin*)
2567     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
2568     noconfigdirs="$noconfigdirs sim target-rda"
2569     ;;
2570   *-*-darwin*)
2571     noconfigdirs="$noconfigdirs ld gas gdb gprof"
2572     noconfigdirs="$noconfigdirs sim target-rda"
2573     noconfigdirs="$noconfigdirs ${libgcj}"
2574     ;;
2575   *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2576     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2577     ;;
2578   *-*-freebsd*)
2579     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2580     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2581         && test -f /usr/local/include/gmp.h; then
2582       with_gmp=/usr/local
2583     fi
2584
2585     # Skip some stuff that's unsupported on some FreeBSD configurations.
2586     case "${target}" in
2587       i*86-*-*) ;;
2588       alpha*-*-*) ;;
2589       *)
2590         noconfigdirs="$noconfigdirs ${libgcj}"
2591         ;;
2592     esac
2593     ;;
2594   *-*-kaos*)
2595     # Remove unsupported stuff on all kaOS configurations.
2596     skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2597     skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2598     skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2599     noconfigdirs="$noconfigdirs target-libgloss"
2600     ;;
2601   *-*-netbsd*)
2602     # Skip some stuff on all NetBSD configurations.
2603     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2604
2605     # Skip some stuff that's unsupported on some NetBSD configurations.
2606     case "${target}" in
2607       i*86-*-netbsdelf*) ;;
2608       arm*-*-netbsdelf*) ;;
2609       *)
2610         noconfigdirs="$noconfigdirs ${libgcj}"
2611         ;;
2612     esac
2613     ;;
2614   *-*-netware*)
2615     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2616     ;;
2617   *-*-rtems*)
2618     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2619     ;;
2620     # The tpf target doesn't support gdb yet.
2621   *-*-tpf*)
2622     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2623     ;;
2624   *-*-uclinux*)
2625     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2626     ;;
2627   *-*-vxworks*)
2628     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2629     ;;
2630   alpha*-dec-osf*)
2631     # ld works, but does not support shared libraries.
2632     # newlib is not 64 bit ready.  I'm not sure about fileutils.
2633     # gas doesn't generate exception information.
2634     noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2635     ;;
2636   alpha*-*-*vms*)
2637     noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2638     ;;
2639   alpha*-*-linux*)
2640     # newlib is not 64 bit ready
2641     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2642     ;;
2643   alpha*-*-*)
2644     # newlib is not 64 bit ready
2645     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2646     ;;
2647   am33_2.0-*-linux*)
2648     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2649     ;;
2650   sh-*-linux*)
2651     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2652     ;;
2653   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2654     noconfigdirs="$noconfigdirs ${libgcj}"
2655     noconfigdirs="$noconfigdirs target-examples"
2656     noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2657     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2658     noconfigdirs="$noconfigdirs expect dejagnu"
2659     # the C++ libraries don't build on top of CE's C libraries
2660     noconfigdirs="$noconfigdirs target-libstdc++-v3"
2661     noconfigdirs="$noconfigdirs target-newlib"
2662     case "${host}" in
2663       *-*-cygwin*) ;; # keep gdb and readline
2664       *) noconfigdirs="$noconfigdirs gdb readline"
2665          ;;
2666     esac
2667     ;;
2668   arc-*-*)
2669     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2670     ;;
2671   arm-semi-aof )
2672     ;;
2673   arm-*-coff | strongarm-*-coff | xscale-*-coff)
2674     noconfigdirs="$noconfigdirs ${libgcj}"
2675     ;;
2676   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2677     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2678     ;;
2679   arm*-*-linux-gnueabi)
2680     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2681     noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2682     ;;
2683   arm*-*-symbianelf*)
2684     noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2685     ;;
2686   arm-*-pe*)
2687     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2688     ;;
2689   thumb-*-coff)
2690     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2691     ;;
2692   thumb-*-elf)
2693     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2694     ;;
2695   thumb-*-pe)
2696     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2697     ;;
2698   arm-*-riscix*)
2699     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2700     ;;
2701   avr-*-*)
2702     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2703     ;;
2704   bfin-*-*)
2705     noconfigdirs="$noconfigdirs gdb"
2706     if test x${is_cross_compiler} != xno ; then
2707       target_configdirs="${target_configdirs} target-bsp target-cygmon"
2708     fi
2709     ;;
2710   c4x-*-* | tic4x-*-*)
2711     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2712     ;;
2713   c54x*-*-* | tic54x-*-*)
2714     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2715     ;;
2716   cris-*-* | crisv32-*-*)
2717     unsupported_languages="$unsupported_languages java"
2718     case "${target}" in
2719       *-*-aout)
2720         unsupported_languages="$unsupported_languages fortran"
2721         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2722       *-*-elf)
2723         unsupported_languages="$unsupported_languages fortran"
2724         noconfigdirs="$noconfigdirs target-boehm-gc";;
2725       *-*-linux*)
2726         noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2727       *)
2728         unsupported_languages="$unsupported_languages fortran"
2729         noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2730     esac
2731     ;;
2732   crx-*-*)
2733     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2734     ;;
2735   d10v-*-*)
2736     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2737     ;;
2738   d30v-*-*)
2739     noconfigdirs="$noconfigdirs ${libgcj} gdb"
2740     ;;
2741   fr30-*-elf*)
2742     noconfigdirs="$noconfigdirs ${libgcj} gdb"
2743     ;;
2744   frv-*-*)
2745     noconfigdirs="$noconfigdirs ${libgcj}"
2746     ;;
2747   h8300*-*-*)
2748     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2749     ;;
2750   h8500-*-*)
2751     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2752     ;;
2753   hppa1.1-*-osf* | hppa1.1-*-bsd* )
2754     ;;
2755   hppa*64*-*-linux* | parisc*64*-*-linux*)
2756     # In this case, it's because the hppa64-linux target is for
2757     # the kernel only at this point and has no libc, and thus no
2758     # headers, crt*.o, etc., all of which are needed by these.
2759     noconfigdirs="$noconfigdirs target-zlib"
2760     ;;
2761   parisc*-*-linux* | hppa*-*-linux*)
2762     ;;
2763   hppa*-*-*elf* | \
2764   hppa*-*-lites* | \
2765   hppa*-*-openbsd* | \
2766   hppa*64*-*-*)
2767     noconfigdirs="$noconfigdirs ${libgcj}"
2768     ;;
2769   hppa*-hp-hpux11*)
2770     noconfigdirs="$noconfigdirs ld shellutils"
2771     ;;
2772   hppa*-*-*)
2773     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2774     # build on HP-UX 10.20.
2775     noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2776     ;;
2777   i960-*-*)
2778     noconfigdirs="$noconfigdirs ${libgcj} gdb"
2779     ;;
2780   ia64*-*-elf*)
2781     # No gdb support yet.
2782     noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2783     ;;
2784   ia64*-**-hpux*)
2785     # No gdb or ld support yet.
2786     noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2787     ;;
2788   i370-*-opened*)
2789     ;;
2790   i[3456789]86-*-coff | i[3456789]86-*-elf)
2791     noconfigdirs="$noconfigdirs ${libgcj}"
2792     ;;
2793   i[3456789]86-*-linux*)
2794     # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2795     # not build java stuff by default.
2796     case "${target}" in
2797       *-*-*libc1*)
2798         noconfigdirs="$noconfigdirs ${libgcj}";;
2799     esac
2800
2801     # This section makes it possible to build newlib natively on linux.
2802     # If we are using a cross compiler then don't configure newlib.
2803     if test x${is_cross_compiler} != xno ; then
2804       noconfigdirs="$noconfigdirs target-newlib"
2805     fi
2806     noconfigdirs="$noconfigdirs target-libgloss"
2807     # If we are not using a cross compiler, do configure newlib.
2808     # Note however, that newlib will only be configured in this situation
2809     # if the --with-newlib option has been given, because otherwise
2810     # 'target-newlib' will appear in skipdirs.
2811     ;;
2812   i[3456789]86-*-mingw32*)
2813     target_configdirs="$target_configdirs target-winsup"
2814     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2815     ;;
2816   x86_64-*-mingw*)
2817     target_configdirs="$target_configdirs target-winsup"
2818     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2819     ;;
2820   *-*-cygwin*)
2821     target_configdirs="$target_configdirs target-libtermcap target-winsup"
2822     noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2823     # always build newlib if winsup directory is present.
2824     if test -d "$srcdir/winsup/cygwin"; then
2825       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2826     elif test -d "$srcdir/newlib"; then
2827       echo "Warning: winsup/cygwin is missing so newlib can't be built."
2828     fi
2829     ;;
2830   i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2831   i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2832     ;;
2833   i[3456789]86-*-pe)
2834     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2835     ;;
2836   i[3456789]86-*-sco3.2v5*)
2837     # The linker does not yet know about weak symbols in COFF,
2838     # and is not configured to handle mixed ELF and COFF.
2839     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2840     ;;
2841   i[3456789]86-*-sco*)
2842     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2843     ;;
2844   i[3456789]86-*-solaris2*)
2845     noconfigdirs="$noconfigdirs target-libgloss"
2846     ;;
2847   i[3456789]86-*-sysv4*)
2848     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2849     ;;
2850   i[3456789]86-*-beos*)
2851     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2852     ;;
2853   i[3456789]86-*-rdos*)
2854     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2855     ;;
2856   m32r-*-*)
2857     noconfigdirs="$noconfigdirs ${libgcj}"
2858     ;;
2859   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2860     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2861     ;;
2862   m68k-*-elf*)
2863     noconfigdirs="$noconfigdirs ${libgcj}"
2864     ;;
2865   m68k-*-coff*)
2866     noconfigdirs="$noconfigdirs ${libgcj}"
2867     ;;
2868   mcore-*-pe*)
2869   # The EPOC C++ environment does not support exceptions or rtti,
2870   # and so building libstdc++-v3 tends not to always work.
2871     noconfigdirs="$noconfigdirs target-libstdc++-v3"
2872     ;;
2873   mmix-*-*)
2874     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2875     unsupported_languages="$unsupported_languages fortran java"
2876     ;;
2877   mn10200-*-*)
2878     noconfigdirs="$noconfigdirs ${libgcj}"
2879     ;;
2880   mn10300-*-*)
2881     noconfigdirs="$noconfigdirs ${libgcj}"
2882     ;;
2883   mt-*-*)
2884     noconfigdirs="$noconfigdirs sim"
2885     ;;
2886   powerpc-*-aix*)
2887     # copied from rs6000-*-* entry
2888     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2889     ;;
2890   powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2891     target_configdirs="$target_configdirs target-winsup"
2892     noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2893     # always build newlib.
2894     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2895     ;;
2896     # This is temporary until we can link against shared libraries
2897   powerpcle-*-solaris*)
2898     noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2899     ;;
2900   powerpc-*-beos*)
2901     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2902     ;;
2903   powerpc-*-eabi)
2904     noconfigdirs="$noconfigdirs ${libgcj}"
2905     ;;
2906   powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2907     ;;
2908   rs6000-*-lynxos*)
2909     noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2910     ;;
2911   rs6000-*-aix*)
2912     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2913     ;;
2914   rs6000-*-*)
2915     noconfigdirs="$noconfigdirs gprof ${libgcj}"
2916     ;;
2917   m68k-apollo-*)
2918     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2919     ;;
2920   mips*-*-irix5*)
2921     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2922     ;;
2923   mips*-*-irix6*)
2924     # Linking libjava exceeds command-line length limits on at least
2925     # IRIX 6.2, but not on IRIX 6.5.
2926     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2927     # <oldham@codesourcery.com>
2928     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2929     ;;
2930   mips*-*-bsd*)
2931     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2932     ;;
2933   mips64*-*-linux*)
2934     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2935     ;;
2936   mips*-*-linux*)
2937     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2938     ;;
2939   mips*-*-*)
2940     noconfigdirs="$noconfigdirs gprof ${libgcj}"
2941     ;;
2942   romp-*-*)
2943     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2944     ;;
2945   sh-*-* | sh64-*-*)
2946     case "${host}" in
2947       i[3456789]86-*-vsta) ;; # don't add gprof back in
2948       i[3456789]86-*-go32*) ;; # don't add gprof back in
2949       i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2950       *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2951     esac
2952     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2953     ;;
2954   sparc-*-elf*)
2955     noconfigdirs="$noconfigdirs ${libgcj}"
2956     ;;
2957   sparc64-*-elf*)
2958     noconfigdirs="$noconfigdirs ${libgcj}"
2959     ;;
2960   sparclite-*-*)
2961     noconfigdirs="$noconfigdirs ${libgcj}"
2962     ;;
2963   sparc-*-sunos4*)
2964     noconfigdirs="$noconfigdirs ${libgcj}"
2965     if test x${is_cross_compiler} != xno ; then
2966            noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2967     else
2968            use_gnu_ld=no
2969     fi
2970     ;;
2971   sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2972     noconfigdirs="$noconfigdirs ${libgcj}"
2973     ;;
2974   sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2975     ;;
2976   spu-*-*)
2977     skipdirs="target-libssp"
2978     ;;
2979   v810-*-*)
2980     noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2981     ;;
2982   v850-*-*)
2983     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2984     ;;
2985   v850e-*-*)
2986     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2987     ;;
2988   v850ea-*-*)
2989     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2990     ;;
2991   vax-*-vms)
2992     noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2993     ;;
2994   vax-*-*)
2995     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2996     ;;
2997   xtensa-*-*)
2998     noconfigdirs="$noconfigdirs ${libgcj}"
2999     ;;
3000   ip2k-*-*)
3001     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3002     ;;
3003   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
3004     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3005     ;;
3006   *-*-lynxos*)
3007     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3008     ;;
3009   *-*-*)
3010     noconfigdirs="$noconfigdirs ${libgcj}"
3011     ;;
3012 esac
3013
3014 # If we aren't building newlib, then don't build libgloss, since libgloss
3015 # depends upon some newlib header files.
3016 case "${noconfigdirs}" in
3017   *target-libgloss*) ;;
3018   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3019 esac
3020
3021 # Work in distributions that contain no compiler tools, like Autoconf.
3022 tentative_cc=""
3023 host_makefile_frag=/dev/null
3024 if test -d ${srcdir}/config ; then
3025 case "${host}" in
3026   m68k-hp-hpux*)
3027     # Avoid "too much defining" errors from HPUX compiler.
3028     tentative_cc="cc -Wp,-H256000"
3029     # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3030     # If it's HP/UX ar, this should be harmless.
3031     RANLIB="ar ts"
3032     ;;
3033   m68k-apollo-sysv*)
3034     tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3035     ;;
3036   m68k-apollo-bsd*)
3037     #None of the Apollo compilers can compile gas or binutils.  The preprocessor
3038     # chokes on bfd, the compiler won't let you assign integers to enums, and
3039     # other problems.  Defining CC to gcc is a questionable way to say "don't use
3040     # the apollo compiler" (the preferred version of GCC could be called cc,
3041     # or whatever), but I'm not sure leaving CC as cc is any better...
3042     #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3043     # Used to have BISON=yacc.
3044     tentative_cc=gcc
3045     ;;
3046   m88k-dg-dgux*)
3047     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3048     ;;
3049   m88k-harris-cxux*)
3050     # Under CX/UX, we want to tell the compiler to use ANSI mode.
3051     tentative_cc="cc -Xa"
3052     host_makefile_frag="config/mh-cxux"
3053     ;;
3054   m88k-motorola-sysv*)
3055     ;;
3056   mips*-dec-ultrix*)
3057     tentative_cc="cc -Wf,-XNg1000"
3058     host_makefile_frag="config/mh-decstation"
3059     ;;
3060   mips*-nec-sysv4*)
3061     # The C compiler on NEC MIPS SVR4 needs bigger tables.
3062     tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3063     host_makefile_frag="config/mh-necv4"
3064     ;;
3065   mips*-sgi-irix4*)
3066     # Tell compiler to use K&R C.  We can't compile under the SGI Ansi
3067     # environment.  Also bump switch table size so that cp-parse will
3068     # compile.  Bump string length limit so linker builds.
3069     tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3070     ;;
3071   mips*-*-sysv4*)
3072     host_makefile_frag="config/mh-sysv4"
3073     ;;
3074   mips*-*-sysv*)
3075     # This is for a MIPS running RISC/os 4.52C.
3076
3077     # This is needed for GDB, but needs to be in the top-level make because
3078     # if a library is compiled with the bsd headers and gets linked with the
3079     # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3080     # a different size).
3081     # ptrace(2) apparently has problems in the BSD environment.  No workaround is
3082     # known except to select the sysv environment.  Could we use /proc instead?
3083     # These "sysv environments" and "bsd environments" often end up being a pain.
3084     #
3085     # This is not part of CFLAGS because perhaps not all C compilers have this
3086     # option.
3087     tentative_cc="cc -systype sysv"
3088     ;;
3089   i370-ibm-opened*)
3090     tentative_cc="c89"
3091     ;;
3092   i[3456789]86-*-sysv5*)
3093     host_makefile_frag="config/mh-sysv5"
3094     ;;
3095   i[3456789]86-*-dgux*)
3096     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3097     host_makefile_frag="config/mh-dgux386"
3098     ;;
3099   i[3456789]86-ncr-sysv4.3*)
3100     # The MetaWare compiler will generate a copyright message unless you
3101     # turn it off by adding the -Hnocopyr flag.
3102     tentative_cc="cc -Hnocopyr"
3103     ;;
3104   i[3456789]86-ncr-sysv4*)
3105     # for an NCR 3000 (i486/SVR4) system.
3106     # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3107     # This compiler not only emits obnoxious copyright messages every time
3108     # you run it, but it chokes and dies on a whole bunch of GNU source
3109     # files.  Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3110     tentative_cc="/usr/ccs/ATT/cc"
3111     host_makefile_frag="config/mh-ncr3000"
3112     ;;
3113   i[3456789]86-*-sco3.2v5*)
3114     ;;
3115   i[3456789]86-*-sco*)
3116     # The native C compiler botches some simple uses of const.  Unfortunately,
3117     # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3118     tentative_cc="cc -Dconst="
3119     host_makefile_frag="config/mh-sco"
3120     ;;
3121   i[3456789]86-*-udk*)
3122     host_makefile_frag="config/mh-sysv5"
3123     ;;
3124   i[3456789]86-*-solaris2*)
3125     host_makefile_frag="config/mh-sysv4"
3126     ;;
3127   i[3456789]86-*-msdosdjgpp*)
3128     host_makefile_frag="config/mh-djgpp"
3129     ;;
3130   *-cygwin*)
3131     host_makefile_frag="config/mh-cygwin"
3132     ;;
3133   *-mingw32*)
3134     ;;
3135   *-mingw64*)
3136     ;;
3137   *-interix*)
3138     host_makefile_frag="config/mh-interix"
3139     ;;
3140   vax-*-ultrix2*)
3141     # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3142     tentative_cc=gcc
3143     ;;
3144   *-*-solaris2*)
3145     host_makefile_frag="config/mh-solaris"
3146     ;;
3147   m68k-sun-sunos*)
3148     # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3149     # without overflowing the jump tables (-J says to use a 32 bit table)
3150     tentative_cc="cc -J"
3151     ;;
3152   *-hp-hpux*)
3153     tentative_cc="cc -Wp,-H256000"
3154     ;;
3155   *-*-hiux*)
3156     tentative_cc="cc -Wp,-H256000"
3157     ;;
3158   rs6000-*-lynxos*)
3159     # /bin/cc is less than useful for our purposes.  Always use GCC
3160     tentative_cc="/usr/cygnus/progressive/bin/gcc"
3161     host_makefile_frag="config/mh-lynxrs6k"
3162     ;;
3163   powerpc-*-darwin*)
3164     host_makefile_frag="config/mh-ppc-darwin"
3165     ;;
3166   powerpc-*-aix*)
3167     host_makefile_frag="config/mh-ppc-aix"
3168     ;;
3169   rs6000-*-aix*)
3170     host_makefile_frag="config/mh-ppc-aix"
3171     ;;
3172   *-*-lynxos*)
3173     # /bin/cc is less than useful for our purposes.  Always use GCC
3174     tentative_cc="/bin/gcc"
3175     ;;
3176   *-*-sysv4*)
3177     host_makefile_frag="config/mh-sysv4"
3178     ;;
3179   # This is placed last to prevent interfering with the cases above.
3180   i[3456789]86-*-*)
3181     # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3182     host_makefile_frag="config/mh-x86omitfp"
3183     ;;
3184 esac
3185 fi
3186
3187 # If we aren't going to be using gcc, see if we can extract a definition
3188 # of CC from the fragment.
3189 # Actually, use the 'pre-extracted' version above.
3190 if test -z "${CC}" && test "${build}" = "${host}" ; then
3191   IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
3192   found=
3193   for dir in $PATH; do
3194     test -z "$dir" && dir=.
3195     if test -f $dir/gcc; then
3196       found=yes
3197       break
3198     fi
3199   done
3200   IFS="$save_ifs"
3201   if test -z "${found}" && test -n "${tentative_cc}" ; then
3202     CC=$tentative_cc
3203   fi
3204 fi
3205
3206 if test "${build}" != "${host}" ; then
3207   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3208 else
3209   CC_FOR_BUILD="\$(CC)"
3210 fi
3211
3212 ac_ext=c
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217 if test -n "$ac_tool_prefix"; then
3218   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3219 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3222 if test "${ac_cv_prog_CC+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   if test -n "$CC"; then
3226   ac_cv_prog_CC="$CC" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231   IFS=$as_save_IFS
3232   test -z "$as_dir" && as_dir=.
3233   for ac_exec_ext in '' $ac_executable_extensions; do
3234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237     break 2
3238   fi
3239 done
3240 done
3241 IFS=$as_save_IFS
3242
3243 fi
3244 fi
3245 CC=$ac_cv_prog_CC
3246 if test -n "$CC"; then
3247   { echo "$as_me:$LINENO: result: $CC" >&5
3248 echo "${ECHO_T}$CC" >&6; }
3249 else
3250   { echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6; }
3252 fi
3253
3254
3255 fi
3256 if test -z "$ac_cv_prog_CC"; then
3257   ac_ct_CC=$CC
3258   # Extract the first word of "gcc", so it can be a program name with args.
3259 set dummy gcc; ac_word=$2
3260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   if test -n "$ac_ct_CC"; then
3266   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271   IFS=$as_save_IFS
3272   test -z "$as_dir" && as_dir=.
3273   for ac_exec_ext in '' $ac_executable_extensions; do
3274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275     ac_cv_prog_ac_ct_CC="gcc"
3276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277     break 2
3278   fi
3279 done
3280 done
3281 IFS=$as_save_IFS
3282
3283 fi
3284 fi
3285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3286 if test -n "$ac_ct_CC"; then
3287   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3288 echo "${ECHO_T}$ac_ct_CC" >&6; }
3289 else
3290   { echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6; }
3292 fi
3293
3294   if test "x$ac_ct_CC" = x; then
3295     CC=""
3296   else
3297     case $cross_compiling:$ac_tool_warned in
3298 yes:)
3299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3300 whose name does not start with the host triplet.  If you think this
3301 configuration is useful to you, please write to autoconf@gnu.org." >&5
3302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3303 whose name does not start with the host triplet.  If you think this
3304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3305 ac_tool_warned=yes ;;
3306 esac
3307     CC=$ac_ct_CC
3308   fi
3309 else
3310   CC="$ac_cv_prog_CC"
3311 fi
3312
3313 if test -z "$CC"; then
3314           if test -n "$ac_tool_prefix"; then
3315     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3316 set dummy ${ac_tool_prefix}cc; ac_word=$2
3317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3319 if test "${ac_cv_prog_CC+set}" = set; then
3320   echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322   if test -n "$CC"; then
3323   ac_cv_prog_CC="$CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328   IFS=$as_save_IFS
3329   test -z "$as_dir" && as_dir=.
3330   for ac_exec_ext in '' $ac_executable_extensions; do
3331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332     ac_cv_prog_CC="${ac_tool_prefix}cc"
3333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334     break 2
3335   fi
3336 done
3337 done
3338 IFS=$as_save_IFS
3339
3340 fi
3341 fi
3342 CC=$ac_cv_prog_CC
3343 if test -n "$CC"; then
3344   { echo "$as_me:$LINENO: result: $CC" >&5
3345 echo "${ECHO_T}$CC" >&6; }
3346 else
3347   { echo "$as_me:$LINENO: result: no" >&5
3348 echo "${ECHO_T}no" >&6; }
3349 fi
3350
3351
3352   fi
3353 fi
3354 if test -z "$CC"; then
3355   # Extract the first word of "cc", so it can be a program name with args.
3356 set dummy cc; ac_word=$2
3357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3359 if test "${ac_cv_prog_CC+set}" = set; then
3360   echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362   if test -n "$CC"; then
3363   ac_cv_prog_CC="$CC" # Let the user override the test.
3364 else
3365   ac_prog_rejected=no
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369   IFS=$as_save_IFS
3370   test -z "$as_dir" && as_dir=.
3371   for ac_exec_ext in '' $ac_executable_extensions; do
3372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3373     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3374        ac_prog_rejected=yes
3375        continue
3376      fi
3377     ac_cv_prog_CC="cc"
3378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3379     break 2
3380   fi
3381 done
3382 done
3383 IFS=$as_save_IFS
3384
3385 if test $ac_prog_rejected = yes; then
3386   # We found a bogon in the path, so make sure we never use it.
3387   set dummy $ac_cv_prog_CC
3388   shift
3389   if test $# != 0; then
3390     # We chose a different compiler from the bogus one.
3391     # However, it has the same basename, so the bogon will be chosen
3392     # first if we set CC to just the basename; use the full file name.
3393     shift
3394     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3395   fi
3396 fi
3397 fi
3398 fi
3399 CC=$ac_cv_prog_CC
3400 if test -n "$CC"; then
3401   { echo "$as_me:$LINENO: result: $CC" >&5
3402 echo "${ECHO_T}$CC" >&6; }
3403 else
3404   { echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6; }
3406 fi
3407
3408
3409 fi
3410 if test -z "$CC"; then
3411   if test -n "$ac_tool_prefix"; then
3412   for ac_prog in cl.exe
3413   do
3414     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3418 if test "${ac_cv_prog_CC+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   if test -n "$CC"; then
3422   ac_cv_prog_CC="$CC" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3426 do
3427   IFS=$as_save_IFS
3428   test -z "$as_dir" && as_dir=.
3429   for ac_exec_ext in '' $ac_executable_extensions; do
3430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3433     break 2
3434   fi
3435 done
3436 done
3437 IFS=$as_save_IFS
3438
3439 fi
3440 fi
3441 CC=$ac_cv_prog_CC
3442 if test -n "$CC"; then
3443   { echo "$as_me:$LINENO: result: $CC" >&5
3444 echo "${ECHO_T}$CC" >&6; }
3445 else
3446   { echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6; }
3448 fi
3449
3450
3451     test -n "$CC" && break
3452   done
3453 fi
3454 if test -z "$CC"; then
3455   ac_ct_CC=$CC
3456   for ac_prog in cl.exe
3457 do
3458   # Extract the first word of "$ac_prog", so it can be a program name with args.
3459 set dummy $ac_prog; ac_word=$2
3460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   if test -n "$ac_ct_CC"; then
3466   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471   IFS=$as_save_IFS
3472   test -z "$as_dir" && as_dir=.
3473   for ac_exec_ext in '' $ac_executable_extensions; do
3474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475     ac_cv_prog_ac_ct_CC="$ac_prog"
3476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480 done
3481 IFS=$as_save_IFS
3482
3483 fi
3484 fi
3485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3486 if test -n "$ac_ct_CC"; then
3487   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3488 echo "${ECHO_T}$ac_ct_CC" >&6; }
3489 else
3490   { echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6; }
3492 fi
3493
3494
3495   test -n "$ac_ct_CC" && break
3496 done
3497
3498   if test "x$ac_ct_CC" = x; then
3499     CC=""
3500   else
3501     case $cross_compiling:$ac_tool_warned in
3502 yes:)
3503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3504 whose name does not start with the host triplet.  If you think this
3505 configuration is useful to you, please write to autoconf@gnu.org." >&5
3506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3507 whose name does not start with the host triplet.  If you think this
3508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3509 ac_tool_warned=yes ;;
3510 esac
3511     CC=$ac_ct_CC
3512   fi
3513 fi
3514
3515 fi
3516
3517
3518 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3519 See \`config.log' for more details." >&5
3520 echo "$as_me: error: no acceptable C compiler found in \$PATH
3521 See \`config.log' for more details." >&2;}
3522    { (exit 1); exit 1; }; }
3523
3524 # Provide some information about the compiler.
3525 echo "$as_me:$LINENO: checking for C compiler version" >&5
3526 ac_compiler=`set X $ac_compile; echo $2`
3527 { (ac_try="$ac_compiler --version >&5"
3528 case "(($ac_try" in
3529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530   *) ac_try_echo=$ac_try;;
3531 esac
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533   (eval "$ac_compiler --version >&5") 2>&5
3534   ac_status=$?
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); }
3537 { (ac_try="$ac_compiler -v >&5"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543   (eval "$ac_compiler -v >&5") 2>&5
3544   ac_status=$?
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); }
3547 { (ac_try="$ac_compiler -V >&5"
3548 case "(($ac_try" in
3549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550   *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553   (eval "$ac_compiler -V >&5") 2>&5
3554   ac_status=$?
3555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556   (exit $ac_status); }
3557
3558 cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564
3565 int
3566 main ()
3567 {
3568
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 ac_clean_files_save=$ac_clean_files
3574 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3575 # Try to create an executable without -o first, disregard a.out.
3576 # It will help us diagnose broken compilers, and finding out an intuition
3577 # of exeext.
3578 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3579 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3580 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3581 #
3582 # List of possible output files, starting from the most likely.
3583 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3584 # only as a last resort.  b.out is created by i960 compilers.
3585 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3586 #
3587 # The IRIX 6 linker writes into existing files which may not be
3588 # executable, retaining their permissions.  Remove them first so a
3589 # subsequent execution test works.
3590 ac_rmfiles=
3591 for ac_file in $ac_files
3592 do
3593   case $ac_file in
3594     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3595     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3596   esac
3597 done
3598 rm -f $ac_rmfiles
3599
3600 if { (ac_try="$ac_link_default"
3601 case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606   (eval "$ac_link_default") 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); }; then
3610   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3611 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3612 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3613 # so that the user can short-circuit this test for compilers unknown to
3614 # Autoconf.
3615 for ac_file in $ac_files ''
3616 do
3617   test -f "$ac_file" || continue
3618   case $ac_file in
3619     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3620         ;;
3621     [ab].out )
3622         # We found the default executable, but exeext='' is most
3623         # certainly right.
3624         break;;
3625     *.* )
3626         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3627         then :; else
3628            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3629         fi
3630         # We set ac_cv_exeext here because the later test for it is not
3631         # safe: cross compilers may not add the suffix if given an `-o'
3632         # argument, so we may need to know it at that point already.
3633         # Even if this section looks crufty: it has the advantage of
3634         # actually working.
3635         break;;
3636     * )
3637         break;;
3638   esac
3639 done
3640 test "$ac_cv_exeext" = no && ac_cv_exeext=
3641
3642 else
3643   ac_file=''
3644 fi
3645
3646 { echo "$as_me:$LINENO: result: $ac_file" >&5
3647 echo "${ECHO_T}$ac_file" >&6; }
3648 if test -z "$ac_file"; then
3649   echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3651
3652 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3653 See \`config.log' for more details." >&5
3654 echo "$as_me: error: C compiler cannot create executables
3655 See \`config.log' for more details." >&2;}
3656    { (exit 77); exit 77; }; }
3657 fi
3658
3659 ac_exeext=$ac_cv_exeext
3660
3661 # Check that the compiler produces executables we can run.  If not, either
3662 # the compiler is broken, or we cross compile.
3663 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3664 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3665 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3666 # If not cross compiling, check that we can run a simple program.
3667 if test "$cross_compiling" != yes; then
3668   if { ac_try='./$ac_file'
3669   { (case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674   (eval "$ac_try") 2>&5
3675   ac_status=$?
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); }; }; then
3678     cross_compiling=no
3679   else
3680     if test "$cross_compiling" = maybe; then
3681         cross_compiling=yes
3682     else
3683         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3684 If you meant to cross compile, use \`--host'.
3685 See \`config.log' for more details." >&5
3686 echo "$as_me: error: cannot run C compiled programs.
3687 If you meant to cross compile, use \`--host'.
3688 See \`config.log' for more details." >&2;}
3689    { (exit 1); exit 1; }; }
3690     fi
3691   fi
3692 fi
3693 { echo "$as_me:$LINENO: result: yes" >&5
3694 echo "${ECHO_T}yes" >&6; }
3695
3696 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3697 ac_clean_files=$ac_clean_files_save
3698 # Check that the compiler produces executables we can run.  If not, either
3699 # the compiler is broken, or we cross compile.
3700 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3701 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3702 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3703 echo "${ECHO_T}$cross_compiling" >&6; }
3704
3705 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3706 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3707 if { (ac_try="$ac_link"
3708 case "(($ac_try" in
3709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710   *) ac_try_echo=$ac_try;;
3711 esac
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713   (eval "$ac_link") 2>&5
3714   ac_status=$?
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); }; then
3717   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3718 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3719 # work properly (i.e., refer to `conftest.exe'), while it won't with
3720 # `rm'.
3721 for ac_file in conftest.exe conftest conftest.*; do
3722   test -f "$ac_file" || continue
3723   case $ac_file in
3724     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3725     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3726           break;;
3727     * ) break;;
3728   esac
3729 done
3730 else
3731   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3732 See \`config.log' for more details." >&5
3733 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3734 See \`config.log' for more details." >&2;}
3735    { (exit 1); exit 1; }; }
3736 fi
3737
3738 rm -f conftest$ac_cv_exeext
3739 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3740 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3741
3742 rm -f conftest.$ac_ext
3743 EXEEXT=$ac_cv_exeext
3744 ac_exeext=$EXEEXT
3745 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3746 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3747 if test "${ac_cv_objext+set}" = set; then
3748   echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750   cat >conftest.$ac_ext <<_ACEOF
3751 /* confdefs.h.  */
3752 _ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h.  */
3756
3757 int
3758 main ()
3759 {
3760
3761   ;
3762   return 0;
3763 }
3764 _ACEOF
3765 rm -f conftest.o conftest.obj
3766 if { (ac_try="$ac_compile"
3767 case "(($ac_try" in
3768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769   *) ac_try_echo=$ac_try;;
3770 esac
3771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772   (eval "$ac_compile") 2>&5
3773   ac_status=$?
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); }; then
3776   for ac_file in conftest.o conftest.obj conftest.*; do
3777   test -f "$ac_file" || continue;
3778   case $ac_file in
3779     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3780     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3781        break;;
3782   esac
3783 done
3784 else
3785   echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3789 See \`config.log' for more details." >&5
3790 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3791 See \`config.log' for more details." >&2;}
3792    { (exit 1); exit 1; }; }
3793 fi
3794
3795 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3796 fi
3797 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3798 echo "${ECHO_T}$ac_cv_objext" >&6; }
3799 OBJEXT=$ac_cv_objext
3800 ac_objext=$OBJEXT
3801 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3802 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3803 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3804   echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806   cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h.  */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h.  */
3812
3813 int
3814 main ()
3815 {
3816 #ifndef __GNUC__
3817        choke me
3818 #endif
3819
3820   ;
3821   return 0;
3822 }
3823 _ACEOF
3824 rm -f conftest.$ac_objext
3825 if { (ac_try="$ac_compile"
3826 case "(($ac_try" in
3827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828   *) ac_try_echo=$ac_try;;
3829 esac
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831   (eval "$ac_compile") 2>conftest.er1
3832   ac_status=$?
3833   grep -v '^ *+' conftest.er1 >conftest.err
3834   rm -f conftest.er1
3835   cat conftest.err >&5
3836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837   (exit $ac_status); } && {
3838          test -z "$ac_c_werror_flag" ||
3839          test ! -s conftest.err
3840        } && test -s conftest.$ac_objext; then
3841   ac_compiler_gnu=yes
3842 else
3843   echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3845
3846         ac_compiler_gnu=no
3847 fi
3848
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3851
3852 fi
3853 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3854 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3855 GCC=`test $ac_compiler_gnu = yes && echo yes`
3856 ac_test_CFLAGS=${CFLAGS+set}
3857 ac_save_CFLAGS=$CFLAGS
3858 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3859 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3860 if test "${ac_cv_prog_cc_g+set}" = set; then
3861   echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863   ac_save_c_werror_flag=$ac_c_werror_flag
3864    ac_c_werror_flag=yes
3865    ac_cv_prog_cc_g=no
3866    CFLAGS="-g"
3867    cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h.  */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h.  */
3873
3874 int
3875 main ()
3876 {
3877
3878   ;
3879   return 0;
3880 }
3881 _ACEOF
3882 rm -f conftest.$ac_objext
3883 if { (ac_try="$ac_compile"
3884 case "(($ac_try" in
3885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886   *) ac_try_echo=$ac_try;;
3887 esac
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889   (eval "$ac_compile") 2>conftest.er1
3890   ac_status=$?
3891   grep -v '^ *+' conftest.er1 >conftest.err
3892   rm -f conftest.er1
3893   cat conftest.err >&5
3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); } && {
3896          test -z "$ac_c_werror_flag" ||
3897          test ! -s conftest.err
3898        } && test -s conftest.$ac_objext; then
3899   ac_cv_prog_cc_g=yes
3900 else
3901   echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3903
3904         CFLAGS=""
3905       cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h.  */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h.  */
3911
3912 int
3913 main ()
3914 {
3915
3916   ;
3917   return 0;
3918 }
3919 _ACEOF
3920 rm -f conftest.$ac_objext
3921 if { (ac_try="$ac_compile"
3922 case "(($ac_try" in
3923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924   *) ac_try_echo=$ac_try;;
3925 esac
3926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927   (eval "$ac_compile") 2>conftest.er1
3928   ac_status=$?
3929   grep -v '^ *+' conftest.er1 >conftest.err
3930   rm -f conftest.er1
3931   cat conftest.err >&5
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); } && {
3934          test -z "$ac_c_werror_flag" ||
3935          test ! -s conftest.err
3936        } && test -s conftest.$ac_objext; then
3937   :
3938 else
3939   echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942         ac_c_werror_flag=$ac_save_c_werror_flag
3943          CFLAGS="-g"
3944          cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h.  */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h.  */
3950
3951 int
3952 main ()
3953 {
3954
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959 rm -f conftest.$ac_objext
3960 if { (ac_try="$ac_compile"
3961 case "(($ac_try" in
3962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963   *) ac_try_echo=$ac_try;;
3964 esac
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966   (eval "$ac_compile") 2>conftest.er1
3967   ac_status=$?
3968   grep -v '^ *+' conftest.er1 >conftest.err
3969   rm -f conftest.er1
3970   cat conftest.err >&5
3971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); } && {
3973          test -z "$ac_c_werror_flag" ||
3974          test ! -s conftest.err
3975        } && test -s conftest.$ac_objext; then
3976   ac_cv_prog_cc_g=yes
3977 else
3978   echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981
3982 fi
3983
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 fi
3986
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 fi
3989
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991    ac_c_werror_flag=$ac_save_c_werror_flag
3992 fi
3993 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3994 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3995 if test "$ac_test_CFLAGS" = set; then
3996   CFLAGS=$ac_save_CFLAGS
3997 elif test $ac_cv_prog_cc_g = yes; then
3998   if test "$GCC" = yes; then
3999     CFLAGS="-g -O2"
4000   else
4001     CFLAGS="-g"
4002   fi
4003 else
4004   if test "$GCC" = yes; then
4005     CFLAGS="-O2"
4006   else
4007     CFLAGS=
4008   fi
4009 fi
4010 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4011 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4012 if test "${ac_cv_prog_cc_c89+set}" = set; then
4013   echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015   ac_cv_prog_cc_c89=no
4016 ac_save_CC=$CC
4017 cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h.  */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h.  */
4023 #include <stdarg.h>
4024 #include <stdio.h>
4025 #include <sys/types.h>
4026 #include <sys/stat.h>
4027 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4028 struct buf { int x; };
4029 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4030 static char *e (p, i)
4031      char **p;
4032      int i;
4033 {
4034   return p[i];
4035 }
4036 static char *f (char * (*g) (char **, int), char **p, ...)
4037 {
4038   char *s;
4039   va_list v;
4040   va_start (v,p);
4041   s = g (p, va_arg (v,int));
4042   va_end (v);
4043   return s;
4044 }
4045
4046 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4047    function prototypes and stuff, but not '\xHH' hex character constants.
4048    These don't provoke an error unfortunately, instead are silently treated
4049    as 'x'.  The following induces an error, until -std is added to get
4050    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4051    array size at least.  It's necessary to write '\x00'==0 to get something
4052    that's true only with -std.  */
4053 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4054
4055 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4056    inside strings and character constants.  */
4057 #define FOO(x) 'x'
4058 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4059
4060 int test (int i, double x);
4061 struct s1 {int (*f) (int a);};
4062 struct s2 {int (*f) (double a);};
4063 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4064 int argc;
4065 char **argv;
4066 int
4067 main ()
4068 {
4069 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4070   ;
4071   return 0;
4072 }
4073 _ACEOF
4074 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4075         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4076 do
4077   CC="$ac_save_CC $ac_arg"
4078   rm -f conftest.$ac_objext
4079 if { (ac_try="$ac_compile"
4080 case "(($ac_try" in
4081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082   *) ac_try_echo=$ac_try;;
4083 esac
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085   (eval "$ac_compile") 2>conftest.er1
4086   ac_status=$?
4087   grep -v '^ *+' conftest.er1 >conftest.err
4088   rm -f conftest.er1
4089   cat conftest.err >&5
4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); } && {
4092          test -z "$ac_c_werror_flag" ||
4093          test ! -s conftest.err
4094        } && test -s conftest.$ac_objext; then
4095   ac_cv_prog_cc_c89=$ac_arg
4096 else
4097   echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4099
4100
4101 fi
4102
4103 rm -f core conftest.err conftest.$ac_objext
4104   test "x$ac_cv_prog_cc_c89" != "xno" && break
4105 done
4106 rm -f conftest.$ac_ext
4107 CC=$ac_save_CC
4108
4109 fi
4110 # AC_CACHE_VAL
4111 case "x$ac_cv_prog_cc_c89" in
4112   x)
4113     { echo "$as_me:$LINENO: result: none needed" >&5
4114 echo "${ECHO_T}none needed" >&6; } ;;
4115   xno)
4116     { echo "$as_me:$LINENO: result: unsupported" >&5
4117 echo "${ECHO_T}unsupported" >&6; } ;;
4118   *)
4119     CC="$CC $ac_cv_prog_cc_c89"
4120     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4121 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4122 esac
4123
4124
4125 ac_ext=c
4126 ac_cpp='$CPP $CPPFLAGS'
4127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130
4131 ac_ext=cpp
4132 ac_cpp='$CXXCPP $CPPFLAGS'
4133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4136 if test -z "$CXX"; then
4137   if test -n "$CCC"; then
4138     CXX=$CCC
4139   else
4140     if test -n "$ac_tool_prefix"; then
4141   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4142   do
4143     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4147 if test "${ac_cv_prog_CXX+set}" = set; then
4148   echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150   if test -n "$CXX"; then
4151   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4152 else
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4155 do
4156   IFS=$as_save_IFS
4157   test -z "$as_dir" && as_dir=.
4158   for ac_exec_ext in '' $ac_executable_extensions; do
4159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4162     break 2
4163   fi
4164 done
4165 done
4166 IFS=$as_save_IFS
4167
4168 fi
4169 fi
4170 CXX=$ac_cv_prog_CXX
4171 if test -n "$CXX"; then
4172   { echo "$as_me:$LINENO: result: $CXX" >&5
4173 echo "${ECHO_T}$CXX" >&6; }
4174 else
4175   { echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6; }
4177 fi
4178
4179
4180     test -n "$CXX" && break
4181   done
4182 fi
4183 if test -z "$CXX"; then
4184   ac_ct_CXX=$CXX
4185   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4186 do
4187   # Extract the first word of "$ac_prog", so it can be a program name with args.
4188 set dummy $ac_prog; ac_word=$2
4189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4191 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4192   echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194   if test -n "$ac_ct_CXX"; then
4195   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200   IFS=$as_save_IFS
4201   test -z "$as_dir" && as_dir=.
4202   for ac_exec_ext in '' $ac_executable_extensions; do
4203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204     ac_cv_prog_ac_ct_CXX="$ac_prog"
4205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206     break 2
4207   fi
4208 done
4209 done
4210 IFS=$as_save_IFS
4211
4212 fi
4213 fi
4214 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4215 if test -n "$ac_ct_CXX"; then
4216   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4217 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4218 else
4219   { echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6; }
4221 fi
4222
4223
4224   test -n "$ac_ct_CXX" && break
4225 done
4226
4227   if test "x$ac_ct_CXX" = x; then
4228     CXX="g++"
4229   else
4230     case $cross_compiling:$ac_tool_warned in
4231 yes:)
4232 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4233 whose name does not start with the host triplet.  If you think this
4234 configuration is useful to you, please write to autoconf@gnu.org." >&5
4235 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4236 whose name does not start with the host triplet.  If you think this
4237 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4238 ac_tool_warned=yes ;;
4239 esac
4240     CXX=$ac_ct_CXX
4241   fi
4242 fi
4243
4244   fi
4245 fi
4246 # Provide some information about the compiler.
4247 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4248 ac_compiler=`set X $ac_compile; echo $2`
4249 { (ac_try="$ac_compiler --version >&5"
4250 case "(($ac_try" in
4251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252   *) ac_try_echo=$ac_try;;
4253 esac
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255   (eval "$ac_compiler --version >&5") 2>&5
4256   ac_status=$?
4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); }
4259 { (ac_try="$ac_compiler -v >&5"
4260 case "(($ac_try" in
4261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262   *) ac_try_echo=$ac_try;;
4263 esac
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265   (eval "$ac_compiler -v >&5") 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); }
4269 { (ac_try="$ac_compiler -V >&5"
4270 case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275   (eval "$ac_compiler -V >&5") 2>&5
4276   ac_status=$?
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); }
4279
4280 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4281 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4282 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4283   echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285   cat >conftest.$ac_ext <<_ACEOF
4286 /* confdefs.h.  */
4287 _ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h.  */
4291
4292 int
4293 main ()
4294 {
4295 #ifndef __GNUC__
4296        choke me
4297 #endif
4298
4299   ;
4300   return 0;
4301 }
4302 _ACEOF
4303 rm -f conftest.$ac_objext
4304 if { (ac_try="$ac_compile"
4305 case "(($ac_try" in
4306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307   *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310   (eval "$ac_compile") 2>conftest.er1
4311   ac_status=$?
4312   grep -v '^ *+' conftest.er1 >conftest.err
4313   rm -f conftest.er1
4314   cat conftest.err >&5
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); } && {
4317          test -z "$ac_cxx_werror_flag" ||
4318          test ! -s conftest.err
4319        } && test -s conftest.$ac_objext; then
4320   ac_compiler_gnu=yes
4321 else
4322   echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325         ac_compiler_gnu=no
4326 fi
4327
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4330
4331 fi
4332 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4333 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4334 GXX=`test $ac_compiler_gnu = yes && echo yes`
4335 ac_test_CXXFLAGS=${CXXFLAGS+set}
4336 ac_save_CXXFLAGS=$CXXFLAGS
4337 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4338 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4339 if test "${ac_cv_prog_cxx_g+set}" = set; then
4340   echo $ECHO_N "(cached) $ECHO_C" >&6
4341 else
4342   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4343    ac_cxx_werror_flag=yes
4344    ac_cv_prog_cxx_g=no
4345    CXXFLAGS="-g"
4346    cat >conftest.$ac_ext <<_ACEOF
4347 /* confdefs.h.  */
4348 _ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h.  */
4352
4353 int
4354 main ()
4355 {
4356
4357   ;
4358   return 0;
4359 }
4360 _ACEOF
4361 rm -f conftest.$ac_objext
4362 if { (ac_try="$ac_compile"
4363 case "(($ac_try" in
4364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365   *) ac_try_echo=$ac_try;;
4366 esac
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368   (eval "$ac_compile") 2>conftest.er1
4369   ac_status=$?
4370   grep -v '^ *+' conftest.er1 >conftest.err
4371   rm -f conftest.er1
4372   cat conftest.err >&5
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); } && {
4375          test -z "$ac_cxx_werror_flag" ||
4376          test ! -s conftest.err
4377        } && test -s conftest.$ac_objext; then
4378   ac_cv_prog_cxx_g=yes
4379 else
4380   echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4382
4383         CXXFLAGS=""
4384       cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h.  */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h.  */
4390
4391 int
4392 main ()
4393 {
4394
4395   ;
4396   return 0;
4397 }
4398 _ACEOF
4399 rm -f conftest.$ac_objext
4400 if { (ac_try="$ac_compile"
4401 case "(($ac_try" in
4402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403   *) ac_try_echo=$ac_try;;
4404 esac
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406   (eval "$ac_compile") 2>conftest.er1
4407   ac_status=$?
4408   grep -v '^ *+' conftest.er1 >conftest.err
4409   rm -f conftest.er1
4410   cat conftest.err >&5
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); } && {
4413          test -z "$ac_cxx_werror_flag" ||
4414          test ! -s conftest.err
4415        } && test -s conftest.$ac_objext; then
4416   :
4417 else
4418   echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4420
4421         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4422          CXXFLAGS="-g"
4423          cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h.  */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h.  */
4429
4430 int
4431 main ()
4432 {
4433
4434   ;
4435   return 0;
4436 }
4437 _ACEOF
4438 rm -f conftest.$ac_objext
4439 if { (ac_try="$ac_compile"
4440 case "(($ac_try" in
4441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442   *) ac_try_echo=$ac_try;;
4443 esac
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445   (eval "$ac_compile") 2>conftest.er1
4446   ac_status=$?
4447   grep -v '^ *+' conftest.er1 >conftest.err
4448   rm -f conftest.er1
4449   cat conftest.err >&5
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); } && {
4452          test -z "$ac_cxx_werror_flag" ||
4453          test ! -s conftest.err
4454        } && test -s conftest.$ac_objext; then
4455   ac_cv_prog_cxx_g=yes
4456 else
4457   echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4459
4460
4461 fi
4462
4463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464 fi
4465
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 fi
4468
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4471 fi
4472 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4473 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4474 if test "$ac_test_CXXFLAGS" = set; then
4475   CXXFLAGS=$ac_save_CXXFLAGS
4476 elif test $ac_cv_prog_cxx_g = yes; then
4477   if test "$GXX" = yes; then
4478     CXXFLAGS="-g -O2"
4479   else
4480     CXXFLAGS="-g"
4481   fi
4482 else
4483   if test "$GXX" = yes; then
4484     CXXFLAGS="-O2"
4485   else
4486     CXXFLAGS=
4487   fi
4488 fi
4489 ac_ext=c
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494
4495
4496 # We must set the default linker to the linker used by gcc for the correct
4497 # operation of libtool.  If LD is not defined and we are using gcc, try to
4498 # set the LD default to the ld used by gcc.
4499 if test -z "$LD"; then
4500   if test "$GCC" = yes; then
4501     case $build in
4502     *-*-mingw*)
4503       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4504     *)
4505       gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4506     esac
4507     case $gcc_prog_ld in
4508     # Accept absolute paths.
4509     [\\/]* | [A-Za-z]:[\\/]*)
4510       LD="$gcc_prog_ld" ;;
4511     esac
4512   fi
4513 fi
4514
4515
4516
4517
4518 if test -n "$ac_tool_prefix"; then
4519   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4520 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4523 if test "${ac_cv_prog_GNATBIND+set}" = set; then
4524   echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526   if test -n "$GNATBIND"; then
4527   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532   IFS=$as_save_IFS
4533   test -z "$as_dir" && as_dir=.
4534   for ac_exec_ext in '' $ac_executable_extensions; do
4535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538     break 2
4539   fi
4540 done
4541 done
4542 IFS=$as_save_IFS
4543
4544 fi
4545 fi
4546 GNATBIND=$ac_cv_prog_GNATBIND
4547 if test -n "$GNATBIND"; then
4548   { echo "$as_me:$LINENO: result: $GNATBIND" >&5
4549 echo "${ECHO_T}$GNATBIND" >&6; }
4550 else
4551   { echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6; }
4553 fi
4554
4555
4556 fi
4557 if test -z "$ac_cv_prog_GNATBIND"; then
4558   ac_ct_GNATBIND=$GNATBIND
4559   # Extract the first word of "gnatbind", so it can be a program name with args.
4560 set dummy gnatbind; ac_word=$2
4561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4563 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4564   echo $ECHO_N "(cached) $ECHO_C" >&6
4565 else
4566   if test -n "$ac_ct_GNATBIND"; then
4567   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4568 else
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4571 do
4572   IFS=$as_save_IFS
4573   test -z "$as_dir" && as_dir=.
4574   for ac_exec_ext in '' $ac_executable_extensions; do
4575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578     break 2
4579   fi
4580 done
4581 done
4582 IFS=$as_save_IFS
4583
4584 fi
4585 fi
4586 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4587 if test -n "$ac_ct_GNATBIND"; then
4588   { echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4589 echo "${ECHO_T}$ac_ct_GNATBIND" >&6; }
4590 else
4591   { echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6; }
4593 fi
4594
4595   if test "x$ac_ct_GNATBIND" = x; then
4596     GNATBIND="no"
4597   else
4598     case $cross_compiling:$ac_tool_warned in
4599 yes:)
4600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4601 whose name does not start with the host triplet.  If you think this
4602 configuration is useful to you, please write to autoconf@gnu.org." >&5
4603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4604 whose name does not start with the host triplet.  If you think this
4605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4606 ac_tool_warned=yes ;;
4607 esac
4608     GNATBIND=$ac_ct_GNATBIND
4609   fi
4610 else
4611   GNATBIND="$ac_cv_prog_GNATBIND"
4612 fi
4613
4614 if test -n "$ac_tool_prefix"; then
4615   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4616 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622   if test -n "$GNATMAKE"; then
4623   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4627 do
4628   IFS=$as_save_IFS
4629   test -z "$as_dir" && as_dir=.
4630   for ac_exec_ext in '' $ac_executable_extensions; do
4631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4632     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634     break 2
4635   fi
4636 done
4637 done
4638 IFS=$as_save_IFS
4639
4640 fi
4641 fi
4642 GNATMAKE=$ac_cv_prog_GNATMAKE
4643 if test -n "$GNATMAKE"; then
4644   { echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4645 echo "${ECHO_T}$GNATMAKE" >&6; }
4646 else
4647   { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4649 fi
4650
4651
4652 fi
4653 if test -z "$ac_cv_prog_GNATMAKE"; then
4654   ac_ct_GNATMAKE=$GNATMAKE
4655   # Extract the first word of "gnatmake", so it can be a program name with args.
4656 set dummy gnatmake; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   if test -n "$ac_ct_GNATMAKE"; then
4663   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668   IFS=$as_save_IFS
4669   test -z "$as_dir" && as_dir=.
4670   for ac_exec_ext in '' $ac_executable_extensions; do
4671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674     break 2
4675   fi
4676 done
4677 done
4678 IFS=$as_save_IFS
4679
4680 fi
4681 fi
4682 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4683 if test -n "$ac_ct_GNATMAKE"; then
4684   { echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4685 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6; }
4686 else
4687   { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4689 fi
4690
4691   if test "x$ac_ct_GNATMAKE" = x; then
4692     GNATMAKE="no"
4693   else
4694     case $cross_compiling:$ac_tool_warned in
4695 yes:)
4696 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4697 whose name does not start with the host triplet.  If you think this
4698 configuration is useful to you, please write to autoconf@gnu.org." >&5
4699 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4700 whose name does not start with the host triplet.  If you think this
4701 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4702 ac_tool_warned=yes ;;
4703 esac
4704     GNATMAKE=$ac_ct_GNATMAKE
4705   fi
4706 else
4707   GNATMAKE="$ac_cv_prog_GNATMAKE"
4708 fi
4709
4710 { echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4711 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6; }
4712 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4713   echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715   cat >conftest.adb <<EOF
4716 procedure conftest is begin null; end conftest;
4717 EOF
4718 acx_cv_cc_gcc_supports_ada=no
4719 # There is a bug in old released versions of GCC which causes the
4720 # driver to exit successfully when the appropriate language module
4721 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4722 # Therefore we must check for the error message as well as an
4723 # unsuccessful exit.
4724 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4725 # given a .adb file, but produce no object file.  So we must check
4726 # if an object file was really produced to guard against this.
4727 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4728 if test x"$errors" = x && test -f conftest.$ac_objext; then
4729   acx_cv_cc_gcc_supports_ada=yes
4730 fi
4731 rm -f conftest.*
4732 fi
4733 { echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4734 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6; }
4735
4736 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4737   have_gnat=yes
4738 else
4739   have_gnat=no
4740 fi
4741
4742 { echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4743 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6; }
4744 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747    echo abfoo >t1
4748   echo cdfoo >t2
4749   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4750   if cmp t1 t2 2 2 > /dev/null 2>&1; then
4751     if cmp t1 t2 1 1 > /dev/null 2>&1; then
4752       :
4753     else
4754       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4755     fi
4756   fi
4757   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4758     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4759       :
4760     else
4761       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4762     fi
4763   fi
4764   rm t1 t2
4765
4766 fi
4767 { echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4768 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6; }
4769 do_compare="$gcc_cv_prog_cmp_skip"
4770
4771
4772
4773 # Check for GMP and MPFR
4774 gmplibs="-lmpfr -lgmp"
4775 gmpinc=
4776 have_gmp=no
4777
4778 # Specify a location for mpfr
4779 # check for this first so it ends up on the link line before gmp.
4780
4781 # Check whether --with-mpfr-dir was given.
4782 if test "${with_mpfr_dir+set}" = set; then
4783   withval=$with_mpfr_dir; { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4784 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4785 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4786 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4787    { (exit 1); exit 1; }; }
4788 fi
4789
4790
4791
4792 # Check whether --with-mpfr was given.
4793 if test "${with_mpfr+set}" = set; then
4794   withval=$with_mpfr;
4795 fi
4796
4797
4798 # Check whether --with-mpfr_include was given.
4799 if test "${with_mpfr_include+set}" = set; then
4800   withval=$with_mpfr_include;
4801 fi
4802
4803
4804 # Check whether --with-mpfr_lib was given.
4805 if test "${with_mpfr_lib+set}" = set; then
4806   withval=$with_mpfr_lib;
4807 fi
4808
4809
4810 if test "x$with_mpfr" != x; then
4811   gmplibs="-L$with_mpfr/lib $gmplibs"
4812   gmpinc="-I$with_mpfr/include"
4813 fi
4814 if test "x$with_mpfr_include" != x; then
4815   gmpinc="-I$with_mpfr_include"
4816 fi
4817 if test "x$with_mpfr_lib" != x; then
4818   gmplibs="-L$with_mpfr_lib $gmplibs"
4819 fi
4820 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4821   gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4822   gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4823   # Do not test the mpfr version.  Assume that it is sufficient, since
4824   # it is in the source tree, and the library has not been built yet
4825   # but it would be included on the link line in the version check below
4826   # hence making the test fail.
4827   have_gmp=yes
4828 fi
4829
4830 # Specify a location for gmp
4831
4832 # Check whether --with-gmp-dir was given.
4833 if test "${with_gmp_dir+set}" = set; then
4834   withval=$with_gmp_dir; { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4835 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4836 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4837 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4838    { (exit 1); exit 1; }; }
4839 fi
4840
4841
4842
4843 # Check whether --with-gmp was given.
4844 if test "${with_gmp+set}" = set; then
4845   withval=$with_gmp;
4846 fi
4847
4848
4849 # Check whether --with-gmp_include was given.
4850 if test "${with_gmp_include+set}" = set; then
4851   withval=$with_gmp_include;
4852 fi
4853
4854
4855 # Check whether --with-gmp_lib was given.
4856 if test "${with_gmp_lib+set}" = set; then
4857   withval=$with_gmp_lib;
4858 fi
4859
4860
4861
4862 if test "x$with_gmp" != x; then
4863   gmplibs="-L$with_gmp/lib $gmplibs"
4864   gmpinc="-I$with_gmp/include $gmpinc"
4865 fi
4866 if test "x$with_gmp_include" != x; then
4867   gmpinc="-I$with_gmp_include $gmpinc"
4868 fi
4869 if test "x$with_gmp_lib" != x; then
4870   gmplibs="-L$with_gmp_lib $gmplibs"
4871 fi
4872 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4873   gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4874   gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4875   # Do not test the gmp version.  Assume that it is sufficient, since
4876   # it is in the source tree, and the library has not been built yet
4877   # but it would be included on the link line in the version check below
4878   # hence making the test fail.
4879   have_gmp=yes
4880 fi
4881
4882 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4883   have_gmp=yes
4884   saved_CFLAGS="$CFLAGS"
4885   CFLAGS="$CFLAGS $gmpinc"
4886   # Check GMP actually works
4887   { echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4888 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6; }
4889
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h.  */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h.  */
4896 #include "gmp.h"
4897 int
4898 main ()
4899 {
4900
4901   #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4902   choke me
4903   #endif
4904
4905   ;
4906   return 0;
4907 }
4908 _ACEOF
4909 rm -f conftest.$ac_objext
4910 if { (ac_try="$ac_compile"
4911 case "(($ac_try" in
4912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913   *) ac_try_echo=$ac_try;;
4914 esac
4915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916   (eval "$ac_compile") 2>conftest.er1
4917   ac_status=$?
4918   grep -v '^ *+' conftest.er1 >conftest.err
4919   rm -f conftest.er1
4920   cat conftest.err >&5
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); } && {
4923          test -z "$ac_c_werror_flag" ||
4924          test ! -s conftest.err
4925        } && test -s conftest.$ac_objext; then
4926   { echo "$as_me:$LINENO: result: yes" >&5
4927 echo "${ECHO_T}yes" >&6; }
4928 else
4929   echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932         { echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6; }; have_gmp=no
4934 fi
4935
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937
4938   if test x"$have_gmp" = xyes; then
4939     saved_LIBS="$LIBS"
4940     LIBS="$LIBS $gmplibs"
4941         { echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4942 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6; }
4943     cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h.  */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h.  */
4949 #include <gmp.h>
4950     #include <mpfr.h>
4951 int
4952 main ()
4953 {
4954
4955     #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4956     choke me
4957     #endif
4958     mpfr_t n;
4959     mpfr_t x;
4960     int t;
4961     mpfr_init (n);
4962     mpfr_init (x);
4963     mpfr_atan2 (n, n, x, GMP_RNDN);
4964     mpfr_erfc (n, x, GMP_RNDN);
4965     mpfr_subnormalize (x, t, GMP_RNDN);
4966
4967   ;
4968   return 0;
4969 }
4970 _ACEOF
4971 rm -f conftest.$ac_objext conftest$ac_exeext
4972 if { (ac_try="$ac_link"
4973 case "(($ac_try" in
4974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975   *) ac_try_echo=$ac_try;;
4976 esac
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978   (eval "$ac_link") 2>conftest.er1
4979   ac_status=$?
4980   grep -v '^ *+' conftest.er1 >conftest.err
4981   rm -f conftest.er1
4982   cat conftest.err >&5
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); } && {
4985          test -z "$ac_c_werror_flag" ||
4986          test ! -s conftest.err
4987        } && test -s conftest$ac_exeext &&
4988        $as_test_x conftest$ac_exeext; then
4989   cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h.  */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h.  */
4995 #include <gmp.h>
4996     #include <mpfr.h>
4997 int
4998 main ()
4999 {
5000
5001     #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
5002     choke me
5003     #endif
5004     mpfr_t n; mpfr_init(n);
5005
5006   ;
5007   return 0;
5008 }
5009 _ACEOF
5010 rm -f conftest.$ac_objext conftest$ac_exeext
5011 if { (ac_try="$ac_link"
5012 case "(($ac_try" in
5013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014   *) ac_try_echo=$ac_try;;
5015 esac
5016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017   (eval "$ac_link") 2>conftest.er1
5018   ac_status=$?
5019   grep -v '^ *+' conftest.er1 >conftest.err
5020   rm -f conftest.er1
5021   cat conftest.err >&5
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); } && {
5024          test -z "$ac_c_werror_flag" ||
5025          test ! -s conftest.err
5026        } && test -s conftest$ac_exeext &&
5027        $as_test_x conftest$ac_exeext; then
5028   { echo "$as_me:$LINENO: result: yes" >&5
5029 echo "${ECHO_T}yes" >&6; }
5030 else
5031   echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5033
5034         { echo "$as_me:$LINENO: result: buggy but acceptable" >&5
5035 echo "${ECHO_T}buggy but acceptable" >&6; }
5036 fi
5037
5038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5039       conftest$ac_exeext conftest.$ac_ext
5040 else
5041   echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5043
5044         { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }; have_gmp=no
5046 fi
5047
5048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5049       conftest$ac_exeext conftest.$ac_ext
5050       LIBS="$saved_LIBS"
5051   fi
5052   CFLAGS="$saved_CFLAGS"
5053
5054   if test x$have_gmp != xyes; then
5055     { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
5056 Try the --with-gmp and/or --with-mpfr options to specify their locations.
5057 Copies of these libraries' source code can be found at their respective
5058 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5059 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5060 If you obtained GMP and/or MPFR from a vendor distribution package, make
5061 sure that you have installed both the libraries and the header files.
5062 They may be located in separate packages." >&5
5063 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
5064 Try the --with-gmp and/or --with-mpfr options to specify their locations.
5065 Copies of these libraries' source code can be found at their respective
5066 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5067 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5068 If you obtained GMP and/or MPFR from a vendor distribution package, make
5069 sure that you have installed both the libraries and the header files.
5070 They may be located in separate packages." >&2;}
5071    { (exit 1); exit 1; }; }
5072   fi
5073 fi
5074
5075 # Flags needed for both GMP and/or MPFR
5076
5077
5078
5079 # By default, C is the only stage 1 language.
5080 stage1_languages=,c,
5081
5082 # Figure out what language subdirectories are present.
5083 # Look if the user specified --enable-languages="..."; if not, use
5084 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5085 # go away some day.
5086 # NB:  embedded tabs in this IF block -- do not untabify
5087 if test -d ${srcdir}/gcc; then
5088   if test x"${enable_languages+set}" != xset; then
5089     if test x"${LANGUAGES+set}" = xset; then
5090       enable_languages="${LANGUAGES}"
5091         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5092     else
5093       enable_languages=all
5094     fi
5095   else
5096     if test x"${enable_languages}" = x ||
5097        test x"${enable_languages}" = xyes;
5098        then
5099       echo configure.in: --enable-languages needs at least one language argument 1>&2
5100       exit 1
5101     fi
5102   fi
5103   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
5104
5105   # 'f95' is the old name for the 'fortran' language. We issue a warning
5106   # and make the substitution.
5107   case ,${enable_languages}, in
5108     *,f95,*)
5109       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5110       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5111       ;;
5112   esac
5113
5114   # First scan to see if an enabled language requires some other language.
5115   # We assume that a given config-lang.in will list all the language
5116   # front ends it requires, even if some are required indirectly.
5117   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5118     case ${lang_frag} in
5119       ..) ;;
5120       # The odd quoting in the next line works around
5121       # an apparent bug in bash 1.12 on linux.
5122       ${srcdir}/gcc/[*]/config-lang.in) ;;
5123       *)
5124         # From the config-lang.in, get $language, $lang_requires
5125         language=
5126         lang_requires=
5127         . ${lang_frag}
5128         for other in ${lang_requires} ; do
5129           case ,${enable_languages}, in
5130             *,$other,*) ;;
5131             *,all,*) ;;
5132             *,$language,*)
5133               echo " \`$other' language required by \`$language'; enabling" 1>&2
5134               enable_languages="${enable_languages},${other}"
5135               ;;
5136           esac
5137         done
5138         ;;
5139     esac
5140   done
5141
5142   new_enable_languages=,c,
5143   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
5144   potential_languages=,c,
5145
5146   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5147     case ${lang_frag} in
5148       ..) ;;
5149       # The odd quoting in the next line works around
5150       # an apparent bug in bash 1.12 on linux.
5151       ${srcdir}/gcc/[*]/config-lang.in) ;;
5152       *)
5153         # From the config-lang.in, get $language, $target_libs,
5154         # $lang_dirs, $boot_language, and $build_by_default
5155         language=
5156         target_libs=
5157         lang_dirs=
5158         subdir_requires=
5159         boot_language=no
5160         build_by_default=yes
5161         . ${lang_frag}
5162         if test x${language} = x; then
5163           echo "${lang_frag} doesn't set \$language." 1>&2
5164           exit 1
5165         fi
5166
5167         case ,${enable_languages}, in
5168           *,${language},*)
5169             # Language was explicitly selected; include it.
5170             add_this_lang=yes
5171             ;;
5172           *,all,*)
5173             # 'all' was selected, select it if it is a default language
5174             add_this_lang=${build_by_default}
5175             ;;
5176           *)
5177             add_this_lang=no
5178             ;;
5179         esac
5180
5181         # Disable languages that need other directories if these aren't available.
5182         for i in $subdir_requires; do
5183           test -f "$srcdir/gcc/$i/config-lang.in" && continue
5184           case ,${enable_languages}, in
5185             *,${language},*)
5186               # Specifically requested language; tell them.
5187               { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5188 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5189    { (exit 1); exit 1; }; }
5190               ;;
5191             *)
5192               # Silently disable.
5193               add_this_lang=unsupported
5194               ;;
5195           esac
5196         done
5197
5198         # Disable Ada if no preexisting GNAT is available.
5199         case ,${enable_languages},:${language}:${have_gnat} in
5200           *,${language},*:ada:no)
5201             # Specifically requested language; tell them.
5202             { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5203 echo "$as_me: error: GNAT is required to build $language" >&2;}
5204    { (exit 1); exit 1; }; }
5205             ;;
5206           *:ada:no)
5207             # Silently disable.
5208             add_this_lang=unsupported
5209             ;;
5210         esac
5211
5212         # Disable a language that is unsupported by the target.
5213         case " $unsupported_languages " in
5214           *" $language "*)
5215             add_this_lang=unsupported
5216             ;;
5217         esac
5218
5219         case $add_this_lang in
5220           unsupported)
5221             # Remove language-dependent dirs.
5222             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5223             ;;
5224           no)
5225             # Remove language-dependent dirs; still show language as supported.
5226             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5227             potential_languages="${potential_languages}${language},"
5228             ;;
5229           yes)
5230             new_enable_languages="${new_enable_languages}${language},"
5231             potential_languages="${potential_languages}${language},"
5232             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5233             case ${boot_language} in
5234               yes)
5235                 # Add to (comma-separated) list of stage 1 languages.
5236                 stage1_languages="${stage1_languages}${language},"
5237                 ;;
5238             esac
5239             ;;
5240         esac
5241         ;;
5242     esac
5243   done
5244
5245   # Check whether --enable-stage1-languages was given.
5246 if test "${enable_stage1_languages+set}" = set; then
5247   enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
5248     ,no,|,,)
5249       # Set it to something that will have no effect in the loop below
5250       enable_stage1_languages=c ;;
5251     ,yes,)
5252       enable_stage1_languages=`echo $new_enable_languages | \
5253         sed -e "s/^,//" -e "s/,$//" ` ;;
5254     *,all,*)
5255       enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5256         sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5257   esac
5258
5259   # Add "good" languages from enable_stage1_languages to stage1_languages,
5260   # while "bad" languages go in missing_languages.  Leave no duplicates.
5261   for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5262     case $potential_languages in
5263       *,$i,*)
5264         case $stage1_languages in
5265           *,$i,*) ;;
5266           *) stage1_languages="$stage1_languages$i," ;;
5267         esac ;;
5268       *)
5269         case $missing_languages in
5270           *,$i,*) ;;
5271           *) missing_languages="$missing_languages$i," ;;
5272         esac ;;
5273      esac
5274   done
5275 fi
5276
5277
5278   # Remove leading/trailing commas that were added for simplicity
5279   potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
5280   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
5281   stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5282   new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5283
5284   if test "x$missing_languages" != x; then
5285     { { echo "$as_me:$LINENO: error:
5286 The following requested languages could not be built: ${missing_languages}
5287 Supported languages are: ${potential_languages}" >&5
5288 echo "$as_me: error:
5289 The following requested languages could not be built: ${missing_languages}
5290 Supported languages are: ${potential_languages}" >&2;}
5291    { (exit 1); exit 1; }; }
5292   fi
5293   if test "x$new_enable_languages" != "x$enable_languages"; then
5294     echo The following languages will be built: ${new_enable_languages}
5295     enable_languages="$new_enable_languages"
5296   fi
5297
5298
5299   ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5300 fi
5301
5302 # Handle --disable-<component> generically.
5303 for dir in $configdirs $build_configdirs $target_configdirs ; do
5304   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5305   if eval test x\${enable_${dirname}} "=" xno ; then
5306     noconfigdirs="$noconfigdirs $dir"
5307   fi
5308 done
5309
5310 # Check for Boehm's garbage collector
5311 # Check whether --enable-objc-gc was given.
5312 if test "${enable_objc_gc+set}" = set; then
5313   enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5314   *,objc,*:*:yes:*target-boehm-gc*)
5315     { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5316 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5317    { (exit 1); exit 1; }; }
5318     ;;
5319 esac
5320 fi
5321
5322
5323 # Make sure we only build Boehm's garbage collector if required.
5324 case ,${enable_languages},:${enable_objc_gc} in
5325   *,objc,*:yes)
5326     # Keep target-boehm-gc if requested for Objective-C.
5327     ;;
5328   *)
5329     # Otherwise remove target-boehm-gc depending on target-libjava.
5330     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5331       noconfigdirs="$noconfigdirs target-boehm-gc"
5332     fi
5333     ;;
5334 esac
5335
5336 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5337 # $build_configdirs and $target_configdirs.
5338 # If we have the source for $noconfigdirs entries, add them to $notsupp.
5339
5340 notsupp=""
5341 for dir in . $skipdirs $noconfigdirs ; do
5342   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5343   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5344     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5345     if test -r $srcdir/$dirname/configure ; then
5346       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5347         true
5348       else
5349         notsupp="$notsupp $dir"
5350       fi
5351     fi
5352   fi
5353   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5354     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5355     if test -r $srcdir/$dirname/configure ; then
5356       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5357         true
5358       else
5359         notsupp="$notsupp $dir"
5360       fi
5361     fi
5362   fi
5363   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5364     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5365     if test -r $srcdir/$dirname/configure ; then
5366       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5367         true
5368       else
5369         notsupp="$notsupp $dir"
5370       fi
5371     fi
5372   fi
5373 done
5374
5375 # Sometimes the tools are distributed with libiberty but with no other
5376 # libraries.  In that case, we don't want to build target-libiberty.
5377 # Don't let libgcc imply libiberty either.
5378 if test -n "${target_configdirs}" ; then
5379   libgcc=
5380   others=
5381   for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5382     if test "$i" = "libgcc"; then
5383       libgcc=target-libgcc
5384     elif test "$i" != "libiberty" ; then
5385       if test -r $srcdir/$i/configure ; then
5386         others=yes;
5387         break;
5388       fi
5389     fi
5390   done
5391   if test -z "${others}" ; then
5392     target_configdirs=$libgcc
5393   fi
5394 fi
5395
5396 # Quietly strip out all directories which aren't configurable in this tree.
5397 # This relies on all configurable subdirectories being autoconfiscated, which
5398 # is now the case.
5399 build_configdirs_all="$build_configdirs"
5400 build_configdirs=
5401 for i in ${build_configdirs_all} ; do
5402   j=`echo $i | sed -e s/build-//g`
5403   if test -f ${srcdir}/$j/configure ; then
5404     build_configdirs="${build_configdirs} $i"
5405   fi
5406 done
5407
5408 configdirs_all="$configdirs"
5409 configdirs=
5410 for i in ${configdirs_all} ; do
5411   if test -f ${srcdir}/$i/configure ; then
5412     configdirs="${configdirs} $i"
5413   fi
5414 done
5415
5416 target_configdirs_all="$target_configdirs"
5417 target_configdirs=
5418 for i in ${target_configdirs_all} ; do
5419   j=`echo $i | sed -e s/target-//g`
5420   if test -f ${srcdir}/$j/configure ; then
5421     target_configdirs="${target_configdirs} $i"
5422   fi
5423 done
5424
5425 # Produce a warning message for the subdirs we can't configure.
5426 # This isn't especially interesting in the Cygnus tree, but in the individual
5427 # FSF releases, it's important to let people know when their machine isn't
5428 # supported by the one or two programs in a package.
5429
5430 if test -n "${notsupp}" && test -z "${norecursion}" ; then
5431   # If $appdirs is non-empty, at least one of those directories must still
5432   # be configured, or we error out.  (E.g., if the gas release supports a
5433   # specified target in some subdirs but not the gas subdir, we shouldn't
5434   # pretend that all is well.)
5435   if test -n "$appdirs" ; then
5436     for dir in $appdirs ; do
5437       if test -r $dir/Makefile.in ; then
5438         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5439           appdirs=""
5440           break
5441         fi
5442         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5443           appdirs=""
5444           break
5445         fi
5446       fi
5447     done
5448     if test -n "$appdirs" ; then
5449       echo "*** This configuration is not supported by this package." 1>&2
5450       exit 1
5451     fi
5452   fi
5453   # Okay, some application will build, or we don't care to check.  Still
5454   # notify of subdirs not getting built.
5455   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5456   echo "    ${notsupp}" 1>&2
5457   echo "    (Any other directories should still work fine.)" 1>&2
5458 fi
5459
5460 case "$host" in
5461   *msdosdjgpp*)
5462     enable_gdbtk=no ;;
5463 esac
5464
5465 # To find our prefix, in gcc_cv_tool_prefix.
5466
5467 # The user is always right.
5468 if test "${PATH_SEPARATOR+set}" != set; then
5469   echo "#! /bin/sh" >conf$$.sh
5470   echo  "exit 0"   >>conf$$.sh
5471   chmod +x conf$$.sh
5472   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5473     PATH_SEPARATOR=';'
5474   else
5475     PATH_SEPARATOR=:
5476   fi
5477   rm -f conf$$.sh
5478 fi
5479
5480
5481
5482 if test "x$exec_prefix" = xNONE; then
5483         if test "x$prefix" = xNONE; then
5484                 gcc_cv_tool_prefix=$ac_default_prefix
5485         else
5486                 gcc_cv_tool_prefix=$prefix
5487         fi
5488 else
5489         gcc_cv_tool_prefix=$exec_prefix
5490 fi
5491
5492 # If there is no compiler in the tree, use the PATH only.  In any
5493 # case, if there is no compiler in the tree nobody should use
5494 # AS_FOR_TARGET and LD_FOR_TARGET.
5495 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5496     gcc_version=`cat $srcdir/gcc/BASE-VER`
5497     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5498     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5499     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5500     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5501     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5502     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5503 else
5504     gcc_cv_tool_dirs=
5505 fi
5506
5507 if test x$build = x$target && test -n "$md_exec_prefix"; then
5508         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5509 fi
5510
5511
5512
5513 copy_dirs=
5514
5515
5516 # Check whether --with-build-sysroot was given.
5517 if test "${with_build_sysroot+set}" = set; then
5518   withval=$with_build_sysroot; if test x"$withval" != x ; then
5519      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5520    fi
5521 else
5522   SYSROOT_CFLAGS_FOR_TARGET=
5523 fi
5524
5525
5526
5527 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
5528 # the named directory are copied to $(tooldir)/sys-include.
5529 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5530   if test x${is_cross_compiler} = xno ; then
5531     echo 1>&2 '***' --with-headers is only supported when cross compiling
5532     exit 1
5533   fi
5534   if test x"${with_headers}" != xyes ; then
5535     x=${gcc_cv_tool_prefix}
5536     copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5537   fi
5538 fi
5539
5540 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
5541 # the name directories are copied to $(tooldir)/lib.  Multiple directories
5542 # are permitted.
5543 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5544   if test x${is_cross_compiler} = xno ; then
5545     echo 1>&2 '***' --with-libs is only supported when cross compiling
5546     exit 1
5547   fi
5548   if test x"${with_libs}" != xyes ; then
5549     # Copy the libraries in reverse order, so that files in the first named
5550     # library override files in subsequent libraries.
5551     x=${gcc_cv_tool_prefix}
5552     for l in ${with_libs}; do
5553       copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5554     done
5555   fi
5556 fi
5557
5558 # Set with_gnu_as and with_gnu_ld as appropriate.
5559 #
5560 # This is done by determining whether or not the appropriate directory
5561 # is available, and by checking whether or not specific configurations
5562 # have requested that this magic not happen.
5563 #
5564 # The command line options always override the explicit settings in
5565 # configure.in, and the settings in configure.in override this magic.
5566 #
5567 # If the default for a toolchain is to use GNU as and ld, and you don't
5568 # want to do that, then you should use the --without-gnu-as and
5569 # --without-gnu-ld options for the configure script.
5570
5571 if test x${use_gnu_as} = x &&
5572    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5573   with_gnu_as=yes
5574   extra_host_args="$extra_host_args --with-gnu-as"
5575 fi
5576
5577 if test x${use_gnu_ld} = x &&
5578    echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5579   with_gnu_ld=yes
5580   extra_host_args="$extra_host_args --with-gnu-ld"
5581 fi
5582
5583 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5584 # can detect this case.
5585
5586 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5587   with_newlib=yes
5588   extra_host_args="$extra_host_args --with-newlib"
5589 fi
5590
5591 # Handle ${copy_dirs}
5592 set fnord ${copy_dirs}
5593 shift
5594 while test $# != 0 ; do
5595   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5596     :
5597   else
5598     echo Copying $1 to $2
5599
5600     # Use the install script to create the directory and all required
5601     # parent directories.
5602     if test -d $2 ; then
5603       :
5604     else
5605       echo >config.temp
5606       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5607     fi
5608
5609     # Copy the directory, assuming we have tar.
5610     # FIXME: Should we use B in the second tar?  Not all systems support it.
5611     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5612
5613     # It is the responsibility of the user to correctly adjust all
5614     # symlinks.  If somebody can figure out how to handle them correctly
5615     # here, feel free to add the code.
5616
5617     echo $1 > $2/COPIED
5618   fi
5619   shift; shift
5620 done
5621
5622 # Determine a target-dependent exec_prefix that the installed
5623 # gcc will search in.  Keep this list sorted by triplet, with
5624 # the *-*-osname triplets last.
5625 md_exec_prefix=
5626 case "${target}" in
5627   alpha*-*-*vms*)
5628     md_exec_prefix=/gnu/lib/gcc-lib
5629     ;;
5630   i3456786-pc-msdosdjgpp*)
5631     md_exec_prefix=/dev/env/DJDIR/bin
5632     ;;
5633   i3456786-*-sco3.2v5*)
5634     if test $with_gnu_as = yes; then
5635       md_exec_prefix=/usr/gnu/bin
5636     else
5637       md_exec_prefix=/usr/ccs/bin/elf
5638     fi
5639     ;;
5640
5641   mn10300-*-* | \
5642   powerpc-*-chorusos* | \
5643   powerpc*-*-eabi* | \
5644   powerpc*-*-sysv* | \
5645   powerpc*-*-kaos* | \
5646   s390x-ibm-tpf*)
5647     md_exec_prefix=/usr/ccs/bin
5648     ;;
5649   sparc64-*-elf*)
5650     ;;
5651   v850*-*-*)
5652     md_exec_prefix=/usr/ccs/bin
5653     ;;
5654   xtensa-*-elf*)
5655     ;;
5656
5657   *-*-beos* | \
5658   *-*-elf* | \
5659   *-*-hpux* | \
5660   *-*-netware* | \
5661   *-*-nto-qnx* | \
5662   *-*-rtems* | \
5663   *-*-solaris2* | \
5664   *-*-sysv45* | \
5665   *-*-vxworks* | \
5666   *-wrs-windiss)
5667     md_exec_prefix=/usr/ccs/bin
5668     ;;
5669 esac
5670
5671 extra_arflags_for_target=
5672 extra_nmflags_for_target=
5673 extra_ranlibflags_for_target=
5674 target_makefile_frag=/dev/null
5675 case "${target}" in
5676   mep*-*-*)
5677     target_makefile_frag="config/mt-mep"
5678     ;;
5679   spu-*-*)
5680     target_makefile_frag="config/mt-spu"
5681     ;;
5682   *-*-netware*)
5683     target_makefile_frag="config/mt-netware"
5684     ;;
5685   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5686     target_makefile_frag="config/mt-gnu"
5687     ;;
5688   *-*-aix4.[3456789]* | *-*-aix[56789].*)
5689     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5690     # commands to handle both 32-bit and 64-bit objects.  These flags are
5691     # harmless if we're using GNU nm or ar.
5692     extra_arflags_for_target=" -X32_64"
5693     extra_nmflags_for_target=" -B -X32_64"
5694     ;;
5695   *-*-darwin*)
5696     # ranlib from Darwin requires the -c flag to look at common symbols.
5697     extra_ranlibflags_for_target=" -c"
5698     ;;
5699   mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5700     target_makefile_frag="config/mt-wince"
5701     ;;
5702 esac
5703
5704 alphaieee_frag=/dev/null
5705 case $target in
5706   alpha*-*-*)
5707     # This just makes sure to use the -mieee option to build target libs.
5708     # This should probably be set individually by each library.
5709     alphaieee_frag="config/mt-alphaieee"
5710     ;;
5711 esac
5712
5713 # If --enable-target-optspace always use -Os instead of -O2 to build
5714 # the target libraries, similarly if it is not specified, use -Os
5715 # on selected platforms.
5716 ospace_frag=/dev/null
5717 case "${enable_target_optspace}:${target}" in
5718   yes:*)
5719     ospace_frag="config/mt-ospace"
5720     ;;
5721   :d30v-*)
5722     ospace_frag="config/mt-d30v"
5723     ;;
5724   :m32r-* | :d10v-* | :fr30-*)
5725     ospace_frag="config/mt-ospace"
5726     ;;
5727   no:* | :*)
5728     ;;
5729   *)
5730     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5731     ;;
5732 esac
5733
5734 # Default to using --with-stabs for certain targets.
5735 if test x${with_stabs} = x ; then
5736   case "${target}" in
5737   mips*-*-irix[56]*)
5738     ;;
5739   mips*-*-* | alpha*-*-osf*)
5740     with_stabs=yes;
5741     extra_host_args="${extra_host_args} --with-stabs"
5742     ;;
5743   esac
5744 fi
5745
5746 # hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
5747 # them automatically.
5748 case "${host}" in
5749   hppa*64*-*-hpux11*)
5750     extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5751     ;;
5752 esac
5753
5754 # Some systems (e.g., one of the i386-aix systems the gas testers are
5755 # using) don't handle "\$" correctly, so don't use it here.
5756 tooldir='${exec_prefix}'/${target_noncanonical}
5757 build_tooldir=${tooldir}
5758
5759 # Create a .gdbinit file which runs the one in srcdir
5760 # and tells GDB to look there for source files.
5761
5762 if test -r ${srcdir}/.gdbinit ; then
5763   case ${srcdir} in
5764     .) ;;
5765     *) cat > ./.gdbinit <<EOF
5766 # ${NO_EDIT}
5767 dir ${srcdir}
5768 dir .
5769 source ${srcdir}/.gdbinit
5770 EOF
5771     ;;
5772   esac
5773 fi
5774
5775 # Make sure that the compiler is able to generate an executable.  If it
5776 # can't, we are probably in trouble.  We don't care whether we can run the
5777 # executable--we might be using a cross compiler--we only care whether it
5778 # can be created.  At this point the main configure script has set CC.
5779 we_are_ok=no
5780 echo "int main () { return 0; }" > conftest.c
5781 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5782 if test $? = 0 ; then
5783   if test -s conftest || test -s conftest.exe ; then
5784     we_are_ok=yes
5785   fi
5786 fi
5787 case $we_are_ok in
5788   no)
5789     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5790     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5791     rm -f conftest*
5792     exit 1
5793     ;;
5794 esac
5795 rm -f conftest*
5796
5797 # The Solaris /usr/ucb/cc compiler does not appear to work.
5798 case "${host}" in
5799   sparc-sun-solaris2*)
5800       CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5801       if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5802           could_use=
5803           test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5804           if test -d /opt/cygnus/bin ; then
5805               if test "$could_use" = "" ; then
5806                   could_use="/opt/cygnus/bin"
5807               else
5808                   could_use="$could_use or /opt/cygnus/bin"
5809               fi
5810           fi
5811         if test "$could_use" = "" ; then
5812             echo "Warning: compilation may fail because you're using"
5813             echo "/usr/ucb/cc.  You should change your PATH or CC "
5814             echo "variable and rerun configure."
5815         else
5816             echo "Warning: compilation may fail because you're using"
5817             echo "/usr/ucb/cc, when you should use the C compiler from"
5818             echo "$could_use.  You should change your"
5819             echo "PATH or CC variable and rerun configure."
5820         fi
5821       fi
5822   ;;
5823 esac
5824
5825 case "${host}" in
5826   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5827   *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5828   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5829 esac
5830
5831 # Record target_configdirs and the configure arguments for target and
5832 # build configuration in Makefile.
5833 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5834 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5835
5836 # Determine whether gdb needs tk/tcl or not.
5837 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5838 # and in that case we want gdb to be built without tk.  Ugh!
5839 # In fact I believe gdb is the *only* package directly dependent on tk,
5840 # so we should be able to put the 'maybe's in unconditionally and
5841 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
5842 # 100% sure that that's safe though.
5843
5844 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5845 case "$enable_gdbtk" in
5846   no)
5847     GDB_TK="" ;;
5848   yes)
5849     GDB_TK="${gdb_tk}" ;;
5850   *)
5851     # Only add the dependency on gdbtk when GDBtk is part of the gdb
5852     # distro.  Eventually someone will fix this and move Insight, nee
5853     # gdbtk to a separate directory.
5854     if test -d ${srcdir}/gdb/gdbtk ; then
5855       GDB_TK="${gdb_tk}"
5856     else
5857       GDB_TK=""
5858     fi
5859     ;;
5860 esac
5861 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5862 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5863
5864 # Strip out unwanted targets.
5865
5866 # While at that, we remove Makefiles if we were started for recursive
5867 # configuration, so that the top-level Makefile reconfigures them,
5868 # like we used to do when configure itself was recursive.
5869
5870 # Loop over modules.  $extrasub must be used with care, limiting as
5871 # much as possible the usage of range addresses.  That's because autoconf
5872 # splits the sed script to overcome limits in the number of commands,
5873 # and relying on carefully-timed sed passes may turn out to be very hard
5874 # to maintain later.  In this particular case, you just have to be careful
5875 # not to nest @if/@endif pairs, because configure will not warn you at all.
5876
5877 # Check whether --enable-bootstrap was given.
5878 if test "${enable_bootstrap+set}" = set; then
5879   enableval=$enable_bootstrap;
5880 else
5881   enable_bootstrap=default
5882 fi
5883
5884
5885 # Issue errors and warnings for invalid/strange bootstrap combinations.
5886 case "$configdirs" in
5887   *gcc*) have_compiler=yes ;;
5888   *) have_compiler=no ;;
5889 esac
5890
5891 case "$have_compiler:$host:$target:$enable_bootstrap" in
5892   *:*:*:no) ;;
5893
5894   # Default behavior.  Enable bootstrap if we have a compiler
5895   # and we are in a native configuration.
5896   yes:$build:$build:default)
5897     enable_bootstrap=yes ;;
5898
5899   *:*:*:default)
5900     enable_bootstrap=no ;;
5901
5902   # We have a compiler and we are in a native configuration, bootstrap is ok
5903   yes:$build:$build:yes)
5904     ;;
5905
5906   # Other configurations, but we have a compiler.  Assume the user knows
5907   # what he's doing.
5908   yes:*:*:yes)
5909     { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5910 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5911     ;;
5912
5913   # No compiler: if they passed --enable-bootstrap explicitly, fail
5914   no:*:*:yes)
5915     { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5916 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5917    { (exit 1); exit 1; }; } ;;
5918
5919   # Fail if wrong command line
5920   *)
5921     { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5922 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5923    { (exit 1); exit 1; }; }
5924     ;;
5925 esac
5926
5927 # Adjust the toplevel makefile according to whether bootstrap was selected.
5928 case "$enable_bootstrap" in
5929   yes)
5930     bootstrap_suffix=bootstrap ;;
5931   no)
5932     bootstrap_suffix=no-bootstrap ;;
5933 esac
5934
5935 for module in ${build_configdirs} ; do
5936   if test -z "${no_recursion}" \
5937      && test -f ${build_subdir}/${module}/Makefile; then
5938     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5939     rm -f ${build_subdir}/${module}/Makefile
5940   fi
5941   extrasub="$extrasub
5942 /^@if build-$module\$/d
5943 /^@endif build-$module\$/d
5944 /^@if build-$module-$bootstrap_suffix\$/d
5945 /^@endif build-$module-$bootstrap_suffix\$/d"
5946 done
5947 for module in ${configdirs} ; do
5948   if test -z "${no_recursion}"; then
5949     for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5950       if test -f ${file}; then
5951         echo 1>&2 "*** removing ${file} to force reconfigure"
5952         rm -f ${file}
5953       fi
5954     done
5955   fi
5956   extrasub="$extrasub
5957 /^@if $module\$/d
5958 /^@endif $module\$/d
5959 /^@if $module-$bootstrap_suffix\$/d
5960 /^@endif $module-$bootstrap_suffix\$/d"
5961 done
5962 for module in ${target_configdirs} ; do
5963   if test -z "${no_recursion}" \
5964      && test -f ${target_subdir}/${module}/Makefile; then
5965     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5966     rm -f ${target_subdir}/${module}/Makefile
5967   fi
5968   extrasub="$extrasub
5969 /^@if target-$module\$/d
5970 /^@endif target-$module\$/d
5971 /^@if target-$module-$bootstrap_suffix\$/d
5972 /^@endif target-$module-$bootstrap_suffix\$/d"
5973 done
5974
5975 extrasub="$extrasub
5976 /^@if /,/^@endif /d"
5977
5978 # Create the serialization dependencies.  This uses a temporary file.
5979
5980 # Check whether --enable-serial-configure was given.
5981 if test "${enable_serial_configure+set}" = set; then
5982   enableval=$enable_serial_configure;
5983 fi
5984
5985
5986 case ${enable_serial_configure} in
5987   yes)
5988     enable_serial_build_configure=yes
5989     enable_serial_host_configure=yes
5990     enable_serial_target_configure=yes
5991     ;;
5992 esac
5993
5994 # These force 'configure's to be done one at a time, to avoid problems
5995 # with contention over a shared config.cache.
5996 rm -f serdep.tmp
5997 echo '# serdep.tmp' > serdep.tmp
5998 olditem=
5999 test "x${enable_serial_build_configure}" = xyes &&
6000 for item in ${build_configdirs} ; do
6001   case ${olditem} in
6002     "") ;;
6003     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6004   esac
6005   olditem=${item}
6006 done
6007 olditem=
6008 test "x${enable_serial_host_configure}" = xyes &&
6009 for item in ${configdirs} ; do
6010   case ${olditem} in
6011     "") ;;
6012     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6013   esac
6014   olditem=${item}
6015 done
6016 olditem=
6017 test "x${enable_serial_target_configure}" = xyes &&
6018 for item in ${target_configdirs} ; do
6019   case ${olditem} in
6020     "") ;;
6021     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6022   esac
6023   olditem=${item}
6024 done
6025 serialization_dependencies=serdep.tmp
6026
6027
6028 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
6029 # target, nonopt, and variable assignments.  These are the ones we
6030 # might not want to pass down to subconfigures.  Also strip
6031 # program-prefix, program-suffix, and program-transform-name, so that
6032 # we can pass down a consistent program-transform-name.
6033 baseargs=
6034 keep_next=no
6035 skip_next=no
6036 eval "set -- $ac_configure_args"
6037 for ac_arg
6038 do
6039   if test X"$skip_next" = X"yes"; then
6040     skip_next=no
6041     continue
6042   fi
6043   if test X"$keep_next" = X"yes"; then
6044     case $ac_arg in
6045       *\'*)
6046         ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6047     esac
6048     baseargs="$baseargs '$ac_arg'"
6049     keep_next=no
6050     continue
6051   fi
6052
6053   # Handle separated arguments.  Based on the logic generated by
6054   # autoconf 2.59.
6055   case $ac_arg in
6056     *=* | --config-cache | -C | -disable-* | --disable-* \
6057       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6058       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6059       | -with-* | --with-* | -without-* | --without-* | --x)
6060       separate_arg=no
6061       ;;
6062     -*)
6063       separate_arg=yes
6064       ;;
6065     *)
6066       separate_arg=no
6067       ;;
6068   esac
6069
6070   case "$ac_arg" in
6071     --no*)
6072       continue
6073       ;;
6074     --c* | \
6075     --sr* | \
6076     --ho* | \
6077     --bu* | \
6078     --t* | \
6079     --program-* | \
6080     -cache_file* | \
6081     -srcdir* | \
6082     -host* | \
6083     -build* | \
6084     -target* | \
6085     -program-prefix* | \
6086     -program-suffix* | \
6087     -program-transform-name* )
6088       skip_next=$separate_arg
6089       continue
6090       ;;
6091     -*)
6092       # An option.  Add it.
6093       case $ac_arg in
6094         *\'*)
6095           ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6096       esac
6097       baseargs="$baseargs '$ac_arg'"
6098       keep_next=$separate_arg
6099       ;;
6100     *)
6101       # Either a variable assignment, or a nonopt (triplet).  Don't
6102       # pass it down; let the Makefile handle this.
6103       continue
6104       ;;
6105   esac
6106 done
6107 # Remove the initial space we just introduced and, as these will be
6108 # expanded by make, quote '$'.
6109 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
6110
6111 # Add in --program-transform-name, after --program-prefix and
6112 # --program-suffix have been applied to it.  Autoconf has already
6113 # doubled dollar signs and backslashes in program_transform_name; we want
6114 # the backslashes un-doubled, and then the entire thing wrapped in single
6115 # quotes, because this will be expanded first by make and then by the shell.
6116 # Also, because we want to override the logic in subdir configure scripts to
6117 # choose program_transform_name, replace any s,x,x, with s,y,y,.
6118 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6119 ${program_transform_name}
6120 EOF_SED
6121 gcc_transform_name=`cat conftestsed.out`
6122 rm -f conftestsed.out
6123 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
6124
6125 # For the build-side libraries, we just need to pretend we're native,
6126 # and not use the same cache file.  Multilibs are neither needed nor
6127 # desired.
6128 build_configargs="--cache-file=../config.cache ${baseargs}"
6129
6130 # For host modules, accept cache file option, or specification as blank.
6131 case "${cache_file}" in
6132 "") # empty
6133   cache_file_option="" ;;
6134 /* | [A-Za-z]:[\\/]* ) # absolute path
6135   cache_file_option="--cache-file=${cache_file}" ;;
6136 *) # relative path
6137   cache_file_option="--cache-file=../${cache_file}" ;;
6138 esac
6139
6140 # Host dirs don't like to share a cache file either, horribly enough.
6141 # This seems to be due to autoconf 2.5x stupidity.
6142 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
6143
6144 target_configargs=${baseargs}
6145
6146 # Passing a --with-cross-host argument lets the target libraries know
6147 # whether they are being built with a cross-compiler or being built
6148 # native.  However, it would be better to use other mechanisms to make the
6149 # sorts of decisions they want to make on this basis.  Please consider
6150 # this option to be deprecated.  FIXME.
6151 if test x${is_cross_compiler} = xyes ; then
6152   target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
6153 fi
6154
6155 # Default to --enable-multilib.
6156 if test x${enable_multilib} = x ; then
6157   target_configargs="--enable-multilib ${target_configargs}"
6158 fi
6159
6160 # Pass --with-newlib if appropriate.  Note that target_configdirs has
6161 # changed from the earlier setting of with_newlib.
6162 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6163   target_configargs="--with-newlib ${target_configargs}"
6164 fi
6165
6166 # Different target subdirs use different values of certain variables
6167 # (notably CXX).  Worse, multilibs use *lots* of different values.
6168 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6169 # it doesn't automatically accept command-line overrides of them.
6170 # This means it's not safe for target subdirs to share a cache file,
6171 # which is disgusting, but there you have it.  Hopefully this can be
6172 # fixed in future.  It's still worthwhile to use a cache file for each
6173 # directory.  I think.
6174
6175 # Pass the appropriate --build, --host, --target and --cache-file arguments.
6176 # We need to pass --target, as newer autoconf's requires consistency
6177 # for target_alias and gcc doesn't manage it consistently.
6178 target_configargs="--cache-file=./config.cache ${target_configargs}"
6179
6180 FLAGS_FOR_TARGET=
6181 case " $target_configdirs " in
6182  *" newlib "*)
6183   case " $target_configargs " in
6184   *" --with-newlib "*)
6185    case "$target" in
6186    *-cygwin*)
6187      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
6188    esac
6189
6190    # If we're not building GCC, don't discard standard headers.
6191    if test -d ${srcdir}/gcc; then
6192      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6193
6194      if test "${build}" != "${host}"; then
6195        # On Canadian crosses, CC_FOR_TARGET will have already been set
6196        # by `configure', so we won't have an opportunity to add -Bgcc/
6197        # to it.  This is right: we don't want to search that directory
6198        # for binaries, but we want the header files in there, so add
6199        # them explicitly.
6200        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
6201
6202        # Someone might think of using the pre-installed headers on
6203        # Canadian crosses, in case the installed compiler is not fully
6204        # compatible with the compiler being built.  In this case, it
6205        # would be better to flag an error than risking having
6206        # incompatible object files being constructed.  We can't
6207        # guarantee that an error will be flagged, but let's hope the
6208        # compiler will do it, when presented with incompatible header
6209        # files.
6210      fi
6211    fi
6212
6213    case "${target}-${is_cross_compiler}" in
6214    i[3456789]86-*-linux*-no)
6215       # Here host == target, so we don't need to build gcc,
6216       # so we don't want to discard standard headers.
6217       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6218       ;;
6219    *)
6220       # If we're building newlib, use its generic headers last, but search
6221       # for any libc-related directories first (so make it the last -B
6222       # switch).
6223       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6224       ;;
6225    esac
6226    ;;
6227   esac
6228   ;;
6229 esac
6230 case "$target" in
6231 *-mingw*)
6232   # Can't be handled as Cygwin above since Mingw does not use newlib.
6233   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
6234 esac
6235
6236 # Allow the user to override the flags for
6237 # our build compiler if desired.
6238 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6239
6240 # On Canadian crosses, we'll be searching the right directories for
6241 # the previously-installed cross compiler, so don't bother to add
6242 # flags for directories within the install tree of the compiler
6243 # being built; programs in there won't even run.
6244 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6245   # Search for pre-installed headers if nothing else fits.
6246   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6247 fi
6248
6249 if test "x${use_gnu_ld}" = x &&
6250    echo " ${configdirs} " | grep " ld " > /dev/null ; then
6251   # Arrange for us to find uninstalled linker scripts.
6252   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6253 fi
6254
6255 # Search for other target-specific linker scripts and such.
6256 case "${target}" in
6257   m32c-*-* )
6258     if test -d ${srcdir}/libgloss/m32c; then
6259       # This is for crt0.o
6260       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
6261       # This is for r8c.ld
6262       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
6263       # This is for libnosys.a
6264       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6265     fi
6266     ;;
6267   mep*)
6268     FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6269     ;;
6270 esac
6271
6272 # Makefile fragments.
6273 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6274 do
6275   eval fragval=\$$frag
6276   if test $fragval != /dev/null; then
6277     eval $frag=${srcdir}/$fragval
6278   fi
6279 done
6280
6281
6282
6283
6284
6285 # Miscellanea: directories, flags, etc.
6286
6287
6288
6289
6290
6291
6292
6293 # Build module lists & subconfigure args.
6294
6295
6296
6297 # Host module lists & subconfigure args.
6298
6299
6300
6301 # Target module lists & subconfigure args.
6302
6303
6304
6305 # Build tools.
6306
6307
6308
6309 # Generate default definitions for YACC, M4, LEX and other programs that run
6310 # on the build machine.  These are used if the Makefile can't locate these
6311 # programs in objdir.
6312 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6313
6314 for ac_prog in 'bison -y' byacc yacc
6315 do
6316   # Extract the first word of "$ac_prog", so it can be a program name with args.
6317 set dummy $ac_prog; ac_word=$2
6318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6320 if test "${ac_cv_prog_YACC+set}" = set; then
6321   echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323   if test -n "$YACC"; then
6324   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6328 do
6329   IFS=$as_save_IFS
6330   test -z "$as_dir" && as_dir=.
6331   for ac_exec_ext in '' $ac_executable_extensions; do
6332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6333     ac_cv_prog_YACC="$ac_prog"
6334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335     break 2
6336   fi
6337 done
6338 done
6339 IFS=$as_save_IFS
6340
6341 fi
6342 fi
6343 YACC=$ac_cv_prog_YACC
6344 if test -n "$YACC"; then
6345   { echo "$as_me:$LINENO: result: $YACC" >&5
6346 echo "${ECHO_T}$YACC" >&6; }
6347 else
6348   { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6350 fi
6351
6352
6353   test -n "$YACC" && break
6354 done
6355 test -n "$YACC" || YACC="$MISSING bison -y"
6356
6357 case " $build_configdirs " in
6358   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6359   *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6360 esac
6361
6362 for ac_prog in bison
6363 do
6364   # Extract the first word of "$ac_prog", so it can be a program name with args.
6365 set dummy $ac_prog; ac_word=$2
6366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6368 if test "${ac_cv_prog_BISON+set}" = set; then
6369   echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371   if test -n "$BISON"; then
6372   ac_cv_prog_BISON="$BISON" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6376 do
6377   IFS=$as_save_IFS
6378   test -z "$as_dir" && as_dir=.
6379   for ac_exec_ext in '' $ac_executable_extensions; do
6380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381     ac_cv_prog_BISON="$ac_prog"
6382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383     break 2
6384   fi
6385 done
6386 done
6387 IFS=$as_save_IFS
6388
6389 fi
6390 fi
6391 BISON=$ac_cv_prog_BISON
6392 if test -n "$BISON"; then
6393   { echo "$as_me:$LINENO: result: $BISON" >&5
6394 echo "${ECHO_T}$BISON" >&6; }
6395 else
6396   { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6398 fi
6399
6400
6401   test -n "$BISON" && break
6402 done
6403 test -n "$BISON" || BISON="$MISSING bison"
6404
6405 case " $build_configdirs " in
6406   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6407 esac
6408
6409 for ac_prog in gm4 gnum4 m4
6410 do
6411   # Extract the first word of "$ac_prog", so it can be a program name with args.
6412 set dummy $ac_prog; ac_word=$2
6413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6415 if test "${ac_cv_prog_M4+set}" = set; then
6416   echo $ECHO_N "(cached) $ECHO_C" >&6
6417 else
6418   if test -n "$M4"; then
6419   ac_cv_prog_M4="$M4" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424   IFS=$as_save_IFS
6425   test -z "$as_dir" && as_dir=.
6426   for ac_exec_ext in '' $ac_executable_extensions; do
6427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428     ac_cv_prog_M4="$ac_prog"
6429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430     break 2
6431   fi
6432 done
6433 done
6434 IFS=$as_save_IFS
6435
6436 fi
6437 fi
6438 M4=$ac_cv_prog_M4
6439 if test -n "$M4"; then
6440   { echo "$as_me:$LINENO: result: $M4" >&5
6441 echo "${ECHO_T}$M4" >&6; }
6442 else
6443   { echo "$as_me:$LINENO: result: no" >&5
6444 echo "${ECHO_T}no" >&6; }
6445 fi
6446
6447
6448   test -n "$M4" && break
6449 done
6450 test -n "$M4" || M4="$MISSING m4"
6451
6452 case " $build_configdirs " in
6453   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6454 esac
6455
6456 for ac_prog in flex lex
6457 do
6458   # Extract the first word of "$ac_prog", so it can be a program name with args.
6459 set dummy $ac_prog; ac_word=$2
6460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462 if test "${ac_cv_prog_LEX+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   if test -n "$LEX"; then
6466   ac_cv_prog_LEX="$LEX" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473   for ac_exec_ext in '' $ac_executable_extensions; do
6474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475     ac_cv_prog_LEX="$ac_prog"
6476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480 done
6481 IFS=$as_save_IFS
6482
6483 fi
6484 fi
6485 LEX=$ac_cv_prog_LEX
6486 if test -n "$LEX"; then
6487   { echo "$as_me:$LINENO: result: $LEX" >&5
6488 echo "${ECHO_T}$LEX" >&6; }
6489 else
6490   { echo "$as_me:$LINENO: result: no" >&5
6491 echo "${ECHO_T}no" >&6; }
6492 fi
6493
6494
6495   test -n "$LEX" && break
6496 done
6497 test -n "$LEX" || LEX="$MISSING flex"
6498
6499 case " $build_configdirs " in
6500   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6501   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6502 esac
6503
6504 for ac_prog in flex
6505 do
6506   # Extract the first word of "$ac_prog", so it can be a program name with args.
6507 set dummy $ac_prog; ac_word=$2
6508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6510 if test "${ac_cv_prog_FLEX+set}" = set; then
6511   echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513   if test -n "$FLEX"; then
6514   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6515 else
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6518 do
6519   IFS=$as_save_IFS
6520   test -z "$as_dir" && as_dir=.
6521   for ac_exec_ext in '' $ac_executable_extensions; do
6522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6523     ac_cv_prog_FLEX="$ac_prog"
6524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525     break 2
6526   fi
6527 done
6528 done
6529 IFS=$as_save_IFS
6530
6531 fi
6532 fi
6533 FLEX=$ac_cv_prog_FLEX
6534 if test -n "$FLEX"; then
6535   { echo "$as_me:$LINENO: result: $FLEX" >&5
6536 echo "${ECHO_T}$FLEX" >&6; }
6537 else
6538   { echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6; }
6540 fi
6541
6542
6543   test -n "$FLEX" && break
6544 done
6545 test -n "$FLEX" || FLEX="$MISSING flex"
6546
6547 case " $build_configdirs " in
6548   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6549 esac
6550
6551 for ac_prog in makeinfo
6552 do
6553   # Extract the first word of "$ac_prog", so it can be a program name with args.
6554 set dummy $ac_prog; ac_word=$2
6555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6557 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6558   echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560   if test -n "$MAKEINFO"; then
6561   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566   IFS=$as_save_IFS
6567   test -z "$as_dir" && as_dir=.
6568   for ac_exec_ext in '' $ac_executable_extensions; do
6569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570     ac_cv_prog_MAKEINFO="$ac_prog"
6571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6572     break 2
6573   fi
6574 done
6575 done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 MAKEINFO=$ac_cv_prog_MAKEINFO
6581 if test -n "$MAKEINFO"; then
6582   { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6583 echo "${ECHO_T}$MAKEINFO" >&6; }
6584 else
6585   { echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6; }
6587 fi
6588
6589
6590   test -n "$MAKEINFO" && break
6591 done
6592 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6593
6594 case " $build_configdirs " in
6595   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6596   *)
6597
6598     # For an installed makeinfo, we require it to be from texinfo 4.4 or
6599     # higher, else we use the "missing" dummy.
6600     if ${MAKEINFO} --version \
6601        | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
6602       :
6603     else
6604       MAKEINFO="$MISSING makeinfo"
6605     fi
6606     ;;
6607
6608 esac
6609
6610 # FIXME: expect and dejagnu may become build tools?
6611
6612 for ac_prog in expect
6613 do
6614   # Extract the first word of "$ac_prog", so it can be a program name with args.
6615 set dummy $ac_prog; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_prog_EXPECT+set}" = set; then
6619   echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621   if test -n "$EXPECT"; then
6622   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6623 else
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629   for ac_exec_ext in '' $ac_executable_extensions; do
6630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631     ac_cv_prog_EXPECT="$ac_prog"
6632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639 fi
6640 fi
6641 EXPECT=$ac_cv_prog_EXPECT
6642 if test -n "$EXPECT"; then
6643   { echo "$as_me:$LINENO: result: $EXPECT" >&5
6644 echo "${ECHO_T}$EXPECT" >&6; }
6645 else
6646   { echo "$as_me:$LINENO: result: no" >&5
6647 echo "${ECHO_T}no" >&6; }
6648 fi
6649
6650
6651   test -n "$EXPECT" && break
6652 done
6653 test -n "$EXPECT" || EXPECT="expect"
6654
6655 case " $configdirs " in
6656   *" expect "*)
6657     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6658     ;;
6659 esac
6660
6661 for ac_prog in runtest
6662 do
6663   # Extract the first word of "$ac_prog", so it can be a program name with args.
6664 set dummy $ac_prog; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6668   echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670   if test -n "$RUNTEST"; then
6671   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678   for ac_exec_ext in '' $ac_executable_extensions; do
6679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680     ac_cv_prog_RUNTEST="$ac_prog"
6681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682     break 2
6683   fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688 fi
6689 fi
6690 RUNTEST=$ac_cv_prog_RUNTEST
6691 if test -n "$RUNTEST"; then
6692   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
6693 echo "${ECHO_T}$RUNTEST" >&6; }
6694 else
6695   { echo "$as_me:$LINENO: result: no" >&5
6696 echo "${ECHO_T}no" >&6; }
6697 fi
6698
6699
6700   test -n "$RUNTEST" && break
6701 done
6702 test -n "$RUNTEST" || RUNTEST="runtest"
6703
6704 case " $configdirs " in
6705   *" dejagnu "*)
6706     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6707     ;;
6708 esac
6709
6710
6711 # Host tools.
6712 ncn_tool_prefix=
6713 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6714 ncn_target_tool_prefix=
6715 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6716
6717
6718
6719 if test -n "$AR"; then
6720   ac_cv_prog_AR=$AR
6721 elif test -n "$ac_cv_prog_AR"; then
6722   AR=$ac_cv_prog_AR
6723 fi
6724
6725 if test -n "$ac_cv_prog_AR"; then
6726   for ncn_progname in ar; do
6727     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6728 set dummy ${ncn_progname}; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_prog_AR+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   if test -n "$AR"; then
6735   ac_cv_prog_AR="$AR" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740   IFS=$as_save_IFS
6741   test -z "$as_dir" && as_dir=.
6742   for ac_exec_ext in '' $ac_executable_extensions; do
6743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744     ac_cv_prog_AR="${ncn_progname}"
6745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746     break 2
6747   fi
6748 done
6749 done
6750 IFS=$as_save_IFS
6751
6752 fi
6753 fi
6754 AR=$ac_cv_prog_AR
6755 if test -n "$AR"; then
6756   { echo "$as_me:$LINENO: result: $AR" >&5
6757 echo "${ECHO_T}$AR" >&6; }
6758 else
6759   { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6761 fi
6762
6763
6764   done
6765 fi
6766
6767 for ncn_progname in ar; do
6768   if test -n "$ncn_tool_prefix"; then
6769     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6770 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_prog_AR+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   if test -n "$AR"; then
6777   ac_cv_prog_AR="$AR" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784   for ac_exec_ext in '' $ac_executable_extensions; do
6785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786     ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 AR=$ac_cv_prog_AR
6797 if test -n "$AR"; then
6798   { echo "$as_me:$LINENO: result: $AR" >&5
6799 echo "${ECHO_T}$AR" >&6; }
6800 else
6801   { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6803 fi
6804
6805
6806   fi
6807   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6808     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6809 set dummy ${ncn_progname}; ac_word=$2
6810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6812 if test "${ac_cv_prog_AR+set}" = set; then
6813   echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815   if test -n "$AR"; then
6816   ac_cv_prog_AR="$AR" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823   for ac_exec_ext in '' $ac_executable_extensions; do
6824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6825     ac_cv_prog_AR="${ncn_progname}"
6826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 AR=$ac_cv_prog_AR
6836 if test -n "$AR"; then
6837   { echo "$as_me:$LINENO: result: $AR" >&5
6838 echo "${ECHO_T}$AR" >&6; }
6839 else
6840   { echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6; }
6842 fi
6843
6844
6845   fi
6846   test -n "$ac_cv_prog_AR" && break
6847 done
6848
6849 if test -z "$ac_cv_prog_AR" ; then
6850   set dummy ar
6851   if test $build = $host ; then
6852     AR="$2"
6853   else
6854     AR="${ncn_tool_prefix}$2"
6855   fi
6856 fi
6857
6858
6859
6860 if test -n "$AS"; then
6861   ac_cv_prog_AS=$AS
6862 elif test -n "$ac_cv_prog_AS"; then
6863   AS=$ac_cv_prog_AS
6864 fi
6865
6866 if test -n "$ac_cv_prog_AS"; then
6867   for ncn_progname in as; do
6868     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6869 set dummy ${ncn_progname}; ac_word=$2
6870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872 if test "${ac_cv_prog_AS+set}" = set; then
6873   echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875   if test -n "$AS"; then
6876   ac_cv_prog_AS="$AS" # Let the user override the test.
6877 else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881   IFS=$as_save_IFS
6882   test -z "$as_dir" && as_dir=.
6883   for ac_exec_ext in '' $ac_executable_extensions; do
6884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885     ac_cv_prog_AS="${ncn_progname}"
6886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887     break 2
6888   fi
6889 done
6890 done
6891 IFS=$as_save_IFS
6892
6893 fi
6894 fi
6895 AS=$ac_cv_prog_AS
6896 if test -n "$AS"; then
6897   { echo "$as_me:$LINENO: result: $AS" >&5
6898 echo "${ECHO_T}$AS" >&6; }
6899 else
6900   { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6902 fi
6903
6904
6905   done
6906 fi
6907
6908 for ncn_progname in as; do
6909   if test -n "$ncn_tool_prefix"; then
6910     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6911 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_prog_AS+set}" = set; then
6915   echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917   if test -n "$AS"; then
6918   ac_cv_prog_AS="$AS" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923   IFS=$as_save_IFS
6924   test -z "$as_dir" && as_dir=.
6925   for ac_exec_ext in '' $ac_executable_extensions; do
6926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927     ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929     break 2
6930   fi
6931 done
6932 done
6933 IFS=$as_save_IFS
6934
6935 fi
6936 fi
6937 AS=$ac_cv_prog_AS
6938 if test -n "$AS"; then
6939   { echo "$as_me:$LINENO: result: $AS" >&5
6940 echo "${ECHO_T}$AS" >&6; }
6941 else
6942   { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6944 fi
6945
6946
6947   fi
6948   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6949     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6950 set dummy ${ncn_progname}; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_prog_AS+set}" = set; then
6954   echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956   if test -n "$AS"; then
6957   ac_cv_prog_AS="$AS" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962   IFS=$as_save_IFS
6963   test -z "$as_dir" && as_dir=.
6964   for ac_exec_ext in '' $ac_executable_extensions; do
6965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966     ac_cv_prog_AS="${ncn_progname}"
6967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968     break 2
6969   fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 AS=$ac_cv_prog_AS
6977 if test -n "$AS"; then
6978   { echo "$as_me:$LINENO: result: $AS" >&5
6979 echo "${ECHO_T}$AS" >&6; }
6980 else
6981   { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6983 fi
6984
6985
6986   fi
6987   test -n "$ac_cv_prog_AS" && break
6988 done
6989
6990 if test -z "$ac_cv_prog_AS" ; then
6991   set dummy as
6992   if test $build = $host ; then
6993     AS="$2"
6994   else
6995     AS="${ncn_tool_prefix}$2"
6996   fi
6997 fi
6998
6999
7000
7001 if test -n "$DLLTOOL"; then
7002   ac_cv_prog_DLLTOOL=$DLLTOOL
7003 elif test -n "$ac_cv_prog_DLLTOOL"; then
7004   DLLTOOL=$ac_cv_prog_DLLTOOL
7005 fi
7006
7007 if test -n "$ac_cv_prog_DLLTOOL"; then
7008   for ncn_progname in dlltool; do
7009     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7010 set dummy ${ncn_progname}; ac_word=$2
7011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7014   echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016   if test -n "$DLLTOOL"; then
7017   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7018 else
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7021 do
7022   IFS=$as_save_IFS
7023   test -z "$as_dir" && as_dir=.
7024   for ac_exec_ext in '' $ac_executable_extensions; do
7025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7026     ac_cv_prog_DLLTOOL="${ncn_progname}"
7027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028     break 2
7029   fi
7030 done
7031 done
7032 IFS=$as_save_IFS
7033
7034 fi
7035 fi
7036 DLLTOOL=$ac_cv_prog_DLLTOOL
7037 if test -n "$DLLTOOL"; then
7038   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7039 echo "${ECHO_T}$DLLTOOL" >&6; }
7040 else
7041   { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7043 fi
7044
7045
7046   done
7047 fi
7048
7049 for ncn_progname in dlltool; do
7050   if test -n "$ncn_tool_prefix"; then
7051     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7052 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7055 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7056   echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058   if test -n "$DLLTOOL"; then
7059   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7060 else
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7063 do
7064   IFS=$as_save_IFS
7065   test -z "$as_dir" && as_dir=.
7066   for ac_exec_ext in '' $ac_executable_extensions; do
7067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068     ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070     break 2
7071   fi
7072 done
7073 done
7074 IFS=$as_save_IFS
7075
7076 fi
7077 fi
7078 DLLTOOL=$ac_cv_prog_DLLTOOL
7079 if test -n "$DLLTOOL"; then
7080   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7081 echo "${ECHO_T}$DLLTOOL" >&6; }
7082 else
7083   { echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6; }
7085 fi
7086
7087
7088   fi
7089   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7090     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7091 set dummy ${ncn_progname}; ac_word=$2
7092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7095   echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097   if test -n "$DLLTOOL"; then
7098   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103   IFS=$as_save_IFS
7104   test -z "$as_dir" && as_dir=.
7105   for ac_exec_ext in '' $ac_executable_extensions; do
7106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7107     ac_cv_prog_DLLTOOL="${ncn_progname}"
7108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109     break 2
7110   fi
7111 done
7112 done
7113 IFS=$as_save_IFS
7114
7115 fi
7116 fi
7117 DLLTOOL=$ac_cv_prog_DLLTOOL
7118 if test -n "$DLLTOOL"; then
7119   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7120 echo "${ECHO_T}$DLLTOOL" >&6; }
7121 else
7122   { echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6; }
7124 fi
7125
7126
7127   fi
7128   test -n "$ac_cv_prog_DLLTOOL" && break
7129 done
7130
7131 if test -z "$ac_cv_prog_DLLTOOL" ; then
7132   set dummy dlltool
7133   if test $build = $host ; then
7134     DLLTOOL="$2"
7135   else
7136     DLLTOOL="${ncn_tool_prefix}$2"
7137   fi
7138 fi
7139
7140
7141
7142 if test -n "$LD"; then
7143   ac_cv_prog_LD=$LD
7144 elif test -n "$ac_cv_prog_LD"; then
7145   LD=$ac_cv_prog_LD
7146 fi
7147
7148 if test -n "$ac_cv_prog_LD"; then
7149   for ncn_progname in ld; do
7150     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7151 set dummy ${ncn_progname}; ac_word=$2
7152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7154 if test "${ac_cv_prog_LD+set}" = set; then
7155   echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157   if test -n "$LD"; then
7158   ac_cv_prog_LD="$LD" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163   IFS=$as_save_IFS
7164   test -z "$as_dir" && as_dir=.
7165   for ac_exec_ext in '' $ac_executable_extensions; do
7166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167     ac_cv_prog_LD="${ncn_progname}"
7168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169     break 2
7170   fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 LD=$ac_cv_prog_LD
7178 if test -n "$LD"; then
7179   { echo "$as_me:$LINENO: result: $LD" >&5
7180 echo "${ECHO_T}$LD" >&6; }
7181 else
7182   { echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6; }
7184 fi
7185
7186
7187   done
7188 fi
7189
7190 for ncn_progname in ld; do
7191   if test -n "$ncn_tool_prefix"; then
7192     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7193 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196 if test "${ac_cv_prog_LD+set}" = set; then
7197   echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199   if test -n "$LD"; then
7200   ac_cv_prog_LD="$LD" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205   IFS=$as_save_IFS
7206   test -z "$as_dir" && as_dir=.
7207   for ac_exec_ext in '' $ac_executable_extensions; do
7208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7209     ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211     break 2
7212   fi
7213 done
7214 done
7215 IFS=$as_save_IFS
7216
7217 fi
7218 fi
7219 LD=$ac_cv_prog_LD
7220 if test -n "$LD"; then
7221   { echo "$as_me:$LINENO: result: $LD" >&5
7222 echo "${ECHO_T}$LD" >&6; }
7223 else
7224   { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7226 fi
7227
7228
7229   fi
7230   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7231     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7232 set dummy ${ncn_progname}; ac_word=$2
7233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235 if test "${ac_cv_prog_LD+set}" = set; then
7236   echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238   if test -n "$LD"; then
7239   ac_cv_prog_LD="$LD" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244   IFS=$as_save_IFS
7245   test -z "$as_dir" && as_dir=.
7246   for ac_exec_ext in '' $ac_executable_extensions; do
7247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248     ac_cv_prog_LD="${ncn_progname}"
7249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250     break 2
7251   fi
7252 done
7253 done
7254 IFS=$as_save_IFS
7255
7256 fi
7257 fi
7258 LD=$ac_cv_prog_LD
7259 if test -n "$LD"; then
7260   { echo "$as_me:$LINENO: result: $LD" >&5
7261 echo "${ECHO_T}$LD" >&6; }
7262 else
7263   { echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6; }
7265 fi
7266
7267
7268   fi
7269   test -n "$ac_cv_prog_LD" && break
7270 done
7271
7272 if test -z "$ac_cv_prog_LD" ; then
7273   set dummy ld
7274   if test $build = $host ; then
7275     LD="$2"
7276   else
7277     LD="${ncn_tool_prefix}$2"
7278   fi
7279 fi
7280
7281
7282
7283 if test -n "$LIPO"; then
7284   ac_cv_prog_LIPO=$LIPO
7285 elif test -n "$ac_cv_prog_LIPO"; then
7286   LIPO=$ac_cv_prog_LIPO
7287 fi
7288
7289 if test -n "$ac_cv_prog_LIPO"; then
7290   for ncn_progname in lipo; do
7291     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7292 set dummy ${ncn_progname}; ac_word=$2
7293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295 if test "${ac_cv_prog_LIPO+set}" = set; then
7296   echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298   if test -n "$LIPO"; then
7299   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7303 do
7304   IFS=$as_save_IFS
7305   test -z "$as_dir" && as_dir=.
7306   for ac_exec_ext in '' $ac_executable_extensions; do
7307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7308     ac_cv_prog_LIPO="${ncn_progname}"
7309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7310     break 2
7311   fi
7312 done
7313 done
7314 IFS=$as_save_IFS
7315
7316 fi
7317 fi
7318 LIPO=$ac_cv_prog_LIPO
7319 if test -n "$LIPO"; then
7320   { echo "$as_me:$LINENO: result: $LIPO" >&5
7321 echo "${ECHO_T}$LIPO" >&6; }
7322 else
7323   { echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6; }
7325 fi
7326
7327
7328   done
7329 fi
7330
7331 for ncn_progname in lipo; do
7332   if test -n "$ncn_tool_prefix"; then
7333     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7334 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337 if test "${ac_cv_prog_LIPO+set}" = set; then
7338   echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340   if test -n "$LIPO"; then
7341   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348   for ac_exec_ext in '' $ac_executable_extensions; do
7349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350     ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355 done
7356 IFS=$as_save_IFS
7357
7358 fi
7359 fi
7360 LIPO=$ac_cv_prog_LIPO
7361 if test -n "$LIPO"; then
7362   { echo "$as_me:$LINENO: result: $LIPO" >&5
7363 echo "${ECHO_T}$LIPO" >&6; }
7364 else
7365   { echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6; }
7367 fi
7368
7369
7370   fi
7371   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7372     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7373 set dummy ${ncn_progname}; ac_word=$2
7374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7376 if test "${ac_cv_prog_LIPO+set}" = set; then
7377   echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379   if test -n "$LIPO"; then
7380   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385   IFS=$as_save_IFS
7386   test -z "$as_dir" && as_dir=.
7387   for ac_exec_ext in '' $ac_executable_extensions; do
7388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389     ac_cv_prog_LIPO="${ncn_progname}"
7390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391     break 2
7392   fi
7393 done
7394 done
7395 IFS=$as_save_IFS
7396
7397 fi
7398 fi
7399 LIPO=$ac_cv_prog_LIPO
7400 if test -n "$LIPO"; then
7401   { echo "$as_me:$LINENO: result: $LIPO" >&5
7402 echo "${ECHO_T}$LIPO" >&6; }
7403 else
7404   { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7406 fi
7407
7408
7409   fi
7410   test -n "$ac_cv_prog_LIPO" && break
7411 done
7412
7413 if test -z "$ac_cv_prog_LIPO" ; then
7414   set dummy lipo
7415   if test $build = $host ; then
7416     LIPO="$2"
7417   else
7418     LIPO="${ncn_tool_prefix}$2"
7419   fi
7420 fi
7421
7422
7423
7424 if test -n "$NM"; then
7425   ac_cv_prog_NM=$NM
7426 elif test -n "$ac_cv_prog_NM"; then
7427   NM=$ac_cv_prog_NM
7428 fi
7429
7430 if test -n "$ac_cv_prog_NM"; then
7431   for ncn_progname in nm; do
7432     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7433 set dummy ${ncn_progname}; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_prog_NM+set}" = set; then
7437   echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439   if test -n "$NM"; then
7440   ac_cv_prog_NM="$NM" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447   for ac_exec_ext in '' $ac_executable_extensions; do
7448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7449     ac_cv_prog_NM="${ncn_progname}"
7450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454 done
7455 IFS=$as_save_IFS
7456
7457 fi
7458 fi
7459 NM=$ac_cv_prog_NM
7460 if test -n "$NM"; then
7461   { echo "$as_me:$LINENO: result: $NM" >&5
7462 echo "${ECHO_T}$NM" >&6; }
7463 else
7464   { echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6; }
7466 fi
7467
7468
7469   done
7470 fi
7471
7472 for ncn_progname in nm; do
7473   if test -n "$ncn_tool_prefix"; then
7474     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7475 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478 if test "${ac_cv_prog_NM+set}" = set; then
7479   echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481   if test -n "$NM"; then
7482   ac_cv_prog_NM="$NM" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489   for ac_exec_ext in '' $ac_executable_extensions; do
7490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491     ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496 done
7497 IFS=$as_save_IFS
7498
7499 fi
7500 fi
7501 NM=$ac_cv_prog_NM
7502 if test -n "$NM"; then
7503   { echo "$as_me:$LINENO: result: $NM" >&5
7504 echo "${ECHO_T}$NM" >&6; }
7505 else
7506   { echo "$as_me:$LINENO: result: no" >&5
7507 echo "${ECHO_T}no" >&6; }
7508 fi
7509
7510
7511   fi
7512   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7513     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7514 set dummy ${ncn_progname}; ac_word=$2
7515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7517 if test "${ac_cv_prog_NM+set}" = set; then
7518   echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520   if test -n "$NM"; then
7521   ac_cv_prog_NM="$NM" # Let the user override the test.
7522 else
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526   IFS=$as_save_IFS
7527   test -z "$as_dir" && as_dir=.
7528   for ac_exec_ext in '' $ac_executable_extensions; do
7529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7530     ac_cv_prog_NM="${ncn_progname}"
7531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532     break 2
7533   fi
7534 done
7535 done
7536 IFS=$as_save_IFS
7537
7538 fi
7539 fi
7540 NM=$ac_cv_prog_NM
7541 if test -n "$NM"; then
7542   { echo "$as_me:$LINENO: result: $NM" >&5
7543 echo "${ECHO_T}$NM" >&6; }
7544 else
7545   { echo "$as_me:$LINENO: result: no" >&5
7546 echo "${ECHO_T}no" >&6; }
7547 fi
7548
7549
7550   fi
7551   test -n "$ac_cv_prog_NM" && break
7552 done
7553
7554 if test -z "$ac_cv_prog_NM" ; then
7555   set dummy nm
7556   if test $build = $host ; then
7557     NM="$2"
7558   else
7559     NM="${ncn_tool_prefix}$2"
7560   fi
7561 fi
7562
7563
7564
7565 if test -n "$RANLIB"; then
7566   ac_cv_prog_RANLIB=$RANLIB
7567 elif test -n "$ac_cv_prog_RANLIB"; then
7568   RANLIB=$ac_cv_prog_RANLIB
7569 fi
7570
7571 if test -n "$ac_cv_prog_RANLIB"; then
7572   for ncn_progname in ranlib; do
7573     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7574 set dummy ${ncn_progname}; ac_word=$2
7575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7577 if test "${ac_cv_prog_RANLIB+set}" = set; then
7578   echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580   if test -n "$RANLIB"; then
7581   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586   IFS=$as_save_IFS
7587   test -z "$as_dir" && as_dir=.
7588   for ac_exec_ext in '' $ac_executable_extensions; do
7589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7590     ac_cv_prog_RANLIB="${ncn_progname}"
7591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592     break 2
7593   fi
7594 done
7595 done
7596 IFS=$as_save_IFS
7597
7598 fi
7599 fi
7600 RANLIB=$ac_cv_prog_RANLIB
7601 if test -n "$RANLIB"; then
7602   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7603 echo "${ECHO_T}$RANLIB" >&6; }
7604 else
7605   { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7607 fi
7608
7609
7610   done
7611 fi
7612
7613 for ncn_progname in ranlib; do
7614   if test -n "$ncn_tool_prefix"; then
7615     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7616 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7619 if test "${ac_cv_prog_RANLIB+set}" = set; then
7620   echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622   if test -n "$RANLIB"; then
7623   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7624 else
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628   IFS=$as_save_IFS
7629   test -z "$as_dir" && as_dir=.
7630   for ac_exec_ext in '' $ac_executable_extensions; do
7631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7632     ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634     break 2
7635   fi
7636 done
7637 done
7638 IFS=$as_save_IFS
7639
7640 fi
7641 fi
7642 RANLIB=$ac_cv_prog_RANLIB
7643 if test -n "$RANLIB"; then
7644   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7645 echo "${ECHO_T}$RANLIB" >&6; }
7646 else
7647   { echo "$as_me:$LINENO: result: no" >&5
7648 echo "${ECHO_T}no" >&6; }
7649 fi
7650
7651
7652   fi
7653   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7654     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7655 set dummy ${ncn_progname}; ac_word=$2
7656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7658 if test "${ac_cv_prog_RANLIB+set}" = set; then
7659   echo $ECHO_N "(cached) $ECHO_C" >&6
7660 else
7661   if test -n "$RANLIB"; then
7662   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7666 do
7667   IFS=$as_save_IFS
7668   test -z "$as_dir" && as_dir=.
7669   for ac_exec_ext in '' $ac_executable_extensions; do
7670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671     ac_cv_prog_RANLIB="${ncn_progname}"
7672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7673     break 2
7674   fi
7675 done
7676 done
7677 IFS=$as_save_IFS
7678
7679 fi
7680 fi
7681 RANLIB=$ac_cv_prog_RANLIB
7682 if test -n "$RANLIB"; then
7683   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7684 echo "${ECHO_T}$RANLIB" >&6; }
7685 else
7686   { echo "$as_me:$LINENO: result: no" >&5
7687 echo "${ECHO_T}no" >&6; }
7688 fi
7689
7690
7691   fi
7692   test -n "$ac_cv_prog_RANLIB" && break
7693 done
7694
7695 if test -z "$ac_cv_prog_RANLIB" ; then
7696   RANLIB=":"
7697 fi
7698
7699
7700
7701 if test -n "$STRIP"; then
7702   ac_cv_prog_STRIP=$STRIP
7703 elif test -n "$ac_cv_prog_STRIP"; then
7704   STRIP=$ac_cv_prog_STRIP
7705 fi
7706
7707 if test -n "$ac_cv_prog_STRIP"; then
7708   for ncn_progname in strip; do
7709     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7710 set dummy ${ncn_progname}; ac_word=$2
7711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7713 if test "${ac_cv_prog_STRIP+set}" = set; then
7714   echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716   if test -n "$STRIP"; then
7717   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722   IFS=$as_save_IFS
7723   test -z "$as_dir" && as_dir=.
7724   for ac_exec_ext in '' $ac_executable_extensions; do
7725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7726     ac_cv_prog_STRIP="${ncn_progname}"
7727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7728     break 2
7729   fi
7730 done
7731 done
7732 IFS=$as_save_IFS
7733
7734 fi
7735 fi
7736 STRIP=$ac_cv_prog_STRIP
7737 if test -n "$STRIP"; then
7738   { echo "$as_me:$LINENO: result: $STRIP" >&5
7739 echo "${ECHO_T}$STRIP" >&6; }
7740 else
7741   { echo "$as_me:$LINENO: result: no" >&5
7742 echo "${ECHO_T}no" >&6; }
7743 fi
7744
7745
7746   done
7747 fi
7748
7749 for ncn_progname in strip; do
7750   if test -n "$ncn_tool_prefix"; then
7751     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7752 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7755 if test "${ac_cv_prog_STRIP+set}" = set; then
7756   echo $ECHO_N "(cached) $ECHO_C" >&6
7757 else
7758   if test -n "$STRIP"; then
7759   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7760 else
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH
7763 do
7764   IFS=$as_save_IFS
7765   test -z "$as_dir" && as_dir=.
7766   for ac_exec_ext in '' $ac_executable_extensions; do
7767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7768     ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770     break 2
7771   fi
7772 done
7773 done
7774 IFS=$as_save_IFS
7775
7776 fi
7777 fi
7778 STRIP=$ac_cv_prog_STRIP
7779 if test -n "$STRIP"; then
7780   { echo "$as_me:$LINENO: result: $STRIP" >&5
7781 echo "${ECHO_T}$STRIP" >&6; }
7782 else
7783   { echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6; }
7785 fi
7786
7787
7788   fi
7789   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7790     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7791 set dummy ${ncn_progname}; ac_word=$2
7792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7794 if test "${ac_cv_prog_STRIP+set}" = set; then
7795   echo $ECHO_N "(cached) $ECHO_C" >&6
7796 else
7797   if test -n "$STRIP"; then
7798   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7802 do
7803   IFS=$as_save_IFS
7804   test -z "$as_dir" && as_dir=.
7805   for ac_exec_ext in '' $ac_executable_extensions; do
7806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807     ac_cv_prog_STRIP="${ncn_progname}"
7808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809     break 2
7810   fi
7811 done
7812 done
7813 IFS=$as_save_IFS
7814
7815 fi
7816 fi
7817 STRIP=$ac_cv_prog_STRIP
7818 if test -n "$STRIP"; then
7819   { echo "$as_me:$LINENO: result: $STRIP" >&5
7820 echo "${ECHO_T}$STRIP" >&6; }
7821 else
7822   { echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6; }
7824 fi
7825
7826
7827   fi
7828   test -n "$ac_cv_prog_STRIP" && break
7829 done
7830
7831 if test -z "$ac_cv_prog_STRIP" ; then
7832   STRIP=":"
7833 fi
7834
7835
7836
7837 if test -n "$WINDRES"; then
7838   ac_cv_prog_WINDRES=$WINDRES
7839 elif test -n "$ac_cv_prog_WINDRES"; then
7840   WINDRES=$ac_cv_prog_WINDRES
7841 fi
7842
7843 if test -n "$ac_cv_prog_WINDRES"; then
7844   for ncn_progname in windres; do
7845     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7846 set dummy ${ncn_progname}; ac_word=$2
7847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7849 if test "${ac_cv_prog_WINDRES+set}" = set; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852   if test -n "$WINDRES"; then
7853   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7857 do
7858   IFS=$as_save_IFS
7859   test -z "$as_dir" && as_dir=.
7860   for ac_exec_ext in '' $ac_executable_extensions; do
7861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7862     ac_cv_prog_WINDRES="${ncn_progname}"
7863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864     break 2
7865   fi
7866 done
7867 done
7868 IFS=$as_save_IFS
7869
7870 fi
7871 fi
7872 WINDRES=$ac_cv_prog_WINDRES
7873 if test -n "$WINDRES"; then
7874   { echo "$as_me:$LINENO: result: $WINDRES" >&5
7875 echo "${ECHO_T}$WINDRES" >&6; }
7876 else
7877   { echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6; }
7879 fi
7880
7881
7882   done
7883 fi
7884
7885 for ncn_progname in windres; do
7886   if test -n "$ncn_tool_prefix"; then
7887     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7888 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7891 if test "${ac_cv_prog_WINDRES+set}" = set; then
7892   echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894   if test -n "$WINDRES"; then
7895   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7896 else
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in $PATH
7899 do
7900   IFS=$as_save_IFS
7901   test -z "$as_dir" && as_dir=.
7902   for ac_exec_ext in '' $ac_executable_extensions; do
7903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7904     ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7906     break 2
7907   fi
7908 done
7909 done
7910 IFS=$as_save_IFS
7911
7912 fi
7913 fi
7914 WINDRES=$ac_cv_prog_WINDRES
7915 if test -n "$WINDRES"; then
7916   { echo "$as_me:$LINENO: result: $WINDRES" >&5
7917 echo "${ECHO_T}$WINDRES" >&6; }
7918 else
7919   { echo "$as_me:$LINENO: result: no" >&5
7920 echo "${ECHO_T}no" >&6; }
7921 fi
7922
7923
7924   fi
7925   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7926     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7927 set dummy ${ncn_progname}; ac_word=$2
7928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7930 if test "${ac_cv_prog_WINDRES+set}" = set; then
7931   echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933   if test -n "$WINDRES"; then
7934   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7935 else
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 for as_dir in $PATH
7938 do
7939   IFS=$as_save_IFS
7940   test -z "$as_dir" && as_dir=.
7941   for ac_exec_ext in '' $ac_executable_extensions; do
7942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7943     ac_cv_prog_WINDRES="${ncn_progname}"
7944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7945     break 2
7946   fi
7947 done
7948 done
7949 IFS=$as_save_IFS
7950
7951 fi
7952 fi
7953 WINDRES=$ac_cv_prog_WINDRES
7954 if test -n "$WINDRES"; then
7955   { echo "$as_me:$LINENO: result: $WINDRES" >&5
7956 echo "${ECHO_T}$WINDRES" >&6; }
7957 else
7958   { echo "$as_me:$LINENO: result: no" >&5
7959 echo "${ECHO_T}no" >&6; }
7960 fi
7961
7962
7963   fi
7964   test -n "$ac_cv_prog_WINDRES" && break
7965 done
7966
7967 if test -z "$ac_cv_prog_WINDRES" ; then
7968   set dummy windres
7969   if test $build = $host ; then
7970     WINDRES="$2"
7971   else
7972     WINDRES="${ncn_tool_prefix}$2"
7973   fi
7974 fi
7975
7976
7977
7978 if test -n "$OBJCOPY"; then
7979   ac_cv_prog_OBJCOPY=$OBJCOPY
7980 elif test -n "$ac_cv_prog_OBJCOPY"; then
7981   OBJCOPY=$ac_cv_prog_OBJCOPY
7982 fi
7983
7984 if test -n "$ac_cv_prog_OBJCOPY"; then
7985   for ncn_progname in objcopy; do
7986     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7987 set dummy ${ncn_progname}; ac_word=$2
7988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7990 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7991   echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993   if test -n "$OBJCOPY"; then
7994   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7995 else
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in $PATH
7998 do
7999   IFS=$as_save_IFS
8000   test -z "$as_dir" && as_dir=.
8001   for ac_exec_ext in '' $ac_executable_extensions; do
8002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8003     ac_cv_prog_OBJCOPY="${ncn_progname}"
8004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8005     break 2
8006   fi
8007 done
8008 done
8009 IFS=$as_save_IFS
8010
8011 fi
8012 fi
8013 OBJCOPY=$ac_cv_prog_OBJCOPY
8014 if test -n "$OBJCOPY"; then
8015   { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8016 echo "${ECHO_T}$OBJCOPY" >&6; }
8017 else
8018   { echo "$as_me:$LINENO: result: no" >&5
8019 echo "${ECHO_T}no" >&6; }
8020 fi
8021
8022
8023   done
8024 fi
8025
8026 for ncn_progname in objcopy; do
8027   if test -n "$ncn_tool_prefix"; then
8028     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8029 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8032 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8033   echo $ECHO_N "(cached) $ECHO_C" >&6
8034 else
8035   if test -n "$OBJCOPY"; then
8036   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8037 else
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041   IFS=$as_save_IFS
8042   test -z "$as_dir" && as_dir=.
8043   for ac_exec_ext in '' $ac_executable_extensions; do
8044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8045     ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047     break 2
8048   fi
8049 done
8050 done
8051 IFS=$as_save_IFS
8052
8053 fi
8054 fi
8055 OBJCOPY=$ac_cv_prog_OBJCOPY
8056 if test -n "$OBJCOPY"; then
8057   { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8058 echo "${ECHO_T}$OBJCOPY" >&6; }
8059 else
8060   { echo "$as_me:$LINENO: result: no" >&5
8061 echo "${ECHO_T}no" >&6; }
8062 fi
8063
8064
8065   fi
8066   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8067     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8068 set dummy ${ncn_progname}; ac_word=$2
8069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8071 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8072   echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074   if test -n "$OBJCOPY"; then
8075   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8079 do
8080   IFS=$as_save_IFS
8081   test -z "$as_dir" && as_dir=.
8082   for ac_exec_ext in '' $ac_executable_extensions; do
8083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8084     ac_cv_prog_OBJCOPY="${ncn_progname}"
8085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8086     break 2
8087   fi
8088 done
8089 done
8090 IFS=$as_save_IFS
8091
8092 fi
8093 fi
8094 OBJCOPY=$ac_cv_prog_OBJCOPY
8095 if test -n "$OBJCOPY"; then
8096   { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8097 echo "${ECHO_T}$OBJCOPY" >&6; }
8098 else
8099   { echo "$as_me:$LINENO: result: no" >&5
8100 echo "${ECHO_T}no" >&6; }
8101 fi
8102
8103
8104   fi
8105   test -n "$ac_cv_prog_OBJCOPY" && break
8106 done
8107
8108 if test -z "$ac_cv_prog_OBJCOPY" ; then
8109   set dummy objcopy
8110   if test $build = $host ; then
8111     OBJCOPY="$2"
8112   else
8113     OBJCOPY="${ncn_tool_prefix}$2"
8114   fi
8115 fi
8116
8117
8118
8119 if test -n "$OBJDUMP"; then
8120   ac_cv_prog_OBJDUMP=$OBJDUMP
8121 elif test -n "$ac_cv_prog_OBJDUMP"; then
8122   OBJDUMP=$ac_cv_prog_OBJDUMP
8123 fi
8124
8125 if test -n "$ac_cv_prog_OBJDUMP"; then
8126   for ncn_progname in objdump; do
8127     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8128 set dummy ${ncn_progname}; ac_word=$2
8129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8131 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8132   echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134   if test -n "$OBJDUMP"; then
8135   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8136 else
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8139 do
8140   IFS=$as_save_IFS
8141   test -z "$as_dir" && as_dir=.
8142   for ac_exec_ext in '' $ac_executable_extensions; do
8143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8144     ac_cv_prog_OBJDUMP="${ncn_progname}"
8145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8146     break 2
8147   fi
8148 done
8149 done
8150 IFS=$as_save_IFS
8151
8152 fi
8153 fi
8154 OBJDUMP=$ac_cv_prog_OBJDUMP
8155 if test -n "$OBJDUMP"; then
8156   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8157 echo "${ECHO_T}$OBJDUMP" >&6; }
8158 else
8159   { echo "$as_me:$LINENO: result: no" >&5
8160 echo "${ECHO_T}no" >&6; }
8161 fi
8162
8163
8164   done
8165 fi
8166
8167 for ncn_progname in objdump; do
8168   if test -n "$ncn_tool_prefix"; then
8169     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8170 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8173 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8174   echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176   if test -n "$OBJDUMP"; then
8177   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8178 else
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8181 do
8182   IFS=$as_save_IFS
8183   test -z "$as_dir" && as_dir=.
8184   for ac_exec_ext in '' $ac_executable_extensions; do
8185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8186     ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8188     break 2
8189   fi
8190 done
8191 done
8192 IFS=$as_save_IFS
8193
8194 fi
8195 fi
8196 OBJDUMP=$ac_cv_prog_OBJDUMP
8197 if test -n "$OBJDUMP"; then
8198   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8199 echo "${ECHO_T}$OBJDUMP" >&6; }
8200 else
8201   { echo "$as_me:$LINENO: result: no" >&5
8202 echo "${ECHO_T}no" >&6; }
8203 fi
8204
8205
8206   fi
8207   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8208     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8209 set dummy ${ncn_progname}; ac_word=$2
8210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8212 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8213   echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215   if test -n "$OBJDUMP"; then
8216   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8217 else
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH
8220 do
8221   IFS=$as_save_IFS
8222   test -z "$as_dir" && as_dir=.
8223   for ac_exec_ext in '' $ac_executable_extensions; do
8224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8225     ac_cv_prog_OBJDUMP="${ncn_progname}"
8226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8227     break 2
8228   fi
8229 done
8230 done
8231 IFS=$as_save_IFS
8232
8233 fi
8234 fi
8235 OBJDUMP=$ac_cv_prog_OBJDUMP
8236 if test -n "$OBJDUMP"; then
8237   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8238 echo "${ECHO_T}$OBJDUMP" >&6; }
8239 else
8240   { echo "$as_me:$LINENO: result: no" >&5
8241 echo "${ECHO_T}no" >&6; }
8242 fi
8243
8244
8245   fi
8246   test -n "$ac_cv_prog_OBJDUMP" && break
8247 done
8248
8249 if test -z "$ac_cv_prog_OBJDUMP" ; then
8250   set dummy objdump
8251   if test $build = $host ; then
8252     OBJDUMP="$2"
8253   else
8254     OBJDUMP="${ncn_tool_prefix}$2"
8255   fi
8256 fi
8257
8258
8259
8260
8261
8262
8263
8264 # Target tools.
8265
8266 # Check whether --with-build-time-tools was given.
8267 if test "${with_build_time_tools+set}" = set; then
8268   withval=$with_build_time_tools; case x"$withval" in
8269      x/*) ;;
8270      *)
8271        with_build_time_tools=
8272        { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8273 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8274        ;;
8275    esac
8276 else
8277   with_build_time_tools=
8278 fi
8279
8280
8281
8282
8283 if test -n "$CC_FOR_TARGET"; then
8284   ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8285 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8286   CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8287 fi
8288
8289 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8290   for ncn_progname in cc gcc; do
8291     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8292 set dummy ${ncn_progname}; ac_word=$2
8293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8295 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298   if test -n "$CC_FOR_TARGET"; then
8299   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8303 do
8304   IFS=$as_save_IFS
8305   test -z "$as_dir" && as_dir=.
8306   for ac_exec_ext in '' $ac_executable_extensions; do
8307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8310     break 2
8311   fi
8312 done
8313 done
8314 IFS=$as_save_IFS
8315
8316 fi
8317 fi
8318 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8319 if test -n "$CC_FOR_TARGET"; then
8320   { echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8321 echo "${ECHO_T}$CC_FOR_TARGET" >&6; }
8322 else
8323   { echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6; }
8325 fi
8326
8327
8328   done
8329 fi
8330
8331 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8332   for ncn_progname in cc gcc; do
8333     { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8334 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
8335     if test -x $with_build_time_tools/${ncn_progname}; then
8336       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8337       { echo "$as_me:$LINENO: result: yes" >&5
8338 echo "${ECHO_T}yes" >&6; }
8339       break
8340     else
8341       { echo "$as_me:$LINENO: result: no" >&5
8342 echo "${ECHO_T}no" >&6; }
8343     fi
8344   done
8345 fi
8346
8347 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8348   for ncn_progname in cc gcc; do
8349     if test -n "$ncn_target_tool_prefix"; then
8350       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8351 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8354 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8355   echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357   if test -n "$CC_FOR_TARGET"; then
8358   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8359 else
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8362 do
8363   IFS=$as_save_IFS
8364   test -z "$as_dir" && as_dir=.
8365   for ac_exec_ext in '' $ac_executable_extensions; do
8366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8367     ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8369     break 2
8370   fi
8371 done
8372 done
8373 IFS=$as_save_IFS
8374
8375 fi
8376 fi
8377 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8378 if test -n "$CC_FOR_TARGET"; then
8379   { echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8380 echo "${ECHO_T}$CC_FOR_TARGET" >&6; }
8381 else
8382   { echo "$as_me:$LINENO: result: no" >&5
8383 echo "${ECHO_T}no" >&6; }
8384 fi
8385
8386
8387     fi
8388     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8389       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8390 set dummy ${ncn_progname}; ac_word=$2
8391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8393 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8394   echo $ECHO_N "(cached) $ECHO_C" >&6
8395 else
8396   if test -n "$CC_FOR_TARGET"; then
8397   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8398 else
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8401 do
8402   IFS=$as_save_IFS
8403   test -z "$as_dir" && as_dir=.
8404   for ac_exec_ext in '' $ac_executable_extensions; do
8405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406     ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8408     break 2
8409   fi
8410 done
8411 done
8412 IFS=$as_save_IFS
8413
8414 fi
8415 fi
8416 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8417 if test -n "$CC_FOR_TARGET"; then
8418   { echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8419 echo "${ECHO_T}$CC_FOR_TARGET" >&6; }
8420 else
8421   { echo "$as_me:$LINENO: result: no" >&5
8422 echo "${ECHO_T}no" >&6; }
8423 fi
8424
8425
8426     fi
8427     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8428   done
8429 fi
8430
8431 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8432   set dummy cc gcc
8433   if test $build = $target ; then
8434     CC_FOR_TARGET="$2"
8435   else
8436     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8437   fi
8438 fi
8439
8440
8441
8442 if test -n "$CXX_FOR_TARGET"; then
8443   ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8444 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8445   CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8446 fi
8447
8448 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8449   for ncn_progname in c++ g++ cxx gxx; do
8450     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8451 set dummy ${ncn_progname}; ac_word=$2
8452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8454 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457   if test -n "$CXX_FOR_TARGET"; then
8458   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8459 else
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 for as_dir in $PATH
8462 do
8463   IFS=$as_save_IFS
8464   test -z "$as_dir" && as_dir=.
8465   for ac_exec_ext in '' $ac_executable_extensions; do
8466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8467     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8469     break 2
8470   fi
8471 done
8472 done
8473 IFS=$as_save_IFS
8474
8475 fi
8476 fi
8477 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8478 if test -n "$CXX_FOR_TARGET"; then
8479   { echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8480 echo "${ECHO_T}$CXX_FOR_TARGET" >&6; }
8481 else
8482   { echo "$as_me:$LINENO: result: no" >&5
8483 echo "${ECHO_T}no" >&6; }
8484 fi
8485
8486
8487   done
8488 fi
8489
8490 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8491   for ncn_progname in c++ g++ cxx gxx; do
8492     { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8493 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
8494     if test -x $with_build_time_tools/${ncn_progname}; then
8495       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8496       { echo "$as_me:$LINENO: result: yes" >&5
8497 echo "${ECHO_T}yes" >&6; }
8498       break
8499     else
8500       { echo "$as_me:$LINENO: result: no" >&5
8501 echo "${ECHO_T}no" >&6; }
8502     fi
8503   done
8504 fi
8505
8506 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8507   for ncn_progname in c++ g++ cxx gxx; do
8508     if test -n "$ncn_target_tool_prefix"; then
8509       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8510 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8513 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8514   echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516   if test -n "$CXX_FOR_TARGET"; then
8517   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8518 else
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 for as_dir in $PATH
8521 do
8522   IFS=$as_save_IFS
8523   test -z "$as_dir" && as_dir=.
8524   for ac_exec_ext in '' $ac_executable_extensions; do
8525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8526     ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8528     break 2
8529   fi
8530 done
8531 done
8532 IFS=$as_save_IFS
8533
8534 fi
8535 fi
8536 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8537 if test -n "$CXX_FOR_TARGET"; then
8538   { echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8539 echo "${ECHO_T}$CXX_FOR_TARGET" >&6; }
8540 else
8541   { echo "$as_me:$LINENO: result: no" >&5
8542 echo "${ECHO_T}no" >&6; }
8543 fi
8544
8545
8546     fi
8547     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8548       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8549 set dummy ${ncn_progname}; ac_word=$2
8550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8552 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8553   echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555   if test -n "$CXX_FOR_TARGET"; then
8556   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8557 else
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559 for as_dir in $PATH
8560 do
8561   IFS=$as_save_IFS
8562   test -z "$as_dir" && as_dir=.
8563   for ac_exec_ext in '' $ac_executable_extensions; do
8564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8565     ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8567     break 2
8568   fi
8569 done
8570 done
8571 IFS=$as_save_IFS
8572
8573 fi
8574 fi
8575 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8576 if test -n "$CXX_FOR_TARGET"; then
8577   { echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8578 echo "${ECHO_T}$CXX_FOR_TARGET" >&6; }
8579 else
8580   { echo "$as_me:$LINENO: result: no" >&5
8581 echo "${ECHO_T}no" >&6; }
8582 fi
8583
8584
8585     fi
8586     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8587   done
8588 fi
8589
8590 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8591   set dummy c++ g++ cxx gxx
8592   if test $build = $target ; then
8593     CXX_FOR_TARGET="$2"
8594   else
8595     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8596   fi
8597 fi
8598
8599
8600
8601 if test -n "$GCC_FOR_TARGET"; then
8602   ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8603 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8604   GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8605 fi
8606
8607 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8608   for ncn_progname in gcc; do
8609     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8610 set dummy ${ncn_progname}; ac_word=$2
8611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8613 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8614   echo $ECHO_N "(cached) $ECHO_C" >&6
8615 else
8616   if test -n "$GCC_FOR_TARGET"; then
8617   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8618 else
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620 for as_dir in $PATH
8621 do
8622   IFS=$as_save_IFS
8623   test -z "$as_dir" && as_dir=.
8624   for ac_exec_ext in '' $ac_executable_extensions; do
8625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8626     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8628     break 2
8629   fi
8630 done
8631 done
8632 IFS=$as_save_IFS
8633
8634 fi
8635 fi
8636 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8637 if test -n "$GCC_FOR_TARGET"; then
8638   { echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8639 echo "${ECHO_T}$GCC_FOR_TARGET" >&6; }
8640 else
8641   { echo "$as_me:$LINENO: result: no" >&5
8642 echo "${ECHO_T}no" >&6; }
8643 fi
8644
8645
8646   done
8647 fi
8648
8649 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8650   for ncn_progname in gcc; do
8651     { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8652 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
8653     if test -x $with_build_time_tools/${ncn_progname}; then
8654       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8655       { echo "$as_me:$LINENO: result: yes" >&5
8656 echo "${ECHO_T}yes" >&6; }
8657       break
8658     else
8659       { echo "$as_me:$LINENO: result: no" >&5
8660 echo "${ECHO_T}no" >&6; }
8661     fi
8662   done
8663 fi
8664
8665 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8666   for ncn_progname in gcc; do
8667     if test -n "$ncn_target_tool_prefix"; then
8668       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8669 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8672 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8673   echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675   if test -n "$GCC_FOR_TARGET"; then
8676   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8677 else
8678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 for as_dir in $PATH
8680 do
8681   IFS=$as_save_IFS
8682   test -z "$as_dir" && as_dir=.
8683   for ac_exec_ext in '' $ac_executable_extensions; do
8684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8685     ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8687     break 2
8688   fi
8689 done
8690 done
8691 IFS=$as_save_IFS
8692
8693 fi
8694 fi
8695 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8696 if test -n "$GCC_FOR_TARGET"; then
8697   { echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8698 echo "${ECHO_T}$GCC_FOR_TARGET" >&6; }
8699 else
8700   { echo "$as_me:$LINENO: result: no" >&5
8701 echo "${ECHO_T}no" >&6; }
8702 fi
8703
8704
8705     fi
8706     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8707       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8708 set dummy ${ncn_progname}; ac_word=$2
8709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8711 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8712   echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714   if test -n "$GCC_FOR_TARGET"; then
8715   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8716 else
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 for as_dir in $PATH
8719 do
8720   IFS=$as_save_IFS
8721   test -z "$as_dir" && as_dir=.
8722   for ac_exec_ext in '' $ac_executable_extensions; do
8723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8724     ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8726     break 2
8727   fi
8728 done
8729 done
8730 IFS=$as_save_IFS
8731
8732 fi
8733 fi
8734 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8735 if test -n "$GCC_FOR_TARGET"; then
8736   { echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8737 echo "${ECHO_T}$GCC_FOR_TARGET" >&6; }
8738 else
8739   { echo "$as_me:$LINENO: result: no" >&5
8740 echo "${ECHO_T}no" >&6; }
8741 fi
8742
8743
8744     fi
8745     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8746   done
8747 fi
8748
8749 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8750   GCC_FOR_TARGET="${CC_FOR_TARGET}"
8751 fi
8752
8753
8754
8755 if test -n "$GCJ_FOR_TARGET"; then
8756   ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8757 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8758   GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8759 fi
8760
8761 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8762   for ncn_progname in gcj; do
8763     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8764 set dummy ${ncn_progname}; ac_word=$2
8765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8767 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8768   echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770   if test -n "$GCJ_FOR_TARGET"; then
8771   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8772 else
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in $PATH
8775 do
8776   IFS=$as_save_IFS
8777   test -z "$as_dir" && as_dir=.
8778   for ac_exec_ext in '' $ac_executable_extensions; do
8779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8780     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8782     break 2
8783   fi
8784 done
8785 done
8786 IFS=$as_save_IFS
8787
8788 fi
8789 fi
8790 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8791 if test -n "$GCJ_FOR_TARGET"; then
8792   { echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8793 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6; }
8794 else
8795   { echo "$as_me:$LINENO: result: no" >&5
8796 echo "${ECHO_T}no" >&6; }
8797 fi
8798
8799
8800   done
8801 fi
8802
8803 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8804   for ncn_progname in gcj; do
8805     { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8806 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
8807     if test -x $with_build_time_tools/${ncn_progname}; then
8808       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8809       { echo "$as_me:$LINENO: result: yes" >&5
8810 echo "${ECHO_T}yes" >&6; }
8811       break
8812     else
8813       { echo "$as_me:$LINENO: result: no" >&5
8814 echo "${ECHO_T}no" >&6; }
8815     fi
8816   done
8817 fi
8818
8819 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8820   for ncn_progname in gcj; do
8821     if test -n "$ncn_target_tool_prefix"; then
8822       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8823 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8826 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8827   echo $ECHO_N "(cached) $ECHO_C" >&6
8828 else
8829   if test -n "$GCJ_FOR_TARGET"; then
8830   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8831 else
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $PATH
8834 do
8835   IFS=$as_save_IFS
8836   test -z "$as_dir" && as_dir=.
8837   for ac_exec_ext in '' $ac_executable_extensions; do
8838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8839     ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8841     break 2
8842   fi
8843 done
8844 done
8845 IFS=$as_save_IFS
8846
8847 fi
8848 fi
8849 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8850 if test -n "$GCJ_FOR_TARGET"; then
8851   { echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8852 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6; }
8853 else
8854   { echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6; }
8856 fi
8857
8858
8859     fi
8860     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8861       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8862 set dummy ${ncn_progname}; ac_word=$2
8863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8865 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8866   echo $ECHO_N "(cached) $ECHO_C" >&6
8867 else
8868   if test -n "$GCJ_FOR_TARGET"; then
8869   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8870 else
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 for as_dir in $PATH
8873 do
8874   IFS=$as_save_IFS
8875   test -z "$as_dir" && as_dir=.
8876   for ac_exec_ext in '' $ac_executable_extensions; do
8877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8878     ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8880     break 2
8881   fi
8882 done
8883 done
8884 IFS=$as_save_IFS
8885
8886 fi
8887 fi
8888 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8889 if test -n "$GCJ_FOR_TARGET"; then
8890   { echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8891 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6; }
8892 else
8893   { echo "$as_me:$LINENO: result: no" >&5
8894 echo "${ECHO_T}no" >&6; }
8895 fi
8896
8897
8898     fi
8899     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8900   done
8901 fi
8902
8903 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8904   set dummy gcj
8905   if test $build = $target ; then
8906     GCJ_FOR_TARGET="$2"
8907   else
8908     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8909   fi
8910 fi
8911
8912
8913
8914 if test -n "$GFORTRAN_FOR_TARGET"; then
8915   ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8916 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8917   GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8918 fi
8919
8920 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8921   for ncn_progname in gfortran; do
8922     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8923 set dummy ${ncn_progname}; ac_word=$2
8924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8926 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8927   echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929   if test -n "$GFORTRAN_FOR_TARGET"; then
8930   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8931 else
8932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933 for as_dir in $PATH
8934 do
8935   IFS=$as_save_IFS
8936   test -z "$as_dir" && as_dir=.
8937   for ac_exec_ext in '' $ac_executable_extensions; do
8938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8939     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8941     break 2
8942   fi
8943 done
8944 done
8945 IFS=$as_save_IFS
8946
8947 fi
8948 fi
8949 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8950 if test -n "$GFORTRAN_FOR_TARGET"; then
8951   { echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8952 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6; }
8953 else
8954   { echo "$as_me:$LINENO: result: no" >&5
8955 echo "${ECHO_T}no" >&6; }
8956 fi
8957
8958
8959   done
8960 fi
8961
8962 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
8963   for ncn_progname in gfortran; do
8964     { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8965 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
8966     if test -x $with_build_time_tools/${ncn_progname}; then
8967       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8968       { echo "$as_me:$LINENO: result: yes" >&5
8969 echo "${ECHO_T}yes" >&6; }
8970       break
8971     else
8972       { echo "$as_me:$LINENO: result: no" >&5
8973 echo "${ECHO_T}no" >&6; }
8974     fi
8975   done
8976 fi
8977
8978 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8979   for ncn_progname in gfortran; do
8980     if test -n "$ncn_target_tool_prefix"; then
8981       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8982 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8985 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8986   echo $ECHO_N "(cached) $ECHO_C" >&6
8987 else
8988   if test -n "$GFORTRAN_FOR_TARGET"; then
8989   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8990 else
8991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992 for as_dir in $PATH
8993 do
8994   IFS=$as_save_IFS
8995   test -z "$as_dir" && as_dir=.
8996   for ac_exec_ext in '' $ac_executable_extensions; do
8997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8998     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9000     break 2
9001   fi
9002 done
9003 done
9004 IFS=$as_save_IFS
9005
9006 fi
9007 fi
9008 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9009 if test -n "$GFORTRAN_FOR_TARGET"; then
9010   { echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9011 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6; }
9012 else
9013   { echo "$as_me:$LINENO: result: no" >&5
9014 echo "${ECHO_T}no" >&6; }
9015 fi
9016
9017
9018     fi
9019     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9020       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9021 set dummy ${ncn_progname}; ac_word=$2
9022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9024 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027   if test -n "$GFORTRAN_FOR_TARGET"; then
9028   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9029 else
9030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031 for as_dir in $PATH
9032 do
9033   IFS=$as_save_IFS
9034   test -z "$as_dir" && as_dir=.
9035   for ac_exec_ext in '' $ac_executable_extensions; do
9036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9037     ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9039     break 2
9040   fi
9041 done
9042 done
9043 IFS=$as_save_IFS
9044
9045 fi
9046 fi
9047 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9048 if test -n "$GFORTRAN_FOR_TARGET"; then
9049   { echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9050 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6; }
9051 else
9052   { echo "$as_me:$LINENO: result: no" >&5
9053 echo "${ECHO_T}no" >&6; }
9054 fi
9055
9056
9057     fi
9058     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9059   done
9060 fi
9061
9062 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9063   set dummy gfortran
9064   if test $build = $target ; then
9065     GFORTRAN_FOR_TARGET="$2"
9066   else
9067     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9068   fi
9069 fi
9070
9071
9072
9073 cat > conftest.c << \EOF
9074 #ifdef __GNUC__
9075   gcc_yay;
9076 #endif
9077 EOF
9078 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9079   have_gcc_for_target=yes
9080 else
9081   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9082   have_gcc_for_target=no
9083 fi
9084 rm conftest.c
9085
9086
9087
9088
9089 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9090   if test -n "$with_build_time_tools"; then
9091     { echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9092 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6; }
9093     if test -x $with_build_time_tools/ar; then
9094       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9095       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9096       { echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9097 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6; }
9098     else
9099       { echo "$as_me:$LINENO: result: no" >&5
9100 echo "${ECHO_T}no" >&6; }
9101     fi
9102   elif test $build != $host && test $have_gcc_for_target = yes; then
9103     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
9104     test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
9105     ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9106   fi
9107 fi
9108 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9109   # Extract the first word of "ar", so it can be a program name with args.
9110 set dummy ar; ac_word=$2
9111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9113 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9114   echo $ECHO_N "(cached) $ECHO_C" >&6
9115 else
9116   case $AR_FOR_TARGET in
9117   [\\/]* | ?:[\\/]*)
9118   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9119   ;;
9120   *)
9121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122 for as_dir in $gcc_cv_tool_dirs
9123 do
9124   IFS=$as_save_IFS
9125   test -z "$as_dir" && as_dir=.
9126   for ac_exec_ext in '' $ac_executable_extensions; do
9127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9128     ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9130     break 2
9131   fi
9132 done
9133 done
9134 IFS=$as_save_IFS
9135
9136   ;;
9137 esac
9138 fi
9139 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9140 if test -n "$AR_FOR_TARGET"; then
9141   { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9142 echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
9143 else
9144   { echo "$as_me:$LINENO: result: no" >&5
9145 echo "${ECHO_T}no" >&6; }
9146 fi
9147
9148
9149 fi
9150 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9151
9152
9153 if test -n "$AR_FOR_TARGET"; then
9154   ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9155 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9156   AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9157 fi
9158
9159 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9160   for ncn_progname in ar; do
9161     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9162 set dummy ${ncn_progname}; ac_word=$2
9163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9165 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9166   echo $ECHO_N "(cached) $ECHO_C" >&6
9167 else
9168   if test -n "$AR_FOR_TARGET"; then
9169   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9170 else
9171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9172 for as_dir in $PATH
9173 do
9174   IFS=$as_save_IFS
9175   test -z "$as_dir" && as_dir=.
9176   for ac_exec_ext in '' $ac_executable_extensions; do
9177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9178     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9180     break 2
9181   fi
9182 done
9183 done
9184 IFS=$as_save_IFS
9185
9186 fi
9187 fi
9188 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9189 if test -n "$AR_FOR_TARGET"; then
9190   { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9191 echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
9192 else
9193   { echo "$as_me:$LINENO: result: no" >&5
9194 echo "${ECHO_T}no" >&6; }
9195 fi
9196
9197
9198   done
9199 fi
9200
9201 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
9202   for ncn_progname in ar; do
9203     { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9204 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
9205     if test -x $with_build_time_tools/${ncn_progname}; then
9206       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9207       { echo "$as_me:$LINENO: result: yes" >&5
9208 echo "${ECHO_T}yes" >&6; }
9209       break
9210     else
9211       { echo "$as_me:$LINENO: result: no" >&5
9212 echo "${ECHO_T}no" >&6; }
9213     fi
9214   done
9215 fi
9216
9217 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9218   for ncn_progname in ar; do
9219     if test -n "$ncn_target_tool_prefix"; then
9220       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9221 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9224 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9225   echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227   if test -n "$AR_FOR_TARGET"; then
9228   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9229 else
9230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231 for as_dir in $PATH
9232 do
9233   IFS=$as_save_IFS
9234   test -z "$as_dir" && as_dir=.
9235   for ac_exec_ext in '' $ac_executable_extensions; do
9236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9237     ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9239     break 2
9240   fi
9241 done
9242 done
9243 IFS=$as_save_IFS
9244
9245 fi
9246 fi
9247 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9248 if test -n "$AR_FOR_TARGET"; then
9249   { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9250 echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
9251 else
9252   { echo "$as_me:$LINENO: result: no" >&5
9253 echo "${ECHO_T}no" >&6; }
9254 fi
9255
9256
9257     fi
9258     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9259       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9260 set dummy ${ncn_progname}; ac_word=$2
9261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9263 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9264   echo $ECHO_N "(cached) $ECHO_C" >&6
9265 else
9266   if test -n "$AR_FOR_TARGET"; then
9267   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9268 else
9269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9270 for as_dir in $PATH
9271 do
9272   IFS=$as_save_IFS
9273   test -z "$as_dir" && as_dir=.
9274   for ac_exec_ext in '' $ac_executable_extensions; do
9275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9276     ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9278     break 2
9279   fi
9280 done
9281 done
9282 IFS=$as_save_IFS
9283
9284 fi
9285 fi
9286 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9287 if test -n "$AR_FOR_TARGET"; then
9288   { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9289 echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
9290 else
9291   { echo "$as_me:$LINENO: result: no" >&5
9292 echo "${ECHO_T}no" >&6; }
9293 fi
9294
9295
9296     fi
9297     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9298   done
9299 fi
9300
9301 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9302   set dummy ar
9303   if test $build = $target ; then
9304     AR_FOR_TARGET="$2"
9305   else
9306     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
9307   fi
9308 fi
9309
9310 else
9311   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9312 fi
9313
9314
9315
9316
9317 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9318   if test -n "$with_build_time_tools"; then
9319     { echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9320 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6; }
9321     if test -x $with_build_time_tools/as; then
9322       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9323       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9324       { echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9325 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6; }
9326     else
9327       { echo "$as_me:$LINENO: result: no" >&5
9328 echo "${ECHO_T}no" >&6; }
9329     fi
9330   elif test $build != $host && test $have_gcc_for_target = yes; then
9331     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
9332     test $AS_FOR_TARGET=as && AS_FOR_TARGET=
9333     ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9334   fi
9335 fi
9336 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9337   # Extract the first word of "as", so it can be a program name with args.
9338 set dummy as; ac_word=$2
9339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9341 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9342   echo $ECHO_N "(cached) $ECHO_C" >&6
9343 else
9344   case $AS_FOR_TARGET in
9345   [\\/]* | ?:[\\/]*)
9346   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9347   ;;
9348   *)
9349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350 for as_dir in $gcc_cv_tool_dirs
9351 do
9352   IFS=$as_save_IFS
9353   test -z "$as_dir" && as_dir=.
9354   for ac_exec_ext in '' $ac_executable_extensions; do
9355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9356     ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9358     break 2
9359   fi
9360 done
9361 done
9362 IFS=$as_save_IFS
9363
9364   ;;
9365 esac
9366 fi
9367 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9368 if test -n "$AS_FOR_TARGET"; then
9369   { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9370 echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
9371 else
9372   { echo "$as_me:$LINENO: result: no" >&5
9373 echo "${ECHO_T}no" >&6; }
9374 fi
9375
9376
9377 fi
9378 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9379
9380
9381 if test -n "$AS_FOR_TARGET"; then
9382   ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9383 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9384   AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9385 fi
9386
9387 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9388   for ncn_progname in as; do
9389     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9390 set dummy ${ncn_progname}; ac_word=$2
9391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9393 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9394   echo $ECHO_N "(cached) $ECHO_C" >&6
9395 else
9396   if test -n "$AS_FOR_TARGET"; then
9397   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9398 else
9399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400 for as_dir in $PATH
9401 do
9402   IFS=$as_save_IFS
9403   test -z "$as_dir" && as_dir=.
9404   for ac_exec_ext in '' $ac_executable_extensions; do
9405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9406     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9408     break 2
9409   fi
9410 done
9411 done
9412 IFS=$as_save_IFS
9413
9414 fi
9415 fi
9416 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9417 if test -n "$AS_FOR_TARGET"; then
9418   { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9419 echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
9420 else
9421   { echo "$as_me:$LINENO: result: no" >&5
9422 echo "${ECHO_T}no" >&6; }
9423 fi
9424
9425
9426   done
9427 fi
9428
9429 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9430   for ncn_progname in as; do
9431     { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9432 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
9433     if test -x $with_build_time_tools/${ncn_progname}; then
9434       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9435       { echo "$as_me:$LINENO: result: yes" >&5
9436 echo "${ECHO_T}yes" >&6; }
9437       break
9438     else
9439       { echo "$as_me:$LINENO: result: no" >&5
9440 echo "${ECHO_T}no" >&6; }
9441     fi
9442   done
9443 fi
9444
9445 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9446   for ncn_progname in as; do
9447     if test -n "$ncn_target_tool_prefix"; then
9448       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9449 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9452 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9453   echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455   if test -n "$AS_FOR_TARGET"; then
9456   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9457 else
9458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459 for as_dir in $PATH
9460 do
9461   IFS=$as_save_IFS
9462   test -z "$as_dir" && as_dir=.
9463   for ac_exec_ext in '' $ac_executable_extensions; do
9464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9465     ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9467     break 2
9468   fi
9469 done
9470 done
9471 IFS=$as_save_IFS
9472
9473 fi
9474 fi
9475 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9476 if test -n "$AS_FOR_TARGET"; then
9477   { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9478 echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
9479 else
9480   { echo "$as_me:$LINENO: result: no" >&5
9481 echo "${ECHO_T}no" >&6; }
9482 fi
9483
9484
9485     fi
9486     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9487       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9488 set dummy ${ncn_progname}; ac_word=$2
9489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9491 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9492   echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494   if test -n "$AS_FOR_TARGET"; then
9495   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9496 else
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 for as_dir in $PATH
9499 do
9500   IFS=$as_save_IFS
9501   test -z "$as_dir" && as_dir=.
9502   for ac_exec_ext in '' $ac_executable_extensions; do
9503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9504     ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9506     break 2
9507   fi
9508 done
9509 done
9510 IFS=$as_save_IFS
9511
9512 fi
9513 fi
9514 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9515 if test -n "$AS_FOR_TARGET"; then
9516   { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9517 echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
9518 else
9519   { echo "$as_me:$LINENO: result: no" >&5
9520 echo "${ECHO_T}no" >&6; }
9521 fi
9522
9523
9524     fi
9525     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9526   done
9527 fi
9528
9529 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9530   set dummy as
9531   if test $build = $target ; then
9532     AS_FOR_TARGET="$2"
9533   else
9534     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9535   fi
9536 fi
9537
9538 else
9539   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9540 fi
9541
9542
9543
9544
9545 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9546   if test -n "$with_build_time_tools"; then
9547     { echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9548 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6; }
9549     if test -x $with_build_time_tools/dlltool; then
9550       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9551       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9552       { echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9553 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
9554     else
9555       { echo "$as_me:$LINENO: result: no" >&5
9556 echo "${ECHO_T}no" >&6; }
9557     fi
9558   elif test $build != $host && test $have_gcc_for_target = yes; then
9559     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9560     test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
9561     ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9562   fi
9563 fi
9564 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9565   # Extract the first word of "dlltool", so it can be a program name with args.
9566 set dummy dlltool; ac_word=$2
9567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9569 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9570   echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572   case $DLLTOOL_FOR_TARGET in
9573   [\\/]* | ?:[\\/]*)
9574   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9575   ;;
9576   *)
9577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $gcc_cv_tool_dirs
9579 do
9580   IFS=$as_save_IFS
9581   test -z "$as_dir" && as_dir=.
9582   for ac_exec_ext in '' $ac_executable_extensions; do
9583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9584     ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9586     break 2
9587   fi
9588 done
9589 done
9590 IFS=$as_save_IFS
9591
9592   ;;
9593 esac
9594 fi
9595 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9596 if test -n "$DLLTOOL_FOR_TARGET"; then
9597   { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9598 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
9599 else
9600   { echo "$as_me:$LINENO: result: no" >&5
9601 echo "${ECHO_T}no" >&6; }
9602 fi
9603
9604
9605 fi
9606 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9607
9608
9609 if test -n "$DLLTOOL_FOR_TARGET"; then
9610   ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9611 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9612   DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9613 fi
9614
9615 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9616   for ncn_progname in dlltool; do
9617     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9618 set dummy ${ncn_progname}; ac_word=$2
9619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9621 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9622   echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624   if test -n "$DLLTOOL_FOR_TARGET"; then
9625   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9626 else
9627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9628 for as_dir in $PATH
9629 do
9630   IFS=$as_save_IFS
9631   test -z "$as_dir" && as_dir=.
9632   for ac_exec_ext in '' $ac_executable_extensions; do
9633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9634     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9636     break 2
9637   fi
9638 done
9639 done
9640 IFS=$as_save_IFS
9641
9642 fi
9643 fi
9644 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9645 if test -n "$DLLTOOL_FOR_TARGET"; then
9646   { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9647 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
9648 else
9649   { echo "$as_me:$LINENO: result: no" >&5
9650 echo "${ECHO_T}no" >&6; }
9651 fi
9652
9653
9654   done
9655 fi
9656
9657 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9658   for ncn_progname in dlltool; do
9659     { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9660 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
9661     if test -x $with_build_time_tools/${ncn_progname}; then
9662       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9663       { echo "$as_me:$LINENO: result: yes" >&5
9664 echo "${ECHO_T}yes" >&6; }
9665       break
9666     else
9667       { echo "$as_me:$LINENO: result: no" >&5
9668 echo "${ECHO_T}no" >&6; }
9669     fi
9670   done
9671 fi
9672
9673 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9674   for ncn_progname in dlltool; do
9675     if test -n "$ncn_target_tool_prefix"; then
9676       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9677 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9680 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9681   echo $ECHO_N "(cached) $ECHO_C" >&6
9682 else
9683   if test -n "$DLLTOOL_FOR_TARGET"; then
9684   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9685 else
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in $PATH
9688 do
9689   IFS=$as_save_IFS
9690   test -z "$as_dir" && as_dir=.
9691   for ac_exec_ext in '' $ac_executable_extensions; do
9692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9695     break 2
9696   fi
9697 done
9698 done
9699 IFS=$as_save_IFS
9700
9701 fi
9702 fi
9703 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9704 if test -n "$DLLTOOL_FOR_TARGET"; then
9705   { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9706 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
9707 else
9708   { echo "$as_me:$LINENO: result: no" >&5
9709 echo "${ECHO_T}no" >&6; }
9710 fi
9711
9712
9713     fi
9714     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9715       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9716 set dummy ${ncn_progname}; ac_word=$2
9717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9719 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9720   echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722   if test -n "$DLLTOOL_FOR_TARGET"; then
9723   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9724 else
9725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726 for as_dir in $PATH
9727 do
9728   IFS=$as_save_IFS
9729   test -z "$as_dir" && as_dir=.
9730   for ac_exec_ext in '' $ac_executable_extensions; do
9731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9732     ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9734     break 2
9735   fi
9736 done
9737 done
9738 IFS=$as_save_IFS
9739
9740 fi
9741 fi
9742 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9743 if test -n "$DLLTOOL_FOR_TARGET"; then
9744   { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9745 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
9746 else
9747   { echo "$as_me:$LINENO: result: no" >&5
9748 echo "${ECHO_T}no" >&6; }
9749 fi
9750
9751
9752     fi
9753     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9754   done
9755 fi
9756
9757 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9758   set dummy dlltool
9759   if test $build = $target ; then
9760     DLLTOOL_FOR_TARGET="$2"
9761   else
9762     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9763   fi
9764 fi
9765
9766 else
9767   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9768 fi
9769
9770
9771
9772
9773 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9774   if test -n "$with_build_time_tools"; then
9775     { echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9776 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6; }
9777     if test -x $with_build_time_tools/ld; then
9778       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9779       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9780       { echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9781 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6; }
9782     else
9783       { echo "$as_me:$LINENO: result: no" >&5
9784 echo "${ECHO_T}no" >&6; }
9785     fi
9786   elif test $build != $host && test $have_gcc_for_target = yes; then
9787     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9788     test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
9789     ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9790   fi
9791 fi
9792 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9793   # Extract the first word of "ld", so it can be a program name with args.
9794 set dummy ld; ac_word=$2
9795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9797 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9798   echo $ECHO_N "(cached) $ECHO_C" >&6
9799 else
9800   case $LD_FOR_TARGET in
9801   [\\/]* | ?:[\\/]*)
9802   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9803   ;;
9804   *)
9805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806 for as_dir in $gcc_cv_tool_dirs
9807 do
9808   IFS=$as_save_IFS
9809   test -z "$as_dir" && as_dir=.
9810   for ac_exec_ext in '' $ac_executable_extensions; do
9811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9812     ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9814     break 2
9815   fi
9816 done
9817 done
9818 IFS=$as_save_IFS
9819
9820   ;;
9821 esac
9822 fi
9823 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9824 if test -n "$LD_FOR_TARGET"; then
9825   { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9826 echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
9827 else
9828   { echo "$as_me:$LINENO: result: no" >&5
9829 echo "${ECHO_T}no" >&6; }
9830 fi
9831
9832
9833 fi
9834 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9835
9836
9837 if test -n "$LD_FOR_TARGET"; then
9838   ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9839 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9840   LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9841 fi
9842
9843 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9844   for ncn_progname in ld; do
9845     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9846 set dummy ${ncn_progname}; ac_word=$2
9847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9849 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9850   echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852   if test -n "$LD_FOR_TARGET"; then
9853   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9854 else
9855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856 for as_dir in $PATH
9857 do
9858   IFS=$as_save_IFS
9859   test -z "$as_dir" && as_dir=.
9860   for ac_exec_ext in '' $ac_executable_extensions; do
9861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9862     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9864     break 2
9865   fi
9866 done
9867 done
9868 IFS=$as_save_IFS
9869
9870 fi
9871 fi
9872 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9873 if test -n "$LD_FOR_TARGET"; then
9874   { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9875 echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
9876 else
9877   { echo "$as_me:$LINENO: result: no" >&5
9878 echo "${ECHO_T}no" >&6; }
9879 fi
9880
9881
9882   done
9883 fi
9884
9885 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9886   for ncn_progname in ld; do
9887     { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9888 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
9889     if test -x $with_build_time_tools/${ncn_progname}; then
9890       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9891       { echo "$as_me:$LINENO: result: yes" >&5
9892 echo "${ECHO_T}yes" >&6; }
9893       break
9894     else
9895       { echo "$as_me:$LINENO: result: no" >&5
9896 echo "${ECHO_T}no" >&6; }
9897     fi
9898   done
9899 fi
9900
9901 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9902   for ncn_progname in ld; do
9903     if test -n "$ncn_target_tool_prefix"; then
9904       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9905 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9908 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9909   echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911   if test -n "$LD_FOR_TARGET"; then
9912   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9913 else
9914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915 for as_dir in $PATH
9916 do
9917   IFS=$as_save_IFS
9918   test -z "$as_dir" && as_dir=.
9919   for ac_exec_ext in '' $ac_executable_extensions; do
9920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9921     ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9923     break 2
9924   fi
9925 done
9926 done
9927 IFS=$as_save_IFS
9928
9929 fi
9930 fi
9931 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9932 if test -n "$LD_FOR_TARGET"; then
9933   { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9934 echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
9935 else
9936   { echo "$as_me:$LINENO: result: no" >&5
9937 echo "${ECHO_T}no" >&6; }
9938 fi
9939
9940
9941     fi
9942     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9943       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9944 set dummy ${ncn_progname}; ac_word=$2
9945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9947 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9948   echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950   if test -n "$LD_FOR_TARGET"; then
9951   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9952 else
9953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954 for as_dir in $PATH
9955 do
9956   IFS=$as_save_IFS
9957   test -z "$as_dir" && as_dir=.
9958   for ac_exec_ext in '' $ac_executable_extensions; do
9959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9960     ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9962     break 2
9963   fi
9964 done
9965 done
9966 IFS=$as_save_IFS
9967
9968 fi
9969 fi
9970 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9971 if test -n "$LD_FOR_TARGET"; then
9972   { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9973 echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
9974 else
9975   { echo "$as_me:$LINENO: result: no" >&5
9976 echo "${ECHO_T}no" >&6; }
9977 fi
9978
9979
9980     fi
9981     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9982   done
9983 fi
9984
9985 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9986   set dummy ld
9987   if test $build = $target ; then
9988     LD_FOR_TARGET="$2"
9989   else
9990     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9991   fi
9992 fi
9993
9994 else
9995   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9996 fi
9997
9998
9999
10000
10001 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10002   if test -n "$with_build_time_tools"; then
10003     { echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10004 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6; }
10005     if test -x $with_build_time_tools/lipo; then
10006       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10007       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10008       { echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10009 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6; }
10010     else
10011       { echo "$as_me:$LINENO: result: no" >&5
10012 echo "${ECHO_T}no" >&6; }
10013     fi
10014   elif test $build != $host && test $have_gcc_for_target = yes; then
10015     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
10016     test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
10017     ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10018   fi
10019 fi
10020 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10021   # Extract the first word of "lipo", so it can be a program name with args.
10022 set dummy lipo; ac_word=$2
10023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10025 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10026   echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028   case $LIPO_FOR_TARGET in
10029   [\\/]* | ?:[\\/]*)
10030   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10031   ;;
10032   *)
10033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034 for as_dir in $gcc_cv_tool_dirs
10035 do
10036   IFS=$as_save_IFS
10037   test -z "$as_dir" && as_dir=.
10038   for ac_exec_ext in '' $ac_executable_extensions; do
10039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10040     ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10042     break 2
10043   fi
10044 done
10045 done
10046 IFS=$as_save_IFS
10047
10048   ;;
10049 esac
10050 fi
10051 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10052 if test -n "$LIPO_FOR_TARGET"; then
10053   { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10054 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
10055 else
10056   { echo "$as_me:$LINENO: result: no" >&5
10057 echo "${ECHO_T}no" >&6; }
10058 fi
10059
10060
10061 fi
10062 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10063
10064
10065 if test -n "$LIPO_FOR_TARGET"; then
10066   ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10067 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10068   LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10069 fi
10070
10071 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10072   for ncn_progname in lipo; do
10073     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10074 set dummy ${ncn_progname}; ac_word=$2
10075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10077 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10078   echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080   if test -n "$LIPO_FOR_TARGET"; then
10081   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10082 else
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10085 do
10086   IFS=$as_save_IFS
10087   test -z "$as_dir" && as_dir=.
10088   for ac_exec_ext in '' $ac_executable_extensions; do
10089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10090     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10092     break 2
10093   fi
10094 done
10095 done
10096 IFS=$as_save_IFS
10097
10098 fi
10099 fi
10100 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10101 if test -n "$LIPO_FOR_TARGET"; then
10102   { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10103 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
10104 else
10105   { echo "$as_me:$LINENO: result: no" >&5
10106 echo "${ECHO_T}no" >&6; }
10107 fi
10108
10109
10110   done
10111 fi
10112
10113 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
10114   for ncn_progname in lipo; do
10115     { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10116 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
10117     if test -x $with_build_time_tools/${ncn_progname}; then
10118       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10119       { echo "$as_me:$LINENO: result: yes" >&5
10120 echo "${ECHO_T}yes" >&6; }
10121       break
10122     else
10123       { echo "$as_me:$LINENO: result: no" >&5
10124 echo "${ECHO_T}no" >&6; }
10125     fi
10126   done
10127 fi
10128
10129 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10130   for ncn_progname in lipo; do
10131     if test -n "$ncn_target_tool_prefix"; then
10132       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10133 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10136 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10137   echo $ECHO_N "(cached) $ECHO_C" >&6
10138 else
10139   if test -n "$LIPO_FOR_TARGET"; then
10140   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10141 else
10142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143 for as_dir in $PATH
10144 do
10145   IFS=$as_save_IFS
10146   test -z "$as_dir" && as_dir=.
10147   for ac_exec_ext in '' $ac_executable_extensions; do
10148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10149     ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10151     break 2
10152   fi
10153 done
10154 done
10155 IFS=$as_save_IFS
10156
10157 fi
10158 fi
10159 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10160 if test -n "$LIPO_FOR_TARGET"; then
10161   { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10162 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
10163 else
10164   { echo "$as_me:$LINENO: result: no" >&5
10165 echo "${ECHO_T}no" >&6; }
10166 fi
10167
10168
10169     fi
10170     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10171       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10172 set dummy ${ncn_progname}; ac_word=$2
10173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10175 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10176   echo $ECHO_N "(cached) $ECHO_C" >&6
10177 else
10178   if test -n "$LIPO_FOR_TARGET"; then
10179   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10180 else
10181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182 for as_dir in $PATH
10183 do
10184   IFS=$as_save_IFS
10185   test -z "$as_dir" && as_dir=.
10186   for ac_exec_ext in '' $ac_executable_extensions; do
10187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10188     ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10190     break 2
10191   fi
10192 done
10193 done
10194 IFS=$as_save_IFS
10195
10196 fi
10197 fi
10198 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10199 if test -n "$LIPO_FOR_TARGET"; then
10200   { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10201 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
10202 else
10203   { echo "$as_me:$LINENO: result: no" >&5
10204 echo "${ECHO_T}no" >&6; }
10205 fi
10206
10207
10208     fi
10209     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10210   done
10211 fi
10212
10213 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10214   set dummy lipo
10215   if test $build = $target ; then
10216     LIPO_FOR_TARGET="$2"
10217   else
10218     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10219   fi
10220 fi
10221
10222 else
10223   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10224 fi
10225
10226
10227
10228
10229 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10230   if test -n "$with_build_time_tools"; then
10231     { echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10232 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6; }
10233     if test -x $with_build_time_tools/nm; then
10234       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10235       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10236       { echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10237 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6; }
10238     else
10239       { echo "$as_me:$LINENO: result: no" >&5
10240 echo "${ECHO_T}no" >&6; }
10241     fi
10242   elif test $build != $host && test $have_gcc_for_target = yes; then
10243     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10244     test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
10245     ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10246   fi
10247 fi
10248 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10249   # Extract the first word of "nm", so it can be a program name with args.
10250 set dummy nm; ac_word=$2
10251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10253 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10254   echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256   case $NM_FOR_TARGET in
10257   [\\/]* | ?:[\\/]*)
10258   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10259   ;;
10260   *)
10261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262 for as_dir in $gcc_cv_tool_dirs
10263 do
10264   IFS=$as_save_IFS
10265   test -z "$as_dir" && as_dir=.
10266   for ac_exec_ext in '' $ac_executable_extensions; do
10267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10268     ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10270     break 2
10271   fi
10272 done
10273 done
10274 IFS=$as_save_IFS
10275
10276   ;;
10277 esac
10278 fi
10279 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10280 if test -n "$NM_FOR_TARGET"; then
10281   { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10282 echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
10283 else
10284   { echo "$as_me:$LINENO: result: no" >&5
10285 echo "${ECHO_T}no" >&6; }
10286 fi
10287
10288
10289 fi
10290 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10291
10292
10293 if test -n "$NM_FOR_TARGET"; then
10294   ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10295 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10296   NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10297 fi
10298
10299 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10300   for ncn_progname in nm; do
10301     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10302 set dummy ${ncn_progname}; ac_word=$2
10303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10305 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10306   echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308   if test -n "$NM_FOR_TARGET"; then
10309   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10310 else
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312 for as_dir in $PATH
10313 do
10314   IFS=$as_save_IFS
10315   test -z "$as_dir" && as_dir=.
10316   for ac_exec_ext in '' $ac_executable_extensions; do
10317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10318     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10320     break 2
10321   fi
10322 done
10323 done
10324 IFS=$as_save_IFS
10325
10326 fi
10327 fi
10328 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10329 if test -n "$NM_FOR_TARGET"; then
10330   { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10331 echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
10332 else
10333   { echo "$as_me:$LINENO: result: no" >&5
10334 echo "${ECHO_T}no" >&6; }
10335 fi
10336
10337
10338   done
10339 fi
10340
10341 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
10342   for ncn_progname in nm; do
10343     { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10344 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
10345     if test -x $with_build_time_tools/${ncn_progname}; then
10346       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10347       { echo "$as_me:$LINENO: result: yes" >&5
10348 echo "${ECHO_T}yes" >&6; }
10349       break
10350     else
10351       { echo "$as_me:$LINENO: result: no" >&5
10352 echo "${ECHO_T}no" >&6; }
10353     fi
10354   done
10355 fi
10356
10357 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10358   for ncn_progname in nm; do
10359     if test -n "$ncn_target_tool_prefix"; then
10360       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10361 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10364 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10365   echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367   if test -n "$NM_FOR_TARGET"; then
10368   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10369 else
10370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10372 do
10373   IFS=$as_save_IFS
10374   test -z "$as_dir" && as_dir=.
10375   for ac_exec_ext in '' $ac_executable_extensions; do
10376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10377     ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10379     break 2
10380   fi
10381 done
10382 done
10383 IFS=$as_save_IFS
10384
10385 fi
10386 fi
10387 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10388 if test -n "$NM_FOR_TARGET"; then
10389   { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10390 echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
10391 else
10392   { echo "$as_me:$LINENO: result: no" >&5
10393 echo "${ECHO_T}no" >&6; }
10394 fi
10395
10396
10397     fi
10398     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10399       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10400 set dummy ${ncn_progname}; ac_word=$2
10401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10403 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10404   echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406   if test -n "$NM_FOR_TARGET"; then
10407   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10408 else
10409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410 for as_dir in $PATH
10411 do
10412   IFS=$as_save_IFS
10413   test -z "$as_dir" && as_dir=.
10414   for ac_exec_ext in '' $ac_executable_extensions; do
10415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10416     ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10418     break 2
10419   fi
10420 done
10421 done
10422 IFS=$as_save_IFS
10423
10424 fi
10425 fi
10426 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10427 if test -n "$NM_FOR_TARGET"; then
10428   { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10429 echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
10430 else
10431   { echo "$as_me:$LINENO: result: no" >&5
10432 echo "${ECHO_T}no" >&6; }
10433 fi
10434
10435
10436     fi
10437     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10438   done
10439 fi
10440
10441 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10442   set dummy nm
10443   if test $build = $target ; then
10444     NM_FOR_TARGET="$2"
10445   else
10446     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10447   fi
10448 fi
10449
10450 else
10451   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10452 fi
10453
10454
10455
10456
10457 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10458   if test -n "$with_build_time_tools"; then
10459     { echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10460 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6; }
10461     if test -x $with_build_time_tools/objdump; then
10462       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10463       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10464       { echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10465 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
10466     else
10467       { echo "$as_me:$LINENO: result: no" >&5
10468 echo "${ECHO_T}no" >&6; }
10469     fi
10470   elif test $build != $host && test $have_gcc_for_target = yes; then
10471     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10472     test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
10473     ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10474   fi
10475 fi
10476 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10477   # Extract the first word of "objdump", so it can be a program name with args.
10478 set dummy objdump; ac_word=$2
10479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10481 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10482   echo $ECHO_N "(cached) $ECHO_C" >&6
10483 else
10484   case $OBJDUMP_FOR_TARGET in
10485   [\\/]* | ?:[\\/]*)
10486   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10487   ;;
10488   *)
10489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $gcc_cv_tool_dirs
10491 do
10492   IFS=$as_save_IFS
10493   test -z "$as_dir" && as_dir=.
10494   for ac_exec_ext in '' $ac_executable_extensions; do
10495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10496     ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10498     break 2
10499   fi
10500 done
10501 done
10502 IFS=$as_save_IFS
10503
10504   ;;
10505 esac
10506 fi
10507 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10508 if test -n "$OBJDUMP_FOR_TARGET"; then
10509   { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10510 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
10511 else
10512   { echo "$as_me:$LINENO: result: no" >&5
10513 echo "${ECHO_T}no" >&6; }
10514 fi
10515
10516
10517 fi
10518 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10519
10520
10521 if test -n "$OBJDUMP_FOR_TARGET"; then
10522   ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10523 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10524   OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10525 fi
10526
10527 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10528   for ncn_progname in objdump; do
10529     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10530 set dummy ${ncn_progname}; ac_word=$2
10531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10533 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10534   echo $ECHO_N "(cached) $ECHO_C" >&6
10535 else
10536   if test -n "$OBJDUMP_FOR_TARGET"; then
10537   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10538 else
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $PATH
10541 do
10542   IFS=$as_save_IFS
10543   test -z "$as_dir" && as_dir=.
10544   for ac_exec_ext in '' $ac_executable_extensions; do
10545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10546     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10548     break 2
10549   fi
10550 done
10551 done
10552 IFS=$as_save_IFS
10553
10554 fi
10555 fi
10556 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10557 if test -n "$OBJDUMP_FOR_TARGET"; then
10558   { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10559 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
10560 else
10561   { echo "$as_me:$LINENO: result: no" >&5
10562 echo "${ECHO_T}no" >&6; }
10563 fi
10564
10565
10566   done
10567 fi
10568
10569 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10570   for ncn_progname in objdump; do
10571     { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10572 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
10573     if test -x $with_build_time_tools/${ncn_progname}; then
10574       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10575       { echo "$as_me:$LINENO: result: yes" >&5
10576 echo "${ECHO_T}yes" >&6; }
10577       break
10578     else
10579       { echo "$as_me:$LINENO: result: no" >&5
10580 echo "${ECHO_T}no" >&6; }
10581     fi
10582   done
10583 fi
10584
10585 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10586   for ncn_progname in objdump; do
10587     if test -n "$ncn_target_tool_prefix"; then
10588       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10589 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10592 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10593   echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595   if test -n "$OBJDUMP_FOR_TARGET"; then
10596   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10597 else
10598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10599 for as_dir in $PATH
10600 do
10601   IFS=$as_save_IFS
10602   test -z "$as_dir" && as_dir=.
10603   for ac_exec_ext in '' $ac_executable_extensions; do
10604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10605     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10607     break 2
10608   fi
10609 done
10610 done
10611 IFS=$as_save_IFS
10612
10613 fi
10614 fi
10615 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10616 if test -n "$OBJDUMP_FOR_TARGET"; then
10617   { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10618 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
10619 else
10620   { echo "$as_me:$LINENO: result: no" >&5
10621 echo "${ECHO_T}no" >&6; }
10622 fi
10623
10624
10625     fi
10626     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10627       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10628 set dummy ${ncn_progname}; ac_word=$2
10629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10631 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10632   echo $ECHO_N "(cached) $ECHO_C" >&6
10633 else
10634   if test -n "$OBJDUMP_FOR_TARGET"; then
10635   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10636 else
10637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638 for as_dir in $PATH
10639 do
10640   IFS=$as_save_IFS
10641   test -z "$as_dir" && as_dir=.
10642   for ac_exec_ext in '' $ac_executable_extensions; do
10643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10644     ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10646     break 2
10647   fi
10648 done
10649 done
10650 IFS=$as_save_IFS
10651
10652 fi
10653 fi
10654 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10655 if test -n "$OBJDUMP_FOR_TARGET"; then
10656   { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10657 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
10658 else
10659   { echo "$as_me:$LINENO: result: no" >&5
10660 echo "${ECHO_T}no" >&6; }
10661 fi
10662
10663
10664     fi
10665     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10666   done
10667 fi
10668
10669 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10670   set dummy objdump
10671   if test $build = $target ; then
10672     OBJDUMP_FOR_TARGET="$2"
10673   else
10674     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10675   fi
10676 fi
10677
10678 else
10679   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10680 fi
10681
10682
10683
10684
10685 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10686   if test -n "$with_build_time_tools"; then
10687     { echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10688 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6; }
10689     if test -x $with_build_time_tools/ranlib; then
10690       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10691       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10692       { echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10693 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
10694     else
10695       { echo "$as_me:$LINENO: result: no" >&5
10696 echo "${ECHO_T}no" >&6; }
10697     fi
10698   elif test $build != $host && test $have_gcc_for_target = yes; then
10699     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10700     test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
10701     ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10702   fi
10703 fi
10704 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10705   # Extract the first word of "ranlib", so it can be a program name with args.
10706 set dummy ranlib; ac_word=$2
10707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10709 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712   case $RANLIB_FOR_TARGET in
10713   [\\/]* | ?:[\\/]*)
10714   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10715   ;;
10716   *)
10717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718 for as_dir in $gcc_cv_tool_dirs
10719 do
10720   IFS=$as_save_IFS
10721   test -z "$as_dir" && as_dir=.
10722   for ac_exec_ext in '' $ac_executable_extensions; do
10723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10724     ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10726     break 2
10727   fi
10728 done
10729 done
10730 IFS=$as_save_IFS
10731
10732   ;;
10733 esac
10734 fi
10735 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10736 if test -n "$RANLIB_FOR_TARGET"; then
10737   { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10738 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
10739 else
10740   { echo "$as_me:$LINENO: result: no" >&5
10741 echo "${ECHO_T}no" >&6; }
10742 fi
10743
10744
10745 fi
10746 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10747
10748
10749 if test -n "$RANLIB_FOR_TARGET"; then
10750   ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10751 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10752   RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10753 fi
10754
10755 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10756   for ncn_progname in ranlib; do
10757     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10758 set dummy ${ncn_progname}; ac_word=$2
10759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10761 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10762   echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764   if test -n "$RANLIB_FOR_TARGET"; then
10765   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10766 else
10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768 for as_dir in $PATH
10769 do
10770   IFS=$as_save_IFS
10771   test -z "$as_dir" && as_dir=.
10772   for ac_exec_ext in '' $ac_executable_extensions; do
10773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10774     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10776     break 2
10777   fi
10778 done
10779 done
10780 IFS=$as_save_IFS
10781
10782 fi
10783 fi
10784 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10785 if test -n "$RANLIB_FOR_TARGET"; then
10786   { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10787 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
10788 else
10789   { echo "$as_me:$LINENO: result: no" >&5
10790 echo "${ECHO_T}no" >&6; }
10791 fi
10792
10793
10794   done
10795 fi
10796
10797 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10798   for ncn_progname in ranlib; do
10799     { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10800 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
10801     if test -x $with_build_time_tools/${ncn_progname}; then
10802       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10803       { echo "$as_me:$LINENO: result: yes" >&5
10804 echo "${ECHO_T}yes" >&6; }
10805       break
10806     else
10807       { echo "$as_me:$LINENO: result: no" >&5
10808 echo "${ECHO_T}no" >&6; }
10809     fi
10810   done
10811 fi
10812
10813 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10814   for ncn_progname in ranlib; do
10815     if test -n "$ncn_target_tool_prefix"; then
10816       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10817 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10820 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10821   echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823   if test -n "$RANLIB_FOR_TARGET"; then
10824   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10825 else
10826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827 for as_dir in $PATH
10828 do
10829   IFS=$as_save_IFS
10830   test -z "$as_dir" && as_dir=.
10831   for ac_exec_ext in '' $ac_executable_extensions; do
10832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10833     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10835     break 2
10836   fi
10837 done
10838 done
10839 IFS=$as_save_IFS
10840
10841 fi
10842 fi
10843 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10844 if test -n "$RANLIB_FOR_TARGET"; then
10845   { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10846 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
10847 else
10848   { echo "$as_me:$LINENO: result: no" >&5
10849 echo "${ECHO_T}no" >&6; }
10850 fi
10851
10852
10853     fi
10854     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10855       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10856 set dummy ${ncn_progname}; ac_word=$2
10857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10859 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10860   echo $ECHO_N "(cached) $ECHO_C" >&6
10861 else
10862   if test -n "$RANLIB_FOR_TARGET"; then
10863   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10864 else
10865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866 for as_dir in $PATH
10867 do
10868   IFS=$as_save_IFS
10869   test -z "$as_dir" && as_dir=.
10870   for ac_exec_ext in '' $ac_executable_extensions; do
10871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10872     ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10874     break 2
10875   fi
10876 done
10877 done
10878 IFS=$as_save_IFS
10879
10880 fi
10881 fi
10882 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10883 if test -n "$RANLIB_FOR_TARGET"; then
10884   { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10885 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
10886 else
10887   { echo "$as_me:$LINENO: result: no" >&5
10888 echo "${ECHO_T}no" >&6; }
10889 fi
10890
10891
10892     fi
10893     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10894   done
10895 fi
10896
10897 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10898   set dummy ranlib
10899   if test $build = $target ; then
10900     RANLIB_FOR_TARGET="$2"
10901   else
10902     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10903   fi
10904 fi
10905
10906 else
10907   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10908 fi
10909
10910
10911
10912
10913 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10914   if test -n "$with_build_time_tools"; then
10915     { echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10916 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6; }
10917     if test -x $with_build_time_tools/strip; then
10918       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10919       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10920       { echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10921 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6; }
10922     else
10923       { echo "$as_me:$LINENO: result: no" >&5
10924 echo "${ECHO_T}no" >&6; }
10925     fi
10926   elif test $build != $host && test $have_gcc_for_target = yes; then
10927     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10928     test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
10929     ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10930   fi
10931 fi
10932 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10933   # Extract the first word of "strip", so it can be a program name with args.
10934 set dummy strip; ac_word=$2
10935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10937 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10938   echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940   case $STRIP_FOR_TARGET in
10941   [\\/]* | ?:[\\/]*)
10942   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10943   ;;
10944   *)
10945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946 for as_dir in $gcc_cv_tool_dirs
10947 do
10948   IFS=$as_save_IFS
10949   test -z "$as_dir" && as_dir=.
10950   for ac_exec_ext in '' $ac_executable_extensions; do
10951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10952     ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10954     break 2
10955   fi
10956 done
10957 done
10958 IFS=$as_save_IFS
10959
10960   ;;
10961 esac
10962 fi
10963 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10964 if test -n "$STRIP_FOR_TARGET"; then
10965   { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10966 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
10967 else
10968   { echo "$as_me:$LINENO: result: no" >&5
10969 echo "${ECHO_T}no" >&6; }
10970 fi
10971
10972
10973 fi
10974 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10975
10976
10977 if test -n "$STRIP_FOR_TARGET"; then
10978   ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10979 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10980   STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10981 fi
10982
10983 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10984   for ncn_progname in strip; do
10985     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10986 set dummy ${ncn_progname}; ac_word=$2
10987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10989 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10990   echo $ECHO_N "(cached) $ECHO_C" >&6
10991 else
10992   if test -n "$STRIP_FOR_TARGET"; then
10993   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10994 else
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10997 do
10998   IFS=$as_save_IFS
10999   test -z "$as_dir" && as_dir=.
11000   for ac_exec_ext in '' $ac_executable_extensions; do
11001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11002     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11004     break 2
11005   fi
11006 done
11007 done
11008 IFS=$as_save_IFS
11009
11010 fi
11011 fi
11012 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11013 if test -n "$STRIP_FOR_TARGET"; then
11014   { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11015 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
11016 else
11017   { echo "$as_me:$LINENO: result: no" >&5
11018 echo "${ECHO_T}no" >&6; }
11019 fi
11020
11021
11022   done
11023 fi
11024
11025 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11026   for ncn_progname in strip; do
11027     { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11028 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
11029     if test -x $with_build_time_tools/${ncn_progname}; then
11030       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11031       { echo "$as_me:$LINENO: result: yes" >&5
11032 echo "${ECHO_T}yes" >&6; }
11033       break
11034     else
11035       { echo "$as_me:$LINENO: result: no" >&5
11036 echo "${ECHO_T}no" >&6; }
11037     fi
11038   done
11039 fi
11040
11041 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11042   for ncn_progname in strip; do
11043     if test -n "$ncn_target_tool_prefix"; then
11044       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11045 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11048 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11049   echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051   if test -n "$STRIP_FOR_TARGET"; then
11052   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11053 else
11054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055 for as_dir in $PATH
11056 do
11057   IFS=$as_save_IFS
11058   test -z "$as_dir" && as_dir=.
11059   for ac_exec_ext in '' $ac_executable_extensions; do
11060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11061     ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11063     break 2
11064   fi
11065 done
11066 done
11067 IFS=$as_save_IFS
11068
11069 fi
11070 fi
11071 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11072 if test -n "$STRIP_FOR_TARGET"; then
11073   { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11074 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
11075 else
11076   { echo "$as_me:$LINENO: result: no" >&5
11077 echo "${ECHO_T}no" >&6; }
11078 fi
11079
11080
11081     fi
11082     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11083       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11084 set dummy ${ncn_progname}; ac_word=$2
11085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11087 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11088   echo $ECHO_N "(cached) $ECHO_C" >&6
11089 else
11090   if test -n "$STRIP_FOR_TARGET"; then
11091   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11092 else
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH
11095 do
11096   IFS=$as_save_IFS
11097   test -z "$as_dir" && as_dir=.
11098   for ac_exec_ext in '' $ac_executable_extensions; do
11099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11100     ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11102     break 2
11103   fi
11104 done
11105 done
11106 IFS=$as_save_IFS
11107
11108 fi
11109 fi
11110 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11111 if test -n "$STRIP_FOR_TARGET"; then
11112   { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11113 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
11114 else
11115   { echo "$as_me:$LINENO: result: no" >&5
11116 echo "${ECHO_T}no" >&6; }
11117 fi
11118
11119
11120     fi
11121     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11122   done
11123 fi
11124
11125 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11126   set dummy strip
11127   if test $build = $target ; then
11128     STRIP_FOR_TARGET="$2"
11129   else
11130     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11131   fi
11132 fi
11133
11134 else
11135   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11136 fi
11137
11138
11139
11140
11141 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11142   if test -n "$with_build_time_tools"; then
11143     { echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11144 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6; }
11145     if test -x $with_build_time_tools/windres; then
11146       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11147       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11148       { echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11149 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
11150     else
11151       { echo "$as_me:$LINENO: result: no" >&5
11152 echo "${ECHO_T}no" >&6; }
11153     fi
11154   elif test $build != $host && test $have_gcc_for_target = yes; then
11155     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
11156     test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
11157     ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11158   fi
11159 fi
11160 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11161   # Extract the first word of "windres", so it can be a program name with args.
11162 set dummy windres; ac_word=$2
11163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11165 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11166   echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168   case $WINDRES_FOR_TARGET in
11169   [\\/]* | ?:[\\/]*)
11170   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11171   ;;
11172   *)
11173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174 for as_dir in $gcc_cv_tool_dirs
11175 do
11176   IFS=$as_save_IFS
11177   test -z "$as_dir" && as_dir=.
11178   for ac_exec_ext in '' $ac_executable_extensions; do
11179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11180     ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11182     break 2
11183   fi
11184 done
11185 done
11186 IFS=$as_save_IFS
11187
11188   ;;
11189 esac
11190 fi
11191 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11192 if test -n "$WINDRES_FOR_TARGET"; then
11193   { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11194 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
11195 else
11196   { echo "$as_me:$LINENO: result: no" >&5
11197 echo "${ECHO_T}no" >&6; }
11198 fi
11199
11200
11201 fi
11202 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11203
11204
11205 if test -n "$WINDRES_FOR_TARGET"; then
11206   ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11207 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11208   WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11209 fi
11210
11211 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11212   for ncn_progname in windres; do
11213     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11214 set dummy ${ncn_progname}; ac_word=$2
11215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11217 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11218   echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220   if test -n "$WINDRES_FOR_TARGET"; then
11221   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11222 else
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11225 do
11226   IFS=$as_save_IFS
11227   test -z "$as_dir" && as_dir=.
11228   for ac_exec_ext in '' $ac_executable_extensions; do
11229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11230     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11232     break 2
11233   fi
11234 done
11235 done
11236 IFS=$as_save_IFS
11237
11238 fi
11239 fi
11240 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11241 if test -n "$WINDRES_FOR_TARGET"; then
11242   { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11243 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
11244 else
11245   { echo "$as_me:$LINENO: result: no" >&5
11246 echo "${ECHO_T}no" >&6; }
11247 fi
11248
11249
11250   done
11251 fi
11252
11253 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
11254   for ncn_progname in windres; do
11255     { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11256 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
11257     if test -x $with_build_time_tools/${ncn_progname}; then
11258       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11259       { echo "$as_me:$LINENO: result: yes" >&5
11260 echo "${ECHO_T}yes" >&6; }
11261       break
11262     else
11263       { echo "$as_me:$LINENO: result: no" >&5
11264 echo "${ECHO_T}no" >&6; }
11265     fi
11266   done
11267 fi
11268
11269 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11270   for ncn_progname in windres; do
11271     if test -n "$ncn_target_tool_prefix"; then
11272       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11273 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11276 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11277   echo $ECHO_N "(cached) $ECHO_C" >&6
11278 else
11279   if test -n "$WINDRES_FOR_TARGET"; then
11280   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11281 else
11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11284 do
11285   IFS=$as_save_IFS
11286   test -z "$as_dir" && as_dir=.
11287   for ac_exec_ext in '' $ac_executable_extensions; do
11288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11289     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11291     break 2
11292   fi
11293 done
11294 done
11295 IFS=$as_save_IFS
11296
11297 fi
11298 fi
11299 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11300 if test -n "$WINDRES_FOR_TARGET"; then
11301   { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11302 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
11303 else
11304   { echo "$as_me:$LINENO: result: no" >&5
11305 echo "${ECHO_T}no" >&6; }
11306 fi
11307
11308
11309     fi
11310     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11311       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11312 set dummy ${ncn_progname}; ac_word=$2
11313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11315 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11316   echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318   if test -n "$WINDRES_FOR_TARGET"; then
11319   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11320 else
11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322 for as_dir in $PATH
11323 do
11324   IFS=$as_save_IFS
11325   test -z "$as_dir" && as_dir=.
11326   for ac_exec_ext in '' $ac_executable_extensions; do
11327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11328     ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11330     break 2
11331   fi
11332 done
11333 done
11334 IFS=$as_save_IFS
11335
11336 fi
11337 fi
11338 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11339 if test -n "$WINDRES_FOR_TARGET"; then
11340   { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11341 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
11342 else
11343   { echo "$as_me:$LINENO: result: no" >&5
11344 echo "${ECHO_T}no" >&6; }
11345 fi
11346
11347
11348     fi
11349     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11350   done
11351 fi
11352
11353 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11354   set dummy windres
11355   if test $build = $target ; then
11356     WINDRES_FOR_TARGET="$2"
11357   else
11358     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
11359   fi
11360 fi
11361
11362 else
11363   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11364 fi
11365
11366
11367 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11368
11369 { echo "$as_me:$LINENO: checking where to find the target ar" >&5
11370 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6; }
11371 if test "x${build}" != "x${host}" ; then
11372   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11373     # We already found the complete path
11374     ac_dir=`dirname $AR_FOR_TARGET`
11375     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11376 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11377   else
11378     # Canadian cross, just use what we found
11379     { echo "$as_me:$LINENO: result: pre-installed" >&5
11380 echo "${ECHO_T}pre-installed" >&6; }
11381   fi
11382 else
11383   ok=yes
11384   case " ${configdirs} " in
11385     *" binutils "*) ;;
11386     *) ok=no ;;
11387   esac
11388
11389   if test $ok = yes; then
11390     # An in-tree tool is available and we can use it
11391     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11392     { echo "$as_me:$LINENO: result: just compiled" >&5
11393 echo "${ECHO_T}just compiled" >&6; }
11394   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11395     # We already found the complete path
11396     ac_dir=`dirname $AR_FOR_TARGET`
11397     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11398 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11399   elif test "x$target" = "x$host"; then
11400     # We can use an host tool
11401     AR_FOR_TARGET='$(AR)'
11402     { echo "$as_me:$LINENO: result: host tool" >&5
11403 echo "${ECHO_T}host tool" >&6; }
11404   else
11405     # We need a cross tool
11406     { echo "$as_me:$LINENO: result: pre-installed" >&5
11407 echo "${ECHO_T}pre-installed" >&6; }
11408   fi
11409 fi
11410
11411 { echo "$as_me:$LINENO: checking where to find the target as" >&5
11412 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6; }
11413 if test "x${build}" != "x${host}" ; then
11414   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11415     # We already found the complete path
11416     ac_dir=`dirname $AS_FOR_TARGET`
11417     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11418 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11419   else
11420     # Canadian cross, just use what we found
11421     { echo "$as_me:$LINENO: result: pre-installed" >&5
11422 echo "${ECHO_T}pre-installed" >&6; }
11423   fi
11424 else
11425   ok=yes
11426   case " ${configdirs} " in
11427     *" gas "*) ;;
11428     *) ok=no ;;
11429   esac
11430
11431   if test $ok = yes; then
11432     # An in-tree tool is available and we can use it
11433     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11434     { echo "$as_me:$LINENO: result: just compiled" >&5
11435 echo "${ECHO_T}just compiled" >&6; }
11436   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11437     # We already found the complete path
11438     ac_dir=`dirname $AS_FOR_TARGET`
11439     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11440 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11441   elif test "x$target" = "x$host"; then
11442     # We can use an host tool
11443     AS_FOR_TARGET='$(AS)'
11444     { echo "$as_me:$LINENO: result: host tool" >&5
11445 echo "${ECHO_T}host tool" >&6; }
11446   else
11447     # We need a cross tool
11448     { echo "$as_me:$LINENO: result: pre-installed" >&5
11449 echo "${ECHO_T}pre-installed" >&6; }
11450   fi
11451 fi
11452
11453 { echo "$as_me:$LINENO: checking where to find the target cc" >&5
11454 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6; }
11455 if test "x${build}" != "x${host}" ; then
11456   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11457     # We already found the complete path
11458     ac_dir=`dirname $CC_FOR_TARGET`
11459     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11460 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11461   else
11462     # Canadian cross, just use what we found
11463     { echo "$as_me:$LINENO: result: pre-installed" >&5
11464 echo "${ECHO_T}pre-installed" >&6; }
11465   fi
11466 else
11467   ok=yes
11468   case " ${configdirs} " in
11469     *" gcc "*) ;;
11470     *) ok=no ;;
11471   esac
11472
11473   if test $ok = yes; then
11474     # An in-tree tool is available and we can use it
11475     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11476     { echo "$as_me:$LINENO: result: just compiled" >&5
11477 echo "${ECHO_T}just compiled" >&6; }
11478   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11479     # We already found the complete path
11480     ac_dir=`dirname $CC_FOR_TARGET`
11481     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11482 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11483   elif test "x$target" = "x$host"; then
11484     # We can use an host tool
11485     CC_FOR_TARGET='$(CC)'
11486     { echo "$as_me:$LINENO: result: host tool" >&5
11487 echo "${ECHO_T}host tool" >&6; }
11488   else
11489     # We need a cross tool
11490     { echo "$as_me:$LINENO: result: pre-installed" >&5
11491 echo "${ECHO_T}pre-installed" >&6; }
11492   fi
11493 fi
11494
11495 { echo "$as_me:$LINENO: checking where to find the target c++" >&5
11496 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6; }
11497 if test "x${build}" != "x${host}" ; then
11498   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11499     # We already found the complete path
11500     ac_dir=`dirname $CXX_FOR_TARGET`
11501     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11502 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11503   else
11504     # Canadian cross, just use what we found
11505     { echo "$as_me:$LINENO: result: pre-installed" >&5
11506 echo "${ECHO_T}pre-installed" >&6; }
11507   fi
11508 else
11509   ok=yes
11510   case " ${configdirs} " in
11511     *" gcc "*) ;;
11512     *) ok=no ;;
11513   esac
11514   case ,${enable_languages}, in
11515     *,c++,*) ;;
11516     *) ok=no ;;
11517   esac
11518   if test $ok = yes; then
11519     # An in-tree tool is available and we can use it
11520     CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
11521     { echo "$as_me:$LINENO: result: just compiled" >&5
11522 echo "${ECHO_T}just compiled" >&6; }
11523   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11524     # We already found the complete path
11525     ac_dir=`dirname $CXX_FOR_TARGET`
11526     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11527 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11528   elif test "x$target" = "x$host"; then
11529     # We can use an host tool
11530     CXX_FOR_TARGET='$(CXX)'
11531     { echo "$as_me:$LINENO: result: host tool" >&5
11532 echo "${ECHO_T}host tool" >&6; }
11533   else
11534     # We need a cross tool
11535     { echo "$as_me:$LINENO: result: pre-installed" >&5
11536 echo "${ECHO_T}pre-installed" >&6; }
11537   fi
11538 fi
11539
11540 { echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11541 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6; }
11542 if test "x${build}" != "x${host}" ; then
11543   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11544     # We already found the complete path
11545     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11546     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11547 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11548   else
11549     # Canadian cross, just use what we found
11550     { echo "$as_me:$LINENO: result: pre-installed" >&5
11551 echo "${ECHO_T}pre-installed" >&6; }
11552   fi
11553 else
11554   ok=yes
11555   case " ${configdirs} " in
11556     *" gcc "*) ;;
11557     *) ok=no ;;
11558   esac
11559   case ,${enable_languages}, in
11560     *,c++,*) ;;
11561     *) ok=no ;;
11562   esac
11563   if test $ok = yes; then
11564     # An in-tree tool is available and we can use it
11565     RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
11566     { echo "$as_me:$LINENO: result: just compiled" >&5
11567 echo "${ECHO_T}just compiled" >&6; }
11568   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11569     # We already found the complete path
11570     ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11571     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11572 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11573   elif test "x$target" = "x$host"; then
11574     # We can use an host tool
11575     RAW_CXX_FOR_TARGET='$(CXX)'
11576     { echo "$as_me:$LINENO: result: host tool" >&5
11577 echo "${ECHO_T}host tool" >&6; }
11578   else
11579     # We need a cross tool
11580     { echo "$as_me:$LINENO: result: pre-installed" >&5
11581 echo "${ECHO_T}pre-installed" >&6; }
11582   fi
11583 fi
11584
11585 { echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11586 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6; }
11587 if test "x${build}" != "x${host}" ; then
11588   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11589     # We already found the complete path
11590     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11591     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11592 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11593   else
11594     # Canadian cross, just use what we found
11595     { echo "$as_me:$LINENO: result: pre-installed" >&5
11596 echo "${ECHO_T}pre-installed" >&6; }
11597   fi
11598 else
11599   ok=yes
11600   case " ${configdirs} " in
11601     *" binutils "*) ;;
11602     *) ok=no ;;
11603   esac
11604
11605   if test $ok = yes; then
11606     # An in-tree tool is available and we can use it
11607     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11608     { echo "$as_me:$LINENO: result: just compiled" >&5
11609 echo "${ECHO_T}just compiled" >&6; }
11610   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11611     # We already found the complete path
11612     ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11613     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11614 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11615   elif test "x$target" = "x$host"; then
11616     # We can use an host tool
11617     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11618     { echo "$as_me:$LINENO: result: host tool" >&5
11619 echo "${ECHO_T}host tool" >&6; }
11620   else
11621     # We need a cross tool
11622     { echo "$as_me:$LINENO: result: pre-installed" >&5
11623 echo "${ECHO_T}pre-installed" >&6; }
11624   fi
11625 fi
11626
11627 { echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11628 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6; }
11629 if test "x${build}" != "x${host}" ; then
11630   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11631     # We already found the complete path
11632     ac_dir=`dirname $GCC_FOR_TARGET`
11633     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11634 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11635   else
11636     # Canadian cross, just use what we found
11637     { echo "$as_me:$LINENO: result: pre-installed" >&5
11638 echo "${ECHO_T}pre-installed" >&6; }
11639   fi
11640 else
11641   ok=yes
11642   case " ${configdirs} " in
11643     *" gcc "*) ;;
11644     *) ok=no ;;
11645   esac
11646
11647   if test $ok = yes; then
11648     # An in-tree tool is available and we can use it
11649     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11650     { echo "$as_me:$LINENO: result: just compiled" >&5
11651 echo "${ECHO_T}just compiled" >&6; }
11652   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11653     # We already found the complete path
11654     ac_dir=`dirname $GCC_FOR_TARGET`
11655     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11656 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11657   elif test "x$target" = "x$host"; then
11658     # We can use an host tool
11659     GCC_FOR_TARGET='$()'
11660     { echo "$as_me:$LINENO: result: host tool" >&5
11661 echo "${ECHO_T}host tool" >&6; }
11662   else
11663     # We need a cross tool
11664     { echo "$as_me:$LINENO: result: pre-installed" >&5
11665 echo "${ECHO_T}pre-installed" >&6; }
11666   fi
11667 fi
11668
11669 { echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11670 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6; }
11671 if test "x${build}" != "x${host}" ; then
11672   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11673     # We already found the complete path
11674     ac_dir=`dirname $GCJ_FOR_TARGET`
11675     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11676 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11677   else
11678     # Canadian cross, just use what we found
11679     { echo "$as_me:$LINENO: result: pre-installed" >&5
11680 echo "${ECHO_T}pre-installed" >&6; }
11681   fi
11682 else
11683   ok=yes
11684   case " ${configdirs} " in
11685     *" gcc "*) ;;
11686     *) ok=no ;;
11687   esac
11688   case ,${enable_languages}, in
11689     *,java,*) ;;
11690     *) ok=no ;;
11691   esac
11692   if test $ok = yes; then
11693     # An in-tree tool is available and we can use it
11694     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11695     { echo "$as_me:$LINENO: result: just compiled" >&5
11696 echo "${ECHO_T}just compiled" >&6; }
11697   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11698     # We already found the complete path
11699     ac_dir=`dirname $GCJ_FOR_TARGET`
11700     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11701 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11702   elif test "x$target" = "x$host"; then
11703     # We can use an host tool
11704     GCJ_FOR_TARGET='$(GCJ)'
11705     { echo "$as_me:$LINENO: result: host tool" >&5
11706 echo "${ECHO_T}host tool" >&6; }
11707   else
11708     # We need a cross tool
11709     { echo "$as_me:$LINENO: result: pre-installed" >&5
11710 echo "${ECHO_T}pre-installed" >&6; }
11711   fi
11712 fi
11713
11714 { echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11715 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6; }
11716 if test "x${build}" != "x${host}" ; then
11717   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11718     # We already found the complete path
11719     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11720     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11721 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11722   else
11723     # Canadian cross, just use what we found
11724     { echo "$as_me:$LINENO: result: pre-installed" >&5
11725 echo "${ECHO_T}pre-installed" >&6; }
11726   fi
11727 else
11728   ok=yes
11729   case " ${configdirs} " in
11730     *" gcc "*) ;;
11731     *) ok=no ;;
11732   esac
11733   case ,${enable_languages}, in
11734     *,fortran,*) ;;
11735     *) ok=no ;;
11736   esac
11737   if test $ok = yes; then
11738     # An in-tree tool is available and we can use it
11739     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
11740     { echo "$as_me:$LINENO: result: just compiled" >&5
11741 echo "${ECHO_T}just compiled" >&6; }
11742   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11743     # We already found the complete path
11744     ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11745     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11746 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11747   elif test "x$target" = "x$host"; then
11748     # We can use an host tool
11749     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
11750     { echo "$as_me:$LINENO: result: host tool" >&5
11751 echo "${ECHO_T}host tool" >&6; }
11752   else
11753     # We need a cross tool
11754     { echo "$as_me:$LINENO: result: pre-installed" >&5
11755 echo "${ECHO_T}pre-installed" >&6; }
11756   fi
11757 fi
11758
11759 { echo "$as_me:$LINENO: checking where to find the target ld" >&5
11760 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6; }
11761 if test "x${build}" != "x${host}" ; then
11762   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11763     # We already found the complete path
11764     ac_dir=`dirname $LD_FOR_TARGET`
11765     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11766 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11767   else
11768     # Canadian cross, just use what we found
11769     { echo "$as_me:$LINENO: result: pre-installed" >&5
11770 echo "${ECHO_T}pre-installed" >&6; }
11771   fi
11772 else
11773   ok=yes
11774   case " ${configdirs} " in
11775     *" ld "*) ;;
11776     *) ok=no ;;
11777   esac
11778
11779   if test $ok = yes; then
11780     # An in-tree tool is available and we can use it
11781     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
11782     { echo "$as_me:$LINENO: result: just compiled" >&5
11783 echo "${ECHO_T}just compiled" >&6; }
11784   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11785     # We already found the complete path
11786     ac_dir=`dirname $LD_FOR_TARGET`
11787     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11788 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11789   elif test "x$target" = "x$host"; then
11790     # We can use an host tool
11791     LD_FOR_TARGET='$(LD)'
11792     { echo "$as_me:$LINENO: result: host tool" >&5
11793 echo "${ECHO_T}host tool" >&6; }
11794   else
11795     # We need a cross tool
11796     { echo "$as_me:$LINENO: result: pre-installed" >&5
11797 echo "${ECHO_T}pre-installed" >&6; }
11798   fi
11799 fi
11800
11801 { echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11802 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6; }
11803 if test "x${build}" != "x${host}" ; then
11804   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11805     # We already found the complete path
11806     ac_dir=`dirname $LIPO_FOR_TARGET`
11807     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11808 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11809   else
11810     # Canadian cross, just use what we found
11811     { echo "$as_me:$LINENO: result: pre-installed" >&5
11812 echo "${ECHO_T}pre-installed" >&6; }
11813   fi
11814 else
11815   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11816     # We already found the complete path
11817     ac_dir=`dirname $LIPO_FOR_TARGET`
11818     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11819 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11820   elif test "x$target" = "x$host"; then
11821     # We can use an host tool
11822     LIPO_FOR_TARGET='$(LIPO)'
11823     { echo "$as_me:$LINENO: result: host tool" >&5
11824 echo "${ECHO_T}host tool" >&6; }
11825   else
11826     # We need a cross tool
11827     { echo "$as_me:$LINENO: result: pre-installed" >&5
11828 echo "${ECHO_T}pre-installed" >&6; }
11829   fi
11830 fi
11831
11832 { echo "$as_me:$LINENO: checking where to find the target nm" >&5
11833 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6; }
11834 if test "x${build}" != "x${host}" ; then
11835   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11836     # We already found the complete path
11837     ac_dir=`dirname $NM_FOR_TARGET`
11838     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11839 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11840   else
11841     # Canadian cross, just use what we found
11842     { echo "$as_me:$LINENO: result: pre-installed" >&5
11843 echo "${ECHO_T}pre-installed" >&6; }
11844   fi
11845 else
11846   ok=yes
11847   case " ${configdirs} " in
11848     *" binutils "*) ;;
11849     *) ok=no ;;
11850   esac
11851
11852   if test $ok = yes; then
11853     # An in-tree tool is available and we can use it
11854     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
11855     { echo "$as_me:$LINENO: result: just compiled" >&5
11856 echo "${ECHO_T}just compiled" >&6; }
11857   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11858     # We already found the complete path
11859     ac_dir=`dirname $NM_FOR_TARGET`
11860     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11861 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11862   elif test "x$target" = "x$host"; then
11863     # We can use an host tool
11864     NM_FOR_TARGET='$(NM)'
11865     { echo "$as_me:$LINENO: result: host tool" >&5
11866 echo "${ECHO_T}host tool" >&6; }
11867   else
11868     # We need a cross tool
11869     { echo "$as_me:$LINENO: result: pre-installed" >&5
11870 echo "${ECHO_T}pre-installed" >&6; }
11871   fi
11872 fi
11873
11874 { echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11875 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6; }
11876 if test "x${build}" != "x${host}" ; then
11877   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11878     # We already found the complete path
11879     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11880     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11881 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11882   else
11883     # Canadian cross, just use what we found
11884     { echo "$as_me:$LINENO: result: pre-installed" >&5
11885 echo "${ECHO_T}pre-installed" >&6; }
11886   fi
11887 else
11888   ok=yes
11889   case " ${configdirs} " in
11890     *" binutils "*) ;;
11891     *) ok=no ;;
11892   esac
11893
11894   if test $ok = yes; then
11895     # An in-tree tool is available and we can use it
11896     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
11897     { echo "$as_me:$LINENO: result: just compiled" >&5
11898 echo "${ECHO_T}just compiled" >&6; }
11899   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11900     # We already found the complete path
11901     ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11902     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11903 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11904   elif test "x$target" = "x$host"; then
11905     # We can use an host tool
11906     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
11907     { echo "$as_me:$LINENO: result: host tool" >&5
11908 echo "${ECHO_T}host tool" >&6; }
11909   else
11910     # We need a cross tool
11911     { echo "$as_me:$LINENO: result: pre-installed" >&5
11912 echo "${ECHO_T}pre-installed" >&6; }
11913   fi
11914 fi
11915
11916 { echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11917 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6; }
11918 if test "x${build}" != "x${host}" ; then
11919   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11920     # We already found the complete path
11921     ac_dir=`dirname $RANLIB_FOR_TARGET`
11922     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11923 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11924   else
11925     # Canadian cross, just use what we found
11926     { echo "$as_me:$LINENO: result: pre-installed" >&5
11927 echo "${ECHO_T}pre-installed" >&6; }
11928   fi
11929 else
11930   ok=yes
11931   case " ${configdirs} " in
11932     *" binutils "*) ;;
11933     *) ok=no ;;
11934   esac
11935
11936   if test $ok = yes; then
11937     # An in-tree tool is available and we can use it
11938     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
11939     { echo "$as_me:$LINENO: result: just compiled" >&5
11940 echo "${ECHO_T}just compiled" >&6; }
11941   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11942     # We already found the complete path
11943     ac_dir=`dirname $RANLIB_FOR_TARGET`
11944     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11945 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11946   elif test "x$target" = "x$host"; then
11947     # We can use an host tool
11948     RANLIB_FOR_TARGET='$(RANLIB)'
11949     { echo "$as_me:$LINENO: result: host tool" >&5
11950 echo "${ECHO_T}host tool" >&6; }
11951   else
11952     # We need a cross tool
11953     { echo "$as_me:$LINENO: result: pre-installed" >&5
11954 echo "${ECHO_T}pre-installed" >&6; }
11955   fi
11956 fi
11957
11958 { echo "$as_me:$LINENO: checking where to find the target strip" >&5
11959 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6; }
11960 if test "x${build}" != "x${host}" ; then
11961   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11962     # We already found the complete path
11963     ac_dir=`dirname $STRIP_FOR_TARGET`
11964     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11965 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11966   else
11967     # Canadian cross, just use what we found
11968     { echo "$as_me:$LINENO: result: pre-installed" >&5
11969 echo "${ECHO_T}pre-installed" >&6; }
11970   fi
11971 else
11972   ok=yes
11973   case " ${configdirs} " in
11974     *" binutils "*) ;;
11975     *) ok=no ;;
11976   esac
11977
11978   if test $ok = yes; then
11979     # An in-tree tool is available and we can use it
11980     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
11981     { echo "$as_me:$LINENO: result: just compiled" >&5
11982 echo "${ECHO_T}just compiled" >&6; }
11983   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11984     # We already found the complete path
11985     ac_dir=`dirname $STRIP_FOR_TARGET`
11986     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11987 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
11988   elif test "x$target" = "x$host"; then
11989     # We can use an host tool
11990     STRIP_FOR_TARGET='$(STRIP)'
11991     { echo "$as_me:$LINENO: result: host tool" >&5
11992 echo "${ECHO_T}host tool" >&6; }
11993   else
11994     # We need a cross tool
11995     { echo "$as_me:$LINENO: result: pre-installed" >&5
11996 echo "${ECHO_T}pre-installed" >&6; }
11997   fi
11998 fi
11999
12000 { echo "$as_me:$LINENO: checking where to find the target windres" >&5
12001 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6; }
12002 if test "x${build}" != "x${host}" ; then
12003   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12004     # We already found the complete path
12005     ac_dir=`dirname $WINDRES_FOR_TARGET`
12006     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12007 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12008   else
12009     # Canadian cross, just use what we found
12010     { echo "$as_me:$LINENO: result: pre-installed" >&5
12011 echo "${ECHO_T}pre-installed" >&6; }
12012   fi
12013 else
12014   ok=yes
12015   case " ${configdirs} " in
12016     *" binutils "*) ;;
12017     *) ok=no ;;
12018   esac
12019
12020   if test $ok = yes; then
12021     # An in-tree tool is available and we can use it
12022     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
12023     { echo "$as_me:$LINENO: result: just compiled" >&5
12024 echo "${ECHO_T}just compiled" >&6; }
12025   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12026     # We already found the complete path
12027     ac_dir=`dirname $WINDRES_FOR_TARGET`
12028     { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12029 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12030   elif test "x$target" = "x$host"; then
12031     # We can use an host tool
12032     WINDRES_FOR_TARGET='$(WINDRES)'
12033     { echo "$as_me:$LINENO: result: host tool" >&5
12034 echo "${ECHO_T}host tool" >&6; }
12035   else
12036     # We need a cross tool
12037     { echo "$as_me:$LINENO: result: pre-installed" >&5
12038 echo "${ECHO_T}pre-installed" >&6; }
12039   fi
12040 fi
12041
12042
12043
12044
12045
12046 # Certain tools may need extra flags.
12047 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12048 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12049 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12050
12051 # When building target libraries, except in a Canadian cross, we use
12052 # the same toolchain as the compiler we just built.
12053 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12054 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12055 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12056 if test $host = $build; then
12057   case " $configdirs " in
12058     *" gcc "*)
12059       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12060       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12061       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12062       ;;
12063   esac
12064 fi
12065
12066
12067
12068
12069
12070 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12071 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
12072 # Check whether --enable-maintainer-mode was given.
12073 if test "${enable_maintainer_mode+set}" = set; then
12074   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12075 else
12076   USE_MAINTAINER_MODE=no
12077 fi
12078
12079 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12080 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
12081
12082
12083 if test "$USE_MAINTAINER_MODE" = yes; then
12084   MAINTAINER_MODE_TRUE=
12085   MAINTAINER_MODE_FALSE='#'
12086 else
12087   MAINTAINER_MODE_TRUE='#'
12088   MAINTAINER_MODE_FALSE=
12089 fi
12090 MAINT=$MAINTAINER_MODE_TRUE
12091
12092 # ---------------------
12093 # GCC bootstrap support
12094 # ---------------------
12095
12096 # Stage specific cflags for build.
12097 stage1_cflags="-g"
12098 case $build in
12099   vax-*-*)
12100     case ${GCC} in
12101       yes) stage1_cflags="-g -Wa,-J" ;;
12102       *) stage1_cflags="-g -J" ;;
12103     esac ;;
12104 esac
12105
12106 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12107 if test "$GCC" = yes; then
12108   saved_CFLAGS="$CFLAGS"
12109
12110   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12111   CFLAGS="$CFLAGS -fkeep-inline-functions"
12112   { echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12113 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6; }
12114   cat >conftest.$ac_ext <<_ACEOF
12115 /* confdefs.h.  */
12116 _ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h.  */
12120
12121 int
12122 main ()
12123 {
12124
12125   ;
12126   return 0;
12127 }
12128 _ACEOF
12129 rm -f conftest.$ac_objext
12130 if { (ac_try="$ac_compile"
12131 case "(($ac_try" in
12132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133   *) ac_try_echo=$ac_try;;
12134 esac
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136   (eval "$ac_compile") 2>conftest.er1
12137   ac_status=$?
12138   grep -v '^ *+' conftest.er1 >conftest.err
12139   rm -f conftest.er1
12140   cat conftest.err >&5
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); } && {
12143          test -z "$ac_c_werror_flag" ||
12144          test ! -s conftest.err
12145        } && test -s conftest.$ac_objext; then
12146   { echo "$as_me:$LINENO: result: yes" >&5
12147 echo "${ECHO_T}yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12148 else
12149   echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152         { echo "$as_me:$LINENO: result: no" >&5
12153 echo "${ECHO_T}no" >&6; }
12154 fi
12155
12156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12157
12158   CFLAGS="$saved_CFLAGS"
12159 fi
12160
12161
12162
12163 # Enable --enable-checking in stage1 of the compiler.
12164 # Check whether --enable-stage1-checking was given.
12165 if test "${enable_stage1_checking+set}" = set; then
12166   enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
12167 else
12168   if test "x$enable_checking" = xno; then
12169   stage1_checking=--enable-checking
12170 else
12171   stage1_checking=--enable-checking${enable_checking+=}$enable_checking
12172 fi
12173 fi
12174
12175
12176
12177 # Enable -Werror in bootstrap stage2 and later.
12178 # Check whether --enable-werror was given.
12179 if test "${enable_werror+set}" = set; then
12180   enableval=$enable_werror;
12181 else
12182   if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12183   enable_werror=yes
12184 else
12185   enable_werror=no
12186 fi
12187 fi
12188
12189 case ${enable_werror} in
12190   yes) stage2_werror_flag="--enable-werror-always" ;;
12191   *) stage2_werror_flag="" ;;
12192 esac
12193
12194
12195 # Flags needed to enable html installing and building
12196
12197 # Check whether --with-datarootdir was given.
12198 if test "${with_datarootdir+set}" = set; then
12199   withval=$with_datarootdir; datarootdir="\${prefix}/${withval}"
12200 else
12201   datarootdir="\${prefix}/share"
12202 fi
12203
12204
12205
12206 # Check whether --with-docdir was given.
12207 if test "${with_docdir+set}" = set; then
12208   withval=$with_docdir; docdir="\${prefix}/${withval}"
12209 else
12210   docdir="\${datarootdir}/doc"
12211 fi
12212
12213
12214
12215 # Check whether --with-pdfdir was given.
12216 if test "${with_pdfdir+set}" = set; then
12217   withval=$with_pdfdir; pdfdir="\${prefix}/${withval}"
12218 else
12219   pdfdir="\${docdir}"
12220 fi
12221
12222
12223
12224 # Check whether --with-htmldir was given.
12225 if test "${with_htmldir+set}" = set; then
12226   withval=$with_htmldir; htmldir="\${prefix}/${withval}"
12227 else
12228   htmldir="\${docdir}"
12229 fi
12230
12231
12232
12233
12234
12235
12236
12237 ac_config_files="$ac_config_files Makefile"
12238
12239 cat >confcache <<\_ACEOF
12240 # This file is a shell script that caches the results of configure
12241 # tests run on this system so they can be shared between configure
12242 # scripts and configure runs, see configure's option --config-cache.
12243 # It is not useful on other systems.  If it contains results you don't
12244 # want to keep, you may remove or edit it.
12245 #
12246 # config.status only pays attention to the cache file if you give it
12247 # the --recheck option to rerun configure.
12248 #
12249 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12250 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12251 # following values.
12252
12253 _ACEOF
12254
12255 # The following way of writing the cache mishandles newlines in values,
12256 # but we know of no workaround that is simple, portable, and efficient.
12257 # So, we kill variables containing newlines.
12258 # Ultrix sh set writes to stderr and can't be redirected directly,
12259 # and sets the high bit in the cache file unless we assign to the vars.
12260 (
12261   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12262     eval ac_val=\$$ac_var
12263     case $ac_val in #(
12264     *${as_nl}*)
12265       case $ac_var in #(
12266       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12267 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12268       esac
12269       case $ac_var in #(
12270       _ | IFS | as_nl) ;; #(
12271       *) $as_unset $ac_var ;;
12272       esac ;;
12273     esac
12274   done
12275
12276   (set) 2>&1 |
12277     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12278     *${as_nl}ac_space=\ *)
12279       # `set' does not quote correctly, so add quotes (double-quote
12280       # substitution turns \\\\ into \\, and sed turns \\ into \).
12281       sed -n \
12282         "s/'/'\\\\''/g;
12283           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12284       ;; #(
12285     *)
12286       # `set' quotes correctly as required by POSIX, so do not add quotes.
12287       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12288       ;;
12289     esac |
12290     sort
12291 ) |
12292   sed '
12293      /^ac_cv_env_/b end
12294      t clear
12295      :clear
12296      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12297      t end
12298      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12299      :end' >>confcache
12300 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12301   if test -w "$cache_file"; then
12302     test "x$cache_file" != "x/dev/null" &&
12303       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12304 echo "$as_me: updating cache $cache_file" >&6;}
12305     cat confcache >$cache_file
12306   else
12307     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12308 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12309   fi
12310 fi
12311 rm -f confcache
12312
12313 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12314 # Let make expand exec_prefix.
12315 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12316
12317 # Transform confdefs.h into DEFS.
12318 # Protect against shell expansion while executing Makefile rules.
12319 # Protect against Makefile macro expansion.
12320 #
12321 # If the first sed substitution is executed (which looks for macros that
12322 # take arguments), then branch to the quote section.  Otherwise,
12323 # look for a macro that doesn't take arguments.
12324 ac_script='
12325 t clear
12326 :clear
12327 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
12328 t quote
12329 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
12330 t quote
12331 b any
12332 :quote
12333 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12334 s/\[/\\&/g
12335 s/\]/\\&/g
12336 s/\$/$$/g
12337 H
12338 :any
12339 ${
12340         g
12341         s/^\n//
12342         s/\n/ /g
12343         p
12344 }
12345 '
12346 DEFS=`sed -n "$ac_script" confdefs.h`
12347
12348
12349 ac_libobjs=
12350 ac_ltlibobjs=
12351 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12352   # 1. Remove the extension, and $U if already installed.
12353   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12354   ac_i=`echo "$ac_i" | sed "$ac_script"`
12355   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12356   #    will be set to the directory where LIBOBJS objects are built.
12357   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12358   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12359 done
12360 LIBOBJS=$ac_libobjs
12361
12362 LTLIBOBJS=$ac_ltlibobjs
12363
12364
12365
12366 : ${CONFIG_STATUS=./config.status}
12367 ac_clean_files_save=$ac_clean_files
12368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12369 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12370 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12371 cat >$CONFIG_STATUS <<_ACEOF
12372 #! $SHELL
12373 # Generated by $as_me.
12374 # Run this file to recreate the current configuration.
12375 # Compiler output produced by configure, useful for debugging
12376 # configure, is in config.log if it exists.
12377
12378 debug=false
12379 ac_cs_recheck=false
12380 ac_cs_silent=false
12381 SHELL=\${CONFIG_SHELL-$SHELL}
12382 _ACEOF
12383
12384 cat >>$CONFIG_STATUS <<\_ACEOF
12385 ## --------------------- ##
12386 ## M4sh Initialization.  ##
12387 ## --------------------- ##
12388
12389 # Be more Bourne compatible
12390 DUALCASE=1; export DUALCASE # for MKS sh
12391 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12392   emulate sh
12393   NULLCMD=:
12394   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12395   # is contrary to our usage.  Disable this feature.
12396   alias -g '${1+"$@"}'='"$@"'
12397   setopt NO_GLOB_SUBST
12398 else
12399   case `(set -o) 2>/dev/null` in
12400   *posix*) set -o posix ;;
12401 esac
12402
12403 fi
12404
12405
12406
12407
12408 # PATH needs CR
12409 # Avoid depending upon Character Ranges.
12410 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12411 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12412 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12413 as_cr_digits='0123456789'
12414 as_cr_alnum=$as_cr_Letters$as_cr_digits
12415
12416 # The user is always right.
12417 if test "${PATH_SEPARATOR+set}" != set; then
12418   echo "#! /bin/sh" >conf$$.sh
12419   echo  "exit 0"   >>conf$$.sh
12420   chmod +x conf$$.sh
12421   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12422     PATH_SEPARATOR=';'
12423   else
12424     PATH_SEPARATOR=:
12425   fi
12426   rm -f conf$$.sh
12427 fi
12428
12429 # Support unset when possible.
12430 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12431   as_unset=unset
12432 else
12433   as_unset=false
12434 fi
12435
12436
12437 # IFS
12438 # We need space, tab and new line, in precisely that order.  Quoting is
12439 # there to prevent editors from complaining about space-tab.
12440 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12441 # splitting by setting IFS to empty value.)
12442 as_nl='
12443 '
12444 IFS=" ""        $as_nl"
12445
12446 # Find who we are.  Look in the path if we contain no directory separator.
12447 case $0 in
12448   *[\\/]* ) as_myself=$0 ;;
12449   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $PATH
12451 do
12452   IFS=$as_save_IFS
12453   test -z "$as_dir" && as_dir=.
12454   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12455 done
12456 IFS=$as_save_IFS
12457
12458      ;;
12459 esac
12460 # We did not find ourselves, most probably we were run as `sh COMMAND'
12461 # in which case we are not to be found in the path.
12462 if test "x$as_myself" = x; then
12463   as_myself=$0
12464 fi
12465 if test ! -f "$as_myself"; then
12466   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12467   { (exit 1); exit 1; }
12468 fi
12469
12470 # Work around bugs in pre-3.0 UWIN ksh.
12471 for as_var in ENV MAIL MAILPATH
12472 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12473 done
12474 PS1='$ '
12475 PS2='> '
12476 PS4='+ '
12477
12478 # NLS nuisances.
12479 for as_var in \
12480   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12481   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12482   LC_TELEPHONE LC_TIME
12483 do
12484   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12485     eval $as_var=C; export $as_var
12486   else
12487     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12488   fi
12489 done
12490
12491 # Required to use basename.
12492 if expr a : '\(a\)' >/dev/null 2>&1 &&
12493    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12494   as_expr=expr
12495 else
12496   as_expr=false
12497 fi
12498
12499 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12500   as_basename=basename
12501 else
12502   as_basename=false
12503 fi
12504
12505
12506 # Name of the executable.
12507 as_me=`$as_basename -- "$0" ||
12508 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12509          X"$0" : 'X\(//\)$' \| \
12510          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12511 echo X/"$0" |
12512     sed '/^.*\/\([^/][^/]*\)\/*$/{
12513             s//\1/
12514             q
12515           }
12516           /^X\/\(\/\/\)$/{
12517             s//\1/
12518             q
12519           }
12520           /^X\/\(\/\).*/{
12521             s//\1/
12522             q
12523           }
12524           s/.*/./; q'`
12525
12526 # CDPATH.
12527 $as_unset CDPATH
12528
12529
12530
12531   as_lineno_1=$LINENO
12532   as_lineno_2=$LINENO
12533   test "x$as_lineno_1" != "x$as_lineno_2" &&
12534   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12535
12536   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12537   # uniformly replaced by the line number.  The first 'sed' inserts a
12538   # line-number line after each line using $LINENO; the second 'sed'
12539   # does the real work.  The second script uses 'N' to pair each
12540   # line-number line with the line containing $LINENO, and appends
12541   # trailing '-' during substitution so that $LINENO is not a special
12542   # case at line end.
12543   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12544   # scripts with optimization help from Paolo Bonzini.  Blame Lee
12545   # E. McMahon (1931-1989) for sed's syntax.  :-)
12546   sed -n '
12547     p
12548     /[$]LINENO/=
12549   ' <$as_myself |
12550     sed '
12551       s/[$]LINENO.*/&-/
12552       t lineno
12553       b
12554       :lineno
12555       N
12556       :loop
12557       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12558       t loop
12559       s/-\n.*//
12560     ' >$as_me.lineno &&
12561   chmod +x "$as_me.lineno" ||
12562     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12563    { (exit 1); exit 1; }; }
12564
12565   # Don't try to exec as it changes $[0], causing all sort of problems
12566   # (the dirname of $[0] is not the place where we might find the
12567   # original and so on.  Autoconf is especially sensitive to this).
12568   . "./$as_me.lineno"
12569   # Exit status is that of the last command.
12570   exit
12571 }
12572
12573
12574 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12575   as_dirname=dirname
12576 else
12577   as_dirname=false
12578 fi
12579
12580 ECHO_C= ECHO_N= ECHO_T=
12581 case `echo -n x` in
12582 -n*)
12583   case `echo 'x\c'` in
12584   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12585   *)   ECHO_C='\c';;
12586   esac;;
12587 *)
12588   ECHO_N='-n';;
12589 esac
12590
12591 if expr a : '\(a\)' >/dev/null 2>&1 &&
12592    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12593   as_expr=expr
12594 else
12595   as_expr=false
12596 fi
12597
12598 rm -f conf$$ conf$$.exe conf$$.file
12599 if test -d conf$$.dir; then
12600   rm -f conf$$.dir/conf$$.file
12601 else
12602   rm -f conf$$.dir
12603   mkdir conf$$.dir
12604 fi
12605 echo >conf$$.file
12606 if ln -s conf$$.file conf$$ 2>/dev/null; then
12607   as_ln_s='ln -s'
12608   # ... but there are two gotchas:
12609   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12610   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12611   # In both cases, we have to default to `cp -p'.
12612   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12613     as_ln_s='cp -p'
12614 elif ln conf$$.file conf$$ 2>/dev/null; then
12615   as_ln_s=ln
12616 else
12617   as_ln_s='cp -p'
12618 fi
12619 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12620 rmdir conf$$.dir 2>/dev/null
12621
12622 if mkdir -p . 2>/dev/null; then
12623   as_mkdir_p=:
12624 else
12625   test -d ./-p && rmdir ./-p
12626   as_mkdir_p=false
12627 fi
12628
12629 if test -x / >/dev/null 2>&1; then
12630   as_test_x='test -x'
12631 else
12632   if ls -dL / >/dev/null 2>&1; then
12633     as_ls_L_option=L
12634   else
12635     as_ls_L_option=
12636   fi
12637   as_test_x='
12638     eval sh -c '\''
12639       if test -d "$1"; then
12640         test -d "$1/.";
12641       else
12642         case $1 in
12643         -*)set "./$1";;
12644         esac;
12645         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12646         ???[sx]*):;;*)false;;esac;fi
12647     '\'' sh
12648   '
12649 fi
12650 as_executable_p=$as_test_x
12651
12652 # Sed expression to map a string onto a valid CPP name.
12653 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12654
12655 # Sed expression to map a string onto a valid variable name.
12656 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12657
12658
12659 exec 6>&1
12660
12661 # Save the log message, to keep $[0] and so on meaningful, and to
12662 # report actual input values of CONFIG_FILES etc. instead of their
12663 # values after options handling.
12664 ac_log="
12665 This file was extended by $as_me, which was
12666 generated by GNU Autoconf 2.61.  Invocation command line was
12667
12668   CONFIG_FILES    = $CONFIG_FILES
12669   CONFIG_HEADERS  = $CONFIG_HEADERS
12670   CONFIG_LINKS    = $CONFIG_LINKS
12671   CONFIG_COMMANDS = $CONFIG_COMMANDS
12672   $ $0 $@
12673
12674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12675 "
12676
12677 _ACEOF
12678
12679 cat >>$CONFIG_STATUS <<_ACEOF
12680 # Files that config.status was made for.
12681 config_files="$ac_config_files"
12682
12683 _ACEOF
12684
12685 cat >>$CONFIG_STATUS <<\_ACEOF
12686 ac_cs_usage="\
12687 \`$as_me' instantiates files from templates according to the
12688 current configuration.
12689
12690 Usage: $0 [OPTIONS] [FILE]...
12691
12692   -h, --help       print this help, then exit
12693   -V, --version    print version number and configuration settings, then exit
12694   -q, --quiet      do not print progress messages
12695   -d, --debug      don't remove temporary files
12696       --recheck    update $as_me by reconfiguring in the same conditions
12697   --file=FILE[:TEMPLATE]
12698                    instantiate the configuration file FILE
12699
12700 Configuration files:
12701 $config_files
12702
12703 Report bugs to <bug-autoconf@gnu.org>."
12704
12705 _ACEOF
12706 cat >>$CONFIG_STATUS <<_ACEOF
12707 ac_cs_version="\\
12708 config.status
12709 configured by $0, generated by GNU Autoconf 2.61,
12710   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12711
12712 Copyright (C) 2006 Free Software Foundation, Inc.
12713 This config.status script is free software; the Free Software Foundation
12714 gives unlimited permission to copy, distribute and modify it."
12715
12716 ac_pwd='$ac_pwd'
12717 srcdir='$srcdir'
12718 INSTALL='$INSTALL'
12719 _ACEOF
12720
12721 cat >>$CONFIG_STATUS <<\_ACEOF
12722 # If no file are specified by the user, then we need to provide default
12723 # value.  By we need to know if files were specified by the user.
12724 ac_need_defaults=:
12725 while test $# != 0
12726 do
12727   case $1 in
12728   --*=*)
12729     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12730     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12731     ac_shift=:
12732     ;;
12733   *)
12734     ac_option=$1
12735     ac_optarg=$2
12736     ac_shift=shift
12737     ;;
12738   esac
12739
12740   case $ac_option in
12741   # Handling of the options.
12742   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12743     ac_cs_recheck=: ;;
12744   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12745     echo "$ac_cs_version"; exit ;;
12746   --debug | --debu | --deb | --de | --d | -d )
12747     debug=: ;;
12748   --file | --fil | --fi | --f )
12749     $ac_shift
12750     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12751     ac_need_defaults=false;;
12752   --he | --h |  --help | --hel | -h )
12753     echo "$ac_cs_usage"; exit ;;
12754   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12755   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12756     ac_cs_silent=: ;;
12757
12758   # This is an error.
12759   -*) { echo "$as_me: error: unrecognized option: $1
12760 Try \`$0 --help' for more information." >&2
12761    { (exit 1); exit 1; }; } ;;
12762
12763   *) ac_config_targets="$ac_config_targets $1"
12764      ac_need_defaults=false ;;
12765
12766   esac
12767   shift
12768 done
12769
12770 ac_configure_extra_args=
12771
12772 if $ac_cs_silent; then
12773   exec 6>/dev/null
12774   ac_configure_extra_args="$ac_configure_extra_args --silent"
12775 fi
12776
12777 _ACEOF
12778 cat >>$CONFIG_STATUS <<_ACEOF
12779 if \$ac_cs_recheck; then
12780   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12781   CONFIG_SHELL=$SHELL
12782   export CONFIG_SHELL
12783   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12784 fi
12785
12786 _ACEOF
12787 cat >>$CONFIG_STATUS <<\_ACEOF
12788 exec 5>>config.log
12789 {
12790   echo
12791   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12792 ## Running $as_me. ##
12793 _ASBOX
12794   echo "$ac_log"
12795 } >&5
12796
12797 _ACEOF
12798 cat >>$CONFIG_STATUS <<_ACEOF
12799 _ACEOF
12800
12801 cat >>$CONFIG_STATUS <<\_ACEOF
12802
12803 # Handling of arguments.
12804 for ac_config_target in $ac_config_targets
12805 do
12806   case $ac_config_target in
12807     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12808
12809   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12810 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12811    { (exit 1); exit 1; }; };;
12812   esac
12813 done
12814
12815
12816 # If the user did not use the arguments to specify the items to instantiate,
12817 # then the envvar interface is used.  Set only those that are not.
12818 # We use the long form for the default assignment because of an extremely
12819 # bizarre bug on SunOS 4.1.3.
12820 if $ac_need_defaults; then
12821   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12822 fi
12823
12824 # Have a temporary directory for convenience.  Make it in the build tree
12825 # simply because there is no reason against having it here, and in addition,
12826 # creating and moving files from /tmp can sometimes cause problems.
12827 # Hook for its removal unless debugging.
12828 # Note that there is a small window in which the directory will not be cleaned:
12829 # after its creation but before its name has been assigned to `$tmp'.
12830 $debug ||
12831 {
12832   tmp=
12833   trap 'exit_status=$?
12834   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12835 ' 0
12836   trap '{ (exit 1); exit 1; }' 1 2 13 15
12837 }
12838 # Create a (secure) tmp directory for tmp files.
12839
12840 {
12841   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12842   test -n "$tmp" && test -d "$tmp"
12843 }  ||
12844 {
12845   tmp=./conf$$-$RANDOM
12846   (umask 077 && mkdir "$tmp")
12847 } ||
12848 {
12849    echo "$me: cannot create a temporary directory in ." >&2
12850    { (exit 1); exit 1; }
12851 }
12852
12853 #
12854 # Set up the sed scripts for CONFIG_FILES section.
12855 #
12856
12857 # No need to generate the scripts if there are no CONFIG_FILES.
12858 # This happens for instance when ./config.status config.h
12859 if test -n "$CONFIG_FILES"; then
12860
12861 _ACEOF
12862
12863 # Create sed commands to just substitute file output variables.
12864
12865 # Remaining file output variables are in a fragment that also has non-file
12866 # output varibles.
12867
12868
12869
12870 ac_delim='%!_!# '
12871 for ac_last_try in false false false false false :; do
12872   cat >conf$$subs.sed <<_ACEOF
12873 SHELL!$SHELL$ac_delim
12874 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12875 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12876 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12877 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12878 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12879 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12880 exec_prefix!$exec_prefix$ac_delim
12881 prefix!$prefix$ac_delim
12882 program_transform_name!$program_transform_name$ac_delim
12883 bindir!$bindir$ac_delim
12884 sbindir!$sbindir$ac_delim
12885 libexecdir!$libexecdir$ac_delim
12886 datarootdir!$datarootdir$ac_delim
12887 datadir!$datadir$ac_delim
12888 sysconfdir!$sysconfdir$ac_delim
12889 sharedstatedir!$sharedstatedir$ac_delim
12890 localstatedir!$localstatedir$ac_delim
12891 includedir!$includedir$ac_delim
12892 oldincludedir!$oldincludedir$ac_delim
12893 docdir!$docdir$ac_delim
12894 infodir!$infodir$ac_delim
12895 htmldir!$htmldir$ac_delim
12896 dvidir!$dvidir$ac_delim
12897 pdfdir!$pdfdir$ac_delim
12898 psdir!$psdir$ac_delim
12899 libdir!$libdir$ac_delim
12900 localedir!$localedir$ac_delim
12901 mandir!$mandir$ac_delim
12902 DEFS!$DEFS$ac_delim
12903 ECHO_C!$ECHO_C$ac_delim
12904 ECHO_N!$ECHO_N$ac_delim
12905 ECHO_T!$ECHO_T$ac_delim
12906 LIBS!$LIBS$ac_delim
12907 build_alias!$build_alias$ac_delim
12908 host_alias!$host_alias$ac_delim
12909 target_alias!$target_alias$ac_delim
12910 build!$build$ac_delim
12911 build_cpu!$build_cpu$ac_delim
12912 build_vendor!$build_vendor$ac_delim
12913 build_os!$build_os$ac_delim
12914 build_noncanonical!$build_noncanonical$ac_delim
12915 host_noncanonical!$host_noncanonical$ac_delim
12916 target_noncanonical!$target_noncanonical$ac_delim
12917 host!$host$ac_delim
12918 host_cpu!$host_cpu$ac_delim
12919 host_vendor!$host_vendor$ac_delim
12920 host_os!$host_os$ac_delim
12921 target!$target$ac_delim
12922 target_cpu!$target_cpu$ac_delim
12923 target_vendor!$target_vendor$ac_delim
12924 target_os!$target_os$ac_delim
12925 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12926 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12927 INSTALL_DATA!$INSTALL_DATA$ac_delim
12928 LN!$LN$ac_delim
12929 LN_S!$LN_S$ac_delim
12930 TOPLEVEL_CONFIGURE_ARGUMENTS!$TOPLEVEL_CONFIGURE_ARGUMENTS$ac_delim
12931 build_libsubdir!$build_libsubdir$ac_delim
12932 build_subdir!$build_subdir$ac_delim
12933 host_subdir!$host_subdir$ac_delim
12934 target_subdir!$target_subdir$ac_delim
12935 CC!$CC$ac_delim
12936 CFLAGS!$CFLAGS$ac_delim
12937 LDFLAGS!$LDFLAGS$ac_delim
12938 CPPFLAGS!$CPPFLAGS$ac_delim
12939 ac_ct_CC!$ac_ct_CC$ac_delim
12940 EXEEXT!$EXEEXT$ac_delim
12941 OBJEXT!$OBJEXT$ac_delim
12942 CXX!$CXX$ac_delim
12943 CXXFLAGS!$CXXFLAGS$ac_delim
12944 ac_ct_CXX!$ac_ct_CXX$ac_delim
12945 GNATBIND!$GNATBIND$ac_delim
12946 GNATMAKE!$GNATMAKE$ac_delim
12947 do_compare!$do_compare$ac_delim
12948 gmplibs!$gmplibs$ac_delim
12949 gmpinc!$gmpinc$ac_delim
12950 stage1_languages!$stage1_languages$ac_delim
12951 SYSROOT_CFLAGS_FOR_TARGET!$SYSROOT_CFLAGS_FOR_TARGET$ac_delim
12952 RPATH_ENVVAR!$RPATH_ENVVAR$ac_delim
12953 tooldir!$tooldir$ac_delim
12954 build_tooldir!$build_tooldir$ac_delim
12955 _ACEOF
12956
12957   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
12958     break
12959   elif $ac_last_try; then
12960     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12961 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12962    { (exit 1); exit 1; }; }
12963   else
12964     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12965   fi
12966 done
12967
12968 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12969 if test -n "$ac_eof"; then
12970   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12971   ac_eof=`expr $ac_eof + 1`
12972 fi
12973
12974 cat >>$CONFIG_STATUS <<_ACEOF
12975 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12976 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12977 /^[      ]*@serialization_dependencies@[         ]*$/{
12978 r $serialization_dependencies
12979 d
12980 }
12981 /^[      ]*@host_makefile_frag@[         ]*$/{
12982 r $host_makefile_frag
12983 d
12984 }
12985 /^[      ]*@target_makefile_frag@[       ]*$/{
12986 r $target_makefile_frag
12987 d
12988 }
12989 /^[      ]*@alphaieee_frag@[     ]*$/{
12990 r $alphaieee_frag
12991 d
12992 }
12993 /^[      ]*@ospace_frag@[        ]*$/{
12994 r $ospace_frag
12995 d
12996 }
12997 _ACEOF
12998 sed '
12999 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13000 s/^/s,@/; s/!/@,|#_!!_#|/
13001 :n
13002 t n
13003 s/'"$ac_delim"'$/,g/; t
13004 s/$/\\/; p
13005 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13006 ' >>$CONFIG_STATUS <conf$$subs.sed
13007 rm -f conf$$subs.sed
13008 cat >>$CONFIG_STATUS <<_ACEOF
13009 CEOF$ac_eof
13010 _ACEOF
13011
13012
13013 ac_delim='%!_!# '
13014 for ac_last_try in false false false false false :; do
13015   cat >conf$$subs.sed <<_ACEOF
13016 CONFIGURE_GDB_TK!$CONFIGURE_GDB_TK$ac_delim
13017 GDB_TK!$GDB_TK$ac_delim
13018 INSTALL_GDB_TK!$INSTALL_GDB_TK$ac_delim
13019 build_configargs!$build_configargs$ac_delim
13020 build_configdirs!$build_configdirs$ac_delim
13021 host_configargs!$host_configargs$ac_delim
13022 configdirs!$configdirs$ac_delim
13023 target_configargs!$target_configargs$ac_delim
13024 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
13025 config_shell!$config_shell$ac_delim
13026 YACC!$YACC$ac_delim
13027 BISON!$BISON$ac_delim
13028 M4!$M4$ac_delim
13029 LEX!$LEX$ac_delim
13030 FLEX!$FLEX$ac_delim
13031 MAKEINFO!$MAKEINFO$ac_delim
13032 EXPECT!$EXPECT$ac_delim
13033 RUNTEST!$RUNTEST$ac_delim
13034 AR!$AR$ac_delim
13035 AS!$AS$ac_delim
13036 DLLTOOL!$DLLTOOL$ac_delim
13037 LD!$LD$ac_delim
13038 LIPO!$LIPO$ac_delim
13039 NM!$NM$ac_delim
13040 RANLIB!$RANLIB$ac_delim
13041 STRIP!$STRIP$ac_delim
13042 WINDRES!$WINDRES$ac_delim
13043 OBJCOPY!$OBJCOPY$ac_delim
13044 OBJDUMP!$OBJDUMP$ac_delim
13045 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
13046 CC_FOR_TARGET!$CC_FOR_TARGET$ac_delim
13047 CXX_FOR_TARGET!$CXX_FOR_TARGET$ac_delim
13048 GCC_FOR_TARGET!$GCC_FOR_TARGET$ac_delim
13049 GCJ_FOR_TARGET!$GCJ_FOR_TARGET$ac_delim
13050 GFORTRAN_FOR_TARGET!$GFORTRAN_FOR_TARGET$ac_delim
13051 AR_FOR_TARGET!$AR_FOR_TARGET$ac_delim
13052 AS_FOR_TARGET!$AS_FOR_TARGET$ac_delim
13053 DLLTOOL_FOR_TARGET!$DLLTOOL_FOR_TARGET$ac_delim
13054 LD_FOR_TARGET!$LD_FOR_TARGET$ac_delim
13055 LIPO_FOR_TARGET!$LIPO_FOR_TARGET$ac_delim
13056 NM_FOR_TARGET!$NM_FOR_TARGET$ac_delim
13057 OBJDUMP_FOR_TARGET!$OBJDUMP_FOR_TARGET$ac_delim
13058 RANLIB_FOR_TARGET!$RANLIB_FOR_TARGET$ac_delim
13059 STRIP_FOR_TARGET!$STRIP_FOR_TARGET$ac_delim
13060 WINDRES_FOR_TARGET!$WINDRES_FOR_TARGET$ac_delim
13061 RAW_CXX_FOR_TARGET!$RAW_CXX_FOR_TARGET$ac_delim
13062 FLAGS_FOR_TARGET!$FLAGS_FOR_TARGET$ac_delim
13063 COMPILER_AS_FOR_TARGET!$COMPILER_AS_FOR_TARGET$ac_delim
13064 COMPILER_LD_FOR_TARGET!$COMPILER_LD_FOR_TARGET$ac_delim
13065 COMPILER_NM_FOR_TARGET!$COMPILER_NM_FOR_TARGET$ac_delim
13066 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
13067 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
13068 MAINT!$MAINT$ac_delim
13069 stage1_cflags!$stage1_cflags$ac_delim
13070 stage1_checking!$stage1_checking$ac_delim
13071 stage2_werror_flag!$stage2_werror_flag$ac_delim
13072 LIBOBJS!$LIBOBJS$ac_delim
13073 LTLIBOBJS!$LTLIBOBJS$ac_delim
13074 _ACEOF
13075
13076   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
13077     break
13078   elif $ac_last_try; then
13079     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13080 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13081    { (exit 1); exit 1; }; }
13082   else
13083     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13084   fi
13085 done
13086
13087 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13088 if test -n "$ac_eof"; then
13089   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13090   ac_eof=`expr $ac_eof + 1`
13091 fi
13092
13093 cat >>$CONFIG_STATUS <<_ACEOF
13094 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13096 _ACEOF
13097 sed '
13098 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13099 s/^/s,@/; s/!/@,|#_!!_#|/
13100 :n
13101 t n
13102 s/'"$ac_delim"'$/,g/; t
13103 s/$/\\/; p
13104 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13105 ' >>$CONFIG_STATUS <conf$$subs.sed
13106 rm -f conf$$subs.sed
13107 cat >>$CONFIG_STATUS <<_ACEOF
13108 :end
13109 s/|#_!!_#|//g
13110 CEOF$ac_eof
13111 _ACEOF
13112
13113
13114 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13115 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13116 # trailing colons and then remove the whole line if VPATH becomes empty
13117 # (actually we leave an empty line to preserve line numbers).
13118 if test "x$srcdir" = x.; then
13119   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13120 s/:*\$(srcdir):*/:/
13121 s/:*\${srcdir}:*/:/
13122 s/:*@srcdir@:*/:/
13123 s/^\([^=]*=[     ]*\):*/\1/
13124 s/:*$//
13125 s/^[^=]*=[       ]*$//
13126 }'
13127 fi
13128
13129 cat >>$CONFIG_STATUS <<\_ACEOF
13130 fi # test -n "$CONFIG_FILES"
13131
13132
13133 for ac_tag in  :F $CONFIG_FILES
13134 do
13135   case $ac_tag in
13136   :[FHLC]) ac_mode=$ac_tag; continue;;
13137   esac
13138   case $ac_mode$ac_tag in
13139   :[FHL]*:*);;
13140   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13141 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13142    { (exit 1); exit 1; }; };;
13143   :[FH]-) ac_tag=-:-;;
13144   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13145   esac
13146   ac_save_IFS=$IFS
13147   IFS=:
13148   set x $ac_tag
13149   IFS=$ac_save_IFS
13150   shift
13151   ac_file=$1
13152   shift
13153
13154   case $ac_mode in
13155   :L) ac_source=$1;;
13156   :[FH])
13157     ac_file_inputs=
13158     for ac_f
13159     do
13160       case $ac_f in
13161       -) ac_f="$tmp/stdin";;
13162       *) # Look for the file first in the build tree, then in the source tree
13163          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13164          # because $ac_f cannot contain `:'.
13165          test -f "$ac_f" ||
13166            case $ac_f in
13167            [\\/$]*) false;;
13168            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13169            esac ||
13170            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13171 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13172    { (exit 1); exit 1; }; };;
13173       esac
13174       ac_file_inputs="$ac_file_inputs $ac_f"
13175     done
13176
13177     # Let's still pretend it is `configure' which instantiates (i.e., don't
13178     # use $as_me), people would be surprised to read:
13179     #    /* config.h.  Generated by config.status.  */
13180     configure_input="Generated from "`IFS=:
13181           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13182     if test x"$ac_file" != x-; then
13183       configure_input="$ac_file.  $configure_input"
13184       { echo "$as_me:$LINENO: creating $ac_file" >&5
13185 echo "$as_me: creating $ac_file" >&6;}
13186     fi
13187
13188     case $ac_tag in
13189     *:-:* | *:-) cat >"$tmp/stdin";;
13190     esac
13191     ;;
13192   esac
13193
13194   ac_dir=`$as_dirname -- "$ac_file" ||
13195 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13196          X"$ac_file" : 'X\(//\)[^/]' \| \
13197          X"$ac_file" : 'X\(//\)$' \| \
13198          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13199 echo X"$ac_file" |
13200     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13201             s//\1/
13202             q
13203           }
13204           /^X\(\/\/\)[^/].*/{
13205             s//\1/
13206             q
13207           }
13208           /^X\(\/\/\)$/{
13209             s//\1/
13210             q
13211           }
13212           /^X\(\/\).*/{
13213             s//\1/
13214             q
13215           }
13216           s/.*/./; q'`
13217   { as_dir="$ac_dir"
13218   case $as_dir in #(
13219   -*) as_dir=./$as_dir;;
13220   esac
13221   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13222     as_dirs=
13223     while :; do
13224       case $as_dir in #(
13225       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13226       *) as_qdir=$as_dir;;
13227       esac
13228       as_dirs="'$as_qdir' $as_dirs"
13229       as_dir=`$as_dirname -- "$as_dir" ||
13230 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13231          X"$as_dir" : 'X\(//\)[^/]' \| \
13232          X"$as_dir" : 'X\(//\)$' \| \
13233          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13234 echo X"$as_dir" |
13235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13236             s//\1/
13237             q
13238           }
13239           /^X\(\/\/\)[^/].*/{
13240             s//\1/
13241             q
13242           }
13243           /^X\(\/\/\)$/{
13244             s//\1/
13245             q
13246           }
13247           /^X\(\/\).*/{
13248             s//\1/
13249             q
13250           }
13251           s/.*/./; q'`
13252       test -d "$as_dir" && break
13253     done
13254     test -z "$as_dirs" || eval "mkdir $as_dirs"
13255   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13256 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13257    { (exit 1); exit 1; }; }; }
13258   ac_builddir=.
13259
13260 case "$ac_dir" in
13261 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13262 *)
13263   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13264   # A ".." for each directory in $ac_dir_suffix.
13265   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13266   case $ac_top_builddir_sub in
13267   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13268   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13269   esac ;;
13270 esac
13271 ac_abs_top_builddir=$ac_pwd
13272 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13273 # for backward compatibility:
13274 ac_top_builddir=$ac_top_build_prefix
13275
13276 case $srcdir in
13277   .)  # We are building in place.
13278     ac_srcdir=.
13279     ac_top_srcdir=$ac_top_builddir_sub
13280     ac_abs_top_srcdir=$ac_pwd ;;
13281   [\\/]* | ?:[\\/]* )  # Absolute name.
13282     ac_srcdir=$srcdir$ac_dir_suffix;
13283     ac_top_srcdir=$srcdir
13284     ac_abs_top_srcdir=$srcdir ;;
13285   *) # Relative name.
13286     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13287     ac_top_srcdir=$ac_top_build_prefix$srcdir
13288     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13289 esac
13290 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13291
13292
13293   case $ac_mode in
13294   :F)
13295   #
13296   # CONFIG_FILE
13297   #
13298
13299   case $INSTALL in
13300   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13301   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13302   esac
13303 _ACEOF
13304
13305 cat >>$CONFIG_STATUS <<\_ACEOF
13306 # If the template does not know about datarootdir, expand it.
13307 # FIXME: This hack should be removed a few years after 2.60.
13308 ac_datarootdir_hack=; ac_datarootdir_seen=
13309
13310 case `sed -n '/datarootdir/ {
13311   p
13312   q
13313 }
13314 /@datadir@/p
13315 /@docdir@/p
13316 /@infodir@/p
13317 /@localedir@/p
13318 /@mandir@/p
13319 ' $ac_file_inputs` in
13320 *datarootdir*) ac_datarootdir_seen=yes;;
13321 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13322   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13323 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13324 _ACEOF
13325 cat >>$CONFIG_STATUS <<_ACEOF
13326   ac_datarootdir_hack='
13327   s&@datadir@&$datadir&g
13328   s&@docdir@&$docdir&g
13329   s&@infodir@&$infodir&g
13330   s&@localedir@&$localedir&g
13331   s&@mandir@&$mandir&g
13332     s&\\\${datarootdir}&$datarootdir&g' ;;
13333 esac
13334 _ACEOF
13335
13336 # Neutralize VPATH when `$srcdir' = `.'.
13337 # Shell code in configure.ac might set extrasub.
13338 # FIXME: do we really want to maintain this feature?
13339 cat >>$CONFIG_STATUS <<_ACEOF
13340   sed "$ac_vpsub
13341 $extrasub
13342 _ACEOF
13343 cat >>$CONFIG_STATUS <<\_ACEOF
13344 :t
13345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13346 s&@configure_input@&$configure_input&;t t
13347 s&@top_builddir@&$ac_top_builddir_sub&;t t
13348 s&@srcdir@&$ac_srcdir&;t t
13349 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13350 s&@top_srcdir@&$ac_top_srcdir&;t t
13351 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13352 s&@builddir@&$ac_builddir&;t t
13353 s&@abs_builddir@&$ac_abs_builddir&;t t
13354 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13355 s&@INSTALL@&$ac_INSTALL&;t t
13356 $ac_datarootdir_hack
13357 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13358
13359 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13360   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13361   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13362   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13363 which seems to be undefined.  Please make sure it is defined." >&5
13364 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13365 which seems to be undefined.  Please make sure it is defined." >&2;}
13366
13367   rm -f "$tmp/stdin"
13368   case $ac_file in
13369   -) cat "$tmp/out"; rm -f "$tmp/out";;
13370   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13371   esac
13372  ;;
13373
13374
13375
13376   esac
13377
13378 done # for ac_tag
13379
13380
13381 { (exit 0); exit 0; }
13382 _ACEOF
13383 chmod +x $CONFIG_STATUS
13384 ac_clean_files=$ac_clean_files_save
13385
13386
13387 # configure is writing to config.log, and then calls config.status.
13388 # config.status does its own redirection, appending to config.log.
13389 # Unfortunately, on DOS this fails, as config.log is still kept open
13390 # by configure, so config.status won't be able to write to it; its
13391 # output is simply discarded.  So we exec the FD to /dev/null,
13392 # effectively closing config.log, so it can be properly (re)opened and
13393 # appended to by config.status.  When coming back to configure, we
13394 # need to make the FD available again.
13395 if test "$no_create" != yes; then
13396   ac_cs_success=:
13397   ac_config_status_args=
13398   test "$silent" = yes &&
13399     ac_config_status_args="$ac_config_status_args --quiet"
13400   exec 5>/dev/null
13401   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13402   exec 5>>config.log
13403   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13404   # would make configure fail if this is the last instruction.
13405   $ac_cs_success || { (exit 1); exit 1; }
13406 fi
13407