OSDN Git Service

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