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