Remove stray gcc/ from ChangeLog.
[official-gcc.git] / configure
blob9179f7fb952281b5e3f83549bf1f5f51b28b6435
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
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."
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'
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
97 ac_prev=
98 for ac_option
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
108 case "$ac_option" in
109 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
110 *) ac_optarg= ;;
111 esac
113 # Accept the important Cygnus configure options, so we can diagnose typos.
115 case "$ac_option" in
117 -bindir | --bindir | --bindi | --bind | --bin | --bi)
118 ac_prev=bindir ;;
119 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
120 bindir="$ac_optarg" ;;
122 -build | --build | --buil | --bui | --bu)
123 ac_prev=build ;;
124 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
125 build="$ac_optarg" ;;
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" ;;
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" ;;
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; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}=no" ;;
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; }
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'" ;;
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" ;;
171 -gas | --gas | --ga | --g)
172 # Obsolete; use --with-gas.
173 with_gas=yes ;;
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
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
225 if test -n "$ac_help"; then
226 echo "--enable and --with options recognized:$ac_help"
228 exit 0 ;;
230 -host | --host | --hos | --ho)
231 ac_prev=host ;;
232 -host=* | --host=* | --hos=* | --ho=*)
233 host="$ac_optarg" ;;
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" ;;
242 -infodir | --infodir | --infodi | --infod | --info | --inf)
243 ac_prev=infodir ;;
244 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
245 infodir="$ac_optarg" ;;
247 -libdir | --libdir | --libdi | --libd)
248 ac_prev=libdir ;;
249 -libdir=* | --libdir=* | --libdi=* | --libd=*)
250 libdir="$ac_optarg" ;;
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" ;;
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" ;;
268 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
269 ac_prev=mandir ;;
270 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
271 mandir="$ac_optarg" ;;
273 -nfp | --nfp | --nf)
274 # Obsolete; use --without-fp.
275 with_fp=no ;;
277 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
278 | --no-cr | --no-c)
279 no_create=yes ;;
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 ;;
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" ;;
294 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
295 ac_prev=prefix ;;
296 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
297 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
331 | -silent | --silent | --silen | --sile | --sil)
332 silent=yes ;;
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" ;;
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" ;;
351 -site | --site | --sit)
352 ac_prev=site ;;
353 -site=* | --site=* | --sit=*)
354 site="$ac_optarg" ;;
356 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
357 ac_prev=srcdir ;;
358 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
359 srcdir="$ac_optarg" ;;
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" ;;
368 -target | --target | --targe | --targ | --tar | --ta | --t)
369 ac_prev=target ;;
370 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
371 target="$ac_optarg" ;;
373 -v | -verbose | --verbose | --verbos | --verbo | --verb)
374 verbose=yes ;;
376 -version | --version | --versio | --versi | --vers)
377 echo "configure generated by autoconf version 2.13"
378 exit 0 ;;
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; }
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'" ;;
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; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}=no" ;;
402 --x)
403 # Obsolete; use --with-x.
404 with_x=yes ;;
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" ;;
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" ;;
420 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
430 nonopt="$ac_option"
433 esac
434 done
436 if test -n "$ac_prev"; then
437 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
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
455 exec 5>./config.log
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
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
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
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
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
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
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=..
508 else
509 ac_srcdir_defaulted=no
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; }
518 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
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"
533 done
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
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
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=
560 else
561 ac_n= ac_c='\c' ac_t=
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
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; }
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.
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
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.
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
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; }
612 echo $ac_n "checking host system type""... $ac_c" 1>&6
613 echo "configure:614: checking host system type" >&5
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
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
633 echo $ac_n "checking target system type""... $ac_c" 1>&6
634 echo "configure:635: checking target system type" >&5
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
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
651 echo $ac_n "checking build system type""... $ac_c" 1>&6
652 echo "configure:653: checking build system type" >&5
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
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
669 test "$host_alias" != "$target_alias" &&
670 test "$program_prefix$program_suffix$program_transform_name" = \
671 NONENONEs,x,x, &&
672 program_prefix=${target_alias}-
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
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"
690 # sed with no file args requires a program.
691 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
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/*) ;;
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.
727 else
728 ac_cv_path_install="$ac_dir/$ac_prog -c"
729 break 2
732 done
734 esac
735 done
736 IFS="$ac_save_IFS"
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"
749 echo "$ac_t""$INSTALL" 1>&6
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}'
755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
757 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
772 rm -f conftestdata_f conftestdata_t
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
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
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
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
827 done
828 IFS="$save_ifs"
829 test -n "${CONFIG_SHELL}" && break
830 done
835 esac
837 config_shell=${CONFIG_SHELL-/bin/sh}
839 progname=$0
840 # if PWD already has a value, it is probably wrong.
841 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
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
853 moveifchange=${srcdir}/move-if-change
855 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
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"
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=.
870 topsrcdir=$srcpwd
872 extra_host_args=
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.
878 # Subdirs will be configured in the order listed in build_configdirs,
879 # configdirs, or target_configdirs; see the serialization section below.
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.
885 # Double entries in build_configdirs, configdirs, or target_configdirs may
886 # cause circular dependencies and break everything horribly.
888 # these library is used by various programs built for the build
889 # environment
891 build_libs="build-libiberty"
893 # these tools are built for the build environment
894 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
896 # these libraries are used by various programs built for the host environment
898 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
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"
907 # libgcj represents the runtime libraries only used by gcj.
908 libgcj="target-libffi \
909 target-zlib \
910 target-qthreads \
911 target-libjava"
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)
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"
929 # these tools are built using the target libraries, and are intended to
930 # run only in the target environment
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
936 target_tools="target-examples target-groff target-gperf target-rda"
938 ################################################################################
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}`
949 ################################################################################
951 srcname="gnu development package"
953 # This gets set non-empty for some net releases of packages.
954 appdirs=""
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
964 # Find the build and target subdir names.
965 case ${build_alias} in
966 "") build_noncanonical=${build} ;;
967 *) build_noncanonical=${build_alias} ;;
968 esac
970 case ${host_alias} in
971 "") host_noncanonical=${build_noncanonical} ;;
972 *) host_noncanonical=${host_alias} ;;
973 esac
975 case ${target_alias} in
976 "") target_noncanonical=${host_noncanonical} ;;
977 *) target_noncanonical=${target_alias} ;;
978 esac
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.
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"
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=.
1007 # No prefix.
1008 target_subdir=${target_noncanonical}
1011 # Skipdirs are removed silently.
1012 skipdirs=
1013 # Noconfigdirs are removed loudly.
1014 noconfigdirs=""
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"
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"
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.
1033 case ${with_x} in
1034 yes | "") ;; # the default value for this tree is that X11 is available
1036 skipdirs="${skipdirs} tk itcl libgui"
1037 # We won't be able to build gdbtk without X.
1038 enable_gdbtk=no
1040 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1041 esac
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"
1047 # Similarly, some are only suitable for cross toolchains.
1048 # Remove these if host=target.
1049 cross_only="target-libgloss target-newlib target-opcodes"
1051 case $is_cross_compiler in
1052 no) skipdirs="${skipdirs} ${cross_only}" ;;
1053 yes) skipdirs="${skipdirs} ${native_only}" ;;
1054 esac
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
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
1071 # Configure extra directories which are host specific
1073 case "${host}" in
1074 *-cygwin*)
1075 configdirs="$configdirs libtermcap" ;;
1076 esac
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=
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.
1086 case "${host}" in
1087 hppa*64*-*-*)
1088 noconfigdirs="$noconfigdirs byacc"
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"
1093 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1094 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
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"
1100 i[3456789]86-*-beos*)
1101 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1103 *-*-cygwin*)
1104 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1106 *-*-netbsd*)
1107 noconfigdirs="$noconfigdirs rcs"
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"
1112 powerpc-*-beos*)
1113 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1115 esac
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
1126 if test "${ENABLE_LIBADA}" != "yes" ; then
1127 noconfigdirs="$noconfigdirs gnattools"
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
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=
1150 # Make sure we get it printed in the list of not supported target libs.
1151 noconfigdirs="$noconfigdirs ${libgcj}"
1153 esac
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.
1162 *-*-freebsd*)
1163 # Enable libmudflap by default in FreeBSD.
1166 # Disable it by default everywhere else.
1167 noconfigdirs="$noconfigdirs target-libmudflap"
1169 esac
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)
1178 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1180 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1182 *-*-darwin* | *-*-aix*)
1185 noconfigdirs="$noconfigdirs target-libgomp"
1187 esac
1191 case "${target}" in
1192 *-*-chorusos)
1193 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1195 powerpc-*-darwin*)
1196 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1197 noconfigdirs="$noconfigdirs sim target-rda"
1199 *-*-darwin*)
1200 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1201 noconfigdirs="$noconfigdirs sim target-rda"
1202 noconfigdirs="$noconfigdirs ${libgcj}"
1204 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1205 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
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
1214 # Skip some stuff that's unsupported on some FreeBSD configurations.
1215 case "${target}" in
1216 i*86-*-*) ;;
1217 alpha*-*-*) ;;
1219 noconfigdirs="$noconfigdirs ${libgcj}"
1221 esac
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"
1230 *-*-netbsd*)
1231 # Skip some stuff on all NetBSD configurations.
1232 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1234 # Skip some stuff that's unsupported on some NetBSD configurations.
1235 case "${target}" in
1236 i*86-*-netbsdelf*) ;;
1237 arm*-*-netbsdelf*) ;;
1239 noconfigdirs="$noconfigdirs ${libgcj}"
1241 esac
1243 *-*-netware*)
1244 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1246 *-*-rtems*)
1247 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
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"
1253 *-*-uclinux*)
1254 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1256 *-*-vxworks*)
1257 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
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"
1265 alpha*-*-*vms*)
1266 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1268 alpha*-*-linux*)
1269 # newlib is not 64 bit ready
1270 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1272 alpha*-*-*)
1273 # newlib is not 64 bit ready
1274 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1276 am33_2.0-*-linux*)
1277 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1279 sh-*-linux*)
1280 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
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"
1295 esac
1297 arc-*-*)
1298 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1300 arm-semi-aof )
1302 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1303 noconfigdirs="$noconfigdirs ${libgcj}"
1305 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1306 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1308 arm*-*-linux-gnueabi)
1309 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1310 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1312 arm*-*-symbianelf*)
1313 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1315 arm-*-pe*)
1316 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1318 thumb-*-coff)
1319 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1321 thumb-*-elf)
1322 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1324 thumb-*-pe)
1325 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1327 arm-*-riscix*)
1328 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1330 avr-*-*)
1331 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1333 bfin-*-*)
1334 noconfigdirs="$noconfigdirs target-libgloss gdb"
1335 if test x${is_cross_compiler} != xno ; then
1336 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1339 c4x-*-* | tic4x-*-*)
1340 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1342 c54x*-*-* | tic54x-*-*)
1343 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
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";;
1357 unsupported_languages="$unsupported_languages fortran"
1358 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1359 esac
1361 crx-*-*)
1362 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1364 d10v-*-*)
1365 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1367 d30v-*-*)
1368 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1370 fr30-*-elf*)
1371 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1373 frv-*-*)
1374 noconfigdirs="$noconfigdirs ${libgcj}"
1376 h8300*-*-*)
1377 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1379 h8500-*-*)
1380 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1382 hppa1.1-*-osf* | hppa1.1-*-bsd* )
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"
1390 parisc*-*-linux* | hppa*-*-linux*)
1392 hppa*-*-*elf* | \
1393 hppa*-*-lites* | \
1394 hppa*-*-openbsd* | \
1395 hppa*64*-*-*)
1396 noconfigdirs="$noconfigdirs ${libgcj}"
1398 hppa*-hp-hpux11*)
1399 noconfigdirs="$noconfigdirs ld shellutils"
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}"
1406 i960-*-*)
1407 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1409 ia64*-*-elf*)
1410 # No gdb support yet.
1411 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1413 ia64*-**-hpux*)
1414 # No gdb or ld support yet.
1415 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1417 i370-*-opened*)
1419 i[3456789]86-*-coff | i[3456789]86-*-elf)
1420 noconfigdirs="$noconfigdirs ${libgcj}"
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
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"
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.
1441 i[3456789]86-*-mingw32*)
1442 target_configdirs="$target_configdirs target-winsup"
1443 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
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."
1455 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1456 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1458 i[3456789]86-*-pe)
1459 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
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}"
1466 i[3456789]86-*-sco*)
1467 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1469 i[3456789]86-*-solaris2*)
1470 noconfigdirs="$noconfigdirs target-libgloss"
1472 i[3456789]86-*-sysv4*)
1473 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1475 i[3456789]86-*-beos*)
1476 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1478 i[3456789]86-*-rdos*)
1479 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1481 m32r-*-*)
1482 noconfigdirs="$noconfigdirs ${libgcj}"
1484 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1485 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1487 m68k-*-elf*)
1488 noconfigdirs="$noconfigdirs ${libgcj}"
1490 m68k-*-coff*)
1491 noconfigdirs="$noconfigdirs ${libgcj}"
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"
1498 mmix-*-*)
1499 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1500 unsupported_languages="$unsupported_languages fortran java"
1502 mn10200-*-*)
1503 noconfigdirs="$noconfigdirs ${libgcj}"
1505 mn10300-*-*)
1506 noconfigdirs="$noconfigdirs ${libgcj}"
1508 mt-*-*)
1509 noconfigdirs="$noconfigdirs sim"
1511 powerpc-*-aix*)
1512 # copied from rs6000-*-* entry
1513 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
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 / /'`
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}"
1525 powerpc-*-beos*)
1526 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1528 powerpc-*-eabi)
1529 noconfigdirs="$noconfigdirs ${libgcj}"
1531 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1533 rs6000-*-lynxos*)
1534 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1536 rs6000-*-aix*)
1537 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1539 rs6000-*-*)
1540 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1542 m68k-apollo-*)
1543 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1545 mips*-*-irix5*)
1546 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
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}"
1555 mips*-dec-bsd*)
1556 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1558 mips*-*-bsd*)
1559 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1561 mipstx39-*-*)
1562 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1564 mips64*-*-linux*)
1565 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1567 mips*-*-linux*)
1568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1570 mips*-*-*)
1571 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1573 romp-*-*)
1574 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1576 sh-*-* | sh64-*-*)
1577 case "${host}" in
1578 i[3456789]86-*-vsta) ;; # don't add gprof back in
1579 i[3456789]86-*-go32*) ;; # don't add gprof back in
1580 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1581 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1582 esac
1583 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1585 sparc-*-elf*)
1586 noconfigdirs="$noconfigdirs ${libgcj}"
1588 sparc64-*-elf*)
1589 noconfigdirs="$noconfigdirs ${libgcj}"
1591 sparclite-*-*)
1592 noconfigdirs="$noconfigdirs ${libgcj}"
1594 sparc-*-sunos4*)
1595 noconfigdirs="$noconfigdirs ${libgcj}"
1596 if test x${is_cross_compiler} != xno ; then
1597 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1598 else
1599 use_gnu_ld=no
1602 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1603 noconfigdirs="$noconfigdirs ${libgcj}"
1605 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1607 v810-*-*)
1608 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1610 v850-*-*)
1611 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1613 v850e-*-*)
1614 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1616 v850ea-*-*)
1617 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1619 vax-*-vms)
1620 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1622 vax-*-*)
1623 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1625 xtensa-*-*)
1626 noconfigdirs="$noconfigdirs ${libgcj}"
1628 ip2k-*-*)
1629 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1631 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1632 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1634 *-*-lynxos*)
1635 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1637 *-*-*)
1638 noconfigdirs="$noconfigdirs ${libgcj}"
1640 esac
1642 # If we aren't building newlib, then don't build libgloss, since libgloss
1643 # depends upon some newlib header files.
1644 case "${noconfigdirs}" in
1645 *target-libgloss*) ;;
1646 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1647 esac
1649 # Work in distributions that contain no compiler tools, like Autoconf.
1650 tentative_cc=""
1651 host_makefile_frag=/dev/null
1652 if test -d ${srcdir}/config ; then
1653 case "${host}" in
1654 m68k-hp-hpux*)
1655 # Avoid "too much defining" errors from HPUX compiler.
1656 tentative_cc="cc -Wp,-H256000"
1657 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1658 # If it's HP/UX ar, this should be harmless.
1659 RANLIB="ar ts"
1661 m68k-apollo-sysv*)
1662 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1664 m68k-apollo-bsd*)
1665 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1666 # chokes on bfd, the compiler won't let you assign integers to enums, and
1667 # other problems. Defining CC to gcc is a questionable way to say "don't use
1668 # the apollo compiler" (the preferred version of GCC could be called cc,
1669 # or whatever), but I'm not sure leaving CC as cc is any better...
1670 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1671 # Used to have BISON=yacc.
1672 tentative_cc=gcc
1674 m88k-dg-dgux*)
1675 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1677 m88k-harris-cxux*)
1678 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1679 tentative_cc="cc -Xa"
1680 host_makefile_frag="config/mh-cxux"
1682 m88k-motorola-sysv*)
1684 mips*-dec-ultrix*)
1685 tentative_cc="cc -Wf,-XNg1000"
1686 host_makefile_frag="config/mh-decstation"
1688 mips*-nec-sysv4*)
1689 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1690 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1691 host_makefile_frag="config/mh-necv4"
1693 mips*-sgi-irix4*)
1694 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1695 # environment. Also bump switch table size so that cp-parse will
1696 # compile. Bump string length limit so linker builds.
1697 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1699 mips*-*-sysv4*)
1700 host_makefile_frag="config/mh-sysv4"
1702 mips*-*-sysv*)
1703 # This is for a MIPS running RISC/os 4.52C.
1705 # This is needed for GDB, but needs to be in the top-level make because
1706 # if a library is compiled with the bsd headers and gets linked with the
1707 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1708 # a different size).
1709 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1710 # known except to select the sysv environment. Could we use /proc instead?
1711 # These "sysv environments" and "bsd environments" often end up being a pain.
1713 # This is not part of CFLAGS because perhaps not all C compilers have this
1714 # option.
1715 tentative_cc="cc -systype sysv"
1717 i370-ibm-opened*)
1718 tentative_cc="c89"
1720 i[3456789]86-*-sysv5*)
1721 host_makefile_frag="config/mh-sysv5"
1723 i[3456789]86-*-dgux*)
1724 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1725 host_makefile_frag="config/mh-dgux386"
1727 i[3456789]86-ncr-sysv4.3*)
1728 # The MetaWare compiler will generate a copyright message unless you
1729 # turn it off by adding the -Hnocopyr flag.
1730 tentative_cc="cc -Hnocopyr"
1732 i[3456789]86-ncr-sysv4*)
1733 # for an NCR 3000 (i486/SVR4) system.
1734 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1735 # This compiler not only emits obnoxious copyright messages every time
1736 # you run it, but it chokes and dies on a whole bunch of GNU source
1737 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1738 tentative_cc="/usr/ccs/ATT/cc"
1739 host_makefile_frag="config/mh-ncr3000"
1741 i[3456789]86-*-sco3.2v5*)
1743 i[3456789]86-*-sco*)
1744 # The native C compiler botches some simple uses of const. Unfortunately,
1745 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1746 tentative_cc="cc -Dconst="
1747 host_makefile_frag="config/mh-sco"
1749 i[3456789]86-*-udk*)
1750 host_makefile_frag="config/mh-sysv5"
1752 i[3456789]86-*-solaris2*)
1753 host_makefile_frag="config/mh-sysv4"
1755 i[3456789]86-*-msdosdjgpp*)
1756 host_makefile_frag="config/mh-djgpp"
1758 *-cygwin*)
1759 host_makefile_frag="config/mh-cygwin"
1761 *-mingw32*)
1763 *-interix*)
1764 host_makefile_frag="config/mh-interix"
1766 vax-*-ultrix2*)
1767 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1768 tentative_cc=gcc
1770 *-*-solaris2*)
1771 host_makefile_frag="config/mh-solaris"
1773 m68k-sun-sunos*)
1774 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1775 # without overflowing the jump tables (-J says to use a 32 bit table)
1776 tentative_cc="cc -J"
1778 *-hp-hpux*)
1779 tentative_cc="cc -Wp,-H256000"
1781 *-*-hiux*)
1782 tentative_cc="cc -Wp,-H256000"
1784 rs6000-*-lynxos*)
1785 # /bin/cc is less than useful for our purposes. Always use GCC
1786 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1787 host_makefile_frag="config/mh-lynxrs6k"
1789 powerpc-*-darwin*)
1790 host_makefile_frag="config/mh-ppc-darwin"
1792 powerpc-*-aix*)
1793 host_makefile_frag="config/mh-ppc-aix"
1795 rs6000-*-aix*)
1796 host_makefile_frag="config/mh-ppc-aix"
1798 *-*-lynxos*)
1799 # /bin/cc is less than useful for our purposes. Always use GCC
1800 tentative_cc="/bin/gcc"
1802 *-*-sysv4*)
1803 host_makefile_frag="config/mh-sysv4"
1805 # This is placed last to prevent interfering with the cases above.
1806 i[3456789]86-*-*)
1807 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1808 host_makefile_frag="config/mh-x86omitfp"
1810 esac
1813 # If we aren't going to be using gcc, see if we can extract a definition
1814 # of CC from the fragment.
1815 # Actually, use the 'pre-extracted' version above.
1816 if test -z "${CC}" && test "${build}" = "${host}" ; then
1817 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1818 found=
1819 for dir in $PATH; do
1820 test -z "$dir" && dir=.
1821 if test -f $dir/gcc; then
1822 found=yes
1823 break
1825 done
1826 IFS="$save_ifs"
1827 if test -z "${found}" && test -n "${tentative_cc}" ; then
1828 CC=$tentative_cc
1832 if test "${build}" != "${host}" ; then
1833 # If we are doing a Canadian Cross, in which the host and build systems
1834 # are not the same, we set reasonable default values for the tools.
1836 CC=${CC-${host_alias}-gcc}
1837 CFLAGS=${CFLAGS-"-g -O2"}
1838 CXX=${CXX-${host_alias}-c++}
1839 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1840 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1842 else
1843 # Set reasonable default values for some tools even if not Canadian.
1844 # Of course, these are different reasonable default values, originally
1845 # specified directly in the Makefile.
1846 # We don't export, so that autoconf can do its job.
1847 # Note that all these settings are above the fragment inclusion point
1848 # in Makefile.in, so can still be overridden by fragments.
1849 # This is all going to change when we autoconfiscate...
1851 CC_FOR_BUILD="\$(CC)"
1852 # Extract the first word of "gcc", so it can be a program name with args.
1853 set dummy gcc; ac_word=$2
1854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $ac_word" >&5
1856 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1858 else
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1863 ac_dummy="$PATH"
1864 for ac_dir in $ac_dummy; do
1865 test -z "$ac_dir" && ac_dir=.
1866 if test -f $ac_dir/$ac_word; then
1867 ac_cv_prog_CC="gcc"
1868 break
1870 done
1871 IFS="$ac_save_ifs"
1874 CC="$ac_cv_prog_CC"
1875 if test -n "$CC"; then
1876 echo "$ac_t""$CC" 1>&6
1877 else
1878 echo "$ac_t""no" 1>&6
1881 if test -z "$CC"; then
1882 # Extract the first word of "cc", so it can be a program name with args.
1883 set dummy cc; ac_word=$2
1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1885 echo "configure:1886: checking for $ac_word" >&5
1886 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1888 else
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC="$CC" # Let the user override the test.
1891 else
1892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1893 ac_prog_rejected=no
1894 ac_dummy="$PATH"
1895 for ac_dir in $ac_dummy; do
1896 test -z "$ac_dir" && ac_dir=.
1897 if test -f $ac_dir/$ac_word; then
1898 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1899 ac_prog_rejected=yes
1900 continue
1902 ac_cv_prog_CC="cc"
1903 break
1905 done
1906 IFS="$ac_save_ifs"
1907 if test $ac_prog_rejected = yes; then
1908 # We found a bogon in the path, so make sure we never use it.
1909 set dummy $ac_cv_prog_CC
1910 shift
1911 if test $# -gt 0; then
1912 # We chose a different compiler from the bogus one.
1913 # However, it has the same basename, so the bogon will be chosen
1914 # first if we set CC to just the basename; use the full file name.
1915 shift
1916 set dummy "$ac_dir/$ac_word" "$@"
1917 shift
1918 ac_cv_prog_CC="$@"
1923 CC="$ac_cv_prog_CC"
1924 if test -n "$CC"; then
1925 echo "$ac_t""$CC" 1>&6
1926 else
1927 echo "$ac_t""no" 1>&6
1930 if test -z "$CC"; then
1931 case "`uname -s`" in
1932 *win32* | *WIN32*)
1933 # Extract the first word of "cl", so it can be a program name with args.
1934 set dummy cl; ac_word=$2
1935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1936 echo "configure:1937: checking for $ac_word" >&5
1937 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1939 else
1940 if test -n "$CC"; then
1941 ac_cv_prog_CC="$CC" # Let the user override the test.
1942 else
1943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1944 ac_dummy="$PATH"
1945 for ac_dir in $ac_dummy; do
1946 test -z "$ac_dir" && ac_dir=.
1947 if test -f $ac_dir/$ac_word; then
1948 ac_cv_prog_CC="cl"
1949 break
1951 done
1952 IFS="$ac_save_ifs"
1955 CC="$ac_cv_prog_CC"
1956 if test -n "$CC"; then
1957 echo "$ac_t""$CC" 1>&6
1958 else
1959 echo "$ac_t""no" 1>&6
1962 esac
1964 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1968 echo "configure:1969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1970 ac_ext=c
1971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1972 ac_cpp='$CPP $CPPFLAGS'
1973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1975 cross_compiling=$ac_cv_prog_cc_cross
1977 cat > conftest.$ac_ext << EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1982 main(){return(0);}
1984 if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1985 ac_cv_prog_cc_works=yes
1986 # If we can't run a trivial program, we are probably using a cross compiler.
1987 if (./conftest; exit) 2>/dev/null; then
1988 ac_cv_prog_cc_cross=no
1989 else
1990 ac_cv_prog_cc_cross=yes
1992 else
1993 echo "configure: failed program was:" >&5
1994 cat conftest.$ac_ext >&5
1995 ac_cv_prog_cc_works=no
1997 rm -fr conftest*
1998 ac_ext=c
1999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2000 ac_cpp='$CPP $CPPFLAGS'
2001 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2002 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2003 cross_compiling=$ac_cv_prog_cc_cross
2005 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2006 if test $ac_cv_prog_cc_works = no; then
2007 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2009 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2010 echo "configure:2011: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2011 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2012 cross_compiling=$ac_cv_prog_cc_cross
2014 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether we are using GNU C" >&5
2016 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2018 else
2019 cat > conftest.c <<EOF
2020 #ifdef __GNUC__
2021 yes;
2022 #endif
2024 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2025 ac_cv_prog_gcc=yes
2026 else
2027 ac_cv_prog_gcc=no
2031 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2033 if test $ac_cv_prog_gcc = yes; then
2034 GCC=yes
2035 else
2036 GCC=
2039 ac_test_CFLAGS="${CFLAGS+set}"
2040 ac_save_CFLAGS="$CFLAGS"
2041 CFLAGS=
2042 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2043 echo "configure:2044: checking whether ${CC-cc} accepts -g" >&5
2044 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2046 else
2047 echo 'void f(){}' > conftest.c
2048 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2049 ac_cv_prog_cc_g=yes
2050 else
2051 ac_cv_prog_cc_g=no
2053 rm -f conftest*
2057 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2058 if test "$ac_test_CFLAGS" = set; then
2059 CFLAGS="$ac_save_CFLAGS"
2060 elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2062 CFLAGS="-g -O2"
2063 else
2064 CFLAGS="-g"
2066 else
2067 if test "$GCC" = yes; then
2068 CFLAGS="-O2"
2069 else
2070 CFLAGS=
2075 # We must set the default linker to the linker used by gcc for the correct
2076 # operation of libtool. If LD is not defined and we are using gcc, try to
2077 # set the LD default to the ld used by gcc.
2078 if test -z "$LD"; then
2079 if test "$GCC" = yes; then
2080 case $build in
2081 *-*-mingw*)
2082 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2084 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2085 esac
2086 case $gcc_prog_ld in
2087 # Accept absolute paths.
2088 [\\/]* | [A-Za-z]:[\\/]*)
2089 LD="$gcc_prog_ld" ;;
2090 esac
2094 CXX=${CXX-"c++"}
2095 CFLAGS=${CFLAGS-"-g"}
2096 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2099 if test $host != $build; then
2100 ac_tool_prefix=${host_alias}-
2101 else
2102 ac_tool_prefix=
2107 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2108 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2110 echo "configure:2111: checking for $ac_word" >&5
2111 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2113 else
2114 if test -n "$GNATBIND"; then
2115 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2116 else
2117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2118 ac_dummy="$PATH"
2119 for ac_dir in $ac_dummy; do
2120 test -z "$ac_dir" && ac_dir=.
2121 if test -f $ac_dir/$ac_word; then
2122 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2123 break
2125 done
2126 IFS="$ac_save_ifs"
2129 GNATBIND="$ac_cv_prog_GNATBIND"
2130 if test -n "$GNATBIND"; then
2131 echo "$ac_t""$GNATBIND" 1>&6
2132 else
2133 echo "$ac_t""no" 1>&6
2137 if test -z "$ac_cv_prog_GNATBIND"; then
2138 if test -n "$ac_tool_prefix"; then
2139 # Extract the first word of "gnatbind", so it can be a program name with args.
2140 set dummy gnatbind; ac_word=$2
2141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2142 echo "configure:2143: checking for $ac_word" >&5
2143 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2145 else
2146 if test -n "$GNATBIND"; then
2147 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2148 else
2149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2150 ac_dummy="$PATH"
2151 for ac_dir in $ac_dummy; do
2152 test -z "$ac_dir" && ac_dir=.
2153 if test -f $ac_dir/$ac_word; then
2154 ac_cv_prog_GNATBIND="gnatbind"
2155 break
2157 done
2158 IFS="$ac_save_ifs"
2159 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2162 GNATBIND="$ac_cv_prog_GNATBIND"
2163 if test -n "$GNATBIND"; then
2164 echo "$ac_t""$GNATBIND" 1>&6
2165 else
2166 echo "$ac_t""no" 1>&6
2169 else
2170 GNATBIND="no"
2174 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2175 echo "configure:2176: checking whether compiler driver understands Ada" >&5
2176 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2178 else
2179 cat >conftest.adb <<EOF
2180 procedure conftest is begin null; end conftest;
2182 acx_cv_cc_gcc_supports_ada=no
2183 # There is a bug in old released versions of GCC which causes the
2184 # driver to exit successfully when the appropriate language module
2185 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2186 # Therefore we must check for the error message as well as an
2187 # unsuccessful exit.
2188 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2189 # given a .adb file, but produce no object file. So we must check
2190 # if an object file was really produced to guard against this.
2191 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2192 if test x"$errors" = x && test -f conftest.$ac_objext; then
2193 acx_cv_cc_gcc_supports_ada=yes
2195 rm -f conftest.*
2198 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2200 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2201 have_gnat=yes
2202 else
2203 have_gnat=no
2206 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2207 echo "configure:2208: checking how to compare bootstrapped objects" >&5
2208 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2210 else
2211 echo abfoo >t1
2212 echo cdfoo >t2
2213 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2214 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2215 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2217 else
2218 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2221 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2222 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2224 else
2225 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2228 rm t1 t2
2232 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2233 do_compare="$gcc_cv_prog_cmp_skip"
2237 # Check for GMP and MPFR
2238 gmplibs=
2239 gmpinc=
2240 have_gmp=yes
2241 # Specify a location for mpfr
2242 # check for this first so it ends up on the link line before gmp.
2243 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2244 if test "${with_mpfr_dir+set}" = set; then
2245 withval="$with_mpfr_dir"
2250 if test "x$with_mpfr_dir" != x; then
2251 gmpinc="-I$with_mpfr_dir"
2252 gmplibs="$with_mpfr_dir/libmpfr.a"
2253 else
2254 gmplibs="-lmpfr"
2257 # Check whether --with-mpfr or --without-mpfr was given.
2258 if test "${with_mpfr+set}" = set; then
2259 withval="$with_mpfr"
2264 if test "x$with_mpfr" != x; then
2265 gmplibs="-L$with_mpfr/lib $gmplibs"
2266 gmpinc="-I$with_mpfr/include"
2269 # Specify a location for gmp
2270 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2271 if test "${with_gmp_dir+set}" = set; then
2272 withval="$with_gmp_dir"
2277 if test "x$with_gmp_dir" != x; then
2278 gmpinc="$gmpinc -I$with_gmp_dir"
2279 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2280 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2281 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2282 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2284 # One of the later tests will catch the error if neither library is present.
2285 else
2286 gmplibs="$gmplibs -lgmp"
2289 # Check whether --with-gmp or --without-gmp was given.
2290 if test "${with_gmp+set}" = set; then
2291 withval="$with_gmp"
2296 if test "x$with_gmp" != x; then
2297 gmplibs="-L$with_gmp/lib $gmplibs"
2298 gmpinc="-I$with_gmp/include $gmpinc"
2301 saved_CFLAGS="$CFLAGS"
2302 CFLAGS="$CFLAGS $gmpinc"
2303 # Check GMP actually works
2304 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2305 echo "configure:2306: checking for correct version of gmp.h" >&5
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 #include "gmp.h"
2310 int main() {
2312 #if __GNU_MP_VERSION < 3
2313 choke me
2314 #endif
2316 ; return 0; }
2318 if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2319 rm -rf conftest*
2320 echo "$ac_t""yes" 1>&6
2321 else
2322 echo "configure: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2324 rm -rf conftest*
2325 echo "$ac_t""no" 1>&6; have_gmp=no
2327 rm -f conftest*
2329 if test x"$have_gmp" = xyes; then
2330 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2331 echo "configure:2332: checking for MPFR" >&5
2333 saved_LIBS="$LIBS"
2334 LIBS="$LIBS $gmplibs"
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2338 #include <gmp.h>
2339 #include <mpfr.h>
2340 int main() {
2341 mpfr_t n; mpfr_init(n);
2342 ; return 0; }
2344 if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2345 rm -rf conftest*
2346 echo "$ac_t""yes" 1>&6
2347 else
2348 echo "configure: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2350 rm -rf conftest*
2351 echo "$ac_t""no" 1>&6; have_gmp=no
2353 rm -f conftest*
2354 LIBS="$saved_LIBS"
2356 CFLAGS="$saved_CFLAGS"
2358 # Flags needed for both GMP and/or MPFR
2362 # By default, C is the only stage 1 language.
2363 stage1_languages=c
2366 # Figure out what language subdirectories are present.
2367 # Look if the user specified --enable-languages="..."; if not, use
2368 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2369 # go away some day.
2370 # NB: embedded tabs in this IF block -- do not untabify
2371 if test -d ${srcdir}/gcc; then
2372 if test x"${enable_languages+set}" != xset; then
2373 if test x"${LANGUAGES+set}" = xset; then
2374 enable_languages="${LANGUAGES}"
2375 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2376 else
2377 enable_languages=all
2379 else
2380 if test x"${enable_languages}" = x ||
2381 test x"${enable_languages}" = xyes;
2382 then
2383 echo configure.in: --enable-languages needs at least one language argument 1>&2
2384 exit 1
2387 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2389 # 'f95' is the old name for the 'fortran' language. We issue a warning
2390 # and make the substitution.
2391 case ,${enable_languages}, in
2392 *,f95,*)
2393 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2394 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2396 esac
2398 # First scan to see if an enabled language requires some other language.
2399 # We assume that a given config-lang.in will list all the language
2400 # front ends it requires, even if some are required indirectly.
2401 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2402 case ${lang_frag} in
2403 ..) ;;
2404 # The odd quoting in the next line works around
2405 # an apparent bug in bash 1.12 on linux.
2406 ${srcdir}/gcc/[*]/config-lang.in) ;;
2408 # From the config-lang.in, get $language, $lang_requires
2409 language=
2410 lang_requires=
2411 . ${lang_frag}
2412 for other in ${lang_requires} ; do
2413 case ,${enable_languages}, in
2414 *,$other,*) ;;
2415 *,all,*) ;;
2416 *,$language,*)
2417 echo " \`$other' language required by \`$language'; enabling" 1>&2
2418 enable_languages="${enable_languages},${other}"
2420 esac
2421 done
2423 esac
2424 done
2426 new_enable_languages=c
2427 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2428 potential_languages=c
2430 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2431 case ${lang_frag} in
2432 ..) ;;
2433 # The odd quoting in the next line works around
2434 # an apparent bug in bash 1.12 on linux.
2435 ${srcdir}/gcc/[*]/config-lang.in) ;;
2437 # From the config-lang.in, get $language, $target_libs,
2438 # $lang_dirs, $boot_language, and $build_by_default
2439 language=
2440 target_libs=
2441 lang_dirs=
2442 subdir_requires=
2443 boot_language=
2444 build_by_default=
2445 need_gmp=
2446 . ${lang_frag}
2447 potential_languages="${potential_languages},${language}"
2448 # This is quite sensitive to the ordering of the case statement arms.
2449 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2450 *::*:*)
2451 echo "${lang_frag} doesn't set \$language." 1>&2
2452 exit 1
2454 *:ada:no:*)
2455 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2456 add_this_lang=no
2458 *,${language},*:*:*:*)
2459 # Language was explicitly selected; include it.
2460 add_this_lang=yes
2462 *,all,*:*:*:no)
2463 # 'all' was selected, but this is not a default language
2464 # so do not include it.
2465 add_this_lang=no
2467 *,all,*:*:*:*)
2468 # 'all' was selected and this is a default language; include it.
2469 add_this_lang=yes
2472 add_this_lang=no
2474 esac
2476 # Disable languages that need other directories if these aren't available.
2477 for i in $subdir_requires; do
2478 test -f "$srcdir/gcc/$i/config-lang.in" && continue
2479 case ,${enable_languages}, in
2480 *,${language},*)
2481 # Specifically requested language; tell them.
2482 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2485 # Silently disable.
2486 add_this_lang=no
2488 esac
2489 done
2491 # Disable languages that need GMP if it isn't available.
2492 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2493 *,${language},*:no:yes)
2494 # Specifically requested language; tell them.
2495 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2497 *:no:yes)
2498 # Silently disable.
2499 add_this_lang=no
2501 esac
2503 # Disable a language that is unsupported by the target.
2504 case " $unsupported_languages " in
2505 *" $language "*)
2506 add_this_lang=no
2508 esac
2510 case $add_this_lang in
2512 # Remove language-dependent dirs.
2513 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2516 new_enable_languages="$new_enable_languages,$language"
2517 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2518 case ${boot_language} in
2519 yes)
2520 # Add to (comma-separated) list of stage 1 languages.
2521 stage1_languages="${stage1_languages},${language}"
2523 esac
2525 esac
2527 esac
2528 done
2530 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2531 if test "x$missing_languages" != x; then
2532 { echo "configure: error:
2533 The following requested languages could not be built: ${missing_languages}
2534 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2537 if test "x$new_enable_languages" != "x$enable_languages"; then
2538 echo The following languages will be built: ${new_enable_languages}
2540 enable_languages="$new_enable_languages"
2541 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2544 # Handle --disable-<component> generically.
2545 for dir in $configdirs $build_configdirs $target_configdirs ; do
2546 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2547 if eval test x\${enable_${dirname}} "=" xno ; then
2548 noconfigdirs="$noconfigdirs $dir"
2550 done
2552 # Check for Boehm's garbage collector
2553 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2554 if test "${enable_objc_gc+set}" = set; then
2555 enableval="$enable_objc_gc"
2556 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2557 *,objc,*:*:yes:*target-boehm-gc*)
2558 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2560 esac
2564 # Make sure we only build Boehm's garbage collector if required.
2565 case ,${enable_languages},:${enable_objc_gc} in
2566 *,objc,*:yes)
2567 # Keep target-boehm-gc if requested for Objective-C.
2570 # Otherwise remove target-boehm-gc depending on target-libjava.
2571 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
2572 noconfigdirs="$noconfigdirs target-boehm-gc"
2575 esac
2577 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2578 # $build_configdirs and $target_configdirs.
2579 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2581 notsupp=""
2582 for dir in . $skipdirs $noconfigdirs ; do
2583 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2584 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2585 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2586 if test -r $srcdir/$dirname/configure ; then
2587 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2588 true
2589 else
2590 notsupp="$notsupp $dir"
2594 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2595 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2596 if test -r $srcdir/$dirname/configure ; then
2597 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2598 true
2599 else
2600 notsupp="$notsupp $dir"
2604 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2605 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2606 if test -r $srcdir/$dirname/configure ; then
2607 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2608 true
2609 else
2610 notsupp="$notsupp $dir"
2614 done
2616 # Sometimes the tools are distributed with libiberty but with no other
2617 # libraries. In that case, we don't want to build target-libiberty.
2618 if test -n "${target_configdirs}" ; then
2619 others=
2620 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2621 if test "$i" != "libiberty" ; then
2622 if test -r $srcdir/$i/configure ; then
2623 others=yes;
2624 break;
2627 done
2628 if test -z "${others}" ; then
2629 target_configdirs=
2633 # Quietly strip out all directories which aren't configurable in this tree.
2634 # This relies on all configurable subdirectories being autoconfiscated, which
2635 # is now the case.
2636 build_configdirs_all="$build_configdirs"
2637 build_configdirs=
2638 for i in ${build_configdirs_all} ; do
2639 j=`echo $i | sed -e s/build-//g`
2640 if test -f ${srcdir}/$j/configure ; then
2641 build_configdirs="${build_configdirs} $i"
2643 done
2645 configdirs_all="$configdirs"
2646 configdirs=
2647 for i in ${configdirs_all} ; do
2648 if test -f ${srcdir}/$i/configure ; then
2649 configdirs="${configdirs} $i"
2651 done
2653 target_configdirs_all="$target_configdirs"
2654 target_configdirs=
2655 for i in ${target_configdirs_all} ; do
2656 j=`echo $i | sed -e s/target-//g`
2657 if test -f ${srcdir}/$j/configure ; then
2658 target_configdirs="${target_configdirs} $i"
2660 done
2662 # Produce a warning message for the subdirs we can't configure.
2663 # This isn't especially interesting in the Cygnus tree, but in the individual
2664 # FSF releases, it's important to let people know when their machine isn't
2665 # supported by the one or two programs in a package.
2667 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2668 # If $appdirs is non-empty, at least one of those directories must still
2669 # be configured, or we error out. (E.g., if the gas release supports a
2670 # specified target in some subdirs but not the gas subdir, we shouldn't
2671 # pretend that all is well.)
2672 if test -n "$appdirs" ; then
2673 for dir in $appdirs ; do
2674 if test -r $dir/Makefile.in ; then
2675 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2676 appdirs=""
2677 break
2679 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2680 appdirs=""
2681 break
2684 done
2685 if test -n "$appdirs" ; then
2686 echo "*** This configuration is not supported by this package." 1>&2
2687 exit 1
2690 # Okay, some application will build, or we don't care to check. Still
2691 # notify of subdirs not getting built.
2692 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2693 echo " ${notsupp}" 1>&2
2694 echo " (Any other directories should still work fine.)" 1>&2
2697 case "$host" in
2698 *msdosdjgpp*)
2699 enable_gdbtk=no ;;
2700 esac
2702 copy_dirs=
2704 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2705 if test "${with_build_sysroot+set}" = set; then
2706 withval="$with_build_sysroot"
2707 if test x"$withval" != x ; then
2708 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2710 else
2711 SYSROOT_CFLAGS_FOR_TARGET=
2716 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2717 # the named directory are copied to $(tooldir)/sys-include.
2718 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2719 if test x${is_cross_compiler} = xno ; then
2720 echo 1>&2 '***' --with-headers is only supported when cross compiling
2721 exit 1
2723 if test x"${with_headers}" != xyes ; then
2724 case "${exec_prefixoption}" in
2725 "") x=${prefix} ;;
2726 *) x=${exec_prefix} ;;
2727 esac
2728 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2732 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2733 # the name directories are copied to $(tooldir)/lib. Multiple directories
2734 # are permitted.
2735 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2736 if test x${is_cross_compiler} = xno ; then
2737 echo 1>&2 '***' --with-libs is only supported when cross compiling
2738 exit 1
2740 if test x"${with_libs}" != xyes ; then
2741 # Copy the libraries in reverse order, so that files in the first named
2742 # library override files in subsequent libraries.
2743 case "${exec_prefixoption}" in
2744 "") x=${prefix} ;;
2745 *) x=${exec_prefix} ;;
2746 esac
2747 for l in ${with_libs}; do
2748 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2749 done
2753 # Set with_gnu_as and with_gnu_ld as appropriate.
2755 # This is done by determining whether or not the appropriate directory
2756 # is available, and by checking whether or not specific configurations
2757 # have requested that this magic not happen.
2759 # The command line options always override the explicit settings in
2760 # configure.in, and the settings in configure.in override this magic.
2762 # If the default for a toolchain is to use GNU as and ld, and you don't
2763 # want to do that, then you should use the --without-gnu-as and
2764 # --without-gnu-ld options for the configure script.
2766 if test x${use_gnu_as} = x &&
2767 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2768 with_gnu_as=yes
2769 extra_host_args="$extra_host_args --with-gnu-as"
2772 if test x${use_gnu_ld} = x &&
2773 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2774 with_gnu_ld=yes
2775 extra_host_args="$extra_host_args --with-gnu-ld"
2778 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2779 # can detect this case.
2781 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2782 with_newlib=yes
2783 extra_host_args="$extra_host_args --with-newlib"
2786 # Handle ${copy_dirs}
2787 set fnord ${copy_dirs}
2788 shift
2789 while test $# != 0 ; do
2790 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2792 else
2793 echo Copying $1 to $2
2795 # Use the install script to create the directory and all required
2796 # parent directories.
2797 if test -d $2 ; then
2799 else
2800 echo >config.temp
2801 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2804 # Copy the directory, assuming we have tar.
2805 # FIXME: Should we use B in the second tar? Not all systems support it.
2806 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2808 # It is the responsibility of the user to correctly adjust all
2809 # symlinks. If somebody can figure out how to handle them correctly
2810 # here, feel free to add the code.
2812 echo $1 > $2/COPIED
2814 shift; shift
2815 done
2817 # Determine a target-dependent exec_prefix that the installed
2818 # gcc will search in. Keep this list sorted by triplet, with
2819 # the *-*-osname triplets last.
2820 md_exec_prefix=
2821 case "${target}" in
2822 alpha*-*-*vms*)
2823 md_exec_prefix=/gnu/lib/gcc-lib
2825 i3456786-pc-msdosdjgpp*)
2826 md_exec_prefix=/dev/env/DJDIR/bin
2828 i3456786-*-sco3.2v5*)
2829 if test $with_gnu_as = yes; then
2830 md_exec_prefix=/usr/gnu/bin
2831 else
2832 md_exec_prefix=/usr/ccs/bin/elf
2836 mn10300-*-* | \
2837 powerpc-*-chorusos* | \
2838 powerpc*-*-eabi* | \
2839 powerpc*-*-sysv* | \
2840 powerpc*-*-kaos* | \
2841 s390x-ibm-tpf*)
2842 md_exec_prefix=/usr/ccs/bin
2844 sparc64-*-elf*)
2846 v850*-*-*)
2847 md_exec_prefix=/usr/ccs/bin
2849 xtensa-*-elf*)
2852 *-*-beos* | \
2853 *-*-elf* | \
2854 *-*-hpux* | \
2855 *-*-netware* | \
2856 *-*-nto-qnx* | \
2857 *-*-rtems* | \
2858 *-*-solaris2* | \
2859 *-*-sysv45* | \
2860 *-*-vxworks* | \
2861 *-wrs-windiss)
2862 md_exec_prefix=/usr/ccs/bin
2864 esac
2866 extra_arflags_for_target=
2867 extra_nmflags_for_target=
2868 extra_ranlibflags_for_target=
2869 target_makefile_frag=/dev/null
2870 case "${target}" in
2871 *-*-netware*)
2872 target_makefile_frag="config/mt-netware"
2874 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2875 target_makefile_frag="config/mt-gnu"
2877 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2878 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2879 # commands to handle both 32-bit and 64-bit objects. These flags are
2880 # harmless if we're using GNU nm or ar.
2881 extra_arflags_for_target=" -X32_64"
2882 extra_nmflags_for_target=" -B -X32_64"
2884 *-*-darwin*)
2885 # ranlib from Darwin requires the -c flag to look at common symbols.
2886 extra_ranlibflags_for_target=" -c"
2888 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2889 target_makefile_frag="config/mt-wince"
2891 esac
2893 alphaieee_frag=/dev/null
2894 case $target in
2895 alpha*-*-*)
2896 # This just makes sure to use the -mieee option to build target libs.
2897 # This should probably be set individually by each library.
2898 alphaieee_frag="config/mt-alphaieee"
2900 esac
2902 # If --enable-target-optspace always use -Os instead of -O2 to build
2903 # the target libraries, similarly if it is not specified, use -Os
2904 # on selected platforms.
2905 ospace_frag=/dev/null
2906 case "${enable_target_optspace}:${target}" in
2907 yes:*)
2908 ospace_frag="config/mt-ospace"
2910 :d30v-*)
2911 ospace_frag="config/mt-d30v"
2913 :m32r-* | :d10v-* | :fr30-*)
2914 ospace_frag="config/mt-ospace"
2916 no:* | :*)
2919 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2921 esac
2923 # Default to using --with-stabs for certain targets.
2924 if test x${with_stabs} = x ; then
2925 case "${target}" in
2926 mips*-*-irix[56]*)
2928 mips*-*-* | alpha*-*-osf*)
2929 with_stabs=yes;
2930 extra_host_args="${extra_host_args} --with-stabs"
2932 esac
2935 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2936 # them automatically.
2937 case "${host}" in
2938 hppa*64*-*-hpux11*)
2939 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2941 esac
2943 # Some systems (e.g., one of the i386-aix systems the gas testers are
2944 # using) don't handle "\$" correctly, so don't use it here.
2945 tooldir='${exec_prefix}'/${target_alias}
2946 build_tooldir=${tooldir}
2948 # Create a .gdbinit file which runs the one in srcdir
2949 # and tells GDB to look there for source files.
2951 if test -r ${srcdir}/.gdbinit ; then
2952 case ${srcdir} in
2953 .) ;;
2954 *) cat > ./.gdbinit <<EOF
2955 # ${NO_EDIT}
2956 dir ${srcdir}
2957 dir .
2958 source ${srcdir}/.gdbinit
2961 esac
2964 # Make sure that the compiler is able to generate an executable. If it
2965 # can't, we are probably in trouble. We don't care whether we can run the
2966 # executable--we might be using a cross compiler--we only care whether it
2967 # can be created. At this point the main configure script has set CC.
2968 we_are_ok=no
2969 echo "int main () { return 0; }" > conftest.c
2970 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2971 if test $? = 0 ; then
2972 if test -s conftest || test -s conftest.exe ; then
2973 we_are_ok=yes
2976 case $we_are_ok in
2978 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2979 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2980 rm -f conftest*
2981 exit 1
2983 esac
2984 rm -f conftest*
2986 # The Solaris /usr/ucb/cc compiler does not appear to work.
2987 case "${host}" in
2988 sparc-sun-solaris2*)
2989 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2990 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2991 could_use=
2992 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2993 if test -d /opt/cygnus/bin ; then
2994 if test "$could_use" = "" ; then
2995 could_use="/opt/cygnus/bin"
2996 else
2997 could_use="$could_use or /opt/cygnus/bin"
3000 if test "$could_use" = "" ; then
3001 echo "Warning: compilation may fail because you're using"
3002 echo "/usr/ucb/cc. You should change your PATH or CC "
3003 echo "variable and rerun configure."
3004 else
3005 echo "Warning: compilation may fail because you're using"
3006 echo "/usr/ucb/cc, when you should use the C compiler from"
3007 echo "$could_use. You should change your"
3008 echo "PATH or CC variable and rerun configure."
3012 esac
3014 case "${host}" in
3015 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3016 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3017 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3018 esac
3020 # Record target_configdirs and the configure arguments for target and
3021 # build configuration in Makefile.
3022 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3023 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3025 # Determine whether gdb needs tk/tcl or not.
3026 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3027 # and in that case we want gdb to be built without tk. Ugh!
3028 # In fact I believe gdb is the *only* package directly dependent on tk,
3029 # so we should be able to put the 'maybe's in unconditionally and
3030 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3031 # 100% sure that that's safe though.
3033 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3034 case "$enable_gdbtk" in
3036 GDB_TK="" ;;
3037 yes)
3038 GDB_TK="${gdb_tk}" ;;
3040 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3041 # distro. Eventually someone will fix this and move Insight, nee
3042 # gdbtk to a separate directory.
3043 if test -d ${srcdir}/gdb/gdbtk ; then
3044 GDB_TK="${gdb_tk}"
3045 else
3046 GDB_TK=""
3049 esac
3050 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3051 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3053 # Strip out unwanted targets.
3055 # While at that, we remove Makefiles if we were started for recursive
3056 # configuration, so that the top-level Makefile reconfigures them,
3057 # like we used to do when configure itself was recursive.
3059 # Loop over modules. $extrasub must be used with care, limiting as
3060 # much as possible the usage of range addresses. That's because autoconf
3061 # splits the sed script to overcome limits in the number of commands,
3062 # and relying on carefully-timed sed passes may turn out to be very hard
3063 # to maintain later. In this particular case, you just have to be careful
3064 # not to nest @if/@endif pairs, because configure will not warn you at all.
3066 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3067 if test "${enable_bootstrap+set}" = set; then
3068 enableval="$enable_bootstrap"
3070 else
3071 enable_bootstrap=default
3075 # Issue errors and warnings for invalid/strange bootstrap combinations.
3076 case "$configdirs" in
3077 *gcc*) have_compiler=yes ;;
3078 *) have_compiler=no ;;
3079 esac
3081 case "$have_compiler:$host:$target:$enable_bootstrap" in
3082 *:*:*:no) ;;
3084 # Default behavior. Enable bootstrap if we have a compiler
3085 # and we are in a native configuration.
3086 yes:$build:$build:default)
3087 enable_bootstrap=yes ;;
3089 *:*:*:default)
3090 enable_bootstrap=no ;;
3092 # We have a compiler and we are in a native configuration, bootstrap is ok
3093 yes:$build:$build:yes)
3096 # Other configurations, but we have a compiler. Assume the user knows
3097 # what he's doing.
3098 yes:*:*:yes)
3099 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3102 # No compiler: if they passed --enable-bootstrap explicitly, fail
3103 no:*:*:yes)
3104 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3106 # Fail if wrong command line
3108 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3110 esac
3112 # Adjust the toplevel makefile according to whether bootstrap was selected.
3113 case "$enable_bootstrap" in
3114 yes)
3115 bootstrap_suffix=bootstrap ;;
3117 bootstrap_suffix=no-bootstrap ;;
3118 esac
3120 for module in ${build_configdirs} ; do
3121 if test -z "${no_recursion}" \
3122 && test -f ${build_subdir}/${module}/Makefile; then
3123 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3124 rm -f ${build_subdir}/${module}/Makefile
3126 extrasub="$extrasub
3127 /^@if build-$module\$/d
3128 /^@endif build-$module\$/d
3129 /^@if build-$module-$bootstrap_suffix\$/d
3130 /^@endif build-$module-$bootstrap_suffix\$/d"
3131 done
3132 for module in ${configdirs} ; do
3133 if test -z "${no_recursion}"; then
3134 for file in stage*-${module}/Makefile ${module}/Makefile; do
3135 if test -f ${file}; then
3136 echo 1>&2 "*** removing ${file} to force reconfigure"
3137 rm -f ${file}
3139 done
3141 extrasub="$extrasub
3142 /^@if $module\$/d
3143 /^@endif $module\$/d
3144 /^@if $module-$bootstrap_suffix\$/d
3145 /^@endif $module-$bootstrap_suffix\$/d"
3146 done
3147 for module in ${target_configdirs} ; do
3148 if test -z "${no_recursion}" \
3149 && test -f ${target_subdir}/${module}/Makefile; then
3150 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3151 rm -f ${target_subdir}/${module}/Makefile
3153 extrasub="$extrasub
3154 /^@if target-$module\$/d
3155 /^@endif target-$module\$/d
3156 /^@if target-$module-$bootstrap_suffix\$/d
3157 /^@endif target-$module-$bootstrap_suffix\$/d"
3158 done
3160 extrasub="$extrasub
3161 /^@if /,/^@endif /d"
3163 # Create the serialization dependencies. This uses a temporary file.
3165 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3166 if test "${enable_serial_configure+set}" = set; then
3167 enableval="$enable_serial_configure"
3172 case ${enable_serial_configure} in
3173 yes)
3174 enable_serial_build_configure=yes
3175 enable_serial_host_configure=yes
3176 enable_serial_target_configure=yes
3178 esac
3180 # These force 'configure's to be done one at a time, to avoid problems
3181 # with contention over a shared config.cache.
3182 rm -f serdep.tmp
3183 echo '# serdep.tmp' > serdep.tmp
3184 olditem=
3185 test "x${enable_serial_build_configure}" = xyes &&
3186 for item in ${build_configdirs} ; do
3187 case ${olditem} in
3188 "") ;;
3189 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3190 esac
3191 olditem=${item}
3192 done
3193 olditem=
3194 test "x${enable_serial_host_configure}" = xyes &&
3195 for item in ${configdirs} ; do
3196 case ${olditem} in
3197 "") ;;
3198 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3199 esac
3200 olditem=${item}
3201 done
3202 olditem=
3203 test "x${enable_serial_target_configure}" = xyes &&
3204 for item in ${target_configdirs} ; do
3205 case ${olditem} in
3206 "") ;;
3207 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3208 esac
3209 olditem=${item}
3210 done
3211 serialization_dependencies=serdep.tmp
3214 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3215 # target and nonopt. These are the ones we might not want to pass
3216 # down to subconfigures. Also strip program-prefix, program-suffix,
3217 # and program-transform-name, so that we can pass down a consistent
3218 # program-transform-name. If autoconf has put single quotes around
3219 # any of these arguments (because they contain shell metacharacters)
3220 # then this will fail; in practice this only happens for
3221 # --program-transform-name, so be sure to override --program-transform-name
3222 # at the end of the argument list.
3223 # These will be expanded by make, so quote '$'.
3224 cat <<\EOF_SED > conftestsed
3225 s/ --no[^ ]*/ /g
3226 s/ --c[a-z-]*[= ][^ ]*//g
3227 s/ --sr[a-z-]*[= ][^ ]*//g
3228 s/ --ho[a-z-]*[= ][^ ]*//g
3229 s/ --bu[a-z-]*[= ][^ ]*//g
3230 s/ --t[a-z-]*[= ][^ ]*//g
3231 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3232 s/ -cache-file[= ][^ ]*//g
3233 s/ -srcdir[= ][^ ]*//g
3234 s/ -host[= ][^ ]*//g
3235 s/ -build[= ][^ ]*//g
3236 s/ -target[= ][^ ]*//g
3237 s/ -program-prefix[= ][^ ]*//g
3238 s/ -program-suffix[= ][^ ]*//g
3239 s/ -program-transform-name[= ][^ ]*//g
3240 s/ [^' -][^ ]* / /
3241 s/^ *//;s/ *$//
3242 s,\$,$$,g
3243 EOF_SED
3244 sed -f conftestsed <<EOF_SED > conftestsed.out
3245 ${ac_configure_args}
3246 EOF_SED
3247 baseargs=`cat conftestsed.out`
3248 rm -f conftestsed conftestsed.out
3250 # Add in --program-transform-name, after --program-prefix and
3251 # --program-suffix have been applied to it. Autoconf has already
3252 # doubled dollar signs and backslashes in program_transform_name; we want
3253 # the backslashes un-doubled, and then the entire thing wrapped in single
3254 # quotes, because this will be expanded first by make and then by the shell.
3255 # Also, because we want to override the logic in subdir configure scripts to
3256 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3257 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3258 ${program_transform_name}
3259 EOF_SED
3260 gcc_transform_name=`cat conftestsed.out`
3261 rm -f conftestsed.out
3262 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3264 # For the build-side libraries, we just need to pretend we're native,
3265 # and not use the same cache file. Multilibs are neither needed nor
3266 # desired.
3267 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3269 # For host modules, accept cache file option, or specification as blank.
3270 case "${cache_file}" in
3271 "") # empty
3272 cache_file_option="" ;;
3273 /* | [A-Za-z]:[\\/]* ) # absolute path
3274 cache_file_option="--cache-file=${cache_file}" ;;
3275 *) # relative path
3276 cache_file_option="--cache-file=../${cache_file}" ;;
3277 esac
3279 # Host dirs don't like to share a cache file either, horribly enough.
3280 # This seems to be due to autoconf 2.5x stupidity.
3281 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3283 target_configargs=${baseargs}
3285 # Passing a --with-cross-host argument lets the target libraries know
3286 # whether they are being built with a cross-compiler or being built
3287 # native. However, it would be better to use other mechanisms to make the
3288 # sorts of decisions they want to make on this basis. Please consider
3289 # this option to be deprecated. FIXME.
3290 if test x${is_cross_compiler} = xyes ; then
3291 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3294 # Default to --enable-multilib.
3295 if test x${enable_multilib} = x ; then
3296 target_configargs="--enable-multilib ${target_configargs}"
3299 # Pass --with-newlib if appropriate. Note that target_configdirs has
3300 # changed from the earlier setting of with_newlib.
3301 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3302 target_configargs="--with-newlib ${target_configargs}"
3305 # Different target subdirs use different values of certain variables
3306 # (notably CXX). Worse, multilibs use *lots* of different values.
3307 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3308 # it doesn't automatically accept command-line overrides of them.
3309 # This means it's not safe for target subdirs to share a cache file,
3310 # which is disgusting, but there you have it. Hopefully this can be
3311 # fixed in future. It's still worthwhile to use a cache file for each
3312 # directory. I think.
3314 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3315 # We need to pass --target, as newer autoconf's requires consistency
3316 # for target_alias and gcc doesn't manage it consistently.
3317 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3319 FLAGS_FOR_TARGET=
3320 case " $target_configdirs " in
3321 *" newlib "*)
3322 case " $target_configargs " in
3323 *" --with-newlib "*)
3324 case "$target" in
3325 *-cygwin*)
3326 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' ;;
3327 esac
3329 # If we're not building GCC, don't discard standard headers.
3330 if test -d ${srcdir}/gcc; then
3331 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3333 if test "${build}" != "${host}"; then
3334 # On Canadian crosses, CC_FOR_TARGET will have already been set
3335 # by `configure', so we won't have an opportunity to add -Bgcc/
3336 # to it. This is right: we don't want to search that directory
3337 # for binaries, but we want the header files in there, so add
3338 # them explicitly.
3339 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3341 # Someone might think of using the pre-installed headers on
3342 # Canadian crosses, in case the installed compiler is not fully
3343 # compatible with the compiler being built. In this case, it
3344 # would be better to flag an error than risking having
3345 # incompatible object files being constructed. We can't
3346 # guarantee that an error will be flagged, but let's hope the
3347 # compiler will do it, when presented with incompatible header
3348 # files.
3352 case "${target}-${is_cross_compiler}" in
3353 i[3456789]86-*-linux*-no)
3354 # Here host == target, so we don't need to build gcc,
3355 # so we don't want to discard standard headers.
3356 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3359 # If we're building newlib, use its generic headers last, but search
3360 # for any libc-related directories first (so make it the last -B
3361 # switch).
3362 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3364 esac
3366 esac
3368 esac
3369 case "$target" in
3370 *-mingw*)
3371 # Can't be handled as Cygwin above since Mingw does not use newlib.
3372 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' ;;
3373 esac
3375 # Allow the user to override the flags for
3376 # our build compiler if desired.
3377 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3379 # On Canadian crosses, we'll be searching the right directories for
3380 # the previously-installed cross compiler, so don't bother to add
3381 # flags for directories within the install tree of the compiler
3382 # being built; programs in there won't even run.
3383 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3384 # Search for pre-installed headers if nothing else fits.
3385 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3388 if test "x${use_gnu_ld}" = x &&
3389 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3390 # Arrange for us to find uninstalled linker scripts.
3391 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3394 # Search for other target-specific linker scripts and such.
3395 case "${target}" in
3396 m32c-*-* )
3397 if test -d ${srcdir}/libgloss/m32c; then
3398 # This is for crt0.o
3399 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3400 # This is for r8c.ld
3401 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3402 # This is for libnosys.a
3403 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3406 esac
3408 # Makefile fragments.
3409 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3411 eval fragval=\$$frag
3412 if test $fragval != /dev/null; then
3413 eval $frag=${srcdir}/$fragval
3415 done
3421 # Miscellanea: directories, flags, etc.
3429 # Build module lists & subconfigure args.
3433 # Host module lists & subconfigure args.
3437 # Target module lists & subconfigure args.
3441 # Build tools.
3445 # Generate default definitions for YACC, M4, LEX and other programs that run
3446 # on the build machine. These are used if the Makefile can't locate these
3447 # programs in objdir.
3448 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3450 for ac_prog in 'bison -y' byacc yacc
3452 # Extract the first word of "$ac_prog", so it can be a program name with args.
3453 set dummy $ac_prog; ac_word=$2
3454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3455 echo "configure:3451: checking for $ac_word" >&5
3456 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3458 else
3459 if test -n "$YACC"; then
3460 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3461 else
3462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3463 ac_dummy="$PATH"
3464 for ac_dir in $ac_dummy; do
3465 test -z "$ac_dir" && ac_dir=.
3466 if test -f $ac_dir/$ac_word; then
3467 ac_cv_prog_YACC="$ac_prog"
3468 break
3470 done
3471 IFS="$ac_save_ifs"
3474 YACC="$ac_cv_prog_YACC"
3475 if test -n "$YACC"; then
3476 echo "$ac_t""$YACC" 1>&6
3477 else
3478 echo "$ac_t""no" 1>&6
3481 test -n "$YACC" && break
3482 done
3483 test -n "$YACC" || YACC="$MISSING bison -y"
3485 case " $build_configdirs " in
3486 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3487 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3488 esac
3490 for ac_prog in bison
3492 # Extract the first word of "$ac_prog", so it can be a program name with args.
3493 set dummy $ac_prog; ac_word=$2
3494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3495 echo "configure:3491: checking for $ac_word" >&5
3496 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3498 else
3499 if test -n "$BISON"; then
3500 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3501 else
3502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3503 ac_dummy="$PATH"
3504 for ac_dir in $ac_dummy; do
3505 test -z "$ac_dir" && ac_dir=.
3506 if test -f $ac_dir/$ac_word; then
3507 ac_cv_prog_BISON="$ac_prog"
3508 break
3510 done
3511 IFS="$ac_save_ifs"
3514 BISON="$ac_cv_prog_BISON"
3515 if test -n "$BISON"; then
3516 echo "$ac_t""$BISON" 1>&6
3517 else
3518 echo "$ac_t""no" 1>&6
3521 test -n "$BISON" && break
3522 done
3523 test -n "$BISON" || BISON="$MISSING bison"
3525 case " $build_configdirs " in
3526 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3527 esac
3529 for ac_prog in gm4 gnum4 m4
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3534 echo "configure:3530: checking for $ac_word" >&5
3535 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3537 else
3538 if test -n "$M4"; then
3539 ac_cv_prog_M4="$M4" # Let the user override the test.
3540 else
3541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3542 ac_dummy="$PATH"
3543 for ac_dir in $ac_dummy; do
3544 test -z "$ac_dir" && ac_dir=.
3545 if test -f $ac_dir/$ac_word; then
3546 ac_cv_prog_M4="$ac_prog"
3547 break
3549 done
3550 IFS="$ac_save_ifs"
3553 M4="$ac_cv_prog_M4"
3554 if test -n "$M4"; then
3555 echo "$ac_t""$M4" 1>&6
3556 else
3557 echo "$ac_t""no" 1>&6
3560 test -n "$M4" && break
3561 done
3562 test -n "$M4" || M4="$MISSING m4"
3564 case " $build_configdirs " in
3565 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3566 esac
3568 for ac_prog in flex lex
3570 # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3573 echo "configure:3569: checking for $ac_word" >&5
3574 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3576 else
3577 if test -n "$LEX"; then
3578 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3579 else
3580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3581 ac_dummy="$PATH"
3582 for ac_dir in $ac_dummy; do
3583 test -z "$ac_dir" && ac_dir=.
3584 if test -f $ac_dir/$ac_word; then
3585 ac_cv_prog_LEX="$ac_prog"
3586 break
3588 done
3589 IFS="$ac_save_ifs"
3592 LEX="$ac_cv_prog_LEX"
3593 if test -n "$LEX"; then
3594 echo "$ac_t""$LEX" 1>&6
3595 else
3596 echo "$ac_t""no" 1>&6
3599 test -n "$LEX" && break
3600 done
3601 test -n "$LEX" || LEX="$MISSING flex"
3603 case " $build_configdirs " in
3604 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3605 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3606 esac
3608 for ac_prog in flex
3610 # Extract the first word of "$ac_prog", so it can be a program name with args.
3611 set dummy $ac_prog; ac_word=$2
3612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3613 echo "configure:3609: checking for $ac_word" >&5
3614 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3616 else
3617 if test -n "$FLEX"; then
3618 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3619 else
3620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3621 ac_dummy="$PATH"
3622 for ac_dir in $ac_dummy; do
3623 test -z "$ac_dir" && ac_dir=.
3624 if test -f $ac_dir/$ac_word; then
3625 ac_cv_prog_FLEX="$ac_prog"
3626 break
3628 done
3629 IFS="$ac_save_ifs"
3632 FLEX="$ac_cv_prog_FLEX"
3633 if test -n "$FLEX"; then
3634 echo "$ac_t""$FLEX" 1>&6
3635 else
3636 echo "$ac_t""no" 1>&6
3639 test -n "$FLEX" && break
3640 done
3641 test -n "$FLEX" || FLEX="$MISSING flex"
3643 case " $build_configdirs " in
3644 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3645 esac
3647 for ac_prog in makeinfo
3649 # Extract the first word of "$ac_prog", so it can be a program name with args.
3650 set dummy $ac_prog; ac_word=$2
3651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3652 echo "configure:3648: checking for $ac_word" >&5
3653 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3655 else
3656 if test -n "$MAKEINFO"; then
3657 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3658 else
3659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3660 ac_dummy="$PATH"
3661 for ac_dir in $ac_dummy; do
3662 test -z "$ac_dir" && ac_dir=.
3663 if test -f $ac_dir/$ac_word; then
3664 ac_cv_prog_MAKEINFO="$ac_prog"
3665 break
3667 done
3668 IFS="$ac_save_ifs"
3671 MAKEINFO="$ac_cv_prog_MAKEINFO"
3672 if test -n "$MAKEINFO"; then
3673 echo "$ac_t""$MAKEINFO" 1>&6
3674 else
3675 echo "$ac_t""no" 1>&6
3678 test -n "$MAKEINFO" && break
3679 done
3680 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3682 case " $build_configdirs " in
3683 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3686 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3687 # higher, else we use the "missing" dummy.
3688 if ${MAKEINFO} --version \
3689 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3691 else
3692 MAKEINFO="$MISSING makeinfo"
3696 esac
3698 # FIXME: expect and dejagnu may become build tools?
3700 for ac_prog in expect
3702 # Extract the first word of "$ac_prog", so it can be a program name with args.
3703 set dummy $ac_prog; ac_word=$2
3704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3705 echo "configure:3701: checking for $ac_word" >&5
3706 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3708 else
3709 if test -n "$EXPECT"; then
3710 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3711 else
3712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3713 ac_dummy="$PATH"
3714 for ac_dir in $ac_dummy; do
3715 test -z "$ac_dir" && ac_dir=.
3716 if test -f $ac_dir/$ac_word; then
3717 ac_cv_prog_EXPECT="$ac_prog"
3718 break
3720 done
3721 IFS="$ac_save_ifs"
3724 EXPECT="$ac_cv_prog_EXPECT"
3725 if test -n "$EXPECT"; then
3726 echo "$ac_t""$EXPECT" 1>&6
3727 else
3728 echo "$ac_t""no" 1>&6
3731 test -n "$EXPECT" && break
3732 done
3733 test -n "$EXPECT" || EXPECT="expect"
3735 case " $configdirs " in
3736 *" expect "*)
3737 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3739 esac
3741 for ac_prog in runtest
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3746 echo "configure:3742: checking for $ac_word" >&5
3747 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3749 else
3750 if test -n "$RUNTEST"; then
3751 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3752 else
3753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3754 ac_dummy="$PATH"
3755 for ac_dir in $ac_dummy; do
3756 test -z "$ac_dir" && ac_dir=.
3757 if test -f $ac_dir/$ac_word; then
3758 ac_cv_prog_RUNTEST="$ac_prog"
3759 break
3761 done
3762 IFS="$ac_save_ifs"
3765 RUNTEST="$ac_cv_prog_RUNTEST"
3766 if test -n "$RUNTEST"; then
3767 echo "$ac_t""$RUNTEST" 1>&6
3768 else
3769 echo "$ac_t""no" 1>&6
3772 test -n "$RUNTEST" && break
3773 done
3774 test -n "$RUNTEST" || RUNTEST="runtest"
3776 case " $configdirs " in
3777 *" dejagnu "*)
3778 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3780 esac
3783 # Host tools.
3784 ncn_tool_prefix=
3785 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3786 ncn_target_tool_prefix=
3787 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3789 for ncn_progname in ar; do
3790 if test -n "$ncn_tool_prefix"; then
3791 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3792 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3794 echo "configure:3790: checking for $ac_word" >&5
3795 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3797 else
3798 if test -n "$AR"; then
3799 ac_cv_prog_AR="$AR" # Let the user override the test.
3800 else
3801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3802 ac_dummy="$PATH"
3803 for ac_dir in $ac_dummy; do
3804 test -z "$ac_dir" && ac_dir=.
3805 if test -f $ac_dir/$ac_word; then
3806 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3807 break
3809 done
3810 IFS="$ac_save_ifs"
3813 AR="$ac_cv_prog_AR"
3814 if test -n "$AR"; then
3815 echo "$ac_t""$AR" 1>&6
3816 else
3817 echo "$ac_t""no" 1>&6
3821 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3823 set dummy ${ncn_progname}; ac_word=$2
3824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3825 echo "configure:3821: checking for $ac_word" >&5
3826 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3828 else
3829 if test -n "$AR"; then
3830 ac_cv_prog_AR="$AR" # Let the user override the test.
3831 else
3832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3833 ac_dummy="$PATH"
3834 for ac_dir in $ac_dummy; do
3835 test -z "$ac_dir" && ac_dir=.
3836 if test -f $ac_dir/$ac_word; then
3837 ac_cv_prog_AR="${ncn_progname}"
3838 break
3840 done
3841 IFS="$ac_save_ifs"
3844 AR="$ac_cv_prog_AR"
3845 if test -n "$AR"; then
3846 echo "$ac_t""$AR" 1>&6
3847 else
3848 echo "$ac_t""no" 1>&6
3852 test -n "$ac_cv_prog_AR" && break
3853 done
3855 if test -z "$ac_cv_prog_AR" ; then
3856 set dummy ar
3857 if test $build = $host ; then
3858 AR="$2"
3859 else
3860 AR="${ncn_tool_prefix}$2"
3864 for ncn_progname in as; do
3865 if test -n "$ncn_tool_prefix"; then
3866 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3867 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3869 echo "configure:3865: checking for $ac_word" >&5
3870 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3872 else
3873 if test -n "$AS"; then
3874 ac_cv_prog_AS="$AS" # Let the user override the test.
3875 else
3876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3877 ac_dummy="$PATH"
3878 for ac_dir in $ac_dummy; do
3879 test -z "$ac_dir" && ac_dir=.
3880 if test -f $ac_dir/$ac_word; then
3881 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3882 break
3884 done
3885 IFS="$ac_save_ifs"
3888 AS="$ac_cv_prog_AS"
3889 if test -n "$AS"; then
3890 echo "$ac_t""$AS" 1>&6
3891 else
3892 echo "$ac_t""no" 1>&6
3896 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3898 set dummy ${ncn_progname}; ac_word=$2
3899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3900 echo "configure:3896: checking for $ac_word" >&5
3901 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3903 else
3904 if test -n "$AS"; then
3905 ac_cv_prog_AS="$AS" # Let the user override the test.
3906 else
3907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3908 ac_dummy="$PATH"
3909 for ac_dir in $ac_dummy; do
3910 test -z "$ac_dir" && ac_dir=.
3911 if test -f $ac_dir/$ac_word; then
3912 ac_cv_prog_AS="${ncn_progname}"
3913 break
3915 done
3916 IFS="$ac_save_ifs"
3919 AS="$ac_cv_prog_AS"
3920 if test -n "$AS"; then
3921 echo "$ac_t""$AS" 1>&6
3922 else
3923 echo "$ac_t""no" 1>&6
3927 test -n "$ac_cv_prog_AS" && break
3928 done
3930 if test -z "$ac_cv_prog_AS" ; then
3931 set dummy as
3932 if test $build = $host ; then
3933 AS="$2"
3934 else
3935 AS="${ncn_tool_prefix}$2"
3939 for ncn_progname in dlltool; do
3940 if test -n "$ncn_tool_prefix"; then
3941 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3942 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3944 echo "configure:3940: checking for $ac_word" >&5
3945 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3946 echo $ac_n "(cached) $ac_c" 1>&6
3947 else
3948 if test -n "$DLLTOOL"; then
3949 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3950 else
3951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3952 ac_dummy="$PATH"
3953 for ac_dir in $ac_dummy; do
3954 test -z "$ac_dir" && ac_dir=.
3955 if test -f $ac_dir/$ac_word; then
3956 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3957 break
3959 done
3960 IFS="$ac_save_ifs"
3963 DLLTOOL="$ac_cv_prog_DLLTOOL"
3964 if test -n "$DLLTOOL"; then
3965 echo "$ac_t""$DLLTOOL" 1>&6
3966 else
3967 echo "$ac_t""no" 1>&6
3971 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3973 set dummy ${ncn_progname}; ac_word=$2
3974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3975 echo "configure:3971: checking for $ac_word" >&5
3976 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3977 echo $ac_n "(cached) $ac_c" 1>&6
3978 else
3979 if test -n "$DLLTOOL"; then
3980 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3981 else
3982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3983 ac_dummy="$PATH"
3984 for ac_dir in $ac_dummy; do
3985 test -z "$ac_dir" && ac_dir=.
3986 if test -f $ac_dir/$ac_word; then
3987 ac_cv_prog_DLLTOOL="${ncn_progname}"
3988 break
3990 done
3991 IFS="$ac_save_ifs"
3994 DLLTOOL="$ac_cv_prog_DLLTOOL"
3995 if test -n "$DLLTOOL"; then
3996 echo "$ac_t""$DLLTOOL" 1>&6
3997 else
3998 echo "$ac_t""no" 1>&6
4002 test -n "$ac_cv_prog_DLLTOOL" && break
4003 done
4005 if test -z "$ac_cv_prog_DLLTOOL" ; then
4006 set dummy dlltool
4007 if test $build = $host ; then
4008 DLLTOOL="$2"
4009 else
4010 DLLTOOL="${ncn_tool_prefix}$2"
4014 for ncn_progname in ld; do
4015 if test -n "$ncn_tool_prefix"; then
4016 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4017 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4019 echo "configure:4015: checking for $ac_word" >&5
4020 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4022 else
4023 if test -n "$LD"; then
4024 ac_cv_prog_LD="$LD" # Let the user override the test.
4025 else
4026 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4027 ac_dummy="$PATH"
4028 for ac_dir in $ac_dummy; do
4029 test -z "$ac_dir" && ac_dir=.
4030 if test -f $ac_dir/$ac_word; then
4031 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4032 break
4034 done
4035 IFS="$ac_save_ifs"
4038 LD="$ac_cv_prog_LD"
4039 if test -n "$LD"; then
4040 echo "$ac_t""$LD" 1>&6
4041 else
4042 echo "$ac_t""no" 1>&6
4046 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4048 set dummy ${ncn_progname}; ac_word=$2
4049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4050 echo "configure:4046: checking for $ac_word" >&5
4051 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4052 echo $ac_n "(cached) $ac_c" 1>&6
4053 else
4054 if test -n "$LD"; then
4055 ac_cv_prog_LD="$LD" # Let the user override the test.
4056 else
4057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4058 ac_dummy="$PATH"
4059 for ac_dir in $ac_dummy; do
4060 test -z "$ac_dir" && ac_dir=.
4061 if test -f $ac_dir/$ac_word; then
4062 ac_cv_prog_LD="${ncn_progname}"
4063 break
4065 done
4066 IFS="$ac_save_ifs"
4069 LD="$ac_cv_prog_LD"
4070 if test -n "$LD"; then
4071 echo "$ac_t""$LD" 1>&6
4072 else
4073 echo "$ac_t""no" 1>&6
4077 test -n "$ac_cv_prog_LD" && break
4078 done
4080 if test -z "$ac_cv_prog_LD" ; then
4081 set dummy ld
4082 if test $build = $host ; then
4083 LD="$2"
4084 else
4085 LD="${ncn_tool_prefix}$2"
4089 for ncn_progname in lipo; do
4090 if test -n "$ncn_tool_prefix"; then
4091 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4092 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4094 echo "configure:4090: checking for $ac_word" >&5
4095 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4097 else
4098 if test -n "$LIPO"; then
4099 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4100 else
4101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4102 ac_dummy="$PATH"
4103 for ac_dir in $ac_dummy; do
4104 test -z "$ac_dir" && ac_dir=.
4105 if test -f $ac_dir/$ac_word; then
4106 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4107 break
4109 done
4110 IFS="$ac_save_ifs"
4113 LIPO="$ac_cv_prog_LIPO"
4114 if test -n "$LIPO"; then
4115 echo "$ac_t""$LIPO" 1>&6
4116 else
4117 echo "$ac_t""no" 1>&6
4121 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4123 set dummy ${ncn_progname}; ac_word=$2
4124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4125 echo "configure:4121: checking for $ac_word" >&5
4126 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4128 else
4129 if test -n "$LIPO"; then
4130 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4131 else
4132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4133 ac_dummy="$PATH"
4134 for ac_dir in $ac_dummy; do
4135 test -z "$ac_dir" && ac_dir=.
4136 if test -f $ac_dir/$ac_word; then
4137 ac_cv_prog_LIPO="${ncn_progname}"
4138 break
4140 done
4141 IFS="$ac_save_ifs"
4144 LIPO="$ac_cv_prog_LIPO"
4145 if test -n "$LIPO"; then
4146 echo "$ac_t""$LIPO" 1>&6
4147 else
4148 echo "$ac_t""no" 1>&6
4152 test -n "$ac_cv_prog_LIPO" && break
4153 done
4155 if test -z "$ac_cv_prog_LIPO" ; then
4156 set dummy lipo
4157 if test $build = $host ; then
4158 LIPO="$2"
4159 else
4160 LIPO="${ncn_tool_prefix}$2"
4164 for ncn_progname in nm; do
4165 if test -n "$ncn_tool_prefix"; then
4166 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4167 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4169 echo "configure:4165: checking for $ac_word" >&5
4170 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4171 echo $ac_n "(cached) $ac_c" 1>&6
4172 else
4173 if test -n "$NM"; then
4174 ac_cv_prog_NM="$NM" # Let the user override the test.
4175 else
4176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4177 ac_dummy="$PATH"
4178 for ac_dir in $ac_dummy; do
4179 test -z "$ac_dir" && ac_dir=.
4180 if test -f $ac_dir/$ac_word; then
4181 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4182 break
4184 done
4185 IFS="$ac_save_ifs"
4188 NM="$ac_cv_prog_NM"
4189 if test -n "$NM"; then
4190 echo "$ac_t""$NM" 1>&6
4191 else
4192 echo "$ac_t""no" 1>&6
4196 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4198 set dummy ${ncn_progname}; ac_word=$2
4199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4200 echo "configure:4196: checking for $ac_word" >&5
4201 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4202 echo $ac_n "(cached) $ac_c" 1>&6
4203 else
4204 if test -n "$NM"; then
4205 ac_cv_prog_NM="$NM" # Let the user override the test.
4206 else
4207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4208 ac_dummy="$PATH"
4209 for ac_dir in $ac_dummy; do
4210 test -z "$ac_dir" && ac_dir=.
4211 if test -f $ac_dir/$ac_word; then
4212 ac_cv_prog_NM="${ncn_progname}"
4213 break
4215 done
4216 IFS="$ac_save_ifs"
4219 NM="$ac_cv_prog_NM"
4220 if test -n "$NM"; then
4221 echo "$ac_t""$NM" 1>&6
4222 else
4223 echo "$ac_t""no" 1>&6
4227 test -n "$ac_cv_prog_NM" && break
4228 done
4230 if test -z "$ac_cv_prog_NM" ; then
4231 set dummy nm
4232 if test $build = $host ; then
4233 NM="$2"
4234 else
4235 NM="${ncn_tool_prefix}$2"
4239 for ncn_progname in ranlib; do
4240 if test -n "$ncn_tool_prefix"; then
4241 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4242 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4244 echo "configure:4240: checking for $ac_word" >&5
4245 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4247 else
4248 if test -n "$RANLIB"; then
4249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4250 else
4251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4252 ac_dummy="$PATH"
4253 for ac_dir in $ac_dummy; do
4254 test -z "$ac_dir" && ac_dir=.
4255 if test -f $ac_dir/$ac_word; then
4256 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4257 break
4259 done
4260 IFS="$ac_save_ifs"
4263 RANLIB="$ac_cv_prog_RANLIB"
4264 if test -n "$RANLIB"; then
4265 echo "$ac_t""$RANLIB" 1>&6
4266 else
4267 echo "$ac_t""no" 1>&6
4271 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4273 set dummy ${ncn_progname}; ac_word=$2
4274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4275 echo "configure:4271: checking for $ac_word" >&5
4276 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4278 else
4279 if test -n "$RANLIB"; then
4280 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4281 else
4282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4283 ac_dummy="$PATH"
4284 for ac_dir in $ac_dummy; do
4285 test -z "$ac_dir" && ac_dir=.
4286 if test -f $ac_dir/$ac_word; then
4287 ac_cv_prog_RANLIB="${ncn_progname}"
4288 break
4290 done
4291 IFS="$ac_save_ifs"
4294 RANLIB="$ac_cv_prog_RANLIB"
4295 if test -n "$RANLIB"; then
4296 echo "$ac_t""$RANLIB" 1>&6
4297 else
4298 echo "$ac_t""no" 1>&6
4302 test -n "$ac_cv_prog_RANLIB" && break
4303 done
4305 if test -z "$ac_cv_prog_RANLIB" ; then
4306 RANLIB=":"
4309 for ncn_progname in strip; do
4310 if test -n "$ncn_tool_prefix"; then
4311 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4312 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4314 echo "configure:4310: checking for $ac_word" >&5
4315 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4317 else
4318 if test -n "$STRIP"; then
4319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4320 else
4321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4322 ac_dummy="$PATH"
4323 for ac_dir in $ac_dummy; do
4324 test -z "$ac_dir" && ac_dir=.
4325 if test -f $ac_dir/$ac_word; then
4326 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4327 break
4329 done
4330 IFS="$ac_save_ifs"
4333 STRIP="$ac_cv_prog_STRIP"
4334 if test -n "$STRIP"; then
4335 echo "$ac_t""$STRIP" 1>&6
4336 else
4337 echo "$ac_t""no" 1>&6
4341 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4343 set dummy ${ncn_progname}; ac_word=$2
4344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4345 echo "configure:4341: checking for $ac_word" >&5
4346 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4348 else
4349 if test -n "$STRIP"; then
4350 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4351 else
4352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4353 ac_dummy="$PATH"
4354 for ac_dir in $ac_dummy; do
4355 test -z "$ac_dir" && ac_dir=.
4356 if test -f $ac_dir/$ac_word; then
4357 ac_cv_prog_STRIP="${ncn_progname}"
4358 break
4360 done
4361 IFS="$ac_save_ifs"
4364 STRIP="$ac_cv_prog_STRIP"
4365 if test -n "$STRIP"; then
4366 echo "$ac_t""$STRIP" 1>&6
4367 else
4368 echo "$ac_t""no" 1>&6
4372 test -n "$ac_cv_prog_STRIP" && break
4373 done
4375 if test -z "$ac_cv_prog_STRIP" ; then
4376 STRIP=":"
4379 for ncn_progname in windres; do
4380 if test -n "$ncn_tool_prefix"; then
4381 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4382 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4384 echo "configure:4380: checking for $ac_word" >&5
4385 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4387 else
4388 if test -n "$WINDRES"; then
4389 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4390 else
4391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4392 ac_dummy="$PATH"
4393 for ac_dir in $ac_dummy; do
4394 test -z "$ac_dir" && ac_dir=.
4395 if test -f $ac_dir/$ac_word; then
4396 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4397 break
4399 done
4400 IFS="$ac_save_ifs"
4403 WINDRES="$ac_cv_prog_WINDRES"
4404 if test -n "$WINDRES"; then
4405 echo "$ac_t""$WINDRES" 1>&6
4406 else
4407 echo "$ac_t""no" 1>&6
4411 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4413 set dummy ${ncn_progname}; ac_word=$2
4414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4415 echo "configure:4411: checking for $ac_word" >&5
4416 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4418 else
4419 if test -n "$WINDRES"; then
4420 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4421 else
4422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4423 ac_dummy="$PATH"
4424 for ac_dir in $ac_dummy; do
4425 test -z "$ac_dir" && ac_dir=.
4426 if test -f $ac_dir/$ac_word; then
4427 ac_cv_prog_WINDRES="${ncn_progname}"
4428 break
4430 done
4431 IFS="$ac_save_ifs"
4434 WINDRES="$ac_cv_prog_WINDRES"
4435 if test -n "$WINDRES"; then
4436 echo "$ac_t""$WINDRES" 1>&6
4437 else
4438 echo "$ac_t""no" 1>&6
4442 test -n "$ac_cv_prog_WINDRES" && break
4443 done
4445 if test -z "$ac_cv_prog_WINDRES" ; then
4446 set dummy windres
4447 if test $build = $host ; then
4448 WINDRES="$2"
4449 else
4450 WINDRES="${ncn_tool_prefix}$2"
4454 for ncn_progname in objcopy; do
4455 if test -n "$ncn_tool_prefix"; then
4456 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4457 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4459 echo "configure:4455: checking for $ac_word" >&5
4460 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4462 else
4463 if test -n "$OBJCOPY"; then
4464 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4465 else
4466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4467 ac_dummy="$PATH"
4468 for ac_dir in $ac_dummy; do
4469 test -z "$ac_dir" && ac_dir=.
4470 if test -f $ac_dir/$ac_word; then
4471 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4472 break
4474 done
4475 IFS="$ac_save_ifs"
4478 OBJCOPY="$ac_cv_prog_OBJCOPY"
4479 if test -n "$OBJCOPY"; then
4480 echo "$ac_t""$OBJCOPY" 1>&6
4481 else
4482 echo "$ac_t""no" 1>&6
4486 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4488 set dummy ${ncn_progname}; ac_word=$2
4489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4490 echo "configure:4486: checking for $ac_word" >&5
4491 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4493 else
4494 if test -n "$OBJCOPY"; then
4495 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4496 else
4497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4498 ac_dummy="$PATH"
4499 for ac_dir in $ac_dummy; do
4500 test -z "$ac_dir" && ac_dir=.
4501 if test -f $ac_dir/$ac_word; then
4502 ac_cv_prog_OBJCOPY="${ncn_progname}"
4503 break
4505 done
4506 IFS="$ac_save_ifs"
4509 OBJCOPY="$ac_cv_prog_OBJCOPY"
4510 if test -n "$OBJCOPY"; then
4511 echo "$ac_t""$OBJCOPY" 1>&6
4512 else
4513 echo "$ac_t""no" 1>&6
4517 test -n "$ac_cv_prog_OBJCOPY" && break
4518 done
4520 if test -z "$ac_cv_prog_OBJCOPY" ; then
4521 set dummy objcopy
4522 if test $build = $host ; then
4523 OBJCOPY="$2"
4524 else
4525 OBJCOPY="${ncn_tool_prefix}$2"
4529 for ncn_progname in objdump; do
4530 if test -n "$ncn_tool_prefix"; then
4531 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4532 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4534 echo "configure:4530: checking for $ac_word" >&5
4535 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4537 else
4538 if test -n "$OBJDUMP"; then
4539 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4540 else
4541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4542 ac_dummy="$PATH"
4543 for ac_dir in $ac_dummy; do
4544 test -z "$ac_dir" && ac_dir=.
4545 if test -f $ac_dir/$ac_word; then
4546 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4547 break
4549 done
4550 IFS="$ac_save_ifs"
4553 OBJDUMP="$ac_cv_prog_OBJDUMP"
4554 if test -n "$OBJDUMP"; then
4555 echo "$ac_t""$OBJDUMP" 1>&6
4556 else
4557 echo "$ac_t""no" 1>&6
4561 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4563 set dummy ${ncn_progname}; ac_word=$2
4564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4565 echo "configure:4561: checking for $ac_word" >&5
4566 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4568 else
4569 if test -n "$OBJDUMP"; then
4570 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4571 else
4572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4573 ac_dummy="$PATH"
4574 for ac_dir in $ac_dummy; do
4575 test -z "$ac_dir" && ac_dir=.
4576 if test -f $ac_dir/$ac_word; then
4577 ac_cv_prog_OBJDUMP="${ncn_progname}"
4578 break
4580 done
4581 IFS="$ac_save_ifs"
4584 OBJDUMP="$ac_cv_prog_OBJDUMP"
4585 if test -n "$OBJDUMP"; then
4586 echo "$ac_t""$OBJDUMP" 1>&6
4587 else
4588 echo "$ac_t""no" 1>&6
4592 test -n "$ac_cv_prog_OBJDUMP" && break
4593 done
4595 if test -z "$ac_cv_prog_OBJDUMP" ; then
4596 set dummy objdump
4597 if test $build = $host ; then
4598 OBJDUMP="$2"
4599 else
4600 OBJDUMP="${ncn_tool_prefix}$2"
4610 # Target tools.
4611 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4612 if test "${with_build_time_tools+set}" = set; then
4613 withval="$with_build_time_tools"
4614 case x"$withval" in
4615 x/*) ;;
4617 with_build_time_tools=
4618 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4620 esac
4621 else
4622 with_build_time_tools=
4626 if test -n "$with_build_time_tools"; then
4627 for ncn_progname in cc gcc; do
4628 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4629 echo "configure:4625: checking for ${ncn_progname} in $with_build_time_tools" >&5
4630 if test -x $with_build_time_tools/${ncn_progname}; then
4631 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4632 echo "$ac_t""yes" 1>&6
4633 break
4634 else
4635 echo "$ac_t""no" 1>&6
4637 done
4640 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4641 for ncn_progname in cc gcc; do
4642 if test -n "$ncn_target_tool_prefix"; then
4643 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4644 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4646 echo "configure:4642: checking for $ac_word" >&5
4647 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4648 echo $ac_n "(cached) $ac_c" 1>&6
4649 else
4650 if test -n "$CC_FOR_TARGET"; then
4651 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4652 else
4653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4654 ac_dummy="$PATH"
4655 for ac_dir in $ac_dummy; do
4656 test -z "$ac_dir" && ac_dir=.
4657 if test -f $ac_dir/$ac_word; then
4658 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4659 break
4661 done
4662 IFS="$ac_save_ifs"
4665 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4666 if test -n "$CC_FOR_TARGET"; then
4667 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4668 else
4669 echo "$ac_t""no" 1>&6
4673 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4674 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4675 set dummy ${ncn_progname}; ac_word=$2
4676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4677 echo "configure:4673: checking for $ac_word" >&5
4678 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4679 echo $ac_n "(cached) $ac_c" 1>&6
4680 else
4681 if test -n "$CC_FOR_TARGET"; then
4682 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4683 else
4684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4685 ac_dummy="$PATH"
4686 for ac_dir in $ac_dummy; do
4687 test -z "$ac_dir" && ac_dir=.
4688 if test -f $ac_dir/$ac_word; then
4689 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4690 break
4692 done
4693 IFS="$ac_save_ifs"
4696 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4697 if test -n "$CC_FOR_TARGET"; then
4698 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4699 else
4700 echo "$ac_t""no" 1>&6
4704 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4705 done
4708 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4709 set dummy cc gcc
4710 if test $build = $target ; then
4711 CC_FOR_TARGET="$2"
4712 else
4713 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4717 if test -n "$with_build_time_tools"; then
4718 for ncn_progname in c++ g++ cxx gxx; do
4719 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4720 echo "configure:4716: checking for ${ncn_progname} in $with_build_time_tools" >&5
4721 if test -x $with_build_time_tools/${ncn_progname}; then
4722 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4723 echo "$ac_t""yes" 1>&6
4724 break
4725 else
4726 echo "$ac_t""no" 1>&6
4728 done
4731 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4732 for ncn_progname in c++ g++ cxx gxx; do
4733 if test -n "$ncn_target_tool_prefix"; then
4734 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4735 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4737 echo "configure:4733: checking for $ac_word" >&5
4738 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4740 else
4741 if test -n "$CXX_FOR_TARGET"; then
4742 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4743 else
4744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4745 ac_dummy="$PATH"
4746 for ac_dir in $ac_dummy; do
4747 test -z "$ac_dir" && ac_dir=.
4748 if test -f $ac_dir/$ac_word; then
4749 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4750 break
4752 done
4753 IFS="$ac_save_ifs"
4756 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4757 if test -n "$CXX_FOR_TARGET"; then
4758 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4759 else
4760 echo "$ac_t""no" 1>&6
4764 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4766 set dummy ${ncn_progname}; ac_word=$2
4767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4768 echo "configure:4764: checking for $ac_word" >&5
4769 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4771 else
4772 if test -n "$CXX_FOR_TARGET"; then
4773 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4774 else
4775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4776 ac_dummy="$PATH"
4777 for ac_dir in $ac_dummy; do
4778 test -z "$ac_dir" && ac_dir=.
4779 if test -f $ac_dir/$ac_word; then
4780 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4781 break
4783 done
4784 IFS="$ac_save_ifs"
4787 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4788 if test -n "$CXX_FOR_TARGET"; then
4789 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4790 else
4791 echo "$ac_t""no" 1>&6
4795 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4796 done
4799 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4800 set dummy c++ g++ cxx gxx
4801 if test $build = $target ; then
4802 CXX_FOR_TARGET="$2"
4803 else
4804 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4808 if test -n "$with_build_time_tools"; then
4809 for ncn_progname in gcc; do
4810 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4811 echo "configure:4807: checking for ${ncn_progname} in $with_build_time_tools" >&5
4812 if test -x $with_build_time_tools/${ncn_progname}; then
4813 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4814 echo "$ac_t""yes" 1>&6
4815 break
4816 else
4817 echo "$ac_t""no" 1>&6
4819 done
4822 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4823 for ncn_progname in gcc; do
4824 if test -n "$ncn_target_tool_prefix"; then
4825 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4826 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4828 echo "configure:4824: checking for $ac_word" >&5
4829 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4831 else
4832 if test -n "$GCC_FOR_TARGET"; then
4833 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4834 else
4835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4836 ac_dummy="$PATH"
4837 for ac_dir in $ac_dummy; do
4838 test -z "$ac_dir" && ac_dir=.
4839 if test -f $ac_dir/$ac_word; then
4840 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4841 break
4843 done
4844 IFS="$ac_save_ifs"
4847 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4848 if test -n "$GCC_FOR_TARGET"; then
4849 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4850 else
4851 echo "$ac_t""no" 1>&6
4855 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4857 set dummy ${ncn_progname}; ac_word=$2
4858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4859 echo "configure:4855: checking for $ac_word" >&5
4860 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4862 else
4863 if test -n "$GCC_FOR_TARGET"; then
4864 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4865 else
4866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4867 ac_dummy="$PATH"
4868 for ac_dir in $ac_dummy; do
4869 test -z "$ac_dir" && ac_dir=.
4870 if test -f $ac_dir/$ac_word; then
4871 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4872 break
4874 done
4875 IFS="$ac_save_ifs"
4878 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4879 if test -n "$GCC_FOR_TARGET"; then
4880 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4881 else
4882 echo "$ac_t""no" 1>&6
4886 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4887 done
4890 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4891 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4894 if test -n "$with_build_time_tools"; then
4895 for ncn_progname in gcj; do
4896 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4897 echo "configure:4893: checking for ${ncn_progname} in $with_build_time_tools" >&5
4898 if test -x $with_build_time_tools/${ncn_progname}; then
4899 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4900 echo "$ac_t""yes" 1>&6
4901 break
4902 else
4903 echo "$ac_t""no" 1>&6
4905 done
4908 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4909 for ncn_progname in gcj; do
4910 if test -n "$ncn_target_tool_prefix"; then
4911 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4912 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4914 echo "configure:4910: checking for $ac_word" >&5
4915 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4916 echo $ac_n "(cached) $ac_c" 1>&6
4917 else
4918 if test -n "$GCJ_FOR_TARGET"; then
4919 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4920 else
4921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4922 ac_dummy="$PATH"
4923 for ac_dir in $ac_dummy; do
4924 test -z "$ac_dir" && ac_dir=.
4925 if test -f $ac_dir/$ac_word; then
4926 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4927 break
4929 done
4930 IFS="$ac_save_ifs"
4933 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4934 if test -n "$GCJ_FOR_TARGET"; then
4935 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4936 else
4937 echo "$ac_t""no" 1>&6
4941 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4942 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4943 set dummy ${ncn_progname}; ac_word=$2
4944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4945 echo "configure:4941: checking for $ac_word" >&5
4946 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4948 else
4949 if test -n "$GCJ_FOR_TARGET"; then
4950 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4951 else
4952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4953 ac_dummy="$PATH"
4954 for ac_dir in $ac_dummy; do
4955 test -z "$ac_dir" && ac_dir=.
4956 if test -f $ac_dir/$ac_word; then
4957 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4958 break
4960 done
4961 IFS="$ac_save_ifs"
4964 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4965 if test -n "$GCJ_FOR_TARGET"; then
4966 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4967 else
4968 echo "$ac_t""no" 1>&6
4972 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4973 done
4976 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4977 set dummy gcj
4978 if test $build = $target ; then
4979 GCJ_FOR_TARGET="$2"
4980 else
4981 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4985 if test -n "$with_build_time_tools"; then
4986 for ncn_progname in gfortran; do
4987 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4988 echo "configure:4984: checking for ${ncn_progname} in $with_build_time_tools" >&5
4989 if test -x $with_build_time_tools/${ncn_progname}; then
4990 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4991 echo "$ac_t""yes" 1>&6
4992 break
4993 else
4994 echo "$ac_t""no" 1>&6
4996 done
4999 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
5000 for ncn_progname in gfortran; do
5001 if test -n "$ncn_target_tool_prefix"; then
5002 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5003 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5005 echo "configure:5001: checking for $ac_word" >&5
5006 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5007 echo $ac_n "(cached) $ac_c" 1>&6
5008 else
5009 if test -n "$GFORTRAN_FOR_TARGET"; then
5010 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5011 else
5012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5013 ac_dummy="$PATH"
5014 for ac_dir in $ac_dummy; do
5015 test -z "$ac_dir" && ac_dir=.
5016 if test -f $ac_dir/$ac_word; then
5017 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5018 break
5020 done
5021 IFS="$ac_save_ifs"
5024 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5025 if test -n "$GFORTRAN_FOR_TARGET"; then
5026 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5027 else
5028 echo "$ac_t""no" 1>&6
5032 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5034 set dummy ${ncn_progname}; ac_word=$2
5035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5036 echo "configure:5032: checking for $ac_word" >&5
5037 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5039 else
5040 if test -n "$GFORTRAN_FOR_TARGET"; then
5041 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5042 else
5043 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5044 ac_dummy="$PATH"
5045 for ac_dir in $ac_dummy; do
5046 test -z "$ac_dir" && ac_dir=.
5047 if test -f $ac_dir/$ac_word; then
5048 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5049 break
5051 done
5052 IFS="$ac_save_ifs"
5055 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5056 if test -n "$GFORTRAN_FOR_TARGET"; then
5057 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5058 else
5059 echo "$ac_t""no" 1>&6
5063 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5064 done
5067 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5068 set dummy gfortran
5069 if test $build = $target ; then
5070 GFORTRAN_FOR_TARGET="$2"
5071 else
5072 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5078 # The user is always right.
5079 if test "${PATH_SEPARATOR+set}" != set; then
5080 echo "#! /bin/sh" >conf$$.sh
5081 echo "exit 0" >>conf$$.sh
5082 chmod +x conf$$.sh
5083 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5084 PATH_SEPARATOR=';'
5085 else
5086 PATH_SEPARATOR=:
5088 rm -f conf$$.sh
5093 if test "x$exec_prefix" = xNONE; then
5094 if test "x$prefix" = xNONE; then
5095 gcc_cv_tool_prefix=$ac_default_prefix
5096 else
5097 gcc_cv_tool_prefix=$prefix
5099 else
5100 gcc_cv_tool_prefix=$exec_prefix
5103 # If there is no compiler in the tree, use the PATH only. In any
5104 # case, if there is no compiler in the tree nobody should use
5105 # AS_FOR_TARGET and LD_FOR_TARGET.
5106 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5107 gcc_version=`cat $srcdir/gcc/BASE-VER`
5108 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5109 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5110 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5111 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5112 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5113 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5114 else
5115 gcc_cv_tool_dirs=
5118 if test x$build = x$target && test -n "$md_exec_prefix"; then
5119 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5124 cat > conftest.c << \EOF
5125 #ifdef __GNUC__
5126 gcc_yay;
5127 #endif
5129 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5130 have_gcc_for_target=yes
5131 else
5132 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5133 have_gcc_for_target=no
5135 rm conftest.c
5140 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5141 if test -n "$with_build_time_tools"; then
5142 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5143 echo "configure:5139: checking for ar in $with_build_time_tools" >&5
5144 if test -x $with_build_time_tools/ar; then
5145 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
5146 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5147 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5148 else
5149 echo "$ac_t""no" 1>&6
5151 elif test $build != $host && test $have_gcc_for_target = yes; then
5152 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5153 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5154 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5157 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5158 # Extract the first word of "ar", so it can be a program name with args.
5159 set dummy ar; ac_word=$2
5160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5161 echo "configure:5157: checking for $ac_word" >&5
5162 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5164 else
5165 case "$AR_FOR_TARGET" in
5167 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5169 ?:/*)
5170 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5174 ac_dummy="$gcc_cv_tool_dirs"
5175 for ac_dir in $ac_dummy; do
5176 test -z "$ac_dir" && ac_dir=.
5177 if test -f $ac_dir/$ac_word; then
5178 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
5179 break
5181 done
5182 IFS="$ac_save_ifs"
5184 esac
5186 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5187 if test -n "$AR_FOR_TARGET"; then
5188 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5189 else
5190 echo "$ac_t""no" 1>&6
5194 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5195 if test -n "$with_build_time_tools"; then
5196 for ncn_progname in ar; do
5197 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5198 echo "configure:5194: checking for ${ncn_progname} in $with_build_time_tools" >&5
5199 if test -x $with_build_time_tools/${ncn_progname}; then
5200 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5201 echo "$ac_t""yes" 1>&6
5202 break
5203 else
5204 echo "$ac_t""no" 1>&6
5206 done
5209 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5210 for ncn_progname in ar; do
5211 if test -n "$ncn_target_tool_prefix"; then
5212 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5213 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5215 echo "configure:5211: checking for $ac_word" >&5
5216 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5217 echo $ac_n "(cached) $ac_c" 1>&6
5218 else
5219 if test -n "$AR_FOR_TARGET"; then
5220 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5221 else
5222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5223 ac_dummy="$PATH"
5224 for ac_dir in $ac_dummy; do
5225 test -z "$ac_dir" && ac_dir=.
5226 if test -f $ac_dir/$ac_word; then
5227 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5228 break
5230 done
5231 IFS="$ac_save_ifs"
5234 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5235 if test -n "$AR_FOR_TARGET"; then
5236 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5237 else
5238 echo "$ac_t""no" 1>&6
5242 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5244 set dummy ${ncn_progname}; ac_word=$2
5245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5246 echo "configure:5242: checking for $ac_word" >&5
5247 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5248 echo $ac_n "(cached) $ac_c" 1>&6
5249 else
5250 if test -n "$AR_FOR_TARGET"; then
5251 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5252 else
5253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5254 ac_dummy="$PATH"
5255 for ac_dir in $ac_dummy; do
5256 test -z "$ac_dir" && ac_dir=.
5257 if test -f $ac_dir/$ac_word; then
5258 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5259 break
5261 done
5262 IFS="$ac_save_ifs"
5265 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5266 if test -n "$AR_FOR_TARGET"; then
5267 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5268 else
5269 echo "$ac_t""no" 1>&6
5273 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5274 done
5277 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5278 set dummy ar
5279 if test $build = $target ; then
5280 AR_FOR_TARGET="$2"
5281 else
5282 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
5286 else
5287 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5293 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5294 if test -n "$with_build_time_tools"; then
5295 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5296 echo "configure:5292: checking for as in $with_build_time_tools" >&5
5297 if test -x $with_build_time_tools/as; then
5298 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
5299 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5300 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5301 else
5302 echo "$ac_t""no" 1>&6
5304 elif test $build != $host && test $have_gcc_for_target = yes; then
5305 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5306 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5307 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5310 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5311 # Extract the first word of "as", so it can be a program name with args.
5312 set dummy as; ac_word=$2
5313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5314 echo "configure:5310: checking for $ac_word" >&5
5315 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5317 else
5318 case "$AS_FOR_TARGET" in
5320 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5322 ?:/*)
5323 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5327 ac_dummy="$gcc_cv_tool_dirs"
5328 for ac_dir in $ac_dummy; do
5329 test -z "$ac_dir" && ac_dir=.
5330 if test -f $ac_dir/$ac_word; then
5331 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5332 break
5334 done
5335 IFS="$ac_save_ifs"
5337 esac
5339 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5340 if test -n "$AS_FOR_TARGET"; then
5341 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5342 else
5343 echo "$ac_t""no" 1>&6
5347 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5348 if test -n "$with_build_time_tools"; then
5349 for ncn_progname in as; do
5350 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5351 echo "configure:5347: checking for ${ncn_progname} in $with_build_time_tools" >&5
5352 if test -x $with_build_time_tools/${ncn_progname}; then
5353 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5354 echo "$ac_t""yes" 1>&6
5355 break
5356 else
5357 echo "$ac_t""no" 1>&6
5359 done
5362 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5363 for ncn_progname in as; do
5364 if test -n "$ncn_target_tool_prefix"; then
5365 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5366 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5368 echo "configure:5364: checking for $ac_word" >&5
5369 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5371 else
5372 if test -n "$AS_FOR_TARGET"; then
5373 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5374 else
5375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5376 ac_dummy="$PATH"
5377 for ac_dir in $ac_dummy; do
5378 test -z "$ac_dir" && ac_dir=.
5379 if test -f $ac_dir/$ac_word; then
5380 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5381 break
5383 done
5384 IFS="$ac_save_ifs"
5387 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5388 if test -n "$AS_FOR_TARGET"; then
5389 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5390 else
5391 echo "$ac_t""no" 1>&6
5395 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5397 set dummy ${ncn_progname}; ac_word=$2
5398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5399 echo "configure:5395: checking for $ac_word" >&5
5400 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5401 echo $ac_n "(cached) $ac_c" 1>&6
5402 else
5403 if test -n "$AS_FOR_TARGET"; then
5404 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5405 else
5406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5407 ac_dummy="$PATH"
5408 for ac_dir in $ac_dummy; do
5409 test -z "$ac_dir" && ac_dir=.
5410 if test -f $ac_dir/$ac_word; then
5411 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5412 break
5414 done
5415 IFS="$ac_save_ifs"
5418 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5419 if test -n "$AS_FOR_TARGET"; then
5420 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5421 else
5422 echo "$ac_t""no" 1>&6
5426 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5427 done
5430 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5431 set dummy as
5432 if test $build = $target ; then
5433 AS_FOR_TARGET="$2"
5434 else
5435 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5439 else
5440 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5446 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5447 if test -n "$with_build_time_tools"; then
5448 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5449 echo "configure:5445: checking for dlltool in $with_build_time_tools" >&5
5450 if test -x $with_build_time_tools/dlltool; then
5451 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
5452 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5453 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5454 else
5455 echo "$ac_t""no" 1>&6
5457 elif test $build != $host && test $have_gcc_for_target = yes; then
5458 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5459 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5460 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5463 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5464 # Extract the first word of "dlltool", so it can be a program name with args.
5465 set dummy dlltool; ac_word=$2
5466 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5467 echo "configure:5463: checking for $ac_word" >&5
5468 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6
5470 else
5471 case "$DLLTOOL_FOR_TARGET" in
5473 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5475 ?:/*)
5476 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5480 ac_dummy="$gcc_cv_tool_dirs"
5481 for ac_dir in $ac_dummy; do
5482 test -z "$ac_dir" && ac_dir=.
5483 if test -f $ac_dir/$ac_word; then
5484 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5485 break
5487 done
5488 IFS="$ac_save_ifs"
5490 esac
5492 DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5493 if test -n "$DLLTOOL_FOR_TARGET"; then
5494 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5495 else
5496 echo "$ac_t""no" 1>&6
5500 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5501 if test -n "$with_build_time_tools"; then
5502 for ncn_progname in dlltool; do
5503 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5504 echo "configure:5500: checking for ${ncn_progname} in $with_build_time_tools" >&5
5505 if test -x $with_build_time_tools/${ncn_progname}; then
5506 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5507 echo "$ac_t""yes" 1>&6
5508 break
5509 else
5510 echo "$ac_t""no" 1>&6
5512 done
5515 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5516 for ncn_progname in dlltool; do
5517 if test -n "$ncn_target_tool_prefix"; then
5518 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5519 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5521 echo "configure:5517: checking for $ac_word" >&5
5522 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5524 else
5525 if test -n "$DLLTOOL_FOR_TARGET"; then
5526 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5527 else
5528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5529 ac_dummy="$PATH"
5530 for ac_dir in $ac_dummy; do
5531 test -z "$ac_dir" && ac_dir=.
5532 if test -f $ac_dir/$ac_word; then
5533 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5534 break
5536 done
5537 IFS="$ac_save_ifs"
5540 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5541 if test -n "$DLLTOOL_FOR_TARGET"; then
5542 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5543 else
5544 echo "$ac_t""no" 1>&6
5548 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5550 set dummy ${ncn_progname}; ac_word=$2
5551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5552 echo "configure:5548: checking for $ac_word" >&5
5553 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5554 echo $ac_n "(cached) $ac_c" 1>&6
5555 else
5556 if test -n "$DLLTOOL_FOR_TARGET"; then
5557 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5558 else
5559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5560 ac_dummy="$PATH"
5561 for ac_dir in $ac_dummy; do
5562 test -z "$ac_dir" && ac_dir=.
5563 if test -f $ac_dir/$ac_word; then
5564 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5565 break
5567 done
5568 IFS="$ac_save_ifs"
5571 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5572 if test -n "$DLLTOOL_FOR_TARGET"; then
5573 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5574 else
5575 echo "$ac_t""no" 1>&6
5579 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5580 done
5583 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5584 set dummy dlltool
5585 if test $build = $target ; then
5586 DLLTOOL_FOR_TARGET="$2"
5587 else
5588 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5592 else
5593 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5599 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5600 if test -n "$with_build_time_tools"; then
5601 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5602 echo "configure:5598: checking for ld in $with_build_time_tools" >&5
5603 if test -x $with_build_time_tools/ld; then
5604 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
5605 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5606 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5607 else
5608 echo "$ac_t""no" 1>&6
5610 elif test $build != $host && test $have_gcc_for_target = yes; then
5611 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5612 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5613 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5616 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5617 # Extract the first word of "ld", so it can be a program name with args.
5618 set dummy ld; ac_word=$2
5619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5620 echo "configure:5616: checking for $ac_word" >&5
5621 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5622 echo $ac_n "(cached) $ac_c" 1>&6
5623 else
5624 case "$LD_FOR_TARGET" in
5626 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5628 ?:/*)
5629 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5633 ac_dummy="$gcc_cv_tool_dirs"
5634 for ac_dir in $ac_dummy; do
5635 test -z "$ac_dir" && ac_dir=.
5636 if test -f $ac_dir/$ac_word; then
5637 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5638 break
5640 done
5641 IFS="$ac_save_ifs"
5643 esac
5645 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5646 if test -n "$LD_FOR_TARGET"; then
5647 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5648 else
5649 echo "$ac_t""no" 1>&6
5653 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5654 if test -n "$with_build_time_tools"; then
5655 for ncn_progname in ld; do
5656 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5657 echo "configure:5653: checking for ${ncn_progname} in $with_build_time_tools" >&5
5658 if test -x $with_build_time_tools/${ncn_progname}; then
5659 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5660 echo "$ac_t""yes" 1>&6
5661 break
5662 else
5663 echo "$ac_t""no" 1>&6
5665 done
5668 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5669 for ncn_progname in ld; do
5670 if test -n "$ncn_target_tool_prefix"; then
5671 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5672 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5674 echo "configure:5670: checking for $ac_word" >&5
5675 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5676 echo $ac_n "(cached) $ac_c" 1>&6
5677 else
5678 if test -n "$LD_FOR_TARGET"; then
5679 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5680 else
5681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5682 ac_dummy="$PATH"
5683 for ac_dir in $ac_dummy; do
5684 test -z "$ac_dir" && ac_dir=.
5685 if test -f $ac_dir/$ac_word; then
5686 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5687 break
5689 done
5690 IFS="$ac_save_ifs"
5693 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5694 if test -n "$LD_FOR_TARGET"; then
5695 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5696 else
5697 echo "$ac_t""no" 1>&6
5701 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5703 set dummy ${ncn_progname}; ac_word=$2
5704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5705 echo "configure:5701: checking for $ac_word" >&5
5706 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5708 else
5709 if test -n "$LD_FOR_TARGET"; then
5710 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5711 else
5712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5713 ac_dummy="$PATH"
5714 for ac_dir in $ac_dummy; do
5715 test -z "$ac_dir" && ac_dir=.
5716 if test -f $ac_dir/$ac_word; then
5717 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5718 break
5720 done
5721 IFS="$ac_save_ifs"
5724 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5725 if test -n "$LD_FOR_TARGET"; then
5726 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5727 else
5728 echo "$ac_t""no" 1>&6
5732 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5733 done
5736 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5737 set dummy ld
5738 if test $build = $target ; then
5739 LD_FOR_TARGET="$2"
5740 else
5741 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5745 else
5746 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5752 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5753 if test -n "$with_build_time_tools"; then
5754 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5755 echo "configure:5751: checking for lipo in $with_build_time_tools" >&5
5756 if test -x $with_build_time_tools/lipo; then
5757 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
5758 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5759 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5760 else
5761 echo "$ac_t""no" 1>&6
5763 elif test $build != $host && test $have_gcc_for_target = yes; then
5764 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5765 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5766 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5769 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5770 # Extract the first word of "lipo", so it can be a program name with args.
5771 set dummy lipo; ac_word=$2
5772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5773 echo "configure:5769: checking for $ac_word" >&5
5774 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5776 else
5777 case "$LIPO_FOR_TARGET" in
5779 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5781 ?:/*)
5782 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5786 ac_dummy="$gcc_cv_tool_dirs"
5787 for ac_dir in $ac_dummy; do
5788 test -z "$ac_dir" && ac_dir=.
5789 if test -f $ac_dir/$ac_word; then
5790 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5791 break
5793 done
5794 IFS="$ac_save_ifs"
5796 esac
5798 LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5799 if test -n "$LIPO_FOR_TARGET"; then
5800 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5801 else
5802 echo "$ac_t""no" 1>&6
5806 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5807 if test -n "$with_build_time_tools"; then
5808 for ncn_progname in lipo; do
5809 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5810 echo "configure:5806: checking for ${ncn_progname} in $with_build_time_tools" >&5
5811 if test -x $with_build_time_tools/${ncn_progname}; then
5812 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5813 echo "$ac_t""yes" 1>&6
5814 break
5815 else
5816 echo "$ac_t""no" 1>&6
5818 done
5821 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5822 for ncn_progname in lipo; do
5823 if test -n "$ncn_target_tool_prefix"; then
5824 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5825 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5827 echo "configure:5823: checking for $ac_word" >&5
5828 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5829 echo $ac_n "(cached) $ac_c" 1>&6
5830 else
5831 if test -n "$LIPO_FOR_TARGET"; then
5832 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5833 else
5834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5835 ac_dummy="$PATH"
5836 for ac_dir in $ac_dummy; do
5837 test -z "$ac_dir" && ac_dir=.
5838 if test -f $ac_dir/$ac_word; then
5839 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5840 break
5842 done
5843 IFS="$ac_save_ifs"
5846 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5847 if test -n "$LIPO_FOR_TARGET"; then
5848 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5849 else
5850 echo "$ac_t""no" 1>&6
5854 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5856 set dummy ${ncn_progname}; ac_word=$2
5857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5858 echo "configure:5854: checking for $ac_word" >&5
5859 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5860 echo $ac_n "(cached) $ac_c" 1>&6
5861 else
5862 if test -n "$LIPO_FOR_TARGET"; then
5863 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5864 else
5865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5866 ac_dummy="$PATH"
5867 for ac_dir in $ac_dummy; do
5868 test -z "$ac_dir" && ac_dir=.
5869 if test -f $ac_dir/$ac_word; then
5870 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5871 break
5873 done
5874 IFS="$ac_save_ifs"
5877 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5878 if test -n "$LIPO_FOR_TARGET"; then
5879 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5880 else
5881 echo "$ac_t""no" 1>&6
5885 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5886 done
5889 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5890 set dummy lipo
5891 if test $build = $target ; then
5892 LIPO_FOR_TARGET="$2"
5893 else
5894 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5898 else
5899 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
5905 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5906 if test -n "$with_build_time_tools"; then
5907 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5908 echo "configure:5904: checking for nm in $with_build_time_tools" >&5
5909 if test -x $with_build_time_tools/nm; then
5910 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
5911 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5912 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5913 else
5914 echo "$ac_t""no" 1>&6
5916 elif test $build != $host && test $have_gcc_for_target = yes; then
5917 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
5918 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
5919 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5922 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5923 # Extract the first word of "nm", so it can be a program name with args.
5924 set dummy nm; ac_word=$2
5925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5926 echo "configure:5922: checking for $ac_word" >&5
5927 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5928 echo $ac_n "(cached) $ac_c" 1>&6
5929 else
5930 case "$NM_FOR_TARGET" in
5932 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
5934 ?:/*)
5935 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5939 ac_dummy="$gcc_cv_tool_dirs"
5940 for ac_dir in $ac_dummy; do
5941 test -z "$ac_dir" && ac_dir=.
5942 if test -f $ac_dir/$ac_word; then
5943 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
5944 break
5946 done
5947 IFS="$ac_save_ifs"
5949 esac
5951 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
5952 if test -n "$NM_FOR_TARGET"; then
5953 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5954 else
5955 echo "$ac_t""no" 1>&6
5959 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5960 if test -n "$with_build_time_tools"; then
5961 for ncn_progname in nm; do
5962 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5963 echo "configure:5959: checking for ${ncn_progname} in $with_build_time_tools" >&5
5964 if test -x $with_build_time_tools/${ncn_progname}; then
5965 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5966 echo "$ac_t""yes" 1>&6
5967 break
5968 else
5969 echo "$ac_t""no" 1>&6
5971 done
5974 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5975 for ncn_progname in nm; do
5976 if test -n "$ncn_target_tool_prefix"; then
5977 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5978 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5980 echo "configure:5976: checking for $ac_word" >&5
5981 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5982 echo $ac_n "(cached) $ac_c" 1>&6
5983 else
5984 if test -n "$NM_FOR_TARGET"; then
5985 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5986 else
5987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5988 ac_dummy="$PATH"
5989 for ac_dir in $ac_dummy; do
5990 test -z "$ac_dir" && ac_dir=.
5991 if test -f $ac_dir/$ac_word; then
5992 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5993 break
5995 done
5996 IFS="$ac_save_ifs"
5999 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6000 if test -n "$NM_FOR_TARGET"; then
6001 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6002 else
6003 echo "$ac_t""no" 1>&6
6007 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
6008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6009 set dummy ${ncn_progname}; ac_word=$2
6010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6011 echo "configure:6007: checking for $ac_word" >&5
6012 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6013 echo $ac_n "(cached) $ac_c" 1>&6
6014 else
6015 if test -n "$NM_FOR_TARGET"; then
6016 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6017 else
6018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6019 ac_dummy="$PATH"
6020 for ac_dir in $ac_dummy; do
6021 test -z "$ac_dir" && ac_dir=.
6022 if test -f $ac_dir/$ac_word; then
6023 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
6024 break
6026 done
6027 IFS="$ac_save_ifs"
6030 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6031 if test -n "$NM_FOR_TARGET"; then
6032 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6033 else
6034 echo "$ac_t""no" 1>&6
6038 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6039 done
6042 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6043 set dummy nm
6044 if test $build = $target ; then
6045 NM_FOR_TARGET="$2"
6046 else
6047 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
6051 else
6052 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
6058 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6059 if test -n "$with_build_time_tools"; then
6060 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6061 echo "configure:6057: checking for objdump in $with_build_time_tools" >&5
6062 if test -x $with_build_time_tools/objdump; then
6063 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
6064 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6065 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6066 else
6067 echo "$ac_t""no" 1>&6
6069 elif test $build != $host && test $have_gcc_for_target = yes; then
6070 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
6071 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
6072 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6075 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6076 # Extract the first word of "objdump", so it can be a program name with args.
6077 set dummy objdump; ac_word=$2
6078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6079 echo "configure:6075: checking for $ac_word" >&5
6080 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6082 else
6083 case "$OBJDUMP_FOR_TARGET" in
6085 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6087 ?:/*)
6088 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6092 ac_dummy="$gcc_cv_tool_dirs"
6093 for ac_dir in $ac_dummy; do
6094 test -z "$ac_dir" && ac_dir=.
6095 if test -f $ac_dir/$ac_word; then
6096 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6097 break
6099 done
6100 IFS="$ac_save_ifs"
6102 esac
6104 OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6105 if test -n "$OBJDUMP_FOR_TARGET"; then
6106 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6107 else
6108 echo "$ac_t""no" 1>&6
6112 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6113 if test -n "$with_build_time_tools"; then
6114 for ncn_progname in objdump; do
6115 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6116 echo "configure:6112: checking for ${ncn_progname} in $with_build_time_tools" >&5
6117 if test -x $with_build_time_tools/${ncn_progname}; then
6118 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6119 echo "$ac_t""yes" 1>&6
6120 break
6121 else
6122 echo "$ac_t""no" 1>&6
6124 done
6127 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6128 for ncn_progname in objdump; do
6129 if test -n "$ncn_target_tool_prefix"; then
6130 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6131 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6133 echo "configure:6129: checking for $ac_word" >&5
6134 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6136 else
6137 if test -n "$OBJDUMP_FOR_TARGET"; then
6138 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6139 else
6140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6141 ac_dummy="$PATH"
6142 for ac_dir in $ac_dummy; do
6143 test -z "$ac_dir" && ac_dir=.
6144 if test -f $ac_dir/$ac_word; then
6145 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6146 break
6148 done
6149 IFS="$ac_save_ifs"
6152 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6153 if test -n "$OBJDUMP_FOR_TARGET"; then
6154 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6155 else
6156 echo "$ac_t""no" 1>&6
6160 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6162 set dummy ${ncn_progname}; ac_word=$2
6163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6164 echo "configure:6160: checking for $ac_word" >&5
6165 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6167 else
6168 if test -n "$OBJDUMP_FOR_TARGET"; then
6169 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6170 else
6171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6172 ac_dummy="$PATH"
6173 for ac_dir in $ac_dummy; do
6174 test -z "$ac_dir" && ac_dir=.
6175 if test -f $ac_dir/$ac_word; then
6176 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6177 break
6179 done
6180 IFS="$ac_save_ifs"
6183 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6184 if test -n "$OBJDUMP_FOR_TARGET"; then
6185 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6186 else
6187 echo "$ac_t""no" 1>&6
6191 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6192 done
6195 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6196 set dummy objdump
6197 if test $build = $target ; then
6198 OBJDUMP_FOR_TARGET="$2"
6199 else
6200 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6204 else
6205 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
6211 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6212 if test -n "$with_build_time_tools"; then
6213 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6214 echo "configure:6210: checking for ranlib in $with_build_time_tools" >&5
6215 if test -x $with_build_time_tools/ranlib; then
6216 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
6217 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6218 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6219 else
6220 echo "$ac_t""no" 1>&6
6222 elif test $build != $host && test $have_gcc_for_target = yes; then
6223 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6224 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6225 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6228 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6229 # Extract the first word of "ranlib", so it can be a program name with args.
6230 set dummy ranlib; ac_word=$2
6231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6232 echo "configure:6228: checking for $ac_word" >&5
6233 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6234 echo $ac_n "(cached) $ac_c" 1>&6
6235 else
6236 case "$RANLIB_FOR_TARGET" in
6238 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6240 ?:/*)
6241 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6245 ac_dummy="$gcc_cv_tool_dirs"
6246 for ac_dir in $ac_dummy; do
6247 test -z "$ac_dir" && ac_dir=.
6248 if test -f $ac_dir/$ac_word; then
6249 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6250 break
6252 done
6253 IFS="$ac_save_ifs"
6255 esac
6257 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6258 if test -n "$RANLIB_FOR_TARGET"; then
6259 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6260 else
6261 echo "$ac_t""no" 1>&6
6265 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6266 if test -n "$with_build_time_tools"; then
6267 for ncn_progname in ranlib; do
6268 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6269 echo "configure:6265: checking for ${ncn_progname} in $with_build_time_tools" >&5
6270 if test -x $with_build_time_tools/${ncn_progname}; then
6271 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6272 echo "$ac_t""yes" 1>&6
6273 break
6274 else
6275 echo "$ac_t""no" 1>&6
6277 done
6280 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6281 for ncn_progname in ranlib; do
6282 if test -n "$ncn_target_tool_prefix"; then
6283 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6284 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6286 echo "configure:6282: checking for $ac_word" >&5
6287 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6288 echo $ac_n "(cached) $ac_c" 1>&6
6289 else
6290 if test -n "$RANLIB_FOR_TARGET"; then
6291 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6292 else
6293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6294 ac_dummy="$PATH"
6295 for ac_dir in $ac_dummy; do
6296 test -z "$ac_dir" && ac_dir=.
6297 if test -f $ac_dir/$ac_word; then
6298 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6299 break
6301 done
6302 IFS="$ac_save_ifs"
6305 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6306 if test -n "$RANLIB_FOR_TARGET"; then
6307 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6308 else
6309 echo "$ac_t""no" 1>&6
6313 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6315 set dummy ${ncn_progname}; ac_word=$2
6316 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6317 echo "configure:6313: checking for $ac_word" >&5
6318 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6319 echo $ac_n "(cached) $ac_c" 1>&6
6320 else
6321 if test -n "$RANLIB_FOR_TARGET"; then
6322 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6323 else
6324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6325 ac_dummy="$PATH"
6326 for ac_dir in $ac_dummy; do
6327 test -z "$ac_dir" && ac_dir=.
6328 if test -f $ac_dir/$ac_word; then
6329 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6330 break
6332 done
6333 IFS="$ac_save_ifs"
6336 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6337 if test -n "$RANLIB_FOR_TARGET"; then
6338 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6339 else
6340 echo "$ac_t""no" 1>&6
6344 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6345 done
6348 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6349 set dummy ranlib
6350 if test $build = $target ; then
6351 RANLIB_FOR_TARGET="$2"
6352 else
6353 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
6357 else
6358 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
6364 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6365 if test -n "$with_build_time_tools"; then
6366 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6367 echo "configure:6363: checking for strip in $with_build_time_tools" >&5
6368 if test -x $with_build_time_tools/strip; then
6369 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
6370 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6371 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6372 else
6373 echo "$ac_t""no" 1>&6
6375 elif test $build != $host && test $have_gcc_for_target = yes; then
6376 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6377 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6378 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6381 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6382 # Extract the first word of "strip", so it can be a program name with args.
6383 set dummy strip; ac_word=$2
6384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6385 echo "configure:6381: checking for $ac_word" >&5
6386 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
6388 else
6389 case "$STRIP_FOR_TARGET" in
6391 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6393 ?:/*)
6394 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6398 ac_dummy="$gcc_cv_tool_dirs"
6399 for ac_dir in $ac_dummy; do
6400 test -z "$ac_dir" && ac_dir=.
6401 if test -f $ac_dir/$ac_word; then
6402 ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6403 break
6405 done
6406 IFS="$ac_save_ifs"
6408 esac
6410 STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6411 if test -n "$STRIP_FOR_TARGET"; then
6412 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6413 else
6414 echo "$ac_t""no" 1>&6
6418 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6419 if test -n "$with_build_time_tools"; then
6420 for ncn_progname in strip; do
6421 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6422 echo "configure:6418: checking for ${ncn_progname} in $with_build_time_tools" >&5
6423 if test -x $with_build_time_tools/${ncn_progname}; then
6424 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6425 echo "$ac_t""yes" 1>&6
6426 break
6427 else
6428 echo "$ac_t""no" 1>&6
6430 done
6433 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6434 for ncn_progname in strip; do
6435 if test -n "$ncn_target_tool_prefix"; then
6436 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6437 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6439 echo "configure:6435: checking for $ac_word" >&5
6440 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6441 echo $ac_n "(cached) $ac_c" 1>&6
6442 else
6443 if test -n "$STRIP_FOR_TARGET"; then
6444 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6445 else
6446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6447 ac_dummy="$PATH"
6448 for ac_dir in $ac_dummy; do
6449 test -z "$ac_dir" && ac_dir=.
6450 if test -f $ac_dir/$ac_word; then
6451 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6452 break
6454 done
6455 IFS="$ac_save_ifs"
6458 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6459 if test -n "$STRIP_FOR_TARGET"; then
6460 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6461 else
6462 echo "$ac_t""no" 1>&6
6466 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6468 set dummy ${ncn_progname}; ac_word=$2
6469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6470 echo "configure:6466: checking for $ac_word" >&5
6471 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6472 echo $ac_n "(cached) $ac_c" 1>&6
6473 else
6474 if test -n "$STRIP_FOR_TARGET"; then
6475 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6476 else
6477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6478 ac_dummy="$PATH"
6479 for ac_dir in $ac_dummy; do
6480 test -z "$ac_dir" && ac_dir=.
6481 if test -f $ac_dir/$ac_word; then
6482 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6483 break
6485 done
6486 IFS="$ac_save_ifs"
6489 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6490 if test -n "$STRIP_FOR_TARGET"; then
6491 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6492 else
6493 echo "$ac_t""no" 1>&6
6497 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6498 done
6501 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6502 set dummy strip
6503 if test $build = $target ; then
6504 STRIP_FOR_TARGET="$2"
6505 else
6506 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6510 else
6511 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
6517 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6518 if test -n "$with_build_time_tools"; then
6519 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6520 echo "configure:6516: checking for windres in $with_build_time_tools" >&5
6521 if test -x $with_build_time_tools/windres; then
6522 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
6523 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6524 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6525 else
6526 echo "$ac_t""no" 1>&6
6528 elif test $build != $host && test $have_gcc_for_target = yes; then
6529 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6530 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6531 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6534 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6535 # Extract the first word of "windres", so it can be a program name with args.
6536 set dummy windres; ac_word=$2
6537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6538 echo "configure:6534: checking for $ac_word" >&5
6539 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6541 else
6542 case "$WINDRES_FOR_TARGET" in
6544 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6546 ?:/*)
6547 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6551 ac_dummy="$gcc_cv_tool_dirs"
6552 for ac_dir in $ac_dummy; do
6553 test -z "$ac_dir" && ac_dir=.
6554 if test -f $ac_dir/$ac_word; then
6555 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6556 break
6558 done
6559 IFS="$ac_save_ifs"
6561 esac
6563 WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6564 if test -n "$WINDRES_FOR_TARGET"; then
6565 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6566 else
6567 echo "$ac_t""no" 1>&6
6571 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6572 if test -n "$with_build_time_tools"; then
6573 for ncn_progname in windres; do
6574 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6575 echo "configure:6571: checking for ${ncn_progname} in $with_build_time_tools" >&5
6576 if test -x $with_build_time_tools/${ncn_progname}; then
6577 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6578 echo "$ac_t""yes" 1>&6
6579 break
6580 else
6581 echo "$ac_t""no" 1>&6
6583 done
6586 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6587 for ncn_progname in windres; do
6588 if test -n "$ncn_target_tool_prefix"; then
6589 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6590 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6592 echo "configure:6588: checking for $ac_word" >&5
6593 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6594 echo $ac_n "(cached) $ac_c" 1>&6
6595 else
6596 if test -n "$WINDRES_FOR_TARGET"; then
6597 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6598 else
6599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6600 ac_dummy="$PATH"
6601 for ac_dir in $ac_dummy; do
6602 test -z "$ac_dir" && ac_dir=.
6603 if test -f $ac_dir/$ac_word; then
6604 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6605 break
6607 done
6608 IFS="$ac_save_ifs"
6611 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6612 if test -n "$WINDRES_FOR_TARGET"; then
6613 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6614 else
6615 echo "$ac_t""no" 1>&6
6619 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6621 set dummy ${ncn_progname}; ac_word=$2
6622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6623 echo "configure:6619: checking for $ac_word" >&5
6624 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6625 echo $ac_n "(cached) $ac_c" 1>&6
6626 else
6627 if test -n "$WINDRES_FOR_TARGET"; then
6628 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6629 else
6630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6631 ac_dummy="$PATH"
6632 for ac_dir in $ac_dummy; do
6633 test -z "$ac_dir" && ac_dir=.
6634 if test -f $ac_dir/$ac_word; then
6635 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6636 break
6638 done
6639 IFS="$ac_save_ifs"
6642 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6643 if test -n "$WINDRES_FOR_TARGET"; then
6644 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6645 else
6646 echo "$ac_t""no" 1>&6
6650 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6651 done
6654 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6655 set dummy windres
6656 if test $build = $target ; then
6657 WINDRES_FOR_TARGET="$2"
6658 else
6659 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
6663 else
6664 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
6668 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6670 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6671 echo "configure:6667: checking where to find the target ar" >&5
6672 if test "x${build}" != "x${host}" ; then
6673 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6674 # We already found the complete path
6675 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6676 else
6677 # Canadian cross, just use what we found
6678 echo "$ac_t""pre-installed" 1>&6
6680 else
6681 ok=yes
6682 case " ${configdirs} " in
6683 *" binutils "*) ;;
6684 *) ok=no ;;
6685 esac
6687 if test $ok = yes; then
6688 # An in-tree tool is available and we can use it
6689 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6690 echo "$ac_t""just compiled" 1>&6
6691 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6692 # We already found the complete path
6693 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6694 elif test "x$target" = "x$host"; then
6695 # We can use an host tool
6696 AR_FOR_TARGET='$(AR)'
6697 echo "$ac_t""host tool" 1>&6
6698 else
6699 # We need a cross tool
6700 echo "$ac_t""pre-installed" 1>&6
6703 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6704 echo "configure:6700: checking where to find the target as" >&5
6705 if test "x${build}" != "x${host}" ; then
6706 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6707 # We already found the complete path
6708 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6709 else
6710 # Canadian cross, just use what we found
6711 echo "$ac_t""pre-installed" 1>&6
6713 else
6714 ok=yes
6715 case " ${configdirs} " in
6716 *" gas "*) ;;
6717 *) ok=no ;;
6718 esac
6720 if test $ok = yes; then
6721 # An in-tree tool is available and we can use it
6722 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6723 echo "$ac_t""just compiled" 1>&6
6724 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6725 # We already found the complete path
6726 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6727 elif test "x$target" = "x$host"; then
6728 # We can use an host tool
6729 AS_FOR_TARGET='$(AS)'
6730 echo "$ac_t""host tool" 1>&6
6731 else
6732 # We need a cross tool
6733 echo "$ac_t""pre-installed" 1>&6
6736 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6737 echo "configure:6733: checking where to find the target cc" >&5
6738 if test "x${build}" != "x${host}" ; then
6739 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6740 # We already found the complete path
6741 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6742 else
6743 # Canadian cross, just use what we found
6744 echo "$ac_t""pre-installed" 1>&6
6746 else
6747 ok=yes
6748 case " ${configdirs} " in
6749 *" gcc "*) ;;
6750 *) ok=no ;;
6751 esac
6753 if test $ok = yes; then
6754 # An in-tree tool is available and we can use it
6755 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6756 echo "$ac_t""just compiled" 1>&6
6757 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6758 # We already found the complete path
6759 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6760 elif test "x$target" = "x$host"; then
6761 # We can use an host tool
6762 CC_FOR_TARGET='$(CC)'
6763 echo "$ac_t""host tool" 1>&6
6764 else
6765 # We need a cross tool
6766 echo "$ac_t""pre-installed" 1>&6
6769 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6770 echo "configure:6766: checking where to find the target c++" >&5
6771 if test "x${build}" != "x${host}" ; then
6772 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6773 # We already found the complete path
6774 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6775 else
6776 # Canadian cross, just use what we found
6777 echo "$ac_t""pre-installed" 1>&6
6779 else
6780 ok=yes
6781 case " ${configdirs} " in
6782 *" gcc "*) ;;
6783 *) ok=no ;;
6784 esac
6785 case ,${enable_languages}, in
6786 *,c++,*) ;;
6787 *) ok=no ;;
6788 esac
6789 if test $ok = yes; then
6790 # An in-tree tool is available and we can use it
6791 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'
6792 echo "$ac_t""just compiled" 1>&6
6793 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6794 # We already found the complete path
6795 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6796 elif test "x$target" = "x$host"; then
6797 # We can use an host tool
6798 CXX_FOR_TARGET='$(CXX)'
6799 echo "$ac_t""host tool" 1>&6
6800 else
6801 # We need a cross tool
6802 echo "$ac_t""pre-installed" 1>&6
6805 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6806 echo "configure:6802: checking where to find the target c++ for libstdc++" >&5
6807 if test "x${build}" != "x${host}" ; then
6808 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6809 # We already found the complete path
6810 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6811 else
6812 # Canadian cross, just use what we found
6813 echo "$ac_t""pre-installed" 1>&6
6815 else
6816 ok=yes
6817 case " ${configdirs} " in
6818 *" gcc "*) ;;
6819 *) ok=no ;;
6820 esac
6821 case ,${enable_languages}, in
6822 *,c++,*) ;;
6823 *) ok=no ;;
6824 esac
6825 if test $ok = yes; then
6826 # An in-tree tool is available and we can use it
6827 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'
6828 echo "$ac_t""just compiled" 1>&6
6829 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6830 # We already found the complete path
6831 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6832 elif test "x$target" = "x$host"; then
6833 # We can use an host tool
6834 RAW_CXX_FOR_TARGET='$(CXX)'
6835 echo "$ac_t""host tool" 1>&6
6836 else
6837 # We need a cross tool
6838 echo "$ac_t""pre-installed" 1>&6
6841 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6842 echo "configure:6838: checking where to find the target dlltool" >&5
6843 if test "x${build}" != "x${host}" ; then
6844 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6845 # We already found the complete path
6846 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6847 else
6848 # Canadian cross, just use what we found
6849 echo "$ac_t""pre-installed" 1>&6
6851 else
6852 ok=yes
6853 case " ${configdirs} " in
6854 *" binutils "*) ;;
6855 *) ok=no ;;
6856 esac
6858 if test $ok = yes; then
6859 # An in-tree tool is available and we can use it
6860 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6861 echo "$ac_t""just compiled" 1>&6
6862 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6863 # We already found the complete path
6864 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6865 elif test "x$target" = "x$host"; then
6866 # We can use an host tool
6867 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
6868 echo "$ac_t""host tool" 1>&6
6869 else
6870 # We need a cross tool
6871 echo "$ac_t""pre-installed" 1>&6
6874 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6875 echo "configure:6871: checking where to find the target gcc" >&5
6876 if test "x${build}" != "x${host}" ; then
6877 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6878 # We already found the complete path
6879 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6880 else
6881 # Canadian cross, just use what we found
6882 echo "$ac_t""pre-installed" 1>&6
6884 else
6885 ok=yes
6886 case " ${configdirs} " in
6887 *" gcc "*) ;;
6888 *) ok=no ;;
6889 esac
6891 if test $ok = yes; then
6892 # An in-tree tool is available and we can use it
6893 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6894 echo "$ac_t""just compiled" 1>&6
6895 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6896 # We already found the complete path
6897 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6898 elif test "x$target" = "x$host"; then
6899 # We can use an host tool
6900 GCC_FOR_TARGET='$()'
6901 echo "$ac_t""host tool" 1>&6
6902 else
6903 # We need a cross tool
6904 echo "$ac_t""pre-installed" 1>&6
6907 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6908 echo "configure:6904: checking where to find the target gcj" >&5
6909 if test "x${build}" != "x${host}" ; then
6910 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6911 # We already found the complete path
6912 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6913 else
6914 # Canadian cross, just use what we found
6915 echo "$ac_t""pre-installed" 1>&6
6917 else
6918 ok=yes
6919 case " ${configdirs} " in
6920 *" gcc "*) ;;
6921 *) ok=no ;;
6922 esac
6923 case ,${enable_languages}, in
6924 *,java,*) ;;
6925 *) ok=no ;;
6926 esac
6927 if test $ok = yes; then
6928 # An in-tree tool is available and we can use it
6929 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6930 echo "$ac_t""just compiled" 1>&6
6931 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6932 # We already found the complete path
6933 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6934 elif test "x$target" = "x$host"; then
6935 # We can use an host tool
6936 GCJ_FOR_TARGET='$(GCJ)'
6937 echo "$ac_t""host tool" 1>&6
6938 else
6939 # We need a cross tool
6940 echo "$ac_t""pre-installed" 1>&6
6943 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6944 echo "configure:6940: checking where to find the target gfortran" >&5
6945 if test "x${build}" != "x${host}" ; then
6946 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6947 # We already found the complete path
6948 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6949 else
6950 # Canadian cross, just use what we found
6951 echo "$ac_t""pre-installed" 1>&6
6953 else
6954 ok=yes
6955 case " ${configdirs} " in
6956 *" gcc "*) ;;
6957 *) ok=no ;;
6958 esac
6959 case ,${enable_languages}, in
6960 *,fortran,*) ;;
6961 *) ok=no ;;
6962 esac
6963 if test $ok = yes; then
6964 # An in-tree tool is available and we can use it
6965 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6966 echo "$ac_t""just compiled" 1>&6
6967 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6968 # We already found the complete path
6969 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6970 elif test "x$target" = "x$host"; then
6971 # We can use an host tool
6972 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
6973 echo "$ac_t""host tool" 1>&6
6974 else
6975 # We need a cross tool
6976 echo "$ac_t""pre-installed" 1>&6
6979 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
6980 echo "configure:6976: checking where to find the target ld" >&5
6981 if test "x${build}" != "x${host}" ; then
6982 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6983 # We already found the complete path
6984 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6985 else
6986 # Canadian cross, just use what we found
6987 echo "$ac_t""pre-installed" 1>&6
6989 else
6990 ok=yes
6991 case " ${configdirs} " in
6992 *" ld "*) ;;
6993 *) ok=no ;;
6994 esac
6996 if test $ok = yes; then
6997 # An in-tree tool is available and we can use it
6998 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
6999 echo "$ac_t""just compiled" 1>&6
7000 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
7001 # We already found the complete path
7002 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7003 elif test "x$target" = "x$host"; then
7004 # We can use an host tool
7005 LD_FOR_TARGET='$(LD)'
7006 echo "$ac_t""host tool" 1>&6
7007 else
7008 # We need a cross tool
7009 echo "$ac_t""pre-installed" 1>&6
7012 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
7013 echo "configure:7009: checking where to find the target lipo" >&5
7014 if test "x${build}" != "x${host}" ; then
7015 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7016 # We already found the complete path
7017 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7018 else
7019 # Canadian cross, just use what we found
7020 echo "$ac_t""pre-installed" 1>&6
7022 else
7023 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7024 # We already found the complete path
7025 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7026 elif test "x$target" = "x$host"; then
7027 # We can use an host tool
7028 LIPO_FOR_TARGET='$(LIPO)'
7029 echo "$ac_t""host tool" 1>&6
7030 else
7031 # We need a cross tool
7032 echo "$ac_t""pre-installed" 1>&6
7035 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
7036 echo "configure:7032: checking where to find the target nm" >&5
7037 if test "x${build}" != "x${host}" ; then
7038 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7039 # We already found the complete path
7040 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7041 else
7042 # Canadian cross, just use what we found
7043 echo "$ac_t""pre-installed" 1>&6
7045 else
7046 ok=yes
7047 case " ${configdirs} " in
7048 *" binutils "*) ;;
7049 *) ok=no ;;
7050 esac
7052 if test $ok = yes; then
7053 # An in-tree tool is available and we can use it
7054 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7055 echo "$ac_t""just compiled" 1>&6
7056 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7057 # We already found the complete path
7058 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7059 elif test "x$target" = "x$host"; then
7060 # We can use an host tool
7061 NM_FOR_TARGET='$(NM)'
7062 echo "$ac_t""host tool" 1>&6
7063 else
7064 # We need a cross tool
7065 echo "$ac_t""pre-installed" 1>&6
7068 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7069 echo "configure:7065: checking where to find the target objdump" >&5
7070 if test "x${build}" != "x${host}" ; then
7071 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7072 # We already found the complete path
7073 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7074 else
7075 # Canadian cross, just use what we found
7076 echo "$ac_t""pre-installed" 1>&6
7078 else
7079 ok=yes
7080 case " ${configdirs} " in
7081 *" binutils "*) ;;
7082 *) ok=no ;;
7083 esac
7085 if test $ok = yes; then
7086 # An in-tree tool is available and we can use it
7087 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
7088 echo "$ac_t""just compiled" 1>&6
7089 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7090 # We already found the complete path
7091 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7092 elif test "x$target" = "x$host"; then
7093 # We can use an host tool
7094 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
7095 echo "$ac_t""host tool" 1>&6
7096 else
7097 # We need a cross tool
7098 echo "$ac_t""pre-installed" 1>&6
7101 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7102 echo "configure:7098: checking where to find the target ranlib" >&5
7103 if test "x${build}" != "x${host}" ; then
7104 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7105 # We already found the complete path
7106 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7107 else
7108 # Canadian cross, just use what we found
7109 echo "$ac_t""pre-installed" 1>&6
7111 else
7112 ok=yes
7113 case " ${configdirs} " in
7114 *" binutils "*) ;;
7115 *) ok=no ;;
7116 esac
7118 if test $ok = yes; then
7119 # An in-tree tool is available and we can use it
7120 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7121 echo "$ac_t""just compiled" 1>&6
7122 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7123 # We already found the complete path
7124 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7125 elif test "x$target" = "x$host"; then
7126 # We can use an host tool
7127 RANLIB_FOR_TARGET='$(RANLIB)'
7128 echo "$ac_t""host tool" 1>&6
7129 else
7130 # We need a cross tool
7131 echo "$ac_t""pre-installed" 1>&6
7134 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7135 echo "configure:7131: checking where to find the target strip" >&5
7136 if test "x${build}" != "x${host}" ; then
7137 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7138 # We already found the complete path
7139 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7140 else
7141 # Canadian cross, just use what we found
7142 echo "$ac_t""pre-installed" 1>&6
7144 else
7145 ok=yes
7146 case " ${configdirs} " in
7147 *" binutils "*) ;;
7148 *) ok=no ;;
7149 esac
7151 if test $ok = yes; then
7152 # An in-tree tool is available and we can use it
7153 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7154 echo "$ac_t""just compiled" 1>&6
7155 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7156 # We already found the complete path
7157 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7158 elif test "x$target" = "x$host"; then
7159 # We can use an host tool
7160 STRIP_FOR_TARGET='$(STRIP)'
7161 echo "$ac_t""host tool" 1>&6
7162 else
7163 # We need a cross tool
7164 echo "$ac_t""pre-installed" 1>&6
7167 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7168 echo "configure:7164: checking where to find the target windres" >&5
7169 if test "x${build}" != "x${host}" ; then
7170 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7171 # We already found the complete path
7172 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7173 else
7174 # Canadian cross, just use what we found
7175 echo "$ac_t""pre-installed" 1>&6
7177 else
7178 ok=yes
7179 case " ${configdirs} " in
7180 *" binutils "*) ;;
7181 *) ok=no ;;
7182 esac
7184 if test $ok = yes; then
7185 # An in-tree tool is available and we can use it
7186 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7187 echo "$ac_t""just compiled" 1>&6
7188 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7189 # We already found the complete path
7190 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7191 elif test "x$target" = "x$host"; then
7192 # We can use an host tool
7193 WINDRES_FOR_TARGET='$(WINDRES)'
7194 echo "$ac_t""host tool" 1>&6
7195 else
7196 # We need a cross tool
7197 echo "$ac_t""pre-installed" 1>&6
7204 # Certain tools may need extra flags.
7205 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7206 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7207 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7209 # When building target libraries, except in a Canadian cross, we use
7210 # the same toolchain as the compiler we just built.
7211 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7212 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7213 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7214 if test $host = $build; then
7215 case " $configdirs " in
7216 *" gcc "*)
7217 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7218 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7219 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7221 esac
7228 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7229 echo "configure:7225: checking whether to enable maintainer-specific portions of Makefiles" >&5
7230 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7231 if test "${enable_maintainer_mode+set}" = set; then
7232 enableval="$enable_maintainer_mode"
7233 USE_MAINTAINER_MODE=$enableval
7234 else
7235 USE_MAINTAINER_MODE=no
7238 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7241 if test "$USE_MAINTAINER_MODE" = yes; then
7242 MAINTAINER_MODE_TRUE=
7243 MAINTAINER_MODE_FALSE='#'
7244 else
7245 MAINTAINER_MODE_TRUE='#'
7246 MAINTAINER_MODE_FALSE=
7248 MAINT=$MAINTAINER_MODE_TRUE
7250 # ---------------------
7251 # GCC bootstrap support
7252 # ---------------------
7254 # Stage specific cflags for build.
7255 stage1_cflags="-g"
7256 case $build in
7257 vax-*-*)
7258 case ${GCC} in
7259 yes) stage1_cflags="-g -Wa,-J" ;;
7260 *) stage1_cflags="-g -J" ;;
7261 esac ;;
7262 powerpc-*-darwin*)
7263 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7264 # sources; use -no-cpp-precomp to get to GNU cpp.
7265 # Apple's GCC has bugs in designated initializer handling, so disable
7266 # that too.
7267 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7269 esac
7271 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7272 if test "$GCC" = yes; then
7273 saved_CFLAGS="$CFLAGS"
7275 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
7276 CFLAGS="$CFLAGS -fkeep-inline-functions"
7277 echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
7278 echo "configure:7274: checking whether -fkeep-inline-functions is supported" >&5
7279 cat > conftest.$ac_ext <<EOF
7280 #line 7276 "configure"
7281 #include "confdefs.h"
7283 int main() {
7285 ; return 0; }
7287 if { (eval echo configure:7283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7288 rm -rf conftest*
7289 echo "$ac_t""yes" 1>&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
7290 else
7291 echo "configure: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7293 rm -rf conftest*
7294 echo "$ac_t""no" 1>&6
7296 rm -f conftest*
7298 CFLAGS="$saved_CFLAGS"
7303 # Enable -Werror in bootstrap stage2 and later.
7304 # Change the default to "no" on release branches.
7305 # Check whether --enable-werror or --disable-werror was given.
7306 if test "${enable_werror+set}" = set; then
7307 enableval="$enable_werror"
7309 else
7310 enable_werror=yes
7313 case ${enable_werror} in
7314 yes) stage2_werror_flag="--enable-werror-always" ;;
7315 *) stage2_werror_flag="" ;;
7316 esac
7319 # Flags needed to enable html installing and building
7320 # Check whether --with-datarootdir or --without-datarootdir was given.
7321 if test "${with_datarootdir+set}" = set; then
7322 withval="$with_datarootdir"
7323 datarootdir="\${prefix}/${withval}"
7324 else
7325 datarootdir="\${prefix}/share"
7329 # Check whether --with-docdir or --without-docdir was given.
7330 if test "${with_docdir+set}" = set; then
7331 withval="$with_docdir"
7332 docdir="\${prefix}/${withval}"
7333 else
7334 docdir="\${datarootdir}/doc"
7338 # Check whether --with-htmldir or --without-htmldir was given.
7339 if test "${with_htmldir+set}" = set; then
7340 withval="$with_htmldir"
7341 htmldir="\${prefix}/${withval}"
7342 else
7343 htmldir="\${docdir}"
7351 trap '' 1 2 15
7352 cat > confcache <<\EOF
7353 # This file is a shell script that caches the results of configure
7354 # tests run on this system so they can be shared between configure
7355 # scripts and configure runs. It is not useful on other systems.
7356 # If it contains results you don't want to keep, you may remove or edit it.
7358 # By default, configure uses ./config.cache as the cache file,
7359 # creating it if it does not exist already. You can give configure
7360 # the --cache-file=FILE option to use a different cache file; that is
7361 # what configure does when it calls configure scripts in
7362 # subdirectories, so they share the cache.
7363 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7364 # config.status only pays attention to the cache file if you give it the
7365 # --recheck option to rerun configure.
7368 # The following way of writing the cache mishandles newlines in values,
7369 # but we know of no workaround that is simple, portable, and efficient.
7370 # So, don't put newlines in cache variables' values.
7371 # Ultrix sh set writes to stderr and can't be redirected directly,
7372 # and sets the high bit in the cache file unless we assign to the vars.
7373 (set) 2>&1 |
7374 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7375 *ac_space=\ *)
7376 # `set' does not quote correctly, so add quotes (double-quote substitution
7377 # turns \\\\ into \\, and sed turns \\ into \).
7378 sed -n \
7379 -e "s/'/'\\\\''/g" \
7380 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7383 # `set' quotes correctly as required by POSIX, so do not add quotes.
7384 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7386 esac >> confcache
7387 if cmp -s $cache_file confcache; then
7389 else
7390 if test -w $cache_file; then
7391 echo "updating cache $cache_file"
7392 cat confcache > $cache_file
7393 else
7394 echo "not updating unwritable cache $cache_file"
7397 rm -f confcache
7399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7401 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7402 # Let make expand exec_prefix.
7403 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7405 # Any assignment to VPATH causes Sun make to only execute
7406 # the first set of double-colon rules, so remove it if not needed.
7407 # If there is a colon in the path, we need to keep it.
7408 if test "x$srcdir" = x.; then
7409 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7412 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7414 # Transform confdefs.h into DEFS.
7415 # Protect against shell expansion while executing Makefile rules.
7416 # Protect against Makefile macro expansion.
7417 cat > conftest.defs <<\EOF
7418 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7419 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7420 s%\[%\\&%g
7421 s%\]%\\&%g
7422 s%\$%$$%g
7424 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7425 rm -f conftest.defs
7428 # Without the "./", some shells look in PATH for config.status.
7429 : ${CONFIG_STATUS=./config.status}
7431 echo creating $CONFIG_STATUS
7432 rm -f $CONFIG_STATUS
7433 cat > $CONFIG_STATUS <<EOF
7434 #! /bin/sh
7435 # Generated automatically by configure.
7436 # Run this file to recreate the current configuration.
7437 # This directory was configured as follows,
7438 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7440 # $0 $ac_configure_args
7442 # Compiler output produced by configure, useful for debugging
7443 # configure, is in ./config.log if it exists.
7445 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7446 for ac_option
7448 case "\$ac_option" in
7449 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7450 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7451 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7452 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7453 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7454 exit 0 ;;
7455 -help | --help | --hel | --he | --h)
7456 echo "\$ac_cs_usage"; exit 0 ;;
7457 *) echo "\$ac_cs_usage"; exit 1 ;;
7458 esac
7459 done
7461 ac_given_srcdir=$srcdir
7462 ac_given_INSTALL="$INSTALL"
7464 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7466 cat >> $CONFIG_STATUS <<EOF
7468 # Protect against being on the right side of a sed subst in config.status.
7469 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7470 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7471 $ac_vpsub
7472 $extrasub
7473 s%@SHELL@%$SHELL%g
7474 s%@CFLAGS@%$CFLAGS%g
7475 s%@CPPFLAGS@%$CPPFLAGS%g
7476 s%@CXXFLAGS@%$CXXFLAGS%g
7477 s%@FFLAGS@%$FFLAGS%g
7478 s%@DEFS@%$DEFS%g
7479 s%@LDFLAGS@%$LDFLAGS%g
7480 s%@LIBS@%$LIBS%g
7481 s%@exec_prefix@%$exec_prefix%g
7482 s%@prefix@%$prefix%g
7483 s%@program_transform_name@%$program_transform_name%g
7484 s%@bindir@%$bindir%g
7485 s%@sbindir@%$sbindir%g
7486 s%@libexecdir@%$libexecdir%g
7487 s%@datadir@%$datadir%g
7488 s%@sysconfdir@%$sysconfdir%g
7489 s%@sharedstatedir@%$sharedstatedir%g
7490 s%@localstatedir@%$localstatedir%g
7491 s%@libdir@%$libdir%g
7492 s%@includedir@%$includedir%g
7493 s%@oldincludedir@%$oldincludedir%g
7494 s%@infodir@%$infodir%g
7495 s%@mandir@%$mandir%g
7496 s%@host@%$host%g
7497 s%@host_alias@%$host_alias%g
7498 s%@host_cpu@%$host_cpu%g
7499 s%@host_vendor@%$host_vendor%g
7500 s%@host_os@%$host_os%g
7501 s%@target@%$target%g
7502 s%@target_alias@%$target_alias%g
7503 s%@target_cpu@%$target_cpu%g
7504 s%@target_vendor@%$target_vendor%g
7505 s%@target_os@%$target_os%g
7506 s%@build@%$build%g
7507 s%@build_alias@%$build_alias%g
7508 s%@build_cpu@%$build_cpu%g
7509 s%@build_vendor@%$build_vendor%g
7510 s%@build_os@%$build_os%g
7511 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7512 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7513 s%@INSTALL_DATA@%$INSTALL_DATA%g
7514 s%@LN@%$LN%g
7515 s%@LN_S@%$LN_S%g
7516 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7517 s%@build_libsubdir@%$build_libsubdir%g
7518 s%@build_subdir@%$build_subdir%g
7519 s%@host_subdir@%$host_subdir%g
7520 s%@target_subdir@%$target_subdir%g
7521 s%@CC@%$CC%g
7522 s%@GNATBIND@%$GNATBIND%g
7523 s%@do_compare@%$do_compare%g
7524 s%@gmplibs@%$gmplibs%g
7525 s%@gmpinc@%$gmpinc%g
7526 s%@stage1_languages@%$stage1_languages%g
7527 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7528 /@serialization_dependencies@/r $serialization_dependencies
7529 s%@serialization_dependencies@%%g
7530 /@host_makefile_frag@/r $host_makefile_frag
7531 s%@host_makefile_frag@%%g
7532 /@target_makefile_frag@/r $target_makefile_frag
7533 s%@target_makefile_frag@%%g
7534 /@alphaieee_frag@/r $alphaieee_frag
7535 s%@alphaieee_frag@%%g
7536 /@ospace_frag@/r $ospace_frag
7537 s%@ospace_frag@%%g
7538 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7539 s%@tooldir@%$tooldir%g
7540 s%@build_tooldir@%$build_tooldir%g
7541 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7542 s%@GDB_TK@%$GDB_TK%g
7543 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7544 s%@build_configargs@%$build_configargs%g
7545 s%@build_configdirs@%$build_configdirs%g
7546 s%@host_configargs@%$host_configargs%g
7547 s%@configdirs@%$configdirs%g
7548 s%@target_configargs@%$target_configargs%g
7549 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7550 s%@config_shell@%$config_shell%g
7551 s%@YACC@%$YACC%g
7552 s%@BISON@%$BISON%g
7553 s%@M4@%$M4%g
7554 s%@LEX@%$LEX%g
7555 s%@FLEX@%$FLEX%g
7556 s%@MAKEINFO@%$MAKEINFO%g
7557 s%@EXPECT@%$EXPECT%g
7558 s%@RUNTEST@%$RUNTEST%g
7559 s%@AR@%$AR%g
7560 s%@AS@%$AS%g
7561 s%@DLLTOOL@%$DLLTOOL%g
7562 s%@LD@%$LD%g
7563 s%@LIPO@%$LIPO%g
7564 s%@NM@%$NM%g
7565 s%@RANLIB@%$RANLIB%g
7566 s%@STRIP@%$STRIP%g
7567 s%@WINDRES@%$WINDRES%g
7568 s%@OBJCOPY@%$OBJCOPY%g
7569 s%@OBJDUMP@%$OBJDUMP%g
7570 s%@CXX@%$CXX%g
7571 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7572 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7573 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7574 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7575 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7576 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7577 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7578 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7579 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7580 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7581 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7582 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7583 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7584 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7585 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7586 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7587 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7588 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7589 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7590 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7591 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7592 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7593 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7594 s%@MAINT@%$MAINT%g
7595 s%@stage1_cflags@%$stage1_cflags%g
7596 s%@stage2_werror_flag@%$stage2_werror_flag%g
7597 s%@datarootdir@%$datarootdir%g
7598 s%@docdir@%$docdir%g
7599 s%@htmldir@%$htmldir%g
7601 CEOF
7604 cat >> $CONFIG_STATUS <<\EOF
7606 # Split the substitutions into bite-sized pieces for seds with
7607 # small command number limits, like on Digital OSF/1 and HP-UX.
7608 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7609 ac_file=1 # Number of current file.
7610 ac_beg=1 # First line for current file.
7611 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7612 ac_more_lines=:
7613 ac_sed_cmds=""
7614 while $ac_more_lines; do
7615 if test $ac_beg -gt 1; then
7616 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7617 else
7618 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7620 if test ! -s conftest.s$ac_file; then
7621 ac_more_lines=false
7622 rm -f conftest.s$ac_file
7623 else
7624 if test -z "$ac_sed_cmds"; then
7625 ac_sed_cmds="sed -f conftest.s$ac_file"
7626 else
7627 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7629 ac_file=`expr $ac_file + 1`
7630 ac_beg=$ac_end
7631 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7633 done
7634 if test -z "$ac_sed_cmds"; then
7635 ac_sed_cmds=cat
7639 cat >> $CONFIG_STATUS <<EOF
7641 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7643 cat >> $CONFIG_STATUS <<\EOF
7644 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7645 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7646 case "$ac_file" in
7647 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7648 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7649 *) ac_file_in="${ac_file}.in" ;;
7650 esac
7652 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7654 # Remove last slash and all that follows it. Not all systems have dirname.
7655 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7656 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7657 # The file is in a subdirectory.
7658 test ! -d "$ac_dir" && mkdir "$ac_dir"
7659 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7660 # A "../" for each directory in $ac_dir_suffix.
7661 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7662 else
7663 ac_dir_suffix= ac_dots=
7666 case "$ac_given_srcdir" in
7667 .) srcdir=.
7668 if test -z "$ac_dots"; then top_srcdir=.
7669 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7670 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7671 *) # Relative path.
7672 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7673 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7674 esac
7676 case "$ac_given_INSTALL" in
7677 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7678 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7679 esac
7681 echo creating "$ac_file"
7682 rm -f "$ac_file"
7683 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7684 case "$ac_file" in
7685 *Makefile*) ac_comsub="1i\\
7686 # $configure_input" ;;
7687 *) ac_comsub= ;;
7688 esac
7690 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7691 sed -e "$ac_comsub
7692 s%@configure_input@%$configure_input%g
7693 s%@srcdir@%$srcdir%g
7694 s%@top_srcdir@%$top_srcdir%g
7695 s%@INSTALL@%$INSTALL%g
7696 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7697 fi; done
7698 rm -f conftest.s*
7701 cat >> $CONFIG_STATUS <<EOF
7704 cat >> $CONFIG_STATUS <<\EOF
7706 exit 0
7708 chmod +x $CONFIG_STATUS
7709 rm -fr confdefs* $ac_clean_files
7710 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1