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