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