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