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