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