Mark ChangeLog
[official-gcc.git] / configure
blob3ee99d1a3b1e49048fc094ccf71a12a0a05e76d1
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-stage1-checking[=all] choose additional checking for stage1
62 of the compiler."
63 ac_help="$ac_help
64 --enable-werror enable -Werror in bootstrap stage2 and later"
65 ac_help="$ac_help
66 --with-datarootdir Use datarootdir as the data root directory."
67 ac_help="$ac_help
68 --with-docdir Install documentation in this directory."
69 ac_help="$ac_help
70 --with-htmldir Install html in this directory."
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
113 ac_prev=
114 for ac_option
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
120 ac_prev=
121 continue
124 case "$ac_option" in
125 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 *) ac_optarg= ;;
127 esac
129 # Accept the important Cygnus configure options, so we can diagnose typos.
131 case "$ac_option" in
133 -bindir | --bindir | --bindi | --bind | --bin | --bi)
134 ac_prev=bindir ;;
135 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136 bindir="$ac_optarg" ;;
138 -build | --build | --buil | --bui | --bu)
139 ac_prev=build ;;
140 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141 build="$ac_optarg" ;;
143 -cache-file | --cache-file | --cache-fil | --cache-fi \
144 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145 ac_prev=cache_file ;;
146 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148 cache_file="$ac_optarg" ;;
150 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151 ac_prev=datadir ;;
152 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153 | --da=*)
154 datadir="$ac_optarg" ;;
156 -disable-* | --disable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* | --enable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 case "$ac_option" in
173 *=*) ;;
174 *) ac_optarg=yes ;;
175 esac
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180 | --exec | --exe | --ex)
181 ac_prev=exec_prefix ;;
182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184 | --exec=* | --exe=* | --ex=*)
185 exec_prefix="$ac_optarg" ;;
187 -gas | --gas | --ga | --g)
188 # Obsolete; use --with-gas.
189 with_gas=yes ;;
191 -help | --help | --hel | --he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
194 cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
205 [$ac_default_prefix]
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 [same as prefix]
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
212 [PREFIX/share]
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 [PREFIX/com]
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
228 cat << EOF
229 Host type:
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
244 exit 0 ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host="$ac_optarg" ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir="$ac_optarg" ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
259 ac_prev=infodir ;;
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir="$ac_optarg" ;;
263 -libdir | --libdir | --libdi | --libd)
264 ac_prev=libdir ;;
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
266 libdir="$ac_optarg" ;;
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir="$ac_optarg" ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir="$ac_optarg" ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285 ac_prev=mandir ;;
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287 mandir="$ac_optarg" ;;
289 -nfp | --nfp | --nf)
290 # Obsolete; use --without-fp.
291 with_fp=no ;;
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 | --no-cr | --no-c)
295 no_create=yes ;;
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299 no_recursion=yes ;;
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir="$ac_optarg" ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311 ac_prev=prefix ;;
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313 prefix="$ac_optarg" ;;
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix="$ac_optarg" ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix="$ac_optarg" ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name="$ac_optarg" ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
348 silent=yes ;;
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351 ac_prev=sbindir ;;
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353 | --sbi=* | --sb=*)
354 sbindir="$ac_optarg" ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
359 | --sha | --sh)
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364 | --sha=* | --sh=*)
365 sharedstatedir="$ac_optarg" ;;
367 -site | --site | --sit)
368 ac_prev=site ;;
369 -site=* | --site=* | --sit=*)
370 site="$ac_optarg" ;;
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373 ac_prev=srcdir ;;
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375 srcdir="$ac_optarg" ;;
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir="$ac_optarg" ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target="$ac_optarg" ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
390 verbose=yes ;;
392 -version | --version | --versio | --versi | --vers)
393 echo "configure generated by autoconf version 2.13"
394 exit 0 ;;
396 -with-* | --with-*)
397 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 case "$ac_option" in
404 *=*) ;;
405 *) ac_optarg=yes ;;
406 esac
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
418 --x)
419 # Obsolete; use --with-x.
420 with_x=yes ;;
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes="$ac_optarg" ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 nonopt="$ac_option"
449 esac
450 done
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467 exec 6>/dev/null
468 else
469 exec 6>&1
471 exec 5>./config.log
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
483 case "$ac_arg" in
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c) ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491 esac
492 done
494 # NLS nuisances.
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=move-if-change
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
517 ac_prog=$0
518 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 srcdir=$ac_confdir
521 if test ! -r $srcdir/$ac_unique_file; then
522 srcdir=..
524 else
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 else
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE; then
539 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 else
541 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
547 . "$ac_site_file"
549 done
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
553 . $cache_file
554 else
555 echo "creating cache $cache_file"
556 > $cache_file
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571 ac_n= ac_c='
572 ' ac_t=' '
573 else
574 ac_n=-n ac_c= ac_t=
576 else
577 ac_n= ac_c='\c' ac_t=
582 ac_aux_dir=
583 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
584 if test -f $ac_dir/install-sh; then
585 ac_aux_dir=$ac_dir
586 ac_install_sh="$ac_aux_dir/install-sh -c"
587 break
588 elif test -f $ac_dir/install.sh; then
589 ac_aux_dir=$ac_dir
590 ac_install_sh="$ac_aux_dir/install.sh -c"
591 break
593 done
594 if test -z "$ac_aux_dir"; then
595 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
597 ac_config_guess=$ac_aux_dir/config.guess
598 ac_config_sub=$ac_aux_dir/config.sub
599 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
602 # Do some error checking and defaulting for the host and target type.
603 # The inputs are:
604 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
606 # The rules are:
607 # 1. You are not allowed to specify --host, --target, and nonopt at the
608 # same time.
609 # 2. Host defaults to nonopt.
610 # 3. If nonopt is not specified, then host defaults to the current host,
611 # as determined by config.guess.
612 # 4. Target and build default to nonopt.
613 # 5. If nonopt is not specified, then target and build default to host.
615 # The aliases save the names the user supplied, while $host etc.
616 # will get canonicalized.
617 case $host---$target---$nonopt in
618 NONE---*---* | *---NONE---* | *---*---NONE) ;;
619 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
620 esac
623 # Make sure we can run config.sub.
624 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
625 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
628 echo $ac_n "checking host system type""... $ac_c" 1>&6
629 echo "configure:630: checking host system type" >&5
631 host_alias=$host
632 case "$host_alias" in
633 NONE)
634 case $nonopt in
635 NONE)
636 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
637 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
638 fi ;;
639 *) host_alias=$nonopt ;;
640 esac ;;
641 esac
643 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
644 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
645 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
646 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
647 echo "$ac_t""$host" 1>&6
649 echo $ac_n "checking target system type""... $ac_c" 1>&6
650 echo "configure:651: checking target system type" >&5
652 target_alias=$target
653 case "$target_alias" in
654 NONE)
655 case $nonopt in
656 NONE) target_alias=$host_alias ;;
657 *) target_alias=$nonopt ;;
658 esac ;;
659 esac
661 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
662 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
663 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
664 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
665 echo "$ac_t""$target" 1>&6
667 echo $ac_n "checking build system type""... $ac_c" 1>&6
668 echo "configure:669: checking build system type" >&5
670 build_alias=$build
671 case "$build_alias" in
672 NONE)
673 case $nonopt in
674 NONE) build_alias=$host_alias ;;
675 *) build_alias=$nonopt ;;
676 esac ;;
677 esac
679 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
680 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$build" 1>&6
685 test "$host_alias" != "$target_alias" &&
686 test "$program_prefix$program_suffix$program_transform_name" = \
687 NONENONEs,x,x, &&
688 program_prefix=${target_alias}-
690 if test "$program_transform_name" = s,x,x,; then
691 program_transform_name=
692 else
693 # Double any \ or $. echo might interpret backslashes.
694 cat <<\EOF_SED > conftestsed
695 s,\\,\\\\,g; s,\$,$$,g
696 EOF_SED
697 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
698 rm -f conftestsed
700 test "$program_prefix" != NONE &&
701 program_transform_name="s,^,${program_prefix},; $program_transform_name"
702 # Use a double $ so make ignores it.
703 test "$program_suffix" != NONE &&
704 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
706 # sed with no file args requires a program.
707 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
710 # Get 'install' or 'install-sh' and its variants.
711 # Find a good install program. We prefer a C program (faster),
712 # so one script is as good as another. But avoid the broken or
713 # incompatible versions:
714 # SysV /etc/install, /usr/sbin/install
715 # SunOS /usr/etc/install
716 # IRIX /sbin/install
717 # AIX /bin/install
718 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
719 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
720 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
721 # ./install, which can be erroneously created by make from ./install.sh.
722 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
723 echo "configure:724: checking for a BSD compatible install" >&5
724 if test -z "$INSTALL"; then
725 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
727 else
728 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
729 for ac_dir in $PATH; do
730 # Account for people who put trailing slashes in PATH elements.
731 case "$ac_dir/" in
732 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
734 # OSF1 and SCO ODT 3.0 have their own names for install.
735 # Don't use installbsd from OSF since it installs stuff as root
736 # by default.
737 for ac_prog in ginstall scoinst install; do
738 if test -f $ac_dir/$ac_prog; then
739 if test $ac_prog = install &&
740 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
741 # AIX install. It has an incompatible calling convention.
743 else
744 ac_cv_path_install="$ac_dir/$ac_prog -c"
745 break 2
748 done
750 esac
751 done
752 IFS="$ac_save_IFS"
755 if test "${ac_cv_path_install+set}" = set; then
756 INSTALL="$ac_cv_path_install"
757 else
758 # As a last resort, use the slow shell script. We don't cache a
759 # path for INSTALL within a source directory, because that will
760 # break other packages using the cache if that directory is
761 # removed, or if the path is relative.
762 INSTALL="$ac_install_sh"
765 echo "$ac_t""$INSTALL" 1>&6
767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
768 # It thinks the first close brace ends the variable substitution.
769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
773 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
775 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
776 echo "configure:777: checking whether ln works" >&5
777 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
779 else
780 rm -f conftestdata_t
781 echo >conftestdata_f
782 if ln conftestdata_f conftestdata_t 2>/dev/null
783 then
784 acx_cv_prog_LN=ln
785 else
786 acx_cv_prog_LN=no
788 rm -f conftestdata_f conftestdata_t
791 if test $acx_cv_prog_LN = no; then
792 LN="cp"
793 echo "$ac_t""no, using $LN" 1>&6
794 else
795 LN="$acx_cv_prog_LN"
796 echo "$ac_t""yes" 1>&6
799 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
800 echo "configure:801: checking whether ln -s works" >&5
801 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
803 else
804 rm -f conftestdata
805 if ln -s X conftestdata 2>/dev/null
806 then
807 rm -f conftestdata
808 ac_cv_prog_LN_S="ln -s"
809 else
810 ac_cv_prog_LN_S=ln
813 LN_S="$ac_cv_prog_LN_S"
814 if test "$ac_cv_prog_LN_S" = "ln -s"; then
815 echo "$ac_t""yes" 1>&6
816 else
817 echo "$ac_t""no" 1>&6
821 ### we might need to use some other shell than /bin/sh for running subshells
822 ### If we are on Windows, search for the shell. This will permit people
823 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
824 ### without also having to set CONFIG_SHELL. This code will work when
825 ### using bash, which sets OSTYPE.
826 case "${OSTYPE}" in
827 *win32*)
828 if test x${CONFIG_SHELL} = x ; then
829 if test ! -f /bin/sh ; then
830 if test x${SHELL} != x && test -f ${SHELL} ; then
831 CONFIG_SHELL=${SHELL}
832 export CONFIG_SHELL
833 else
834 for prog in sh sh.exe bash bash.exe; do
835 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
836 for dir in $PATH; do
837 test -z "$dir" && dir=.
838 if test -f $dir/$prog; then
839 CONFIG_SHELL=$dir/$prog
840 export CONFIG_SHELL
841 break
843 done
844 IFS="$save_ifs"
845 test -n "${CONFIG_SHELL}" && break
846 done
851 esac
853 config_shell=${CONFIG_SHELL-/bin/sh}
855 progname=$0
856 # if PWD already has a value, it is probably wrong.
857 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
859 # Export original configure arguments for use by sub-configures. These
860 # will be expanded by make, so quote '$'.
861 tmp="$progname $@"
862 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
863 $tmp
864 EOF_SED
865 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
866 rm -f conftestsed.out
869 moveifchange=${srcdir}/move-if-change
871 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
873 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
874 # a relative path.
875 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
876 INSTALL="${srcpwd}/install-sh -c"
879 # Set srcdir to "." if that's what it is.
880 # This is important for multilib support.
881 pwd=`${PWDCMD-pwd}`
882 if test "${pwd}" = "${srcpwd}" ; then
883 srcdir=.
886 topsrcdir=$srcpwd
888 extra_host_args=
890 ### To add a new directory to the tree, first choose whether it is a target
891 ### or a host dependent tool. Then put it into the appropriate list
892 ### (library or tools, host or target), doing a dependency sort.
894 # Subdirs will be configured in the order listed in build_configdirs,
895 # configdirs, or target_configdirs; see the serialization section below.
897 # Dependency sorting is only needed when *configuration* must be done in
898 # a particular order. In all cases a dependency should be specified in
899 # the Makefile, whether or not it's implicitly specified here.
901 # Double entries in build_configdirs, configdirs, or target_configdirs may
902 # cause circular dependencies and break everything horribly.
904 # these library is used by various programs built for the build
905 # environment
907 build_libs="build-libiberty"
909 # these tools are built for the build environment
910 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
912 # these libraries are used by various programs built for the host environment
914 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
916 # these tools are built for the host environment
917 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
918 # know that we are building the simulator.
919 # binutils, gas and ld appear in that order because it makes sense to run
920 # "make check" in that particular order.
921 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"
923 # libgcj represents the runtime libraries only used by gcj.
924 libgcj="target-libffi \
925 target-zlib \
926 target-qthreads \
927 target-libjava"
929 # these libraries are built for the target environment, and are built after
930 # the host libraries and the host tools (which may be a cross compiler)
932 target_libraries="target-libiberty \
933 target-libgloss \
934 target-newlib \
935 target-libstdc++-v3 \
936 target-libmudflap \
937 target-libssp \
938 target-libgfortran \
939 target-boehm-gc \
940 ${libgcj} \
941 target-libobjc \
942 target-libada \
943 target-libgomp"
945 # these tools are built using the target libraries, and are intended to
946 # run only in the target environment
948 # note: any program that *uses* libraries that are in the "target_libraries"
949 # list belongs in this list. those programs are also very likely
950 # candidates for the "native_only" list which follows
952 target_tools="target-examples target-groff target-gperf target-rda"
954 ################################################################################
956 ## All tools belong in one of the four categories, and are assigned above
957 ## We assign ${configdirs} this way to remove all embedded newlines. This
958 ## is important because configure will choke if they ever get through.
959 ## ${configdirs} is directories we build using the host tools.
960 ## ${target_configdirs} is directories we build using the target tools.
961 configdirs=`echo ${host_libs} ${host_tools}`
962 target_configdirs=`echo ${target_libraries} ${target_tools}`
963 build_configdirs=`echo ${build_libs} ${build_tools}`
965 ################################################################################
967 srcname="gnu development package"
969 # This gets set non-empty for some net releases of packages.
970 appdirs=""
972 # Define is_cross_compiler to save on calls to 'test'.
973 is_cross_compiler=
974 if test x"${host}" = x"${target}" ; then
975 is_cross_compiler=no
976 else
977 is_cross_compiler=yes
980 # Find the build and target subdir names.
981 case ${build_alias} in
982 "") build_noncanonical=${build} ;;
983 *) build_noncanonical=${build_alias} ;;
984 esac
986 case ${host_alias} in
987 "") host_noncanonical=${build_noncanonical} ;;
988 *) host_noncanonical=${host_alias} ;;
989 esac
991 case ${target_alias} in
992 "") target_noncanonical=${host_noncanonical} ;;
993 *) target_noncanonical=${target_alias} ;;
994 esac
997 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
998 # have matching libraries, they should use host libraries: Makefile.tpl
999 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1000 # However, they still use the build modules, because the corresponding
1001 # host modules (e.g. bison) are only built for the host when bootstrap
1002 # finishes. So:
1003 # - build_subdir is where we find build modules, and never changes.
1004 # - build_libsubdir is where we find build libraries, and can be overridden.
1006 # Prefix 'build-' so this never conflicts with target_subdir.
1007 build_subdir="build-${build_noncanonical}"
1008 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1009 if test "${with_build_libsubdir+set}" = set; then
1010 withval="$with_build_libsubdir"
1011 build_libsubdir="$withval"
1012 else
1013 build_libsubdir="$build_subdir"
1016 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1017 if ( test $srcdir = . && test -d gcc ) \
1018 || test -d $srcdir/../host-${host_noncanonical}; then
1019 host_subdir="host-${host_noncanonical}"
1020 else
1021 host_subdir=.
1023 # No prefix.
1024 target_subdir=${target_noncanonical}
1027 # Skipdirs are removed silently.
1028 skipdirs=
1029 # Noconfigdirs are removed loudly.
1030 noconfigdirs=""
1032 use_gnu_ld=
1033 # Make sure we don't let GNU ld be added if we didn't want it.
1034 if test x$with_gnu_ld = xno ; then
1035 use_gnu_ld=no
1036 noconfigdirs="$noconfigdirs ld"
1039 use_gnu_as=
1040 # Make sure we don't let GNU as be added if we didn't want it.
1041 if test x$with_gnu_as = xno ; then
1042 use_gnu_as=no
1043 noconfigdirs="$noconfigdirs gas"
1046 # some tools are so dependent upon X11 that if we're not building with X,
1047 # it's not even worth trying to configure, much less build, that tool.
1049 case ${with_x} in
1050 yes | "") ;; # the default value for this tree is that X11 is available
1052 skipdirs="${skipdirs} tk itcl libgui"
1053 # We won't be able to build gdbtk without X.
1054 enable_gdbtk=no
1056 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1057 esac
1059 # Some tools are only suitable for building in a "native" situation.
1060 # Remove these if host!=target.
1061 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"
1063 # Similarly, some are only suitable for cross toolchains.
1064 # Remove these if host=target.
1065 cross_only="target-libgloss target-newlib target-opcodes"
1067 case $is_cross_compiler in
1068 no) skipdirs="${skipdirs} ${cross_only}" ;;
1069 yes) skipdirs="${skipdirs} ${native_only}" ;;
1070 esac
1072 # If both --with-headers and --with-libs are specified, default to
1073 # --without-newlib.
1074 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1075 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1076 if test x"${with_newlib}" = x ; then
1077 with_newlib=no
1081 # Recognize --with-newlib/--without-newlib.
1082 case ${with_newlib} in
1083 no) skipdirs="${skipdirs} target-newlib" ;;
1084 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1085 esac
1087 # Configure extra directories which are host specific
1089 case "${host}" in
1090 *-cygwin*)
1091 configdirs="$configdirs libtermcap" ;;
1092 esac
1094 # A target can indicate whether a language isn't supported for some reason.
1095 # Only spaces may be used in this macro; not newlines or tabs.
1096 unsupported_languages=
1098 # Remove more programs from consideration, based on the host or
1099 # target this usually means that a port of the program doesn't
1100 # exist yet.
1102 case "${host}" in
1103 hppa*64*-*-*)
1104 noconfigdirs="$noconfigdirs byacc"
1106 i[3456789]86-*-vsta)
1107 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1109 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1110 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1112 i[3456789]86-*-mingw32*)
1113 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1114 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1116 i[3456789]86-*-beos*)
1117 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1119 *-*-cygwin*)
1120 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1122 *-*-netbsd*)
1123 noconfigdirs="$noconfigdirs rcs"
1125 ppc*-*-pe)
1126 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1128 powerpc-*-beos*)
1129 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1131 esac
1134 # Check whether --enable-libada or --disable-libada was given.
1135 if test "${enable_libada+set}" = set; then
1136 enableval="$enable_libada"
1137 ENABLE_LIBADA=$enableval
1138 else
1139 ENABLE_LIBADA=yes
1142 if test "${ENABLE_LIBADA}" != "yes" ; then
1143 noconfigdirs="$noconfigdirs gnattools"
1146 # Check whether --enable-libssp or --disable-libssp was given.
1147 if test "${enable_libssp+set}" = set; then
1148 enableval="$enable_libssp"
1149 ENABLE_LIBSSP=$enableval
1150 else
1151 ENABLE_LIBSSP=yes
1155 # Save it here so that, even in case of --enable-libgcj, if the Java
1156 # front-end isn't enabled, we still get libgcj disabled.
1157 libgcj_saved=$libgcj
1158 case $enable_libgcj in
1159 yes)
1160 # If we reset it here, it won't get added to noconfigdirs in the
1161 # target-specific build rules, so it will be forcibly enabled
1162 # (unless the Java language itself isn't enabled).
1163 libgcj=
1166 # Make sure we get it printed in the list of not supported target libs.
1167 noconfigdirs="$noconfigdirs ${libgcj}"
1169 esac
1172 # Disable libmudflap on some systems.
1173 if test x$enable_libmudflap = x ; then
1174 case "${target}" in
1175 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1176 # Enable libmudflap by default in GNU and friends.
1178 *-*-freebsd*)
1179 # Enable libmudflap by default in FreeBSD.
1182 # Disable it by default everywhere else.
1183 noconfigdirs="$noconfigdirs target-libmudflap"
1185 esac
1188 # Disable libgomp on non POSIX hosted systems.
1189 if test x$enable_libgomp = x ; then
1190 # Enable libgomp by default on hosted POSIX systems.
1191 case "${target}" in
1192 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1194 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1196 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1198 *-*-darwin* | *-*-aix*)
1201 noconfigdirs="$noconfigdirs target-libgomp"
1203 esac
1207 case "${target}" in
1208 *-*-chorusos)
1209 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1211 powerpc-*-darwin* | i[3456789]86-*-darwin*)
1212 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1213 noconfigdirs="$noconfigdirs sim target-rda"
1215 *-*-darwin*)
1216 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1217 noconfigdirs="$noconfigdirs sim target-rda"
1218 noconfigdirs="$noconfigdirs ${libgcj}"
1220 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1221 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1223 *-*-freebsd*)
1224 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1225 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1226 && test -f /usr/local/include/gmp.h; then
1227 with_gmp=/usr/local
1230 # Skip some stuff that's unsupported on some FreeBSD configurations.
1231 case "${target}" in
1232 i*86-*-*) ;;
1233 alpha*-*-*) ;;
1235 noconfigdirs="$noconfigdirs ${libgcj}"
1237 esac
1239 *-*-kaos*)
1240 # Remove unsupported stuff on all kaOS configurations.
1241 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1242 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1243 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1244 noconfigdirs="$noconfigdirs target-libgloss"
1246 *-*-netbsd*)
1247 # Skip some stuff on all NetBSD configurations.
1248 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1250 # Skip some stuff that's unsupported on some NetBSD configurations.
1251 case "${target}" in
1252 i*86-*-netbsdelf*) ;;
1253 arm*-*-netbsdelf*) ;;
1255 noconfigdirs="$noconfigdirs ${libgcj}"
1257 esac
1259 *-*-netware*)
1260 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1262 *-*-rtems*)
1263 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1265 # The tpf target doesn't support gdb yet.
1266 *-*-tpf*)
1267 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1269 *-*-uclinux*)
1270 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1272 *-*-vxworks*)
1273 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1275 alpha*-dec-osf*)
1276 # ld works, but does not support shared libraries.
1277 # newlib is not 64 bit ready. I'm not sure about fileutils.
1278 # gas doesn't generate exception information.
1279 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1281 alpha*-*-*vms*)
1282 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1284 alpha*-*-linux*)
1285 # newlib is not 64 bit ready
1286 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1288 alpha*-*-*)
1289 # newlib is not 64 bit ready
1290 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1292 am33_2.0-*-linux*)
1293 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1295 sh-*-linux*)
1296 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1298 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1299 noconfigdirs="$noconfigdirs ${libgcj}"
1300 noconfigdirs="$noconfigdirs target-examples"
1301 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1302 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1303 noconfigdirs="$noconfigdirs expect dejagnu"
1304 # the C++ libraries don't build on top of CE's C libraries
1305 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1306 noconfigdirs="$noconfigdirs target-newlib"
1307 case "${host}" in
1308 *-*-cygwin*) ;; # keep gdb and readline
1309 *) noconfigdirs="$noconfigdirs gdb readline"
1311 esac
1313 arc-*-*)
1314 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1316 arm-semi-aof )
1318 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1319 noconfigdirs="$noconfigdirs ${libgcj}"
1321 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1322 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1324 arm*-*-linux-gnueabi)
1325 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1326 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1328 arm*-*-symbianelf*)
1329 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1331 arm-*-pe*)
1332 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1334 thumb-*-coff)
1335 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1337 thumb-*-elf)
1338 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1340 thumb-*-pe)
1341 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1343 arm-*-riscix*)
1344 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1346 avr-*-*)
1347 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1349 bfin-*-*)
1350 noconfigdirs="$noconfigdirs gdb"
1351 if test x${is_cross_compiler} != xno ; then
1352 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1355 c4x-*-* | tic4x-*-*)
1356 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1358 c54x*-*-* | tic54x-*-*)
1359 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1361 cris-*-* | crisv32-*-*)
1362 unsupported_languages="$unsupported_languages java"
1363 case "${target}" in
1364 *-*-aout)
1365 unsupported_languages="$unsupported_languages fortran"
1366 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1367 *-*-elf)
1368 unsupported_languages="$unsupported_languages fortran"
1369 noconfigdirs="$noconfigdirs target-boehm-gc";;
1370 *-*-linux*)
1371 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1373 unsupported_languages="$unsupported_languages fortran"
1374 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1375 esac
1377 crx-*-*)
1378 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1380 d10v-*-*)
1381 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1383 d30v-*-*)
1384 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1386 fr30-*-elf*)
1387 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1389 frv-*-*)
1390 noconfigdirs="$noconfigdirs ${libgcj}"
1392 h8300*-*-*)
1393 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1395 h8500-*-*)
1396 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1398 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1400 hppa*64*-*-linux* | parisc*64*-*-linux*)
1401 # In this case, it's because the hppa64-linux target is for
1402 # the kernel only at this point and has no libc, and thus no
1403 # headers, crt*.o, etc., all of which are needed by these.
1404 noconfigdirs="$noconfigdirs target-zlib"
1406 parisc*-*-linux* | hppa*-*-linux*)
1408 hppa*-*-*elf* | \
1409 hppa*-*-lites* | \
1410 hppa*-*-openbsd* | \
1411 hppa*64*-*-*)
1412 noconfigdirs="$noconfigdirs ${libgcj}"
1414 hppa*-hp-hpux11*)
1415 noconfigdirs="$noconfigdirs ld shellutils"
1417 hppa*-*-*)
1418 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1419 # build on HP-UX 10.20.
1420 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1422 i960-*-*)
1423 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1425 ia64*-*-elf*)
1426 # No gdb support yet.
1427 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1429 ia64*-**-hpux*)
1430 # No gdb or ld support yet.
1431 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1433 i370-*-opened*)
1435 i[3456789]86-*-coff | i[3456789]86-*-elf)
1436 noconfigdirs="$noconfigdirs ${libgcj}"
1438 i[3456789]86-*-linux*)
1439 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1440 # not build java stuff by default.
1441 case "${target}" in
1442 *-*-*libc1*)
1443 noconfigdirs="$noconfigdirs ${libgcj}";;
1444 esac
1446 # This section makes it possible to build newlib natively on linux.
1447 # If we are using a cross compiler then don't configure newlib.
1448 if test x${is_cross_compiler} != xno ; then
1449 noconfigdirs="$noconfigdirs target-newlib"
1451 noconfigdirs="$noconfigdirs target-libgloss"
1452 # If we are not using a cross compiler, do configure newlib.
1453 # Note however, that newlib will only be configured in this situation
1454 # if the --with-newlib option has been given, because otherwise
1455 # 'target-newlib' will appear in skipdirs.
1457 i[3456789]86-*-mingw32*)
1458 target_configdirs="$target_configdirs target-winsup"
1459 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1461 *-*-cygwin*)
1462 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1463 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1464 # always build newlib if winsup directory is present.
1465 if test -d "$srcdir/winsup/cygwin"; then
1466 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1467 elif test -d "$srcdir/newlib"; then
1468 echo "Warning: winsup/cygwin is missing so newlib can't be built."
1471 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1472 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1474 i[3456789]86-*-pe)
1475 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1477 i[3456789]86-*-sco3.2v5*)
1478 # The linker does not yet know about weak symbols in COFF,
1479 # and is not configured to handle mixed ELF and COFF.
1480 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1482 i[3456789]86-*-sco*)
1483 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1485 i[3456789]86-*-solaris2*)
1486 noconfigdirs="$noconfigdirs target-libgloss"
1488 i[3456789]86-*-sysv4*)
1489 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1491 i[3456789]86-*-beos*)
1492 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1494 i[3456789]86-*-rdos*)
1495 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1497 m32r-*-*)
1498 noconfigdirs="$noconfigdirs ${libgcj}"
1500 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1501 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1503 m68k-*-elf*)
1504 noconfigdirs="$noconfigdirs ${libgcj}"
1506 m68k-*-coff*)
1507 noconfigdirs="$noconfigdirs ${libgcj}"
1509 mcore-*-pe*)
1510 # The EPOC C++ environment does not support exceptions or rtti,
1511 # and so building libstdc++-v3 tends not to always work.
1512 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1514 mmix-*-*)
1515 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1516 unsupported_languages="$unsupported_languages fortran java"
1518 mn10200-*-*)
1519 noconfigdirs="$noconfigdirs ${libgcj}"
1521 mn10300-*-*)
1522 noconfigdirs="$noconfigdirs ${libgcj}"
1524 mt-*-*)
1525 noconfigdirs="$noconfigdirs sim"
1527 powerpc-*-aix*)
1528 # copied from rs6000-*-* entry
1529 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1531 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1532 target_configdirs="$target_configdirs target-winsup"
1533 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1534 # always build newlib.
1535 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1537 # This is temporary until we can link against shared libraries
1538 powerpcle-*-solaris*)
1539 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1541 powerpc-*-beos*)
1542 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1544 powerpc-*-eabi)
1545 noconfigdirs="$noconfigdirs ${libgcj}"
1547 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1549 rs6000-*-lynxos*)
1550 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1552 rs6000-*-aix*)
1553 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1555 rs6000-*-*)
1556 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1558 m68k-apollo-*)
1559 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1561 mips*-*-irix5*)
1562 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1564 mips*-*-irix6*)
1565 # Linking libjava exceeds command-line length limits on at least
1566 # IRIX 6.2, but not on IRIX 6.5.
1567 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1568 # <oldham@codesourcery.com>
1569 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1571 mips*-*-bsd*)
1572 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1574 mips64*-*-linux*)
1575 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1577 mips*-*-linux*)
1578 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1580 mips*-*-*)
1581 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1583 romp-*-*)
1584 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1586 sh-*-* | sh64-*-*)
1587 case "${host}" in
1588 i[3456789]86-*-vsta) ;; # don't add gprof back in
1589 i[3456789]86-*-go32*) ;; # don't add gprof back in
1590 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1591 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1592 esac
1593 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1595 sparc-*-elf*)
1596 noconfigdirs="$noconfigdirs ${libgcj}"
1598 sparc64-*-elf*)
1599 noconfigdirs="$noconfigdirs ${libgcj}"
1601 sparclite-*-*)
1602 noconfigdirs="$noconfigdirs ${libgcj}"
1604 sparc-*-sunos4*)
1605 noconfigdirs="$noconfigdirs ${libgcj}"
1606 if test x${is_cross_compiler} != xno ; then
1607 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1608 else
1609 use_gnu_ld=no
1612 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1613 noconfigdirs="$noconfigdirs ${libgcj}"
1615 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
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 echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
2363 echo "configure:2364: checking for correct version of mpfr.h" >&5
2364 cat > conftest.$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2367 #include "gmp.h"
2368 #include <mpfr.h>
2369 int main() {
2371 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
2372 choke me
2373 #endif
2375 ; return 0; }
2377 if { (eval echo configure:2378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2378 rm -rf conftest*
2379 echo "$ac_t""yes" 1>&6
2380 else
2381 echo "configure: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2383 rm -rf conftest*
2384 echo "$ac_t""buggy version of MPFR detected" 1>&6
2386 rm -f conftest*
2388 saved_LIBS="$LIBS"
2389 LIBS="$LIBS $gmplibs"
2390 echo $ac_n "checking for any version of mpfr.h""... $ac_c" 1>&6
2391 echo "configure:2392: checking for any version of mpfr.h" >&5
2392 cat > conftest.$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2395 #include <gmp.h>
2396 #include <mpfr.h>
2397 int main() {
2398 mpfr_t n; mpfr_init(n);
2399 ; return 0; }
2401 if { (eval echo configure:2402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2402 rm -rf conftest*
2403 echo "$ac_t""yes" 1>&6
2404 else
2405 echo "configure: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2407 rm -rf conftest*
2408 echo "$ac_t""no" 1>&6; have_gmp=no
2410 rm -f conftest*
2411 LIBS="$saved_LIBS"
2413 CFLAGS="$saved_CFLAGS"
2415 # Flags needed for both GMP and/or MPFR
2419 # By default, C is the only stage 1 language.
2420 stage1_languages=c
2423 # Figure out what language subdirectories are present.
2424 # Look if the user specified --enable-languages="..."; if not, use
2425 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2426 # go away some day.
2427 # NB: embedded tabs in this IF block -- do not untabify
2428 if test -d ${srcdir}/gcc; then
2429 if test x"${enable_languages+set}" != xset; then
2430 if test x"${LANGUAGES+set}" = xset; then
2431 enable_languages="${LANGUAGES}"
2432 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2433 else
2434 enable_languages=all
2436 else
2437 if test x"${enable_languages}" = x ||
2438 test x"${enable_languages}" = xyes;
2439 then
2440 echo configure.in: --enable-languages needs at least one language argument 1>&2
2441 exit 1
2444 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2446 # 'f95' is the old name for the 'fortran' language. We issue a warning
2447 # and make the substitution.
2448 case ,${enable_languages}, in
2449 *,f95,*)
2450 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2451 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2453 esac
2455 # First scan to see if an enabled language requires some other language.
2456 # We assume that a given config-lang.in will list all the language
2457 # front ends it requires, even if some are required indirectly.
2458 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2459 case ${lang_frag} in
2460 ..) ;;
2461 # The odd quoting in the next line works around
2462 # an apparent bug in bash 1.12 on linux.
2463 ${srcdir}/gcc/[*]/config-lang.in) ;;
2465 # From the config-lang.in, get $language, $lang_requires
2466 language=
2467 lang_requires=
2468 . ${lang_frag}
2469 for other in ${lang_requires} ; do
2470 case ,${enable_languages}, in
2471 *,$other,*) ;;
2472 *,all,*) ;;
2473 *,$language,*)
2474 echo " \`$other' language required by \`$language'; enabling" 1>&2
2475 enable_languages="${enable_languages},${other}"
2477 esac
2478 done
2480 esac
2481 done
2483 new_enable_languages=c
2484 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2485 potential_languages=c
2487 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2488 case ${lang_frag} in
2489 ..) ;;
2490 # The odd quoting in the next line works around
2491 # an apparent bug in bash 1.12 on linux.
2492 ${srcdir}/gcc/[*]/config-lang.in) ;;
2494 # From the config-lang.in, get $language, $target_libs,
2495 # $lang_dirs, $boot_language, and $build_by_default
2496 language=
2497 target_libs=
2498 lang_dirs=
2499 subdir_requires=
2500 boot_language=
2501 build_by_default=
2502 need_gmp=
2503 . ${lang_frag}
2504 potential_languages="${potential_languages},${language}"
2505 # This is quite sensitive to the ordering of the case statement arms.
2506 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2507 *::*:*)
2508 echo "${lang_frag} doesn't set \$language." 1>&2
2509 exit 1
2511 *:ada:no:*)
2512 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2513 add_this_lang=no
2515 *,${language},*:*:*:*)
2516 # Language was explicitly selected; include it.
2517 add_this_lang=yes
2519 *,all,*:*:*:no)
2520 # 'all' was selected, but this is not a default language
2521 # so do not include it.
2522 add_this_lang=no
2524 *,all,*:*:*:*)
2525 # 'all' was selected and this is a default language; include it.
2526 add_this_lang=yes
2529 add_this_lang=no
2531 esac
2533 # Disable languages that need other directories if these aren't available.
2534 for i in $subdir_requires; do
2535 test -f "$srcdir/gcc/$i/config-lang.in" && continue
2536 case ,${enable_languages}, in
2537 *,${language},*)
2538 # Specifically requested language; tell them.
2539 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2542 # Silently disable.
2543 add_this_lang=no
2545 esac
2546 done
2548 # Disable languages that need GMP if it isn't available.
2549 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2550 *,${language},*:no:yes)
2551 # Specifically requested language; tell them.
2552 { echo "configure: error: GMP 4.1 and MPFR 2.2.1 or newer versions required by $language" 1>&2; exit 1; }
2554 *:no:yes)
2555 # Silently disable.
2556 add_this_lang=no
2558 esac
2560 # Disable a language that is unsupported by the target.
2561 case " $unsupported_languages " in
2562 *" $language "*)
2563 add_this_lang=no
2565 esac
2567 case $add_this_lang in
2569 # Remove language-dependent dirs.
2570 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2573 new_enable_languages="$new_enable_languages,$language"
2574 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2575 case ${boot_language} in
2576 yes)
2577 # Add to (comma-separated) list of stage 1 languages.
2578 stage1_languages="${stage1_languages},${language}"
2580 esac
2582 esac
2584 esac
2585 done
2587 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2588 if test "x$missing_languages" != x; then
2589 { echo "configure: error:
2590 The following requested languages could not be built: ${missing_languages}
2591 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2594 if test "x$new_enable_languages" != "x$enable_languages"; then
2595 echo The following languages will be built: ${new_enable_languages}
2597 enable_languages="$new_enable_languages"
2598 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2601 # Handle --disable-<component> generically.
2602 for dir in $configdirs $build_configdirs $target_configdirs ; do
2603 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2604 if eval test x\${enable_${dirname}} "=" xno ; then
2605 noconfigdirs="$noconfigdirs $dir"
2607 done
2609 # Check for Boehm's garbage collector
2610 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2611 if test "${enable_objc_gc+set}" = set; then
2612 enableval="$enable_objc_gc"
2613 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2614 *,objc,*:*:yes:*target-boehm-gc*)
2615 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2617 esac
2621 # Make sure we only build Boehm's garbage collector if required.
2622 case ,${enable_languages},:${enable_objc_gc} in
2623 *,objc,*:yes)
2624 # Keep target-boehm-gc if requested for Objective-C.
2627 # Otherwise remove target-boehm-gc depending on target-libjava.
2628 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
2629 noconfigdirs="$noconfigdirs target-boehm-gc"
2632 esac
2634 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2635 # $build_configdirs and $target_configdirs.
2636 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2638 notsupp=""
2639 for dir in . $skipdirs $noconfigdirs ; do
2640 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2641 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2642 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2643 if test -r $srcdir/$dirname/configure ; then
2644 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2645 true
2646 else
2647 notsupp="$notsupp $dir"
2651 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2652 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2653 if test -r $srcdir/$dirname/configure ; then
2654 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2655 true
2656 else
2657 notsupp="$notsupp $dir"
2661 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2662 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2663 if test -r $srcdir/$dirname/configure ; then
2664 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2665 true
2666 else
2667 notsupp="$notsupp $dir"
2671 done
2673 # Sometimes the tools are distributed with libiberty but with no other
2674 # libraries. In that case, we don't want to build target-libiberty.
2675 if test -n "${target_configdirs}" ; then
2676 others=
2677 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2678 if test "$i" != "libiberty" ; then
2679 if test -r $srcdir/$i/configure ; then
2680 others=yes;
2681 break;
2684 done
2685 if test -z "${others}" ; then
2686 target_configdirs=
2690 # Quietly strip out all directories which aren't configurable in this tree.
2691 # This relies on all configurable subdirectories being autoconfiscated, which
2692 # is now the case.
2693 build_configdirs_all="$build_configdirs"
2694 build_configdirs=
2695 for i in ${build_configdirs_all} ; do
2696 j=`echo $i | sed -e s/build-//g`
2697 if test -f ${srcdir}/$j/configure ; then
2698 build_configdirs="${build_configdirs} $i"
2700 done
2702 configdirs_all="$configdirs"
2703 configdirs=
2704 for i in ${configdirs_all} ; do
2705 if test -f ${srcdir}/$i/configure ; then
2706 configdirs="${configdirs} $i"
2708 done
2710 target_configdirs_all="$target_configdirs"
2711 target_configdirs=
2712 for i in ${target_configdirs_all} ; do
2713 j=`echo $i | sed -e s/target-//g`
2714 if test -f ${srcdir}/$j/configure ; then
2715 target_configdirs="${target_configdirs} $i"
2717 done
2719 # Produce a warning message for the subdirs we can't configure.
2720 # This isn't especially interesting in the Cygnus tree, but in the individual
2721 # FSF releases, it's important to let people know when their machine isn't
2722 # supported by the one or two programs in a package.
2724 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2725 # If $appdirs is non-empty, at least one of those directories must still
2726 # be configured, or we error out. (E.g., if the gas release supports a
2727 # specified target in some subdirs but not the gas subdir, we shouldn't
2728 # pretend that all is well.)
2729 if test -n "$appdirs" ; then
2730 for dir in $appdirs ; do
2731 if test -r $dir/Makefile.in ; then
2732 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2733 appdirs=""
2734 break
2736 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2737 appdirs=""
2738 break
2741 done
2742 if test -n "$appdirs" ; then
2743 echo "*** This configuration is not supported by this package." 1>&2
2744 exit 1
2747 # Okay, some application will build, or we don't care to check. Still
2748 # notify of subdirs not getting built.
2749 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2750 echo " ${notsupp}" 1>&2
2751 echo " (Any other directories should still work fine.)" 1>&2
2754 case "$host" in
2755 *msdosdjgpp*)
2756 enable_gdbtk=no ;;
2757 esac
2759 copy_dirs=
2761 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2762 if test "${with_build_sysroot+set}" = set; then
2763 withval="$with_build_sysroot"
2764 if test x"$withval" != x ; then
2765 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2767 else
2768 SYSROOT_CFLAGS_FOR_TARGET=
2773 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2774 # the named directory are copied to $(tooldir)/sys-include.
2775 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2776 if test x${is_cross_compiler} = xno ; then
2777 echo 1>&2 '***' --with-headers is only supported when cross compiling
2778 exit 1
2780 if test x"${with_headers}" != xyes ; then
2781 case "${exec_prefixoption}" in
2782 "") x=${prefix} ;;
2783 *) x=${exec_prefix} ;;
2784 esac
2785 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2789 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2790 # the name directories are copied to $(tooldir)/lib. Multiple directories
2791 # are permitted.
2792 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2793 if test x${is_cross_compiler} = xno ; then
2794 echo 1>&2 '***' --with-libs is only supported when cross compiling
2795 exit 1
2797 if test x"${with_libs}" != xyes ; then
2798 # Copy the libraries in reverse order, so that files in the first named
2799 # library override files in subsequent libraries.
2800 case "${exec_prefixoption}" in
2801 "") x=${prefix} ;;
2802 *) x=${exec_prefix} ;;
2803 esac
2804 for l in ${with_libs}; do
2805 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2806 done
2810 # Set with_gnu_as and with_gnu_ld as appropriate.
2812 # This is done by determining whether or not the appropriate directory
2813 # is available, and by checking whether or not specific configurations
2814 # have requested that this magic not happen.
2816 # The command line options always override the explicit settings in
2817 # configure.in, and the settings in configure.in override this magic.
2819 # If the default for a toolchain is to use GNU as and ld, and you don't
2820 # want to do that, then you should use the --without-gnu-as and
2821 # --without-gnu-ld options for the configure script.
2823 if test x${use_gnu_as} = x &&
2824 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2825 with_gnu_as=yes
2826 extra_host_args="$extra_host_args --with-gnu-as"
2829 if test x${use_gnu_ld} = x &&
2830 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2831 with_gnu_ld=yes
2832 extra_host_args="$extra_host_args --with-gnu-ld"
2835 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2836 # can detect this case.
2838 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2839 with_newlib=yes
2840 extra_host_args="$extra_host_args --with-newlib"
2843 # Handle ${copy_dirs}
2844 set fnord ${copy_dirs}
2845 shift
2846 while test $# != 0 ; do
2847 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2849 else
2850 echo Copying $1 to $2
2852 # Use the install script to create the directory and all required
2853 # parent directories.
2854 if test -d $2 ; then
2856 else
2857 echo >config.temp
2858 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2861 # Copy the directory, assuming we have tar.
2862 # FIXME: Should we use B in the second tar? Not all systems support it.
2863 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2865 # It is the responsibility of the user to correctly adjust all
2866 # symlinks. If somebody can figure out how to handle them correctly
2867 # here, feel free to add the code.
2869 echo $1 > $2/COPIED
2871 shift; shift
2872 done
2874 # Determine a target-dependent exec_prefix that the installed
2875 # gcc will search in. Keep this list sorted by triplet, with
2876 # the *-*-osname triplets last.
2877 md_exec_prefix=
2878 case "${target}" in
2879 alpha*-*-*vms*)
2880 md_exec_prefix=/gnu/lib/gcc-lib
2882 i3456786-pc-msdosdjgpp*)
2883 md_exec_prefix=/dev/env/DJDIR/bin
2885 i3456786-*-sco3.2v5*)
2886 if test $with_gnu_as = yes; then
2887 md_exec_prefix=/usr/gnu/bin
2888 else
2889 md_exec_prefix=/usr/ccs/bin/elf
2893 mn10300-*-* | \
2894 powerpc-*-chorusos* | \
2895 powerpc*-*-eabi* | \
2896 powerpc*-*-sysv* | \
2897 powerpc*-*-kaos* | \
2898 s390x-ibm-tpf*)
2899 md_exec_prefix=/usr/ccs/bin
2901 sparc64-*-elf*)
2903 v850*-*-*)
2904 md_exec_prefix=/usr/ccs/bin
2906 xtensa-*-elf*)
2909 *-*-beos* | \
2910 *-*-elf* | \
2911 *-*-hpux* | \
2912 *-*-netware* | \
2913 *-*-nto-qnx* | \
2914 *-*-rtems* | \
2915 *-*-solaris2* | \
2916 *-*-sysv45* | \
2917 *-*-vxworks* | \
2918 *-wrs-windiss)
2919 md_exec_prefix=/usr/ccs/bin
2921 esac
2923 extra_arflags_for_target=
2924 extra_nmflags_for_target=
2925 extra_ranlibflags_for_target=
2926 target_makefile_frag=/dev/null
2927 case "${target}" in
2928 *-*-netware*)
2929 target_makefile_frag="config/mt-netware"
2931 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2932 target_makefile_frag="config/mt-gnu"
2934 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2935 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2936 # commands to handle both 32-bit and 64-bit objects. These flags are
2937 # harmless if we're using GNU nm or ar.
2938 extra_arflags_for_target=" -X32_64"
2939 extra_nmflags_for_target=" -B -X32_64"
2941 *-*-darwin*)
2942 # ranlib from Darwin requires the -c flag to look at common symbols.
2943 extra_ranlibflags_for_target=" -c"
2945 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2946 target_makefile_frag="config/mt-wince"
2948 esac
2950 alphaieee_frag=/dev/null
2951 case $target in
2952 alpha*-*-*)
2953 # This just makes sure to use the -mieee option to build target libs.
2954 # This should probably be set individually by each library.
2955 alphaieee_frag="config/mt-alphaieee"
2957 esac
2959 # If --enable-target-optspace always use -Os instead of -O2 to build
2960 # the target libraries, similarly if it is not specified, use -Os
2961 # on selected platforms.
2962 ospace_frag=/dev/null
2963 case "${enable_target_optspace}:${target}" in
2964 yes:*)
2965 ospace_frag="config/mt-ospace"
2967 :d30v-*)
2968 ospace_frag="config/mt-d30v"
2970 :m32r-* | :d10v-* | :fr30-*)
2971 ospace_frag="config/mt-ospace"
2973 no:* | :*)
2976 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2978 esac
2980 # Default to using --with-stabs for certain targets.
2981 if test x${with_stabs} = x ; then
2982 case "${target}" in
2983 mips*-*-irix[56]*)
2985 mips*-*-* | alpha*-*-osf*)
2986 with_stabs=yes;
2987 extra_host_args="${extra_host_args} --with-stabs"
2989 esac
2992 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2993 # them automatically.
2994 case "${host}" in
2995 hppa*64*-*-hpux11*)
2996 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2998 esac
3000 # Some systems (e.g., one of the i386-aix systems the gas testers are
3001 # using) don't handle "\$" correctly, so don't use it here.
3002 tooldir='${exec_prefix}'/${target_alias}
3003 build_tooldir=${tooldir}
3005 # Create a .gdbinit file which runs the one in srcdir
3006 # and tells GDB to look there for source files.
3008 if test -r ${srcdir}/.gdbinit ; then
3009 case ${srcdir} in
3010 .) ;;
3011 *) cat > ./.gdbinit <<EOF
3012 # ${NO_EDIT}
3013 dir ${srcdir}
3014 dir .
3015 source ${srcdir}/.gdbinit
3018 esac
3021 # Make sure that the compiler is able to generate an executable. If it
3022 # can't, we are probably in trouble. We don't care whether we can run the
3023 # executable--we might be using a cross compiler--we only care whether it
3024 # can be created. At this point the main configure script has set CC.
3025 we_are_ok=no
3026 echo "int main () { return 0; }" > conftest.c
3027 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3028 if test $? = 0 ; then
3029 if test -s conftest || test -s conftest.exe ; then
3030 we_are_ok=yes
3033 case $we_are_ok in
3035 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3036 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3037 rm -f conftest*
3038 exit 1
3040 esac
3041 rm -f conftest*
3043 # The Solaris /usr/ucb/cc compiler does not appear to work.
3044 case "${host}" in
3045 sparc-sun-solaris2*)
3046 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
3047 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3048 could_use=
3049 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
3050 if test -d /opt/cygnus/bin ; then
3051 if test "$could_use" = "" ; then
3052 could_use="/opt/cygnus/bin"
3053 else
3054 could_use="$could_use or /opt/cygnus/bin"
3057 if test "$could_use" = "" ; then
3058 echo "Warning: compilation may fail because you're using"
3059 echo "/usr/ucb/cc. You should change your PATH or CC "
3060 echo "variable and rerun configure."
3061 else
3062 echo "Warning: compilation may fail because you're using"
3063 echo "/usr/ucb/cc, when you should use the C compiler from"
3064 echo "$could_use. You should change your"
3065 echo "PATH or CC variable and rerun configure."
3069 esac
3071 case "${host}" in
3072 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3073 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3074 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3075 esac
3077 # Record target_configdirs and the configure arguments for target and
3078 # build configuration in Makefile.
3079 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3080 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3082 # Determine whether gdb needs tk/tcl or not.
3083 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3084 # and in that case we want gdb to be built without tk. Ugh!
3085 # In fact I believe gdb is the *only* package directly dependent on tk,
3086 # so we should be able to put the 'maybe's in unconditionally and
3087 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3088 # 100% sure that that's safe though.
3090 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3091 case "$enable_gdbtk" in
3093 GDB_TK="" ;;
3094 yes)
3095 GDB_TK="${gdb_tk}" ;;
3097 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3098 # distro. Eventually someone will fix this and move Insight, nee
3099 # gdbtk to a separate directory.
3100 if test -d ${srcdir}/gdb/gdbtk ; then
3101 GDB_TK="${gdb_tk}"
3102 else
3103 GDB_TK=""
3106 esac
3107 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3108 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3110 # Strip out unwanted targets.
3112 # While at that, we remove Makefiles if we were started for recursive
3113 # configuration, so that the top-level Makefile reconfigures them,
3114 # like we used to do when configure itself was recursive.
3116 # Loop over modules. $extrasub must be used with care, limiting as
3117 # much as possible the usage of range addresses. That's because autoconf
3118 # splits the sed script to overcome limits in the number of commands,
3119 # and relying on carefully-timed sed passes may turn out to be very hard
3120 # to maintain later. In this particular case, you just have to be careful
3121 # not to nest @if/@endif pairs, because configure will not warn you at all.
3123 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3124 if test "${enable_bootstrap+set}" = set; then
3125 enableval="$enable_bootstrap"
3127 else
3128 enable_bootstrap=default
3132 # Issue errors and warnings for invalid/strange bootstrap combinations.
3133 case "$configdirs" in
3134 *gcc*) have_compiler=yes ;;
3135 *) have_compiler=no ;;
3136 esac
3138 case "$have_compiler:$host:$target:$enable_bootstrap" in
3139 *:*:*:no) ;;
3141 # Default behavior. Enable bootstrap if we have a compiler
3142 # and we are in a native configuration.
3143 yes:$build:$build:default)
3144 enable_bootstrap=yes ;;
3146 *:*:*:default)
3147 enable_bootstrap=no ;;
3149 # We have a compiler and we are in a native configuration, bootstrap is ok
3150 yes:$build:$build:yes)
3153 # Other configurations, but we have a compiler. Assume the user knows
3154 # what he's doing.
3155 yes:*:*:yes)
3156 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3159 # No compiler: if they passed --enable-bootstrap explicitly, fail
3160 no:*:*:yes)
3161 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3163 # Fail if wrong command line
3165 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3167 esac
3169 # Adjust the toplevel makefile according to whether bootstrap was selected.
3170 case "$enable_bootstrap" in
3171 yes)
3172 bootstrap_suffix=bootstrap ;;
3174 bootstrap_suffix=no-bootstrap ;;
3175 esac
3177 for module in ${build_configdirs} ; do
3178 if test -z "${no_recursion}" \
3179 && test -f ${build_subdir}/${module}/Makefile; then
3180 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3181 rm -f ${build_subdir}/${module}/Makefile
3183 extrasub="$extrasub
3184 /^@if build-$module\$/d
3185 /^@endif build-$module\$/d
3186 /^@if build-$module-$bootstrap_suffix\$/d
3187 /^@endif build-$module-$bootstrap_suffix\$/d"
3188 done
3189 for module in ${configdirs} ; do
3190 if test -z "${no_recursion}"; then
3191 for file in stage*-${module}/Makefile ${module}/Makefile; do
3192 if test -f ${file}; then
3193 echo 1>&2 "*** removing ${file} to force reconfigure"
3194 rm -f ${file}
3196 done
3198 extrasub="$extrasub
3199 /^@if $module\$/d
3200 /^@endif $module\$/d
3201 /^@if $module-$bootstrap_suffix\$/d
3202 /^@endif $module-$bootstrap_suffix\$/d"
3203 done
3204 for module in ${target_configdirs} ; do
3205 if test -z "${no_recursion}" \
3206 && test -f ${target_subdir}/${module}/Makefile; then
3207 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3208 rm -f ${target_subdir}/${module}/Makefile
3210 extrasub="$extrasub
3211 /^@if target-$module\$/d
3212 /^@endif target-$module\$/d
3213 /^@if target-$module-$bootstrap_suffix\$/d
3214 /^@endif target-$module-$bootstrap_suffix\$/d"
3215 done
3217 extrasub="$extrasub
3218 /^@if /,/^@endif /d"
3220 # Create the serialization dependencies. This uses a temporary file.
3222 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3223 if test "${enable_serial_configure+set}" = set; then
3224 enableval="$enable_serial_configure"
3229 case ${enable_serial_configure} in
3230 yes)
3231 enable_serial_build_configure=yes
3232 enable_serial_host_configure=yes
3233 enable_serial_target_configure=yes
3235 esac
3237 # These force 'configure's to be done one at a time, to avoid problems
3238 # with contention over a shared config.cache.
3239 rm -f serdep.tmp
3240 echo '# serdep.tmp' > serdep.tmp
3241 olditem=
3242 test "x${enable_serial_build_configure}" = xyes &&
3243 for item in ${build_configdirs} ; do
3244 case ${olditem} in
3245 "") ;;
3246 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3247 esac
3248 olditem=${item}
3249 done
3250 olditem=
3251 test "x${enable_serial_host_configure}" = xyes &&
3252 for item in ${configdirs} ; do
3253 case ${olditem} in
3254 "") ;;
3255 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3256 esac
3257 olditem=${item}
3258 done
3259 olditem=
3260 test "x${enable_serial_target_configure}" = xyes &&
3261 for item in ${target_configdirs} ; do
3262 case ${olditem} in
3263 "") ;;
3264 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3265 esac
3266 olditem=${item}
3267 done
3268 serialization_dependencies=serdep.tmp
3271 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3272 # target and nonopt. These are the ones we might not want to pass
3273 # down to subconfigures. Also strip program-prefix, program-suffix,
3274 # and program-transform-name, so that we can pass down a consistent
3275 # program-transform-name. If autoconf has put single quotes around
3276 # any of these arguments (because they contain shell metacharacters)
3277 # then this will fail; in practice this only happens for
3278 # --program-transform-name, so be sure to override --program-transform-name
3279 # at the end of the argument list.
3280 # These will be expanded by make, so quote '$'.
3281 cat <<\EOF_SED > conftestsed
3282 s/ --no[^ ]*/ /g
3283 s/ --c[a-z-]*[= ][^ ]*//g
3284 s/ --sr[a-z-]*[= ][^ ]*//g
3285 s/ --ho[a-z-]*[= ][^ ]*//g
3286 s/ --bu[a-z-]*[= ][^ ]*//g
3287 s/ --t[a-z-]*[= ][^ ]*//g
3288 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3289 s/ -cache-file[= ][^ ]*//g
3290 s/ -srcdir[= ][^ ]*//g
3291 s/ -host[= ][^ ]*//g
3292 s/ -build[= ][^ ]*//g
3293 s/ -target[= ][^ ]*//g
3294 s/ -program-prefix[= ][^ ]*//g
3295 s/ -program-suffix[= ][^ ]*//g
3296 s/ -program-transform-name[= ][^ ]*//g
3297 s/ [^' -][^ ]* / /
3298 s/^ *//;s/ *$//
3299 s,\$,$$,g
3300 EOF_SED
3301 sed -f conftestsed <<EOF_SED > conftestsed.out
3302 ${ac_configure_args}
3303 EOF_SED
3304 baseargs=`cat conftestsed.out`
3305 rm -f conftestsed conftestsed.out
3307 # Add in --program-transform-name, after --program-prefix and
3308 # --program-suffix have been applied to it. Autoconf has already
3309 # doubled dollar signs and backslashes in program_transform_name; we want
3310 # the backslashes un-doubled, and then the entire thing wrapped in single
3311 # quotes, because this will be expanded first by make and then by the shell.
3312 # Also, because we want to override the logic in subdir configure scripts to
3313 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3314 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3315 ${program_transform_name}
3316 EOF_SED
3317 gcc_transform_name=`cat conftestsed.out`
3318 rm -f conftestsed.out
3319 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3321 # For the build-side libraries, we just need to pretend we're native,
3322 # and not use the same cache file. Multilibs are neither needed nor
3323 # desired.
3324 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3326 # For host modules, accept cache file option, or specification as blank.
3327 case "${cache_file}" in
3328 "") # empty
3329 cache_file_option="" ;;
3330 /* | [A-Za-z]:[\\/]* ) # absolute path
3331 cache_file_option="--cache-file=${cache_file}" ;;
3332 *) # relative path
3333 cache_file_option="--cache-file=../${cache_file}" ;;
3334 esac
3336 # Host dirs don't like to share a cache file either, horribly enough.
3337 # This seems to be due to autoconf 2.5x stupidity.
3338 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3340 target_configargs=${baseargs}
3342 # Passing a --with-cross-host argument lets the target libraries know
3343 # whether they are being built with a cross-compiler or being built
3344 # native. However, it would be better to use other mechanisms to make the
3345 # sorts of decisions they want to make on this basis. Please consider
3346 # this option to be deprecated. FIXME.
3347 if test x${is_cross_compiler} = xyes ; then
3348 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3351 # Default to --enable-multilib.
3352 if test x${enable_multilib} = x ; then
3353 target_configargs="--enable-multilib ${target_configargs}"
3356 # Pass --with-newlib if appropriate. Note that target_configdirs has
3357 # changed from the earlier setting of with_newlib.
3358 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3359 target_configargs="--with-newlib ${target_configargs}"
3362 # Different target subdirs use different values of certain variables
3363 # (notably CXX). Worse, multilibs use *lots* of different values.
3364 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3365 # it doesn't automatically accept command-line overrides of them.
3366 # This means it's not safe for target subdirs to share a cache file,
3367 # which is disgusting, but there you have it. Hopefully this can be
3368 # fixed in future. It's still worthwhile to use a cache file for each
3369 # directory. I think.
3371 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3372 # We need to pass --target, as newer autoconf's requires consistency
3373 # for target_alias and gcc doesn't manage it consistently.
3374 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3376 FLAGS_FOR_TARGET=
3377 case " $target_configdirs " in
3378 *" newlib "*)
3379 case " $target_configargs " in
3380 *" --with-newlib "*)
3381 case "$target" in
3382 *-cygwin*)
3383 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' ;;
3384 esac
3386 # If we're not building GCC, don't discard standard headers.
3387 if test -d ${srcdir}/gcc; then
3388 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3390 if test "${build}" != "${host}"; then
3391 # On Canadian crosses, CC_FOR_TARGET will have already been set
3392 # by `configure', so we won't have an opportunity to add -Bgcc/
3393 # to it. This is right: we don't want to search that directory
3394 # for binaries, but we want the header files in there, so add
3395 # them explicitly.
3396 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3398 # Someone might think of using the pre-installed headers on
3399 # Canadian crosses, in case the installed compiler is not fully
3400 # compatible with the compiler being built. In this case, it
3401 # would be better to flag an error than risking having
3402 # incompatible object files being constructed. We can't
3403 # guarantee that an error will be flagged, but let's hope the
3404 # compiler will do it, when presented with incompatible header
3405 # files.
3409 case "${target}-${is_cross_compiler}" in
3410 i[3456789]86-*-linux*-no)
3411 # Here host == target, so we don't need to build gcc,
3412 # so we don't want to discard standard headers.
3413 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3416 # If we're building newlib, use its generic headers last, but search
3417 # for any libc-related directories first (so make it the last -B
3418 # switch).
3419 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3421 esac
3423 esac
3425 esac
3426 case "$target" in
3427 *-mingw*)
3428 # Can't be handled as Cygwin above since Mingw does not use newlib.
3429 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' ;;
3430 esac
3432 # Allow the user to override the flags for
3433 # our build compiler if desired.
3434 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3436 # On Canadian crosses, we'll be searching the right directories for
3437 # the previously-installed cross compiler, so don't bother to add
3438 # flags for directories within the install tree of the compiler
3439 # being built; programs in there won't even run.
3440 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3441 # Search for pre-installed headers if nothing else fits.
3442 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3445 if test "x${use_gnu_ld}" = x &&
3446 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3447 # Arrange for us to find uninstalled linker scripts.
3448 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3451 # Search for other target-specific linker scripts and such.
3452 case "${target}" in
3453 m32c-*-* )
3454 if test -d ${srcdir}/libgloss/m32c; then
3455 # This is for crt0.o
3456 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3457 # This is for r8c.ld
3458 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3459 # This is for libnosys.a
3460 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3463 esac
3465 # Makefile fragments.
3466 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3468 eval fragval=\$$frag
3469 if test $fragval != /dev/null; then
3470 eval $frag=${srcdir}/$fragval
3472 done
3478 # Miscellanea: directories, flags, etc.
3486 # Build module lists & subconfigure args.
3490 # Host module lists & subconfigure args.
3494 # Target module lists & subconfigure args.
3498 # Build tools.
3502 # Generate default definitions for YACC, M4, LEX and other programs that run
3503 # on the build machine. These are used if the Makefile can't locate these
3504 # programs in objdir.
3505 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3507 for ac_prog in 'bison -y' byacc yacc
3509 # Extract the first word of "$ac_prog", so it can be a program name with args.
3510 set dummy $ac_prog; ac_word=$2
3511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3512 echo "configure:3513: checking for $ac_word" >&5
3513 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3515 else
3516 if test -n "$YACC"; then
3517 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3518 else
3519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3520 ac_dummy="$PATH"
3521 for ac_dir in $ac_dummy; do
3522 test -z "$ac_dir" && ac_dir=.
3523 if test -f $ac_dir/$ac_word; then
3524 ac_cv_prog_YACC="$ac_prog"
3525 break
3527 done
3528 IFS="$ac_save_ifs"
3531 YACC="$ac_cv_prog_YACC"
3532 if test -n "$YACC"; then
3533 echo "$ac_t""$YACC" 1>&6
3534 else
3535 echo "$ac_t""no" 1>&6
3538 test -n "$YACC" && break
3539 done
3540 test -n "$YACC" || YACC="$MISSING bison -y"
3542 case " $build_configdirs " in
3543 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3544 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3545 esac
3547 for ac_prog in bison
3549 # Extract the first word of "$ac_prog", so it can be a program name with args.
3550 set dummy $ac_prog; ac_word=$2
3551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3552 echo "configure:3553: checking for $ac_word" >&5
3553 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3555 else
3556 if test -n "$BISON"; then
3557 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3558 else
3559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3560 ac_dummy="$PATH"
3561 for ac_dir in $ac_dummy; do
3562 test -z "$ac_dir" && ac_dir=.
3563 if test -f $ac_dir/$ac_word; then
3564 ac_cv_prog_BISON="$ac_prog"
3565 break
3567 done
3568 IFS="$ac_save_ifs"
3571 BISON="$ac_cv_prog_BISON"
3572 if test -n "$BISON"; then
3573 echo "$ac_t""$BISON" 1>&6
3574 else
3575 echo "$ac_t""no" 1>&6
3578 test -n "$BISON" && break
3579 done
3580 test -n "$BISON" || BISON="$MISSING bison"
3582 case " $build_configdirs " in
3583 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3584 esac
3586 for ac_prog in gm4 gnum4 m4
3588 # Extract the first word of "$ac_prog", so it can be a program name with args.
3589 set dummy $ac_prog; ac_word=$2
3590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3591 echo "configure:3592: checking for $ac_word" >&5
3592 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3594 else
3595 if test -n "$M4"; then
3596 ac_cv_prog_M4="$M4" # Let the user override the test.
3597 else
3598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3599 ac_dummy="$PATH"
3600 for ac_dir in $ac_dummy; do
3601 test -z "$ac_dir" && ac_dir=.
3602 if test -f $ac_dir/$ac_word; then
3603 ac_cv_prog_M4="$ac_prog"
3604 break
3606 done
3607 IFS="$ac_save_ifs"
3610 M4="$ac_cv_prog_M4"
3611 if test -n "$M4"; then
3612 echo "$ac_t""$M4" 1>&6
3613 else
3614 echo "$ac_t""no" 1>&6
3617 test -n "$M4" && break
3618 done
3619 test -n "$M4" || M4="$MISSING m4"
3621 case " $build_configdirs " in
3622 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3623 esac
3625 for ac_prog in flex lex
3627 # Extract the first word of "$ac_prog", so it can be a program name with args.
3628 set dummy $ac_prog; ac_word=$2
3629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3630 echo "configure:3631: checking for $ac_word" >&5
3631 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3633 else
3634 if test -n "$LEX"; then
3635 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3636 else
3637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3638 ac_dummy="$PATH"
3639 for ac_dir in $ac_dummy; do
3640 test -z "$ac_dir" && ac_dir=.
3641 if test -f $ac_dir/$ac_word; then
3642 ac_cv_prog_LEX="$ac_prog"
3643 break
3645 done
3646 IFS="$ac_save_ifs"
3649 LEX="$ac_cv_prog_LEX"
3650 if test -n "$LEX"; then
3651 echo "$ac_t""$LEX" 1>&6
3652 else
3653 echo "$ac_t""no" 1>&6
3656 test -n "$LEX" && break
3657 done
3658 test -n "$LEX" || LEX="$MISSING flex"
3660 case " $build_configdirs " in
3661 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3662 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3663 esac
3665 for ac_prog in flex
3667 # Extract the first word of "$ac_prog", so it can be a program name with args.
3668 set dummy $ac_prog; ac_word=$2
3669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3670 echo "configure:3671: checking for $ac_word" >&5
3671 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3673 else
3674 if test -n "$FLEX"; then
3675 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3676 else
3677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3678 ac_dummy="$PATH"
3679 for ac_dir in $ac_dummy; do
3680 test -z "$ac_dir" && ac_dir=.
3681 if test -f $ac_dir/$ac_word; then
3682 ac_cv_prog_FLEX="$ac_prog"
3683 break
3685 done
3686 IFS="$ac_save_ifs"
3689 FLEX="$ac_cv_prog_FLEX"
3690 if test -n "$FLEX"; then
3691 echo "$ac_t""$FLEX" 1>&6
3692 else
3693 echo "$ac_t""no" 1>&6
3696 test -n "$FLEX" && break
3697 done
3698 test -n "$FLEX" || FLEX="$MISSING flex"
3700 case " $build_configdirs " in
3701 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3702 esac
3704 for ac_prog in makeinfo
3706 # Extract the first word of "$ac_prog", so it can be a program name with args.
3707 set dummy $ac_prog; ac_word=$2
3708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3709 echo "configure:3710: checking for $ac_word" >&5
3710 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3712 else
3713 if test -n "$MAKEINFO"; then
3714 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3715 else
3716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3717 ac_dummy="$PATH"
3718 for ac_dir in $ac_dummy; do
3719 test -z "$ac_dir" && ac_dir=.
3720 if test -f $ac_dir/$ac_word; then
3721 ac_cv_prog_MAKEINFO="$ac_prog"
3722 break
3724 done
3725 IFS="$ac_save_ifs"
3728 MAKEINFO="$ac_cv_prog_MAKEINFO"
3729 if test -n "$MAKEINFO"; then
3730 echo "$ac_t""$MAKEINFO" 1>&6
3731 else
3732 echo "$ac_t""no" 1>&6
3735 test -n "$MAKEINFO" && break
3736 done
3737 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3739 case " $build_configdirs " in
3740 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3743 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3744 # higher, else we use the "missing" dummy.
3745 if ${MAKEINFO} --version \
3746 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3748 else
3749 MAKEINFO="$MISSING makeinfo"
3753 esac
3755 # FIXME: expect and dejagnu may become build tools?
3757 for ac_prog in expect
3759 # Extract the first word of "$ac_prog", so it can be a program name with args.
3760 set dummy $ac_prog; ac_word=$2
3761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3762 echo "configure:3763: checking for $ac_word" >&5
3763 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3765 else
3766 if test -n "$EXPECT"; then
3767 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3768 else
3769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3770 ac_dummy="$PATH"
3771 for ac_dir in $ac_dummy; do
3772 test -z "$ac_dir" && ac_dir=.
3773 if test -f $ac_dir/$ac_word; then
3774 ac_cv_prog_EXPECT="$ac_prog"
3775 break
3777 done
3778 IFS="$ac_save_ifs"
3781 EXPECT="$ac_cv_prog_EXPECT"
3782 if test -n "$EXPECT"; then
3783 echo "$ac_t""$EXPECT" 1>&6
3784 else
3785 echo "$ac_t""no" 1>&6
3788 test -n "$EXPECT" && break
3789 done
3790 test -n "$EXPECT" || EXPECT="expect"
3792 case " $configdirs " in
3793 *" expect "*)
3794 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3796 esac
3798 for ac_prog in runtest
3800 # Extract the first word of "$ac_prog", so it can be a program name with args.
3801 set dummy $ac_prog; ac_word=$2
3802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3803 echo "configure:3804: checking for $ac_word" >&5
3804 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3806 else
3807 if test -n "$RUNTEST"; then
3808 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3809 else
3810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3811 ac_dummy="$PATH"
3812 for ac_dir in $ac_dummy; do
3813 test -z "$ac_dir" && ac_dir=.
3814 if test -f $ac_dir/$ac_word; then
3815 ac_cv_prog_RUNTEST="$ac_prog"
3816 break
3818 done
3819 IFS="$ac_save_ifs"
3822 RUNTEST="$ac_cv_prog_RUNTEST"
3823 if test -n "$RUNTEST"; then
3824 echo "$ac_t""$RUNTEST" 1>&6
3825 else
3826 echo "$ac_t""no" 1>&6
3829 test -n "$RUNTEST" && break
3830 done
3831 test -n "$RUNTEST" || RUNTEST="runtest"
3833 case " $configdirs " in
3834 *" dejagnu "*)
3835 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
3837 esac
3840 # Host tools.
3841 ncn_tool_prefix=
3842 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3843 ncn_target_tool_prefix=
3844 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3846 for ncn_progname in ar; do
3847 if test -n "$ncn_tool_prefix"; then
3848 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3849 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3851 echo "configure:3852: checking for $ac_word" >&5
3852 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3854 else
3855 if test -n "$AR"; then
3856 ac_cv_prog_AR="$AR" # Let the user override the test.
3857 else
3858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3859 ac_dummy="$PATH"
3860 for ac_dir in $ac_dummy; do
3861 test -z "$ac_dir" && ac_dir=.
3862 if test -f $ac_dir/$ac_word; then
3863 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3864 break
3866 done
3867 IFS="$ac_save_ifs"
3870 AR="$ac_cv_prog_AR"
3871 if test -n "$AR"; then
3872 echo "$ac_t""$AR" 1>&6
3873 else
3874 echo "$ac_t""no" 1>&6
3878 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3880 set dummy ${ncn_progname}; ac_word=$2
3881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3882 echo "configure:3883: checking for $ac_word" >&5
3883 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3885 else
3886 if test -n "$AR"; then
3887 ac_cv_prog_AR="$AR" # Let the user override the test.
3888 else
3889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3890 ac_dummy="$PATH"
3891 for ac_dir in $ac_dummy; do
3892 test -z "$ac_dir" && ac_dir=.
3893 if test -f $ac_dir/$ac_word; then
3894 ac_cv_prog_AR="${ncn_progname}"
3895 break
3897 done
3898 IFS="$ac_save_ifs"
3901 AR="$ac_cv_prog_AR"
3902 if test -n "$AR"; then
3903 echo "$ac_t""$AR" 1>&6
3904 else
3905 echo "$ac_t""no" 1>&6
3909 test -n "$ac_cv_prog_AR" && break
3910 done
3912 if test -z "$ac_cv_prog_AR" ; then
3913 set dummy ar
3914 if test $build = $host ; then
3915 AR="$2"
3916 else
3917 AR="${ncn_tool_prefix}$2"
3921 for ncn_progname in as; do
3922 if test -n "$ncn_tool_prefix"; then
3923 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3924 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3926 echo "configure:3927: checking for $ac_word" >&5
3927 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3928 echo $ac_n "(cached) $ac_c" 1>&6
3929 else
3930 if test -n "$AS"; then
3931 ac_cv_prog_AS="$AS" # Let the user override the test.
3932 else
3933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3934 ac_dummy="$PATH"
3935 for ac_dir in $ac_dummy; do
3936 test -z "$ac_dir" && ac_dir=.
3937 if test -f $ac_dir/$ac_word; then
3938 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3939 break
3941 done
3942 IFS="$ac_save_ifs"
3945 AS="$ac_cv_prog_AS"
3946 if test -n "$AS"; then
3947 echo "$ac_t""$AS" 1>&6
3948 else
3949 echo "$ac_t""no" 1>&6
3953 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3955 set dummy ${ncn_progname}; ac_word=$2
3956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3957 echo "configure:3958: checking for $ac_word" >&5
3958 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3960 else
3961 if test -n "$AS"; then
3962 ac_cv_prog_AS="$AS" # Let the user override the test.
3963 else
3964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3965 ac_dummy="$PATH"
3966 for ac_dir in $ac_dummy; do
3967 test -z "$ac_dir" && ac_dir=.
3968 if test -f $ac_dir/$ac_word; then
3969 ac_cv_prog_AS="${ncn_progname}"
3970 break
3972 done
3973 IFS="$ac_save_ifs"
3976 AS="$ac_cv_prog_AS"
3977 if test -n "$AS"; then
3978 echo "$ac_t""$AS" 1>&6
3979 else
3980 echo "$ac_t""no" 1>&6
3984 test -n "$ac_cv_prog_AS" && break
3985 done
3987 if test -z "$ac_cv_prog_AS" ; then
3988 set dummy as
3989 if test $build = $host ; then
3990 AS="$2"
3991 else
3992 AS="${ncn_tool_prefix}$2"
3996 for ncn_progname in dlltool; do
3997 if test -n "$ncn_tool_prefix"; then
3998 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3999 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4001 echo "configure:4002: checking for $ac_word" >&5
4002 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4004 else
4005 if test -n "$DLLTOOL"; then
4006 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4007 else
4008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4009 ac_dummy="$PATH"
4010 for ac_dir in $ac_dummy; do
4011 test -z "$ac_dir" && ac_dir=.
4012 if test -f $ac_dir/$ac_word; then
4013 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
4014 break
4016 done
4017 IFS="$ac_save_ifs"
4020 DLLTOOL="$ac_cv_prog_DLLTOOL"
4021 if test -n "$DLLTOOL"; then
4022 echo "$ac_t""$DLLTOOL" 1>&6
4023 else
4024 echo "$ac_t""no" 1>&6
4028 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
4029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4030 set dummy ${ncn_progname}; ac_word=$2
4031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4032 echo "configure:4033: checking for $ac_word" >&5
4033 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4034 echo $ac_n "(cached) $ac_c" 1>&6
4035 else
4036 if test -n "$DLLTOOL"; then
4037 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4038 else
4039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4040 ac_dummy="$PATH"
4041 for ac_dir in $ac_dummy; do
4042 test -z "$ac_dir" && ac_dir=.
4043 if test -f $ac_dir/$ac_word; then
4044 ac_cv_prog_DLLTOOL="${ncn_progname}"
4045 break
4047 done
4048 IFS="$ac_save_ifs"
4051 DLLTOOL="$ac_cv_prog_DLLTOOL"
4052 if test -n "$DLLTOOL"; then
4053 echo "$ac_t""$DLLTOOL" 1>&6
4054 else
4055 echo "$ac_t""no" 1>&6
4059 test -n "$ac_cv_prog_DLLTOOL" && break
4060 done
4062 if test -z "$ac_cv_prog_DLLTOOL" ; then
4063 set dummy dlltool
4064 if test $build = $host ; then
4065 DLLTOOL="$2"
4066 else
4067 DLLTOOL="${ncn_tool_prefix}$2"
4071 for ncn_progname in ld; do
4072 if test -n "$ncn_tool_prefix"; then
4073 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4074 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4076 echo "configure:4077: checking for $ac_word" >&5
4077 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4078 echo $ac_n "(cached) $ac_c" 1>&6
4079 else
4080 if test -n "$LD"; then
4081 ac_cv_prog_LD="$LD" # Let the user override the test.
4082 else
4083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4084 ac_dummy="$PATH"
4085 for ac_dir in $ac_dummy; do
4086 test -z "$ac_dir" && ac_dir=.
4087 if test -f $ac_dir/$ac_word; then
4088 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4089 break
4091 done
4092 IFS="$ac_save_ifs"
4095 LD="$ac_cv_prog_LD"
4096 if test -n "$LD"; then
4097 echo "$ac_t""$LD" 1>&6
4098 else
4099 echo "$ac_t""no" 1>&6
4103 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4105 set dummy ${ncn_progname}; ac_word=$2
4106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4107 echo "configure:4108: checking for $ac_word" >&5
4108 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4110 else
4111 if test -n "$LD"; then
4112 ac_cv_prog_LD="$LD" # Let the user override the test.
4113 else
4114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4115 ac_dummy="$PATH"
4116 for ac_dir in $ac_dummy; do
4117 test -z "$ac_dir" && ac_dir=.
4118 if test -f $ac_dir/$ac_word; then
4119 ac_cv_prog_LD="${ncn_progname}"
4120 break
4122 done
4123 IFS="$ac_save_ifs"
4126 LD="$ac_cv_prog_LD"
4127 if test -n "$LD"; then
4128 echo "$ac_t""$LD" 1>&6
4129 else
4130 echo "$ac_t""no" 1>&6
4134 test -n "$ac_cv_prog_LD" && break
4135 done
4137 if test -z "$ac_cv_prog_LD" ; then
4138 set dummy ld
4139 if test $build = $host ; then
4140 LD="$2"
4141 else
4142 LD="${ncn_tool_prefix}$2"
4146 for ncn_progname in lipo; do
4147 if test -n "$ncn_tool_prefix"; then
4148 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4149 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4151 echo "configure:4152: checking for $ac_word" >&5
4152 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4153 echo $ac_n "(cached) $ac_c" 1>&6
4154 else
4155 if test -n "$LIPO"; then
4156 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4157 else
4158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4159 ac_dummy="$PATH"
4160 for ac_dir in $ac_dummy; do
4161 test -z "$ac_dir" && ac_dir=.
4162 if test -f $ac_dir/$ac_word; then
4163 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4164 break
4166 done
4167 IFS="$ac_save_ifs"
4170 LIPO="$ac_cv_prog_LIPO"
4171 if test -n "$LIPO"; then
4172 echo "$ac_t""$LIPO" 1>&6
4173 else
4174 echo "$ac_t""no" 1>&6
4178 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4180 set dummy ${ncn_progname}; ac_word=$2
4181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4182 echo "configure:4183: checking for $ac_word" >&5
4183 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4185 else
4186 if test -n "$LIPO"; then
4187 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4188 else
4189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4190 ac_dummy="$PATH"
4191 for ac_dir in $ac_dummy; do
4192 test -z "$ac_dir" && ac_dir=.
4193 if test -f $ac_dir/$ac_word; then
4194 ac_cv_prog_LIPO="${ncn_progname}"
4195 break
4197 done
4198 IFS="$ac_save_ifs"
4201 LIPO="$ac_cv_prog_LIPO"
4202 if test -n "$LIPO"; then
4203 echo "$ac_t""$LIPO" 1>&6
4204 else
4205 echo "$ac_t""no" 1>&6
4209 test -n "$ac_cv_prog_LIPO" && break
4210 done
4212 if test -z "$ac_cv_prog_LIPO" ; then
4213 set dummy lipo
4214 if test $build = $host ; then
4215 LIPO="$2"
4216 else
4217 LIPO="${ncn_tool_prefix}$2"
4221 for ncn_progname in nm; do
4222 if test -n "$ncn_tool_prefix"; then
4223 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4224 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4226 echo "configure:4227: checking for $ac_word" >&5
4227 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4228 echo $ac_n "(cached) $ac_c" 1>&6
4229 else
4230 if test -n "$NM"; then
4231 ac_cv_prog_NM="$NM" # Let the user override the test.
4232 else
4233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4234 ac_dummy="$PATH"
4235 for ac_dir in $ac_dummy; do
4236 test -z "$ac_dir" && ac_dir=.
4237 if test -f $ac_dir/$ac_word; then
4238 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4239 break
4241 done
4242 IFS="$ac_save_ifs"
4245 NM="$ac_cv_prog_NM"
4246 if test -n "$NM"; then
4247 echo "$ac_t""$NM" 1>&6
4248 else
4249 echo "$ac_t""no" 1>&6
4253 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4255 set dummy ${ncn_progname}; ac_word=$2
4256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4257 echo "configure:4258: checking for $ac_word" >&5
4258 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4260 else
4261 if test -n "$NM"; then
4262 ac_cv_prog_NM="$NM" # Let the user override the test.
4263 else
4264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4265 ac_dummy="$PATH"
4266 for ac_dir in $ac_dummy; do
4267 test -z "$ac_dir" && ac_dir=.
4268 if test -f $ac_dir/$ac_word; then
4269 ac_cv_prog_NM="${ncn_progname}"
4270 break
4272 done
4273 IFS="$ac_save_ifs"
4276 NM="$ac_cv_prog_NM"
4277 if test -n "$NM"; then
4278 echo "$ac_t""$NM" 1>&6
4279 else
4280 echo "$ac_t""no" 1>&6
4284 test -n "$ac_cv_prog_NM" && break
4285 done
4287 if test -z "$ac_cv_prog_NM" ; then
4288 set dummy nm
4289 if test $build = $host ; then
4290 NM="$2"
4291 else
4292 NM="${ncn_tool_prefix}$2"
4296 for ncn_progname in ranlib; do
4297 if test -n "$ncn_tool_prefix"; then
4298 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4299 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4301 echo "configure:4302: checking for $ac_word" >&5
4302 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4303 echo $ac_n "(cached) $ac_c" 1>&6
4304 else
4305 if test -n "$RANLIB"; then
4306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4307 else
4308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4309 ac_dummy="$PATH"
4310 for ac_dir in $ac_dummy; do
4311 test -z "$ac_dir" && ac_dir=.
4312 if test -f $ac_dir/$ac_word; then
4313 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4314 break
4316 done
4317 IFS="$ac_save_ifs"
4320 RANLIB="$ac_cv_prog_RANLIB"
4321 if test -n "$RANLIB"; then
4322 echo "$ac_t""$RANLIB" 1>&6
4323 else
4324 echo "$ac_t""no" 1>&6
4328 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4330 set dummy ${ncn_progname}; ac_word=$2
4331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4332 echo "configure:4333: checking for $ac_word" >&5
4333 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4334 echo $ac_n "(cached) $ac_c" 1>&6
4335 else
4336 if test -n "$RANLIB"; then
4337 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4338 else
4339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4340 ac_dummy="$PATH"
4341 for ac_dir in $ac_dummy; do
4342 test -z "$ac_dir" && ac_dir=.
4343 if test -f $ac_dir/$ac_word; then
4344 ac_cv_prog_RANLIB="${ncn_progname}"
4345 break
4347 done
4348 IFS="$ac_save_ifs"
4351 RANLIB="$ac_cv_prog_RANLIB"
4352 if test -n "$RANLIB"; then
4353 echo "$ac_t""$RANLIB" 1>&6
4354 else
4355 echo "$ac_t""no" 1>&6
4359 test -n "$ac_cv_prog_RANLIB" && break
4360 done
4362 if test -z "$ac_cv_prog_RANLIB" ; then
4363 RANLIB=":"
4366 for ncn_progname in strip; do
4367 if test -n "$ncn_tool_prefix"; then
4368 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4369 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4371 echo "configure:4372: checking for $ac_word" >&5
4372 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4374 else
4375 if test -n "$STRIP"; then
4376 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4377 else
4378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4379 ac_dummy="$PATH"
4380 for ac_dir in $ac_dummy; do
4381 test -z "$ac_dir" && ac_dir=.
4382 if test -f $ac_dir/$ac_word; then
4383 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4384 break
4386 done
4387 IFS="$ac_save_ifs"
4390 STRIP="$ac_cv_prog_STRIP"
4391 if test -n "$STRIP"; then
4392 echo "$ac_t""$STRIP" 1>&6
4393 else
4394 echo "$ac_t""no" 1>&6
4398 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4400 set dummy ${ncn_progname}; ac_word=$2
4401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4402 echo "configure:4403: checking for $ac_word" >&5
4403 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4405 else
4406 if test -n "$STRIP"; then
4407 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4408 else
4409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4410 ac_dummy="$PATH"
4411 for ac_dir in $ac_dummy; do
4412 test -z "$ac_dir" && ac_dir=.
4413 if test -f $ac_dir/$ac_word; then
4414 ac_cv_prog_STRIP="${ncn_progname}"
4415 break
4417 done
4418 IFS="$ac_save_ifs"
4421 STRIP="$ac_cv_prog_STRIP"
4422 if test -n "$STRIP"; then
4423 echo "$ac_t""$STRIP" 1>&6
4424 else
4425 echo "$ac_t""no" 1>&6
4429 test -n "$ac_cv_prog_STRIP" && break
4430 done
4432 if test -z "$ac_cv_prog_STRIP" ; then
4433 STRIP=":"
4436 for ncn_progname in windres; do
4437 if test -n "$ncn_tool_prefix"; then
4438 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4439 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4441 echo "configure:4442: checking for $ac_word" >&5
4442 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4444 else
4445 if test -n "$WINDRES"; then
4446 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4447 else
4448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4449 ac_dummy="$PATH"
4450 for ac_dir in $ac_dummy; do
4451 test -z "$ac_dir" && ac_dir=.
4452 if test -f $ac_dir/$ac_word; then
4453 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4454 break
4456 done
4457 IFS="$ac_save_ifs"
4460 WINDRES="$ac_cv_prog_WINDRES"
4461 if test -n "$WINDRES"; then
4462 echo "$ac_t""$WINDRES" 1>&6
4463 else
4464 echo "$ac_t""no" 1>&6
4468 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4470 set dummy ${ncn_progname}; ac_word=$2
4471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4472 echo "configure:4473: checking for $ac_word" >&5
4473 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4475 else
4476 if test -n "$WINDRES"; then
4477 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4478 else
4479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4480 ac_dummy="$PATH"
4481 for ac_dir in $ac_dummy; do
4482 test -z "$ac_dir" && ac_dir=.
4483 if test -f $ac_dir/$ac_word; then
4484 ac_cv_prog_WINDRES="${ncn_progname}"
4485 break
4487 done
4488 IFS="$ac_save_ifs"
4491 WINDRES="$ac_cv_prog_WINDRES"
4492 if test -n "$WINDRES"; then
4493 echo "$ac_t""$WINDRES" 1>&6
4494 else
4495 echo "$ac_t""no" 1>&6
4499 test -n "$ac_cv_prog_WINDRES" && break
4500 done
4502 if test -z "$ac_cv_prog_WINDRES" ; then
4503 set dummy windres
4504 if test $build = $host ; then
4505 WINDRES="$2"
4506 else
4507 WINDRES="${ncn_tool_prefix}$2"
4511 for ncn_progname in objcopy; do
4512 if test -n "$ncn_tool_prefix"; then
4513 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4514 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4516 echo "configure:4517: checking for $ac_word" >&5
4517 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4519 else
4520 if test -n "$OBJCOPY"; then
4521 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4522 else
4523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4524 ac_dummy="$PATH"
4525 for ac_dir in $ac_dummy; do
4526 test -z "$ac_dir" && ac_dir=.
4527 if test -f $ac_dir/$ac_word; then
4528 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4529 break
4531 done
4532 IFS="$ac_save_ifs"
4535 OBJCOPY="$ac_cv_prog_OBJCOPY"
4536 if test -n "$OBJCOPY"; then
4537 echo "$ac_t""$OBJCOPY" 1>&6
4538 else
4539 echo "$ac_t""no" 1>&6
4543 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4545 set dummy ${ncn_progname}; ac_word=$2
4546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4547 echo "configure:4548: checking for $ac_word" >&5
4548 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4549 echo $ac_n "(cached) $ac_c" 1>&6
4550 else
4551 if test -n "$OBJCOPY"; then
4552 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4553 else
4554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4555 ac_dummy="$PATH"
4556 for ac_dir in $ac_dummy; do
4557 test -z "$ac_dir" && ac_dir=.
4558 if test -f $ac_dir/$ac_word; then
4559 ac_cv_prog_OBJCOPY="${ncn_progname}"
4560 break
4562 done
4563 IFS="$ac_save_ifs"
4566 OBJCOPY="$ac_cv_prog_OBJCOPY"
4567 if test -n "$OBJCOPY"; then
4568 echo "$ac_t""$OBJCOPY" 1>&6
4569 else
4570 echo "$ac_t""no" 1>&6
4574 test -n "$ac_cv_prog_OBJCOPY" && break
4575 done
4577 if test -z "$ac_cv_prog_OBJCOPY" ; then
4578 set dummy objcopy
4579 if test $build = $host ; then
4580 OBJCOPY="$2"
4581 else
4582 OBJCOPY="${ncn_tool_prefix}$2"
4586 for ncn_progname in objdump; do
4587 if test -n "$ncn_tool_prefix"; then
4588 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4589 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4591 echo "configure:4592: checking for $ac_word" >&5
4592 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4594 else
4595 if test -n "$OBJDUMP"; then
4596 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4597 else
4598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4599 ac_dummy="$PATH"
4600 for ac_dir in $ac_dummy; do
4601 test -z "$ac_dir" && ac_dir=.
4602 if test -f $ac_dir/$ac_word; then
4603 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4604 break
4606 done
4607 IFS="$ac_save_ifs"
4610 OBJDUMP="$ac_cv_prog_OBJDUMP"
4611 if test -n "$OBJDUMP"; then
4612 echo "$ac_t""$OBJDUMP" 1>&6
4613 else
4614 echo "$ac_t""no" 1>&6
4618 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4620 set dummy ${ncn_progname}; ac_word=$2
4621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4622 echo "configure:4623: checking for $ac_word" >&5
4623 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4625 else
4626 if test -n "$OBJDUMP"; then
4627 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4628 else
4629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4630 ac_dummy="$PATH"
4631 for ac_dir in $ac_dummy; do
4632 test -z "$ac_dir" && ac_dir=.
4633 if test -f $ac_dir/$ac_word; then
4634 ac_cv_prog_OBJDUMP="${ncn_progname}"
4635 break
4637 done
4638 IFS="$ac_save_ifs"
4641 OBJDUMP="$ac_cv_prog_OBJDUMP"
4642 if test -n "$OBJDUMP"; then
4643 echo "$ac_t""$OBJDUMP" 1>&6
4644 else
4645 echo "$ac_t""no" 1>&6
4649 test -n "$ac_cv_prog_OBJDUMP" && break
4650 done
4652 if test -z "$ac_cv_prog_OBJDUMP" ; then
4653 set dummy objdump
4654 if test $build = $host ; then
4655 OBJDUMP="$2"
4656 else
4657 OBJDUMP="${ncn_tool_prefix}$2"
4667 # Target tools.
4668 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4669 if test "${with_build_time_tools+set}" = set; then
4670 withval="$with_build_time_tools"
4671 case x"$withval" in
4672 x/*) ;;
4674 with_build_time_tools=
4675 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4677 esac
4678 else
4679 with_build_time_tools=
4683 if test -n "$with_build_time_tools"; then
4684 for ncn_progname in cc gcc; do
4685 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4686 echo "configure:4687: checking for ${ncn_progname} in $with_build_time_tools" >&5
4687 if test -x $with_build_time_tools/${ncn_progname}; then
4688 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4689 echo "$ac_t""yes" 1>&6
4690 break
4691 else
4692 echo "$ac_t""no" 1>&6
4694 done
4697 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4698 for ncn_progname in cc gcc; do
4699 if test -n "$ncn_target_tool_prefix"; then
4700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4701 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4703 echo "configure:4704: checking for $ac_word" >&5
4704 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4706 else
4707 if test -n "$CC_FOR_TARGET"; then
4708 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4709 else
4710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4711 ac_dummy="$PATH"
4712 for ac_dir in $ac_dummy; do
4713 test -z "$ac_dir" && ac_dir=.
4714 if test -f $ac_dir/$ac_word; then
4715 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4716 break
4718 done
4719 IFS="$ac_save_ifs"
4722 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4723 if test -n "$CC_FOR_TARGET"; then
4724 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4725 else
4726 echo "$ac_t""no" 1>&6
4730 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4732 set dummy ${ncn_progname}; ac_word=$2
4733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4734 echo "configure:4735: checking for $ac_word" >&5
4735 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4737 else
4738 if test -n "$CC_FOR_TARGET"; then
4739 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4740 else
4741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4742 ac_dummy="$PATH"
4743 for ac_dir in $ac_dummy; do
4744 test -z "$ac_dir" && ac_dir=.
4745 if test -f $ac_dir/$ac_word; then
4746 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4747 break
4749 done
4750 IFS="$ac_save_ifs"
4753 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4754 if test -n "$CC_FOR_TARGET"; then
4755 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4756 else
4757 echo "$ac_t""no" 1>&6
4761 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4762 done
4765 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4766 set dummy cc gcc
4767 if test $build = $target ; then
4768 CC_FOR_TARGET="$2"
4769 else
4770 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4774 if test -n "$with_build_time_tools"; then
4775 for ncn_progname in c++ g++ cxx gxx; do
4776 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4777 echo "configure:4778: checking for ${ncn_progname} in $with_build_time_tools" >&5
4778 if test -x $with_build_time_tools/${ncn_progname}; then
4779 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4780 echo "$ac_t""yes" 1>&6
4781 break
4782 else
4783 echo "$ac_t""no" 1>&6
4785 done
4788 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4789 for ncn_progname in c++ g++ cxx gxx; do
4790 if test -n "$ncn_target_tool_prefix"; then
4791 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4792 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4794 echo "configure:4795: checking for $ac_word" >&5
4795 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4797 else
4798 if test -n "$CXX_FOR_TARGET"; then
4799 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4800 else
4801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4802 ac_dummy="$PATH"
4803 for ac_dir in $ac_dummy; do
4804 test -z "$ac_dir" && ac_dir=.
4805 if test -f $ac_dir/$ac_word; then
4806 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4807 break
4809 done
4810 IFS="$ac_save_ifs"
4813 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4814 if test -n "$CXX_FOR_TARGET"; then
4815 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4816 else
4817 echo "$ac_t""no" 1>&6
4821 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4823 set dummy ${ncn_progname}; ac_word=$2
4824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4825 echo "configure:4826: checking for $ac_word" >&5
4826 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4828 else
4829 if test -n "$CXX_FOR_TARGET"; then
4830 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4831 else
4832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4833 ac_dummy="$PATH"
4834 for ac_dir in $ac_dummy; do
4835 test -z "$ac_dir" && ac_dir=.
4836 if test -f $ac_dir/$ac_word; then
4837 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4838 break
4840 done
4841 IFS="$ac_save_ifs"
4844 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4845 if test -n "$CXX_FOR_TARGET"; then
4846 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4847 else
4848 echo "$ac_t""no" 1>&6
4852 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4853 done
4856 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4857 set dummy c++ g++ cxx gxx
4858 if test $build = $target ; then
4859 CXX_FOR_TARGET="$2"
4860 else
4861 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4865 if test -n "$with_build_time_tools"; then
4866 for ncn_progname in gcc; do
4867 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4868 echo "configure:4869: checking for ${ncn_progname} in $with_build_time_tools" >&5
4869 if test -x $with_build_time_tools/${ncn_progname}; then
4870 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4871 echo "$ac_t""yes" 1>&6
4872 break
4873 else
4874 echo "$ac_t""no" 1>&6
4876 done
4879 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4880 for ncn_progname in gcc; do
4881 if test -n "$ncn_target_tool_prefix"; then
4882 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4883 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4885 echo "configure:4886: checking for $ac_word" >&5
4886 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4888 else
4889 if test -n "$GCC_FOR_TARGET"; then
4890 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4891 else
4892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4893 ac_dummy="$PATH"
4894 for ac_dir in $ac_dummy; do
4895 test -z "$ac_dir" && ac_dir=.
4896 if test -f $ac_dir/$ac_word; then
4897 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4898 break
4900 done
4901 IFS="$ac_save_ifs"
4904 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4905 if test -n "$GCC_FOR_TARGET"; then
4906 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4907 else
4908 echo "$ac_t""no" 1>&6
4912 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4914 set dummy ${ncn_progname}; ac_word=$2
4915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4916 echo "configure:4917: checking for $ac_word" >&5
4917 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4919 else
4920 if test -n "$GCC_FOR_TARGET"; then
4921 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4922 else
4923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4924 ac_dummy="$PATH"
4925 for ac_dir in $ac_dummy; do
4926 test -z "$ac_dir" && ac_dir=.
4927 if test -f $ac_dir/$ac_word; then
4928 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4929 break
4931 done
4932 IFS="$ac_save_ifs"
4935 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4936 if test -n "$GCC_FOR_TARGET"; then
4937 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4938 else
4939 echo "$ac_t""no" 1>&6
4943 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4944 done
4947 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4948 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4951 if test -n "$with_build_time_tools"; then
4952 for ncn_progname in gcj; do
4953 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4954 echo "configure:4955: checking for ${ncn_progname} in $with_build_time_tools" >&5
4955 if test -x $with_build_time_tools/${ncn_progname}; then
4956 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4957 echo "$ac_t""yes" 1>&6
4958 break
4959 else
4960 echo "$ac_t""no" 1>&6
4962 done
4965 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4966 for ncn_progname in gcj; do
4967 if test -n "$ncn_target_tool_prefix"; then
4968 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4969 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4971 echo "configure:4972: checking for $ac_word" >&5
4972 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4973 echo $ac_n "(cached) $ac_c" 1>&6
4974 else
4975 if test -n "$GCJ_FOR_TARGET"; then
4976 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4977 else
4978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4979 ac_dummy="$PATH"
4980 for ac_dir in $ac_dummy; do
4981 test -z "$ac_dir" && ac_dir=.
4982 if test -f $ac_dir/$ac_word; then
4983 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4984 break
4986 done
4987 IFS="$ac_save_ifs"
4990 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4991 if test -n "$GCJ_FOR_TARGET"; then
4992 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4993 else
4994 echo "$ac_t""no" 1>&6
4998 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4999 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5000 set dummy ${ncn_progname}; ac_word=$2
5001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5002 echo "configure:5003: checking for $ac_word" >&5
5003 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5005 else
5006 if test -n "$GCJ_FOR_TARGET"; then
5007 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
5008 else
5009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5010 ac_dummy="$PATH"
5011 for ac_dir in $ac_dummy; do
5012 test -z "$ac_dir" && ac_dir=.
5013 if test -f $ac_dir/$ac_word; then
5014 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5015 break
5017 done
5018 IFS="$ac_save_ifs"
5021 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5022 if test -n "$GCJ_FOR_TARGET"; then
5023 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
5024 else
5025 echo "$ac_t""no" 1>&6
5029 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
5030 done
5033 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
5034 set dummy gcj
5035 if test $build = $target ; then
5036 GCJ_FOR_TARGET="$2"
5037 else
5038 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
5042 if test -n "$with_build_time_tools"; then
5043 for ncn_progname in gfortran; do
5044 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5045 echo "configure:5046: checking for ${ncn_progname} in $with_build_time_tools" >&5
5046 if test -x $with_build_time_tools/${ncn_progname}; then
5047 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5048 echo "$ac_t""yes" 1>&6
5049 break
5050 else
5051 echo "$ac_t""no" 1>&6
5053 done
5056 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
5057 for ncn_progname in gfortran; do
5058 if test -n "$ncn_target_tool_prefix"; then
5059 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5060 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5062 echo "configure:5063: checking for $ac_word" >&5
5063 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5064 echo $ac_n "(cached) $ac_c" 1>&6
5065 else
5066 if test -n "$GFORTRAN_FOR_TARGET"; then
5067 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5068 else
5069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5070 ac_dummy="$PATH"
5071 for ac_dir in $ac_dummy; do
5072 test -z "$ac_dir" && ac_dir=.
5073 if test -f $ac_dir/$ac_word; then
5074 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5075 break
5077 done
5078 IFS="$ac_save_ifs"
5081 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5082 if test -n "$GFORTRAN_FOR_TARGET"; then
5083 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5084 else
5085 echo "$ac_t""no" 1>&6
5089 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5091 set dummy ${ncn_progname}; ac_word=$2
5092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5093 echo "configure:5094: checking for $ac_word" >&5
5094 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5095 echo $ac_n "(cached) $ac_c" 1>&6
5096 else
5097 if test -n "$GFORTRAN_FOR_TARGET"; then
5098 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5099 else
5100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5101 ac_dummy="$PATH"
5102 for ac_dir in $ac_dummy; do
5103 test -z "$ac_dir" && ac_dir=.
5104 if test -f $ac_dir/$ac_word; then
5105 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5106 break
5108 done
5109 IFS="$ac_save_ifs"
5112 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5113 if test -n "$GFORTRAN_FOR_TARGET"; then
5114 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5115 else
5116 echo "$ac_t""no" 1>&6
5120 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5121 done
5124 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5125 set dummy gfortran
5126 if test $build = $target ; then
5127 GFORTRAN_FOR_TARGET="$2"
5128 else
5129 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5135 # The user is always right.
5136 if test "${PATH_SEPARATOR+set}" != set; then
5137 echo "#! /bin/sh" >conf$$.sh
5138 echo "exit 0" >>conf$$.sh
5139 chmod +x conf$$.sh
5140 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5141 PATH_SEPARATOR=';'
5142 else
5143 PATH_SEPARATOR=:
5145 rm -f conf$$.sh
5150 if test "x$exec_prefix" = xNONE; then
5151 if test "x$prefix" = xNONE; then
5152 gcc_cv_tool_prefix=$ac_default_prefix
5153 else
5154 gcc_cv_tool_prefix=$prefix
5156 else
5157 gcc_cv_tool_prefix=$exec_prefix
5160 # If there is no compiler in the tree, use the PATH only. In any
5161 # case, if there is no compiler in the tree nobody should use
5162 # AS_FOR_TARGET and LD_FOR_TARGET.
5163 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5164 gcc_version=`cat $srcdir/gcc/BASE-VER`
5165 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5166 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5167 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5168 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5169 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5170 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5171 else
5172 gcc_cv_tool_dirs=
5175 if test x$build = x$target && test -n "$md_exec_prefix"; then
5176 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5181 cat > conftest.c << \EOF
5182 #ifdef __GNUC__
5183 gcc_yay;
5184 #endif
5186 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5187 have_gcc_for_target=yes
5188 else
5189 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5190 have_gcc_for_target=no
5192 rm conftest.c
5197 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5198 if test -n "$with_build_time_tools"; then
5199 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5200 echo "configure:5201: checking for ar in $with_build_time_tools" >&5
5201 if test -x $with_build_time_tools/ar; then
5202 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
5203 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5204 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5205 else
5206 echo "$ac_t""no" 1>&6
5208 elif test $build != $host && test $have_gcc_for_target = yes; then
5209 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5210 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5211 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5214 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5215 # Extract the first word of "ar", so it can be a program name with args.
5216 set dummy ar; ac_word=$2
5217 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5218 echo "configure:5219: checking for $ac_word" >&5
5219 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5220 echo $ac_n "(cached) $ac_c" 1>&6
5221 else
5222 case "$AR_FOR_TARGET" in
5224 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5226 ?:/*)
5227 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5231 ac_dummy="$gcc_cv_tool_dirs"
5232 for ac_dir in $ac_dummy; do
5233 test -z "$ac_dir" && ac_dir=.
5234 if test -f $ac_dir/$ac_word; then
5235 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
5236 break
5238 done
5239 IFS="$ac_save_ifs"
5241 esac
5243 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5244 if test -n "$AR_FOR_TARGET"; then
5245 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5246 else
5247 echo "$ac_t""no" 1>&6
5251 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5252 if test -n "$with_build_time_tools"; then
5253 for ncn_progname in ar; do
5254 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5255 echo "configure:5256: checking for ${ncn_progname} in $with_build_time_tools" >&5
5256 if test -x $with_build_time_tools/${ncn_progname}; then
5257 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5258 echo "$ac_t""yes" 1>&6
5259 break
5260 else
5261 echo "$ac_t""no" 1>&6
5263 done
5266 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5267 for ncn_progname in ar; do
5268 if test -n "$ncn_target_tool_prefix"; then
5269 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5270 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5272 echo "configure:5273: checking for $ac_word" >&5
5273 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5275 else
5276 if test -n "$AR_FOR_TARGET"; then
5277 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5278 else
5279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5280 ac_dummy="$PATH"
5281 for ac_dir in $ac_dummy; do
5282 test -z "$ac_dir" && ac_dir=.
5283 if test -f $ac_dir/$ac_word; then
5284 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5285 break
5287 done
5288 IFS="$ac_save_ifs"
5291 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5292 if test -n "$AR_FOR_TARGET"; then
5293 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5294 else
5295 echo "$ac_t""no" 1>&6
5299 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5301 set dummy ${ncn_progname}; ac_word=$2
5302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5303 echo "configure:5304: checking for $ac_word" >&5
5304 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6
5306 else
5307 if test -n "$AR_FOR_TARGET"; then
5308 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5309 else
5310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5311 ac_dummy="$PATH"
5312 for ac_dir in $ac_dummy; do
5313 test -z "$ac_dir" && ac_dir=.
5314 if test -f $ac_dir/$ac_word; then
5315 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5316 break
5318 done
5319 IFS="$ac_save_ifs"
5322 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5323 if test -n "$AR_FOR_TARGET"; then
5324 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5325 else
5326 echo "$ac_t""no" 1>&6
5330 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5331 done
5334 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5335 set dummy ar
5336 if test $build = $target ; then
5337 AR_FOR_TARGET="$2"
5338 else
5339 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
5343 else
5344 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5350 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5351 if test -n "$with_build_time_tools"; then
5352 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5353 echo "configure:5354: checking for as in $with_build_time_tools" >&5
5354 if test -x $with_build_time_tools/as; then
5355 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
5356 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5357 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5358 else
5359 echo "$ac_t""no" 1>&6
5361 elif test $build != $host && test $have_gcc_for_target = yes; then
5362 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5363 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5364 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5367 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5368 # Extract the first word of "as", so it can be a program name with args.
5369 set dummy as; ac_word=$2
5370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5371 echo "configure:5372: checking for $ac_word" >&5
5372 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5373 echo $ac_n "(cached) $ac_c" 1>&6
5374 else
5375 case "$AS_FOR_TARGET" in
5377 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5379 ?:/*)
5380 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5384 ac_dummy="$gcc_cv_tool_dirs"
5385 for ac_dir in $ac_dummy; do
5386 test -z "$ac_dir" && ac_dir=.
5387 if test -f $ac_dir/$ac_word; then
5388 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5389 break
5391 done
5392 IFS="$ac_save_ifs"
5394 esac
5396 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5397 if test -n "$AS_FOR_TARGET"; then
5398 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5399 else
5400 echo "$ac_t""no" 1>&6
5404 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5405 if test -n "$with_build_time_tools"; then
5406 for ncn_progname in as; do
5407 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5408 echo "configure:5409: checking for ${ncn_progname} in $with_build_time_tools" >&5
5409 if test -x $with_build_time_tools/${ncn_progname}; then
5410 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5411 echo "$ac_t""yes" 1>&6
5412 break
5413 else
5414 echo "$ac_t""no" 1>&6
5416 done
5419 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5420 for ncn_progname in as; do
5421 if test -n "$ncn_target_tool_prefix"; then
5422 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5423 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5425 echo "configure:5426: checking for $ac_word" >&5
5426 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5427 echo $ac_n "(cached) $ac_c" 1>&6
5428 else
5429 if test -n "$AS_FOR_TARGET"; then
5430 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5431 else
5432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5433 ac_dummy="$PATH"
5434 for ac_dir in $ac_dummy; do
5435 test -z "$ac_dir" && ac_dir=.
5436 if test -f $ac_dir/$ac_word; then
5437 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5438 break
5440 done
5441 IFS="$ac_save_ifs"
5444 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5445 if test -n "$AS_FOR_TARGET"; then
5446 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5447 else
5448 echo "$ac_t""no" 1>&6
5452 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5454 set dummy ${ncn_progname}; ac_word=$2
5455 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5456 echo "configure:5457: checking for $ac_word" >&5
5457 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5458 echo $ac_n "(cached) $ac_c" 1>&6
5459 else
5460 if test -n "$AS_FOR_TARGET"; then
5461 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5462 else
5463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5464 ac_dummy="$PATH"
5465 for ac_dir in $ac_dummy; do
5466 test -z "$ac_dir" && ac_dir=.
5467 if test -f $ac_dir/$ac_word; then
5468 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5469 break
5471 done
5472 IFS="$ac_save_ifs"
5475 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5476 if test -n "$AS_FOR_TARGET"; then
5477 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5478 else
5479 echo "$ac_t""no" 1>&6
5483 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5484 done
5487 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5488 set dummy as
5489 if test $build = $target ; then
5490 AS_FOR_TARGET="$2"
5491 else
5492 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5496 else
5497 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5503 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5504 if test -n "$with_build_time_tools"; then
5505 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5506 echo "configure:5507: checking for dlltool in $with_build_time_tools" >&5
5507 if test -x $with_build_time_tools/dlltool; then
5508 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
5509 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5510 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5511 else
5512 echo "$ac_t""no" 1>&6
5514 elif test $build != $host && test $have_gcc_for_target = yes; then
5515 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5516 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5517 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5520 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5521 # Extract the first word of "dlltool", so it can be a program name with args.
5522 set dummy dlltool; ac_word=$2
5523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5524 echo "configure:5525: checking for $ac_word" >&5
5525 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5526 echo $ac_n "(cached) $ac_c" 1>&6
5527 else
5528 case "$DLLTOOL_FOR_TARGET" in
5530 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5532 ?:/*)
5533 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5537 ac_dummy="$gcc_cv_tool_dirs"
5538 for ac_dir in $ac_dummy; do
5539 test -z "$ac_dir" && ac_dir=.
5540 if test -f $ac_dir/$ac_word; then
5541 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5542 break
5544 done
5545 IFS="$ac_save_ifs"
5547 esac
5549 DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5550 if test -n "$DLLTOOL_FOR_TARGET"; then
5551 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5552 else
5553 echo "$ac_t""no" 1>&6
5557 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5558 if test -n "$with_build_time_tools"; then
5559 for ncn_progname in dlltool; do
5560 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5561 echo "configure:5562: checking for ${ncn_progname} in $with_build_time_tools" >&5
5562 if test -x $with_build_time_tools/${ncn_progname}; then
5563 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5564 echo "$ac_t""yes" 1>&6
5565 break
5566 else
5567 echo "$ac_t""no" 1>&6
5569 done
5572 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5573 for ncn_progname in dlltool; do
5574 if test -n "$ncn_target_tool_prefix"; then
5575 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5576 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5578 echo "configure:5579: checking for $ac_word" >&5
5579 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5580 echo $ac_n "(cached) $ac_c" 1>&6
5581 else
5582 if test -n "$DLLTOOL_FOR_TARGET"; then
5583 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5584 else
5585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5586 ac_dummy="$PATH"
5587 for ac_dir in $ac_dummy; do
5588 test -z "$ac_dir" && ac_dir=.
5589 if test -f $ac_dir/$ac_word; then
5590 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5591 break
5593 done
5594 IFS="$ac_save_ifs"
5597 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5598 if test -n "$DLLTOOL_FOR_TARGET"; then
5599 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5600 else
5601 echo "$ac_t""no" 1>&6
5605 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5607 set dummy ${ncn_progname}; ac_word=$2
5608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5609 echo "configure:5610: checking for $ac_word" >&5
5610 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5611 echo $ac_n "(cached) $ac_c" 1>&6
5612 else
5613 if test -n "$DLLTOOL_FOR_TARGET"; then
5614 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5615 else
5616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5617 ac_dummy="$PATH"
5618 for ac_dir in $ac_dummy; do
5619 test -z "$ac_dir" && ac_dir=.
5620 if test -f $ac_dir/$ac_word; then
5621 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5622 break
5624 done
5625 IFS="$ac_save_ifs"
5628 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5629 if test -n "$DLLTOOL_FOR_TARGET"; then
5630 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5631 else
5632 echo "$ac_t""no" 1>&6
5636 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5637 done
5640 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5641 set dummy dlltool
5642 if test $build = $target ; then
5643 DLLTOOL_FOR_TARGET="$2"
5644 else
5645 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5649 else
5650 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5656 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5657 if test -n "$with_build_time_tools"; then
5658 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5659 echo "configure:5660: checking for ld in $with_build_time_tools" >&5
5660 if test -x $with_build_time_tools/ld; then
5661 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
5662 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5663 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5664 else
5665 echo "$ac_t""no" 1>&6
5667 elif test $build != $host && test $have_gcc_for_target = yes; then
5668 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5669 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5670 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5673 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5674 # Extract the first word of "ld", so it can be a program name with args.
5675 set dummy ld; ac_word=$2
5676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5677 echo "configure:5678: checking for $ac_word" >&5
5678 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5679 echo $ac_n "(cached) $ac_c" 1>&6
5680 else
5681 case "$LD_FOR_TARGET" in
5683 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5685 ?:/*)
5686 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5690 ac_dummy="$gcc_cv_tool_dirs"
5691 for ac_dir in $ac_dummy; do
5692 test -z "$ac_dir" && ac_dir=.
5693 if test -f $ac_dir/$ac_word; then
5694 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5695 break
5697 done
5698 IFS="$ac_save_ifs"
5700 esac
5702 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5703 if test -n "$LD_FOR_TARGET"; then
5704 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5705 else
5706 echo "$ac_t""no" 1>&6
5710 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5711 if test -n "$with_build_time_tools"; then
5712 for ncn_progname in ld; do
5713 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5714 echo "configure:5715: checking for ${ncn_progname} in $with_build_time_tools" >&5
5715 if test -x $with_build_time_tools/${ncn_progname}; then
5716 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5717 echo "$ac_t""yes" 1>&6
5718 break
5719 else
5720 echo "$ac_t""no" 1>&6
5722 done
5725 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5726 for ncn_progname in ld; do
5727 if test -n "$ncn_target_tool_prefix"; then
5728 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5729 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5731 echo "configure:5732: checking for $ac_word" >&5
5732 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5733 echo $ac_n "(cached) $ac_c" 1>&6
5734 else
5735 if test -n "$LD_FOR_TARGET"; then
5736 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5737 else
5738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5739 ac_dummy="$PATH"
5740 for ac_dir in $ac_dummy; do
5741 test -z "$ac_dir" && ac_dir=.
5742 if test -f $ac_dir/$ac_word; then
5743 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5744 break
5746 done
5747 IFS="$ac_save_ifs"
5750 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5751 if test -n "$LD_FOR_TARGET"; then
5752 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5753 else
5754 echo "$ac_t""no" 1>&6
5758 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5760 set dummy ${ncn_progname}; ac_word=$2
5761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5762 echo "configure:5763: checking for $ac_word" >&5
5763 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5764 echo $ac_n "(cached) $ac_c" 1>&6
5765 else
5766 if test -n "$LD_FOR_TARGET"; then
5767 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5768 else
5769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5770 ac_dummy="$PATH"
5771 for ac_dir in $ac_dummy; do
5772 test -z "$ac_dir" && ac_dir=.
5773 if test -f $ac_dir/$ac_word; then
5774 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5775 break
5777 done
5778 IFS="$ac_save_ifs"
5781 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5782 if test -n "$LD_FOR_TARGET"; then
5783 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5784 else
5785 echo "$ac_t""no" 1>&6
5789 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5790 done
5793 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5794 set dummy ld
5795 if test $build = $target ; then
5796 LD_FOR_TARGET="$2"
5797 else
5798 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5802 else
5803 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5809 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5810 if test -n "$with_build_time_tools"; then
5811 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5812 echo "configure:5813: checking for lipo in $with_build_time_tools" >&5
5813 if test -x $with_build_time_tools/lipo; then
5814 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
5815 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5816 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5817 else
5818 echo "$ac_t""no" 1>&6
5820 elif test $build != $host && test $have_gcc_for_target = yes; then
5821 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5822 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5823 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5826 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5827 # Extract the first word of "lipo", so it can be a program name with args.
5828 set dummy lipo; ac_word=$2
5829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5830 echo "configure:5831: checking for $ac_word" >&5
5831 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5833 else
5834 case "$LIPO_FOR_TARGET" in
5836 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5838 ?:/*)
5839 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5843 ac_dummy="$gcc_cv_tool_dirs"
5844 for ac_dir in $ac_dummy; do
5845 test -z "$ac_dir" && ac_dir=.
5846 if test -f $ac_dir/$ac_word; then
5847 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5848 break
5850 done
5851 IFS="$ac_save_ifs"
5853 esac
5855 LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5856 if test -n "$LIPO_FOR_TARGET"; then
5857 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5858 else
5859 echo "$ac_t""no" 1>&6
5863 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5864 if test -n "$with_build_time_tools"; then
5865 for ncn_progname in lipo; do
5866 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5867 echo "configure:5868: checking for ${ncn_progname} in $with_build_time_tools" >&5
5868 if test -x $with_build_time_tools/${ncn_progname}; then
5869 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5870 echo "$ac_t""yes" 1>&6
5871 break
5872 else
5873 echo "$ac_t""no" 1>&6
5875 done
5878 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5879 for ncn_progname in lipo; do
5880 if test -n "$ncn_target_tool_prefix"; then
5881 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5882 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5884 echo "configure:5885: checking for $ac_word" >&5
5885 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5886 echo $ac_n "(cached) $ac_c" 1>&6
5887 else
5888 if test -n "$LIPO_FOR_TARGET"; then
5889 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5890 else
5891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5892 ac_dummy="$PATH"
5893 for ac_dir in $ac_dummy; do
5894 test -z "$ac_dir" && ac_dir=.
5895 if test -f $ac_dir/$ac_word; then
5896 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5897 break
5899 done
5900 IFS="$ac_save_ifs"
5903 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5904 if test -n "$LIPO_FOR_TARGET"; then
5905 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5906 else
5907 echo "$ac_t""no" 1>&6
5911 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5913 set dummy ${ncn_progname}; ac_word=$2
5914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5915 echo "configure:5916: checking for $ac_word" >&5
5916 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5917 echo $ac_n "(cached) $ac_c" 1>&6
5918 else
5919 if test -n "$LIPO_FOR_TARGET"; then
5920 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5921 else
5922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5923 ac_dummy="$PATH"
5924 for ac_dir in $ac_dummy; do
5925 test -z "$ac_dir" && ac_dir=.
5926 if test -f $ac_dir/$ac_word; then
5927 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5928 break
5930 done
5931 IFS="$ac_save_ifs"
5934 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5935 if test -n "$LIPO_FOR_TARGET"; then
5936 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5937 else
5938 echo "$ac_t""no" 1>&6
5942 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5943 done
5946 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5947 set dummy lipo
5948 if test $build = $target ; then
5949 LIPO_FOR_TARGET="$2"
5950 else
5951 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5955 else
5956 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
5962 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5963 if test -n "$with_build_time_tools"; then
5964 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5965 echo "configure:5966: checking for nm in $with_build_time_tools" >&5
5966 if test -x $with_build_time_tools/nm; then
5967 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
5968 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5969 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5970 else
5971 echo "$ac_t""no" 1>&6
5973 elif test $build != $host && test $have_gcc_for_target = yes; then
5974 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
5975 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
5976 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5979 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5980 # Extract the first word of "nm", so it can be a program name with args.
5981 set dummy nm; ac_word=$2
5982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5983 echo "configure:5984: checking for $ac_word" >&5
5984 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5985 echo $ac_n "(cached) $ac_c" 1>&6
5986 else
5987 case "$NM_FOR_TARGET" in
5989 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
5991 ?:/*)
5992 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5996 ac_dummy="$gcc_cv_tool_dirs"
5997 for ac_dir in $ac_dummy; do
5998 test -z "$ac_dir" && ac_dir=.
5999 if test -f $ac_dir/$ac_word; then
6000 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
6001 break
6003 done
6004 IFS="$ac_save_ifs"
6006 esac
6008 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
6009 if test -n "$NM_FOR_TARGET"; then
6010 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6011 else
6012 echo "$ac_t""no" 1>&6
6016 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6017 if test -n "$with_build_time_tools"; then
6018 for ncn_progname in nm; do
6019 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6020 echo "configure:6021: checking for ${ncn_progname} in $with_build_time_tools" >&5
6021 if test -x $with_build_time_tools/${ncn_progname}; then
6022 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6023 echo "$ac_t""yes" 1>&6
6024 break
6025 else
6026 echo "$ac_t""no" 1>&6
6028 done
6031 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
6032 for ncn_progname in nm; do
6033 if test -n "$ncn_target_tool_prefix"; then
6034 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6035 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6037 echo "configure:6038: checking for $ac_word" >&5
6038 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6039 echo $ac_n "(cached) $ac_c" 1>&6
6040 else
6041 if test -n "$NM_FOR_TARGET"; then
6042 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6043 else
6044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6045 ac_dummy="$PATH"
6046 for ac_dir in $ac_dummy; do
6047 test -z "$ac_dir" && ac_dir=.
6048 if test -f $ac_dir/$ac_word; then
6049 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6050 break
6052 done
6053 IFS="$ac_save_ifs"
6056 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6057 if test -n "$NM_FOR_TARGET"; then
6058 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6059 else
6060 echo "$ac_t""no" 1>&6
6064 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
6065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6066 set dummy ${ncn_progname}; ac_word=$2
6067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6068 echo "configure:6069: checking for $ac_word" >&5
6069 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6070 echo $ac_n "(cached) $ac_c" 1>&6
6071 else
6072 if test -n "$NM_FOR_TARGET"; then
6073 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6074 else
6075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6076 ac_dummy="$PATH"
6077 for ac_dir in $ac_dummy; do
6078 test -z "$ac_dir" && ac_dir=.
6079 if test -f $ac_dir/$ac_word; then
6080 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
6081 break
6083 done
6084 IFS="$ac_save_ifs"
6087 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6088 if test -n "$NM_FOR_TARGET"; then
6089 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6090 else
6091 echo "$ac_t""no" 1>&6
6095 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6096 done
6099 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6100 set dummy nm
6101 if test $build = $target ; then
6102 NM_FOR_TARGET="$2"
6103 else
6104 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
6108 else
6109 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
6115 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6116 if test -n "$with_build_time_tools"; then
6117 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6118 echo "configure:6119: checking for objdump in $with_build_time_tools" >&5
6119 if test -x $with_build_time_tools/objdump; then
6120 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
6121 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6122 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6123 else
6124 echo "$ac_t""no" 1>&6
6126 elif test $build != $host && test $have_gcc_for_target = yes; then
6127 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
6128 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
6129 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6132 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6133 # Extract the first word of "objdump", so it can be a program name with args.
6134 set dummy objdump; ac_word=$2
6135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6136 echo "configure:6137: checking for $ac_word" >&5
6137 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6138 echo $ac_n "(cached) $ac_c" 1>&6
6139 else
6140 case "$OBJDUMP_FOR_TARGET" in
6142 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6144 ?:/*)
6145 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6149 ac_dummy="$gcc_cv_tool_dirs"
6150 for ac_dir in $ac_dummy; do
6151 test -z "$ac_dir" && ac_dir=.
6152 if test -f $ac_dir/$ac_word; then
6153 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6154 break
6156 done
6157 IFS="$ac_save_ifs"
6159 esac
6161 OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6162 if test -n "$OBJDUMP_FOR_TARGET"; then
6163 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6164 else
6165 echo "$ac_t""no" 1>&6
6169 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6170 if test -n "$with_build_time_tools"; then
6171 for ncn_progname in objdump; do
6172 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6173 echo "configure:6174: checking for ${ncn_progname} in $with_build_time_tools" >&5
6174 if test -x $with_build_time_tools/${ncn_progname}; then
6175 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6176 echo "$ac_t""yes" 1>&6
6177 break
6178 else
6179 echo "$ac_t""no" 1>&6
6181 done
6184 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6185 for ncn_progname in objdump; do
6186 if test -n "$ncn_target_tool_prefix"; then
6187 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6188 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6190 echo "configure:6191: checking for $ac_word" >&5
6191 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6192 echo $ac_n "(cached) $ac_c" 1>&6
6193 else
6194 if test -n "$OBJDUMP_FOR_TARGET"; then
6195 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6196 else
6197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6198 ac_dummy="$PATH"
6199 for ac_dir in $ac_dummy; do
6200 test -z "$ac_dir" && ac_dir=.
6201 if test -f $ac_dir/$ac_word; then
6202 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6203 break
6205 done
6206 IFS="$ac_save_ifs"
6209 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6210 if test -n "$OBJDUMP_FOR_TARGET"; then
6211 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6212 else
6213 echo "$ac_t""no" 1>&6
6217 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6219 set dummy ${ncn_progname}; ac_word=$2
6220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6221 echo "configure:6222: checking for $ac_word" >&5
6222 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6223 echo $ac_n "(cached) $ac_c" 1>&6
6224 else
6225 if test -n "$OBJDUMP_FOR_TARGET"; then
6226 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6227 else
6228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6229 ac_dummy="$PATH"
6230 for ac_dir in $ac_dummy; do
6231 test -z "$ac_dir" && ac_dir=.
6232 if test -f $ac_dir/$ac_word; then
6233 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6234 break
6236 done
6237 IFS="$ac_save_ifs"
6240 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6241 if test -n "$OBJDUMP_FOR_TARGET"; then
6242 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6243 else
6244 echo "$ac_t""no" 1>&6
6248 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6249 done
6252 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6253 set dummy objdump
6254 if test $build = $target ; then
6255 OBJDUMP_FOR_TARGET="$2"
6256 else
6257 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6261 else
6262 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
6268 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6269 if test -n "$with_build_time_tools"; then
6270 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6271 echo "configure:6272: checking for ranlib in $with_build_time_tools" >&5
6272 if test -x $with_build_time_tools/ranlib; then
6273 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
6274 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6275 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6276 else
6277 echo "$ac_t""no" 1>&6
6279 elif test $build != $host && test $have_gcc_for_target = yes; then
6280 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6281 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6282 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6285 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6286 # Extract the first word of "ranlib", so it can be a program name with args.
6287 set dummy ranlib; ac_word=$2
6288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6289 echo "configure:6290: checking for $ac_word" >&5
6290 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6292 else
6293 case "$RANLIB_FOR_TARGET" in
6295 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6297 ?:/*)
6298 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6302 ac_dummy="$gcc_cv_tool_dirs"
6303 for ac_dir in $ac_dummy; do
6304 test -z "$ac_dir" && ac_dir=.
6305 if test -f $ac_dir/$ac_word; then
6306 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6307 break
6309 done
6310 IFS="$ac_save_ifs"
6312 esac
6314 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6315 if test -n "$RANLIB_FOR_TARGET"; then
6316 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6317 else
6318 echo "$ac_t""no" 1>&6
6322 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6323 if test -n "$with_build_time_tools"; then
6324 for ncn_progname in ranlib; do
6325 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6326 echo "configure:6327: checking for ${ncn_progname} in $with_build_time_tools" >&5
6327 if test -x $with_build_time_tools/${ncn_progname}; then
6328 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6329 echo "$ac_t""yes" 1>&6
6330 break
6331 else
6332 echo "$ac_t""no" 1>&6
6334 done
6337 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6338 for ncn_progname in ranlib; do
6339 if test -n "$ncn_target_tool_prefix"; then
6340 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6341 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6343 echo "configure:6344: checking for $ac_word" >&5
6344 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6345 echo $ac_n "(cached) $ac_c" 1>&6
6346 else
6347 if test -n "$RANLIB_FOR_TARGET"; then
6348 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6349 else
6350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6351 ac_dummy="$PATH"
6352 for ac_dir in $ac_dummy; do
6353 test -z "$ac_dir" && ac_dir=.
6354 if test -f $ac_dir/$ac_word; then
6355 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6356 break
6358 done
6359 IFS="$ac_save_ifs"
6362 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6363 if test -n "$RANLIB_FOR_TARGET"; then
6364 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6365 else
6366 echo "$ac_t""no" 1>&6
6370 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6372 set dummy ${ncn_progname}; ac_word=$2
6373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6374 echo "configure:6375: checking for $ac_word" >&5
6375 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6376 echo $ac_n "(cached) $ac_c" 1>&6
6377 else
6378 if test -n "$RANLIB_FOR_TARGET"; then
6379 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6380 else
6381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6382 ac_dummy="$PATH"
6383 for ac_dir in $ac_dummy; do
6384 test -z "$ac_dir" && ac_dir=.
6385 if test -f $ac_dir/$ac_word; then
6386 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6387 break
6389 done
6390 IFS="$ac_save_ifs"
6393 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6394 if test -n "$RANLIB_FOR_TARGET"; then
6395 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6396 else
6397 echo "$ac_t""no" 1>&6
6401 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6402 done
6405 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6406 set dummy ranlib
6407 if test $build = $target ; then
6408 RANLIB_FOR_TARGET="$2"
6409 else
6410 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
6414 else
6415 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
6421 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6422 if test -n "$with_build_time_tools"; then
6423 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6424 echo "configure:6425: checking for strip in $with_build_time_tools" >&5
6425 if test -x $with_build_time_tools/strip; then
6426 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
6427 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6428 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6429 else
6430 echo "$ac_t""no" 1>&6
6432 elif test $build != $host && test $have_gcc_for_target = yes; then
6433 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6434 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6435 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6438 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6439 # Extract the first word of "strip", so it can be a program name with args.
6440 set dummy strip; ac_word=$2
6441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6442 echo "configure:6443: checking for $ac_word" >&5
6443 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6444 echo $ac_n "(cached) $ac_c" 1>&6
6445 else
6446 case "$STRIP_FOR_TARGET" in
6448 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6450 ?:/*)
6451 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6455 ac_dummy="$gcc_cv_tool_dirs"
6456 for ac_dir in $ac_dummy; do
6457 test -z "$ac_dir" && ac_dir=.
6458 if test -f $ac_dir/$ac_word; then
6459 ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6460 break
6462 done
6463 IFS="$ac_save_ifs"
6465 esac
6467 STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6468 if test -n "$STRIP_FOR_TARGET"; then
6469 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6470 else
6471 echo "$ac_t""no" 1>&6
6475 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6476 if test -n "$with_build_time_tools"; then
6477 for ncn_progname in strip; do
6478 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6479 echo "configure:6480: checking for ${ncn_progname} in $with_build_time_tools" >&5
6480 if test -x $with_build_time_tools/${ncn_progname}; then
6481 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6482 echo "$ac_t""yes" 1>&6
6483 break
6484 else
6485 echo "$ac_t""no" 1>&6
6487 done
6490 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6491 for ncn_progname in strip; do
6492 if test -n "$ncn_target_tool_prefix"; then
6493 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6494 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6496 echo "configure:6497: checking for $ac_word" >&5
6497 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6498 echo $ac_n "(cached) $ac_c" 1>&6
6499 else
6500 if test -n "$STRIP_FOR_TARGET"; then
6501 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6502 else
6503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6504 ac_dummy="$PATH"
6505 for ac_dir in $ac_dummy; do
6506 test -z "$ac_dir" && ac_dir=.
6507 if test -f $ac_dir/$ac_word; then
6508 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6509 break
6511 done
6512 IFS="$ac_save_ifs"
6515 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6516 if test -n "$STRIP_FOR_TARGET"; then
6517 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6518 else
6519 echo "$ac_t""no" 1>&6
6523 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6525 set dummy ${ncn_progname}; ac_word=$2
6526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6527 echo "configure:6528: checking for $ac_word" >&5
6528 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6529 echo $ac_n "(cached) $ac_c" 1>&6
6530 else
6531 if test -n "$STRIP_FOR_TARGET"; then
6532 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6533 else
6534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6535 ac_dummy="$PATH"
6536 for ac_dir in $ac_dummy; do
6537 test -z "$ac_dir" && ac_dir=.
6538 if test -f $ac_dir/$ac_word; then
6539 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6540 break
6542 done
6543 IFS="$ac_save_ifs"
6546 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6547 if test -n "$STRIP_FOR_TARGET"; then
6548 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6549 else
6550 echo "$ac_t""no" 1>&6
6554 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6555 done
6558 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6559 set dummy strip
6560 if test $build = $target ; then
6561 STRIP_FOR_TARGET="$2"
6562 else
6563 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6567 else
6568 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
6574 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6575 if test -n "$with_build_time_tools"; then
6576 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6577 echo "configure:6578: checking for windres in $with_build_time_tools" >&5
6578 if test -x $with_build_time_tools/windres; then
6579 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
6580 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6581 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6582 else
6583 echo "$ac_t""no" 1>&6
6585 elif test $build != $host && test $have_gcc_for_target = yes; then
6586 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6587 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6588 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6591 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6592 # Extract the first word of "windres", so it can be a program name with args.
6593 set dummy windres; ac_word=$2
6594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6595 echo "configure:6596: checking for $ac_word" >&5
6596 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6597 echo $ac_n "(cached) $ac_c" 1>&6
6598 else
6599 case "$WINDRES_FOR_TARGET" in
6601 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6603 ?:/*)
6604 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6608 ac_dummy="$gcc_cv_tool_dirs"
6609 for ac_dir in $ac_dummy; do
6610 test -z "$ac_dir" && ac_dir=.
6611 if test -f $ac_dir/$ac_word; then
6612 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6613 break
6615 done
6616 IFS="$ac_save_ifs"
6618 esac
6620 WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6621 if test -n "$WINDRES_FOR_TARGET"; then
6622 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6623 else
6624 echo "$ac_t""no" 1>&6
6628 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6629 if test -n "$with_build_time_tools"; then
6630 for ncn_progname in windres; do
6631 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6632 echo "configure:6633: checking for ${ncn_progname} in $with_build_time_tools" >&5
6633 if test -x $with_build_time_tools/${ncn_progname}; then
6634 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6635 echo "$ac_t""yes" 1>&6
6636 break
6637 else
6638 echo "$ac_t""no" 1>&6
6640 done
6643 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6644 for ncn_progname in windres; do
6645 if test -n "$ncn_target_tool_prefix"; then
6646 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6647 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6649 echo "configure:6650: checking for $ac_word" >&5
6650 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6651 echo $ac_n "(cached) $ac_c" 1>&6
6652 else
6653 if test -n "$WINDRES_FOR_TARGET"; then
6654 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6655 else
6656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6657 ac_dummy="$PATH"
6658 for ac_dir in $ac_dummy; do
6659 test -z "$ac_dir" && ac_dir=.
6660 if test -f $ac_dir/$ac_word; then
6661 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6662 break
6664 done
6665 IFS="$ac_save_ifs"
6668 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6669 if test -n "$WINDRES_FOR_TARGET"; then
6670 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6671 else
6672 echo "$ac_t""no" 1>&6
6676 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6678 set dummy ${ncn_progname}; ac_word=$2
6679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6680 echo "configure:6681: checking for $ac_word" >&5
6681 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6683 else
6684 if test -n "$WINDRES_FOR_TARGET"; then
6685 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6686 else
6687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6688 ac_dummy="$PATH"
6689 for ac_dir in $ac_dummy; do
6690 test -z "$ac_dir" && ac_dir=.
6691 if test -f $ac_dir/$ac_word; then
6692 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6693 break
6695 done
6696 IFS="$ac_save_ifs"
6699 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6700 if test -n "$WINDRES_FOR_TARGET"; then
6701 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6702 else
6703 echo "$ac_t""no" 1>&6
6707 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6708 done
6711 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6712 set dummy windres
6713 if test $build = $target ; then
6714 WINDRES_FOR_TARGET="$2"
6715 else
6716 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
6720 else
6721 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
6725 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6727 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6728 echo "configure:6729: checking where to find the target ar" >&5
6729 if test "x${build}" != "x${host}" ; then
6730 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6731 # We already found the complete path
6732 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6733 else
6734 # Canadian cross, just use what we found
6735 echo "$ac_t""pre-installed" 1>&6
6737 else
6738 ok=yes
6739 case " ${configdirs} " in
6740 *" binutils "*) ;;
6741 *) ok=no ;;
6742 esac
6744 if test $ok = yes; then
6745 # An in-tree tool is available and we can use it
6746 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6747 echo "$ac_t""just compiled" 1>&6
6748 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6749 # We already found the complete path
6750 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6751 elif test "x$target" = "x$host"; then
6752 # We can use an host tool
6753 AR_FOR_TARGET='$(AR)'
6754 echo "$ac_t""host tool" 1>&6
6755 else
6756 # We need a cross tool
6757 echo "$ac_t""pre-installed" 1>&6
6760 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6761 echo "configure:6762: checking where to find the target as" >&5
6762 if test "x${build}" != "x${host}" ; then
6763 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6764 # We already found the complete path
6765 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6766 else
6767 # Canadian cross, just use what we found
6768 echo "$ac_t""pre-installed" 1>&6
6770 else
6771 ok=yes
6772 case " ${configdirs} " in
6773 *" gas "*) ;;
6774 *) ok=no ;;
6775 esac
6777 if test $ok = yes; then
6778 # An in-tree tool is available and we can use it
6779 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6780 echo "$ac_t""just compiled" 1>&6
6781 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6782 # We already found the complete path
6783 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6784 elif test "x$target" = "x$host"; then
6785 # We can use an host tool
6786 AS_FOR_TARGET='$(AS)'
6787 echo "$ac_t""host tool" 1>&6
6788 else
6789 # We need a cross tool
6790 echo "$ac_t""pre-installed" 1>&6
6793 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6794 echo "configure:6795: checking where to find the target cc" >&5
6795 if test "x${build}" != "x${host}" ; then
6796 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6797 # We already found the complete path
6798 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6799 else
6800 # Canadian cross, just use what we found
6801 echo "$ac_t""pre-installed" 1>&6
6803 else
6804 ok=yes
6805 case " ${configdirs} " in
6806 *" gcc "*) ;;
6807 *) ok=no ;;
6808 esac
6810 if test $ok = yes; then
6811 # An in-tree tool is available and we can use it
6812 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6813 echo "$ac_t""just compiled" 1>&6
6814 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6815 # We already found the complete path
6816 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6817 elif test "x$target" = "x$host"; then
6818 # We can use an host tool
6819 CC_FOR_TARGET='$(CC)'
6820 echo "$ac_t""host tool" 1>&6
6821 else
6822 # We need a cross tool
6823 echo "$ac_t""pre-installed" 1>&6
6826 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6827 echo "configure:6828: checking where to find the target c++" >&5
6828 if test "x${build}" != "x${host}" ; then
6829 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6830 # We already found the complete path
6831 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6832 else
6833 # Canadian cross, just use what we found
6834 echo "$ac_t""pre-installed" 1>&6
6836 else
6837 ok=yes
6838 case " ${configdirs} " in
6839 *" gcc "*) ;;
6840 *) ok=no ;;
6841 esac
6842 case ,${enable_languages}, in
6843 *,c++,*) ;;
6844 *) ok=no ;;
6845 esac
6846 if test $ok = yes; then
6847 # An in-tree tool is available and we can use it
6848 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'
6849 echo "$ac_t""just compiled" 1>&6
6850 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6851 # We already found the complete path
6852 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6853 elif test "x$target" = "x$host"; then
6854 # We can use an host tool
6855 CXX_FOR_TARGET='$(CXX)'
6856 echo "$ac_t""host tool" 1>&6
6857 else
6858 # We need a cross tool
6859 echo "$ac_t""pre-installed" 1>&6
6862 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6863 echo "configure:6864: checking where to find the target c++ for libstdc++" >&5
6864 if test "x${build}" != "x${host}" ; then
6865 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6866 # We already found the complete path
6867 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6868 else
6869 # Canadian cross, just use what we found
6870 echo "$ac_t""pre-installed" 1>&6
6872 else
6873 ok=yes
6874 case " ${configdirs} " in
6875 *" gcc "*) ;;
6876 *) ok=no ;;
6877 esac
6878 case ,${enable_languages}, in
6879 *,c++,*) ;;
6880 *) ok=no ;;
6881 esac
6882 if test $ok = yes; then
6883 # An in-tree tool is available and we can use it
6884 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'
6885 echo "$ac_t""just compiled" 1>&6
6886 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6887 # We already found the complete path
6888 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6889 elif test "x$target" = "x$host"; then
6890 # We can use an host tool
6891 RAW_CXX_FOR_TARGET='$(CXX)'
6892 echo "$ac_t""host tool" 1>&6
6893 else
6894 # We need a cross tool
6895 echo "$ac_t""pre-installed" 1>&6
6898 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6899 echo "configure:6900: checking where to find the target dlltool" >&5
6900 if test "x${build}" != "x${host}" ; then
6901 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6902 # We already found the complete path
6903 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6904 else
6905 # Canadian cross, just use what we found
6906 echo "$ac_t""pre-installed" 1>&6
6908 else
6909 ok=yes
6910 case " ${configdirs} " in
6911 *" binutils "*) ;;
6912 *) ok=no ;;
6913 esac
6915 if test $ok = yes; then
6916 # An in-tree tool is available and we can use it
6917 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6918 echo "$ac_t""just compiled" 1>&6
6919 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6920 # We already found the complete path
6921 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6922 elif test "x$target" = "x$host"; then
6923 # We can use an host tool
6924 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
6925 echo "$ac_t""host tool" 1>&6
6926 else
6927 # We need a cross tool
6928 echo "$ac_t""pre-installed" 1>&6
6931 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6932 echo "configure:6933: checking where to find the target gcc" >&5
6933 if test "x${build}" != "x${host}" ; then
6934 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6935 # We already found the complete path
6936 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6937 else
6938 # Canadian cross, just use what we found
6939 echo "$ac_t""pre-installed" 1>&6
6941 else
6942 ok=yes
6943 case " ${configdirs} " in
6944 *" gcc "*) ;;
6945 *) ok=no ;;
6946 esac
6948 if test $ok = yes; then
6949 # An in-tree tool is available and we can use it
6950 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6951 echo "$ac_t""just compiled" 1>&6
6952 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6953 # We already found the complete path
6954 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6955 elif test "x$target" = "x$host"; then
6956 # We can use an host tool
6957 GCC_FOR_TARGET='$()'
6958 echo "$ac_t""host tool" 1>&6
6959 else
6960 # We need a cross tool
6961 echo "$ac_t""pre-installed" 1>&6
6964 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6965 echo "configure:6966: checking where to find the target gcj" >&5
6966 if test "x${build}" != "x${host}" ; then
6967 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6968 # We already found the complete path
6969 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6970 else
6971 # Canadian cross, just use what we found
6972 echo "$ac_t""pre-installed" 1>&6
6974 else
6975 ok=yes
6976 case " ${configdirs} " in
6977 *" gcc "*) ;;
6978 *) ok=no ;;
6979 esac
6980 case ,${enable_languages}, in
6981 *,java,*) ;;
6982 *) ok=no ;;
6983 esac
6984 if test $ok = yes; then
6985 # An in-tree tool is available and we can use it
6986 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6987 echo "$ac_t""just compiled" 1>&6
6988 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6989 # We already found the complete path
6990 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6991 elif test "x$target" = "x$host"; then
6992 # We can use an host tool
6993 GCJ_FOR_TARGET='$(GCJ)'
6994 echo "$ac_t""host tool" 1>&6
6995 else
6996 # We need a cross tool
6997 echo "$ac_t""pre-installed" 1>&6
7000 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
7001 echo "configure:7002: checking where to find the target gfortran" >&5
7002 if test "x${build}" != "x${host}" ; then
7003 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
7004 # We already found the complete path
7005 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7006 else
7007 # Canadian cross, just use what we found
7008 echo "$ac_t""pre-installed" 1>&6
7010 else
7011 ok=yes
7012 case " ${configdirs} " in
7013 *" gcc "*) ;;
7014 *) ok=no ;;
7015 esac
7016 case ,${enable_languages}, in
7017 *,fortran,*) ;;
7018 *) ok=no ;;
7019 esac
7020 if test $ok = yes; then
7021 # An in-tree tool is available and we can use it
7022 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
7023 echo "$ac_t""just compiled" 1>&6
7024 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
7025 # We already found the complete path
7026 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7027 elif test "x$target" = "x$host"; then
7028 # We can use an host tool
7029 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
7030 echo "$ac_t""host tool" 1>&6
7031 else
7032 # We need a cross tool
7033 echo "$ac_t""pre-installed" 1>&6
7036 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
7037 echo "configure:7038: checking where to find the target ld" >&5
7038 if test "x${build}" != "x${host}" ; then
7039 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
7040 # We already found the complete path
7041 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7042 else
7043 # Canadian cross, just use what we found
7044 echo "$ac_t""pre-installed" 1>&6
7046 else
7047 ok=yes
7048 case " ${configdirs} " in
7049 *" ld "*) ;;
7050 *) ok=no ;;
7051 esac
7053 if test $ok = yes; then
7054 # An in-tree tool is available and we can use it
7055 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
7056 echo "$ac_t""just compiled" 1>&6
7057 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
7058 # We already found the complete path
7059 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7060 elif test "x$target" = "x$host"; then
7061 # We can use an host tool
7062 LD_FOR_TARGET='$(LD)'
7063 echo "$ac_t""host tool" 1>&6
7064 else
7065 # We need a cross tool
7066 echo "$ac_t""pre-installed" 1>&6
7069 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
7070 echo "configure:7071: checking where to find the target lipo" >&5
7071 if test "x${build}" != "x${host}" ; then
7072 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7073 # We already found the complete path
7074 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7075 else
7076 # Canadian cross, just use what we found
7077 echo "$ac_t""pre-installed" 1>&6
7079 else
7080 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7081 # We already found the complete path
7082 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7083 elif test "x$target" = "x$host"; then
7084 # We can use an host tool
7085 LIPO_FOR_TARGET='$(LIPO)'
7086 echo "$ac_t""host tool" 1>&6
7087 else
7088 # We need a cross tool
7089 echo "$ac_t""pre-installed" 1>&6
7092 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
7093 echo "configure:7094: checking where to find the target nm" >&5
7094 if test "x${build}" != "x${host}" ; then
7095 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7096 # We already found the complete path
7097 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7098 else
7099 # Canadian cross, just use what we found
7100 echo "$ac_t""pre-installed" 1>&6
7102 else
7103 ok=yes
7104 case " ${configdirs} " in
7105 *" binutils "*) ;;
7106 *) ok=no ;;
7107 esac
7109 if test $ok = yes; then
7110 # An in-tree tool is available and we can use it
7111 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7112 echo "$ac_t""just compiled" 1>&6
7113 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7114 # We already found the complete path
7115 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7116 elif test "x$target" = "x$host"; then
7117 # We can use an host tool
7118 NM_FOR_TARGET='$(NM)'
7119 echo "$ac_t""host tool" 1>&6
7120 else
7121 # We need a cross tool
7122 echo "$ac_t""pre-installed" 1>&6
7125 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7126 echo "configure:7127: checking where to find the target objdump" >&5
7127 if test "x${build}" != "x${host}" ; then
7128 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7129 # We already found the complete path
7130 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7131 else
7132 # Canadian cross, just use what we found
7133 echo "$ac_t""pre-installed" 1>&6
7135 else
7136 ok=yes
7137 case " ${configdirs} " in
7138 *" binutils "*) ;;
7139 *) ok=no ;;
7140 esac
7142 if test $ok = yes; then
7143 # An in-tree tool is available and we can use it
7144 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
7145 echo "$ac_t""just compiled" 1>&6
7146 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7147 # We already found the complete path
7148 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7149 elif test "x$target" = "x$host"; then
7150 # We can use an host tool
7151 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
7152 echo "$ac_t""host tool" 1>&6
7153 else
7154 # We need a cross tool
7155 echo "$ac_t""pre-installed" 1>&6
7158 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7159 echo "configure:7160: checking where to find the target ranlib" >&5
7160 if test "x${build}" != "x${host}" ; then
7161 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7162 # We already found the complete path
7163 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7164 else
7165 # Canadian cross, just use what we found
7166 echo "$ac_t""pre-installed" 1>&6
7168 else
7169 ok=yes
7170 case " ${configdirs} " in
7171 *" binutils "*) ;;
7172 *) ok=no ;;
7173 esac
7175 if test $ok = yes; then
7176 # An in-tree tool is available and we can use it
7177 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7178 echo "$ac_t""just compiled" 1>&6
7179 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7180 # We already found the complete path
7181 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7182 elif test "x$target" = "x$host"; then
7183 # We can use an host tool
7184 RANLIB_FOR_TARGET='$(RANLIB)'
7185 echo "$ac_t""host tool" 1>&6
7186 else
7187 # We need a cross tool
7188 echo "$ac_t""pre-installed" 1>&6
7191 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7192 echo "configure:7193: checking where to find the target strip" >&5
7193 if test "x${build}" != "x${host}" ; then
7194 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7195 # We already found the complete path
7196 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7197 else
7198 # Canadian cross, just use what we found
7199 echo "$ac_t""pre-installed" 1>&6
7201 else
7202 ok=yes
7203 case " ${configdirs} " in
7204 *" binutils "*) ;;
7205 *) ok=no ;;
7206 esac
7208 if test $ok = yes; then
7209 # An in-tree tool is available and we can use it
7210 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7211 echo "$ac_t""just compiled" 1>&6
7212 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7213 # We already found the complete path
7214 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7215 elif test "x$target" = "x$host"; then
7216 # We can use an host tool
7217 STRIP_FOR_TARGET='$(STRIP)'
7218 echo "$ac_t""host tool" 1>&6
7219 else
7220 # We need a cross tool
7221 echo "$ac_t""pre-installed" 1>&6
7224 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7225 echo "configure:7226: checking where to find the target windres" >&5
7226 if test "x${build}" != "x${host}" ; then
7227 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7228 # We already found the complete path
7229 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7230 else
7231 # Canadian cross, just use what we found
7232 echo "$ac_t""pre-installed" 1>&6
7234 else
7235 ok=yes
7236 case " ${configdirs} " in
7237 *" binutils "*) ;;
7238 *) ok=no ;;
7239 esac
7241 if test $ok = yes; then
7242 # An in-tree tool is available and we can use it
7243 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7244 echo "$ac_t""just compiled" 1>&6
7245 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7246 # We already found the complete path
7247 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7248 elif test "x$target" = "x$host"; then
7249 # We can use an host tool
7250 WINDRES_FOR_TARGET='$(WINDRES)'
7251 echo "$ac_t""host tool" 1>&6
7252 else
7253 # We need a cross tool
7254 echo "$ac_t""pre-installed" 1>&6
7261 # Certain tools may need extra flags.
7262 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7263 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7264 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7266 # When building target libraries, except in a Canadian cross, we use
7267 # the same toolchain as the compiler we just built.
7268 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7269 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7270 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7271 if test $host = $build; then
7272 case " $configdirs " in
7273 *" gcc "*)
7274 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7275 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7276 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7278 esac
7285 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7286 echo "configure:7287: checking whether to enable maintainer-specific portions of Makefiles" >&5
7287 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7288 if test "${enable_maintainer_mode+set}" = set; then
7289 enableval="$enable_maintainer_mode"
7290 USE_MAINTAINER_MODE=$enableval
7291 else
7292 USE_MAINTAINER_MODE=no
7295 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7298 if test "$USE_MAINTAINER_MODE" = yes; then
7299 MAINTAINER_MODE_TRUE=
7300 MAINTAINER_MODE_FALSE='#'
7301 else
7302 MAINTAINER_MODE_TRUE='#'
7303 MAINTAINER_MODE_FALSE=
7305 MAINT=$MAINTAINER_MODE_TRUE
7307 # ---------------------
7308 # GCC bootstrap support
7309 # ---------------------
7311 # Stage specific cflags for build.
7312 stage1_cflags="-g"
7313 case $build in
7314 vax-*-*)
7315 case ${GCC} in
7316 yes) stage1_cflags="-g -Wa,-J" ;;
7317 *) stage1_cflags="-g -J" ;;
7318 esac ;;
7319 powerpc-*-darwin*)
7320 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7321 # sources; use -no-cpp-precomp to get to GNU cpp.
7322 # Apple's GCC has bugs in designated initializer handling, so disable
7323 # that too.
7324 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7326 esac
7328 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7329 if test "$GCC" = yes; then
7330 saved_CFLAGS="$CFLAGS"
7332 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
7333 CFLAGS="$CFLAGS -fkeep-inline-functions"
7334 echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
7335 echo "configure:7336: checking whether -fkeep-inline-functions is supported" >&5
7336 cat > conftest.$ac_ext <<EOF
7337 #line 7338 "configure"
7338 #include "confdefs.h"
7340 int main() {
7342 ; return 0; }
7344 if { (eval echo configure:7345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7345 rm -rf conftest*
7346 echo "$ac_t""yes" 1>&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
7347 else
7348 echo "configure: failed program was:" >&5
7349 cat conftest.$ac_ext >&5
7350 rm -rf conftest*
7351 echo "$ac_t""no" 1>&6
7353 rm -f conftest*
7355 CFLAGS="$saved_CFLAGS"
7360 # Enable --enable-checking in stage1 of the compiler.
7361 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
7362 if test "${enable_stage1_checking+set}" = set; then
7363 enableval="$enable_stage1_checking"
7364 stage1_checking=--enable-checking=${enable_stage1_checking}
7365 else
7366 if test "x$enable_checking" = xno; then
7367 stage1_checking=--enable-checking
7368 else
7369 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
7375 # Enable -Werror in bootstrap stage2 and later.
7376 # Check whether --enable-werror or --disable-werror was given.
7377 if test "${enable_werror+set}" = set; then
7378 enableval="$enable_werror"
7380 else
7381 if test -d gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
7382 enable_werror=yes
7383 else
7384 enable_werror=no
7388 case ${enable_werror} in
7389 yes) stage2_werror_flag="--enable-werror-always" ;;
7390 *) stage2_werror_flag="" ;;
7391 esac
7394 # Flags needed to enable html installing and building
7395 # Check whether --with-datarootdir or --without-datarootdir was given.
7396 if test "${with_datarootdir+set}" = set; then
7397 withval="$with_datarootdir"
7398 datarootdir="\${prefix}/${withval}"
7399 else
7400 datarootdir="\${prefix}/share"
7404 # Check whether --with-docdir or --without-docdir was given.
7405 if test "${with_docdir+set}" = set; then
7406 withval="$with_docdir"
7407 docdir="\${prefix}/${withval}"
7408 else
7409 docdir="\${datarootdir}/doc"
7413 # Check whether --with-htmldir or --without-htmldir was given.
7414 if test "${with_htmldir+set}" = set; then
7415 withval="$with_htmldir"
7416 htmldir="\${prefix}/${withval}"
7417 else
7418 htmldir="\${docdir}"
7426 trap '' 1 2 15
7427 cat > confcache <<\EOF
7428 # This file is a shell script that caches the results of configure
7429 # tests run on this system so they can be shared between configure
7430 # scripts and configure runs. It is not useful on other systems.
7431 # If it contains results you don't want to keep, you may remove or edit it.
7433 # By default, configure uses ./config.cache as the cache file,
7434 # creating it if it does not exist already. You can give configure
7435 # the --cache-file=FILE option to use a different cache file; that is
7436 # what configure does when it calls configure scripts in
7437 # subdirectories, so they share the cache.
7438 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7439 # config.status only pays attention to the cache file if you give it the
7440 # --recheck option to rerun configure.
7443 # The following way of writing the cache mishandles newlines in values,
7444 # but we know of no workaround that is simple, portable, and efficient.
7445 # So, don't put newlines in cache variables' values.
7446 # Ultrix sh set writes to stderr and can't be redirected directly,
7447 # and sets the high bit in the cache file unless we assign to the vars.
7448 (set) 2>&1 |
7449 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7450 *ac_space=\ *)
7451 # `set' does not quote correctly, so add quotes (double-quote substitution
7452 # turns \\\\ into \\, and sed turns \\ into \).
7453 sed -n \
7454 -e "s/'/'\\\\''/g" \
7455 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7458 # `set' quotes correctly as required by POSIX, so do not add quotes.
7459 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7461 esac >> confcache
7462 if cmp -s $cache_file confcache; then
7464 else
7465 if test -w $cache_file; then
7466 echo "updating cache $cache_file"
7467 cat confcache > $cache_file
7468 else
7469 echo "not updating unwritable cache $cache_file"
7472 rm -f confcache
7474 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7476 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7477 # Let make expand exec_prefix.
7478 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7480 # Any assignment to VPATH causes Sun make to only execute
7481 # the first set of double-colon rules, so remove it if not needed.
7482 # If there is a colon in the path, we need to keep it.
7483 if test "x$srcdir" = x.; then
7484 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7487 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7489 # Transform confdefs.h into DEFS.
7490 # Protect against shell expansion while executing Makefile rules.
7491 # Protect against Makefile macro expansion.
7492 cat > conftest.defs <<\EOF
7493 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7494 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7495 s%\[%\\&%g
7496 s%\]%\\&%g
7497 s%\$%$$%g
7499 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7500 rm -f conftest.defs
7503 # Without the "./", some shells look in PATH for config.status.
7504 : ${CONFIG_STATUS=./config.status}
7506 echo creating $CONFIG_STATUS
7507 rm -f $CONFIG_STATUS
7508 cat > $CONFIG_STATUS <<EOF
7509 #! /bin/sh
7510 # Generated automatically by configure.
7511 # Run this file to recreate the current configuration.
7512 # This directory was configured as follows,
7513 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7515 # $0 $ac_configure_args
7517 # Compiler output produced by configure, useful for debugging
7518 # configure, is in ./config.log if it exists.
7520 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7521 for ac_option
7523 case "\$ac_option" in
7524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7525 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7526 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7527 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7528 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7529 exit 0 ;;
7530 -help | --help | --hel | --he | --h)
7531 echo "\$ac_cs_usage"; exit 0 ;;
7532 *) echo "\$ac_cs_usage"; exit 1 ;;
7533 esac
7534 done
7536 ac_given_srcdir=$srcdir
7537 ac_given_INSTALL="$INSTALL"
7539 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7541 cat >> $CONFIG_STATUS <<EOF
7543 # Protect against being on the right side of a sed subst in config.status.
7544 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7545 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7546 $ac_vpsub
7547 $extrasub
7548 s%@SHELL@%$SHELL%g
7549 s%@CFLAGS@%$CFLAGS%g
7550 s%@CPPFLAGS@%$CPPFLAGS%g
7551 s%@CXXFLAGS@%$CXXFLAGS%g
7552 s%@FFLAGS@%$FFLAGS%g
7553 s%@DEFS@%$DEFS%g
7554 s%@LDFLAGS@%$LDFLAGS%g
7555 s%@LIBS@%$LIBS%g
7556 s%@exec_prefix@%$exec_prefix%g
7557 s%@prefix@%$prefix%g
7558 s%@program_transform_name@%$program_transform_name%g
7559 s%@bindir@%$bindir%g
7560 s%@sbindir@%$sbindir%g
7561 s%@libexecdir@%$libexecdir%g
7562 s%@datadir@%$datadir%g
7563 s%@sysconfdir@%$sysconfdir%g
7564 s%@sharedstatedir@%$sharedstatedir%g
7565 s%@localstatedir@%$localstatedir%g
7566 s%@libdir@%$libdir%g
7567 s%@includedir@%$includedir%g
7568 s%@oldincludedir@%$oldincludedir%g
7569 s%@infodir@%$infodir%g
7570 s%@mandir@%$mandir%g
7571 s%@host@%$host%g
7572 s%@host_alias@%$host_alias%g
7573 s%@host_cpu@%$host_cpu%g
7574 s%@host_vendor@%$host_vendor%g
7575 s%@host_os@%$host_os%g
7576 s%@target@%$target%g
7577 s%@target_alias@%$target_alias%g
7578 s%@target_cpu@%$target_cpu%g
7579 s%@target_vendor@%$target_vendor%g
7580 s%@target_os@%$target_os%g
7581 s%@build@%$build%g
7582 s%@build_alias@%$build_alias%g
7583 s%@build_cpu@%$build_cpu%g
7584 s%@build_vendor@%$build_vendor%g
7585 s%@build_os@%$build_os%g
7586 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7587 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7588 s%@INSTALL_DATA@%$INSTALL_DATA%g
7589 s%@LN@%$LN%g
7590 s%@LN_S@%$LN_S%g
7591 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7592 s%@build_libsubdir@%$build_libsubdir%g
7593 s%@build_subdir@%$build_subdir%g
7594 s%@host_subdir@%$host_subdir%g
7595 s%@target_subdir@%$target_subdir%g
7596 s%@CC@%$CC%g
7597 s%@GNATBIND@%$GNATBIND%g
7598 s%@do_compare@%$do_compare%g
7599 s%@gmplibs@%$gmplibs%g
7600 s%@gmpinc@%$gmpinc%g
7601 s%@stage1_languages@%$stage1_languages%g
7602 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7603 /@serialization_dependencies@/r $serialization_dependencies
7604 s%@serialization_dependencies@%%g
7605 /@host_makefile_frag@/r $host_makefile_frag
7606 s%@host_makefile_frag@%%g
7607 /@target_makefile_frag@/r $target_makefile_frag
7608 s%@target_makefile_frag@%%g
7609 /@alphaieee_frag@/r $alphaieee_frag
7610 s%@alphaieee_frag@%%g
7611 /@ospace_frag@/r $ospace_frag
7612 s%@ospace_frag@%%g
7613 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7614 s%@tooldir@%$tooldir%g
7615 s%@build_tooldir@%$build_tooldir%g
7616 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7617 s%@GDB_TK@%$GDB_TK%g
7618 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7619 s%@build_configargs@%$build_configargs%g
7620 s%@build_configdirs@%$build_configdirs%g
7621 s%@host_configargs@%$host_configargs%g
7622 s%@configdirs@%$configdirs%g
7623 s%@target_configargs@%$target_configargs%g
7624 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7625 s%@config_shell@%$config_shell%g
7626 s%@YACC@%$YACC%g
7627 s%@BISON@%$BISON%g
7628 s%@M4@%$M4%g
7629 s%@LEX@%$LEX%g
7630 s%@FLEX@%$FLEX%g
7631 s%@MAKEINFO@%$MAKEINFO%g
7632 s%@EXPECT@%$EXPECT%g
7633 s%@RUNTEST@%$RUNTEST%g
7634 s%@AR@%$AR%g
7635 s%@AS@%$AS%g
7636 s%@DLLTOOL@%$DLLTOOL%g
7637 s%@LD@%$LD%g
7638 s%@LIPO@%$LIPO%g
7639 s%@NM@%$NM%g
7640 s%@RANLIB@%$RANLIB%g
7641 s%@STRIP@%$STRIP%g
7642 s%@WINDRES@%$WINDRES%g
7643 s%@OBJCOPY@%$OBJCOPY%g
7644 s%@OBJDUMP@%$OBJDUMP%g
7645 s%@CXX@%$CXX%g
7646 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7647 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7648 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7649 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7650 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7651 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7652 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7653 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7654 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7655 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7656 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7657 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7658 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7659 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7660 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7661 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7662 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7663 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7664 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7665 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7666 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7667 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7668 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7669 s%@MAINT@%$MAINT%g
7670 s%@stage1_cflags@%$stage1_cflags%g
7671 s%@stage1_checking@%$stage1_checking%g
7672 s%@stage2_werror_flag@%$stage2_werror_flag%g
7673 s%@datarootdir@%$datarootdir%g
7674 s%@docdir@%$docdir%g
7675 s%@htmldir@%$htmldir%g
7677 CEOF
7680 cat >> $CONFIG_STATUS <<\EOF
7682 # Split the substitutions into bite-sized pieces for seds with
7683 # small command number limits, like on Digital OSF/1 and HP-UX.
7684 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7685 ac_file=1 # Number of current file.
7686 ac_beg=1 # First line for current file.
7687 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7688 ac_more_lines=:
7689 ac_sed_cmds=""
7690 while $ac_more_lines; do
7691 if test $ac_beg -gt 1; then
7692 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7693 else
7694 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7696 if test ! -s conftest.s$ac_file; then
7697 ac_more_lines=false
7698 rm -f conftest.s$ac_file
7699 else
7700 if test -z "$ac_sed_cmds"; then
7701 ac_sed_cmds="sed -f conftest.s$ac_file"
7702 else
7703 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7705 ac_file=`expr $ac_file + 1`
7706 ac_beg=$ac_end
7707 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7709 done
7710 if test -z "$ac_sed_cmds"; then
7711 ac_sed_cmds=cat
7715 cat >> $CONFIG_STATUS <<EOF
7717 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7719 cat >> $CONFIG_STATUS <<\EOF
7720 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7721 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7722 case "$ac_file" in
7723 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7724 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7725 *) ac_file_in="${ac_file}.in" ;;
7726 esac
7728 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7730 # Remove last slash and all that follows it. Not all systems have dirname.
7731 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7732 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7733 # The file is in a subdirectory.
7734 test ! -d "$ac_dir" && mkdir "$ac_dir"
7735 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7736 # A "../" for each directory in $ac_dir_suffix.
7737 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7738 else
7739 ac_dir_suffix= ac_dots=
7742 case "$ac_given_srcdir" in
7743 .) srcdir=.
7744 if test -z "$ac_dots"; then top_srcdir=.
7745 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7746 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7747 *) # Relative path.
7748 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7749 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7750 esac
7752 case "$ac_given_INSTALL" in
7753 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7754 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7755 esac
7757 echo creating "$ac_file"
7758 rm -f "$ac_file"
7759 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7760 case "$ac_file" in
7761 *Makefile*) ac_comsub="1i\\
7762 # $configure_input" ;;
7763 *) ac_comsub= ;;
7764 esac
7766 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7767 sed -e "$ac_comsub
7768 s%@configure_input@%$configure_input%g
7769 s%@srcdir@%$srcdir%g
7770 s%@top_srcdir@%$top_srcdir%g
7771 s%@INSTALL@%$INSTALL%g
7772 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7773 fi; done
7774 rm -f conftest.s*
7777 cat >> $CONFIG_STATUS <<EOF
7780 cat >> $CONFIG_STATUS <<\EOF
7782 exit 0
7784 chmod +x $CONFIG_STATUS
7785 rm -fr confdefs* $ac_clean_files
7786 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1