OSDN Git Service

2006-10-21 Steven G. Kargl <kargl@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-build-libsubdir=[DIR]  Directory where to find libraries for build system"
16 ac_help="$ac_help
17   --enable-libada        Builds libada directory"
18 ac_help="$ac_help
19   --enable-libssp        Builds libssp directory"
20 ac_help="$ac_help
21   --with-mpfr-dir=PATH    Specify source directory for MPFR library"
22 ac_help="$ac_help
23   --with-mpfr=PATH        Specify directory for installed MPFR library"
24 ac_help="$ac_help
25   --with-gmp-dir=PATH     Specify source directory for GMP library"
26 ac_help="$ac_help
27   --with-gmp=PATH         Specify directory for installed GMP library"
28 ac_help="$ac_help
29   --enable-objc-gc       enable the use of Boehm's garbage collector with
30                           the GNU Objective-C runtime."
31 ac_help="$ac_help
32   --with-build-sysroot=sysroot
33                           use sysroot as the system root during the build"
34 ac_help="$ac_help
35   --enable-bootstrap           Enable bootstrapping [yes if native build]"
36 ac_help="$ac_help
37   --enable-serial-[{host,target,build}-]configure
38                           Force sequential configuration of
39                           sub-packages for the host, target or build
40                           machine, or all sub-packages"
41 ac_help="$ac_help
42   --with-build-time-tools=path
43                           use given path to find target tools during the build"
44 ac_help="$ac_help
45   --enable-maintainer-mode enable make rules and dependencies not useful
46                           (and sometimes confusing) to the casual installer"
47 ac_help="$ac_help
48   --enable-werror         enable -Werror in bootstrap stage2 and later"
49 ac_help="$ac_help
50   --with-datarootdir    Use datarootdir as the data root directory."
51 ac_help="$ac_help
52   --with-docdir Install documentation in this directory."
53 ac_help="$ac_help
54   --with-htmldir        Install html in this directory."
55
56 # Initialize some variables set by options.
57 # The variables have the same names as the options, with
58 # dashes changed to underlines.
59 build=NONE
60 cache_file=./config.cache
61 exec_prefix=NONE
62 host=NONE
63 no_create=
64 nonopt=NONE
65 no_recursion=
66 prefix=NONE
67 program_prefix=NONE
68 program_suffix=NONE
69 program_transform_name=s,x,x,
70 silent=
71 site=
72 srcdir=
73 target=NONE
74 verbose=
75 x_includes=NONE
76 x_libraries=NONE
77 bindir='${exec_prefix}/bin'
78 sbindir='${exec_prefix}/sbin'
79 libexecdir='${exec_prefix}/libexec'
80 datadir='${prefix}/share'
81 sysconfdir='${prefix}/etc'
82 sharedstatedir='${prefix}/com'
83 localstatedir='${prefix}/var'
84 libdir='${exec_prefix}/lib'
85 includedir='${prefix}/include'
86 oldincludedir='/usr/include'
87 infodir='${prefix}/info'
88 mandir='${prefix}/man'
89
90 # Initialize some other variables.
91 subdirs=
92 MFLAGS= MAKEFLAGS=
93 SHELL=${CONFIG_SHELL-/bin/sh}
94 # Maximum number of lines to put in a shell here document.
95 ac_max_here_lines=12
96
97 ac_prev=
98 for ac_option
99 do
100
101   # If the previous option needs an argument, assign it.
102   if test -n "$ac_prev"; then
103     eval "$ac_prev=\$ac_option"
104     ac_prev=
105     continue
106   fi
107
108   case "$ac_option" in
109   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
110   *) ac_optarg= ;;
111   esac
112
113   # Accept the important Cygnus configure options, so we can diagnose typos.
114
115   case "$ac_option" in
116
117   -bindir | --bindir | --bindi | --bind | --bin | --bi)
118     ac_prev=bindir ;;
119   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
120     bindir="$ac_optarg" ;;
121
122   -build | --build | --buil | --bui | --bu)
123     ac_prev=build ;;
124   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
125     build="$ac_optarg" ;;
126
127   -cache-file | --cache-file | --cache-fil | --cache-fi \
128   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
129     ac_prev=cache_file ;;
130   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
131   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
132     cache_file="$ac_optarg" ;;
133
134   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
135     ac_prev=datadir ;;
136   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
137   | --da=*)
138     datadir="$ac_optarg" ;;
139
140   -disable-* | --disable-*)
141     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
142     # Reject names that are not valid shell variable names.
143     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
144       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145     fi
146     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147     eval "enable_${ac_feature}=no" ;;
148
149   -enable-* | --enable-*)
150     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
151     # Reject names that are not valid shell variable names.
152     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
153       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154     fi
155     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156     case "$ac_option" in
157       *=*) ;;
158       *) ac_optarg=yes ;;
159     esac
160     eval "enable_${ac_feature}='$ac_optarg'" ;;
161
162   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
163   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
164   | --exec | --exe | --ex)
165     ac_prev=exec_prefix ;;
166   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
167   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
168   | --exec=* | --exe=* | --ex=*)
169     exec_prefix="$ac_optarg" ;;
170
171   -gas | --gas | --ga | --g)
172     # Obsolete; use --with-gas.
173     with_gas=yes ;;
174
175   -help | --help | --hel | --he)
176     # Omit some internal or obsolete options to make the list less imposing.
177     # This message is too long to be a string in the A/UX 3.1 sh.
178     cat << EOF
179 Usage: configure [options] [host]
180 Options: [defaults in brackets after descriptions]
181 Configuration:
182   --cache-file=FILE       cache test results in FILE
183   --help                  print this message
184   --no-create             do not create output files
185   --quiet, --silent       do not print \`checking...' messages
186   --version               print the version of autoconf that created configure
187 Directory and file names:
188   --prefix=PREFIX         install architecture-independent files in PREFIX
189                           [$ac_default_prefix]
190   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
191                           [same as prefix]
192   --bindir=DIR            user executables in DIR [EPREFIX/bin]
193   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
194   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
195   --datadir=DIR           read-only architecture-independent data in DIR
196                           [PREFIX/share]
197   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
198   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
199                           [PREFIX/com]
200   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
201   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
202   --includedir=DIR        C header files in DIR [PREFIX/include]
203   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
204   --infodir=DIR           info documentation in DIR [PREFIX/info]
205   --mandir=DIR            man documentation in DIR [PREFIX/man]
206   --srcdir=DIR            find the sources in DIR [configure dir or ..]
207   --program-prefix=PREFIX prepend PREFIX to installed program names
208   --program-suffix=SUFFIX append SUFFIX to installed program names
209   --program-transform-name=PROGRAM
210                           run sed PROGRAM on installed program names
211 EOF
212     cat << EOF
213 Host type:
214   --build=BUILD           configure for building on BUILD [BUILD=HOST]
215   --host=HOST             configure for HOST [guessed]
216   --target=TARGET         configure for TARGET [TARGET=HOST]
217 Features and packages:
218   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
219   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
220   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
221   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
222   --x-includes=DIR        X include files are in DIR
223   --x-libraries=DIR       X library files are in DIR
224 EOF
225     if test -n "$ac_help"; then
226       echo "--enable and --with options recognized:$ac_help"
227     fi
228     exit 0 ;;
229
230   -host | --host | --hos | --ho)
231     ac_prev=host ;;
232   -host=* | --host=* | --hos=* | --ho=*)
233     host="$ac_optarg" ;;
234
235   -includedir | --includedir | --includedi | --included | --include \
236   | --includ | --inclu | --incl | --inc)
237     ac_prev=includedir ;;
238   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
239   | --includ=* | --inclu=* | --incl=* | --inc=*)
240     includedir="$ac_optarg" ;;
241
242   -infodir | --infodir | --infodi | --infod | --info | --inf)
243     ac_prev=infodir ;;
244   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
245     infodir="$ac_optarg" ;;
246
247   -libdir | --libdir | --libdi | --libd)
248     ac_prev=libdir ;;
249   -libdir=* | --libdir=* | --libdi=* | --libd=*)
250     libdir="$ac_optarg" ;;
251
252   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
253   | --libexe | --libex | --libe)
254     ac_prev=libexecdir ;;
255   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
256   | --libexe=* | --libex=* | --libe=*)
257     libexecdir="$ac_optarg" ;;
258
259   -localstatedir | --localstatedir | --localstatedi | --localstated \
260   | --localstate | --localstat | --localsta | --localst \
261   | --locals | --local | --loca | --loc | --lo)
262     ac_prev=localstatedir ;;
263   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
264   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
265   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
266     localstatedir="$ac_optarg" ;;
267
268   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
269     ac_prev=mandir ;;
270   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
271     mandir="$ac_optarg" ;;
272
273   -nfp | --nfp | --nf)
274     # Obsolete; use --without-fp.
275     with_fp=no ;;
276
277   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278   | --no-cr | --no-c)
279     no_create=yes ;;
280
281   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
282   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
283     no_recursion=yes ;;
284
285   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
286   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
287   | --oldin | --oldi | --old | --ol | --o)
288     ac_prev=oldincludedir ;;
289   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
290   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
291   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
292     oldincludedir="$ac_optarg" ;;
293
294   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
295     ac_prev=prefix ;;
296   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
297     prefix="$ac_optarg" ;;
298
299   -program-prefix | --program-prefix | --program-prefi | --program-pref \
300   | --program-pre | --program-pr | --program-p)
301     ac_prev=program_prefix ;;
302   -program-prefix=* | --program-prefix=* | --program-prefi=* \
303   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
304     program_prefix="$ac_optarg" ;;
305
306   -program-suffix | --program-suffix | --program-suffi | --program-suff \
307   | --program-suf | --program-su | --program-s)
308     ac_prev=program_suffix ;;
309   -program-suffix=* | --program-suffix=* | --program-suffi=* \
310   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
311     program_suffix="$ac_optarg" ;;
312
313   -program-transform-name | --program-transform-name \
314   | --program-transform-nam | --program-transform-na \
315   | --program-transform-n | --program-transform- \
316   | --program-transform | --program-transfor \
317   | --program-transfo | --program-transf \
318   | --program-trans | --program-tran \
319   | --progr-tra | --program-tr | --program-t)
320     ac_prev=program_transform_name ;;
321   -program-transform-name=* | --program-transform-name=* \
322   | --program-transform-nam=* | --program-transform-na=* \
323   | --program-transform-n=* | --program-transform-=* \
324   | --program-transform=* | --program-transfor=* \
325   | --program-transfo=* | --program-transf=* \
326   | --program-trans=* | --program-tran=* \
327   | --progr-tra=* | --program-tr=* | --program-t=*)
328     program_transform_name="$ac_optarg" ;;
329
330   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
331   | -silent | --silent | --silen | --sile | --sil)
332     silent=yes ;;
333
334   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
335     ac_prev=sbindir ;;
336   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
337   | --sbi=* | --sb=*)
338     sbindir="$ac_optarg" ;;
339
340   -sharedstatedir | --sharedstatedir | --sharedstatedi \
341   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
342   | --sharedst | --shareds | --shared | --share | --shar \
343   | --sha | --sh)
344     ac_prev=sharedstatedir ;;
345   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
346   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
347   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
348   | --sha=* | --sh=*)
349     sharedstatedir="$ac_optarg" ;;
350
351   -site | --site | --sit)
352     ac_prev=site ;;
353   -site=* | --site=* | --sit=*)
354     site="$ac_optarg" ;;
355
356   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
357     ac_prev=srcdir ;;
358   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
359     srcdir="$ac_optarg" ;;
360
361   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
362   | --syscon | --sysco | --sysc | --sys | --sy)
363     ac_prev=sysconfdir ;;
364   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
365   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
366     sysconfdir="$ac_optarg" ;;
367
368   -target | --target | --targe | --targ | --tar | --ta | --t)
369     ac_prev=target ;;
370   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
371     target="$ac_optarg" ;;
372
373   -v | -verbose | --verbose | --verbos | --verbo | --verb)
374     verbose=yes ;;
375
376   -version | --version | --versio | --versi | --vers)
377     echo "configure generated by autoconf version 2.13"
378     exit 0 ;;
379
380   -with-* | --with-*)
381     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
382     # Reject names that are not valid shell variable names.
383     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
384       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385     fi
386     ac_package=`echo $ac_package| sed 's/-/_/g'`
387     case "$ac_option" in
388       *=*) ;;
389       *) ac_optarg=yes ;;
390     esac
391     eval "with_${ac_package}='$ac_optarg'" ;;
392
393   -without-* | --without-*)
394     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
395     # Reject names that are not valid shell variable names.
396     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
397       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398     fi
399     ac_package=`echo $ac_package| sed 's/-/_/g'`
400     eval "with_${ac_package}=no" ;;
401
402   --x)
403     # Obsolete; use --with-x.
404     with_x=yes ;;
405
406   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
407   | --x-incl | --x-inc | --x-in | --x-i)
408     ac_prev=x_includes ;;
409   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
410   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
411     x_includes="$ac_optarg" ;;
412
413   -x-libraries | --x-libraries | --x-librarie | --x-librari \
414   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
415     ac_prev=x_libraries ;;
416   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
417   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
418     x_libraries="$ac_optarg" ;;
419
420   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
421     ;;
422
423   *)
424     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
425       echo "configure: warning: $ac_option: invalid host type" 1>&2
426     fi
427     if test "x$nonopt" != xNONE; then
428       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
429     fi
430     nonopt="$ac_option"
431     ;;
432
433   esac
434 done
435
436 if test -n "$ac_prev"; then
437   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
438 fi
439
440 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
441
442 # File descriptor usage:
443 # 0 standard input
444 # 1 file creation
445 # 2 errors and warnings
446 # 3 some systems may open it to /dev/tty
447 # 4 used on the Kubota Titan
448 # 6 checking for... messages and results
449 # 5 compiler messages saved in config.log
450 if test "$silent" = yes; then
451   exec 6>/dev/null
452 else
453   exec 6>&1
454 fi
455 exec 5>./config.log
456
457 echo "\
458 This file contains any messages produced by compilers while
459 running configure, to aid debugging if configure makes a mistake.
460 " 1>&5
461
462 # Strip out --no-create and --no-recursion so they do not pile up.
463 # Also quote any args containing shell metacharacters.
464 ac_configure_args=
465 for ac_arg
466 do
467   case "$ac_arg" in
468   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
469   | --no-cr | --no-c) ;;
470   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
471   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
472   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
473   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
474   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
475   esac
476 done
477
478 # NLS nuisances.
479 # Only set these to C if already set.  These must not be set unconditionally
480 # because not all systems understand e.g. LANG=C (notably SCO).
481 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
482 # Non-C LC_CTYPE values break the ctype check.
483 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
484 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
485 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
486 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
487
488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
489 rm -rf conftest* confdefs.h
490 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
491 echo > confdefs.h
492
493 # A filename unique to this package, relative to the directory that
494 # configure is in, which we can look for to find out if srcdir is correct.
495 ac_unique_file=move-if-change
496
497 # Find the source files, if location was not specified.
498 if test -z "$srcdir"; then
499   ac_srcdir_defaulted=yes
500   # Try the directory containing this script, then its parent.
501   ac_prog=$0
502   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
503   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
504   srcdir=$ac_confdir
505   if test ! -r $srcdir/$ac_unique_file; then
506     srcdir=..
507   fi
508 else
509   ac_srcdir_defaulted=no
510 fi
511 if test ! -r $srcdir/$ac_unique_file; then
512   if test "$ac_srcdir_defaulted" = yes; then
513     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
514   else
515     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
516   fi
517 fi
518 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
519
520 # Prefer explicitly selected file to automatically selected ones.
521 if test -z "$CONFIG_SITE"; then
522   if test "x$prefix" != xNONE; then
523     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
524   else
525     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
526   fi
527 fi
528 for ac_site_file in $CONFIG_SITE; do
529   if test -r "$ac_site_file"; then
530     echo "loading site script $ac_site_file"
531     . "$ac_site_file"
532   fi
533 done
534
535 if test -r "$cache_file"; then
536   echo "loading cache $cache_file"
537   . $cache_file
538 else
539   echo "creating cache $cache_file"
540   > $cache_file
541 fi
542
543 ac_ext=c
544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
545 ac_cpp='$CPP $CPPFLAGS'
546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
548 cross_compiling=$ac_cv_prog_cc_cross
549
550 ac_exeext=
551 ac_objext=o
552 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
553   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
555     ac_n= ac_c='
556 ' ac_t='        '
557   else
558     ac_n=-n ac_c= ac_t=
559   fi
560 else
561   ac_n= ac_c='\c' ac_t=
562 fi
563
564
565
566 ac_aux_dir=
567 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
568   if test -f $ac_dir/install-sh; then
569     ac_aux_dir=$ac_dir
570     ac_install_sh="$ac_aux_dir/install-sh -c"
571     break
572   elif test -f $ac_dir/install.sh; then
573     ac_aux_dir=$ac_dir
574     ac_install_sh="$ac_aux_dir/install.sh -c"
575     break
576   fi
577 done
578 if test -z "$ac_aux_dir"; then
579   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
580 fi
581 ac_config_guess=$ac_aux_dir/config.guess
582 ac_config_sub=$ac_aux_dir/config.sub
583 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
584
585
586 # Do some error checking and defaulting for the host and target type.
587 # The inputs are:
588 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
589 #
590 # The rules are:
591 # 1. You are not allowed to specify --host, --target, and nonopt at the
592 #    same time.
593 # 2. Host defaults to nonopt.
594 # 3. If nonopt is not specified, then host defaults to the current host,
595 #    as determined by config.guess.
596 # 4. Target and build default to nonopt.
597 # 5. If nonopt is not specified, then target and build default to host.
598
599 # The aliases save the names the user supplied, while $host etc.
600 # will get canonicalized.
601 case $host---$target---$nonopt in
602 NONE---*---* | *---NONE---* | *---*---NONE) ;;
603 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
604 esac
605
606
607 # Make sure we can run config.sub.
608 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
609 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
610 fi
611
612 echo $ac_n "checking host system type""... $ac_c" 1>&6
613 echo "configure:614: checking host system type" >&5
614
615 host_alias=$host
616 case "$host_alias" in
617 NONE)
618   case $nonopt in
619   NONE)
620     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
621     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
622     fi ;;
623   *) host_alias=$nonopt ;;
624   esac ;;
625 esac
626
627 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
628 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
629 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
630 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
631 echo "$ac_t""$host" 1>&6
632
633 echo $ac_n "checking target system type""... $ac_c" 1>&6
634 echo "configure:635: checking target system type" >&5
635
636 target_alias=$target
637 case "$target_alias" in
638 NONE)
639   case $nonopt in
640   NONE) target_alias=$host_alias ;;
641   *) target_alias=$nonopt ;;
642   esac ;;
643 esac
644
645 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
646 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
647 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
648 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
649 echo "$ac_t""$target" 1>&6
650
651 echo $ac_n "checking build system type""... $ac_c" 1>&6
652 echo "configure:653: checking build system type" >&5
653
654 build_alias=$build
655 case "$build_alias" in
656 NONE)
657   case $nonopt in
658   NONE) build_alias=$host_alias ;;
659   *) build_alias=$nonopt ;;
660   esac ;;
661 esac
662
663 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
664 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
667 echo "$ac_t""$build" 1>&6
668
669 test "$host_alias" != "$target_alias" &&
670   test "$program_prefix$program_suffix$program_transform_name" = \
671     NONENONEs,x,x, &&
672   program_prefix=${target_alias}-
673
674 if test "$program_transform_name" = s,x,x,; then
675   program_transform_name=
676 else
677   # Double any \ or $.  echo might interpret backslashes.
678   cat <<\EOF_SED > conftestsed
679 s,\\,\\\\,g; s,\$,$$,g
680 EOF_SED
681   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
682   rm -f conftestsed
683 fi
684 test "$program_prefix" != NONE &&
685   program_transform_name="s,^,${program_prefix},; $program_transform_name"
686 # Use a double $ so make ignores it.
687 test "$program_suffix" != NONE &&
688   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
689
690 # sed with no file args requires a program.
691 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
692
693
694 # Get 'install' or 'install-sh' and its variants.
695 # Find a good install program.  We prefer a C program (faster),
696 # so one script is as good as another.  But avoid the broken or
697 # incompatible versions:
698 # SysV /etc/install, /usr/sbin/install
699 # SunOS /usr/etc/install
700 # IRIX /sbin/install
701 # AIX /bin/install
702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
705 # ./install, which can be erroneously created by make from ./install.sh.
706 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
707 echo "configure:708: checking for a BSD compatible install" >&5
708 if test -z "$INSTALL"; then
709 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
710   echo $ac_n "(cached) $ac_c" 1>&6
711 else
712     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
713   for ac_dir in $PATH; do
714     # Account for people who put trailing slashes in PATH elements.
715     case "$ac_dir/" in
716     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
717     *)
718       # OSF1 and SCO ODT 3.0 have their own names for install.
719       # Don't use installbsd from OSF since it installs stuff as root
720       # by default.
721       for ac_prog in ginstall scoinst install; do
722         if test -f $ac_dir/$ac_prog; then
723           if test $ac_prog = install &&
724             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
725             # AIX install.  It has an incompatible calling convention.
726             :
727           else
728             ac_cv_path_install="$ac_dir/$ac_prog -c"
729             break 2
730           fi
731         fi
732       done
733       ;;
734     esac
735   done
736   IFS="$ac_save_IFS"
737
738 fi
739   if test "${ac_cv_path_install+set}" = set; then
740     INSTALL="$ac_cv_path_install"
741   else
742     # As a last resort, use the slow shell script.  We don't cache a
743     # path for INSTALL within a source directory, because that will
744     # break other packages using the cache if that directory is
745     # removed, or if the path is relative.
746     INSTALL="$ac_install_sh"
747   fi
748 fi
749 echo "$ac_t""$INSTALL" 1>&6
750
751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
752 # It thinks the first close brace ends the variable substitution.
753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
754
755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
756
757 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
758
759 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
760 echo "configure:761: checking whether ln works" >&5
761 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
762   echo $ac_n "(cached) $ac_c" 1>&6
763 else
764   rm -f conftestdata_t
765 echo >conftestdata_f
766 if ln conftestdata_f conftestdata_t 2>/dev/null
767 then
768   acx_cv_prog_LN=ln
769 else
770   acx_cv_prog_LN=no
771 fi
772 rm -f conftestdata_f conftestdata_t
773
774 fi
775 if test $acx_cv_prog_LN = no; then
776   LN="cp"
777   echo "$ac_t""no, using $LN" 1>&6
778 else
779   LN="$acx_cv_prog_LN"
780   echo "$ac_t""yes" 1>&6
781 fi
782
783 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
784 echo "configure:785: checking whether ln -s works" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
786   echo $ac_n "(cached) $ac_c" 1>&6
787 else
788   rm -f conftestdata
789 if ln -s X conftestdata 2>/dev/null
790 then
791   rm -f conftestdata
792   ac_cv_prog_LN_S="ln -s"
793 else
794   ac_cv_prog_LN_S=ln
795 fi
796 fi
797 LN_S="$ac_cv_prog_LN_S"
798 if test "$ac_cv_prog_LN_S" = "ln -s"; then
799   echo "$ac_t""yes" 1>&6
800 else
801   echo "$ac_t""no" 1>&6
802 fi
803
804
805 ### we might need to use some other shell than /bin/sh for running subshells
806 ### If we are on Windows, search for the shell.  This will permit people
807 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
808 ### without also having to set CONFIG_SHELL.  This code will work when
809 ### using bash, which sets OSTYPE.
810 case "${OSTYPE}" in
811 *win32*)
812   if test x${CONFIG_SHELL} = x ; then
813     if test ! -f /bin/sh ; then
814       if test x${SHELL} != x && test -f ${SHELL} ; then
815         CONFIG_SHELL=${SHELL}
816         export CONFIG_SHELL
817       else
818         for prog in sh sh.exe bash bash.exe; do
819           IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
820           for dir in $PATH; do
821             test -z "$dir" && dir=.
822             if test -f $dir/$prog; then
823               CONFIG_SHELL=$dir/$prog
824               export CONFIG_SHELL
825               break
826             fi
827           done
828           IFS="$save_ifs"
829           test -n "${CONFIG_SHELL}" && break
830         done
831       fi
832     fi
833   fi
834   ;;
835 esac
836
837 config_shell=${CONFIG_SHELL-/bin/sh}
838
839 progname=$0
840 # if PWD already has a value, it is probably wrong.
841 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
842
843 # Export original configure arguments for use by sub-configures.  These
844 # will be expanded by make, so quote '$'.
845 tmp="$progname $@"
846 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
847 $tmp
848 EOF_SED
849 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
850 rm -f conftestsed.out
851
852
853 moveifchange=${srcdir}/move-if-change
854
855 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
856
857 # We pass INSTALL explicitly to sub-makes.  Make sure that it is not
858 # a relative path.
859 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
860   INSTALL="${srcpwd}/install-sh -c"
861 fi
862
863 # Set srcdir to "." if that's what it is.
864 # This is important for multilib support.
865 pwd=`${PWDCMD-pwd}`
866 if test "${pwd}" = "${srcpwd}" ; then
867   srcdir=.
868 fi
869
870 topsrcdir=$srcpwd
871
872 extra_host_args=
873
874 ### To add a new directory to the tree, first choose whether it is a target
875 ### or a host dependent tool.  Then put it into the appropriate list
876 ### (library or tools, host or target), doing a dependency sort.
877
878 # Subdirs will be configured in the order listed in build_configdirs, 
879 # configdirs, or target_configdirs; see the serialization section below.
880
881 # Dependency sorting is only needed when *configuration* must be done in 
882 # a particular order.  In all cases a dependency should be specified in 
883 # the Makefile, whether or not it's implicitly specified here.
884
885 # Double entries in build_configdirs, configdirs, or target_configdirs may
886 # cause circular dependencies and break everything horribly.
887
888 # these library is used by various programs built for the build
889 # environment
890 #
891 build_libs="build-libiberty"
892
893 # these tools are built for the build environment
894 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
895
896 # these libraries are used by various programs built for the host environment
897 #
898 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
899
900 # these tools are built for the host environment
901 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
902 # know that we are building the simulator.
903 # binutils, gas and ld appear in that order because it makes sense to run
904 # "make check" in that particular order.
905 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"
906
907 # libgcj represents the runtime libraries only used by gcj.
908 libgcj="target-libffi \
909         target-zlib \
910         target-qthreads \
911         target-libjava"
912
913 # these libraries are built for the target environment, and are built after
914 # the host libraries and the host tools (which may be a cross compiler)
915 #
916 target_libraries="target-libiberty \
917                 target-libgloss \
918                 target-newlib \
919                 target-libstdc++-v3 \
920                 target-libmudflap \
921                 target-libssp \
922                 target-libgfortran \
923                 target-boehm-gc \
924                 ${libgcj} \
925                 target-libobjc \
926                 target-libada \
927                 target-libgomp"
928
929 # these tools are built using the target libraries, and are intended to
930 # run only in the target environment
931 #
932 # note: any program that *uses* libraries that are in the "target_libraries"
933 # list belongs in this list.  those programs are also very likely
934 # candidates for the "native_only" list which follows
935 #
936 target_tools="target-examples target-groff target-gperf target-rda"
937
938 ################################################################################
939
940 ## All tools belong in one of the four categories, and are assigned above
941 ## We assign ${configdirs} this way to remove all embedded newlines.  This
942 ## is important because configure will choke if they ever get through.
943 ## ${configdirs} is directories we build using the host tools.
944 ## ${target_configdirs} is directories we build using the target tools.
945 configdirs=`echo ${host_libs} ${host_tools}`
946 target_configdirs=`echo ${target_libraries} ${target_tools}`
947 build_configdirs=`echo ${build_libs} ${build_tools}`
948
949 ################################################################################
950
951 srcname="gnu development package"
952
953 # This gets set non-empty for some net releases of packages.
954 appdirs=""
955
956 # Define is_cross_compiler to save on calls to 'test'.
957 is_cross_compiler=
958 if test x"${host}" = x"${target}" ; then
959   is_cross_compiler=no
960 else
961   is_cross_compiler=yes
962 fi      
963
964 # Find the build and target subdir names.
965  case ${build_alias} in
966   "") build_noncanonical=${build} ;;
967   *) build_noncanonical=${build_alias} ;;
968 esac
969
970  case ${host_alias} in
971   "") host_noncanonical=${build_noncanonical} ;;
972   *) host_noncanonical=${host_alias} ;;
973 esac
974
975  case ${target_alias} in
976   "") target_noncanonical=${host_noncanonical} ;;
977   *) target_noncanonical=${target_alias} ;;
978 esac
979
980   
981 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
982 # have matching libraries, they should use host libraries: Makefile.tpl
983 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
984 # However, they still use the build modules, because the corresponding
985 # host modules (e.g. bison) are only built for the host when bootstrap
986 # finishes. So:
987 # - build_subdir is where we find build modules, and never changes.
988 # - build_libsubdir is where we find build libraries, and can be overridden.
989
990 # Prefix 'build-' so this never conflicts with target_subdir.
991 build_subdir="build-${build_noncanonical}"
992 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
993 if test "${with_build_libsubdir+set}" = set; then
994   withval="$with_build_libsubdir"
995   build_libsubdir="$withval"
996 else
997   build_libsubdir="$build_subdir"
998 fi
999
1000 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1001 if ( test $srcdir = . && test -d gcc ) \
1002    || test -d $srcdir/../host-${host_noncanonical}; then
1003   host_subdir="host-${host_noncanonical}"
1004 else
1005   host_subdir=.
1006 fi
1007 # No prefix.
1008 target_subdir=${target_noncanonical}
1009     
1010
1011 # Skipdirs are removed silently.
1012 skipdirs=
1013 # Noconfigdirs are removed loudly.
1014 noconfigdirs=""
1015
1016 use_gnu_ld=
1017 # Make sure we don't let GNU ld be added if we didn't want it.
1018 if test x$with_gnu_ld = xno ; then
1019   use_gnu_ld=no
1020   noconfigdirs="$noconfigdirs ld"
1021 fi
1022
1023 use_gnu_as=
1024 # Make sure we don't let GNU as be added if we didn't want it.
1025 if test x$with_gnu_as = xno ; then
1026   use_gnu_as=no
1027   noconfigdirs="$noconfigdirs gas"
1028 fi
1029
1030 # some tools are so dependent upon X11 that if we're not building with X, 
1031 # it's not even worth trying to configure, much less build, that tool.
1032
1033 case ${with_x} in
1034   yes | "") ;; # the default value for this tree is that X11 is available
1035   no)
1036     skipdirs="${skipdirs} tk itcl libgui"
1037     # We won't be able to build gdbtk without X.
1038     enable_gdbtk=no 
1039     ;;
1040   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1041 esac
1042
1043 # Some tools are only suitable for building in a "native" situation.
1044 # Remove these if host!=target.  
1045 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"
1046
1047 # Similarly, some are only suitable for cross toolchains.
1048 # Remove these if host=target.
1049 cross_only="target-libgloss target-newlib target-opcodes"
1050
1051 case $is_cross_compiler in
1052   no) skipdirs="${skipdirs} ${cross_only}" ;;
1053   yes) skipdirs="${skipdirs} ${native_only}" ;;
1054 esac
1055
1056 # If both --with-headers and --with-libs are specified, default to
1057 # --without-newlib.
1058 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1059    && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1060   if test x"${with_newlib}" = x ; then
1061     with_newlib=no
1062   fi
1063 fi
1064
1065 # Recognize --with-newlib/--without-newlib.
1066 case ${with_newlib} in
1067   no) skipdirs="${skipdirs} target-newlib" ;;
1068   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1069 esac
1070
1071 # Configure extra directories which are host specific
1072
1073 case "${host}" in
1074   *-cygwin*)
1075     configdirs="$configdirs libtermcap" ;;
1076 esac
1077
1078 # A target can indicate whether a language isn't supported for some reason.
1079 # Only spaces may be used in this macro; not newlines or tabs.
1080 unsupported_languages=
1081
1082 # Remove more programs from consideration, based on the host or 
1083 # target this usually means that a port of the program doesn't
1084 # exist yet.
1085
1086 case "${host}" in
1087   hppa*64*-*-*)
1088     noconfigdirs="$noconfigdirs byacc"
1089     ;;
1090   i[3456789]86-*-vsta)
1091     noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1092     ;;
1093   i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1094     noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1095     ;;
1096   i[3456789]86-*-mingw32*)
1097     # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1098     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1099     ;;
1100   i[3456789]86-*-beos*)
1101     noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1102     ;;
1103   *-*-cygwin*)
1104     noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1105     ;;
1106   *-*-netbsd*)
1107     noconfigdirs="$noconfigdirs rcs"
1108     ;;
1109   ppc*-*-pe)
1110     noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1111     ;;
1112   powerpc-*-beos*)
1113     noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1114     ;;
1115 esac
1116
1117
1118 # Check whether --enable-libada or --disable-libada was given.
1119 if test "${enable_libada+set}" = set; then
1120   enableval="$enable_libada"
1121   ENABLE_LIBADA=$enableval
1122 else
1123   ENABLE_LIBADA=yes
1124 fi
1125
1126 if test "${ENABLE_LIBADA}" != "yes" ; then
1127   noconfigdirs="$noconfigdirs gnattools"
1128 fi
1129
1130 # Check whether --enable-libssp or --disable-libssp was given.
1131 if test "${enable_libssp+set}" = set; then
1132   enableval="$enable_libssp"
1133   ENABLE_LIBSSP=$enableval
1134 else
1135   ENABLE_LIBSSP=yes
1136 fi
1137
1138
1139 # Save it here so that, even in case of --enable-libgcj, if the Java
1140 # front-end isn't enabled, we still get libgcj disabled.
1141 libgcj_saved=$libgcj
1142 case $enable_libgcj in
1143 yes)
1144   # If we reset it here, it won't get added to noconfigdirs in the
1145   # target-specific build rules, so it will be forcibly enabled
1146   # (unless the Java language itself isn't enabled).
1147   libgcj=
1148   ;;
1149 no)
1150   # Make sure we get it printed in the list of not supported target libs.
1151   noconfigdirs="$noconfigdirs ${libgcj}"
1152   ;;
1153 esac
1154
1155
1156 # Disable libmudflap on some systems.
1157 if test x$enable_libmudflap = x ; then
1158     case "${target}" in
1159     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1160         # Enable libmudflap by default in GNU and friends.
1161         ;;
1162     *-*-freebsd*)
1163         # Enable libmudflap by default in FreeBSD.
1164         ;;
1165     *)
1166         # Disable it by default everywhere else.
1167         noconfigdirs="$noconfigdirs target-libmudflap"
1168         ;;
1169     esac
1170 fi
1171
1172 # Disable libgomp on non POSIX hosted systems.
1173 if test x$enable_libgomp = x ; then
1174     # Enable libgomp by default on hosted POSIX systems.
1175     case "${target}" in
1176     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1177         ;;
1178     *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1179         ;;
1180     *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1181         ;;
1182     *-*-darwin* | *-*-aix*)
1183         ;;
1184     *)
1185         noconfigdirs="$noconfigdirs target-libgomp"
1186         ;;
1187     esac
1188 fi
1189
1190
1191 case "${target}" in
1192   *-*-chorusos)
1193     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1194     ;;
1195   powerpc-*-darwin*)
1196     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1197     noconfigdirs="$noconfigdirs sim target-rda"
1198     ;;
1199   *-*-darwin*)
1200     noconfigdirs="$noconfigdirs ld gas gdb gprof"
1201     noconfigdirs="$noconfigdirs sim target-rda"
1202     noconfigdirs="$noconfigdirs ${libgcj}"
1203     ;;
1204   *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1205     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1206     ;;
1207   *-*-freebsd*)
1208     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1209     if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1210         && test -f /usr/local/include/gmp.h; then
1211       with_gmp=/usr/local
1212     fi
1213
1214     # Skip some stuff that's unsupported on some FreeBSD configurations.
1215     case "${target}" in
1216       i*86-*-*) ;;
1217       alpha*-*-*) ;;
1218       *)
1219         noconfigdirs="$noconfigdirs ${libgcj}"
1220         ;;
1221     esac
1222     ;;
1223   *-*-kaos*)
1224     # Remove unsupported stuff on all kaOS configurations.
1225     skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1226     skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1227     skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1228     noconfigdirs="$noconfigdirs target-libgloss"
1229     ;;
1230   *-*-netbsd*)
1231     # Skip some stuff on all NetBSD configurations.
1232     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1233
1234     # Skip some stuff that's unsupported on some NetBSD configurations.
1235     case "${target}" in
1236       i*86-*-netbsdelf*) ;;
1237       arm*-*-netbsdelf*) ;;
1238       *)
1239         noconfigdirs="$noconfigdirs ${libgcj}"
1240         ;;
1241     esac
1242     ;;
1243   *-*-netware*)
1244     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1245     ;;
1246   *-*-rtems*)
1247     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1248     ;;
1249     # The tpf target doesn't support gdb yet.
1250   *-*-tpf*)
1251     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1252     ;;
1253   *-*-uclinux*)
1254     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1255     ;;
1256   *-*-vxworks*)
1257     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1258     ;;
1259   alpha*-dec-osf*)
1260     # ld works, but does not support shared libraries.
1261     # newlib is not 64 bit ready.  I'm not sure about fileutils.
1262     # gas doesn't generate exception information.
1263     noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1264     ;;
1265   alpha*-*-*vms*)
1266     noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1267     ;;
1268   alpha*-*-linux*)
1269     # newlib is not 64 bit ready
1270     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1271     ;;
1272   alpha*-*-*)
1273     # newlib is not 64 bit ready
1274     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1275     ;;
1276   am33_2.0-*-linux*)
1277     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1278     ;;
1279   sh-*-linux*)
1280     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1281     ;;    
1282   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1283     noconfigdirs="$noconfigdirs ${libgcj}"
1284     noconfigdirs="$noconfigdirs target-examples"
1285     noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1286     noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1287     noconfigdirs="$noconfigdirs expect dejagnu"
1288     # the C++ libraries don't build on top of CE's C libraries
1289     noconfigdirs="$noconfigdirs target-libstdc++-v3"
1290     noconfigdirs="$noconfigdirs target-newlib"
1291     case "${host}" in
1292       *-*-cygwin*) ;; # keep gdb and readline
1293       *) noconfigdirs="$noconfigdirs gdb readline"
1294          ;;
1295     esac
1296     ;;
1297   arc-*-*)
1298     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1299     ;;
1300   arm-semi-aof )
1301     ;;
1302   arm-*-coff | strongarm-*-coff | xscale-*-coff)
1303     noconfigdirs="$noconfigdirs ${libgcj}"
1304     ;;
1305   arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1306     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1307     ;;
1308   arm*-*-linux-gnueabi)
1309     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1310     noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1311     ;;
1312   arm*-*-symbianelf*)
1313     noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1314     ;;
1315   arm-*-pe*)
1316     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1317     ;;
1318   thumb-*-coff)
1319     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1320     ;;
1321   thumb-*-elf)
1322     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1323     ;;
1324   thumb-*-pe)
1325     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1326     ;;
1327   arm-*-riscix*)
1328     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1329     ;;
1330   avr-*-*)
1331     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1332     ;;
1333   bfin-*-*)
1334     noconfigdirs="$noconfigdirs target-libgloss gdb"
1335     if test x${is_cross_compiler} != xno ; then
1336       target_configdirs="${target_configdirs} target-bsp target-cygmon"
1337     fi
1338     ;;
1339   c4x-*-* | tic4x-*-*)
1340     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1341     ;;
1342   c54x*-*-* | tic54x-*-*)
1343     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1344     ;;
1345   cris-*-* | crisv32-*-*)
1346     unsupported_languages="$unsupported_languages java"
1347     case "${target}" in
1348       *-*-aout)
1349         unsupported_languages="$unsupported_languages fortran"
1350         noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1351       *-*-elf)
1352         unsupported_languages="$unsupported_languages fortran"
1353         noconfigdirs="$noconfigdirs target-boehm-gc";;
1354       *-*-linux*)
1355         noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1356       *)
1357         unsupported_languages="$unsupported_languages fortran"
1358         noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1359     esac
1360     ;;
1361   crx-*-*)
1362     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1363     ;;
1364   d10v-*-*)
1365     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1366     ;;
1367   d30v-*-*)
1368     noconfigdirs="$noconfigdirs ${libgcj} gdb"
1369     ;;
1370   fr30-*-elf*)
1371     noconfigdirs="$noconfigdirs ${libgcj} gdb"
1372     ;;
1373   frv-*-*)
1374     noconfigdirs="$noconfigdirs ${libgcj}"
1375     ;;
1376   h8300*-*-*)
1377     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1378     ;;
1379   h8500-*-*)
1380     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1381     ;;
1382   hppa1.1-*-osf* | hppa1.1-*-bsd* )
1383     ;;
1384   hppa*64*-*-linux* | parisc*64*-*-linux*)
1385     # In this case, it's because the hppa64-linux target is for
1386     # the kernel only at this point and has no libc, and thus no
1387     # headers, crt*.o, etc., all of which are needed by these.
1388     noconfigdirs="$noconfigdirs target-zlib"
1389     ;;
1390   parisc*-*-linux* | hppa*-*-linux*)
1391     ;;
1392   hppa*-*-*elf* | \
1393   hppa*-*-lites* | \
1394   hppa*-*-openbsd* | \
1395   hppa*64*-*-*)
1396     noconfigdirs="$noconfigdirs ${libgcj}"
1397     ;;
1398   hppa*-hp-hpux11*)
1399     noconfigdirs="$noconfigdirs ld shellutils"
1400     ;;
1401   hppa*-*-*)
1402     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1403     # build on HP-UX 10.20.
1404     noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1405     ;;
1406   i960-*-*)
1407     noconfigdirs="$noconfigdirs ${libgcj} gdb"
1408     ;;
1409   ia64*-*-elf*)
1410     # No gdb support yet.
1411     noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1412     ;;
1413   ia64*-**-hpux*)
1414     # No gdb or ld support yet.
1415     noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1416     ;;
1417   i370-*-opened*)
1418     ;;
1419   i[3456789]86-*-coff | i[3456789]86-*-elf)
1420     noconfigdirs="$noconfigdirs ${libgcj}"
1421     ;;
1422   i[3456789]86-*-linux*)
1423     # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1424     # not build java stuff by default.
1425     case "${target}" in
1426       *-*-*libc1*)
1427         noconfigdirs="$noconfigdirs ${libgcj}";;
1428     esac
1429
1430     # This section makes it possible to build newlib natively on linux.
1431     # If we are using a cross compiler then don't configure newlib.
1432     if test x${is_cross_compiler} != xno ; then
1433       noconfigdirs="$noconfigdirs target-newlib"
1434     fi
1435     noconfigdirs="$noconfigdirs target-libgloss"
1436     # If we are not using a cross compiler, do configure newlib.
1437     # Note however, that newlib will only be configured in this situation
1438     # if the --with-newlib option has been given, because otherwise
1439     # 'target-newlib' will appear in skipdirs.
1440     ;;
1441   i[3456789]86-*-mingw32*)
1442     target_configdirs="$target_configdirs target-winsup"
1443     noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1444     ;;    
1445   *-*-cygwin*)
1446     target_configdirs="$target_configdirs target-libtermcap target-winsup"
1447     noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1448     # always build newlib if winsup directory is present.
1449     if test -d "$srcdir/winsup/cygwin"; then
1450       skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1451     elif test -d "$srcdir/newlib"; then
1452       echo "Warning: winsup/cygwin is missing so newlib can't be built."
1453     fi
1454     ;;    
1455   i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1456   i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1457     ;;
1458   i[3456789]86-*-pe)
1459     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1460     ;;
1461   i[3456789]86-*-sco3.2v5*)
1462     # The linker does not yet know about weak symbols in COFF,
1463     # and is not configured to handle mixed ELF and COFF.
1464     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1465     ;;
1466   i[3456789]86-*-sco*)
1467     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1468     ;;
1469   i[3456789]86-*-solaris2*)
1470     noconfigdirs="$noconfigdirs target-libgloss"
1471     ;;
1472   i[3456789]86-*-sysv4*)
1473     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1474     ;;
1475   i[3456789]86-*-beos*)
1476     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1477     ;;
1478   i[3456789]86-*-rdos*)
1479     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1480     ;;
1481   m32r-*-*)
1482     noconfigdirs="$noconfigdirs ${libgcj}"
1483     ;;
1484   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1485     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1486     ;;
1487   m68k-*-elf*)
1488     noconfigdirs="$noconfigdirs ${libgcj}"
1489     ;;
1490   m68k-*-coff*)
1491     noconfigdirs="$noconfigdirs ${libgcj}"
1492     ;;
1493   mcore-*-pe*)
1494   # The EPOC C++ environment does not support exceptions or rtti,
1495   # and so building libstdc++-v3 tends not to always work.
1496     noconfigdirs="$noconfigdirs target-libstdc++-v3"
1497     ;;
1498   mmix-*-*)
1499     noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1500     unsupported_languages="$unsupported_languages fortran java"
1501     ;;
1502   mn10200-*-*)
1503     noconfigdirs="$noconfigdirs ${libgcj}"
1504     ;;
1505   mn10300-*-*)
1506     noconfigdirs="$noconfigdirs ${libgcj}"
1507     ;;
1508   mt-*-*)
1509     noconfigdirs="$noconfigdirs sim"
1510     ;;
1511   powerpc-*-aix*)
1512     # copied from rs6000-*-* entry
1513     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1514     ;;
1515   powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1516     target_configdirs="$target_configdirs target-winsup"
1517     noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1518     # always build newlib.
1519     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1520     ;;
1521     # This is temporary until we can link against shared libraries
1522   powerpcle-*-solaris*)
1523     noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1524     ;;
1525   powerpc-*-beos*)
1526     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1527     ;;
1528   powerpc-*-eabi)
1529     noconfigdirs="$noconfigdirs ${libgcj}"
1530     ;;
1531   powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1532     ;;
1533   rs6000-*-lynxos*)
1534     noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1535     ;;
1536   rs6000-*-aix*)
1537     noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1538     ;;
1539   rs6000-*-*)
1540     noconfigdirs="$noconfigdirs gprof ${libgcj}"
1541     ;;
1542   m68k-apollo-*)
1543     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1544     ;;
1545   mips*-*-irix5*)
1546     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1547     ;;
1548   mips*-*-irix6*)
1549     # Linking libjava exceeds command-line length limits on at least
1550     # IRIX 6.2, but not on IRIX 6.5.
1551     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1552     # <oldham@codesourcery.com>
1553     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1554     ;;
1555   mips*-*-bsd*)
1556     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1557     ;;
1558   mips64*-*-linux*)
1559     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1560     ;;
1561   mips*-*-linux*)
1562     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1563     ;;
1564   mips*-*-*)
1565     noconfigdirs="$noconfigdirs gprof ${libgcj}"
1566     ;;
1567   romp-*-*)
1568     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1569     ;;
1570   sh-*-* | sh64-*-*)
1571     case "${host}" in
1572       i[3456789]86-*-vsta) ;; # don't add gprof back in
1573       i[3456789]86-*-go32*) ;; # don't add gprof back in
1574       i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1575       *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1576     esac
1577     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1578     ;;
1579   sparc-*-elf*)
1580     noconfigdirs="$noconfigdirs ${libgcj}"
1581     ;;
1582   sparc64-*-elf*)
1583     noconfigdirs="$noconfigdirs ${libgcj}"
1584     ;;
1585   sparclite-*-*)
1586     noconfigdirs="$noconfigdirs ${libgcj}"
1587     ;;
1588   sparc-*-sunos4*)
1589     noconfigdirs="$noconfigdirs ${libgcj}"
1590     if test x${is_cross_compiler} != xno ; then
1591            noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1592     else
1593            use_gnu_ld=no
1594     fi
1595     ;;
1596   sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1597     noconfigdirs="$noconfigdirs ${libgcj}"
1598     ;;
1599   sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1600     ;;
1601   v810-*-*)
1602     noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1603     ;;
1604   v850-*-*)
1605     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1606     ;;
1607   v850e-*-*)
1608     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1609     ;;
1610   v850ea-*-*)
1611     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1612     ;;
1613   vax-*-vms)
1614     noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1615     ;;
1616   vax-*-*)
1617     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1618     ;;
1619   xtensa-*-*)
1620     noconfigdirs="$noconfigdirs ${libgcj}"
1621     ;;
1622   ip2k-*-*)
1623     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1624     ;;
1625   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1626     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1627     ;;
1628   *-*-lynxos*)
1629     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1630     ;; 
1631   *-*-*)
1632     noconfigdirs="$noconfigdirs ${libgcj}"
1633     ;;
1634 esac
1635
1636 # If we aren't building newlib, then don't build libgloss, since libgloss
1637 # depends upon some newlib header files.
1638 case "${noconfigdirs}" in
1639   *target-libgloss*) ;;
1640   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1641 esac
1642
1643 # Work in distributions that contain no compiler tools, like Autoconf.
1644 tentative_cc=""
1645 host_makefile_frag=/dev/null
1646 if test -d ${srcdir}/config ; then
1647 case "${host}" in
1648   m68k-hp-hpux*)
1649     # Avoid "too much defining" errors from HPUX compiler.
1650     tentative_cc="cc -Wp,-H256000"
1651     # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1652     # If it's HP/UX ar, this should be harmless.
1653     RANLIB="ar ts"
1654     ;;
1655   m68k-apollo-sysv*)
1656     tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1657     ;;
1658   m68k-apollo-bsd*)
1659     #None of the Apollo compilers can compile gas or binutils.  The preprocessor
1660     # chokes on bfd, the compiler won't let you assign integers to enums, and
1661     # other problems.  Defining CC to gcc is a questionable way to say "don't use
1662     # the apollo compiler" (the preferred version of GCC could be called cc,
1663     # or whatever), but I'm not sure leaving CC as cc is any better...
1664     #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1665     # Used to have BISON=yacc.
1666     tentative_cc=gcc
1667     ;;
1668   m88k-dg-dgux*)
1669     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1670     ;;
1671   m88k-harris-cxux*)
1672     # Under CX/UX, we want to tell the compiler to use ANSI mode.
1673     tentative_cc="cc -Xa"
1674     host_makefile_frag="config/mh-cxux"
1675     ;;
1676   m88k-motorola-sysv*)
1677     ;;
1678   mips*-dec-ultrix*)
1679     tentative_cc="cc -Wf,-XNg1000"
1680     host_makefile_frag="config/mh-decstation"
1681     ;;
1682   mips*-nec-sysv4*)
1683     # The C compiler on NEC MIPS SVR4 needs bigger tables.
1684     tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1685     host_makefile_frag="config/mh-necv4"
1686     ;;
1687   mips*-sgi-irix4*)
1688     # Tell compiler to use K&R C.  We can't compile under the SGI Ansi
1689     # environment.  Also bump switch table size so that cp-parse will
1690     # compile.  Bump string length limit so linker builds.
1691     tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1692     ;;
1693   mips*-*-sysv4*)
1694     host_makefile_frag="config/mh-sysv4"
1695     ;;
1696   mips*-*-sysv*)
1697     # This is for a MIPS running RISC/os 4.52C.
1698
1699     # This is needed for GDB, but needs to be in the top-level make because
1700     # if a library is compiled with the bsd headers and gets linked with the
1701     # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1702     # a different size).
1703     # ptrace(2) apparently has problems in the BSD environment.  No workaround is
1704     # known except to select the sysv environment.  Could we use /proc instead?
1705     # These "sysv environments" and "bsd environments" often end up being a pain.
1706     #
1707     # This is not part of CFLAGS because perhaps not all C compilers have this
1708     # option.
1709     tentative_cc="cc -systype sysv"
1710     ;;
1711   i370-ibm-opened*)
1712     tentative_cc="c89"
1713     ;;
1714   i[3456789]86-*-sysv5*)
1715     host_makefile_frag="config/mh-sysv5"
1716     ;;
1717   i[3456789]86-*-dgux*)
1718     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1719     host_makefile_frag="config/mh-dgux386"
1720     ;;
1721   i[3456789]86-ncr-sysv4.3*)
1722     # The MetaWare compiler will generate a copyright message unless you
1723     # turn it off by adding the -Hnocopyr flag.
1724     tentative_cc="cc -Hnocopyr"
1725     ;;
1726   i[3456789]86-ncr-sysv4*)
1727     # for an NCR 3000 (i486/SVR4) system.
1728     # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1729     # This compiler not only emits obnoxious copyright messages every time
1730     # you run it, but it chokes and dies on a whole bunch of GNU source
1731     # files.  Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1732     tentative_cc="/usr/ccs/ATT/cc"
1733     host_makefile_frag="config/mh-ncr3000"
1734     ;;
1735   i[3456789]86-*-sco3.2v5*)
1736     ;;
1737   i[3456789]86-*-sco*)
1738     # The native C compiler botches some simple uses of const.  Unfortunately,
1739     # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1740     tentative_cc="cc -Dconst="
1741     host_makefile_frag="config/mh-sco"
1742     ;;
1743   i[3456789]86-*-udk*)
1744     host_makefile_frag="config/mh-sysv5"
1745     ;;
1746   i[3456789]86-*-solaris2*)
1747     host_makefile_frag="config/mh-sysv4"
1748     ;;
1749   i[3456789]86-*-msdosdjgpp*)
1750     host_makefile_frag="config/mh-djgpp"
1751     ;;
1752   *-cygwin*)
1753     host_makefile_frag="config/mh-cygwin"
1754     ;;
1755   *-mingw32*)
1756     ;;
1757   *-interix*)
1758     host_makefile_frag="config/mh-interix"
1759     ;;
1760   vax-*-ultrix2*)
1761     # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1762     tentative_cc=gcc
1763     ;;
1764   *-*-solaris2*)
1765     host_makefile_frag="config/mh-solaris"
1766     ;;
1767   m68k-sun-sunos*)
1768     # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1769     # without overflowing the jump tables (-J says to use a 32 bit table)
1770     tentative_cc="cc -J"
1771     ;;
1772   *-hp-hpux*)
1773     tentative_cc="cc -Wp,-H256000"
1774     ;;
1775   *-*-hiux*)
1776     tentative_cc="cc -Wp,-H256000"
1777     ;;
1778   rs6000-*-lynxos*)
1779     # /bin/cc is less than useful for our purposes.  Always use GCC
1780     tentative_cc="/usr/cygnus/progressive/bin/gcc"
1781     host_makefile_frag="config/mh-lynxrs6k"
1782     ;;
1783   powerpc-*-darwin*)
1784     host_makefile_frag="config/mh-ppc-darwin"
1785     ;;
1786   powerpc-*-aix*)
1787     host_makefile_frag="config/mh-ppc-aix"
1788     ;;
1789   rs6000-*-aix*)
1790     host_makefile_frag="config/mh-ppc-aix"
1791     ;;
1792   *-*-lynxos*)
1793     # /bin/cc is less than useful for our purposes.  Always use GCC
1794     tentative_cc="/bin/gcc"
1795     ;;
1796   *-*-sysv4*)
1797     host_makefile_frag="config/mh-sysv4"
1798     ;;
1799   # This is placed last to prevent interfering with the cases above.
1800   i[3456789]86-*-*)
1801     # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1802     host_makefile_frag="config/mh-x86omitfp"
1803     ;;
1804 esac
1805 fi
1806
1807 # If we aren't going to be using gcc, see if we can extract a definition
1808 # of CC from the fragment.
1809 # Actually, use the 'pre-extracted' version above.
1810 if test -z "${CC}" && test "${build}" = "${host}" ; then
1811   IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
1812   found=
1813   for dir in $PATH; do
1814     test -z "$dir" && dir=.
1815     if test -f $dir/gcc; then
1816       found=yes
1817       break
1818     fi
1819   done
1820   IFS="$save_ifs"
1821   if test -z "${found}" && test -n "${tentative_cc}" ; then
1822     CC=$tentative_cc
1823   fi
1824 fi
1825
1826 if test "${build}" != "${host}" ; then
1827   # If we are doing a Canadian Cross, in which the host and build systems
1828   # are not the same, we set reasonable default values for the tools.
1829
1830   CC=${CC-${host_alias}-gcc}
1831   CFLAGS=${CFLAGS-"-g -O2"}
1832   CXX=${CXX-${host_alias}-c++}
1833   CXXFLAGS=${CXXFLAGS-"-g -O2"}
1834   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1835
1836 else
1837   # Set reasonable default values for some tools even if not Canadian.
1838   # Of course, these are different reasonable default values, originally
1839   # specified directly in the Makefile.
1840   # We don't export, so that autoconf can do its job.
1841   # Note that all these settings are above the fragment inclusion point
1842   # in Makefile.in, so can still be overridden by fragments.
1843   # This is all going to change when we autoconfiscate...
1844
1845   CC_FOR_BUILD="\$(CC)"
1846   # Extract the first word of "gcc", so it can be a program name with args.
1847 set dummy gcc; ac_word=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1851   echo $ac_n "(cached) $ac_c" 1>&6
1852 else
1853   if test -n "$CC"; then
1854   ac_cv_prog_CC="$CC" # Let the user override the test.
1855 else
1856   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1857   ac_dummy="$PATH"
1858   for ac_dir in $ac_dummy; do
1859     test -z "$ac_dir" && ac_dir=.
1860     if test -f $ac_dir/$ac_word; then
1861       ac_cv_prog_CC="gcc"
1862       break
1863     fi
1864   done
1865   IFS="$ac_save_ifs"
1866 fi
1867 fi
1868 CC="$ac_cv_prog_CC"
1869 if test -n "$CC"; then
1870   echo "$ac_t""$CC" 1>&6
1871 else
1872   echo "$ac_t""no" 1>&6
1873 fi
1874
1875 if test -z "$CC"; then
1876   # Extract the first word of "cc", so it can be a program name with args.
1877 set dummy cc; ac_word=$2
1878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1879 echo "configure:1880: checking for $ac_word" >&5
1880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1881   echo $ac_n "(cached) $ac_c" 1>&6
1882 else
1883   if test -n "$CC"; then
1884   ac_cv_prog_CC="$CC" # Let the user override the test.
1885 else
1886   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1887   ac_prog_rejected=no
1888   ac_dummy="$PATH"
1889   for ac_dir in $ac_dummy; do
1890     test -z "$ac_dir" && ac_dir=.
1891     if test -f $ac_dir/$ac_word; then
1892       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1893         ac_prog_rejected=yes
1894         continue
1895       fi
1896       ac_cv_prog_CC="cc"
1897       break
1898     fi
1899   done
1900   IFS="$ac_save_ifs"
1901 if test $ac_prog_rejected = yes; then
1902   # We found a bogon in the path, so make sure we never use it.
1903   set dummy $ac_cv_prog_CC
1904   shift
1905   if test $# -gt 0; then
1906     # We chose a different compiler from the bogus one.
1907     # However, it has the same basename, so the bogon will be chosen
1908     # first if we set CC to just the basename; use the full file name.
1909     shift
1910     set dummy "$ac_dir/$ac_word" "$@"
1911     shift
1912     ac_cv_prog_CC="$@"
1913   fi
1914 fi
1915 fi
1916 fi
1917 CC="$ac_cv_prog_CC"
1918 if test -n "$CC"; then
1919   echo "$ac_t""$CC" 1>&6
1920 else
1921   echo "$ac_t""no" 1>&6
1922 fi
1923
1924   if test -z "$CC"; then
1925     case "`uname -s`" in
1926     *win32* | *WIN32*)
1927       # Extract the first word of "cl", so it can be a program name with args.
1928 set dummy cl; ac_word=$2
1929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1930 echo "configure:1931: checking for $ac_word" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1932   echo $ac_n "(cached) $ac_c" 1>&6
1933 else
1934   if test -n "$CC"; then
1935   ac_cv_prog_CC="$CC" # Let the user override the test.
1936 else
1937   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1938   ac_dummy="$PATH"
1939   for ac_dir in $ac_dummy; do
1940     test -z "$ac_dir" && ac_dir=.
1941     if test -f $ac_dir/$ac_word; then
1942       ac_cv_prog_CC="cl"
1943       break
1944     fi
1945   done
1946   IFS="$ac_save_ifs"
1947 fi
1948 fi
1949 CC="$ac_cv_prog_CC"
1950 if test -n "$CC"; then
1951   echo "$ac_t""$CC" 1>&6
1952 else
1953   echo "$ac_t""no" 1>&6
1954 fi
1955  ;;
1956     esac
1957   fi
1958   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1959 fi
1960
1961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1962 echo "configure:1963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1963
1964 ac_ext=c
1965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1968 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1969 cross_compiling=$ac_cv_prog_cc_cross
1970
1971 cat > conftest.$ac_ext << EOF
1972
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1975
1976 main(){return(0);}
1977 EOF
1978 if { (eval echo configure:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1979   ac_cv_prog_cc_works=yes
1980   # If we can't run a trivial program, we are probably using a cross compiler.
1981   if (./conftest; exit) 2>/dev/null; then
1982     ac_cv_prog_cc_cross=no
1983   else
1984     ac_cv_prog_cc_cross=yes
1985   fi
1986 else
1987   echo "configure: failed program was:" >&5
1988   cat conftest.$ac_ext >&5
1989   ac_cv_prog_cc_works=no
1990 fi
1991 rm -fr conftest*
1992 ac_ext=c
1993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1997 cross_compiling=$ac_cv_prog_cc_cross
1998
1999 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2000 if test $ac_cv_prog_cc_works = no; then
2001   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2002 fi
2003 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2004 echo "configure:2005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2005 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2006 cross_compiling=$ac_cv_prog_cc_cross
2007
2008 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2009 echo "configure:2010: checking whether we are using GNU C" >&5
2010 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2011   echo $ac_n "(cached) $ac_c" 1>&6
2012 else
2013   cat > conftest.c <<EOF
2014 #ifdef __GNUC__
2015   yes;
2016 #endif
2017 EOF
2018 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2019   ac_cv_prog_gcc=yes
2020 else
2021   ac_cv_prog_gcc=no
2022 fi
2023 fi
2024
2025 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2026
2027 if test $ac_cv_prog_gcc = yes; then
2028   GCC=yes
2029 else
2030   GCC=
2031 fi
2032
2033 ac_test_CFLAGS="${CFLAGS+set}"
2034 ac_save_CFLAGS="$CFLAGS"
2035 CFLAGS=
2036 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether ${CC-cc} accepts -g" >&5
2038 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2039   echo $ac_n "(cached) $ac_c" 1>&6
2040 else
2041   echo 'void f(){}' > conftest.c
2042 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2043   ac_cv_prog_cc_g=yes
2044 else
2045   ac_cv_prog_cc_g=no
2046 fi
2047 rm -f conftest*
2048
2049 fi
2050
2051 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2052 if test "$ac_test_CFLAGS" = set; then
2053   CFLAGS="$ac_save_CFLAGS"
2054 elif test $ac_cv_prog_cc_g = yes; then
2055   if test "$GCC" = yes; then
2056     CFLAGS="-g -O2"
2057   else
2058     CFLAGS="-g"
2059   fi
2060 else
2061   if test "$GCC" = yes; then
2062     CFLAGS="-O2"
2063   else
2064     CFLAGS=
2065   fi
2066 fi
2067
2068
2069   # We must set the default linker to the linker used by gcc for the correct
2070   # operation of libtool.  If LD is not defined and we are using gcc, try to
2071   # set the LD default to the ld used by gcc.
2072   if test -z "$LD"; then
2073     if test "$GCC" = yes; then
2074       case $build in
2075       *-*-mingw*)
2076         gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2077       *)
2078         gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2079       esac
2080       case $gcc_prog_ld in
2081       # Accept absolute paths.
2082       [\\/]* | [A-Za-z]:[\\/]*)
2083         LD="$gcc_prog_ld" ;;
2084       esac
2085     fi
2086   fi
2087
2088   CXX=${CXX-"c++"}
2089   CFLAGS=${CFLAGS-"-g"}
2090   CXXFLAGS=${CXXFLAGS-"-g -O2"}
2091 fi
2092
2093 if test $host != $build; then
2094   ac_tool_prefix=${host_alias}-
2095 else
2096   ac_tool_prefix=
2097 fi
2098
2099
2100
2101 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2102 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2104 echo "configure:2105: checking for $ac_word" >&5
2105 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2106   echo $ac_n "(cached) $ac_c" 1>&6
2107 else
2108   if test -n "$GNATBIND"; then
2109   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2110 else
2111   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2112   ac_dummy="$PATH"
2113   for ac_dir in $ac_dummy; do
2114     test -z "$ac_dir" && ac_dir=.
2115     if test -f $ac_dir/$ac_word; then
2116       ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2117       break
2118     fi
2119   done
2120   IFS="$ac_save_ifs"
2121 fi
2122 fi
2123 GNATBIND="$ac_cv_prog_GNATBIND"
2124 if test -n "$GNATBIND"; then
2125   echo "$ac_t""$GNATBIND" 1>&6
2126 else
2127   echo "$ac_t""no" 1>&6
2128 fi
2129
2130
2131 if test -z "$ac_cv_prog_GNATBIND"; then
2132 if test -n "$ac_tool_prefix"; then
2133   # Extract the first word of "gnatbind", so it can be a program name with args.
2134 set dummy gnatbind; ac_word=$2
2135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2136 echo "configure:2137: checking for $ac_word" >&5
2137 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2138   echo $ac_n "(cached) $ac_c" 1>&6
2139 else
2140   if test -n "$GNATBIND"; then
2141   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2142 else
2143   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2144   ac_dummy="$PATH"
2145   for ac_dir in $ac_dummy; do
2146     test -z "$ac_dir" && ac_dir=.
2147     if test -f $ac_dir/$ac_word; then
2148       ac_cv_prog_GNATBIND="gnatbind"
2149       break
2150     fi
2151   done
2152   IFS="$ac_save_ifs"
2153   test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2154 fi
2155 fi
2156 GNATBIND="$ac_cv_prog_GNATBIND"
2157 if test -n "$GNATBIND"; then
2158   echo "$ac_t""$GNATBIND" 1>&6
2159 else
2160   echo "$ac_t""no" 1>&6
2161 fi
2162
2163 else
2164   GNATBIND="no"
2165 fi
2166 fi
2167
2168 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2169 echo "configure:2170: checking whether compiler driver understands Ada" >&5
2170 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2171   echo $ac_n "(cached) $ac_c" 1>&6
2172 else
2173   cat >conftest.adb <<EOF
2174 procedure conftest is begin null; end conftest;
2175 EOF
2176 acx_cv_cc_gcc_supports_ada=no
2177 # There is a bug in old released versions of GCC which causes the
2178 # driver to exit successfully when the appropriate language module
2179 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
2180 # Therefore we must check for the error message as well as an
2181 # unsuccessful exit.
2182 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2183 # given a .adb file, but produce no object file.  So we must check
2184 # if an object file was really produced to guard against this.
2185 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2186 if test x"$errors" = x && test -f conftest.$ac_objext; then
2187   acx_cv_cc_gcc_supports_ada=yes
2188 fi
2189 rm -f conftest.*
2190 fi
2191
2192 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2193
2194 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2195   have_gnat=yes
2196 else
2197   have_gnat=no
2198 fi
2199
2200 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2201 echo "configure:2202: checking how to compare bootstrapped objects" >&5
2202 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2203   echo $ac_n "(cached) $ac_c" 1>&6
2204 else
2205    echo abfoo >t1
2206   echo cdfoo >t2
2207   gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2208   if cmp t1 t2 2 2 > /dev/null 2>&1; then
2209     if cmp t1 t2 1 1 > /dev/null 2>&1; then
2210       :
2211     else
2212       gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2213     fi
2214   fi
2215   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2216     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2217       :
2218     else
2219       gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2220     fi
2221   fi
2222   rm t1 t2
2223
2224 fi
2225
2226 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2227 do_compare="$gcc_cv_prog_cmp_skip"
2228
2229
2230
2231 # Check for GMP and MPFR
2232 gmplibs=
2233 gmpinc=
2234 have_gmp=yes
2235 # Specify a location for mpfr
2236 # check for this first so it ends up on the link line before gmp.
2237 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2238 if test "${with_mpfr_dir+set}" = set; then
2239   withval="$with_mpfr_dir"
2240   :
2241 fi
2242
2243
2244 if test "x$with_mpfr_dir" != x; then
2245   gmpinc="-I$with_mpfr_dir"
2246   gmplibs="$with_mpfr_dir/libmpfr.a"
2247 else
2248   gmplibs="-lmpfr"
2249 fi
2250
2251 # Check whether --with-mpfr or --without-mpfr was given.
2252 if test "${with_mpfr+set}" = set; then
2253   withval="$with_mpfr"
2254   :
2255 fi
2256
2257
2258 if test "x$with_mpfr" != x; then
2259   gmplibs="-L$with_mpfr/lib $gmplibs"
2260   gmpinc="-I$with_mpfr/include"
2261 fi
2262
2263 # Specify a location for gmp
2264 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2265 if test "${with_gmp_dir+set}" = set; then
2266   withval="$with_gmp_dir"
2267   :
2268 fi
2269
2270
2271 if test "x$with_gmp_dir" != x; then
2272   gmpinc="$gmpinc -I$with_gmp_dir"
2273   if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2274     gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2275   elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2276     gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2277   fi
2278   # One of the later tests will catch the error if neither library is present.
2279 else
2280   gmplibs="$gmplibs -lgmp"
2281 fi
2282
2283 # Check whether --with-gmp or --without-gmp was given.
2284 if test "${with_gmp+set}" = set; then
2285   withval="$with_gmp"
2286   :
2287 fi
2288
2289
2290 if test "x$with_gmp" != x; then
2291   gmplibs="-L$with_gmp/lib $gmplibs"
2292   gmpinc="-I$with_gmp/include $gmpinc"
2293 fi
2294
2295 saved_CFLAGS="$CFLAGS"
2296 CFLAGS="$CFLAGS $gmpinc"
2297 # Check GMP actually works
2298 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2299 echo "configure:2300: checking for correct version of gmp.h" >&5
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 #include "gmp.h"
2304 int main() {
2305
2306 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
2307 choke me
2308 #endif
2309
2310 ; return 0; }
2311 EOF
2312 if { (eval echo configure:2313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2313   rm -rf conftest*
2314   echo "$ac_t""yes" 1>&6
2315 else
2316   echo "configure: failed program was:" >&5
2317   cat conftest.$ac_ext >&5
2318   rm -rf conftest*
2319   echo "$ac_t""no" 1>&6; have_gmp=no
2320 fi
2321 rm -f conftest*
2322
2323 if test x"$have_gmp" = xyes; then
2324   saved_LIBS="$LIBS"
2325   LIBS="$LIBS $gmplibs"
2326   echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
2327 echo "configure:2328: checking for correct version of mpfr.h" >&5
2328   cat > conftest.$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2331 #include <gmp.h>
2332 #include <mpfr.h>
2333 int main() {
2334
2335 #if MPFR_VERSION_MAJOR < 2 || (MPFR_VERSION_MAJOR == 2 && MPFR_VERSION_MINOR < 2)
2336   choke me
2337 #endif
2338   mpfr_t n; mpfr_init(n);
2339
2340 ; return 0; }
2341 EOF
2342 if { (eval echo configure:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2343   rm -rf conftest*
2344   echo "$ac_t""yes" 1>&6
2345 else
2346   echo "configure: failed program was:" >&5
2347   cat conftest.$ac_ext >&5
2348   rm -rf conftest*
2349   echo "$ac_t""no" 1>&6; have_gmp=no
2350 fi
2351 rm -f conftest*
2352   LIBS="$saved_LIBS"
2353 fi
2354 CFLAGS="$saved_CFLAGS"
2355
2356 if test x$have_gmp != xyes; then
2357   { echo "configure: error: Building GCC requires GMP 4.1+ and MPFR 2.2+.  Try the --with-gmp and/or --with-mpfr options." 1>&2; exit 1; }
2358 fi
2359
2360 # Flags needed for both GMP and/or MPFR
2361
2362
2363
2364 # By default, C is the only stage 1 language.
2365 stage1_languages=c
2366
2367
2368 # Figure out what language subdirectories are present.
2369 # Look if the user specified --enable-languages="..."; if not, use
2370 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2371 # go away some day.
2372 # NB:  embedded tabs in this IF block -- do not untabify
2373 if test -d ${srcdir}/gcc; then
2374   if test x"${enable_languages+set}" != xset; then
2375     if test x"${LANGUAGES+set}" = xset; then
2376       enable_languages="${LANGUAGES}"
2377         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2378     else
2379       enable_languages=all
2380     fi
2381   else
2382     if test x"${enable_languages}" = x ||
2383        test x"${enable_languages}" = xyes;
2384        then
2385       echo configure.in: --enable-languages needs at least one language argument 1>&2
2386       exit 1
2387     fi
2388   fi
2389   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
2390
2391   # 'f95' is the old name for the 'fortran' language. We issue a warning
2392   # and make the substitution.
2393   case ,${enable_languages}, in
2394     *,f95,*)
2395       echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2396       enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2397       ;;
2398   esac
2399
2400   # First scan to see if an enabled language requires some other language.
2401   # We assume that a given config-lang.in will list all the language
2402   # front ends it requires, even if some are required indirectly.
2403   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2404     case ${lang_frag} in
2405       ..) ;;
2406       # The odd quoting in the next line works around
2407       # an apparent bug in bash 1.12 on linux.
2408       ${srcdir}/gcc/[*]/config-lang.in) ;;
2409       *)
2410         # From the config-lang.in, get $language, $lang_requires
2411         language=
2412         lang_requires=
2413         . ${lang_frag}
2414         for other in ${lang_requires} ; do
2415           case ,${enable_languages}, in
2416             *,$other,*) ;;
2417             *,all,*) ;;
2418             *,$language,*)
2419               echo " \`$other' language required by \`$language'; enabling" 1>&2
2420               enable_languages="${enable_languages},${other}"
2421               ;;
2422           esac
2423         done
2424         ;;
2425     esac
2426   done
2427
2428   new_enable_languages=c
2429   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2430   potential_languages=c
2431
2432   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2433     case ${lang_frag} in
2434       ..) ;;
2435       # The odd quoting in the next line works around
2436       # an apparent bug in bash 1.12 on linux.
2437       ${srcdir}/gcc/[*]/config-lang.in) ;;
2438       *)
2439         # From the config-lang.in, get $language, $target_libs, 
2440         # $lang_dirs, $boot_language, and $build_by_default
2441         language=
2442         target_libs=
2443         lang_dirs=
2444         subdir_requires=
2445         boot_language=
2446         build_by_default=
2447         . ${lang_frag}
2448         potential_languages="${potential_languages},${language}"
2449         # This is quite sensitive to the ordering of the case statement arms.
2450         case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2451           *::*:*)
2452             echo "${lang_frag} doesn't set \$language." 1>&2
2453             exit 1
2454             ;;
2455           *:ada:no:*)
2456             # Ada was requested with no preexisting GNAT.  Disable unconditionally.
2457             add_this_lang=no
2458             ;;
2459           *,${language},*:*:*:*)
2460             # Language was explicitly selected; include it.
2461             add_this_lang=yes
2462             ;;
2463           *,all,*:*:*:no)
2464             # 'all' was selected, but this is not a default language
2465             # so do not include it.
2466             add_this_lang=no
2467             ;;
2468           *,all,*:*:*:*)
2469             # 'all' was selected and this is a default language; include it.
2470             add_this_lang=yes
2471             ;;
2472           *)
2473             add_this_lang=no
2474             ;;
2475         esac
2476
2477         # Disable languages that need other directories if these aren't available.
2478         for i in $subdir_requires; do
2479           test -f "$srcdir/gcc/$i/config-lang.in" && continue
2480           case ,${enable_languages}, in
2481             *,${language},*)
2482               # Specifically requested language; tell them.
2483               { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2484               ;;
2485             *)
2486               # Silently disable.
2487               add_this_lang=no
2488               ;;
2489           esac
2490         done
2491
2492         # Disable a language that is unsupported by the target.
2493         case " $unsupported_languages " in
2494           *" $language "*)
2495             add_this_lang=no
2496             ;;
2497         esac
2498
2499         case $add_this_lang in
2500           no)
2501             # Remove language-dependent dirs.
2502             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2503             ;;
2504           *)
2505             new_enable_languages="$new_enable_languages,$language"
2506             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2507             case ${boot_language} in
2508               yes)
2509                 # Add to (comma-separated) list of stage 1 languages.
2510                 stage1_languages="${stage1_languages},${language}"
2511                 ;;
2512             esac
2513             ;;
2514         esac
2515         ;;
2516     esac
2517   done
2518
2519   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2520   if test "x$missing_languages" != x; then
2521     { echo "configure: error: 
2522 The following requested languages could not be built: ${missing_languages}
2523 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2524   fi
2525
2526   if test "x$new_enable_languages" != "x$enable_languages"; then
2527     echo The following languages will be built: ${new_enable_languages}
2528   fi
2529   enable_languages="$new_enable_languages"
2530   ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2531 fi
2532
2533 # Handle --disable-<component> generically.
2534 for dir in $configdirs $build_configdirs $target_configdirs ; do
2535   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2536   if eval test x\${enable_${dirname}} "=" xno ; then
2537     noconfigdirs="$noconfigdirs $dir"
2538   fi
2539 done
2540
2541 # Check for Boehm's garbage collector
2542 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2543 if test "${enable_objc_gc+set}" = set; then
2544   enableval="$enable_objc_gc"
2545   case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2546   *,objc,*:*:yes:*target-boehm-gc*)
2547     { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2548     ;;
2549 esac
2550 fi
2551
2552
2553 # Make sure we only build Boehm's garbage collector if required.
2554 case ,${enable_languages},:${enable_objc_gc} in
2555   *,objc,*:yes)
2556     # Keep target-boehm-gc if requested for Objective-C.
2557     ;;
2558   *)
2559     # Otherwise remove target-boehm-gc depending on target-libjava.
2560     if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
2561       noconfigdirs="$noconfigdirs target-boehm-gc"
2562     fi
2563     ;;
2564 esac
2565
2566 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2567 # $build_configdirs and $target_configdirs.
2568 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2569
2570 notsupp=""
2571 for dir in . $skipdirs $noconfigdirs ; do
2572   dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2573   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2574     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2575     if test -r $srcdir/$dirname/configure ; then
2576       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2577         true
2578       else
2579         notsupp="$notsupp $dir"
2580       fi
2581     fi
2582   fi
2583   if test $dir != .  && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2584     build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2585     if test -r $srcdir/$dirname/configure ; then
2586       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2587         true
2588       else
2589         notsupp="$notsupp $dir"
2590       fi
2591     fi
2592   fi
2593   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2594     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2595     if test -r $srcdir/$dirname/configure ; then
2596       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2597         true
2598       else
2599         notsupp="$notsupp $dir"
2600       fi
2601     fi
2602   fi
2603 done
2604
2605 # Sometimes the tools are distributed with libiberty but with no other
2606 # libraries.  In that case, we don't want to build target-libiberty.
2607 if test -n "${target_configdirs}" ; then
2608   others=
2609   for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2610     if test "$i" != "libiberty" ; then
2611       if test -r $srcdir/$i/configure ; then
2612         others=yes;
2613         break;
2614       fi
2615     fi
2616   done
2617   if test -z "${others}" ; then
2618     target_configdirs=
2619   fi
2620 fi
2621
2622 # Quietly strip out all directories which aren't configurable in this tree.
2623 # This relies on all configurable subdirectories being autoconfiscated, which
2624 # is now the case.
2625 build_configdirs_all="$build_configdirs"
2626 build_configdirs=
2627 for i in ${build_configdirs_all} ; do
2628   j=`echo $i | sed -e s/build-//g` 
2629   if test -f ${srcdir}/$j/configure ; then
2630     build_configdirs="${build_configdirs} $i"
2631   fi
2632 done
2633
2634 configdirs_all="$configdirs"
2635 configdirs=
2636 for i in ${configdirs_all} ; do
2637   if test -f ${srcdir}/$i/configure ; then
2638     configdirs="${configdirs} $i"
2639   fi
2640 done
2641
2642 target_configdirs_all="$target_configdirs"
2643 target_configdirs=
2644 for i in ${target_configdirs_all} ; do
2645   j=`echo $i | sed -e s/target-//g` 
2646   if test -f ${srcdir}/$j/configure ; then
2647     target_configdirs="${target_configdirs} $i"
2648   fi
2649 done
2650
2651 # Produce a warning message for the subdirs we can't configure.
2652 # This isn't especially interesting in the Cygnus tree, but in the individual
2653 # FSF releases, it's important to let people know when their machine isn't
2654 # supported by the one or two programs in a package.
2655
2656 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2657   # If $appdirs is non-empty, at least one of those directories must still
2658   # be configured, or we error out.  (E.g., if the gas release supports a
2659   # specified target in some subdirs but not the gas subdir, we shouldn't
2660   # pretend that all is well.)
2661   if test -n "$appdirs" ; then
2662     for dir in $appdirs ; do
2663       if test -r $dir/Makefile.in ; then
2664         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2665           appdirs=""
2666           break
2667         fi
2668         if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2669           appdirs=""
2670           break
2671         fi
2672       fi
2673     done
2674     if test -n "$appdirs" ; then
2675       echo "*** This configuration is not supported by this package." 1>&2
2676       exit 1
2677     fi
2678   fi
2679   # Okay, some application will build, or we don't care to check.  Still
2680   # notify of subdirs not getting built.
2681   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2682   echo "    ${notsupp}" 1>&2
2683   echo "    (Any other directories should still work fine.)" 1>&2
2684 fi
2685
2686 case "$host" in
2687   *msdosdjgpp*)
2688     enable_gdbtk=no ;;
2689 esac
2690
2691 copy_dirs=
2692
2693 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2694 if test "${with_build_sysroot+set}" = set; then
2695   withval="$with_build_sysroot"
2696   if test x"$withval" != x ; then
2697      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2698    fi
2699 else
2700   SYSROOT_CFLAGS_FOR_TARGET=
2701 fi
2702
2703
2704
2705 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
2706 # the named directory are copied to $(tooldir)/sys-include.
2707 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2708   if test x${is_cross_compiler} = xno ; then
2709     echo 1>&2 '***' --with-headers is only supported when cross compiling
2710     exit 1
2711   fi
2712   if test x"${with_headers}" != xyes ; then
2713     case "${exec_prefixoption}" in
2714     "") x=${prefix} ;;
2715     *) x=${exec_prefix} ;;
2716     esac
2717     copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2718   fi
2719 fi
2720
2721 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
2722 # the name directories are copied to $(tooldir)/lib.  Multiple directories
2723 # are permitted.
2724 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2725   if test x${is_cross_compiler} = xno ; then
2726     echo 1>&2 '***' --with-libs is only supported when cross compiling
2727     exit 1
2728   fi
2729   if test x"${with_libs}" != xyes ; then
2730     # Copy the libraries in reverse order, so that files in the first named
2731     # library override files in subsequent libraries.
2732     case "${exec_prefixoption}" in
2733     "") x=${prefix} ;;
2734     *) x=${exec_prefix} ;;
2735     esac
2736     for l in ${with_libs}; do
2737       copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2738     done
2739   fi
2740 fi
2741
2742 # Set with_gnu_as and with_gnu_ld as appropriate.
2743 #
2744 # This is done by determining whether or not the appropriate directory
2745 # is available, and by checking whether or not specific configurations
2746 # have requested that this magic not happen.
2747
2748 # The command line options always override the explicit settings in 
2749 # configure.in, and the settings in configure.in override this magic.
2750 #
2751 # If the default for a toolchain is to use GNU as and ld, and you don't 
2752 # want to do that, then you should use the --without-gnu-as and
2753 # --without-gnu-ld options for the configure script.
2754
2755 if test x${use_gnu_as} = x &&
2756    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2757   with_gnu_as=yes
2758   extra_host_args="$extra_host_args --with-gnu-as"
2759 fi
2760
2761 if test x${use_gnu_ld} = x &&
2762    echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2763   with_gnu_ld=yes
2764   extra_host_args="$extra_host_args --with-gnu-ld"
2765 fi
2766
2767 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2768 # can detect this case.
2769
2770 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2771   with_newlib=yes
2772   extra_host_args="$extra_host_args --with-newlib"
2773 fi
2774
2775 # Handle ${copy_dirs}
2776 set fnord ${copy_dirs}
2777 shift
2778 while test $# != 0 ; do
2779   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2780     :
2781   else
2782     echo Copying $1 to $2
2783
2784     # Use the install script to create the directory and all required
2785     # parent directories.
2786     if test -d $2 ; then
2787       :
2788     else
2789       echo >config.temp
2790       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2791     fi
2792
2793     # Copy the directory, assuming we have tar.
2794     # FIXME: Should we use B in the second tar?  Not all systems support it.
2795     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2796
2797     # It is the responsibility of the user to correctly adjust all
2798     # symlinks.  If somebody can figure out how to handle them correctly
2799     # here, feel free to add the code.
2800
2801     echo $1 > $2/COPIED
2802   fi
2803   shift; shift
2804 done
2805
2806 # Determine a target-dependent exec_prefix that the installed
2807 # gcc will search in.  Keep this list sorted by triplet, with
2808 # the *-*-osname triplets last.
2809 md_exec_prefix=
2810 case "${target}" in
2811   alpha*-*-*vms*)
2812     md_exec_prefix=/gnu/lib/gcc-lib
2813     ;;
2814   i3456786-pc-msdosdjgpp*)
2815     md_exec_prefix=/dev/env/DJDIR/bin
2816     ;;
2817   i3456786-*-sco3.2v5*)
2818     if test $with_gnu_as = yes; then
2819       md_exec_prefix=/usr/gnu/bin
2820     else
2821       md_exec_prefix=/usr/ccs/bin/elf
2822     fi
2823     ;;
2824
2825   mn10300-*-* | \
2826   powerpc-*-chorusos* | \
2827   powerpc*-*-eabi* | \
2828   powerpc*-*-sysv* | \
2829   powerpc*-*-kaos* | \
2830   s390x-ibm-tpf*)
2831     md_exec_prefix=/usr/ccs/bin
2832     ;;
2833   sparc64-*-elf*)
2834     ;;
2835   v850*-*-*)
2836     md_exec_prefix=/usr/ccs/bin
2837     ;;
2838   xtensa-*-elf*)
2839     ;;
2840
2841   *-*-beos* | \
2842   *-*-elf* | \
2843   *-*-hpux* | \
2844   *-*-netware* | \
2845   *-*-nto-qnx* | \
2846   *-*-rtems* | \
2847   *-*-solaris2* | \
2848   *-*-sysv45* | \
2849   *-*-vxworks* | \
2850   *-wrs-windiss)
2851     md_exec_prefix=/usr/ccs/bin
2852     ;;
2853 esac
2854
2855 extra_arflags_for_target=
2856 extra_nmflags_for_target=
2857 extra_ranlibflags_for_target=
2858 target_makefile_frag=/dev/null
2859 case "${target}" in
2860   *-*-netware*)
2861     target_makefile_frag="config/mt-netware"
2862     ;;
2863   *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2864     target_makefile_frag="config/mt-gnu"
2865     ;;
2866   *-*-aix4.[3456789]* | *-*-aix[56789].*)
2867     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm 
2868     # commands to handle both 32-bit and 64-bit objects.  These flags are
2869     # harmless if we're using GNU nm or ar.
2870     extra_arflags_for_target=" -X32_64"
2871     extra_nmflags_for_target=" -B -X32_64"
2872     ;;
2873   *-*-darwin*)
2874     # ranlib from Darwin requires the -c flag to look at common symbols.
2875     extra_ranlibflags_for_target=" -c"
2876     ;;
2877   mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2878     target_makefile_frag="config/mt-wince"
2879     ;;
2880 esac
2881
2882 alphaieee_frag=/dev/null
2883 case $target in
2884   alpha*-*-*)
2885     # This just makes sure to use the -mieee option to build target libs.
2886     # This should probably be set individually by each library.
2887     alphaieee_frag="config/mt-alphaieee"
2888     ;;
2889 esac
2890
2891 # If --enable-target-optspace always use -Os instead of -O2 to build
2892 # the target libraries, similarly if it is not specified, use -Os
2893 # on selected platforms.
2894 ospace_frag=/dev/null
2895 case "${enable_target_optspace}:${target}" in
2896   yes:*)
2897     ospace_frag="config/mt-ospace"
2898     ;;
2899   :d30v-*)
2900     ospace_frag="config/mt-d30v"
2901     ;;
2902   :m32r-* | :d10v-* | :fr30-*)
2903     ospace_frag="config/mt-ospace"
2904     ;;
2905   no:* | :*)
2906     ;;
2907   *)
2908     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2909     ;;
2910 esac
2911
2912 # Default to using --with-stabs for certain targets.
2913 if test x${with_stabs} = x ; then
2914   case "${target}" in
2915   mips*-*-irix[56]*)
2916     ;;
2917   mips*-*-* | alpha*-*-osf*)
2918     with_stabs=yes;
2919     extra_host_args="${extra_host_args} --with-stabs"
2920     ;;
2921   esac
2922 fi
2923
2924 # hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
2925 # them automatically.
2926 case "${host}" in
2927   hppa*64*-*-hpux11*)   
2928     extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2929     ;;
2930 esac
2931
2932 # Some systems (e.g., one of the i386-aix systems the gas testers are
2933 # using) don't handle "\$" correctly, so don't use it here.
2934 tooldir='${exec_prefix}'/${target_alias}
2935 build_tooldir=${tooldir}
2936
2937 # Create a .gdbinit file which runs the one in srcdir
2938 # and tells GDB to look there for source files.
2939
2940 if test -r ${srcdir}/.gdbinit ; then
2941   case ${srcdir} in
2942     .) ;;
2943     *) cat > ./.gdbinit <<EOF
2944 # ${NO_EDIT}
2945 dir ${srcdir}
2946 dir .
2947 source ${srcdir}/.gdbinit
2948 EOF
2949     ;;
2950   esac
2951 fi
2952
2953 # Make sure that the compiler is able to generate an executable.  If it
2954 # can't, we are probably in trouble.  We don't care whether we can run the
2955 # executable--we might be using a cross compiler--we only care whether it
2956 # can be created.  At this point the main configure script has set CC.
2957 we_are_ok=no
2958 echo "int main () { return 0; }" > conftest.c
2959 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2960 if test $? = 0 ; then
2961   if test -s conftest || test -s conftest.exe ; then
2962     we_are_ok=yes
2963   fi
2964 fi 
2965 case $we_are_ok in
2966   no)
2967     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2968     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2969     rm -f conftest*
2970     exit 1
2971     ;;
2972 esac
2973 rm -f conftest*
2974
2975 # The Solaris /usr/ucb/cc compiler does not appear to work.
2976 case "${host}" in
2977   sparc-sun-solaris2*)
2978       CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2979       if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2980           could_use=
2981           test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2982           if test -d /opt/cygnus/bin ; then
2983               if test "$could_use" = "" ; then
2984                   could_use="/opt/cygnus/bin"
2985               else
2986                   could_use="$could_use or /opt/cygnus/bin"
2987               fi
2988           fi
2989         if test "$could_use" = "" ; then
2990             echo "Warning: compilation may fail because you're using"
2991             echo "/usr/ucb/cc.  You should change your PATH or CC "
2992             echo "variable and rerun configure."
2993         else
2994             echo "Warning: compilation may fail because you're using"
2995             echo "/usr/ucb/cc, when you should use the C compiler from"
2996             echo "$could_use.  You should change your"
2997             echo "PATH or CC variable and rerun configure."
2998         fi
2999       fi
3000   ;;
3001 esac
3002
3003 case "${host}" in
3004   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3005   *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3006   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3007 esac
3008
3009 # Record target_configdirs and the configure arguments for target and
3010 # build configuration in Makefile.
3011 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3012 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3013
3014 # Determine whether gdb needs tk/tcl or not.
3015 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3016 # and in that case we want gdb to be built without tk.  Ugh!
3017 # In fact I believe gdb is the *only* package directly dependent on tk,
3018 # so we should be able to put the 'maybe's in unconditionally and
3019 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
3020 # 100% sure that that's safe though.
3021
3022 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3023 case "$enable_gdbtk" in
3024   no)
3025     GDB_TK="" ;;
3026   yes)
3027     GDB_TK="${gdb_tk}" ;;
3028   *)
3029     # Only add the dependency on gdbtk when GDBtk is part of the gdb
3030     # distro.  Eventually someone will fix this and move Insight, nee
3031     # gdbtk to a separate directory.
3032     if test -d ${srcdir}/gdb/gdbtk ; then
3033       GDB_TK="${gdb_tk}"
3034     else
3035       GDB_TK=""
3036     fi
3037     ;;
3038 esac
3039 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3040 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3041
3042 # Strip out unwanted targets.
3043
3044 # While at that, we remove Makefiles if we were started for recursive
3045 # configuration, so that the top-level Makefile reconfigures them,
3046 # like we used to do when configure itself was recursive.
3047
3048 # Loop over modules.  $extrasub must be used with care, limiting as
3049 # much as possible the usage of range addresses.  That's because autoconf
3050 # splits the sed script to overcome limits in the number of commands,
3051 # and relying on carefully-timed sed passes may turn out to be very hard
3052 # to maintain later.  In this particular case, you just have to be careful
3053 # not to nest @if/@endif pairs, because configure will not warn you at all.
3054
3055 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3056 if test "${enable_bootstrap+set}" = set; then
3057   enableval="$enable_bootstrap"
3058   :
3059 else
3060   enable_bootstrap=default
3061 fi
3062
3063
3064 # Issue errors and warnings for invalid/strange bootstrap combinations.
3065 case "$configdirs" in
3066   *gcc*) have_compiler=yes ;;
3067   *) have_compiler=no ;;
3068 esac
3069
3070 case "$have_compiler:$host:$target:$enable_bootstrap" in
3071   *:*:*:no) ;;
3072
3073   # Default behavior.  Enable bootstrap if we have a compiler
3074   # and we are in a native configuration.
3075   yes:$build:$build:default)
3076     enable_bootstrap=yes ;;
3077
3078   *:*:*:default)
3079     enable_bootstrap=no ;;
3080
3081   # We have a compiler and we are in a native configuration, bootstrap is ok
3082   yes:$build:$build:yes)
3083     ;;
3084
3085   # Other configurations, but we have a compiler.  Assume the user knows
3086   # what he's doing.
3087   yes:*:*:yes)
3088     echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3089     ;;
3090
3091   # No compiler: if they passed --enable-bootstrap explicitly, fail
3092   no:*:*:yes)
3093     { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3094
3095   # Fail if wrong command line
3096   *)
3097     { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3098     ;;
3099 esac
3100
3101 # Adjust the toplevel makefile according to whether bootstrap was selected.
3102 case "$enable_bootstrap" in
3103   yes)
3104     bootstrap_suffix=bootstrap ;;
3105   no)
3106     bootstrap_suffix=no-bootstrap ;;
3107 esac
3108
3109 for module in ${build_configdirs} ; do
3110   if test -z "${no_recursion}" \
3111      && test -f ${build_subdir}/${module}/Makefile; then
3112     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3113     rm -f ${build_subdir}/${module}/Makefile
3114   fi
3115   extrasub="$extrasub
3116 /^@if build-$module\$/d
3117 /^@endif build-$module\$/d
3118 /^@if build-$module-$bootstrap_suffix\$/d
3119 /^@endif build-$module-$bootstrap_suffix\$/d"
3120 done
3121 for module in ${configdirs} ; do
3122   if test -z "${no_recursion}"; then
3123     for file in stage*-${module}/Makefile ${module}/Makefile; do
3124       if test -f ${file}; then
3125         echo 1>&2 "*** removing ${file} to force reconfigure"
3126         rm -f ${file}
3127       fi
3128     done
3129   fi
3130   extrasub="$extrasub
3131 /^@if $module\$/d
3132 /^@endif $module\$/d
3133 /^@if $module-$bootstrap_suffix\$/d
3134 /^@endif $module-$bootstrap_suffix\$/d"
3135 done
3136 for module in ${target_configdirs} ; do
3137   if test -z "${no_recursion}" \
3138      && test -f ${target_subdir}/${module}/Makefile; then
3139     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3140     rm -f ${target_subdir}/${module}/Makefile
3141   fi
3142   extrasub="$extrasub
3143 /^@if target-$module\$/d
3144 /^@endif target-$module\$/d
3145 /^@if target-$module-$bootstrap_suffix\$/d
3146 /^@endif target-$module-$bootstrap_suffix\$/d"
3147 done
3148
3149 extrasub="$extrasub
3150 /^@if /,/^@endif /d"
3151
3152 # Create the serialization dependencies.  This uses a temporary file.
3153
3154 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3155 if test "${enable_serial_configure+set}" = set; then
3156   enableval="$enable_serial_configure"
3157   :
3158 fi
3159
3160
3161 case ${enable_serial_configure} in
3162   yes)
3163     enable_serial_build_configure=yes
3164     enable_serial_host_configure=yes
3165     enable_serial_target_configure=yes
3166     ;;
3167 esac
3168
3169 # These force 'configure's to be done one at a time, to avoid problems
3170 # with contention over a shared config.cache.
3171 rm -f serdep.tmp
3172 echo '# serdep.tmp' > serdep.tmp
3173 olditem=
3174 test "x${enable_serial_build_configure}" = xyes &&
3175 for item in ${build_configdirs} ; do
3176   case ${olditem} in
3177     "") ;;
3178     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3179   esac
3180   olditem=${item}
3181 done
3182 olditem=
3183 test "x${enable_serial_host_configure}" = xyes &&
3184 for item in ${configdirs} ; do
3185   case ${olditem} in
3186     "") ;;
3187     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3188   esac
3189   olditem=${item}
3190 done
3191 olditem=
3192 test "x${enable_serial_target_configure}" = xyes &&
3193 for item in ${target_configdirs} ; do
3194   case ${olditem} in
3195     "") ;;
3196     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3197   esac
3198   olditem=${item}
3199 done
3200 serialization_dependencies=serdep.tmp
3201
3202
3203 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
3204 # target and nonopt.  These are the ones we might not want to pass
3205 # down to subconfigures.  Also strip program-prefix, program-suffix,
3206 # and program-transform-name, so that we can pass down a consistent
3207 # program-transform-name.  If autoconf has put single quotes around
3208 # any of these arguments (because they contain shell metacharacters)
3209 # then this will fail; in practice this only happens for
3210 # --program-transform-name, so be sure to override --program-transform-name
3211 # at the end of the argument list.
3212 # These will be expanded by make, so quote '$'.
3213 cat <<\EOF_SED > conftestsed
3214 s/ --no[^ ]*/ /g
3215 s/ --c[a-z-]*[= ][^ ]*//g
3216 s/ --sr[a-z-]*[= ][^ ]*//g
3217 s/ --ho[a-z-]*[= ][^ ]*//g
3218 s/ --bu[a-z-]*[= ][^ ]*//g
3219 s/ --t[a-z-]*[= ][^ ]*//g
3220 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3221 s/ -cache-file[= ][^ ]*//g
3222 s/ -srcdir[= ][^ ]*//g
3223 s/ -host[= ][^ ]*//g
3224 s/ -build[= ][^ ]*//g
3225 s/ -target[= ][^ ]*//g
3226 s/ -program-prefix[= ][^ ]*//g
3227 s/ -program-suffix[= ][^ ]*//g
3228 s/ -program-transform-name[= ][^ ]*//g
3229 s/ [^' -][^ ]* / /
3230 s/^ *//;s/ *$//
3231 s,\$,$$,g
3232 EOF_SED
3233 sed -f conftestsed <<EOF_SED > conftestsed.out
3234  ${ac_configure_args} 
3235 EOF_SED
3236 baseargs=`cat conftestsed.out`
3237 rm -f conftestsed conftestsed.out
3238
3239 # Add in --program-transform-name, after --program-prefix and
3240 # --program-suffix have been applied to it.  Autoconf has already
3241 # doubled dollar signs and backslashes in program_transform_name; we want
3242 # the backslashes un-doubled, and then the entire thing wrapped in single
3243 # quotes, because this will be expanded first by make and then by the shell. 
3244 # Also, because we want to override the logic in subdir configure scripts to
3245 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3246 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3247 ${program_transform_name}
3248 EOF_SED
3249 gcc_transform_name=`cat conftestsed.out`
3250 rm -f conftestsed.out
3251 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3252
3253 # For the build-side libraries, we just need to pretend we're native,
3254 # and not use the same cache file.  Multilibs are neither needed nor
3255 # desired.
3256 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3257
3258 # For host modules, accept cache file option, or specification as blank.
3259 case "${cache_file}" in
3260 "") # empty
3261   cache_file_option="" ;;
3262 /* | [A-Za-z]:[\\/]* ) # absolute path
3263   cache_file_option="--cache-file=${cache_file}" ;;
3264 *) # relative path
3265   cache_file_option="--cache-file=../${cache_file}" ;;
3266 esac
3267
3268 # Host dirs don't like to share a cache file either, horribly enough.
3269 # This seems to be due to autoconf 2.5x stupidity.
3270 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3271
3272 target_configargs=${baseargs}
3273
3274 # Passing a --with-cross-host argument lets the target libraries know
3275 # whether they are being built with a cross-compiler or being built
3276 # native.  However, it would be better to use other mechanisms to make the
3277 # sorts of decisions they want to make on this basis.  Please consider
3278 # this option to be deprecated.  FIXME.
3279 if test x${is_cross_compiler} = xyes ; then
3280   target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3281 fi
3282
3283 # Default to --enable-multilib.
3284 if test x${enable_multilib} = x ; then
3285   target_configargs="--enable-multilib ${target_configargs}"
3286 fi
3287
3288 # Pass --with-newlib if appropriate.  Note that target_configdirs has
3289 # changed from the earlier setting of with_newlib.
3290 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3291   target_configargs="--with-newlib ${target_configargs}"
3292 fi
3293
3294 # Different target subdirs use different values of certain variables
3295 # (notably CXX).  Worse, multilibs use *lots* of different values.
3296 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3297 # it doesn't automatically accept command-line overrides of them.
3298 # This means it's not safe for target subdirs to share a cache file,
3299 # which is disgusting, but there you have it.  Hopefully this can be
3300 # fixed in future.  It's still worthwhile to use a cache file for each
3301 # directory.  I think.
3302
3303 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3304 # We need to pass --target, as newer autoconf's requires consistency
3305 # for target_alias and gcc doesn't manage it consistently.
3306 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3307
3308 FLAGS_FOR_TARGET=
3309 case " $target_configdirs " in
3310  *" newlib "*)
3311   case " $target_configargs " in
3312   *" --with-newlib "*)
3313    case "$target" in
3314    *-cygwin*)
3315      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' ;;
3316    esac
3317
3318    # If we're not building GCC, don't discard standard headers.
3319    if test -d ${srcdir}/gcc; then
3320      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3321
3322      if test "${build}" != "${host}"; then
3323        # On Canadian crosses, CC_FOR_TARGET will have already been set
3324        # by `configure', so we won't have an opportunity to add -Bgcc/
3325        # to it.  This is right: we don't want to search that directory
3326        # for binaries, but we want the header files in there, so add
3327        # them explicitly.
3328        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3329
3330        # Someone might think of using the pre-installed headers on
3331        # Canadian crosses, in case the installed compiler is not fully
3332        # compatible with the compiler being built.  In this case, it
3333        # would be better to flag an error than risking having
3334        # incompatible object files being constructed.  We can't
3335        # guarantee that an error will be flagged, but let's hope the
3336        # compiler will do it, when presented with incompatible header
3337        # files.
3338      fi
3339    fi
3340
3341    case "${target}-${is_cross_compiler}" in
3342    i[3456789]86-*-linux*-no)
3343       # Here host == target, so we don't need to build gcc,
3344       # so we don't want to discard standard headers.
3345       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3346       ;;
3347    *)
3348       # If we're building newlib, use its generic headers last, but search
3349       # for any libc-related directories first (so make it the last -B
3350       # switch).
3351       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3352       ;;
3353    esac
3354    ;;
3355   esac
3356   ;;
3357 esac
3358 case "$target" in
3359 *-mingw*)
3360   # Can't be handled as Cygwin above since Mingw does not use newlib.
3361   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' ;;
3362 esac
3363
3364 # Allow the user to override the flags for
3365 # our build compiler if desired.
3366 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3367
3368 # On Canadian crosses, we'll be searching the right directories for
3369 # the previously-installed cross compiler, so don't bother to add
3370 # flags for directories within the install tree of the compiler
3371 # being built; programs in there won't even run.
3372 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3373   # Search for pre-installed headers if nothing else fits.
3374   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3375 fi
3376
3377 if test "x${use_gnu_ld}" = x &&
3378    echo " ${configdirs} " | grep " ld " > /dev/null ; then
3379   # Arrange for us to find uninstalled linker scripts.
3380   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3381 fi
3382
3383 # Search for other target-specific linker scripts and such.
3384 case "${target}" in
3385   m32c-*-* )
3386     if test -d ${srcdir}/libgloss/m32c; then
3387       # This is for crt0.o
3388       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3389       # This is for r8c.ld
3390       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3391       # This is for libnosys.a
3392       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3393     fi
3394     ;;
3395 esac
3396
3397 # Makefile fragments.
3398 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3399 do
3400   eval fragval=\$$frag
3401   if test $fragval != /dev/null; then
3402     eval $frag=${srcdir}/$fragval
3403   fi
3404 done
3405
3406
3407
3408
3409
3410 # Miscellanea: directories, flags, etc.
3411
3412
3413
3414
3415
3416
3417
3418 # Build module lists & subconfigure args.
3419
3420
3421
3422 # Host module lists & subconfigure args.
3423
3424
3425
3426 # Target module lists & subconfigure args.
3427
3428
3429
3430 # Build tools.
3431
3432
3433
3434 # Generate default definitions for YACC, M4, LEX and other programs that run
3435 # on the build machine.  These are used if the Makefile can't locate these
3436 # programs in objdir.
3437 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3438
3439 for ac_prog in 'bison -y' byacc yacc
3440 do
3441 # Extract the first word of "$ac_prog", so it can be a program name with args.
3442 set dummy $ac_prog; ac_word=$2
3443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3444 echo "configure:3445: checking for $ac_word" >&5
3445 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3446   echo $ac_n "(cached) $ac_c" 1>&6
3447 else
3448   if test -n "$YACC"; then
3449   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3450 else
3451   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3452   ac_dummy="$PATH"
3453   for ac_dir in $ac_dummy; do
3454     test -z "$ac_dir" && ac_dir=.
3455     if test -f $ac_dir/$ac_word; then
3456       ac_cv_prog_YACC="$ac_prog"
3457       break
3458     fi
3459   done
3460   IFS="$ac_save_ifs"
3461 fi
3462 fi
3463 YACC="$ac_cv_prog_YACC"
3464 if test -n "$YACC"; then
3465   echo "$ac_t""$YACC" 1>&6
3466 else
3467   echo "$ac_t""no" 1>&6
3468 fi
3469
3470 test -n "$YACC" && break
3471 done
3472 test -n "$YACC" || YACC="$MISSING bison -y"
3473
3474 case " $build_configdirs " in
3475   *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3476   *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3477 esac
3478
3479 for ac_prog in bison
3480 do
3481 # Extract the first word of "$ac_prog", so it can be a program name with args.
3482 set dummy $ac_prog; ac_word=$2
3483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3484 echo "configure:3485: checking for $ac_word" >&5
3485 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3486   echo $ac_n "(cached) $ac_c" 1>&6
3487 else
3488   if test -n "$BISON"; then
3489   ac_cv_prog_BISON="$BISON" # Let the user override the test.
3490 else
3491   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3492   ac_dummy="$PATH"
3493   for ac_dir in $ac_dummy; do
3494     test -z "$ac_dir" && ac_dir=.
3495     if test -f $ac_dir/$ac_word; then
3496       ac_cv_prog_BISON="$ac_prog"
3497       break
3498     fi
3499   done
3500   IFS="$ac_save_ifs"
3501 fi
3502 fi
3503 BISON="$ac_cv_prog_BISON"
3504 if test -n "$BISON"; then
3505   echo "$ac_t""$BISON" 1>&6
3506 else
3507   echo "$ac_t""no" 1>&6
3508 fi
3509
3510 test -n "$BISON" && break
3511 done
3512 test -n "$BISON" || BISON="$MISSING bison"
3513
3514 case " $build_configdirs " in
3515   *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3516 esac
3517
3518 for ac_prog in gm4 gnum4 m4
3519 do
3520 # Extract the first word of "$ac_prog", so it can be a program name with args.
3521 set dummy $ac_prog; ac_word=$2
3522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3523 echo "configure:3524: checking for $ac_word" >&5
3524 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3525   echo $ac_n "(cached) $ac_c" 1>&6
3526 else
3527   if test -n "$M4"; then
3528   ac_cv_prog_M4="$M4" # Let the user override the test.
3529 else
3530   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3531   ac_dummy="$PATH"
3532   for ac_dir in $ac_dummy; do
3533     test -z "$ac_dir" && ac_dir=.
3534     if test -f $ac_dir/$ac_word; then
3535       ac_cv_prog_M4="$ac_prog"
3536       break
3537     fi
3538   done
3539   IFS="$ac_save_ifs"
3540 fi
3541 fi
3542 M4="$ac_cv_prog_M4"
3543 if test -n "$M4"; then
3544   echo "$ac_t""$M4" 1>&6
3545 else
3546   echo "$ac_t""no" 1>&6
3547 fi
3548
3549 test -n "$M4" && break
3550 done
3551 test -n "$M4" || M4="$MISSING m4"
3552
3553 case " $build_configdirs " in
3554   *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3555 esac
3556
3557 for ac_prog in flex lex
3558 do
3559 # Extract the first word of "$ac_prog", so it can be a program name with args.
3560 set dummy $ac_prog; ac_word=$2
3561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3562 echo "configure:3563: checking for $ac_word" >&5
3563 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3564   echo $ac_n "(cached) $ac_c" 1>&6
3565 else
3566   if test -n "$LEX"; then
3567   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3568 else
3569   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3570   ac_dummy="$PATH"
3571   for ac_dir in $ac_dummy; do
3572     test -z "$ac_dir" && ac_dir=.
3573     if test -f $ac_dir/$ac_word; then
3574       ac_cv_prog_LEX="$ac_prog"
3575       break
3576     fi
3577   done
3578   IFS="$ac_save_ifs"
3579 fi
3580 fi
3581 LEX="$ac_cv_prog_LEX"
3582 if test -n "$LEX"; then
3583   echo "$ac_t""$LEX" 1>&6
3584 else
3585   echo "$ac_t""no" 1>&6
3586 fi
3587
3588 test -n "$LEX" && break
3589 done
3590 test -n "$LEX" || LEX="$MISSING flex"
3591
3592 case " $build_configdirs " in
3593   *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3594   *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3595 esac
3596
3597 for ac_prog in flex
3598 do
3599 # Extract the first word of "$ac_prog", so it can be a program name with args.
3600 set dummy $ac_prog; ac_word=$2
3601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3602 echo "configure:3603: checking for $ac_word" >&5
3603 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3604   echo $ac_n "(cached) $ac_c" 1>&6
3605 else
3606   if test -n "$FLEX"; then
3607   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3608 else
3609   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3610   ac_dummy="$PATH"
3611   for ac_dir in $ac_dummy; do
3612     test -z "$ac_dir" && ac_dir=.
3613     if test -f $ac_dir/$ac_word; then
3614       ac_cv_prog_FLEX="$ac_prog"
3615       break
3616     fi
3617   done
3618   IFS="$ac_save_ifs"
3619 fi
3620 fi
3621 FLEX="$ac_cv_prog_FLEX"
3622 if test -n "$FLEX"; then
3623   echo "$ac_t""$FLEX" 1>&6
3624 else
3625   echo "$ac_t""no" 1>&6
3626 fi
3627
3628 test -n "$FLEX" && break
3629 done
3630 test -n "$FLEX" || FLEX="$MISSING flex"
3631
3632 case " $build_configdirs " in
3633   *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3634 esac
3635
3636 for ac_prog in makeinfo
3637 do
3638 # Extract the first word of "$ac_prog", so it can be a program name with args.
3639 set dummy $ac_prog; ac_word=$2
3640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3641 echo "configure:3642: checking for $ac_word" >&5
3642 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3643   echo $ac_n "(cached) $ac_c" 1>&6
3644 else
3645   if test -n "$MAKEINFO"; then
3646   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3647 else
3648   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3649   ac_dummy="$PATH"
3650   for ac_dir in $ac_dummy; do
3651     test -z "$ac_dir" && ac_dir=.
3652     if test -f $ac_dir/$ac_word; then
3653       ac_cv_prog_MAKEINFO="$ac_prog"
3654       break
3655     fi
3656   done
3657   IFS="$ac_save_ifs"
3658 fi
3659 fi
3660 MAKEINFO="$ac_cv_prog_MAKEINFO"
3661 if test -n "$MAKEINFO"; then
3662   echo "$ac_t""$MAKEINFO" 1>&6
3663 else
3664   echo "$ac_t""no" 1>&6
3665 fi
3666
3667 test -n "$MAKEINFO" && break
3668 done
3669 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3670
3671 case " $build_configdirs " in
3672   *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3673   *)
3674
3675     # For an installed makeinfo, we require it to be from texinfo 4.4 or
3676     # higher, else we use the "missing" dummy.
3677     if ${MAKEINFO} --version \
3678        | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3679       :
3680     else
3681       MAKEINFO="$MISSING makeinfo"
3682     fi
3683     ;;
3684
3685 esac
3686
3687 # FIXME: expect and dejagnu may become build tools?
3688
3689 for ac_prog in expect
3690 do
3691 # Extract the first word of "$ac_prog", so it can be a program name with args.
3692 set dummy $ac_prog; ac_word=$2
3693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3694 echo "configure:3695: checking for $ac_word" >&5
3695 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3696   echo $ac_n "(cached) $ac_c" 1>&6
3697 else
3698   if test -n "$EXPECT"; then
3699   ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3700 else
3701   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3702   ac_dummy="$PATH"
3703   for ac_dir in $ac_dummy; do
3704     test -z "$ac_dir" && ac_dir=.
3705     if test -f $ac_dir/$ac_word; then
3706       ac_cv_prog_EXPECT="$ac_prog"
3707       break
3708     fi
3709   done
3710   IFS="$ac_save_ifs"
3711 fi
3712 fi
3713 EXPECT="$ac_cv_prog_EXPECT"
3714 if test -n "$EXPECT"; then
3715   echo "$ac_t""$EXPECT" 1>&6
3716 else
3717   echo "$ac_t""no" 1>&6
3718 fi
3719
3720 test -n "$EXPECT" && break
3721 done
3722 test -n "$EXPECT" || EXPECT="expect"
3723
3724 case " $configdirs " in
3725   *" expect "*)
3726     test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3727     ;;
3728 esac
3729
3730 for ac_prog in runtest
3731 do
3732 # Extract the first word of "$ac_prog", so it can be a program name with args.
3733 set dummy $ac_prog; ac_word=$2
3734 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3735 echo "configure:3736: checking for $ac_word" >&5
3736 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3737   echo $ac_n "(cached) $ac_c" 1>&6
3738 else
3739   if test -n "$RUNTEST"; then
3740   ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3741 else
3742   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3743   ac_dummy="$PATH"
3744   for ac_dir in $ac_dummy; do
3745     test -z "$ac_dir" && ac_dir=.
3746     if test -f $ac_dir/$ac_word; then
3747       ac_cv_prog_RUNTEST="$ac_prog"
3748       break
3749     fi
3750   done
3751   IFS="$ac_save_ifs"
3752 fi
3753 fi
3754 RUNTEST="$ac_cv_prog_RUNTEST"
3755 if test -n "$RUNTEST"; then
3756   echo "$ac_t""$RUNTEST" 1>&6
3757 else
3758   echo "$ac_t""no" 1>&6
3759 fi
3760
3761 test -n "$RUNTEST" && break
3762 done
3763 test -n "$RUNTEST" || RUNTEST="runtest"
3764
3765 case " $configdirs " in
3766   *" dejagnu "*)
3767     test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
3768     ;;
3769 esac
3770
3771
3772 # Host tools.
3773 ncn_tool_prefix=
3774 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3775 ncn_target_tool_prefix=
3776 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3777
3778  for ncn_progname in ar; do
3779   if test -n "$ncn_tool_prefix"; then
3780     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3781 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3783 echo "configure:3784: checking for $ac_word" >&5
3784 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3785   echo $ac_n "(cached) $ac_c" 1>&6
3786 else
3787   if test -n "$AR"; then
3788   ac_cv_prog_AR="$AR" # Let the user override the test.
3789 else
3790   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3791   ac_dummy="$PATH"
3792   for ac_dir in $ac_dummy; do
3793     test -z "$ac_dir" && ac_dir=.
3794     if test -f $ac_dir/$ac_word; then
3795       ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3796       break
3797     fi
3798   done
3799   IFS="$ac_save_ifs"
3800 fi
3801 fi
3802 AR="$ac_cv_prog_AR"
3803 if test -n "$AR"; then
3804   echo "$ac_t""$AR" 1>&6
3805 else
3806   echo "$ac_t""no" 1>&6
3807 fi
3808
3809   fi
3810   if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3811     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3812 set dummy ${ncn_progname}; ac_word=$2
3813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3814 echo "configure:3815: checking for $ac_word" >&5
3815 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3816   echo $ac_n "(cached) $ac_c" 1>&6
3817 else
3818   if test -n "$AR"; then
3819   ac_cv_prog_AR="$AR" # Let the user override the test.
3820 else
3821   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3822   ac_dummy="$PATH"
3823   for ac_dir in $ac_dummy; do
3824     test -z "$ac_dir" && ac_dir=.
3825     if test -f $ac_dir/$ac_word; then
3826       ac_cv_prog_AR="${ncn_progname}"
3827       break
3828     fi
3829   done
3830   IFS="$ac_save_ifs"
3831 fi
3832 fi
3833 AR="$ac_cv_prog_AR"
3834 if test -n "$AR"; then
3835   echo "$ac_t""$AR" 1>&6
3836 else
3837   echo "$ac_t""no" 1>&6
3838 fi
3839  
3840   fi
3841   test -n "$ac_cv_prog_AR" && break
3842 done
3843
3844 if test -z "$ac_cv_prog_AR" ; then
3845   set dummy ar
3846   if test $build = $host ; then
3847     AR="$2"
3848   else
3849     AR="${ncn_tool_prefix}$2"
3850   fi
3851 fi
3852
3853  for ncn_progname in as; do
3854   if test -n "$ncn_tool_prefix"; then
3855     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3856 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3858 echo "configure:3859: checking for $ac_word" >&5
3859 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3860   echo $ac_n "(cached) $ac_c" 1>&6
3861 else
3862   if test -n "$AS"; then
3863   ac_cv_prog_AS="$AS" # Let the user override the test.
3864 else
3865   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3866   ac_dummy="$PATH"
3867   for ac_dir in $ac_dummy; do
3868     test -z "$ac_dir" && ac_dir=.
3869     if test -f $ac_dir/$ac_word; then
3870       ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3871       break
3872     fi
3873   done
3874   IFS="$ac_save_ifs"
3875 fi
3876 fi
3877 AS="$ac_cv_prog_AS"
3878 if test -n "$AS"; then
3879   echo "$ac_t""$AS" 1>&6
3880 else
3881   echo "$ac_t""no" 1>&6
3882 fi
3883
3884   fi
3885   if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3886     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3887 set dummy ${ncn_progname}; ac_word=$2
3888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3889 echo "configure:3890: checking for $ac_word" >&5
3890 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3891   echo $ac_n "(cached) $ac_c" 1>&6
3892 else
3893   if test -n "$AS"; then
3894   ac_cv_prog_AS="$AS" # Let the user override the test.
3895 else
3896   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3897   ac_dummy="$PATH"
3898   for ac_dir in $ac_dummy; do
3899     test -z "$ac_dir" && ac_dir=.
3900     if test -f $ac_dir/$ac_word; then
3901       ac_cv_prog_AS="${ncn_progname}"
3902       break
3903     fi
3904   done
3905   IFS="$ac_save_ifs"
3906 fi
3907 fi
3908 AS="$ac_cv_prog_AS"
3909 if test -n "$AS"; then
3910   echo "$ac_t""$AS" 1>&6
3911 else
3912   echo "$ac_t""no" 1>&6
3913 fi
3914  
3915   fi
3916   test -n "$ac_cv_prog_AS" && break
3917 done
3918
3919 if test -z "$ac_cv_prog_AS" ; then
3920   set dummy as
3921   if test $build = $host ; then
3922     AS="$2"
3923   else
3924     AS="${ncn_tool_prefix}$2"
3925   fi
3926 fi
3927
3928  for ncn_progname in dlltool; do
3929   if test -n "$ncn_tool_prefix"; then
3930     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3931 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3933 echo "configure:3934: checking for $ac_word" >&5
3934 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3935   echo $ac_n "(cached) $ac_c" 1>&6
3936 else
3937   if test -n "$DLLTOOL"; then
3938   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3939 else
3940   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3941   ac_dummy="$PATH"
3942   for ac_dir in $ac_dummy; do
3943     test -z "$ac_dir" && ac_dir=.
3944     if test -f $ac_dir/$ac_word; then
3945       ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3946       break
3947     fi
3948   done
3949   IFS="$ac_save_ifs"
3950 fi
3951 fi
3952 DLLTOOL="$ac_cv_prog_DLLTOOL"
3953 if test -n "$DLLTOOL"; then
3954   echo "$ac_t""$DLLTOOL" 1>&6
3955 else
3956   echo "$ac_t""no" 1>&6
3957 fi
3958
3959   fi
3960   if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3961     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3962 set dummy ${ncn_progname}; ac_word=$2
3963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3964 echo "configure:3965: checking for $ac_word" >&5
3965 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3966   echo $ac_n "(cached) $ac_c" 1>&6
3967 else
3968   if test -n "$DLLTOOL"; then
3969   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3970 else
3971   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3972   ac_dummy="$PATH"
3973   for ac_dir in $ac_dummy; do
3974     test -z "$ac_dir" && ac_dir=.
3975     if test -f $ac_dir/$ac_word; then
3976       ac_cv_prog_DLLTOOL="${ncn_progname}"
3977       break
3978     fi
3979   done
3980   IFS="$ac_save_ifs"
3981 fi
3982 fi
3983 DLLTOOL="$ac_cv_prog_DLLTOOL"
3984 if test -n "$DLLTOOL"; then
3985   echo "$ac_t""$DLLTOOL" 1>&6
3986 else
3987   echo "$ac_t""no" 1>&6
3988 fi
3989  
3990   fi
3991   test -n "$ac_cv_prog_DLLTOOL" && break
3992 done
3993
3994 if test -z "$ac_cv_prog_DLLTOOL" ; then
3995   set dummy dlltool
3996   if test $build = $host ; then
3997     DLLTOOL="$2"
3998   else
3999     DLLTOOL="${ncn_tool_prefix}$2"
4000   fi
4001 fi
4002
4003  for ncn_progname in ld; do
4004   if test -n "$ncn_tool_prefix"; then
4005     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4006 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4008 echo "configure:4009: checking for $ac_word" >&5
4009 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4010   echo $ac_n "(cached) $ac_c" 1>&6
4011 else
4012   if test -n "$LD"; then
4013   ac_cv_prog_LD="$LD" # Let the user override the test.
4014 else
4015   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4016   ac_dummy="$PATH"
4017   for ac_dir in $ac_dummy; do
4018     test -z "$ac_dir" && ac_dir=.
4019     if test -f $ac_dir/$ac_word; then
4020       ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4021       break
4022     fi
4023   done
4024   IFS="$ac_save_ifs"
4025 fi
4026 fi
4027 LD="$ac_cv_prog_LD"
4028 if test -n "$LD"; then
4029   echo "$ac_t""$LD" 1>&6
4030 else
4031   echo "$ac_t""no" 1>&6
4032 fi
4033
4034   fi
4035   if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4036     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4037 set dummy ${ncn_progname}; ac_word=$2
4038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4039 echo "configure:4040: checking for $ac_word" >&5
4040 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4041   echo $ac_n "(cached) $ac_c" 1>&6
4042 else
4043   if test -n "$LD"; then
4044   ac_cv_prog_LD="$LD" # Let the user override the test.
4045 else
4046   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4047   ac_dummy="$PATH"
4048   for ac_dir in $ac_dummy; do
4049     test -z "$ac_dir" && ac_dir=.
4050     if test -f $ac_dir/$ac_word; then
4051       ac_cv_prog_LD="${ncn_progname}"
4052       break
4053     fi
4054   done
4055   IFS="$ac_save_ifs"
4056 fi
4057 fi
4058 LD="$ac_cv_prog_LD"
4059 if test -n "$LD"; then
4060   echo "$ac_t""$LD" 1>&6
4061 else
4062   echo "$ac_t""no" 1>&6
4063 fi
4064  
4065   fi
4066   test -n "$ac_cv_prog_LD" && break
4067 done
4068
4069 if test -z "$ac_cv_prog_LD" ; then
4070   set dummy ld
4071   if test $build = $host ; then
4072     LD="$2"
4073   else
4074     LD="${ncn_tool_prefix}$2"
4075   fi
4076 fi
4077
4078  for ncn_progname in lipo; do
4079   if test -n "$ncn_tool_prefix"; then
4080     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4081 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4083 echo "configure:4084: checking for $ac_word" >&5
4084 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4085   echo $ac_n "(cached) $ac_c" 1>&6
4086 else
4087   if test -n "$LIPO"; then
4088   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4089 else
4090   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4091   ac_dummy="$PATH"
4092   for ac_dir in $ac_dummy; do
4093     test -z "$ac_dir" && ac_dir=.
4094     if test -f $ac_dir/$ac_word; then
4095       ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4096       break
4097     fi
4098   done
4099   IFS="$ac_save_ifs"
4100 fi
4101 fi
4102 LIPO="$ac_cv_prog_LIPO"
4103 if test -n "$LIPO"; then
4104   echo "$ac_t""$LIPO" 1>&6
4105 else
4106   echo "$ac_t""no" 1>&6
4107 fi
4108
4109   fi
4110   if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4111     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4112 set dummy ${ncn_progname}; ac_word=$2
4113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4114 echo "configure:4115: checking for $ac_word" >&5
4115 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4116   echo $ac_n "(cached) $ac_c" 1>&6
4117 else
4118   if test -n "$LIPO"; then
4119   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4120 else
4121   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4122   ac_dummy="$PATH"
4123   for ac_dir in $ac_dummy; do
4124     test -z "$ac_dir" && ac_dir=.
4125     if test -f $ac_dir/$ac_word; then
4126       ac_cv_prog_LIPO="${ncn_progname}"
4127       break
4128     fi
4129   done
4130   IFS="$ac_save_ifs"
4131 fi
4132 fi
4133 LIPO="$ac_cv_prog_LIPO"
4134 if test -n "$LIPO"; then
4135   echo "$ac_t""$LIPO" 1>&6
4136 else
4137   echo "$ac_t""no" 1>&6
4138 fi
4139  
4140   fi
4141   test -n "$ac_cv_prog_LIPO" && break
4142 done
4143
4144 if test -z "$ac_cv_prog_LIPO" ; then
4145   set dummy lipo
4146   if test $build = $host ; then
4147     LIPO="$2"
4148   else
4149     LIPO="${ncn_tool_prefix}$2"
4150   fi
4151 fi
4152
4153  for ncn_progname in nm; do
4154   if test -n "$ncn_tool_prefix"; then
4155     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4156 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4158 echo "configure:4159: checking for $ac_word" >&5
4159 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4160   echo $ac_n "(cached) $ac_c" 1>&6
4161 else
4162   if test -n "$NM"; then
4163   ac_cv_prog_NM="$NM" # Let the user override the test.
4164 else
4165   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4166   ac_dummy="$PATH"
4167   for ac_dir in $ac_dummy; do
4168     test -z "$ac_dir" && ac_dir=.
4169     if test -f $ac_dir/$ac_word; then
4170       ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4171       break
4172     fi
4173   done
4174   IFS="$ac_save_ifs"
4175 fi
4176 fi
4177 NM="$ac_cv_prog_NM"
4178 if test -n "$NM"; then
4179   echo "$ac_t""$NM" 1>&6
4180 else
4181   echo "$ac_t""no" 1>&6
4182 fi
4183
4184   fi
4185   if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4186     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4187 set dummy ${ncn_progname}; ac_word=$2
4188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4189 echo "configure:4190: checking for $ac_word" >&5
4190 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4191   echo $ac_n "(cached) $ac_c" 1>&6
4192 else
4193   if test -n "$NM"; then
4194   ac_cv_prog_NM="$NM" # Let the user override the test.
4195 else
4196   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4197   ac_dummy="$PATH"
4198   for ac_dir in $ac_dummy; do
4199     test -z "$ac_dir" && ac_dir=.
4200     if test -f $ac_dir/$ac_word; then
4201       ac_cv_prog_NM="${ncn_progname}"
4202       break
4203     fi
4204   done
4205   IFS="$ac_save_ifs"
4206 fi
4207 fi
4208 NM="$ac_cv_prog_NM"
4209 if test -n "$NM"; then
4210   echo "$ac_t""$NM" 1>&6
4211 else
4212   echo "$ac_t""no" 1>&6
4213 fi
4214  
4215   fi
4216   test -n "$ac_cv_prog_NM" && break
4217 done
4218
4219 if test -z "$ac_cv_prog_NM" ; then
4220   set dummy nm
4221   if test $build = $host ; then
4222     NM="$2"
4223   else
4224     NM="${ncn_tool_prefix}$2"
4225   fi
4226 fi
4227
4228  for ncn_progname in ranlib; do
4229   if test -n "$ncn_tool_prefix"; then
4230     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4231 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4233 echo "configure:4234: checking for $ac_word" >&5
4234 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4235   echo $ac_n "(cached) $ac_c" 1>&6
4236 else
4237   if test -n "$RANLIB"; then
4238   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4239 else
4240   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4241   ac_dummy="$PATH"
4242   for ac_dir in $ac_dummy; do
4243     test -z "$ac_dir" && ac_dir=.
4244     if test -f $ac_dir/$ac_word; then
4245       ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4246       break
4247     fi
4248   done
4249   IFS="$ac_save_ifs"
4250 fi
4251 fi
4252 RANLIB="$ac_cv_prog_RANLIB"
4253 if test -n "$RANLIB"; then
4254   echo "$ac_t""$RANLIB" 1>&6
4255 else
4256   echo "$ac_t""no" 1>&6
4257 fi
4258
4259   fi
4260   if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4261     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4262 set dummy ${ncn_progname}; ac_word=$2
4263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4264 echo "configure:4265: checking for $ac_word" >&5
4265 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4266   echo $ac_n "(cached) $ac_c" 1>&6
4267 else
4268   if test -n "$RANLIB"; then
4269   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4270 else
4271   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4272   ac_dummy="$PATH"
4273   for ac_dir in $ac_dummy; do
4274     test -z "$ac_dir" && ac_dir=.
4275     if test -f $ac_dir/$ac_word; then
4276       ac_cv_prog_RANLIB="${ncn_progname}"
4277       break
4278     fi
4279   done
4280   IFS="$ac_save_ifs"
4281 fi
4282 fi
4283 RANLIB="$ac_cv_prog_RANLIB"
4284 if test -n "$RANLIB"; then
4285   echo "$ac_t""$RANLIB" 1>&6
4286 else
4287   echo "$ac_t""no" 1>&6
4288 fi
4289  
4290   fi
4291   test -n "$ac_cv_prog_RANLIB" && break
4292 done
4293
4294 if test -z "$ac_cv_prog_RANLIB" ; then
4295   RANLIB=":"
4296 fi
4297
4298  for ncn_progname in strip; do
4299   if test -n "$ncn_tool_prefix"; then
4300     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4301 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4303 echo "configure:4304: checking for $ac_word" >&5
4304 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4305   echo $ac_n "(cached) $ac_c" 1>&6
4306 else
4307   if test -n "$STRIP"; then
4308   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4309 else
4310   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4311   ac_dummy="$PATH"
4312   for ac_dir in $ac_dummy; do
4313     test -z "$ac_dir" && ac_dir=.
4314     if test -f $ac_dir/$ac_word; then
4315       ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4316       break
4317     fi
4318   done
4319   IFS="$ac_save_ifs"
4320 fi
4321 fi
4322 STRIP="$ac_cv_prog_STRIP"
4323 if test -n "$STRIP"; then
4324   echo "$ac_t""$STRIP" 1>&6
4325 else
4326   echo "$ac_t""no" 1>&6
4327 fi
4328
4329   fi
4330   if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4331     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4332 set dummy ${ncn_progname}; ac_word=$2
4333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4334 echo "configure:4335: checking for $ac_word" >&5
4335 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4336   echo $ac_n "(cached) $ac_c" 1>&6
4337 else
4338   if test -n "$STRIP"; then
4339   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4340 else
4341   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4342   ac_dummy="$PATH"
4343   for ac_dir in $ac_dummy; do
4344     test -z "$ac_dir" && ac_dir=.
4345     if test -f $ac_dir/$ac_word; then
4346       ac_cv_prog_STRIP="${ncn_progname}"
4347       break
4348     fi
4349   done
4350   IFS="$ac_save_ifs"
4351 fi
4352 fi
4353 STRIP="$ac_cv_prog_STRIP"
4354 if test -n "$STRIP"; then
4355   echo "$ac_t""$STRIP" 1>&6
4356 else
4357   echo "$ac_t""no" 1>&6
4358 fi
4359  
4360   fi
4361   test -n "$ac_cv_prog_STRIP" && break
4362 done
4363
4364 if test -z "$ac_cv_prog_STRIP" ; then
4365   STRIP=":"
4366 fi
4367
4368  for ncn_progname in windres; do
4369   if test -n "$ncn_tool_prefix"; then
4370     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4371 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4373 echo "configure:4374: checking for $ac_word" >&5
4374 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4375   echo $ac_n "(cached) $ac_c" 1>&6
4376 else
4377   if test -n "$WINDRES"; then
4378   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4379 else
4380   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4381   ac_dummy="$PATH"
4382   for ac_dir in $ac_dummy; do
4383     test -z "$ac_dir" && ac_dir=.
4384     if test -f $ac_dir/$ac_word; then
4385       ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4386       break
4387     fi
4388   done
4389   IFS="$ac_save_ifs"
4390 fi
4391 fi
4392 WINDRES="$ac_cv_prog_WINDRES"
4393 if test -n "$WINDRES"; then
4394   echo "$ac_t""$WINDRES" 1>&6
4395 else
4396   echo "$ac_t""no" 1>&6
4397 fi
4398
4399   fi
4400   if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4401     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4402 set dummy ${ncn_progname}; ac_word=$2
4403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4404 echo "configure:4405: checking for $ac_word" >&5
4405 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4406   echo $ac_n "(cached) $ac_c" 1>&6
4407 else
4408   if test -n "$WINDRES"; then
4409   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4410 else
4411   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4412   ac_dummy="$PATH"
4413   for ac_dir in $ac_dummy; do
4414     test -z "$ac_dir" && ac_dir=.
4415     if test -f $ac_dir/$ac_word; then
4416       ac_cv_prog_WINDRES="${ncn_progname}"
4417       break
4418     fi
4419   done
4420   IFS="$ac_save_ifs"
4421 fi
4422 fi
4423 WINDRES="$ac_cv_prog_WINDRES"
4424 if test -n "$WINDRES"; then
4425   echo "$ac_t""$WINDRES" 1>&6
4426 else
4427   echo "$ac_t""no" 1>&6
4428 fi
4429  
4430   fi
4431   test -n "$ac_cv_prog_WINDRES" && break
4432 done
4433
4434 if test -z "$ac_cv_prog_WINDRES" ; then
4435   set dummy windres
4436   if test $build = $host ; then
4437     WINDRES="$2"
4438   else
4439     WINDRES="${ncn_tool_prefix}$2"
4440   fi
4441 fi
4442
4443  for ncn_progname in objcopy; do
4444   if test -n "$ncn_tool_prefix"; then
4445     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4446 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4448 echo "configure:4449: checking for $ac_word" >&5
4449 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4450   echo $ac_n "(cached) $ac_c" 1>&6
4451 else
4452   if test -n "$OBJCOPY"; then
4453   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4454 else
4455   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4456   ac_dummy="$PATH"
4457   for ac_dir in $ac_dummy; do
4458     test -z "$ac_dir" && ac_dir=.
4459     if test -f $ac_dir/$ac_word; then
4460       ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4461       break
4462     fi
4463   done
4464   IFS="$ac_save_ifs"
4465 fi
4466 fi
4467 OBJCOPY="$ac_cv_prog_OBJCOPY"
4468 if test -n "$OBJCOPY"; then
4469   echo "$ac_t""$OBJCOPY" 1>&6
4470 else
4471   echo "$ac_t""no" 1>&6
4472 fi
4473
4474   fi
4475   if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4476     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4477 set dummy ${ncn_progname}; ac_word=$2
4478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4479 echo "configure:4480: checking for $ac_word" >&5
4480 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4481   echo $ac_n "(cached) $ac_c" 1>&6
4482 else
4483   if test -n "$OBJCOPY"; then
4484   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4485 else
4486   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4487   ac_dummy="$PATH"
4488   for ac_dir in $ac_dummy; do
4489     test -z "$ac_dir" && ac_dir=.
4490     if test -f $ac_dir/$ac_word; then
4491       ac_cv_prog_OBJCOPY="${ncn_progname}"
4492       break
4493     fi
4494   done
4495   IFS="$ac_save_ifs"
4496 fi
4497 fi
4498 OBJCOPY="$ac_cv_prog_OBJCOPY"
4499 if test -n "$OBJCOPY"; then
4500   echo "$ac_t""$OBJCOPY" 1>&6
4501 else
4502   echo "$ac_t""no" 1>&6
4503 fi
4504  
4505   fi
4506   test -n "$ac_cv_prog_OBJCOPY" && break
4507 done
4508
4509 if test -z "$ac_cv_prog_OBJCOPY" ; then
4510   set dummy objcopy
4511   if test $build = $host ; then
4512     OBJCOPY="$2"
4513   else
4514     OBJCOPY="${ncn_tool_prefix}$2"
4515   fi
4516 fi
4517
4518  for ncn_progname in objdump; do
4519   if test -n "$ncn_tool_prefix"; then
4520     # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4521 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4523 echo "configure:4524: checking for $ac_word" >&5
4524 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4525   echo $ac_n "(cached) $ac_c" 1>&6
4526 else
4527   if test -n "$OBJDUMP"; then
4528   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4529 else
4530   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4531   ac_dummy="$PATH"
4532   for ac_dir in $ac_dummy; do
4533     test -z "$ac_dir" && ac_dir=.
4534     if test -f $ac_dir/$ac_word; then
4535       ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4536       break
4537     fi
4538   done
4539   IFS="$ac_save_ifs"
4540 fi
4541 fi
4542 OBJDUMP="$ac_cv_prog_OBJDUMP"
4543 if test -n "$OBJDUMP"; then
4544   echo "$ac_t""$OBJDUMP" 1>&6
4545 else
4546   echo "$ac_t""no" 1>&6
4547 fi
4548
4549   fi
4550   if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4551     # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4552 set dummy ${ncn_progname}; ac_word=$2
4553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4554 echo "configure:4555: checking for $ac_word" >&5
4555 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4556   echo $ac_n "(cached) $ac_c" 1>&6
4557 else
4558   if test -n "$OBJDUMP"; then
4559   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4560 else
4561   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4562   ac_dummy="$PATH"
4563   for ac_dir in $ac_dummy; do
4564     test -z "$ac_dir" && ac_dir=.
4565     if test -f $ac_dir/$ac_word; then
4566       ac_cv_prog_OBJDUMP="${ncn_progname}"
4567       break
4568     fi
4569   done
4570   IFS="$ac_save_ifs"
4571 fi
4572 fi
4573 OBJDUMP="$ac_cv_prog_OBJDUMP"
4574 if test -n "$OBJDUMP"; then
4575   echo "$ac_t""$OBJDUMP" 1>&6
4576 else
4577   echo "$ac_t""no" 1>&6
4578 fi
4579  
4580   fi
4581   test -n "$ac_cv_prog_OBJDUMP" && break
4582 done
4583
4584 if test -z "$ac_cv_prog_OBJDUMP" ; then
4585   set dummy objdump
4586   if test $build = $host ; then
4587     OBJDUMP="$2"
4588   else
4589     OBJDUMP="${ncn_tool_prefix}$2"
4590   fi
4591 fi
4592
4593
4594
4595
4596
4597
4598
4599 # Target tools.
4600 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4601 if test "${with_build_time_tools+set}" = set; then
4602   withval="$with_build_time_tools"
4603   case x"$withval" in
4604      x/*) ;;
4605      *)
4606        with_build_time_tools=
4607        echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4608        ;;
4609    esac
4610 else
4611   with_build_time_tools=
4612 fi
4613
4614
4615  if test -n "$with_build_time_tools"; then
4616   for ncn_progname in cc gcc; do
4617     echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4618 echo "configure:4619: checking for ${ncn_progname} in $with_build_time_tools" >&5
4619     if test -x $with_build_time_tools/${ncn_progname}; then
4620       ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4621       echo "$ac_t""yes" 1>&6
4622       break
4623     else
4624       echo "$ac_t""no" 1>&6
4625     fi
4626   done
4627 fi
4628
4629 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4630   for ncn_progname in cc gcc; do
4631     if test -n "$ncn_target_tool_prefix"; then
4632       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4633 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4635 echo "configure:4636: checking for $ac_word" >&5
4636 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4637   echo $ac_n "(cached) $ac_c" 1>&6
4638 else
4639   if test -n "$CC_FOR_TARGET"; then
4640   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4641 else
4642   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4643   ac_dummy="$PATH"
4644   for ac_dir in $ac_dummy; do
4645     test -z "$ac_dir" && ac_dir=.
4646     if test -f $ac_dir/$ac_word; then
4647       ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4648       break
4649     fi
4650   done
4651   IFS="$ac_save_ifs"
4652 fi
4653 fi
4654 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4655 if test -n "$CC_FOR_TARGET"; then
4656   echo "$ac_t""$CC_FOR_TARGET" 1>&6
4657 else
4658   echo "$ac_t""no" 1>&6
4659 fi
4660
4661     fi
4662     if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4663       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4664 set dummy ${ncn_progname}; ac_word=$2
4665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4666 echo "configure:4667: checking for $ac_word" >&5
4667 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4668   echo $ac_n "(cached) $ac_c" 1>&6
4669 else
4670   if test -n "$CC_FOR_TARGET"; then
4671   ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4672 else
4673   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4674   ac_dummy="$PATH"
4675   for ac_dir in $ac_dummy; do
4676     test -z "$ac_dir" && ac_dir=.
4677     if test -f $ac_dir/$ac_word; then
4678       ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4679       break
4680     fi
4681   done
4682   IFS="$ac_save_ifs"
4683 fi
4684 fi
4685 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4686 if test -n "$CC_FOR_TARGET"; then
4687   echo "$ac_t""$CC_FOR_TARGET" 1>&6
4688 else
4689   echo "$ac_t""no" 1>&6
4690 fi
4691  
4692     fi
4693     test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4694   done
4695 fi
4696   
4697 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4698   set dummy cc gcc
4699   if test $build = $target ; then
4700     CC_FOR_TARGET="$2"
4701   else
4702     CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4703   fi
4704 fi
4705
4706  if test -n "$with_build_time_tools"; then
4707   for ncn_progname in c++ g++ cxx gxx; do
4708     echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4709 echo "configure:4710: checking for ${ncn_progname} in $with_build_time_tools" >&5
4710     if test -x $with_build_time_tools/${ncn_progname}; then
4711       ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4712       echo "$ac_t""yes" 1>&6
4713       break
4714     else
4715       echo "$ac_t""no" 1>&6
4716     fi
4717   done
4718 fi
4719
4720 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4721   for ncn_progname in c++ g++ cxx gxx; do
4722     if test -n "$ncn_target_tool_prefix"; then
4723       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4724 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4726 echo "configure:4727: checking for $ac_word" >&5
4727 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4728   echo $ac_n "(cached) $ac_c" 1>&6
4729 else
4730   if test -n "$CXX_FOR_TARGET"; then
4731   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4732 else
4733   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4734   ac_dummy="$PATH"
4735   for ac_dir in $ac_dummy; do
4736     test -z "$ac_dir" && ac_dir=.
4737     if test -f $ac_dir/$ac_word; then
4738       ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4739       break
4740     fi
4741   done
4742   IFS="$ac_save_ifs"
4743 fi
4744 fi
4745 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4746 if test -n "$CXX_FOR_TARGET"; then
4747   echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4748 else
4749   echo "$ac_t""no" 1>&6
4750 fi
4751
4752     fi
4753     if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4754       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4755 set dummy ${ncn_progname}; ac_word=$2
4756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4757 echo "configure:4758: checking for $ac_word" >&5
4758 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4759   echo $ac_n "(cached) $ac_c" 1>&6
4760 else
4761   if test -n "$CXX_FOR_TARGET"; then
4762   ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4763 else
4764   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4765   ac_dummy="$PATH"
4766   for ac_dir in $ac_dummy; do
4767     test -z "$ac_dir" && ac_dir=.
4768     if test -f $ac_dir/$ac_word; then
4769       ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4770       break
4771     fi
4772   done
4773   IFS="$ac_save_ifs"
4774 fi
4775 fi
4776 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4777 if test -n "$CXX_FOR_TARGET"; then
4778   echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4779 else
4780   echo "$ac_t""no" 1>&6
4781 fi
4782  
4783     fi
4784     test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4785   done
4786 fi
4787   
4788 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4789   set dummy c++ g++ cxx gxx
4790   if test $build = $target ; then
4791     CXX_FOR_TARGET="$2"
4792   else
4793     CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4794   fi
4795 fi
4796
4797  if test -n "$with_build_time_tools"; then
4798   for ncn_progname in gcc; do
4799     echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4800 echo "configure:4801: checking for ${ncn_progname} in $with_build_time_tools" >&5
4801     if test -x $with_build_time_tools/${ncn_progname}; then
4802       ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4803       echo "$ac_t""yes" 1>&6
4804       break
4805     else
4806       echo "$ac_t""no" 1>&6
4807     fi
4808   done
4809 fi
4810
4811 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4812   for ncn_progname in gcc; do
4813     if test -n "$ncn_target_tool_prefix"; then
4814       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4815 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4817 echo "configure:4818: checking for $ac_word" >&5
4818 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4819   echo $ac_n "(cached) $ac_c" 1>&6
4820 else
4821   if test -n "$GCC_FOR_TARGET"; then
4822   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4823 else
4824   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4825   ac_dummy="$PATH"
4826   for ac_dir in $ac_dummy; do
4827     test -z "$ac_dir" && ac_dir=.
4828     if test -f $ac_dir/$ac_word; then
4829       ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4830       break
4831     fi
4832   done
4833   IFS="$ac_save_ifs"
4834 fi
4835 fi
4836 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4837 if test -n "$GCC_FOR_TARGET"; then
4838   echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4839 else
4840   echo "$ac_t""no" 1>&6
4841 fi
4842
4843     fi
4844     if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4845       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4846 set dummy ${ncn_progname}; ac_word=$2
4847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4848 echo "configure:4849: checking for $ac_word" >&5
4849 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4850   echo $ac_n "(cached) $ac_c" 1>&6
4851 else
4852   if test -n "$GCC_FOR_TARGET"; then
4853   ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4854 else
4855   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4856   ac_dummy="$PATH"
4857   for ac_dir in $ac_dummy; do
4858     test -z "$ac_dir" && ac_dir=.
4859     if test -f $ac_dir/$ac_word; then
4860       ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4861       break
4862     fi
4863   done
4864   IFS="$ac_save_ifs"
4865 fi
4866 fi
4867 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4868 if test -n "$GCC_FOR_TARGET"; then
4869   echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4870 else
4871   echo "$ac_t""no" 1>&6
4872 fi
4873  
4874     fi
4875     test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4876   done
4877 fi
4878   
4879 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4880   GCC_FOR_TARGET="${CC_FOR_TARGET}"
4881 fi
4882
4883  if test -n "$with_build_time_tools"; then
4884   for ncn_progname in gcj; do
4885     echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4886 echo "configure:4887: checking for ${ncn_progname} in $with_build_time_tools" >&5
4887     if test -x $with_build_time_tools/${ncn_progname}; then
4888       ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4889       echo "$ac_t""yes" 1>&6
4890       break
4891     else
4892       echo "$ac_t""no" 1>&6
4893     fi
4894   done
4895 fi
4896
4897 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4898   for ncn_progname in gcj; do
4899     if test -n "$ncn_target_tool_prefix"; then
4900       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4901 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4903 echo "configure:4904: checking for $ac_word" >&5
4904 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4905   echo $ac_n "(cached) $ac_c" 1>&6
4906 else
4907   if test -n "$GCJ_FOR_TARGET"; then
4908   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4909 else
4910   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4911   ac_dummy="$PATH"
4912   for ac_dir in $ac_dummy; do
4913     test -z "$ac_dir" && ac_dir=.
4914     if test -f $ac_dir/$ac_word; then
4915       ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4916       break
4917     fi
4918   done
4919   IFS="$ac_save_ifs"
4920 fi
4921 fi
4922 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4923 if test -n "$GCJ_FOR_TARGET"; then
4924   echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4925 else
4926   echo "$ac_t""no" 1>&6
4927 fi
4928
4929     fi
4930     if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4931       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4932 set dummy ${ncn_progname}; ac_word=$2
4933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4934 echo "configure:4935: checking for $ac_word" >&5
4935 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4936   echo $ac_n "(cached) $ac_c" 1>&6
4937 else
4938   if test -n "$GCJ_FOR_TARGET"; then
4939   ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4940 else
4941   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4942   ac_dummy="$PATH"
4943   for ac_dir in $ac_dummy; do
4944     test -z "$ac_dir" && ac_dir=.
4945     if test -f $ac_dir/$ac_word; then
4946       ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4947       break
4948     fi
4949   done
4950   IFS="$ac_save_ifs"
4951 fi
4952 fi
4953 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4954 if test -n "$GCJ_FOR_TARGET"; then
4955   echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4956 else
4957   echo "$ac_t""no" 1>&6
4958 fi
4959  
4960     fi
4961     test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4962   done
4963 fi
4964   
4965 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4966   set dummy gcj
4967   if test $build = $target ; then
4968     GCJ_FOR_TARGET="$2"
4969   else
4970     GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4971   fi
4972 fi
4973
4974  if test -n "$with_build_time_tools"; then
4975   for ncn_progname in gfortran; do
4976     echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4977 echo "configure:4978: checking for ${ncn_progname} in $with_build_time_tools" >&5
4978     if test -x $with_build_time_tools/${ncn_progname}; then
4979       ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4980       echo "$ac_t""yes" 1>&6
4981       break
4982     else
4983       echo "$ac_t""no" 1>&6
4984     fi
4985   done
4986 fi
4987
4988 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
4989   for ncn_progname in gfortran; do
4990     if test -n "$ncn_target_tool_prefix"; then
4991       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4992 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4994 echo "configure:4995: checking for $ac_word" >&5
4995 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4996   echo $ac_n "(cached) $ac_c" 1>&6
4997 else
4998   if test -n "$GFORTRAN_FOR_TARGET"; then
4999   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5000 else
5001   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5002   ac_dummy="$PATH"
5003   for ac_dir in $ac_dummy; do
5004     test -z "$ac_dir" && ac_dir=.
5005     if test -f $ac_dir/$ac_word; then
5006       ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5007       break
5008     fi
5009   done
5010   IFS="$ac_save_ifs"
5011 fi
5012 fi
5013 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5014 if test -n "$GFORTRAN_FOR_TARGET"; then
5015   echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5016 else
5017   echo "$ac_t""no" 1>&6
5018 fi
5019
5020     fi
5021     if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5022       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5023 set dummy ${ncn_progname}; ac_word=$2
5024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5025 echo "configure:5026: checking for $ac_word" >&5
5026 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5027   echo $ac_n "(cached) $ac_c" 1>&6
5028 else
5029   if test -n "$GFORTRAN_FOR_TARGET"; then
5030   ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5031 else
5032   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5033   ac_dummy="$PATH"
5034   for ac_dir in $ac_dummy; do
5035     test -z "$ac_dir" && ac_dir=.
5036     if test -f $ac_dir/$ac_word; then
5037       ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5038       break
5039     fi
5040   done
5041   IFS="$ac_save_ifs"
5042 fi
5043 fi
5044 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5045 if test -n "$GFORTRAN_FOR_TARGET"; then
5046   echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5047 else
5048   echo "$ac_t""no" 1>&6
5049 fi
5050  
5051     fi
5052     test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5053   done
5054 fi
5055   
5056 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5057   set dummy gfortran
5058   if test $build = $target ; then
5059     GFORTRAN_FOR_TARGET="$2"
5060   else
5061     GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5062   fi
5063 fi
5064
5065
5066
5067 # The user is always right.
5068 if test "${PATH_SEPARATOR+set}" != set; then
5069   echo "#! /bin/sh" >conf$$.sh
5070   echo  "exit 0"   >>conf$$.sh
5071   chmod +x conf$$.sh
5072   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5073     PATH_SEPARATOR=';'
5074   else
5075     PATH_SEPARATOR=: 
5076   fi
5077   rm -f conf$$.sh
5078 fi
5079
5080
5081
5082 if test "x$exec_prefix" = xNONE; then
5083         if test "x$prefix" = xNONE; then
5084                 gcc_cv_tool_prefix=$ac_default_prefix
5085         else
5086                 gcc_cv_tool_prefix=$prefix
5087         fi
5088 else
5089         gcc_cv_tool_prefix=$exec_prefix
5090 fi
5091
5092 # If there is no compiler in the tree, use the PATH only.  In any
5093 # case, if there is no compiler in the tree nobody should use
5094 # AS_FOR_TARGET and LD_FOR_TARGET.
5095 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5096     gcc_version=`cat $srcdir/gcc/BASE-VER`
5097     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5098     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5099     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5100     gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5101     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5102     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5103 else
5104     gcc_cv_tool_dirs=
5105 fi
5106
5107 if test x$build = x$target && test -n "$md_exec_prefix"; then
5108         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5109 fi
5110
5111
5112
5113 cat > conftest.c << \EOF
5114 #ifdef __GNUC__
5115   gcc_yay;
5116 #endif
5117 EOF
5118 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5119   have_gcc_for_target=yes
5120 else
5121   GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5122   have_gcc_for_target=no
5123 fi
5124 rm conftest.c
5125
5126
5127
5128
5129 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5130   if test -n "$with_build_time_tools"; then
5131     echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5132 echo "configure:5133: checking for ar in $with_build_time_tools" >&5
5133     if test -x $with_build_time_tools/ar; then
5134       AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
5135       ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5136       echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5137     else
5138       echo "$ac_t""no" 1>&6
5139     fi
5140   elif test $build != $host && test $have_gcc_for_target = yes; then
5141     AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5142     test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5143     ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5144   fi
5145 fi
5146 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5147   # Extract the first word of "ar", so it can be a program name with args.
5148 set dummy ar; ac_word=$2
5149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5150 echo "configure:5151: checking for $ac_word" >&5
5151 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5152   echo $ac_n "(cached) $ac_c" 1>&6
5153 else
5154   case "$AR_FOR_TARGET" in
5155   /*)
5156   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5157   ;;
5158   ?:/*)                  
5159   ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5160   ;;
5161   *)
5162   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5163   ac_dummy="$gcc_cv_tool_dirs"
5164   for ac_dir in $ac_dummy; do 
5165     test -z "$ac_dir" && ac_dir=.
5166     if test -f $ac_dir/$ac_word; then
5167       ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
5168       break
5169     fi
5170   done
5171   IFS="$ac_save_ifs"
5172   ;;
5173 esac
5174 fi
5175 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5176 if test -n "$AR_FOR_TARGET"; then
5177   echo "$ac_t""$AR_FOR_TARGET" 1>&6
5178 else
5179   echo "$ac_t""no" 1>&6
5180 fi
5181
5182 fi
5183 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5184    if test -n "$with_build_time_tools"; then
5185   for ncn_progname in ar; do
5186     echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5187 echo "configure:5188: checking for ${ncn_progname} in $with_build_time_tools" >&5
5188     if test -x $with_build_time_tools/${ncn_progname}; then
5189       ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5190       echo "$ac_t""yes" 1>&6
5191       break
5192     else
5193       echo "$ac_t""no" 1>&6
5194     fi
5195   done
5196 fi
5197
5198 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5199   for ncn_progname in ar; do
5200     if test -n "$ncn_target_tool_prefix"; then
5201       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5202 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5204 echo "configure:5205: checking for $ac_word" >&5
5205 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5206   echo $ac_n "(cached) $ac_c" 1>&6
5207 else
5208   if test -n "$AR_FOR_TARGET"; then
5209   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5210 else
5211   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5212   ac_dummy="$PATH"
5213   for ac_dir in $ac_dummy; do
5214     test -z "$ac_dir" && ac_dir=.
5215     if test -f $ac_dir/$ac_word; then
5216       ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5217       break
5218     fi
5219   done
5220   IFS="$ac_save_ifs"
5221 fi
5222 fi
5223 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5224 if test -n "$AR_FOR_TARGET"; then
5225   echo "$ac_t""$AR_FOR_TARGET" 1>&6
5226 else
5227   echo "$ac_t""no" 1>&6
5228 fi
5229
5230     fi
5231     if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5232       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5233 set dummy ${ncn_progname}; ac_word=$2
5234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5235 echo "configure:5236: checking for $ac_word" >&5
5236 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5237   echo $ac_n "(cached) $ac_c" 1>&6
5238 else
5239   if test -n "$AR_FOR_TARGET"; then
5240   ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5241 else
5242   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5243   ac_dummy="$PATH"
5244   for ac_dir in $ac_dummy; do
5245     test -z "$ac_dir" && ac_dir=.
5246     if test -f $ac_dir/$ac_word; then
5247       ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5248       break
5249     fi
5250   done
5251   IFS="$ac_save_ifs"
5252 fi
5253 fi
5254 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5255 if test -n "$AR_FOR_TARGET"; then
5256   echo "$ac_t""$AR_FOR_TARGET" 1>&6
5257 else
5258   echo "$ac_t""no" 1>&6
5259 fi
5260  
5261     fi
5262     test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5263   done
5264 fi
5265   
5266 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5267   set dummy ar
5268   if test $build = $target ; then
5269     AR_FOR_TARGET="$2"
5270   else
5271     AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
5272   fi
5273 fi
5274
5275 else
5276   AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5277 fi
5278
5279
5280
5281
5282 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5283   if test -n "$with_build_time_tools"; then
5284     echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5285 echo "configure:5286: checking for as in $with_build_time_tools" >&5
5286     if test -x $with_build_time_tools/as; then
5287       AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
5288       ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5289       echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5290     else
5291       echo "$ac_t""no" 1>&6
5292     fi
5293   elif test $build != $host && test $have_gcc_for_target = yes; then
5294     AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5295     test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5296     ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5297   fi
5298 fi
5299 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5300   # Extract the first word of "as", so it can be a program name with args.
5301 set dummy as; ac_word=$2
5302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5303 echo "configure:5304: checking for $ac_word" >&5
5304 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5305   echo $ac_n "(cached) $ac_c" 1>&6
5306 else
5307   case "$AS_FOR_TARGET" in
5308   /*)
5309   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5310   ;;
5311   ?:/*)                  
5312   ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5313   ;;
5314   *)
5315   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5316   ac_dummy="$gcc_cv_tool_dirs"
5317   for ac_dir in $ac_dummy; do 
5318     test -z "$ac_dir" && ac_dir=.
5319     if test -f $ac_dir/$ac_word; then
5320       ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5321       break
5322     fi
5323   done
5324   IFS="$ac_save_ifs"
5325   ;;
5326 esac
5327 fi
5328 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5329 if test -n "$AS_FOR_TARGET"; then
5330   echo "$ac_t""$AS_FOR_TARGET" 1>&6
5331 else
5332   echo "$ac_t""no" 1>&6
5333 fi
5334
5335 fi
5336 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5337    if test -n "$with_build_time_tools"; then
5338   for ncn_progname in as; do
5339     echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5340 echo "configure:5341: checking for ${ncn_progname} in $with_build_time_tools" >&5
5341     if test -x $with_build_time_tools/${ncn_progname}; then
5342       ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5343       echo "$ac_t""yes" 1>&6
5344       break
5345     else
5346       echo "$ac_t""no" 1>&6
5347     fi
5348   done
5349 fi
5350
5351 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5352   for ncn_progname in as; do
5353     if test -n "$ncn_target_tool_prefix"; then
5354       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5355 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5357 echo "configure:5358: checking for $ac_word" >&5
5358 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5359   echo $ac_n "(cached) $ac_c" 1>&6
5360 else
5361   if test -n "$AS_FOR_TARGET"; then
5362   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5363 else
5364   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5365   ac_dummy="$PATH"
5366   for ac_dir in $ac_dummy; do
5367     test -z "$ac_dir" && ac_dir=.
5368     if test -f $ac_dir/$ac_word; then
5369       ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5370       break
5371     fi
5372   done
5373   IFS="$ac_save_ifs"
5374 fi
5375 fi
5376 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5377 if test -n "$AS_FOR_TARGET"; then
5378   echo "$ac_t""$AS_FOR_TARGET" 1>&6
5379 else
5380   echo "$ac_t""no" 1>&6
5381 fi
5382
5383     fi
5384     if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5385       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5386 set dummy ${ncn_progname}; ac_word=$2
5387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5388 echo "configure:5389: checking for $ac_word" >&5
5389 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5390   echo $ac_n "(cached) $ac_c" 1>&6
5391 else
5392   if test -n "$AS_FOR_TARGET"; then
5393   ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5394 else
5395   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5396   ac_dummy="$PATH"
5397   for ac_dir in $ac_dummy; do
5398     test -z "$ac_dir" && ac_dir=.
5399     if test -f $ac_dir/$ac_word; then
5400       ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5401       break
5402     fi
5403   done
5404   IFS="$ac_save_ifs"
5405 fi
5406 fi
5407 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5408 if test -n "$AS_FOR_TARGET"; then
5409   echo "$ac_t""$AS_FOR_TARGET" 1>&6
5410 else
5411   echo "$ac_t""no" 1>&6
5412 fi
5413  
5414     fi
5415     test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5416   done
5417 fi
5418   
5419 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5420   set dummy as
5421   if test $build = $target ; then
5422     AS_FOR_TARGET="$2"
5423   else
5424     AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5425   fi
5426 fi
5427
5428 else
5429   AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5430 fi
5431
5432
5433
5434
5435 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5436   if test -n "$with_build_time_tools"; then
5437     echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5438 echo "configure:5439: checking for dlltool in $with_build_time_tools" >&5
5439     if test -x $with_build_time_tools/dlltool; then
5440       DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
5441       ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5442       echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5443     else
5444       echo "$ac_t""no" 1>&6
5445     fi
5446   elif test $build != $host && test $have_gcc_for_target = yes; then
5447     DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5448     test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5449     ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5450   fi
5451 fi
5452 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5453   # Extract the first word of "dlltool", so it can be a program name with args.
5454 set dummy dlltool; ac_word=$2
5455 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5456 echo "configure:5457: checking for $ac_word" >&5
5457 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5458   echo $ac_n "(cached) $ac_c" 1>&6
5459 else
5460   case "$DLLTOOL_FOR_TARGET" in
5461   /*)
5462   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5463   ;;
5464   ?:/*)                  
5465   ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5466   ;;
5467   *)
5468   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5469   ac_dummy="$gcc_cv_tool_dirs"
5470   for ac_dir in $ac_dummy; do 
5471     test -z "$ac_dir" && ac_dir=.
5472     if test -f $ac_dir/$ac_word; then
5473       ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5474       break
5475     fi
5476   done
5477   IFS="$ac_save_ifs"
5478   ;;
5479 esac
5480 fi
5481 DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5482 if test -n "$DLLTOOL_FOR_TARGET"; then
5483   echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5484 else
5485   echo "$ac_t""no" 1>&6
5486 fi
5487
5488 fi
5489 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5490    if test -n "$with_build_time_tools"; then
5491   for ncn_progname in dlltool; do
5492     echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5493 echo "configure:5494: checking for ${ncn_progname} in $with_build_time_tools" >&5
5494     if test -x $with_build_time_tools/${ncn_progname}; then
5495       ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5496       echo "$ac_t""yes" 1>&6
5497       break
5498     else
5499       echo "$ac_t""no" 1>&6
5500     fi
5501   done
5502 fi
5503
5504 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5505   for ncn_progname in dlltool; do
5506     if test -n "$ncn_target_tool_prefix"; then
5507       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5508 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5510 echo "configure:5511: checking for $ac_word" >&5
5511 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5512   echo $ac_n "(cached) $ac_c" 1>&6
5513 else
5514   if test -n "$DLLTOOL_FOR_TARGET"; then
5515   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5516 else
5517   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5518   ac_dummy="$PATH"
5519   for ac_dir in $ac_dummy; do
5520     test -z "$ac_dir" && ac_dir=.
5521     if test -f $ac_dir/$ac_word; then
5522       ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5523       break
5524     fi
5525   done
5526   IFS="$ac_save_ifs"
5527 fi
5528 fi
5529 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5530 if test -n "$DLLTOOL_FOR_TARGET"; then
5531   echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5532 else
5533   echo "$ac_t""no" 1>&6
5534 fi
5535
5536     fi
5537     if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5538       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5539 set dummy ${ncn_progname}; ac_word=$2
5540 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5541 echo "configure:5542: checking for $ac_word" >&5
5542 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5543   echo $ac_n "(cached) $ac_c" 1>&6
5544 else
5545   if test -n "$DLLTOOL_FOR_TARGET"; then
5546   ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5547 else
5548   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5549   ac_dummy="$PATH"
5550   for ac_dir in $ac_dummy; do
5551     test -z "$ac_dir" && ac_dir=.
5552     if test -f $ac_dir/$ac_word; then
5553       ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5554       break
5555     fi
5556   done
5557   IFS="$ac_save_ifs"
5558 fi
5559 fi
5560 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5561 if test -n "$DLLTOOL_FOR_TARGET"; then
5562   echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5563 else
5564   echo "$ac_t""no" 1>&6
5565 fi
5566  
5567     fi
5568     test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5569   done
5570 fi
5571   
5572 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5573   set dummy dlltool
5574   if test $build = $target ; then
5575     DLLTOOL_FOR_TARGET="$2"
5576   else
5577     DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5578   fi
5579 fi
5580
5581 else
5582   DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5583 fi
5584
5585
5586
5587
5588 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5589   if test -n "$with_build_time_tools"; then
5590     echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5591 echo "configure:5592: checking for ld in $with_build_time_tools" >&5
5592     if test -x $with_build_time_tools/ld; then
5593       LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
5594       ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5595       echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5596     else
5597       echo "$ac_t""no" 1>&6
5598     fi
5599   elif test $build != $host && test $have_gcc_for_target = yes; then
5600     LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5601     test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5602     ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5603   fi
5604 fi
5605 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5606   # Extract the first word of "ld", so it can be a program name with args.
5607 set dummy ld; ac_word=$2
5608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5609 echo "configure:5610: checking for $ac_word" >&5
5610 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5611   echo $ac_n "(cached) $ac_c" 1>&6
5612 else
5613   case "$LD_FOR_TARGET" in
5614   /*)
5615   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5616   ;;
5617   ?:/*)                  
5618   ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5619   ;;
5620   *)
5621   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5622   ac_dummy="$gcc_cv_tool_dirs"
5623   for ac_dir in $ac_dummy; do 
5624     test -z "$ac_dir" && ac_dir=.
5625     if test -f $ac_dir/$ac_word; then
5626       ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5627       break
5628     fi
5629   done
5630   IFS="$ac_save_ifs"
5631   ;;
5632 esac
5633 fi
5634 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5635 if test -n "$LD_FOR_TARGET"; then
5636   echo "$ac_t""$LD_FOR_TARGET" 1>&6
5637 else
5638   echo "$ac_t""no" 1>&6
5639 fi
5640
5641 fi
5642 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5643    if test -n "$with_build_time_tools"; then
5644   for ncn_progname in ld; do
5645     echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5646 echo "configure:5647: checking for ${ncn_progname} in $with_build_time_tools" >&5
5647     if test -x $with_build_time_tools/${ncn_progname}; then
5648       ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5649       echo "$ac_t""yes" 1>&6
5650       break
5651     else
5652       echo "$ac_t""no" 1>&6
5653     fi
5654   done
5655 fi
5656
5657 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5658   for ncn_progname in ld; do
5659     if test -n "$ncn_target_tool_prefix"; then
5660       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5661 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5663 echo "configure:5664: checking for $ac_word" >&5
5664 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5665   echo $ac_n "(cached) $ac_c" 1>&6
5666 else
5667   if test -n "$LD_FOR_TARGET"; then
5668   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5669 else
5670   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5671   ac_dummy="$PATH"
5672   for ac_dir in $ac_dummy; do
5673     test -z "$ac_dir" && ac_dir=.
5674     if test -f $ac_dir/$ac_word; then
5675       ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5676       break
5677     fi
5678   done
5679   IFS="$ac_save_ifs"
5680 fi
5681 fi
5682 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5683 if test -n "$LD_FOR_TARGET"; then
5684   echo "$ac_t""$LD_FOR_TARGET" 1>&6
5685 else
5686   echo "$ac_t""no" 1>&6
5687 fi
5688
5689     fi
5690     if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5691       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5692 set dummy ${ncn_progname}; ac_word=$2
5693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5694 echo "configure:5695: checking for $ac_word" >&5
5695 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5696   echo $ac_n "(cached) $ac_c" 1>&6
5697 else
5698   if test -n "$LD_FOR_TARGET"; then
5699   ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5700 else
5701   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5702   ac_dummy="$PATH"
5703   for ac_dir in $ac_dummy; do
5704     test -z "$ac_dir" && ac_dir=.
5705     if test -f $ac_dir/$ac_word; then
5706       ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5707       break
5708     fi
5709   done
5710   IFS="$ac_save_ifs"
5711 fi
5712 fi
5713 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5714 if test -n "$LD_FOR_TARGET"; then
5715   echo "$ac_t""$LD_FOR_TARGET" 1>&6
5716 else
5717   echo "$ac_t""no" 1>&6
5718 fi
5719  
5720     fi
5721     test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5722   done
5723 fi
5724   
5725 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5726   set dummy ld
5727   if test $build = $target ; then
5728     LD_FOR_TARGET="$2"
5729   else
5730     LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5731   fi
5732 fi
5733
5734 else
5735   LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5736 fi
5737
5738
5739
5740
5741 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5742   if test -n "$with_build_time_tools"; then
5743     echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5744 echo "configure:5745: checking for lipo in $with_build_time_tools" >&5
5745     if test -x $with_build_time_tools/lipo; then
5746       LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
5747       ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5748       echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5749     else
5750       echo "$ac_t""no" 1>&6
5751     fi
5752   elif test $build != $host && test $have_gcc_for_target = yes; then
5753     LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5754     test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5755     ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5756   fi
5757 fi
5758 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5759   # Extract the first word of "lipo", so it can be a program name with args.
5760 set dummy lipo; ac_word=$2
5761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5762 echo "configure:5763: checking for $ac_word" >&5
5763 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5764   echo $ac_n "(cached) $ac_c" 1>&6
5765 else
5766   case "$LIPO_FOR_TARGET" in
5767   /*)
5768   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5769   ;;
5770   ?:/*)                  
5771   ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5772   ;;
5773   *)
5774   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5775   ac_dummy="$gcc_cv_tool_dirs"
5776   for ac_dir in $ac_dummy; do 
5777     test -z "$ac_dir" && ac_dir=.
5778     if test -f $ac_dir/$ac_word; then
5779       ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5780       break
5781     fi
5782   done
5783   IFS="$ac_save_ifs"
5784   ;;
5785 esac
5786 fi
5787 LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5788 if test -n "$LIPO_FOR_TARGET"; then
5789   echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5790 else
5791   echo "$ac_t""no" 1>&6
5792 fi
5793
5794 fi
5795 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5796    if test -n "$with_build_time_tools"; then
5797   for ncn_progname in lipo; do
5798     echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5799 echo "configure:5800: checking for ${ncn_progname} in $with_build_time_tools" >&5
5800     if test -x $with_build_time_tools/${ncn_progname}; then
5801       ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5802       echo "$ac_t""yes" 1>&6
5803       break
5804     else
5805       echo "$ac_t""no" 1>&6
5806     fi
5807   done
5808 fi
5809
5810 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5811   for ncn_progname in lipo; do
5812     if test -n "$ncn_target_tool_prefix"; then
5813       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5814 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5816 echo "configure:5817: checking for $ac_word" >&5
5817 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5818   echo $ac_n "(cached) $ac_c" 1>&6
5819 else
5820   if test -n "$LIPO_FOR_TARGET"; then
5821   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5822 else
5823   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5824   ac_dummy="$PATH"
5825   for ac_dir in $ac_dummy; do
5826     test -z "$ac_dir" && ac_dir=.
5827     if test -f $ac_dir/$ac_word; then
5828       ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5829       break
5830     fi
5831   done
5832   IFS="$ac_save_ifs"
5833 fi
5834 fi
5835 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5836 if test -n "$LIPO_FOR_TARGET"; then
5837   echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5838 else
5839   echo "$ac_t""no" 1>&6
5840 fi
5841
5842     fi
5843     if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5844       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5845 set dummy ${ncn_progname}; ac_word=$2
5846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5847 echo "configure:5848: checking for $ac_word" >&5
5848 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5849   echo $ac_n "(cached) $ac_c" 1>&6
5850 else
5851   if test -n "$LIPO_FOR_TARGET"; then
5852   ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5853 else
5854   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5855   ac_dummy="$PATH"
5856   for ac_dir in $ac_dummy; do
5857     test -z "$ac_dir" && ac_dir=.
5858     if test -f $ac_dir/$ac_word; then
5859       ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5860       break
5861     fi
5862   done
5863   IFS="$ac_save_ifs"
5864 fi
5865 fi
5866 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5867 if test -n "$LIPO_FOR_TARGET"; then
5868   echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5869 else
5870   echo "$ac_t""no" 1>&6
5871 fi
5872  
5873     fi
5874     test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5875   done
5876 fi
5877   
5878 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5879   set dummy lipo
5880   if test $build = $target ; then
5881     LIPO_FOR_TARGET="$2"
5882   else
5883     LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5884   fi
5885 fi
5886
5887 else
5888   LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
5889 fi
5890
5891
5892
5893
5894 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5895   if test -n "$with_build_time_tools"; then
5896     echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5897 echo "configure:5898: checking for nm in $with_build_time_tools" >&5
5898     if test -x $with_build_time_tools/nm; then
5899       NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
5900       ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5901       echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5902     else
5903       echo "$ac_t""no" 1>&6
5904     fi
5905   elif test $build != $host && test $have_gcc_for_target = yes; then
5906     NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
5907     test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
5908     ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5909   fi
5910 fi
5911 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5912   # Extract the first word of "nm", so it can be a program name with args.
5913 set dummy nm; ac_word=$2
5914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5915 echo "configure:5916: checking for $ac_word" >&5
5916 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5917   echo $ac_n "(cached) $ac_c" 1>&6
5918 else
5919   case "$NM_FOR_TARGET" in
5920   /*)
5921   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
5922   ;;
5923   ?:/*)                  
5924   ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5925   ;;
5926   *)
5927   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5928   ac_dummy="$gcc_cv_tool_dirs"
5929   for ac_dir in $ac_dummy; do 
5930     test -z "$ac_dir" && ac_dir=.
5931     if test -f $ac_dir/$ac_word; then
5932       ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
5933       break
5934     fi
5935   done
5936   IFS="$ac_save_ifs"
5937   ;;
5938 esac
5939 fi
5940 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
5941 if test -n "$NM_FOR_TARGET"; then
5942   echo "$ac_t""$NM_FOR_TARGET" 1>&6
5943 else
5944   echo "$ac_t""no" 1>&6
5945 fi
5946
5947 fi
5948 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5949    if test -n "$with_build_time_tools"; then
5950   for ncn_progname in nm; do
5951     echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5952 echo "configure:5953: checking for ${ncn_progname} in $with_build_time_tools" >&5
5953     if test -x $with_build_time_tools/${ncn_progname}; then
5954       ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5955       echo "$ac_t""yes" 1>&6
5956       break
5957     else
5958       echo "$ac_t""no" 1>&6
5959     fi
5960   done
5961 fi
5962
5963 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5964   for ncn_progname in nm; do
5965     if test -n "$ncn_target_tool_prefix"; then
5966       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5967 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5969 echo "configure:5970: checking for $ac_word" >&5
5970 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5971   echo $ac_n "(cached) $ac_c" 1>&6
5972 else
5973   if test -n "$NM_FOR_TARGET"; then
5974   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5975 else
5976   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5977   ac_dummy="$PATH"
5978   for ac_dir in $ac_dummy; do
5979     test -z "$ac_dir" && ac_dir=.
5980     if test -f $ac_dir/$ac_word; then
5981       ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5982       break
5983     fi
5984   done
5985   IFS="$ac_save_ifs"
5986 fi
5987 fi
5988 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5989 if test -n "$NM_FOR_TARGET"; then
5990   echo "$ac_t""$NM_FOR_TARGET" 1>&6
5991 else
5992   echo "$ac_t""no" 1>&6
5993 fi
5994
5995     fi
5996     if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5997       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5998 set dummy ${ncn_progname}; ac_word=$2
5999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6000 echo "configure:6001: checking for $ac_word" >&5
6001 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6002   echo $ac_n "(cached) $ac_c" 1>&6
6003 else
6004   if test -n "$NM_FOR_TARGET"; then
6005   ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6006 else
6007   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6008   ac_dummy="$PATH"
6009   for ac_dir in $ac_dummy; do
6010     test -z "$ac_dir" && ac_dir=.
6011     if test -f $ac_dir/$ac_word; then
6012       ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
6013       break
6014     fi
6015   done
6016   IFS="$ac_save_ifs"
6017 fi
6018 fi
6019 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6020 if test -n "$NM_FOR_TARGET"; then
6021   echo "$ac_t""$NM_FOR_TARGET" 1>&6
6022 else
6023   echo "$ac_t""no" 1>&6
6024 fi
6025  
6026     fi
6027     test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6028   done
6029 fi
6030   
6031 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6032   set dummy nm
6033   if test $build = $target ; then
6034     NM_FOR_TARGET="$2"
6035   else
6036     NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
6037   fi
6038 fi
6039
6040 else
6041   NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
6042 fi
6043
6044
6045
6046
6047 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6048   if test -n "$with_build_time_tools"; then
6049     echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6050 echo "configure:6051: checking for objdump in $with_build_time_tools" >&5
6051     if test -x $with_build_time_tools/objdump; then
6052       OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
6053       ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6054       echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6055     else
6056       echo "$ac_t""no" 1>&6
6057     fi
6058   elif test $build != $host && test $have_gcc_for_target = yes; then
6059     OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
6060     test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
6061     ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6062   fi
6063 fi
6064 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6065   # Extract the first word of "objdump", so it can be a program name with args.
6066 set dummy objdump; ac_word=$2
6067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6068 echo "configure:6069: checking for $ac_word" >&5
6069 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6070   echo $ac_n "(cached) $ac_c" 1>&6
6071 else
6072   case "$OBJDUMP_FOR_TARGET" in
6073   /*)
6074   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6075   ;;
6076   ?:/*)                  
6077   ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6078   ;;
6079   *)
6080   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6081   ac_dummy="$gcc_cv_tool_dirs"
6082   for ac_dir in $ac_dummy; do 
6083     test -z "$ac_dir" && ac_dir=.
6084     if test -f $ac_dir/$ac_word; then
6085       ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6086       break
6087     fi
6088   done
6089   IFS="$ac_save_ifs"
6090   ;;
6091 esac
6092 fi
6093 OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6094 if test -n "$OBJDUMP_FOR_TARGET"; then
6095   echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6096 else
6097   echo "$ac_t""no" 1>&6
6098 fi
6099
6100 fi
6101 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6102    if test -n "$with_build_time_tools"; then
6103   for ncn_progname in objdump; do
6104     echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6105 echo "configure:6106: checking for ${ncn_progname} in $with_build_time_tools" >&5
6106     if test -x $with_build_time_tools/${ncn_progname}; then
6107       ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6108       echo "$ac_t""yes" 1>&6
6109       break
6110     else
6111       echo "$ac_t""no" 1>&6
6112     fi
6113   done
6114 fi
6115
6116 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6117   for ncn_progname in objdump; do
6118     if test -n "$ncn_target_tool_prefix"; then
6119       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6120 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6122 echo "configure:6123: checking for $ac_word" >&5
6123 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6124   echo $ac_n "(cached) $ac_c" 1>&6
6125 else
6126   if test -n "$OBJDUMP_FOR_TARGET"; then
6127   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6128 else
6129   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6130   ac_dummy="$PATH"
6131   for ac_dir in $ac_dummy; do
6132     test -z "$ac_dir" && ac_dir=.
6133     if test -f $ac_dir/$ac_word; then
6134       ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6135       break
6136     fi
6137   done
6138   IFS="$ac_save_ifs"
6139 fi
6140 fi
6141 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6142 if test -n "$OBJDUMP_FOR_TARGET"; then
6143   echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6144 else
6145   echo "$ac_t""no" 1>&6
6146 fi
6147
6148     fi
6149     if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6150       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6151 set dummy ${ncn_progname}; ac_word=$2
6152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6153 echo "configure:6154: checking for $ac_word" >&5
6154 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6155   echo $ac_n "(cached) $ac_c" 1>&6
6156 else
6157   if test -n "$OBJDUMP_FOR_TARGET"; then
6158   ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6159 else
6160   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6161   ac_dummy="$PATH"
6162   for ac_dir in $ac_dummy; do
6163     test -z "$ac_dir" && ac_dir=.
6164     if test -f $ac_dir/$ac_word; then
6165       ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6166       break
6167     fi
6168   done
6169   IFS="$ac_save_ifs"
6170 fi
6171 fi
6172 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6173 if test -n "$OBJDUMP_FOR_TARGET"; then
6174   echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6175 else
6176   echo "$ac_t""no" 1>&6
6177 fi
6178  
6179     fi
6180     test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6181   done
6182 fi
6183   
6184 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6185   set dummy objdump
6186   if test $build = $target ; then
6187     OBJDUMP_FOR_TARGET="$2"
6188   else
6189     OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6190   fi
6191 fi
6192
6193 else
6194   OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
6195 fi
6196
6197
6198
6199
6200 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6201   if test -n "$with_build_time_tools"; then
6202     echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6203 echo "configure:6204: checking for ranlib in $with_build_time_tools" >&5
6204     if test -x $with_build_time_tools/ranlib; then
6205       RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
6206       ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6207       echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6208     else
6209       echo "$ac_t""no" 1>&6
6210     fi
6211   elif test $build != $host && test $have_gcc_for_target = yes; then
6212     RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6213     test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6214     ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6215   fi
6216 fi
6217 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6218   # Extract the first word of "ranlib", so it can be a program name with args.
6219 set dummy ranlib; ac_word=$2
6220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6221 echo "configure:6222: checking for $ac_word" >&5
6222 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6223   echo $ac_n "(cached) $ac_c" 1>&6
6224 else
6225   case "$RANLIB_FOR_TARGET" in
6226   /*)
6227   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6228   ;;
6229   ?:/*)                  
6230   ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6231   ;;
6232   *)
6233   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6234   ac_dummy="$gcc_cv_tool_dirs"
6235   for ac_dir in $ac_dummy; do 
6236     test -z "$ac_dir" && ac_dir=.
6237     if test -f $ac_dir/$ac_word; then
6238       ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6239       break
6240     fi
6241   done
6242   IFS="$ac_save_ifs"
6243   ;;
6244 esac
6245 fi
6246 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6247 if test -n "$RANLIB_FOR_TARGET"; then
6248   echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6249 else
6250   echo "$ac_t""no" 1>&6
6251 fi
6252
6253 fi
6254 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6255    if test -n "$with_build_time_tools"; then
6256   for ncn_progname in ranlib; do
6257     echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6258 echo "configure:6259: checking for ${ncn_progname} in $with_build_time_tools" >&5
6259     if test -x $with_build_time_tools/${ncn_progname}; then
6260       ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6261       echo "$ac_t""yes" 1>&6
6262       break
6263     else
6264       echo "$ac_t""no" 1>&6
6265     fi
6266   done
6267 fi
6268
6269 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6270   for ncn_progname in ranlib; do
6271     if test -n "$ncn_target_tool_prefix"; then
6272       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6273 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6275 echo "configure:6276: checking for $ac_word" >&5
6276 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6277   echo $ac_n "(cached) $ac_c" 1>&6
6278 else
6279   if test -n "$RANLIB_FOR_TARGET"; then
6280   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6281 else
6282   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6283   ac_dummy="$PATH"
6284   for ac_dir in $ac_dummy; do
6285     test -z "$ac_dir" && ac_dir=.
6286     if test -f $ac_dir/$ac_word; then
6287       ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6288       break
6289     fi
6290   done
6291   IFS="$ac_save_ifs"
6292 fi
6293 fi
6294 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6295 if test -n "$RANLIB_FOR_TARGET"; then
6296   echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6297 else
6298   echo "$ac_t""no" 1>&6
6299 fi
6300
6301     fi
6302     if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6303       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6304 set dummy ${ncn_progname}; ac_word=$2
6305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6306 echo "configure:6307: checking for $ac_word" >&5
6307 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6308   echo $ac_n "(cached) $ac_c" 1>&6
6309 else
6310   if test -n "$RANLIB_FOR_TARGET"; then
6311   ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6312 else
6313   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6314   ac_dummy="$PATH"
6315   for ac_dir in $ac_dummy; do
6316     test -z "$ac_dir" && ac_dir=.
6317     if test -f $ac_dir/$ac_word; then
6318       ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6319       break
6320     fi
6321   done
6322   IFS="$ac_save_ifs"
6323 fi
6324 fi
6325 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6326 if test -n "$RANLIB_FOR_TARGET"; then
6327   echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6328 else
6329   echo "$ac_t""no" 1>&6
6330 fi
6331  
6332     fi
6333     test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6334   done
6335 fi
6336   
6337 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6338   set dummy ranlib
6339   if test $build = $target ; then
6340     RANLIB_FOR_TARGET="$2"
6341   else
6342     RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
6343   fi
6344 fi
6345
6346 else
6347   RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
6348 fi
6349
6350
6351
6352
6353 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6354   if test -n "$with_build_time_tools"; then
6355     echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6356 echo "configure:6357: checking for strip in $with_build_time_tools" >&5
6357     if test -x $with_build_time_tools/strip; then
6358       STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
6359       ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6360       echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6361     else
6362       echo "$ac_t""no" 1>&6
6363     fi
6364   elif test $build != $host && test $have_gcc_for_target = yes; then
6365     STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6366     test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6367     ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6368   fi
6369 fi
6370 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6371   # Extract the first word of "strip", so it can be a program name with args.
6372 set dummy strip; ac_word=$2
6373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6374 echo "configure:6375: checking for $ac_word" >&5
6375 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6376   echo $ac_n "(cached) $ac_c" 1>&6
6377 else
6378   case "$STRIP_FOR_TARGET" in
6379   /*)
6380   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6381   ;;
6382   ?:/*)                  
6383   ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6384   ;;
6385   *)
6386   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6387   ac_dummy="$gcc_cv_tool_dirs"
6388   for ac_dir in $ac_dummy; do 
6389     test -z "$ac_dir" && ac_dir=.
6390     if test -f $ac_dir/$ac_word; then
6391       ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6392       break
6393     fi
6394   done
6395   IFS="$ac_save_ifs"
6396   ;;
6397 esac
6398 fi
6399 STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6400 if test -n "$STRIP_FOR_TARGET"; then
6401   echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6402 else
6403   echo "$ac_t""no" 1>&6
6404 fi
6405
6406 fi
6407 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6408    if test -n "$with_build_time_tools"; then
6409   for ncn_progname in strip; do
6410     echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6411 echo "configure:6412: checking for ${ncn_progname} in $with_build_time_tools" >&5
6412     if test -x $with_build_time_tools/${ncn_progname}; then
6413       ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6414       echo "$ac_t""yes" 1>&6
6415       break
6416     else
6417       echo "$ac_t""no" 1>&6
6418     fi
6419   done
6420 fi
6421
6422 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6423   for ncn_progname in strip; do
6424     if test -n "$ncn_target_tool_prefix"; then
6425       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6426 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6428 echo "configure:6429: checking for $ac_word" >&5
6429 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6430   echo $ac_n "(cached) $ac_c" 1>&6
6431 else
6432   if test -n "$STRIP_FOR_TARGET"; then
6433   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6434 else
6435   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6436   ac_dummy="$PATH"
6437   for ac_dir in $ac_dummy; do
6438     test -z "$ac_dir" && ac_dir=.
6439     if test -f $ac_dir/$ac_word; then
6440       ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6441       break
6442     fi
6443   done
6444   IFS="$ac_save_ifs"
6445 fi
6446 fi
6447 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6448 if test -n "$STRIP_FOR_TARGET"; then
6449   echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6450 else
6451   echo "$ac_t""no" 1>&6
6452 fi
6453
6454     fi
6455     if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6456       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6457 set dummy ${ncn_progname}; ac_word=$2
6458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6459 echo "configure:6460: checking for $ac_word" >&5
6460 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6461   echo $ac_n "(cached) $ac_c" 1>&6
6462 else
6463   if test -n "$STRIP_FOR_TARGET"; then
6464   ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6465 else
6466   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6467   ac_dummy="$PATH"
6468   for ac_dir in $ac_dummy; do
6469     test -z "$ac_dir" && ac_dir=.
6470     if test -f $ac_dir/$ac_word; then
6471       ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6472       break
6473     fi
6474   done
6475   IFS="$ac_save_ifs"
6476 fi
6477 fi
6478 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6479 if test -n "$STRIP_FOR_TARGET"; then
6480   echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6481 else
6482   echo "$ac_t""no" 1>&6
6483 fi
6484  
6485     fi
6486     test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6487   done
6488 fi
6489   
6490 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6491   set dummy strip
6492   if test $build = $target ; then
6493     STRIP_FOR_TARGET="$2"
6494   else
6495     STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6496   fi
6497 fi
6498
6499 else
6500   STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
6501 fi
6502
6503
6504
6505
6506 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6507   if test -n "$with_build_time_tools"; then
6508     echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6509 echo "configure:6510: checking for windres in $with_build_time_tools" >&5
6510     if test -x $with_build_time_tools/windres; then
6511       WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
6512       ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6513       echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6514     else
6515       echo "$ac_t""no" 1>&6
6516     fi
6517   elif test $build != $host && test $have_gcc_for_target = yes; then
6518     WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6519     test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6520     ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6521   fi
6522 fi
6523 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6524   # Extract the first word of "windres", so it can be a program name with args.
6525 set dummy windres; ac_word=$2
6526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6527 echo "configure:6528: checking for $ac_word" >&5
6528 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6529   echo $ac_n "(cached) $ac_c" 1>&6
6530 else
6531   case "$WINDRES_FOR_TARGET" in
6532   /*)
6533   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6534   ;;
6535   ?:/*)                  
6536   ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6537   ;;
6538   *)
6539   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6540   ac_dummy="$gcc_cv_tool_dirs"
6541   for ac_dir in $ac_dummy; do 
6542     test -z "$ac_dir" && ac_dir=.
6543     if test -f $ac_dir/$ac_word; then
6544       ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6545       break
6546     fi
6547   done
6548   IFS="$ac_save_ifs"
6549   ;;
6550 esac
6551 fi
6552 WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6553 if test -n "$WINDRES_FOR_TARGET"; then
6554   echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6555 else
6556   echo "$ac_t""no" 1>&6
6557 fi
6558
6559 fi
6560 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6561    if test -n "$with_build_time_tools"; then
6562   for ncn_progname in windres; do
6563     echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6564 echo "configure:6565: checking for ${ncn_progname} in $with_build_time_tools" >&5
6565     if test -x $with_build_time_tools/${ncn_progname}; then
6566       ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6567       echo "$ac_t""yes" 1>&6
6568       break
6569     else
6570       echo "$ac_t""no" 1>&6
6571     fi
6572   done
6573 fi
6574
6575 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6576   for ncn_progname in windres; do
6577     if test -n "$ncn_target_tool_prefix"; then
6578       # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6579 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6581 echo "configure:6582: checking for $ac_word" >&5
6582 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6583   echo $ac_n "(cached) $ac_c" 1>&6
6584 else
6585   if test -n "$WINDRES_FOR_TARGET"; then
6586   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6587 else
6588   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6589   ac_dummy="$PATH"
6590   for ac_dir in $ac_dummy; do
6591     test -z "$ac_dir" && ac_dir=.
6592     if test -f $ac_dir/$ac_word; then
6593       ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6594       break
6595     fi
6596   done
6597   IFS="$ac_save_ifs"
6598 fi
6599 fi
6600 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6601 if test -n "$WINDRES_FOR_TARGET"; then
6602   echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6603 else
6604   echo "$ac_t""no" 1>&6
6605 fi
6606
6607     fi
6608     if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6609       # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6610 set dummy ${ncn_progname}; ac_word=$2
6611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6612 echo "configure:6613: checking for $ac_word" >&5
6613 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6614   echo $ac_n "(cached) $ac_c" 1>&6
6615 else
6616   if test -n "$WINDRES_FOR_TARGET"; then
6617   ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6618 else
6619   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6620   ac_dummy="$PATH"
6621   for ac_dir in $ac_dummy; do
6622     test -z "$ac_dir" && ac_dir=.
6623     if test -f $ac_dir/$ac_word; then
6624       ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6625       break
6626     fi
6627   done
6628   IFS="$ac_save_ifs"
6629 fi
6630 fi
6631 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6632 if test -n "$WINDRES_FOR_TARGET"; then
6633   echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6634 else
6635   echo "$ac_t""no" 1>&6
6636 fi
6637  
6638     fi
6639     test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6640   done
6641 fi
6642   
6643 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6644   set dummy windres
6645   if test $build = $target ; then
6646     WINDRES_FOR_TARGET="$2"
6647   else
6648     WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
6649   fi
6650 fi
6651
6652 else
6653   WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
6654 fi
6655
6656
6657 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6658
6659 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6660 echo "configure:6661: checking where to find the target ar" >&5
6661 if test "x${build}" != "x${host}" ; then
6662   if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6663     # We already found the complete path
6664     echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6665   else
6666     # Canadian cross, just use what we found
6667     echo "$ac_t""pre-installed" 1>&6
6668   fi
6669 else
6670   ok=yes
6671   case " ${configdirs} " in
6672     *" binutils "*) ;;
6673     *) ok=no ;;
6674   esac
6675   
6676   if test $ok = yes; then
6677     # An in-tree tool is available and we can use it
6678     AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6679     echo "$ac_t""just compiled" 1>&6
6680   elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6681     # We already found the complete path
6682     echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6683   elif test "x$target" = "x$host"; then
6684     # We can use an host tool
6685     AR_FOR_TARGET='$(AR)'
6686     echo "$ac_t""host tool" 1>&6
6687   else
6688     # We need a cross tool
6689     echo "$ac_t""pre-installed" 1>&6
6690   fi
6691 fi
6692 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6693 echo "configure:6694: checking where to find the target as" >&5
6694 if test "x${build}" != "x${host}" ; then
6695   if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6696     # We already found the complete path
6697     echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6698   else
6699     # Canadian cross, just use what we found
6700     echo "$ac_t""pre-installed" 1>&6
6701   fi
6702 else
6703   ok=yes
6704   case " ${configdirs} " in
6705     *" gas "*) ;;
6706     *) ok=no ;;
6707   esac
6708   
6709   if test $ok = yes; then
6710     # An in-tree tool is available and we can use it
6711     AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6712     echo "$ac_t""just compiled" 1>&6
6713   elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6714     # We already found the complete path
6715     echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6716   elif test "x$target" = "x$host"; then
6717     # We can use an host tool
6718     AS_FOR_TARGET='$(AS)'
6719     echo "$ac_t""host tool" 1>&6
6720   else
6721     # We need a cross tool
6722     echo "$ac_t""pre-installed" 1>&6
6723   fi
6724 fi
6725 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6726 echo "configure:6727: checking where to find the target cc" >&5
6727 if test "x${build}" != "x${host}" ; then
6728   if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6729     # We already found the complete path
6730     echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6731   else
6732     # Canadian cross, just use what we found
6733     echo "$ac_t""pre-installed" 1>&6
6734   fi
6735 else
6736   ok=yes
6737   case " ${configdirs} " in
6738     *" gcc "*) ;;
6739     *) ok=no ;;
6740   esac
6741   
6742   if test $ok = yes; then
6743     # An in-tree tool is available and we can use it
6744     CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6745     echo "$ac_t""just compiled" 1>&6
6746   elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6747     # We already found the complete path
6748     echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6749   elif test "x$target" = "x$host"; then
6750     # We can use an host tool
6751     CC_FOR_TARGET='$(CC)'
6752     echo "$ac_t""host tool" 1>&6
6753   else
6754     # We need a cross tool
6755     echo "$ac_t""pre-installed" 1>&6
6756   fi
6757 fi
6758 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6759 echo "configure:6760: checking where to find the target c++" >&5
6760 if test "x${build}" != "x${host}" ; then
6761   if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6762     # We already found the complete path
6763     echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6764   else
6765     # Canadian cross, just use what we found
6766     echo "$ac_t""pre-installed" 1>&6
6767   fi
6768 else
6769   ok=yes
6770   case " ${configdirs} " in
6771     *" gcc "*) ;;
6772     *) ok=no ;;
6773   esac
6774   case ,${enable_languages}, in
6775     *,c++,*) ;;
6776     *) ok=no ;;
6777   esac
6778   if test $ok = yes; then
6779     # An in-tree tool is available and we can use it
6780     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'
6781     echo "$ac_t""just compiled" 1>&6
6782   elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6783     # We already found the complete path
6784     echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6785   elif test "x$target" = "x$host"; then
6786     # We can use an host tool
6787     CXX_FOR_TARGET='$(CXX)'
6788     echo "$ac_t""host tool" 1>&6
6789   else
6790     # We need a cross tool
6791     echo "$ac_t""pre-installed" 1>&6
6792   fi
6793 fi
6794 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6795 echo "configure:6796: checking where to find the target c++ for libstdc++" >&5
6796 if test "x${build}" != "x${host}" ; then
6797   if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6798     # We already found the complete path
6799     echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6800   else
6801     # Canadian cross, just use what we found
6802     echo "$ac_t""pre-installed" 1>&6
6803   fi
6804 else
6805   ok=yes
6806   case " ${configdirs} " in
6807     *" gcc "*) ;;
6808     *) ok=no ;;
6809   esac
6810   case ,${enable_languages}, in
6811     *,c++,*) ;;
6812     *) ok=no ;;
6813   esac
6814   if test $ok = yes; then
6815     # An in-tree tool is available and we can use it
6816     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'
6817     echo "$ac_t""just compiled" 1>&6
6818   elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6819     # We already found the complete path
6820     echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6821   elif test "x$target" = "x$host"; then
6822     # We can use an host tool
6823     RAW_CXX_FOR_TARGET='$(CXX)'
6824     echo "$ac_t""host tool" 1>&6
6825   else
6826     # We need a cross tool
6827     echo "$ac_t""pre-installed" 1>&6
6828   fi
6829 fi
6830 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6831 echo "configure:6832: checking where to find the target dlltool" >&5
6832 if test "x${build}" != "x${host}" ; then
6833   if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6834     # We already found the complete path
6835     echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6836   else
6837     # Canadian cross, just use what we found
6838     echo "$ac_t""pre-installed" 1>&6
6839   fi
6840 else
6841   ok=yes
6842   case " ${configdirs} " in
6843     *" binutils "*) ;;
6844     *) ok=no ;;
6845   esac
6846   
6847   if test $ok = yes; then
6848     # An in-tree tool is available and we can use it
6849     DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6850     echo "$ac_t""just compiled" 1>&6
6851   elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6852     # We already found the complete path
6853     echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6854   elif test "x$target" = "x$host"; then
6855     # We can use an host tool
6856     DLLTOOL_FOR_TARGET='$(DLLTOOL)'
6857     echo "$ac_t""host tool" 1>&6
6858   else
6859     # We need a cross tool
6860     echo "$ac_t""pre-installed" 1>&6
6861   fi
6862 fi
6863 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6864 echo "configure:6865: checking where to find the target gcc" >&5
6865 if test "x${build}" != "x${host}" ; then
6866   if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6867     # We already found the complete path
6868     echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6869   else
6870     # Canadian cross, just use what we found
6871     echo "$ac_t""pre-installed" 1>&6
6872   fi
6873 else
6874   ok=yes
6875   case " ${configdirs} " in
6876     *" gcc "*) ;;
6877     *) ok=no ;;
6878   esac
6879   
6880   if test $ok = yes; then
6881     # An in-tree tool is available and we can use it
6882     GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6883     echo "$ac_t""just compiled" 1>&6
6884   elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6885     # We already found the complete path
6886     echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6887   elif test "x$target" = "x$host"; then
6888     # We can use an host tool
6889     GCC_FOR_TARGET='$()'
6890     echo "$ac_t""host tool" 1>&6
6891   else
6892     # We need a cross tool
6893     echo "$ac_t""pre-installed" 1>&6
6894   fi
6895 fi
6896 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6897 echo "configure:6898: checking where to find the target gcj" >&5
6898 if test "x${build}" != "x${host}" ; then
6899   if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6900     # We already found the complete path
6901     echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6902   else
6903     # Canadian cross, just use what we found
6904     echo "$ac_t""pre-installed" 1>&6
6905   fi
6906 else
6907   ok=yes
6908   case " ${configdirs} " in
6909     *" gcc "*) ;;
6910     *) ok=no ;;
6911   esac
6912   case ,${enable_languages}, in
6913     *,java,*) ;;
6914     *) ok=no ;;
6915   esac
6916   if test $ok = yes; then
6917     # An in-tree tool is available and we can use it
6918     GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6919     echo "$ac_t""just compiled" 1>&6
6920   elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6921     # We already found the complete path
6922     echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6923   elif test "x$target" = "x$host"; then
6924     # We can use an host tool
6925     GCJ_FOR_TARGET='$(GCJ)'
6926     echo "$ac_t""host tool" 1>&6
6927   else
6928     # We need a cross tool
6929     echo "$ac_t""pre-installed" 1>&6
6930   fi
6931 fi
6932 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6933 echo "configure:6934: checking where to find the target gfortran" >&5
6934 if test "x${build}" != "x${host}" ; then
6935   if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6936     # We already found the complete path
6937     echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6938   else
6939     # Canadian cross, just use what we found
6940     echo "$ac_t""pre-installed" 1>&6
6941   fi
6942 else
6943   ok=yes
6944   case " ${configdirs} " in
6945     *" gcc "*) ;;
6946     *) ok=no ;;
6947   esac
6948   case ,${enable_languages}, in
6949     *,fortran,*) ;;
6950     *) ok=no ;;
6951   esac
6952   if test $ok = yes; then
6953     # An in-tree tool is available and we can use it
6954     GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6955     echo "$ac_t""just compiled" 1>&6
6956   elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6957     # We already found the complete path
6958     echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6959   elif test "x$target" = "x$host"; then
6960     # We can use an host tool
6961     GFORTRAN_FOR_TARGET='$(GFORTRAN)'
6962     echo "$ac_t""host tool" 1>&6
6963   else
6964     # We need a cross tool
6965     echo "$ac_t""pre-installed" 1>&6
6966   fi
6967 fi
6968 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
6969 echo "configure:6970: checking where to find the target ld" >&5
6970 if test "x${build}" != "x${host}" ; then
6971   if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6972     # We already found the complete path
6973     echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6974   else
6975     # Canadian cross, just use what we found
6976     echo "$ac_t""pre-installed" 1>&6
6977   fi
6978 else
6979   ok=yes
6980   case " ${configdirs} " in
6981     *" ld "*) ;;
6982     *) ok=no ;;
6983   esac
6984   
6985   if test $ok = yes; then
6986     # An in-tree tool is available and we can use it
6987     LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
6988     echo "$ac_t""just compiled" 1>&6
6989   elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6990     # We already found the complete path
6991     echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6992   elif test "x$target" = "x$host"; then
6993     # We can use an host tool
6994     LD_FOR_TARGET='$(LD)'
6995     echo "$ac_t""host tool" 1>&6
6996   else
6997     # We need a cross tool
6998     echo "$ac_t""pre-installed" 1>&6
6999   fi
7000 fi
7001 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
7002 echo "configure:7003: checking where to find the target lipo" >&5
7003 if test "x${build}" != "x${host}" ; then
7004   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7005     # We already found the complete path
7006     echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7007   else
7008     # Canadian cross, just use what we found
7009     echo "$ac_t""pre-installed" 1>&6
7010   fi
7011 else
7012   if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7013     # We already found the complete path
7014     echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7015   elif test "x$target" = "x$host"; then
7016     # We can use an host tool
7017     LIPO_FOR_TARGET='$(LIPO)'
7018     echo "$ac_t""host tool" 1>&6
7019   else
7020     # We need a cross tool
7021     echo "$ac_t""pre-installed" 1>&6
7022   fi
7023 fi
7024 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
7025 echo "configure:7026: checking where to find the target nm" >&5
7026 if test "x${build}" != "x${host}" ; then
7027   if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7028     # We already found the complete path
7029     echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7030   else
7031     # Canadian cross, just use what we found
7032     echo "$ac_t""pre-installed" 1>&6
7033   fi
7034 else
7035   ok=yes
7036   case " ${configdirs} " in
7037     *" binutils "*) ;;
7038     *) ok=no ;;
7039   esac
7040   
7041   if test $ok = yes; then
7042     # An in-tree tool is available and we can use it
7043     NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7044     echo "$ac_t""just compiled" 1>&6
7045   elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7046     # We already found the complete path
7047     echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7048   elif test "x$target" = "x$host"; then
7049     # We can use an host tool
7050     NM_FOR_TARGET='$(NM)'
7051     echo "$ac_t""host tool" 1>&6
7052   else
7053     # We need a cross tool
7054     echo "$ac_t""pre-installed" 1>&6
7055   fi
7056 fi
7057 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7058 echo "configure:7059: checking where to find the target objdump" >&5
7059 if test "x${build}" != "x${host}" ; then
7060   if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7061     # We already found the complete path
7062     echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7063   else
7064     # Canadian cross, just use what we found
7065     echo "$ac_t""pre-installed" 1>&6
7066   fi
7067 else
7068   ok=yes
7069   case " ${configdirs} " in
7070     *" binutils "*) ;;
7071     *) ok=no ;;
7072   esac
7073   
7074   if test $ok = yes; then
7075     # An in-tree tool is available and we can use it
7076     OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
7077     echo "$ac_t""just compiled" 1>&6
7078   elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7079     # We already found the complete path
7080     echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7081   elif test "x$target" = "x$host"; then
7082     # We can use an host tool
7083     OBJDUMP_FOR_TARGET='$(OBJDUMP)'
7084     echo "$ac_t""host tool" 1>&6
7085   else
7086     # We need a cross tool
7087     echo "$ac_t""pre-installed" 1>&6
7088   fi
7089 fi
7090 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7091 echo "configure:7092: checking where to find the target ranlib" >&5
7092 if test "x${build}" != "x${host}" ; then
7093   if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7094     # We already found the complete path
7095     echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7096   else
7097     # Canadian cross, just use what we found
7098     echo "$ac_t""pre-installed" 1>&6
7099   fi
7100 else
7101   ok=yes
7102   case " ${configdirs} " in
7103     *" binutils "*) ;;
7104     *) ok=no ;;
7105   esac
7106   
7107   if test $ok = yes; then
7108     # An in-tree tool is available and we can use it
7109     RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7110     echo "$ac_t""just compiled" 1>&6
7111   elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7112     # We already found the complete path
7113     echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7114   elif test "x$target" = "x$host"; then
7115     # We can use an host tool
7116     RANLIB_FOR_TARGET='$(RANLIB)'
7117     echo "$ac_t""host tool" 1>&6
7118   else
7119     # We need a cross tool
7120     echo "$ac_t""pre-installed" 1>&6
7121   fi
7122 fi
7123 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7124 echo "configure:7125: checking where to find the target strip" >&5
7125 if test "x${build}" != "x${host}" ; then
7126   if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7127     # We already found the complete path
7128     echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7129   else
7130     # Canadian cross, just use what we found
7131     echo "$ac_t""pre-installed" 1>&6
7132   fi
7133 else
7134   ok=yes
7135   case " ${configdirs} " in
7136     *" binutils "*) ;;
7137     *) ok=no ;;
7138   esac
7139   
7140   if test $ok = yes; then
7141     # An in-tree tool is available and we can use it
7142     STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7143     echo "$ac_t""just compiled" 1>&6
7144   elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7145     # We already found the complete path
7146     echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7147   elif test "x$target" = "x$host"; then
7148     # We can use an host tool
7149     STRIP_FOR_TARGET='$(STRIP)'
7150     echo "$ac_t""host tool" 1>&6
7151   else
7152     # We need a cross tool
7153     echo "$ac_t""pre-installed" 1>&6
7154   fi
7155 fi
7156 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7157 echo "configure:7158: checking where to find the target windres" >&5
7158 if test "x${build}" != "x${host}" ; then
7159   if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7160     # We already found the complete path
7161     echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7162   else
7163     # Canadian cross, just use what we found
7164     echo "$ac_t""pre-installed" 1>&6
7165   fi
7166 else
7167   ok=yes
7168   case " ${configdirs} " in
7169     *" binutils "*) ;;
7170     *) ok=no ;;
7171   esac
7172   
7173   if test $ok = yes; then
7174     # An in-tree tool is available and we can use it
7175     WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7176     echo "$ac_t""just compiled" 1>&6
7177   elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7178     # We already found the complete path
7179     echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7180   elif test "x$target" = "x$host"; then
7181     # We can use an host tool
7182     WINDRES_FOR_TARGET='$(WINDRES)'
7183     echo "$ac_t""host tool" 1>&6
7184   else
7185     # We need a cross tool
7186     echo "$ac_t""pre-installed" 1>&6
7187   fi
7188 fi
7189
7190
7191
7192
7193 # Certain tools may need extra flags.
7194 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7195 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7196 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7197
7198 # When building target libraries, except in a Canadian cross, we use
7199 # the same toolchain as the compiler we just built.
7200 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7201 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7202 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7203 if test $host = $build; then
7204   case " $configdirs " in
7205     *" gcc "*)
7206       COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7207       COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7208       COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7209       ;;
7210   esac
7211 fi
7212
7213
7214
7215
7216
7217 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7218 echo "configure:7219: checking whether to enable maintainer-specific portions of Makefiles" >&5
7219 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7220 if test "${enable_maintainer_mode+set}" = set; then
7221   enableval="$enable_maintainer_mode"
7222   USE_MAINTAINER_MODE=$enableval
7223 else
7224   USE_MAINTAINER_MODE=no
7225 fi
7226
7227 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7228
7229
7230 if test "$USE_MAINTAINER_MODE" = yes; then
7231   MAINTAINER_MODE_TRUE=
7232   MAINTAINER_MODE_FALSE='#'
7233 else
7234   MAINTAINER_MODE_TRUE='#'
7235   MAINTAINER_MODE_FALSE=
7236 fi      
7237 MAINT=$MAINTAINER_MODE_TRUE
7238
7239 # ---------------------
7240 # GCC bootstrap support
7241 # ---------------------
7242
7243 # Stage specific cflags for build.
7244 stage1_cflags="-g"
7245 case $build in
7246   vax-*-*)
7247     case ${GCC} in
7248       yes) stage1_cflags="-g -Wa,-J" ;;
7249       *) stage1_cflags="-g -J" ;;
7250     esac ;;
7251   powerpc-*-darwin*)
7252     # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7253     # sources; use -no-cpp-precomp to get to GNU cpp.
7254     # Apple's GCC has bugs in designated initializer handling, so disable
7255     # that too.
7256     stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7257     ;;
7258 esac
7259
7260 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7261 if test "$GCC" = yes; then
7262   saved_CFLAGS="$CFLAGS"
7263
7264   # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
7265   CFLAGS="$CFLAGS -fkeep-inline-functions"
7266   echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
7267 echo "configure:7268: checking whether -fkeep-inline-functions is supported" >&5
7268   cat > conftest.$ac_ext <<EOF
7269 #line 7270 "configure"
7270 #include "confdefs.h"
7271
7272 int main() {
7273
7274 ; return 0; }
7275 EOF
7276 if { (eval echo configure:7277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7277   rm -rf conftest*
7278   echo "$ac_t""yes" 1>&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
7279 else
7280   echo "configure: failed program was:" >&5
7281   cat conftest.$ac_ext >&5
7282   rm -rf conftest*
7283   echo "$ac_t""no" 1>&6
7284 fi
7285 rm -f conftest*
7286
7287   CFLAGS="$saved_CFLAGS"
7288 fi
7289
7290
7291
7292 # Enable -Werror in bootstrap stage2 and later.
7293 # Change the default to "no" on release branches.
7294 # Check whether --enable-werror or --disable-werror was given.
7295 if test "${enable_werror+set}" = set; then
7296   enableval="$enable_werror"
7297   :
7298 else
7299   enable_werror=yes
7300 fi
7301
7302 case ${enable_werror} in
7303   yes) stage2_werror_flag="--enable-werror-always" ;;
7304   *) stage2_werror_flag="" ;;
7305 esac
7306
7307
7308 # Flags needed to enable html installing and building
7309 # Check whether --with-datarootdir or --without-datarootdir was given.
7310 if test "${with_datarootdir+set}" = set; then
7311   withval="$with_datarootdir"
7312   datarootdir="\${prefix}/${withval}"
7313 else
7314   datarootdir="\${prefix}/share"
7315 fi
7316
7317
7318 # Check whether --with-docdir or --without-docdir was given.
7319 if test "${with_docdir+set}" = set; then
7320   withval="$with_docdir"
7321   docdir="\${prefix}/${withval}"
7322 else
7323   docdir="\${datarootdir}/doc"
7324 fi
7325
7326
7327 # Check whether --with-htmldir or --without-htmldir was given.
7328 if test "${with_htmldir+set}" = set; then
7329   withval="$with_htmldir"
7330   htmldir="\${prefix}/${withval}"
7331 else
7332   htmldir="\${docdir}"
7333 fi
7334
7335
7336
7337
7338
7339
7340 trap '' 1 2 15
7341 cat > confcache <<\EOF
7342 # This file is a shell script that caches the results of configure
7343 # tests run on this system so they can be shared between configure
7344 # scripts and configure runs.  It is not useful on other systems.
7345 # If it contains results you don't want to keep, you may remove or edit it.
7346 #
7347 # By default, configure uses ./config.cache as the cache file,
7348 # creating it if it does not exist already.  You can give configure
7349 # the --cache-file=FILE option to use a different cache file; that is
7350 # what configure does when it calls configure scripts in
7351 # subdirectories, so they share the cache.
7352 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7353 # config.status only pays attention to the cache file if you give it the
7354 # --recheck option to rerun configure.
7355 #
7356 EOF
7357 # The following way of writing the cache mishandles newlines in values,
7358 # but we know of no workaround that is simple, portable, and efficient.
7359 # So, don't put newlines in cache variables' values.
7360 # Ultrix sh set writes to stderr and can't be redirected directly,
7361 # and sets the high bit in the cache file unless we assign to the vars.
7362 (set) 2>&1 |
7363   case `(ac_space=' '; set | grep ac_space) 2>&1` in
7364   *ac_space=\ *)
7365     # `set' does not quote correctly, so add quotes (double-quote substitution
7366     # turns \\\\ into \\, and sed turns \\ into \).
7367     sed -n \
7368       -e "s/'/'\\\\''/g" \
7369       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7370     ;;
7371   *)
7372     # `set' quotes correctly as required by POSIX, so do not add quotes.
7373     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7374     ;;
7375   esac >> confcache
7376 if cmp -s $cache_file confcache; then
7377   :
7378 else
7379   if test -w $cache_file; then
7380     echo "updating cache $cache_file"
7381     cat confcache > $cache_file
7382   else
7383     echo "not updating unwritable cache $cache_file"
7384   fi
7385 fi
7386 rm -f confcache
7387
7388 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7389
7390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7391 # Let make expand exec_prefix.
7392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7393
7394 # Any assignment to VPATH causes Sun make to only execute
7395 # the first set of double-colon rules, so remove it if not needed.
7396 # If there is a colon in the path, we need to keep it.
7397 if test "x$srcdir" = x.; then
7398   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
7399 fi
7400
7401 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7402
7403 # Transform confdefs.h into DEFS.
7404 # Protect against shell expansion while executing Makefile rules.
7405 # Protect against Makefile macro expansion.
7406 cat > conftest.defs <<\EOF
7407 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7408 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
7409 s%\[%\\&%g
7410 s%\]%\\&%g
7411 s%\$%$$%g
7412 EOF
7413 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7414 rm -f conftest.defs
7415
7416
7417 # Without the "./", some shells look in PATH for config.status.
7418 : ${CONFIG_STATUS=./config.status}
7419
7420 echo creating $CONFIG_STATUS
7421 rm -f $CONFIG_STATUS
7422 cat > $CONFIG_STATUS <<EOF
7423 #! /bin/sh
7424 # Generated automatically by configure.
7425 # Run this file to recreate the current configuration.
7426 # This directory was configured as follows,
7427 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7428 #
7429 # $0 $ac_configure_args
7430 #
7431 # Compiler output produced by configure, useful for debugging
7432 # configure, is in ./config.log if it exists.
7433
7434 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7435 for ac_option
7436 do
7437   case "\$ac_option" in
7438   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7439     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7440     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7441   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7442     echo "$CONFIG_STATUS generated by autoconf version 2.13"
7443     exit 0 ;;
7444   -help | --help | --hel | --he | --h)
7445     echo "\$ac_cs_usage"; exit 0 ;;
7446   *) echo "\$ac_cs_usage"; exit 1 ;;
7447   esac
7448 done
7449
7450 ac_given_srcdir=$srcdir
7451 ac_given_INSTALL="$INSTALL"
7452
7453 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7454 EOF
7455 cat >> $CONFIG_STATUS <<EOF
7456
7457 # Protect against being on the right side of a sed subst in config.status.
7458 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7459  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7460 $ac_vpsub
7461 $extrasub
7462 s%@SHELL@%$SHELL%g
7463 s%@CFLAGS@%$CFLAGS%g
7464 s%@CPPFLAGS@%$CPPFLAGS%g
7465 s%@CXXFLAGS@%$CXXFLAGS%g
7466 s%@FFLAGS@%$FFLAGS%g
7467 s%@DEFS@%$DEFS%g
7468 s%@LDFLAGS@%$LDFLAGS%g
7469 s%@LIBS@%$LIBS%g
7470 s%@exec_prefix@%$exec_prefix%g
7471 s%@prefix@%$prefix%g
7472 s%@program_transform_name@%$program_transform_name%g
7473 s%@bindir@%$bindir%g
7474 s%@sbindir@%$sbindir%g
7475 s%@libexecdir@%$libexecdir%g
7476 s%@datadir@%$datadir%g
7477 s%@sysconfdir@%$sysconfdir%g
7478 s%@sharedstatedir@%$sharedstatedir%g
7479 s%@localstatedir@%$localstatedir%g
7480 s%@libdir@%$libdir%g
7481 s%@includedir@%$includedir%g
7482 s%@oldincludedir@%$oldincludedir%g
7483 s%@infodir@%$infodir%g
7484 s%@mandir@%$mandir%g
7485 s%@host@%$host%g
7486 s%@host_alias@%$host_alias%g
7487 s%@host_cpu@%$host_cpu%g
7488 s%@host_vendor@%$host_vendor%g
7489 s%@host_os@%$host_os%g
7490 s%@target@%$target%g
7491 s%@target_alias@%$target_alias%g
7492 s%@target_cpu@%$target_cpu%g
7493 s%@target_vendor@%$target_vendor%g
7494 s%@target_os@%$target_os%g
7495 s%@build@%$build%g
7496 s%@build_alias@%$build_alias%g
7497 s%@build_cpu@%$build_cpu%g
7498 s%@build_vendor@%$build_vendor%g
7499 s%@build_os@%$build_os%g
7500 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7501 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7502 s%@INSTALL_DATA@%$INSTALL_DATA%g
7503 s%@LN@%$LN%g
7504 s%@LN_S@%$LN_S%g
7505 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7506 s%@build_libsubdir@%$build_libsubdir%g
7507 s%@build_subdir@%$build_subdir%g
7508 s%@host_subdir@%$host_subdir%g
7509 s%@target_subdir@%$target_subdir%g
7510 s%@CC@%$CC%g
7511 s%@GNATBIND@%$GNATBIND%g
7512 s%@do_compare@%$do_compare%g
7513 s%@gmplibs@%$gmplibs%g
7514 s%@gmpinc@%$gmpinc%g
7515 s%@stage1_languages@%$stage1_languages%g
7516 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7517 /@serialization_dependencies@/r $serialization_dependencies
7518 s%@serialization_dependencies@%%g
7519 /@host_makefile_frag@/r $host_makefile_frag
7520 s%@host_makefile_frag@%%g
7521 /@target_makefile_frag@/r $target_makefile_frag
7522 s%@target_makefile_frag@%%g
7523 /@alphaieee_frag@/r $alphaieee_frag
7524 s%@alphaieee_frag@%%g
7525 /@ospace_frag@/r $ospace_frag
7526 s%@ospace_frag@%%g
7527 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7528 s%@tooldir@%$tooldir%g
7529 s%@build_tooldir@%$build_tooldir%g
7530 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7531 s%@GDB_TK@%$GDB_TK%g
7532 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7533 s%@build_configargs@%$build_configargs%g
7534 s%@build_configdirs@%$build_configdirs%g
7535 s%@host_configargs@%$host_configargs%g
7536 s%@configdirs@%$configdirs%g
7537 s%@target_configargs@%$target_configargs%g
7538 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7539 s%@config_shell@%$config_shell%g
7540 s%@YACC@%$YACC%g
7541 s%@BISON@%$BISON%g
7542 s%@M4@%$M4%g
7543 s%@LEX@%$LEX%g
7544 s%@FLEX@%$FLEX%g
7545 s%@MAKEINFO@%$MAKEINFO%g
7546 s%@EXPECT@%$EXPECT%g
7547 s%@RUNTEST@%$RUNTEST%g
7548 s%@AR@%$AR%g
7549 s%@AS@%$AS%g
7550 s%@DLLTOOL@%$DLLTOOL%g
7551 s%@LD@%$LD%g
7552 s%@LIPO@%$LIPO%g
7553 s%@NM@%$NM%g
7554 s%@RANLIB@%$RANLIB%g
7555 s%@STRIP@%$STRIP%g
7556 s%@WINDRES@%$WINDRES%g
7557 s%@OBJCOPY@%$OBJCOPY%g
7558 s%@OBJDUMP@%$OBJDUMP%g
7559 s%@CXX@%$CXX%g
7560 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7561 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7562 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7563 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7564 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7565 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7566 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7567 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7568 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7569 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7570 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7571 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7572 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7573 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7574 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7575 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7576 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7577 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7578 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7579 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7580 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7581 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7582 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7583 s%@MAINT@%$MAINT%g
7584 s%@stage1_cflags@%$stage1_cflags%g
7585 s%@stage2_werror_flag@%$stage2_werror_flag%g
7586 s%@datarootdir@%$datarootdir%g
7587 s%@docdir@%$docdir%g
7588 s%@htmldir@%$htmldir%g
7589
7590 CEOF
7591 EOF
7592
7593 cat >> $CONFIG_STATUS <<\EOF
7594
7595 # Split the substitutions into bite-sized pieces for seds with
7596 # small command number limits, like on Digital OSF/1 and HP-UX.
7597 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7598 ac_file=1 # Number of current file.
7599 ac_beg=1 # First line for current file.
7600 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7601 ac_more_lines=:
7602 ac_sed_cmds=""
7603 while $ac_more_lines; do
7604   if test $ac_beg -gt 1; then
7605     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7606   else
7607     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7608   fi
7609   if test ! -s conftest.s$ac_file; then
7610     ac_more_lines=false
7611     rm -f conftest.s$ac_file
7612   else
7613     if test -z "$ac_sed_cmds"; then
7614       ac_sed_cmds="sed -f conftest.s$ac_file"
7615     else
7616       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7617     fi
7618     ac_file=`expr $ac_file + 1`
7619     ac_beg=$ac_end
7620     ac_end=`expr $ac_end + $ac_max_sed_cmds`
7621   fi
7622 done
7623 if test -z "$ac_sed_cmds"; then
7624   ac_sed_cmds=cat
7625 fi
7626 EOF
7627
7628 cat >> $CONFIG_STATUS <<EOF
7629
7630 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7631 EOF
7632 cat >> $CONFIG_STATUS <<\EOF
7633 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7634   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7635   case "$ac_file" in
7636   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7637        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7638   *) ac_file_in="${ac_file}.in" ;;
7639   esac
7640
7641   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7642
7643   # Remove last slash and all that follows it.  Not all systems have dirname.
7644   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7645   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7646     # The file is in a subdirectory.
7647     test ! -d "$ac_dir" && mkdir "$ac_dir"
7648     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7649     # A "../" for each directory in $ac_dir_suffix.
7650     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7651   else
7652     ac_dir_suffix= ac_dots=
7653   fi
7654
7655   case "$ac_given_srcdir" in
7656   .)  srcdir=.
7657       if test -z "$ac_dots"; then top_srcdir=.
7658       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7659   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7660   *) # Relative path.
7661     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7662     top_srcdir="$ac_dots$ac_given_srcdir" ;;
7663   esac
7664
7665   case "$ac_given_INSTALL" in
7666   [/$]*) INSTALL="$ac_given_INSTALL" ;;
7667   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7668   esac
7669
7670   echo creating "$ac_file"
7671   rm -f "$ac_file"
7672   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7673   case "$ac_file" in
7674   *Makefile*) ac_comsub="1i\\
7675 # $configure_input" ;;
7676   *) ac_comsub= ;;
7677   esac
7678
7679   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7680   sed -e "$ac_comsub
7681 s%@configure_input@%$configure_input%g
7682 s%@srcdir@%$srcdir%g
7683 s%@top_srcdir@%$top_srcdir%g
7684 s%@INSTALL@%$INSTALL%g
7685 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7686 fi; done
7687 rm -f conftest.s*
7688
7689 EOF
7690 cat >> $CONFIG_STATUS <<EOF
7691
7692 EOF
7693 cat >> $CONFIG_STATUS <<\EOF
7694
7695 exit 0
7696 EOF
7697 chmod +x $CONFIG_STATUS
7698 rm -fr confdefs* $ac_clean_files
7699 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7700