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