OSDN Git Service

2004-04-19 Benjamin Kosnik <bkoz@redhat.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-serial-[{host,target,build}-]configure
18                           Force sequential configuration of
19                           sub-packages for the host, target or build
20                           machine, or all sub-packages"
21 ac_help="$ac_help
22   --enable-maintainer-mode enable make rules and dependencies not useful
23                           (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25   --enable-werror         enable -Werror in bootstrap stage2 and later"
26
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
30 build=NONE
31 cache_file=./config.cache
32 exec_prefix=NONE
33 host=NONE
34 no_create=
35 nonopt=NONE
36 no_recursion=
37 prefix=NONE
38 program_prefix=NONE
39 program_suffix=NONE
40 program_transform_name=s,x,x,
41 silent=
42 site=
43 srcdir=
44 target=NONE
45 verbose=
46 x_includes=NONE
47 x_libraries=NONE
48 bindir='${exec_prefix}/bin'
49 sbindir='${exec_prefix}/sbin'
50 libexecdir='${exec_prefix}/libexec'
51 datadir='${prefix}/share'
52 sysconfdir='${prefix}/etc'
53 sharedstatedir='${prefix}/com'
54 localstatedir='${prefix}/var'
55 libdir='${exec_prefix}/lib'
56 includedir='${prefix}/include'
57 oldincludedir='/usr/include'
58 infodir='${prefix}/info'
59 mandir='${prefix}/man'
60
61 # Initialize some other variables.
62 subdirs=
63 MFLAGS= MAKEFLAGS=
64 SHELL=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
66 ac_max_here_lines=12
67
68 ac_prev=
69 for ac_option
70 do
71
72   # If the previous option needs an argument, assign it.
73   if test -n "$ac_prev"; then
74     eval "$ac_prev=\$ac_option"
75     ac_prev=
76     continue
77   fi
78
79   case "$ac_option" in
80   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81   *) ac_optarg= ;;
82   esac
83
84   # Accept the important Cygnus configure options, so we can diagnose typos.
85
86   case "$ac_option" in
87
88   -bindir | --bindir | --bindi | --bind | --bin | --bi)
89     ac_prev=bindir ;;
90   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91     bindir="$ac_optarg" ;;
92
93   -build | --build | --buil | --bui | --bu)
94     ac_prev=build ;;
95   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96     build="$ac_optarg" ;;
97
98   -cache-file | --cache-file | --cache-fil | --cache-fi \
99   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100     ac_prev=cache_file ;;
101   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103     cache_file="$ac_optarg" ;;
104
105   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
106     ac_prev=datadir ;;
107   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
108   | --da=*)
109     datadir="$ac_optarg" ;;
110
111   -disable-* | --disable-*)
112     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113     # Reject names that are not valid shell variable names.
114     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116     fi
117     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118     eval "enable_${ac_feature}=no" ;;
119
120   -enable-* | --enable-*)
121     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122     # Reject names that are not valid shell variable names.
123     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125     fi
126     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127     case "$ac_option" in
128       *=*) ;;
129       *) ac_optarg=yes ;;
130     esac
131     eval "enable_${ac_feature}='$ac_optarg'" ;;
132
133   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135   | --exec | --exe | --ex)
136     ac_prev=exec_prefix ;;
137   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139   | --exec=* | --exe=* | --ex=*)
140     exec_prefix="$ac_optarg" ;;
141
142   -gas | --gas | --ga | --g)
143     # Obsolete; use --with-gas.
144     with_gas=yes ;;
145
146   -help | --help | --hel | --he)
147     # Omit some internal or obsolete options to make the list less imposing.
148     # This message is too long to be a string in the A/UX 3.1 sh.
149     cat << EOF
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
152 Configuration:
153   --cache-file=FILE       cache test results in FILE
154   --help                  print this message
155   --no-create             do not create output files
156   --quiet, --silent       do not print \`checking...' messages
157   --version               print the version of autoconf that created configure
158 Directory and file names:
159   --prefix=PREFIX         install architecture-independent files in PREFIX
160                           [$ac_default_prefix]
161   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
162                           [same as prefix]
163   --bindir=DIR            user executables in DIR [EPREFIX/bin]
164   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
165   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
166   --datadir=DIR           read-only architecture-independent data in DIR
167                           [PREFIX/share]
168   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
169   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
170                           [PREFIX/com]
171   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
172   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
173   --includedir=DIR        C header files in DIR [PREFIX/include]
174   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
175   --infodir=DIR           info documentation in DIR [PREFIX/info]
176   --mandir=DIR            man documentation in DIR [PREFIX/man]
177   --srcdir=DIR            find the sources in DIR [configure dir or ..]
178   --program-prefix=PREFIX prepend PREFIX to installed program names
179   --program-suffix=SUFFIX append SUFFIX to installed program names
180   --program-transform-name=PROGRAM
181                           run sed PROGRAM on installed program names
182 EOF
183     cat << EOF
184 Host type:
185   --build=BUILD           configure for building on BUILD [BUILD=HOST]
186   --host=HOST             configure for HOST [guessed]
187   --target=TARGET         configure for TARGET [TARGET=HOST]
188 Features and packages:
189   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
190   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
191   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
192   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
193   --x-includes=DIR        X include files are in DIR
194   --x-libraries=DIR       X library files are in DIR
195 EOF
196     if test -n "$ac_help"; then
197       echo "--enable and --with options recognized:$ac_help"
198     fi
199     exit 0 ;;
200
201   -host | --host | --hos | --ho)
202     ac_prev=host ;;
203   -host=* | --host=* | --hos=* | --ho=*)
204     host="$ac_optarg" ;;
205
206   -includedir | --includedir | --includedi | --included | --include \
207   | --includ | --inclu | --incl | --inc)
208     ac_prev=includedir ;;
209   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210   | --includ=* | --inclu=* | --incl=* | --inc=*)
211     includedir="$ac_optarg" ;;
212
213   -infodir | --infodir | --infodi | --infod | --info | --inf)
214     ac_prev=infodir ;;
215   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216     infodir="$ac_optarg" ;;
217
218   -libdir | --libdir | --libdi | --libd)
219     ac_prev=libdir ;;
220   -libdir=* | --libdir=* | --libdi=* | --libd=*)
221     libdir="$ac_optarg" ;;
222
223   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224   | --libexe | --libex | --libe)
225     ac_prev=libexecdir ;;
226   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227   | --libexe=* | --libex=* | --libe=*)
228     libexecdir="$ac_optarg" ;;
229
230   -localstatedir | --localstatedir | --localstatedi | --localstated \
231   | --localstate | --localstat | --localsta | --localst \
232   | --locals | --local | --loca | --loc | --lo)
233     ac_prev=localstatedir ;;
234   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237     localstatedir="$ac_optarg" ;;
238
239   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240     ac_prev=mandir ;;
241   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242     mandir="$ac_optarg" ;;
243
244   -nfp | --nfp | --nf)
245     # Obsolete; use --without-fp.
246     with_fp=no ;;
247
248   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249   | --no-cr | --no-c)
250     no_create=yes ;;
251
252   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254     no_recursion=yes ;;
255
256   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258   | --oldin | --oldi | --old | --ol | --o)
259     ac_prev=oldincludedir ;;
260   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263     oldincludedir="$ac_optarg" ;;
264
265   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266     ac_prev=prefix ;;
267   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268     prefix="$ac_optarg" ;;
269
270   -program-prefix | --program-prefix | --program-prefi | --program-pref \
271   | --program-pre | --program-pr | --program-p)
272     ac_prev=program_prefix ;;
273   -program-prefix=* | --program-prefix=* | --program-prefi=* \
274   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275     program_prefix="$ac_optarg" ;;
276
277   -program-suffix | --program-suffix | --program-suffi | --program-suff \
278   | --program-suf | --program-su | --program-s)
279     ac_prev=program_suffix ;;
280   -program-suffix=* | --program-suffix=* | --program-suffi=* \
281   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282     program_suffix="$ac_optarg" ;;
283
284   -program-transform-name | --program-transform-name \
285   | --program-transform-nam | --program-transform-na \
286   | --program-transform-n | --program-transform- \
287   | --program-transform | --program-transfor \
288   | --program-transfo | --program-transf \
289   | --program-trans | --program-tran \
290   | --progr-tra | --program-tr | --program-t)
291     ac_prev=program_transform_name ;;
292   -program-transform-name=* | --program-transform-name=* \
293   | --program-transform-nam=* | --program-transform-na=* \
294   | --program-transform-n=* | --program-transform-=* \
295   | --program-transform=* | --program-transfor=* \
296   | --program-transfo=* | --program-transf=* \
297   | --program-trans=* | --program-tran=* \
298   | --progr-tra=* | --program-tr=* | --program-t=*)
299     program_transform_name="$ac_optarg" ;;
300
301   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302   | -silent | --silent | --silen | --sile | --sil)
303     silent=yes ;;
304
305   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
306     ac_prev=sbindir ;;
307   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308   | --sbi=* | --sb=*)
309     sbindir="$ac_optarg" ;;
310
311   -sharedstatedir | --sharedstatedir | --sharedstatedi \
312   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313   | --sharedst | --shareds | --shared | --share | --shar \
314   | --sha | --sh)
315     ac_prev=sharedstatedir ;;
316   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319   | --sha=* | --sh=*)
320     sharedstatedir="$ac_optarg" ;;
321
322   -site | --site | --sit)
323     ac_prev=site ;;
324   -site=* | --site=* | --sit=*)
325     site="$ac_optarg" ;;
326
327   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
328     ac_prev=srcdir ;;
329   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330     srcdir="$ac_optarg" ;;
331
332   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333   | --syscon | --sysco | --sysc | --sys | --sy)
334     ac_prev=sysconfdir ;;
335   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337     sysconfdir="$ac_optarg" ;;
338
339   -target | --target | --targe | --targ | --tar | --ta | --t)
340     ac_prev=target ;;
341   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342     target="$ac_optarg" ;;
343
344   -v | -verbose | --verbose | --verbos | --verbo | --verb)
345     verbose=yes ;;
346
347   -version | --version | --versio | --versi | --vers)
348     echo "configure generated by autoconf version 2.13"
349     exit 0 ;;
350
351   -with-* | --with-*)
352     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353     # Reject names that are not valid shell variable names.
354     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356     fi
357     ac_package=`echo $ac_package| sed 's/-/_/g'`
358     case "$ac_option" in
359       *=*) ;;
360       *) ac_optarg=yes ;;
361     esac
362     eval "with_${ac_package}='$ac_optarg'" ;;
363
364   -without-* | --without-*)
365     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366     # Reject names that are not valid shell variable names.
367     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369     fi
370     ac_package=`echo $ac_package| sed 's/-/_/g'`
371     eval "with_${ac_package}=no" ;;
372
373   --x)
374     # Obsolete; use --with-x.
375     with_x=yes ;;
376
377   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378   | --x-incl | --x-inc | --x-in | --x-i)
379     ac_prev=x_includes ;;
380   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382     x_includes="$ac_optarg" ;;
383
384   -x-libraries | --x-libraries | --x-librarie | --x-librari \
385   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386     ac_prev=x_libraries ;;
387   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389     x_libraries="$ac_optarg" ;;
390
391   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392     ;;
393
394   *)
395     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396       echo "configure: warning: $ac_option: invalid host type" 1>&2
397     fi
398     if test "x$nonopt" != xNONE; then
399       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400     fi
401     nonopt="$ac_option"
402     ;;
403
404   esac
405 done
406
407 if test -n "$ac_prev"; then
408   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 fi
410
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
412
413 # File descriptor usage:
414 # 0 standard input
415 # 1 file creation
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 6 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
422   exec 6>/dev/null
423 else
424   exec 6>&1
425 fi
426 exec 5>./config.log
427
428 echo "\
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
431 " 1>&5
432
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
435 ac_configure_args=
436 for ac_arg
437 do
438   case "$ac_arg" in
439   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440   | --no-cr | --no-c) ;;
441   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
446   esac
447 done
448
449 # NLS nuisances.
450 # Only set these to C if already set.  These must not be set unconditionally
451 # because not all systems understand e.g. LANG=C (notably SCO).
452 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453 # Non-C LC_CTYPE values break the ctype check.
454 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
455 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
458
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 echo > confdefs.h
463
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
466 ac_unique_file=move-if-change
467
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470   ac_srcdir_defaulted=yes
471   # Try the directory containing this script, then its parent.
472   ac_prog=$0
473   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
475   srcdir=$ac_confdir
476   if test ! -r $srcdir/$ac_unique_file; then
477     srcdir=..
478   fi
479 else
480   ac_srcdir_defaulted=no
481 fi
482 if test ! -r $srcdir/$ac_unique_file; then
483   if test "$ac_srcdir_defaulted" = yes; then
484     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
485   else
486     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487   fi
488 fi
489 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493   if test "x$prefix" != xNONE; then
494     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
495   else
496     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497   fi
498 fi
499 for ac_site_file in $CONFIG_SITE; do
500   if test -r "$ac_site_file"; then
501     echo "loading site script $ac_site_file"
502     . "$ac_site_file"
503   fi
504 done
505
506 if test -r "$cache_file"; then
507   echo "loading cache $cache_file"
508   . $cache_file
509 else
510   echo "creating cache $cache_file"
511   > $cache_file
512 fi
513
514 ac_ext=c
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp='$CPP $CPPFLAGS'
517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 cross_compiling=$ac_cv_prog_cc_cross
520
521 ac_exeext=
522 ac_objext=o
523 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526     ac_n= ac_c='
527 ' ac_t='        '
528   else
529     ac_n=-n ac_c= ac_t=
530   fi
531 else
532   ac_n= ac_c='\c' ac_t=
533 fi
534
535
536
537 ac_aux_dir=
538 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
539   if test -f $ac_dir/install-sh; then
540     ac_aux_dir=$ac_dir
541     ac_install_sh="$ac_aux_dir/install-sh -c"
542     break
543   elif test -f $ac_dir/install.sh; then
544     ac_aux_dir=$ac_dir
545     ac_install_sh="$ac_aux_dir/install.sh -c"
546     break
547   fi
548 done
549 if test -z "$ac_aux_dir"; then
550   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
551 fi
552 ac_config_guess=$ac_aux_dir/config.guess
553 ac_config_sub=$ac_aux_dir/config.sub
554 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
555
556
557 # Do some error checking and defaulting for the host and target type.
558 # The inputs are:
559 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
560 #
561 # The rules are:
562 # 1. You are not allowed to specify --host, --target, and nonopt at the
563 #    same time.
564 # 2. Host defaults to nonopt.
565 # 3. If nonopt is not specified, then host defaults to the current host,
566 #    as determined by config.guess.
567 # 4. Target and build default to nonopt.
568 # 5. If nonopt is not specified, then target and build default to host.
569
570 # The aliases save the names the user supplied, while $host etc.
571 # will get canonicalized.
572 case $host---$target---$nonopt in
573 NONE---*---* | *---NONE---* | *---*---NONE) ;;
574 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
575 esac
576
577
578 # Make sure we can run config.sub.
579 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
580 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
581 fi
582
583 echo $ac_n "checking host system type""... $ac_c" 1>&6
584 echo "configure:585: checking host system type" >&5
585
586 host_alias=$host
587 case "$host_alias" in
588 NONE)
589   case $nonopt in
590   NONE)
591     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
592     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
593     fi ;;
594   *) host_alias=$nonopt ;;
595   esac ;;
596 esac
597
598 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
599 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
600 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
601 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
602 echo "$ac_t""$host" 1>&6
603
604 echo $ac_n "checking target system type""... $ac_c" 1>&6
605 echo "configure:606: checking target system type" >&5
606
607 target_alias=$target
608 case "$target_alias" in
609 NONE)
610   case $nonopt in
611   NONE) target_alias=$host_alias ;;
612   *) target_alias=$nonopt ;;
613   esac ;;
614 esac
615
616 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
617 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$target" 1>&6
621
622 echo $ac_n "checking build system type""... $ac_c" 1>&6
623 echo "configure:624: checking build system type" >&5
624
625 build_alias=$build
626 case "$build_alias" in
627 NONE)
628   case $nonopt in
629   NONE) build_alias=$host_alias ;;
630   *) build_alias=$nonopt ;;
631   esac ;;
632 esac
633
634 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
635 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$build" 1>&6
639
640 test "$host_alias" != "$target_alias" &&
641   test "$program_prefix$program_suffix$program_transform_name" = \
642     NONENONEs,x,x, &&
643   program_prefix=${target_alias}-
644
645 if test "$program_transform_name" = s,x,x,; then
646   program_transform_name=
647 else
648   # Double any \ or $.  echo might interpret backslashes.
649   cat <<\EOF_SED > conftestsed
650 s,\\,\\\\,g; s,\$,$$,g
651 EOF_SED
652   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
653   rm -f conftestsed
654 fi
655 test "$program_prefix" != NONE &&
656   program_transform_name="s,^,${program_prefix},; $program_transform_name"
657 # Use a double $ so make ignores it.
658 test "$program_suffix" != NONE &&
659   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
660
661 # sed with no file args requires a program.
662 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
663
664
665 # Get 'install' or 'install-sh' and its variants.
666 # Find a good install program.  We prefer a C program (faster),
667 # so one script is as good as another.  But avoid the broken or
668 # incompatible versions:
669 # SysV /etc/install, /usr/sbin/install
670 # SunOS /usr/etc/install
671 # IRIX /sbin/install
672 # AIX /bin/install
673 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
674 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
675 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
676 # ./install, which can be erroneously created by make from ./install.sh.
677 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
678 echo "configure:679: checking for a BSD compatible install" >&5
679 if test -z "$INSTALL"; then
680 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
681   echo $ac_n "(cached) $ac_c" 1>&6
682 else
683     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
684   for ac_dir in $PATH; do
685     # Account for people who put trailing slashes in PATH elements.
686     case "$ac_dir/" in
687     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
688     *)
689       # OSF1 and SCO ODT 3.0 have their own names for install.
690       # Don't use installbsd from OSF since it installs stuff as root
691       # by default.
692       for ac_prog in ginstall scoinst install; do
693         if test -f $ac_dir/$ac_prog; then
694           if test $ac_prog = install &&
695             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
696             # AIX install.  It has an incompatible calling convention.
697             :
698           else
699             ac_cv_path_install="$ac_dir/$ac_prog -c"
700             break 2
701           fi
702         fi
703       done
704       ;;
705     esac
706   done
707   IFS="$ac_save_IFS"
708
709 fi
710   if test "${ac_cv_path_install+set}" = set; then
711     INSTALL="$ac_cv_path_install"
712   else
713     # As a last resort, use the slow shell script.  We don't cache a
714     # path for INSTALL within a source directory, because that will
715     # break other packages using the cache if that directory is
716     # removed, or if the path is relative.
717     INSTALL="$ac_install_sh"
718   fi
719 fi
720 echo "$ac_t""$INSTALL" 1>&6
721
722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
723 # It thinks the first close brace ends the variable substitution.
724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
725
726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
727
728 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
729
730
731 # Autoconf M4 include file defining utility macros for complex Canadian
732 # cross builds.
733
734  
735  
736  
737  
738
739 ####
740 # _NCN_TOOL_PREFIXES:  Some stuff that oughtta be done in AC_CANONICAL_SYSTEM 
741 # or AC_INIT.
742 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
743  
744 ####
745 # NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
746 # Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
747 # Code is pretty much lifted from autoconf2.53.
748
749  
750
751 ####
752 # NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
753 # Like AC_CHECK_TOOL, but requires the prefix if build!=host.
754
755  
756
757 ####
758 # NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
759 # Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
760
761  
762 ###
763 # AC_PROG_CPP_WERROR
764 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
765 # triggers warnings from the preprocessor.  Will be in autoconf 2.58.
766 # For now, using this also overrides header checks to use only the
767 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
768 # bit harder from here).
769 # Eventually autoconf will default to checking headers with the compiler
770 # instead, and we'll have to do this differently.
771
772 # AC_PROG_CPP_WERROR
773
774 # Test for GNAT.
775 # We require the gnatbind program, and a compiler driver that
776 # understands Ada.  We use the user's CC setting, already found.
777 #
778 # Sets the shell variable have_gnat to yes or no as appropriate, and
779 # substitutes GNATBIND.
780
781
782
783 ### we might need to use some other shell than /bin/sh for running subshells
784 ### If we are on Windows, search for the shell.  This will permit people
785 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
786 ### without also having to set CONFIG_SHELL.  This code will work when
787 ### using bash, which sets OSTYPE.
788 case "${OSTYPE}" in
789 *win32*)
790   if test x${CONFIG_SHELL} = x ; then
791     if test ! -f /bin/sh ; then
792       if test x${SHELL} != x && test -f ${SHELL} ; then
793         CONFIG_SHELL=${SHELL}
794         export CONFIG_SHELL
795       else
796         for prog in sh sh.exe bash bash.exe; do
797           IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
798           for dir in $PATH; do
799             test -z "$dir" && dir=.
800             if test -f $dir/$prog; then
801               CONFIG_SHELL=$dir/$prog
802               export CONFIG_SHELL
803               break
804             fi
805           done
806           IFS="$save_ifs"
807           test -n "${CONFIG_SHELL}" && break
808         done
809       fi
810     fi
811   fi
812   ;;
813 esac
814
815 config_shell=${CONFIG_SHELL-/bin/sh}
816
817 progname=$0
818 # if PWD already has a value, it is probably wrong.
819 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
820
821 # Export original configure arguments for use by sub-configures.  These
822 # will be expanded by make, so quote '$'.
823 tmp="$progname $@"
824 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
825 $tmp
826 EOF_SED
827 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
828 rm -f conftestsed.out
829
830
831 moveifchange=${srcdir}/move-if-change
832
833 # Set srcdir to "." if that's what it is.
834 # This is important for multilib support.
835 pwd=`${PWDCMD-pwd}`
836 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
837 if test "${pwd}" = "${srcpwd}" ; then
838   srcdir=.
839 fi
840
841 topsrcdir=$srcpwd
842
843 extra_host_args=
844 # Define the trigger file to make sure configure will re-run whenever
845 # the gcc version number changes.
846 if test "${with_gcc_version_trigger+set}" = set ; then
847   gcc_version_trigger="$with_gcc_version_trigger"
848   gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
849 else
850   # If gcc's sources are available, define the trigger file.
851   if test -f ${topsrcdir}/gcc/version.c ; then
852     gcc_version_trigger=${topsrcdir}/gcc/version.c
853     gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
854     case "$ac_configure_args" in
855       *--with-gcc-version-trigger=$gcc_version_trigger* )
856         ;;
857       * )
858         # Add to all subconfigure arguments: build, host, and target.
859         ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
860         ;;
861     esac
862   fi
863 fi
864
865 ### To add a new directory to the tree, first choose whether it is a target
866 ### or a host dependent tool.  Then put it into the appropriate list
867 ### (library or tools, host or target), doing a dependency sort.
868
869 # Subdirs will be configured in the order listed in build_configdirs, 
870 # configdirs, or target_configdirs; see the serialization section below.
871
872 # Dependency sorting is only needed when *configuration* must be done in 
873 # a particular order.  In all cases a dependency should be specified in 
874 # the Makefile, whether or not it's implicitly specified here.
875
876 # Double entries in build_configdirs, configdirs, or target_configdirs may
877 # cause circular dependencies and break everything horribly.
878
879 # these libraries are used by various programs built for the host environment
880 #
881 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib"
882
883 # these tools are built for the host environment
884 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
885 # know that we are building the simulator.
886 # binutils, gas and ld appear in that order because it makes sense to run
887 # "make check" in that particular order.
888 host_tools="texinfo byacc flex bison binutils gas ld 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"
889
890 # libgcj represents the runtime libraries only used by gcj.
891 libgcj="target-libffi \
892         target-boehm-gc \
893         target-zlib \
894         target-qthreads \
895         target-libjava"
896
897 # these libraries are built for the target environment, and are built after
898 # the host libraries and the host tools (which may be a cross compiler)
899 #
900 target_libraries="target-libiberty \
901                 target-libgloss \
902                 target-newlib \
903                 target-libstdc++-v3 \
904                 target-libf2c \
905                 ${libgcj} \
906                 target-libobjc \
907                 target-libada"
908
909 # these tools are built using the target libraries, and are intended to
910 # run only in the target environment
911 #
912 # note: any program that *uses* libraries that are in the "target_libraries"
913 # list belongs in this list.  those programs are also very likely
914 # candidates for the "native_only" list which follows
915 #
916 target_tools="target-examples target-groff target-gperf target-rda"
917
918 ################################################################################
919
920 ## All tools belong in one of the four categories, and are assigned above
921 ## We assign ${configdirs} this way to remove all embedded newlines.  This
922 ## is important because configure will choke if they ever get through.
923 ## ${configdirs} is directories we build using the host tools.
924 ## ${target_configdirs} is directories we build using the target tools.
925 #
926 configdirs=`echo ${host_libs} ${host_tools}`
927 target_configdirs=`echo ${target_libraries} ${target_tools}`
928
929 # Only make build modules if build != host.
930 # This should be done more generally, but at the moment it doesn't matter.
931 if test ${host_alias} != ${build_alias} ; then
932   # This is the only build module.
933   build_modules=libiberty
934 else
935   build_modules=
936 fi
937
938
939 ################################################################################
940
941 srcname="gnu development package"
942
943 # This gets set non-empty for some net releases of packages.
944 appdirs=""
945
946 # Define is_cross_compiler to save on calls to 'test'.
947 is_cross_compiler=
948 if test x"${host}" = x"${target}" ; then
949   is_cross_compiler=no
950 else
951   is_cross_compiler=yes
952 fi      
953
954 # Find the build and target subdir names.
955  case ${build_alias} in
956   "") build_noncanonical=${build} ;;
957   *) build_noncanonical=${build_alias} ;;
958 esac
959
960  case ${host_alias} in
961   "") host_noncanonical=${build_noncanonical} ;;
962   *) host_noncanonical=${host_alias} ;;
963 esac
964
965  case ${target_alias} in
966   "") target_noncanonical=${host_noncanonical} ;;
967   *) target_noncanonical=${target_alias} ;;
968 esac
969
970   # Prefix 'build-' so this never conflicts with target_subdir.
971 build_subdir="build-${build_noncanonical}"
972 # Not really a subdirectory, but here for completeness.
973 host_subdir=.
974 # No prefix.
975 target_subdir=${target_noncanonical}
976    
977
978 # Skipdirs are removed silently.
979 skipdirs=
980 # Noconfigdirs are removed loudly.
981 noconfigdirs=""
982
983 use_gnu_ld=
984 # Make sure we don't let GNU ld be added if we didn't want it.
985 if test x$with_gnu_ld = xno ; then
986   use_gnu_ld=no
987   noconfigdirs="$noconfigdirs ld"
988 fi
989
990 use_gnu_as=
991 # Make sure we don't let GNU as be added if we didn't want it.
992 if test x$with_gnu_as = xno ; then
993   use_gnu_as=no
994   noconfigdirs="$noconfigdirs gas"
995 fi
996
997 # some tools are so dependent upon X11 that if we're not building with X, 
998 # it's not even worth trying to configure, much less build, that tool.
999
1000 case ${with_x} in
1001   yes | "") ;; # the default value for this tree is that X11 is available
1002   no)
1003     skipdirs="${skipdirs} tk tix itcl libgui"
1004     # We won't be able to build gdbtk without X.
1005     enable_gdbtk=no 
1006     ;;
1007   *)  echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1008 esac
1009
1010 # Some tools are only suitable for building in a "native" situation.
1011 # Remove these if host!=target.  
1012 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"
1013
1014 # Similarly, some are only suitable for cross toolchains.
1015 # Remove these if host=target.
1016 cross_only="target-libgloss target-newlib target-opcodes"
1017
1018 case $is_cross_compiler in
1019   no) skipdirs="${skipdirs} ${cross_only}" ;;
1020   yes) skipdirs="${skipdirs} ${native_only}" ;;
1021 esac
1022
1023 # If both --with-headers and --with-libs are specified, default to
1024 # --without-newlib.
1025 if test x"${with_headers}" != x && test x"${with_headers} != xno \
1026    && test x"${with_libs}" != x && test x"${with_libs} != xno ; then
1027   if test x"${with_newlib}" = x ; then
1028     with_newlib=no
1029   fi
1030 fi
1031
1032 # Recognize --with-newlib/--without-newlib.
1033 case ${with_newlib} in
1034   no) skipdirs="${skipdirs} target-newlib" ;;
1035   yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1036 esac
1037
1038 # Configure extra directories which are host specific
1039
1040 case "${host}" in
1041   *-cygwin*)
1042     configdirs="$configdirs libtermcap" ;;
1043 esac
1044
1045 # Remove more programs from consideration, based on the host or 
1046 # target this usually means that a port of the program doesn't
1047 # exist yet.
1048
1049 case "${host}" in
1050   hppa*64*-*-*)
1051     noconfigdirs="$noconfigdirs byacc"
1052     ;;
1053   i[3456789]86-*-vsta)
1054     noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext"
1055     ;;
1056   i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1057     noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi"
1058     ;;
1059   i[3456789]86-*-mingw32*)
1060     # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv"
1061     noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1062     ;;
1063   i[3456789]86-*-beos*)
1064     noconfigdirs="$noconfigdirs tk itcl tix libgui gdb"
1065     ;;
1066   *-*-cygwin*)
1067     noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1068     ;;
1069   *-*-netbsd*)
1070     noconfigdirs="$noconfigdirs rcs"
1071     ;;
1072   ppc*-*-pe)
1073     noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv"
1074     ;;
1075   powerpc-*-beos*)
1076     noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
1077     ;;
1078   *-*-darwin*)
1079     noconfigdirs="$noconfigdirs tk itcl tix libgui"
1080     ;;
1081 esac
1082
1083 # Check whether --enable-libada or --disable-libada was given.
1084 if test "${enable_libada+set}" = set; then
1085   enableval="$enable_libada"
1086   ENABLE_LIBADA=$enableval
1087 else
1088   ENABLE_LIBADA=yes
1089 fi
1090
1091 if test "${ENABLE_LIBADA}" != "yes" ; then
1092   noconfigdirs="$noconfigdirs target-libada"
1093 fi
1094
1095 # Save it here so that, even in case of --enable-libgcj, if the Java
1096 # front-end isn't enabled, we still get libgcj disabled.
1097 libgcj_saved=$libgcj
1098 case $enable_libgcj in
1099 yes)
1100   # If we reset it here, it won't get added to noconfigdirs in the
1101   # target-specific build rules, so it will be forcibly enabled
1102   # (unless the Java language itself isn't enabled).
1103   libgcj=
1104   ;;
1105 no)
1106   # Make sure we get it printed in the list of not supported target libs.
1107   noconfigdirs="$noconfigdirs ${libgcj}"
1108   ;;
1109 esac
1110
1111 case "${target}" in
1112   *-*-chorusos)
1113     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1114     ;;
1115   powerpc-*-darwin*)
1116     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1117     noconfigdirs="$noconfigdirs target-libobjc"
1118     ;;
1119   *-*-darwin*)
1120     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1121     noconfigdirs="$noconfigdirs target-libobjc ${libgcj}"
1122     ;;
1123   *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1124     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1125     ;;
1126   *-*-kaos*)
1127     # Remove unsupported stuff on all kaOS configurations.
1128     skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-libf2c target-librx"
1129     skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1130     skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1131     noconfigdirs="$noconfigdirs target-libgloss"
1132     ;;
1133   *-*-netbsd*)
1134     # Skip some stuff on all NetBSD configurations.
1135     noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1136
1137     # Skip some stuff that's unsupported on some NetBSD configurations.
1138     case "${target}" in
1139       i*86-*-netbsdelf*) ;;
1140       arm*-*-netbsdelf*) ;;
1141       *)
1142         noconfigdirs="$noconfigdirs ${libgcj}"
1143         ;;
1144     esac
1145     ;;
1146   *-*-netware)
1147     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
1148     ;;
1149   *-*-rtems*)
1150     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1151     case ${target} in
1152         h8300*-*-* | h8500-*-*)
1153           noconfigdirs="$noconfigdirs target-libf2c"
1154           ;;
1155         *) ;;
1156     esac
1157     ;;
1158   *-*-uclinux*)
1159     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1160     ;;
1161   *-*-vxworks*)
1162     noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
1163     ;;
1164   alpha*-dec-osf*)
1165     # ld works, but does not support shared libraries.
1166     # newlib is not 64 bit ready.  I'm not sure about fileutils.
1167     # gas doesn't generate exception information.
1168     noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1169     ;;
1170   alpha*-*-*vms*)
1171     noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1172     ;;
1173   alpha*-*-linux*)
1174     # newlib is not 64 bit ready
1175     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1176     ;;
1177   alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
1178     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1179     ;;
1180   alpha*-*-*)
1181     # newlib is not 64 bit ready
1182     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1183     ;;
1184   am33_2.0-*-linux*)
1185     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1186     ;;
1187   sh-*-linux*)
1188     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1189     ;;    
1190   sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1191     noconfigdirs="$noconfigdirs ${libgcj}"
1192     noconfigdirs="$noconfigdirs target-examples"
1193     noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1194     noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim"
1195     noconfigdirs="$noconfigdirs expect dejagnu"
1196     # the C++ libraries don't build on top of CE's C libraries
1197     noconfigdirs="$noconfigdirs target-libstdc++-v3"
1198     noconfigdirs="$noconfigdirs target-newlib"
1199     case "${host}" in
1200       *-*-cygwin*) ;; # keep gdb and readline
1201       *) noconfigdirs="$noconfigdirs gdb readline"
1202          ;;
1203     esac
1204     ;;
1205   arc-*-*)
1206     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1207     ;;
1208   arm-*-coff | strongarm-*-coff | xscale-*-coff)
1209     noconfigdirs="$noconfigdirs ${libgcj}"
1210     ;;
1211   arm-*-elf* | strongarm-*-elf* | xscale-*-elf*)
1212     noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1213     ;;
1214   arm-*-pe*)
1215     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1216     ;;
1217   arm-*-oabi*)
1218     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1219     ;;
1220   thumb-*-coff)
1221     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1222     ;;
1223   thumb-*-elf)
1224     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1225     ;;
1226   thumb-*-oabi)
1227     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1228     ;;
1229   thumb-*-pe)
1230     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1231     ;;
1232   arm-*-riscix*)
1233     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1234     ;;
1235   avr-*-*)
1236     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1237     ;;
1238   c4x-*-* | tic4x-*-*)
1239     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1240     ;;
1241   c54x*-*-* | tic54x-*-*)
1242     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1243     ;;
1244   cris-*-*)
1245     noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1246     ;;
1247   d10v-*-*)
1248     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1249     ;;
1250   d30v-*-*)
1251     noconfigdirs="$noconfigdirs ${libgcj} gdb"
1252     ;;
1253   fr30-*-elf*)
1254     noconfigdirs="$noconfigdirs ${libgcj} gdb"
1255     ;;
1256   frv-*-*)
1257     noconfigdirs="$noconfigdirs ${libgcj}"
1258     ;;
1259   h8300*-*-*)
1260     noconfigdirs="$noconfigdirs target-libgloss ${libgcj} target-libf2c"
1261     ;;
1262   h8500-*-*)
1263     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} target-libf2c"
1264     ;;
1265   hppa*64*-*-linux* | parisc*64*-*-linux*)
1266     # In this case, it's because the hppa64-linux target is for
1267     # the kernel only at this point and has no libc, and thus no
1268     # headers, crt*.o, etc., all of which are needed by these.
1269     noconfigdirs="$noconfigdirs target-zlib"
1270     ;;
1271   hppa*-*-*elf* | \
1272   parisc*-*-linux* | hppa*-*-linux* | \
1273   hppa*-*-lites* | \
1274   hppa*-*-openbsd* | \
1275   hppa*64*-*-*)
1276     noconfigdirs="$noconfigdirs ${libgcj}"
1277     # Do configure ld/binutils/gas for this case.
1278     ;;
1279   hppa*-*-*)
1280     # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1281     # build on HP-UX 10.20.
1282     noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1283     ;;
1284   i960-*-*)
1285     noconfigdirs="$noconfigdirs ${libgcj} gdb"
1286     ;;
1287   ia64*-*-elf*)
1288     # No gdb support yet.
1289     noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1290     ;;
1291   ia64*-**-hpux*)
1292     # No gdb or ld support yet.
1293     noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
1294     ;;
1295   i[3456789]86-*-coff | i[3456789]86-*-elf)
1296     noconfigdirs="$noconfigdirs ${libgcj}"
1297     ;;
1298   i[3456789]86-*-freebsd* | i[3456789]86-*-kfreebsd*-gnu)
1299     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1300     ;;
1301   i[3456789]86-*-linux*)
1302     # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1303     # not build java stuff by default.
1304     case "${target}" in
1305       *-*-*libc1*)
1306         noconfigdirs="$noconfigdirs ${libgcj}";;
1307     esac
1308
1309     # This section makes it possible to build newlib natively on linux.
1310     # If we are using a cross compiler then don't configure newlib.
1311     if test x${is_cross_compiler} != xno ; then
1312       noconfigdirs="$noconfigdirs target-newlib"
1313     fi
1314     noconfigdirs="$noconfigdirs target-libgloss"
1315     # If we are not using a cross compiler, do configure newlib.
1316     # Note however, that newlib will only be configured in this situation
1317     # if the --with-newlib option has been given, because otherwise
1318     # 'target-newlib' will appear in skipdirs.
1319     ;;
1320   i[3456789]86-*-mingw32*)
1321     target_configdirs="$target_configdirs target-mingw"
1322     noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1323
1324     # Can't build gdb for mingw32 if not native.
1325     case "${host}" in
1326       i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1327       *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix gnuserv"
1328          ;;
1329     esac
1330     ;;    
1331   *-*-cygwin*)
1332     target_configdirs="$target_configdirs target-libtermcap target-winsup"
1333     noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1334     # always build newlib.
1335     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1336
1337     # Can't build gdb for Cygwin if not native.
1338     case "${host}" in
1339       *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1340       *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv"
1341          ;;
1342     esac
1343     ;;    
1344   i[3456789]86-*-pe)
1345     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1346     ;;
1347   i[3456789]86-*-sco3.2v5*)
1348     # The linker does not yet know about weak symbols in COFF,
1349     # and is not configured to handle mixed ELF and COFF.
1350     noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1351     ;;
1352   i[3456789]86-*-sco*)
1353     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1354     ;;
1355   i[3456789]86-*-solaris2*)
1356     noconfigdirs="$noconfigdirs target-libgloss"
1357     ;;
1358   i[3456789]86-*-sysv4*)
1359     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1360     ;;
1361   i[3456789]86-*-beos*)
1362     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1363     ;;
1364   m32r-*-*)
1365     noconfigdirs="$noconfigdirs ${libgcj}"
1366     ;;
1367   m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1368     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1369     ;;
1370   m68k-*-elf*)
1371     noconfigdirs="$noconfigdirs ${libgcj}"
1372     ;;
1373   m68k-*-coff*)
1374     noconfigdirs="$noconfigdirs ${libgcj}"
1375     ;;
1376   mcore-*-pe*)
1377   # The EPOC C++ environment does not support exceptions or rtti,
1378   # and so building libstdc++-v3 tends not to always work.
1379     noconfigdirs="$noconfigdirs target-libstdc++-v3"
1380     ;;
1381   mmix-*-*)
1382     noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss"
1383     ;;
1384   mn10200-*-*)
1385     noconfigdirs="$noconfigdirs ${libgcj}"
1386     ;;
1387   mn10300-*-*)
1388     noconfigdirs="$noconfigdirs ${libgcj}"
1389     ;;
1390   powerpc-*-aix*)
1391     # copied from rs6000-*-* entry
1392     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1393     ;;
1394   powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1395     target_configdirs="$target_configdirs target-winsup"
1396     noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}"
1397     # always build newlib.
1398     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1399     ;;
1400     # This is temporary until we can link against shared libraries
1401   powerpcle-*-solaris*)
1402     noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}"
1403     ;;
1404   powerpc-*-beos*)
1405     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1406     ;;
1407   powerpc-*-eabi)
1408     noconfigdirs="$noconfigdirs ${libgcj}"
1409     ;;
1410   rs6000-*-lynxos*)
1411     noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1412     ;;
1413   rs6000-*-aix*)
1414     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1415     ;;
1416   rs6000-*-*)
1417     noconfigdirs="$noconfigdirs gprof ${libgcj}"
1418     ;;
1419   m68k-apollo-*)
1420     noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1421     ;;
1422   mips*-*-irix5*)
1423     # The GNU linker does not support shared libraries.
1424     noconfigdirs="$noconfigdirs ld gprof target-libgloss ${libgcj}"
1425     ;;
1426   mips*-*-irix6*)
1427     # Linking libjava exceeds command-line length limits on at least
1428     # IRIX 6.2, but not on IRIX 6.5.
1429     # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1430     # <oldham@codesourcery.com>
1431     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1432     ;;
1433   mips*-dec-bsd*)
1434     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1435     ;;
1436   mips*-*-bsd*)
1437     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1438     ;;
1439   mipstx39-*-*)
1440     noconfigdirs="$noconfigdirs gprof ${libgcj}"   # same as generic mips
1441     ;;
1442   mips64*-*-linux*)
1443     noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1444     ;;
1445   mips*-*-linux*)
1446     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1447     ;;
1448   mips*-*-*)
1449     noconfigdirs="$noconfigdirs gprof ${libgcj}"
1450     ;;
1451   romp-*-*)
1452     noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1453     ;;
1454   sh-*-*)
1455     case "${host}" in
1456       i[3456789]86-*-vsta) ;; # don't add gprof back in
1457       i[3456789]86-*-go32*) ;; # don't add gprof back in
1458       i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1459       *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1460     esac
1461     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1462     ;;
1463   sh64-*-*)
1464     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1465     ;;
1466   sparc-*-elf*)
1467     noconfigdirs="$noconfigdirs ${libgcj}"
1468     ;;
1469   sparc64-*-elf*)
1470     noconfigdirs="$noconfigdirs ${libgcj}"
1471     ;;
1472   sparclite-*-*)
1473     noconfigdirs="$noconfigdirs ${libgcj}"
1474     ;;
1475   sparc-*-sunos4*)
1476     noconfigdirs="$noconfigdirs ${libgcj}"
1477     if test x${is_cross_compiler} != xno ; then
1478            noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1479     else
1480            use_gnu_ld=no
1481     fi
1482     ;;
1483   sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1484     ;;
1485   v810-*-*)
1486     noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1487     ;;
1488   v850-*-*)
1489     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1490     ;;
1491   v850e-*-*)
1492     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1493     ;;
1494   v850ea-*-*)
1495     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1496     ;;
1497   vax-*-vms)
1498     noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1499     ;;
1500   vax-*-*)
1501     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1502     ;;
1503   xtensa-*-*)
1504     noconfigdirs="$noconfigdirs ${libgcj}"
1505     ;;
1506   ip2k-*-*)
1507     noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1508     ;;
1509   *-*-linux*)
1510     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1511     ;;
1512   *-*-lynxos*)
1513     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1514     ;; 
1515   *-*-*)
1516     noconfigdirs="$noconfigdirs ${libgcj}"
1517     ;;
1518 esac
1519
1520 # If we aren't building newlib, then don't build libgloss, since libgloss
1521 # depends upon some newlib header files.
1522 case "${noconfigdirs}" in
1523   *target-libgloss*) ;;
1524   *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1525 esac
1526
1527 # Work in distributions that contain no compiler tools, like Autoconf.
1528 tentative_cc=""
1529 host_makefile_frag=/dev/null
1530 if test -d ${srcdir}/config ; then
1531 case "${host}" in
1532   m68k-hp-hpux*)
1533     # Avoid "too much defining" errors from HPUX compiler.
1534     tentative_cc="cc -Wp,-H256000"
1535     # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1536     # If it's HP/UX ar, this should be harmless.
1537     RANLIB="ar ts"
1538     ;;
1539   m68k-apollo-sysv*)
1540     tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1541     ;;
1542   m68k-apollo-bsd*)
1543     #None of the Apollo compilers can compile gas or binutils.  The preprocessor
1544     # chokes on bfd, the compiler won't let you assign integers to enums, and
1545     # other problems.  Defining CC to gcc is a questionable way to say "don't use
1546     # the apollo compiler" (the preferred version of GCC could be called cc,
1547     # or whatever), but I'm not sure leaving CC as cc is any better...
1548     #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1549     # Used to have BISON=yacc.
1550     tentative_cc=gcc
1551     ;;
1552   m88k-dg-dgux*)
1553     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1554     ;;
1555   m88k-harris-cxux*)
1556     # Under CX/UX, we want to tell the compiler to use ANSI mode.
1557     tentative_cc="cc -Xa"
1558     host_makefile_frag="config/mh-cxux"
1559     ;;
1560   m88k-motorola-sysv*)
1561     ;;
1562   mips*-dec-ultrix*)
1563     tentative_cc="cc -Wf,-XNg1000"
1564     host_makefile_frag="config/mh-decstation"
1565     ;;
1566   mips*-nec-sysv4*)
1567     # The C compiler on NEC MIPS SVR4 needs bigger tables.
1568     tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1569     host_makefile_frag="config/mh-necv4"
1570     ;;
1571   mips*-sgi-irix4*)
1572     # Tell compiler to use K&R C.  We can't compile under the SGI Ansi
1573     # environment.  Also bump switch table size so that cp-parse will
1574     # compile.  Bump string length limit so linker builds.
1575     tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1576     ;;
1577   mips*-*-sysv4*)
1578     host_makefile_frag="config/mh-sysv4"
1579     ;;
1580   mips*-*-sysv*)
1581     # This is for a MIPS running RISC/os 4.52C.
1582
1583     # This is needed for GDB, but needs to be in the top-level make because
1584     # if a library is compiled with the bsd headers and gets linked with the
1585     # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1586     # a different size).
1587     # ptrace(2) apparently has problems in the BSD environment.  No workaround is
1588     # known except to select the sysv environment.  Could we use /proc instead?
1589     # These "sysv environments" and "bsd environments" often end up being a pain.
1590     #
1591     # This is not part of CFLAGS because perhaps not all C compilers have this
1592     # option.
1593     tentative_cc="cc -systype sysv"
1594     ;;
1595   i370-ibm-opened*)
1596     tentative_cc="c89"
1597     ;;
1598   i[3456789]86-*-sysv5*)
1599     host_makefile_frag="config/mh-sysv5"
1600     ;;
1601   i[3456789]86-*-dgux*)
1602     tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1603     host_makefile_frag="config/mh-dgux386"
1604     ;;
1605   i[3456789]86-ncr-sysv4.3*)
1606     # The MetaWare compiler will generate a copyright message unless you
1607     # turn it off by adding the -Hnocopyr flag.
1608     tentative_cc="cc -Hnocopyr"
1609     ;;
1610   i[3456789]86-ncr-sysv4*)
1611     # for an NCR 3000 (i486/SVR4) system.
1612     # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1613     # This compiler not only emits obnoxious copyright messages every time
1614     # you run it, but it chokes and dies on a whole bunch of GNU source
1615     # files.  Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1616     tentative_cc="/usr/ccs/ATT/cc"
1617     host_makefile_frag="config/mh-ncr3000"
1618     ;;
1619   i[3456789]86-*-sco3.2v5*)
1620     ;;
1621   i[3456789]86-*-sco*)
1622     # The native C compiler botches some simple uses of const.  Unfortunately,
1623     # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1624     tentative_cc="cc -Dconst="
1625     host_makefile_frag="config/mh-sco"
1626     ;;
1627   i[3456789]86-*-udk*)
1628     host_makefile_frag="config/mh-sysv5"
1629     ;;
1630   i[3456789]86-*-solaris2*)
1631     host_makefile_frag="config/mh-sysv4"
1632     ;;
1633   i[3456789]86-*-msdosdjgpp*)
1634     host_makefile_frag="config/mh-djgpp"
1635     ;;
1636   *-cygwin*)
1637     host_makefile_frag="config/mh-cygwin"
1638     ;;
1639   *-mingw32*)
1640     host_makefile_frag="config/mh-mingw32"
1641     ;;
1642   *-interix*)
1643     host_makefile_frag="config/mh-interix"
1644     ;;
1645   vax-*-ultrix2*)
1646     # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1647     tentative_cc=gcc
1648     ;;
1649   *-*-solaris2*)
1650     host_makefile_frag="config/mh-solaris"
1651     ;;
1652   m68k-sun-sunos*)
1653     # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1654     # without overflowing the jump tables (-J says to use a 32 bit table)
1655     tentative_cc="cc -J"
1656     ;;
1657   *-hp-hpux*)
1658     tentative_cc="cc -Wp,-H256000"
1659     ;;
1660   *-*-hiux*)
1661     tentative_cc="cc -Wp,-H256000"
1662     ;;
1663   rs6000-*-lynxos*)
1664     # /bin/cc is less than useful for our purposes.  Always use GCC
1665     tentative_cc="/usr/cygnus/progressive/bin/gcc"
1666     host_makefile_frag="config/mh-lynxrs6k"
1667     ;;
1668   *-*-lynxos*)
1669     # /bin/cc is less than useful for our purposes.  Always use GCC
1670     tentative_cc="/bin/gcc"
1671     ;;
1672   *-*-sysv4*)
1673     host_makefile_frag="config/mh-sysv4"
1674     ;;
1675 esac
1676 fi
1677
1678 # If we aren't going to be using gcc, see if we can extract a definition
1679 # of CC from the fragment.
1680 # Actually, use the 'pre-extracted' version above.
1681 if test -z "${CC}" && test "${build}" = "${host}" ; then
1682   IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}:"
1683   found=
1684   for dir in $PATH; do
1685     test -z "$dir" && dir=.
1686     if test -f $dir/gcc; then
1687       found=yes
1688       break
1689     fi
1690   done
1691   IFS="$save_ifs"
1692   if test -z "${found}" && test -n "${tentative_cc}" ; then
1693     CC=$tentative_cc
1694   fi
1695 fi
1696
1697 if test "${build}" != "${host}" ; then
1698   # If we are doing a Canadian Cross, in which the host and build systems
1699   # are not the same, we set reasonable default values for the tools.
1700
1701   BISON=${BISON-bison}
1702   CC=${CC-${host_alias}-gcc}
1703   CFLAGS=${CFLAGS-"-g -O2"}
1704   CXX=${CXX-${host_alias}-c++}
1705   CXXFLAGS=${CXXFLAGS-"-g -O2"}
1706   CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1707   CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc}
1708   CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
1709   GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
1710   GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
1711   BUILD_PREFIX=${build_alias}-
1712   BUILD_PREFIX_1=${build_alias}-
1713   MAKEINFO=${MAKEINFO-makeinfo}
1714
1715   if test -z "${YACC}" ; then
1716     IFS="${IFS=         }"; save_ifs="$IFS"; IFS="${IFS}:"
1717     for dir in $PATH; do
1718       test -z "$dir" && dir=.
1719       if test -f $dir/bison; then
1720         YACC="bison -y"
1721         break
1722       fi
1723       if test -f $dir/byacc; then
1724         YACC=byacc
1725         break
1726       fi
1727       if test -f $dir/yacc; then
1728         YACC=yacc
1729         break
1730       fi
1731     done
1732     IFS="$save_ifs"
1733     if test -z "${YACC}" ; then
1734       YACC="bison -y"
1735     fi
1736   fi
1737
1738   if test -z "${LEX}" ; then
1739     IFS="${IFS=         }"; save_ifs="$IFS"; IFS="${IFS}:"
1740     for dir in $PATH; do
1741       test -z "$dir" && dir=.
1742       if test -f $dir/flex; then
1743         LEX=flex
1744         break
1745       fi
1746       if test -f $dir/lex; then
1747         LEX=lex
1748         break
1749       fi
1750     done
1751     IFS="$save_ifs"
1752     LEX=${LEX-flex}
1753   fi
1754
1755 else
1756   # Set reasonable default values for some tools even if not Canadian.
1757   # Of course, these are different reasonable default values, originally
1758   # specified directly in the Makefile.
1759   # We don't export, so that autoconf can do its job.
1760   # Note that all these settings are above the fragment inclusion point
1761   # in Makefile.in, so can still be overridden by fragments.
1762   # This is all going to change when we autoconfiscate...
1763
1764   BISON="\$(USUAL_BISON)"
1765   CC_FOR_BUILD="\$(CC)"
1766   GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
1767   BUILD_PREFIX=
1768   BUILD_PREFIX_1=loser-
1769   MAKEINFO="\$(USUAL_MAKEINFO)"
1770   LEX="\$(USUAL_LEX)"
1771   YACC="\$(USUAL_YACC)"
1772
1773   # If CC is still not set, try to get gcc.
1774   cc_prog_is_gcc=
1775   if test -z "${CC}" ; then
1776     IFS="${IFS=         }"; save_ifs="$IFS"; IFS="${IFS}:"
1777     for dir in $PATH; do
1778       test -z "$dir" && dir=.
1779       if test -f $dir/gcc; then
1780         CC="gcc"
1781         cc_prog_is_gcc=yes
1782         echo 'void f(){}' > conftest.c
1783         if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1784           CFLAGS=${CFLAGS-"-g -O2"}
1785           CXXFLAGS=${CXXFLAGS-"-g -O2"}
1786         else
1787           CFLAGS=${CFLAGS-"-O2"}
1788           CXXFLAGS=${CXXFLAGS-"-O2"}
1789         fi
1790         rm -f conftest*
1791         break
1792       fi
1793     done
1794     IFS="$save_ifs"
1795     CC=${CC-cc}
1796   else
1797     # Determine if we are using gcc.
1798     cat > conftest.c <<EOF
1799 #ifdef __GNUC__
1800   yes;
1801 #endif
1802 EOF
1803     if ${CC} -E conftest.c | grep yes >/dev/null 2>&1; then
1804       cc_prog_is_gcc=yes
1805     fi
1806     rm -f conftest.c
1807     if test -z "${CFLAGS}"; then
1808       # Here CC is set but CFLAGS is not.  Use a quick hack to use -O2 if CC
1809       # is set to a version of gcc.
1810       if test "$cc_prog_is_gcc" = yes; then
1811         echo 'void f(){}' > conftest.c
1812         if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1813           CFLAGS=${CFLAGS-"-g -O2"}
1814           CXXFLAGS=${CXXFLAGS-"-g -O2"}
1815         else
1816           CFLAGS=${CFLAGS-"-O2"}
1817           CXXFLAGS=${CXXFLAGS-"-O2"}
1818         fi
1819         rm -f conftest*
1820       fi
1821     fi
1822   fi
1823
1824   # We must set the default linker to the linker used by gcc for the correct
1825   # operation of libtool.  If LD is not defined and we are using gcc, try to
1826   # set the LD default to the ld used by gcc.
1827   if test -z "$LD"; then
1828     if test "$cc_prog_is_gcc" = yes; then
1829       case $build in
1830       *-*-mingw*)
1831         gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
1832       *)
1833         gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
1834       esac
1835       case $gcc_prog_ld in
1836       # Accept absolute paths.
1837       [\\/]* | [A-Za-z]:[\\/]*)
1838         LD="$gcc_prog_ld" ;;
1839       esac
1840     fi
1841   fi
1842
1843   CXX=${CXX-"c++"}
1844   CFLAGS=${CFLAGS-"-g"}
1845   CXXFLAGS=${CXXFLAGS-"-g -O2"}
1846 fi
1847
1848 if test $host != $build; then
1849   ac_tool_prefix=${host_alias}-
1850 else
1851   ac_tool_prefix=
1852 fi
1853
1854 # Extract the first word of "gcc", so it can be a program name with args.
1855 set dummy gcc; ac_word=$2
1856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $ac_word" >&5
1858 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1859   echo $ac_n "(cached) $ac_c" 1>&6
1860 else
1861   if test -n "$CC"; then
1862   ac_cv_prog_CC="$CC" # Let the user override the test.
1863 else
1864   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1865   ac_dummy="$PATH"
1866   for ac_dir in $ac_dummy; do
1867     test -z "$ac_dir" && ac_dir=.
1868     if test -f $ac_dir/$ac_word; then
1869       ac_cv_prog_CC="gcc"
1870       break
1871     fi
1872   done
1873   IFS="$ac_save_ifs"
1874 fi
1875 fi
1876 CC="$ac_cv_prog_CC"
1877 if test -n "$CC"; then
1878   echo "$ac_t""$CC" 1>&6
1879 else
1880   echo "$ac_t""no" 1>&6
1881 fi
1882
1883 if test -z "$CC"; then
1884   # Extract the first word of "cc", so it can be a program name with args.
1885 set dummy cc; ac_word=$2
1886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1887 echo "configure:1888: checking for $ac_word" >&5
1888 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1889   echo $ac_n "(cached) $ac_c" 1>&6
1890 else
1891   if test -n "$CC"; then
1892   ac_cv_prog_CC="$CC" # Let the user override the test.
1893 else
1894   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1895   ac_prog_rejected=no
1896   ac_dummy="$PATH"
1897   for ac_dir in $ac_dummy; do
1898     test -z "$ac_dir" && ac_dir=.
1899     if test -f $ac_dir/$ac_word; then
1900       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1901         ac_prog_rejected=yes
1902         continue
1903       fi
1904       ac_cv_prog_CC="cc"
1905       break
1906     fi
1907   done
1908   IFS="$ac_save_ifs"
1909 if test $ac_prog_rejected = yes; then
1910   # We found a bogon in the path, so make sure we never use it.
1911   set dummy $ac_cv_prog_CC
1912   shift
1913   if test $# -gt 0; then
1914     # We chose a different compiler from the bogus one.
1915     # However, it has the same basename, so the bogon will be chosen
1916     # first if we set CC to just the basename; use the full file name.
1917     shift
1918     set dummy "$ac_dir/$ac_word" "$@"
1919     shift
1920     ac_cv_prog_CC="$@"
1921   fi
1922 fi
1923 fi
1924 fi
1925 CC="$ac_cv_prog_CC"
1926 if test -n "$CC"; then
1927   echo "$ac_t""$CC" 1>&6
1928 else
1929   echo "$ac_t""no" 1>&6
1930 fi
1931
1932   if test -z "$CC"; then
1933     case "`uname -s`" in
1934     *win32* | *WIN32*)
1935       # Extract the first word of "cl", so it can be a program name with args.
1936 set dummy cl; ac_word=$2
1937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_word" >&5
1939 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1940   echo $ac_n "(cached) $ac_c" 1>&6
1941 else
1942   if test -n "$CC"; then
1943   ac_cv_prog_CC="$CC" # Let the user override the test.
1944 else
1945   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1946   ac_dummy="$PATH"
1947   for ac_dir in $ac_dummy; do
1948     test -z "$ac_dir" && ac_dir=.
1949     if test -f $ac_dir/$ac_word; then
1950       ac_cv_prog_CC="cl"
1951       break
1952     fi
1953   done
1954   IFS="$ac_save_ifs"
1955 fi
1956 fi
1957 CC="$ac_cv_prog_CC"
1958 if test -n "$CC"; then
1959   echo "$ac_t""$CC" 1>&6
1960 else
1961   echo "$ac_t""no" 1>&6
1962 fi
1963  ;;
1964     esac
1965   fi
1966   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1967 fi
1968
1969 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1970 echo "configure:1971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1971
1972 ac_ext=c
1973 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1976 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1977 cross_compiling=$ac_cv_prog_cc_cross
1978
1979 cat > conftest.$ac_ext << EOF
1980
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1983
1984 main(){return(0);}
1985 EOF
1986 if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1987   ac_cv_prog_cc_works=yes
1988   # If we can't run a trivial program, we are probably using a cross compiler.
1989   if (./conftest; exit) 2>/dev/null; then
1990     ac_cv_prog_cc_cross=no
1991   else
1992     ac_cv_prog_cc_cross=yes
1993   fi
1994 else
1995   echo "configure: failed program was:" >&5
1996   cat conftest.$ac_ext >&5
1997   ac_cv_prog_cc_works=no
1998 fi
1999 rm -fr conftest*
2000 ac_ext=c
2001 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2002 ac_cpp='$CPP $CPPFLAGS'
2003 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2004 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2005 cross_compiling=$ac_cv_prog_cc_cross
2006
2007 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2008 if test $ac_cv_prog_cc_works = no; then
2009   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2010 fi
2011 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2012 echo "configure:2013: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2013 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2014 cross_compiling=$ac_cv_prog_cc_cross
2015
2016 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2017 echo "configure:2018: checking whether we are using GNU C" >&5
2018 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2019   echo $ac_n "(cached) $ac_c" 1>&6
2020 else
2021   cat > conftest.c <<EOF
2022 #ifdef __GNUC__
2023   yes;
2024 #endif
2025 EOF
2026 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2027   ac_cv_prog_gcc=yes
2028 else
2029   ac_cv_prog_gcc=no
2030 fi
2031 fi
2032
2033 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2034
2035 if test $ac_cv_prog_gcc = yes; then
2036   GCC=yes
2037 else
2038   GCC=
2039 fi
2040
2041 ac_test_CFLAGS="${CFLAGS+set}"
2042 ac_save_CFLAGS="$CFLAGS"
2043 CFLAGS=
2044 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2045 echo "configure:2046: checking whether ${CC-cc} accepts -g" >&5
2046 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2047   echo $ac_n "(cached) $ac_c" 1>&6
2048 else
2049   echo 'void f(){}' > conftest.c
2050 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2051   ac_cv_prog_cc_g=yes
2052 else
2053   ac_cv_prog_cc_g=no
2054 fi
2055 rm -f conftest*
2056
2057 fi
2058
2059 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2060 if test "$ac_test_CFLAGS" = set; then
2061   CFLAGS="$ac_save_CFLAGS"
2062 elif test $ac_cv_prog_cc_g = yes; then
2063   if test "$GCC" = yes; then
2064     CFLAGS="-g -O2"
2065   else
2066     CFLAGS="-g"
2067   fi
2068 else
2069   if test "$GCC" = yes; then
2070     CFLAGS="-O2"
2071   else
2072     CFLAGS=
2073   fi
2074 fi
2075
2076
2077
2078 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2079 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2081 echo "configure:2082: checking for $ac_word" >&5
2082 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2083   echo $ac_n "(cached) $ac_c" 1>&6
2084 else
2085   if test -n "$GNATBIND"; then
2086   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2087 else
2088   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2089   ac_dummy="$PATH"
2090   for ac_dir in $ac_dummy; do
2091     test -z "$ac_dir" && ac_dir=.
2092     if test -f $ac_dir/$ac_word; then
2093       ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2094       break
2095     fi
2096   done
2097   IFS="$ac_save_ifs"
2098 fi
2099 fi
2100 GNATBIND="$ac_cv_prog_GNATBIND"
2101 if test -n "$GNATBIND"; then
2102   echo "$ac_t""$GNATBIND" 1>&6
2103 else
2104   echo "$ac_t""no" 1>&6
2105 fi
2106
2107
2108 if test -z "$ac_cv_prog_GNATBIND"; then
2109 if test -n "$ac_tool_prefix"; then
2110   # Extract the first word of "gnatbind", so it can be a program name with args.
2111 set dummy 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="gnatbind"
2126       break
2127     fi
2128   done
2129   IFS="$ac_save_ifs"
2130   test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2131 fi
2132 fi
2133 GNATBIND="$ac_cv_prog_GNATBIND"
2134 if test -n "$GNATBIND"; then
2135   echo "$ac_t""$GNATBIND" 1>&6
2136 else
2137   echo "$ac_t""no" 1>&6
2138 fi
2139
2140 else
2141   GNATBIND="no"
2142 fi
2143 fi
2144
2145 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2146 echo "configure:2147: checking whether compiler driver understands Ada" >&5
2147 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2148   echo $ac_n "(cached) $ac_c" 1>&6
2149 else
2150   cat >conftest.adb <<EOF
2151 procedure conftest is begin null; end conftest;
2152 EOF
2153 acx_cv_cc_gcc_supports_ada=no
2154 # There is a bug in old released versions of GCC which causes the
2155 # driver to exit successfully when the appropriate language module
2156 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
2157 # Therefore we must check for the error message as well as an
2158 # unsuccessful exit.
2159 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2160 # given a .adb file, but produce no object file.  So we must check
2161 # if an object file was really produced to guard against this.
2162 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2163 if test x"$errors" = x && test -f conftest.$ac_objext; then
2164   acx_cv_cc_gcc_supports_ada=yes
2165   break
2166 fi
2167 rm -f conftest.*
2168 fi
2169
2170 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2171
2172 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2173   have_gnat=yes
2174 else
2175   have_gnat=no
2176 fi
2177
2178
2179 # By default, C is the only stage 1 language.
2180 stage1_languages=c
2181
2182
2183 # Figure out what language subdirectories are present.
2184 # Look if the user specified --enable-languages="..."; if not, use
2185 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2186 # go away some day.
2187 # NB:  embedded tabs in this IF block -- do not untabify
2188 if test -d ${srcdir}/gcc; then
2189   if test x"${enable_languages+set}" != xset; then
2190     if test x"${LANGUAGES+set}" = xset; then
2191       enable_languages="${LANGUAGES}"
2192         echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2193     else
2194       enable_languages=all
2195     fi
2196   else
2197     if test x"${enable_languages}" = x ||
2198        test x"${enable_languages}" = xyes;
2199        then
2200       echo configure.in: --enable-languages needs at least one language argument 1>&2
2201       exit 1
2202     fi
2203   fi
2204   enable_languages=`echo "${enable_languages}" | sed -e 's/[    ,][     ,]*/,/g' -e 's/,$//'`
2205
2206   # First scan to see if an enabled language requires some other language.
2207   # We assume that a given config-lang.in will list all the language
2208   # front ends it requires, even if some are required indirectly.
2209   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2210     case ${lang_frag} in
2211       ..) ;;
2212       # The odd quoting in the next line works around
2213       # an apparent bug in bash 1.12 on linux.
2214       ${srcdir}/gcc/[*]/config-lang.in) ;;
2215       *)
2216         # From the config-lang.in, get $language, $lang_requires
2217         language=
2218         lang_requires=
2219         . ${lang_frag}
2220         for other in ${lang_requires} ; do
2221           case ,${enable_languages}, in
2222             *,$other,*) ;;
2223             *,all,*) ;;
2224             *,$language,*)
2225               echo " \`$other' language required by \`$language'; enabling" 1>&2
2226               enable_languages="${enable_languages},${other}"
2227               ;;
2228           esac
2229         done
2230         ;;
2231     esac
2232   done
2233
2234   new_enable_languages=c
2235   missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2236
2237   for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2238     case ${lang_frag} in
2239       ..) ;;
2240       # The odd quoting in the next line works around
2241       # an apparent bug in bash 1.12 on linux.
2242       ${srcdir}/gcc/[*]/config-lang.in) ;;
2243       *)
2244         # From the config-lang.in, get $language, $target_libs, 
2245         # $lang_dirs, $boot_language, and $build_by_default
2246         language=
2247         target_libs=
2248         lang_dirs=
2249         boot_language=
2250         build_by_default=
2251         . ${lang_frag}
2252         # This is quite sensitive to the ordering of the case statement arms.
2253         case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2254           *::*:*)
2255             echo "${lang_frag} doesn't set \$language." 1>&2
2256             exit 1
2257             ;;
2258           *:ada:no:*)
2259             # Ada was requested with no preexisting GNAT.  Disable unconditionally.
2260             add_this_lang=no
2261             ;;
2262           *,${language},*:*:*:*)
2263             # Language was explicitly selected; include it.
2264             add_this_lang=yes
2265             ;;
2266           *,all,*:*:*:no)
2267             # 'all' was selected, but this is not a default language
2268             # so do not include it.
2269             add_this_lang=no
2270             ;;
2271           *,all,*:*:*:*)
2272             # 'all' was selected and this is a default language; include it.
2273             add_this_lang=yes
2274             ;;
2275           *)
2276             add_this_lang=no
2277             ;;
2278         esac
2279         case $add_this_lang in
2280           no)
2281             # Remove language-dependent dirs.
2282             eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2283             ;;
2284           *)
2285             new_enable_languages="$new_enable_languages,$language"
2286             missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2287             case ${boot_language} in
2288               yes)
2289                 # Add to (comma-separated) list of stage 1 languages.
2290                 stage1_languages="${stage1_languages},${language}"
2291                 ;;
2292             esac
2293             ;;
2294         esac
2295         ;;
2296     esac
2297   done
2298
2299   missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2300   if test "x$missing_languages" != x; then
2301     { echo "configure: error: 
2302 The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; }
2303   fi
2304
2305   if test "x$new_enable_languages" != "x$enable_languages"; then
2306     echo The following languages will be built: ${new_enable_languages}
2307   fi
2308   enable_languages="$new_enable_languages"
2309   ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2310 fi
2311
2312 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
2313 # $target_configdirs.
2314 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2315
2316 notsupp=""
2317 for dir in . $skipdirs $noconfigdirs ; do
2318   dirname=`echo $dir | sed -e s/target-//g`
2319   if test $dir != .  && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2320     configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2321     if test -r $srcdir/$dirname/configure ; then
2322       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2323         true
2324       else
2325         notsupp="$notsupp $dir"
2326       fi
2327     fi
2328   fi
2329   if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2330     target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2331     if test -r $srcdir/$dirname/configure ; then
2332       if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2333         true
2334       else
2335         notsupp="$notsupp $dir"
2336       fi
2337     fi
2338   fi
2339 done
2340
2341 # Sometimes the tools are distributed with libiberty but with no other
2342 # libraries.  In that case, we don't want to build target-libiberty.
2343 if test -n "${target_configdirs}" ; then
2344   others=
2345   for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2346     if test "$i" != "libiberty" ; then
2347       if test -r $srcdir/$i/configure ; then
2348         others=yes;
2349         break;
2350       fi
2351     fi
2352   done
2353   if test -z "${others}" ; then
2354     target_configdirs=
2355   fi
2356 fi
2357
2358 # Quietly strip out all directories which aren't configurable in this tree.
2359 # This relies on all configurable subdirectories being autoconfiscated, which
2360 # is now the case.
2361 configdirs_all="$configdirs"
2362 configdirs=
2363 for i in ${configdirs_all} ; do
2364   if test -f ${srcdir}/$i/configure ; then
2365     configdirs="${configdirs} $i"
2366   fi
2367 done
2368 target_configdirs_all="$target_configdirs"
2369 target_configdirs=
2370 for i in ${target_configdirs_all} ; do
2371   j=`echo $i | sed -e s/target-//g` 
2372   if test -f ${srcdir}/$j/configure ; then
2373     target_configdirs="${target_configdirs} $i"
2374   fi
2375 done
2376
2377 # Produce a warning message for the subdirs we can't configure.
2378 # This isn't especially interesting in the Cygnus tree, but in the individual
2379 # FSF releases, it's important to let people know when their machine isn't
2380 # supported by the one or two programs in a package.
2381
2382 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2383   # If $appdirs is non-empty, at least one of those directories must still
2384   # be configured, or we error out.  (E.g., if the gas release supports a
2385   # specified target in some subdirs but not the gas subdir, we shouldn't
2386   # pretend that all is well.)
2387   if test -n "$appdirs" ; then
2388     for dir in $appdirs ; do
2389       if test -r $dir/Makefile.in ; then
2390         if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2391           appdirs=""
2392           break
2393         fi
2394         if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2395           appdirs=""
2396           break
2397         fi
2398       fi
2399     done
2400     if test -n "$appdirs" ; then
2401       echo "*** This configuration is not supported by this package." 1>&2
2402       exit 1
2403     fi
2404   fi
2405   # Okay, some application will build, or we don't care to check.  Still
2406   # notify of subdirs not getting built.
2407   echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2408   echo "    ${notsupp}" 1>&2
2409   echo "    (Any other directories should still work fine.)" 1>&2
2410 fi
2411
2412 case "$host" in
2413   *msdosdjgpp*)
2414     enable_gdbtk=no ;;
2415 esac
2416
2417 copy_dirs=
2418
2419 # Handle --with-headers=XXX.  If the value is not "yes", the contents of
2420 # the named directory are copied to $(tooldir)/sys-include.
2421 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2422   if test x${is_cross_compiler} = xno ; then
2423     echo 1>&2 '***' --with-headers is only supported when cross compiling
2424     exit 1
2425   fi
2426   if test x"${with_headers}" != xyes ; then
2427     case "${exec_prefixoption}" in
2428     "") x=${prefix} ;;
2429     *) x=${exec_prefix} ;;
2430     esac
2431     copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2432   fi
2433 fi
2434
2435 # Handle --with-libs=XXX.  If the value is not "yes", the contents of
2436 # the name directories are copied to $(tooldir)/lib.  Multiple directories
2437 # are permitted.
2438 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2439   if test x${is_cross_compiler} = xno ; then
2440     echo 1>&2 '***' --with-libs is only supported when cross compiling
2441     exit 1
2442   fi
2443   if test x"${with_libs}" != xyes ; then
2444     # Copy the libraries in reverse order, so that files in the first named
2445     # library override files in subsequent libraries.
2446     case "${exec_prefixoption}" in
2447     "") x=${prefix} ;;
2448     *) x=${exec_prefix} ;;
2449     esac
2450     for l in ${with_libs}; do
2451       copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2452     done
2453   fi
2454 fi
2455
2456 # Handle ${copy_dirs}
2457 set fnord ${copy_dirs}
2458 shift
2459 while test $# != 0 ; do
2460   if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2461     :
2462   else
2463     echo Copying $1 to $2
2464
2465     # Use the install script to create the directory and all required
2466     # parent directories.
2467     if test -d $2 ; then
2468       :
2469     else
2470       echo >config.temp
2471       ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2472     fi
2473
2474     # Copy the directory, assuming we have tar.
2475     # FIXME: Should we use B in the second tar?  Not all systems support it.
2476     (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2477
2478     # It is the responsibility of the user to correctly adjust all
2479     # symlinks.  If somebody can figure out how to handle them correctly
2480     # here, feel free to add the code.
2481
2482     echo $1 > $2/COPIED
2483   fi
2484   shift; shift
2485 done
2486
2487 extra_arflags_for_target=
2488 extra_nmflags_for_target=
2489 extra_ranlibflags_for_target=
2490 target_makefile_frag=/dev/null
2491 case "${target}" in
2492   i[3456789]86-*-netware*)
2493     target_makefile_frag="config/mt-netware"
2494     ;;
2495   powerpc-*-netware*)
2496     target_makefile_frag="config/mt-netware"
2497     ;;
2498   *-*-linux*)
2499     target_makefile_frag="config/mt-linux"
2500     ;;
2501   *-*-aix4.[3456789]* | *-*-aix[56789].*)
2502     # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm 
2503     # commands to handle both 32-bit and 64-bit objects.  These flags are
2504     # harmless if we're using GNU nm or ar.
2505     extra_arflags_for_target=" -X32_64"
2506     extra_nmflags_for_target=" -B -X32_64"
2507     ;;
2508   *-*-darwin*)
2509     # ranlib from Darwin requires the -c flag to look at common symbols.
2510     extra_ranlibflags_for_target=" -c"
2511     ;;
2512   mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2513     target_makefile_frag="config/mt-wince"
2514     ;;
2515 esac
2516
2517 alphaieee_frag=/dev/null
2518 case $target in
2519   alpha*-*-*)
2520     # This just makes sure to use the -mieee option to build target libs.
2521     # This should probably be set individually by each library.
2522     alphaieee_frag="config/mt-alphaieee"
2523     ;;
2524 esac
2525
2526 # If --enable-target-optspace always use -Os instead of -O2 to build
2527 # the target libraries, similarly if it is not specified, use -Os
2528 # on selected platforms.
2529 ospace_frag=/dev/null
2530 case "${enable_target_optspace}:${target}" in
2531   yes:*)
2532     ospace_frag="config/mt-ospace"
2533     ;;
2534   :d30v-*)
2535     ospace_frag="config/mt-d30v"
2536     ;;
2537   :m32r-* | :d10v-* | :fr30-*)
2538     ospace_frag="config/mt-ospace"
2539     ;;
2540   no:* | :*)
2541     ;;
2542   *)
2543     echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2544     ;;
2545 esac
2546
2547 # Set with_gnu_as and with_gnu_ld as appropriate.
2548 #
2549 # This is done by determining whether or not the appropriate directory
2550 # is available, and by checking whether or not specific configurations
2551 # have requested that this magic not happen.
2552
2553 # The command line options always override the explicit settings in 
2554 # configure.in, and the settings in configure.in override this magic.
2555 #
2556 # If the default for a toolchain is to use GNU as and ld, and you don't 
2557 # want to do that, then you should use the --without-gnu-as and
2558 # --without-gnu-ld options for the configure script.
2559
2560 if test x${use_gnu_as} = x &&
2561    echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2562   with_gnu_as=yes
2563   extra_host_args="$extra_host_args --with-gnu-as"
2564 fi
2565
2566 if test x${use_gnu_ld} = x &&
2567    echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2568   with_gnu_ld=yes
2569   extra_host_args="$extra_host_args --with-gnu-ld"
2570 fi
2571
2572 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2573 # can detect this case.
2574
2575 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2576   with_newlib=yes
2577   extra_host_args="$extra_host_args --with-newlib"
2578 fi
2579
2580
2581 # Default to using --with-stabs for certain targets.
2582 if test x${with_stabs} = x ; then
2583   case "${target}" in
2584   mips*-*-irix[56]*)
2585     ;;
2586   mips*-*-* | alpha*-*-osf*)
2587     with_stabs=yes;
2588     extra_host_args="${extra_host_args} --with-stabs"
2589     ;;
2590   esac
2591 fi
2592
2593 # hpux11 in 64bit mode has libraries in a weird place.  Arrange to find
2594 # them automatically.
2595 case "${host}" in
2596   hppa*64*-*-hpux11*)   
2597     extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2598     ;;
2599 esac
2600
2601 # Some systems (e.g., one of the i386-aix systems the gas testers are
2602 # using) don't handle "\$" correctly, so don't use it here.
2603 tooldir='${exec_prefix}'/${target_alias}
2604 build_tooldir=${tooldir}
2605
2606 # Generate default definitions for YACC, M4, LEX.  These are used if the
2607 # Makefile can't locate these programs in objdir.
2608 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2609 for ac_prog in 'bison -y' byacc yacc
2610 do
2611 # Extract the first word of "$ac_prog", so it can be a program name with args.
2612 set dummy $ac_prog; ac_word=$2
2613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2614 echo "configure:2615: checking for $ac_word" >&5
2615 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_YACC'+set}'`\" = set"; then
2616   echo $ac_n "(cached) $ac_c" 1>&6
2617 else
2618   if test -n "$DEFAULT_YACC"; then
2619   ac_cv_prog_DEFAULT_YACC="$DEFAULT_YACC" # Let the user override the test.
2620 else
2621   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2622   ac_dummy="$PATH"
2623   for ac_dir in $ac_dummy; do
2624     test -z "$ac_dir" && ac_dir=.
2625     if test -f $ac_dir/$ac_word; then
2626       ac_cv_prog_DEFAULT_YACC="$ac_prog"
2627       break
2628     fi
2629   done
2630   IFS="$ac_save_ifs"
2631 fi
2632 fi
2633 DEFAULT_YACC="$ac_cv_prog_DEFAULT_YACC"
2634 if test -n "$DEFAULT_YACC"; then
2635   echo "$ac_t""$DEFAULT_YACC" 1>&6
2636 else
2637   echo "$ac_t""no" 1>&6
2638 fi
2639
2640 test -n "$DEFAULT_YACC" && break
2641 done
2642 test -n "$DEFAULT_YACC" || DEFAULT_YACC="$MISSING bison"
2643
2644 for ac_prog in gm4 gnum4 m4
2645 do
2646 # Extract the first word of "$ac_prog", so it can be a program name with args.
2647 set dummy $ac_prog; ac_word=$2
2648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2649 echo "configure:2650: checking for $ac_word" >&5
2650 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_M4'+set}'`\" = set"; then
2651   echo $ac_n "(cached) $ac_c" 1>&6
2652 else
2653   if test -n "$DEFAULT_M4"; then
2654   ac_cv_prog_DEFAULT_M4="$DEFAULT_M4" # Let the user override the test.
2655 else
2656   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2657   ac_dummy="$PATH"
2658   for ac_dir in $ac_dummy; do
2659     test -z "$ac_dir" && ac_dir=.
2660     if test -f $ac_dir/$ac_word; then
2661       ac_cv_prog_DEFAULT_M4="$ac_prog"
2662       break
2663     fi
2664   done
2665   IFS="$ac_save_ifs"
2666 fi
2667 fi
2668 DEFAULT_M4="$ac_cv_prog_DEFAULT_M4"
2669 if test -n "$DEFAULT_M4"; then
2670   echo "$ac_t""$DEFAULT_M4" 1>&6
2671 else
2672   echo "$ac_t""no" 1>&6
2673 fi
2674
2675 test -n "$DEFAULT_M4" && break
2676 done
2677 test -n "$DEFAULT_M4" || DEFAULT_M4="$MISSING m4"
2678
2679 for ac_prog in flex lex
2680 do
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2684 echo "configure:2685: checking for $ac_word" >&5
2685 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_LEX'+set}'`\" = set"; then
2686   echo $ac_n "(cached) $ac_c" 1>&6
2687 else
2688   if test -n "$DEFAULT_LEX"; then
2689   ac_cv_prog_DEFAULT_LEX="$DEFAULT_LEX" # Let the user override the test.
2690 else
2691   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2692   ac_dummy="$PATH"
2693   for ac_dir in $ac_dummy; do
2694     test -z "$ac_dir" && ac_dir=.
2695     if test -f $ac_dir/$ac_word; then
2696       ac_cv_prog_DEFAULT_LEX="$ac_prog"
2697       break
2698     fi
2699   done
2700   IFS="$ac_save_ifs"
2701 fi
2702 fi
2703 DEFAULT_LEX="$ac_cv_prog_DEFAULT_LEX"
2704 if test -n "$DEFAULT_LEX"; then
2705   echo "$ac_t""$DEFAULT_LEX" 1>&6
2706 else
2707   echo "$ac_t""no" 1>&6
2708 fi
2709
2710 test -n "$DEFAULT_LEX" && break
2711 done
2712 test -n "$DEFAULT_LEX" || DEFAULT_LEX="$MISSING flex"
2713
2714
2715 # Create a .gdbinit file which runs the one in srcdir
2716 # and tells GDB to look there for source files.
2717
2718 if test -r ${srcdir}/.gdbinit ; then
2719   case ${srcdir} in
2720     .) ;;
2721     *) cat > ./.gdbinit <<EOF
2722 # ${NO_EDIT}
2723 dir ${srcdir}
2724 dir .
2725 source ${srcdir}/.gdbinit
2726 EOF
2727     ;;
2728   esac
2729 fi
2730
2731 # Make sure that the compiler is able to generate an executable.  If it
2732 # can't, we are probably in trouble.  We don't care whether we can run the
2733 # executable--we might be using a cross compiler--we only care whether it
2734 # can be created.  At this point the main configure script has set CC.
2735 we_are_ok=no
2736 echo "int main () { return 0; }" > conftest.c
2737 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2738 if test $? = 0 ; then
2739   if test -s conftest || test -s conftest.exe ; then
2740     we_are_ok=yes
2741   fi
2742 fi 
2743 case $we_are_ok in
2744   no)
2745     echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2746     echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2747     rm -f conftest*
2748     exit 1
2749     ;;
2750 esac
2751 rm -f conftest*
2752
2753 # The Solaris /usr/ucb/cc compiler does not appear to work.
2754 case "${host}" in
2755   sparc-sun-solaris2*)
2756       CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2757       if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2758           could_use=
2759           test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2760           if test -d /opt/cygnus/bin ; then
2761               if test "$could_use" = "" ; then
2762                   could_use="/opt/cygnus/bin"
2763               else
2764                   could_use="$could_use or /opt/cygnus/bin"
2765               fi
2766           fi
2767         if test "$could_use" = "" ; then
2768             echo "Warning: compilation may fail because you're using"
2769             echo "/usr/ucb/cc.  You should change your PATH or CC "
2770             echo "variable and rerun configure."
2771         else
2772             echo "Warning: compilation may fail because you're using"
2773             echo "/usr/ucb/cc, when you should use the C compiler from"
2774             echo "$could_use.  You should change your"
2775             echo "PATH or CC variable and rerun configure."
2776         fi
2777       fi
2778   ;;
2779 esac
2780
2781 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
2782 # binutils tools will find libbfd.so.
2783 case "${enable_shared}" in
2784   no | "") SET_LIB_PATH= ;;
2785   *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;;
2786 esac
2787
2788 case "${host}" in
2789   *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2790   *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2791 esac
2792
2793 # Record target_configdirs and the configure arguments for target and
2794 # build configuration in Makefile.
2795 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2796
2797 # This is the final value for target_configdirs.  configdirs already
2798 # has its final value, as does build_modules.  It's time to create some 
2799 # lists of valid targets.
2800
2801 all_build_modules=
2802 configure_build_modules=
2803 for module in ${build_modules} ; do
2804   all_build_modules=all-build-${module}
2805   configure_build_modules=configure-build-${module}
2806 done
2807
2808 # Determine whether gdb needs tk/tcl or not.
2809 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2810 # and in that case we want gdb to be built without tk.  Ugh!
2811 # In fact I believe gdb is the *only* package directly dependent on tk,
2812 # so we should be able to put the 'maybe's in unconditionally and
2813 # leave out the maybe dependencies when enable_gdbtk is false.  I'm not
2814 # 100% sure that that's safe though.
2815
2816 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui"
2817 case "$enable_gdbtk" in
2818   no)
2819     GDB_TK="" ;;
2820   yes)
2821     GDB_TK="${gdb_tk}" ;;
2822   *)
2823     # Only add the dependency on gdbtk when GDBtk is part of the gdb
2824     # distro.  Eventually someone will fix this and move Insight, nee
2825     # gdbtk to a separate directory.
2826     if test -d ${srcdir}/gdb/gdbtk ; then
2827       GDB_TK="${gdb_tk}"
2828     else
2829       GDB_TK=""
2830     fi
2831     ;;
2832 esac
2833
2834 # Create the 'maybe dependencies'.  This uses a temporary file.
2835
2836 # While at that, we remove Makefiles if we were started for recursive
2837 # configuration, so that the top-level Makefile reconfigures them,
2838 # like we used to do when configure itself was recursive.
2839 rm -f maybedep.tmp
2840 echo '# maybedep.tmp' > maybedep.tmp
2841
2842 # Make-targets which may need maybe dependencies.
2843 mts="configure all install check clean distclean dvi info install-info"
2844 mts="${mts} installcheck mostlyclean maintainer-clean TAGS"
2845
2846 # Loop over modules and make-targets.
2847 for module in ${build_modules} ; do
2848   if test -z "${no_recursion}" \
2849      && test -f ${build_subdir}/${module}/Makefile; then
2850     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
2851     rm -f ${build_subdir}/${module}/Makefile
2852   fi
2853   for mt in ${mts} ; do
2854     case ${mt} in
2855       install) ;; # No installing build modules.
2856       *) echo "maybe-${mt}-build-${module}: ${mt}-build-${module}" >> maybedep.tmp ;;
2857     esac
2858   done
2859 done
2860 for module in ${configdirs} ; do
2861   if test -z "${no_recursion}" \
2862      && test -f ${module}/Makefile; then
2863     echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
2864     rm -f ${module}/Makefile
2865   fi
2866   for mt in ${mts} ; do
2867     echo "maybe-${mt}-${module}: ${mt}-${module}" >> maybedep.tmp
2868   done
2869 done
2870 for module in ${target_configdirs} ; do
2871   if test -z "${no_recursion}" \
2872      && test -f ${target_subdir}/${module}/Makefile; then
2873     echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
2874     rm -f ${target_subdir}/${module}/Makefile
2875   fi
2876   for mt in ${mts} ; do
2877     echo "maybe-${mt}-target-${module}: ${mt}-target-${module}" >> maybedep.tmp
2878   done
2879 done
2880 maybe_dependencies=maybedep.tmp
2881
2882
2883 # Create the serialization dependencies.  This uses a temporary file.
2884
2885 # Check whether --enable-serial-configure or --disable-serial-configure was given.
2886 if test "${enable_serial_configure+set}" = set; then
2887   enableval="$enable_serial_configure"
2888   :
2889 fi
2890
2891
2892 case ${enable_serial_configure} in
2893   yes)
2894     enable_serial_build_configure=yes
2895     enable_serial_host_configure=yes
2896     enable_serial_target_configure=yes
2897     ;;
2898 esac
2899
2900 # These force 'configure's to be done one at a time, to avoid problems
2901 # with contention over a shared config.cache.
2902 rm -f serdep.tmp
2903 echo '# serdep.tmp' > serdep.tmp
2904 olditem=
2905 test "x${enable_serial_build_configure}" = xyes &&
2906 for item in ${build_configdirs} ; do
2907   case ${olditem} in
2908     "") ;;
2909     *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
2910   esac
2911   olditem=${item}
2912 done
2913 olditem=
2914 test "x${enable_serial_host_configure}" = xyes &&
2915 for item in ${configdirs} ; do
2916   case ${olditem} in
2917     "") ;;
2918     *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
2919   esac
2920   olditem=${item}
2921 done
2922 olditem=
2923 test "x${enable_serial_target_configure}" = xyes &&
2924 for item in ${target_configdirs} ; do
2925   case ${olditem} in
2926     "") ;;
2927     *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
2928   esac
2929   olditem=${item}
2930 done
2931 serialization_dependencies=serdep.tmp
2932
2933
2934 # Base args.  Strip norecursion, cache-file, srcdir, host, build,
2935 # target and nonopt.  These are the ones we might not want to pass
2936 # down to subconfigures.  Also strip program-prefix, program-suffix,
2937 # and program-transform-name, so that we can pass down a consistent
2938 # program-transform-name.  If autoconf has put single quotes around
2939 # any of these arguments (because they contain shell metacharacters)
2940 # then this will fail; in practice this only happens for
2941 # --program-transform-name, so be sure to override --program-transform-name
2942 # at the end of the argument list.
2943 # These will be expanded by make, so quote '$'.
2944 cat <<\EOF_SED > conftestsed
2945 s/ --no[^ ]*/ /g
2946 s/ --c[a-z-]*[= ][^ ]*//g
2947 s/ --sr[a-z-]*[= ][^ ]*//g
2948 s/ --ho[a-z-]*[= ][^ ]*//g
2949 s/ --bu[a-z-]*[= ][^ ]*//g
2950 s/ --t[a-z-]*[= ][^ ]*//g
2951 s/ --program-[pst][a-z-]*[= ][^ ]*//g
2952 s/ -cache-file[= ][^ ]*//g
2953 s/ -srcdir[= ][^ ]*//g
2954 s/ -host[= ][^ ]*//g
2955 s/ -build[= ][^ ]*//g
2956 s/ -target[= ][^ ]*//g
2957 s/ -program-prefix[= ][^ ]*//g
2958 s/ -program-suffix[= ][^ ]*//g
2959 s/ -program-transform-name[= ][^ ]*//g
2960 s/ [^' -][^ ]* / /
2961 s/^ *//;s/ *$//
2962 s,\$,$$,g
2963 EOF_SED
2964 sed -f conftestsed <<EOF_SED > conftestsed.out
2965  ${ac_configure_args} 
2966 EOF_SED
2967 baseargs=`cat conftestsed.out`
2968 rm -f conftestsed conftestsed.out
2969
2970 # Add in --program-transform-name, after --program-prefix and
2971 # --program-suffix have been applied to it.  Autoconf has already
2972 # doubled dollar signs and backslashes in program_transform_name; we want
2973 # the backslashes un-doubled, and then the entire thing wrapped in single
2974 # quotes, because this will be expanded first by make and then by the shell. 
2975 # Also, because we want to override the logic in subdir configure scripts to
2976 # choose program_transform_name, replace any s,x,x, with s,y,y,.
2977 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
2978 ${program_transform_name}
2979 EOF_SED
2980 gcc_transform_name=`cat conftestsed.out`
2981 rm -f conftestsed.out
2982 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2983
2984 # For the build-side libraries, we just need to pretend we're native,
2985 # and not use the same cache file.  Multilibs are neither needed nor
2986 # desired.
2987 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
2988
2989 # For host modules, accept cache file option, or specification as blank.
2990 case "${cache_file}" in
2991 "") # empty
2992   cache_file_option="" ;;
2993 /* | [A-Za-z]:[\\/]* ) # absolute path
2994   cache_file_option="--cache-file=${cache_file}" ;;
2995 *) # relative path
2996   cache_file_option="--cache-file=../${cache_file}" ;;
2997 esac
2998
2999 # Host dirs don't like to share a cache file either, horribly enough.
3000 # This seems to be due to autoconf 2.5x stupidity.
3001 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3002
3003 target_configargs=${baseargs}
3004
3005 # Passing a --with-cross-host argument lets the target libraries know
3006 # whether they are being built with a cross-compiler or being built
3007 # native.  However, it would be better to use other mechanisms to make the
3008 # sorts of decisions they want to make on this basis.  Please consider
3009 # this option to be deprecated.  FIXME.
3010 if test x${is_cross_compiler} = xyes ; then
3011   target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3012 fi
3013
3014 # Default to --enable-multilib.
3015 if test x${enable_multilib} = x ; then
3016   target_configargs="--enable-multilib ${target_configargs}"
3017 fi
3018
3019 # Pass --with-newlib if appropriate.  Note that target_configdirs has
3020 # changed from the earlier setting of with_newlib.
3021 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3022   target_configargs="--with-newlib ${target_configargs}"
3023 fi
3024
3025 # Different target subdirs use different values of certain variables
3026 # (notably CXX).  Worse, multilibs use *lots* of different values.
3027 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3028 # it doesn't automatically accept command-line overrides of them.
3029 # This means it's not safe for target subdirs to share a cache file,
3030 # which is disgusting, but there you have it.  Hopefully this can be
3031 # fixed in future.  It's still worthwhile to use a cache file for each
3032 # directory.  I think.
3033
3034 # Pass the appropriate --host, --build, and --cache-file arguments.
3035 target_configargs="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
3036
3037 # provide a proper gxx_include_dir.
3038 # Note, if you change the default, make sure to fix both here and in
3039 # the gcc and libstdc++-v3 subdirectories.
3040 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
3041 case "${with_gxx_include_dir}" in
3042   yes)
3043     { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
3044     ;;
3045   no | "")
3046     case "${enable_version_specific_runtime_libs}" in
3047       yes) gxx_include_dir='${libsubdir}/include/c++' ;;
3048       *)
3049         . ${srcdir}/config.if
3050         gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;;
3051     esac ;;
3052   *) gxx_include_dir=${with_gxx_include_dir} ;;
3053 esac
3054
3055 FLAGS_FOR_TARGET=
3056 case " $target_configdirs " in
3057  *" newlib "*)
3058   case " $target_configargs " in
3059   *" --with-newlib "*)
3060    case "$target" in
3061    *-cygwin*)
3062      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' ;;
3063    esac
3064
3065    # If we're not building GCC, don't discard standard headers.
3066    if test -d ${srcdir}/gcc; then
3067      FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3068
3069      if test "${build}" != "${host}"; then
3070        # On Canadian crosses, CC_FOR_TARGET will have already been set
3071        # by `configure', so we won't have an opportunity to add -Bgcc/
3072        # to it.  This is right: we don't want to search that directory
3073        # for binaries, but we want the header files in there, so add
3074        # them explicitly.
3075        FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
3076
3077        # Someone might think of using the pre-installed headers on
3078        # Canadian crosses, in case the installed compiler is not fully
3079        # compatible with the compiler being built.  In this case, it
3080        # would be better to flag an error than risking having
3081        # incompatible object files being constructed.  We can't
3082        # guarantee that an error will be flagged, but let's hope the
3083        # compiler will do it, when presented with incompatible header
3084        # files.
3085      fi
3086    fi
3087
3088    case "${target}-${is_cross_compiler}" in
3089    i[3456789]86-*-linux*-no)
3090       # Here host == target, so we don't need to build gcc,
3091       # so we don't want to discard standard headers.
3092       FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3093       ;;
3094    *)
3095       # If we're building newlib, use its generic headers last, but search
3096       # for any libc-related directories first (so make it the last -B
3097       # switch).
3098       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3099       ;;
3100    esac
3101    ;;
3102   esac
3103   ;;
3104 esac
3105
3106 # Allow the user to override the flags for
3107 # our build compiler if desired.
3108 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3109
3110 # On Canadian crosses, we'll be searching the right directories for
3111 # the previously-installed cross compiler, so don't bother to add
3112 # flags for directories within the install tree of the compiler
3113 # being built; programs in there won't even run.
3114 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3115   # Search for pre-installed headers if nothing else fits.
3116   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3117 fi
3118
3119 if test "x${use_gnu_ld}" = x &&
3120    echo " ${configdirs} " | grep " ld " > /dev/null ; then
3121   # Arrange for us to find uninstalled linker scripts.
3122   FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
3123 fi
3124
3125 if test "x${CC_FOR_TARGET+set}" = xset; then
3126   :
3127 elif test -d ${srcdir}/gcc; then
3128   CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
3129 elif test "$host" = "$target"; then
3130   CC_FOR_TARGET='$(CC)'
3131 else
3132   CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
3133 fi
3134 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3135
3136 if test "x${GCJ_FOR_TARGET+set}" = xset; then
3137   :
3138 elif test -d ${srcdir}/gcc; then
3139   GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
3140 elif test "$host" = "$target"; then
3141   GCJ_FOR_TARGET='gcj'
3142 else
3143   GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
3144 fi
3145 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3146
3147 # Don't use libstdc++-v3's flags to configure/build itself.
3148 libstdcxx_flags='`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'
3149 raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3150
3151 if test "x${CXX_FOR_TARGET+set}" = xset; then
3152   if test "x${RAW_CXX_FOR_TARGET+set}" != xset; then
3153     RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3154   fi
3155 elif test -d ${srcdir}/gcc; then
3156   # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3157   # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3158   # default whereas gcc does not.
3159   # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3160   # all other cases.
3161   CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
3162   RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3163 elif test "$host" = "$target"; then
3164   CXX_FOR_TARGET='$(CXX)'
3165   RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3166 else
3167   CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
3168   RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3169 fi
3170 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3171 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3172
3173 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3174 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3175
3176 # We want to defer the evaluation of `cmd`s and shell variables in
3177 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3178 # bootstrap.  We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3179 # quotes, but we still have to duplicate `$'s so that shell variables
3180 # can be expanded by the nested make as shell variables, not as make
3181 # macros.
3182 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3183 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3184
3185 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
3186 CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}"
3187 GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}"
3188 CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}"
3189 RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}"
3190 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}"
3191 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}"
3192
3193 # Makefile fragments.
3194 host_makefile_frag=${srcdir}/${host_makefile_frag}
3195 target_makefile_frag=${srcdir}/${target_makefile_frag}
3196 alphaieee_frag=${srcdir}/${alphaieee_frag}
3197 ospace_frag=${srcdir}/${ospace_frag}
3198
3199
3200
3201
3202
3203 # Miscellanea: directories, flags, etc.
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216 # Build module lists & subconfigure args.
3217
3218
3219
3220
3221 # Host module lists & subconfigure args.
3222
3223
3224
3225 # Target module lists & subconfigure args.
3226
3227
3228
3229 # Build tools.
3230
3231
3232
3233
3234
3235
3236
3237 # Host tools.
3238 ncn_tool_prefix=
3239 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3240 ncn_target_tool_prefix=
3241 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3242
3243  if test -n "$ncn_tool_prefix"; then
3244   # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3245 set dummy ${ncn_tool_prefix}ar; ac_word=$2
3246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3247 echo "configure:3248: checking for $ac_word" >&5
3248 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3249   echo $ac_n "(cached) $ac_c" 1>&6
3250 else
3251   if test -n "$AR"; then
3252   ac_cv_prog_AR="$AR" # Let the user override the test.
3253 else
3254   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3255   ac_dummy="$PATH"
3256   for ac_dir in $ac_dummy; do
3257     test -z "$ac_dir" && ac_dir=.
3258     if test -f $ac_dir/$ac_word; then
3259       ac_cv_prog_AR="${ncn_tool_prefix}ar"
3260       break
3261     fi
3262   done
3263   IFS="$ac_save_ifs"
3264 fi
3265 fi
3266 AR="$ac_cv_prog_AR"
3267 if test -n "$AR"; then
3268   echo "$ac_t""$AR" 1>&6
3269 else
3270   echo "$ac_t""no" 1>&6
3271 fi
3272
3273 fi
3274 if test -z "$ac_cv_prog_AR" ; then
3275   if test $build = $host ; then
3276     ncn_cv_AR=$AR
3277     # Extract the first word of "ar", so it can be a program name with args.
3278 set dummy ar; ac_word=$2
3279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3280 echo "configure:3281: checking for $ac_word" >&5
3281 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
3282   echo $ac_n "(cached) $ac_c" 1>&6
3283 else
3284   if test -n "$ncn_cv_AR"; then
3285   ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
3286 else
3287   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3288   ac_dummy="$PATH"
3289   for ac_dir in $ac_dummy; do
3290     test -z "$ac_dir" && ac_dir=.
3291     if test -f $ac_dir/$ac_word; then
3292       ac_cv_prog_ncn_cv_AR="ar"
3293       break
3294     fi
3295   done
3296   IFS="$ac_save_ifs"
3297   test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3298 fi
3299 fi
3300 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3301 if test -n "$ncn_cv_AR"; then
3302   echo "$ac_t""$ncn_cv_AR" 1>&6
3303 else
3304   echo "$ac_t""no" 1>&6
3305 fi
3306  
3307     AR=$ncn_cv_AR
3308   else
3309     AR="${ncn_tool_prefix}ar"
3310   fi
3311 else
3312   AR="$ac_cv_prog_AR"
3313 fi
3314
3315  if test -n "$ncn_tool_prefix"; then
3316   # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
3317 set dummy ${ncn_tool_prefix}as; ac_word=$2
3318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3319 echo "configure:3320: checking for $ac_word" >&5
3320 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3321   echo $ac_n "(cached) $ac_c" 1>&6
3322 else
3323   if test -n "$AS"; then
3324   ac_cv_prog_AS="$AS" # Let the user override the test.
3325 else
3326   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3327   ac_dummy="$PATH"
3328   for ac_dir in $ac_dummy; do
3329     test -z "$ac_dir" && ac_dir=.
3330     if test -f $ac_dir/$ac_word; then
3331       ac_cv_prog_AS="${ncn_tool_prefix}as"
3332       break
3333     fi
3334   done
3335   IFS="$ac_save_ifs"
3336 fi
3337 fi
3338 AS="$ac_cv_prog_AS"
3339 if test -n "$AS"; then
3340   echo "$ac_t""$AS" 1>&6
3341 else
3342   echo "$ac_t""no" 1>&6
3343 fi
3344
3345 fi
3346 if test -z "$ac_cv_prog_AS" ; then
3347   if test $build = $host ; then
3348     ncn_cv_AS=$AS
3349     # Extract the first word of "as", so it can be a program name with args.
3350 set dummy as; ac_word=$2
3351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3352 echo "configure:3353: checking for $ac_word" >&5
3353 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
3354   echo $ac_n "(cached) $ac_c" 1>&6
3355 else
3356   if test -n "$ncn_cv_AS"; then
3357   ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
3358 else
3359   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3360   ac_dummy="$PATH"
3361   for ac_dir in $ac_dummy; do
3362     test -z "$ac_dir" && ac_dir=.
3363     if test -f $ac_dir/$ac_word; then
3364       ac_cv_prog_ncn_cv_AS="as"
3365       break
3366     fi
3367   done
3368   IFS="$ac_save_ifs"
3369   test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as"
3370 fi
3371 fi
3372 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3373 if test -n "$ncn_cv_AS"; then
3374   echo "$ac_t""$ncn_cv_AS" 1>&6
3375 else
3376   echo "$ac_t""no" 1>&6
3377 fi
3378  
3379     AS=$ncn_cv_AS
3380   else
3381     AS="${ncn_tool_prefix}as"
3382   fi
3383 else
3384   AS="$ac_cv_prog_AS"
3385 fi
3386
3387  if test -n "$ncn_tool_prefix"; then
3388   # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
3389 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3391 echo "configure:3392: checking for $ac_word" >&5
3392 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3393   echo $ac_n "(cached) $ac_c" 1>&6
3394 else
3395   if test -n "$DLLTOOL"; then
3396   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3397 else
3398   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3399   ac_dummy="$PATH"
3400   for ac_dir in $ac_dummy; do
3401     test -z "$ac_dir" && ac_dir=.
3402     if test -f $ac_dir/$ac_word; then
3403       ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool"
3404       break
3405     fi
3406   done
3407   IFS="$ac_save_ifs"
3408 fi
3409 fi
3410 DLLTOOL="$ac_cv_prog_DLLTOOL"
3411 if test -n "$DLLTOOL"; then
3412   echo "$ac_t""$DLLTOOL" 1>&6
3413 else
3414   echo "$ac_t""no" 1>&6
3415 fi
3416
3417 fi
3418 if test -z "$ac_cv_prog_DLLTOOL" ; then
3419   if test $build = $host ; then
3420     ncn_cv_DLLTOOL=$DLLTOOL
3421     # Extract the first word of "dlltool", so it can be a program name with args.
3422 set dummy dlltool; ac_word=$2
3423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3424 echo "configure:3425: checking for $ac_word" >&5
3425 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3426   echo $ac_n "(cached) $ac_c" 1>&6
3427 else
3428   if test -n "$ncn_cv_DLLTOOL"; then
3429   ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
3430 else
3431   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3432   ac_dummy="$PATH"
3433   for ac_dir in $ac_dummy; do
3434     test -z "$ac_dir" && ac_dir=.
3435     if test -f $ac_dir/$ac_word; then
3436       ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3437       break
3438     fi
3439   done
3440   IFS="$ac_save_ifs"
3441   test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3442 fi
3443 fi
3444 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3445 if test -n "$ncn_cv_DLLTOOL"; then
3446   echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3447 else
3448   echo "$ac_t""no" 1>&6
3449 fi
3450  
3451     DLLTOOL=$ncn_cv_DLLTOOL
3452   else
3453     DLLTOOL="${ncn_tool_prefix}dlltool"
3454   fi
3455 else
3456   DLLTOOL="$ac_cv_prog_DLLTOOL"
3457 fi
3458
3459  if test -n "$ncn_tool_prefix"; then
3460   # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
3461 set dummy ${ncn_tool_prefix}ld; ac_word=$2
3462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3463 echo "configure:3464: checking for $ac_word" >&5
3464 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3465   echo $ac_n "(cached) $ac_c" 1>&6
3466 else
3467   if test -n "$LD"; then
3468   ac_cv_prog_LD="$LD" # Let the user override the test.
3469 else
3470   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3471   ac_dummy="$PATH"
3472   for ac_dir in $ac_dummy; do
3473     test -z "$ac_dir" && ac_dir=.
3474     if test -f $ac_dir/$ac_word; then
3475       ac_cv_prog_LD="${ncn_tool_prefix}ld"
3476       break
3477     fi
3478   done
3479   IFS="$ac_save_ifs"
3480 fi
3481 fi
3482 LD="$ac_cv_prog_LD"
3483 if test -n "$LD"; then
3484   echo "$ac_t""$LD" 1>&6
3485 else
3486   echo "$ac_t""no" 1>&6
3487 fi
3488
3489 fi
3490 if test -z "$ac_cv_prog_LD" ; then
3491   if test $build = $host ; then
3492     ncn_cv_LD=$LD
3493     # Extract the first word of "ld", so it can be a program name with args.
3494 set dummy ld; ac_word=$2
3495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3496 echo "configure:3497: checking for $ac_word" >&5
3497 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3498   echo $ac_n "(cached) $ac_c" 1>&6
3499 else
3500   if test -n "$ncn_cv_LD"; then
3501   ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3502 else
3503   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3504   ac_dummy="$PATH"
3505   for ac_dir in $ac_dummy; do
3506     test -z "$ac_dir" && ac_dir=.
3507     if test -f $ac_dir/$ac_word; then
3508       ac_cv_prog_ncn_cv_LD="ld"
3509       break
3510     fi
3511   done
3512   IFS="$ac_save_ifs"
3513   test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld"
3514 fi
3515 fi
3516 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3517 if test -n "$ncn_cv_LD"; then
3518   echo "$ac_t""$ncn_cv_LD" 1>&6
3519 else
3520   echo "$ac_t""no" 1>&6
3521 fi
3522  
3523     LD=$ncn_cv_LD
3524   else
3525     LD="${ncn_tool_prefix}ld"
3526   fi
3527 else
3528   LD="$ac_cv_prog_LD"
3529 fi
3530
3531  if test -n "$ncn_tool_prefix"; then
3532   # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
3533 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3535 echo "configure:3536: checking for $ac_word" >&5
3536 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3537   echo $ac_n "(cached) $ac_c" 1>&6
3538 else
3539   if test -n "$NM"; then
3540   ac_cv_prog_NM="$NM" # Let the user override the test.
3541 else
3542   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3543   ac_dummy="$PATH"
3544   for ac_dir in $ac_dummy; do
3545     test -z "$ac_dir" && ac_dir=.
3546     if test -f $ac_dir/$ac_word; then
3547       ac_cv_prog_NM="${ncn_tool_prefix}nm"
3548       break
3549     fi
3550   done
3551   IFS="$ac_save_ifs"
3552 fi
3553 fi
3554 NM="$ac_cv_prog_NM"
3555 if test -n "$NM"; then
3556   echo "$ac_t""$NM" 1>&6
3557 else
3558   echo "$ac_t""no" 1>&6
3559 fi
3560
3561 fi
3562 if test -z "$ac_cv_prog_NM" ; then
3563   if test $build = $host ; then
3564     ncn_cv_NM=$NM
3565     # Extract the first word of "nm", so it can be a program name with args.
3566 set dummy nm; ac_word=$2
3567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3568 echo "configure:3569: checking for $ac_word" >&5
3569 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3570   echo $ac_n "(cached) $ac_c" 1>&6
3571 else
3572   if test -n "$ncn_cv_NM"; then
3573   ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3574 else
3575   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3576   ac_dummy="$PATH"
3577   for ac_dir in $ac_dummy; do
3578     test -z "$ac_dir" && ac_dir=.
3579     if test -f $ac_dir/$ac_word; then
3580       ac_cv_prog_ncn_cv_NM="nm"
3581       break
3582     fi
3583   done
3584   IFS="$ac_save_ifs"
3585   test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm"
3586 fi
3587 fi
3588 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3589 if test -n "$ncn_cv_NM"; then
3590   echo "$ac_t""$ncn_cv_NM" 1>&6
3591 else
3592   echo "$ac_t""no" 1>&6
3593 fi
3594  
3595     NM=$ncn_cv_NM
3596   else
3597     NM="${ncn_tool_prefix}nm"
3598   fi
3599 else
3600   NM="$ac_cv_prog_NM"
3601 fi
3602
3603  if test -n "$ncn_tool_prefix"; then
3604   # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
3605 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3607 echo "configure:3608: checking for $ac_word" >&5
3608 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3609   echo $ac_n "(cached) $ac_c" 1>&6
3610 else
3611   if test -n "$RANLIB"; then
3612   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3613 else
3614   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3615   ac_dummy="$PATH"
3616   for ac_dir in $ac_dummy; do
3617     test -z "$ac_dir" && ac_dir=.
3618     if test -f $ac_dir/$ac_word; then
3619       ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib"
3620       break
3621     fi
3622   done
3623   IFS="$ac_save_ifs"
3624 fi
3625 fi
3626 RANLIB="$ac_cv_prog_RANLIB"
3627 if test -n "$RANLIB"; then
3628   echo "$ac_t""$RANLIB" 1>&6
3629 else
3630   echo "$ac_t""no" 1>&6
3631 fi
3632
3633 fi
3634 if test -z "$ac_cv_prog_RANLIB" ; then
3635   if test $build = $host ; then
3636     ncn_cv_RANLIB=$RANLIB
3637     # Extract the first word of "ranlib", so it can be a program name with args.
3638 set dummy ranlib; ac_word=$2
3639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3640 echo "configure:3641: checking for $ac_word" >&5
3641 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3642   echo $ac_n "(cached) $ac_c" 1>&6
3643 else
3644   if test -n "$ncn_cv_RANLIB"; then
3645   ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3646 else
3647   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3648   ac_dummy="$PATH"
3649   for ac_dir in $ac_dummy; do
3650     test -z "$ac_dir" && ac_dir=.
3651     if test -f $ac_dir/$ac_word; then
3652       ac_cv_prog_ncn_cv_RANLIB="ranlib"
3653       break
3654     fi
3655   done
3656   IFS="$ac_save_ifs"
3657   test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3658 fi
3659 fi
3660 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3661 if test -n "$ncn_cv_RANLIB"; then
3662   echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3663 else
3664   echo "$ac_t""no" 1>&6
3665 fi
3666  
3667     RANLIB=$ncn_cv_RANLIB
3668   else
3669     RANLIB=":"
3670   fi
3671 else
3672   RANLIB="$ac_cv_prog_RANLIB"
3673 fi
3674
3675  if test -n "$ncn_tool_prefix"; then
3676   # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
3677 set dummy ${ncn_tool_prefix}windres; ac_word=$2
3678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3679 echo "configure:3680: checking for $ac_word" >&5
3680 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3681   echo $ac_n "(cached) $ac_c" 1>&6
3682 else
3683   if test -n "$WINDRES"; then
3684   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3685 else
3686   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3687   ac_dummy="$PATH"
3688   for ac_dir in $ac_dummy; do
3689     test -z "$ac_dir" && ac_dir=.
3690     if test -f $ac_dir/$ac_word; then
3691       ac_cv_prog_WINDRES="${ncn_tool_prefix}windres"
3692       break
3693     fi
3694   done
3695   IFS="$ac_save_ifs"
3696 fi
3697 fi
3698 WINDRES="$ac_cv_prog_WINDRES"
3699 if test -n "$WINDRES"; then
3700   echo "$ac_t""$WINDRES" 1>&6
3701 else
3702   echo "$ac_t""no" 1>&6
3703 fi
3704
3705 fi
3706 if test -z "$ac_cv_prog_WINDRES" ; then
3707   if test $build = $host ; then
3708     ncn_cv_WINDRES=$WINDRES
3709     # Extract the first word of "windres", so it can be a program name with args.
3710 set dummy windres; ac_word=$2
3711 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3712 echo "configure:3713: checking for $ac_word" >&5
3713 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
3714   echo $ac_n "(cached) $ac_c" 1>&6
3715 else
3716   if test -n "$ncn_cv_WINDRES"; then
3717   ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
3718 else
3719   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3720   ac_dummy="$PATH"
3721   for ac_dir in $ac_dummy; do
3722     test -z "$ac_dir" && ac_dir=.
3723     if test -f $ac_dir/$ac_word; then
3724       ac_cv_prog_ncn_cv_WINDRES="windres"
3725       break
3726     fi
3727   done
3728   IFS="$ac_save_ifs"
3729   test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres"
3730 fi
3731 fi
3732 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
3733 if test -n "$ncn_cv_WINDRES"; then
3734   echo "$ac_t""$ncn_cv_WINDRES" 1>&6
3735 else
3736   echo "$ac_t""no" 1>&6
3737 fi
3738  
3739     WINDRES=$ncn_cv_WINDRES
3740   else
3741     WINDRES="${ncn_tool_prefix}windres"
3742   fi
3743 else
3744   WINDRES="$ac_cv_prog_WINDRES"
3745 fi
3746
3747  if test -n "$ncn_tool_prefix"; then
3748   # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
3749 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
3750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3751 echo "configure:3752: checking for $ac_word" >&5
3752 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
3753   echo $ac_n "(cached) $ac_c" 1>&6
3754 else
3755   if test -n "$OBJCOPY"; then
3756   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3757 else
3758   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3759   ac_dummy="$PATH"
3760   for ac_dir in $ac_dummy; do
3761     test -z "$ac_dir" && ac_dir=.
3762     if test -f $ac_dir/$ac_word; then
3763       ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy"
3764       break
3765     fi
3766   done
3767   IFS="$ac_save_ifs"
3768 fi
3769 fi
3770 OBJCOPY="$ac_cv_prog_OBJCOPY"
3771 if test -n "$OBJCOPY"; then
3772   echo "$ac_t""$OBJCOPY" 1>&6
3773 else
3774   echo "$ac_t""no" 1>&6
3775 fi
3776
3777 fi
3778 if test -z "$ac_cv_prog_OBJCOPY" ; then
3779   if test $build = $host ; then
3780     ncn_cv_OBJCOPY=$OBJCOPY
3781     # Extract the first word of "objcopy", so it can be a program name with args.
3782 set dummy objcopy; ac_word=$2
3783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3784 echo "configure:3785: checking for $ac_word" >&5
3785 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
3786   echo $ac_n "(cached) $ac_c" 1>&6
3787 else
3788   if test -n "$ncn_cv_OBJCOPY"; then
3789   ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
3790 else
3791   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3792   ac_dummy="$PATH"
3793   for ac_dir in $ac_dummy; do
3794     test -z "$ac_dir" && ac_dir=.
3795     if test -f $ac_dir/$ac_word; then
3796       ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3797       break
3798     fi
3799   done
3800   IFS="$ac_save_ifs"
3801   test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3802 fi
3803 fi
3804 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
3805 if test -n "$ncn_cv_OBJCOPY"; then
3806   echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
3807 else
3808   echo "$ac_t""no" 1>&6
3809 fi
3810  
3811     OBJCOPY=$ncn_cv_OBJCOPY
3812   else
3813     OBJCOPY="${ncn_tool_prefix}objcopy"
3814   fi
3815 else
3816   OBJCOPY="$ac_cv_prog_OBJCOPY"
3817 fi
3818
3819  if test -n "$ncn_tool_prefix"; then
3820   # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
3821 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
3822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3823 echo "configure:3824: checking for $ac_word" >&5
3824 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3825   echo $ac_n "(cached) $ac_c" 1>&6
3826 else
3827   if test -n "$OBJDUMP"; then
3828   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3829 else
3830   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3831   ac_dummy="$PATH"
3832   for ac_dir in $ac_dummy; do
3833     test -z "$ac_dir" && ac_dir=.
3834     if test -f $ac_dir/$ac_word; then
3835       ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump"
3836       break
3837     fi
3838   done
3839   IFS="$ac_save_ifs"
3840 fi
3841 fi
3842 OBJDUMP="$ac_cv_prog_OBJDUMP"
3843 if test -n "$OBJDUMP"; then
3844   echo "$ac_t""$OBJDUMP" 1>&6
3845 else
3846   echo "$ac_t""no" 1>&6
3847 fi
3848
3849 fi
3850 if test -z "$ac_cv_prog_OBJDUMP" ; then
3851   if test $build = $host ; then
3852     ncn_cv_OBJDUMP=$OBJDUMP
3853     # Extract the first word of "objdump", so it can be a program name with args.
3854 set dummy objdump; ac_word=$2
3855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3856 echo "configure:3857: checking for $ac_word" >&5
3857 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
3858   echo $ac_n "(cached) $ac_c" 1>&6
3859 else
3860   if test -n "$ncn_cv_OBJDUMP"; then
3861   ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
3862 else
3863   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3864   ac_dummy="$PATH"
3865   for ac_dir in $ac_dummy; do
3866     test -z "$ac_dir" && ac_dir=.
3867     if test -f $ac_dir/$ac_word; then
3868       ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3869       break
3870     fi
3871   done
3872   IFS="$ac_save_ifs"
3873   test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3874 fi
3875 fi
3876 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
3877 if test -n "$ncn_cv_OBJDUMP"; then
3878   echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
3879 else
3880   echo "$ac_t""no" 1>&6
3881 fi
3882  
3883     OBJDUMP=$ncn_cv_OBJDUMP
3884   else
3885     OBJDUMP="${ncn_tool_prefix}objdump"
3886   fi
3887 else
3888   OBJDUMP="$ac_cv_prog_OBJDUMP"
3889 fi
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900 # Target tools.
3901  if test -n "$ncn_target_tool_prefix"; then
3902   # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
3903 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
3904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3905 echo "configure:3906: checking for $ac_word" >&5
3906 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
3907   echo $ac_n "(cached) $ac_c" 1>&6
3908 else
3909   if test -n "$CONFIGURED_AR_FOR_TARGET"; then
3910   ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
3911 else
3912   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3913   ac_dummy="$PATH"
3914   for ac_dir in $ac_dummy; do
3915     test -z "$ac_dir" && ac_dir=.
3916     if test -f $ac_dir/$ac_word; then
3917       ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3918       break
3919     fi
3920   done
3921   IFS="$ac_save_ifs"
3922 fi
3923 fi
3924 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
3925 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
3926   echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6
3927 else
3928   echo "$ac_t""no" 1>&6
3929 fi
3930
3931 fi
3932 if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then
3933   if test $build = $target ; then
3934     ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET
3935     # Extract the first word of "ar", so it can be a program name with args.
3936 set dummy ar; ac_word=$2
3937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3938 echo "configure:3939: checking for $ac_word" >&5
3939 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
3940   echo $ac_n "(cached) $ac_c" 1>&6
3941 else
3942   if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
3943   ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
3944 else
3945   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3946   ac_dummy="$PATH"
3947   for ac_dir in $ac_dummy; do
3948     test -z "$ac_dir" && ac_dir=.
3949     if test -f $ac_dir/$ac_word; then
3950       ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
3951       break
3952     fi
3953   done
3954   IFS="$ac_save_ifs"
3955   test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
3956 fi
3957 fi
3958 ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET"
3959 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
3960   echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6
3961 else
3962   echo "$ac_t""no" 1>&6
3963 fi
3964  
3965     CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET
3966   else
3967     CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3968   fi
3969 else
3970   CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
3971 fi
3972
3973  if test -n "$ncn_target_tool_prefix"; then
3974   # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
3975 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
3976 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3977 echo "configure:3978: checking for $ac_word" >&5
3978 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
3979   echo $ac_n "(cached) $ac_c" 1>&6
3980 else
3981   if test -n "$CONFIGURED_AS_FOR_TARGET"; then
3982   ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
3983 else
3984   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3985   ac_dummy="$PATH"
3986   for ac_dir in $ac_dummy; do
3987     test -z "$ac_dir" && ac_dir=.
3988     if test -f $ac_dir/$ac_word; then
3989       ac_cv_prog_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
3990       break
3991     fi
3992   done
3993   IFS="$ac_save_ifs"
3994 fi
3995 fi
3996 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
3997 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
3998   echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6
3999 else
4000   echo "$ac_t""no" 1>&6
4001 fi
4002
4003 fi
4004 if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then
4005   if test $build = $target ; then
4006     ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET
4007     # Extract the first word of "as", so it can be a program name with args.
4008 set dummy as; ac_word=$2
4009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4010 echo "configure:4011: checking for $ac_word" >&5
4011 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4012   echo $ac_n "(cached) $ac_c" 1>&6
4013 else
4014   if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4015   ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4016 else
4017   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4018   ac_dummy="$PATH"
4019   for ac_dir in $ac_dummy; do
4020     test -z "$ac_dir" && ac_dir=.
4021     if test -f $ac_dir/$ac_word; then
4022       ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
4023       break
4024     fi
4025   done
4026   IFS="$ac_save_ifs"
4027   test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
4028 fi
4029 fi
4030 ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET"
4031 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4032   echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6
4033 else
4034   echo "$ac_t""no" 1>&6
4035 fi
4036  
4037     CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET
4038   else
4039     CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
4040   fi
4041 else
4042   CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4043 fi
4044
4045  if test -n "$ncn_target_tool_prefix"; then
4046   # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
4047 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4049 echo "configure:4050: checking for $ac_word" >&5
4050 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4051   echo $ac_n "(cached) $ac_c" 1>&6
4052 else
4053   if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4054   ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4055 else
4056   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4057   ac_dummy="$PATH"
4058   for ac_dir in $ac_dummy; do
4059     test -z "$ac_dir" && ac_dir=.
4060     if test -f $ac_dir/$ac_word; then
4061       ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4062       break
4063     fi
4064   done
4065   IFS="$ac_save_ifs"
4066 fi
4067 fi
4068 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4069 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4070   echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4071 else
4072   echo "$ac_t""no" 1>&6
4073 fi
4074
4075 fi
4076 if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then
4077   if test $build = $target ; then
4078     ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET
4079     # Extract the first word of "dlltool", so it can be a program name with args.
4080 set dummy dlltool; ac_word=$2
4081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4082 echo "configure:4083: checking for $ac_word" >&5
4083 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4084   echo $ac_n "(cached) $ac_c" 1>&6
4085 else
4086   if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4087   ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4088 else
4089   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4090   ac_dummy="$PATH"
4091   for ac_dir in $ac_dummy; do
4092     test -z "$ac_dir" && ac_dir=.
4093     if test -f $ac_dir/$ac_word; then
4094       ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
4095       break
4096     fi
4097   done
4098   IFS="$ac_save_ifs"
4099   test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
4100 fi
4101 fi
4102 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"
4103 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4104   echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4105 else
4106   echo "$ac_t""no" 1>&6
4107 fi
4108  
4109     CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET
4110   else
4111     CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4112   fi
4113 else
4114   CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4115 fi
4116
4117  if test -n "$ncn_target_tool_prefix"; then
4118   # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
4119 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4121 echo "configure:4122: checking for $ac_word" >&5
4122 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4123   echo $ac_n "(cached) $ac_c" 1>&6
4124 else
4125   if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4126   ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4127 else
4128   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4129   ac_dummy="$PATH"
4130   for ac_dir in $ac_dummy; do
4131     test -z "$ac_dir" && ac_dir=.
4132     if test -f $ac_dir/$ac_word; then
4133       ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4134       break
4135     fi
4136   done
4137   IFS="$ac_save_ifs"
4138 fi
4139 fi
4140 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4141 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4142   echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6
4143 else
4144   echo "$ac_t""no" 1>&6
4145 fi
4146
4147 fi
4148 if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then
4149   if test $build = $target ; then
4150     ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET
4151     # Extract the first word of "ld", so it can be a program name with args.
4152 set dummy ld; ac_word=$2
4153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4154 echo "configure:4155: checking for $ac_word" >&5
4155 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4156   echo $ac_n "(cached) $ac_c" 1>&6
4157 else
4158   if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4159   ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4160 else
4161   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4162   ac_dummy="$PATH"
4163   for ac_dir in $ac_dummy; do
4164     test -z "$ac_dir" && ac_dir=.
4165     if test -f $ac_dir/$ac_word; then
4166       ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
4167       break
4168     fi
4169   done
4170   IFS="$ac_save_ifs"
4171   test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
4172 fi
4173 fi
4174 ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET"
4175 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4176   echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6
4177 else
4178   echo "$ac_t""no" 1>&6
4179 fi
4180  
4181     CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET
4182   else
4183     CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4184   fi
4185 else
4186   CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4187 fi
4188
4189  if test -n "$ncn_target_tool_prefix"; then
4190   # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
4191 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4193 echo "configure:4194: checking for $ac_word" >&5
4194 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4195   echo $ac_n "(cached) $ac_c" 1>&6
4196 else
4197   if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4198   ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4199 else
4200   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4201   ac_dummy="$PATH"
4202   for ac_dir in $ac_dummy; do
4203     test -z "$ac_dir" && ac_dir=.
4204     if test -f $ac_dir/$ac_word; then
4205       ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4206       break
4207     fi
4208   done
4209   IFS="$ac_save_ifs"
4210 fi
4211 fi
4212 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4213 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4214   echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6
4215 else
4216   echo "$ac_t""no" 1>&6
4217 fi
4218
4219 fi
4220 if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then
4221   if test $build = $target ; then
4222     ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET
4223     # Extract the first word of "nm", so it can be a program name with args.
4224 set dummy nm; ac_word=$2
4225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4226 echo "configure:4227: checking for $ac_word" >&5
4227 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4228   echo $ac_n "(cached) $ac_c" 1>&6
4229 else
4230   if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4231   ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4232 else
4233   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4234   ac_dummy="$PATH"
4235   for ac_dir in $ac_dummy; do
4236     test -z "$ac_dir" && ac_dir=.
4237     if test -f $ac_dir/$ac_word; then
4238       ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
4239       break
4240     fi
4241   done
4242   IFS="$ac_save_ifs"
4243   test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
4244 fi
4245 fi
4246 ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET"
4247 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4248   echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6
4249 else
4250   echo "$ac_t""no" 1>&6
4251 fi
4252  
4253     CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET
4254   else
4255     CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4256   fi
4257 else
4258   CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4259 fi
4260
4261  if test -n "$ncn_target_tool_prefix"; then
4262   # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
4263 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4265 echo "configure:4266: checking for $ac_word" >&5
4266 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4267   echo $ac_n "(cached) $ac_c" 1>&6
4268 else
4269   if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4270   ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4271 else
4272   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4273   ac_dummy="$PATH"
4274   for ac_dir in $ac_dummy; do
4275     test -z "$ac_dir" && ac_dir=.
4276     if test -f $ac_dir/$ac_word; then
4277       ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib"
4278       break
4279     fi
4280   done
4281   IFS="$ac_save_ifs"
4282 fi
4283 fi
4284 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4285 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4286   echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4287 else
4288   echo "$ac_t""no" 1>&6
4289 fi
4290
4291 fi
4292 if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then
4293   if test $build = $target ; then
4294     ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET
4295     # Extract the first word of "ranlib", so it can be a program name with args.
4296 set dummy ranlib; ac_word=$2
4297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4298 echo "configure:4299: checking for $ac_word" >&5
4299 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4300   echo $ac_n "(cached) $ac_c" 1>&6
4301 else
4302   if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4303   ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4304 else
4305   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4306   ac_dummy="$PATH"
4307   for ac_dir in $ac_dummy; do
4308     test -z "$ac_dir" && ac_dir=.
4309     if test -f $ac_dir/$ac_word; then
4310       ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib"
4311       break
4312     fi
4313   done
4314   IFS="$ac_save_ifs"
4315   test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":"
4316 fi
4317 fi
4318 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"
4319 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4320   echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4321 else
4322   echo "$ac_t""no" 1>&6
4323 fi
4324  
4325     CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET
4326   else
4327     CONFIGURED_RANLIB_FOR_TARGET=":"
4328   fi
4329 else
4330   CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4331 fi
4332
4333  if test -n "$ncn_target_tool_prefix"; then
4334   # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
4335 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4337 echo "configure:4338: checking for $ac_word" >&5
4338 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4339   echo $ac_n "(cached) $ac_c" 1>&6
4340 else
4341   if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4342   ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4343 else
4344   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4345   ac_dummy="$PATH"
4346   for ac_dir in $ac_dummy; do
4347     test -z "$ac_dir" && ac_dir=.
4348     if test -f $ac_dir/$ac_word; then
4349       ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4350       break
4351     fi
4352   done
4353   IFS="$ac_save_ifs"
4354 fi
4355 fi
4356 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4357 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4358   echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4359 else
4360   echo "$ac_t""no" 1>&6
4361 fi
4362
4363 fi
4364 if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then
4365   if test $build = $target ; then
4366     ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET
4367     # Extract the first word of "windres", so it can be a program name with args.
4368 set dummy windres; ac_word=$2
4369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4370 echo "configure:4371: checking for $ac_word" >&5
4371 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4372   echo $ac_n "(cached) $ac_c" 1>&6
4373 else
4374   if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4375   ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4376 else
4377   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4378   ac_dummy="$PATH"
4379   for ac_dir in $ac_dummy; do
4380     test -z "$ac_dir" && ac_dir=.
4381     if test -f $ac_dir/$ac_word; then
4382       ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
4383       break
4384     fi
4385   done
4386   IFS="$ac_save_ifs"
4387   test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
4388 fi
4389 fi
4390 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"
4391 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4392   echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4393 else
4394   echo "$ac_t""no" 1>&6
4395 fi
4396  
4397     CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET
4398   else
4399     CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4400   fi
4401 else
4402   CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4403 fi
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415 # Fix up target tools.
4416 if test "x${build}" = "x${host}" ; then
4417   # In this case, the newly built tools can and should be used,
4418   # so we override the results of the autoconf tests.
4419   # This should really only happen when the tools are actually being built,
4420   # but that's a further refinement.  The new build scheme, where
4421   # tools are built into a structure paralleling where they're installed,
4422   # should also eliminate all of this cleanly.
4423   AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
4424   AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
4425   DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
4426   LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
4427   NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
4428   RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
4429   WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
4430 else
4431   # Just use the ones we found.
4432   AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)"
4433   AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)"
4434   DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)"
4435   LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)"
4436   NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)"
4437   RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)"
4438   WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)"  
4439 fi
4440
4441
4442
4443
4444
4445
4446
4447
4448 # Certain tools may need extra flags.
4449 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4450 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4451 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4452
4453 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4454 echo "configure:4455: checking whether to enable maintainer-specific portions of Makefiles" >&5
4455 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4456 if test "${enable_maintainer_mode+set}" = set; then
4457   enableval="$enable_maintainer_mode"
4458   USE_MAINTAINER_MODE=$enableval
4459 else
4460   USE_MAINTAINER_MODE=no
4461 fi
4462
4463 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4464
4465
4466 if test "$USE_MAINTAINER_MODE" = yes; then
4467   MAINTAINER_MODE_TRUE=
4468   MAINTAINER_MODE_FALSE='#'
4469 else
4470   MAINTAINER_MODE_TRUE='#'
4471   MAINTAINER_MODE_FALSE=
4472 fi      
4473 MAINT=$MAINTAINER_MODE_TRUE
4474
4475 # ---------------------
4476 # GCC bootstrap support
4477 # ---------------------
4478
4479 # Stage specific cflags for build.
4480 stage1_cflags="-g"
4481 case $build in
4482   vax-*-*)
4483     case ${GCC} in
4484       yes) stage1_cflags="-g -Wa,-J" ;;
4485       *) stage1_cflags="-g -J" ;;
4486     esac ;;
4487   powerpc-*-darwin*)
4488     # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
4489     # sources; use -no-cpp-precomp to get to GNU cpp.
4490     # Apple's GCC has bugs in designated initializer handling, so disable
4491     # that too.
4492     stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
4493     ;;
4494 esac
4495
4496
4497 # Enable -Werror in bootstrap stage2 and later.
4498 # Change the default to "no" on release branches.
4499 # Check whether --enable-werror or --disable-werror was given.
4500 if test "${enable_werror+set}" = set; then
4501   enableval="$enable_werror"
4502   :
4503 else
4504   enable_werror=yes
4505 fi
4506
4507 case ${enable_werror} in
4508   yes) stage2_werror_flag="--enable-werror-always" ;;
4509   *) stage2_werror_flag="" ;;
4510 esac
4511
4512
4513 trap '' 1 2 15
4514 cat > confcache <<\EOF
4515 # This file is a shell script that caches the results of configure
4516 # tests run on this system so they can be shared between configure
4517 # scripts and configure runs.  It is not useful on other systems.
4518 # If it contains results you don't want to keep, you may remove or edit it.
4519 #
4520 # By default, configure uses ./config.cache as the cache file,
4521 # creating it if it does not exist already.  You can give configure
4522 # the --cache-file=FILE option to use a different cache file; that is
4523 # what configure does when it calls configure scripts in
4524 # subdirectories, so they share the cache.
4525 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4526 # config.status only pays attention to the cache file if you give it the
4527 # --recheck option to rerun configure.
4528 #
4529 EOF
4530 # The following way of writing the cache mishandles newlines in values,
4531 # but we know of no workaround that is simple, portable, and efficient.
4532 # So, don't put newlines in cache variables' values.
4533 # Ultrix sh set writes to stderr and can't be redirected directly,
4534 # and sets the high bit in the cache file unless we assign to the vars.
4535 (set) 2>&1 |
4536   case `(ac_space=' '; set | grep ac_space) 2>&1` in
4537   *ac_space=\ *)
4538     # `set' does not quote correctly, so add quotes (double-quote substitution
4539     # turns \\\\ into \\, and sed turns \\ into \).
4540     sed -n \
4541       -e "s/'/'\\\\''/g" \
4542       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4543     ;;
4544   *)
4545     # `set' quotes correctly as required by POSIX, so do not add quotes.
4546     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4547     ;;
4548   esac >> confcache
4549 if cmp -s $cache_file confcache; then
4550   :
4551 else
4552   if test -w $cache_file; then
4553     echo "updating cache $cache_file"
4554     cat confcache > $cache_file
4555   else
4556     echo "not updating unwritable cache $cache_file"
4557   fi
4558 fi
4559 rm -f confcache
4560
4561 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4562
4563 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4564 # Let make expand exec_prefix.
4565 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4566
4567 # Any assignment to VPATH causes Sun make to only execute
4568 # the first set of double-colon rules, so remove it if not needed.
4569 # If there is a colon in the path, we need to keep it.
4570 if test "x$srcdir" = x.; then
4571   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
4572 fi
4573
4574 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4575
4576 # Transform confdefs.h into DEFS.
4577 # Protect against shell expansion while executing Makefile rules.
4578 # Protect against Makefile macro expansion.
4579 cat > conftest.defs <<\EOF
4580 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4581 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
4582 s%\[%\\&%g
4583 s%\]%\\&%g
4584 s%\$%$$%g
4585 EOF
4586 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4587 rm -f conftest.defs
4588
4589
4590 # Without the "./", some shells look in PATH for config.status.
4591 : ${CONFIG_STATUS=./config.status}
4592
4593 echo creating $CONFIG_STATUS
4594 rm -f $CONFIG_STATUS
4595 cat > $CONFIG_STATUS <<EOF
4596 #! /bin/sh
4597 # Generated automatically by configure.
4598 # Run this file to recreate the current configuration.
4599 # This directory was configured as follows,
4600 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4601 #
4602 # $0 $ac_configure_args
4603 #
4604 # Compiler output produced by configure, useful for debugging
4605 # configure, is in ./config.log if it exists.
4606
4607 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4608 for ac_option
4609 do
4610   case "\$ac_option" in
4611   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4612     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4613     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4614   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4615     echo "$CONFIG_STATUS generated by autoconf version 2.13"
4616     exit 0 ;;
4617   -help | --help | --hel | --he | --h)
4618     echo "\$ac_cs_usage"; exit 0 ;;
4619   *) echo "\$ac_cs_usage"; exit 1 ;;
4620   esac
4621 done
4622
4623 ac_given_srcdir=$srcdir
4624 ac_given_INSTALL="$INSTALL"
4625
4626 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4627 EOF
4628 cat >> $CONFIG_STATUS <<EOF
4629
4630 # Protect against being on the right side of a sed subst in config.status.
4631 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4632  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4633 $ac_vpsub
4634 $extrasub
4635 s%@SHELL@%$SHELL%g
4636 s%@CFLAGS@%$CFLAGS%g
4637 s%@CPPFLAGS@%$CPPFLAGS%g
4638 s%@CXXFLAGS@%$CXXFLAGS%g
4639 s%@FFLAGS@%$FFLAGS%g
4640 s%@DEFS@%$DEFS%g
4641 s%@LDFLAGS@%$LDFLAGS%g
4642 s%@LIBS@%$LIBS%g
4643 s%@exec_prefix@%$exec_prefix%g
4644 s%@prefix@%$prefix%g
4645 s%@program_transform_name@%$program_transform_name%g
4646 s%@bindir@%$bindir%g
4647 s%@sbindir@%$sbindir%g
4648 s%@libexecdir@%$libexecdir%g
4649 s%@datadir@%$datadir%g
4650 s%@sysconfdir@%$sysconfdir%g
4651 s%@sharedstatedir@%$sharedstatedir%g
4652 s%@localstatedir@%$localstatedir%g
4653 s%@libdir@%$libdir%g
4654 s%@includedir@%$includedir%g
4655 s%@oldincludedir@%$oldincludedir%g
4656 s%@infodir@%$infodir%g
4657 s%@mandir@%$mandir%g
4658 s%@host@%$host%g
4659 s%@host_alias@%$host_alias%g
4660 s%@host_cpu@%$host_cpu%g
4661 s%@host_vendor@%$host_vendor%g
4662 s%@host_os@%$host_os%g
4663 s%@target@%$target%g
4664 s%@target_alias@%$target_alias%g
4665 s%@target_cpu@%$target_cpu%g
4666 s%@target_vendor@%$target_vendor%g
4667 s%@target_os@%$target_os%g
4668 s%@build@%$build%g
4669 s%@build_alias@%$build_alias%g
4670 s%@build_cpu@%$build_cpu%g
4671 s%@build_vendor@%$build_vendor%g
4672 s%@build_os@%$build_os%g
4673 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4674 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4675 s%@INSTALL_DATA@%$INSTALL_DATA%g
4676 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
4677 s%@build_subdir@%$build_subdir%g
4678 s%@host_subdir@%$host_subdir%g
4679 s%@target_subdir@%$target_subdir%g
4680 s%@CC@%$CC%g
4681 s%@GNATBIND@%$GNATBIND%g
4682 s%@stage1_languages@%$stage1_languages%g
4683 s%@DEFAULT_YACC@%$DEFAULT_YACC%g
4684 s%@DEFAULT_M4@%$DEFAULT_M4%g
4685 s%@DEFAULT_LEX@%$DEFAULT_LEX%g
4686 /@maybe_dependencies@/r $maybe_dependencies
4687 s%@maybe_dependencies@%%g
4688 /@serialization_dependencies@/r $serialization_dependencies
4689 s%@serialization_dependencies@%%g
4690 /@host_makefile_frag@/r $host_makefile_frag
4691 s%@host_makefile_frag@%%g
4692 /@target_makefile_frag@/r $target_makefile_frag
4693 s%@target_makefile_frag@%%g
4694 /@alphaieee_frag@/r $alphaieee_frag
4695 s%@alphaieee_frag@%%g
4696 /@ospace_frag@/r $ospace_frag
4697 s%@ospace_frag@%%g
4698 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
4699 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
4700 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
4701 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
4702 s%@gcc_version_trigger@%$gcc_version_trigger%g
4703 s%@gcc_version@%$gcc_version%g
4704 s%@tooldir@%$tooldir%g
4705 s%@build_tooldir@%$build_tooldir%g
4706 s%@GDB_TK@%$GDB_TK%g
4707 s%@gxx_include_dir@%$gxx_include_dir%g
4708 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
4709 s%@build_configargs@%$build_configargs%g
4710 s%@configure_build_modules@%$configure_build_modules%g
4711 s%@all_build_modules@%$all_build_modules%g
4712 s%@host_configargs@%$host_configargs%g
4713 s%@configdirs@%$configdirs%g
4714 s%@target_configargs@%$target_configargs%g
4715 s%@target_configdirs@%$target_configdirs%g
4716 s%@BISON@%$BISON%g
4717 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4718 s%@LEX@%$LEX%g
4719 s%@MAKEINFO@%$MAKEINFO%g
4720 s%@YACC@%$YACC%g
4721 s%@config_shell@%$config_shell%g
4722 s%@AR@%$AR%g
4723 s%@ncn_cv_AR@%$ncn_cv_AR%g
4724 s%@AS@%$AS%g
4725 s%@ncn_cv_AS@%$ncn_cv_AS%g
4726 s%@DLLTOOL@%$DLLTOOL%g
4727 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
4728 s%@LD@%$LD%g
4729 s%@ncn_cv_LD@%$ncn_cv_LD%g
4730 s%@NM@%$NM%g
4731 s%@ncn_cv_NM@%$ncn_cv_NM%g
4732 s%@RANLIB@%$RANLIB%g
4733 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
4734 s%@WINDRES@%$WINDRES%g
4735 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
4736 s%@OBJCOPY@%$OBJCOPY%g
4737 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
4738 s%@OBJDUMP@%$OBJDUMP%g
4739 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
4740 s%@CXX@%$CXX%g
4741 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
4742 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
4743 s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g
4744 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
4745 s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g
4746 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
4747 s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g
4748 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
4749 s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g
4750 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
4751 s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g
4752 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
4753 s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g
4754 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
4755 s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g
4756 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
4757 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
4758 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
4759 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
4760 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
4761 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
4762 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4763 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4764 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
4765 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
4766 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
4767 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
4768 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
4769 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
4770 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
4771 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4772 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4773 s%@MAINT@%$MAINT%g
4774 s%@stage1_cflags@%$stage1_cflags%g
4775 s%@stage2_werror_flag@%$stage2_werror_flag%g
4776
4777 CEOF
4778 EOF
4779
4780 cat >> $CONFIG_STATUS <<\EOF
4781
4782 # Split the substitutions into bite-sized pieces for seds with
4783 # small command number limits, like on Digital OSF/1 and HP-UX.
4784 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4785 ac_file=1 # Number of current file.
4786 ac_beg=1 # First line for current file.
4787 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4788 ac_more_lines=:
4789 ac_sed_cmds=""
4790 while $ac_more_lines; do
4791   if test $ac_beg -gt 1; then
4792     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4793   else
4794     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4795   fi
4796   if test ! -s conftest.s$ac_file; then
4797     ac_more_lines=false
4798     rm -f conftest.s$ac_file
4799   else
4800     if test -z "$ac_sed_cmds"; then
4801       ac_sed_cmds="sed -f conftest.s$ac_file"
4802     else
4803       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4804     fi
4805     ac_file=`expr $ac_file + 1`
4806     ac_beg=$ac_end
4807     ac_end=`expr $ac_end + $ac_max_sed_cmds`
4808   fi
4809 done
4810 if test -z "$ac_sed_cmds"; then
4811   ac_sed_cmds=cat
4812 fi
4813 EOF
4814
4815 cat >> $CONFIG_STATUS <<EOF
4816
4817 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4818 EOF
4819 cat >> $CONFIG_STATUS <<\EOF
4820 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4821   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4822   case "$ac_file" in
4823   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4824        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4825   *) ac_file_in="${ac_file}.in" ;;
4826   esac
4827
4828   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4829
4830   # Remove last slash and all that follows it.  Not all systems have dirname.
4831   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4832   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4833     # The file is in a subdirectory.
4834     test ! -d "$ac_dir" && mkdir "$ac_dir"
4835     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4836     # A "../" for each directory in $ac_dir_suffix.
4837     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4838   else
4839     ac_dir_suffix= ac_dots=
4840   fi
4841
4842   case "$ac_given_srcdir" in
4843   .)  srcdir=.
4844       if test -z "$ac_dots"; then top_srcdir=.
4845       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4846   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4847   *) # Relative path.
4848     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4849     top_srcdir="$ac_dots$ac_given_srcdir" ;;
4850   esac
4851
4852   case "$ac_given_INSTALL" in
4853   [/$]*) INSTALL="$ac_given_INSTALL" ;;
4854   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4855   esac
4856
4857   echo creating "$ac_file"
4858   rm -f "$ac_file"
4859   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4860   case "$ac_file" in
4861   *Makefile*) ac_comsub="1i\\
4862 # $configure_input" ;;
4863   *) ac_comsub= ;;
4864   esac
4865
4866   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4867   sed -e "$ac_comsub
4868 s%@configure_input@%$configure_input%g
4869 s%@srcdir@%$srcdir%g
4870 s%@top_srcdir@%$top_srcdir%g
4871 s%@INSTALL@%$INSTALL%g
4872 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4873 fi; done
4874 rm -f conftest.s*
4875
4876 EOF
4877 cat >> $CONFIG_STATUS <<EOF
4878
4879 EOF
4880 cat >> $CONFIG_STATUS <<\EOF
4881
4882 exit 0
4883 EOF
4884 chmod +x $CONFIG_STATUS
4885 rm -fr confdefs* $ac_clean_files
4886 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4887