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