Bring arm_mangle_type back, but use it for HF name mangling only.
[llvm-gcc-4.2.git] / configure
blobc6a10fbf66733cc713c5754a7e94644d9729d843
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 # APPLE LOCAL begin ARM darwin target
1212 arm-*-darwin*)
1213 noconfigdirs="$noconfigdirs target-libgomp target-libobjc"
1214 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libssp"
1215 # LLVM LOCAL begin
1216 noconfigdirs="$noconfigdirs target-boehm-gc target-libffi"
1217 noconfigdirs="$noconfigdirs target-libjava"
1218 noconfigdirs="$noconfigdirs target-libmudflap target-zlib"
1219 # LLVM LOCAL end
1221 # APPLE LOCAL end ARM darwin target
1222 powerpc-*-darwin* | i[3456789]86-*-darwin*)
1223 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1224 noconfigdirs="$noconfigdirs sim target-rda"
1225 # LLVM LOCAL begin
1226 noconfigdirs="$noconfigdirs target-boehm-gc target-libffi"
1227 noconfigdirs="$noconfigdirs target-libjava"
1228 noconfigdirs="$noconfigdirs target-libmudflap target-libobjc"
1229 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-zlib"
1230 # LLVM LOCAL end
1232 *-*-darwin*)
1233 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1234 noconfigdirs="$noconfigdirs sim target-rda"
1235 noconfigdirs="$noconfigdirs ${libgcj}"
1236 # LLVM LOCAL begin
1237 noconfigdirs="$noconfigdirs target-boehm-gc target-libffi"
1238 noconfigdirs="$noconfigdirs target-libjava"
1239 noconfigdirs="$noconfigdirs target-libmudflap target-libobjc"
1240 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-zlib"
1241 # LLVM LOCAL end
1243 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1244 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1246 *-*-freebsd*)
1247 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1248 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1249 && test -f /usr/local/include/gmp.h; then
1250 with_gmp=/usr/local
1253 # Skip some stuff that's unsupported on some FreeBSD configurations.
1254 case "${target}" in
1255 i*86-*-*) ;;
1256 alpha*-*-*) ;;
1258 noconfigdirs="$noconfigdirs ${libgcj}"
1260 esac
1262 *-*-kaos*)
1263 # Remove unsupported stuff on all kaOS configurations.
1264 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1265 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1266 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1267 noconfigdirs="$noconfigdirs target-libgloss"
1269 *-*-netbsd*)
1270 # Skip some stuff on all NetBSD configurations.
1271 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1273 # Skip some stuff that's unsupported on some NetBSD configurations.
1274 case "${target}" in
1275 i*86-*-netbsdelf*) ;;
1276 arm*-*-netbsdelf*) ;;
1278 noconfigdirs="$noconfigdirs ${libgcj}"
1280 esac
1282 *-*-netware*)
1283 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1285 *-*-rtems*)
1286 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1288 # The tpf target doesn't support gdb yet.
1289 *-*-tpf*)
1290 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1292 *-*-uclinux*)
1293 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1295 *-*-vxworks*)
1296 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1298 alpha*-dec-osf*)
1299 # ld works, but does not support shared libraries.
1300 # newlib is not 64 bit ready. I'm not sure about fileutils.
1301 # gas doesn't generate exception information.
1302 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1304 alpha*-*-*vms*)
1305 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1307 alpha*-*-linux*)
1308 # newlib is not 64 bit ready
1309 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1311 alpha*-*-*)
1312 # newlib is not 64 bit ready
1313 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1315 am33_2.0-*-linux*)
1316 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1318 sh-*-linux*)
1319 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1321 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1322 noconfigdirs="$noconfigdirs ${libgcj}"
1323 noconfigdirs="$noconfigdirs target-examples"
1324 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1325 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1326 noconfigdirs="$noconfigdirs expect dejagnu"
1327 # the C++ libraries don't build on top of CE's C libraries
1328 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1329 noconfigdirs="$noconfigdirs target-newlib"
1330 case "${host}" in
1331 *-*-cygwin*) ;; # keep gdb and readline
1332 *) noconfigdirs="$noconfigdirs gdb readline"
1334 esac
1336 arc-*-*)
1337 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1339 arm-semi-aof )
1341 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1342 noconfigdirs="$noconfigdirs ${libgcj}"
1344 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1345 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1347 arm*-*-linux-gnueabi)
1348 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1349 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1351 arm*-*-symbianelf*)
1352 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1354 arm-*-pe*)
1355 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1357 thumb-*-coff)
1358 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1360 thumb-*-elf)
1361 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1363 thumb-*-pe)
1364 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1366 arm-*-riscix*)
1367 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1369 avr-*-*)
1370 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1372 bfin-*-*)
1373 noconfigdirs="$noconfigdirs gdb"
1374 if test x${is_cross_compiler} != xno ; then
1375 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1378 c4x-*-* | tic4x-*-*)
1379 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1381 c54x*-*-* | tic54x-*-*)
1382 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1384 cris-*-* | crisv32-*-*)
1385 unsupported_languages="$unsupported_languages java"
1386 case "${target}" in
1387 *-*-aout)
1388 unsupported_languages="$unsupported_languages fortran"
1389 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1390 *-*-elf)
1391 unsupported_languages="$unsupported_languages fortran"
1392 noconfigdirs="$noconfigdirs target-boehm-gc";;
1393 *-*-linux*)
1394 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1396 unsupported_languages="$unsupported_languages fortran"
1397 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1398 esac
1400 crx-*-*)
1401 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1403 d10v-*-*)
1404 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1406 d30v-*-*)
1407 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1409 fr30-*-elf*)
1410 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1412 frv-*-*)
1413 noconfigdirs="$noconfigdirs ${libgcj}"
1415 h8300*-*-*)
1416 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1418 h8500-*-*)
1419 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1421 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1423 hppa*64*-*-linux* | parisc*64*-*-linux*)
1424 # In this case, it's because the hppa64-linux target is for
1425 # the kernel only at this point and has no libc, and thus no
1426 # headers, crt*.o, etc., all of which are needed by these.
1427 noconfigdirs="$noconfigdirs target-zlib"
1429 parisc*-*-linux* | hppa*-*-linux*)
1431 hppa*-*-*elf* | \
1432 hppa*-*-lites* | \
1433 hppa*-*-openbsd* | \
1434 hppa*64*-*-*)
1435 noconfigdirs="$noconfigdirs ${libgcj}"
1437 hppa*-hp-hpux11*)
1438 noconfigdirs="$noconfigdirs ld shellutils"
1440 hppa*-*-*)
1441 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1442 # build on HP-UX 10.20.
1443 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1445 i960-*-*)
1446 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1448 ia64*-*-elf*)
1449 # No gdb support yet.
1450 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1452 ia64*-**-hpux*)
1453 # No gdb or ld support yet.
1454 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1456 i370-*-opened*)
1458 i[3456789]86-*-coff | i[3456789]86-*-elf)
1459 noconfigdirs="$noconfigdirs ${libgcj}"
1461 i[3456789]86-*-linux*)
1462 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1463 # not build java stuff by default.
1464 case "${target}" in
1465 *-*-*libc1*)
1466 noconfigdirs="$noconfigdirs ${libgcj}";;
1467 esac
1469 # This section makes it possible to build newlib natively on linux.
1470 # If we are using a cross compiler then don't configure newlib.
1471 if test x${is_cross_compiler} != xno ; then
1472 noconfigdirs="$noconfigdirs target-newlib"
1474 noconfigdirs="$noconfigdirs target-libgloss"
1475 # If we are not using a cross compiler, do configure newlib.
1476 # Note however, that newlib will only be configured in this situation
1477 # if the --with-newlib option has been given, because otherwise
1478 # 'target-newlib' will appear in skipdirs.
1480 i[3456789]86-*-mingw32*)
1481 target_configdirs="$target_configdirs target-winsup"
1482 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1484 *-*-cygwin*)
1485 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1486 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1487 # always build newlib if winsup directory is present.
1488 if test -d "$srcdir/winsup/cygwin"; then
1489 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1490 elif test -d "$srcdir/newlib"; then
1491 echo "Warning: winsup/cygwin is missing so newlib can't be built."
1494 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1495 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1497 i[3456789]86-*-pe)
1498 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1500 i[3456789]86-*-sco3.2v5*)
1501 # The linker does not yet know about weak symbols in COFF,
1502 # and is not configured to handle mixed ELF and COFF.
1503 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1505 i[3456789]86-*-sco*)
1506 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1508 i[3456789]86-*-solaris2*)
1509 noconfigdirs="$noconfigdirs target-libgloss"
1511 i[3456789]86-*-sysv4*)
1512 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1514 i[3456789]86-*-beos*)
1515 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1517 i[3456789]86-*-rdos*)
1518 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1520 m32r-*-*)
1521 noconfigdirs="$noconfigdirs ${libgcj}"
1523 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1524 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1526 m68k-*-elf*)
1527 noconfigdirs="$noconfigdirs ${libgcj}"
1529 m68k-*-coff*)
1530 noconfigdirs="$noconfigdirs ${libgcj}"
1532 mcore-*-pe*)
1533 # The EPOC C++ environment does not support exceptions or rtti,
1534 # and so building libstdc++-v3 tends not to always work.
1535 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1537 mmix-*-*)
1538 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1539 unsupported_languages="$unsupported_languages fortran java"
1541 mn10200-*-*)
1542 noconfigdirs="$noconfigdirs ${libgcj}"
1544 mn10300-*-*)
1545 noconfigdirs="$noconfigdirs ${libgcj}"
1547 mt-*-*)
1548 noconfigdirs="$noconfigdirs sim"
1550 powerpc-*-aix*)
1551 # copied from rs6000-*-* entry
1552 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1554 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1555 target_configdirs="$target_configdirs target-winsup"
1556 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1557 # always build newlib.
1558 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1560 # This is temporary until we can link against shared libraries
1561 powerpcle-*-solaris*)
1562 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1564 powerpc-*-beos*)
1565 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1567 powerpc-*-eabi)
1568 noconfigdirs="$noconfigdirs ${libgcj}"
1570 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1572 rs6000-*-lynxos*)
1573 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1575 rs6000-*-aix*)
1576 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1578 rs6000-*-*)
1579 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1581 m68k-apollo-*)
1582 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1584 mips*-*-irix5*)
1585 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1587 mips*-*-irix6*)
1588 # Linking libjava exceeds command-line length limits on at least
1589 # IRIX 6.2, but not on IRIX 6.5.
1590 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1591 # <oldham@codesourcery.com>
1592 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1594 mips*-*-bsd*)
1595 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1597 mips64*-*-linux*)
1598 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1600 mips*-*-linux*)
1601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1603 mips*-*-*)
1604 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1606 romp-*-*)
1607 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1609 sh-*-* | sh64-*-*)
1610 case "${host}" in
1611 i[3456789]86-*-vsta) ;; # don't add gprof back in
1612 i[3456789]86-*-go32*) ;; # don't add gprof back in
1613 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1614 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1615 esac
1616 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1618 sparc-*-elf*)
1619 noconfigdirs="$noconfigdirs ${libgcj}"
1621 sparc64-*-elf*)
1622 noconfigdirs="$noconfigdirs ${libgcj}"
1624 sparclite-*-*)
1625 noconfigdirs="$noconfigdirs ${libgcj}"
1627 sparc-*-sunos4*)
1628 noconfigdirs="$noconfigdirs ${libgcj}"
1629 if test x${is_cross_compiler} != xno ; then
1630 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1631 else
1632 use_gnu_ld=no
1635 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1636 noconfigdirs="$noconfigdirs ${libgcj}"
1638 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1640 spu-*-*)
1641 skipdirs="target-libiberty target-libssp"
1643 # LLVM LOCAL begin - TCE target
1644 tce-*-*)
1645 skipdirs="target-libssp target-libstdc++-v3"
1647 # LLVM LOCAL end - TCE target
1648 v810-*-*)
1649 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1651 v850-*-*)
1652 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1654 v850e-*-*)
1655 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1657 v850ea-*-*)
1658 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1660 vax-*-vms)
1661 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1663 vax-*-*)
1664 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1666 xtensa-*-*)
1667 noconfigdirs="$noconfigdirs ${libgcj}"
1669 ip2k-*-*)
1670 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1672 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1673 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1675 *-*-lynxos*)
1676 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1678 *-*-*)
1679 noconfigdirs="$noconfigdirs ${libgcj}"
1681 esac
1683 # If we aren't building newlib, then don't build libgloss, since libgloss
1684 # depends upon some newlib header files.
1685 case "${noconfigdirs}" in
1686 *target-libgloss*) ;;
1687 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1688 esac
1690 # Work in distributions that contain no compiler tools, like Autoconf.
1691 tentative_cc=""
1692 host_makefile_frag=/dev/null
1693 if test -d ${srcdir}/config ; then
1694 case "${host}" in
1695 m68k-hp-hpux*)
1696 # Avoid "too much defining" errors from HPUX compiler.
1697 tentative_cc="cc -Wp,-H256000"
1698 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1699 # If it's HP/UX ar, this should be harmless.
1700 RANLIB="ar ts"
1702 m68k-apollo-sysv*)
1703 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1705 m68k-apollo-bsd*)
1706 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1707 # chokes on bfd, the compiler won't let you assign integers to enums, and
1708 # other problems. Defining CC to gcc is a questionable way to say "don't use
1709 # the apollo compiler" (the preferred version of GCC could be called cc,
1710 # or whatever), but I'm not sure leaving CC as cc is any better...
1711 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1712 # Used to have BISON=yacc.
1713 tentative_cc=gcc
1715 m88k-dg-dgux*)
1716 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1718 m88k-harris-cxux*)
1719 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1720 tentative_cc="cc -Xa"
1721 host_makefile_frag="config/mh-cxux"
1723 m88k-motorola-sysv*)
1725 mips*-dec-ultrix*)
1726 tentative_cc="cc -Wf,-XNg1000"
1727 host_makefile_frag="config/mh-decstation"
1729 mips*-nec-sysv4*)
1730 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1731 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1732 host_makefile_frag="config/mh-necv4"
1734 mips*-sgi-irix4*)
1735 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1736 # environment. Also bump switch table size so that cp-parse will
1737 # compile. Bump string length limit so linker builds.
1738 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1740 mips*-*-sysv4*)
1741 host_makefile_frag="config/mh-sysv4"
1743 mips*-*-sysv*)
1744 # This is for a MIPS running RISC/os 4.52C.
1746 # This is needed for GDB, but needs to be in the top-level make because
1747 # if a library is compiled with the bsd headers and gets linked with the
1748 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1749 # a different size).
1750 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1751 # known except to select the sysv environment. Could we use /proc instead?
1752 # These "sysv environments" and "bsd environments" often end up being a pain.
1754 # This is not part of CFLAGS because perhaps not all C compilers have this
1755 # option.
1756 tentative_cc="cc -systype sysv"
1758 i370-ibm-opened*)
1759 tentative_cc="c89"
1761 i[3456789]86-*-sysv5*)
1762 host_makefile_frag="config/mh-sysv5"
1764 i[3456789]86-*-dgux*)
1765 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1766 host_makefile_frag="config/mh-dgux386"
1768 i[3456789]86-ncr-sysv4.3*)
1769 # The MetaWare compiler will generate a copyright message unless you
1770 # turn it off by adding the -Hnocopyr flag.
1771 tentative_cc="cc -Hnocopyr"
1773 i[3456789]86-ncr-sysv4*)
1774 # for an NCR 3000 (i486/SVR4) system.
1775 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1776 # This compiler not only emits obnoxious copyright messages every time
1777 # you run it, but it chokes and dies on a whole bunch of GNU source
1778 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1779 tentative_cc="/usr/ccs/ATT/cc"
1780 host_makefile_frag="config/mh-ncr3000"
1782 i[3456789]86-*-sco3.2v5*)
1784 i[3456789]86-*-sco*)
1785 # The native C compiler botches some simple uses of const. Unfortunately,
1786 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1787 tentative_cc="cc -Dconst="
1788 host_makefile_frag="config/mh-sco"
1790 i[3456789]86-*-udk*)
1791 host_makefile_frag="config/mh-sysv5"
1793 i[3456789]86-*-solaris2*)
1794 host_makefile_frag="config/mh-sysv4"
1796 i[3456789]86-*-msdosdjgpp*)
1797 host_makefile_frag="config/mh-djgpp"
1799 *-cygwin*)
1800 host_makefile_frag="config/mh-cygwin"
1802 *-mingw32*)
1804 *-interix*)
1805 host_makefile_frag="config/mh-interix"
1807 vax-*-ultrix2*)
1808 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1809 tentative_cc=gcc
1811 *-*-solaris2*)
1812 host_makefile_frag="config/mh-solaris"
1814 m68k-sun-sunos*)
1815 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1816 # without overflowing the jump tables (-J says to use a 32 bit table)
1817 tentative_cc="cc -J"
1819 *-hp-hpux*)
1820 tentative_cc="cc -Wp,-H256000"
1822 *-*-hiux*)
1823 tentative_cc="cc -Wp,-H256000"
1825 rs6000-*-lynxos*)
1826 # /bin/cc is less than useful for our purposes. Always use GCC
1827 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1828 host_makefile_frag="config/mh-lynxrs6k"
1830 powerpc-*-darwin*)
1831 host_makefile_frag="config/mh-ppc-darwin"
1833 # APPLE LOCAL begin dynamic-no-pic
1834 i[3456789]86-*-darwin*)
1835 host_makefile_frag="config/mh-x86-darwin"
1836 # gcc can default to x86_64 code generation, avoid that
1837 if test "${build}" = "${host}"; then
1838 CC="${CC-gcc} -m32"
1839 CXX="${CXX-g++} -m32"
1842 # APPLE LOCAL end dynamic-no-pic
1843 powerpc-*-aix*)
1844 host_makefile_frag="config/mh-ppc-aix"
1846 rs6000-*-aix*)
1847 host_makefile_frag="config/mh-ppc-aix"
1849 *-*-lynxos*)
1850 # /bin/cc is less than useful for our purposes. Always use GCC
1851 tentative_cc="/bin/gcc"
1853 *-*-sysv4*)
1854 host_makefile_frag="config/mh-sysv4"
1856 # LLVM LOCAL begin
1857 x86_64-*-darwin*)
1858 host_makefile_frag="config/mh-x86-darwin"
1860 # LLVM LOCAL end
1861 # This is placed last to prevent interfering with the cases above.
1862 i[3456789]86-*-*)
1863 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1864 host_makefile_frag="config/mh-x86omitfp"
1866 esac
1869 # If we aren't going to be using gcc, see if we can extract a definition
1870 # of CC from the fragment.
1871 # Actually, use the 'pre-extracted' version above.
1872 if test -z "${CC}" && test "${build}" = "${host}" ; then
1873 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1874 found=
1875 for dir in $PATH; do
1876 test -z "$dir" && dir=.
1877 if test -f $dir/gcc; then
1878 found=yes
1879 break
1881 done
1882 IFS="$save_ifs"
1883 if test -z "${found}" && test -n "${tentative_cc}" ; then
1884 CC=$tentative_cc
1888 if test "${build}" != "${host}" ; then
1889 # If we are doing a Canadian Cross, in which the host and build systems
1890 # are not the same, we set reasonable default values for the tools.
1892 CC=${CC-${host_alias}-gcc}
1893 CFLAGS=${CFLAGS-"-g -O2"}
1894 CXX=${CXX-${host_alias}-c++}
1895 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1896 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1898 else
1899 # Set reasonable default values for some tools even if not Canadian.
1900 # Of course, these are different reasonable default values, originally
1901 # specified directly in the Makefile.
1902 # We don't export, so that autoconf can do its job.
1903 # Note that all these settings are above the fragment inclusion point
1904 # in Makefile.in, so can still be overridden by fragments.
1905 # This is all going to change when we autoconfiscate...
1907 CC_FOR_BUILD="\$(CC)"
1908 # Extract the first word of "gcc", so it can be a program name with args.
1909 set dummy gcc; ac_word=$2
1910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_word" >&5
1912 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1914 else
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1917 else
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1919 ac_dummy="$PATH"
1920 for ac_dir in $ac_dummy; do
1921 test -z "$ac_dir" && ac_dir=.
1922 if test -f $ac_dir/$ac_word; then
1923 ac_cv_prog_CC="gcc"
1924 break
1926 done
1927 IFS="$ac_save_ifs"
1930 CC="$ac_cv_prog_CC"
1931 if test -n "$CC"; then
1932 echo "$ac_t""$CC" 1>&6
1933 else
1934 echo "$ac_t""no" 1>&6
1937 if test -z "$CC"; then
1938 # Extract the first word of "cc", so it can be a program name with args.
1939 set dummy cc; ac_word=$2
1940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1941 echo "configure:1942: checking for $ac_word" >&5
1942 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1944 else
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC="$CC" # Let the user override the test.
1947 else
1948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1949 ac_prog_rejected=no
1950 ac_dummy="$PATH"
1951 for ac_dir in $ac_dummy; do
1952 test -z "$ac_dir" && ac_dir=.
1953 if test -f $ac_dir/$ac_word; then
1954 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1955 ac_prog_rejected=yes
1956 continue
1958 ac_cv_prog_CC="cc"
1959 break
1961 done
1962 IFS="$ac_save_ifs"
1963 if test $ac_prog_rejected = yes; then
1964 # We found a bogon in the path, so make sure we never use it.
1965 set dummy $ac_cv_prog_CC
1966 shift
1967 if test $# -gt 0; then
1968 # We chose a different compiler from the bogus one.
1969 # However, it has the same basename, so the bogon will be chosen
1970 # first if we set CC to just the basename; use the full file name.
1971 shift
1972 set dummy "$ac_dir/$ac_word" "$@"
1973 shift
1974 ac_cv_prog_CC="$@"
1979 CC="$ac_cv_prog_CC"
1980 if test -n "$CC"; then
1981 echo "$ac_t""$CC" 1>&6
1982 else
1983 echo "$ac_t""no" 1>&6
1986 if test -z "$CC"; then
1987 case "`uname -s`" in
1988 *win32* | *WIN32*)
1989 # Extract the first word of "cl", so it can be a program name with args.
1990 set dummy cl; ac_word=$2
1991 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1992 echo "configure:1993: checking for $ac_word" >&5
1993 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1995 else
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC="$CC" # Let the user override the test.
1998 else
1999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2000 ac_dummy="$PATH"
2001 for ac_dir in $ac_dummy; do
2002 test -z "$ac_dir" && ac_dir=.
2003 if test -f $ac_dir/$ac_word; then
2004 ac_cv_prog_CC="cl"
2005 break
2007 done
2008 IFS="$ac_save_ifs"
2011 CC="$ac_cv_prog_CC"
2012 if test -n "$CC"; then
2013 echo "$ac_t""$CC" 1>&6
2014 else
2015 echo "$ac_t""no" 1>&6
2018 esac
2020 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2023 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2024 echo "configure:2025: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2026 ac_ext=c
2027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2028 ac_cpp='$CPP $CPPFLAGS'
2029 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2030 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2031 cross_compiling=$ac_cv_prog_cc_cross
2033 cat > conftest.$ac_ext << EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2038 main(){return(0);}
2040 if { (eval echo configure:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2041 ac_cv_prog_cc_works=yes
2042 # If we can't run a trivial program, we are probably using a cross compiler.
2043 if (./conftest; exit) 2>/dev/null; then
2044 ac_cv_prog_cc_cross=no
2045 else
2046 ac_cv_prog_cc_cross=yes
2048 else
2049 echo "configure: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2051 ac_cv_prog_cc_works=no
2053 rm -fr conftest*
2054 ac_ext=c
2055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2056 ac_cpp='$CPP $CPPFLAGS'
2057 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2058 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2059 cross_compiling=$ac_cv_prog_cc_cross
2061 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2062 if test $ac_cv_prog_cc_works = no; then
2063 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2065 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2066 echo "configure:2067: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2067 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2068 cross_compiling=$ac_cv_prog_cc_cross
2070 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2071 echo "configure:2072: checking whether we are using GNU C" >&5
2072 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2074 else
2075 cat > conftest.c <<EOF
2076 #ifdef __GNUC__
2077 yes;
2078 #endif
2080 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2081 ac_cv_prog_gcc=yes
2082 else
2083 ac_cv_prog_gcc=no
2087 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2089 if test $ac_cv_prog_gcc = yes; then
2090 GCC=yes
2091 else
2092 GCC=
2095 ac_test_CFLAGS="${CFLAGS+set}"
2096 ac_save_CFLAGS="$CFLAGS"
2097 CFLAGS=
2098 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2099 echo "configure:2100: checking whether ${CC-cc} accepts -g" >&5
2100 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2102 else
2103 echo 'void f(){}' > conftest.c
2104 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2105 ac_cv_prog_cc_g=yes
2106 else
2107 ac_cv_prog_cc_g=no
2109 rm -f conftest*
2113 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2114 if test "$ac_test_CFLAGS" = set; then
2115 CFLAGS="$ac_save_CFLAGS"
2116 elif test $ac_cv_prog_cc_g = yes; then
2117 if test "$GCC" = yes; then
2118 CFLAGS="-g -O2"
2119 else
2120 CFLAGS="-g"
2122 else
2123 if test "$GCC" = yes; then
2124 CFLAGS="-O2"
2125 else
2126 CFLAGS=
2131 # We must set the default linker to the linker used by gcc for the correct
2132 # operation of libtool. If LD is not defined and we are using gcc, try to
2133 # set the LD default to the ld used by gcc.
2134 if test -z "$LD"; then
2135 if test "$GCC" = yes; then
2136 case $build in
2137 *-*-mingw*)
2138 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2140 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2141 esac
2142 case $gcc_prog_ld in
2143 # Accept absolute paths.
2144 [\\/]* | [A-Za-z]:[\\/]*)
2145 LD="$gcc_prog_ld" ;;
2146 esac
2150 CXX=${CXX-"c++"}
2151 CFLAGS=${CFLAGS-"-g"}
2152 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2155 if test $host != $build; then
2156 ac_tool_prefix=${host_alias}-
2157 else
2158 ac_tool_prefix=
2163 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2164 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2166 echo "configure:2167: checking for $ac_word" >&5
2167 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2169 else
2170 if test -n "$GNATBIND"; then
2171 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2172 else
2173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2174 ac_dummy="$PATH"
2175 for ac_dir in $ac_dummy; do
2176 test -z "$ac_dir" && ac_dir=.
2177 if test -f $ac_dir/$ac_word; then
2178 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2179 break
2181 done
2182 IFS="$ac_save_ifs"
2185 GNATBIND="$ac_cv_prog_GNATBIND"
2186 if test -n "$GNATBIND"; then
2187 echo "$ac_t""$GNATBIND" 1>&6
2188 else
2189 echo "$ac_t""no" 1>&6
2193 if test -z "$ac_cv_prog_GNATBIND"; then
2194 if test -n "$ac_tool_prefix"; then
2195 # Extract the first word of "gnatbind", so it can be a program name with args.
2196 set dummy gnatbind; ac_word=$2
2197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2198 echo "configure:2199: checking for $ac_word" >&5
2199 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2201 else
2202 if test -n "$GNATBIND"; then
2203 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2204 else
2205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2206 ac_dummy="$PATH"
2207 for ac_dir in $ac_dummy; do
2208 test -z "$ac_dir" && ac_dir=.
2209 if test -f $ac_dir/$ac_word; then
2210 ac_cv_prog_GNATBIND="gnatbind"
2211 break
2213 done
2214 IFS="$ac_save_ifs"
2215 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2218 GNATBIND="$ac_cv_prog_GNATBIND"
2219 if test -n "$GNATBIND"; then
2220 echo "$ac_t""$GNATBIND" 1>&6
2221 else
2222 echo "$ac_t""no" 1>&6
2225 else
2226 GNATBIND="no"
2230 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2231 echo "configure:2232: checking whether compiler driver understands Ada" >&5
2232 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2234 else
2235 cat >conftest.adb <<EOF
2236 procedure conftest is begin null; end conftest;
2238 acx_cv_cc_gcc_supports_ada=no
2239 # There is a bug in old released versions of GCC which causes the
2240 # driver to exit successfully when the appropriate language module
2241 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2242 # Therefore we must check for the error message as well as an
2243 # unsuccessful exit.
2244 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2245 # given a .adb file, but produce no object file. So we must check
2246 # if an object file was really produced to guard against this.
2247 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2248 if test x"$errors" = x && test -f conftest.$ac_objext; then
2249 acx_cv_cc_gcc_supports_ada=yes
2251 rm -f conftest.*
2254 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2256 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2257 have_gnat=yes
2258 else
2259 have_gnat=no
2262 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2263 echo "configure:2264: checking how to compare bootstrapped objects" >&5
2264 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2266 else
2267 echo abfoo >t1
2268 echo cdfoo >t2
2269 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2270 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2271 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2273 else
2274 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2277 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2278 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2280 else
2281 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2284 rm t1 t2
2288 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2289 do_compare="$gcc_cv_prog_cmp_skip"
2293 # Check for GMP and MPFR
2294 gmplibs="-lmpfr"
2295 gmpinc=
2296 have_gmp=yes
2297 # Specify a location for mpfr
2298 # check for this first so it ends up on the link line before gmp.
2299 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2300 if test "${with_mpfr_dir+set}" = set; then
2301 withval="$with_mpfr_dir"
2302 { echo "configure: error: The --with-mpfr-dir=PATH option has been removed.
2303 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" 1>&2; exit 1; }
2307 # Check whether --with-mpfr or --without-mpfr was given.
2308 if test "${with_mpfr+set}" = set; then
2309 withval="$with_mpfr"
2313 # Check whether --with-mpfr_include or --without-mpfr_include was given.
2314 if test "${with_mpfr_include+set}" = set; then
2315 withval="$with_mpfr_include"
2319 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
2320 if test "${with_mpfr_lib+set}" = set; then
2321 withval="$with_mpfr_lib"
2326 if test "x$with_mpfr" != x; then
2327 gmplibs="-L$with_mpfr/lib $gmplibs"
2328 gmpinc="-I$with_mpfr/include"
2330 if test "x$with_mpfr_include" != x; then
2331 gmpinc="-I$with_mpfr_include"
2333 if test "x$with_mpfr_lib" != x; then
2334 gmplibs="-L$with_mpfr_lib $gmplibs"
2337 # Specify a location for gmp
2338 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2339 if test "${with_gmp_dir+set}" = set; then
2340 withval="$with_gmp_dir"
2341 { echo "configure: error: The --with-gmp-dir=PATH option has been removed.
2342 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" 1>&2; exit 1; }
2346 gmplibs="$gmplibs -lgmp"
2348 # Check whether --with-gmp or --without-gmp was given.
2349 if test "${with_gmp+set}" = set; then
2350 withval="$with_gmp"
2354 # Check whether --with-gmp_include or --without-gmp_include was given.
2355 if test "${with_gmp_include+set}" = set; then
2356 withval="$with_gmp_include"
2360 # Check whether --with-gmp_lib or --without-gmp_lib was given.
2361 if test "${with_gmp_lib+set}" = set; then
2362 withval="$with_gmp_lib"
2368 if test "x$with_gmp" != x; then
2369 gmplibs="-L$with_gmp/lib $gmplibs"
2370 gmpinc="-I$with_gmp/include $gmpinc"
2372 if test "x$with_gmp_include" != x; then
2373 gmpinc="-I$with_gmp_include $gmpinc"
2375 if test "x$with_gmp_lib" != x; then
2376 gmplibs="-L$with_gmp_lib $gmplibs"
2379 saved_CFLAGS="$CFLAGS"
2380 CFLAGS="$CFLAGS $gmpinc"
2381 # Check GMP actually works
2382 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2383 echo "configure:2384: checking for correct version of gmp.h" >&5
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 #include "gmp.h"
2388 int main() {
2390 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
2391 choke me
2392 #endif
2394 ; return 0; }
2396 if { (eval echo configure:2397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2397 rm -rf conftest*
2398 echo "$ac_t""yes" 1>&6
2399 else
2400 echo "configure: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2402 rm -rf conftest*
2403 echo "$ac_t""no" 1>&6; have_gmp=no
2405 rm -f conftest*
2407 if test x"$have_gmp" = xyes; then
2408 echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
2409 echo "configure:2410: checking for correct version of mpfr.h" >&5
2410 cat > conftest.$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2413 #include "gmp.h"
2414 #include <mpfr.h>
2415 int main() {
2417 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
2418 choke me
2419 #endif
2421 ; return 0; }
2423 if { (eval echo configure:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2424 rm -rf conftest*
2425 echo "$ac_t""yes" 1>&6
2426 else
2427 echo "configure: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2429 rm -rf conftest*
2430 echo "$ac_t""buggy version of MPFR detected" 1>&6
2432 rm -f conftest*
2434 saved_LIBS="$LIBS"
2435 LIBS="$LIBS $gmplibs"
2436 echo $ac_n "checking for any version of mpfr.h""... $ac_c" 1>&6
2437 echo "configure:2438: checking for any version of mpfr.h" >&5
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2441 #include <gmp.h>
2442 #include <mpfr.h>
2443 int main() {
2444 mpfr_t n; mpfr_init(n);
2445 ; return 0; }
2447 if { (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2448 rm -rf conftest*
2449 echo "$ac_t""yes" 1>&6
2450 else
2451 echo "configure: failed program was:" >&5
2452 cat conftest.$ac_ext >&5
2453 rm -rf conftest*
2454 echo "$ac_t""no" 1>&6; have_gmp=no
2456 rm -f conftest*
2457 LIBS="$saved_LIBS"
2459 CFLAGS="$saved_CFLAGS"
2461 # Flags needed for both GMP and/or MPFR
2465 # By default, C is the only stage 1 language.
2466 stage1_languages=c
2469 # Figure out what language subdirectories are present.
2470 # Look if the user specified --enable-languages="..."; if not, use
2471 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2472 # go away some day.
2473 # NB: embedded tabs in this IF block -- do not untabify
2474 if test -d ${srcdir}/gcc; then
2475 if test x"${enable_languages+set}" != xset; then
2476 if test x"${LANGUAGES+set}" = xset; then
2477 enable_languages="${LANGUAGES}"
2478 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2479 else
2480 enable_languages=all
2482 else
2483 if test x"${enable_languages}" = x ||
2484 test x"${enable_languages}" = xyes;
2485 then
2486 echo configure.in: --enable-languages needs at least one language argument 1>&2
2487 exit 1
2490 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2492 # 'f95' is the old name for the 'fortran' language. We issue a warning
2493 # and make the substitution.
2494 case ,${enable_languages}, in
2495 *,f95,*)
2496 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2497 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2499 esac
2501 # First scan to see if an enabled language requires some other language.
2502 # We assume that a given config-lang.in will list all the language
2503 # front ends it requires, even if some are required indirectly.
2504 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2505 case ${lang_frag} in
2506 ..) ;;
2507 # The odd quoting in the next line works around
2508 # an apparent bug in bash 1.12 on linux.
2509 ${srcdir}/gcc/[*]/config-lang.in) ;;
2511 # From the config-lang.in, get $language, $lang_requires
2512 language=
2513 lang_requires=
2514 . ${lang_frag}
2515 for other in ${lang_requires} ; do
2516 case ,${enable_languages}, in
2517 *,$other,*) ;;
2518 *,all,*) ;;
2519 *,$language,*)
2520 echo " \`$other' language required by \`$language'; enabling" 1>&2
2521 enable_languages="${enable_languages},${other}"
2523 esac
2524 done
2526 esac
2527 done
2529 new_enable_languages=c
2530 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2531 potential_languages=c
2533 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2534 case ${lang_frag} in
2535 ..) ;;
2536 # The odd quoting in the next line works around
2537 # an apparent bug in bash 1.12 on linux.
2538 ${srcdir}/gcc/[*]/config-lang.in) ;;
2540 # From the config-lang.in, get $language, $target_libs,
2541 # $lang_dirs, $boot_language, and $build_by_default
2542 language=
2543 target_libs=
2544 lang_dirs=
2545 subdir_requires=
2546 boot_language=
2547 build_by_default=
2548 need_gmp=
2549 . ${lang_frag}
2550 potential_languages="${potential_languages},${language}"
2551 # This is quite sensitive to the ordering of the case statement arms.
2552 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2553 *::*:*)
2554 echo "${lang_frag} doesn't set \$language." 1>&2
2555 exit 1
2557 *:ada:no:*)
2558 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2559 add_this_lang=no
2561 *,${language},*:*:*:*)
2562 # Language was explicitly selected; include it.
2563 add_this_lang=yes
2565 *,all,*:*:*:no)
2566 # 'all' was selected, but this is not a default language
2567 # so do not include it.
2568 add_this_lang=no
2570 *,all,*:*:*:*)
2571 # 'all' was selected and this is a default language; include it.
2572 add_this_lang=yes
2575 add_this_lang=no
2577 esac
2579 # Disable languages that need other directories if these aren't available.
2580 for i in $subdir_requires; do
2581 test -f "$srcdir/gcc/$i/config-lang.in" && continue
2582 case ,${enable_languages}, in
2583 *,${language},*)
2584 # Specifically requested language; tell them.
2585 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2588 # Silently disable.
2589 add_this_lang=no
2591 esac
2592 done
2594 # Disable languages that need GMP if it isn't available.
2595 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2596 *,${language},*:no:yes)
2597 # Specifically requested language; tell them.
2598 { echo "configure: error: GMP 4.1 and MPFR 2.2.1 or newer versions required by $language" 1>&2; exit 1; }
2600 *:no:yes)
2601 # Silently disable.
2602 add_this_lang=no
2604 esac
2606 # Disable a language that is unsupported by the target.
2607 case " $unsupported_languages " in
2608 *" $language "*)
2609 add_this_lang=no
2611 esac
2613 case $add_this_lang in
2615 # Remove language-dependent dirs.
2616 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2619 new_enable_languages="$new_enable_languages,$language"
2620 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2621 case ${boot_language} in
2622 yes)
2623 # Add to (comma-separated) list of stage 1 languages.
2624 stage1_languages="${stage1_languages},${language}"
2626 esac
2628 esac
2630 esac
2631 done
2633 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2634 if test "x$missing_languages" != x; then
2635 { echo "configure: error:
2636 The following requested languages could not be built: ${missing_languages}
2637 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2640 if test "x$new_enable_languages" != "x$enable_languages"; then
2641 echo The following languages will be built: ${new_enable_languages}
2643 enable_languages="$new_enable_languages"
2644 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2647 # Handle --disable-<component> generically.
2648 for dir in $configdirs $build_configdirs $target_configdirs ; do
2649 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2650 if eval test x\${enable_${dirname}} "=" xno ; then
2651 noconfigdirs="$noconfigdirs $dir"
2653 done
2655 # Check for Boehm's garbage collector
2656 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2657 if test "${enable_objc_gc+set}" = set; then
2658 enableval="$enable_objc_gc"
2659 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2660 *,objc,*:*:yes:*target-boehm-gc*)
2661 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2663 esac
2667 # Make sure we only build Boehm's garbage collector if required.
2668 case ,${enable_languages},:${enable_objc_gc} in
2669 *,objc,*:yes)
2670 # Keep target-boehm-gc if requested for Objective-C.
2673 # Otherwise remove target-boehm-gc depending on target-libjava.
2674 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
2675 noconfigdirs="$noconfigdirs target-boehm-gc"
2678 esac
2680 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2681 # $build_configdirs and $target_configdirs.
2682 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2684 notsupp=""
2685 for dir in . $skipdirs $noconfigdirs ; do
2686 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2687 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2688 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2689 if test -r $srcdir/$dirname/configure ; then
2690 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2691 true
2692 else
2693 notsupp="$notsupp $dir"
2697 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2698 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2699 if test -r $srcdir/$dirname/configure ; then
2700 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2701 true
2702 else
2703 notsupp="$notsupp $dir"
2707 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2708 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2709 if test -r $srcdir/$dirname/configure ; then
2710 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2711 true
2712 else
2713 notsupp="$notsupp $dir"
2717 done
2719 # Sometimes the tools are distributed with libiberty but with no other
2720 # libraries. In that case, we don't want to build target-libiberty.
2721 if test -n "${target_configdirs}" ; then
2722 others=
2723 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2724 if test "$i" != "libiberty" ; then
2725 if test -r $srcdir/$i/configure ; then
2726 others=yes;
2727 break;
2730 done
2731 if test -z "${others}" ; then
2732 target_configdirs=
2736 # Quietly strip out all directories which aren't configurable in this tree.
2737 # This relies on all configurable subdirectories being autoconfiscated, which
2738 # is now the case.
2739 build_configdirs_all="$build_configdirs"
2740 build_configdirs=
2741 for i in ${build_configdirs_all} ; do
2742 j=`echo $i | sed -e s/build-//g`
2743 if test -f ${srcdir}/$j/configure ; then
2744 build_configdirs="${build_configdirs} $i"
2746 done
2748 configdirs_all="$configdirs"
2749 configdirs=
2750 for i in ${configdirs_all} ; do
2751 if test -f ${srcdir}/$i/configure ; then
2752 configdirs="${configdirs} $i"
2754 done
2756 target_configdirs_all="$target_configdirs"
2757 target_configdirs=
2758 for i in ${target_configdirs_all} ; do
2759 j=`echo $i | sed -e s/target-//g`
2760 if test -f ${srcdir}/$j/configure ; then
2761 target_configdirs="${target_configdirs} $i"
2763 done
2765 # Produce a warning message for the subdirs we can't configure.
2766 # This isn't especially interesting in the Cygnus tree, but in the individual
2767 # FSF releases, it's important to let people know when their machine isn't
2768 # supported by the one or two programs in a package.
2770 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2771 # If $appdirs is non-empty, at least one of those directories must still
2772 # be configured, or we error out. (E.g., if the gas release supports a
2773 # specified target in some subdirs but not the gas subdir, we shouldn't
2774 # pretend that all is well.)
2775 if test -n "$appdirs" ; then
2776 for dir in $appdirs ; do
2777 if test -r $dir/Makefile.in ; then
2778 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2779 appdirs=""
2780 break
2782 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2783 appdirs=""
2784 break
2787 done
2788 if test -n "$appdirs" ; then
2789 echo "*** This configuration is not supported by this package." 1>&2
2790 exit 1
2793 # Okay, some application will build, or we don't care to check. Still
2794 # notify of subdirs not getting built.
2795 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2796 echo " ${notsupp}" 1>&2
2797 echo " (Any other directories should still work fine.)" 1>&2
2800 case "$host" in
2801 *msdosdjgpp*)
2802 enable_gdbtk=no ;;
2803 esac
2805 copy_dirs=
2807 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2808 if test "${with_build_sysroot+set}" = set; then
2809 withval="$with_build_sysroot"
2810 if test x"$withval" != x ; then
2811 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2813 else
2814 SYSROOT_CFLAGS_FOR_TARGET=
2819 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2820 # the named directory are copied to $(tooldir)/sys-include.
2821 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2822 if test x${is_cross_compiler} = xno ; then
2823 echo 1>&2 '***' --with-headers is only supported when cross compiling
2824 exit 1
2826 if test x"${with_headers}" != xyes ; then
2827 case "${exec_prefixoption}" in
2828 "") x=${prefix} ;;
2829 *) x=${exec_prefix} ;;
2830 esac
2831 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2835 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2836 # the name directories are copied to $(tooldir)/lib. Multiple directories
2837 # are permitted.
2838 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2839 if test x${is_cross_compiler} = xno ; then
2840 echo 1>&2 '***' --with-libs is only supported when cross compiling
2841 exit 1
2843 if test x"${with_libs}" != xyes ; then
2844 # Copy the libraries in reverse order, so that files in the first named
2845 # library override files in subsequent libraries.
2846 case "${exec_prefixoption}" in
2847 "") x=${prefix} ;;
2848 *) x=${exec_prefix} ;;
2849 esac
2850 for l in ${with_libs}; do
2851 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2852 done
2856 # Set with_gnu_as and with_gnu_ld as appropriate.
2858 # This is done by determining whether or not the appropriate directory
2859 # is available, and by checking whether or not specific configurations
2860 # have requested that this magic not happen.
2862 # The command line options always override the explicit settings in
2863 # configure.in, and the settings in configure.in override this magic.
2865 # If the default for a toolchain is to use GNU as and ld, and you don't
2866 # want to do that, then you should use the --without-gnu-as and
2867 # --without-gnu-ld options for the configure script.
2869 if test x${use_gnu_as} = x &&
2870 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2871 with_gnu_as=yes
2872 extra_host_args="$extra_host_args --with-gnu-as"
2875 if test x${use_gnu_ld} = x &&
2876 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2877 with_gnu_ld=yes
2878 extra_host_args="$extra_host_args --with-gnu-ld"
2881 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2882 # can detect this case.
2884 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2885 with_newlib=yes
2886 extra_host_args="$extra_host_args --with-newlib"
2889 # Handle ${copy_dirs}
2890 set fnord ${copy_dirs}
2891 shift
2892 while test $# != 0 ; do
2893 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2895 else
2896 echo Copying $1 to $2
2898 # Use the install script to create the directory and all required
2899 # parent directories.
2900 if test -d $2 ; then
2902 else
2903 echo >config.temp
2904 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2907 # Copy the directory, assuming we have tar.
2908 # FIXME: Should we use B in the second tar? Not all systems support it.
2909 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2911 # It is the responsibility of the user to correctly adjust all
2912 # symlinks. If somebody can figure out how to handle them correctly
2913 # here, feel free to add the code.
2915 echo $1 > $2/COPIED
2917 shift; shift
2918 done
2920 # Determine a target-dependent exec_prefix that the installed
2921 # gcc will search in. Keep this list sorted by triplet, with
2922 # the *-*-osname triplets last.
2923 md_exec_prefix=
2924 case "${target}" in
2925 alpha*-*-*vms*)
2926 md_exec_prefix=/gnu/lib/gcc-lib
2928 i3456786-pc-msdosdjgpp*)
2929 md_exec_prefix=/dev/env/DJDIR/bin
2931 i3456786-*-sco3.2v5*)
2932 if test $with_gnu_as = yes; then
2933 md_exec_prefix=/usr/gnu/bin
2934 else
2935 md_exec_prefix=/usr/ccs/bin/elf
2939 mn10300-*-* | \
2940 powerpc-*-chorusos* | \
2941 powerpc*-*-eabi* | \
2942 powerpc*-*-sysv* | \
2943 powerpc*-*-kaos* | \
2944 s390x-ibm-tpf*)
2945 md_exec_prefix=/usr/ccs/bin
2947 sparc64-*-elf*)
2949 v850*-*-*)
2950 md_exec_prefix=/usr/ccs/bin
2952 xtensa-*-elf*)
2955 *-*-beos* | \
2956 *-*-elf* | \
2957 *-*-hpux* | \
2958 *-*-netware* | \
2959 *-*-nto-qnx* | \
2960 *-*-rtems* | \
2961 *-*-solaris2* | \
2962 *-*-sysv45* | \
2963 *-*-vxworks* | \
2964 *-wrs-windiss)
2965 md_exec_prefix=/usr/ccs/bin
2967 esac
2969 extra_arflags_for_target=
2970 extra_nmflags_for_target=
2971 extra_ranlibflags_for_target=
2972 target_makefile_frag=/dev/null
2973 case "${target}" in
2974 *-*-netware*)
2975 target_makefile_frag="config/mt-netware"
2977 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2978 target_makefile_frag="config/mt-gnu"
2980 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2981 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2982 # commands to handle both 32-bit and 64-bit objects. These flags are
2983 # harmless if we're using GNU nm or ar.
2984 extra_arflags_for_target=" -X32_64"
2985 extra_nmflags_for_target=" -B -X32_64"
2987 *-*-darwin*)
2988 # ranlib from Darwin requires the -c flag to look at common symbols.
2989 extra_ranlibflags_for_target=" -c"
2991 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2992 target_makefile_frag="config/mt-wince"
2994 esac
2996 alphaieee_frag=/dev/null
2997 case $target in
2998 alpha*-*-*)
2999 # This just makes sure to use the -mieee option to build target libs.
3000 # This should probably be set individually by each library.
3001 alphaieee_frag="config/mt-alphaieee"
3003 esac
3005 # If --enable-target-optspace always use -Os instead of -O2 to build
3006 # the target libraries, similarly if it is not specified, use -Os
3007 # on selected platforms.
3008 ospace_frag=/dev/null
3009 case "${enable_target_optspace}:${target}" in
3010 yes:*)
3011 ospace_frag="config/mt-ospace"
3013 :d30v-*)
3014 ospace_frag="config/mt-d30v"
3016 :m32r-* | :d10v-* | :fr30-*)
3017 ospace_frag="config/mt-ospace"
3019 no:* | :*)
3022 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
3024 esac
3026 # Default to using --with-stabs for certain targets.
3027 if test x${with_stabs} = x ; then
3028 case "${target}" in
3029 mips*-*-irix[56]*)
3031 mips*-*-* | alpha*-*-osf*)
3032 with_stabs=yes;
3033 extra_host_args="${extra_host_args} --with-stabs"
3035 esac
3038 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
3039 # them automatically.
3040 case "${host}" in
3041 hppa*64*-*-hpux11*)
3042 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
3044 esac
3046 # Some systems (e.g., one of the i386-aix systems the gas testers are
3047 # using) don't handle "\$" correctly, so don't use it here.
3048 tooldir='${exec_prefix}'/${target_alias}
3049 build_tooldir=${tooldir}
3051 # Create a .gdbinit file which runs the one in srcdir
3052 # and tells GDB to look there for source files.
3054 if test -r ${srcdir}/.gdbinit ; then
3055 case ${srcdir} in
3056 .) ;;
3057 *) cat > ./.gdbinit <<EOF
3058 # ${NO_EDIT}
3059 dir ${srcdir}
3060 dir .
3061 source ${srcdir}/.gdbinit
3064 esac
3067 # Make sure that the compiler is able to generate an executable. If it
3068 # can't, we are probably in trouble. We don't care whether we can run the
3069 # executable--we might be using a cross compiler--we only care whether it
3070 # can be created. At this point the main configure script has set CC.
3071 we_are_ok=no
3072 echo "int main () { return 0; }" > conftest.c
3073 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3074 if test $? = 0 ; then
3075 if test -s conftest || test -s conftest.exe ; then
3076 we_are_ok=yes
3079 case $we_are_ok in
3081 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3082 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3083 rm -f conftest*
3084 exit 1
3086 esac
3087 rm -f conftest*
3089 # The Solaris /usr/ucb/cc compiler does not appear to work.
3090 case "${host}" in
3091 sparc-sun-solaris2*)
3092 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
3093 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3094 could_use=
3095 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
3096 if test -d /opt/cygnus/bin ; then
3097 if test "$could_use" = "" ; then
3098 could_use="/opt/cygnus/bin"
3099 else
3100 could_use="$could_use or /opt/cygnus/bin"
3103 if test "$could_use" = "" ; then
3104 echo "Warning: compilation may fail because you're using"
3105 echo "/usr/ucb/cc. You should change your PATH or CC "
3106 echo "variable and rerun configure."
3107 else
3108 echo "Warning: compilation may fail because you're using"
3109 echo "/usr/ucb/cc, when you should use the C compiler from"
3110 echo "$could_use. You should change your"
3111 echo "PATH or CC variable and rerun configure."
3115 esac
3117 case "${host}" in
3118 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3119 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3120 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3121 esac
3123 # Record target_configdirs and the configure arguments for target and
3124 # build configuration in Makefile.
3125 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3126 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3128 # Determine whether gdb needs tk/tcl or not.
3129 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3130 # and in that case we want gdb to be built without tk. Ugh!
3131 # In fact I believe gdb is the *only* package directly dependent on tk,
3132 # so we should be able to put the 'maybe's in unconditionally and
3133 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3134 # 100% sure that that's safe though.
3136 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3137 case "$enable_gdbtk" in
3139 GDB_TK="" ;;
3140 yes)
3141 GDB_TK="${gdb_tk}" ;;
3143 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3144 # distro. Eventually someone will fix this and move Insight, nee
3145 # gdbtk to a separate directory.
3146 if test -d ${srcdir}/gdb/gdbtk ; then
3147 GDB_TK="${gdb_tk}"
3148 else
3149 GDB_TK=""
3152 esac
3153 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3154 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3156 # Strip out unwanted targets.
3158 # While at that, we remove Makefiles if we were started for recursive
3159 # configuration, so that the top-level Makefile reconfigures them,
3160 # like we used to do when configure itself was recursive.
3162 # Loop over modules. $extrasub must be used with care, limiting as
3163 # much as possible the usage of range addresses. That's because autoconf
3164 # splits the sed script to overcome limits in the number of commands,
3165 # and relying on carefully-timed sed passes may turn out to be very hard
3166 # to maintain later. In this particular case, you just have to be careful
3167 # not to nest @if/@endif pairs, because configure will not warn you at all.
3169 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3170 if test "${enable_bootstrap+set}" = set; then
3171 enableval="$enable_bootstrap"
3173 else
3174 enable_bootstrap=default
3178 # Issue errors and warnings for invalid/strange bootstrap combinations.
3179 case "$configdirs" in
3180 *gcc*) have_compiler=yes ;;
3181 *) have_compiler=no ;;
3182 esac
3184 case "$have_compiler:$host:$target:$enable_bootstrap" in
3185 *:*:*:no) ;;
3187 # Default behavior. Enable bootstrap if we have a compiler
3188 # and we are in a native configuration.
3189 yes:$build:$build:default)
3190 enable_bootstrap=yes ;;
3192 *:*:*:default)
3193 enable_bootstrap=no ;;
3195 # We have a compiler and we are in a native configuration, bootstrap is ok
3196 yes:$build:$build:yes)
3199 # Other configurations, but we have a compiler. Assume the user knows
3200 # what he's doing.
3201 yes:*:*:yes)
3202 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3205 # No compiler: if they passed --enable-bootstrap explicitly, fail
3206 no:*:*:yes)
3207 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3209 # Fail if wrong command line
3211 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3213 esac
3215 # Adjust the toplevel makefile according to whether bootstrap was selected.
3216 case "$enable_bootstrap" in
3217 yes)
3218 bootstrap_suffix=bootstrap ;;
3220 bootstrap_suffix=no-bootstrap ;;
3221 esac
3223 for module in ${build_configdirs} ; do
3224 if test -z "${no_recursion}" \
3225 && test -f ${build_subdir}/${module}/Makefile; then
3226 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3227 rm -f ${build_subdir}/${module}/Makefile
3229 extrasub="$extrasub
3230 /^@if build-$module\$/d
3231 /^@endif build-$module\$/d
3232 /^@if build-$module-$bootstrap_suffix\$/d
3233 /^@endif build-$module-$bootstrap_suffix\$/d"
3234 done
3235 for module in ${configdirs} ; do
3236 if test -z "${no_recursion}"; then
3237 for file in stage*-${module}/Makefile ${module}/Makefile; do
3238 if test -f ${file}; then
3239 echo 1>&2 "*** removing ${file} to force reconfigure"
3240 rm -f ${file}
3242 done
3244 extrasub="$extrasub
3245 /^@if $module\$/d
3246 /^@endif $module\$/d
3247 /^@if $module-$bootstrap_suffix\$/d
3248 /^@endif $module-$bootstrap_suffix\$/d"
3249 done
3250 for module in ${target_configdirs} ; do
3251 if test -z "${no_recursion}" \
3252 && test -f ${target_subdir}/${module}/Makefile; then
3253 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3254 rm -f ${target_subdir}/${module}/Makefile
3256 extrasub="$extrasub
3257 /^@if target-$module\$/d
3258 /^@endif target-$module\$/d
3259 /^@if target-$module-$bootstrap_suffix\$/d
3260 /^@endif target-$module-$bootstrap_suffix\$/d"
3261 done
3263 extrasub="$extrasub
3264 /^@if /,/^@endif /d"
3266 # Create the serialization dependencies. This uses a temporary file.
3268 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3269 if test "${enable_serial_configure+set}" = set; then
3270 enableval="$enable_serial_configure"
3275 case ${enable_serial_configure} in
3276 yes)
3277 enable_serial_build_configure=yes
3278 enable_serial_host_configure=yes
3279 enable_serial_target_configure=yes
3281 esac
3283 # These force 'configure's to be done one at a time, to avoid problems
3284 # with contention over a shared config.cache.
3285 rm -f serdep.tmp
3286 echo '# serdep.tmp' > serdep.tmp
3287 olditem=
3288 test "x${enable_serial_build_configure}" = xyes &&
3289 for item in ${build_configdirs} ; do
3290 case ${olditem} in
3291 "") ;;
3292 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3293 esac
3294 olditem=${item}
3295 done
3296 olditem=
3297 test "x${enable_serial_host_configure}" = xyes &&
3298 for item in ${configdirs} ; do
3299 case ${olditem} in
3300 "") ;;
3301 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3302 esac
3303 olditem=${item}
3304 done
3305 olditem=
3306 test "x${enable_serial_target_configure}" = xyes &&
3307 for item in ${target_configdirs} ; do
3308 case ${olditem} in
3309 "") ;;
3310 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3311 esac
3312 olditem=${item}
3313 done
3314 serialization_dependencies=serdep.tmp
3317 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3318 # target and nonopt. These are the ones we might not want to pass
3319 # down to subconfigures. Also strip program-prefix, program-suffix,
3320 # and program-transform-name, so that we can pass down a consistent
3321 # program-transform-name. If autoconf has put single quotes around
3322 # any of these arguments (because they contain shell metacharacters)
3323 # then this will fail; in practice this only happens for
3324 # --program-transform-name, so be sure to override --program-transform-name
3325 # at the end of the argument list.
3326 # These will be expanded by make, so quote '$'.
3327 cat <<\EOF_SED > conftestsed
3328 s/ --no[^ ]*/ /g
3329 s/ --c[a-z-]*[= ][^ ]*//g
3330 s/ --sr[a-z-]*[= ][^ ]*//g
3331 s/ --ho[a-z-]*[= ][^ ]*//g
3332 s/ --bu[a-z-]*[= ][^ ]*//g
3333 s/ --t[a-z-]*[= ][^ ]*//g
3334 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3335 s/ -cache-file[= ][^ ]*//g
3336 s/ -srcdir[= ][^ ]*//g
3337 s/ -host[= ][^ ]*//g
3338 s/ -build[= ][^ ]*//g
3339 s/ -target[= ][^ ]*//g
3340 s/ -program-prefix[= ][^ ]*//g
3341 s/ -program-suffix[= ][^ ]*//g
3342 s/ -program-transform-name[= ][^ ]*//g
3343 s/ [^' -][^ ]* / /
3344 s/^ *//;s/ *$//
3345 s,\$,$$,g
3346 EOF_SED
3347 sed -f conftestsed <<EOF_SED > conftestsed.out
3348 ${ac_configure_args}
3349 EOF_SED
3350 baseargs=`cat conftestsed.out`
3351 rm -f conftestsed conftestsed.out
3353 # Add in --program-transform-name, after --program-prefix and
3354 # --program-suffix have been applied to it. Autoconf has already
3355 # doubled dollar signs and backslashes in program_transform_name; we want
3356 # the backslashes un-doubled, and then the entire thing wrapped in single
3357 # quotes, because this will be expanded first by make and then by the shell.
3358 # Also, because we want to override the logic in subdir configure scripts to
3359 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3360 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3361 ${program_transform_name}
3362 EOF_SED
3363 gcc_transform_name=`cat conftestsed.out`
3364 rm -f conftestsed.out
3365 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3367 # For the build-side libraries, we just need to pretend we're native,
3368 # and not use the same cache file. Multilibs are neither needed nor
3369 # desired.
3370 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3372 # For host modules, accept cache file option, or specification as blank.
3373 case "${cache_file}" in
3374 "") # empty
3375 cache_file_option="" ;;
3376 /* | [A-Za-z]:[\\/]* ) # absolute path
3377 cache_file_option="--cache-file=${cache_file}" ;;
3378 *) # relative path
3379 cache_file_option="--cache-file=../${cache_file}" ;;
3380 esac
3382 # Host dirs don't like to share a cache file either, horribly enough.
3383 # This seems to be due to autoconf 2.5x stupidity.
3384 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3386 target_configargs=${baseargs}
3388 # Passing a --with-cross-host argument lets the target libraries know
3389 # whether they are being built with a cross-compiler or being built
3390 # native. However, it would be better to use other mechanisms to make the
3391 # sorts of decisions they want to make on this basis. Please consider
3392 # this option to be deprecated. FIXME.
3393 if test x${is_cross_compiler} = xyes ; then
3394 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3397 # Default to --enable-multilib.
3398 if test x${enable_multilib} = x ; then
3399 target_configargs="--enable-multilib ${target_configargs}"
3402 # Pass --with-newlib if appropriate. Note that target_configdirs has
3403 # changed from the earlier setting of with_newlib.
3404 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3405 target_configargs="--with-newlib ${target_configargs}"
3408 # Different target subdirs use different values of certain variables
3409 # (notably CXX). Worse, multilibs use *lots* of different values.
3410 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3411 # it doesn't automatically accept command-line overrides of them.
3412 # This means it's not safe for target subdirs to share a cache file,
3413 # which is disgusting, but there you have it. Hopefully this can be
3414 # fixed in future. It's still worthwhile to use a cache file for each
3415 # directory. I think.
3417 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3418 # We need to pass --target, as newer autoconf's requires consistency
3419 # for target_alias and gcc doesn't manage it consistently.
3420 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3422 FLAGS_FOR_TARGET=
3423 case " $target_configdirs " in
3424 *" newlib "*)
3425 case " $target_configargs " in
3426 *" --with-newlib "*)
3427 case "$target" in
3428 *-cygwin*)
3429 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' ;;
3430 esac
3432 # If we're not building GCC, don't discard standard headers.
3433 if test -d ${srcdir}/gcc; then
3434 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3436 if test "${build}" != "${host}"; then
3437 # On Canadian crosses, CC_FOR_TARGET will have already been set
3438 # by `configure', so we won't have an opportunity to add -Bgcc/
3439 # to it. This is right: we don't want to search that directory
3440 # for binaries, but we want the header files in there, so add
3441 # them explicitly.
3442 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3444 # Someone might think of using the pre-installed headers on
3445 # Canadian crosses, in case the installed compiler is not fully
3446 # compatible with the compiler being built. In this case, it
3447 # would be better to flag an error than risking having
3448 # incompatible object files being constructed. We can't
3449 # guarantee that an error will be flagged, but let's hope the
3450 # compiler will do it, when presented with incompatible header
3451 # files.
3455 case "${target}-${is_cross_compiler}" in
3456 i[3456789]86-*-linux*-no)
3457 # Here host == target, so we don't need to build gcc,
3458 # so we don't want to discard standard headers.
3459 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3462 # If we're building newlib, use its generic headers last, but search
3463 # for any libc-related directories first (so make it the last -B
3464 # switch).
3465 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3467 esac
3469 esac
3471 esac
3472 case "$target" in
3473 *-mingw*)
3474 # Can't be handled as Cygwin above since Mingw does not use newlib.
3475 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' ;;
3476 esac
3478 # Allow the user to override the flags for
3479 # our build compiler if desired.
3480 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3482 # On Canadian crosses, we'll be searching the right directories for
3483 # the previously-installed cross compiler, so don't bother to add
3484 # flags for directories within the install tree of the compiler
3485 # being built; programs in there won't even run.
3486 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3487 # Search for pre-installed headers if nothing else fits.
3488 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3491 if test "x${use_gnu_ld}" = x &&
3492 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3493 # Arrange for us to find uninstalled linker scripts.
3494 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3497 # Search for other target-specific linker scripts and such.
3498 case "${target}" in
3499 m32c-*-* )
3500 if test -d ${srcdir}/libgloss/m32c; then
3501 # This is for crt0.o
3502 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3503 # This is for r8c.ld
3504 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3505 # This is for libnosys.a
3506 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3509 esac
3511 # Makefile fragments.
3512 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3514 eval fragval=\$$frag
3515 if test $fragval != /dev/null; then
3516 eval $frag=${srcdir}/$fragval
3518 done
3524 # Miscellanea: directories, flags, etc.
3532 # Build module lists & subconfigure args.
3536 # Host module lists & subconfigure args.
3540 # Target module lists & subconfigure args.
3544 # Build tools.
3548 # Generate default definitions for YACC, M4, LEX and other programs that run
3549 # on the build machine. These are used if the Makefile can't locate these
3550 # programs in objdir.
3551 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3553 for ac_prog in 'bison -y' byacc yacc
3555 # Extract the first word of "$ac_prog", so it can be a program name with args.
3556 set dummy $ac_prog; ac_word=$2
3557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3558 echo "configure:3559: checking for $ac_word" >&5
3559 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3561 else
3562 if test -n "$YACC"; then
3563 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3564 else
3565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3566 ac_dummy="$PATH"
3567 for ac_dir in $ac_dummy; do
3568 test -z "$ac_dir" && ac_dir=.
3569 if test -f $ac_dir/$ac_word; then
3570 ac_cv_prog_YACC="$ac_prog"
3571 break
3573 done
3574 IFS="$ac_save_ifs"
3577 YACC="$ac_cv_prog_YACC"
3578 if test -n "$YACC"; then
3579 echo "$ac_t""$YACC" 1>&6
3580 else
3581 echo "$ac_t""no" 1>&6
3584 test -n "$YACC" && break
3585 done
3586 test -n "$YACC" || YACC="$MISSING bison -y"
3588 case " $build_configdirs " in
3589 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3590 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3591 esac
3593 for ac_prog in bison
3595 # Extract the first word of "$ac_prog", so it can be a program name with args.
3596 set dummy $ac_prog; ac_word=$2
3597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3598 echo "configure:3599: checking for $ac_word" >&5
3599 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3601 else
3602 if test -n "$BISON"; then
3603 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3604 else
3605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3606 ac_dummy="$PATH"
3607 for ac_dir in $ac_dummy; do
3608 test -z "$ac_dir" && ac_dir=.
3609 if test -f $ac_dir/$ac_word; then
3610 ac_cv_prog_BISON="$ac_prog"
3611 break
3613 done
3614 IFS="$ac_save_ifs"
3617 BISON="$ac_cv_prog_BISON"
3618 if test -n "$BISON"; then
3619 echo "$ac_t""$BISON" 1>&6
3620 else
3621 echo "$ac_t""no" 1>&6
3624 test -n "$BISON" && break
3625 done
3626 test -n "$BISON" || BISON="$MISSING bison"
3628 case " $build_configdirs " in
3629 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3630 esac
3632 for ac_prog in gm4 gnum4 m4
3634 # Extract the first word of "$ac_prog", so it can be a program name with args.
3635 set dummy $ac_prog; ac_word=$2
3636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3637 echo "configure:3638: checking for $ac_word" >&5
3638 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3640 else
3641 if test -n "$M4"; then
3642 ac_cv_prog_M4="$M4" # Let the user override the test.
3643 else
3644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3645 ac_dummy="$PATH"
3646 for ac_dir in $ac_dummy; do
3647 test -z "$ac_dir" && ac_dir=.
3648 if test -f $ac_dir/$ac_word; then
3649 ac_cv_prog_M4="$ac_prog"
3650 break
3652 done
3653 IFS="$ac_save_ifs"
3656 M4="$ac_cv_prog_M4"
3657 if test -n "$M4"; then
3658 echo "$ac_t""$M4" 1>&6
3659 else
3660 echo "$ac_t""no" 1>&6
3663 test -n "$M4" && break
3664 done
3665 test -n "$M4" || M4="$MISSING m4"
3667 case " $build_configdirs " in
3668 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3669 esac
3671 for ac_prog in flex lex
3673 # Extract the first word of "$ac_prog", so it can be a program name with args.
3674 set dummy $ac_prog; ac_word=$2
3675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3676 echo "configure:3677: checking for $ac_word" >&5
3677 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3679 else
3680 if test -n "$LEX"; then
3681 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3682 else
3683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3684 ac_dummy="$PATH"
3685 for ac_dir in $ac_dummy; do
3686 test -z "$ac_dir" && ac_dir=.
3687 if test -f $ac_dir/$ac_word; then
3688 ac_cv_prog_LEX="$ac_prog"
3689 break
3691 done
3692 IFS="$ac_save_ifs"
3695 LEX="$ac_cv_prog_LEX"
3696 if test -n "$LEX"; then
3697 echo "$ac_t""$LEX" 1>&6
3698 else
3699 echo "$ac_t""no" 1>&6
3702 test -n "$LEX" && break
3703 done
3704 test -n "$LEX" || LEX="$MISSING flex"
3706 case " $build_configdirs " in
3707 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3708 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3709 esac
3711 for ac_prog in flex
3713 # Extract the first word of "$ac_prog", so it can be a program name with args.
3714 set dummy $ac_prog; ac_word=$2
3715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3716 echo "configure:3717: checking for $ac_word" >&5
3717 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3718 echo $ac_n "(cached) $ac_c" 1>&6
3719 else
3720 if test -n "$FLEX"; then
3721 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3722 else
3723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3724 ac_dummy="$PATH"
3725 for ac_dir in $ac_dummy; do
3726 test -z "$ac_dir" && ac_dir=.
3727 if test -f $ac_dir/$ac_word; then
3728 ac_cv_prog_FLEX="$ac_prog"
3729 break
3731 done
3732 IFS="$ac_save_ifs"
3735 FLEX="$ac_cv_prog_FLEX"
3736 if test -n "$FLEX"; then
3737 echo "$ac_t""$FLEX" 1>&6
3738 else
3739 echo "$ac_t""no" 1>&6
3742 test -n "$FLEX" && break
3743 done
3744 test -n "$FLEX" || FLEX="$MISSING flex"
3746 case " $build_configdirs " in
3747 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3748 esac
3750 for ac_prog in makeinfo
3752 # Extract the first word of "$ac_prog", so it can be a program name with args.
3753 set dummy $ac_prog; ac_word=$2
3754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3755 echo "configure:3756: checking for $ac_word" >&5
3756 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3758 else
3759 if test -n "$MAKEINFO"; then
3760 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3761 else
3762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3763 ac_dummy="$PATH"
3764 for ac_dir in $ac_dummy; do
3765 test -z "$ac_dir" && ac_dir=.
3766 if test -f $ac_dir/$ac_word; then
3767 ac_cv_prog_MAKEINFO="$ac_prog"
3768 break
3770 done
3771 IFS="$ac_save_ifs"
3774 MAKEINFO="$ac_cv_prog_MAKEINFO"
3775 if test -n "$MAKEINFO"; then
3776 echo "$ac_t""$MAKEINFO" 1>&6
3777 else
3778 echo "$ac_t""no" 1>&6
3781 test -n "$MAKEINFO" && break
3782 done
3783 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3785 case " $build_configdirs " in
3786 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3789 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3790 # higher, else we use the "missing" dummy.
3791 if ${MAKEINFO} --version \
3792 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.([4-9]|[1-9][0-9])|[5-9])' >/dev/null 2>&1; then
3794 else
3795 MAKEINFO="$MISSING makeinfo"
3799 esac
3801 # FIXME: expect and dejagnu may become build tools?
3803 for ac_prog in expect
3805 # Extract the first word of "$ac_prog", so it can be a program name with args.
3806 set dummy $ac_prog; ac_word=$2
3807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3808 echo "configure:3809: checking for $ac_word" >&5
3809 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3811 else
3812 if test -n "$EXPECT"; then
3813 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3814 else
3815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3816 ac_dummy="$PATH"
3817 for ac_dir in $ac_dummy; do
3818 test -z "$ac_dir" && ac_dir=.
3819 if test -f $ac_dir/$ac_word; then
3820 ac_cv_prog_EXPECT="$ac_prog"
3821 break
3823 done
3824 IFS="$ac_save_ifs"
3827 EXPECT="$ac_cv_prog_EXPECT"
3828 if test -n "$EXPECT"; then
3829 echo "$ac_t""$EXPECT" 1>&6
3830 else
3831 echo "$ac_t""no" 1>&6
3834 test -n "$EXPECT" && break
3835 done
3836 test -n "$EXPECT" || EXPECT="expect"
3838 case " $configdirs " in
3839 *" expect "*)
3840 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3842 esac
3844 for ac_prog in runtest
3846 # Extract the first word of "$ac_prog", so it can be a program name with args.
3847 set dummy $ac_prog; ac_word=$2
3848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3849 echo "configure:3850: checking for $ac_word" >&5
3850 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3852 else
3853 if test -n "$RUNTEST"; then
3854 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3855 else
3856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3857 ac_dummy="$PATH"
3858 for ac_dir in $ac_dummy; do
3859 test -z "$ac_dir" && ac_dir=.
3860 if test -f $ac_dir/$ac_word; then
3861 ac_cv_prog_RUNTEST="$ac_prog"
3862 break
3864 done
3865 IFS="$ac_save_ifs"
3868 RUNTEST="$ac_cv_prog_RUNTEST"
3869 if test -n "$RUNTEST"; then
3870 echo "$ac_t""$RUNTEST" 1>&6
3871 else
3872 echo "$ac_t""no" 1>&6
3875 test -n "$RUNTEST" && break
3876 done
3877 test -n "$RUNTEST" || RUNTEST="runtest"
3879 case " $configdirs " in
3880 *" dejagnu "*)
3881 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
3883 esac
3886 # Host tools.
3887 ncn_tool_prefix=
3888 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3889 ncn_target_tool_prefix=
3890 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3892 for ncn_progname in ar; do
3893 if test -n "$ncn_tool_prefix"; then
3894 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3895 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3897 echo "configure:3898: checking for $ac_word" >&5
3898 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3899 echo $ac_n "(cached) $ac_c" 1>&6
3900 else
3901 if test -n "$AR"; then
3902 ac_cv_prog_AR="$AR" # Let the user override the test.
3903 else
3904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3905 ac_dummy="$PATH"
3906 for ac_dir in $ac_dummy; do
3907 test -z "$ac_dir" && ac_dir=.
3908 if test -f $ac_dir/$ac_word; then
3909 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3910 break
3912 done
3913 IFS="$ac_save_ifs"
3916 AR="$ac_cv_prog_AR"
3917 if test -n "$AR"; then
3918 echo "$ac_t""$AR" 1>&6
3919 else
3920 echo "$ac_t""no" 1>&6
3924 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3926 set dummy ${ncn_progname}; ac_word=$2
3927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3928 echo "configure:3929: checking for $ac_word" >&5
3929 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3931 else
3932 if test -n "$AR"; then
3933 ac_cv_prog_AR="$AR" # Let the user override the test.
3934 else
3935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3936 ac_dummy="$PATH"
3937 for ac_dir in $ac_dummy; do
3938 test -z "$ac_dir" && ac_dir=.
3939 if test -f $ac_dir/$ac_word; then
3940 ac_cv_prog_AR="${ncn_progname}"
3941 break
3943 done
3944 IFS="$ac_save_ifs"
3947 AR="$ac_cv_prog_AR"
3948 if test -n "$AR"; then
3949 echo "$ac_t""$AR" 1>&6
3950 else
3951 echo "$ac_t""no" 1>&6
3955 test -n "$ac_cv_prog_AR" && break
3956 done
3958 if test -z "$ac_cv_prog_AR" ; then
3959 set dummy ar
3960 if test $build = $host ; then
3961 AR="$2"
3962 else
3963 AR="${ncn_tool_prefix}$2"
3967 for ncn_progname in as; do
3968 if test -n "$ncn_tool_prefix"; then
3969 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3970 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3972 echo "configure:3973: checking for $ac_word" >&5
3973 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3975 else
3976 if test -n "$AS"; then
3977 ac_cv_prog_AS="$AS" # Let the user override the test.
3978 else
3979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3980 ac_dummy="$PATH"
3981 for ac_dir in $ac_dummy; do
3982 test -z "$ac_dir" && ac_dir=.
3983 if test -f $ac_dir/$ac_word; then
3984 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3985 break
3987 done
3988 IFS="$ac_save_ifs"
3991 AS="$ac_cv_prog_AS"
3992 if test -n "$AS"; then
3993 echo "$ac_t""$AS" 1>&6
3994 else
3995 echo "$ac_t""no" 1>&6
3999 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
4000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4001 set dummy ${ncn_progname}; ac_word=$2
4002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4003 echo "configure:4004: checking for $ac_word" >&5
4004 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4006 else
4007 if test -n "$AS"; then
4008 ac_cv_prog_AS="$AS" # Let the user override the test.
4009 else
4010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4011 ac_dummy="$PATH"
4012 for ac_dir in $ac_dummy; do
4013 test -z "$ac_dir" && ac_dir=.
4014 if test -f $ac_dir/$ac_word; then
4015 ac_cv_prog_AS="${ncn_progname}"
4016 break
4018 done
4019 IFS="$ac_save_ifs"
4022 AS="$ac_cv_prog_AS"
4023 if test -n "$AS"; then
4024 echo "$ac_t""$AS" 1>&6
4025 else
4026 echo "$ac_t""no" 1>&6
4030 test -n "$ac_cv_prog_AS" && break
4031 done
4033 if test -z "$ac_cv_prog_AS" ; then
4034 set dummy as
4035 if test $build = $host ; then
4036 AS="$2"
4037 else
4038 AS="${ncn_tool_prefix}$2"
4042 for ncn_progname in dlltool; do
4043 if test -n "$ncn_tool_prefix"; then
4044 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4045 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4046 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4047 echo "configure:4048: checking for $ac_word" >&5
4048 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4050 else
4051 if test -n "$DLLTOOL"; then
4052 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4053 else
4054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4055 ac_dummy="$PATH"
4056 for ac_dir in $ac_dummy; do
4057 test -z "$ac_dir" && ac_dir=.
4058 if test -f $ac_dir/$ac_word; then
4059 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
4060 break
4062 done
4063 IFS="$ac_save_ifs"
4066 DLLTOOL="$ac_cv_prog_DLLTOOL"
4067 if test -n "$DLLTOOL"; then
4068 echo "$ac_t""$DLLTOOL" 1>&6
4069 else
4070 echo "$ac_t""no" 1>&6
4074 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
4075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4076 set dummy ${ncn_progname}; ac_word=$2
4077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4078 echo "configure:4079: checking for $ac_word" >&5
4079 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4081 else
4082 if test -n "$DLLTOOL"; then
4083 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4084 else
4085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4086 ac_dummy="$PATH"
4087 for ac_dir in $ac_dummy; do
4088 test -z "$ac_dir" && ac_dir=.
4089 if test -f $ac_dir/$ac_word; then
4090 ac_cv_prog_DLLTOOL="${ncn_progname}"
4091 break
4093 done
4094 IFS="$ac_save_ifs"
4097 DLLTOOL="$ac_cv_prog_DLLTOOL"
4098 if test -n "$DLLTOOL"; then
4099 echo "$ac_t""$DLLTOOL" 1>&6
4100 else
4101 echo "$ac_t""no" 1>&6
4105 test -n "$ac_cv_prog_DLLTOOL" && break
4106 done
4108 if test -z "$ac_cv_prog_DLLTOOL" ; then
4109 set dummy dlltool
4110 if test $build = $host ; then
4111 DLLTOOL="$2"
4112 else
4113 DLLTOOL="${ncn_tool_prefix}$2"
4117 for ncn_progname in ld; do
4118 if test -n "$ncn_tool_prefix"; then
4119 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4120 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4122 echo "configure:4123: checking for $ac_word" >&5
4123 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4124 echo $ac_n "(cached) $ac_c" 1>&6
4125 else
4126 if test -n "$LD"; then
4127 ac_cv_prog_LD="$LD" # Let the user override the test.
4128 else
4129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4130 ac_dummy="$PATH"
4131 for ac_dir in $ac_dummy; do
4132 test -z "$ac_dir" && ac_dir=.
4133 if test -f $ac_dir/$ac_word; then
4134 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4135 break
4137 done
4138 IFS="$ac_save_ifs"
4141 LD="$ac_cv_prog_LD"
4142 if test -n "$LD"; then
4143 echo "$ac_t""$LD" 1>&6
4144 else
4145 echo "$ac_t""no" 1>&6
4149 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4151 set dummy ${ncn_progname}; ac_word=$2
4152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4153 echo "configure:4154: checking for $ac_word" >&5
4154 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4156 else
4157 if test -n "$LD"; then
4158 ac_cv_prog_LD="$LD" # Let the user override the test.
4159 else
4160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4161 ac_dummy="$PATH"
4162 for ac_dir in $ac_dummy; do
4163 test -z "$ac_dir" && ac_dir=.
4164 if test -f $ac_dir/$ac_word; then
4165 ac_cv_prog_LD="${ncn_progname}"
4166 break
4168 done
4169 IFS="$ac_save_ifs"
4172 LD="$ac_cv_prog_LD"
4173 if test -n "$LD"; then
4174 echo "$ac_t""$LD" 1>&6
4175 else
4176 echo "$ac_t""no" 1>&6
4180 test -n "$ac_cv_prog_LD" && break
4181 done
4183 if test -z "$ac_cv_prog_LD" ; then
4184 set dummy ld
4185 if test $build = $host ; then
4186 LD="$2"
4187 else
4188 LD="${ncn_tool_prefix}$2"
4192 for ncn_progname in lipo; do
4193 if test -n "$ncn_tool_prefix"; then
4194 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4195 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4197 echo "configure:4198: checking for $ac_word" >&5
4198 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4199 echo $ac_n "(cached) $ac_c" 1>&6
4200 else
4201 if test -n "$LIPO"; then
4202 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4203 else
4204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4205 ac_dummy="$PATH"
4206 for ac_dir in $ac_dummy; do
4207 test -z "$ac_dir" && ac_dir=.
4208 if test -f $ac_dir/$ac_word; then
4209 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4210 break
4212 done
4213 IFS="$ac_save_ifs"
4216 LIPO="$ac_cv_prog_LIPO"
4217 if test -n "$LIPO"; then
4218 echo "$ac_t""$LIPO" 1>&6
4219 else
4220 echo "$ac_t""no" 1>&6
4224 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4226 set dummy ${ncn_progname}; ac_word=$2
4227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4228 echo "configure:4229: checking for $ac_word" >&5
4229 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4231 else
4232 if test -n "$LIPO"; then
4233 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4234 else
4235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4236 ac_dummy="$PATH"
4237 for ac_dir in $ac_dummy; do
4238 test -z "$ac_dir" && ac_dir=.
4239 if test -f $ac_dir/$ac_word; then
4240 ac_cv_prog_LIPO="${ncn_progname}"
4241 break
4243 done
4244 IFS="$ac_save_ifs"
4247 LIPO="$ac_cv_prog_LIPO"
4248 if test -n "$LIPO"; then
4249 echo "$ac_t""$LIPO" 1>&6
4250 else
4251 echo "$ac_t""no" 1>&6
4255 test -n "$ac_cv_prog_LIPO" && break
4256 done
4258 if test -z "$ac_cv_prog_LIPO" ; then
4259 set dummy lipo
4260 if test $build = $host ; then
4261 LIPO="$2"
4262 else
4263 LIPO="${ncn_tool_prefix}$2"
4267 for ncn_progname in nm; do
4268 if test -n "$ncn_tool_prefix"; then
4269 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4270 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4272 echo "configure:4273: checking for $ac_word" >&5
4273 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4275 else
4276 if test -n "$NM"; then
4277 ac_cv_prog_NM="$NM" # Let the user override the test.
4278 else
4279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4280 ac_dummy="$PATH"
4281 for ac_dir in $ac_dummy; do
4282 test -z "$ac_dir" && ac_dir=.
4283 if test -f $ac_dir/$ac_word; then
4284 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4285 break
4287 done
4288 IFS="$ac_save_ifs"
4291 NM="$ac_cv_prog_NM"
4292 if test -n "$NM"; then
4293 echo "$ac_t""$NM" 1>&6
4294 else
4295 echo "$ac_t""no" 1>&6
4299 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4301 set dummy ${ncn_progname}; ac_word=$2
4302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4303 echo "configure:4304: checking for $ac_word" >&5
4304 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4306 else
4307 if test -n "$NM"; then
4308 ac_cv_prog_NM="$NM" # Let the user override the test.
4309 else
4310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4311 ac_dummy="$PATH"
4312 for ac_dir in $ac_dummy; do
4313 test -z "$ac_dir" && ac_dir=.
4314 if test -f $ac_dir/$ac_word; then
4315 ac_cv_prog_NM="${ncn_progname}"
4316 break
4318 done
4319 IFS="$ac_save_ifs"
4322 NM="$ac_cv_prog_NM"
4323 if test -n "$NM"; then
4324 echo "$ac_t""$NM" 1>&6
4325 else
4326 echo "$ac_t""no" 1>&6
4330 test -n "$ac_cv_prog_NM" && break
4331 done
4333 if test -z "$ac_cv_prog_NM" ; then
4334 set dummy nm
4335 if test $build = $host ; then
4336 NM="$2"
4337 else
4338 NM="${ncn_tool_prefix}$2"
4342 for ncn_progname in ranlib; do
4343 if test -n "$ncn_tool_prefix"; then
4344 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4345 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4347 echo "configure:4348: checking for $ac_word" >&5
4348 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4350 else
4351 if test -n "$RANLIB"; then
4352 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4353 else
4354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4355 ac_dummy="$PATH"
4356 for ac_dir in $ac_dummy; do
4357 test -z "$ac_dir" && ac_dir=.
4358 if test -f $ac_dir/$ac_word; then
4359 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4360 break
4362 done
4363 IFS="$ac_save_ifs"
4366 RANLIB="$ac_cv_prog_RANLIB"
4367 if test -n "$RANLIB"; then
4368 echo "$ac_t""$RANLIB" 1>&6
4369 else
4370 echo "$ac_t""no" 1>&6
4374 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4376 set dummy ${ncn_progname}; ac_word=$2
4377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4378 echo "configure:4379: checking for $ac_word" >&5
4379 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4381 else
4382 if test -n "$RANLIB"; then
4383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4384 else
4385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4386 ac_dummy="$PATH"
4387 for ac_dir in $ac_dummy; do
4388 test -z "$ac_dir" && ac_dir=.
4389 if test -f $ac_dir/$ac_word; then
4390 ac_cv_prog_RANLIB="${ncn_progname}"
4391 break
4393 done
4394 IFS="$ac_save_ifs"
4397 RANLIB="$ac_cv_prog_RANLIB"
4398 if test -n "$RANLIB"; then
4399 echo "$ac_t""$RANLIB" 1>&6
4400 else
4401 echo "$ac_t""no" 1>&6
4405 test -n "$ac_cv_prog_RANLIB" && break
4406 done
4408 if test -z "$ac_cv_prog_RANLIB" ; then
4409 RANLIB=":"
4412 for ncn_progname in strip; do
4413 if test -n "$ncn_tool_prefix"; then
4414 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4415 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4417 echo "configure:4418: checking for $ac_word" >&5
4418 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4420 else
4421 if test -n "$STRIP"; then
4422 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4423 else
4424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4425 ac_dummy="$PATH"
4426 for ac_dir in $ac_dummy; do
4427 test -z "$ac_dir" && ac_dir=.
4428 if test -f $ac_dir/$ac_word; then
4429 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4430 break
4432 done
4433 IFS="$ac_save_ifs"
4436 STRIP="$ac_cv_prog_STRIP"
4437 if test -n "$STRIP"; then
4438 echo "$ac_t""$STRIP" 1>&6
4439 else
4440 echo "$ac_t""no" 1>&6
4444 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4446 set dummy ${ncn_progname}; ac_word=$2
4447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4448 echo "configure:4449: checking for $ac_word" >&5
4449 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4451 else
4452 if test -n "$STRIP"; then
4453 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4454 else
4455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4456 ac_dummy="$PATH"
4457 for ac_dir in $ac_dummy; do
4458 test -z "$ac_dir" && ac_dir=.
4459 if test -f $ac_dir/$ac_word; then
4460 ac_cv_prog_STRIP="${ncn_progname}"
4461 break
4463 done
4464 IFS="$ac_save_ifs"
4467 STRIP="$ac_cv_prog_STRIP"
4468 if test -n "$STRIP"; then
4469 echo "$ac_t""$STRIP" 1>&6
4470 else
4471 echo "$ac_t""no" 1>&6
4475 test -n "$ac_cv_prog_STRIP" && break
4476 done
4478 if test -z "$ac_cv_prog_STRIP" ; then
4479 STRIP=":"
4482 for ncn_progname in windres; do
4483 if test -n "$ncn_tool_prefix"; then
4484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4485 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4486 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4487 echo "configure:4488: checking for $ac_word" >&5
4488 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4490 else
4491 if test -n "$WINDRES"; then
4492 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4493 else
4494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4495 ac_dummy="$PATH"
4496 for ac_dir in $ac_dummy; do
4497 test -z "$ac_dir" && ac_dir=.
4498 if test -f $ac_dir/$ac_word; then
4499 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4500 break
4502 done
4503 IFS="$ac_save_ifs"
4506 WINDRES="$ac_cv_prog_WINDRES"
4507 if test -n "$WINDRES"; then
4508 echo "$ac_t""$WINDRES" 1>&6
4509 else
4510 echo "$ac_t""no" 1>&6
4514 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4516 set dummy ${ncn_progname}; ac_word=$2
4517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4518 echo "configure:4519: checking for $ac_word" >&5
4519 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4520 echo $ac_n "(cached) $ac_c" 1>&6
4521 else
4522 if test -n "$WINDRES"; then
4523 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4524 else
4525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4526 ac_dummy="$PATH"
4527 for ac_dir in $ac_dummy; do
4528 test -z "$ac_dir" && ac_dir=.
4529 if test -f $ac_dir/$ac_word; then
4530 ac_cv_prog_WINDRES="${ncn_progname}"
4531 break
4533 done
4534 IFS="$ac_save_ifs"
4537 WINDRES="$ac_cv_prog_WINDRES"
4538 if test -n "$WINDRES"; then
4539 echo "$ac_t""$WINDRES" 1>&6
4540 else
4541 echo "$ac_t""no" 1>&6
4545 test -n "$ac_cv_prog_WINDRES" && break
4546 done
4548 if test -z "$ac_cv_prog_WINDRES" ; then
4549 set dummy windres
4550 if test $build = $host ; then
4551 WINDRES="$2"
4552 else
4553 WINDRES="${ncn_tool_prefix}$2"
4557 for ncn_progname in objcopy; do
4558 if test -n "$ncn_tool_prefix"; then
4559 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4560 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4562 echo "configure:4563: checking for $ac_word" >&5
4563 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4565 else
4566 if test -n "$OBJCOPY"; then
4567 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4568 else
4569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4570 ac_dummy="$PATH"
4571 for ac_dir in $ac_dummy; do
4572 test -z "$ac_dir" && ac_dir=.
4573 if test -f $ac_dir/$ac_word; then
4574 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4575 break
4577 done
4578 IFS="$ac_save_ifs"
4581 OBJCOPY="$ac_cv_prog_OBJCOPY"
4582 if test -n "$OBJCOPY"; then
4583 echo "$ac_t""$OBJCOPY" 1>&6
4584 else
4585 echo "$ac_t""no" 1>&6
4589 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4591 set dummy ${ncn_progname}; ac_word=$2
4592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4593 echo "configure:4594: checking for $ac_word" >&5
4594 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4595 echo $ac_n "(cached) $ac_c" 1>&6
4596 else
4597 if test -n "$OBJCOPY"; then
4598 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4599 else
4600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4601 ac_dummy="$PATH"
4602 for ac_dir in $ac_dummy; do
4603 test -z "$ac_dir" && ac_dir=.
4604 if test -f $ac_dir/$ac_word; then
4605 ac_cv_prog_OBJCOPY="${ncn_progname}"
4606 break
4608 done
4609 IFS="$ac_save_ifs"
4612 OBJCOPY="$ac_cv_prog_OBJCOPY"
4613 if test -n "$OBJCOPY"; then
4614 echo "$ac_t""$OBJCOPY" 1>&6
4615 else
4616 echo "$ac_t""no" 1>&6
4620 test -n "$ac_cv_prog_OBJCOPY" && break
4621 done
4623 if test -z "$ac_cv_prog_OBJCOPY" ; then
4624 set dummy objcopy
4625 if test $build = $host ; then
4626 OBJCOPY="$2"
4627 else
4628 OBJCOPY="${ncn_tool_prefix}$2"
4632 for ncn_progname in objdump; do
4633 if test -n "$ncn_tool_prefix"; then
4634 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4635 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4637 echo "configure:4638: checking for $ac_word" >&5
4638 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4640 else
4641 if test -n "$OBJDUMP"; then
4642 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4643 else
4644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4645 ac_dummy="$PATH"
4646 for ac_dir in $ac_dummy; do
4647 test -z "$ac_dir" && ac_dir=.
4648 if test -f $ac_dir/$ac_word; then
4649 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4650 break
4652 done
4653 IFS="$ac_save_ifs"
4656 OBJDUMP="$ac_cv_prog_OBJDUMP"
4657 if test -n "$OBJDUMP"; then
4658 echo "$ac_t""$OBJDUMP" 1>&6
4659 else
4660 echo "$ac_t""no" 1>&6
4664 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4666 set dummy ${ncn_progname}; ac_word=$2
4667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4668 echo "configure:4669: checking for $ac_word" >&5
4669 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4671 else
4672 if test -n "$OBJDUMP"; then
4673 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4674 else
4675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4676 ac_dummy="$PATH"
4677 for ac_dir in $ac_dummy; do
4678 test -z "$ac_dir" && ac_dir=.
4679 if test -f $ac_dir/$ac_word; then
4680 ac_cv_prog_OBJDUMP="${ncn_progname}"
4681 break
4683 done
4684 IFS="$ac_save_ifs"
4687 OBJDUMP="$ac_cv_prog_OBJDUMP"
4688 if test -n "$OBJDUMP"; then
4689 echo "$ac_t""$OBJDUMP" 1>&6
4690 else
4691 echo "$ac_t""no" 1>&6
4695 test -n "$ac_cv_prog_OBJDUMP" && break
4696 done
4698 if test -z "$ac_cv_prog_OBJDUMP" ; then
4699 set dummy objdump
4700 if test $build = $host ; then
4701 OBJDUMP="$2"
4702 else
4703 OBJDUMP="${ncn_tool_prefix}$2"
4713 # Target tools.
4714 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4715 if test "${with_build_time_tools+set}" = set; then
4716 withval="$with_build_time_tools"
4717 case x"$withval" in
4718 x/*) ;;
4720 with_build_time_tools=
4721 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4723 esac
4724 else
4725 with_build_time_tools=
4729 if test -n "$with_build_time_tools"; then
4730 for ncn_progname in cc gcc; do
4731 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4732 echo "configure:4733: checking for ${ncn_progname} in $with_build_time_tools" >&5
4733 if test -x $with_build_time_tools/${ncn_progname}; then
4734 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4735 echo "$ac_t""yes" 1>&6
4736 break
4737 else
4738 echo "$ac_t""no" 1>&6
4740 done
4743 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4744 for ncn_progname in cc gcc; do
4745 if test -n "$ncn_target_tool_prefix"; then
4746 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4747 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4749 echo "configure:4750: checking for $ac_word" >&5
4750 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4752 else
4753 if test -n "$CC_FOR_TARGET"; then
4754 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4755 else
4756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4757 ac_dummy="$PATH"
4758 for ac_dir in $ac_dummy; do
4759 test -z "$ac_dir" && ac_dir=.
4760 if test -f $ac_dir/$ac_word; then
4761 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4762 break
4764 done
4765 IFS="$ac_save_ifs"
4768 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4769 if test -n "$CC_FOR_TARGET"; then
4770 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4771 else
4772 echo "$ac_t""no" 1>&6
4776 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4778 set dummy ${ncn_progname}; ac_word=$2
4779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4780 echo "configure:4781: checking for $ac_word" >&5
4781 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4783 else
4784 if test -n "$CC_FOR_TARGET"; then
4785 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4786 else
4787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4788 ac_dummy="$PATH"
4789 for ac_dir in $ac_dummy; do
4790 test -z "$ac_dir" && ac_dir=.
4791 if test -f $ac_dir/$ac_word; then
4792 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4793 break
4795 done
4796 IFS="$ac_save_ifs"
4799 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4800 if test -n "$CC_FOR_TARGET"; then
4801 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4802 else
4803 echo "$ac_t""no" 1>&6
4807 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4808 done
4811 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4812 set dummy cc gcc
4813 if test $build = $target ; then
4814 CC_FOR_TARGET="$2"
4815 else
4816 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4818 else
4819 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4822 if test -n "$with_build_time_tools"; then
4823 for ncn_progname in c++ g++ cxx gxx; do
4824 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4825 echo "configure:4826: checking for ${ncn_progname} in $with_build_time_tools" >&5
4826 if test -x $with_build_time_tools/${ncn_progname}; then
4827 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4828 echo "$ac_t""yes" 1>&6
4829 break
4830 else
4831 echo "$ac_t""no" 1>&6
4833 done
4836 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4837 for ncn_progname in c++ g++ cxx gxx; do
4838 if test -n "$ncn_target_tool_prefix"; then
4839 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4840 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4842 echo "configure:4843: checking for $ac_word" >&5
4843 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6
4845 else
4846 if test -n "$CXX_FOR_TARGET"; then
4847 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4848 else
4849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4850 ac_dummy="$PATH"
4851 for ac_dir in $ac_dummy; do
4852 test -z "$ac_dir" && ac_dir=.
4853 if test -f $ac_dir/$ac_word; then
4854 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4855 break
4857 done
4858 IFS="$ac_save_ifs"
4861 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4862 if test -n "$CXX_FOR_TARGET"; then
4863 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4864 else
4865 echo "$ac_t""no" 1>&6
4869 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4871 set dummy ${ncn_progname}; ac_word=$2
4872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4873 echo "configure:4874: checking for $ac_word" >&5
4874 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4876 else
4877 if test -n "$CXX_FOR_TARGET"; then
4878 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4879 else
4880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4881 ac_dummy="$PATH"
4882 for ac_dir in $ac_dummy; do
4883 test -z "$ac_dir" && ac_dir=.
4884 if test -f $ac_dir/$ac_word; then
4885 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4886 break
4888 done
4889 IFS="$ac_save_ifs"
4892 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4893 if test -n "$CXX_FOR_TARGET"; then
4894 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4895 else
4896 echo "$ac_t""no" 1>&6
4900 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4901 done
4904 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4905 set dummy c++ g++ cxx gxx
4906 if test $build = $target ; then
4907 CXX_FOR_TARGET="$2"
4908 else
4909 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4911 else
4912 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4915 if test -n "$with_build_time_tools"; then
4916 for ncn_progname in gcc; do
4917 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4918 echo "configure:4919: checking for ${ncn_progname} in $with_build_time_tools" >&5
4919 if test -x $with_build_time_tools/${ncn_progname}; then
4920 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4921 echo "$ac_t""yes" 1>&6
4922 break
4923 else
4924 echo "$ac_t""no" 1>&6
4926 done
4929 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4930 for ncn_progname in gcc; do
4931 if test -n "$ncn_target_tool_prefix"; then
4932 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4933 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4935 echo "configure:4936: checking for $ac_word" >&5
4936 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6
4938 else
4939 if test -n "$GCC_FOR_TARGET"; then
4940 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4941 else
4942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4943 ac_dummy="$PATH"
4944 for ac_dir in $ac_dummy; do
4945 test -z "$ac_dir" && ac_dir=.
4946 if test -f $ac_dir/$ac_word; then
4947 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4948 break
4950 done
4951 IFS="$ac_save_ifs"
4954 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4955 if test -n "$GCC_FOR_TARGET"; then
4956 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4957 else
4958 echo "$ac_t""no" 1>&6
4962 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4964 set dummy ${ncn_progname}; ac_word=$2
4965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4966 echo "configure:4967: checking for $ac_word" >&5
4967 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4968 echo $ac_n "(cached) $ac_c" 1>&6
4969 else
4970 if test -n "$GCC_FOR_TARGET"; then
4971 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4972 else
4973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4974 ac_dummy="$PATH"
4975 for ac_dir in $ac_dummy; do
4976 test -z "$ac_dir" && ac_dir=.
4977 if test -f $ac_dir/$ac_word; then
4978 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4979 break
4981 done
4982 IFS="$ac_save_ifs"
4985 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4986 if test -n "$GCC_FOR_TARGET"; then
4987 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4988 else
4989 echo "$ac_t""no" 1>&6
4993 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4994 done
4997 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4998 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4999 else
5000 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
5003 if test -n "$with_build_time_tools"; then
5004 for ncn_progname in gcj; do
5005 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5006 echo "configure:5007: checking for ${ncn_progname} in $with_build_time_tools" >&5
5007 if test -x $with_build_time_tools/${ncn_progname}; then
5008 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5009 echo "$ac_t""yes" 1>&6
5010 break
5011 else
5012 echo "$ac_t""no" 1>&6
5014 done
5017 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
5018 for ncn_progname in gcj; do
5019 if test -n "$ncn_target_tool_prefix"; then
5020 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5021 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5023 echo "configure:5024: checking for $ac_word" >&5
5024 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
5025 echo $ac_n "(cached) $ac_c" 1>&6
5026 else
5027 if test -n "$GCJ_FOR_TARGET"; then
5028 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
5029 else
5030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5031 ac_dummy="$PATH"
5032 for ac_dir in $ac_dummy; do
5033 test -z "$ac_dir" && ac_dir=.
5034 if test -f $ac_dir/$ac_word; then
5035 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5036 break
5038 done
5039 IFS="$ac_save_ifs"
5042 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5043 if test -n "$GCJ_FOR_TARGET"; then
5044 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
5045 else
5046 echo "$ac_t""no" 1>&6
5050 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
5051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5052 set dummy ${ncn_progname}; ac_word=$2
5053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5054 echo "configure:5055: checking for $ac_word" >&5
5055 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
5056 echo $ac_n "(cached) $ac_c" 1>&6
5057 else
5058 if test -n "$GCJ_FOR_TARGET"; then
5059 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
5060 else
5061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5062 ac_dummy="$PATH"
5063 for ac_dir in $ac_dummy; do
5064 test -z "$ac_dir" && ac_dir=.
5065 if test -f $ac_dir/$ac_word; then
5066 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5067 break
5069 done
5070 IFS="$ac_save_ifs"
5073 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5074 if test -n "$GCJ_FOR_TARGET"; then
5075 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
5076 else
5077 echo "$ac_t""no" 1>&6
5081 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
5082 done
5085 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
5086 set dummy gcj
5087 if test $build = $target ; then
5088 GCJ_FOR_TARGET="$2"
5089 else
5090 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
5092 else
5093 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5096 if test -n "$with_build_time_tools"; then
5097 for ncn_progname in gfortran; do
5098 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5099 echo "configure:5100: checking for ${ncn_progname} in $with_build_time_tools" >&5
5100 if test -x $with_build_time_tools/${ncn_progname}; then
5101 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5102 echo "$ac_t""yes" 1>&6
5103 break
5104 else
5105 echo "$ac_t""no" 1>&6
5107 done
5110 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
5111 for ncn_progname in gfortran; do
5112 if test -n "$ncn_target_tool_prefix"; then
5113 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5114 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5116 echo "configure:5117: checking for $ac_word" >&5
5117 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5118 echo $ac_n "(cached) $ac_c" 1>&6
5119 else
5120 if test -n "$GFORTRAN_FOR_TARGET"; then
5121 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5122 else
5123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5124 ac_dummy="$PATH"
5125 for ac_dir in $ac_dummy; do
5126 test -z "$ac_dir" && ac_dir=.
5127 if test -f $ac_dir/$ac_word; then
5128 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5129 break
5131 done
5132 IFS="$ac_save_ifs"
5135 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5136 if test -n "$GFORTRAN_FOR_TARGET"; then
5137 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5138 else
5139 echo "$ac_t""no" 1>&6
5143 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5145 set dummy ${ncn_progname}; ac_word=$2
5146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5147 echo "configure:5148: checking for $ac_word" >&5
5148 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5150 else
5151 if test -n "$GFORTRAN_FOR_TARGET"; then
5152 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5153 else
5154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5155 ac_dummy="$PATH"
5156 for ac_dir in $ac_dummy; do
5157 test -z "$ac_dir" && ac_dir=.
5158 if test -f $ac_dir/$ac_word; then
5159 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5160 break
5162 done
5163 IFS="$ac_save_ifs"
5166 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5167 if test -n "$GFORTRAN_FOR_TARGET"; then
5168 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5169 else
5170 echo "$ac_t""no" 1>&6
5174 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5175 done
5178 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5179 set dummy gfortran
5180 if test $build = $target ; then
5181 GFORTRAN_FOR_TARGET="$2"
5182 else
5183 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5185 else
5186 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5191 # The user is always right.
5192 if test "${PATH_SEPARATOR+set}" != set; then
5193 echo "#! /bin/sh" >conf$$.sh
5194 echo "exit 0" >>conf$$.sh
5195 chmod +x conf$$.sh
5196 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5197 PATH_SEPARATOR=';'
5198 else
5199 PATH_SEPARATOR=:
5201 rm -f conf$$.sh
5206 if test "x$exec_prefix" = xNONE; then
5207 if test "x$prefix" = xNONE; then
5208 gcc_cv_tool_prefix=$ac_default_prefix
5209 else
5210 gcc_cv_tool_prefix=$prefix
5212 else
5213 gcc_cv_tool_prefix=$exec_prefix
5216 # If there is no compiler in the tree, use the PATH only. In any
5217 # case, if there is no compiler in the tree nobody should use
5218 # AS_FOR_TARGET and LD_FOR_TARGET.
5219 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5220 gcc_version=`cat $srcdir/gcc/BASE-VER`
5221 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5222 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5223 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5224 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5225 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5226 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5227 else
5228 gcc_cv_tool_dirs=
5231 if test x$build = x$target && test -n "$md_exec_prefix"; then
5232 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5237 cat > conftest.c << \EOF
5238 #ifdef __GNUC__
5239 gcc_yay;
5240 #endif
5242 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5243 have_gcc_for_target=yes
5244 else
5245 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5246 have_gcc_for_target=no
5248 rm conftest.c
5253 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5254 if test -n "$with_build_time_tools"; then
5255 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5256 echo "configure:5257: checking for ar in $with_build_time_tools" >&5
5257 if test -x $with_build_time_tools/ar; then
5258 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
5259 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5260 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5261 else
5262 echo "$ac_t""no" 1>&6
5264 elif test $build != $host && test $have_gcc_for_target = yes; then
5265 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5266 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5267 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5270 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5271 # Extract the first word of "ar", so it can be a program name with args.
5272 set dummy ar; ac_word=$2
5273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5274 echo "configure:5275: checking for $ac_word" >&5
5275 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5277 else
5278 case "$AR_FOR_TARGET" in
5280 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5282 ?:/*)
5283 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5287 ac_dummy="$gcc_cv_tool_dirs"
5288 for ac_dir in $ac_dummy; do
5289 test -z "$ac_dir" && ac_dir=.
5290 if test -f $ac_dir/$ac_word; then
5291 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
5292 break
5294 done
5295 IFS="$ac_save_ifs"
5297 esac
5299 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5300 if test -n "$AR_FOR_TARGET"; then
5301 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5302 else
5303 echo "$ac_t""no" 1>&6
5307 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5308 if test -n "$with_build_time_tools"; then
5309 for ncn_progname in ar; do
5310 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5311 echo "configure:5312: checking for ${ncn_progname} in $with_build_time_tools" >&5
5312 if test -x $with_build_time_tools/${ncn_progname}; then
5313 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5314 echo "$ac_t""yes" 1>&6
5315 break
5316 else
5317 echo "$ac_t""no" 1>&6
5319 done
5322 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5323 for ncn_progname in ar; do
5324 if test -n "$ncn_target_tool_prefix"; then
5325 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5326 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5328 echo "configure:5329: checking for $ac_word" >&5
5329 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5330 echo $ac_n "(cached) $ac_c" 1>&6
5331 else
5332 if test -n "$AR_FOR_TARGET"; then
5333 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5334 else
5335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5336 ac_dummy="$PATH"
5337 for ac_dir in $ac_dummy; do
5338 test -z "$ac_dir" && ac_dir=.
5339 if test -f $ac_dir/$ac_word; then
5340 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5341 break
5343 done
5344 IFS="$ac_save_ifs"
5347 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5348 if test -n "$AR_FOR_TARGET"; then
5349 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5350 else
5351 echo "$ac_t""no" 1>&6
5355 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5357 set dummy ${ncn_progname}; ac_word=$2
5358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5359 echo "configure:5360: checking for $ac_word" >&5
5360 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5361 echo $ac_n "(cached) $ac_c" 1>&6
5362 else
5363 if test -n "$AR_FOR_TARGET"; then
5364 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5365 else
5366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5367 ac_dummy="$PATH"
5368 for ac_dir in $ac_dummy; do
5369 test -z "$ac_dir" && ac_dir=.
5370 if test -f $ac_dir/$ac_word; then
5371 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5372 break
5374 done
5375 IFS="$ac_save_ifs"
5378 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5379 if test -n "$AR_FOR_TARGET"; then
5380 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5381 else
5382 echo "$ac_t""no" 1>&6
5386 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5387 done
5390 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5391 set dummy ar
5392 if test $build = $target ; then
5393 AR_FOR_TARGET="$2"
5394 else
5395 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
5397 else
5398 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5401 else
5402 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5408 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5409 if test -n "$with_build_time_tools"; then
5410 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5411 echo "configure:5412: checking for as in $with_build_time_tools" >&5
5412 if test -x $with_build_time_tools/as; then
5413 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
5414 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5415 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5416 else
5417 echo "$ac_t""no" 1>&6
5419 elif test $build != $host && test $have_gcc_for_target = yes; then
5420 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5421 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5422 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5425 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5426 # Extract the first word of "as", so it can be a program name with args.
5427 set dummy as; ac_word=$2
5428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5429 echo "configure:5430: checking for $ac_word" >&5
5430 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5431 echo $ac_n "(cached) $ac_c" 1>&6
5432 else
5433 case "$AS_FOR_TARGET" in
5435 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5437 ?:/*)
5438 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5442 ac_dummy="$gcc_cv_tool_dirs"
5443 for ac_dir in $ac_dummy; do
5444 test -z "$ac_dir" && ac_dir=.
5445 if test -f $ac_dir/$ac_word; then
5446 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5447 break
5449 done
5450 IFS="$ac_save_ifs"
5452 esac
5454 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5455 if test -n "$AS_FOR_TARGET"; then
5456 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5457 else
5458 echo "$ac_t""no" 1>&6
5462 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5463 if test -n "$with_build_time_tools"; then
5464 for ncn_progname in as; do
5465 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5466 echo "configure:5467: checking for ${ncn_progname} in $with_build_time_tools" >&5
5467 if test -x $with_build_time_tools/${ncn_progname}; then
5468 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5469 echo "$ac_t""yes" 1>&6
5470 break
5471 else
5472 echo "$ac_t""no" 1>&6
5474 done
5477 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5478 for ncn_progname in as; do
5479 if test -n "$ncn_target_tool_prefix"; then
5480 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5481 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5483 echo "configure:5484: checking for $ac_word" >&5
5484 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5485 echo $ac_n "(cached) $ac_c" 1>&6
5486 else
5487 if test -n "$AS_FOR_TARGET"; then
5488 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5489 else
5490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5491 ac_dummy="$PATH"
5492 for ac_dir in $ac_dummy; do
5493 test -z "$ac_dir" && ac_dir=.
5494 if test -f $ac_dir/$ac_word; then
5495 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5496 break
5498 done
5499 IFS="$ac_save_ifs"
5502 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5503 if test -n "$AS_FOR_TARGET"; then
5504 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5505 else
5506 echo "$ac_t""no" 1>&6
5510 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5512 set dummy ${ncn_progname}; ac_word=$2
5513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5514 echo "configure:5515: checking for $ac_word" >&5
5515 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5516 echo $ac_n "(cached) $ac_c" 1>&6
5517 else
5518 if test -n "$AS_FOR_TARGET"; then
5519 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5520 else
5521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5522 ac_dummy="$PATH"
5523 for ac_dir in $ac_dummy; do
5524 test -z "$ac_dir" && ac_dir=.
5525 if test -f $ac_dir/$ac_word; then
5526 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5527 break
5529 done
5530 IFS="$ac_save_ifs"
5533 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5534 if test -n "$AS_FOR_TARGET"; then
5535 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5536 else
5537 echo "$ac_t""no" 1>&6
5541 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5542 done
5545 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5546 set dummy as
5547 if test $build = $target ; then
5548 AS_FOR_TARGET="$2"
5549 else
5550 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5552 else
5553 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5556 else
5557 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5563 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5564 if test -n "$with_build_time_tools"; then
5565 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5566 echo "configure:5567: checking for dlltool in $with_build_time_tools" >&5
5567 if test -x $with_build_time_tools/dlltool; then
5568 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
5569 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5570 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5571 else
5572 echo "$ac_t""no" 1>&6
5574 elif test $build != $host && test $have_gcc_for_target = yes; then
5575 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5576 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5577 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5580 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5581 # Extract the first word of "dlltool", so it can be a program name with args.
5582 set dummy dlltool; ac_word=$2
5583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5584 echo "configure:5585: checking for $ac_word" >&5
5585 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5587 else
5588 case "$DLLTOOL_FOR_TARGET" in
5590 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5592 ?:/*)
5593 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5597 ac_dummy="$gcc_cv_tool_dirs"
5598 for ac_dir in $ac_dummy; do
5599 test -z "$ac_dir" && ac_dir=.
5600 if test -f $ac_dir/$ac_word; then
5601 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5602 break
5604 done
5605 IFS="$ac_save_ifs"
5607 esac
5609 DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5610 if test -n "$DLLTOOL_FOR_TARGET"; then
5611 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5612 else
5613 echo "$ac_t""no" 1>&6
5617 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5618 if test -n "$with_build_time_tools"; then
5619 for ncn_progname in dlltool; do
5620 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5621 echo "configure:5622: checking for ${ncn_progname} in $with_build_time_tools" >&5
5622 if test -x $with_build_time_tools/${ncn_progname}; then
5623 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5624 echo "$ac_t""yes" 1>&6
5625 break
5626 else
5627 echo "$ac_t""no" 1>&6
5629 done
5632 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5633 for ncn_progname in dlltool; do
5634 if test -n "$ncn_target_tool_prefix"; then
5635 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5636 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5638 echo "configure:5639: checking for $ac_word" >&5
5639 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5640 echo $ac_n "(cached) $ac_c" 1>&6
5641 else
5642 if test -n "$DLLTOOL_FOR_TARGET"; then
5643 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5644 else
5645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5646 ac_dummy="$PATH"
5647 for ac_dir in $ac_dummy; do
5648 test -z "$ac_dir" && ac_dir=.
5649 if test -f $ac_dir/$ac_word; then
5650 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5651 break
5653 done
5654 IFS="$ac_save_ifs"
5657 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5658 if test -n "$DLLTOOL_FOR_TARGET"; then
5659 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5660 else
5661 echo "$ac_t""no" 1>&6
5665 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5667 set dummy ${ncn_progname}; ac_word=$2
5668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5669 echo "configure:5670: checking for $ac_word" >&5
5670 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5672 else
5673 if test -n "$DLLTOOL_FOR_TARGET"; then
5674 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5675 else
5676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5677 ac_dummy="$PATH"
5678 for ac_dir in $ac_dummy; do
5679 test -z "$ac_dir" && ac_dir=.
5680 if test -f $ac_dir/$ac_word; then
5681 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5682 break
5684 done
5685 IFS="$ac_save_ifs"
5688 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5689 if test -n "$DLLTOOL_FOR_TARGET"; then
5690 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5691 else
5692 echo "$ac_t""no" 1>&6
5696 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5697 done
5700 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5701 set dummy dlltool
5702 if test $build = $target ; then
5703 DLLTOOL_FOR_TARGET="$2"
5704 else
5705 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5707 else
5708 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5711 else
5712 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5718 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5719 if test -n "$with_build_time_tools"; then
5720 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5721 echo "configure:5722: checking for ld in $with_build_time_tools" >&5
5722 if test -x $with_build_time_tools/ld; then
5723 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
5724 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5725 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5726 else
5727 echo "$ac_t""no" 1>&6
5729 elif test $build != $host && test $have_gcc_for_target = yes; then
5730 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5731 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5732 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5735 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5736 # Extract the first word of "ld", so it can be a program name with args.
5737 set dummy ld; ac_word=$2
5738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5739 echo "configure:5740: checking for $ac_word" >&5
5740 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5741 echo $ac_n "(cached) $ac_c" 1>&6
5742 else
5743 case "$LD_FOR_TARGET" in
5745 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5747 ?:/*)
5748 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5752 ac_dummy="$gcc_cv_tool_dirs"
5753 for ac_dir in $ac_dummy; do
5754 test -z "$ac_dir" && ac_dir=.
5755 if test -f $ac_dir/$ac_word; then
5756 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5757 break
5759 done
5760 IFS="$ac_save_ifs"
5762 esac
5764 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5765 if test -n "$LD_FOR_TARGET"; then
5766 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5767 else
5768 echo "$ac_t""no" 1>&6
5772 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5773 if test -n "$with_build_time_tools"; then
5774 for ncn_progname in ld; do
5775 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5776 echo "configure:5777: checking for ${ncn_progname} in $with_build_time_tools" >&5
5777 if test -x $with_build_time_tools/${ncn_progname}; then
5778 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5779 echo "$ac_t""yes" 1>&6
5780 break
5781 else
5782 echo "$ac_t""no" 1>&6
5784 done
5787 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5788 for ncn_progname in ld; do
5789 if test -n "$ncn_target_tool_prefix"; then
5790 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5791 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5793 echo "configure:5794: checking for $ac_word" >&5
5794 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5795 echo $ac_n "(cached) $ac_c" 1>&6
5796 else
5797 if test -n "$LD_FOR_TARGET"; then
5798 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5799 else
5800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5801 ac_dummy="$PATH"
5802 for ac_dir in $ac_dummy; do
5803 test -z "$ac_dir" && ac_dir=.
5804 if test -f $ac_dir/$ac_word; then
5805 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5806 break
5808 done
5809 IFS="$ac_save_ifs"
5812 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5813 if test -n "$LD_FOR_TARGET"; then
5814 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5815 else
5816 echo "$ac_t""no" 1>&6
5820 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5822 set dummy ${ncn_progname}; ac_word=$2
5823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5824 echo "configure:5825: checking for $ac_word" >&5
5825 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5826 echo $ac_n "(cached) $ac_c" 1>&6
5827 else
5828 if test -n "$LD_FOR_TARGET"; then
5829 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5830 else
5831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5832 ac_dummy="$PATH"
5833 for ac_dir in $ac_dummy; do
5834 test -z "$ac_dir" && ac_dir=.
5835 if test -f $ac_dir/$ac_word; then
5836 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5837 break
5839 done
5840 IFS="$ac_save_ifs"
5843 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5844 if test -n "$LD_FOR_TARGET"; then
5845 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5846 else
5847 echo "$ac_t""no" 1>&6
5851 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5852 done
5855 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5856 set dummy ld
5857 if test $build = $target ; then
5858 LD_FOR_TARGET="$2"
5859 else
5860 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5862 else
5863 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5866 else
5867 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5873 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5874 if test -n "$with_build_time_tools"; then
5875 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5876 echo "configure:5877: checking for lipo in $with_build_time_tools" >&5
5877 if test -x $with_build_time_tools/lipo; then
5878 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
5879 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5880 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5881 else
5882 echo "$ac_t""no" 1>&6
5884 elif test $build != $host && test $have_gcc_for_target = yes; then
5885 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5886 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5887 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5890 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5891 # Extract the first word of "lipo", so it can be a program name with args.
5892 set dummy lipo; ac_word=$2
5893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5894 echo "configure:5895: checking for $ac_word" >&5
5895 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5896 echo $ac_n "(cached) $ac_c" 1>&6
5897 else
5898 case "$LIPO_FOR_TARGET" in
5900 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5902 ?:/*)
5903 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5907 ac_dummy="$gcc_cv_tool_dirs"
5908 for ac_dir in $ac_dummy; do
5909 test -z "$ac_dir" && ac_dir=.
5910 if test -f $ac_dir/$ac_word; then
5911 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5912 break
5914 done
5915 IFS="$ac_save_ifs"
5917 esac
5919 LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5920 if test -n "$LIPO_FOR_TARGET"; then
5921 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5922 else
5923 echo "$ac_t""no" 1>&6
5927 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5928 if test -n "$with_build_time_tools"; then
5929 for ncn_progname in lipo; do
5930 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5931 echo "configure:5932: checking for ${ncn_progname} in $with_build_time_tools" >&5
5932 if test -x $with_build_time_tools/${ncn_progname}; then
5933 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5934 echo "$ac_t""yes" 1>&6
5935 break
5936 else
5937 echo "$ac_t""no" 1>&6
5939 done
5942 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5943 for ncn_progname in lipo; do
5944 if test -n "$ncn_target_tool_prefix"; then
5945 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5946 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5948 echo "configure:5949: checking for $ac_word" >&5
5949 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5950 echo $ac_n "(cached) $ac_c" 1>&6
5951 else
5952 if test -n "$LIPO_FOR_TARGET"; then
5953 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5954 else
5955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5956 ac_dummy="$PATH"
5957 for ac_dir in $ac_dummy; do
5958 test -z "$ac_dir" && ac_dir=.
5959 if test -f $ac_dir/$ac_word; then
5960 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5961 break
5963 done
5964 IFS="$ac_save_ifs"
5967 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5968 if test -n "$LIPO_FOR_TARGET"; then
5969 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5970 else
5971 echo "$ac_t""no" 1>&6
5975 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5977 set dummy ${ncn_progname}; ac_word=$2
5978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5979 echo "configure:5980: checking for $ac_word" >&5
5980 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5981 echo $ac_n "(cached) $ac_c" 1>&6
5982 else
5983 if test -n "$LIPO_FOR_TARGET"; then
5984 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5985 else
5986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5987 ac_dummy="$PATH"
5988 for ac_dir in $ac_dummy; do
5989 test -z "$ac_dir" && ac_dir=.
5990 if test -f $ac_dir/$ac_word; then
5991 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5992 break
5994 done
5995 IFS="$ac_save_ifs"
5998 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5999 if test -n "$LIPO_FOR_TARGET"; then
6000 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
6001 else
6002 echo "$ac_t""no" 1>&6
6006 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
6007 done
6010 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
6011 set dummy lipo
6012 if test $build = $target ; then
6013 LIPO_FOR_TARGET="$2"
6014 else
6015 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
6017 else
6018 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
6021 else
6022 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
6028 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6029 if test -n "$with_build_time_tools"; then
6030 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
6031 echo "configure:6032: checking for nm in $with_build_time_tools" >&5
6032 if test -x $with_build_time_tools/nm; then
6033 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
6034 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
6035 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
6036 else
6037 echo "$ac_t""no" 1>&6
6039 elif test $build != $host && test $have_gcc_for_target = yes; then
6040 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
6041 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
6042 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
6045 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6046 # Extract the first word of "nm", so it can be a program name with args.
6047 set dummy nm; ac_word=$2
6048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6049 echo "configure:6050: checking for $ac_word" >&5
6050 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
6051 echo $ac_n "(cached) $ac_c" 1>&6
6052 else
6053 case "$NM_FOR_TARGET" in
6055 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
6057 ?:/*)
6058 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
6061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6062 ac_dummy="$gcc_cv_tool_dirs"
6063 for ac_dir in $ac_dummy; do
6064 test -z "$ac_dir" && ac_dir=.
6065 if test -f $ac_dir/$ac_word; then
6066 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
6067 break
6069 done
6070 IFS="$ac_save_ifs"
6072 esac
6074 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
6075 if test -n "$NM_FOR_TARGET"; then
6076 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6077 else
6078 echo "$ac_t""no" 1>&6
6082 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6083 if test -n "$with_build_time_tools"; then
6084 for ncn_progname in nm; do
6085 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6086 echo "configure:6087: checking for ${ncn_progname} in $with_build_time_tools" >&5
6087 if test -x $with_build_time_tools/${ncn_progname}; then
6088 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6089 echo "$ac_t""yes" 1>&6
6090 break
6091 else
6092 echo "$ac_t""no" 1>&6
6094 done
6097 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
6098 for ncn_progname in nm; do
6099 if test -n "$ncn_target_tool_prefix"; then
6100 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6101 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6103 echo "configure:6104: checking for $ac_word" >&5
6104 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6105 echo $ac_n "(cached) $ac_c" 1>&6
6106 else
6107 if test -n "$NM_FOR_TARGET"; then
6108 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6109 else
6110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6111 ac_dummy="$PATH"
6112 for ac_dir in $ac_dummy; do
6113 test -z "$ac_dir" && ac_dir=.
6114 if test -f $ac_dir/$ac_word; then
6115 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6116 break
6118 done
6119 IFS="$ac_save_ifs"
6122 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6123 if test -n "$NM_FOR_TARGET"; then
6124 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6125 else
6126 echo "$ac_t""no" 1>&6
6130 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
6131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6132 set dummy ${ncn_progname}; ac_word=$2
6133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6134 echo "configure:6135: checking for $ac_word" >&5
6135 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6136 echo $ac_n "(cached) $ac_c" 1>&6
6137 else
6138 if test -n "$NM_FOR_TARGET"; then
6139 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6140 else
6141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6142 ac_dummy="$PATH"
6143 for ac_dir in $ac_dummy; do
6144 test -z "$ac_dir" && ac_dir=.
6145 if test -f $ac_dir/$ac_word; then
6146 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
6147 break
6149 done
6150 IFS="$ac_save_ifs"
6153 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6154 if test -n "$NM_FOR_TARGET"; then
6155 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6156 else
6157 echo "$ac_t""no" 1>&6
6161 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6162 done
6165 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6166 set dummy nm
6167 if test $build = $target ; then
6168 NM_FOR_TARGET="$2"
6169 else
6170 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
6172 else
6173 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6176 else
6177 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
6183 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6184 if test -n "$with_build_time_tools"; then
6185 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6186 echo "configure:6187: checking for objdump in $with_build_time_tools" >&5
6187 if test -x $with_build_time_tools/objdump; then
6188 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
6189 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6190 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6191 else
6192 echo "$ac_t""no" 1>&6
6194 elif test $build != $host && test $have_gcc_for_target = yes; then
6195 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
6196 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
6197 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6200 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6201 # Extract the first word of "objdump", so it can be a program name with args.
6202 set dummy objdump; ac_word=$2
6203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6204 echo "configure:6205: checking for $ac_word" >&5
6205 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6206 echo $ac_n "(cached) $ac_c" 1>&6
6207 else
6208 case "$OBJDUMP_FOR_TARGET" in
6210 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6212 ?:/*)
6213 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6217 ac_dummy="$gcc_cv_tool_dirs"
6218 for ac_dir in $ac_dummy; do
6219 test -z "$ac_dir" && ac_dir=.
6220 if test -f $ac_dir/$ac_word; then
6221 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6222 break
6224 done
6225 IFS="$ac_save_ifs"
6227 esac
6229 OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6230 if test -n "$OBJDUMP_FOR_TARGET"; then
6231 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6232 else
6233 echo "$ac_t""no" 1>&6
6237 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6238 if test -n "$with_build_time_tools"; then
6239 for ncn_progname in objdump; do
6240 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6241 echo "configure:6242: checking for ${ncn_progname} in $with_build_time_tools" >&5
6242 if test -x $with_build_time_tools/${ncn_progname}; then
6243 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6244 echo "$ac_t""yes" 1>&6
6245 break
6246 else
6247 echo "$ac_t""no" 1>&6
6249 done
6252 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6253 for ncn_progname in objdump; do
6254 if test -n "$ncn_target_tool_prefix"; then
6255 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6256 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6258 echo "configure:6259: checking for $ac_word" >&5
6259 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6260 echo $ac_n "(cached) $ac_c" 1>&6
6261 else
6262 if test -n "$OBJDUMP_FOR_TARGET"; then
6263 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6264 else
6265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6266 ac_dummy="$PATH"
6267 for ac_dir in $ac_dummy; do
6268 test -z "$ac_dir" && ac_dir=.
6269 if test -f $ac_dir/$ac_word; then
6270 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6271 break
6273 done
6274 IFS="$ac_save_ifs"
6277 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6278 if test -n "$OBJDUMP_FOR_TARGET"; then
6279 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6280 else
6281 echo "$ac_t""no" 1>&6
6285 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6287 set dummy ${ncn_progname}; 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_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6292 else
6293 if test -n "$OBJDUMP_FOR_TARGET"; then
6294 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6295 else
6296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6297 ac_dummy="$PATH"
6298 for ac_dir in $ac_dummy; do
6299 test -z "$ac_dir" && ac_dir=.
6300 if test -f $ac_dir/$ac_word; then
6301 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6302 break
6304 done
6305 IFS="$ac_save_ifs"
6308 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6309 if test -n "$OBJDUMP_FOR_TARGET"; then
6310 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6311 else
6312 echo "$ac_t""no" 1>&6
6316 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6317 done
6320 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6321 set dummy objdump
6322 if test $build = $target ; then
6323 OBJDUMP_FOR_TARGET="$2"
6324 else
6325 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6327 else
6328 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6331 else
6332 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
6338 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6339 if test -n "$with_build_time_tools"; then
6340 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6341 echo "configure:6342: checking for ranlib in $with_build_time_tools" >&5
6342 if test -x $with_build_time_tools/ranlib; then
6343 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
6344 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6345 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6346 else
6347 echo "$ac_t""no" 1>&6
6349 elif test $build != $host && test $have_gcc_for_target = yes; then
6350 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6351 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6352 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6355 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6356 # Extract the first word of "ranlib", so it can be a program name with args.
6357 set dummy ranlib; ac_word=$2
6358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6359 echo "configure:6360: checking for $ac_word" >&5
6360 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6361 echo $ac_n "(cached) $ac_c" 1>&6
6362 else
6363 case "$RANLIB_FOR_TARGET" in
6365 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6367 ?:/*)
6368 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6372 ac_dummy="$gcc_cv_tool_dirs"
6373 for ac_dir in $ac_dummy; do
6374 test -z "$ac_dir" && ac_dir=.
6375 if test -f $ac_dir/$ac_word; then
6376 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6377 break
6379 done
6380 IFS="$ac_save_ifs"
6382 esac
6384 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6385 if test -n "$RANLIB_FOR_TARGET"; then
6386 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6387 else
6388 echo "$ac_t""no" 1>&6
6392 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6393 if test -n "$with_build_time_tools"; then
6394 for ncn_progname in ranlib; do
6395 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6396 echo "configure:6397: checking for ${ncn_progname} in $with_build_time_tools" >&5
6397 if test -x $with_build_time_tools/${ncn_progname}; then
6398 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6399 echo "$ac_t""yes" 1>&6
6400 break
6401 else
6402 echo "$ac_t""no" 1>&6
6404 done
6407 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6408 for ncn_progname in ranlib; do
6409 if test -n "$ncn_target_tool_prefix"; then
6410 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6411 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6413 echo "configure:6414: checking for $ac_word" >&5
6414 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6415 echo $ac_n "(cached) $ac_c" 1>&6
6416 else
6417 if test -n "$RANLIB_FOR_TARGET"; then
6418 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6419 else
6420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6421 ac_dummy="$PATH"
6422 for ac_dir in $ac_dummy; do
6423 test -z "$ac_dir" && ac_dir=.
6424 if test -f $ac_dir/$ac_word; then
6425 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6426 break
6428 done
6429 IFS="$ac_save_ifs"
6432 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6433 if test -n "$RANLIB_FOR_TARGET"; then
6434 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6435 else
6436 echo "$ac_t""no" 1>&6
6440 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6442 set dummy ${ncn_progname}; ac_word=$2
6443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6444 echo "configure:6445: checking for $ac_word" >&5
6445 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6446 echo $ac_n "(cached) $ac_c" 1>&6
6447 else
6448 if test -n "$RANLIB_FOR_TARGET"; then
6449 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6450 else
6451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6452 ac_dummy="$PATH"
6453 for ac_dir in $ac_dummy; do
6454 test -z "$ac_dir" && ac_dir=.
6455 if test -f $ac_dir/$ac_word; then
6456 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6457 break
6459 done
6460 IFS="$ac_save_ifs"
6463 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6464 if test -n "$RANLIB_FOR_TARGET"; then
6465 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6466 else
6467 echo "$ac_t""no" 1>&6
6471 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6472 done
6475 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6476 set dummy ranlib
6477 if test $build = $target ; then
6478 RANLIB_FOR_TARGET="$2"
6479 else
6480 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
6482 else
6483 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6486 else
6487 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
6493 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6494 if test -n "$with_build_time_tools"; then
6495 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6496 echo "configure:6497: checking for strip in $with_build_time_tools" >&5
6497 if test -x $with_build_time_tools/strip; then
6498 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
6499 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6500 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6501 else
6502 echo "$ac_t""no" 1>&6
6504 elif test $build != $host && test $have_gcc_for_target = yes; then
6505 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6506 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6507 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6510 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6511 # Extract the first word of "strip", so it can be a program name with args.
6512 set dummy strip; ac_word=$2
6513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6514 echo "configure:6515: checking for $ac_word" >&5
6515 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6517 else
6518 case "$STRIP_FOR_TARGET" in
6520 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6522 ?:/*)
6523 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6527 ac_dummy="$gcc_cv_tool_dirs"
6528 for ac_dir in $ac_dummy; do
6529 test -z "$ac_dir" && ac_dir=.
6530 if test -f $ac_dir/$ac_word; then
6531 ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6532 break
6534 done
6535 IFS="$ac_save_ifs"
6537 esac
6539 STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6540 if test -n "$STRIP_FOR_TARGET"; then
6541 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6542 else
6543 echo "$ac_t""no" 1>&6
6547 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6548 if test -n "$with_build_time_tools"; then
6549 for ncn_progname in strip; do
6550 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6551 echo "configure:6552: checking for ${ncn_progname} in $with_build_time_tools" >&5
6552 if test -x $with_build_time_tools/${ncn_progname}; then
6553 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6554 echo "$ac_t""yes" 1>&6
6555 break
6556 else
6557 echo "$ac_t""no" 1>&6
6559 done
6562 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6563 for ncn_progname in strip; do
6564 if test -n "$ncn_target_tool_prefix"; then
6565 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6566 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6568 echo "configure:6569: checking for $ac_word" >&5
6569 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6570 echo $ac_n "(cached) $ac_c" 1>&6
6571 else
6572 if test -n "$STRIP_FOR_TARGET"; then
6573 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6574 else
6575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6576 ac_dummy="$PATH"
6577 for ac_dir in $ac_dummy; do
6578 test -z "$ac_dir" && ac_dir=.
6579 if test -f $ac_dir/$ac_word; then
6580 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6581 break
6583 done
6584 IFS="$ac_save_ifs"
6587 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6588 if test -n "$STRIP_FOR_TARGET"; then
6589 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6590 else
6591 echo "$ac_t""no" 1>&6
6595 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6597 set dummy ${ncn_progname}; ac_word=$2
6598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6599 echo "configure:6600: checking for $ac_word" >&5
6600 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6601 echo $ac_n "(cached) $ac_c" 1>&6
6602 else
6603 if test -n "$STRIP_FOR_TARGET"; then
6604 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6605 else
6606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6607 ac_dummy="$PATH"
6608 for ac_dir in $ac_dummy; do
6609 test -z "$ac_dir" && ac_dir=.
6610 if test -f $ac_dir/$ac_word; then
6611 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6612 break
6614 done
6615 IFS="$ac_save_ifs"
6618 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6619 if test -n "$STRIP_FOR_TARGET"; then
6620 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6621 else
6622 echo "$ac_t""no" 1>&6
6626 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6627 done
6630 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6631 set dummy strip
6632 if test $build = $target ; then
6633 STRIP_FOR_TARGET="$2"
6634 else
6635 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6637 else
6638 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6641 else
6642 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
6648 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6649 if test -n "$with_build_time_tools"; then
6650 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6651 echo "configure:6652: checking for windres in $with_build_time_tools" >&5
6652 if test -x $with_build_time_tools/windres; then
6653 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
6654 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6655 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6656 else
6657 echo "$ac_t""no" 1>&6
6659 elif test $build != $host && test $have_gcc_for_target = yes; then
6660 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6661 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6662 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6665 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6666 # Extract the first word of "windres", so it can be a program name with args.
6667 set dummy windres; ac_word=$2
6668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6669 echo "configure:6670: checking for $ac_word" >&5
6670 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6671 echo $ac_n "(cached) $ac_c" 1>&6
6672 else
6673 case "$WINDRES_FOR_TARGET" in
6675 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6677 ?:/*)
6678 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6682 ac_dummy="$gcc_cv_tool_dirs"
6683 for ac_dir in $ac_dummy; do
6684 test -z "$ac_dir" && ac_dir=.
6685 if test -f $ac_dir/$ac_word; then
6686 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6687 break
6689 done
6690 IFS="$ac_save_ifs"
6692 esac
6694 WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6695 if test -n "$WINDRES_FOR_TARGET"; then
6696 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6697 else
6698 echo "$ac_t""no" 1>&6
6702 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6703 if test -n "$with_build_time_tools"; then
6704 for ncn_progname in windres; do
6705 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6706 echo "configure:6707: checking for ${ncn_progname} in $with_build_time_tools" >&5
6707 if test -x $with_build_time_tools/${ncn_progname}; then
6708 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6709 echo "$ac_t""yes" 1>&6
6710 break
6711 else
6712 echo "$ac_t""no" 1>&6
6714 done
6717 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6718 for ncn_progname in windres; do
6719 if test -n "$ncn_target_tool_prefix"; then
6720 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6721 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6723 echo "configure:6724: checking for $ac_word" >&5
6724 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6725 echo $ac_n "(cached) $ac_c" 1>&6
6726 else
6727 if test -n "$WINDRES_FOR_TARGET"; then
6728 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6729 else
6730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6731 ac_dummy="$PATH"
6732 for ac_dir in $ac_dummy; do
6733 test -z "$ac_dir" && ac_dir=.
6734 if test -f $ac_dir/$ac_word; then
6735 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6736 break
6738 done
6739 IFS="$ac_save_ifs"
6742 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6743 if test -n "$WINDRES_FOR_TARGET"; then
6744 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6745 else
6746 echo "$ac_t""no" 1>&6
6750 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6752 set dummy ${ncn_progname}; ac_word=$2
6753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6754 echo "configure:6755: checking for $ac_word" >&5
6755 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6756 echo $ac_n "(cached) $ac_c" 1>&6
6757 else
6758 if test -n "$WINDRES_FOR_TARGET"; then
6759 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6760 else
6761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6762 ac_dummy="$PATH"
6763 for ac_dir in $ac_dummy; do
6764 test -z "$ac_dir" && ac_dir=.
6765 if test -f $ac_dir/$ac_word; then
6766 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6767 break
6769 done
6770 IFS="$ac_save_ifs"
6773 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6774 if test -n "$WINDRES_FOR_TARGET"; then
6775 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6776 else
6777 echo "$ac_t""no" 1>&6
6781 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6782 done
6785 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6786 set dummy windres
6787 if test $build = $target ; then
6788 WINDRES_FOR_TARGET="$2"
6789 else
6790 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
6792 else
6793 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6796 else
6797 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
6801 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6803 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6804 echo "configure:6805: checking where to find the target ar" >&5
6805 if test "x${build}" != "x${host}" ; then
6806 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6807 # We already found the complete path
6808 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6809 else
6810 # Canadian cross, just use what we found
6811 echo "$ac_t""pre-installed" 1>&6
6813 else
6814 ok=yes
6815 case " ${configdirs} " in
6816 *" binutils "*) ;;
6817 *) ok=no ;;
6818 esac
6820 if test $ok = yes; then
6821 # An in-tree tool is available and we can use it
6822 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6823 echo "$ac_t""just compiled" 1>&6
6824 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6825 # We already found the complete path
6826 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6827 elif test "x$target" = "x$host"; then
6828 # We can use an host tool
6829 AR_FOR_TARGET='$(AR)'
6830 echo "$ac_t""host tool" 1>&6
6831 else
6832 # We need a cross tool
6833 echo "$ac_t""pre-installed" 1>&6
6836 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6837 echo "configure:6838: checking where to find the target as" >&5
6838 if test "x${build}" != "x${host}" ; then
6839 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6840 # We already found the complete path
6841 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6842 else
6843 # Canadian cross, just use what we found
6844 echo "$ac_t""pre-installed" 1>&6
6846 else
6847 ok=yes
6848 case " ${configdirs} " in
6849 *" gas "*) ;;
6850 *) ok=no ;;
6851 esac
6853 if test $ok = yes; then
6854 # An in-tree tool is available and we can use it
6855 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6856 echo "$ac_t""just compiled" 1>&6
6857 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6858 # We already found the complete path
6859 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6860 elif test "x$target" = "x$host"; then
6861 # We can use an host tool
6862 AS_FOR_TARGET='$(AS)'
6863 echo "$ac_t""host tool" 1>&6
6864 else
6865 # We need a cross tool
6866 echo "$ac_t""pre-installed" 1>&6
6869 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6870 echo "configure:6871: checking where to find the target cc" >&5
6871 if test "x${build}" != "x${host}" ; then
6872 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6873 # We already found the complete path
6874 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6875 else
6876 # Canadian cross, just use what we found
6877 echo "$ac_t""pre-installed" 1>&6
6879 else
6880 ok=yes
6881 case " ${configdirs} " in
6882 *" gcc "*) ;;
6883 *) ok=no ;;
6884 esac
6886 if test $ok = yes; then
6887 # An in-tree tool is available and we can use it
6888 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6889 echo "$ac_t""just compiled" 1>&6
6890 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6891 # We already found the complete path
6892 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6893 elif test "x$target" = "x$host"; then
6894 # We can use an host tool
6895 CC_FOR_TARGET='$(CC)'
6896 echo "$ac_t""host tool" 1>&6
6897 else
6898 # We need a cross tool
6899 echo "$ac_t""pre-installed" 1>&6
6902 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6903 echo "configure:6904: checking where to find the target c++" >&5
6904 if test "x${build}" != "x${host}" ; then
6905 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6906 # We already found the complete path
6907 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6908 else
6909 # Canadian cross, just use what we found
6910 echo "$ac_t""pre-installed" 1>&6
6912 else
6913 ok=yes
6914 case " ${configdirs} " in
6915 *" gcc "*) ;;
6916 *) ok=no ;;
6917 esac
6918 case ,${enable_languages}, in
6919 *,c++,*) ;;
6920 *) ok=no ;;
6921 esac
6922 if test $ok = yes; then
6923 # An in-tree tool is available and we can use it
6924 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'
6925 echo "$ac_t""just compiled" 1>&6
6926 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6927 # We already found the complete path
6928 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6929 elif test "x$target" = "x$host"; then
6930 # We can use an host tool
6931 CXX_FOR_TARGET='$(CXX)'
6932 echo "$ac_t""host tool" 1>&6
6933 else
6934 # We need a cross tool
6935 echo "$ac_t""pre-installed" 1>&6
6938 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6939 echo "configure:6940: checking where to find the target c++ for libstdc++" >&5
6940 if test "x${build}" != "x${host}" ; then
6941 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6942 # We already found the complete path
6943 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6944 else
6945 # Canadian cross, just use what we found
6946 echo "$ac_t""pre-installed" 1>&6
6948 else
6949 ok=yes
6950 case " ${configdirs} " in
6951 *" gcc "*) ;;
6952 *) ok=no ;;
6953 esac
6954 case ,${enable_languages}, in
6955 *,c++,*) ;;
6956 *) ok=no ;;
6957 esac
6958 if test $ok = yes; then
6959 # An in-tree tool is available and we can use it
6960 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'
6961 echo "$ac_t""just compiled" 1>&6
6962 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6963 # We already found the complete path
6964 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6965 elif test "x$target" = "x$host"; then
6966 # We can use an host tool
6967 RAW_CXX_FOR_TARGET='$(CXX)'
6968 echo "$ac_t""host tool" 1>&6
6969 else
6970 # We need a cross tool
6971 echo "$ac_t""pre-installed" 1>&6
6974 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6975 echo "configure:6976: checking where to find the target dlltool" >&5
6976 if test "x${build}" != "x${host}" ; then
6977 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6978 # We already found the complete path
6979 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6980 else
6981 # Canadian cross, just use what we found
6982 echo "$ac_t""pre-installed" 1>&6
6984 else
6985 ok=yes
6986 case " ${configdirs} " in
6987 *" binutils "*) ;;
6988 *) ok=no ;;
6989 esac
6991 if test $ok = yes; then
6992 # An in-tree tool is available and we can use it
6993 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6994 echo "$ac_t""just compiled" 1>&6
6995 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6996 # We already found the complete path
6997 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6998 elif test "x$target" = "x$host"; then
6999 # We can use an host tool
7000 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
7001 echo "$ac_t""host tool" 1>&6
7002 else
7003 # We need a cross tool
7004 echo "$ac_t""pre-installed" 1>&6
7007 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
7008 echo "configure:7009: checking where to find the target gcc" >&5
7009 if test "x${build}" != "x${host}" ; then
7010 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
7011 # We already found the complete path
7012 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
7013 else
7014 # Canadian cross, just use what we found
7015 echo "$ac_t""pre-installed" 1>&6
7017 else
7018 ok=yes
7019 case " ${configdirs} " in
7020 *" gcc "*) ;;
7021 *) ok=no ;;
7022 esac
7024 if test $ok = yes; then
7025 # An in-tree tool is available and we can use it
7026 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
7027 echo "$ac_t""just compiled" 1>&6
7028 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
7029 # We already found the complete path
7030 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
7031 elif test "x$target" = "x$host"; then
7032 # We can use an host tool
7033 GCC_FOR_TARGET='$()'
7034 echo "$ac_t""host tool" 1>&6
7035 else
7036 # We need a cross tool
7037 echo "$ac_t""pre-installed" 1>&6
7040 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
7041 echo "configure:7042: checking where to find the target gcj" >&5
7042 if test "x${build}" != "x${host}" ; then
7043 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
7044 # We already found the complete path
7045 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
7046 else
7047 # Canadian cross, just use what we found
7048 echo "$ac_t""pre-installed" 1>&6
7050 else
7051 ok=yes
7052 case " ${configdirs} " in
7053 *" gcc "*) ;;
7054 *) ok=no ;;
7055 esac
7056 case ,${enable_languages}, in
7057 *,java,*) ;;
7058 *) ok=no ;;
7059 esac
7060 if test $ok = yes; then
7061 # An in-tree tool is available and we can use it
7062 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
7063 echo "$ac_t""just compiled" 1>&6
7064 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
7065 # We already found the complete path
7066 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
7067 elif test "x$target" = "x$host"; then
7068 # We can use an host tool
7069 GCJ_FOR_TARGET='$(GCJ)'
7070 echo "$ac_t""host tool" 1>&6
7071 else
7072 # We need a cross tool
7073 echo "$ac_t""pre-installed" 1>&6
7076 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
7077 echo "configure:7078: checking where to find the target gfortran" >&5
7078 if test "x${build}" != "x${host}" ; then
7079 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
7080 # We already found the complete path
7081 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7082 else
7083 # Canadian cross, just use what we found
7084 echo "$ac_t""pre-installed" 1>&6
7086 else
7087 ok=yes
7088 case " ${configdirs} " in
7089 *" gcc "*) ;;
7090 *) ok=no ;;
7091 esac
7092 case ,${enable_languages}, in
7093 *,fortran,*) ;;
7094 *) ok=no ;;
7095 esac
7096 if test $ok = yes; then
7097 # An in-tree tool is available and we can use it
7098 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
7099 echo "$ac_t""just compiled" 1>&6
7100 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
7101 # We already found the complete path
7102 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7103 elif test "x$target" = "x$host"; then
7104 # We can use an host tool
7105 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
7106 echo "$ac_t""host tool" 1>&6
7107 else
7108 # We need a cross tool
7109 echo "$ac_t""pre-installed" 1>&6
7112 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
7113 echo "configure:7114: checking where to find the target ld" >&5
7114 if test "x${build}" != "x${host}" ; then
7115 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
7116 # We already found the complete path
7117 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7118 else
7119 # Canadian cross, just use what we found
7120 echo "$ac_t""pre-installed" 1>&6
7122 else
7123 ok=yes
7124 case " ${configdirs} " in
7125 *" ld "*) ;;
7126 *) ok=no ;;
7127 esac
7129 if test $ok = yes; then
7130 # An in-tree tool is available and we can use it
7131 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
7132 echo "$ac_t""just compiled" 1>&6
7133 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
7134 # We already found the complete path
7135 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7136 elif test "x$target" = "x$host"; then
7137 # We can use an host tool
7138 LD_FOR_TARGET='$(LD)'
7139 echo "$ac_t""host tool" 1>&6
7140 else
7141 # We need a cross tool
7142 echo "$ac_t""pre-installed" 1>&6
7145 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
7146 echo "configure:7147: checking where to find the target lipo" >&5
7147 if test "x${build}" != "x${host}" ; then
7148 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7149 # We already found the complete path
7150 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7151 else
7152 # Canadian cross, just use what we found
7153 echo "$ac_t""pre-installed" 1>&6
7155 else
7156 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7157 # We already found the complete path
7158 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7159 elif test "x$target" = "x$host"; then
7160 # We can use an host tool
7161 LIPO_FOR_TARGET='$(LIPO)'
7162 echo "$ac_t""host tool" 1>&6
7163 else
7164 # We need a cross tool
7165 echo "$ac_t""pre-installed" 1>&6
7168 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
7169 echo "configure:7170: checking where to find the target nm" >&5
7170 if test "x${build}" != "x${host}" ; then
7171 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7172 # We already found the complete path
7173 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7174 else
7175 # Canadian cross, just use what we found
7176 echo "$ac_t""pre-installed" 1>&6
7178 else
7179 ok=yes
7180 case " ${configdirs} " in
7181 *" binutils "*) ;;
7182 *) ok=no ;;
7183 esac
7185 if test $ok = yes; then
7186 # An in-tree tool is available and we can use it
7187 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7188 echo "$ac_t""just compiled" 1>&6
7189 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7190 # We already found the complete path
7191 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7192 elif test "x$target" = "x$host"; then
7193 # We can use an host tool
7194 NM_FOR_TARGET='$(NM)'
7195 echo "$ac_t""host tool" 1>&6
7196 else
7197 # We need a cross tool
7198 echo "$ac_t""pre-installed" 1>&6
7201 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7202 echo "configure:7203: checking where to find the target objdump" >&5
7203 if test "x${build}" != "x${host}" ; then
7204 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7205 # We already found the complete path
7206 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7207 else
7208 # Canadian cross, just use what we found
7209 echo "$ac_t""pre-installed" 1>&6
7211 else
7212 ok=yes
7213 case " ${configdirs} " in
7214 *" binutils "*) ;;
7215 *) ok=no ;;
7216 esac
7218 if test $ok = yes; then
7219 # An in-tree tool is available and we can use it
7220 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
7221 echo "$ac_t""just compiled" 1>&6
7222 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7223 # We already found the complete path
7224 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7225 elif test "x$target" = "x$host"; then
7226 # We can use an host tool
7227 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
7228 echo "$ac_t""host tool" 1>&6
7229 else
7230 # We need a cross tool
7231 echo "$ac_t""pre-installed" 1>&6
7234 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7235 echo "configure:7236: checking where to find the target ranlib" >&5
7236 if test "x${build}" != "x${host}" ; then
7237 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7238 # We already found the complete path
7239 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7240 else
7241 # Canadian cross, just use what we found
7242 echo "$ac_t""pre-installed" 1>&6
7244 else
7245 ok=yes
7246 case " ${configdirs} " in
7247 *" binutils "*) ;;
7248 *) ok=no ;;
7249 esac
7251 if test $ok = yes; then
7252 # An in-tree tool is available and we can use it
7253 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7254 echo "$ac_t""just compiled" 1>&6
7255 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7256 # We already found the complete path
7257 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7258 elif test "x$target" = "x$host"; then
7259 # We can use an host tool
7260 RANLIB_FOR_TARGET='$(RANLIB)'
7261 echo "$ac_t""host tool" 1>&6
7262 else
7263 # We need a cross tool
7264 echo "$ac_t""pre-installed" 1>&6
7267 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7268 echo "configure:7269: checking where to find the target strip" >&5
7269 if test "x${build}" != "x${host}" ; then
7270 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7271 # We already found the complete path
7272 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7273 else
7274 # Canadian cross, just use what we found
7275 echo "$ac_t""pre-installed" 1>&6
7277 else
7278 ok=yes
7279 case " ${configdirs} " in
7280 *" binutils "*) ;;
7281 *) ok=no ;;
7282 esac
7284 if test $ok = yes; then
7285 # An in-tree tool is available and we can use it
7286 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7287 echo "$ac_t""just compiled" 1>&6
7288 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7289 # We already found the complete path
7290 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7291 elif test "x$target" = "x$host"; then
7292 # We can use an host tool
7293 STRIP_FOR_TARGET='$(STRIP)'
7294 echo "$ac_t""host tool" 1>&6
7295 else
7296 # We need a cross tool
7297 echo "$ac_t""pre-installed" 1>&6
7300 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7301 echo "configure:7302: checking where to find the target windres" >&5
7302 if test "x${build}" != "x${host}" ; then
7303 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7304 # We already found the complete path
7305 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7306 else
7307 # Canadian cross, just use what we found
7308 echo "$ac_t""pre-installed" 1>&6
7310 else
7311 ok=yes
7312 case " ${configdirs} " in
7313 *" binutils "*) ;;
7314 *) ok=no ;;
7315 esac
7317 if test $ok = yes; then
7318 # An in-tree tool is available and we can use it
7319 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7320 echo "$ac_t""just compiled" 1>&6
7321 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7322 # We already found the complete path
7323 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7324 elif test "x$target" = "x$host"; then
7325 # We can use an host tool
7326 WINDRES_FOR_TARGET='$(WINDRES)'
7327 echo "$ac_t""host tool" 1>&6
7328 else
7329 # We need a cross tool
7330 echo "$ac_t""pre-installed" 1>&6
7337 # Certain tools may need extra flags.
7338 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7339 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7340 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7342 # When building target libraries, except in a Canadian cross, we use
7343 # the same toolchain as the compiler we just built.
7344 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7345 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7346 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7347 if test $host = $build; then
7348 case " $configdirs " in
7349 *" gcc "*)
7350 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7351 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7352 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7354 esac
7361 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7362 echo "configure:7363: checking whether to enable maintainer-specific portions of Makefiles" >&5
7363 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7364 if test "${enable_maintainer_mode+set}" = set; then
7365 enableval="$enable_maintainer_mode"
7366 USE_MAINTAINER_MODE=$enableval
7367 else
7368 USE_MAINTAINER_MODE=no
7371 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7374 if test "$USE_MAINTAINER_MODE" = yes; then
7375 MAINTAINER_MODE_TRUE=
7376 MAINTAINER_MODE_FALSE='#'
7377 else
7378 MAINTAINER_MODE_TRUE='#'
7379 MAINTAINER_MODE_FALSE=
7381 MAINT=$MAINTAINER_MODE_TRUE
7383 # ---------------------
7384 # GCC bootstrap support
7385 # ---------------------
7387 # Stage specific cflags for build.
7388 stage1_cflags="-g"
7389 case $build in
7390 vax-*-*)
7391 case ${GCC} in
7392 yes) stage1_cflags="-g -Wa,-J" ;;
7393 *) stage1_cflags="-g -J" ;;
7394 esac ;;
7395 powerpc-*-darwin*)
7396 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7397 # sources; use -no-cpp-precomp to get to GNU cpp.
7398 # Apple's GCC has bugs in designated initializer handling, so disable
7399 # that too.
7400 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7402 esac
7404 # LLVM LOCAL begin - LLVM uses inlined functions
7405 if false ; then
7406 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7407 if test "$GCC" = yes; then
7408 saved_CFLAGS="$CFLAGS"
7410 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
7411 CFLAGS="$CFLAGS -fkeep-inline-functions"
7412 echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
7413 echo "configure:7414: checking whether -fkeep-inline-functions is supported" >&5
7414 cat > conftest.$ac_ext <<EOF
7415 #line 7416 "configure"
7416 #include "confdefs.h"
7418 #if (__GNUC__ < 3) \
7419 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
7420 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
7421 #error http://gcc.gnu.org/PR29382
7422 #endif
7424 int main() {
7426 ; return 0; }
7428 if { (eval echo configure:7429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7429 rm -rf conftest*
7430 echo "$ac_t""yes" 1>&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
7431 else
7432 echo "configure: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7434 rm -rf conftest*
7435 echo "$ac_t""no" 1>&6
7437 rm -f conftest*
7439 CFLAGS="$saved_CFLAGS"
7442 # LLVM LOCAL end - LLVM uses inlined functions.
7446 # Enable --enable-checking in stage1 of the compiler.
7447 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
7448 if test "${enable_stage1_checking+set}" = set; then
7449 enableval="$enable_stage1_checking"
7450 stage1_checking=--enable-checking=${enable_stage1_checking}
7451 else
7452 if test "x$enable_checking" = xno; then
7453 # LLVM LOCAL begin - don't enable checking when we meant to disable it
7454 stage1_checking=--disable-checking
7455 # LLVM LOCAL end - don't enable checking when we meant to disable it
7456 else
7457 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
7463 # Enable -Werror in bootstrap stage2 and later.
7464 # Check whether --enable-werror or --disable-werror was given.
7465 if test "${enable_werror+set}" = set; then
7466 enableval="$enable_werror"
7468 else
7469 if test -d gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
7470 enable_werror=yes
7471 else
7472 enable_werror=no
7476 case ${enable_werror} in
7477 yes) stage2_werror_flag="--enable-werror-always" ;;
7478 *) stage2_werror_flag="" ;;
7479 esac
7482 # Flags needed to enable html installing and building
7483 # Check whether --with-datarootdir or --without-datarootdir was given.
7484 if test "${with_datarootdir+set}" = set; then
7485 withval="$with_datarootdir"
7486 datarootdir="\${prefix}/${withval}"
7487 else
7488 datarootdir="\${prefix}/share"
7492 # Check whether --with-docdir or --without-docdir was given.
7493 if test "${with_docdir+set}" = set; then
7494 withval="$with_docdir"
7495 docdir="\${prefix}/${withval}"
7496 else
7497 docdir="\${datarootdir}/doc"
7501 # Check whether --with-htmldir or --without-htmldir was given.
7502 if test "${with_htmldir+set}" = set; then
7503 withval="$with_htmldir"
7504 htmldir="\${prefix}/${withval}"
7505 else
7506 htmldir="\${docdir}"
7514 trap '' 1 2 15
7515 cat > confcache <<\EOF
7516 # This file is a shell script that caches the results of configure
7517 # tests run on this system so they can be shared between configure
7518 # scripts and configure runs. It is not useful on other systems.
7519 # If it contains results you don't want to keep, you may remove or edit it.
7521 # By default, configure uses ./config.cache as the cache file,
7522 # creating it if it does not exist already. You can give configure
7523 # the --cache-file=FILE option to use a different cache file; that is
7524 # what configure does when it calls configure scripts in
7525 # subdirectories, so they share the cache.
7526 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7527 # config.status only pays attention to the cache file if you give it the
7528 # --recheck option to rerun configure.
7531 # The following way of writing the cache mishandles newlines in values,
7532 # but we know of no workaround that is simple, portable, and efficient.
7533 # So, don't put newlines in cache variables' values.
7534 # Ultrix sh set writes to stderr and can't be redirected directly,
7535 # and sets the high bit in the cache file unless we assign to the vars.
7536 (set) 2>&1 |
7537 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7538 *ac_space=\ *)
7539 # `set' does not quote correctly, so add quotes (double-quote substitution
7540 # turns \\\\ into \\, and sed turns \\ into \).
7541 sed -n \
7542 -e "s/'/'\\\\''/g" \
7543 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7546 # `set' quotes correctly as required by POSIX, so do not add quotes.
7547 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7549 esac >> confcache
7550 if cmp -s $cache_file confcache; then
7552 else
7553 if test -w $cache_file; then
7554 echo "updating cache $cache_file"
7555 cat confcache > $cache_file
7556 else
7557 echo "not updating unwritable cache $cache_file"
7560 rm -f confcache
7562 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7564 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7565 # Let make expand exec_prefix.
7566 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7568 # Any assignment to VPATH causes Sun make to only execute
7569 # the first set of double-colon rules, so remove it if not needed.
7570 # If there is a colon in the path, we need to keep it.
7571 if test "x$srcdir" = x.; then
7572 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7575 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7577 # Transform confdefs.h into DEFS.
7578 # Protect against shell expansion while executing Makefile rules.
7579 # Protect against Makefile macro expansion.
7580 cat > conftest.defs <<\EOF
7581 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7582 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7583 s%\[%\\&%g
7584 s%\]%\\&%g
7585 s%\$%$$%g
7587 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7588 rm -f conftest.defs
7591 # Without the "./", some shells look in PATH for config.status.
7592 : ${CONFIG_STATUS=./config.status}
7594 echo creating $CONFIG_STATUS
7595 rm -f $CONFIG_STATUS
7596 cat > $CONFIG_STATUS <<EOF
7597 #! /bin/sh
7598 # Generated automatically by configure.
7599 # Run this file to recreate the current configuration.
7600 # This directory was configured as follows,
7601 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7603 # $0 $ac_configure_args
7605 # Compiler output produced by configure, useful for debugging
7606 # configure, is in ./config.log if it exists.
7608 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7609 for ac_option
7611 case "\$ac_option" in
7612 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7613 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7614 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7615 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7616 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7617 exit 0 ;;
7618 -help | --help | --hel | --he | --h)
7619 echo "\$ac_cs_usage"; exit 0 ;;
7620 *) echo "\$ac_cs_usage"; exit 1 ;;
7621 esac
7622 done
7624 ac_given_srcdir=$srcdir
7625 ac_given_INSTALL="$INSTALL"
7627 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7629 cat >> $CONFIG_STATUS <<EOF
7631 # Protect against being on the right side of a sed subst in config.status.
7632 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7633 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7634 $ac_vpsub
7635 $extrasub
7636 s%@SHELL@%$SHELL%g
7637 s%@CFLAGS@%$CFLAGS%g
7638 s%@CPPFLAGS@%$CPPFLAGS%g
7639 s%@CXXFLAGS@%$CXXFLAGS%g
7640 s%@FFLAGS@%$FFLAGS%g
7641 s%@DEFS@%$DEFS%g
7642 s%@LDFLAGS@%$LDFLAGS%g
7643 s%@LIBS@%$LIBS%g
7644 s%@exec_prefix@%$exec_prefix%g
7645 s%@prefix@%$prefix%g
7646 s%@program_transform_name@%$program_transform_name%g
7647 s%@bindir@%$bindir%g
7648 s%@sbindir@%$sbindir%g
7649 s%@libexecdir@%$libexecdir%g
7650 s%@datadir@%$datadir%g
7651 s%@sysconfdir@%$sysconfdir%g
7652 s%@sharedstatedir@%$sharedstatedir%g
7653 s%@localstatedir@%$localstatedir%g
7654 s%@libdir@%$libdir%g
7655 s%@includedir@%$includedir%g
7656 s%@oldincludedir@%$oldincludedir%g
7657 s%@infodir@%$infodir%g
7658 s%@mandir@%$mandir%g
7659 s%@host@%$host%g
7660 s%@host_alias@%$host_alias%g
7661 s%@host_cpu@%$host_cpu%g
7662 s%@host_vendor@%$host_vendor%g
7663 s%@host_os@%$host_os%g
7664 s%@target@%$target%g
7665 s%@target_alias@%$target_alias%g
7666 s%@target_cpu@%$target_cpu%g
7667 s%@target_vendor@%$target_vendor%g
7668 s%@target_os@%$target_os%g
7669 s%@build@%$build%g
7670 s%@build_alias@%$build_alias%g
7671 s%@build_cpu@%$build_cpu%g
7672 s%@build_vendor@%$build_vendor%g
7673 s%@build_os@%$build_os%g
7674 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7675 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7676 s%@INSTALL_DATA@%$INSTALL_DATA%g
7677 s%@LN@%$LN%g
7678 s%@LN_S@%$LN_S%g
7679 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7680 s%@build_libsubdir@%$build_libsubdir%g
7681 s%@build_subdir@%$build_subdir%g
7682 s%@host_subdir@%$host_subdir%g
7683 s%@target_subdir@%$target_subdir%g
7684 s%@CC@%$CC%g
7685 s%@GNATBIND@%$GNATBIND%g
7686 s%@do_compare@%$do_compare%g
7687 s%@gmplibs@%$gmplibs%g
7688 s%@gmpinc@%$gmpinc%g
7689 s%@stage1_languages@%$stage1_languages%g
7690 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7691 /@serialization_dependencies@/r $serialization_dependencies
7692 s%@serialization_dependencies@%%g
7693 /@host_makefile_frag@/r $host_makefile_frag
7694 s%@host_makefile_frag@%%g
7695 /@target_makefile_frag@/r $target_makefile_frag
7696 s%@target_makefile_frag@%%g
7697 /@alphaieee_frag@/r $alphaieee_frag
7698 s%@alphaieee_frag@%%g
7699 /@ospace_frag@/r $ospace_frag
7700 s%@ospace_frag@%%g
7701 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7702 s%@tooldir@%$tooldir%g
7703 s%@build_tooldir@%$build_tooldir%g
7704 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7705 s%@GDB_TK@%$GDB_TK%g
7706 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7707 s%@build_configargs@%$build_configargs%g
7708 s%@build_configdirs@%$build_configdirs%g
7709 s%@host_configargs@%$host_configargs%g
7710 s%@configdirs@%$configdirs%g
7711 s%@target_configargs@%$target_configargs%g
7712 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7713 s%@config_shell@%$config_shell%g
7714 s%@YACC@%$YACC%g
7715 s%@BISON@%$BISON%g
7716 s%@M4@%$M4%g
7717 s%@LEX@%$LEX%g
7718 s%@FLEX@%$FLEX%g
7719 s%@MAKEINFO@%$MAKEINFO%g
7720 s%@EXPECT@%$EXPECT%g
7721 s%@RUNTEST@%$RUNTEST%g
7722 s%@AR@%$AR%g
7723 s%@AS@%$AS%g
7724 s%@DLLTOOL@%$DLLTOOL%g
7725 s%@LD@%$LD%g
7726 s%@LIPO@%$LIPO%g
7727 s%@NM@%$NM%g
7728 s%@RANLIB@%$RANLIB%g
7729 s%@STRIP@%$STRIP%g
7730 s%@WINDRES@%$WINDRES%g
7731 s%@OBJCOPY@%$OBJCOPY%g
7732 s%@OBJDUMP@%$OBJDUMP%g
7733 s%@CXX@%$CXX%g
7734 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7735 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7736 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7737 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7738 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7739 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7740 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7741 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7742 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7743 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7744 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7745 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7746 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7747 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7748 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7749 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7750 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7751 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7752 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7753 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7754 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7755 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7756 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7757 s%@MAINT@%$MAINT%g
7758 s%@stage1_cflags@%$stage1_cflags%g
7759 s%@stage1_checking@%$stage1_checking%g
7760 s%@stage2_werror_flag@%$stage2_werror_flag%g
7761 s%@datarootdir@%$datarootdir%g
7762 s%@docdir@%$docdir%g
7763 s%@htmldir@%$htmldir%g
7765 CEOF
7768 cat >> $CONFIG_STATUS <<\EOF
7770 # Split the substitutions into bite-sized pieces for seds with
7771 # small command number limits, like on Digital OSF/1 and HP-UX.
7772 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7773 ac_file=1 # Number of current file.
7774 ac_beg=1 # First line for current file.
7775 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7776 ac_more_lines=:
7777 ac_sed_cmds=""
7778 while $ac_more_lines; do
7779 if test $ac_beg -gt 1; then
7780 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7781 else
7782 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7784 if test ! -s conftest.s$ac_file; then
7785 ac_more_lines=false
7786 rm -f conftest.s$ac_file
7787 else
7788 if test -z "$ac_sed_cmds"; then
7789 ac_sed_cmds="sed -f conftest.s$ac_file"
7790 else
7791 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7793 ac_file=`expr $ac_file + 1`
7794 ac_beg=$ac_end
7795 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7797 done
7798 if test -z "$ac_sed_cmds"; then
7799 ac_sed_cmds=cat
7803 cat >> $CONFIG_STATUS <<EOF
7805 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7807 cat >> $CONFIG_STATUS <<\EOF
7808 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7810 case "$ac_file" in
7811 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7812 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7813 *) ac_file_in="${ac_file}.in" ;;
7814 esac
7816 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7818 # Remove last slash and all that follows it. Not all systems have dirname.
7819 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7820 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7821 # The file is in a subdirectory.
7822 test ! -d "$ac_dir" && mkdir "$ac_dir"
7823 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7824 # A "../" for each directory in $ac_dir_suffix.
7825 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7826 else
7827 ac_dir_suffix= ac_dots=
7830 case "$ac_given_srcdir" in
7831 .) srcdir=.
7832 if test -z "$ac_dots"; then top_srcdir=.
7833 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7834 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7835 *) # Relative path.
7836 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7837 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7838 esac
7840 case "$ac_given_INSTALL" in
7841 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7842 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7843 esac
7845 echo creating "$ac_file"
7846 rm -f "$ac_file"
7847 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7848 case "$ac_file" in
7849 *Makefile*) ac_comsub="1i\\
7850 # $configure_input" ;;
7851 *) ac_comsub= ;;
7852 esac
7854 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7855 sed -e "$ac_comsub
7856 s%@configure_input@%$configure_input%g
7857 s%@srcdir@%$srcdir%g
7858 s%@top_srcdir@%$top_srcdir%g
7859 s%@INSTALL@%$INSTALL%g
7860 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7861 fi; done
7862 rm -f conftest.s*
7865 cat >> $CONFIG_STATUS <<EOF
7868 cat >> $CONFIG_STATUS <<\EOF
7870 exit 0
7872 chmod +x $CONFIG_STATUS
7873 rm -fr confdefs* $ac_clean_files
7874 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1