PR c++/29886
[official-gcc.git] / configure
blob7e6e74c0e32f932096ffa5fd0f283196f12c85e7
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-build-libsubdir=[DIR] Directory where to find libraries for build system"
16 ac_help="$ac_help
17 --enable-libada Builds libada directory"
18 ac_help="$ac_help
19 --enable-libssp Builds libssp directory"
20 ac_help="$ac_help
21 --with-mpfr-dir=PATH This option has been REMOVED"
22 ac_help="$ac_help
23 --with-mpfr=PATH Specify prefix directory for installed MPFR package
24 Equivalent to --with-mpfr-include=PATH/include
25 plus --with-mpfr-lib=PATH/lib"
26 ac_help="$ac_help
27 --with-mpfr-include=PATH
28 Specify directory for installed MPFR include files"
29 ac_help="$ac_help
30 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library"
31 ac_help="$ac_help
32 --with-gmp-dir=PATH This option has been REMOVED"
33 ac_help="$ac_help
34 --with-gmp=PATH Specify prefix directory for the installed GMP package
35 Equivalent to --with-gmp-include=PATH/include
36 plus --with-gmp-lib=PATH/lib"
37 ac_help="$ac_help
38 --with-gmp-include=PATH Specify directory for installed GMP include files"
39 ac_help="$ac_help
40 --with-gmp-lib=PATH Specify the directory for the installed GMP library"
41 ac_help="$ac_help
42 --enable-objc-gc enable the use of Boehm's garbage collector with
43 the GNU Objective-C runtime."
44 ac_help="$ac_help
45 --with-build-sysroot=sysroot
46 use sysroot as the system root during the build"
47 ac_help="$ac_help
48 --enable-bootstrap Enable bootstrapping [yes if native build]"
49 ac_help="$ac_help
50 --enable-serial-[{host,target,build}-]configure
51 Force sequential configuration of
52 sub-packages for the host, target or build
53 machine, or all sub-packages"
54 ac_help="$ac_help
55 --with-build-time-tools=path
56 use given path to find target tools during the build"
57 ac_help="$ac_help
58 --enable-maintainer-mode enable make rules and dependencies not useful
59 (and sometimes confusing) to the casual installer"
60 ac_help="$ac_help
61 --enable-werror enable -Werror in bootstrap stage2 and later"
62 ac_help="$ac_help
63 --with-datarootdir Use datarootdir as the data root directory."
64 ac_help="$ac_help
65 --with-docdir Install documentation in this directory."
66 ac_help="$ac_help
67 --with-htmldir Install html in this directory."
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
72 build=NONE
73 cache_file=./config.cache
74 exec_prefix=NONE
75 host=NONE
76 no_create=
77 nonopt=NONE
78 no_recursion=
79 prefix=NONE
80 program_prefix=NONE
81 program_suffix=NONE
82 program_transform_name=s,x,x,
83 silent=
84 site=
85 srcdir=
86 target=NONE
87 verbose=
88 x_includes=NONE
89 x_libraries=NONE
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
104 subdirs=
105 MFLAGS= MAKEFLAGS=
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
108 ac_max_here_lines=12
110 ac_prev=
111 for ac_option
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
117 ac_prev=
118 continue
121 case "$ac_option" in
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 *) ac_optarg= ;;
124 esac
126 # Accept the important Cygnus configure options, so we can diagnose typos.
128 case "$ac_option" in
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 ac_prev=bindir ;;
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
136 ac_prev=build ;;
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 ac_prev=datadir ;;
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 | --da=*)
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 case "$ac_option" in
170 *=*) ;;
171 *) ac_optarg=yes ;;
172 esac
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
186 with_gas=yes ;;
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
191 cat << EOF
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
194 Configuration:
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
202 [$ac_default_prefix]
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 [same as prefix]
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
209 [PREFIX/share]
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 [PREFIX/com]
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
225 cat << EOF
226 Host type:
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
241 exit 0 ;;
243 -host | --host | --hos | --ho)
244 ac_prev=host ;;
245 -host=* | --host=* | --hos=* | --ho=*)
246 host="$ac_optarg" ;;
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 ac_prev=infodir ;;
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
261 ac_prev=libdir ;;
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 ac_prev=mandir ;;
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
286 -nfp | --nfp | --nf)
287 # Obsolete; use --without-fp.
288 with_fp=no ;;
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 | --no-cr | --no-c)
292 no_create=yes ;;
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 no_recursion=yes ;;
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 ac_prev=prefix ;;
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
345 silent=yes ;;
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 ac_prev=sbindir ;;
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 | --sbi=* | --sb=*)
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
356 | --sha | --sh)
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 | --sha=* | --sh=*)
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
365 ac_prev=site ;;
366 -site=* | --site=* | --sit=*)
367 site="$ac_optarg" ;;
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 ac_prev=srcdir ;;
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
381 -target | --target | --targe | --targ | --tar | --ta | --t)
382 ac_prev=target ;;
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 verbose=yes ;;
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.13"
391 exit 0 ;;
393 -with-* | --with-*)
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 case "$ac_option" in
401 *=*) ;;
402 *) ac_optarg=yes ;;
403 esac
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
415 --x)
416 # Obsolete; use --with-x.
417 with_x=yes ;;
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443 nonopt="$ac_option"
446 esac
447 done
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
456 # 0 standard input
457 # 1 file creation
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
464 exec 6>/dev/null
465 else
466 exec 6>&1
468 exec 5>./config.log
470 echo "\
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
473 " 1>&5
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
477 ac_configure_args=
478 for ac_arg
480 case "$ac_arg" in
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 esac
489 done
491 # NLS nuisances.
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 echo > confdefs.h
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=move-if-change
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
514 ac_prog=$0
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517 srcdir=$ac_confdir
518 if test ! -r $srcdir/$ac_unique_file; then
519 srcdir=..
521 else
522 ac_srcdir_defaulted=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527 else
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 else
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
544 . "$ac_site_file"
546 done
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
550 . $cache_file
551 else
552 echo "creating cache $cache_file"
553 > $cache_file
556 ac_ext=c
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
563 ac_exeext=
564 ac_objext=o
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568 ac_n= ac_c='
569 ' ac_t=' '
570 else
571 ac_n=-n ac_c= ac_t=
573 else
574 ac_n= ac_c='\c' ac_t=
579 ac_aux_dir=
580 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
581 if test -f $ac_dir/install-sh; then
582 ac_aux_dir=$ac_dir
583 ac_install_sh="$ac_aux_dir/install-sh -c"
584 break
585 elif test -f $ac_dir/install.sh; then
586 ac_aux_dir=$ac_dir
587 ac_install_sh="$ac_aux_dir/install.sh -c"
588 break
590 done
591 if test -z "$ac_aux_dir"; then
592 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
594 ac_config_guess=$ac_aux_dir/config.guess
595 ac_config_sub=$ac_aux_dir/config.sub
596 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
599 # Do some error checking and defaulting for the host and target type.
600 # The inputs are:
601 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
603 # The rules are:
604 # 1. You are not allowed to specify --host, --target, and nonopt at the
605 # same time.
606 # 2. Host defaults to nonopt.
607 # 3. If nonopt is not specified, then host defaults to the current host,
608 # as determined by config.guess.
609 # 4. Target and build default to nonopt.
610 # 5. If nonopt is not specified, then target and build default to host.
612 # The aliases save the names the user supplied, while $host etc.
613 # will get canonicalized.
614 case $host---$target---$nonopt in
615 NONE---*---* | *---NONE---* | *---*---NONE) ;;
616 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
617 esac
620 # Make sure we can run config.sub.
621 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
622 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
625 echo $ac_n "checking host system type""... $ac_c" 1>&6
626 echo "configure:627: checking host system type" >&5
628 host_alias=$host
629 case "$host_alias" in
630 NONE)
631 case $nonopt in
632 NONE)
633 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
634 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
635 fi ;;
636 *) host_alias=$nonopt ;;
637 esac ;;
638 esac
640 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
641 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644 echo "$ac_t""$host" 1>&6
646 echo $ac_n "checking target system type""... $ac_c" 1>&6
647 echo "configure:648: checking target system type" >&5
649 target_alias=$target
650 case "$target_alias" in
651 NONE)
652 case $nonopt in
653 NONE) target_alias=$host_alias ;;
654 *) target_alias=$nonopt ;;
655 esac ;;
656 esac
658 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
659 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
660 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
661 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
662 echo "$ac_t""$target" 1>&6
664 echo $ac_n "checking build system type""... $ac_c" 1>&6
665 echo "configure:666: checking build system type" >&5
667 build_alias=$build
668 case "$build_alias" in
669 NONE)
670 case $nonopt in
671 NONE) build_alias=$host_alias ;;
672 *) build_alias=$nonopt ;;
673 esac ;;
674 esac
676 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
677 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
678 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
679 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
680 echo "$ac_t""$build" 1>&6
682 test "$host_alias" != "$target_alias" &&
683 test "$program_prefix$program_suffix$program_transform_name" = \
684 NONENONEs,x,x, &&
685 program_prefix=${target_alias}-
687 if test "$program_transform_name" = s,x,x,; then
688 program_transform_name=
689 else
690 # Double any \ or $. echo might interpret backslashes.
691 cat <<\EOF_SED > conftestsed
692 s,\\,\\\\,g; s,\$,$$,g
693 EOF_SED
694 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
695 rm -f conftestsed
697 test "$program_prefix" != NONE &&
698 program_transform_name="s,^,${program_prefix},; $program_transform_name"
699 # Use a double $ so make ignores it.
700 test "$program_suffix" != NONE &&
701 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
703 # sed with no file args requires a program.
704 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
707 # Get 'install' or 'install-sh' and its variants.
708 # Find a good install program. We prefer a C program (faster),
709 # so one script is as good as another. But avoid the broken or
710 # incompatible versions:
711 # SysV /etc/install, /usr/sbin/install
712 # SunOS /usr/etc/install
713 # IRIX /sbin/install
714 # AIX /bin/install
715 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
716 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
717 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
718 # ./install, which can be erroneously created by make from ./install.sh.
719 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
720 echo "configure:721: checking for a BSD compatible install" >&5
721 if test -z "$INSTALL"; then
722 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
723 echo $ac_n "(cached) $ac_c" 1>&6
724 else
725 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
726 for ac_dir in $PATH; do
727 # Account for people who put trailing slashes in PATH elements.
728 case "$ac_dir/" in
729 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
731 # OSF1 and SCO ODT 3.0 have their own names for install.
732 # Don't use installbsd from OSF since it installs stuff as root
733 # by default.
734 for ac_prog in ginstall scoinst install; do
735 if test -f $ac_dir/$ac_prog; then
736 if test $ac_prog = install &&
737 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
738 # AIX install. It has an incompatible calling convention.
740 else
741 ac_cv_path_install="$ac_dir/$ac_prog -c"
742 break 2
745 done
747 esac
748 done
749 IFS="$ac_save_IFS"
752 if test "${ac_cv_path_install+set}" = set; then
753 INSTALL="$ac_cv_path_install"
754 else
755 # As a last resort, use the slow shell script. We don't cache a
756 # path for INSTALL within a source directory, because that will
757 # break other packages using the cache if that directory is
758 # removed, or if the path is relative.
759 INSTALL="$ac_install_sh"
762 echo "$ac_t""$INSTALL" 1>&6
764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
765 # It thinks the first close brace ends the variable substitution.
766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
772 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
773 echo "configure:774: checking whether ln works" >&5
774 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
776 else
777 rm -f conftestdata_t
778 echo >conftestdata_f
779 if ln conftestdata_f conftestdata_t 2>/dev/null
780 then
781 acx_cv_prog_LN=ln
782 else
783 acx_cv_prog_LN=no
785 rm -f conftestdata_f conftestdata_t
788 if test $acx_cv_prog_LN = no; then
789 LN="cp"
790 echo "$ac_t""no, using $LN" 1>&6
791 else
792 LN="$acx_cv_prog_LN"
793 echo "$ac_t""yes" 1>&6
796 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
797 echo "configure:798: checking whether ln -s works" >&5
798 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
800 else
801 rm -f conftestdata
802 if ln -s X conftestdata 2>/dev/null
803 then
804 rm -f conftestdata
805 ac_cv_prog_LN_S="ln -s"
806 else
807 ac_cv_prog_LN_S=ln
810 LN_S="$ac_cv_prog_LN_S"
811 if test "$ac_cv_prog_LN_S" = "ln -s"; then
812 echo "$ac_t""yes" 1>&6
813 else
814 echo "$ac_t""no" 1>&6
818 ### we might need to use some other shell than /bin/sh for running subshells
819 ### If we are on Windows, search for the shell. This will permit people
820 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
821 ### without also having to set CONFIG_SHELL. This code will work when
822 ### using bash, which sets OSTYPE.
823 case "${OSTYPE}" in
824 *win32*)
825 if test x${CONFIG_SHELL} = x ; then
826 if test ! -f /bin/sh ; then
827 if test x${SHELL} != x && test -f ${SHELL} ; then
828 CONFIG_SHELL=${SHELL}
829 export CONFIG_SHELL
830 else
831 for prog in sh sh.exe bash bash.exe; do
832 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
833 for dir in $PATH; do
834 test -z "$dir" && dir=.
835 if test -f $dir/$prog; then
836 CONFIG_SHELL=$dir/$prog
837 export CONFIG_SHELL
838 break
840 done
841 IFS="$save_ifs"
842 test -n "${CONFIG_SHELL}" && break
843 done
848 esac
850 config_shell=${CONFIG_SHELL-/bin/sh}
852 progname=$0
853 # if PWD already has a value, it is probably wrong.
854 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
856 # Export original configure arguments for use by sub-configures. These
857 # will be expanded by make, so quote '$'.
858 tmp="$progname $@"
859 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
860 $tmp
861 EOF_SED
862 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
863 rm -f conftestsed.out
866 moveifchange=${srcdir}/move-if-change
868 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
870 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
871 # a relative path.
872 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
873 INSTALL="${srcpwd}/install-sh -c"
876 # Set srcdir to "." if that's what it is.
877 # This is important for multilib support.
878 pwd=`${PWDCMD-pwd}`
879 if test "${pwd}" = "${srcpwd}" ; then
880 srcdir=.
883 topsrcdir=$srcpwd
885 extra_host_args=
887 ### To add a new directory to the tree, first choose whether it is a target
888 ### or a host dependent tool. Then put it into the appropriate list
889 ### (library or tools, host or target), doing a dependency sort.
891 # Subdirs will be configured in the order listed in build_configdirs,
892 # configdirs, or target_configdirs; see the serialization section below.
894 # Dependency sorting is only needed when *configuration* must be done in
895 # a particular order. In all cases a dependency should be specified in
896 # the Makefile, whether or not it's implicitly specified here.
898 # Double entries in build_configdirs, configdirs, or target_configdirs may
899 # cause circular dependencies and break everything horribly.
901 # these library is used by various programs built for the build
902 # environment
904 build_libs="build-libiberty"
906 # these tools are built for the build environment
907 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
909 # these libraries are used by various programs built for the host environment
911 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
913 # these tools are built for the host environment
914 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
915 # know that we are building the simulator.
916 # binutils, gas and ld appear in that order because it makes sense to run
917 # "make check" in that particular order.
918 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
920 # libgcj represents the runtime libraries only used by gcj.
921 libgcj="target-libffi \
922 target-zlib \
923 target-qthreads \
924 target-libjava"
926 # these libraries are built for the target environment, and are built after
927 # the host libraries and the host tools (which may be a cross compiler)
929 target_libraries="target-libiberty \
930 target-libgloss \
931 target-newlib \
932 target-libstdc++-v3 \
933 target-libmudflap \
934 target-libssp \
935 target-libgfortran \
936 target-boehm-gc \
937 ${libgcj} \
938 target-libobjc \
939 target-libada \
940 target-libgomp"
942 # these tools are built using the target libraries, and are intended to
943 # run only in the target environment
945 # note: any program that *uses* libraries that are in the "target_libraries"
946 # list belongs in this list. those programs are also very likely
947 # candidates for the "native_only" list which follows
949 target_tools="target-examples target-groff target-gperf target-rda"
951 ################################################################################
953 ## All tools belong in one of the four categories, and are assigned above
954 ## We assign ${configdirs} this way to remove all embedded newlines. This
955 ## is important because configure will choke if they ever get through.
956 ## ${configdirs} is directories we build using the host tools.
957 ## ${target_configdirs} is directories we build using the target tools.
958 configdirs=`echo ${host_libs} ${host_tools}`
959 target_configdirs=`echo ${target_libraries} ${target_tools}`
960 build_configdirs=`echo ${build_libs} ${build_tools}`
962 ################################################################################
964 srcname="gnu development package"
966 # This gets set non-empty for some net releases of packages.
967 appdirs=""
969 # Define is_cross_compiler to save on calls to 'test'.
970 is_cross_compiler=
971 if test x"${host}" = x"${target}" ; then
972 is_cross_compiler=no
973 else
974 is_cross_compiler=yes
977 # Find the build and target subdir names.
978 case ${build_alias} in
979 "") build_noncanonical=${build} ;;
980 *) build_noncanonical=${build_alias} ;;
981 esac
983 case ${host_alias} in
984 "") host_noncanonical=${build_noncanonical} ;;
985 *) host_noncanonical=${host_alias} ;;
986 esac
988 case ${target_alias} in
989 "") target_noncanonical=${host_noncanonical} ;;
990 *) target_noncanonical=${target_alias} ;;
991 esac
994 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
995 # have matching libraries, they should use host libraries: Makefile.tpl
996 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
997 # However, they still use the build modules, because the corresponding
998 # host modules (e.g. bison) are only built for the host when bootstrap
999 # finishes. So:
1000 # - build_subdir is where we find build modules, and never changes.
1001 # - build_libsubdir is where we find build libraries, and can be overridden.
1003 # Prefix 'build-' so this never conflicts with target_subdir.
1004 build_subdir="build-${build_noncanonical}"
1005 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1006 if test "${with_build_libsubdir+set}" = set; then
1007 withval="$with_build_libsubdir"
1008 build_libsubdir="$withval"
1009 else
1010 build_libsubdir="$build_subdir"
1013 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1014 if ( test $srcdir = . && test -d gcc ) \
1015 || test -d $srcdir/../host-${host_noncanonical}; then
1016 host_subdir="host-${host_noncanonical}"
1017 else
1018 host_subdir=.
1020 # No prefix.
1021 target_subdir=${target_noncanonical}
1024 # Skipdirs are removed silently.
1025 skipdirs=
1026 # Noconfigdirs are removed loudly.
1027 noconfigdirs=""
1029 use_gnu_ld=
1030 # Make sure we don't let GNU ld be added if we didn't want it.
1031 if test x$with_gnu_ld = xno ; then
1032 use_gnu_ld=no
1033 noconfigdirs="$noconfigdirs ld"
1036 use_gnu_as=
1037 # Make sure we don't let GNU as be added if we didn't want it.
1038 if test x$with_gnu_as = xno ; then
1039 use_gnu_as=no
1040 noconfigdirs="$noconfigdirs gas"
1043 # some tools are so dependent upon X11 that if we're not building with X,
1044 # it's not even worth trying to configure, much less build, that tool.
1046 case ${with_x} in
1047 yes | "") ;; # the default value for this tree is that X11 is available
1049 skipdirs="${skipdirs} tk itcl libgui"
1050 # We won't be able to build gdbtk without X.
1051 enable_gdbtk=no
1053 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1054 esac
1056 # Some tools are only suitable for building in a "native" situation.
1057 # Remove these if host!=target.
1058 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1060 # Similarly, some are only suitable for cross toolchains.
1061 # Remove these if host=target.
1062 cross_only="target-libgloss target-newlib target-opcodes"
1064 case $is_cross_compiler in
1065 no) skipdirs="${skipdirs} ${cross_only}" ;;
1066 yes) skipdirs="${skipdirs} ${native_only}" ;;
1067 esac
1069 # If both --with-headers and --with-libs are specified, default to
1070 # --without-newlib.
1071 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1072 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1073 if test x"${with_newlib}" = x ; then
1074 with_newlib=no
1078 # Recognize --with-newlib/--without-newlib.
1079 case ${with_newlib} in
1080 no) skipdirs="${skipdirs} target-newlib" ;;
1081 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1082 esac
1084 # Configure extra directories which are host specific
1086 case "${host}" in
1087 *-cygwin*)
1088 configdirs="$configdirs libtermcap" ;;
1089 esac
1091 # A target can indicate whether a language isn't supported for some reason.
1092 # Only spaces may be used in this macro; not newlines or tabs.
1093 unsupported_languages=
1095 # Remove more programs from consideration, based on the host or
1096 # target this usually means that a port of the program doesn't
1097 # exist yet.
1099 case "${host}" in
1100 hppa*64*-*-*)
1101 noconfigdirs="$noconfigdirs byacc"
1103 i[3456789]86-*-vsta)
1104 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1106 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1107 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1109 i[3456789]86-*-mingw32*)
1110 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1111 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1113 i[3456789]86-*-beos*)
1114 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1116 *-*-cygwin*)
1117 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1119 *-*-netbsd*)
1120 noconfigdirs="$noconfigdirs rcs"
1122 ppc*-*-pe)
1123 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1125 powerpc-*-beos*)
1126 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1128 esac
1131 # Check whether --enable-libada or --disable-libada was given.
1132 if test "${enable_libada+set}" = set; then
1133 enableval="$enable_libada"
1134 ENABLE_LIBADA=$enableval
1135 else
1136 ENABLE_LIBADA=yes
1139 if test "${ENABLE_LIBADA}" != "yes" ; then
1140 noconfigdirs="$noconfigdirs gnattools"
1143 # Check whether --enable-libssp or --disable-libssp was given.
1144 if test "${enable_libssp+set}" = set; then
1145 enableval="$enable_libssp"
1146 ENABLE_LIBSSP=$enableval
1147 else
1148 ENABLE_LIBSSP=yes
1152 # Save it here so that, even in case of --enable-libgcj, if the Java
1153 # front-end isn't enabled, we still get libgcj disabled.
1154 libgcj_saved=$libgcj
1155 case $enable_libgcj in
1156 yes)
1157 # If we reset it here, it won't get added to noconfigdirs in the
1158 # target-specific build rules, so it will be forcibly enabled
1159 # (unless the Java language itself isn't enabled).
1160 libgcj=
1163 # Make sure we get it printed in the list of not supported target libs.
1164 noconfigdirs="$noconfigdirs ${libgcj}"
1166 esac
1169 # Disable libmudflap on some systems.
1170 if test x$enable_libmudflap = x ; then
1171 case "${target}" in
1172 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1173 # Enable libmudflap by default in GNU and friends.
1175 *-*-freebsd*)
1176 # Enable libmudflap by default in FreeBSD.
1179 # Disable it by default everywhere else.
1180 noconfigdirs="$noconfigdirs target-libmudflap"
1182 esac
1185 # Disable libgomp on non POSIX hosted systems.
1186 if test x$enable_libgomp = x ; then
1187 # Enable libgomp by default on hosted POSIX systems.
1188 case "${target}" in
1189 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1191 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1193 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1195 *-*-darwin* | *-*-aix*)
1198 noconfigdirs="$noconfigdirs target-libgomp"
1200 esac
1204 case "${target}" in
1205 *-*-chorusos)
1206 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1208 powerpc-*-darwin*)
1209 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1210 noconfigdirs="$noconfigdirs sim target-rda"
1212 *-*-darwin*)
1213 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1214 noconfigdirs="$noconfigdirs sim target-rda"
1215 noconfigdirs="$noconfigdirs ${libgcj}"
1217 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1218 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1220 *-*-freebsd*)
1221 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1222 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1223 && test -f /usr/local/include/gmp.h; then
1224 with_gmp=/usr/local
1227 # Skip some stuff that's unsupported on some FreeBSD configurations.
1228 case "${target}" in
1229 i*86-*-*) ;;
1230 alpha*-*-*) ;;
1232 noconfigdirs="$noconfigdirs ${libgcj}"
1234 esac
1236 *-*-kaos*)
1237 # Remove unsupported stuff on all kaOS configurations.
1238 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1239 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1240 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1241 noconfigdirs="$noconfigdirs target-libgloss"
1243 *-*-netbsd*)
1244 # Skip some stuff on all NetBSD configurations.
1245 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1247 # Skip some stuff that's unsupported on some NetBSD configurations.
1248 case "${target}" in
1249 i*86-*-netbsdelf*) ;;
1250 arm*-*-netbsdelf*) ;;
1252 noconfigdirs="$noconfigdirs ${libgcj}"
1254 esac
1256 *-*-netware*)
1257 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1259 *-*-rtems*)
1260 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1262 # The tpf target doesn't support gdb yet.
1263 *-*-tpf*)
1264 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1266 *-*-uclinux*)
1267 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1269 *-*-vxworks*)
1270 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1272 alpha*-dec-osf*)
1273 # ld works, but does not support shared libraries.
1274 # newlib is not 64 bit ready. I'm not sure about fileutils.
1275 # gas doesn't generate exception information.
1276 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1278 alpha*-*-*vms*)
1279 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1281 alpha*-*-linux*)
1282 # newlib is not 64 bit ready
1283 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1285 alpha*-*-*)
1286 # newlib is not 64 bit ready
1287 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1289 am33_2.0-*-linux*)
1290 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1292 sh-*-linux*)
1293 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1295 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1296 noconfigdirs="$noconfigdirs ${libgcj}"
1297 noconfigdirs="$noconfigdirs target-examples"
1298 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1299 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1300 noconfigdirs="$noconfigdirs expect dejagnu"
1301 # the C++ libraries don't build on top of CE's C libraries
1302 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1303 noconfigdirs="$noconfigdirs target-newlib"
1304 case "${host}" in
1305 *-*-cygwin*) ;; # keep gdb and readline
1306 *) noconfigdirs="$noconfigdirs gdb readline"
1308 esac
1310 arc-*-*)
1311 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1313 arm-semi-aof )
1315 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1316 noconfigdirs="$noconfigdirs ${libgcj}"
1318 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1319 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1321 arm*-*-linux-gnueabi)
1322 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1323 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1325 arm*-*-symbianelf*)
1326 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1328 arm-*-pe*)
1329 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1331 thumb-*-coff)
1332 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1334 thumb-*-elf)
1335 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1337 thumb-*-pe)
1338 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1340 arm-*-riscix*)
1341 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1343 avr-*-*)
1344 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1346 bfin-*-*)
1347 noconfigdirs="$noconfigdirs gdb"
1348 if test x${is_cross_compiler} != xno ; then
1349 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1352 c4x-*-* | tic4x-*-*)
1353 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1355 c54x*-*-* | tic54x-*-*)
1356 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1358 cris-*-* | crisv32-*-*)
1359 unsupported_languages="$unsupported_languages java"
1360 case "${target}" in
1361 *-*-aout)
1362 unsupported_languages="$unsupported_languages fortran"
1363 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1364 *-*-elf)
1365 unsupported_languages="$unsupported_languages fortran"
1366 noconfigdirs="$noconfigdirs target-boehm-gc";;
1367 *-*-linux*)
1368 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1370 unsupported_languages="$unsupported_languages fortran"
1371 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1372 esac
1374 crx-*-*)
1375 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1377 d10v-*-*)
1378 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1380 d30v-*-*)
1381 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1383 fr30-*-elf*)
1384 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1386 frv-*-*)
1387 noconfigdirs="$noconfigdirs ${libgcj}"
1389 h8300*-*-*)
1390 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1392 h8500-*-*)
1393 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1395 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1397 hppa*64*-*-linux* | parisc*64*-*-linux*)
1398 # In this case, it's because the hppa64-linux target is for
1399 # the kernel only at this point and has no libc, and thus no
1400 # headers, crt*.o, etc., all of which are needed by these.
1401 noconfigdirs="$noconfigdirs target-zlib"
1403 parisc*-*-linux* | hppa*-*-linux*)
1405 hppa*-*-*elf* | \
1406 hppa*-*-lites* | \
1407 hppa*-*-openbsd* | \
1408 hppa*64*-*-*)
1409 noconfigdirs="$noconfigdirs ${libgcj}"
1411 hppa*-hp-hpux11*)
1412 noconfigdirs="$noconfigdirs ld shellutils"
1414 hppa*-*-*)
1415 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1416 # build on HP-UX 10.20.
1417 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1419 i960-*-*)
1420 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1422 ia64*-*-elf*)
1423 # No gdb support yet.
1424 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1426 ia64*-**-hpux*)
1427 # No gdb or ld support yet.
1428 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1430 i370-*-opened*)
1432 i[3456789]86-*-coff | i[3456789]86-*-elf)
1433 noconfigdirs="$noconfigdirs ${libgcj}"
1435 i[3456789]86-*-linux*)
1436 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1437 # not build java stuff by default.
1438 case "${target}" in
1439 *-*-*libc1*)
1440 noconfigdirs="$noconfigdirs ${libgcj}";;
1441 esac
1443 # This section makes it possible to build newlib natively on linux.
1444 # If we are using a cross compiler then don't configure newlib.
1445 if test x${is_cross_compiler} != xno ; then
1446 noconfigdirs="$noconfigdirs target-newlib"
1448 noconfigdirs="$noconfigdirs target-libgloss"
1449 # If we are not using a cross compiler, do configure newlib.
1450 # Note however, that newlib will only be configured in this situation
1451 # if the --with-newlib option has been given, because otherwise
1452 # 'target-newlib' will appear in skipdirs.
1454 i[3456789]86-*-mingw32*)
1455 target_configdirs="$target_configdirs target-winsup"
1456 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1458 *-*-cygwin*)
1459 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1460 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1461 # always build newlib if winsup directory is present.
1462 if test -d "$srcdir/winsup/cygwin"; then
1463 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1464 elif test -d "$srcdir/newlib"; then
1465 echo "Warning: winsup/cygwin is missing so newlib can't be built."
1468 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1469 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1471 i[3456789]86-*-pe)
1472 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1474 i[3456789]86-*-sco3.2v5*)
1475 # The linker does not yet know about weak symbols in COFF,
1476 # and is not configured to handle mixed ELF and COFF.
1477 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1479 i[3456789]86-*-sco*)
1480 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1482 i[3456789]86-*-solaris2*)
1483 noconfigdirs="$noconfigdirs target-libgloss"
1485 i[3456789]86-*-sysv4*)
1486 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1488 i[3456789]86-*-beos*)
1489 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1491 i[3456789]86-*-rdos*)
1492 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1494 m32r-*-*)
1495 noconfigdirs="$noconfigdirs ${libgcj}"
1497 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1498 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1500 m68k-*-elf*)
1501 noconfigdirs="$noconfigdirs ${libgcj}"
1503 m68k-*-coff*)
1504 noconfigdirs="$noconfigdirs ${libgcj}"
1506 mcore-*-pe*)
1507 # The EPOC C++ environment does not support exceptions or rtti,
1508 # and so building libstdc++-v3 tends not to always work.
1509 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1511 mmix-*-*)
1512 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1513 unsupported_languages="$unsupported_languages fortran java"
1515 mn10200-*-*)
1516 noconfigdirs="$noconfigdirs ${libgcj}"
1518 mn10300-*-*)
1519 noconfigdirs="$noconfigdirs ${libgcj}"
1521 mt-*-*)
1522 noconfigdirs="$noconfigdirs sim"
1524 powerpc-*-aix*)
1525 # copied from rs6000-*-* entry
1526 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1528 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1529 target_configdirs="$target_configdirs target-winsup"
1530 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1531 # always build newlib.
1532 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1534 # This is temporary until we can link against shared libraries
1535 powerpcle-*-solaris*)
1536 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1538 powerpc-*-beos*)
1539 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1541 powerpc-*-eabi)
1542 noconfigdirs="$noconfigdirs ${libgcj}"
1544 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1546 rs6000-*-lynxos*)
1547 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1549 rs6000-*-aix*)
1550 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1552 rs6000-*-*)
1553 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1555 m68k-apollo-*)
1556 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1558 mips*-*-irix5*)
1559 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1561 mips*-*-irix6*)
1562 # Linking libjava exceeds command-line length limits on at least
1563 # IRIX 6.2, but not on IRIX 6.5.
1564 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1565 # <oldham@codesourcery.com>
1566 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1568 mips*-*-bsd*)
1569 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1571 mips64*-*-linux*)
1572 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1574 mips*-*-linux*)
1575 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1577 mips*-*-*)
1578 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1580 romp-*-*)
1581 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1583 sh-*-* | sh64-*-*)
1584 case "${host}" in
1585 i[3456789]86-*-vsta) ;; # don't add gprof back in
1586 i[3456789]86-*-go32*) ;; # don't add gprof back in
1587 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1588 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1589 esac
1590 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1592 sparc-*-elf*)
1593 noconfigdirs="$noconfigdirs ${libgcj}"
1595 sparc64-*-elf*)
1596 noconfigdirs="$noconfigdirs ${libgcj}"
1598 sparclite-*-*)
1599 noconfigdirs="$noconfigdirs ${libgcj}"
1601 sparc-*-sunos4*)
1602 noconfigdirs="$noconfigdirs ${libgcj}"
1603 if test x${is_cross_compiler} != xno ; then
1604 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1605 else
1606 use_gnu_ld=no
1609 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1610 noconfigdirs="$noconfigdirs ${libgcj}"
1612 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1614 v810-*-*)
1615 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1617 v850-*-*)
1618 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1620 v850e-*-*)
1621 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1623 v850ea-*-*)
1624 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1626 vax-*-vms)
1627 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1629 vax-*-*)
1630 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1632 xtensa-*-*)
1633 noconfigdirs="$noconfigdirs ${libgcj}"
1635 ip2k-*-*)
1636 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1638 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1639 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1641 *-*-lynxos*)
1642 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1644 *-*-*)
1645 noconfigdirs="$noconfigdirs ${libgcj}"
1647 esac
1649 # If we aren't building newlib, then don't build libgloss, since libgloss
1650 # depends upon some newlib header files.
1651 case "${noconfigdirs}" in
1652 *target-libgloss*) ;;
1653 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1654 esac
1656 # Work in distributions that contain no compiler tools, like Autoconf.
1657 tentative_cc=""
1658 host_makefile_frag=/dev/null
1659 if test -d ${srcdir}/config ; then
1660 case "${host}" in
1661 m68k-hp-hpux*)
1662 # Avoid "too much defining" errors from HPUX compiler.
1663 tentative_cc="cc -Wp,-H256000"
1664 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1665 # If it's HP/UX ar, this should be harmless.
1666 RANLIB="ar ts"
1668 m68k-apollo-sysv*)
1669 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1671 m68k-apollo-bsd*)
1672 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1673 # chokes on bfd, the compiler won't let you assign integers to enums, and
1674 # other problems. Defining CC to gcc is a questionable way to say "don't use
1675 # the apollo compiler" (the preferred version of GCC could be called cc,
1676 # or whatever), but I'm not sure leaving CC as cc is any better...
1677 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1678 # Used to have BISON=yacc.
1679 tentative_cc=gcc
1681 m88k-dg-dgux*)
1682 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1684 m88k-harris-cxux*)
1685 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1686 tentative_cc="cc -Xa"
1687 host_makefile_frag="config/mh-cxux"
1689 m88k-motorola-sysv*)
1691 mips*-dec-ultrix*)
1692 tentative_cc="cc -Wf,-XNg1000"
1693 host_makefile_frag="config/mh-decstation"
1695 mips*-nec-sysv4*)
1696 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1697 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1698 host_makefile_frag="config/mh-necv4"
1700 mips*-sgi-irix4*)
1701 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1702 # environment. Also bump switch table size so that cp-parse will
1703 # compile. Bump string length limit so linker builds.
1704 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1706 mips*-*-sysv4*)
1707 host_makefile_frag="config/mh-sysv4"
1709 mips*-*-sysv*)
1710 # This is for a MIPS running RISC/os 4.52C.
1712 # This is needed for GDB, but needs to be in the top-level make because
1713 # if a library is compiled with the bsd headers and gets linked with the
1714 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1715 # a different size).
1716 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1717 # known except to select the sysv environment. Could we use /proc instead?
1718 # These "sysv environments" and "bsd environments" often end up being a pain.
1720 # This is not part of CFLAGS because perhaps not all C compilers have this
1721 # option.
1722 tentative_cc="cc -systype sysv"
1724 i370-ibm-opened*)
1725 tentative_cc="c89"
1727 i[3456789]86-*-sysv5*)
1728 host_makefile_frag="config/mh-sysv5"
1730 i[3456789]86-*-dgux*)
1731 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1732 host_makefile_frag="config/mh-dgux386"
1734 i[3456789]86-ncr-sysv4.3*)
1735 # The MetaWare compiler will generate a copyright message unless you
1736 # turn it off by adding the -Hnocopyr flag.
1737 tentative_cc="cc -Hnocopyr"
1739 i[3456789]86-ncr-sysv4*)
1740 # for an NCR 3000 (i486/SVR4) system.
1741 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1742 # This compiler not only emits obnoxious copyright messages every time
1743 # you run it, but it chokes and dies on a whole bunch of GNU source
1744 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1745 tentative_cc="/usr/ccs/ATT/cc"
1746 host_makefile_frag="config/mh-ncr3000"
1748 i[3456789]86-*-sco3.2v5*)
1750 i[3456789]86-*-sco*)
1751 # The native C compiler botches some simple uses of const. Unfortunately,
1752 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1753 tentative_cc="cc -Dconst="
1754 host_makefile_frag="config/mh-sco"
1756 i[3456789]86-*-udk*)
1757 host_makefile_frag="config/mh-sysv5"
1759 i[3456789]86-*-solaris2*)
1760 host_makefile_frag="config/mh-sysv4"
1762 i[3456789]86-*-msdosdjgpp*)
1763 host_makefile_frag="config/mh-djgpp"
1765 *-cygwin*)
1766 host_makefile_frag="config/mh-cygwin"
1768 *-mingw32*)
1770 *-interix*)
1771 host_makefile_frag="config/mh-interix"
1773 vax-*-ultrix2*)
1774 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1775 tentative_cc=gcc
1777 *-*-solaris2*)
1778 host_makefile_frag="config/mh-solaris"
1780 m68k-sun-sunos*)
1781 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1782 # without overflowing the jump tables (-J says to use a 32 bit table)
1783 tentative_cc="cc -J"
1785 *-hp-hpux*)
1786 tentative_cc="cc -Wp,-H256000"
1788 *-*-hiux*)
1789 tentative_cc="cc -Wp,-H256000"
1791 rs6000-*-lynxos*)
1792 # /bin/cc is less than useful for our purposes. Always use GCC
1793 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1794 host_makefile_frag="config/mh-lynxrs6k"
1796 powerpc-*-darwin*)
1797 host_makefile_frag="config/mh-ppc-darwin"
1799 powerpc-*-aix*)
1800 host_makefile_frag="config/mh-ppc-aix"
1802 rs6000-*-aix*)
1803 host_makefile_frag="config/mh-ppc-aix"
1805 *-*-lynxos*)
1806 # /bin/cc is less than useful for our purposes. Always use GCC
1807 tentative_cc="/bin/gcc"
1809 *-*-sysv4*)
1810 host_makefile_frag="config/mh-sysv4"
1812 # This is placed last to prevent interfering with the cases above.
1813 i[3456789]86-*-*)
1814 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1815 host_makefile_frag="config/mh-x86omitfp"
1817 esac
1820 # If we aren't going to be using gcc, see if we can extract a definition
1821 # of CC from the fragment.
1822 # Actually, use the 'pre-extracted' version above.
1823 if test -z "${CC}" && test "${build}" = "${host}" ; then
1824 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1825 found=
1826 for dir in $PATH; do
1827 test -z "$dir" && dir=.
1828 if test -f $dir/gcc; then
1829 found=yes
1830 break
1832 done
1833 IFS="$save_ifs"
1834 if test -z "${found}" && test -n "${tentative_cc}" ; then
1835 CC=$tentative_cc
1839 if test "${build}" != "${host}" ; then
1840 # If we are doing a Canadian Cross, in which the host and build systems
1841 # are not the same, we set reasonable default values for the tools.
1843 CC=${CC-${host_alias}-gcc}
1844 CFLAGS=${CFLAGS-"-g -O2"}
1845 CXX=${CXX-${host_alias}-c++}
1846 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1847 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1849 else
1850 # Set reasonable default values for some tools even if not Canadian.
1851 # Of course, these are different reasonable default values, originally
1852 # specified directly in the Makefile.
1853 # We don't export, so that autoconf can do its job.
1854 # Note that all these settings are above the fragment inclusion point
1855 # in Makefile.in, so can still be overridden by fragments.
1856 # This is all going to change when we autoconfiscate...
1858 CC_FOR_BUILD="\$(CC)"
1859 # Extract the first word of "gcc", so it can be a program name with args.
1860 set dummy gcc; ac_word=$2
1861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1862 echo "configure:1863: checking for $ac_word" >&5
1863 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1865 else
1866 if test -n "$CC"; then
1867 ac_cv_prog_CC="$CC" # Let the user override the test.
1868 else
1869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1870 ac_dummy="$PATH"
1871 for ac_dir in $ac_dummy; do
1872 test -z "$ac_dir" && ac_dir=.
1873 if test -f $ac_dir/$ac_word; then
1874 ac_cv_prog_CC="gcc"
1875 break
1877 done
1878 IFS="$ac_save_ifs"
1881 CC="$ac_cv_prog_CC"
1882 if test -n "$CC"; then
1883 echo "$ac_t""$CC" 1>&6
1884 else
1885 echo "$ac_t""no" 1>&6
1888 if test -z "$CC"; then
1889 # Extract the first word of "cc", so it can be a program name with args.
1890 set dummy cc; ac_word=$2
1891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1892 echo "configure:1893: checking for $ac_word" >&5
1893 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1895 else
1896 if test -n "$CC"; then
1897 ac_cv_prog_CC="$CC" # Let the user override the test.
1898 else
1899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1900 ac_prog_rejected=no
1901 ac_dummy="$PATH"
1902 for ac_dir in $ac_dummy; do
1903 test -z "$ac_dir" && ac_dir=.
1904 if test -f $ac_dir/$ac_word; then
1905 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1906 ac_prog_rejected=yes
1907 continue
1909 ac_cv_prog_CC="cc"
1910 break
1912 done
1913 IFS="$ac_save_ifs"
1914 if test $ac_prog_rejected = yes; then
1915 # We found a bogon in the path, so make sure we never use it.
1916 set dummy $ac_cv_prog_CC
1917 shift
1918 if test $# -gt 0; then
1919 # We chose a different compiler from the bogus one.
1920 # However, it has the same basename, so the bogon will be chosen
1921 # first if we set CC to just the basename; use the full file name.
1922 shift
1923 set dummy "$ac_dir/$ac_word" "$@"
1924 shift
1925 ac_cv_prog_CC="$@"
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 case "`uname -s`" in
1939 *win32* | *WIN32*)
1940 # Extract the first word of "cl", so it can be a program name with args.
1941 set dummy cl; ac_word=$2
1942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1943 echo "configure:1944: checking for $ac_word" >&5
1944 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1946 else
1947 if test -n "$CC"; then
1948 ac_cv_prog_CC="$CC" # Let the user override the test.
1949 else
1950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1951 ac_dummy="$PATH"
1952 for ac_dir in $ac_dummy; do
1953 test -z "$ac_dir" && ac_dir=.
1954 if test -f $ac_dir/$ac_word; then
1955 ac_cv_prog_CC="cl"
1956 break
1958 done
1959 IFS="$ac_save_ifs"
1962 CC="$ac_cv_prog_CC"
1963 if test -n "$CC"; then
1964 echo "$ac_t""$CC" 1>&6
1965 else
1966 echo "$ac_t""no" 1>&6
1969 esac
1971 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1974 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1975 echo "configure:1976: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1977 ac_ext=c
1978 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1979 ac_cpp='$CPP $CPPFLAGS'
1980 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1981 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1982 cross_compiling=$ac_cv_prog_cc_cross
1984 cat > conftest.$ac_ext << EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1989 main(){return(0);}
1991 if { (eval echo configure:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1992 ac_cv_prog_cc_works=yes
1993 # If we can't run a trivial program, we are probably using a cross compiler.
1994 if (./conftest; exit) 2>/dev/null; then
1995 ac_cv_prog_cc_cross=no
1996 else
1997 ac_cv_prog_cc_cross=yes
1999 else
2000 echo "configure: failed program was:" >&5
2001 cat conftest.$ac_ext >&5
2002 ac_cv_prog_cc_works=no
2004 rm -fr conftest*
2005 ac_ext=c
2006 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2007 ac_cpp='$CPP $CPPFLAGS'
2008 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2009 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2010 cross_compiling=$ac_cv_prog_cc_cross
2012 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2013 if test $ac_cv_prog_cc_works = no; then
2014 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2016 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2017 echo "configure:2018: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2018 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2019 cross_compiling=$ac_cv_prog_cc_cross
2021 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2022 echo "configure:2023: checking whether we are using GNU C" >&5
2023 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2025 else
2026 cat > conftest.c <<EOF
2027 #ifdef __GNUC__
2028 yes;
2029 #endif
2031 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2032 ac_cv_prog_gcc=yes
2033 else
2034 ac_cv_prog_gcc=no
2038 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2040 if test $ac_cv_prog_gcc = yes; then
2041 GCC=yes
2042 else
2043 GCC=
2046 ac_test_CFLAGS="${CFLAGS+set}"
2047 ac_save_CFLAGS="$CFLAGS"
2048 CFLAGS=
2049 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2050 echo "configure:2051: checking whether ${CC-cc} accepts -g" >&5
2051 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2053 else
2054 echo 'void f(){}' > conftest.c
2055 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2056 ac_cv_prog_cc_g=yes
2057 else
2058 ac_cv_prog_cc_g=no
2060 rm -f conftest*
2064 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2065 if test "$ac_test_CFLAGS" = set; then
2066 CFLAGS="$ac_save_CFLAGS"
2067 elif test $ac_cv_prog_cc_g = yes; then
2068 if test "$GCC" = yes; then
2069 CFLAGS="-g -O2"
2070 else
2071 CFLAGS="-g"
2073 else
2074 if test "$GCC" = yes; then
2075 CFLAGS="-O2"
2076 else
2077 CFLAGS=
2082 # We must set the default linker to the linker used by gcc for the correct
2083 # operation of libtool. If LD is not defined and we are using gcc, try to
2084 # set the LD default to the ld used by gcc.
2085 if test -z "$LD"; then
2086 if test "$GCC" = yes; then
2087 case $build in
2088 *-*-mingw*)
2089 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2091 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2092 esac
2093 case $gcc_prog_ld in
2094 # Accept absolute paths.
2095 [\\/]* | [A-Za-z]:[\\/]*)
2096 LD="$gcc_prog_ld" ;;
2097 esac
2101 CXX=${CXX-"c++"}
2102 CFLAGS=${CFLAGS-"-g"}
2103 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2106 if test $host != $build; then
2107 ac_tool_prefix=${host_alias}-
2108 else
2109 ac_tool_prefix=
2114 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2115 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2117 echo "configure:2118: checking for $ac_word" >&5
2118 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2120 else
2121 if test -n "$GNATBIND"; then
2122 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2123 else
2124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2125 ac_dummy="$PATH"
2126 for ac_dir in $ac_dummy; do
2127 test -z "$ac_dir" && ac_dir=.
2128 if test -f $ac_dir/$ac_word; then
2129 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2130 break
2132 done
2133 IFS="$ac_save_ifs"
2136 GNATBIND="$ac_cv_prog_GNATBIND"
2137 if test -n "$GNATBIND"; then
2138 echo "$ac_t""$GNATBIND" 1>&6
2139 else
2140 echo "$ac_t""no" 1>&6
2144 if test -z "$ac_cv_prog_GNATBIND"; then
2145 if test -n "$ac_tool_prefix"; then
2146 # Extract the first word of "gnatbind", so it can be a program name with args.
2147 set dummy gnatbind; ac_word=$2
2148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2149 echo "configure:2150: checking for $ac_word" >&5
2150 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2152 else
2153 if test -n "$GNATBIND"; then
2154 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2155 else
2156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2157 ac_dummy="$PATH"
2158 for ac_dir in $ac_dummy; do
2159 test -z "$ac_dir" && ac_dir=.
2160 if test -f $ac_dir/$ac_word; then
2161 ac_cv_prog_GNATBIND="gnatbind"
2162 break
2164 done
2165 IFS="$ac_save_ifs"
2166 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2169 GNATBIND="$ac_cv_prog_GNATBIND"
2170 if test -n "$GNATBIND"; then
2171 echo "$ac_t""$GNATBIND" 1>&6
2172 else
2173 echo "$ac_t""no" 1>&6
2176 else
2177 GNATBIND="no"
2181 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2182 echo "configure:2183: checking whether compiler driver understands Ada" >&5
2183 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2185 else
2186 cat >conftest.adb <<EOF
2187 procedure conftest is begin null; end conftest;
2189 acx_cv_cc_gcc_supports_ada=no
2190 # There is a bug in old released versions of GCC which causes the
2191 # driver to exit successfully when the appropriate language module
2192 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2193 # Therefore we must check for the error message as well as an
2194 # unsuccessful exit.
2195 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2196 # given a .adb file, but produce no object file. So we must check
2197 # if an object file was really produced to guard against this.
2198 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2199 if test x"$errors" = x && test -f conftest.$ac_objext; then
2200 acx_cv_cc_gcc_supports_ada=yes
2202 rm -f conftest.*
2205 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2207 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2208 have_gnat=yes
2209 else
2210 have_gnat=no
2213 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2214 echo "configure:2215: checking how to compare bootstrapped objects" >&5
2215 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
2217 else
2218 echo abfoo >t1
2219 echo cdfoo >t2
2220 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2221 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2222 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2224 else
2225 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2228 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2229 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2231 else
2232 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2235 rm t1 t2
2239 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2240 do_compare="$gcc_cv_prog_cmp_skip"
2244 # Check for GMP and MPFR
2245 gmplibs="-lmpfr"
2246 gmpinc=
2247 have_gmp=yes
2248 # Specify a location for mpfr
2249 # check for this first so it ends up on the link line before gmp.
2250 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2251 if test "${with_mpfr_dir+set}" = set; then
2252 withval="$with_mpfr_dir"
2253 { echo "configure: error: The --with-mpfr-dir=PATH option has been removed.
2254 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" 1>&2; exit 1; }
2258 # Check whether --with-mpfr or --without-mpfr was given.
2259 if test "${with_mpfr+set}" = set; then
2260 withval="$with_mpfr"
2264 # Check whether --with-mpfr_include or --without-mpfr_include was given.
2265 if test "${with_mpfr_include+set}" = set; then
2266 withval="$with_mpfr_include"
2270 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
2271 if test "${with_mpfr_lib+set}" = set; then
2272 withval="$with_mpfr_lib"
2277 if test "x$with_mpfr" != x; then
2278 gmplibs="-L$with_mpfr/lib $gmplibs"
2279 gmpinc="-I$with_mpfr/include"
2281 if test "x$with_mpfr_include" != x; then
2282 gmpinc="-I$with_mpfr_include"
2284 if test "x$with_mpfr_lib" != x; then
2285 gmplibs="-L$with_mpfr_lib $gmplibs"
2288 # Specify a location for gmp
2289 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2290 if test "${with_gmp_dir+set}" = set; then
2291 withval="$with_gmp_dir"
2292 { echo "configure: error: The --with-gmp-dir=PATH option has been removed.
2293 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" 1>&2; exit 1; }
2297 gmplibs="$gmplibs -lgmp"
2299 # Check whether --with-gmp or --without-gmp was given.
2300 if test "${with_gmp+set}" = set; then
2301 withval="$with_gmp"
2305 # Check whether --with-gmp_include or --without-gmp_include was given.
2306 if test "${with_gmp_include+set}" = set; then
2307 withval="$with_gmp_include"
2311 # Check whether --with-gmp_lib or --without-gmp_lib was given.
2312 if test "${with_gmp_lib+set}" = set; then
2313 withval="$with_gmp_lib"
2319 if test "x$with_gmp" != x; then
2320 gmplibs="-L$with_gmp/lib $gmplibs"
2321 gmpinc="-I$with_gmp/include $gmpinc"
2323 if test "x$with_gmp_include" != x; then
2324 gmpinc="-I$with_gmp_include $gmpinc"
2326 if test "x$with_gmp_lib" != x; then
2327 gmplibs="-L$with_gmp_lib $gmplibs"
2330 saved_CFLAGS="$CFLAGS"
2331 CFLAGS="$CFLAGS $gmpinc"
2332 # Check GMP actually works
2333 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2334 echo "configure:2335: checking for correct version of gmp.h" >&5
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2338 #include "gmp.h"
2339 int main() {
2341 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
2342 choke me
2343 #endif
2345 ; return 0; }
2347 if { (eval echo configure:2348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2348 rm -rf conftest*
2349 echo "$ac_t""yes" 1>&6
2350 else
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2353 rm -rf conftest*
2354 echo "$ac_t""no" 1>&6; have_gmp=no
2356 rm -f conftest*
2358 if test x"$have_gmp" = xyes; then
2359 echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
2360 echo "configure:2361: checking for correct version of mpfr.h" >&5
2361 cat > conftest.$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364 #include "gmp.h"
2365 #include <mpfr.h>
2366 int main() {
2368 #if MPFR_VERSION_MAJOR < 2 || (MPFR_VERSION_MAJOR == 2 && MPFR_VERSION_MINOR < 2)
2369 choke me
2370 #endif
2372 ; return 0; }
2374 if { (eval echo configure:2375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2375 rm -rf conftest*
2376 echo "$ac_t""yes" 1>&6
2377 else
2378 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2380 rm -rf conftest*
2381 echo "$ac_t""buggy version of MPFR detected" 1>&6
2383 rm -f conftest*
2385 saved_LIBS="$LIBS"
2386 LIBS="$LIBS $gmplibs"
2387 echo $ac_n "checking for any version of mpfr.h""... $ac_c" 1>&6
2388 echo "configure:2389: checking for any version of mpfr.h" >&5
2389 cat > conftest.$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2392 #include <gmp.h>
2393 #include <mpfr.h>
2394 int main() {
2395 mpfr_t n; mpfr_init(n);
2396 ; return 0; }
2398 if { (eval echo configure:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2399 rm -rf conftest*
2400 echo "$ac_t""yes" 1>&6
2401 else
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2404 rm -rf conftest*
2405 echo "$ac_t""no" 1>&6; have_gmp=no
2407 rm -f conftest*
2408 LIBS="$saved_LIBS"
2410 CFLAGS="$saved_CFLAGS"
2412 # Flags needed for both GMP and/or MPFR
2416 # By default, C is the only stage 1 language.
2417 stage1_languages=c
2420 # Figure out what language subdirectories are present.
2421 # Look if the user specified --enable-languages="..."; if not, use
2422 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2423 # go away some day.
2424 # NB: embedded tabs in this IF block -- do not untabify
2425 if test -d ${srcdir}/gcc; then
2426 if test x"${enable_languages+set}" != xset; then
2427 if test x"${LANGUAGES+set}" = xset; then
2428 enable_languages="${LANGUAGES}"
2429 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2430 else
2431 enable_languages=all
2433 else
2434 if test x"${enable_languages}" = x ||
2435 test x"${enable_languages}" = xyes;
2436 then
2437 echo configure.in: --enable-languages needs at least one language argument 1>&2
2438 exit 1
2441 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2443 # 'f95' is the old name for the 'fortran' language. We issue a warning
2444 # and make the substitution.
2445 case ,${enable_languages}, in
2446 *,f95,*)
2447 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2448 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2450 esac
2452 # First scan to see if an enabled language requires some other language.
2453 # We assume that a given config-lang.in will list all the language
2454 # front ends it requires, even if some are required indirectly.
2455 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2456 case ${lang_frag} in
2457 ..) ;;
2458 # The odd quoting in the next line works around
2459 # an apparent bug in bash 1.12 on linux.
2460 ${srcdir}/gcc/[*]/config-lang.in) ;;
2462 # From the config-lang.in, get $language, $lang_requires
2463 language=
2464 lang_requires=
2465 . ${lang_frag}
2466 for other in ${lang_requires} ; do
2467 case ,${enable_languages}, in
2468 *,$other,*) ;;
2469 *,all,*) ;;
2470 *,$language,*)
2471 echo " \`$other' language required by \`$language'; enabling" 1>&2
2472 enable_languages="${enable_languages},${other}"
2474 esac
2475 done
2477 esac
2478 done
2480 new_enable_languages=c
2481 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2482 potential_languages=c
2484 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2485 case ${lang_frag} in
2486 ..) ;;
2487 # The odd quoting in the next line works around
2488 # an apparent bug in bash 1.12 on linux.
2489 ${srcdir}/gcc/[*]/config-lang.in) ;;
2491 # From the config-lang.in, get $language, $target_libs,
2492 # $lang_dirs, $boot_language, and $build_by_default
2493 language=
2494 target_libs=
2495 lang_dirs=
2496 subdir_requires=
2497 boot_language=
2498 build_by_default=
2499 need_gmp=
2500 . ${lang_frag}
2501 potential_languages="${potential_languages},${language}"
2502 # This is quite sensitive to the ordering of the case statement arms.
2503 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2504 *::*:*)
2505 echo "${lang_frag} doesn't set \$language." 1>&2
2506 exit 1
2508 *:ada:no:*)
2509 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2510 add_this_lang=no
2512 *,${language},*:*:*:*)
2513 # Language was explicitly selected; include it.
2514 add_this_lang=yes
2516 *,all,*:*:*:no)
2517 # 'all' was selected, but this is not a default language
2518 # so do not include it.
2519 add_this_lang=no
2521 *,all,*:*:*:*)
2522 # 'all' was selected and this is a default language; include it.
2523 add_this_lang=yes
2526 add_this_lang=no
2528 esac
2530 # Disable languages that need other directories if these aren't available.
2531 for i in $subdir_requires; do
2532 test -f "$srcdir/gcc/$i/config-lang.in" && continue
2533 case ,${enable_languages}, in
2534 *,${language},*)
2535 # Specifically requested language; tell them.
2536 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2539 # Silently disable.
2540 add_this_lang=no
2542 esac
2543 done
2545 # Disable languages that need GMP if it isn't available.
2546 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2547 *,${language},*:no:yes)
2548 # Specifically requested language; tell them.
2549 { echo "configure: error: GMP 4.1 and MPFR 2.2 or newer versions required by $language" 1>&2; exit 1; }
2551 *:no:yes)
2552 # Silently disable.
2553 add_this_lang=no
2555 esac
2557 # Disable a language that is unsupported by the target.
2558 case " $unsupported_languages " in
2559 *" $language "*)
2560 add_this_lang=no
2562 esac
2564 case $add_this_lang in
2566 # Remove language-dependent dirs.
2567 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2570 new_enable_languages="$new_enable_languages,$language"
2571 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2572 case ${boot_language} in
2573 yes)
2574 # Add to (comma-separated) list of stage 1 languages.
2575 stage1_languages="${stage1_languages},${language}"
2577 esac
2579 esac
2581 esac
2582 done
2584 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2585 if test "x$missing_languages" != x; then
2586 { echo "configure: error:
2587 The following requested languages could not be built: ${missing_languages}
2588 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2591 if test "x$new_enable_languages" != "x$enable_languages"; then
2592 echo The following languages will be built: ${new_enable_languages}
2594 enable_languages="$new_enable_languages"
2595 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2598 # Handle --disable-<component> generically.
2599 for dir in $configdirs $build_configdirs $target_configdirs ; do
2600 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2601 if eval test x\${enable_${dirname}} "=" xno ; then
2602 noconfigdirs="$noconfigdirs $dir"
2604 done
2606 # Check for Boehm's garbage collector
2607 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2608 if test "${enable_objc_gc+set}" = set; then
2609 enableval="$enable_objc_gc"
2610 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2611 *,objc,*:*:yes:*target-boehm-gc*)
2612 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2614 esac
2618 # Make sure we only build Boehm's garbage collector if required.
2619 case ,${enable_languages},:${enable_objc_gc} in
2620 *,objc,*:yes)
2621 # Keep target-boehm-gc if requested for Objective-C.
2624 # Otherwise remove target-boehm-gc depending on target-libjava.
2625 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
2626 noconfigdirs="$noconfigdirs target-boehm-gc"
2629 esac
2631 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2632 # $build_configdirs and $target_configdirs.
2633 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2635 notsupp=""
2636 for dir in . $skipdirs $noconfigdirs ; do
2637 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2638 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2639 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2640 if test -r $srcdir/$dirname/configure ; then
2641 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2642 true
2643 else
2644 notsupp="$notsupp $dir"
2648 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2649 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2650 if test -r $srcdir/$dirname/configure ; then
2651 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2652 true
2653 else
2654 notsupp="$notsupp $dir"
2658 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2659 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2660 if test -r $srcdir/$dirname/configure ; then
2661 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2662 true
2663 else
2664 notsupp="$notsupp $dir"
2668 done
2670 # Sometimes the tools are distributed with libiberty but with no other
2671 # libraries. In that case, we don't want to build target-libiberty.
2672 if test -n "${target_configdirs}" ; then
2673 others=
2674 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2675 if test "$i" != "libiberty" ; then
2676 if test -r $srcdir/$i/configure ; then
2677 others=yes;
2678 break;
2681 done
2682 if test -z "${others}" ; then
2683 target_configdirs=
2687 # Quietly strip out all directories which aren't configurable in this tree.
2688 # This relies on all configurable subdirectories being autoconfiscated, which
2689 # is now the case.
2690 build_configdirs_all="$build_configdirs"
2691 build_configdirs=
2692 for i in ${build_configdirs_all} ; do
2693 j=`echo $i | sed -e s/build-//g`
2694 if test -f ${srcdir}/$j/configure ; then
2695 build_configdirs="${build_configdirs} $i"
2697 done
2699 configdirs_all="$configdirs"
2700 configdirs=
2701 for i in ${configdirs_all} ; do
2702 if test -f ${srcdir}/$i/configure ; then
2703 configdirs="${configdirs} $i"
2705 done
2707 target_configdirs_all="$target_configdirs"
2708 target_configdirs=
2709 for i in ${target_configdirs_all} ; do
2710 j=`echo $i | sed -e s/target-//g`
2711 if test -f ${srcdir}/$j/configure ; then
2712 target_configdirs="${target_configdirs} $i"
2714 done
2716 # Produce a warning message for the subdirs we can't configure.
2717 # This isn't especially interesting in the Cygnus tree, but in the individual
2718 # FSF releases, it's important to let people know when their machine isn't
2719 # supported by the one or two programs in a package.
2721 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2722 # If $appdirs is non-empty, at least one of those directories must still
2723 # be configured, or we error out. (E.g., if the gas release supports a
2724 # specified target in some subdirs but not the gas subdir, we shouldn't
2725 # pretend that all is well.)
2726 if test -n "$appdirs" ; then
2727 for dir in $appdirs ; do
2728 if test -r $dir/Makefile.in ; then
2729 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2730 appdirs=""
2731 break
2733 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2734 appdirs=""
2735 break
2738 done
2739 if test -n "$appdirs" ; then
2740 echo "*** This configuration is not supported by this package." 1>&2
2741 exit 1
2744 # Okay, some application will build, or we don't care to check. Still
2745 # notify of subdirs not getting built.
2746 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2747 echo " ${notsupp}" 1>&2
2748 echo " (Any other directories should still work fine.)" 1>&2
2751 case "$host" in
2752 *msdosdjgpp*)
2753 enable_gdbtk=no ;;
2754 esac
2756 copy_dirs=
2758 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2759 if test "${with_build_sysroot+set}" = set; then
2760 withval="$with_build_sysroot"
2761 if test x"$withval" != x ; then
2762 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2764 else
2765 SYSROOT_CFLAGS_FOR_TARGET=
2770 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2771 # the named directory are copied to $(tooldir)/sys-include.
2772 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2773 if test x${is_cross_compiler} = xno ; then
2774 echo 1>&2 '***' --with-headers is only supported when cross compiling
2775 exit 1
2777 if test x"${with_headers}" != xyes ; then
2778 case "${exec_prefixoption}" in
2779 "") x=${prefix} ;;
2780 *) x=${exec_prefix} ;;
2781 esac
2782 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2786 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2787 # the name directories are copied to $(tooldir)/lib. Multiple directories
2788 # are permitted.
2789 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2790 if test x${is_cross_compiler} = xno ; then
2791 echo 1>&2 '***' --with-libs is only supported when cross compiling
2792 exit 1
2794 if test x"${with_libs}" != xyes ; then
2795 # Copy the libraries in reverse order, so that files in the first named
2796 # library override files in subsequent libraries.
2797 case "${exec_prefixoption}" in
2798 "") x=${prefix} ;;
2799 *) x=${exec_prefix} ;;
2800 esac
2801 for l in ${with_libs}; do
2802 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2803 done
2807 # Set with_gnu_as and with_gnu_ld as appropriate.
2809 # This is done by determining whether or not the appropriate directory
2810 # is available, and by checking whether or not specific configurations
2811 # have requested that this magic not happen.
2813 # The command line options always override the explicit settings in
2814 # configure.in, and the settings in configure.in override this magic.
2816 # If the default for a toolchain is to use GNU as and ld, and you don't
2817 # want to do that, then you should use the --without-gnu-as and
2818 # --without-gnu-ld options for the configure script.
2820 if test x${use_gnu_as} = x &&
2821 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2822 with_gnu_as=yes
2823 extra_host_args="$extra_host_args --with-gnu-as"
2826 if test x${use_gnu_ld} = x &&
2827 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2828 with_gnu_ld=yes
2829 extra_host_args="$extra_host_args --with-gnu-ld"
2832 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2833 # can detect this case.
2835 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2836 with_newlib=yes
2837 extra_host_args="$extra_host_args --with-newlib"
2840 # Handle ${copy_dirs}
2841 set fnord ${copy_dirs}
2842 shift
2843 while test $# != 0 ; do
2844 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2846 else
2847 echo Copying $1 to $2
2849 # Use the install script to create the directory and all required
2850 # parent directories.
2851 if test -d $2 ; then
2853 else
2854 echo >config.temp
2855 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2858 # Copy the directory, assuming we have tar.
2859 # FIXME: Should we use B in the second tar? Not all systems support it.
2860 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2862 # It is the responsibility of the user to correctly adjust all
2863 # symlinks. If somebody can figure out how to handle them correctly
2864 # here, feel free to add the code.
2866 echo $1 > $2/COPIED
2868 shift; shift
2869 done
2871 # Determine a target-dependent exec_prefix that the installed
2872 # gcc will search in. Keep this list sorted by triplet, with
2873 # the *-*-osname triplets last.
2874 md_exec_prefix=
2875 case "${target}" in
2876 alpha*-*-*vms*)
2877 md_exec_prefix=/gnu/lib/gcc-lib
2879 i3456786-pc-msdosdjgpp*)
2880 md_exec_prefix=/dev/env/DJDIR/bin
2882 i3456786-*-sco3.2v5*)
2883 if test $with_gnu_as = yes; then
2884 md_exec_prefix=/usr/gnu/bin
2885 else
2886 md_exec_prefix=/usr/ccs/bin/elf
2890 mn10300-*-* | \
2891 powerpc-*-chorusos* | \
2892 powerpc*-*-eabi* | \
2893 powerpc*-*-sysv* | \
2894 powerpc*-*-kaos* | \
2895 s390x-ibm-tpf*)
2896 md_exec_prefix=/usr/ccs/bin
2898 sparc64-*-elf*)
2900 v850*-*-*)
2901 md_exec_prefix=/usr/ccs/bin
2903 xtensa-*-elf*)
2906 *-*-beos* | \
2907 *-*-elf* | \
2908 *-*-hpux* | \
2909 *-*-netware* | \
2910 *-*-nto-qnx* | \
2911 *-*-rtems* | \
2912 *-*-solaris2* | \
2913 *-*-sysv45* | \
2914 *-*-vxworks* | \
2915 *-wrs-windiss)
2916 md_exec_prefix=/usr/ccs/bin
2918 esac
2920 extra_arflags_for_target=
2921 extra_nmflags_for_target=
2922 extra_ranlibflags_for_target=
2923 target_makefile_frag=/dev/null
2924 case "${target}" in
2925 *-*-netware*)
2926 target_makefile_frag="config/mt-netware"
2928 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2929 target_makefile_frag="config/mt-gnu"
2931 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2932 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2933 # commands to handle both 32-bit and 64-bit objects. These flags are
2934 # harmless if we're using GNU nm or ar.
2935 extra_arflags_for_target=" -X32_64"
2936 extra_nmflags_for_target=" -B -X32_64"
2938 *-*-darwin*)
2939 # ranlib from Darwin requires the -c flag to look at common symbols.
2940 extra_ranlibflags_for_target=" -c"
2942 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2943 target_makefile_frag="config/mt-wince"
2945 esac
2947 alphaieee_frag=/dev/null
2948 case $target in
2949 alpha*-*-*)
2950 # This just makes sure to use the -mieee option to build target libs.
2951 # This should probably be set individually by each library.
2952 alphaieee_frag="config/mt-alphaieee"
2954 esac
2956 # If --enable-target-optspace always use -Os instead of -O2 to build
2957 # the target libraries, similarly if it is not specified, use -Os
2958 # on selected platforms.
2959 ospace_frag=/dev/null
2960 case "${enable_target_optspace}:${target}" in
2961 yes:*)
2962 ospace_frag="config/mt-ospace"
2964 :d30v-*)
2965 ospace_frag="config/mt-d30v"
2967 :m32r-* | :d10v-* | :fr30-*)
2968 ospace_frag="config/mt-ospace"
2970 no:* | :*)
2973 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2975 esac
2977 # Default to using --with-stabs for certain targets.
2978 if test x${with_stabs} = x ; then
2979 case "${target}" in
2980 mips*-*-irix[56]*)
2982 mips*-*-* | alpha*-*-osf*)
2983 with_stabs=yes;
2984 extra_host_args="${extra_host_args} --with-stabs"
2986 esac
2989 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2990 # them automatically.
2991 case "${host}" in
2992 hppa*64*-*-hpux11*)
2993 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2995 esac
2997 # Some systems (e.g., one of the i386-aix systems the gas testers are
2998 # using) don't handle "\$" correctly, so don't use it here.
2999 tooldir='${exec_prefix}'/${target_alias}
3000 build_tooldir=${tooldir}
3002 # Create a .gdbinit file which runs the one in srcdir
3003 # and tells GDB to look there for source files.
3005 if test -r ${srcdir}/.gdbinit ; then
3006 case ${srcdir} in
3007 .) ;;
3008 *) cat > ./.gdbinit <<EOF
3009 # ${NO_EDIT}
3010 dir ${srcdir}
3011 dir .
3012 source ${srcdir}/.gdbinit
3015 esac
3018 # Make sure that the compiler is able to generate an executable. If it
3019 # can't, we are probably in trouble. We don't care whether we can run the
3020 # executable--we might be using a cross compiler--we only care whether it
3021 # can be created. At this point the main configure script has set CC.
3022 we_are_ok=no
3023 echo "int main () { return 0; }" > conftest.c
3024 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3025 if test $? = 0 ; then
3026 if test -s conftest || test -s conftest.exe ; then
3027 we_are_ok=yes
3030 case $we_are_ok in
3032 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3033 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3034 rm -f conftest*
3035 exit 1
3037 esac
3038 rm -f conftest*
3040 # The Solaris /usr/ucb/cc compiler does not appear to work.
3041 case "${host}" in
3042 sparc-sun-solaris2*)
3043 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
3044 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3045 could_use=
3046 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
3047 if test -d /opt/cygnus/bin ; then
3048 if test "$could_use" = "" ; then
3049 could_use="/opt/cygnus/bin"
3050 else
3051 could_use="$could_use or /opt/cygnus/bin"
3054 if test "$could_use" = "" ; then
3055 echo "Warning: compilation may fail because you're using"
3056 echo "/usr/ucb/cc. You should change your PATH or CC "
3057 echo "variable and rerun configure."
3058 else
3059 echo "Warning: compilation may fail because you're using"
3060 echo "/usr/ucb/cc, when you should use the C compiler from"
3061 echo "$could_use. You should change your"
3062 echo "PATH or CC variable and rerun configure."
3066 esac
3068 case "${host}" in
3069 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3070 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3071 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3072 esac
3074 # Record target_configdirs and the configure arguments for target and
3075 # build configuration in Makefile.
3076 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3077 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3079 # Determine whether gdb needs tk/tcl or not.
3080 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3081 # and in that case we want gdb to be built without tk. Ugh!
3082 # In fact I believe gdb is the *only* package directly dependent on tk,
3083 # so we should be able to put the 'maybe's in unconditionally and
3084 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3085 # 100% sure that that's safe though.
3087 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3088 case "$enable_gdbtk" in
3090 GDB_TK="" ;;
3091 yes)
3092 GDB_TK="${gdb_tk}" ;;
3094 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3095 # distro. Eventually someone will fix this and move Insight, nee
3096 # gdbtk to a separate directory.
3097 if test -d ${srcdir}/gdb/gdbtk ; then
3098 GDB_TK="${gdb_tk}"
3099 else
3100 GDB_TK=""
3103 esac
3104 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3105 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3107 # Strip out unwanted targets.
3109 # While at that, we remove Makefiles if we were started for recursive
3110 # configuration, so that the top-level Makefile reconfigures them,
3111 # like we used to do when configure itself was recursive.
3113 # Loop over modules. $extrasub must be used with care, limiting as
3114 # much as possible the usage of range addresses. That's because autoconf
3115 # splits the sed script to overcome limits in the number of commands,
3116 # and relying on carefully-timed sed passes may turn out to be very hard
3117 # to maintain later. In this particular case, you just have to be careful
3118 # not to nest @if/@endif pairs, because configure will not warn you at all.
3120 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3121 if test "${enable_bootstrap+set}" = set; then
3122 enableval="$enable_bootstrap"
3124 else
3125 enable_bootstrap=default
3129 # Issue errors and warnings for invalid/strange bootstrap combinations.
3130 case "$configdirs" in
3131 *gcc*) have_compiler=yes ;;
3132 *) have_compiler=no ;;
3133 esac
3135 case "$have_compiler:$host:$target:$enable_bootstrap" in
3136 *:*:*:no) ;;
3138 # Default behavior. Enable bootstrap if we have a compiler
3139 # and we are in a native configuration.
3140 yes:$build:$build:default)
3141 enable_bootstrap=yes ;;
3143 *:*:*:default)
3144 enable_bootstrap=no ;;
3146 # We have a compiler and we are in a native configuration, bootstrap is ok
3147 yes:$build:$build:yes)
3150 # Other configurations, but we have a compiler. Assume the user knows
3151 # what he's doing.
3152 yes:*:*:yes)
3153 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3156 # No compiler: if they passed --enable-bootstrap explicitly, fail
3157 no:*:*:yes)
3158 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3160 # Fail if wrong command line
3162 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3164 esac
3166 # Adjust the toplevel makefile according to whether bootstrap was selected.
3167 case "$enable_bootstrap" in
3168 yes)
3169 bootstrap_suffix=bootstrap ;;
3171 bootstrap_suffix=no-bootstrap ;;
3172 esac
3174 for module in ${build_configdirs} ; do
3175 if test -z "${no_recursion}" \
3176 && test -f ${build_subdir}/${module}/Makefile; then
3177 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3178 rm -f ${build_subdir}/${module}/Makefile
3180 extrasub="$extrasub
3181 /^@if build-$module\$/d
3182 /^@endif build-$module\$/d
3183 /^@if build-$module-$bootstrap_suffix\$/d
3184 /^@endif build-$module-$bootstrap_suffix\$/d"
3185 done
3186 for module in ${configdirs} ; do
3187 if test -z "${no_recursion}"; then
3188 for file in stage*-${module}/Makefile ${module}/Makefile; do
3189 if test -f ${file}; then
3190 echo 1>&2 "*** removing ${file} to force reconfigure"
3191 rm -f ${file}
3193 done
3195 extrasub="$extrasub
3196 /^@if $module\$/d
3197 /^@endif $module\$/d
3198 /^@if $module-$bootstrap_suffix\$/d
3199 /^@endif $module-$bootstrap_suffix\$/d"
3200 done
3201 for module in ${target_configdirs} ; do
3202 if test -z "${no_recursion}" \
3203 && test -f ${target_subdir}/${module}/Makefile; then
3204 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3205 rm -f ${target_subdir}/${module}/Makefile
3207 extrasub="$extrasub
3208 /^@if target-$module\$/d
3209 /^@endif target-$module\$/d
3210 /^@if target-$module-$bootstrap_suffix\$/d
3211 /^@endif target-$module-$bootstrap_suffix\$/d"
3212 done
3214 extrasub="$extrasub
3215 /^@if /,/^@endif /d"
3217 # Create the serialization dependencies. This uses a temporary file.
3219 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3220 if test "${enable_serial_configure+set}" = set; then
3221 enableval="$enable_serial_configure"
3226 case ${enable_serial_configure} in
3227 yes)
3228 enable_serial_build_configure=yes
3229 enable_serial_host_configure=yes
3230 enable_serial_target_configure=yes
3232 esac
3234 # These force 'configure's to be done one at a time, to avoid problems
3235 # with contention over a shared config.cache.
3236 rm -f serdep.tmp
3237 echo '# serdep.tmp' > serdep.tmp
3238 olditem=
3239 test "x${enable_serial_build_configure}" = xyes &&
3240 for item in ${build_configdirs} ; do
3241 case ${olditem} in
3242 "") ;;
3243 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3244 esac
3245 olditem=${item}
3246 done
3247 olditem=
3248 test "x${enable_serial_host_configure}" = xyes &&
3249 for item in ${configdirs} ; do
3250 case ${olditem} in
3251 "") ;;
3252 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3253 esac
3254 olditem=${item}
3255 done
3256 olditem=
3257 test "x${enable_serial_target_configure}" = xyes &&
3258 for item in ${target_configdirs} ; do
3259 case ${olditem} in
3260 "") ;;
3261 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3262 esac
3263 olditem=${item}
3264 done
3265 serialization_dependencies=serdep.tmp
3268 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3269 # target and nonopt. These are the ones we might not want to pass
3270 # down to subconfigures. Also strip program-prefix, program-suffix,
3271 # and program-transform-name, so that we can pass down a consistent
3272 # program-transform-name. If autoconf has put single quotes around
3273 # any of these arguments (because they contain shell metacharacters)
3274 # then this will fail; in practice this only happens for
3275 # --program-transform-name, so be sure to override --program-transform-name
3276 # at the end of the argument list.
3277 # These will be expanded by make, so quote '$'.
3278 cat <<\EOF_SED > conftestsed
3279 s/ --no[^ ]*/ /g
3280 s/ --c[a-z-]*[= ][^ ]*//g
3281 s/ --sr[a-z-]*[= ][^ ]*//g
3282 s/ --ho[a-z-]*[= ][^ ]*//g
3283 s/ --bu[a-z-]*[= ][^ ]*//g
3284 s/ --t[a-z-]*[= ][^ ]*//g
3285 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3286 s/ -cache-file[= ][^ ]*//g
3287 s/ -srcdir[= ][^ ]*//g
3288 s/ -host[= ][^ ]*//g
3289 s/ -build[= ][^ ]*//g
3290 s/ -target[= ][^ ]*//g
3291 s/ -program-prefix[= ][^ ]*//g
3292 s/ -program-suffix[= ][^ ]*//g
3293 s/ -program-transform-name[= ][^ ]*//g
3294 s/ [^' -][^ ]* / /
3295 s/^ *//;s/ *$//
3296 s,\$,$$,g
3297 EOF_SED
3298 sed -f conftestsed <<EOF_SED > conftestsed.out
3299 ${ac_configure_args}
3300 EOF_SED
3301 baseargs=`cat conftestsed.out`
3302 rm -f conftestsed conftestsed.out
3304 # Add in --program-transform-name, after --program-prefix and
3305 # --program-suffix have been applied to it. Autoconf has already
3306 # doubled dollar signs and backslashes in program_transform_name; we want
3307 # the backslashes un-doubled, and then the entire thing wrapped in single
3308 # quotes, because this will be expanded first by make and then by the shell.
3309 # Also, because we want to override the logic in subdir configure scripts to
3310 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3311 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3312 ${program_transform_name}
3313 EOF_SED
3314 gcc_transform_name=`cat conftestsed.out`
3315 rm -f conftestsed.out
3316 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3318 # For the build-side libraries, we just need to pretend we're native,
3319 # and not use the same cache file. Multilibs are neither needed nor
3320 # desired.
3321 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3323 # For host modules, accept cache file option, or specification as blank.
3324 case "${cache_file}" in
3325 "") # empty
3326 cache_file_option="" ;;
3327 /* | [A-Za-z]:[\\/]* ) # absolute path
3328 cache_file_option="--cache-file=${cache_file}" ;;
3329 *) # relative path
3330 cache_file_option="--cache-file=../${cache_file}" ;;
3331 esac
3333 # Host dirs don't like to share a cache file either, horribly enough.
3334 # This seems to be due to autoconf 2.5x stupidity.
3335 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3337 target_configargs=${baseargs}
3339 # Passing a --with-cross-host argument lets the target libraries know
3340 # whether they are being built with a cross-compiler or being built
3341 # native. However, it would be better to use other mechanisms to make the
3342 # sorts of decisions they want to make on this basis. Please consider
3343 # this option to be deprecated. FIXME.
3344 if test x${is_cross_compiler} = xyes ; then
3345 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3348 # Default to --enable-multilib.
3349 if test x${enable_multilib} = x ; then
3350 target_configargs="--enable-multilib ${target_configargs}"
3353 # Pass --with-newlib if appropriate. Note that target_configdirs has
3354 # changed from the earlier setting of with_newlib.
3355 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3356 target_configargs="--with-newlib ${target_configargs}"
3359 # Different target subdirs use different values of certain variables
3360 # (notably CXX). Worse, multilibs use *lots* of different values.
3361 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3362 # it doesn't automatically accept command-line overrides of them.
3363 # This means it's not safe for target subdirs to share a cache file,
3364 # which is disgusting, but there you have it. Hopefully this can be
3365 # fixed in future. It's still worthwhile to use a cache file for each
3366 # directory. I think.
3368 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3369 # We need to pass --target, as newer autoconf's requires consistency
3370 # for target_alias and gcc doesn't manage it consistently.
3371 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3373 FLAGS_FOR_TARGET=
3374 case " $target_configdirs " in
3375 *" newlib "*)
3376 case " $target_configargs " in
3377 *" --with-newlib "*)
3378 case "$target" in
3379 *-cygwin*)
3380 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' ;;
3381 esac
3383 # If we're not building GCC, don't discard standard headers.
3384 if test -d ${srcdir}/gcc; then
3385 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3387 if test "${build}" != "${host}"; then
3388 # On Canadian crosses, CC_FOR_TARGET will have already been set
3389 # by `configure', so we won't have an opportunity to add -Bgcc/
3390 # to it. This is right: we don't want to search that directory
3391 # for binaries, but we want the header files in there, so add
3392 # them explicitly.
3393 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3395 # Someone might think of using the pre-installed headers on
3396 # Canadian crosses, in case the installed compiler is not fully
3397 # compatible with the compiler being built. In this case, it
3398 # would be better to flag an error than risking having
3399 # incompatible object files being constructed. We can't
3400 # guarantee that an error will be flagged, but let's hope the
3401 # compiler will do it, when presented with incompatible header
3402 # files.
3406 case "${target}-${is_cross_compiler}" in
3407 i[3456789]86-*-linux*-no)
3408 # Here host == target, so we don't need to build gcc,
3409 # so we don't want to discard standard headers.
3410 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3413 # If we're building newlib, use its generic headers last, but search
3414 # for any libc-related directories first (so make it the last -B
3415 # switch).
3416 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3418 esac
3420 esac
3422 esac
3423 case "$target" in
3424 *-mingw*)
3425 # Can't be handled as Cygwin above since Mingw does not use newlib.
3426 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' ;;
3427 esac
3429 # Allow the user to override the flags for
3430 # our build compiler if desired.
3431 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3433 # On Canadian crosses, we'll be searching the right directories for
3434 # the previously-installed cross compiler, so don't bother to add
3435 # flags for directories within the install tree of the compiler
3436 # being built; programs in there won't even run.
3437 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3438 # Search for pre-installed headers if nothing else fits.
3439 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3442 if test "x${use_gnu_ld}" = x &&
3443 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3444 # Arrange for us to find uninstalled linker scripts.
3445 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3448 # Search for other target-specific linker scripts and such.
3449 case "${target}" in
3450 m32c-*-* )
3451 if test -d ${srcdir}/libgloss/m32c; then
3452 # This is for crt0.o
3453 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3454 # This is for r8c.ld
3455 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3456 # This is for libnosys.a
3457 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3460 esac
3462 # Makefile fragments.
3463 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3465 eval fragval=\$$frag
3466 if test $fragval != /dev/null; then
3467 eval $frag=${srcdir}/$fragval
3469 done
3475 # Miscellanea: directories, flags, etc.
3483 # Build module lists & subconfigure args.
3487 # Host module lists & subconfigure args.
3491 # Target module lists & subconfigure args.
3495 # Build tools.
3499 # Generate default definitions for YACC, M4, LEX and other programs that run
3500 # on the build machine. These are used if the Makefile can't locate these
3501 # programs in objdir.
3502 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3504 for ac_prog in 'bison -y' byacc yacc
3506 # Extract the first word of "$ac_prog", so it can be a program name with args.
3507 set dummy $ac_prog; ac_word=$2
3508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3509 echo "configure:3510: checking for $ac_word" >&5
3510 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3512 else
3513 if test -n "$YACC"; then
3514 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3515 else
3516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3517 ac_dummy="$PATH"
3518 for ac_dir in $ac_dummy; do
3519 test -z "$ac_dir" && ac_dir=.
3520 if test -f $ac_dir/$ac_word; then
3521 ac_cv_prog_YACC="$ac_prog"
3522 break
3524 done
3525 IFS="$ac_save_ifs"
3528 YACC="$ac_cv_prog_YACC"
3529 if test -n "$YACC"; then
3530 echo "$ac_t""$YACC" 1>&6
3531 else
3532 echo "$ac_t""no" 1>&6
3535 test -n "$YACC" && break
3536 done
3537 test -n "$YACC" || YACC="$MISSING bison -y"
3539 case " $build_configdirs " in
3540 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3541 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3542 esac
3544 for ac_prog in bison
3546 # Extract the first word of "$ac_prog", so it can be a program name with args.
3547 set dummy $ac_prog; ac_word=$2
3548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3549 echo "configure:3550: checking for $ac_word" >&5
3550 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3552 else
3553 if test -n "$BISON"; then
3554 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3555 else
3556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3557 ac_dummy="$PATH"
3558 for ac_dir in $ac_dummy; do
3559 test -z "$ac_dir" && ac_dir=.
3560 if test -f $ac_dir/$ac_word; then
3561 ac_cv_prog_BISON="$ac_prog"
3562 break
3564 done
3565 IFS="$ac_save_ifs"
3568 BISON="$ac_cv_prog_BISON"
3569 if test -n "$BISON"; then
3570 echo "$ac_t""$BISON" 1>&6
3571 else
3572 echo "$ac_t""no" 1>&6
3575 test -n "$BISON" && break
3576 done
3577 test -n "$BISON" || BISON="$MISSING bison"
3579 case " $build_configdirs " in
3580 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3581 esac
3583 for ac_prog in gm4 gnum4 m4
3585 # Extract the first word of "$ac_prog", so it can be a program name with args.
3586 set dummy $ac_prog; ac_word=$2
3587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3588 echo "configure:3589: checking for $ac_word" >&5
3589 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3590 echo $ac_n "(cached) $ac_c" 1>&6
3591 else
3592 if test -n "$M4"; then
3593 ac_cv_prog_M4="$M4" # Let the user override the test.
3594 else
3595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3596 ac_dummy="$PATH"
3597 for ac_dir in $ac_dummy; do
3598 test -z "$ac_dir" && ac_dir=.
3599 if test -f $ac_dir/$ac_word; then
3600 ac_cv_prog_M4="$ac_prog"
3601 break
3603 done
3604 IFS="$ac_save_ifs"
3607 M4="$ac_cv_prog_M4"
3608 if test -n "$M4"; then
3609 echo "$ac_t""$M4" 1>&6
3610 else
3611 echo "$ac_t""no" 1>&6
3614 test -n "$M4" && break
3615 done
3616 test -n "$M4" || M4="$MISSING m4"
3618 case " $build_configdirs " in
3619 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3620 esac
3622 for ac_prog in flex lex
3624 # Extract the first word of "$ac_prog", so it can be a program name with args.
3625 set dummy $ac_prog; ac_word=$2
3626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3627 echo "configure:3628: checking for $ac_word" >&5
3628 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3630 else
3631 if test -n "$LEX"; then
3632 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3633 else
3634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3635 ac_dummy="$PATH"
3636 for ac_dir in $ac_dummy; do
3637 test -z "$ac_dir" && ac_dir=.
3638 if test -f $ac_dir/$ac_word; then
3639 ac_cv_prog_LEX="$ac_prog"
3640 break
3642 done
3643 IFS="$ac_save_ifs"
3646 LEX="$ac_cv_prog_LEX"
3647 if test -n "$LEX"; then
3648 echo "$ac_t""$LEX" 1>&6
3649 else
3650 echo "$ac_t""no" 1>&6
3653 test -n "$LEX" && break
3654 done
3655 test -n "$LEX" || LEX="$MISSING flex"
3657 case " $build_configdirs " in
3658 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3659 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3660 esac
3662 for ac_prog in flex
3664 # Extract the first word of "$ac_prog", so it can be a program name with args.
3665 set dummy $ac_prog; ac_word=$2
3666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3667 echo "configure:3668: checking for $ac_word" >&5
3668 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3670 else
3671 if test -n "$FLEX"; then
3672 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3673 else
3674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3675 ac_dummy="$PATH"
3676 for ac_dir in $ac_dummy; do
3677 test -z "$ac_dir" && ac_dir=.
3678 if test -f $ac_dir/$ac_word; then
3679 ac_cv_prog_FLEX="$ac_prog"
3680 break
3682 done
3683 IFS="$ac_save_ifs"
3686 FLEX="$ac_cv_prog_FLEX"
3687 if test -n "$FLEX"; then
3688 echo "$ac_t""$FLEX" 1>&6
3689 else
3690 echo "$ac_t""no" 1>&6
3693 test -n "$FLEX" && break
3694 done
3695 test -n "$FLEX" || FLEX="$MISSING flex"
3697 case " $build_configdirs " in
3698 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3699 esac
3701 for ac_prog in makeinfo
3703 # Extract the first word of "$ac_prog", so it can be a program name with args.
3704 set dummy $ac_prog; ac_word=$2
3705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3706 echo "configure:3707: checking for $ac_word" >&5
3707 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3708 echo $ac_n "(cached) $ac_c" 1>&6
3709 else
3710 if test -n "$MAKEINFO"; then
3711 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3712 else
3713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3714 ac_dummy="$PATH"
3715 for ac_dir in $ac_dummy; do
3716 test -z "$ac_dir" && ac_dir=.
3717 if test -f $ac_dir/$ac_word; then
3718 ac_cv_prog_MAKEINFO="$ac_prog"
3719 break
3721 done
3722 IFS="$ac_save_ifs"
3725 MAKEINFO="$ac_cv_prog_MAKEINFO"
3726 if test -n "$MAKEINFO"; then
3727 echo "$ac_t""$MAKEINFO" 1>&6
3728 else
3729 echo "$ac_t""no" 1>&6
3732 test -n "$MAKEINFO" && break
3733 done
3734 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3736 case " $build_configdirs " in
3737 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3740 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3741 # higher, else we use the "missing" dummy.
3742 if ${MAKEINFO} --version \
3743 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3745 else
3746 MAKEINFO="$MISSING makeinfo"
3750 esac
3752 # FIXME: expect and dejagnu may become build tools?
3754 for ac_prog in expect
3756 # Extract the first word of "$ac_prog", so it can be a program name with args.
3757 set dummy $ac_prog; ac_word=$2
3758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3759 echo "configure:3760: checking for $ac_word" >&5
3760 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3762 else
3763 if test -n "$EXPECT"; then
3764 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3765 else
3766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3767 ac_dummy="$PATH"
3768 for ac_dir in $ac_dummy; do
3769 test -z "$ac_dir" && ac_dir=.
3770 if test -f $ac_dir/$ac_word; then
3771 ac_cv_prog_EXPECT="$ac_prog"
3772 break
3774 done
3775 IFS="$ac_save_ifs"
3778 EXPECT="$ac_cv_prog_EXPECT"
3779 if test -n "$EXPECT"; then
3780 echo "$ac_t""$EXPECT" 1>&6
3781 else
3782 echo "$ac_t""no" 1>&6
3785 test -n "$EXPECT" && break
3786 done
3787 test -n "$EXPECT" || EXPECT="expect"
3789 case " $configdirs " in
3790 *" expect "*)
3791 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3793 esac
3795 for ac_prog in runtest
3797 # Extract the first word of "$ac_prog", so it can be a program name with args.
3798 set dummy $ac_prog; ac_word=$2
3799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3800 echo "configure:3801: checking for $ac_word" >&5
3801 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3803 else
3804 if test -n "$RUNTEST"; then
3805 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3806 else
3807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3808 ac_dummy="$PATH"
3809 for ac_dir in $ac_dummy; do
3810 test -z "$ac_dir" && ac_dir=.
3811 if test -f $ac_dir/$ac_word; then
3812 ac_cv_prog_RUNTEST="$ac_prog"
3813 break
3815 done
3816 IFS="$ac_save_ifs"
3819 RUNTEST="$ac_cv_prog_RUNTEST"
3820 if test -n "$RUNTEST"; then
3821 echo "$ac_t""$RUNTEST" 1>&6
3822 else
3823 echo "$ac_t""no" 1>&6
3826 test -n "$RUNTEST" && break
3827 done
3828 test -n "$RUNTEST" || RUNTEST="runtest"
3830 case " $configdirs " in
3831 *" dejagnu "*)
3832 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
3834 esac
3837 # Host tools.
3838 ncn_tool_prefix=
3839 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3840 ncn_target_tool_prefix=
3841 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3843 for ncn_progname in ar; do
3844 if test -n "$ncn_tool_prefix"; then
3845 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3846 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3848 echo "configure:3849: checking for $ac_word" >&5
3849 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3850 echo $ac_n "(cached) $ac_c" 1>&6
3851 else
3852 if test -n "$AR"; then
3853 ac_cv_prog_AR="$AR" # Let the user override the test.
3854 else
3855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3856 ac_dummy="$PATH"
3857 for ac_dir in $ac_dummy; do
3858 test -z "$ac_dir" && ac_dir=.
3859 if test -f $ac_dir/$ac_word; then
3860 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3861 break
3863 done
3864 IFS="$ac_save_ifs"
3867 AR="$ac_cv_prog_AR"
3868 if test -n "$AR"; then
3869 echo "$ac_t""$AR" 1>&6
3870 else
3871 echo "$ac_t""no" 1>&6
3875 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3877 set dummy ${ncn_progname}; ac_word=$2
3878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3879 echo "configure:3880: checking for $ac_word" >&5
3880 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3881 echo $ac_n "(cached) $ac_c" 1>&6
3882 else
3883 if test -n "$AR"; then
3884 ac_cv_prog_AR="$AR" # Let the user override the test.
3885 else
3886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3887 ac_dummy="$PATH"
3888 for ac_dir in $ac_dummy; do
3889 test -z "$ac_dir" && ac_dir=.
3890 if test -f $ac_dir/$ac_word; then
3891 ac_cv_prog_AR="${ncn_progname}"
3892 break
3894 done
3895 IFS="$ac_save_ifs"
3898 AR="$ac_cv_prog_AR"
3899 if test -n "$AR"; then
3900 echo "$ac_t""$AR" 1>&6
3901 else
3902 echo "$ac_t""no" 1>&6
3906 test -n "$ac_cv_prog_AR" && break
3907 done
3909 if test -z "$ac_cv_prog_AR" ; then
3910 set dummy ar
3911 if test $build = $host ; then
3912 AR="$2"
3913 else
3914 AR="${ncn_tool_prefix}$2"
3918 for ncn_progname in as; do
3919 if test -n "$ncn_tool_prefix"; then
3920 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3921 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3923 echo "configure:3924: checking for $ac_word" >&5
3924 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3925 echo $ac_n "(cached) $ac_c" 1>&6
3926 else
3927 if test -n "$AS"; then
3928 ac_cv_prog_AS="$AS" # Let the user override the test.
3929 else
3930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3931 ac_dummy="$PATH"
3932 for ac_dir in $ac_dummy; do
3933 test -z "$ac_dir" && ac_dir=.
3934 if test -f $ac_dir/$ac_word; then
3935 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3936 break
3938 done
3939 IFS="$ac_save_ifs"
3942 AS="$ac_cv_prog_AS"
3943 if test -n "$AS"; then
3944 echo "$ac_t""$AS" 1>&6
3945 else
3946 echo "$ac_t""no" 1>&6
3950 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3951 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3952 set dummy ${ncn_progname}; ac_word=$2
3953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3954 echo "configure:3955: checking for $ac_word" >&5
3955 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3957 else
3958 if test -n "$AS"; then
3959 ac_cv_prog_AS="$AS" # Let the user override the test.
3960 else
3961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3962 ac_dummy="$PATH"
3963 for ac_dir in $ac_dummy; do
3964 test -z "$ac_dir" && ac_dir=.
3965 if test -f $ac_dir/$ac_word; then
3966 ac_cv_prog_AS="${ncn_progname}"
3967 break
3969 done
3970 IFS="$ac_save_ifs"
3973 AS="$ac_cv_prog_AS"
3974 if test -n "$AS"; then
3975 echo "$ac_t""$AS" 1>&6
3976 else
3977 echo "$ac_t""no" 1>&6
3981 test -n "$ac_cv_prog_AS" && break
3982 done
3984 if test -z "$ac_cv_prog_AS" ; then
3985 set dummy as
3986 if test $build = $host ; then
3987 AS="$2"
3988 else
3989 AS="${ncn_tool_prefix}$2"
3993 for ncn_progname in dlltool; do
3994 if test -n "$ncn_tool_prefix"; then
3995 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3996 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3998 echo "configure:3999: checking for $ac_word" >&5
3999 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4001 else
4002 if test -n "$DLLTOOL"; then
4003 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4004 else
4005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4006 ac_dummy="$PATH"
4007 for ac_dir in $ac_dummy; do
4008 test -z "$ac_dir" && ac_dir=.
4009 if test -f $ac_dir/$ac_word; then
4010 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
4011 break
4013 done
4014 IFS="$ac_save_ifs"
4017 DLLTOOL="$ac_cv_prog_DLLTOOL"
4018 if test -n "$DLLTOOL"; then
4019 echo "$ac_t""$DLLTOOL" 1>&6
4020 else
4021 echo "$ac_t""no" 1>&6
4025 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
4026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4027 set dummy ${ncn_progname}; ac_word=$2
4028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4029 echo "configure:4030: checking for $ac_word" >&5
4030 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4032 else
4033 if test -n "$DLLTOOL"; then
4034 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4035 else
4036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4037 ac_dummy="$PATH"
4038 for ac_dir in $ac_dummy; do
4039 test -z "$ac_dir" && ac_dir=.
4040 if test -f $ac_dir/$ac_word; then
4041 ac_cv_prog_DLLTOOL="${ncn_progname}"
4042 break
4044 done
4045 IFS="$ac_save_ifs"
4048 DLLTOOL="$ac_cv_prog_DLLTOOL"
4049 if test -n "$DLLTOOL"; then
4050 echo "$ac_t""$DLLTOOL" 1>&6
4051 else
4052 echo "$ac_t""no" 1>&6
4056 test -n "$ac_cv_prog_DLLTOOL" && break
4057 done
4059 if test -z "$ac_cv_prog_DLLTOOL" ; then
4060 set dummy dlltool
4061 if test $build = $host ; then
4062 DLLTOOL="$2"
4063 else
4064 DLLTOOL="${ncn_tool_prefix}$2"
4068 for ncn_progname in ld; do
4069 if test -n "$ncn_tool_prefix"; then
4070 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4071 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4073 echo "configure:4074: checking for $ac_word" >&5
4074 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4076 else
4077 if test -n "$LD"; then
4078 ac_cv_prog_LD="$LD" # Let the user override the test.
4079 else
4080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4081 ac_dummy="$PATH"
4082 for ac_dir in $ac_dummy; do
4083 test -z "$ac_dir" && ac_dir=.
4084 if test -f $ac_dir/$ac_word; then
4085 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4086 break
4088 done
4089 IFS="$ac_save_ifs"
4092 LD="$ac_cv_prog_LD"
4093 if test -n "$LD"; then
4094 echo "$ac_t""$LD" 1>&6
4095 else
4096 echo "$ac_t""no" 1>&6
4100 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4102 set dummy ${ncn_progname}; ac_word=$2
4103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4104 echo "configure:4105: checking for $ac_word" >&5
4105 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4107 else
4108 if test -n "$LD"; then
4109 ac_cv_prog_LD="$LD" # Let the user override the test.
4110 else
4111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4112 ac_dummy="$PATH"
4113 for ac_dir in $ac_dummy; do
4114 test -z "$ac_dir" && ac_dir=.
4115 if test -f $ac_dir/$ac_word; then
4116 ac_cv_prog_LD="${ncn_progname}"
4117 break
4119 done
4120 IFS="$ac_save_ifs"
4123 LD="$ac_cv_prog_LD"
4124 if test -n "$LD"; then
4125 echo "$ac_t""$LD" 1>&6
4126 else
4127 echo "$ac_t""no" 1>&6
4131 test -n "$ac_cv_prog_LD" && break
4132 done
4134 if test -z "$ac_cv_prog_LD" ; then
4135 set dummy ld
4136 if test $build = $host ; then
4137 LD="$2"
4138 else
4139 LD="${ncn_tool_prefix}$2"
4143 for ncn_progname in lipo; do
4144 if test -n "$ncn_tool_prefix"; then
4145 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4146 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4148 echo "configure:4149: checking for $ac_word" >&5
4149 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4151 else
4152 if test -n "$LIPO"; then
4153 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4154 else
4155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4156 ac_dummy="$PATH"
4157 for ac_dir in $ac_dummy; do
4158 test -z "$ac_dir" && ac_dir=.
4159 if test -f $ac_dir/$ac_word; then
4160 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4161 break
4163 done
4164 IFS="$ac_save_ifs"
4167 LIPO="$ac_cv_prog_LIPO"
4168 if test -n "$LIPO"; then
4169 echo "$ac_t""$LIPO" 1>&6
4170 else
4171 echo "$ac_t""no" 1>&6
4175 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4177 set dummy ${ncn_progname}; ac_word=$2
4178 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4179 echo "configure:4180: checking for $ac_word" >&5
4180 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4182 else
4183 if test -n "$LIPO"; then
4184 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4185 else
4186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4187 ac_dummy="$PATH"
4188 for ac_dir in $ac_dummy; do
4189 test -z "$ac_dir" && ac_dir=.
4190 if test -f $ac_dir/$ac_word; then
4191 ac_cv_prog_LIPO="${ncn_progname}"
4192 break
4194 done
4195 IFS="$ac_save_ifs"
4198 LIPO="$ac_cv_prog_LIPO"
4199 if test -n "$LIPO"; then
4200 echo "$ac_t""$LIPO" 1>&6
4201 else
4202 echo "$ac_t""no" 1>&6
4206 test -n "$ac_cv_prog_LIPO" && break
4207 done
4209 if test -z "$ac_cv_prog_LIPO" ; then
4210 set dummy lipo
4211 if test $build = $host ; then
4212 LIPO="$2"
4213 else
4214 LIPO="${ncn_tool_prefix}$2"
4218 for ncn_progname in nm; do
4219 if test -n "$ncn_tool_prefix"; then
4220 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4221 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4223 echo "configure:4224: checking for $ac_word" >&5
4224 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4226 else
4227 if test -n "$NM"; then
4228 ac_cv_prog_NM="$NM" # Let the user override the test.
4229 else
4230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4231 ac_dummy="$PATH"
4232 for ac_dir in $ac_dummy; do
4233 test -z "$ac_dir" && ac_dir=.
4234 if test -f $ac_dir/$ac_word; then
4235 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4236 break
4238 done
4239 IFS="$ac_save_ifs"
4242 NM="$ac_cv_prog_NM"
4243 if test -n "$NM"; then
4244 echo "$ac_t""$NM" 1>&6
4245 else
4246 echo "$ac_t""no" 1>&6
4250 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4252 set dummy ${ncn_progname}; ac_word=$2
4253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4254 echo "configure:4255: checking for $ac_word" >&5
4255 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4256 echo $ac_n "(cached) $ac_c" 1>&6
4257 else
4258 if test -n "$NM"; then
4259 ac_cv_prog_NM="$NM" # Let the user override the test.
4260 else
4261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4262 ac_dummy="$PATH"
4263 for ac_dir in $ac_dummy; do
4264 test -z "$ac_dir" && ac_dir=.
4265 if test -f $ac_dir/$ac_word; then
4266 ac_cv_prog_NM="${ncn_progname}"
4267 break
4269 done
4270 IFS="$ac_save_ifs"
4273 NM="$ac_cv_prog_NM"
4274 if test -n "$NM"; then
4275 echo "$ac_t""$NM" 1>&6
4276 else
4277 echo "$ac_t""no" 1>&6
4281 test -n "$ac_cv_prog_NM" && break
4282 done
4284 if test -z "$ac_cv_prog_NM" ; then
4285 set dummy nm
4286 if test $build = $host ; then
4287 NM="$2"
4288 else
4289 NM="${ncn_tool_prefix}$2"
4293 for ncn_progname in ranlib; do
4294 if test -n "$ncn_tool_prefix"; then
4295 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4296 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4298 echo "configure:4299: checking for $ac_word" >&5
4299 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4301 else
4302 if test -n "$RANLIB"; then
4303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4304 else
4305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4306 ac_dummy="$PATH"
4307 for ac_dir in $ac_dummy; do
4308 test -z "$ac_dir" && ac_dir=.
4309 if test -f $ac_dir/$ac_word; then
4310 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4311 break
4313 done
4314 IFS="$ac_save_ifs"
4317 RANLIB="$ac_cv_prog_RANLIB"
4318 if test -n "$RANLIB"; then
4319 echo "$ac_t""$RANLIB" 1>&6
4320 else
4321 echo "$ac_t""no" 1>&6
4325 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4327 set dummy ${ncn_progname}; ac_word=$2
4328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4329 echo "configure:4330: checking for $ac_word" >&5
4330 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4332 else
4333 if test -n "$RANLIB"; then
4334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4335 else
4336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4337 ac_dummy="$PATH"
4338 for ac_dir in $ac_dummy; do
4339 test -z "$ac_dir" && ac_dir=.
4340 if test -f $ac_dir/$ac_word; then
4341 ac_cv_prog_RANLIB="${ncn_progname}"
4342 break
4344 done
4345 IFS="$ac_save_ifs"
4348 RANLIB="$ac_cv_prog_RANLIB"
4349 if test -n "$RANLIB"; then
4350 echo "$ac_t""$RANLIB" 1>&6
4351 else
4352 echo "$ac_t""no" 1>&6
4356 test -n "$ac_cv_prog_RANLIB" && break
4357 done
4359 if test -z "$ac_cv_prog_RANLIB" ; then
4360 RANLIB=":"
4363 for ncn_progname in strip; do
4364 if test -n "$ncn_tool_prefix"; then
4365 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4366 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4368 echo "configure:4369: checking for $ac_word" >&5
4369 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4371 else
4372 if test -n "$STRIP"; then
4373 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4374 else
4375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4376 ac_dummy="$PATH"
4377 for ac_dir in $ac_dummy; do
4378 test -z "$ac_dir" && ac_dir=.
4379 if test -f $ac_dir/$ac_word; then
4380 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4381 break
4383 done
4384 IFS="$ac_save_ifs"
4387 STRIP="$ac_cv_prog_STRIP"
4388 if test -n "$STRIP"; then
4389 echo "$ac_t""$STRIP" 1>&6
4390 else
4391 echo "$ac_t""no" 1>&6
4395 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4397 set dummy ${ncn_progname}; ac_word=$2
4398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4399 echo "configure:4400: checking for $ac_word" >&5
4400 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4402 else
4403 if test -n "$STRIP"; then
4404 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4405 else
4406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4407 ac_dummy="$PATH"
4408 for ac_dir in $ac_dummy; do
4409 test -z "$ac_dir" && ac_dir=.
4410 if test -f $ac_dir/$ac_word; then
4411 ac_cv_prog_STRIP="${ncn_progname}"
4412 break
4414 done
4415 IFS="$ac_save_ifs"
4418 STRIP="$ac_cv_prog_STRIP"
4419 if test -n "$STRIP"; then
4420 echo "$ac_t""$STRIP" 1>&6
4421 else
4422 echo "$ac_t""no" 1>&6
4426 test -n "$ac_cv_prog_STRIP" && break
4427 done
4429 if test -z "$ac_cv_prog_STRIP" ; then
4430 STRIP=":"
4433 for ncn_progname in windres; do
4434 if test -n "$ncn_tool_prefix"; then
4435 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4436 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4438 echo "configure:4439: checking for $ac_word" >&5
4439 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4440 echo $ac_n "(cached) $ac_c" 1>&6
4441 else
4442 if test -n "$WINDRES"; then
4443 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4444 else
4445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4446 ac_dummy="$PATH"
4447 for ac_dir in $ac_dummy; do
4448 test -z "$ac_dir" && ac_dir=.
4449 if test -f $ac_dir/$ac_word; then
4450 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4451 break
4453 done
4454 IFS="$ac_save_ifs"
4457 WINDRES="$ac_cv_prog_WINDRES"
4458 if test -n "$WINDRES"; then
4459 echo "$ac_t""$WINDRES" 1>&6
4460 else
4461 echo "$ac_t""no" 1>&6
4465 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4467 set dummy ${ncn_progname}; ac_word=$2
4468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4469 echo "configure:4470: checking for $ac_word" >&5
4470 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6
4472 else
4473 if test -n "$WINDRES"; then
4474 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4475 else
4476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4477 ac_dummy="$PATH"
4478 for ac_dir in $ac_dummy; do
4479 test -z "$ac_dir" && ac_dir=.
4480 if test -f $ac_dir/$ac_word; then
4481 ac_cv_prog_WINDRES="${ncn_progname}"
4482 break
4484 done
4485 IFS="$ac_save_ifs"
4488 WINDRES="$ac_cv_prog_WINDRES"
4489 if test -n "$WINDRES"; then
4490 echo "$ac_t""$WINDRES" 1>&6
4491 else
4492 echo "$ac_t""no" 1>&6
4496 test -n "$ac_cv_prog_WINDRES" && break
4497 done
4499 if test -z "$ac_cv_prog_WINDRES" ; then
4500 set dummy windres
4501 if test $build = $host ; then
4502 WINDRES="$2"
4503 else
4504 WINDRES="${ncn_tool_prefix}$2"
4508 for ncn_progname in objcopy; do
4509 if test -n "$ncn_tool_prefix"; then
4510 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4511 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4513 echo "configure:4514: checking for $ac_word" >&5
4514 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4515 echo $ac_n "(cached) $ac_c" 1>&6
4516 else
4517 if test -n "$OBJCOPY"; then
4518 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4519 else
4520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4521 ac_dummy="$PATH"
4522 for ac_dir in $ac_dummy; do
4523 test -z "$ac_dir" && ac_dir=.
4524 if test -f $ac_dir/$ac_word; then
4525 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4526 break
4528 done
4529 IFS="$ac_save_ifs"
4532 OBJCOPY="$ac_cv_prog_OBJCOPY"
4533 if test -n "$OBJCOPY"; then
4534 echo "$ac_t""$OBJCOPY" 1>&6
4535 else
4536 echo "$ac_t""no" 1>&6
4540 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4542 set dummy ${ncn_progname}; ac_word=$2
4543 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4544 echo "configure:4545: checking for $ac_word" >&5
4545 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4546 echo $ac_n "(cached) $ac_c" 1>&6
4547 else
4548 if test -n "$OBJCOPY"; then
4549 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4550 else
4551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4552 ac_dummy="$PATH"
4553 for ac_dir in $ac_dummy; do
4554 test -z "$ac_dir" && ac_dir=.
4555 if test -f $ac_dir/$ac_word; then
4556 ac_cv_prog_OBJCOPY="${ncn_progname}"
4557 break
4559 done
4560 IFS="$ac_save_ifs"
4563 OBJCOPY="$ac_cv_prog_OBJCOPY"
4564 if test -n "$OBJCOPY"; then
4565 echo "$ac_t""$OBJCOPY" 1>&6
4566 else
4567 echo "$ac_t""no" 1>&6
4571 test -n "$ac_cv_prog_OBJCOPY" && break
4572 done
4574 if test -z "$ac_cv_prog_OBJCOPY" ; then
4575 set dummy objcopy
4576 if test $build = $host ; then
4577 OBJCOPY="$2"
4578 else
4579 OBJCOPY="${ncn_tool_prefix}$2"
4583 for ncn_progname in objdump; do
4584 if test -n "$ncn_tool_prefix"; then
4585 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4586 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4588 echo "configure:4589: checking for $ac_word" >&5
4589 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4591 else
4592 if test -n "$OBJDUMP"; then
4593 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4594 else
4595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4596 ac_dummy="$PATH"
4597 for ac_dir in $ac_dummy; do
4598 test -z "$ac_dir" && ac_dir=.
4599 if test -f $ac_dir/$ac_word; then
4600 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4601 break
4603 done
4604 IFS="$ac_save_ifs"
4607 OBJDUMP="$ac_cv_prog_OBJDUMP"
4608 if test -n "$OBJDUMP"; then
4609 echo "$ac_t""$OBJDUMP" 1>&6
4610 else
4611 echo "$ac_t""no" 1>&6
4615 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4617 set dummy ${ncn_progname}; ac_word=$2
4618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4619 echo "configure:4620: checking for $ac_word" >&5
4620 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4622 else
4623 if test -n "$OBJDUMP"; then
4624 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4625 else
4626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4627 ac_dummy="$PATH"
4628 for ac_dir in $ac_dummy; do
4629 test -z "$ac_dir" && ac_dir=.
4630 if test -f $ac_dir/$ac_word; then
4631 ac_cv_prog_OBJDUMP="${ncn_progname}"
4632 break
4634 done
4635 IFS="$ac_save_ifs"
4638 OBJDUMP="$ac_cv_prog_OBJDUMP"
4639 if test -n "$OBJDUMP"; then
4640 echo "$ac_t""$OBJDUMP" 1>&6
4641 else
4642 echo "$ac_t""no" 1>&6
4646 test -n "$ac_cv_prog_OBJDUMP" && break
4647 done
4649 if test -z "$ac_cv_prog_OBJDUMP" ; then
4650 set dummy objdump
4651 if test $build = $host ; then
4652 OBJDUMP="$2"
4653 else
4654 OBJDUMP="${ncn_tool_prefix}$2"
4664 # Target tools.
4665 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4666 if test "${with_build_time_tools+set}" = set; then
4667 withval="$with_build_time_tools"
4668 case x"$withval" in
4669 x/*) ;;
4671 with_build_time_tools=
4672 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4674 esac
4675 else
4676 with_build_time_tools=
4680 if test -n "$with_build_time_tools"; then
4681 for ncn_progname in cc gcc; do
4682 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4683 echo "configure:4684: checking for ${ncn_progname} in $with_build_time_tools" >&5
4684 if test -x $with_build_time_tools/${ncn_progname}; then
4685 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4686 echo "$ac_t""yes" 1>&6
4687 break
4688 else
4689 echo "$ac_t""no" 1>&6
4691 done
4694 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4695 for ncn_progname in cc gcc; do
4696 if test -n "$ncn_target_tool_prefix"; then
4697 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4698 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4700 echo "configure:4701: checking for $ac_word" >&5
4701 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4702 echo $ac_n "(cached) $ac_c" 1>&6
4703 else
4704 if test -n "$CC_FOR_TARGET"; then
4705 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4706 else
4707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4708 ac_dummy="$PATH"
4709 for ac_dir in $ac_dummy; do
4710 test -z "$ac_dir" && ac_dir=.
4711 if test -f $ac_dir/$ac_word; then
4712 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4713 break
4715 done
4716 IFS="$ac_save_ifs"
4719 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4720 if test -n "$CC_FOR_TARGET"; then
4721 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4722 else
4723 echo "$ac_t""no" 1>&6
4727 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4729 set dummy ${ncn_progname}; ac_word=$2
4730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4731 echo "configure:4732: checking for $ac_word" >&5
4732 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4734 else
4735 if test -n "$CC_FOR_TARGET"; then
4736 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4737 else
4738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4739 ac_dummy="$PATH"
4740 for ac_dir in $ac_dummy; do
4741 test -z "$ac_dir" && ac_dir=.
4742 if test -f $ac_dir/$ac_word; then
4743 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4744 break
4746 done
4747 IFS="$ac_save_ifs"
4750 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4751 if test -n "$CC_FOR_TARGET"; then
4752 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4753 else
4754 echo "$ac_t""no" 1>&6
4758 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4759 done
4762 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4763 set dummy cc gcc
4764 if test $build = $target ; then
4765 CC_FOR_TARGET="$2"
4766 else
4767 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4771 if test -n "$with_build_time_tools"; then
4772 for ncn_progname in c++ g++ cxx gxx; do
4773 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4774 echo "configure:4775: checking for ${ncn_progname} in $with_build_time_tools" >&5
4775 if test -x $with_build_time_tools/${ncn_progname}; then
4776 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4777 echo "$ac_t""yes" 1>&6
4778 break
4779 else
4780 echo "$ac_t""no" 1>&6
4782 done
4785 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4786 for ncn_progname in c++ g++ cxx gxx; do
4787 if test -n "$ncn_target_tool_prefix"; then
4788 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4789 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4791 echo "configure:4792: checking for $ac_word" >&5
4792 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4794 else
4795 if test -n "$CXX_FOR_TARGET"; then
4796 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4797 else
4798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4799 ac_dummy="$PATH"
4800 for ac_dir in $ac_dummy; do
4801 test -z "$ac_dir" && ac_dir=.
4802 if test -f $ac_dir/$ac_word; then
4803 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4804 break
4806 done
4807 IFS="$ac_save_ifs"
4810 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4811 if test -n "$CXX_FOR_TARGET"; then
4812 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4813 else
4814 echo "$ac_t""no" 1>&6
4818 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4820 set dummy ${ncn_progname}; ac_word=$2
4821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4822 echo "configure:4823: checking for $ac_word" >&5
4823 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4824 echo $ac_n "(cached) $ac_c" 1>&6
4825 else
4826 if test -n "$CXX_FOR_TARGET"; then
4827 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4828 else
4829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4830 ac_dummy="$PATH"
4831 for ac_dir in $ac_dummy; do
4832 test -z "$ac_dir" && ac_dir=.
4833 if test -f $ac_dir/$ac_word; then
4834 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4835 break
4837 done
4838 IFS="$ac_save_ifs"
4841 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4842 if test -n "$CXX_FOR_TARGET"; then
4843 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4844 else
4845 echo "$ac_t""no" 1>&6
4849 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4850 done
4853 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4854 set dummy c++ g++ cxx gxx
4855 if test $build = $target ; then
4856 CXX_FOR_TARGET="$2"
4857 else
4858 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4862 if test -n "$with_build_time_tools"; then
4863 for ncn_progname in gcc; do
4864 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4865 echo "configure:4866: checking for ${ncn_progname} in $with_build_time_tools" >&5
4866 if test -x $with_build_time_tools/${ncn_progname}; then
4867 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4868 echo "$ac_t""yes" 1>&6
4869 break
4870 else
4871 echo "$ac_t""no" 1>&6
4873 done
4876 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4877 for ncn_progname in gcc; do
4878 if test -n "$ncn_target_tool_prefix"; then
4879 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4880 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4882 echo "configure:4883: checking for $ac_word" >&5
4883 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4885 else
4886 if test -n "$GCC_FOR_TARGET"; then
4887 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4888 else
4889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4890 ac_dummy="$PATH"
4891 for ac_dir in $ac_dummy; do
4892 test -z "$ac_dir" && ac_dir=.
4893 if test -f $ac_dir/$ac_word; then
4894 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4895 break
4897 done
4898 IFS="$ac_save_ifs"
4901 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4902 if test -n "$GCC_FOR_TARGET"; then
4903 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4904 else
4905 echo "$ac_t""no" 1>&6
4909 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4911 set dummy ${ncn_progname}; ac_word=$2
4912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4913 echo "configure:4914: checking for $ac_word" >&5
4914 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4915 echo $ac_n "(cached) $ac_c" 1>&6
4916 else
4917 if test -n "$GCC_FOR_TARGET"; then
4918 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4919 else
4920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4921 ac_dummy="$PATH"
4922 for ac_dir in $ac_dummy; do
4923 test -z "$ac_dir" && ac_dir=.
4924 if test -f $ac_dir/$ac_word; then
4925 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4926 break
4928 done
4929 IFS="$ac_save_ifs"
4932 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4933 if test -n "$GCC_FOR_TARGET"; then
4934 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4935 else
4936 echo "$ac_t""no" 1>&6
4940 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4941 done
4944 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4945 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4948 if test -n "$with_build_time_tools"; then
4949 for ncn_progname in gcj; do
4950 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4951 echo "configure:4952: checking for ${ncn_progname} in $with_build_time_tools" >&5
4952 if test -x $with_build_time_tools/${ncn_progname}; then
4953 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4954 echo "$ac_t""yes" 1>&6
4955 break
4956 else
4957 echo "$ac_t""no" 1>&6
4959 done
4962 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4963 for ncn_progname in gcj; do
4964 if test -n "$ncn_target_tool_prefix"; then
4965 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4966 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4968 echo "configure:4969: checking for $ac_word" >&5
4969 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4970 echo $ac_n "(cached) $ac_c" 1>&6
4971 else
4972 if test -n "$GCJ_FOR_TARGET"; then
4973 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4974 else
4975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4976 ac_dummy="$PATH"
4977 for ac_dir in $ac_dummy; do
4978 test -z "$ac_dir" && ac_dir=.
4979 if test -f $ac_dir/$ac_word; then
4980 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4981 break
4983 done
4984 IFS="$ac_save_ifs"
4987 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4988 if test -n "$GCJ_FOR_TARGET"; then
4989 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4990 else
4991 echo "$ac_t""no" 1>&6
4995 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4997 set dummy ${ncn_progname}; ac_word=$2
4998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4999 echo "configure:5000: checking for $ac_word" >&5
5000 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
5001 echo $ac_n "(cached) $ac_c" 1>&6
5002 else
5003 if test -n "$GCJ_FOR_TARGET"; then
5004 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
5005 else
5006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5007 ac_dummy="$PATH"
5008 for ac_dir in $ac_dummy; do
5009 test -z "$ac_dir" && ac_dir=.
5010 if test -f $ac_dir/$ac_word; then
5011 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5012 break
5014 done
5015 IFS="$ac_save_ifs"
5018 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5019 if test -n "$GCJ_FOR_TARGET"; then
5020 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
5021 else
5022 echo "$ac_t""no" 1>&6
5026 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
5027 done
5030 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
5031 set dummy gcj
5032 if test $build = $target ; then
5033 GCJ_FOR_TARGET="$2"
5034 else
5035 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
5039 if test -n "$with_build_time_tools"; then
5040 for ncn_progname in gfortran; do
5041 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5042 echo "configure:5043: checking for ${ncn_progname} in $with_build_time_tools" >&5
5043 if test -x $with_build_time_tools/${ncn_progname}; then
5044 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5045 echo "$ac_t""yes" 1>&6
5046 break
5047 else
5048 echo "$ac_t""no" 1>&6
5050 done
5053 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
5054 for ncn_progname in gfortran; do
5055 if test -n "$ncn_target_tool_prefix"; then
5056 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5057 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5059 echo "configure:5060: checking for $ac_word" >&5
5060 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5061 echo $ac_n "(cached) $ac_c" 1>&6
5062 else
5063 if test -n "$GFORTRAN_FOR_TARGET"; then
5064 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5065 else
5066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5067 ac_dummy="$PATH"
5068 for ac_dir in $ac_dummy; do
5069 test -z "$ac_dir" && ac_dir=.
5070 if test -f $ac_dir/$ac_word; then
5071 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5072 break
5074 done
5075 IFS="$ac_save_ifs"
5078 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5079 if test -n "$GFORTRAN_FOR_TARGET"; then
5080 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5081 else
5082 echo "$ac_t""no" 1>&6
5086 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5088 set dummy ${ncn_progname}; ac_word=$2
5089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5090 echo "configure:5091: checking for $ac_word" >&5
5091 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5093 else
5094 if test -n "$GFORTRAN_FOR_TARGET"; then
5095 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5096 else
5097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5098 ac_dummy="$PATH"
5099 for ac_dir in $ac_dummy; do
5100 test -z "$ac_dir" && ac_dir=.
5101 if test -f $ac_dir/$ac_word; then
5102 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5103 break
5105 done
5106 IFS="$ac_save_ifs"
5109 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5110 if test -n "$GFORTRAN_FOR_TARGET"; then
5111 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5112 else
5113 echo "$ac_t""no" 1>&6
5117 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5118 done
5121 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5122 set dummy gfortran
5123 if test $build = $target ; then
5124 GFORTRAN_FOR_TARGET="$2"
5125 else
5126 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5132 # The user is always right.
5133 if test "${PATH_SEPARATOR+set}" != set; then
5134 echo "#! /bin/sh" >conf$$.sh
5135 echo "exit 0" >>conf$$.sh
5136 chmod +x conf$$.sh
5137 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5138 PATH_SEPARATOR=';'
5139 else
5140 PATH_SEPARATOR=:
5142 rm -f conf$$.sh
5147 if test "x$exec_prefix" = xNONE; then
5148 if test "x$prefix" = xNONE; then
5149 gcc_cv_tool_prefix=$ac_default_prefix
5150 else
5151 gcc_cv_tool_prefix=$prefix
5153 else
5154 gcc_cv_tool_prefix=$exec_prefix
5157 # If there is no compiler in the tree, use the PATH only. In any
5158 # case, if there is no compiler in the tree nobody should use
5159 # AS_FOR_TARGET and LD_FOR_TARGET.
5160 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5161 gcc_version=`cat $srcdir/gcc/BASE-VER`
5162 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5163 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5164 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5165 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5166 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5167 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5168 else
5169 gcc_cv_tool_dirs=
5172 if test x$build = x$target && test -n "$md_exec_prefix"; then
5173 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5178 cat > conftest.c << \EOF
5179 #ifdef __GNUC__
5180 gcc_yay;
5181 #endif
5183 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5184 have_gcc_for_target=yes
5185 else
5186 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5187 have_gcc_for_target=no
5189 rm conftest.c
5194 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5195 if test -n "$with_build_time_tools"; then
5196 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5197 echo "configure:5198: checking for ar in $with_build_time_tools" >&5
5198 if test -x $with_build_time_tools/ar; then
5199 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
5200 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5201 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5202 else
5203 echo "$ac_t""no" 1>&6
5205 elif test $build != $host && test $have_gcc_for_target = yes; then
5206 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5207 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5208 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5211 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5212 # Extract the first word of "ar", so it can be a program name with args.
5213 set dummy ar; ac_word=$2
5214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5215 echo "configure:5216: checking for $ac_word" >&5
5216 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5217 echo $ac_n "(cached) $ac_c" 1>&6
5218 else
5219 case "$AR_FOR_TARGET" in
5221 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5223 ?:/*)
5224 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5228 ac_dummy="$gcc_cv_tool_dirs"
5229 for ac_dir in $ac_dummy; do
5230 test -z "$ac_dir" && ac_dir=.
5231 if test -f $ac_dir/$ac_word; then
5232 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
5233 break
5235 done
5236 IFS="$ac_save_ifs"
5238 esac
5240 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5241 if test -n "$AR_FOR_TARGET"; then
5242 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5243 else
5244 echo "$ac_t""no" 1>&6
5248 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5249 if test -n "$with_build_time_tools"; then
5250 for ncn_progname in ar; do
5251 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5252 echo "configure:5253: checking for ${ncn_progname} in $with_build_time_tools" >&5
5253 if test -x $with_build_time_tools/${ncn_progname}; then
5254 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5255 echo "$ac_t""yes" 1>&6
5256 break
5257 else
5258 echo "$ac_t""no" 1>&6
5260 done
5263 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5264 for ncn_progname in ar; do
5265 if test -n "$ncn_target_tool_prefix"; then
5266 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5267 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5268 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5269 echo "configure:5270: checking for $ac_word" >&5
5270 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5272 else
5273 if test -n "$AR_FOR_TARGET"; then
5274 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5275 else
5276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5277 ac_dummy="$PATH"
5278 for ac_dir in $ac_dummy; do
5279 test -z "$ac_dir" && ac_dir=.
5280 if test -f $ac_dir/$ac_word; then
5281 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5282 break
5284 done
5285 IFS="$ac_save_ifs"
5288 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5289 if test -n "$AR_FOR_TARGET"; then
5290 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5291 else
5292 echo "$ac_t""no" 1>&6
5296 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5298 set dummy ${ncn_progname}; ac_word=$2
5299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5300 echo "configure:5301: checking for $ac_word" >&5
5301 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5302 echo $ac_n "(cached) $ac_c" 1>&6
5303 else
5304 if test -n "$AR_FOR_TARGET"; then
5305 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5306 else
5307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5308 ac_dummy="$PATH"
5309 for ac_dir in $ac_dummy; do
5310 test -z "$ac_dir" && ac_dir=.
5311 if test -f $ac_dir/$ac_word; then
5312 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5313 break
5315 done
5316 IFS="$ac_save_ifs"
5319 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5320 if test -n "$AR_FOR_TARGET"; then
5321 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5322 else
5323 echo "$ac_t""no" 1>&6
5327 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5328 done
5331 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5332 set dummy ar
5333 if test $build = $target ; then
5334 AR_FOR_TARGET="$2"
5335 else
5336 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
5340 else
5341 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5347 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5348 if test -n "$with_build_time_tools"; then
5349 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5350 echo "configure:5351: checking for as in $with_build_time_tools" >&5
5351 if test -x $with_build_time_tools/as; then
5352 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
5353 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5354 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5355 else
5356 echo "$ac_t""no" 1>&6
5358 elif test $build != $host && test $have_gcc_for_target = yes; then
5359 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5360 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5361 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5364 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5365 # Extract the first word of "as", so it can be a program name with args.
5366 set dummy as; ac_word=$2
5367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5368 echo "configure:5369: checking for $ac_word" >&5
5369 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5371 else
5372 case "$AS_FOR_TARGET" in
5374 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5376 ?:/*)
5377 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5381 ac_dummy="$gcc_cv_tool_dirs"
5382 for ac_dir in $ac_dummy; do
5383 test -z "$ac_dir" && ac_dir=.
5384 if test -f $ac_dir/$ac_word; then
5385 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5386 break
5388 done
5389 IFS="$ac_save_ifs"
5391 esac
5393 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5394 if test -n "$AS_FOR_TARGET"; then
5395 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5396 else
5397 echo "$ac_t""no" 1>&6
5401 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5402 if test -n "$with_build_time_tools"; then
5403 for ncn_progname in as; do
5404 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5405 echo "configure:5406: checking for ${ncn_progname} in $with_build_time_tools" >&5
5406 if test -x $with_build_time_tools/${ncn_progname}; then
5407 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5408 echo "$ac_t""yes" 1>&6
5409 break
5410 else
5411 echo "$ac_t""no" 1>&6
5413 done
5416 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5417 for ncn_progname in as; do
5418 if test -n "$ncn_target_tool_prefix"; then
5419 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5420 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5422 echo "configure:5423: checking for $ac_word" >&5
5423 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5424 echo $ac_n "(cached) $ac_c" 1>&6
5425 else
5426 if test -n "$AS_FOR_TARGET"; then
5427 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5428 else
5429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5430 ac_dummy="$PATH"
5431 for ac_dir in $ac_dummy; do
5432 test -z "$ac_dir" && ac_dir=.
5433 if test -f $ac_dir/$ac_word; then
5434 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5435 break
5437 done
5438 IFS="$ac_save_ifs"
5441 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5442 if test -n "$AS_FOR_TARGET"; then
5443 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5444 else
5445 echo "$ac_t""no" 1>&6
5449 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5451 set dummy ${ncn_progname}; ac_word=$2
5452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5453 echo "configure:5454: checking for $ac_word" >&5
5454 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5455 echo $ac_n "(cached) $ac_c" 1>&6
5456 else
5457 if test -n "$AS_FOR_TARGET"; then
5458 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5459 else
5460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5461 ac_dummy="$PATH"
5462 for ac_dir in $ac_dummy; do
5463 test -z "$ac_dir" && ac_dir=.
5464 if test -f $ac_dir/$ac_word; then
5465 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5466 break
5468 done
5469 IFS="$ac_save_ifs"
5472 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5473 if test -n "$AS_FOR_TARGET"; then
5474 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5475 else
5476 echo "$ac_t""no" 1>&6
5480 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5481 done
5484 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5485 set dummy as
5486 if test $build = $target ; then
5487 AS_FOR_TARGET="$2"
5488 else
5489 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5493 else
5494 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5500 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5501 if test -n "$with_build_time_tools"; then
5502 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5503 echo "configure:5504: checking for dlltool in $with_build_time_tools" >&5
5504 if test -x $with_build_time_tools/dlltool; then
5505 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
5506 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5507 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5508 else
5509 echo "$ac_t""no" 1>&6
5511 elif test $build != $host && test $have_gcc_for_target = yes; then
5512 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5513 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5514 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5517 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5518 # Extract the first word of "dlltool", so it can be a program name with args.
5519 set dummy dlltool; ac_word=$2
5520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5521 echo "configure:5522: checking for $ac_word" >&5
5522 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5524 else
5525 case "$DLLTOOL_FOR_TARGET" in
5527 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5529 ?:/*)
5530 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5534 ac_dummy="$gcc_cv_tool_dirs"
5535 for ac_dir in $ac_dummy; do
5536 test -z "$ac_dir" && ac_dir=.
5537 if test -f $ac_dir/$ac_word; then
5538 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5539 break
5541 done
5542 IFS="$ac_save_ifs"
5544 esac
5546 DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5547 if test -n "$DLLTOOL_FOR_TARGET"; then
5548 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5549 else
5550 echo "$ac_t""no" 1>&6
5554 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5555 if test -n "$with_build_time_tools"; then
5556 for ncn_progname in dlltool; do
5557 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5558 echo "configure:5559: checking for ${ncn_progname} in $with_build_time_tools" >&5
5559 if test -x $with_build_time_tools/${ncn_progname}; then
5560 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5561 echo "$ac_t""yes" 1>&6
5562 break
5563 else
5564 echo "$ac_t""no" 1>&6
5566 done
5569 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5570 for ncn_progname in dlltool; do
5571 if test -n "$ncn_target_tool_prefix"; then
5572 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5573 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5575 echo "configure:5576: checking for $ac_word" >&5
5576 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5577 echo $ac_n "(cached) $ac_c" 1>&6
5578 else
5579 if test -n "$DLLTOOL_FOR_TARGET"; then
5580 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5581 else
5582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5583 ac_dummy="$PATH"
5584 for ac_dir in $ac_dummy; do
5585 test -z "$ac_dir" && ac_dir=.
5586 if test -f $ac_dir/$ac_word; then
5587 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5588 break
5590 done
5591 IFS="$ac_save_ifs"
5594 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5595 if test -n "$DLLTOOL_FOR_TARGET"; then
5596 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5597 else
5598 echo "$ac_t""no" 1>&6
5602 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5604 set dummy ${ncn_progname}; ac_word=$2
5605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5606 echo "configure:5607: checking for $ac_word" >&5
5607 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5608 echo $ac_n "(cached) $ac_c" 1>&6
5609 else
5610 if test -n "$DLLTOOL_FOR_TARGET"; then
5611 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5612 else
5613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5614 ac_dummy="$PATH"
5615 for ac_dir in $ac_dummy; do
5616 test -z "$ac_dir" && ac_dir=.
5617 if test -f $ac_dir/$ac_word; then
5618 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5619 break
5621 done
5622 IFS="$ac_save_ifs"
5625 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5626 if test -n "$DLLTOOL_FOR_TARGET"; then
5627 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5628 else
5629 echo "$ac_t""no" 1>&6
5633 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5634 done
5637 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5638 set dummy dlltool
5639 if test $build = $target ; then
5640 DLLTOOL_FOR_TARGET="$2"
5641 else
5642 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5646 else
5647 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5653 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5654 if test -n "$with_build_time_tools"; then
5655 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5656 echo "configure:5657: checking for ld in $with_build_time_tools" >&5
5657 if test -x $with_build_time_tools/ld; then
5658 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
5659 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5660 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5661 else
5662 echo "$ac_t""no" 1>&6
5664 elif test $build != $host && test $have_gcc_for_target = yes; then
5665 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5666 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5667 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5670 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5671 # Extract the first word of "ld", so it can be a program name with args.
5672 set dummy ld; ac_word=$2
5673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5674 echo "configure:5675: checking for $ac_word" >&5
5675 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5676 echo $ac_n "(cached) $ac_c" 1>&6
5677 else
5678 case "$LD_FOR_TARGET" in
5680 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5682 ?:/*)
5683 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5687 ac_dummy="$gcc_cv_tool_dirs"
5688 for ac_dir in $ac_dummy; do
5689 test -z "$ac_dir" && ac_dir=.
5690 if test -f $ac_dir/$ac_word; then
5691 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5692 break
5694 done
5695 IFS="$ac_save_ifs"
5697 esac
5699 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5700 if test -n "$LD_FOR_TARGET"; then
5701 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5702 else
5703 echo "$ac_t""no" 1>&6
5707 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5708 if test -n "$with_build_time_tools"; then
5709 for ncn_progname in ld; do
5710 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5711 echo "configure:5712: checking for ${ncn_progname} in $with_build_time_tools" >&5
5712 if test -x $with_build_time_tools/${ncn_progname}; then
5713 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5714 echo "$ac_t""yes" 1>&6
5715 break
5716 else
5717 echo "$ac_t""no" 1>&6
5719 done
5722 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5723 for ncn_progname in ld; do
5724 if test -n "$ncn_target_tool_prefix"; then
5725 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5726 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5728 echo "configure:5729: checking for $ac_word" >&5
5729 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5730 echo $ac_n "(cached) $ac_c" 1>&6
5731 else
5732 if test -n "$LD_FOR_TARGET"; then
5733 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5734 else
5735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5736 ac_dummy="$PATH"
5737 for ac_dir in $ac_dummy; do
5738 test -z "$ac_dir" && ac_dir=.
5739 if test -f $ac_dir/$ac_word; then
5740 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5741 break
5743 done
5744 IFS="$ac_save_ifs"
5747 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5748 if test -n "$LD_FOR_TARGET"; then
5749 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5750 else
5751 echo "$ac_t""no" 1>&6
5755 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5757 set dummy ${ncn_progname}; ac_word=$2
5758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5759 echo "configure:5760: checking for $ac_word" >&5
5760 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5761 echo $ac_n "(cached) $ac_c" 1>&6
5762 else
5763 if test -n "$LD_FOR_TARGET"; then
5764 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5765 else
5766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5767 ac_dummy="$PATH"
5768 for ac_dir in $ac_dummy; do
5769 test -z "$ac_dir" && ac_dir=.
5770 if test -f $ac_dir/$ac_word; then
5771 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5772 break
5774 done
5775 IFS="$ac_save_ifs"
5778 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5779 if test -n "$LD_FOR_TARGET"; then
5780 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5781 else
5782 echo "$ac_t""no" 1>&6
5786 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5787 done
5790 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5791 set dummy ld
5792 if test $build = $target ; then
5793 LD_FOR_TARGET="$2"
5794 else
5795 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5799 else
5800 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5806 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5807 if test -n "$with_build_time_tools"; then
5808 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5809 echo "configure:5810: checking for lipo in $with_build_time_tools" >&5
5810 if test -x $with_build_time_tools/lipo; then
5811 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
5812 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5813 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5814 else
5815 echo "$ac_t""no" 1>&6
5817 elif test $build != $host && test $have_gcc_for_target = yes; then
5818 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5819 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5820 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5823 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5824 # Extract the first word of "lipo", so it can be a program name with args.
5825 set dummy lipo; ac_word=$2
5826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5827 echo "configure:5828: checking for $ac_word" >&5
5828 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5829 echo $ac_n "(cached) $ac_c" 1>&6
5830 else
5831 case "$LIPO_FOR_TARGET" in
5833 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5835 ?:/*)
5836 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5840 ac_dummy="$gcc_cv_tool_dirs"
5841 for ac_dir in $ac_dummy; do
5842 test -z "$ac_dir" && ac_dir=.
5843 if test -f $ac_dir/$ac_word; then
5844 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5845 break
5847 done
5848 IFS="$ac_save_ifs"
5850 esac
5852 LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5853 if test -n "$LIPO_FOR_TARGET"; then
5854 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5855 else
5856 echo "$ac_t""no" 1>&6
5860 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5861 if test -n "$with_build_time_tools"; then
5862 for ncn_progname in lipo; do
5863 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5864 echo "configure:5865: checking for ${ncn_progname} in $with_build_time_tools" >&5
5865 if test -x $with_build_time_tools/${ncn_progname}; then
5866 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5867 echo "$ac_t""yes" 1>&6
5868 break
5869 else
5870 echo "$ac_t""no" 1>&6
5872 done
5875 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5876 for ncn_progname in lipo; do
5877 if test -n "$ncn_target_tool_prefix"; then
5878 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5879 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5881 echo "configure:5882: checking for $ac_word" >&5
5882 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5883 echo $ac_n "(cached) $ac_c" 1>&6
5884 else
5885 if test -n "$LIPO_FOR_TARGET"; then
5886 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5887 else
5888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5889 ac_dummy="$PATH"
5890 for ac_dir in $ac_dummy; do
5891 test -z "$ac_dir" && ac_dir=.
5892 if test -f $ac_dir/$ac_word; then
5893 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5894 break
5896 done
5897 IFS="$ac_save_ifs"
5900 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5901 if test -n "$LIPO_FOR_TARGET"; then
5902 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5903 else
5904 echo "$ac_t""no" 1>&6
5908 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5910 set dummy ${ncn_progname}; ac_word=$2
5911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5912 echo "configure:5913: checking for $ac_word" >&5
5913 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5914 echo $ac_n "(cached) $ac_c" 1>&6
5915 else
5916 if test -n "$LIPO_FOR_TARGET"; then
5917 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5918 else
5919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5920 ac_dummy="$PATH"
5921 for ac_dir in $ac_dummy; do
5922 test -z "$ac_dir" && ac_dir=.
5923 if test -f $ac_dir/$ac_word; then
5924 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5925 break
5927 done
5928 IFS="$ac_save_ifs"
5931 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5932 if test -n "$LIPO_FOR_TARGET"; then
5933 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5934 else
5935 echo "$ac_t""no" 1>&6
5939 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5940 done
5943 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5944 set dummy lipo
5945 if test $build = $target ; then
5946 LIPO_FOR_TARGET="$2"
5947 else
5948 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5952 else
5953 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
5959 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5960 if test -n "$with_build_time_tools"; then
5961 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5962 echo "configure:5963: checking for nm in $with_build_time_tools" >&5
5963 if test -x $with_build_time_tools/nm; then
5964 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
5965 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5966 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5967 else
5968 echo "$ac_t""no" 1>&6
5970 elif test $build != $host && test $have_gcc_for_target = yes; then
5971 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
5972 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
5973 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5976 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5977 # Extract the first word of "nm", so it can be a program name with args.
5978 set dummy nm; ac_word=$2
5979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5980 echo "configure:5981: checking for $ac_word" >&5
5981 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5982 echo $ac_n "(cached) $ac_c" 1>&6
5983 else
5984 case "$NM_FOR_TARGET" in
5986 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
5988 ?:/*)
5989 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5993 ac_dummy="$gcc_cv_tool_dirs"
5994 for ac_dir in $ac_dummy; do
5995 test -z "$ac_dir" && ac_dir=.
5996 if test -f $ac_dir/$ac_word; then
5997 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
5998 break
6000 done
6001 IFS="$ac_save_ifs"
6003 esac
6005 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
6006 if test -n "$NM_FOR_TARGET"; then
6007 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6008 else
6009 echo "$ac_t""no" 1>&6
6013 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6014 if test -n "$with_build_time_tools"; then
6015 for ncn_progname in nm; do
6016 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6017 echo "configure:6018: checking for ${ncn_progname} in $with_build_time_tools" >&5
6018 if test -x $with_build_time_tools/${ncn_progname}; then
6019 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6020 echo "$ac_t""yes" 1>&6
6021 break
6022 else
6023 echo "$ac_t""no" 1>&6
6025 done
6028 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
6029 for ncn_progname in nm; do
6030 if test -n "$ncn_target_tool_prefix"; then
6031 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6032 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6034 echo "configure:6035: checking for $ac_word" >&5
6035 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6036 echo $ac_n "(cached) $ac_c" 1>&6
6037 else
6038 if test -n "$NM_FOR_TARGET"; then
6039 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6040 else
6041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6042 ac_dummy="$PATH"
6043 for ac_dir in $ac_dummy; do
6044 test -z "$ac_dir" && ac_dir=.
6045 if test -f $ac_dir/$ac_word; then
6046 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6047 break
6049 done
6050 IFS="$ac_save_ifs"
6053 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6054 if test -n "$NM_FOR_TARGET"; then
6055 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6056 else
6057 echo "$ac_t""no" 1>&6
6061 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
6062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6063 set dummy ${ncn_progname}; ac_word=$2
6064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6065 echo "configure:6066: checking for $ac_word" >&5
6066 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6068 else
6069 if test -n "$NM_FOR_TARGET"; then
6070 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
6071 else
6072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6073 ac_dummy="$PATH"
6074 for ac_dir in $ac_dummy; do
6075 test -z "$ac_dir" && ac_dir=.
6076 if test -f $ac_dir/$ac_word; then
6077 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
6078 break
6080 done
6081 IFS="$ac_save_ifs"
6084 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
6085 if test -n "$NM_FOR_TARGET"; then
6086 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6087 else
6088 echo "$ac_t""no" 1>&6
6092 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6093 done
6096 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6097 set dummy nm
6098 if test $build = $target ; then
6099 NM_FOR_TARGET="$2"
6100 else
6101 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
6105 else
6106 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
6112 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6113 if test -n "$with_build_time_tools"; then
6114 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6115 echo "configure:6116: checking for objdump in $with_build_time_tools" >&5
6116 if test -x $with_build_time_tools/objdump; then
6117 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
6118 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6119 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6120 else
6121 echo "$ac_t""no" 1>&6
6123 elif test $build != $host && test $have_gcc_for_target = yes; then
6124 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
6125 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
6126 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6129 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6130 # Extract the first word of "objdump", so it can be a program name with args.
6131 set dummy objdump; ac_word=$2
6132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6133 echo "configure:6134: checking for $ac_word" >&5
6134 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6136 else
6137 case "$OBJDUMP_FOR_TARGET" in
6139 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6141 ?:/*)
6142 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6146 ac_dummy="$gcc_cv_tool_dirs"
6147 for ac_dir in $ac_dummy; do
6148 test -z "$ac_dir" && ac_dir=.
6149 if test -f $ac_dir/$ac_word; then
6150 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6151 break
6153 done
6154 IFS="$ac_save_ifs"
6156 esac
6158 OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6159 if test -n "$OBJDUMP_FOR_TARGET"; then
6160 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6161 else
6162 echo "$ac_t""no" 1>&6
6166 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6167 if test -n "$with_build_time_tools"; then
6168 for ncn_progname in objdump; do
6169 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6170 echo "configure:6171: checking for ${ncn_progname} in $with_build_time_tools" >&5
6171 if test -x $with_build_time_tools/${ncn_progname}; then
6172 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6173 echo "$ac_t""yes" 1>&6
6174 break
6175 else
6176 echo "$ac_t""no" 1>&6
6178 done
6181 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6182 for ncn_progname in objdump; do
6183 if test -n "$ncn_target_tool_prefix"; then
6184 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6185 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6187 echo "configure:6188: checking for $ac_word" >&5
6188 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6189 echo $ac_n "(cached) $ac_c" 1>&6
6190 else
6191 if test -n "$OBJDUMP_FOR_TARGET"; then
6192 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6193 else
6194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6195 ac_dummy="$PATH"
6196 for ac_dir in $ac_dummy; do
6197 test -z "$ac_dir" && ac_dir=.
6198 if test -f $ac_dir/$ac_word; then
6199 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6200 break
6202 done
6203 IFS="$ac_save_ifs"
6206 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6207 if test -n "$OBJDUMP_FOR_TARGET"; then
6208 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6209 else
6210 echo "$ac_t""no" 1>&6
6214 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6216 set dummy ${ncn_progname}; ac_word=$2
6217 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6218 echo "configure:6219: checking for $ac_word" >&5
6219 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6220 echo $ac_n "(cached) $ac_c" 1>&6
6221 else
6222 if test -n "$OBJDUMP_FOR_TARGET"; then
6223 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6224 else
6225 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6226 ac_dummy="$PATH"
6227 for ac_dir in $ac_dummy; do
6228 test -z "$ac_dir" && ac_dir=.
6229 if test -f $ac_dir/$ac_word; then
6230 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6231 break
6233 done
6234 IFS="$ac_save_ifs"
6237 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6238 if test -n "$OBJDUMP_FOR_TARGET"; then
6239 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6240 else
6241 echo "$ac_t""no" 1>&6
6245 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6246 done
6249 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6250 set dummy objdump
6251 if test $build = $target ; then
6252 OBJDUMP_FOR_TARGET="$2"
6253 else
6254 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6258 else
6259 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
6265 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6266 if test -n "$with_build_time_tools"; then
6267 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6268 echo "configure:6269: checking for ranlib in $with_build_time_tools" >&5
6269 if test -x $with_build_time_tools/ranlib; then
6270 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
6271 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6272 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6273 else
6274 echo "$ac_t""no" 1>&6
6276 elif test $build != $host && test $have_gcc_for_target = yes; then
6277 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6278 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6279 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6282 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6283 # Extract the first word of "ranlib", so it can be a program name with args.
6284 set dummy ranlib; ac_word=$2
6285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6286 echo "configure:6287: checking for $ac_word" >&5
6287 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6288 echo $ac_n "(cached) $ac_c" 1>&6
6289 else
6290 case "$RANLIB_FOR_TARGET" in
6292 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6294 ?:/*)
6295 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6299 ac_dummy="$gcc_cv_tool_dirs"
6300 for ac_dir in $ac_dummy; do
6301 test -z "$ac_dir" && ac_dir=.
6302 if test -f $ac_dir/$ac_word; then
6303 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6304 break
6306 done
6307 IFS="$ac_save_ifs"
6309 esac
6311 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6312 if test -n "$RANLIB_FOR_TARGET"; then
6313 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6314 else
6315 echo "$ac_t""no" 1>&6
6319 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6320 if test -n "$with_build_time_tools"; then
6321 for ncn_progname in ranlib; do
6322 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6323 echo "configure:6324: checking for ${ncn_progname} in $with_build_time_tools" >&5
6324 if test -x $with_build_time_tools/${ncn_progname}; then
6325 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6326 echo "$ac_t""yes" 1>&6
6327 break
6328 else
6329 echo "$ac_t""no" 1>&6
6331 done
6334 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6335 for ncn_progname in ranlib; do
6336 if test -n "$ncn_target_tool_prefix"; then
6337 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6338 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6340 echo "configure:6341: checking for $ac_word" >&5
6341 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6342 echo $ac_n "(cached) $ac_c" 1>&6
6343 else
6344 if test -n "$RANLIB_FOR_TARGET"; then
6345 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6346 else
6347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6348 ac_dummy="$PATH"
6349 for ac_dir in $ac_dummy; do
6350 test -z "$ac_dir" && ac_dir=.
6351 if test -f $ac_dir/$ac_word; then
6352 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6353 break
6355 done
6356 IFS="$ac_save_ifs"
6359 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6360 if test -n "$RANLIB_FOR_TARGET"; then
6361 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6362 else
6363 echo "$ac_t""no" 1>&6
6367 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6369 set dummy ${ncn_progname}; ac_word=$2
6370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6371 echo "configure:6372: checking for $ac_word" >&5
6372 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6373 echo $ac_n "(cached) $ac_c" 1>&6
6374 else
6375 if test -n "$RANLIB_FOR_TARGET"; then
6376 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6377 else
6378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6379 ac_dummy="$PATH"
6380 for ac_dir in $ac_dummy; do
6381 test -z "$ac_dir" && ac_dir=.
6382 if test -f $ac_dir/$ac_word; then
6383 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6384 break
6386 done
6387 IFS="$ac_save_ifs"
6390 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6391 if test -n "$RANLIB_FOR_TARGET"; then
6392 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6393 else
6394 echo "$ac_t""no" 1>&6
6398 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6399 done
6402 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6403 set dummy ranlib
6404 if test $build = $target ; then
6405 RANLIB_FOR_TARGET="$2"
6406 else
6407 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
6411 else
6412 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
6418 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6419 if test -n "$with_build_time_tools"; then
6420 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6421 echo "configure:6422: checking for strip in $with_build_time_tools" >&5
6422 if test -x $with_build_time_tools/strip; then
6423 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
6424 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6425 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6426 else
6427 echo "$ac_t""no" 1>&6
6429 elif test $build != $host && test $have_gcc_for_target = yes; then
6430 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6431 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6432 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6435 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6436 # Extract the first word of "strip", so it can be a program name with args.
6437 set dummy strip; ac_word=$2
6438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6439 echo "configure:6440: checking for $ac_word" >&5
6440 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6441 echo $ac_n "(cached) $ac_c" 1>&6
6442 else
6443 case "$STRIP_FOR_TARGET" in
6445 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6447 ?:/*)
6448 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6452 ac_dummy="$gcc_cv_tool_dirs"
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_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6457 break
6459 done
6460 IFS="$ac_save_ifs"
6462 esac
6464 STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6465 if test -n "$STRIP_FOR_TARGET"; then
6466 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6467 else
6468 echo "$ac_t""no" 1>&6
6472 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6473 if test -n "$with_build_time_tools"; then
6474 for ncn_progname in strip; do
6475 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6476 echo "configure:6477: checking for ${ncn_progname} in $with_build_time_tools" >&5
6477 if test -x $with_build_time_tools/${ncn_progname}; then
6478 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6479 echo "$ac_t""yes" 1>&6
6480 break
6481 else
6482 echo "$ac_t""no" 1>&6
6484 done
6487 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6488 for ncn_progname in strip; do
6489 if test -n "$ncn_target_tool_prefix"; then
6490 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6491 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6492 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6493 echo "configure:6494: checking for $ac_word" >&5
6494 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6495 echo $ac_n "(cached) $ac_c" 1>&6
6496 else
6497 if test -n "$STRIP_FOR_TARGET"; then
6498 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6499 else
6500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6501 ac_dummy="$PATH"
6502 for ac_dir in $ac_dummy; do
6503 test -z "$ac_dir" && ac_dir=.
6504 if test -f $ac_dir/$ac_word; then
6505 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6506 break
6508 done
6509 IFS="$ac_save_ifs"
6512 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6513 if test -n "$STRIP_FOR_TARGET"; then
6514 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6515 else
6516 echo "$ac_t""no" 1>&6
6520 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6522 set dummy ${ncn_progname}; ac_word=$2
6523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6524 echo "configure:6525: checking for $ac_word" >&5
6525 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6526 echo $ac_n "(cached) $ac_c" 1>&6
6527 else
6528 if test -n "$STRIP_FOR_TARGET"; then
6529 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6530 else
6531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6532 ac_dummy="$PATH"
6533 for ac_dir in $ac_dummy; do
6534 test -z "$ac_dir" && ac_dir=.
6535 if test -f $ac_dir/$ac_word; then
6536 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6537 break
6539 done
6540 IFS="$ac_save_ifs"
6543 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6544 if test -n "$STRIP_FOR_TARGET"; then
6545 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6546 else
6547 echo "$ac_t""no" 1>&6
6551 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6552 done
6555 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6556 set dummy strip
6557 if test $build = $target ; then
6558 STRIP_FOR_TARGET="$2"
6559 else
6560 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6564 else
6565 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
6571 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6572 if test -n "$with_build_time_tools"; then
6573 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6574 echo "configure:6575: checking for windres in $with_build_time_tools" >&5
6575 if test -x $with_build_time_tools/windres; then
6576 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
6577 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6578 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6579 else
6580 echo "$ac_t""no" 1>&6
6582 elif test $build != $host && test $have_gcc_for_target = yes; then
6583 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6584 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6585 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6588 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6589 # Extract the first word of "windres", so it can be a program name with args.
6590 set dummy windres; ac_word=$2
6591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6592 echo "configure:6593: checking for $ac_word" >&5
6593 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6594 echo $ac_n "(cached) $ac_c" 1>&6
6595 else
6596 case "$WINDRES_FOR_TARGET" in
6598 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6600 ?:/*)
6601 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6605 ac_dummy="$gcc_cv_tool_dirs"
6606 for ac_dir in $ac_dummy; do
6607 test -z "$ac_dir" && ac_dir=.
6608 if test -f $ac_dir/$ac_word; then
6609 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6610 break
6612 done
6613 IFS="$ac_save_ifs"
6615 esac
6617 WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6618 if test -n "$WINDRES_FOR_TARGET"; then
6619 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6620 else
6621 echo "$ac_t""no" 1>&6
6625 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6626 if test -n "$with_build_time_tools"; then
6627 for ncn_progname in windres; do
6628 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6629 echo "configure:6630: checking for ${ncn_progname} in $with_build_time_tools" >&5
6630 if test -x $with_build_time_tools/${ncn_progname}; then
6631 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6632 echo "$ac_t""yes" 1>&6
6633 break
6634 else
6635 echo "$ac_t""no" 1>&6
6637 done
6640 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6641 for ncn_progname in windres; do
6642 if test -n "$ncn_target_tool_prefix"; then
6643 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6644 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6646 echo "configure:6647: checking for $ac_word" >&5
6647 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6648 echo $ac_n "(cached) $ac_c" 1>&6
6649 else
6650 if test -n "$WINDRES_FOR_TARGET"; then
6651 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6652 else
6653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6654 ac_dummy="$PATH"
6655 for ac_dir in $ac_dummy; do
6656 test -z "$ac_dir" && ac_dir=.
6657 if test -f $ac_dir/$ac_word; then
6658 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6659 break
6661 done
6662 IFS="$ac_save_ifs"
6665 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6666 if test -n "$WINDRES_FOR_TARGET"; then
6667 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6668 else
6669 echo "$ac_t""no" 1>&6
6673 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6674 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6675 set dummy ${ncn_progname}; ac_word=$2
6676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6677 echo "configure:6678: checking for $ac_word" >&5
6678 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6679 echo $ac_n "(cached) $ac_c" 1>&6
6680 else
6681 if test -n "$WINDRES_FOR_TARGET"; then
6682 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6683 else
6684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6685 ac_dummy="$PATH"
6686 for ac_dir in $ac_dummy; do
6687 test -z "$ac_dir" && ac_dir=.
6688 if test -f $ac_dir/$ac_word; then
6689 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6690 break
6692 done
6693 IFS="$ac_save_ifs"
6696 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6697 if test -n "$WINDRES_FOR_TARGET"; then
6698 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6699 else
6700 echo "$ac_t""no" 1>&6
6704 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6705 done
6708 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6709 set dummy windres
6710 if test $build = $target ; then
6711 WINDRES_FOR_TARGET="$2"
6712 else
6713 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
6717 else
6718 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
6722 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6724 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6725 echo "configure:6726: checking where to find the target ar" >&5
6726 if test "x${build}" != "x${host}" ; then
6727 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6728 # We already found the complete path
6729 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6730 else
6731 # Canadian cross, just use what we found
6732 echo "$ac_t""pre-installed" 1>&6
6734 else
6735 ok=yes
6736 case " ${configdirs} " in
6737 *" binutils "*) ;;
6738 *) ok=no ;;
6739 esac
6741 if test $ok = yes; then
6742 # An in-tree tool is available and we can use it
6743 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6744 echo "$ac_t""just compiled" 1>&6
6745 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6746 # We already found the complete path
6747 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6748 elif test "x$target" = "x$host"; then
6749 # We can use an host tool
6750 AR_FOR_TARGET='$(AR)'
6751 echo "$ac_t""host tool" 1>&6
6752 else
6753 # We need a cross tool
6754 echo "$ac_t""pre-installed" 1>&6
6757 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6758 echo "configure:6759: checking where to find the target as" >&5
6759 if test "x${build}" != "x${host}" ; then
6760 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6761 # We already found the complete path
6762 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6763 else
6764 # Canadian cross, just use what we found
6765 echo "$ac_t""pre-installed" 1>&6
6767 else
6768 ok=yes
6769 case " ${configdirs} " in
6770 *" gas "*) ;;
6771 *) ok=no ;;
6772 esac
6774 if test $ok = yes; then
6775 # An in-tree tool is available and we can use it
6776 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6777 echo "$ac_t""just compiled" 1>&6
6778 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6779 # We already found the complete path
6780 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6781 elif test "x$target" = "x$host"; then
6782 # We can use an host tool
6783 AS_FOR_TARGET='$(AS)'
6784 echo "$ac_t""host tool" 1>&6
6785 else
6786 # We need a cross tool
6787 echo "$ac_t""pre-installed" 1>&6
6790 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6791 echo "configure:6792: checking where to find the target cc" >&5
6792 if test "x${build}" != "x${host}" ; then
6793 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6794 # We already found the complete path
6795 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6796 else
6797 # Canadian cross, just use what we found
6798 echo "$ac_t""pre-installed" 1>&6
6800 else
6801 ok=yes
6802 case " ${configdirs} " in
6803 *" gcc "*) ;;
6804 *) ok=no ;;
6805 esac
6807 if test $ok = yes; then
6808 # An in-tree tool is available and we can use it
6809 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6810 echo "$ac_t""just compiled" 1>&6
6811 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6812 # We already found the complete path
6813 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6814 elif test "x$target" = "x$host"; then
6815 # We can use an host tool
6816 CC_FOR_TARGET='$(CC)'
6817 echo "$ac_t""host tool" 1>&6
6818 else
6819 # We need a cross tool
6820 echo "$ac_t""pre-installed" 1>&6
6823 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6824 echo "configure:6825: checking where to find the target c++" >&5
6825 if test "x${build}" != "x${host}" ; then
6826 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6827 # We already found the complete path
6828 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6829 else
6830 # Canadian cross, just use what we found
6831 echo "$ac_t""pre-installed" 1>&6
6833 else
6834 ok=yes
6835 case " ${configdirs} " in
6836 *" gcc "*) ;;
6837 *) ok=no ;;
6838 esac
6839 case ,${enable_languages}, in
6840 *,c++,*) ;;
6841 *) ok=no ;;
6842 esac
6843 if test $ok = yes; then
6844 # An in-tree tool is available and we can use it
6845 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'
6846 echo "$ac_t""just compiled" 1>&6
6847 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6848 # We already found the complete path
6849 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6850 elif test "x$target" = "x$host"; then
6851 # We can use an host tool
6852 CXX_FOR_TARGET='$(CXX)'
6853 echo "$ac_t""host tool" 1>&6
6854 else
6855 # We need a cross tool
6856 echo "$ac_t""pre-installed" 1>&6
6859 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6860 echo "configure:6861: checking where to find the target c++ for libstdc++" >&5
6861 if test "x${build}" != "x${host}" ; then
6862 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6863 # We already found the complete path
6864 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6865 else
6866 # Canadian cross, just use what we found
6867 echo "$ac_t""pre-installed" 1>&6
6869 else
6870 ok=yes
6871 case " ${configdirs} " in
6872 *" gcc "*) ;;
6873 *) ok=no ;;
6874 esac
6875 case ,${enable_languages}, in
6876 *,c++,*) ;;
6877 *) ok=no ;;
6878 esac
6879 if test $ok = yes; then
6880 # An in-tree tool is available and we can use it
6881 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'
6882 echo "$ac_t""just compiled" 1>&6
6883 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6884 # We already found the complete path
6885 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6886 elif test "x$target" = "x$host"; then
6887 # We can use an host tool
6888 RAW_CXX_FOR_TARGET='$(CXX)'
6889 echo "$ac_t""host tool" 1>&6
6890 else
6891 # We need a cross tool
6892 echo "$ac_t""pre-installed" 1>&6
6895 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6896 echo "configure:6897: checking where to find the target dlltool" >&5
6897 if test "x${build}" != "x${host}" ; then
6898 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6899 # We already found the complete path
6900 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6901 else
6902 # Canadian cross, just use what we found
6903 echo "$ac_t""pre-installed" 1>&6
6905 else
6906 ok=yes
6907 case " ${configdirs} " in
6908 *" binutils "*) ;;
6909 *) ok=no ;;
6910 esac
6912 if test $ok = yes; then
6913 # An in-tree tool is available and we can use it
6914 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6915 echo "$ac_t""just compiled" 1>&6
6916 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6917 # We already found the complete path
6918 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6919 elif test "x$target" = "x$host"; then
6920 # We can use an host tool
6921 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
6922 echo "$ac_t""host tool" 1>&6
6923 else
6924 # We need a cross tool
6925 echo "$ac_t""pre-installed" 1>&6
6928 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6929 echo "configure:6930: checking where to find the target gcc" >&5
6930 if test "x${build}" != "x${host}" ; then
6931 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6932 # We already found the complete path
6933 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6934 else
6935 # Canadian cross, just use what we found
6936 echo "$ac_t""pre-installed" 1>&6
6938 else
6939 ok=yes
6940 case " ${configdirs} " in
6941 *" gcc "*) ;;
6942 *) ok=no ;;
6943 esac
6945 if test $ok = yes; then
6946 # An in-tree tool is available and we can use it
6947 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6948 echo "$ac_t""just compiled" 1>&6
6949 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6950 # We already found the complete path
6951 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6952 elif test "x$target" = "x$host"; then
6953 # We can use an host tool
6954 GCC_FOR_TARGET='$()'
6955 echo "$ac_t""host tool" 1>&6
6956 else
6957 # We need a cross tool
6958 echo "$ac_t""pre-installed" 1>&6
6961 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6962 echo "configure:6963: checking where to find the target gcj" >&5
6963 if test "x${build}" != "x${host}" ; then
6964 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6965 # We already found the complete path
6966 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6967 else
6968 # Canadian cross, just use what we found
6969 echo "$ac_t""pre-installed" 1>&6
6971 else
6972 ok=yes
6973 case " ${configdirs} " in
6974 *" gcc "*) ;;
6975 *) ok=no ;;
6976 esac
6977 case ,${enable_languages}, in
6978 *,java,*) ;;
6979 *) ok=no ;;
6980 esac
6981 if test $ok = yes; then
6982 # An in-tree tool is available and we can use it
6983 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6984 echo "$ac_t""just compiled" 1>&6
6985 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6986 # We already found the complete path
6987 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6988 elif test "x$target" = "x$host"; then
6989 # We can use an host tool
6990 GCJ_FOR_TARGET='$(GCJ)'
6991 echo "$ac_t""host tool" 1>&6
6992 else
6993 # We need a cross tool
6994 echo "$ac_t""pre-installed" 1>&6
6997 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6998 echo "configure:6999: checking where to find the target gfortran" >&5
6999 if test "x${build}" != "x${host}" ; then
7000 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
7001 # We already found the complete path
7002 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7003 else
7004 # Canadian cross, just use what we found
7005 echo "$ac_t""pre-installed" 1>&6
7007 else
7008 ok=yes
7009 case " ${configdirs} " in
7010 *" gcc "*) ;;
7011 *) ok=no ;;
7012 esac
7013 case ,${enable_languages}, in
7014 *,fortran,*) ;;
7015 *) ok=no ;;
7016 esac
7017 if test $ok = yes; then
7018 # An in-tree tool is available and we can use it
7019 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
7020 echo "$ac_t""just compiled" 1>&6
7021 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
7022 # We already found the complete path
7023 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7024 elif test "x$target" = "x$host"; then
7025 # We can use an host tool
7026 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
7027 echo "$ac_t""host tool" 1>&6
7028 else
7029 # We need a cross tool
7030 echo "$ac_t""pre-installed" 1>&6
7033 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
7034 echo "configure:7035: checking where to find the target ld" >&5
7035 if test "x${build}" != "x${host}" ; then
7036 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
7037 # We already found the complete path
7038 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7039 else
7040 # Canadian cross, just use what we found
7041 echo "$ac_t""pre-installed" 1>&6
7043 else
7044 ok=yes
7045 case " ${configdirs} " in
7046 *" ld "*) ;;
7047 *) ok=no ;;
7048 esac
7050 if test $ok = yes; then
7051 # An in-tree tool is available and we can use it
7052 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
7053 echo "$ac_t""just compiled" 1>&6
7054 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
7055 # We already found the complete path
7056 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7057 elif test "x$target" = "x$host"; then
7058 # We can use an host tool
7059 LD_FOR_TARGET='$(LD)'
7060 echo "$ac_t""host tool" 1>&6
7061 else
7062 # We need a cross tool
7063 echo "$ac_t""pre-installed" 1>&6
7066 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
7067 echo "configure:7068: checking where to find the target lipo" >&5
7068 if test "x${build}" != "x${host}" ; then
7069 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7070 # We already found the complete path
7071 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7072 else
7073 # Canadian cross, just use what we found
7074 echo "$ac_t""pre-installed" 1>&6
7076 else
7077 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
7078 # We already found the complete path
7079 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7080 elif test "x$target" = "x$host"; then
7081 # We can use an host tool
7082 LIPO_FOR_TARGET='$(LIPO)'
7083 echo "$ac_t""host tool" 1>&6
7084 else
7085 # We need a cross tool
7086 echo "$ac_t""pre-installed" 1>&6
7089 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
7090 echo "configure:7091: checking where to find the target nm" >&5
7091 if test "x${build}" != "x${host}" ; then
7092 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7093 # We already found the complete path
7094 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7095 else
7096 # Canadian cross, just use what we found
7097 echo "$ac_t""pre-installed" 1>&6
7099 else
7100 ok=yes
7101 case " ${configdirs} " in
7102 *" binutils "*) ;;
7103 *) ok=no ;;
7104 esac
7106 if test $ok = yes; then
7107 # An in-tree tool is available and we can use it
7108 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7109 echo "$ac_t""just compiled" 1>&6
7110 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7111 # We already found the complete path
7112 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7113 elif test "x$target" = "x$host"; then
7114 # We can use an host tool
7115 NM_FOR_TARGET='$(NM)'
7116 echo "$ac_t""host tool" 1>&6
7117 else
7118 # We need a cross tool
7119 echo "$ac_t""pre-installed" 1>&6
7122 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7123 echo "configure:7124: checking where to find the target objdump" >&5
7124 if test "x${build}" != "x${host}" ; then
7125 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7126 # We already found the complete path
7127 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7128 else
7129 # Canadian cross, just use what we found
7130 echo "$ac_t""pre-installed" 1>&6
7132 else
7133 ok=yes
7134 case " ${configdirs} " in
7135 *" binutils "*) ;;
7136 *) ok=no ;;
7137 esac
7139 if test $ok = yes; then
7140 # An in-tree tool is available and we can use it
7141 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
7142 echo "$ac_t""just compiled" 1>&6
7143 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7144 # We already found the complete path
7145 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7146 elif test "x$target" = "x$host"; then
7147 # We can use an host tool
7148 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
7149 echo "$ac_t""host tool" 1>&6
7150 else
7151 # We need a cross tool
7152 echo "$ac_t""pre-installed" 1>&6
7155 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7156 echo "configure:7157: checking where to find the target ranlib" >&5
7157 if test "x${build}" != "x${host}" ; then
7158 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7159 # We already found the complete path
7160 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7161 else
7162 # Canadian cross, just use what we found
7163 echo "$ac_t""pre-installed" 1>&6
7165 else
7166 ok=yes
7167 case " ${configdirs} " in
7168 *" binutils "*) ;;
7169 *) ok=no ;;
7170 esac
7172 if test $ok = yes; then
7173 # An in-tree tool is available and we can use it
7174 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7175 echo "$ac_t""just compiled" 1>&6
7176 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7177 # We already found the complete path
7178 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7179 elif test "x$target" = "x$host"; then
7180 # We can use an host tool
7181 RANLIB_FOR_TARGET='$(RANLIB)'
7182 echo "$ac_t""host tool" 1>&6
7183 else
7184 # We need a cross tool
7185 echo "$ac_t""pre-installed" 1>&6
7188 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7189 echo "configure:7190: checking where to find the target strip" >&5
7190 if test "x${build}" != "x${host}" ; then
7191 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7192 # We already found the complete path
7193 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7194 else
7195 # Canadian cross, just use what we found
7196 echo "$ac_t""pre-installed" 1>&6
7198 else
7199 ok=yes
7200 case " ${configdirs} " in
7201 *" binutils "*) ;;
7202 *) ok=no ;;
7203 esac
7205 if test $ok = yes; then
7206 # An in-tree tool is available and we can use it
7207 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7208 echo "$ac_t""just compiled" 1>&6
7209 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7210 # We already found the complete path
7211 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7212 elif test "x$target" = "x$host"; then
7213 # We can use an host tool
7214 STRIP_FOR_TARGET='$(STRIP)'
7215 echo "$ac_t""host tool" 1>&6
7216 else
7217 # We need a cross tool
7218 echo "$ac_t""pre-installed" 1>&6
7221 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7222 echo "configure:7223: checking where to find the target windres" >&5
7223 if test "x${build}" != "x${host}" ; then
7224 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7225 # We already found the complete path
7226 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7227 else
7228 # Canadian cross, just use what we found
7229 echo "$ac_t""pre-installed" 1>&6
7231 else
7232 ok=yes
7233 case " ${configdirs} " in
7234 *" binutils "*) ;;
7235 *) ok=no ;;
7236 esac
7238 if test $ok = yes; then
7239 # An in-tree tool is available and we can use it
7240 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7241 echo "$ac_t""just compiled" 1>&6
7242 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7243 # We already found the complete path
7244 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7245 elif test "x$target" = "x$host"; then
7246 # We can use an host tool
7247 WINDRES_FOR_TARGET='$(WINDRES)'
7248 echo "$ac_t""host tool" 1>&6
7249 else
7250 # We need a cross tool
7251 echo "$ac_t""pre-installed" 1>&6
7258 # Certain tools may need extra flags.
7259 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7260 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7261 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7263 # When building target libraries, except in a Canadian cross, we use
7264 # the same toolchain as the compiler we just built.
7265 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7266 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7267 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7268 if test $host = $build; then
7269 case " $configdirs " in
7270 *" gcc "*)
7271 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7272 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7273 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7275 esac
7282 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7283 echo "configure:7284: checking whether to enable maintainer-specific portions of Makefiles" >&5
7284 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7285 if test "${enable_maintainer_mode+set}" = set; then
7286 enableval="$enable_maintainer_mode"
7287 USE_MAINTAINER_MODE=$enableval
7288 else
7289 USE_MAINTAINER_MODE=no
7292 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7295 if test "$USE_MAINTAINER_MODE" = yes; then
7296 MAINTAINER_MODE_TRUE=
7297 MAINTAINER_MODE_FALSE='#'
7298 else
7299 MAINTAINER_MODE_TRUE='#'
7300 MAINTAINER_MODE_FALSE=
7302 MAINT=$MAINTAINER_MODE_TRUE
7304 # ---------------------
7305 # GCC bootstrap support
7306 # ---------------------
7308 # Stage specific cflags for build.
7309 stage1_cflags="-g"
7310 case $build in
7311 vax-*-*)
7312 case ${GCC} in
7313 yes) stage1_cflags="-g -Wa,-J" ;;
7314 *) stage1_cflags="-g -J" ;;
7315 esac ;;
7316 powerpc-*-darwin*)
7317 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7318 # sources; use -no-cpp-precomp to get to GNU cpp.
7319 # Apple's GCC has bugs in designated initializer handling, so disable
7320 # that too.
7321 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7323 esac
7325 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7326 if test "$GCC" = yes; then
7327 saved_CFLAGS="$CFLAGS"
7329 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
7330 CFLAGS="$CFLAGS -fkeep-inline-functions"
7331 echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
7332 echo "configure:7333: checking whether -fkeep-inline-functions is supported" >&5
7333 cat > conftest.$ac_ext <<EOF
7334 #line 7335 "configure"
7335 #include "confdefs.h"
7337 int main() {
7339 ; return 0; }
7341 if { (eval echo configure:7342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7342 rm -rf conftest*
7343 echo "$ac_t""yes" 1>&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
7344 else
7345 echo "configure: failed program was:" >&5
7346 cat conftest.$ac_ext >&5
7347 rm -rf conftest*
7348 echo "$ac_t""no" 1>&6
7350 rm -f conftest*
7352 CFLAGS="$saved_CFLAGS"
7357 # Enable -Werror in bootstrap stage2 and later.
7358 # Change the default to "no" on release branches.
7359 # Check whether --enable-werror or --disable-werror was given.
7360 if test "${enable_werror+set}" = set; then
7361 enableval="$enable_werror"
7363 else
7364 enable_werror=yes
7367 case ${enable_werror} in
7368 yes) stage2_werror_flag="--enable-werror-always" ;;
7369 *) stage2_werror_flag="" ;;
7370 esac
7373 # Flags needed to enable html installing and building
7374 # Check whether --with-datarootdir or --without-datarootdir was given.
7375 if test "${with_datarootdir+set}" = set; then
7376 withval="$with_datarootdir"
7377 datarootdir="\${prefix}/${withval}"
7378 else
7379 datarootdir="\${prefix}/share"
7383 # Check whether --with-docdir or --without-docdir was given.
7384 if test "${with_docdir+set}" = set; then
7385 withval="$with_docdir"
7386 docdir="\${prefix}/${withval}"
7387 else
7388 docdir="\${datarootdir}/doc"
7392 # Check whether --with-htmldir or --without-htmldir was given.
7393 if test "${with_htmldir+set}" = set; then
7394 withval="$with_htmldir"
7395 htmldir="\${prefix}/${withval}"
7396 else
7397 htmldir="\${docdir}"
7405 trap '' 1 2 15
7406 cat > confcache <<\EOF
7407 # This file is a shell script that caches the results of configure
7408 # tests run on this system so they can be shared between configure
7409 # scripts and configure runs. It is not useful on other systems.
7410 # If it contains results you don't want to keep, you may remove or edit it.
7412 # By default, configure uses ./config.cache as the cache file,
7413 # creating it if it does not exist already. You can give configure
7414 # the --cache-file=FILE option to use a different cache file; that is
7415 # what configure does when it calls configure scripts in
7416 # subdirectories, so they share the cache.
7417 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7418 # config.status only pays attention to the cache file if you give it the
7419 # --recheck option to rerun configure.
7422 # The following way of writing the cache mishandles newlines in values,
7423 # but we know of no workaround that is simple, portable, and efficient.
7424 # So, don't put newlines in cache variables' values.
7425 # Ultrix sh set writes to stderr and can't be redirected directly,
7426 # and sets the high bit in the cache file unless we assign to the vars.
7427 (set) 2>&1 |
7428 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7429 *ac_space=\ *)
7430 # `set' does not quote correctly, so add quotes (double-quote substitution
7431 # turns \\\\ into \\, and sed turns \\ into \).
7432 sed -n \
7433 -e "s/'/'\\\\''/g" \
7434 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7437 # `set' quotes correctly as required by POSIX, so do not add quotes.
7438 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7440 esac >> confcache
7441 if cmp -s $cache_file confcache; then
7443 else
7444 if test -w $cache_file; then
7445 echo "updating cache $cache_file"
7446 cat confcache > $cache_file
7447 else
7448 echo "not updating unwritable cache $cache_file"
7451 rm -f confcache
7453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7456 # Let make expand exec_prefix.
7457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7459 # Any assignment to VPATH causes Sun make to only execute
7460 # the first set of double-colon rules, so remove it if not needed.
7461 # If there is a colon in the path, we need to keep it.
7462 if test "x$srcdir" = x.; then
7463 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7466 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7468 # Transform confdefs.h into DEFS.
7469 # Protect against shell expansion while executing Makefile rules.
7470 # Protect against Makefile macro expansion.
7471 cat > conftest.defs <<\EOF
7472 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7473 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7474 s%\[%\\&%g
7475 s%\]%\\&%g
7476 s%\$%$$%g
7478 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7479 rm -f conftest.defs
7482 # Without the "./", some shells look in PATH for config.status.
7483 : ${CONFIG_STATUS=./config.status}
7485 echo creating $CONFIG_STATUS
7486 rm -f $CONFIG_STATUS
7487 cat > $CONFIG_STATUS <<EOF
7488 #! /bin/sh
7489 # Generated automatically by configure.
7490 # Run this file to recreate the current configuration.
7491 # This directory was configured as follows,
7492 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7494 # $0 $ac_configure_args
7496 # Compiler output produced by configure, useful for debugging
7497 # configure, is in ./config.log if it exists.
7499 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7500 for ac_option
7502 case "\$ac_option" in
7503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7504 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7505 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7506 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7507 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7508 exit 0 ;;
7509 -help | --help | --hel | --he | --h)
7510 echo "\$ac_cs_usage"; exit 0 ;;
7511 *) echo "\$ac_cs_usage"; exit 1 ;;
7512 esac
7513 done
7515 ac_given_srcdir=$srcdir
7516 ac_given_INSTALL="$INSTALL"
7518 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7520 cat >> $CONFIG_STATUS <<EOF
7522 # Protect against being on the right side of a sed subst in config.status.
7523 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7524 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7525 $ac_vpsub
7526 $extrasub
7527 s%@SHELL@%$SHELL%g
7528 s%@CFLAGS@%$CFLAGS%g
7529 s%@CPPFLAGS@%$CPPFLAGS%g
7530 s%@CXXFLAGS@%$CXXFLAGS%g
7531 s%@FFLAGS@%$FFLAGS%g
7532 s%@DEFS@%$DEFS%g
7533 s%@LDFLAGS@%$LDFLAGS%g
7534 s%@LIBS@%$LIBS%g
7535 s%@exec_prefix@%$exec_prefix%g
7536 s%@prefix@%$prefix%g
7537 s%@program_transform_name@%$program_transform_name%g
7538 s%@bindir@%$bindir%g
7539 s%@sbindir@%$sbindir%g
7540 s%@libexecdir@%$libexecdir%g
7541 s%@datadir@%$datadir%g
7542 s%@sysconfdir@%$sysconfdir%g
7543 s%@sharedstatedir@%$sharedstatedir%g
7544 s%@localstatedir@%$localstatedir%g
7545 s%@libdir@%$libdir%g
7546 s%@includedir@%$includedir%g
7547 s%@oldincludedir@%$oldincludedir%g
7548 s%@infodir@%$infodir%g
7549 s%@mandir@%$mandir%g
7550 s%@host@%$host%g
7551 s%@host_alias@%$host_alias%g
7552 s%@host_cpu@%$host_cpu%g
7553 s%@host_vendor@%$host_vendor%g
7554 s%@host_os@%$host_os%g
7555 s%@target@%$target%g
7556 s%@target_alias@%$target_alias%g
7557 s%@target_cpu@%$target_cpu%g
7558 s%@target_vendor@%$target_vendor%g
7559 s%@target_os@%$target_os%g
7560 s%@build@%$build%g
7561 s%@build_alias@%$build_alias%g
7562 s%@build_cpu@%$build_cpu%g
7563 s%@build_vendor@%$build_vendor%g
7564 s%@build_os@%$build_os%g
7565 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7566 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7567 s%@INSTALL_DATA@%$INSTALL_DATA%g
7568 s%@LN@%$LN%g
7569 s%@LN_S@%$LN_S%g
7570 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7571 s%@build_libsubdir@%$build_libsubdir%g
7572 s%@build_subdir@%$build_subdir%g
7573 s%@host_subdir@%$host_subdir%g
7574 s%@target_subdir@%$target_subdir%g
7575 s%@CC@%$CC%g
7576 s%@GNATBIND@%$GNATBIND%g
7577 s%@do_compare@%$do_compare%g
7578 s%@gmplibs@%$gmplibs%g
7579 s%@gmpinc@%$gmpinc%g
7580 s%@stage1_languages@%$stage1_languages%g
7581 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7582 /@serialization_dependencies@/r $serialization_dependencies
7583 s%@serialization_dependencies@%%g
7584 /@host_makefile_frag@/r $host_makefile_frag
7585 s%@host_makefile_frag@%%g
7586 /@target_makefile_frag@/r $target_makefile_frag
7587 s%@target_makefile_frag@%%g
7588 /@alphaieee_frag@/r $alphaieee_frag
7589 s%@alphaieee_frag@%%g
7590 /@ospace_frag@/r $ospace_frag
7591 s%@ospace_frag@%%g
7592 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7593 s%@tooldir@%$tooldir%g
7594 s%@build_tooldir@%$build_tooldir%g
7595 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7596 s%@GDB_TK@%$GDB_TK%g
7597 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7598 s%@build_configargs@%$build_configargs%g
7599 s%@build_configdirs@%$build_configdirs%g
7600 s%@host_configargs@%$host_configargs%g
7601 s%@configdirs@%$configdirs%g
7602 s%@target_configargs@%$target_configargs%g
7603 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7604 s%@config_shell@%$config_shell%g
7605 s%@YACC@%$YACC%g
7606 s%@BISON@%$BISON%g
7607 s%@M4@%$M4%g
7608 s%@LEX@%$LEX%g
7609 s%@FLEX@%$FLEX%g
7610 s%@MAKEINFO@%$MAKEINFO%g
7611 s%@EXPECT@%$EXPECT%g
7612 s%@RUNTEST@%$RUNTEST%g
7613 s%@AR@%$AR%g
7614 s%@AS@%$AS%g
7615 s%@DLLTOOL@%$DLLTOOL%g
7616 s%@LD@%$LD%g
7617 s%@LIPO@%$LIPO%g
7618 s%@NM@%$NM%g
7619 s%@RANLIB@%$RANLIB%g
7620 s%@STRIP@%$STRIP%g
7621 s%@WINDRES@%$WINDRES%g
7622 s%@OBJCOPY@%$OBJCOPY%g
7623 s%@OBJDUMP@%$OBJDUMP%g
7624 s%@CXX@%$CXX%g
7625 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7626 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7627 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7628 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7629 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7630 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7631 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7632 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7633 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7634 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7635 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7636 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7637 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7638 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7639 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7640 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7641 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7642 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7643 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7644 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7645 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7646 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7647 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7648 s%@MAINT@%$MAINT%g
7649 s%@stage1_cflags@%$stage1_cflags%g
7650 s%@stage2_werror_flag@%$stage2_werror_flag%g
7651 s%@datarootdir@%$datarootdir%g
7652 s%@docdir@%$docdir%g
7653 s%@htmldir@%$htmldir%g
7655 CEOF
7658 cat >> $CONFIG_STATUS <<\EOF
7660 # Split the substitutions into bite-sized pieces for seds with
7661 # small command number limits, like on Digital OSF/1 and HP-UX.
7662 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7663 ac_file=1 # Number of current file.
7664 ac_beg=1 # First line for current file.
7665 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7666 ac_more_lines=:
7667 ac_sed_cmds=""
7668 while $ac_more_lines; do
7669 if test $ac_beg -gt 1; then
7670 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7671 else
7672 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7674 if test ! -s conftest.s$ac_file; then
7675 ac_more_lines=false
7676 rm -f conftest.s$ac_file
7677 else
7678 if test -z "$ac_sed_cmds"; then
7679 ac_sed_cmds="sed -f conftest.s$ac_file"
7680 else
7681 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7683 ac_file=`expr $ac_file + 1`
7684 ac_beg=$ac_end
7685 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7687 done
7688 if test -z "$ac_sed_cmds"; then
7689 ac_sed_cmds=cat
7693 cat >> $CONFIG_STATUS <<EOF
7695 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7697 cat >> $CONFIG_STATUS <<\EOF
7698 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7699 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7700 case "$ac_file" in
7701 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7702 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7703 *) ac_file_in="${ac_file}.in" ;;
7704 esac
7706 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7708 # Remove last slash and all that follows it. Not all systems have dirname.
7709 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7710 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7711 # The file is in a subdirectory.
7712 test ! -d "$ac_dir" && mkdir "$ac_dir"
7713 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7714 # A "../" for each directory in $ac_dir_suffix.
7715 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7716 else
7717 ac_dir_suffix= ac_dots=
7720 case "$ac_given_srcdir" in
7721 .) srcdir=.
7722 if test -z "$ac_dots"; then top_srcdir=.
7723 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7724 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7725 *) # Relative path.
7726 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7727 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7728 esac
7730 case "$ac_given_INSTALL" in
7731 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7732 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7733 esac
7735 echo creating "$ac_file"
7736 rm -f "$ac_file"
7737 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7738 case "$ac_file" in
7739 *Makefile*) ac_comsub="1i\\
7740 # $configure_input" ;;
7741 *) ac_comsub= ;;
7742 esac
7744 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7745 sed -e "$ac_comsub
7746 s%@configure_input@%$configure_input%g
7747 s%@srcdir@%$srcdir%g
7748 s%@top_srcdir@%$top_srcdir%g
7749 s%@INSTALL@%$INSTALL%g
7750 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7751 fi; done
7752 rm -f conftest.s*
7755 cat >> $CONFIG_STATUS <<EOF
7758 cat >> $CONFIG_STATUS <<\EOF
7760 exit 0
7762 chmod +x $CONFIG_STATUS
7763 rm -fr confdefs* $ac_clean_files
7764 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1