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