* config/spu/spu.c (TARGET_ENCODE_SECTION_INFO): Define.
[official-gcc.git] / configure
blob81ce4353dee794370c008ec4d271650c0349f75f
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-objc-gc enable the use of Boehm's garbage collector with
43 the GNU Objective-C runtime."
44 ac_help="$ac_help
45 --with-build-sysroot=sysroot
46 use sysroot as the system root during the build"
47 ac_help="$ac_help
48 --enable-bootstrap Enable bootstrapping [yes if native build]"
49 ac_help="$ac_help
50 --enable-serial-[{host,target,build}-]configure
51 Force sequential configuration of
52 sub-packages for the host, target or build
53 machine, or all sub-packages"
54 ac_help="$ac_help
55 --with-build-time-tools=path
56 use given path to find target tools during the build"
57 ac_help="$ac_help
58 --enable-maintainer-mode enable make rules and dependencies not useful
59 (and sometimes confusing) to the casual installer"
60 ac_help="$ac_help
61 --enable-werror enable -Werror in bootstrap stage2 and later"
62 ac_help="$ac_help
63 --with-datarootdir Use datarootdir as the data root directory."
64 ac_help="$ac_help
65 --with-docdir Install documentation in this directory."
66 ac_help="$ac_help
67 --with-htmldir Install html in this directory."
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
72 build=NONE
73 cache_file=./config.cache
74 exec_prefix=NONE
75 host=NONE
76 no_create=
77 nonopt=NONE
78 no_recursion=
79 prefix=NONE
80 program_prefix=NONE
81 program_suffix=NONE
82 program_transform_name=s,x,x,
83 silent=
84 site=
85 srcdir=
86 target=NONE
87 verbose=
88 x_includes=NONE
89 x_libraries=NONE
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
104 subdirs=
105 MFLAGS= MAKEFLAGS=
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
108 ac_max_here_lines=12
110 ac_prev=
111 for ac_option
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
117 ac_prev=
118 continue
121 case "$ac_option" in
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 *) ac_optarg= ;;
124 esac
126 # Accept the important Cygnus configure options, so we can diagnose typos.
128 case "$ac_option" in
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 ac_prev=bindir ;;
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
136 ac_prev=build ;;
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 ac_prev=datadir ;;
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 | --da=*)
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 case "$ac_option" in
170 *=*) ;;
171 *) ac_optarg=yes ;;
172 esac
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
186 with_gas=yes ;;
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
191 cat << EOF
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
194 Configuration:
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
202 [$ac_default_prefix]
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 [same as prefix]
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
209 [PREFIX/share]
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 [PREFIX/com]
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
225 cat << EOF
226 Host type:
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
241 exit 0 ;;
243 -host | --host | --hos | --ho)
244 ac_prev=host ;;
245 -host=* | --host=* | --hos=* | --ho=*)
246 host="$ac_optarg" ;;
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 ac_prev=infodir ;;
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
261 ac_prev=libdir ;;
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 ac_prev=mandir ;;
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
286 -nfp | --nfp | --nf)
287 # Obsolete; use --without-fp.
288 with_fp=no ;;
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 | --no-cr | --no-c)
292 no_create=yes ;;
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 no_recursion=yes ;;
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 ac_prev=prefix ;;
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
345 silent=yes ;;
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 ac_prev=sbindir ;;
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 | --sbi=* | --sb=*)
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
356 | --sha | --sh)
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 | --sha=* | --sh=*)
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
365 ac_prev=site ;;
366 -site=* | --site=* | --sit=*)
367 site="$ac_optarg" ;;
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 ac_prev=srcdir ;;
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
381 -target | --target | --targe | --targ | --tar | --ta | --t)
382 ac_prev=target ;;
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 verbose=yes ;;
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.13"
391 exit 0 ;;
393 -with-* | --with-*)
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 case "$ac_option" in
401 *=*) ;;
402 *) ac_optarg=yes ;;
403 esac
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
415 --x)
416 # Obsolete; use --with-x.
417 with_x=yes ;;
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443 nonopt="$ac_option"
446 esac
447 done
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
456 # 0 standard input
457 # 1 file creation
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
464 exec 6>/dev/null
465 else
466 exec 6>&1
468 exec 5>./config.log
470 echo "\
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
473 " 1>&5
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
477 ac_configure_args=
478 for ac_arg
480 case "$ac_arg" in
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 esac
489 done
491 # NLS nuisances.
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 echo > confdefs.h
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=move-if-change
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
514 ac_prog=$0
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517 srcdir=$ac_confdir
518 if test ! -r $srcdir/$ac_unique_file; then
519 srcdir=..
521 else
522 ac_srcdir_defaulted=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527 else
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 else
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
544 . "$ac_site_file"
546 done
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
550 . $cache_file
551 else
552 echo "creating cache $cache_file"
553 > $cache_file
556 ac_ext=c
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
563 ac_exeext=
564 ac_objext=o
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568 ac_n= ac_c='
569 ' ac_t=' '
570 else
571 ac_n=-n ac_c= ac_t=
573 else
574 ac_n= ac_c='\c' ac_t=
579 ac_aux_dir=
580 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
581 if test -f $ac_dir/install-sh; then
582 ac_aux_dir=$ac_dir
583 ac_install_sh="$ac_aux_dir/install-sh -c"
584 break
585 elif test -f $ac_dir/install.sh; then
586 ac_aux_dir=$ac_dir
587 ac_install_sh="$ac_aux_dir/install.sh -c"
588 break
590 done
591 if test -z "$ac_aux_dir"; then
592 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
594 ac_config_guess=$ac_aux_dir/config.guess
595 ac_config_sub=$ac_aux_dir/config.sub
596 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
599 # Do some error checking and defaulting for the host and target type.
600 # The inputs are:
601 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
603 # The rules are:
604 # 1. You are not allowed to specify --host, --target, and nonopt at the
605 # same time.
606 # 2. Host defaults to nonopt.
607 # 3. If nonopt is not specified, then host defaults to the current host,
608 # as determined by config.guess.
609 # 4. Target and build default to nonopt.
610 # 5. If nonopt is not specified, then target and build default to host.
612 # The aliases save the names the user supplied, while $host etc.
613 # will get canonicalized.
614 case $host---$target---$nonopt in
615 NONE---*---* | *---NONE---* | *---*---NONE) ;;
616 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
617 esac
620 # Make sure we can run config.sub.
621 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
622 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
625 echo $ac_n "checking host system type""... $ac_c" 1>&6
626 echo "configure:627: checking host system type" >&5
628 host_alias=$host
629 case "$host_alias" in
630 NONE)
631 case $nonopt in
632 NONE)
633 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
634 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
635 fi ;;
636 *) host_alias=$nonopt ;;
637 esac ;;
638 esac
640 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
641 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644 echo "$ac_t""$host" 1>&6
646 echo $ac_n "checking target system type""... $ac_c" 1>&6
647 echo "configure:648: checking target system type" >&5
649 target_alias=$target
650 case "$target_alias" in
651 NONE)
652 case $nonopt in
653 NONE) target_alias=$host_alias ;;
654 *) target_alias=$nonopt ;;
655 esac ;;
656 esac
658 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
659 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
660 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
661 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
662 echo "$ac_t""$target" 1>&6
664 echo $ac_n "checking build system type""... $ac_c" 1>&6
665 echo "configure:666: checking build system type" >&5
667 build_alias=$build
668 case "$build_alias" in
669 NONE)
670 case $nonopt in
671 NONE) build_alias=$host_alias ;;
672 *) build_alias=$nonopt ;;
673 esac ;;
674 esac
676 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
677 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
678 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
679 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
680 echo "$ac_t""$build" 1>&6
682 test "$host_alias" != "$target_alias" &&
683 test "$program_prefix$program_suffix$program_transform_name" = \
684 NONENONEs,x,x, &&
685 program_prefix=${target_alias}-
687 if test "$program_transform_name" = s,x,x,; then
688 program_transform_name=
689 else
690 # Double any \ or $. echo might interpret backslashes.
691 cat <<\EOF_SED > conftestsed
692 s,\\,\\\\,g; s,\$,$$,g
693 EOF_SED
694 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
695 rm -f conftestsed
697 test "$program_prefix" != NONE &&
698 program_transform_name="s,^,${program_prefix},; $program_transform_name"
699 # Use a double $ so make ignores it.
700 test "$program_suffix" != NONE &&
701 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
703 # sed with no file args requires a program.
704 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
707 # Get 'install' or 'install-sh' and its variants.
708 # Find a good install program. We prefer a C program (faster),
709 # so one script is as good as another. But avoid the broken or
710 # incompatible versions:
711 # SysV /etc/install, /usr/sbin/install
712 # SunOS /usr/etc/install
713 # IRIX /sbin/install
714 # AIX /bin/install
715 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
716 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
717 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
718 # ./install, which can be erroneously created by make from ./install.sh.
719 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
720 echo "configure:721: checking for a BSD compatible install" >&5
721 if test -z "$INSTALL"; then
722 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
723 echo $ac_n "(cached) $ac_c" 1>&6
724 else
725 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
726 for ac_dir in $PATH; do
727 # Account for people who put trailing slashes in PATH elements.
728 case "$ac_dir/" in
729 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
731 # OSF1 and SCO ODT 3.0 have their own names for install.
732 # Don't use installbsd from OSF since it installs stuff as root
733 # by default.
734 for ac_prog in ginstall scoinst install; do
735 if test -f $ac_dir/$ac_prog; then
736 if test $ac_prog = install &&
737 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
738 # AIX install. It has an incompatible calling convention.
740 else
741 ac_cv_path_install="$ac_dir/$ac_prog -c"
742 break 2
745 done
747 esac
748 done
749 IFS="$ac_save_IFS"
752 if test "${ac_cv_path_install+set}" = set; then
753 INSTALL="$ac_cv_path_install"
754 else
755 # As a last resort, use the slow shell script. We don't cache a
756 # path for INSTALL within a source directory, because that will
757 # break other packages using the cache if that directory is
758 # removed, or if the path is relative.
759 INSTALL="$ac_install_sh"
762 echo "$ac_t""$INSTALL" 1>&6
764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
765 # It thinks the first close brace ends the variable substitution.
766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
772 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
773 echo "configure:774: checking whether ln works" >&5
774 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
776 else
777 rm -f conftestdata_t
778 echo >conftestdata_f
779 if ln conftestdata_f conftestdata_t 2>/dev/null
780 then
781 acx_cv_prog_LN=ln
782 else
783 acx_cv_prog_LN=no
785 rm -f conftestdata_f conftestdata_t
788 if test $acx_cv_prog_LN = no; then
789 LN="cp"
790 echo "$ac_t""no, using $LN" 1>&6
791 else
792 LN="$acx_cv_prog_LN"
793 echo "$ac_t""yes" 1>&6
796 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
797 echo "configure:798: checking whether ln -s works" >&5
798 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
800 else
801 rm -f conftestdata
802 if ln -s X conftestdata 2>/dev/null
803 then
804 rm -f conftestdata
805 ac_cv_prog_LN_S="ln -s"
806 else
807 ac_cv_prog_LN_S=ln
810 LN_S="$ac_cv_prog_LN_S"
811 if test "$ac_cv_prog_LN_S" = "ln -s"; then
812 echo "$ac_t""yes" 1>&6
813 else
814 echo "$ac_t""no" 1>&6
818 ### we might need to use some other shell than /bin/sh for running subshells
819 ### If we are on Windows, search for the shell. This will permit people
820 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
821 ### without also having to set CONFIG_SHELL. This code will work when
822 ### using bash, which sets OSTYPE.
823 case "${OSTYPE}" in
824 *win32*)
825 if test x${CONFIG_SHELL} = x ; then
826 if test ! -f /bin/sh ; then
827 if test x${SHELL} != x && test -f ${SHELL} ; then
828 CONFIG_SHELL=${SHELL}
829 export CONFIG_SHELL
830 else
831 for prog in sh sh.exe bash bash.exe; do
832 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
833 for dir in $PATH; do
834 test -z "$dir" && dir=.
835 if test -f $dir/$prog; then
836 CONFIG_SHELL=$dir/$prog
837 export CONFIG_SHELL
838 break
840 done
841 IFS="$save_ifs"
842 test -n "${CONFIG_SHELL}" && break
843 done
848 esac
850 config_shell=${CONFIG_SHELL-/bin/sh}
852 progname=$0
853 # if PWD already has a value, it is probably wrong.
854 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
856 # Export original configure arguments for use by sub-configures. These
857 # will be expanded by make, so quote '$'.
858 tmp="$progname $@"
859 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
860 $tmp
861 EOF_SED
862 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
863 rm -f conftestsed.out
866 moveifchange=${srcdir}/move-if-change
868 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
870 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
871 # a relative path.
872 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
873 INSTALL="${srcpwd}/install-sh -c"
876 # Set srcdir to "." if that's what it is.
877 # This is important for multilib support.
878 pwd=`${PWDCMD-pwd}`
879 if test "${pwd}" = "${srcpwd}" ; then
880 srcdir=.
883 topsrcdir=$srcpwd
885 extra_host_args=
887 ### To add a new directory to the tree, first choose whether it is a target
888 ### or a host dependent tool. Then put it into the appropriate list
889 ### (library or tools, host or target), doing a dependency sort.
891 # Subdirs will be configured in the order listed in build_configdirs,
892 # configdirs, or target_configdirs; see the serialization section below.
894 # Dependency sorting is only needed when *configuration* must be done in
895 # a particular order. In all cases a dependency should be specified in
896 # the Makefile, whether or not it's implicitly specified here.
898 # Double entries in build_configdirs, configdirs, or target_configdirs may
899 # cause circular dependencies and break everything horribly.
901 # these library is used by various programs built for the build
902 # environment
904 build_libs="build-libiberty"
906 # these tools are built for the build environment
907 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
909 # these libraries are used by various programs built for the host environment
911 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
913 # these tools are built for the host environment
914 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
915 # know that we are building the simulator.
916 # binutils, gas and ld appear in that order because it makes sense to run
917 # "make check" in that particular order.
918 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"
920 # libgcj represents the runtime libraries only used by gcj.
921 libgcj="target-libffi \
922 target-zlib \
923 target-qthreads \
924 target-libjava"
926 # these libraries are built for the target environment, and are built after
927 # the host libraries and the host tools (which may be a cross compiler)
929 target_libraries="target-libiberty \
930 target-libgloss \
931 target-newlib \
932 target-libstdc++-v3 \
933 target-libmudflap \
934 target-libssp \
935 target-libgfortran \
936 target-boehm-gc \
937 ${libgcj} \
938 target-libobjc \
939 target-libada \
940 target-libgomp"
942 # these tools are built using the target libraries, and are intended to
943 # run only in the target environment
945 # note: any program that *uses* libraries that are in the "target_libraries"
946 # list belongs in this list. those programs are also very likely
947 # candidates for the "native_only" list which follows
949 target_tools="target-examples target-groff target-gperf target-rda"
951 ################################################################################
953 ## All tools belong in one of the four categories, and are assigned above
954 ## We assign ${configdirs} this way to remove all embedded newlines. This
955 ## is important because configure will choke if they ever get through.
956 ## ${configdirs} is directories we build using the host tools.
957 ## ${target_configdirs} is directories we build using the target tools.
958 configdirs=`echo ${host_libs} ${host_tools}`
959 target_configdirs=`echo ${target_libraries} ${target_tools}`
960 build_configdirs=`echo ${build_libs} ${build_tools}`
962 ################################################################################
964 srcname="gnu development package"
966 # This gets set non-empty for some net releases of packages.
967 appdirs=""
969 # Define is_cross_compiler to save on calls to 'test'.
970 is_cross_compiler=
971 if test x"${host}" = x"${target}" ; then
972 is_cross_compiler=no
973 else
974 is_cross_compiler=yes
977 # Find the build and target subdir names.
978 case ${build_alias} in
979 "") build_noncanonical=${build} ;;
980 *) build_noncanonical=${build_alias} ;;
981 esac
983 case ${host_alias} in
984 "") host_noncanonical=${build_noncanonical} ;;
985 *) host_noncanonical=${host_alias} ;;
986 esac
988 case ${target_alias} in
989 "") target_noncanonical=${host_noncanonical} ;;
990 *) target_noncanonical=${target_alias} ;;
991 esac
994 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
995 # have matching libraries, they should use host libraries: Makefile.tpl
996 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
997 # However, they still use the build modules, because the corresponding
998 # host modules (e.g. bison) are only built for the host when bootstrap
999 # finishes. So:
1000 # - build_subdir is where we find build modules, and never changes.
1001 # - build_libsubdir is where we find build libraries, and can be overridden.
1003 # Prefix 'build-' so this never conflicts with target_subdir.
1004 build_subdir="build-${build_noncanonical}"
1005 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1006 if test "${with_build_libsubdir+set}" = set; then
1007 withval="$with_build_libsubdir"
1008 build_libsubdir="$withval"
1009 else
1010 build_libsubdir="$build_subdir"
1013 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1014 if ( test $srcdir = . && test -d gcc ) \
1015 || test -d $srcdir/../host-${host_noncanonical}; then
1016 host_subdir="host-${host_noncanonical}"
1017 else
1018 host_subdir=.
1020 # No prefix.
1021 target_subdir=${target_noncanonical}
1024 # Skipdirs are removed silently.
1025 skipdirs=
1026 # Noconfigdirs are removed loudly.
1027 noconfigdirs=""
1029 use_gnu_ld=
1030 # Make sure we don't let GNU ld be added if we didn't want it.
1031 if test x$with_gnu_ld = xno ; then
1032 use_gnu_ld=no
1033 noconfigdirs="$noconfigdirs ld"
1036 use_gnu_as=
1037 # Make sure we don't let GNU as be added if we didn't want it.
1038 if test x$with_gnu_as = xno ; then
1039 use_gnu_as=no
1040 noconfigdirs="$noconfigdirs gas"
1043 # some tools are so dependent upon X11 that if we're not building with X,
1044 # it's not even worth trying to configure, much less build, that tool.
1046 case ${with_x} in
1047 yes | "") ;; # the default value for this tree is that X11 is available
1049 skipdirs="${skipdirs} tk itcl libgui"
1050 # We won't be able to build gdbtk without X.
1051 enable_gdbtk=no
1053 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1054 esac
1056 # Some tools are only suitable for building in a "native" situation.
1057 # Remove these if host!=target.
1058 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"
1060 # Similarly, some are only suitable for cross toolchains.
1061 # Remove these if host=target.
1062 cross_only="target-libgloss target-newlib target-opcodes"
1064 case $is_cross_compiler in
1065 no) skipdirs="${skipdirs} ${cross_only}" ;;
1066 yes) skipdirs="${skipdirs} ${native_only}" ;;
1067 esac
1069 # If both --with-headers and --with-libs are specified, default to
1070 # --without-newlib.
1071 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1072 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1073 if test x"${with_newlib}" = x ; then
1074 with_newlib=no
1078 # Recognize --with-newlib/--without-newlib.
1079 case ${with_newlib} in
1080 no) skipdirs="${skipdirs} target-newlib" ;;
1081 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1082 esac
1084 # Configure extra directories which are host specific
1086 case "${host}" in
1087 *-cygwin*)
1088 configdirs="$configdirs libtermcap" ;;
1089 esac
1091 # A target can indicate whether a language isn't supported for some reason.
1092 # Only spaces may be used in this macro; not newlines or tabs.
1093 unsupported_languages=
1095 # Remove more programs from consideration, based on the host or
1096 # target this usually means that a port of the program doesn't
1097 # exist yet.
1099 case "${host}" in
1100 hppa*64*-*-*)
1101 noconfigdirs="$noconfigdirs byacc"
1103 i[3456789]86-*-vsta)
1104 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1106 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1107 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1109 i[3456789]86-*-mingw32*)
1110 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1111 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1113 i[3456789]86-*-beos*)
1114 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1116 *-*-cygwin*)
1117 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1119 *-*-netbsd*)
1120 noconfigdirs="$noconfigdirs rcs"
1122 ppc*-*-pe)
1123 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1125 powerpc-*-beos*)
1126 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1128 esac
1131 # Check whether --enable-libada or --disable-libada was given.
1132 if test "${enable_libada+set}" = set; then
1133 enableval="$enable_libada"
1134 ENABLE_LIBADA=$enableval
1135 else
1136 ENABLE_LIBADA=yes
1139 if test "${ENABLE_LIBADA}" != "yes" ; then
1140 noconfigdirs="$noconfigdirs gnattools"
1143 # Check whether --enable-libssp or --disable-libssp was given.
1144 if test "${enable_libssp+set}" = set; then
1145 enableval="$enable_libssp"
1146 ENABLE_LIBSSP=$enableval
1147 else
1148 ENABLE_LIBSSP=yes
1152 # Save it here so that, even in case of --enable-libgcj, if the Java
1153 # front-end isn't enabled, we still get libgcj disabled.
1154 libgcj_saved=$libgcj
1155 case $enable_libgcj in
1156 yes)
1157 # If we reset it here, it won't get added to noconfigdirs in the
1158 # target-specific build rules, so it will be forcibly enabled
1159 # (unless the Java language itself isn't enabled).
1160 libgcj=
1163 # Make sure we get it printed in the list of not supported target libs.
1164 noconfigdirs="$noconfigdirs ${libgcj}"
1166 esac
1169 # Disable libmudflap on some systems.
1170 if test x$enable_libmudflap = x ; then
1171 case "${target}" in
1172 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1173 # Enable libmudflap by default in GNU and friends.
1175 *-*-freebsd*)
1176 # Enable libmudflap by default in FreeBSD.
1179 # Disable it by default everywhere else.
1180 noconfigdirs="$noconfigdirs target-libmudflap"
1182 esac
1185 # Disable libgomp on non POSIX hosted systems.
1186 if test x$enable_libgomp = x ; then
1187 # Enable libgomp by default on hosted POSIX systems.
1188 case "${target}" in
1189 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1191 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1193 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1195 *-*-darwin* | *-*-aix*)
1198 noconfigdirs="$noconfigdirs target-libgomp"
1200 esac
1204 case "${target}" in
1205 *-*-chorusos)
1206 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1208 powerpc-*-darwin* | i[3456789]86-*-darwin*)
1209 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1210 noconfigdirs="$noconfigdirs sim target-rda"
1212 *-*-darwin*)
1213 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1214 noconfigdirs="$noconfigdirs sim target-rda"
1215 noconfigdirs="$noconfigdirs ${libgcj}"
1217 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1218 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1220 *-*-freebsd*)
1221 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1222 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1223 && test -f /usr/local/include/gmp.h; then
1224 with_gmp=/usr/local
1227 # Skip some stuff that's unsupported on some FreeBSD configurations.
1228 case "${target}" in
1229 i*86-*-*) ;;
1230 alpha*-*-*) ;;
1232 noconfigdirs="$noconfigdirs ${libgcj}"
1234 esac
1236 *-*-kaos*)
1237 # Remove unsupported stuff on all kaOS configurations.
1238 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1239 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1240 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1241 noconfigdirs="$noconfigdirs target-libgloss"
1243 *-*-netbsd*)
1244 # Skip some stuff on all NetBSD configurations.
1245 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1247 # Skip some stuff that's unsupported on some NetBSD configurations.
1248 case "${target}" in
1249 i*86-*-netbsdelf*) ;;
1250 arm*-*-netbsdelf*) ;;
1252 noconfigdirs="$noconfigdirs ${libgcj}"
1254 esac
1256 *-*-netware*)
1257 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1259 *-*-rtems*)
1260 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1262 # The tpf target doesn't support gdb yet.
1263 *-*-tpf*)
1264 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1266 *-*-uclinux*)
1267 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1269 *-*-vxworks*)
1270 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1272 alpha*-dec-osf*)
1273 # ld works, but does not support shared libraries.
1274 # newlib is not 64 bit ready. I'm not sure about fileutils.
1275 # gas doesn't generate exception information.
1276 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1278 alpha*-*-*vms*)
1279 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1281 alpha*-*-linux*)
1282 # newlib is not 64 bit ready
1283 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1285 alpha*-*-*)
1286 # newlib is not 64 bit ready
1287 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1289 am33_2.0-*-linux*)
1290 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1292 sh-*-linux*)
1293 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1295 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1296 noconfigdirs="$noconfigdirs ${libgcj}"
1297 noconfigdirs="$noconfigdirs target-examples"
1298 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1299 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1300 noconfigdirs="$noconfigdirs expect dejagnu"
1301 # the C++ libraries don't build on top of CE's C libraries
1302 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1303 noconfigdirs="$noconfigdirs target-newlib"
1304 case "${host}" in
1305 *-*-cygwin*) ;; # keep gdb and readline
1306 *) noconfigdirs="$noconfigdirs gdb readline"
1308 esac
1310 arc-*-*)
1311 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1313 arm-semi-aof )
1315 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1316 noconfigdirs="$noconfigdirs ${libgcj}"
1318 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1319 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1321 arm*-*-linux-gnueabi)
1322 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1323 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1325 arm*-*-symbianelf*)
1326 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1328 arm-*-pe*)
1329 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1331 thumb-*-coff)
1332 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1334 thumb-*-elf)
1335 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1337 thumb-*-pe)
1338 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1340 arm-*-riscix*)
1341 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1343 avr-*-*)
1344 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1346 bfin-*-*)
1347 noconfigdirs="$noconfigdirs gdb"
1348 if test x${is_cross_compiler} != xno ; then
1349 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1352 c4x-*-* | tic4x-*-*)
1353 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1355 c54x*-*-* | tic54x-*-*)
1356 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1358 cris-*-* | crisv32-*-*)
1359 unsupported_languages="$unsupported_languages java"
1360 case "${target}" in
1361 *-*-aout)
1362 unsupported_languages="$unsupported_languages fortran"
1363 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1364 *-*-elf)
1365 unsupported_languages="$unsupported_languages fortran"
1366 noconfigdirs="$noconfigdirs target-boehm-gc";;
1367 *-*-linux*)
1368 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1370 unsupported_languages="$unsupported_languages fortran"
1371 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1372 esac
1374 crx-*-*)
1375 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1377 d10v-*-*)
1378 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1380 d30v-*-*)
1381 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1383 fr30-*-elf*)
1384 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1386 frv-*-*)
1387 noconfigdirs="$noconfigdirs ${libgcj}"
1389 h8300*-*-*)
1390 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1392 h8500-*-*)
1393 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1395 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1397 hppa*64*-*-linux* | parisc*64*-*-linux*)
1398 # In this case, it's because the hppa64-linux target is for
1399 # the kernel only at this point and has no libc, and thus no
1400 # headers, crt*.o, etc., all of which are needed by these.
1401 noconfigdirs="$noconfigdirs target-zlib"
1403 parisc*-*-linux* | hppa*-*-linux*)
1405 hppa*-*-*elf* | \
1406 hppa*-*-lites* | \
1407 hppa*-*-openbsd* | \
1408 hppa*64*-*-*)
1409 noconfigdirs="$noconfigdirs ${libgcj}"
1411 hppa*-hp-hpux11*)
1412 noconfigdirs="$noconfigdirs ld shellutils"
1414 hppa*-*-*)
1415 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1416 # build on HP-UX 10.20.
1417 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1419 i960-*-*)
1420 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1422 ia64*-*-elf*)
1423 # No gdb support yet.
1424 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1426 ia64*-**-hpux*)
1427 # No gdb or ld support yet.
1428 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1430 i370-*-opened*)
1432 i[3456789]86-*-coff | i[3456789]86-*-elf)
1433 noconfigdirs="$noconfigdirs ${libgcj}"
1435 i[3456789]86-*-linux*)
1436 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1437 # not build java stuff by default.
1438 case "${target}" in
1439 *-*-*libc1*)
1440 noconfigdirs="$noconfigdirs ${libgcj}";;
1441 esac
1443 # This section makes it possible to build newlib natively on linux.
1444 # If we are using a cross compiler then don't configure newlib.
1445 if test x${is_cross_compiler} != xno ; then
1446 noconfigdirs="$noconfigdirs target-newlib"
1448 noconfigdirs="$noconfigdirs target-libgloss"
1449 # If we are not using a cross compiler, do configure newlib.
1450 # Note however, that newlib will only be configured in this situation
1451 # if the --with-newlib option has been given, because otherwise
1452 # 'target-newlib' will appear in skipdirs.
1454 i[3456789]86-*-mingw32*)
1455 target_configdirs="$target_configdirs target-winsup"
1456 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1458 *-*-cygwin*)
1459 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1460 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1461 # always build newlib if winsup directory is present.
1462 if test -d "$srcdir/winsup/cygwin"; then
1463 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1464 elif test -d "$srcdir/newlib"; then
1465 echo "Warning: winsup/cygwin is missing so newlib can't be built."
1468 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1469 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1471 i[3456789]86-*-pe)
1472 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1474 i[3456789]86-*-sco3.2v5*)
1475 # The linker does not yet know about weak symbols in COFF,
1476 # and is not configured to handle mixed ELF and COFF.
1477 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1479 i[3456789]86-*-sco*)
1480 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1482 i[3456789]86-*-solaris2*)
1483 noconfigdirs="$noconfigdirs target-libgloss"
1485 i[3456789]86-*-sysv4*)
1486 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1488 i[3456789]86-*-beos*)
1489 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1491 i[3456789]86-*-rdos*)
1492 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1494 m32r-*-*)
1495 noconfigdirs="$noconfigdirs ${libgcj}"
1497 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1498 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1500 m68k-*-elf*)
1501 noconfigdirs="$noconfigdirs ${libgcj}"
1503 m68k-*-coff*)
1504 noconfigdirs="$noconfigdirs ${libgcj}"
1506 mcore-*-pe*)
1507 # The EPOC C++ environment does not support exceptions or rtti,
1508 # and so building libstdc++-v3 tends not to always work.
1509 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1511 mmix-*-*)
1512 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1513 unsupported_languages="$unsupported_languages fortran java"
1515 mn10200-*-*)
1516 noconfigdirs="$noconfigdirs ${libgcj}"
1518 mn10300-*-*)
1519 noconfigdirs="$noconfigdirs ${libgcj}"
1521 mt-*-*)
1522 noconfigdirs="$noconfigdirs sim"
1524 powerpc-*-aix*)
1525 # copied from rs6000-*-* entry
1526 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1528 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1529 target_configdirs="$target_configdirs target-winsup"
1530 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1531 # always build newlib.
1532 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1534 # This is temporary until we can link against shared libraries
1535 powerpcle-*-solaris*)
1536 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1538 powerpc-*-beos*)
1539 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1541 powerpc-*-eabi)
1542 noconfigdirs="$noconfigdirs ${libgcj}"
1544 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1546 rs6000-*-lynxos*)
1547 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1549 rs6000-*-aix*)
1550 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1552 rs6000-*-*)
1553 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1555 m68k-apollo-*)
1556 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1558 mips*-*-irix5*)
1559 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1561 mips*-*-irix6*)
1562 # Linking libjava exceeds command-line length limits on at least
1563 # IRIX 6.2, but not on IRIX 6.5.
1564 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1565 # <oldham@codesourcery.com>
1566 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1568 mips*-*-bsd*)
1569 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1571 mips64*-*-linux*)
1572 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1574 mips*-*-linux*)
1575 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1577 mips*-*-*)
1578 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1580 romp-*-*)
1581 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1583 sh-*-* | sh64-*-*)
1584 case "${host}" in
1585 i[3456789]86-*-vsta) ;; # don't add gprof back in
1586 i[3456789]86-*-go32*) ;; # don't add gprof back in
1587 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1588 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1589 esac
1590 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1592 sparc-*-elf*)
1593 noconfigdirs="$noconfigdirs ${libgcj}"
1595 sparc64-*-elf*)
1596 noconfigdirs="$noconfigdirs ${libgcj}"
1598 sparclite-*-*)
1599 noconfigdirs="$noconfigdirs ${libgcj}"
1601 sparc-*-sunos4*)
1602 noconfigdirs="$noconfigdirs ${libgcj}"
1603 if test x${is_cross_compiler} != xno ; then
1604 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1605 else
1606 use_gnu_ld=no
1609 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1610 noconfigdirs="$noconfigdirs ${libgcj}"
1612 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1614 spu-*-*)
1615 skipdirs="target-libssp"
1617 v810-*-*)
1618 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1620 v850-*-*)
1621 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1623 v850e-*-*)
1624 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1626 v850ea-*-*)
1627 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1629 vax-*-vms)
1630 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1632 vax-*-*)
1633 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1635 xtensa-*-*)
1636 noconfigdirs="$noconfigdirs ${libgcj}"
1638 ip2k-*-*)
1639 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1641 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1642 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1644 *-*-lynxos*)
1645 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1647 *-*-*)
1648 noconfigdirs="$noconfigdirs ${libgcj}"
1650 esac
1652 # If we aren't building newlib, then don't build libgloss, since libgloss
1653 # depends upon some newlib header files.
1654 case "${noconfigdirs}" in
1655 *target-libgloss*) ;;
1656 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1657 esac
1659 # Work in distributions that contain no compiler tools, like Autoconf.
1660 tentative_cc=""
1661 host_makefile_frag=/dev/null
1662 if test -d ${srcdir}/config ; then
1663 case "${host}" in
1664 m68k-hp-hpux*)
1665 # Avoid "too much defining" errors from HPUX compiler.
1666 tentative_cc="cc -Wp,-H256000"
1667 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1668 # If it's HP/UX ar, this should be harmless.
1669 RANLIB="ar ts"
1671 m68k-apollo-sysv*)
1672 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1674 m68k-apollo-bsd*)
1675 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1676 # chokes on bfd, the compiler won't let you assign integers to enums, and
1677 # other problems. Defining CC to gcc is a questionable way to say "don't use
1678 # the apollo compiler" (the preferred version of GCC could be called cc,
1679 # or whatever), but I'm not sure leaving CC as cc is any better...
1680 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1681 # Used to have BISON=yacc.
1682 tentative_cc=gcc
1684 m88k-dg-dgux*)
1685 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1687 m88k-harris-cxux*)
1688 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1689 tentative_cc="cc -Xa"
1690 host_makefile_frag="config/mh-cxux"
1692 m88k-motorola-sysv*)
1694 mips*-dec-ultrix*)
1695 tentative_cc="cc -Wf,-XNg1000"
1696 host_makefile_frag="config/mh-decstation"
1698 mips*-nec-sysv4*)
1699 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1700 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1701 host_makefile_frag="config/mh-necv4"
1703 mips*-sgi-irix4*)
1704 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1705 # environment. Also bump switch table size so that cp-parse will
1706 # compile. Bump string length limit so linker builds.
1707 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1709 mips*-*-sysv4*)
1710 host_makefile_frag="config/mh-sysv4"
1712 mips*-*-sysv*)
1713 # This is for a MIPS running RISC/os 4.52C.
1715 # This is needed for GDB, but needs to be in the top-level make because
1716 # if a library is compiled with the bsd headers and gets linked with the
1717 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1718 # a different size).
1719 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1720 # known except to select the sysv environment. Could we use /proc instead?
1721 # These "sysv environments" and "bsd environments" often end up being a pain.
1723 # This is not part of CFLAGS because perhaps not all C compilers have this
1724 # option.
1725 tentative_cc="cc -systype sysv"
1727 i370-ibm-opened*)
1728 tentative_cc="c89"
1730 i[3456789]86-*-sysv5*)
1731 host_makefile_frag="config/mh-sysv5"
1733 i[3456789]86-*-dgux*)
1734 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1735 host_makefile_frag="config/mh-dgux386"
1737 i[3456789]86-ncr-sysv4.3*)
1738 # The MetaWare compiler will generate a copyright message unless you
1739 # turn it off by adding the -Hnocopyr flag.
1740 tentative_cc="cc -Hnocopyr"
1742 i[3456789]86-ncr-sysv4*)
1743 # for an NCR 3000 (i486/SVR4) system.
1744 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1745 # This compiler not only emits obnoxious copyright messages every time
1746 # you run it, but it chokes and dies on a whole bunch of GNU source
1747 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1748 tentative_cc="/usr/ccs/ATT/cc"
1749 host_makefile_frag="config/mh-ncr3000"
1751 i[3456789]86-*-sco3.2v5*)
1753 i[3456789]86-*-sco*)
1754 # The native C compiler botches some simple uses of const. Unfortunately,
1755 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1756 tentative_cc="cc -Dconst="
1757 host_makefile_frag="config/mh-sco"
1759 i[3456789]86-*-udk*)
1760 host_makefile_frag="config/mh-sysv5"
1762 i[3456789]86-*-solaris2*)
1763 host_makefile_frag="config/mh-sysv4"
1765 i[3456789]86-*-msdosdjgpp*)
1766 host_makefile_frag="config/mh-djgpp"
1768 *-cygwin*)
1769 host_makefile_frag="config/mh-cygwin"
1771 *-mingw32*)
1773 *-interix*)
1774 host_makefile_frag="config/mh-interix"
1776 vax-*-ultrix2*)
1777 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1778 tentative_cc=gcc
1780 *-*-solaris2*)
1781 host_makefile_frag="config/mh-solaris"
1783 m68k-sun-sunos*)
1784 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1785 # without overflowing the jump tables (-J says to use a 32 bit table)
1786 tentative_cc="cc -J"
1788 *-hp-hpux*)
1789 tentative_cc="cc -Wp,-H256000"
1791 *-*-hiux*)
1792 tentative_cc="cc -Wp,-H256000"
1794 rs6000-*-lynxos*)
1795 # /bin/cc is less than useful for our purposes. Always use GCC
1796 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1797 host_makefile_frag="config/mh-lynxrs6k"
1799 powerpc-*-darwin*)
1800 host_makefile_frag="config/mh-ppc-darwin"
1802 powerpc-*-aix*)
1803 host_makefile_frag="config/mh-ppc-aix"
1805 rs6000-*-aix*)
1806 host_makefile_frag="config/mh-ppc-aix"
1808 *-*-lynxos*)
1809 # /bin/cc is less than useful for our purposes. Always use GCC
1810 tentative_cc="/bin/gcc"
1812 *-*-sysv4*)
1813 host_makefile_frag="config/mh-sysv4"
1815 # This is placed last to prevent interfering with the cases above.
1816 i[3456789]86-*-*)
1817 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1818 host_makefile_frag="config/mh-x86omitfp"
1820 esac
1823 # If we aren't going to be using gcc, see if we can extract a definition
1824 # of CC from the fragment.
1825 # Actually, use the 'pre-extracted' version above.
1826 if test -z "${CC}" && test "${build}" = "${host}" ; then
1827 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1828 found=
1829 for dir in $PATH; do
1830 test -z "$dir" && dir=.
1831 if test -f $dir/gcc; then
1832 found=yes
1833 break
1835 done
1836 IFS="$save_ifs"
1837 if test -z "${found}" && test -n "${tentative_cc}" ; then
1838 CC=$tentative_cc
1842 if test "${build}" != "${host}" ; then
1843 # If we are doing a Canadian Cross, in which the host and build systems
1844 # are not the same, we set reasonable default values for the tools.
1846 CC=${CC-${host_alias}-gcc}
1847 CFLAGS=${CFLAGS-"-g -O2"}
1848 CXX=${CXX-${host_alias}-c++}
1849 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1850 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1852 else
1853 # Set reasonable default values for some tools even if not Canadian.
1854 # Of course, these are different reasonable default values, originally
1855 # specified directly in the Makefile.
1856 # We don't export, so that autoconf can do its job.
1857 # Note that all these settings are above the fragment inclusion point
1858 # in Makefile.in, so can still be overridden by fragments.
1859 # This is all going to change when we autoconfiscate...
1861 CC_FOR_BUILD="\$(CC)"
1862 # Extract the first word of "gcc", so it can be a program name with args.
1863 set dummy gcc; ac_word=$2
1864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1865 echo "configure:1866: checking for $ac_word" >&5
1866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1868 else
1869 if test -n "$CC"; then
1870 ac_cv_prog_CC="$CC" # Let the user override the test.
1871 else
1872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1873 ac_dummy="$PATH"
1874 for ac_dir in $ac_dummy; do
1875 test -z "$ac_dir" && ac_dir=.
1876 if test -f $ac_dir/$ac_word; then
1877 ac_cv_prog_CC="gcc"
1878 break
1880 done
1881 IFS="$ac_save_ifs"
1884 CC="$ac_cv_prog_CC"
1885 if test -n "$CC"; then
1886 echo "$ac_t""$CC" 1>&6
1887 else
1888 echo "$ac_t""no" 1>&6
1891 if test -z "$CC"; then
1892 # Extract the first word of "cc", so it can be a program name with args.
1893 set dummy cc; ac_word=$2
1894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1895 echo "configure:1896: checking for $ac_word" >&5
1896 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899 if test -n "$CC"; then
1900 ac_cv_prog_CC="$CC" # Let the user override the test.
1901 else
1902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1903 ac_prog_rejected=no
1904 ac_dummy="$PATH"
1905 for ac_dir in $ac_dummy; do
1906 test -z "$ac_dir" && ac_dir=.
1907 if test -f $ac_dir/$ac_word; then
1908 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1909 ac_prog_rejected=yes
1910 continue
1912 ac_cv_prog_CC="cc"
1913 break
1915 done
1916 IFS="$ac_save_ifs"
1917 if test $ac_prog_rejected = yes; then
1918 # We found a bogon in the path, so make sure we never use it.
1919 set dummy $ac_cv_prog_CC
1920 shift
1921 if test $# -gt 0; then
1922 # We chose a different compiler from the bogus one.
1923 # However, it has the same basename, so the bogon will be chosen
1924 # first if we set CC to just the basename; use the full file name.
1925 shift
1926 set dummy "$ac_dir/$ac_word" "$@"
1927 shift
1928 ac_cv_prog_CC="$@"
1933 CC="$ac_cv_prog_CC"
1934 if test -n "$CC"; then
1935 echo "$ac_t""$CC" 1>&6
1936 else
1937 echo "$ac_t""no" 1>&6
1940 if test -z "$CC"; then
1941 case "`uname -s`" in
1942 *win32* | *WIN32*)
1943 # Extract the first word of "cl", so it can be a program name with args.
1944 set dummy cl; ac_word=$2
1945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1946 echo "configure:1947: checking for $ac_word" >&5
1947 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1949 else
1950 if test -n "$CC"; then
1951 ac_cv_prog_CC="$CC" # Let the user override the test.
1952 else
1953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1954 ac_dummy="$PATH"
1955 for ac_dir in $ac_dummy; do
1956 test -z "$ac_dir" && ac_dir=.
1957 if test -f $ac_dir/$ac_word; then
1958 ac_cv_prog_CC="cl"
1959 break
1961 done
1962 IFS="$ac_save_ifs"
1965 CC="$ac_cv_prog_CC"
1966 if test -n "$CC"; then
1967 echo "$ac_t""$CC" 1>&6
1968 else
1969 echo "$ac_t""no" 1>&6
1972 esac
1974 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1977 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1978 echo "configure:1979: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1980 ac_ext=c
1981 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1982 ac_cpp='$CPP $CPPFLAGS'
1983 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1984 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1985 cross_compiling=$ac_cv_prog_cc_cross
1987 cat > conftest.$ac_ext << EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1992 main(){return(0);}
1994 if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1995 ac_cv_prog_cc_works=yes
1996 # If we can't run a trivial program, we are probably using a cross compiler.
1997 if (./conftest; exit) 2>/dev/null; then
1998 ac_cv_prog_cc_cross=no
1999 else
2000 ac_cv_prog_cc_cross=yes
2002 else
2003 echo "configure: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2005 ac_cv_prog_cc_works=no
2007 rm -fr conftest*
2008 ac_ext=c
2009 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2010 ac_cpp='$CPP $CPPFLAGS'
2011 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2012 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2013 cross_compiling=$ac_cv_prog_cc_cross
2015 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2016 if test $ac_cv_prog_cc_works = no; then
2017 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2019 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2020 echo "configure:2021: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2021 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2022 cross_compiling=$ac_cv_prog_cc_cross
2024 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2025 echo "configure:2026: checking whether we are using GNU C" >&5
2026 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2028 else
2029 cat > conftest.c <<EOF
2030 #ifdef __GNUC__
2031 yes;
2032 #endif
2034 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2035 ac_cv_prog_gcc=yes
2036 else
2037 ac_cv_prog_gcc=no
2041 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2043 if test $ac_cv_prog_gcc = yes; then
2044 GCC=yes
2045 else
2046 GCC=
2049 ac_test_CFLAGS="${CFLAGS+set}"
2050 ac_save_CFLAGS="$CFLAGS"
2051 CFLAGS=
2052 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2053 echo "configure:2054: checking whether ${CC-cc} accepts -g" >&5
2054 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2055 echo $ac_n "(cached) $ac_c" 1>&6
2056 else
2057 echo 'void f(){}' > conftest.c
2058 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2059 ac_cv_prog_cc_g=yes
2060 else
2061 ac_cv_prog_cc_g=no
2063 rm -f conftest*
2067 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2068 if test "$ac_test_CFLAGS" = set; then
2069 CFLAGS="$ac_save_CFLAGS"
2070 elif test $ac_cv_prog_cc_g = yes; then
2071 if test "$GCC" = yes; then
2072 CFLAGS="-g -O2"
2073 else
2074 CFLAGS="-g"
2076 else
2077 if test "$GCC" = yes; then
2078 CFLAGS="-O2"
2079 else
2080 CFLAGS=
2085 # We must set the default linker to the linker used by gcc for the correct
2086 # operation of libtool. If LD is not defined and we are using gcc, try to
2087 # set the LD default to the ld used by gcc.
2088 if test -z "$LD"; then
2089 if test "$GCC" = yes; then
2090 case $build in
2091 *-*-mingw*)
2092 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2094 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2095 esac
2096 case $gcc_prog_ld in
2097 # Accept absolute paths.
2098 [\\/]* | [A-Za-z]:[\\/]*)
2099 LD="$gcc_prog_ld" ;;
2100 esac
2104 CXX=${CXX-"c++"}
2105 CFLAGS=${CFLAGS-"-g"}
2106 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2109 if test $host != $build; then
2110 ac_tool_prefix=${host_alias}-
2111 else
2112 ac_tool_prefix=
2117 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2118 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2121 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2123 else
2124 if test -n "$GNATBIND"; then
2125 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2126 else
2127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2128 ac_dummy="$PATH"
2129 for ac_dir in $ac_dummy; do
2130 test -z "$ac_dir" && ac_dir=.
2131 if test -f $ac_dir/$ac_word; then
2132 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2133 break
2135 done
2136 IFS="$ac_save_ifs"
2139 GNATBIND="$ac_cv_prog_GNATBIND"
2140 if test -n "$GNATBIND"; then
2141 echo "$ac_t""$GNATBIND" 1>&6
2142 else
2143 echo "$ac_t""no" 1>&6
2147 if test -z "$ac_cv_prog_GNATBIND"; then
2148 if test -n "$ac_tool_prefix"; then
2149 # Extract the first word of "gnatbind", so it can be a program name with args.
2150 set dummy gnatbind; ac_word=$2
2151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2152 echo "configure:2153: checking for $ac_word" >&5
2153 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2155 else
2156 if test -n "$GNATBIND"; then
2157 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2158 else
2159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2160 ac_dummy="$PATH"
2161 for ac_dir in $ac_dummy; do
2162 test -z "$ac_dir" && ac_dir=.
2163 if test -f $ac_dir/$ac_word; then
2164 ac_cv_prog_GNATBIND="gnatbind"
2165 break
2167 done
2168 IFS="$ac_save_ifs"
2169 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2172 GNATBIND="$ac_cv_prog_GNATBIND"
2173 if test -n "$GNATBIND"; then
2174 echo "$ac_t""$GNATBIND" 1>&6
2175 else
2176 echo "$ac_t""no" 1>&6
2179 else
2180 GNATBIND="no"
2184 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2185 echo "configure:2186: checking whether compiler driver understands Ada" >&5
2186 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2188 else
2189 cat >conftest.adb <<EOF
2190 procedure conftest is begin null; end conftest;
2192 acx_cv_cc_gcc_supports_ada=no
2193 # There is a bug in old released versions of GCC which causes the
2194 # driver to exit successfully when the appropriate language module
2195 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2196 # Therefore we must check for the error message as well as an
2197 # unsuccessful exit.
2198 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2199 # given a .adb file, but produce no object file. So we must check
2200 # if an object file was really produced to guard against this.
2201 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2202 if test x"$errors" = x && test -f conftest.$ac_objext; then
2203 acx_cv_cc_gcc_supports_ada=yes
2205 rm -f conftest.*
2208 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2210 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2211 have_gnat=yes
2212 else
2213 have_gnat=no
2216 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2217 echo "configure:2218: checking how to compare bootstrapped objects" >&5
2218 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2220 else
2221 echo abfoo >t1
2222 echo cdfoo >t2
2223 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2224 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2225 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2227 else
2228 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2231 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2232 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2234 else
2235 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2238 rm t1 t2
2242 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2243 do_compare="$gcc_cv_prog_cmp_skip"
2247 # Check for GMP and MPFR
2248 gmplibs="-lmpfr"
2249 gmpinc=
2250 have_gmp=yes
2251 # Specify a location for mpfr
2252 # check for this first so it ends up on the link line before gmp.
2253 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2254 if test "${with_mpfr_dir+set}" = set; then
2255 withval="$with_mpfr_dir"
2256 { echo "configure: error: The --with-mpfr-dir=PATH option has been removed.
2257 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" 1>&2; exit 1; }
2261 # Check whether --with-mpfr or --without-mpfr was given.
2262 if test "${with_mpfr+set}" = set; then
2263 withval="$with_mpfr"
2267 # Check whether --with-mpfr_include or --without-mpfr_include was given.
2268 if test "${with_mpfr_include+set}" = set; then
2269 withval="$with_mpfr_include"
2273 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
2274 if test "${with_mpfr_lib+set}" = set; then
2275 withval="$with_mpfr_lib"
2280 if test "x$with_mpfr" != x; then
2281 gmplibs="-L$with_mpfr/lib $gmplibs"
2282 gmpinc="-I$with_mpfr/include"
2284 if test "x$with_mpfr_include" != x; then
2285 gmpinc="-I$with_mpfr_include"
2287 if test "x$with_mpfr_lib" != x; then
2288 gmplibs="-L$with_mpfr_lib $gmplibs"
2291 # Specify a location for gmp
2292 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2293 if test "${with_gmp_dir+set}" = set; then
2294 withval="$with_gmp_dir"
2295 { echo "configure: error: The --with-gmp-dir=PATH option has been removed.
2296 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" 1>&2; exit 1; }
2300 gmplibs="$gmplibs -lgmp"
2302 # Check whether --with-gmp or --without-gmp was given.
2303 if test "${with_gmp+set}" = set; then
2304 withval="$with_gmp"
2308 # Check whether --with-gmp_include or --without-gmp_include was given.
2309 if test "${with_gmp_include+set}" = set; then
2310 withval="$with_gmp_include"
2314 # Check whether --with-gmp_lib or --without-gmp_lib was given.
2315 if test "${with_gmp_lib+set}" = set; then
2316 withval="$with_gmp_lib"
2322 if test "x$with_gmp" != x; then
2323 gmplibs="-L$with_gmp/lib $gmplibs"
2324 gmpinc="-I$with_gmp/include $gmpinc"
2326 if test "x$with_gmp_include" != x; then
2327 gmpinc="-I$with_gmp_include $gmpinc"
2329 if test "x$with_gmp_lib" != x; then
2330 gmplibs="-L$with_gmp_lib $gmplibs"
2333 saved_CFLAGS="$CFLAGS"
2334 CFLAGS="$CFLAGS $gmpinc"
2335 # Check GMP actually works
2336 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2337 echo "configure:2338: checking for correct version of gmp.h" >&5
2338 cat > conftest.$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2341 #include "gmp.h"
2342 int main() {
2344 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
2345 choke me
2346 #endif
2348 ; return 0; }
2350 if { (eval echo configure:2351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2351 rm -rf conftest*
2352 echo "$ac_t""yes" 1>&6
2353 else
2354 echo "configure: failed program was:" >&5
2355 cat conftest.$ac_ext >&5
2356 rm -rf conftest*
2357 echo "$ac_t""no" 1>&6; have_gmp=no
2359 rm -f conftest*
2361 if test x"$have_gmp" = xyes; then
2362 saved_LIBS="$LIBS"
2363 LIBS="$LIBS $gmplibs"
2364 echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
2365 echo "configure:2366: checking for correct version of mpfr.h" >&5
2366 cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2369 #include <gmp.h>
2370 #include <mpfr.h>
2371 int main() {
2373 #if MPFR_VERSION_MAJOR < 2 || (MPFR_VERSION_MAJOR == 2 && MPFR_VERSION_MINOR < 2)
2374 choke me
2375 #endif
2376 mpfr_t n; mpfr_init(n);
2378 ; return 0; }
2380 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2381 rm -rf conftest*
2382 echo "$ac_t""yes" 1>&6
2383 else
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2386 rm -rf conftest*
2387 echo "$ac_t""no" 1>&6; have_gmp=no
2389 rm -f conftest*
2390 LIBS="$saved_LIBS"
2392 CFLAGS="$saved_CFLAGS"
2394 if test -d ${srcdir}/gcc && test x$have_gmp != xyes; then
2395 { echo "configure: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
2396 Try the --with-gmp and/or --with-mpfr options to specify their locations.
2397 Copies of these libraries' source code can be found at their respective
2398 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
2399 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
2400 If you obtained GMP and/or MPFR from a vendor distribution package, make
2401 sure that you have installed both the libraries and the header files.
2402 They may be located in separate packages." 1>&2; exit 1; }
2405 # Flags needed for both GMP and/or MPFR
2409 # By default, C is the only stage 1 language.
2410 stage1_languages=c
2413 # Figure out what language subdirectories are present.
2414 # Look if the user specified --enable-languages="..."; if not, use
2415 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2416 # go away some day.
2417 # NB: embedded tabs in this IF block -- do not untabify
2418 if test -d ${srcdir}/gcc; then
2419 if test x"${enable_languages+set}" != xset; then
2420 if test x"${LANGUAGES+set}" = xset; then
2421 enable_languages="${LANGUAGES}"
2422 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2423 else
2424 enable_languages=all
2426 else
2427 if test x"${enable_languages}" = x ||
2428 test x"${enable_languages}" = xyes;
2429 then
2430 echo configure.in: --enable-languages needs at least one language argument 1>&2
2431 exit 1
2434 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2436 # 'f95' is the old name for the 'fortran' language. We issue a warning
2437 # and make the substitution.
2438 case ,${enable_languages}, in
2439 *,f95,*)
2440 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2441 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2443 esac
2445 # First scan to see if an enabled language requires some other language.
2446 # We assume that a given config-lang.in will list all the language
2447 # front ends it requires, even if some are required indirectly.
2448 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2449 case ${lang_frag} in
2450 ..) ;;
2451 # The odd quoting in the next line works around
2452 # an apparent bug in bash 1.12 on linux.
2453 ${srcdir}/gcc/[*]/config-lang.in) ;;
2455 # From the config-lang.in, get $language, $lang_requires
2456 language=
2457 lang_requires=
2458 . ${lang_frag}
2459 for other in ${lang_requires} ; do
2460 case ,${enable_languages}, in
2461 *,$other,*) ;;
2462 *,all,*) ;;
2463 *,$language,*)
2464 echo " \`$other' language required by \`$language'; enabling" 1>&2
2465 enable_languages="${enable_languages},${other}"
2467 esac
2468 done
2470 esac
2471 done
2473 new_enable_languages=c
2474 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2475 potential_languages=c
2477 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2478 case ${lang_frag} in
2479 ..) ;;
2480 # The odd quoting in the next line works around
2481 # an apparent bug in bash 1.12 on linux.
2482 ${srcdir}/gcc/[*]/config-lang.in) ;;
2484 # From the config-lang.in, get $language, $target_libs,
2485 # $lang_dirs, $boot_language, and $build_by_default
2486 language=
2487 target_libs=
2488 lang_dirs=
2489 subdir_requires=
2490 boot_language=
2491 build_by_default=
2492 . ${lang_frag}
2493 potential_languages="${potential_languages},${language}"
2494 # This is quite sensitive to the ordering of the case statement arms.
2495 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2496 *::*:*)
2497 echo "${lang_frag} doesn't set \$language." 1>&2
2498 exit 1
2500 *:ada:no:*)
2501 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2502 add_this_lang=no
2504 *,${language},*:*:*:*)
2505 # Language was explicitly selected; include it.
2506 add_this_lang=yes
2508 *,all,*:*:*:no)
2509 # 'all' was selected, but this is not a default language
2510 # so do not include it.
2511 add_this_lang=no
2513 *,all,*:*:*:*)
2514 # 'all' was selected and this is a default language; include it.
2515 add_this_lang=yes
2518 add_this_lang=no
2520 esac
2522 # Disable languages that need other directories if these aren't available.
2523 for i in $subdir_requires; do
2524 test -f "$srcdir/gcc/$i/config-lang.in" && continue
2525 case ,${enable_languages}, in
2526 *,${language},*)
2527 # Specifically requested language; tell them.
2528 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2531 # Silently disable.
2532 add_this_lang=no
2534 esac
2535 done
2537 # Disable a language that is unsupported by the target.
2538 case " $unsupported_languages " in
2539 *" $language "*)
2540 add_this_lang=no
2542 esac
2544 case $add_this_lang in
2546 # Remove language-dependent dirs.
2547 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2550 new_enable_languages="$new_enable_languages,$language"
2551 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2552 case ${boot_language} in
2553 yes)
2554 # Add to (comma-separated) list of stage 1 languages.
2555 stage1_languages="${stage1_languages},${language}"
2557 esac
2559 esac
2561 esac
2562 done
2564 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2565 if test "x$missing_languages" != x; then
2566 { echo "configure: error:
2567 The following requested languages could not be built: ${missing_languages}
2568 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2571 if test "x$new_enable_languages" != "x$enable_languages"; then
2572 echo The following languages will be built: ${new_enable_languages}
2574 enable_languages="$new_enable_languages"
2575 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2578 # Handle --disable-<component> generically.
2579 for dir in $configdirs $build_configdirs $target_configdirs ; do
2580 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2581 if eval test x\${enable_${dirname}} "=" xno ; then
2582 noconfigdirs="$noconfigdirs $dir"
2584 done
2586 # Check for Boehm's garbage collector
2587 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2588 if test "${enable_objc_gc+set}" = set; then
2589 enableval="$enable_objc_gc"
2590 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2591 *,objc,*:*:yes:*target-boehm-gc*)
2592 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2594 esac
2598 # Make sure we only build Boehm's garbage collector if required.
2599 case ,${enable_languages},:${enable_objc_gc} in
2600 *,objc,*:yes)
2601 # Keep target-boehm-gc if requested for Objective-C.
2604 # Otherwise remove target-boehm-gc depending on target-libjava.
2605 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
2606 noconfigdirs="$noconfigdirs target-boehm-gc"
2609 esac
2611 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2612 # $build_configdirs and $target_configdirs.
2613 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2615 notsupp=""
2616 for dir in . $skipdirs $noconfigdirs ; do
2617 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2618 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2619 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2620 if test -r $srcdir/$dirname/configure ; then
2621 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2622 true
2623 else
2624 notsupp="$notsupp $dir"
2628 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2629 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2630 if test -r $srcdir/$dirname/configure ; then
2631 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2632 true
2633 else
2634 notsupp="$notsupp $dir"
2638 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2639 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2640 if test -r $srcdir/$dirname/configure ; then
2641 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2642 true
2643 else
2644 notsupp="$notsupp $dir"
2648 done
2650 # Sometimes the tools are distributed with libiberty but with no other
2651 # libraries. In that case, we don't want to build target-libiberty.
2652 if test -n "${target_configdirs}" ; then
2653 others=
2654 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2655 if test "$i" != "libiberty" ; then
2656 if test -r $srcdir/$i/configure ; then
2657 others=yes;
2658 break;
2661 done
2662 if test -z "${others}" ; then
2663 target_configdirs=
2667 # Quietly strip out all directories which aren't configurable in this tree.
2668 # This relies on all configurable subdirectories being autoconfiscated, which
2669 # is now the case.
2670 build_configdirs_all="$build_configdirs"
2671 build_configdirs=
2672 for i in ${build_configdirs_all} ; do
2673 j=`echo $i | sed -e s/build-//g`
2674 if test -f ${srcdir}/$j/configure ; then
2675 build_configdirs="${build_configdirs} $i"
2677 done
2679 configdirs_all="$configdirs"
2680 configdirs=
2681 for i in ${configdirs_all} ; do
2682 if test -f ${srcdir}/$i/configure ; then
2683 configdirs="${configdirs} $i"
2685 done
2687 target_configdirs_all="$target_configdirs"
2688 target_configdirs=
2689 for i in ${target_configdirs_all} ; do
2690 j=`echo $i | sed -e s/target-//g`
2691 if test -f ${srcdir}/$j/configure ; then
2692 target_configdirs="${target_configdirs} $i"
2694 done
2696 # Produce a warning message for the subdirs we can't configure.
2697 # This isn't especially interesting in the Cygnus tree, but in the individual
2698 # FSF releases, it's important to let people know when their machine isn't
2699 # supported by the one or two programs in a package.
2701 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2702 # If $appdirs is non-empty, at least one of those directories must still
2703 # be configured, or we error out. (E.g., if the gas release supports a
2704 # specified target in some subdirs but not the gas subdir, we shouldn't
2705 # pretend that all is well.)
2706 if test -n "$appdirs" ; then
2707 for dir in $appdirs ; do
2708 if test -r $dir/Makefile.in ; then
2709 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2710 appdirs=""
2711 break
2713 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2714 appdirs=""
2715 break
2718 done
2719 if test -n "$appdirs" ; then
2720 echo "*** This configuration is not supported by this package." 1>&2
2721 exit 1
2724 # Okay, some application will build, or we don't care to check. Still
2725 # notify of subdirs not getting built.
2726 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2727 echo " ${notsupp}" 1>&2
2728 echo " (Any other directories should still work fine.)" 1>&2
2731 case "$host" in
2732 *msdosdjgpp*)
2733 enable_gdbtk=no ;;
2734 esac
2736 copy_dirs=
2738 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2739 if test "${with_build_sysroot+set}" = set; then
2740 withval="$with_build_sysroot"
2741 if test x"$withval" != x ; then
2742 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2744 else
2745 SYSROOT_CFLAGS_FOR_TARGET=
2750 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2751 # the named directory are copied to $(tooldir)/sys-include.
2752 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2753 if test x${is_cross_compiler} = xno ; then
2754 echo 1>&2 '***' --with-headers is only supported when cross compiling
2755 exit 1
2757 if test x"${with_headers}" != xyes ; then
2758 case "${exec_prefixoption}" in
2759 "") x=${prefix} ;;
2760 *) x=${exec_prefix} ;;
2761 esac
2762 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2766 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2767 # the name directories are copied to $(tooldir)/lib. Multiple directories
2768 # are permitted.
2769 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2770 if test x${is_cross_compiler} = xno ; then
2771 echo 1>&2 '***' --with-libs is only supported when cross compiling
2772 exit 1
2774 if test x"${with_libs}" != xyes ; then
2775 # Copy the libraries in reverse order, so that files in the first named
2776 # library override files in subsequent libraries.
2777 case "${exec_prefixoption}" in
2778 "") x=${prefix} ;;
2779 *) x=${exec_prefix} ;;
2780 esac
2781 for l in ${with_libs}; do
2782 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2783 done
2787 # Set with_gnu_as and with_gnu_ld as appropriate.
2789 # This is done by determining whether or not the appropriate directory
2790 # is available, and by checking whether or not specific configurations
2791 # have requested that this magic not happen.
2793 # The command line options always override the explicit settings in
2794 # configure.in, and the settings in configure.in override this magic.
2796 # If the default for a toolchain is to use GNU as and ld, and you don't
2797 # want to do that, then you should use the --without-gnu-as and
2798 # --without-gnu-ld options for the configure script.
2800 if test x${use_gnu_as} = x &&
2801 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2802 with_gnu_as=yes
2803 extra_host_args="$extra_host_args --with-gnu-as"
2806 if test x${use_gnu_ld} = x &&
2807 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2808 with_gnu_ld=yes
2809 extra_host_args="$extra_host_args --with-gnu-ld"
2812 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2813 # can detect this case.
2815 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2816 with_newlib=yes
2817 extra_host_args="$extra_host_args --with-newlib"
2820 # Handle ${copy_dirs}
2821 set fnord ${copy_dirs}
2822 shift
2823 while test $# != 0 ; do
2824 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2826 else
2827 echo Copying $1 to $2
2829 # Use the install script to create the directory and all required
2830 # parent directories.
2831 if test -d $2 ; then
2833 else
2834 echo >config.temp
2835 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2838 # Copy the directory, assuming we have tar.
2839 # FIXME: Should we use B in the second tar? Not all systems support it.
2840 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2842 # It is the responsibility of the user to correctly adjust all
2843 # symlinks. If somebody can figure out how to handle them correctly
2844 # here, feel free to add the code.
2846 echo $1 > $2/COPIED
2848 shift; shift
2849 done
2851 # Determine a target-dependent exec_prefix that the installed
2852 # gcc will search in. Keep this list sorted by triplet, with
2853 # the *-*-osname triplets last.
2854 md_exec_prefix=
2855 case "${target}" in
2856 alpha*-*-*vms*)
2857 md_exec_prefix=/gnu/lib/gcc-lib
2859 i3456786-pc-msdosdjgpp*)
2860 md_exec_prefix=/dev/env/DJDIR/bin
2862 i3456786-*-sco3.2v5*)
2863 if test $with_gnu_as = yes; then
2864 md_exec_prefix=/usr/gnu/bin
2865 else
2866 md_exec_prefix=/usr/ccs/bin/elf
2870 mn10300-*-* | \
2871 powerpc-*-chorusos* | \
2872 powerpc*-*-eabi* | \
2873 powerpc*-*-sysv* | \
2874 powerpc*-*-kaos* | \
2875 s390x-ibm-tpf*)
2876 md_exec_prefix=/usr/ccs/bin
2878 sparc64-*-elf*)
2880 v850*-*-*)
2881 md_exec_prefix=/usr/ccs/bin
2883 xtensa-*-elf*)
2886 *-*-beos* | \
2887 *-*-elf* | \
2888 *-*-hpux* | \
2889 *-*-netware* | \
2890 *-*-nto-qnx* | \
2891 *-*-rtems* | \
2892 *-*-solaris2* | \
2893 *-*-sysv45* | \
2894 *-*-vxworks* | \
2895 *-wrs-windiss)
2896 md_exec_prefix=/usr/ccs/bin
2898 esac
2900 extra_arflags_for_target=
2901 extra_nmflags_for_target=
2902 extra_ranlibflags_for_target=
2903 target_makefile_frag=/dev/null
2904 case "${target}" in
2905 spu-*-*)
2906 target_makefile_frag="config/mt-spu"
2908 *-*-netware*)
2909 target_makefile_frag="config/mt-netware"
2911 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2912 target_makefile_frag="config/mt-gnu"
2914 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2915 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2916 # commands to handle both 32-bit and 64-bit objects. These flags are
2917 # harmless if we're using GNU nm or ar.
2918 extra_arflags_for_target=" -X32_64"
2919 extra_nmflags_for_target=" -B -X32_64"
2921 *-*-darwin*)
2922 # ranlib from Darwin requires the -c flag to look at common symbols.
2923 extra_ranlibflags_for_target=" -c"
2925 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2926 target_makefile_frag="config/mt-wince"
2928 esac
2930 alphaieee_frag=/dev/null
2931 case $target in
2932 alpha*-*-*)
2933 # This just makes sure to use the -mieee option to build target libs.
2934 # This should probably be set individually by each library.
2935 alphaieee_frag="config/mt-alphaieee"
2937 esac
2939 # If --enable-target-optspace always use -Os instead of -O2 to build
2940 # the target libraries, similarly if it is not specified, use -Os
2941 # on selected platforms.
2942 ospace_frag=/dev/null
2943 case "${enable_target_optspace}:${target}" in
2944 yes:*)
2945 ospace_frag="config/mt-ospace"
2947 :d30v-*)
2948 ospace_frag="config/mt-d30v"
2950 :m32r-* | :d10v-* | :fr30-*)
2951 ospace_frag="config/mt-ospace"
2953 no:* | :*)
2956 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2958 esac
2960 # Default to using --with-stabs for certain targets.
2961 if test x${with_stabs} = x ; then
2962 case "${target}" in
2963 mips*-*-irix[56]*)
2965 mips*-*-* | alpha*-*-osf*)
2966 with_stabs=yes;
2967 extra_host_args="${extra_host_args} --with-stabs"
2969 esac
2972 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2973 # them automatically.
2974 case "${host}" in
2975 hppa*64*-*-hpux11*)
2976 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2978 esac
2980 # Some systems (e.g., one of the i386-aix systems the gas testers are
2981 # using) don't handle "\$" correctly, so don't use it here.
2982 tooldir='${exec_prefix}'/${target_alias}
2983 build_tooldir=${tooldir}
2985 # Create a .gdbinit file which runs the one in srcdir
2986 # and tells GDB to look there for source files.
2988 if test -r ${srcdir}/.gdbinit ; then
2989 case ${srcdir} in
2990 .) ;;
2991 *) cat > ./.gdbinit <<EOF
2992 # ${NO_EDIT}
2993 dir ${srcdir}
2994 dir .
2995 source ${srcdir}/.gdbinit
2998 esac
3001 # Make sure that the compiler is able to generate an executable. If it
3002 # can't, we are probably in trouble. We don't care whether we can run the
3003 # executable--we might be using a cross compiler--we only care whether it
3004 # can be created. At this point the main configure script has set CC.
3005 we_are_ok=no
3006 echo "int main () { return 0; }" > conftest.c
3007 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3008 if test $? = 0 ; then
3009 if test -s conftest || test -s conftest.exe ; then
3010 we_are_ok=yes
3013 case $we_are_ok in
3015 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3016 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3017 rm -f conftest*
3018 exit 1
3020 esac
3021 rm -f conftest*
3023 # The Solaris /usr/ucb/cc compiler does not appear to work.
3024 case "${host}" in
3025 sparc-sun-solaris2*)
3026 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
3027 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3028 could_use=
3029 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
3030 if test -d /opt/cygnus/bin ; then
3031 if test "$could_use" = "" ; then
3032 could_use="/opt/cygnus/bin"
3033 else
3034 could_use="$could_use or /opt/cygnus/bin"
3037 if test "$could_use" = "" ; then
3038 echo "Warning: compilation may fail because you're using"
3039 echo "/usr/ucb/cc. You should change your PATH or CC "
3040 echo "variable and rerun configure."
3041 else
3042 echo "Warning: compilation may fail because you're using"
3043 echo "/usr/ucb/cc, when you should use the C compiler from"
3044 echo "$could_use. You should change your"
3045 echo "PATH or CC variable and rerun configure."
3049 esac
3051 case "${host}" in
3052 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3053 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3054 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3055 esac
3057 # Record target_configdirs and the configure arguments for target and
3058 # build configuration in Makefile.
3059 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3060 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3062 # Determine whether gdb needs tk/tcl or not.
3063 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3064 # and in that case we want gdb to be built without tk. Ugh!
3065 # In fact I believe gdb is the *only* package directly dependent on tk,
3066 # so we should be able to put the 'maybe's in unconditionally and
3067 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3068 # 100% sure that that's safe though.
3070 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3071 case "$enable_gdbtk" in
3073 GDB_TK="" ;;
3074 yes)
3075 GDB_TK="${gdb_tk}" ;;
3077 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3078 # distro. Eventually someone will fix this and move Insight, nee
3079 # gdbtk to a separate directory.
3080 if test -d ${srcdir}/gdb/gdbtk ; then
3081 GDB_TK="${gdb_tk}"
3082 else
3083 GDB_TK=""
3086 esac
3087 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3088 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3090 # Strip out unwanted targets.
3092 # While at that, we remove Makefiles if we were started for recursive
3093 # configuration, so that the top-level Makefile reconfigures them,
3094 # like we used to do when configure itself was recursive.
3096 # Loop over modules. $extrasub must be used with care, limiting as
3097 # much as possible the usage of range addresses. That's because autoconf
3098 # splits the sed script to overcome limits in the number of commands,
3099 # and relying on carefully-timed sed passes may turn out to be very hard
3100 # to maintain later. In this particular case, you just have to be careful
3101 # not to nest @if/@endif pairs, because configure will not warn you at all.
3103 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3104 if test "${enable_bootstrap+set}" = set; then
3105 enableval="$enable_bootstrap"
3107 else
3108 enable_bootstrap=default
3112 # Issue errors and warnings for invalid/strange bootstrap combinations.
3113 case "$configdirs" in
3114 *gcc*) have_compiler=yes ;;
3115 *) have_compiler=no ;;
3116 esac
3118 case "$have_compiler:$host:$target:$enable_bootstrap" in
3119 *:*:*:no) ;;
3121 # Default behavior. Enable bootstrap if we have a compiler
3122 # and we are in a native configuration.
3123 yes:$build:$build:default)
3124 enable_bootstrap=yes ;;
3126 *:*:*:default)
3127 enable_bootstrap=no ;;
3129 # We have a compiler and we are in a native configuration, bootstrap is ok
3130 yes:$build:$build:yes)
3133 # Other configurations, but we have a compiler. Assume the user knows
3134 # what he's doing.
3135 yes:*:*:yes)
3136 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3139 # No compiler: if they passed --enable-bootstrap explicitly, fail
3140 no:*:*:yes)
3141 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3143 # Fail if wrong command line
3145 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3147 esac
3149 # Adjust the toplevel makefile according to whether bootstrap was selected.
3150 case "$enable_bootstrap" in
3151 yes)
3152 bootstrap_suffix=bootstrap ;;
3154 bootstrap_suffix=no-bootstrap ;;
3155 esac
3157 for module in ${build_configdirs} ; do
3158 if test -z "${no_recursion}" \
3159 && test -f ${build_subdir}/${module}/Makefile; then
3160 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3161 rm -f ${build_subdir}/${module}/Makefile
3163 extrasub="$extrasub
3164 /^@if build-$module\$/d
3165 /^@endif build-$module\$/d
3166 /^@if build-$module-$bootstrap_suffix\$/d
3167 /^@endif build-$module-$bootstrap_suffix\$/d"
3168 done
3169 for module in ${configdirs} ; do
3170 if test -z "${no_recursion}"; then
3171 for file in stage*-${module}/Makefile ${module}/Makefile; do
3172 if test -f ${file}; then
3173 echo 1>&2 "*** removing ${file} to force reconfigure"
3174 rm -f ${file}
3176 done
3178 extrasub="$extrasub
3179 /^@if $module\$/d
3180 /^@endif $module\$/d
3181 /^@if $module-$bootstrap_suffix\$/d
3182 /^@endif $module-$bootstrap_suffix\$/d"
3183 done
3184 for module in ${target_configdirs} ; do
3185 if test -z "${no_recursion}" \
3186 && test -f ${target_subdir}/${module}/Makefile; then
3187 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3188 rm -f ${target_subdir}/${module}/Makefile
3190 extrasub="$extrasub
3191 /^@if target-$module\$/d
3192 /^@endif target-$module\$/d
3193 /^@if target-$module-$bootstrap_suffix\$/d
3194 /^@endif target-$module-$bootstrap_suffix\$/d"
3195 done
3197 extrasub="$extrasub
3198 /^@if /,/^@endif /d"
3200 # Create the serialization dependencies. This uses a temporary file.
3202 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3203 if test "${enable_serial_configure+set}" = set; then
3204 enableval="$enable_serial_configure"
3209 case ${enable_serial_configure} in
3210 yes)
3211 enable_serial_build_configure=yes
3212 enable_serial_host_configure=yes
3213 enable_serial_target_configure=yes
3215 esac
3217 # These force 'configure's to be done one at a time, to avoid problems
3218 # with contention over a shared config.cache.
3219 rm -f serdep.tmp
3220 echo '# serdep.tmp' > serdep.tmp
3221 olditem=
3222 test "x${enable_serial_build_configure}" = xyes &&
3223 for item in ${build_configdirs} ; do
3224 case ${olditem} in
3225 "") ;;
3226 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3227 esac
3228 olditem=${item}
3229 done
3230 olditem=
3231 test "x${enable_serial_host_configure}" = xyes &&
3232 for item in ${configdirs} ; do
3233 case ${olditem} in
3234 "") ;;
3235 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3236 esac
3237 olditem=${item}
3238 done
3239 olditem=
3240 test "x${enable_serial_target_configure}" = xyes &&
3241 for item in ${target_configdirs} ; do
3242 case ${olditem} in
3243 "") ;;
3244 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3245 esac
3246 olditem=${item}
3247 done
3248 serialization_dependencies=serdep.tmp
3251 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3252 # target and nonopt. These are the ones we might not want to pass
3253 # down to subconfigures. Also strip program-prefix, program-suffix,
3254 # and program-transform-name, so that we can pass down a consistent
3255 # program-transform-name. If autoconf has put single quotes around
3256 # any of these arguments (because they contain shell metacharacters)
3257 # then this will fail; in practice this only happens for
3258 # --program-transform-name, so be sure to override --program-transform-name
3259 # at the end of the argument list.
3260 # These will be expanded by make, so quote '$'.
3261 cat <<\EOF_SED > conftestsed
3262 s/ --no[^ ]*/ /g
3263 s/ --c[a-z-]*[= ][^ ]*//g
3264 s/ --sr[a-z-]*[= ][^ ]*//g
3265 s/ --ho[a-z-]*[= ][^ ]*//g
3266 s/ --bu[a-z-]*[= ][^ ]*//g
3267 s/ --t[a-z-]*[= ][^ ]*//g
3268 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3269 s/ -cache-file[= ][^ ]*//g
3270 s/ -srcdir[= ][^ ]*//g
3271 s/ -host[= ][^ ]*//g
3272 s/ -build[= ][^ ]*//g
3273 s/ -target[= ][^ ]*//g
3274 s/ -program-prefix[= ][^ ]*//g
3275 s/ -program-suffix[= ][^ ]*//g
3276 s/ -program-transform-name[= ][^ ]*//g
3277 s/ [^' -][^ ]* / /
3278 s/^ *//;s/ *$//
3279 s,\$,$$,g
3280 EOF_SED
3281 sed -f conftestsed <<EOF_SED > conftestsed.out
3282 ${ac_configure_args}
3283 EOF_SED
3284 baseargs=`cat conftestsed.out`
3285 rm -f conftestsed conftestsed.out
3287 # Add in --program-transform-name, after --program-prefix and
3288 # --program-suffix have been applied to it. Autoconf has already
3289 # doubled dollar signs and backslashes in program_transform_name; we want
3290 # the backslashes un-doubled, and then the entire thing wrapped in single
3291 # quotes, because this will be expanded first by make and then by the shell.
3292 # Also, because we want to override the logic in subdir configure scripts to
3293 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3294 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3295 ${program_transform_name}
3296 EOF_SED
3297 gcc_transform_name=`cat conftestsed.out`
3298 rm -f conftestsed.out
3299 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3301 # For the build-side libraries, we just need to pretend we're native,
3302 # and not use the same cache file. Multilibs are neither needed nor
3303 # desired.
3304 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3306 # For host modules, accept cache file option, or specification as blank.
3307 case "${cache_file}" in
3308 "") # empty
3309 cache_file_option="" ;;
3310 /* | [A-Za-z]:[\\/]* ) # absolute path
3311 cache_file_option="--cache-file=${cache_file}" ;;
3312 *) # relative path
3313 cache_file_option="--cache-file=../${cache_file}" ;;
3314 esac
3316 # Host dirs don't like to share a cache file either, horribly enough.
3317 # This seems to be due to autoconf 2.5x stupidity.
3318 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3320 target_configargs=${baseargs}
3322 # Passing a --with-cross-host argument lets the target libraries know
3323 # whether they are being built with a cross-compiler or being built
3324 # native. However, it would be better to use other mechanisms to make the
3325 # sorts of decisions they want to make on this basis. Please consider
3326 # this option to be deprecated. FIXME.
3327 if test x${is_cross_compiler} = xyes ; then
3328 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3331 # Default to --enable-multilib.
3332 if test x${enable_multilib} = x ; then
3333 target_configargs="--enable-multilib ${target_configargs}"
3336 # Pass --with-newlib if appropriate. Note that target_configdirs has
3337 # changed from the earlier setting of with_newlib.
3338 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3339 target_configargs="--with-newlib ${target_configargs}"
3342 # Different target subdirs use different values of certain variables
3343 # (notably CXX). Worse, multilibs use *lots* of different values.
3344 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3345 # it doesn't automatically accept command-line overrides of them.
3346 # This means it's not safe for target subdirs to share a cache file,
3347 # which is disgusting, but there you have it. Hopefully this can be
3348 # fixed in future. It's still worthwhile to use a cache file for each
3349 # directory. I think.
3351 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3352 # We need to pass --target, as newer autoconf's requires consistency
3353 # for target_alias and gcc doesn't manage it consistently.
3354 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3356 FLAGS_FOR_TARGET=
3357 case " $target_configdirs " in
3358 *" newlib "*)
3359 case " $target_configargs " in
3360 *" --with-newlib "*)
3361 case "$target" in
3362 *-cygwin*)
3363 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' ;;
3364 esac
3366 # If we're not building GCC, don't discard standard headers.
3367 if test -d ${srcdir}/gcc; then
3368 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3370 if test "${build}" != "${host}"; then
3371 # On Canadian crosses, CC_FOR_TARGET will have already been set
3372 # by `configure', so we won't have an opportunity to add -Bgcc/
3373 # to it. This is right: we don't want to search that directory
3374 # for binaries, but we want the header files in there, so add
3375 # them explicitly.
3376 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3378 # Someone might think of using the pre-installed headers on
3379 # Canadian crosses, in case the installed compiler is not fully
3380 # compatible with the compiler being built. In this case, it
3381 # would be better to flag an error than risking having
3382 # incompatible object files being constructed. We can't
3383 # guarantee that an error will be flagged, but let's hope the
3384 # compiler will do it, when presented with incompatible header
3385 # files.
3389 case "${target}-${is_cross_compiler}" in
3390 i[3456789]86-*-linux*-no)
3391 # Here host == target, so we don't need to build gcc,
3392 # so we don't want to discard standard headers.
3393 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3396 # If we're building newlib, use its generic headers last, but search
3397 # for any libc-related directories first (so make it the last -B
3398 # switch).
3399 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3401 esac
3403 esac
3405 esac
3406 case "$target" in
3407 *-mingw*)
3408 # Can't be handled as Cygwin above since Mingw does not use newlib.
3409 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' ;;
3410 esac
3412 # Allow the user to override the flags for
3413 # our build compiler if desired.
3414 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3416 # On Canadian crosses, we'll be searching the right directories for
3417 # the previously-installed cross compiler, so don't bother to add
3418 # flags for directories within the install tree of the compiler
3419 # being built; programs in there won't even run.
3420 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3421 # Search for pre-installed headers if nothing else fits.
3422 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3425 if test "x${use_gnu_ld}" = x &&
3426 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3427 # Arrange for us to find uninstalled linker scripts.
3428 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3431 # Search for other target-specific linker scripts and such.
3432 case "${target}" in
3433 m32c-*-* )
3434 if test -d ${srcdir}/libgloss/m32c; then
3435 # This is for crt0.o
3436 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3437 # This is for r8c.ld
3438 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3439 # This is for libnosys.a
3440 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3443 esac
3445 # Makefile fragments.
3446 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3448 eval fragval=\$$frag
3449 if test $fragval != /dev/null; then
3450 eval $frag=${srcdir}/$fragval
3452 done
3458 # Miscellanea: directories, flags, etc.
3466 # Build module lists & subconfigure args.
3470 # Host module lists & subconfigure args.
3474 # Target module lists & subconfigure args.
3478 # Build tools.
3482 # Generate default definitions for YACC, M4, LEX and other programs that run
3483 # on the build machine. These are used if the Makefile can't locate these
3484 # programs in objdir.
3485 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3487 for ac_prog in 'bison -y' byacc yacc
3489 # Extract the first word of "$ac_prog", so it can be a program name with args.
3490 set dummy $ac_prog; ac_word=$2
3491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3492 echo "configure:3493: checking for $ac_word" >&5
3493 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3495 else
3496 if test -n "$YACC"; then
3497 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3498 else
3499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3500 ac_dummy="$PATH"
3501 for ac_dir in $ac_dummy; do
3502 test -z "$ac_dir" && ac_dir=.
3503 if test -f $ac_dir/$ac_word; then
3504 ac_cv_prog_YACC="$ac_prog"
3505 break
3507 done
3508 IFS="$ac_save_ifs"
3511 YACC="$ac_cv_prog_YACC"
3512 if test -n "$YACC"; then
3513 echo "$ac_t""$YACC" 1>&6
3514 else
3515 echo "$ac_t""no" 1>&6
3518 test -n "$YACC" && break
3519 done
3520 test -n "$YACC" || YACC="$MISSING bison -y"
3522 case " $build_configdirs " in
3523 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3524 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3525 esac
3527 for ac_prog in bison
3529 # Extract the first word of "$ac_prog", so it can be a program name with args.
3530 set dummy $ac_prog; ac_word=$2
3531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3532 echo "configure:3533: checking for $ac_word" >&5
3533 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3535 else
3536 if test -n "$BISON"; then
3537 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3538 else
3539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3540 ac_dummy="$PATH"
3541 for ac_dir in $ac_dummy; do
3542 test -z "$ac_dir" && ac_dir=.
3543 if test -f $ac_dir/$ac_word; then
3544 ac_cv_prog_BISON="$ac_prog"
3545 break
3547 done
3548 IFS="$ac_save_ifs"
3551 BISON="$ac_cv_prog_BISON"
3552 if test -n "$BISON"; then
3553 echo "$ac_t""$BISON" 1>&6
3554 else
3555 echo "$ac_t""no" 1>&6
3558 test -n "$BISON" && break
3559 done
3560 test -n "$BISON" || BISON="$MISSING bison"
3562 case " $build_configdirs " in
3563 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3564 esac
3566 for ac_prog in gm4 gnum4 m4
3568 # Extract the first word of "$ac_prog", so it can be a program name with args.
3569 set dummy $ac_prog; ac_word=$2
3570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3571 echo "configure:3572: checking for $ac_word" >&5
3572 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3574 else
3575 if test -n "$M4"; then
3576 ac_cv_prog_M4="$M4" # Let the user override the test.
3577 else
3578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3579 ac_dummy="$PATH"
3580 for ac_dir in $ac_dummy; do
3581 test -z "$ac_dir" && ac_dir=.
3582 if test -f $ac_dir/$ac_word; then
3583 ac_cv_prog_M4="$ac_prog"
3584 break
3586 done
3587 IFS="$ac_save_ifs"
3590 M4="$ac_cv_prog_M4"
3591 if test -n "$M4"; then
3592 echo "$ac_t""$M4" 1>&6
3593 else
3594 echo "$ac_t""no" 1>&6
3597 test -n "$M4" && break
3598 done
3599 test -n "$M4" || M4="$MISSING m4"
3601 case " $build_configdirs " in
3602 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3603 esac
3605 for ac_prog in flex lex
3607 # Extract the first word of "$ac_prog", so it can be a program name with args.
3608 set dummy $ac_prog; ac_word=$2
3609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3610 echo "configure:3611: checking for $ac_word" >&5
3611 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3613 else
3614 if test -n "$LEX"; then
3615 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3616 else
3617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3618 ac_dummy="$PATH"
3619 for ac_dir in $ac_dummy; do
3620 test -z "$ac_dir" && ac_dir=.
3621 if test -f $ac_dir/$ac_word; then
3622 ac_cv_prog_LEX="$ac_prog"
3623 break
3625 done
3626 IFS="$ac_save_ifs"
3629 LEX="$ac_cv_prog_LEX"
3630 if test -n "$LEX"; then
3631 echo "$ac_t""$LEX" 1>&6
3632 else
3633 echo "$ac_t""no" 1>&6
3636 test -n "$LEX" && break
3637 done
3638 test -n "$LEX" || LEX="$MISSING flex"
3640 case " $build_configdirs " in
3641 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3642 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3643 esac
3645 for ac_prog in flex
3647 # Extract the first word of "$ac_prog", so it can be a program name with args.
3648 set dummy $ac_prog; ac_word=$2
3649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3650 echo "configure:3651: checking for $ac_word" >&5
3651 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3653 else
3654 if test -n "$FLEX"; then
3655 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3656 else
3657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3658 ac_dummy="$PATH"
3659 for ac_dir in $ac_dummy; do
3660 test -z "$ac_dir" && ac_dir=.
3661 if test -f $ac_dir/$ac_word; then
3662 ac_cv_prog_FLEX="$ac_prog"
3663 break
3665 done
3666 IFS="$ac_save_ifs"
3669 FLEX="$ac_cv_prog_FLEX"
3670 if test -n "$FLEX"; then
3671 echo "$ac_t""$FLEX" 1>&6
3672 else
3673 echo "$ac_t""no" 1>&6
3676 test -n "$FLEX" && break
3677 done
3678 test -n "$FLEX" || FLEX="$MISSING flex"
3680 case " $build_configdirs " in
3681 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3682 esac
3684 for ac_prog in makeinfo
3686 # Extract the first word of "$ac_prog", so it can be a program name with args.
3687 set dummy $ac_prog; ac_word=$2
3688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3689 echo "configure:3690: checking for $ac_word" >&5
3690 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3692 else
3693 if test -n "$MAKEINFO"; then
3694 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3695 else
3696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3697 ac_dummy="$PATH"
3698 for ac_dir in $ac_dummy; do
3699 test -z "$ac_dir" && ac_dir=.
3700 if test -f $ac_dir/$ac_word; then
3701 ac_cv_prog_MAKEINFO="$ac_prog"
3702 break
3704 done
3705 IFS="$ac_save_ifs"
3708 MAKEINFO="$ac_cv_prog_MAKEINFO"
3709 if test -n "$MAKEINFO"; then
3710 echo "$ac_t""$MAKEINFO" 1>&6
3711 else
3712 echo "$ac_t""no" 1>&6
3715 test -n "$MAKEINFO" && break
3716 done
3717 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3719 case " $build_configdirs " in
3720 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3723 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3724 # higher, else we use the "missing" dummy.
3725 if ${MAKEINFO} --version \
3726 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3728 else
3729 MAKEINFO="$MISSING makeinfo"
3733 esac
3735 # FIXME: expect and dejagnu may become build tools?
3737 for ac_prog in expect
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy $ac_prog; ac_word=$2
3741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3742 echo "configure:3743: checking for $ac_word" >&5
3743 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3745 else
3746 if test -n "$EXPECT"; then
3747 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3748 else
3749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3750 ac_dummy="$PATH"
3751 for ac_dir in $ac_dummy; do
3752 test -z "$ac_dir" && ac_dir=.
3753 if test -f $ac_dir/$ac_word; then
3754 ac_cv_prog_EXPECT="$ac_prog"
3755 break
3757 done
3758 IFS="$ac_save_ifs"
3761 EXPECT="$ac_cv_prog_EXPECT"
3762 if test -n "$EXPECT"; then
3763 echo "$ac_t""$EXPECT" 1>&6
3764 else
3765 echo "$ac_t""no" 1>&6
3768 test -n "$EXPECT" && break
3769 done
3770 test -n "$EXPECT" || EXPECT="expect"
3772 case " $configdirs " in
3773 *" expect "*)
3774 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3776 esac
3778 for ac_prog in runtest
3780 # Extract the first word of "$ac_prog", so it can be a program name with args.
3781 set dummy $ac_prog; ac_word=$2
3782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3783 echo "configure:3784: checking for $ac_word" >&5
3784 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3786 else
3787 if test -n "$RUNTEST"; then
3788 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3789 else
3790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3791 ac_dummy="$PATH"
3792 for ac_dir in $ac_dummy; do
3793 test -z "$ac_dir" && ac_dir=.
3794 if test -f $ac_dir/$ac_word; then
3795 ac_cv_prog_RUNTEST="$ac_prog"
3796 break
3798 done
3799 IFS="$ac_save_ifs"
3802 RUNTEST="$ac_cv_prog_RUNTEST"
3803 if test -n "$RUNTEST"; then
3804 echo "$ac_t""$RUNTEST" 1>&6
3805 else
3806 echo "$ac_t""no" 1>&6
3809 test -n "$RUNTEST" && break
3810 done
3811 test -n "$RUNTEST" || RUNTEST="runtest"
3813 case " $configdirs " in
3814 *" dejagnu "*)
3815 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
3817 esac
3820 # Host tools.
3821 ncn_tool_prefix=
3822 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3823 ncn_target_tool_prefix=
3824 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3826 for ncn_progname in ar; do
3827 if test -n "$ncn_tool_prefix"; then
3828 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3829 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3831 echo "configure:3832: checking for $ac_word" >&5
3832 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3833 echo $ac_n "(cached) $ac_c" 1>&6
3834 else
3835 if test -n "$AR"; then
3836 ac_cv_prog_AR="$AR" # Let the user override the test.
3837 else
3838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3839 ac_dummy="$PATH"
3840 for ac_dir in $ac_dummy; do
3841 test -z "$ac_dir" && ac_dir=.
3842 if test -f $ac_dir/$ac_word; then
3843 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3844 break
3846 done
3847 IFS="$ac_save_ifs"
3850 AR="$ac_cv_prog_AR"
3851 if test -n "$AR"; then
3852 echo "$ac_t""$AR" 1>&6
3853 else
3854 echo "$ac_t""no" 1>&6
3858 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3860 set dummy ${ncn_progname}; ac_word=$2
3861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3862 echo "configure:3863: checking for $ac_word" >&5
3863 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3865 else
3866 if test -n "$AR"; then
3867 ac_cv_prog_AR="$AR" # Let the user override the test.
3868 else
3869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3870 ac_dummy="$PATH"
3871 for ac_dir in $ac_dummy; do
3872 test -z "$ac_dir" && ac_dir=.
3873 if test -f $ac_dir/$ac_word; then
3874 ac_cv_prog_AR="${ncn_progname}"
3875 break
3877 done
3878 IFS="$ac_save_ifs"
3881 AR="$ac_cv_prog_AR"
3882 if test -n "$AR"; then
3883 echo "$ac_t""$AR" 1>&6
3884 else
3885 echo "$ac_t""no" 1>&6
3889 test -n "$ac_cv_prog_AR" && break
3890 done
3892 if test -z "$ac_cv_prog_AR" ; then
3893 set dummy ar
3894 if test $build = $host ; then
3895 AR="$2"
3896 else
3897 AR="${ncn_tool_prefix}$2"
3901 for ncn_progname in as; do
3902 if test -n "$ncn_tool_prefix"; then
3903 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3904 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3906 echo "configure:3907: checking for $ac_word" >&5
3907 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3909 else
3910 if test -n "$AS"; then
3911 ac_cv_prog_AS="$AS" # Let the user override the test.
3912 else
3913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3914 ac_dummy="$PATH"
3915 for ac_dir in $ac_dummy; do
3916 test -z "$ac_dir" && ac_dir=.
3917 if test -f $ac_dir/$ac_word; then
3918 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3919 break
3921 done
3922 IFS="$ac_save_ifs"
3925 AS="$ac_cv_prog_AS"
3926 if test -n "$AS"; then
3927 echo "$ac_t""$AS" 1>&6
3928 else
3929 echo "$ac_t""no" 1>&6
3933 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3935 set dummy ${ncn_progname}; ac_word=$2
3936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3937 echo "configure:3938: checking for $ac_word" >&5
3938 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3940 else
3941 if test -n "$AS"; then
3942 ac_cv_prog_AS="$AS" # Let the user override the test.
3943 else
3944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3945 ac_dummy="$PATH"
3946 for ac_dir in $ac_dummy; do
3947 test -z "$ac_dir" && ac_dir=.
3948 if test -f $ac_dir/$ac_word; then
3949 ac_cv_prog_AS="${ncn_progname}"
3950 break
3952 done
3953 IFS="$ac_save_ifs"
3956 AS="$ac_cv_prog_AS"
3957 if test -n "$AS"; then
3958 echo "$ac_t""$AS" 1>&6
3959 else
3960 echo "$ac_t""no" 1>&6
3964 test -n "$ac_cv_prog_AS" && break
3965 done
3967 if test -z "$ac_cv_prog_AS" ; then
3968 set dummy as
3969 if test $build = $host ; then
3970 AS="$2"
3971 else
3972 AS="${ncn_tool_prefix}$2"
3976 for ncn_progname in dlltool; do
3977 if test -n "$ncn_tool_prefix"; then
3978 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3979 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3981 echo "configure:3982: checking for $ac_word" >&5
3982 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3984 else
3985 if test -n "$DLLTOOL"; then
3986 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3987 else
3988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3989 ac_dummy="$PATH"
3990 for ac_dir in $ac_dummy; do
3991 test -z "$ac_dir" && ac_dir=.
3992 if test -f $ac_dir/$ac_word; then
3993 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3994 break
3996 done
3997 IFS="$ac_save_ifs"
4000 DLLTOOL="$ac_cv_prog_DLLTOOL"
4001 if test -n "$DLLTOOL"; then
4002 echo "$ac_t""$DLLTOOL" 1>&6
4003 else
4004 echo "$ac_t""no" 1>&6
4008 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
4009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4010 set dummy ${ncn_progname}; ac_word=$2
4011 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4012 echo "configure:4013: checking for $ac_word" >&5
4013 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4014 echo $ac_n "(cached) $ac_c" 1>&6
4015 else
4016 if test -n "$DLLTOOL"; then
4017 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4018 else
4019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4020 ac_dummy="$PATH"
4021 for ac_dir in $ac_dummy; do
4022 test -z "$ac_dir" && ac_dir=.
4023 if test -f $ac_dir/$ac_word; then
4024 ac_cv_prog_DLLTOOL="${ncn_progname}"
4025 break
4027 done
4028 IFS="$ac_save_ifs"
4031 DLLTOOL="$ac_cv_prog_DLLTOOL"
4032 if test -n "$DLLTOOL"; then
4033 echo "$ac_t""$DLLTOOL" 1>&6
4034 else
4035 echo "$ac_t""no" 1>&6
4039 test -n "$ac_cv_prog_DLLTOOL" && break
4040 done
4042 if test -z "$ac_cv_prog_DLLTOOL" ; then
4043 set dummy dlltool
4044 if test $build = $host ; then
4045 DLLTOOL="$2"
4046 else
4047 DLLTOOL="${ncn_tool_prefix}$2"
4051 for ncn_progname in ld; do
4052 if test -n "$ncn_tool_prefix"; then
4053 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4054 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4056 echo "configure:4057: checking for $ac_word" >&5
4057 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4059 else
4060 if test -n "$LD"; then
4061 ac_cv_prog_LD="$LD" # Let the user override the test.
4062 else
4063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4064 ac_dummy="$PATH"
4065 for ac_dir in $ac_dummy; do
4066 test -z "$ac_dir" && ac_dir=.
4067 if test -f $ac_dir/$ac_word; then
4068 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4069 break
4071 done
4072 IFS="$ac_save_ifs"
4075 LD="$ac_cv_prog_LD"
4076 if test -n "$LD"; then
4077 echo "$ac_t""$LD" 1>&6
4078 else
4079 echo "$ac_t""no" 1>&6
4083 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4085 set dummy ${ncn_progname}; ac_word=$2
4086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4087 echo "configure:4088: checking for $ac_word" >&5
4088 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4090 else
4091 if test -n "$LD"; then
4092 ac_cv_prog_LD="$LD" # Let the user override the test.
4093 else
4094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4095 ac_dummy="$PATH"
4096 for ac_dir in $ac_dummy; do
4097 test -z "$ac_dir" && ac_dir=.
4098 if test -f $ac_dir/$ac_word; then
4099 ac_cv_prog_LD="${ncn_progname}"
4100 break
4102 done
4103 IFS="$ac_save_ifs"
4106 LD="$ac_cv_prog_LD"
4107 if test -n "$LD"; then
4108 echo "$ac_t""$LD" 1>&6
4109 else
4110 echo "$ac_t""no" 1>&6
4114 test -n "$ac_cv_prog_LD" && break
4115 done
4117 if test -z "$ac_cv_prog_LD" ; then
4118 set dummy ld
4119 if test $build = $host ; then
4120 LD="$2"
4121 else
4122 LD="${ncn_tool_prefix}$2"
4126 for ncn_progname in lipo; do
4127 if test -n "$ncn_tool_prefix"; then
4128 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4129 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4131 echo "configure:4132: checking for $ac_word" >&5
4132 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4134 else
4135 if test -n "$LIPO"; then
4136 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4137 else
4138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4139 ac_dummy="$PATH"
4140 for ac_dir in $ac_dummy; do
4141 test -z "$ac_dir" && ac_dir=.
4142 if test -f $ac_dir/$ac_word; then
4143 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4144 break
4146 done
4147 IFS="$ac_save_ifs"
4150 LIPO="$ac_cv_prog_LIPO"
4151 if test -n "$LIPO"; then
4152 echo "$ac_t""$LIPO" 1>&6
4153 else
4154 echo "$ac_t""no" 1>&6
4158 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4160 set dummy ${ncn_progname}; ac_word=$2
4161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4162 echo "configure:4163: checking for $ac_word" >&5
4163 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4164 echo $ac_n "(cached) $ac_c" 1>&6
4165 else
4166 if test -n "$LIPO"; then
4167 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4168 else
4169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4170 ac_dummy="$PATH"
4171 for ac_dir in $ac_dummy; do
4172 test -z "$ac_dir" && ac_dir=.
4173 if test -f $ac_dir/$ac_word; then
4174 ac_cv_prog_LIPO="${ncn_progname}"
4175 break
4177 done
4178 IFS="$ac_save_ifs"
4181 LIPO="$ac_cv_prog_LIPO"
4182 if test -n "$LIPO"; then
4183 echo "$ac_t""$LIPO" 1>&6
4184 else
4185 echo "$ac_t""no" 1>&6
4189 test -n "$ac_cv_prog_LIPO" && break
4190 done
4192 if test -z "$ac_cv_prog_LIPO" ; then
4193 set dummy lipo
4194 if test $build = $host ; then
4195 LIPO="$2"
4196 else
4197 LIPO="${ncn_tool_prefix}$2"
4201 for ncn_progname in nm; do
4202 if test -n "$ncn_tool_prefix"; then
4203 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4204 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4206 echo "configure:4207: checking for $ac_word" >&5
4207 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4208 echo $ac_n "(cached) $ac_c" 1>&6
4209 else
4210 if test -n "$NM"; then
4211 ac_cv_prog_NM="$NM" # Let the user override the test.
4212 else
4213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4214 ac_dummy="$PATH"
4215 for ac_dir in $ac_dummy; do
4216 test -z "$ac_dir" && ac_dir=.
4217 if test -f $ac_dir/$ac_word; then
4218 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4219 break
4221 done
4222 IFS="$ac_save_ifs"
4225 NM="$ac_cv_prog_NM"
4226 if test -n "$NM"; then
4227 echo "$ac_t""$NM" 1>&6
4228 else
4229 echo "$ac_t""no" 1>&6
4233 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4235 set dummy ${ncn_progname}; ac_word=$2
4236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4237 echo "configure:4238: checking for $ac_word" >&5
4238 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4240 else
4241 if test -n "$NM"; then
4242 ac_cv_prog_NM="$NM" # Let the user override the test.
4243 else
4244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4245 ac_dummy="$PATH"
4246 for ac_dir in $ac_dummy; do
4247 test -z "$ac_dir" && ac_dir=.
4248 if test -f $ac_dir/$ac_word; then
4249 ac_cv_prog_NM="${ncn_progname}"
4250 break
4252 done
4253 IFS="$ac_save_ifs"
4256 NM="$ac_cv_prog_NM"
4257 if test -n "$NM"; then
4258 echo "$ac_t""$NM" 1>&6
4259 else
4260 echo "$ac_t""no" 1>&6
4264 test -n "$ac_cv_prog_NM" && break
4265 done
4267 if test -z "$ac_cv_prog_NM" ; then
4268 set dummy nm
4269 if test $build = $host ; then
4270 NM="$2"
4271 else
4272 NM="${ncn_tool_prefix}$2"
4276 for ncn_progname in ranlib; do
4277 if test -n "$ncn_tool_prefix"; then
4278 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4279 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4281 echo "configure:4282: checking for $ac_word" >&5
4282 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4283 echo $ac_n "(cached) $ac_c" 1>&6
4284 else
4285 if test -n "$RANLIB"; then
4286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4287 else
4288 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4289 ac_dummy="$PATH"
4290 for ac_dir in $ac_dummy; do
4291 test -z "$ac_dir" && ac_dir=.
4292 if test -f $ac_dir/$ac_word; then
4293 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4294 break
4296 done
4297 IFS="$ac_save_ifs"
4300 RANLIB="$ac_cv_prog_RANLIB"
4301 if test -n "$RANLIB"; then
4302 echo "$ac_t""$RANLIB" 1>&6
4303 else
4304 echo "$ac_t""no" 1>&6
4308 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4310 set dummy ${ncn_progname}; ac_word=$2
4311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4312 echo "configure:4313: checking for $ac_word" >&5
4313 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4315 else
4316 if test -n "$RANLIB"; then
4317 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4318 else
4319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4320 ac_dummy="$PATH"
4321 for ac_dir in $ac_dummy; do
4322 test -z "$ac_dir" && ac_dir=.
4323 if test -f $ac_dir/$ac_word; then
4324 ac_cv_prog_RANLIB="${ncn_progname}"
4325 break
4327 done
4328 IFS="$ac_save_ifs"
4331 RANLIB="$ac_cv_prog_RANLIB"
4332 if test -n "$RANLIB"; then
4333 echo "$ac_t""$RANLIB" 1>&6
4334 else
4335 echo "$ac_t""no" 1>&6
4339 test -n "$ac_cv_prog_RANLIB" && break
4340 done
4342 if test -z "$ac_cv_prog_RANLIB" ; then
4343 RANLIB=":"
4346 for ncn_progname in strip; do
4347 if test -n "$ncn_tool_prefix"; then
4348 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4349 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4351 echo "configure:4352: checking for $ac_word" >&5
4352 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4353 echo $ac_n "(cached) $ac_c" 1>&6
4354 else
4355 if test -n "$STRIP"; then
4356 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4357 else
4358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4359 ac_dummy="$PATH"
4360 for ac_dir in $ac_dummy; do
4361 test -z "$ac_dir" && ac_dir=.
4362 if test -f $ac_dir/$ac_word; then
4363 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4364 break
4366 done
4367 IFS="$ac_save_ifs"
4370 STRIP="$ac_cv_prog_STRIP"
4371 if test -n "$STRIP"; then
4372 echo "$ac_t""$STRIP" 1>&6
4373 else
4374 echo "$ac_t""no" 1>&6
4378 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4380 set dummy ${ncn_progname}; ac_word=$2
4381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4382 echo "configure:4383: checking for $ac_word" >&5
4383 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4384 echo $ac_n "(cached) $ac_c" 1>&6
4385 else
4386 if test -n "$STRIP"; then
4387 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4388 else
4389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4390 ac_dummy="$PATH"
4391 for ac_dir in $ac_dummy; do
4392 test -z "$ac_dir" && ac_dir=.
4393 if test -f $ac_dir/$ac_word; then
4394 ac_cv_prog_STRIP="${ncn_progname}"
4395 break
4397 done
4398 IFS="$ac_save_ifs"
4401 STRIP="$ac_cv_prog_STRIP"
4402 if test -n "$STRIP"; then
4403 echo "$ac_t""$STRIP" 1>&6
4404 else
4405 echo "$ac_t""no" 1>&6
4409 test -n "$ac_cv_prog_STRIP" && break
4410 done
4412 if test -z "$ac_cv_prog_STRIP" ; then
4413 STRIP=":"
4416 for ncn_progname in windres; do
4417 if test -n "$ncn_tool_prefix"; then
4418 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4419 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4421 echo "configure:4422: checking for $ac_word" >&5
4422 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4424 else
4425 if test -n "$WINDRES"; then
4426 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4427 else
4428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4429 ac_dummy="$PATH"
4430 for ac_dir in $ac_dummy; do
4431 test -z "$ac_dir" && ac_dir=.
4432 if test -f $ac_dir/$ac_word; then
4433 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4434 break
4436 done
4437 IFS="$ac_save_ifs"
4440 WINDRES="$ac_cv_prog_WINDRES"
4441 if test -n "$WINDRES"; then
4442 echo "$ac_t""$WINDRES" 1>&6
4443 else
4444 echo "$ac_t""no" 1>&6
4448 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4450 set dummy ${ncn_progname}; ac_word=$2
4451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4452 echo "configure:4453: checking for $ac_word" >&5
4453 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4455 else
4456 if test -n "$WINDRES"; then
4457 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4458 else
4459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4460 ac_dummy="$PATH"
4461 for ac_dir in $ac_dummy; do
4462 test -z "$ac_dir" && ac_dir=.
4463 if test -f $ac_dir/$ac_word; then
4464 ac_cv_prog_WINDRES="${ncn_progname}"
4465 break
4467 done
4468 IFS="$ac_save_ifs"
4471 WINDRES="$ac_cv_prog_WINDRES"
4472 if test -n "$WINDRES"; then
4473 echo "$ac_t""$WINDRES" 1>&6
4474 else
4475 echo "$ac_t""no" 1>&6
4479 test -n "$ac_cv_prog_WINDRES" && break
4480 done
4482 if test -z "$ac_cv_prog_WINDRES" ; then
4483 set dummy windres
4484 if test $build = $host ; then
4485 WINDRES="$2"
4486 else
4487 WINDRES="${ncn_tool_prefix}$2"
4491 for ncn_progname in objcopy; do
4492 if test -n "$ncn_tool_prefix"; then
4493 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4494 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4496 echo "configure:4497: checking for $ac_word" >&5
4497 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4499 else
4500 if test -n "$OBJCOPY"; then
4501 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4502 else
4503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4504 ac_dummy="$PATH"
4505 for ac_dir in $ac_dummy; do
4506 test -z "$ac_dir" && ac_dir=.
4507 if test -f $ac_dir/$ac_word; then
4508 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4509 break
4511 done
4512 IFS="$ac_save_ifs"
4515 OBJCOPY="$ac_cv_prog_OBJCOPY"
4516 if test -n "$OBJCOPY"; then
4517 echo "$ac_t""$OBJCOPY" 1>&6
4518 else
4519 echo "$ac_t""no" 1>&6
4523 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4525 set dummy ${ncn_progname}; ac_word=$2
4526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4527 echo "configure:4528: checking for $ac_word" >&5
4528 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4530 else
4531 if test -n "$OBJCOPY"; then
4532 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4533 else
4534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4535 ac_dummy="$PATH"
4536 for ac_dir in $ac_dummy; do
4537 test -z "$ac_dir" && ac_dir=.
4538 if test -f $ac_dir/$ac_word; then
4539 ac_cv_prog_OBJCOPY="${ncn_progname}"
4540 break
4542 done
4543 IFS="$ac_save_ifs"
4546 OBJCOPY="$ac_cv_prog_OBJCOPY"
4547 if test -n "$OBJCOPY"; then
4548 echo "$ac_t""$OBJCOPY" 1>&6
4549 else
4550 echo "$ac_t""no" 1>&6
4554 test -n "$ac_cv_prog_OBJCOPY" && break
4555 done
4557 if test -z "$ac_cv_prog_OBJCOPY" ; then
4558 set dummy objcopy
4559 if test $build = $host ; then
4560 OBJCOPY="$2"
4561 else
4562 OBJCOPY="${ncn_tool_prefix}$2"
4566 for ncn_progname in objdump; do
4567 if test -n "$ncn_tool_prefix"; then
4568 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4569 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4571 echo "configure:4572: checking for $ac_word" >&5
4572 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4574 else
4575 if test -n "$OBJDUMP"; then
4576 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4577 else
4578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4579 ac_dummy="$PATH"
4580 for ac_dir in $ac_dummy; do
4581 test -z "$ac_dir" && ac_dir=.
4582 if test -f $ac_dir/$ac_word; then
4583 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4584 break
4586 done
4587 IFS="$ac_save_ifs"
4590 OBJDUMP="$ac_cv_prog_OBJDUMP"
4591 if test -n "$OBJDUMP"; then
4592 echo "$ac_t""$OBJDUMP" 1>&6
4593 else
4594 echo "$ac_t""no" 1>&6
4598 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4600 set dummy ${ncn_progname}; ac_word=$2
4601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4602 echo "configure:4603: checking for $ac_word" >&5
4603 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4605 else
4606 if test -n "$OBJDUMP"; then
4607 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4608 else
4609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4610 ac_dummy="$PATH"
4611 for ac_dir in $ac_dummy; do
4612 test -z "$ac_dir" && ac_dir=.
4613 if test -f $ac_dir/$ac_word; then
4614 ac_cv_prog_OBJDUMP="${ncn_progname}"
4615 break
4617 done
4618 IFS="$ac_save_ifs"
4621 OBJDUMP="$ac_cv_prog_OBJDUMP"
4622 if test -n "$OBJDUMP"; then
4623 echo "$ac_t""$OBJDUMP" 1>&6
4624 else
4625 echo "$ac_t""no" 1>&6
4629 test -n "$ac_cv_prog_OBJDUMP" && break
4630 done
4632 if test -z "$ac_cv_prog_OBJDUMP" ; then
4633 set dummy objdump
4634 if test $build = $host ; then
4635 OBJDUMP="$2"
4636 else
4637 OBJDUMP="${ncn_tool_prefix}$2"
4647 # Target tools.
4648 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4649 if test "${with_build_time_tools+set}" = set; then
4650 withval="$with_build_time_tools"
4651 case x"$withval" in
4652 x/*) ;;
4654 with_build_time_tools=
4655 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4657 esac
4658 else
4659 with_build_time_tools=
4663 if test -n "$with_build_time_tools"; then
4664 for ncn_progname in cc gcc; do
4665 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4666 echo "configure:4667: checking for ${ncn_progname} in $with_build_time_tools" >&5
4667 if test -x $with_build_time_tools/${ncn_progname}; then
4668 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4669 echo "$ac_t""yes" 1>&6
4670 break
4671 else
4672 echo "$ac_t""no" 1>&6
4674 done
4677 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4678 for ncn_progname in cc gcc; do
4679 if test -n "$ncn_target_tool_prefix"; then
4680 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4681 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4683 echo "configure:4684: checking for $ac_word" >&5
4684 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4686 else
4687 if test -n "$CC_FOR_TARGET"; then
4688 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4689 else
4690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4691 ac_dummy="$PATH"
4692 for ac_dir in $ac_dummy; do
4693 test -z "$ac_dir" && ac_dir=.
4694 if test -f $ac_dir/$ac_word; then
4695 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4696 break
4698 done
4699 IFS="$ac_save_ifs"
4702 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4703 if test -n "$CC_FOR_TARGET"; then
4704 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4705 else
4706 echo "$ac_t""no" 1>&6
4710 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4712 set dummy ${ncn_progname}; ac_word=$2
4713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4714 echo "configure:4715: checking for $ac_word" >&5
4715 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4717 else
4718 if test -n "$CC_FOR_TARGET"; then
4719 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4720 else
4721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4722 ac_dummy="$PATH"
4723 for ac_dir in $ac_dummy; do
4724 test -z "$ac_dir" && ac_dir=.
4725 if test -f $ac_dir/$ac_word; then
4726 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4727 break
4729 done
4730 IFS="$ac_save_ifs"
4733 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4734 if test -n "$CC_FOR_TARGET"; then
4735 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4736 else
4737 echo "$ac_t""no" 1>&6
4741 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4742 done
4745 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4746 set dummy cc gcc
4747 if test $build = $target ; then
4748 CC_FOR_TARGET="$2"
4749 else
4750 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4754 if test -n "$with_build_time_tools"; then
4755 for ncn_progname in c++ g++ cxx gxx; do
4756 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4757 echo "configure:4758: checking for ${ncn_progname} in $with_build_time_tools" >&5
4758 if test -x $with_build_time_tools/${ncn_progname}; then
4759 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4760 echo "$ac_t""yes" 1>&6
4761 break
4762 else
4763 echo "$ac_t""no" 1>&6
4765 done
4768 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4769 for ncn_progname in c++ g++ cxx gxx; do
4770 if test -n "$ncn_target_tool_prefix"; then
4771 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4772 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4774 echo "configure:4775: checking for $ac_word" >&5
4775 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4777 else
4778 if test -n "$CXX_FOR_TARGET"; then
4779 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4780 else
4781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4782 ac_dummy="$PATH"
4783 for ac_dir in $ac_dummy; do
4784 test -z "$ac_dir" && ac_dir=.
4785 if test -f $ac_dir/$ac_word; then
4786 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4787 break
4789 done
4790 IFS="$ac_save_ifs"
4793 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4794 if test -n "$CXX_FOR_TARGET"; then
4795 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4796 else
4797 echo "$ac_t""no" 1>&6
4801 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4803 set dummy ${ncn_progname}; ac_word=$2
4804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4805 echo "configure:4806: checking for $ac_word" >&5
4806 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4807 echo $ac_n "(cached) $ac_c" 1>&6
4808 else
4809 if test -n "$CXX_FOR_TARGET"; then
4810 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4811 else
4812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4813 ac_dummy="$PATH"
4814 for ac_dir in $ac_dummy; do
4815 test -z "$ac_dir" && ac_dir=.
4816 if test -f $ac_dir/$ac_word; then
4817 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4818 break
4820 done
4821 IFS="$ac_save_ifs"
4824 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4825 if test -n "$CXX_FOR_TARGET"; then
4826 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4827 else
4828 echo "$ac_t""no" 1>&6
4832 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4833 done
4836 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4837 set dummy c++ g++ cxx gxx
4838 if test $build = $target ; then
4839 CXX_FOR_TARGET="$2"
4840 else
4841 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4845 if test -n "$with_build_time_tools"; then
4846 for ncn_progname in gcc; do
4847 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4848 echo "configure:4849: checking for ${ncn_progname} in $with_build_time_tools" >&5
4849 if test -x $with_build_time_tools/${ncn_progname}; then
4850 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4851 echo "$ac_t""yes" 1>&6
4852 break
4853 else
4854 echo "$ac_t""no" 1>&6
4856 done
4859 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4860 for ncn_progname in gcc; do
4861 if test -n "$ncn_target_tool_prefix"; then
4862 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4863 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4865 echo "configure:4866: checking for $ac_word" >&5
4866 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4868 else
4869 if test -n "$GCC_FOR_TARGET"; then
4870 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4871 else
4872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4873 ac_dummy="$PATH"
4874 for ac_dir in $ac_dummy; do
4875 test -z "$ac_dir" && ac_dir=.
4876 if test -f $ac_dir/$ac_word; then
4877 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4878 break
4880 done
4881 IFS="$ac_save_ifs"
4884 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4885 if test -n "$GCC_FOR_TARGET"; then
4886 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4887 else
4888 echo "$ac_t""no" 1>&6
4892 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4894 set dummy ${ncn_progname}; ac_word=$2
4895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4896 echo "configure:4897: checking for $ac_word" >&5
4897 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4898 echo $ac_n "(cached) $ac_c" 1>&6
4899 else
4900 if test -n "$GCC_FOR_TARGET"; then
4901 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4902 else
4903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4904 ac_dummy="$PATH"
4905 for ac_dir in $ac_dummy; do
4906 test -z "$ac_dir" && ac_dir=.
4907 if test -f $ac_dir/$ac_word; then
4908 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4909 break
4911 done
4912 IFS="$ac_save_ifs"
4915 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4916 if test -n "$GCC_FOR_TARGET"; then
4917 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4918 else
4919 echo "$ac_t""no" 1>&6
4923 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4924 done
4927 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4928 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4931 if test -n "$with_build_time_tools"; then
4932 for ncn_progname in gcj; do
4933 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4934 echo "configure:4935: checking for ${ncn_progname} in $with_build_time_tools" >&5
4935 if test -x $with_build_time_tools/${ncn_progname}; then
4936 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4937 echo "$ac_t""yes" 1>&6
4938 break
4939 else
4940 echo "$ac_t""no" 1>&6
4942 done
4945 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4946 for ncn_progname in gcj; do
4947 if test -n "$ncn_target_tool_prefix"; then
4948 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4949 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4951 echo "configure:4952: checking for $ac_word" >&5
4952 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4954 else
4955 if test -n "$GCJ_FOR_TARGET"; then
4956 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4957 else
4958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4959 ac_dummy="$PATH"
4960 for ac_dir in $ac_dummy; do
4961 test -z "$ac_dir" && ac_dir=.
4962 if test -f $ac_dir/$ac_word; then
4963 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4964 break
4966 done
4967 IFS="$ac_save_ifs"
4970 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4971 if test -n "$GCJ_FOR_TARGET"; then
4972 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4973 else
4974 echo "$ac_t""no" 1>&6
4978 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4980 set dummy ${ncn_progname}; ac_word=$2
4981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4982 echo "configure:4983: checking for $ac_word" >&5
4983 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4984 echo $ac_n "(cached) $ac_c" 1>&6
4985 else
4986 if test -n "$GCJ_FOR_TARGET"; then
4987 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4988 else
4989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4990 ac_dummy="$PATH"
4991 for ac_dir in $ac_dummy; do
4992 test -z "$ac_dir" && ac_dir=.
4993 if test -f $ac_dir/$ac_word; then
4994 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4995 break
4997 done
4998 IFS="$ac_save_ifs"
5001 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5002 if test -n "$GCJ_FOR_TARGET"; then
5003 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
5004 else
5005 echo "$ac_t""no" 1>&6
5009 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
5010 done
5013 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
5014 set dummy gcj
5015 if test $build = $target ; then
5016 GCJ_FOR_TARGET="$2"
5017 else
5018 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
5022 if test -n "$with_build_time_tools"; then
5023 for ncn_progname in gfortran; do
5024 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5025 echo "configure:5026: checking for ${ncn_progname} in $with_build_time_tools" >&5
5026 if test -x $with_build_time_tools/${ncn_progname}; then
5027 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5028 echo "$ac_t""yes" 1>&6
5029 break
5030 else
5031 echo "$ac_t""no" 1>&6
5033 done
5036 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
5037 for ncn_progname in gfortran; do
5038 if test -n "$ncn_target_tool_prefix"; then
5039 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5040 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5042 echo "configure:5043: checking for $ac_word" >&5
5043 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5044 echo $ac_n "(cached) $ac_c" 1>&6
5045 else
5046 if test -n "$GFORTRAN_FOR_TARGET"; then
5047 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5048 else
5049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5050 ac_dummy="$PATH"
5051 for ac_dir in $ac_dummy; do
5052 test -z "$ac_dir" && ac_dir=.
5053 if test -f $ac_dir/$ac_word; then
5054 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5055 break
5057 done
5058 IFS="$ac_save_ifs"
5061 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5062 if test -n "$GFORTRAN_FOR_TARGET"; then
5063 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5064 else
5065 echo "$ac_t""no" 1>&6
5069 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5071 set dummy ${ncn_progname}; ac_word=$2
5072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5073 echo "configure:5074: checking for $ac_word" >&5
5074 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5075 echo $ac_n "(cached) $ac_c" 1>&6
5076 else
5077 if test -n "$GFORTRAN_FOR_TARGET"; then
5078 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5079 else
5080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5081 ac_dummy="$PATH"
5082 for ac_dir in $ac_dummy; do
5083 test -z "$ac_dir" && ac_dir=.
5084 if test -f $ac_dir/$ac_word; then
5085 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5086 break
5088 done
5089 IFS="$ac_save_ifs"
5092 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5093 if test -n "$GFORTRAN_FOR_TARGET"; then
5094 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5095 else
5096 echo "$ac_t""no" 1>&6
5100 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5101 done
5104 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5105 set dummy gfortran
5106 if test $build = $target ; then
5107 GFORTRAN_FOR_TARGET="$2"
5108 else
5109 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5115 # The user is always right.
5116 if test "${PATH_SEPARATOR+set}" != set; then
5117 echo "#! /bin/sh" >conf$$.sh
5118 echo "exit 0" >>conf$$.sh
5119 chmod +x conf$$.sh
5120 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5121 PATH_SEPARATOR=';'
5122 else
5123 PATH_SEPARATOR=:
5125 rm -f conf$$.sh
5130 if test "x$exec_prefix" = xNONE; then
5131 if test "x$prefix" = xNONE; then
5132 gcc_cv_tool_prefix=$ac_default_prefix
5133 else
5134 gcc_cv_tool_prefix=$prefix
5136 else
5137 gcc_cv_tool_prefix=$exec_prefix
5140 # If there is no compiler in the tree, use the PATH only. In any
5141 # case, if there is no compiler in the tree nobody should use
5142 # AS_FOR_TARGET and LD_FOR_TARGET.
5143 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5144 gcc_version=`cat $srcdir/gcc/BASE-VER`
5145 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5146 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5147 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5148 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5149 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5150 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5151 else
5152 gcc_cv_tool_dirs=
5155 if test x$build = x$target && test -n "$md_exec_prefix"; then
5156 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5161 cat > conftest.c << \EOF
5162 #ifdef __GNUC__
5163 gcc_yay;
5164 #endif
5166 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5167 have_gcc_for_target=yes
5168 else
5169 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5170 have_gcc_for_target=no
5172 rm conftest.c
5177 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5178 if test -n "$with_build_time_tools"; then
5179 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5180 echo "configure:5181: checking for ar in $with_build_time_tools" >&5
5181 if test -x $with_build_time_tools/ar; then
5182 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
5183 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5184 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5185 else
5186 echo "$ac_t""no" 1>&6
5188 elif test $build != $host && test $have_gcc_for_target = yes; then
5189 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5190 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5191 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5194 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5195 # Extract the first word of "ar", so it can be a program name with args.
5196 set dummy ar; ac_word=$2
5197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5198 echo "configure:5199: checking for $ac_word" >&5
5199 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5201 else
5202 case "$AR_FOR_TARGET" in
5204 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5206 ?:/*)
5207 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5211 ac_dummy="$gcc_cv_tool_dirs"
5212 for ac_dir in $ac_dummy; do
5213 test -z "$ac_dir" && ac_dir=.
5214 if test -f $ac_dir/$ac_word; then
5215 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
5216 break
5218 done
5219 IFS="$ac_save_ifs"
5221 esac
5223 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5224 if test -n "$AR_FOR_TARGET"; then
5225 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5226 else
5227 echo "$ac_t""no" 1>&6
5231 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5232 if test -n "$with_build_time_tools"; then
5233 for ncn_progname in ar; do
5234 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5235 echo "configure:5236: checking for ${ncn_progname} in $with_build_time_tools" >&5
5236 if test -x $with_build_time_tools/${ncn_progname}; then
5237 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5238 echo "$ac_t""yes" 1>&6
5239 break
5240 else
5241 echo "$ac_t""no" 1>&6
5243 done
5246 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5247 for ncn_progname in ar; do
5248 if test -n "$ncn_target_tool_prefix"; then
5249 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5250 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5252 echo "configure:5253: checking for $ac_word" >&5
5253 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6
5255 else
5256 if test -n "$AR_FOR_TARGET"; then
5257 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5258 else
5259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5260 ac_dummy="$PATH"
5261 for ac_dir in $ac_dummy; do
5262 test -z "$ac_dir" && ac_dir=.
5263 if test -f $ac_dir/$ac_word; then
5264 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5265 break
5267 done
5268 IFS="$ac_save_ifs"
5271 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5272 if test -n "$AR_FOR_TARGET"; then
5273 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5274 else
5275 echo "$ac_t""no" 1>&6
5279 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5281 set dummy ${ncn_progname}; ac_word=$2
5282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5283 echo "configure:5284: checking for $ac_word" >&5
5284 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5286 else
5287 if test -n "$AR_FOR_TARGET"; then
5288 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5289 else
5290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5291 ac_dummy="$PATH"
5292 for ac_dir in $ac_dummy; do
5293 test -z "$ac_dir" && ac_dir=.
5294 if test -f $ac_dir/$ac_word; then
5295 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5296 break
5298 done
5299 IFS="$ac_save_ifs"
5302 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5303 if test -n "$AR_FOR_TARGET"; then
5304 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5305 else
5306 echo "$ac_t""no" 1>&6
5310 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5311 done
5314 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5315 set dummy ar
5316 if test $build = $target ; then
5317 AR_FOR_TARGET="$2"
5318 else
5319 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
5323 else
5324 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5330 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5331 if test -n "$with_build_time_tools"; then
5332 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5333 echo "configure:5334: checking for as in $with_build_time_tools" >&5
5334 if test -x $with_build_time_tools/as; then
5335 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
5336 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5337 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5338 else
5339 echo "$ac_t""no" 1>&6
5341 elif test $build != $host && test $have_gcc_for_target = yes; then
5342 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5343 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5344 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5347 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5348 # Extract the first word of "as", so it can be a program name with args.
5349 set dummy as; ac_word=$2
5350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5351 echo "configure:5352: checking for $ac_word" >&5
5352 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5353 echo $ac_n "(cached) $ac_c" 1>&6
5354 else
5355 case "$AS_FOR_TARGET" in
5357 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5359 ?:/*)
5360 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5363 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5364 ac_dummy="$gcc_cv_tool_dirs"
5365 for ac_dir in $ac_dummy; do
5366 test -z "$ac_dir" && ac_dir=.
5367 if test -f $ac_dir/$ac_word; then
5368 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5369 break
5371 done
5372 IFS="$ac_save_ifs"
5374 esac
5376 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5377 if test -n "$AS_FOR_TARGET"; then
5378 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5379 else
5380 echo "$ac_t""no" 1>&6
5384 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5385 if test -n "$with_build_time_tools"; then
5386 for ncn_progname in as; do
5387 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5388 echo "configure:5389: checking for ${ncn_progname} in $with_build_time_tools" >&5
5389 if test -x $with_build_time_tools/${ncn_progname}; then
5390 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5391 echo "$ac_t""yes" 1>&6
5392 break
5393 else
5394 echo "$ac_t""no" 1>&6
5396 done
5399 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5400 for ncn_progname in as; do
5401 if test -n "$ncn_target_tool_prefix"; then
5402 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5403 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5405 echo "configure:5406: checking for $ac_word" >&5
5406 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5407 echo $ac_n "(cached) $ac_c" 1>&6
5408 else
5409 if test -n "$AS_FOR_TARGET"; then
5410 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5411 else
5412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5413 ac_dummy="$PATH"
5414 for ac_dir in $ac_dummy; do
5415 test -z "$ac_dir" && ac_dir=.
5416 if test -f $ac_dir/$ac_word; then
5417 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5418 break
5420 done
5421 IFS="$ac_save_ifs"
5424 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5425 if test -n "$AS_FOR_TARGET"; then
5426 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5427 else
5428 echo "$ac_t""no" 1>&6
5432 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5434 set dummy ${ncn_progname}; ac_word=$2
5435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5436 echo "configure:5437: checking for $ac_word" >&5
5437 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5438 echo $ac_n "(cached) $ac_c" 1>&6
5439 else
5440 if test -n "$AS_FOR_TARGET"; then
5441 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5442 else
5443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5444 ac_dummy="$PATH"
5445 for ac_dir in $ac_dummy; do
5446 test -z "$ac_dir" && ac_dir=.
5447 if test -f $ac_dir/$ac_word; then
5448 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5449 break
5451 done
5452 IFS="$ac_save_ifs"
5455 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5456 if test -n "$AS_FOR_TARGET"; then
5457 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5458 else
5459 echo "$ac_t""no" 1>&6
5463 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5464 done
5467 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5468 set dummy as
5469 if test $build = $target ; then
5470 AS_FOR_TARGET="$2"
5471 else
5472 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5476 else
5477 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5483 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5484 if test -n "$with_build_time_tools"; then
5485 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5486 echo "configure:5487: checking for dlltool in $with_build_time_tools" >&5
5487 if test -x $with_build_time_tools/dlltool; then
5488 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
5489 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5490 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5491 else
5492 echo "$ac_t""no" 1>&6
5494 elif test $build != $host && test $have_gcc_for_target = yes; then
5495 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5496 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5497 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5500 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5501 # Extract the first word of "dlltool", so it can be a program name with args.
5502 set dummy dlltool; ac_word=$2
5503 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5504 echo "configure:5505: checking for $ac_word" >&5
5505 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5506 echo $ac_n "(cached) $ac_c" 1>&6
5507 else
5508 case "$DLLTOOL_FOR_TARGET" in
5510 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5512 ?:/*)
5513 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5517 ac_dummy="$gcc_cv_tool_dirs"
5518 for ac_dir in $ac_dummy; do
5519 test -z "$ac_dir" && ac_dir=.
5520 if test -f $ac_dir/$ac_word; then
5521 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5522 break
5524 done
5525 IFS="$ac_save_ifs"
5527 esac
5529 DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5530 if test -n "$DLLTOOL_FOR_TARGET"; then
5531 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5532 else
5533 echo "$ac_t""no" 1>&6
5537 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5538 if test -n "$with_build_time_tools"; then
5539 for ncn_progname in dlltool; do
5540 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5541 echo "configure:5542: checking for ${ncn_progname} in $with_build_time_tools" >&5
5542 if test -x $with_build_time_tools/${ncn_progname}; then
5543 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5544 echo "$ac_t""yes" 1>&6
5545 break
5546 else
5547 echo "$ac_t""no" 1>&6
5549 done
5552 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5553 for ncn_progname in dlltool; do
5554 if test -n "$ncn_target_tool_prefix"; then
5555 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5556 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5558 echo "configure:5559: checking for $ac_word" >&5
5559 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5561 else
5562 if test -n "$DLLTOOL_FOR_TARGET"; then
5563 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5564 else
5565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5566 ac_dummy="$PATH"
5567 for ac_dir in $ac_dummy; do
5568 test -z "$ac_dir" && ac_dir=.
5569 if test -f $ac_dir/$ac_word; then
5570 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5571 break
5573 done
5574 IFS="$ac_save_ifs"
5577 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5578 if test -n "$DLLTOOL_FOR_TARGET"; then
5579 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5580 else
5581 echo "$ac_t""no" 1>&6
5585 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5587 set dummy ${ncn_progname}; ac_word=$2
5588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5589 echo "configure:5590: checking for $ac_word" >&5
5590 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5591 echo $ac_n "(cached) $ac_c" 1>&6
5592 else
5593 if test -n "$DLLTOOL_FOR_TARGET"; then
5594 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5595 else
5596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5597 ac_dummy="$PATH"
5598 for ac_dir in $ac_dummy; do
5599 test -z "$ac_dir" && ac_dir=.
5600 if test -f $ac_dir/$ac_word; then
5601 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5602 break
5604 done
5605 IFS="$ac_save_ifs"
5608 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5609 if test -n "$DLLTOOL_FOR_TARGET"; then
5610 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5611 else
5612 echo "$ac_t""no" 1>&6
5616 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5617 done
5620 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5621 set dummy dlltool
5622 if test $build = $target ; then
5623 DLLTOOL_FOR_TARGET="$2"
5624 else
5625 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5629 else
5630 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5636 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5637 if test -n "$with_build_time_tools"; then
5638 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5639 echo "configure:5640: checking for ld in $with_build_time_tools" >&5
5640 if test -x $with_build_time_tools/ld; then
5641 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
5642 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5643 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5644 else
5645 echo "$ac_t""no" 1>&6
5647 elif test $build != $host && test $have_gcc_for_target = yes; then
5648 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5649 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5650 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5653 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5654 # Extract the first word of "ld", so it can be a program name with args.
5655 set dummy ld; ac_word=$2
5656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5657 echo "configure:5658: checking for $ac_word" >&5
5658 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5659 echo $ac_n "(cached) $ac_c" 1>&6
5660 else
5661 case "$LD_FOR_TARGET" in
5663 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5665 ?:/*)
5666 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5670 ac_dummy="$gcc_cv_tool_dirs"
5671 for ac_dir in $ac_dummy; do
5672 test -z "$ac_dir" && ac_dir=.
5673 if test -f $ac_dir/$ac_word; then
5674 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5675 break
5677 done
5678 IFS="$ac_save_ifs"
5680 esac
5682 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5683 if test -n "$LD_FOR_TARGET"; then
5684 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5685 else
5686 echo "$ac_t""no" 1>&6
5690 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5691 if test -n "$with_build_time_tools"; then
5692 for ncn_progname in ld; do
5693 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5694 echo "configure:5695: checking for ${ncn_progname} in $with_build_time_tools" >&5
5695 if test -x $with_build_time_tools/${ncn_progname}; then
5696 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5697 echo "$ac_t""yes" 1>&6
5698 break
5699 else
5700 echo "$ac_t""no" 1>&6
5702 done
5705 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5706 for ncn_progname in ld; do
5707 if test -n "$ncn_target_tool_prefix"; then
5708 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5709 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5711 echo "configure:5712: checking for $ac_word" >&5
5712 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5713 echo $ac_n "(cached) $ac_c" 1>&6
5714 else
5715 if test -n "$LD_FOR_TARGET"; then
5716 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5717 else
5718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5719 ac_dummy="$PATH"
5720 for ac_dir in $ac_dummy; do
5721 test -z "$ac_dir" && ac_dir=.
5722 if test -f $ac_dir/$ac_word; then
5723 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5724 break
5726 done
5727 IFS="$ac_save_ifs"
5730 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5731 if test -n "$LD_FOR_TARGET"; then
5732 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5733 else
5734 echo "$ac_t""no" 1>&6
5738 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5740 set dummy ${ncn_progname}; ac_word=$2
5741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5742 echo "configure:5743: checking for $ac_word" >&5
5743 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5744 echo $ac_n "(cached) $ac_c" 1>&6
5745 else
5746 if test -n "$LD_FOR_TARGET"; then
5747 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5748 else
5749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5750 ac_dummy="$PATH"
5751 for ac_dir in $ac_dummy; do
5752 test -z "$ac_dir" && ac_dir=.
5753 if test -f $ac_dir/$ac_word; then
5754 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5755 break
5757 done
5758 IFS="$ac_save_ifs"
5761 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5762 if test -n "$LD_FOR_TARGET"; then
5763 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5764 else
5765 echo "$ac_t""no" 1>&6
5769 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5770 done
5773 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5774 set dummy ld
5775 if test $build = $target ; then
5776 LD_FOR_TARGET="$2"
5777 else
5778 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5782 else
5783 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5789 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5790 if test -n "$with_build_time_tools"; then
5791 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5792 echo "configure:5793: checking for lipo in $with_build_time_tools" >&5
5793 if test -x $with_build_time_tools/lipo; then
5794 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
5795 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5796 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5797 else
5798 echo "$ac_t""no" 1>&6
5800 elif test $build != $host && test $have_gcc_for_target = yes; then
5801 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5802 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5803 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5806 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5807 # Extract the first word of "lipo", so it can be a program name with args.
5808 set dummy lipo; ac_word=$2
5809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5810 echo "configure:5811: checking for $ac_word" >&5
5811 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5812 echo $ac_n "(cached) $ac_c" 1>&6
5813 else
5814 case "$LIPO_FOR_TARGET" in
5816 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5818 ?:/*)
5819 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5823 ac_dummy="$gcc_cv_tool_dirs"
5824 for ac_dir in $ac_dummy; do
5825 test -z "$ac_dir" && ac_dir=.
5826 if test -f $ac_dir/$ac_word; then
5827 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5828 break
5830 done
5831 IFS="$ac_save_ifs"
5833 esac
5835 LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5836 if test -n "$LIPO_FOR_TARGET"; then
5837 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5838 else
5839 echo "$ac_t""no" 1>&6
5843 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5844 if test -n "$with_build_time_tools"; then
5845 for ncn_progname in lipo; do
5846 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5847 echo "configure:5848: checking for ${ncn_progname} in $with_build_time_tools" >&5
5848 if test -x $with_build_time_tools/${ncn_progname}; then
5849 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5850 echo "$ac_t""yes" 1>&6
5851 break
5852 else
5853 echo "$ac_t""no" 1>&6
5855 done
5858 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5859 for ncn_progname in lipo; do
5860 if test -n "$ncn_target_tool_prefix"; then
5861 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5862 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5864 echo "configure:5865: checking for $ac_word" >&5
5865 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5866 echo $ac_n "(cached) $ac_c" 1>&6
5867 else
5868 if test -n "$LIPO_FOR_TARGET"; then
5869 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5870 else
5871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5872 ac_dummy="$PATH"
5873 for ac_dir in $ac_dummy; do
5874 test -z "$ac_dir" && ac_dir=.
5875 if test -f $ac_dir/$ac_word; then
5876 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5877 break
5879 done
5880 IFS="$ac_save_ifs"
5883 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5884 if test -n "$LIPO_FOR_TARGET"; then
5885 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5886 else
5887 echo "$ac_t""no" 1>&6
5891 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5893 set dummy ${ncn_progname}; ac_word=$2
5894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5895 echo "configure:5896: checking for $ac_word" >&5
5896 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5897 echo $ac_n "(cached) $ac_c" 1>&6
5898 else
5899 if test -n "$LIPO_FOR_TARGET"; then
5900 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5901 else
5902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5903 ac_dummy="$PATH"
5904 for ac_dir in $ac_dummy; do
5905 test -z "$ac_dir" && ac_dir=.
5906 if test -f $ac_dir/$ac_word; then
5907 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5908 break
5910 done
5911 IFS="$ac_save_ifs"
5914 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5915 if test -n "$LIPO_FOR_TARGET"; then
5916 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5917 else
5918 echo "$ac_t""no" 1>&6
5922 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5923 done
5926 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5927 set dummy lipo
5928 if test $build = $target ; then
5929 LIPO_FOR_TARGET="$2"
5930 else
5931 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5935 else
5936 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
5942 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5943 if test -n "$with_build_time_tools"; then
5944 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5945 echo "configure:5946: checking for nm in $with_build_time_tools" >&5
5946 if test -x $with_build_time_tools/nm; then
5947 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
5948 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5949 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5950 else
5951 echo "$ac_t""no" 1>&6
5953 elif test $build != $host && test $have_gcc_for_target = yes; then
5954 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
5955 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
5956 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5959 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5960 # Extract the first word of "nm", so it can be a program name with args.
5961 set dummy nm; ac_word=$2
5962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5963 echo "configure:5964: checking for $ac_word" >&5
5964 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5965 echo $ac_n "(cached) $ac_c" 1>&6
5966 else
5967 case "$NM_FOR_TARGET" in
5969 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
5971 ?:/*)
5972 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5976 ac_dummy="$gcc_cv_tool_dirs"
5977 for ac_dir in $ac_dummy; do
5978 test -z "$ac_dir" && ac_dir=.
5979 if test -f $ac_dir/$ac_word; then
5980 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
5981 break
5983 done
5984 IFS="$ac_save_ifs"
5986 esac
5988 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
5989 if test -n "$NM_FOR_TARGET"; then
5990 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5991 else
5992 echo "$ac_t""no" 1>&6
5996 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5997 if test -n "$with_build_time_tools"; then
5998 for ncn_progname in nm; do
5999 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6000 echo "configure:6001: checking for ${ncn_progname} in $with_build_time_tools" >&5
6001 if test -x $with_build_time_tools/${ncn_progname}; then
6002 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6003 echo "$ac_t""yes" 1>&6
6004 break
6005 else
6006 echo "$ac_t""no" 1>&6
6008 done
6011 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
6012 for ncn_progname in nm; do
6013 if test -n "$ncn_target_tool_prefix"; then
6014 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6015 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6017 echo "configure:6018: checking for $ac_word" >&5
6018 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6019 echo $ac_n "(cached) $ac_c" 1>&6
6020 else
6021 if test -n "$NM_FOR_TARGET"; then
6022 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6023 else
6024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6025 ac_dummy="$PATH"
6026 for ac_dir in $ac_dummy; do
6027 test -z "$ac_dir" && ac_dir=.
6028 if test -f $ac_dir/$ac_word; then
6029 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6030 break
6032 done
6033 IFS="$ac_save_ifs"
6036 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6037 if test -n "$NM_FOR_TARGET"; then
6038 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6039 else
6040 echo "$ac_t""no" 1>&6
6044 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
6045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6046 set dummy ${ncn_progname}; ac_word=$2
6047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6048 echo "configure:6049: checking for $ac_word" >&5
6049 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6050 echo $ac_n "(cached) $ac_c" 1>&6
6051 else
6052 if test -n "$NM_FOR_TARGET"; then
6053 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6054 else
6055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6056 ac_dummy="$PATH"
6057 for ac_dir in $ac_dummy; do
6058 test -z "$ac_dir" && ac_dir=.
6059 if test -f $ac_dir/$ac_word; then
6060 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
6061 break
6063 done
6064 IFS="$ac_save_ifs"
6067 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6068 if test -n "$NM_FOR_TARGET"; then
6069 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6070 else
6071 echo "$ac_t""no" 1>&6
6075 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6076 done
6079 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6080 set dummy nm
6081 if test $build = $target ; then
6082 NM_FOR_TARGET="$2"
6083 else
6084 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
6088 else
6089 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
6095 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6096 if test -n "$with_build_time_tools"; then
6097 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6098 echo "configure:6099: checking for objdump in $with_build_time_tools" >&5
6099 if test -x $with_build_time_tools/objdump; then
6100 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
6101 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6102 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6103 else
6104 echo "$ac_t""no" 1>&6
6106 elif test $build != $host && test $have_gcc_for_target = yes; then
6107 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
6108 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
6109 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6112 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6113 # Extract the first word of "objdump", so it can be a program name with args.
6114 set dummy objdump; ac_word=$2
6115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6116 echo "configure:6117: checking for $ac_word" >&5
6117 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6118 echo $ac_n "(cached) $ac_c" 1>&6
6119 else
6120 case "$OBJDUMP_FOR_TARGET" in
6122 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6124 ?:/*)
6125 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6129 ac_dummy="$gcc_cv_tool_dirs"
6130 for ac_dir in $ac_dummy; do
6131 test -z "$ac_dir" && ac_dir=.
6132 if test -f $ac_dir/$ac_word; then
6133 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6134 break
6136 done
6137 IFS="$ac_save_ifs"
6139 esac
6141 OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6142 if test -n "$OBJDUMP_FOR_TARGET"; then
6143 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6144 else
6145 echo "$ac_t""no" 1>&6
6149 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6150 if test -n "$with_build_time_tools"; then
6151 for ncn_progname in objdump; do
6152 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6153 echo "configure:6154: checking for ${ncn_progname} in $with_build_time_tools" >&5
6154 if test -x $with_build_time_tools/${ncn_progname}; then
6155 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6156 echo "$ac_t""yes" 1>&6
6157 break
6158 else
6159 echo "$ac_t""no" 1>&6
6161 done
6164 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6165 for ncn_progname in objdump; do
6166 if test -n "$ncn_target_tool_prefix"; then
6167 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6168 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6170 echo "configure:6171: checking for $ac_word" >&5
6171 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6172 echo $ac_n "(cached) $ac_c" 1>&6
6173 else
6174 if test -n "$OBJDUMP_FOR_TARGET"; then
6175 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6176 else
6177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6178 ac_dummy="$PATH"
6179 for ac_dir in $ac_dummy; do
6180 test -z "$ac_dir" && ac_dir=.
6181 if test -f $ac_dir/$ac_word; then
6182 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6183 break
6185 done
6186 IFS="$ac_save_ifs"
6189 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6190 if test -n "$OBJDUMP_FOR_TARGET"; then
6191 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6192 else
6193 echo "$ac_t""no" 1>&6
6197 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6199 set dummy ${ncn_progname}; ac_word=$2
6200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6201 echo "configure:6202: checking for $ac_word" >&5
6202 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6203 echo $ac_n "(cached) $ac_c" 1>&6
6204 else
6205 if test -n "$OBJDUMP_FOR_TARGET"; then
6206 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6207 else
6208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6209 ac_dummy="$PATH"
6210 for ac_dir in $ac_dummy; do
6211 test -z "$ac_dir" && ac_dir=.
6212 if test -f $ac_dir/$ac_word; then
6213 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6214 break
6216 done
6217 IFS="$ac_save_ifs"
6220 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6221 if test -n "$OBJDUMP_FOR_TARGET"; then
6222 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6223 else
6224 echo "$ac_t""no" 1>&6
6228 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6229 done
6232 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6233 set dummy objdump
6234 if test $build = $target ; then
6235 OBJDUMP_FOR_TARGET="$2"
6236 else
6237 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6241 else
6242 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
6248 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6249 if test -n "$with_build_time_tools"; then
6250 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6251 echo "configure:6252: checking for ranlib in $with_build_time_tools" >&5
6252 if test -x $with_build_time_tools/ranlib; then
6253 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
6254 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6255 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6256 else
6257 echo "$ac_t""no" 1>&6
6259 elif test $build != $host && test $have_gcc_for_target = yes; then
6260 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6261 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6262 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6265 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6266 # Extract the first word of "ranlib", so it can be a program name with args.
6267 set dummy ranlib; ac_word=$2
6268 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6269 echo "configure:6270: checking for $ac_word" >&5
6270 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6271 echo $ac_n "(cached) $ac_c" 1>&6
6272 else
6273 case "$RANLIB_FOR_TARGET" in
6275 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6277 ?:/*)
6278 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6282 ac_dummy="$gcc_cv_tool_dirs"
6283 for ac_dir in $ac_dummy; do
6284 test -z "$ac_dir" && ac_dir=.
6285 if test -f $ac_dir/$ac_word; then
6286 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6287 break
6289 done
6290 IFS="$ac_save_ifs"
6292 esac
6294 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6295 if test -n "$RANLIB_FOR_TARGET"; then
6296 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6297 else
6298 echo "$ac_t""no" 1>&6
6302 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6303 if test -n "$with_build_time_tools"; then
6304 for ncn_progname in ranlib; do
6305 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6306 echo "configure:6307: checking for ${ncn_progname} in $with_build_time_tools" >&5
6307 if test -x $with_build_time_tools/${ncn_progname}; then
6308 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6309 echo "$ac_t""yes" 1>&6
6310 break
6311 else
6312 echo "$ac_t""no" 1>&6
6314 done
6317 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6318 for ncn_progname in ranlib; do
6319 if test -n "$ncn_target_tool_prefix"; then
6320 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6321 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6323 echo "configure:6324: checking for $ac_word" >&5
6324 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6325 echo $ac_n "(cached) $ac_c" 1>&6
6326 else
6327 if test -n "$RANLIB_FOR_TARGET"; then
6328 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6329 else
6330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6331 ac_dummy="$PATH"
6332 for ac_dir in $ac_dummy; do
6333 test -z "$ac_dir" && ac_dir=.
6334 if test -f $ac_dir/$ac_word; then
6335 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6336 break
6338 done
6339 IFS="$ac_save_ifs"
6342 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6343 if test -n "$RANLIB_FOR_TARGET"; then
6344 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6345 else
6346 echo "$ac_t""no" 1>&6
6350 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6352 set dummy ${ncn_progname}; ac_word=$2
6353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6354 echo "configure:6355: checking for $ac_word" >&5
6355 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
6357 else
6358 if test -n "$RANLIB_FOR_TARGET"; then
6359 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6360 else
6361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6362 ac_dummy="$PATH"
6363 for ac_dir in $ac_dummy; do
6364 test -z "$ac_dir" && ac_dir=.
6365 if test -f $ac_dir/$ac_word; then
6366 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6367 break
6369 done
6370 IFS="$ac_save_ifs"
6373 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6374 if test -n "$RANLIB_FOR_TARGET"; then
6375 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6376 else
6377 echo "$ac_t""no" 1>&6
6381 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6382 done
6385 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6386 set dummy ranlib
6387 if test $build = $target ; then
6388 RANLIB_FOR_TARGET="$2"
6389 else
6390 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
6394 else
6395 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
6401 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6402 if test -n "$with_build_time_tools"; then
6403 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6404 echo "configure:6405: checking for strip in $with_build_time_tools" >&5
6405 if test -x $with_build_time_tools/strip; then
6406 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
6407 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6408 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6409 else
6410 echo "$ac_t""no" 1>&6
6412 elif test $build != $host && test $have_gcc_for_target = yes; then
6413 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6414 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6415 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6418 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6419 # Extract the first word of "strip", so it can be a program name with args.
6420 set dummy strip; ac_word=$2
6421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6422 echo "configure:6423: checking for $ac_word" >&5
6423 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6424 echo $ac_n "(cached) $ac_c" 1>&6
6425 else
6426 case "$STRIP_FOR_TARGET" in
6428 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6430 ?:/*)
6431 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6435 ac_dummy="$gcc_cv_tool_dirs"
6436 for ac_dir in $ac_dummy; do
6437 test -z "$ac_dir" && ac_dir=.
6438 if test -f $ac_dir/$ac_word; then
6439 ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6440 break
6442 done
6443 IFS="$ac_save_ifs"
6445 esac
6447 STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6448 if test -n "$STRIP_FOR_TARGET"; then
6449 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6450 else
6451 echo "$ac_t""no" 1>&6
6455 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6456 if test -n "$with_build_time_tools"; then
6457 for ncn_progname in strip; do
6458 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6459 echo "configure:6460: checking for ${ncn_progname} in $with_build_time_tools" >&5
6460 if test -x $with_build_time_tools/${ncn_progname}; then
6461 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6462 echo "$ac_t""yes" 1>&6
6463 break
6464 else
6465 echo "$ac_t""no" 1>&6
6467 done
6470 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6471 for ncn_progname in strip; do
6472 if test -n "$ncn_target_tool_prefix"; then
6473 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6474 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6476 echo "configure:6477: checking for $ac_word" >&5
6477 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6479 else
6480 if test -n "$STRIP_FOR_TARGET"; then
6481 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6482 else
6483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6484 ac_dummy="$PATH"
6485 for ac_dir in $ac_dummy; do
6486 test -z "$ac_dir" && ac_dir=.
6487 if test -f $ac_dir/$ac_word; then
6488 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6489 break
6491 done
6492 IFS="$ac_save_ifs"
6495 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6496 if test -n "$STRIP_FOR_TARGET"; then
6497 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6498 else
6499 echo "$ac_t""no" 1>&6
6503 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6505 set dummy ${ncn_progname}; ac_word=$2
6506 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6507 echo "configure:6508: checking for $ac_word" >&5
6508 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
6510 else
6511 if test -n "$STRIP_FOR_TARGET"; then
6512 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6513 else
6514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6515 ac_dummy="$PATH"
6516 for ac_dir in $ac_dummy; do
6517 test -z "$ac_dir" && ac_dir=.
6518 if test -f $ac_dir/$ac_word; then
6519 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6520 break
6522 done
6523 IFS="$ac_save_ifs"
6526 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6527 if test -n "$STRIP_FOR_TARGET"; then
6528 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6529 else
6530 echo "$ac_t""no" 1>&6
6534 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6535 done
6538 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6539 set dummy strip
6540 if test $build = $target ; then
6541 STRIP_FOR_TARGET="$2"
6542 else
6543 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6547 else
6548 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
6554 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6555 if test -n "$with_build_time_tools"; then
6556 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6557 echo "configure:6558: checking for windres in $with_build_time_tools" >&5
6558 if test -x $with_build_time_tools/windres; then
6559 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
6560 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6561 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6562 else
6563 echo "$ac_t""no" 1>&6
6565 elif test $build != $host && test $have_gcc_for_target = yes; then
6566 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6567 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6568 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6571 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6572 # Extract the first word of "windres", so it can be a program name with args.
6573 set dummy windres; ac_word=$2
6574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6575 echo "configure:6576: checking for $ac_word" >&5
6576 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6577 echo $ac_n "(cached) $ac_c" 1>&6
6578 else
6579 case "$WINDRES_FOR_TARGET" in
6581 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6583 ?:/*)
6584 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6588 ac_dummy="$gcc_cv_tool_dirs"
6589 for ac_dir in $ac_dummy; do
6590 test -z "$ac_dir" && ac_dir=.
6591 if test -f $ac_dir/$ac_word; then
6592 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6593 break
6595 done
6596 IFS="$ac_save_ifs"
6598 esac
6600 WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6601 if test -n "$WINDRES_FOR_TARGET"; then
6602 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6603 else
6604 echo "$ac_t""no" 1>&6
6608 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6609 if test -n "$with_build_time_tools"; then
6610 for ncn_progname in windres; do
6611 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6612 echo "configure:6613: checking for ${ncn_progname} in $with_build_time_tools" >&5
6613 if test -x $with_build_time_tools/${ncn_progname}; then
6614 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6615 echo "$ac_t""yes" 1>&6
6616 break
6617 else
6618 echo "$ac_t""no" 1>&6
6620 done
6623 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6624 for ncn_progname in windres; do
6625 if test -n "$ncn_target_tool_prefix"; then
6626 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6627 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6629 echo "configure:6630: checking for $ac_word" >&5
6630 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6631 echo $ac_n "(cached) $ac_c" 1>&6
6632 else
6633 if test -n "$WINDRES_FOR_TARGET"; then
6634 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6635 else
6636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6637 ac_dummy="$PATH"
6638 for ac_dir in $ac_dummy; do
6639 test -z "$ac_dir" && ac_dir=.
6640 if test -f $ac_dir/$ac_word; then
6641 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6642 break
6644 done
6645 IFS="$ac_save_ifs"
6648 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6649 if test -n "$WINDRES_FOR_TARGET"; then
6650 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6651 else
6652 echo "$ac_t""no" 1>&6
6656 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6658 set dummy ${ncn_progname}; ac_word=$2
6659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6660 echo "configure:6661: checking for $ac_word" >&5
6661 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6663 else
6664 if test -n "$WINDRES_FOR_TARGET"; then
6665 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6666 else
6667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6668 ac_dummy="$PATH"
6669 for ac_dir in $ac_dummy; do
6670 test -z "$ac_dir" && ac_dir=.
6671 if test -f $ac_dir/$ac_word; then
6672 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6673 break
6675 done
6676 IFS="$ac_save_ifs"
6679 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6680 if test -n "$WINDRES_FOR_TARGET"; then
6681 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6682 else
6683 echo "$ac_t""no" 1>&6
6687 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6688 done
6691 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6692 set dummy windres
6693 if test $build = $target ; then
6694 WINDRES_FOR_TARGET="$2"
6695 else
6696 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
6700 else
6701 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
6705 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6707 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6708 echo "configure:6709: checking where to find the target ar" >&5
6709 if test "x${build}" != "x${host}" ; then
6710 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6711 # We already found the complete path
6712 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6713 else
6714 # Canadian cross, just use what we found
6715 echo "$ac_t""pre-installed" 1>&6
6717 else
6718 ok=yes
6719 case " ${configdirs} " in
6720 *" binutils "*) ;;
6721 *) ok=no ;;
6722 esac
6724 if test $ok = yes; then
6725 # An in-tree tool is available and we can use it
6726 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6727 echo "$ac_t""just compiled" 1>&6
6728 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6729 # We already found the complete path
6730 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6731 elif test "x$target" = "x$host"; then
6732 # We can use an host tool
6733 AR_FOR_TARGET='$(AR)'
6734 echo "$ac_t""host tool" 1>&6
6735 else
6736 # We need a cross tool
6737 echo "$ac_t""pre-installed" 1>&6
6740 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6741 echo "configure:6742: checking where to find the target as" >&5
6742 if test "x${build}" != "x${host}" ; then
6743 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6744 # We already found the complete path
6745 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6746 else
6747 # Canadian cross, just use what we found
6748 echo "$ac_t""pre-installed" 1>&6
6750 else
6751 ok=yes
6752 case " ${configdirs} " in
6753 *" gas "*) ;;
6754 *) ok=no ;;
6755 esac
6757 if test $ok = yes; then
6758 # An in-tree tool is available and we can use it
6759 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6760 echo "$ac_t""just compiled" 1>&6
6761 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6762 # We already found the complete path
6763 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6764 elif test "x$target" = "x$host"; then
6765 # We can use an host tool
6766 AS_FOR_TARGET='$(AS)'
6767 echo "$ac_t""host tool" 1>&6
6768 else
6769 # We need a cross tool
6770 echo "$ac_t""pre-installed" 1>&6
6773 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6774 echo "configure:6775: checking where to find the target cc" >&5
6775 if test "x${build}" != "x${host}" ; then
6776 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6777 # We already found the complete path
6778 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6779 else
6780 # Canadian cross, just use what we found
6781 echo "$ac_t""pre-installed" 1>&6
6783 else
6784 ok=yes
6785 case " ${configdirs} " in
6786 *" gcc "*) ;;
6787 *) ok=no ;;
6788 esac
6790 if test $ok = yes; then
6791 # An in-tree tool is available and we can use it
6792 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6793 echo "$ac_t""just compiled" 1>&6
6794 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6795 # We already found the complete path
6796 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6797 elif test "x$target" = "x$host"; then
6798 # We can use an host tool
6799 CC_FOR_TARGET='$(CC)'
6800 echo "$ac_t""host tool" 1>&6
6801 else
6802 # We need a cross tool
6803 echo "$ac_t""pre-installed" 1>&6
6806 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6807 echo "configure:6808: checking where to find the target c++" >&5
6808 if test "x${build}" != "x${host}" ; then
6809 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6810 # We already found the complete path
6811 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6812 else
6813 # Canadian cross, just use what we found
6814 echo "$ac_t""pre-installed" 1>&6
6816 else
6817 ok=yes
6818 case " ${configdirs} " in
6819 *" gcc "*) ;;
6820 *) ok=no ;;
6821 esac
6822 case ,${enable_languages}, in
6823 *,c++,*) ;;
6824 *) ok=no ;;
6825 esac
6826 if test $ok = yes; then
6827 # An in-tree tool is available and we can use it
6828 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'
6829 echo "$ac_t""just compiled" 1>&6
6830 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6831 # We already found the complete path
6832 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6833 elif test "x$target" = "x$host"; then
6834 # We can use an host tool
6835 CXX_FOR_TARGET='$(CXX)'
6836 echo "$ac_t""host tool" 1>&6
6837 else
6838 # We need a cross tool
6839 echo "$ac_t""pre-installed" 1>&6
6842 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6843 echo "configure:6844: checking where to find the target c++ for libstdc++" >&5
6844 if test "x${build}" != "x${host}" ; then
6845 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6846 # We already found the complete path
6847 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6848 else
6849 # Canadian cross, just use what we found
6850 echo "$ac_t""pre-installed" 1>&6
6852 else
6853 ok=yes
6854 case " ${configdirs} " in
6855 *" gcc "*) ;;
6856 *) ok=no ;;
6857 esac
6858 case ,${enable_languages}, in
6859 *,c++,*) ;;
6860 *) ok=no ;;
6861 esac
6862 if test $ok = yes; then
6863 # An in-tree tool is available and we can use it
6864 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'
6865 echo "$ac_t""just compiled" 1>&6
6866 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6867 # We already found the complete path
6868 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6869 elif test "x$target" = "x$host"; then
6870 # We can use an host tool
6871 RAW_CXX_FOR_TARGET='$(CXX)'
6872 echo "$ac_t""host tool" 1>&6
6873 else
6874 # We need a cross tool
6875 echo "$ac_t""pre-installed" 1>&6
6878 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6879 echo "configure:6880: checking where to find the target dlltool" >&5
6880 if test "x${build}" != "x${host}" ; then
6881 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6882 # We already found the complete path
6883 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6884 else
6885 # Canadian cross, just use what we found
6886 echo "$ac_t""pre-installed" 1>&6
6888 else
6889 ok=yes
6890 case " ${configdirs} " in
6891 *" binutils "*) ;;
6892 *) ok=no ;;
6893 esac
6895 if test $ok = yes; then
6896 # An in-tree tool is available and we can use it
6897 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6898 echo "$ac_t""just compiled" 1>&6
6899 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6900 # We already found the complete path
6901 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6902 elif test "x$target" = "x$host"; then
6903 # We can use an host tool
6904 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
6905 echo "$ac_t""host tool" 1>&6
6906 else
6907 # We need a cross tool
6908 echo "$ac_t""pre-installed" 1>&6
6911 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6912 echo "configure:6913: checking where to find the target gcc" >&5
6913 if test "x${build}" != "x${host}" ; then
6914 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6915 # We already found the complete path
6916 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6917 else
6918 # Canadian cross, just use what we found
6919 echo "$ac_t""pre-installed" 1>&6
6921 else
6922 ok=yes
6923 case " ${configdirs} " in
6924 *" gcc "*) ;;
6925 *) ok=no ;;
6926 esac
6928 if test $ok = yes; then
6929 # An in-tree tool is available and we can use it
6930 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6931 echo "$ac_t""just compiled" 1>&6
6932 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6933 # We already found the complete path
6934 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6935 elif test "x$target" = "x$host"; then
6936 # We can use an host tool
6937 GCC_FOR_TARGET='$()'
6938 echo "$ac_t""host tool" 1>&6
6939 else
6940 # We need a cross tool
6941 echo "$ac_t""pre-installed" 1>&6
6944 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6945 echo "configure:6946: checking where to find the target gcj" >&5
6946 if test "x${build}" != "x${host}" ; then
6947 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6948 # We already found the complete path
6949 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6950 else
6951 # Canadian cross, just use what we found
6952 echo "$ac_t""pre-installed" 1>&6
6954 else
6955 ok=yes
6956 case " ${configdirs} " in
6957 *" gcc "*) ;;
6958 *) ok=no ;;
6959 esac
6960 case ,${enable_languages}, in
6961 *,java,*) ;;
6962 *) ok=no ;;
6963 esac
6964 if test $ok = yes; then
6965 # An in-tree tool is available and we can use it
6966 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6967 echo "$ac_t""just compiled" 1>&6
6968 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6969 # We already found the complete path
6970 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6971 elif test "x$target" = "x$host"; then
6972 # We can use an host tool
6973 GCJ_FOR_TARGET='$(GCJ)'
6974 echo "$ac_t""host tool" 1>&6
6975 else
6976 # We need a cross tool
6977 echo "$ac_t""pre-installed" 1>&6
6980 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6981 echo "configure:6982: checking where to find the target gfortran" >&5
6982 if test "x${build}" != "x${host}" ; then
6983 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6984 # We already found the complete path
6985 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6986 else
6987 # Canadian cross, just use what we found
6988 echo "$ac_t""pre-installed" 1>&6
6990 else
6991 ok=yes
6992 case " ${configdirs} " in
6993 *" gcc "*) ;;
6994 *) ok=no ;;
6995 esac
6996 case ,${enable_languages}, in
6997 *,fortran,*) ;;
6998 *) ok=no ;;
6999 esac
7000 if test $ok = yes; then
7001 # An in-tree tool is available and we can use it
7002 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
7003 echo "$ac_t""just compiled" 1>&6
7004 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
7005 # We already found the complete path
7006 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7007 elif test "x$target" = "x$host"; then
7008 # We can use an host tool
7009 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
7010 echo "$ac_t""host tool" 1>&6
7011 else
7012 # We need a cross tool
7013 echo "$ac_t""pre-installed" 1>&6
7016 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
7017 echo "configure:7018: checking where to find the target ld" >&5
7018 if test "x${build}" != "x${host}" ; then
7019 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
7020 # We already found the complete path
7021 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7022 else
7023 # Canadian cross, just use what we found
7024 echo "$ac_t""pre-installed" 1>&6
7026 else
7027 ok=yes
7028 case " ${configdirs} " in
7029 *" ld "*) ;;
7030 *) ok=no ;;
7031 esac
7033 if test $ok = yes; then
7034 # An in-tree tool is available and we can use it
7035 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
7036 echo "$ac_t""just compiled" 1>&6
7037 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
7038 # We already found the complete path
7039 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7040 elif test "x$target" = "x$host"; then
7041 # We can use an host tool
7042 LD_FOR_TARGET='$(LD)'
7043 echo "$ac_t""host tool" 1>&6
7044 else
7045 # We need a cross tool
7046 echo "$ac_t""pre-installed" 1>&6
7049 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
7050 echo "configure:7051: checking where to find the target lipo" >&5
7051 if test "x${build}" != "x${host}" ; then
7052 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7053 # We already found the complete path
7054 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7055 else
7056 # Canadian cross, just use what we found
7057 echo "$ac_t""pre-installed" 1>&6
7059 else
7060 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7061 # We already found the complete path
7062 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7063 elif test "x$target" = "x$host"; then
7064 # We can use an host tool
7065 LIPO_FOR_TARGET='$(LIPO)'
7066 echo "$ac_t""host tool" 1>&6
7067 else
7068 # We need a cross tool
7069 echo "$ac_t""pre-installed" 1>&6
7072 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
7073 echo "configure:7074: checking where to find the target nm" >&5
7074 if test "x${build}" != "x${host}" ; then
7075 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7076 # We already found the complete path
7077 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7078 else
7079 # Canadian cross, just use what we found
7080 echo "$ac_t""pre-installed" 1>&6
7082 else
7083 ok=yes
7084 case " ${configdirs} " in
7085 *" binutils "*) ;;
7086 *) ok=no ;;
7087 esac
7089 if test $ok = yes; then
7090 # An in-tree tool is available and we can use it
7091 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7092 echo "$ac_t""just compiled" 1>&6
7093 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7094 # We already found the complete path
7095 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7096 elif test "x$target" = "x$host"; then
7097 # We can use an host tool
7098 NM_FOR_TARGET='$(NM)'
7099 echo "$ac_t""host tool" 1>&6
7100 else
7101 # We need a cross tool
7102 echo "$ac_t""pre-installed" 1>&6
7105 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7106 echo "configure:7107: checking where to find the target objdump" >&5
7107 if test "x${build}" != "x${host}" ; then
7108 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7109 # We already found the complete path
7110 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7111 else
7112 # Canadian cross, just use what we found
7113 echo "$ac_t""pre-installed" 1>&6
7115 else
7116 ok=yes
7117 case " ${configdirs} " in
7118 *" binutils "*) ;;
7119 *) ok=no ;;
7120 esac
7122 if test $ok = yes; then
7123 # An in-tree tool is available and we can use it
7124 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
7125 echo "$ac_t""just compiled" 1>&6
7126 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7127 # We already found the complete path
7128 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7129 elif test "x$target" = "x$host"; then
7130 # We can use an host tool
7131 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
7132 echo "$ac_t""host tool" 1>&6
7133 else
7134 # We need a cross tool
7135 echo "$ac_t""pre-installed" 1>&6
7138 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7139 echo "configure:7140: checking where to find the target ranlib" >&5
7140 if test "x${build}" != "x${host}" ; then
7141 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7142 # We already found the complete path
7143 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7144 else
7145 # Canadian cross, just use what we found
7146 echo "$ac_t""pre-installed" 1>&6
7148 else
7149 ok=yes
7150 case " ${configdirs} " in
7151 *" binutils "*) ;;
7152 *) ok=no ;;
7153 esac
7155 if test $ok = yes; then
7156 # An in-tree tool is available and we can use it
7157 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7158 echo "$ac_t""just compiled" 1>&6
7159 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7160 # We already found the complete path
7161 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7162 elif test "x$target" = "x$host"; then
7163 # We can use an host tool
7164 RANLIB_FOR_TARGET='$(RANLIB)'
7165 echo "$ac_t""host tool" 1>&6
7166 else
7167 # We need a cross tool
7168 echo "$ac_t""pre-installed" 1>&6
7171 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7172 echo "configure:7173: checking where to find the target strip" >&5
7173 if test "x${build}" != "x${host}" ; then
7174 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7175 # We already found the complete path
7176 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7177 else
7178 # Canadian cross, just use what we found
7179 echo "$ac_t""pre-installed" 1>&6
7181 else
7182 ok=yes
7183 case " ${configdirs} " in
7184 *" binutils "*) ;;
7185 *) ok=no ;;
7186 esac
7188 if test $ok = yes; then
7189 # An in-tree tool is available and we can use it
7190 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7191 echo "$ac_t""just compiled" 1>&6
7192 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7193 # We already found the complete path
7194 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7195 elif test "x$target" = "x$host"; then
7196 # We can use an host tool
7197 STRIP_FOR_TARGET='$(STRIP)'
7198 echo "$ac_t""host tool" 1>&6
7199 else
7200 # We need a cross tool
7201 echo "$ac_t""pre-installed" 1>&6
7204 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7205 echo "configure:7206: checking where to find the target windres" >&5
7206 if test "x${build}" != "x${host}" ; then
7207 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7208 # We already found the complete path
7209 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7210 else
7211 # Canadian cross, just use what we found
7212 echo "$ac_t""pre-installed" 1>&6
7214 else
7215 ok=yes
7216 case " ${configdirs} " in
7217 *" binutils "*) ;;
7218 *) ok=no ;;
7219 esac
7221 if test $ok = yes; then
7222 # An in-tree tool is available and we can use it
7223 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7224 echo "$ac_t""just compiled" 1>&6
7225 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7226 # We already found the complete path
7227 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7228 elif test "x$target" = "x$host"; then
7229 # We can use an host tool
7230 WINDRES_FOR_TARGET='$(WINDRES)'
7231 echo "$ac_t""host tool" 1>&6
7232 else
7233 # We need a cross tool
7234 echo "$ac_t""pre-installed" 1>&6
7241 # Certain tools may need extra flags.
7242 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7243 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7244 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7246 # When building target libraries, except in a Canadian cross, we use
7247 # the same toolchain as the compiler we just built.
7248 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7249 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7250 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7251 if test $host = $build; then
7252 case " $configdirs " in
7253 *" gcc "*)
7254 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7255 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7256 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7258 esac
7265 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7266 echo "configure:7267: checking whether to enable maintainer-specific portions of Makefiles" >&5
7267 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7268 if test "${enable_maintainer_mode+set}" = set; then
7269 enableval="$enable_maintainer_mode"
7270 USE_MAINTAINER_MODE=$enableval
7271 else
7272 USE_MAINTAINER_MODE=no
7275 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7278 if test "$USE_MAINTAINER_MODE" = yes; then
7279 MAINTAINER_MODE_TRUE=
7280 MAINTAINER_MODE_FALSE='#'
7281 else
7282 MAINTAINER_MODE_TRUE='#'
7283 MAINTAINER_MODE_FALSE=
7285 MAINT=$MAINTAINER_MODE_TRUE
7287 # ---------------------
7288 # GCC bootstrap support
7289 # ---------------------
7291 # Stage specific cflags for build.
7292 stage1_cflags="-g"
7293 case $build in
7294 vax-*-*)
7295 case ${GCC} in
7296 yes) stage1_cflags="-g -Wa,-J" ;;
7297 *) stage1_cflags="-g -J" ;;
7298 esac ;;
7299 powerpc-*-darwin*)
7300 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7301 # sources; use -no-cpp-precomp to get to GNU cpp.
7302 # Apple's GCC has bugs in designated initializer handling, so disable
7303 # that too.
7304 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7306 esac
7308 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7309 if test "$GCC" = yes; then
7310 saved_CFLAGS="$CFLAGS"
7312 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
7313 CFLAGS="$CFLAGS -fkeep-inline-functions"
7314 echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
7315 echo "configure:7316: checking whether -fkeep-inline-functions is supported" >&5
7316 cat > conftest.$ac_ext <<EOF
7317 #line 7318 "configure"
7318 #include "confdefs.h"
7320 int main() {
7322 ; return 0; }
7324 if { (eval echo configure:7325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7325 rm -rf conftest*
7326 echo "$ac_t""yes" 1>&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
7327 else
7328 echo "configure: failed program was:" >&5
7329 cat conftest.$ac_ext >&5
7330 rm -rf conftest*
7331 echo "$ac_t""no" 1>&6
7333 rm -f conftest*
7335 CFLAGS="$saved_CFLAGS"
7340 # Enable -Werror in bootstrap stage2 and later.
7341 # Change the default to "no" on release branches.
7342 # Check whether --enable-werror or --disable-werror was given.
7343 if test "${enable_werror+set}" = set; then
7344 enableval="$enable_werror"
7346 else
7347 enable_werror=yes
7350 case ${enable_werror} in
7351 yes) stage2_werror_flag="--enable-werror-always" ;;
7352 *) stage2_werror_flag="" ;;
7353 esac
7356 # Flags needed to enable html installing and building
7357 # Check whether --with-datarootdir or --without-datarootdir was given.
7358 if test "${with_datarootdir+set}" = set; then
7359 withval="$with_datarootdir"
7360 datarootdir="\${prefix}/${withval}"
7361 else
7362 datarootdir="\${prefix}/share"
7366 # Check whether --with-docdir or --without-docdir was given.
7367 if test "${with_docdir+set}" = set; then
7368 withval="$with_docdir"
7369 docdir="\${prefix}/${withval}"
7370 else
7371 docdir="\${datarootdir}/doc"
7375 # Check whether --with-htmldir or --without-htmldir was given.
7376 if test "${with_htmldir+set}" = set; then
7377 withval="$with_htmldir"
7378 htmldir="\${prefix}/${withval}"
7379 else
7380 htmldir="\${docdir}"
7388 trap '' 1 2 15
7389 cat > confcache <<\EOF
7390 # This file is a shell script that caches the results of configure
7391 # tests run on this system so they can be shared between configure
7392 # scripts and configure runs. It is not useful on other systems.
7393 # If it contains results you don't want to keep, you may remove or edit it.
7395 # By default, configure uses ./config.cache as the cache file,
7396 # creating it if it does not exist already. You can give configure
7397 # the --cache-file=FILE option to use a different cache file; that is
7398 # what configure does when it calls configure scripts in
7399 # subdirectories, so they share the cache.
7400 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7401 # config.status only pays attention to the cache file if you give it the
7402 # --recheck option to rerun configure.
7405 # The following way of writing the cache mishandles newlines in values,
7406 # but we know of no workaround that is simple, portable, and efficient.
7407 # So, don't put newlines in cache variables' values.
7408 # Ultrix sh set writes to stderr and can't be redirected directly,
7409 # and sets the high bit in the cache file unless we assign to the vars.
7410 (set) 2>&1 |
7411 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7412 *ac_space=\ *)
7413 # `set' does not quote correctly, so add quotes (double-quote substitution
7414 # turns \\\\ into \\, and sed turns \\ into \).
7415 sed -n \
7416 -e "s/'/'\\\\''/g" \
7417 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7420 # `set' quotes correctly as required by POSIX, so do not add quotes.
7421 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7423 esac >> confcache
7424 if cmp -s $cache_file confcache; then
7426 else
7427 if test -w $cache_file; then
7428 echo "updating cache $cache_file"
7429 cat confcache > $cache_file
7430 else
7431 echo "not updating unwritable cache $cache_file"
7434 rm -f confcache
7436 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7438 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7439 # Let make expand exec_prefix.
7440 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7442 # Any assignment to VPATH causes Sun make to only execute
7443 # the first set of double-colon rules, so remove it if not needed.
7444 # If there is a colon in the path, we need to keep it.
7445 if test "x$srcdir" = x.; then
7446 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7449 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7451 # Transform confdefs.h into DEFS.
7452 # Protect against shell expansion while executing Makefile rules.
7453 # Protect against Makefile macro expansion.
7454 cat > conftest.defs <<\EOF
7455 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7456 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7457 s%\[%\\&%g
7458 s%\]%\\&%g
7459 s%\$%$$%g
7461 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7462 rm -f conftest.defs
7465 # Without the "./", some shells look in PATH for config.status.
7466 : ${CONFIG_STATUS=./config.status}
7468 echo creating $CONFIG_STATUS
7469 rm -f $CONFIG_STATUS
7470 cat > $CONFIG_STATUS <<EOF
7471 #! /bin/sh
7472 # Generated automatically by configure.
7473 # Run this file to recreate the current configuration.
7474 # This directory was configured as follows,
7475 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7477 # $0 $ac_configure_args
7479 # Compiler output produced by configure, useful for debugging
7480 # configure, is in ./config.log if it exists.
7482 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7483 for ac_option
7485 case "\$ac_option" in
7486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7487 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7488 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7489 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7490 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7491 exit 0 ;;
7492 -help | --help | --hel | --he | --h)
7493 echo "\$ac_cs_usage"; exit 0 ;;
7494 *) echo "\$ac_cs_usage"; exit 1 ;;
7495 esac
7496 done
7498 ac_given_srcdir=$srcdir
7499 ac_given_INSTALL="$INSTALL"
7501 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7503 cat >> $CONFIG_STATUS <<EOF
7505 # Protect against being on the right side of a sed subst in config.status.
7506 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7507 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7508 $ac_vpsub
7509 $extrasub
7510 s%@SHELL@%$SHELL%g
7511 s%@CFLAGS@%$CFLAGS%g
7512 s%@CPPFLAGS@%$CPPFLAGS%g
7513 s%@CXXFLAGS@%$CXXFLAGS%g
7514 s%@FFLAGS@%$FFLAGS%g
7515 s%@DEFS@%$DEFS%g
7516 s%@LDFLAGS@%$LDFLAGS%g
7517 s%@LIBS@%$LIBS%g
7518 s%@exec_prefix@%$exec_prefix%g
7519 s%@prefix@%$prefix%g
7520 s%@program_transform_name@%$program_transform_name%g
7521 s%@bindir@%$bindir%g
7522 s%@sbindir@%$sbindir%g
7523 s%@libexecdir@%$libexecdir%g
7524 s%@datadir@%$datadir%g
7525 s%@sysconfdir@%$sysconfdir%g
7526 s%@sharedstatedir@%$sharedstatedir%g
7527 s%@localstatedir@%$localstatedir%g
7528 s%@libdir@%$libdir%g
7529 s%@includedir@%$includedir%g
7530 s%@oldincludedir@%$oldincludedir%g
7531 s%@infodir@%$infodir%g
7532 s%@mandir@%$mandir%g
7533 s%@host@%$host%g
7534 s%@host_alias@%$host_alias%g
7535 s%@host_cpu@%$host_cpu%g
7536 s%@host_vendor@%$host_vendor%g
7537 s%@host_os@%$host_os%g
7538 s%@target@%$target%g
7539 s%@target_alias@%$target_alias%g
7540 s%@target_cpu@%$target_cpu%g
7541 s%@target_vendor@%$target_vendor%g
7542 s%@target_os@%$target_os%g
7543 s%@build@%$build%g
7544 s%@build_alias@%$build_alias%g
7545 s%@build_cpu@%$build_cpu%g
7546 s%@build_vendor@%$build_vendor%g
7547 s%@build_os@%$build_os%g
7548 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7549 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7550 s%@INSTALL_DATA@%$INSTALL_DATA%g
7551 s%@LN@%$LN%g
7552 s%@LN_S@%$LN_S%g
7553 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7554 s%@build_libsubdir@%$build_libsubdir%g
7555 s%@build_subdir@%$build_subdir%g
7556 s%@host_subdir@%$host_subdir%g
7557 s%@target_subdir@%$target_subdir%g
7558 s%@CC@%$CC%g
7559 s%@GNATBIND@%$GNATBIND%g
7560 s%@do_compare@%$do_compare%g
7561 s%@gmplibs@%$gmplibs%g
7562 s%@gmpinc@%$gmpinc%g
7563 s%@stage1_languages@%$stage1_languages%g
7564 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7565 /@serialization_dependencies@/r $serialization_dependencies
7566 s%@serialization_dependencies@%%g
7567 /@host_makefile_frag@/r $host_makefile_frag
7568 s%@host_makefile_frag@%%g
7569 /@target_makefile_frag@/r $target_makefile_frag
7570 s%@target_makefile_frag@%%g
7571 /@alphaieee_frag@/r $alphaieee_frag
7572 s%@alphaieee_frag@%%g
7573 /@ospace_frag@/r $ospace_frag
7574 s%@ospace_frag@%%g
7575 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7576 s%@tooldir@%$tooldir%g
7577 s%@build_tooldir@%$build_tooldir%g
7578 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7579 s%@GDB_TK@%$GDB_TK%g
7580 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7581 s%@build_configargs@%$build_configargs%g
7582 s%@build_configdirs@%$build_configdirs%g
7583 s%@host_configargs@%$host_configargs%g
7584 s%@configdirs@%$configdirs%g
7585 s%@target_configargs@%$target_configargs%g
7586 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7587 s%@config_shell@%$config_shell%g
7588 s%@YACC@%$YACC%g
7589 s%@BISON@%$BISON%g
7590 s%@M4@%$M4%g
7591 s%@LEX@%$LEX%g
7592 s%@FLEX@%$FLEX%g
7593 s%@MAKEINFO@%$MAKEINFO%g
7594 s%@EXPECT@%$EXPECT%g
7595 s%@RUNTEST@%$RUNTEST%g
7596 s%@AR@%$AR%g
7597 s%@AS@%$AS%g
7598 s%@DLLTOOL@%$DLLTOOL%g
7599 s%@LD@%$LD%g
7600 s%@LIPO@%$LIPO%g
7601 s%@NM@%$NM%g
7602 s%@RANLIB@%$RANLIB%g
7603 s%@STRIP@%$STRIP%g
7604 s%@WINDRES@%$WINDRES%g
7605 s%@OBJCOPY@%$OBJCOPY%g
7606 s%@OBJDUMP@%$OBJDUMP%g
7607 s%@CXX@%$CXX%g
7608 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7609 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7610 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7611 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7612 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7613 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7614 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7615 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7616 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7617 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7618 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7619 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7620 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7621 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7622 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7623 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7624 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7625 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7626 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7627 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7628 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7629 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7630 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7631 s%@MAINT@%$MAINT%g
7632 s%@stage1_cflags@%$stage1_cflags%g
7633 s%@stage2_werror_flag@%$stage2_werror_flag%g
7634 s%@datarootdir@%$datarootdir%g
7635 s%@docdir@%$docdir%g
7636 s%@htmldir@%$htmldir%g
7638 CEOF
7641 cat >> $CONFIG_STATUS <<\EOF
7643 # Split the substitutions into bite-sized pieces for seds with
7644 # small command number limits, like on Digital OSF/1 and HP-UX.
7645 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7646 ac_file=1 # Number of current file.
7647 ac_beg=1 # First line for current file.
7648 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7649 ac_more_lines=:
7650 ac_sed_cmds=""
7651 while $ac_more_lines; do
7652 if test $ac_beg -gt 1; then
7653 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7654 else
7655 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7657 if test ! -s conftest.s$ac_file; then
7658 ac_more_lines=false
7659 rm -f conftest.s$ac_file
7660 else
7661 if test -z "$ac_sed_cmds"; then
7662 ac_sed_cmds="sed -f conftest.s$ac_file"
7663 else
7664 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7666 ac_file=`expr $ac_file + 1`
7667 ac_beg=$ac_end
7668 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7670 done
7671 if test -z "$ac_sed_cmds"; then
7672 ac_sed_cmds=cat
7676 cat >> $CONFIG_STATUS <<EOF
7678 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7680 cat >> $CONFIG_STATUS <<\EOF
7681 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7683 case "$ac_file" in
7684 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7685 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7686 *) ac_file_in="${ac_file}.in" ;;
7687 esac
7689 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7691 # Remove last slash and all that follows it. Not all systems have dirname.
7692 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7693 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7694 # The file is in a subdirectory.
7695 test ! -d "$ac_dir" && mkdir "$ac_dir"
7696 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7697 # A "../" for each directory in $ac_dir_suffix.
7698 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7699 else
7700 ac_dir_suffix= ac_dots=
7703 case "$ac_given_srcdir" in
7704 .) srcdir=.
7705 if test -z "$ac_dots"; then top_srcdir=.
7706 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7707 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7708 *) # Relative path.
7709 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7710 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7711 esac
7713 case "$ac_given_INSTALL" in
7714 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7715 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7716 esac
7718 echo creating "$ac_file"
7719 rm -f "$ac_file"
7720 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7721 case "$ac_file" in
7722 *Makefile*) ac_comsub="1i\\
7723 # $configure_input" ;;
7724 *) ac_comsub= ;;
7725 esac
7727 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7728 sed -e "$ac_comsub
7729 s%@configure_input@%$configure_input%g
7730 s%@srcdir@%$srcdir%g
7731 s%@top_srcdir@%$top_srcdir%g
7732 s%@INSTALL@%$INSTALL%g
7733 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7734 fi; done
7735 rm -f conftest.s*
7738 cat >> $CONFIG_STATUS <<EOF
7741 cat >> $CONFIG_STATUS <<\EOF
7743 exit 0
7745 chmod +x $CONFIG_STATUS
7746 rm -fr confdefs* $ac_clean_files
7747 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1