gas/
[binutils.git] / configure
blob928e0283d077c51bbc81ad2a0993b4ac3c6870aa
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 --enable-libada Builds libada directory"
16 ac_help="$ac_help
17 --enable-libssp Builds libssp directory"
18 ac_help="$ac_help
19 --with-mpfr-dir=PATH Specify source directory for MPFR library"
20 ac_help="$ac_help
21 --with-mpfr=PATH Specify directory for installed MPFR library"
22 ac_help="$ac_help
23 --with-gmp-dir=PATH Specify source directory for GMP library"
24 ac_help="$ac_help
25 --with-gmp=PATH Specify directory for installed GMP library"
26 ac_help="$ac_help
27 --with-build-sysroot=sysroot
28 use sysroot as the system root during the build"
29 ac_help="$ac_help
30 --enable-bootstrap Enable bootstrapping [yes if native build]"
31 ac_help="$ac_help
32 --enable-serial-[{host,target,build}-]configure
33 Force sequential configuration of
34 sub-packages for the host, target or build
35 machine, or all sub-packages"
36 ac_help="$ac_help
37 --with-build-time-tools=path
38 use given path to find target tools during the build"
39 ac_help="$ac_help
40 --enable-maintainer-mode enable make rules and dependencies not useful
41 (and sometimes confusing) to the casual installer"
42 ac_help="$ac_help
43 --enable-werror enable -Werror in bootstrap stage2 and later"
45 # Initialize some variables set by options.
46 # The variables have the same names as the options, with
47 # dashes changed to underlines.
48 build=NONE
49 cache_file=./config.cache
50 exec_prefix=NONE
51 host=NONE
52 no_create=
53 nonopt=NONE
54 no_recursion=
55 prefix=NONE
56 program_prefix=NONE
57 program_suffix=NONE
58 program_transform_name=s,x,x,
59 silent=
60 site=
61 srcdir=
62 target=NONE
63 verbose=
64 x_includes=NONE
65 x_libraries=NONE
66 bindir='${exec_prefix}/bin'
67 sbindir='${exec_prefix}/sbin'
68 libexecdir='${exec_prefix}/libexec'
69 datadir='${prefix}/share'
70 sysconfdir='${prefix}/etc'
71 sharedstatedir='${prefix}/com'
72 localstatedir='${prefix}/var'
73 libdir='${exec_prefix}/lib'
74 includedir='${prefix}/include'
75 oldincludedir='/usr/include'
76 infodir='${prefix}/info'
77 mandir='${prefix}/man'
79 # Initialize some other variables.
80 subdirs=
81 MFLAGS= MAKEFLAGS=
82 SHELL=${CONFIG_SHELL-/bin/sh}
83 # Maximum number of lines to put in a shell here document.
84 ac_max_here_lines=12
86 ac_prev=
87 for ac_option
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
93 ac_prev=
94 continue
97 case "$ac_option" in
98 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 *) ac_optarg= ;;
100 esac
102 # Accept the important Cygnus configure options, so we can diagnose typos.
104 case "$ac_option" in
106 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 ac_prev=bindir ;;
108 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
109 bindir="$ac_optarg" ;;
111 -build | --build | --buil | --bui | --bu)
112 ac_prev=build ;;
113 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
114 build="$ac_optarg" ;;
116 -cache-file | --cache-file | --cache-fil | --cache-fi \
117 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
118 ac_prev=cache_file ;;
119 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
120 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
121 cache_file="$ac_optarg" ;;
123 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 ac_prev=datadir ;;
125 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 | --da=*)
127 datadir="$ac_optarg" ;;
129 -disable-* | --disable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
138 -enable-* | --enable-*)
139 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 case "$ac_option" in
146 *=*) ;;
147 *) ac_optarg=yes ;;
148 esac
149 eval "enable_${ac_feature}='$ac_optarg'" ;;
151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
153 | --exec | --exe | --ex)
154 ac_prev=exec_prefix ;;
155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
157 | --exec=* | --exe=* | --ex=*)
158 exec_prefix="$ac_optarg" ;;
160 -gas | --gas | --ga | --g)
161 # Obsolete; use --with-gas.
162 with_gas=yes ;;
164 -help | --help | --hel | --he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
167 cat << EOF
168 Usage: configure [options] [host]
169 Options: [defaults in brackets after descriptions]
170 Configuration:
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --version print the version of autoconf that created configure
176 Directory and file names:
177 --prefix=PREFIX install architecture-independent files in PREFIX
178 [$ac_default_prefix]
179 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 [same as prefix]
181 --bindir=DIR user executables in DIR [EPREFIX/bin]
182 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
183 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
184 --datadir=DIR read-only architecture-independent data in DIR
185 [PREFIX/share]
186 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
187 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 [PREFIX/com]
189 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
190 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
191 --includedir=DIR C header files in DIR [PREFIX/include]
192 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
193 --infodir=DIR info documentation in DIR [PREFIX/info]
194 --mandir=DIR man documentation in DIR [PREFIX/man]
195 --srcdir=DIR find the sources in DIR [configure dir or ..]
196 --program-prefix=PREFIX prepend PREFIX to installed program names
197 --program-suffix=SUFFIX append SUFFIX to installed program names
198 --program-transform-name=PROGRAM
199 run sed PROGRAM on installed program names
201 cat << EOF
202 Host type:
203 --build=BUILD configure for building on BUILD [BUILD=HOST]
204 --host=HOST configure for HOST [guessed]
205 --target=TARGET configure for TARGET [TARGET=HOST]
206 Features and packages:
207 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
208 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
209 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
210 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
211 --x-includes=DIR X include files are in DIR
212 --x-libraries=DIR X library files are in DIR
214 if test -n "$ac_help"; then
215 echo "--enable and --with options recognized:$ac_help"
217 exit 0 ;;
219 -host | --host | --hos | --ho)
220 ac_prev=host ;;
221 -host=* | --host=* | --hos=* | --ho=*)
222 host="$ac_optarg" ;;
224 -includedir | --includedir | --includedi | --included | --include \
225 | --includ | --inclu | --incl | --inc)
226 ac_prev=includedir ;;
227 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
228 | --includ=* | --inclu=* | --incl=* | --inc=*)
229 includedir="$ac_optarg" ;;
231 -infodir | --infodir | --infodi | --infod | --info | --inf)
232 ac_prev=infodir ;;
233 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
234 infodir="$ac_optarg" ;;
236 -libdir | --libdir | --libdi | --libd)
237 ac_prev=libdir ;;
238 -libdir=* | --libdir=* | --libdi=* | --libd=*)
239 libdir="$ac_optarg" ;;
241 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
242 | --libexe | --libex | --libe)
243 ac_prev=libexecdir ;;
244 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
245 | --libexe=* | --libex=* | --libe=*)
246 libexecdir="$ac_optarg" ;;
248 -localstatedir | --localstatedir | --localstatedi | --localstated \
249 | --localstate | --localstat | --localsta | --localst \
250 | --locals | --local | --loca | --loc | --lo)
251 ac_prev=localstatedir ;;
252 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
253 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
254 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
255 localstatedir="$ac_optarg" ;;
257 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
258 ac_prev=mandir ;;
259 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
260 mandir="$ac_optarg" ;;
262 -nfp | --nfp | --nf)
263 # Obsolete; use --without-fp.
264 with_fp=no ;;
266 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
267 | --no-cr | --no-c)
268 no_create=yes ;;
270 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
271 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
272 no_recursion=yes ;;
274 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
275 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
276 | --oldin | --oldi | --old | --ol | --o)
277 ac_prev=oldincludedir ;;
278 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
279 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
280 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
281 oldincludedir="$ac_optarg" ;;
283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
284 ac_prev=prefix ;;
285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
286 prefix="$ac_optarg" ;;
288 -program-prefix | --program-prefix | --program-prefi | --program-pref \
289 | --program-pre | --program-pr | --program-p)
290 ac_prev=program_prefix ;;
291 -program-prefix=* | --program-prefix=* | --program-prefi=* \
292 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
293 program_prefix="$ac_optarg" ;;
295 -program-suffix | --program-suffix | --program-suffi | --program-suff \
296 | --program-suf | --program-su | --program-s)
297 ac_prev=program_suffix ;;
298 -program-suffix=* | --program-suffix=* | --program-suffi=* \
299 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
300 program_suffix="$ac_optarg" ;;
302 -program-transform-name | --program-transform-name \
303 | --program-transform-nam | --program-transform-na \
304 | --program-transform-n | --program-transform- \
305 | --program-transform | --program-transfor \
306 | --program-transfo | --program-transf \
307 | --program-trans | --program-tran \
308 | --progr-tra | --program-tr | --program-t)
309 ac_prev=program_transform_name ;;
310 -program-transform-name=* | --program-transform-name=* \
311 | --program-transform-nam=* | --program-transform-na=* \
312 | --program-transform-n=* | --program-transform-=* \
313 | --program-transform=* | --program-transfor=* \
314 | --program-transfo=* | --program-transf=* \
315 | --program-trans=* | --program-tran=* \
316 | --progr-tra=* | --program-tr=* | --program-t=*)
317 program_transform_name="$ac_optarg" ;;
319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
320 | -silent | --silent | --silen | --sile | --sil)
321 silent=yes ;;
323 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
324 ac_prev=sbindir ;;
325 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
326 | --sbi=* | --sb=*)
327 sbindir="$ac_optarg" ;;
329 -sharedstatedir | --sharedstatedir | --sharedstatedi \
330 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
331 | --sharedst | --shareds | --shared | --share | --shar \
332 | --sha | --sh)
333 ac_prev=sharedstatedir ;;
334 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
335 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
336 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
337 | --sha=* | --sh=*)
338 sharedstatedir="$ac_optarg" ;;
340 -site | --site | --sit)
341 ac_prev=site ;;
342 -site=* | --site=* | --sit=*)
343 site="$ac_optarg" ;;
345 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346 ac_prev=srcdir ;;
347 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
348 srcdir="$ac_optarg" ;;
350 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
351 | --syscon | --sysco | --sysc | --sys | --sy)
352 ac_prev=sysconfdir ;;
353 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
354 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
355 sysconfdir="$ac_optarg" ;;
357 -target | --target | --targe | --targ | --tar | --ta | --t)
358 ac_prev=target ;;
359 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
360 target="$ac_optarg" ;;
362 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 verbose=yes ;;
365 -version | --version | --versio | --versi | --vers)
366 echo "configure generated by autoconf version 2.13"
367 exit 0 ;;
369 -with-* | --with-*)
370 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 case "$ac_option" in
377 *=*) ;;
378 *) ac_optarg=yes ;;
379 esac
380 eval "with_${ac_package}='$ac_optarg'" ;;
382 -without-* | --without-*)
383 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
391 --x)
392 # Obsolete; use --with-x.
393 with_x=yes ;;
395 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
396 | --x-incl | --x-inc | --x-in | --x-i)
397 ac_prev=x_includes ;;
398 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
399 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
400 x_includes="$ac_optarg" ;;
402 -x-libraries | --x-libraries | --x-librarie | --x-librari \
403 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
404 ac_prev=x_libraries ;;
405 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
406 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
407 x_libraries="$ac_optarg" ;;
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 if test "x$nonopt" != xNONE; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 nonopt="$ac_option"
422 esac
423 done
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431 # File descriptor usage:
432 # 0 standard input
433 # 1 file creation
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
440 exec 6>/dev/null
441 else
442 exec 6>&1
444 exec 5>./config.log
446 echo "\
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
449 " 1>&5
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
453 ac_configure_args=
454 for ac_arg
456 case "$ac_arg" in
457 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
458 | --no-cr | --no-c) ;;
459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
464 esac
465 done
467 # NLS nuisances.
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 echo > confdefs.h
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
484 ac_unique_file=move-if-change
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted=yes
489 # Try the directory containing this script, then its parent.
490 ac_prog=$0
491 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493 srcdir=$ac_confdir
494 if test ! -r $srcdir/$ac_unique_file; then
495 srcdir=..
497 else
498 ac_srcdir_defaulted=no
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 else
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$CONFIG_SITE"; then
511 if test "x$prefix" != xNONE; then
512 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 else
514 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 for ac_site_file in $CONFIG_SITE; do
518 if test -r "$ac_site_file"; then
519 echo "loading site script $ac_site_file"
520 . "$ac_site_file"
522 done
524 if test -r "$cache_file"; then
525 echo "loading cache $cache_file"
526 . $cache_file
527 else
528 echo "creating cache $cache_file"
529 > $cache_file
532 ac_ext=c
533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
534 ac_cpp='$CPP $CPPFLAGS'
535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
536 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
537 cross_compiling=$ac_cv_prog_cc_cross
539 ac_exeext=
540 ac_objext=o
541 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
542 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
543 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
544 ac_n= ac_c='
545 ' ac_t=' '
546 else
547 ac_n=-n ac_c= ac_t=
549 else
550 ac_n= ac_c='\c' ac_t=
555 ac_aux_dir=
556 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
557 if test -f $ac_dir/install-sh; then
558 ac_aux_dir=$ac_dir
559 ac_install_sh="$ac_aux_dir/install-sh -c"
560 break
561 elif test -f $ac_dir/install.sh; then
562 ac_aux_dir=$ac_dir
563 ac_install_sh="$ac_aux_dir/install.sh -c"
564 break
566 done
567 if test -z "$ac_aux_dir"; then
568 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
570 ac_config_guess=$ac_aux_dir/config.guess
571 ac_config_sub=$ac_aux_dir/config.sub
572 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
575 # Do some error checking and defaulting for the host and target type.
576 # The inputs are:
577 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
579 # The rules are:
580 # 1. You are not allowed to specify --host, --target, and nonopt at the
581 # same time.
582 # 2. Host defaults to nonopt.
583 # 3. If nonopt is not specified, then host defaults to the current host,
584 # as determined by config.guess.
585 # 4. Target and build default to nonopt.
586 # 5. If nonopt is not specified, then target and build default to host.
588 # The aliases save the names the user supplied, while $host etc.
589 # will get canonicalized.
590 case $host---$target---$nonopt in
591 NONE---*---* | *---NONE---* | *---*---NONE) ;;
592 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
593 esac
596 # Make sure we can run config.sub.
597 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
598 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
601 echo $ac_n "checking host system type""... $ac_c" 1>&6
602 echo "configure:603: checking host system type" >&5
604 host_alias=$host
605 case "$host_alias" in
606 NONE)
607 case $nonopt in
608 NONE)
609 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
610 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
611 fi ;;
612 *) host_alias=$nonopt ;;
613 esac ;;
614 esac
616 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
617 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$host" 1>&6
622 echo $ac_n "checking target system type""... $ac_c" 1>&6
623 echo "configure:624: checking target system type" >&5
625 target_alias=$target
626 case "$target_alias" in
627 NONE)
628 case $nonopt in
629 NONE) target_alias=$host_alias ;;
630 *) target_alias=$nonopt ;;
631 esac ;;
632 esac
634 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
635 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$target" 1>&6
640 echo $ac_n "checking build system type""... $ac_c" 1>&6
641 echo "configure:642: checking build system type" >&5
643 build_alias=$build
644 case "$build_alias" in
645 NONE)
646 case $nonopt in
647 NONE) build_alias=$host_alias ;;
648 *) build_alias=$nonopt ;;
649 esac ;;
650 esac
652 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
653 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
654 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
655 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
656 echo "$ac_t""$build" 1>&6
658 test "$host_alias" != "$target_alias" &&
659 test "$program_prefix$program_suffix$program_transform_name" = \
660 NONENONEs,x,x, &&
661 program_prefix=${target_alias}-
663 if test "$program_transform_name" = s,x,x,; then
664 program_transform_name=
665 else
666 # Double any \ or $. echo might interpret backslashes.
667 cat <<\EOF_SED > conftestsed
668 s,\\,\\\\,g; s,\$,$$,g
669 EOF_SED
670 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
671 rm -f conftestsed
673 test "$program_prefix" != NONE &&
674 program_transform_name="s,^,${program_prefix},; $program_transform_name"
675 # Use a double $ so make ignores it.
676 test "$program_suffix" != NONE &&
677 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
679 # sed with no file args requires a program.
680 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
683 # Get 'install' or 'install-sh' and its variants.
684 # Find a good install program. We prefer a C program (faster),
685 # so one script is as good as another. But avoid the broken or
686 # incompatible versions:
687 # SysV /etc/install, /usr/sbin/install
688 # SunOS /usr/etc/install
689 # IRIX /sbin/install
690 # AIX /bin/install
691 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
692 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
693 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
694 # ./install, which can be erroneously created by make from ./install.sh.
695 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
696 echo "configure:697: checking for a BSD compatible install" >&5
697 if test -z "$INSTALL"; then
698 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
700 else
701 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
702 for ac_dir in $PATH; do
703 # Account for people who put trailing slashes in PATH elements.
704 case "$ac_dir/" in
705 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
707 # OSF1 and SCO ODT 3.0 have their own names for install.
708 # Don't use installbsd from OSF since it installs stuff as root
709 # by default.
710 for ac_prog in ginstall scoinst install; do
711 if test -f $ac_dir/$ac_prog; then
712 if test $ac_prog = install &&
713 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
714 # AIX install. It has an incompatible calling convention.
716 else
717 ac_cv_path_install="$ac_dir/$ac_prog -c"
718 break 2
721 done
723 esac
724 done
725 IFS="$ac_save_IFS"
728 if test "${ac_cv_path_install+set}" = set; then
729 INSTALL="$ac_cv_path_install"
730 else
731 # As a last resort, use the slow shell script. We don't cache a
732 # path for INSTALL within a source directory, because that will
733 # break other packages using the cache if that directory is
734 # removed, or if the path is relative.
735 INSTALL="$ac_install_sh"
738 echo "$ac_t""$INSTALL" 1>&6
740 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
741 # It thinks the first close brace ends the variable substitution.
742 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
744 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
746 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
748 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
749 echo "configure:750: checking whether ln works" >&5
750 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
752 else
753 rm -f conftestdata_t
754 echo >conftestdata_f
755 if ln conftestdata_f conftestdata_t 2>/dev/null
756 then
757 acx_cv_prog_LN=ln
758 else
759 acx_cv_prog_LN=no
761 rm -f conftestdata_f conftestdata_t
764 if test $acx_cv_prog_LN = no; then
765 LN="cp"
766 echo "$ac_t""no, using $LN" 1>&6
767 else
768 LN="$acx_cv_prog_LN"
769 echo "$ac_t""yes" 1>&6
772 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
773 echo "configure:774: checking whether ln -s works" >&5
774 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
776 else
777 rm -f conftestdata
778 if ln -s X conftestdata 2>/dev/null
779 then
780 rm -f conftestdata
781 ac_cv_prog_LN_S="ln -s"
782 else
783 ac_cv_prog_LN_S=ln
786 LN_S="$ac_cv_prog_LN_S"
787 if test "$ac_cv_prog_LN_S" = "ln -s"; then
788 echo "$ac_t""yes" 1>&6
789 else
790 echo "$ac_t""no" 1>&6
794 ### we might need to use some other shell than /bin/sh for running subshells
795 ### If we are on Windows, search for the shell. This will permit people
796 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
797 ### without also having to set CONFIG_SHELL. This code will work when
798 ### using bash, which sets OSTYPE.
799 case "${OSTYPE}" in
800 *win32*)
801 if test x${CONFIG_SHELL} = x ; then
802 if test ! -f /bin/sh ; then
803 if test x${SHELL} != x && test -f ${SHELL} ; then
804 CONFIG_SHELL=${SHELL}
805 export CONFIG_SHELL
806 else
807 for prog in sh sh.exe bash bash.exe; do
808 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
809 for dir in $PATH; do
810 test -z "$dir" && dir=.
811 if test -f $dir/$prog; then
812 CONFIG_SHELL=$dir/$prog
813 export CONFIG_SHELL
814 break
816 done
817 IFS="$save_ifs"
818 test -n "${CONFIG_SHELL}" && break
819 done
824 esac
826 config_shell=${CONFIG_SHELL-/bin/sh}
828 progname=$0
829 # if PWD already has a value, it is probably wrong.
830 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
832 # Export original configure arguments for use by sub-configures. These
833 # will be expanded by make, so quote '$'.
834 tmp="$progname $@"
835 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
836 $tmp
837 EOF_SED
838 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
839 rm -f conftestsed.out
842 moveifchange=${srcdir}/move-if-change
844 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
846 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
847 # a relative path.
848 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
849 INSTALL="${srcpwd}/install-sh -c"
852 # Set srcdir to "." if that's what it is.
853 # This is important for multilib support.
854 pwd=`${PWDCMD-pwd}`
855 if test "${pwd}" = "${srcpwd}" ; then
856 srcdir=.
859 topsrcdir=$srcpwd
861 extra_host_args=
863 ### To add a new directory to the tree, first choose whether it is a target
864 ### or a host dependent tool. Then put it into the appropriate list
865 ### (library or tools, host or target), doing a dependency sort.
867 # Subdirs will be configured in the order listed in build_configdirs,
868 # configdirs, or target_configdirs; see the serialization section below.
870 # Dependency sorting is only needed when *configuration* must be done in
871 # a particular order. In all cases a dependency should be specified in
872 # the Makefile, whether or not it's implicitly specified here.
874 # Double entries in build_configdirs, configdirs, or target_configdirs may
875 # cause circular dependencies and break everything horribly.
877 # these library is used by various programs built for the build
878 # environment
880 build_libs="build-libiberty"
882 # these tools are built for the build environment
883 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
885 # these libraries are used by various programs built for the host environment
887 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
889 # these tools are built for the host environment
890 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
891 # know that we are building the simulator.
892 # binutils, gas and ld appear in that order because it makes sense to run
893 # "make check" in that particular order.
894 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"
896 # libgcj represents the runtime libraries only used by gcj.
897 libgcj="target-libffi \
898 target-boehm-gc \
899 target-zlib \
900 target-qthreads \
901 target-libjava"
903 # these libraries are built for the target environment, and are built after
904 # the host libraries and the host tools (which may be a cross compiler)
906 target_libraries="target-libiberty \
907 target-libgloss \
908 target-newlib \
909 target-libstdc++-v3 \
910 target-libmudflap \
911 target-libssp \
912 target-libgfortran \
913 ${libgcj} \
914 target-libobjc \
915 target-libada"
917 # these tools are built using the target libraries, and are intended to
918 # run only in the target environment
920 # note: any program that *uses* libraries that are in the "target_libraries"
921 # list belongs in this list. those programs are also very likely
922 # candidates for the "native_only" list which follows
924 target_tools="target-examples target-groff target-gperf target-rda"
926 ################################################################################
928 ## All tools belong in one of the four categories, and are assigned above
929 ## We assign ${configdirs} this way to remove all embedded newlines. This
930 ## is important because configure will choke if they ever get through.
931 ## ${configdirs} is directories we build using the host tools.
932 ## ${target_configdirs} is directories we build using the target tools.
933 configdirs=`echo ${host_libs} ${host_tools}`
934 target_configdirs=`echo ${target_libraries} ${target_tools}`
935 build_configdirs=`echo ${build_libs} ${build_tools}`
937 ################################################################################
939 srcname="gnu development package"
941 # This gets set non-empty for some net releases of packages.
942 appdirs=""
944 # Define is_cross_compiler to save on calls to 'test'.
945 is_cross_compiler=
946 if test x"${host}" = x"${target}" ; then
947 is_cross_compiler=no
948 else
949 is_cross_compiler=yes
952 # Find the build and target subdir names.
953 case ${build_alias} in
954 "") build_noncanonical=${build} ;;
955 *) build_noncanonical=${build_alias} ;;
956 esac
958 case ${host_alias} in
959 "") host_noncanonical=${build_noncanonical} ;;
960 *) host_noncanonical=${host_alias} ;;
961 esac
963 case ${target_alias} in
964 "") target_noncanonical=${host_noncanonical} ;;
965 *) target_noncanonical=${target_alias} ;;
966 esac
968 # Prefix 'build-' so this never conflicts with target_subdir.
969 build_subdir="build-${build_noncanonical}"
970 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
971 if ( test $srcdir = . && test -d gcc ) \
972 || test -d $srcdir/../host-${host_noncanonical}; then
973 host_subdir="host-${host_noncanonical}"
974 else
975 host_subdir=.
977 # No prefix.
978 target_subdir=${target_noncanonical}
981 # Skipdirs are removed silently.
982 skipdirs=
983 # Noconfigdirs are removed loudly.
984 noconfigdirs=""
986 use_gnu_ld=
987 # Make sure we don't let GNU ld be added if we didn't want it.
988 if test x$with_gnu_ld = xno ; then
989 use_gnu_ld=no
990 noconfigdirs="$noconfigdirs ld"
993 use_gnu_as=
994 # Make sure we don't let GNU as be added if we didn't want it.
995 if test x$with_gnu_as = xno ; then
996 use_gnu_as=no
997 noconfigdirs="$noconfigdirs gas"
1000 # some tools are so dependent upon X11 that if we're not building with X,
1001 # it's not even worth trying to configure, much less build, that tool.
1003 case ${with_x} in
1004 yes | "") ;; # the default value for this tree is that X11 is available
1006 skipdirs="${skipdirs} tk itcl libgui"
1007 # We won't be able to build gdbtk without X.
1008 enable_gdbtk=no
1010 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1011 esac
1013 # Some tools are only suitable for building in a "native" situation.
1014 # Remove these if host!=target.
1015 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1017 # Similarly, some are only suitable for cross toolchains.
1018 # Remove these if host=target.
1019 cross_only="target-libgloss target-newlib target-opcodes"
1021 case $is_cross_compiler in
1022 no) skipdirs="${skipdirs} ${cross_only}" ;;
1023 yes) skipdirs="${skipdirs} ${native_only}" ;;
1024 esac
1026 # If both --with-headers and --with-libs are specified, default to
1027 # --without-newlib.
1028 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1029 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1030 if test x"${with_newlib}" = x ; then
1031 with_newlib=no
1035 # Recognize --with-newlib/--without-newlib.
1036 case ${with_newlib} in
1037 no) skipdirs="${skipdirs} target-newlib" ;;
1038 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1039 esac
1041 # Configure extra directories which are host specific
1043 case "${host}" in
1044 *-cygwin*)
1045 configdirs="$configdirs libtermcap" ;;
1046 esac
1048 # A target can indicate whether a language isn't supported for some reason.
1049 # Only spaces may be used in this macro; not newlines or tabs.
1050 unsupported_languages=
1052 # Remove more programs from consideration, based on the host or
1053 # target this usually means that a port of the program doesn't
1054 # exist yet.
1056 case "${host}" in
1057 hppa*64*-*-*)
1058 noconfigdirs="$noconfigdirs byacc"
1060 i[3456789]86-*-vsta)
1061 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1063 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1064 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1066 i[3456789]86-*-mingw32*)
1067 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1068 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1070 i[3456789]86-*-beos*)
1071 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1073 *-*-cygwin*)
1074 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1076 *-*-netbsd*)
1077 noconfigdirs="$noconfigdirs rcs"
1079 ppc*-*-pe)
1080 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1082 powerpc-*-beos*)
1083 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1085 esac
1088 # Check whether --enable-libada or --disable-libada was given.
1089 if test "${enable_libada+set}" = set; then
1090 enableval="$enable_libada"
1091 ENABLE_LIBADA=$enableval
1092 else
1093 ENABLE_LIBADA=yes
1096 if test "${ENABLE_LIBADA}" != "yes" ; then
1097 noconfigdirs="$noconfigdirs target-libada"
1098 noconfigdirs="$noconfigdirs gnattools"
1101 # Check whether --enable-libssp or --disable-libssp was given.
1102 if test "${enable_libssp+set}" = set; then
1103 enableval="$enable_libssp"
1104 ENABLE_LIBSSP=$enableval
1105 else
1106 ENABLE_LIBSSP=yes
1109 if test "${ENABLE_LIBSSP}" != "yes" ; then
1110 noconfigdirs="$noconfigdirs target-libssp"
1113 # Save it here so that, even in case of --enable-libgcj, if the Java
1114 # front-end isn't enabled, we still get libgcj disabled.
1115 libgcj_saved=$libgcj
1116 case $enable_libgcj in
1117 yes)
1118 # If we reset it here, it won't get added to noconfigdirs in the
1119 # target-specific build rules, so it will be forcibly enabled
1120 # (unless the Java language itself isn't enabled).
1121 libgcj=
1124 # Make sure we get it printed in the list of not supported target libs.
1125 noconfigdirs="$noconfigdirs ${libgcj}"
1127 esac
1130 # Allow --disable-libmudflap to exclude target-libmudflap
1131 case $enable_libmudflap in
1132 yes)
1135 noconfigdirs="$noconfigdirs target-libmudflap"
1138 case "${target}" in
1139 *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
1140 # Enable libmudflap by default in GNU and friends.
1142 *-*-freebsd*)
1143 # Enable libmudflap by default in FreeBSD.
1146 # Disable it by default everywhere else.
1147 noconfigdirs="$noconfigdirs target-libmudflap"
1149 esac
1150 esac
1153 case "${target}" in
1154 *-*-chorusos)
1155 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1157 powerpc-*-darwin*)
1158 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1159 noconfigdirs="$noconfigdirs sim target-rda"
1161 *-*-darwin*)
1162 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1163 noconfigdirs="$noconfigdirs sim target-rda"
1164 noconfigdirs="$noconfigdirs ${libgcj}"
1166 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1167 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1169 *-*-freebsd*)
1170 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1171 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1172 && test -f /usr/local/include/gmp.h; then
1173 with_gmp=/usr/local
1176 # Skip some stuff that's unsupported on some FreeBSD configurations.
1177 case "${target}" in
1178 i*86-*-*) ;;
1179 alpha*-*-*) ;;
1181 noconfigdirs="$noconfigdirs ${libgcj}"
1183 esac
1185 *-*-kaos*)
1186 # Remove unsupported stuff on all kaOS configurations.
1187 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1188 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1189 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1190 noconfigdirs="$noconfigdirs target-libgloss"
1192 *-*-netbsd*)
1193 # Skip some stuff on all NetBSD configurations.
1194 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1196 # Skip some stuff that's unsupported on some NetBSD configurations.
1197 case "${target}" in
1198 i*86-*-netbsdelf*) ;;
1199 arm*-*-netbsdelf*) ;;
1201 noconfigdirs="$noconfigdirs ${libgcj}"
1203 esac
1205 *-*-netware*)
1206 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1208 *-*-rtems*)
1209 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1211 # The tpf target doesn't support gdb yet.
1212 *-*-tpf*)
1213 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1215 *-*-uclinux*)
1216 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1218 *-*-vxworks*)
1219 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1221 m32c-*-*)
1222 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1224 alpha*-dec-osf*)
1225 # ld works, but does not support shared libraries.
1226 # newlib is not 64 bit ready. I'm not sure about fileutils.
1227 # gas doesn't generate exception information.
1228 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1230 alpha*-*-*vms*)
1231 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1233 alpha*-*-linux*)
1234 # newlib is not 64 bit ready
1235 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1237 alpha*-*-*)
1238 # newlib is not 64 bit ready
1239 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1241 am33_2.0-*-linux*)
1242 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1244 sh-*-linux*)
1245 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1247 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1248 noconfigdirs="$noconfigdirs ${libgcj}"
1249 noconfigdirs="$noconfigdirs target-examples"
1250 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1251 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1252 noconfigdirs="$noconfigdirs expect dejagnu"
1253 # the C++ libraries don't build on top of CE's C libraries
1254 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1255 noconfigdirs="$noconfigdirs target-newlib"
1256 case "${host}" in
1257 *-*-cygwin*) ;; # keep gdb and readline
1258 *) noconfigdirs="$noconfigdirs gdb readline"
1260 esac
1262 arc-*-*)
1263 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1265 arm-semi-aof )
1267 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1268 noconfigdirs="$noconfigdirs ${libgcj}"
1270 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1271 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1273 arm*-*-linux-gnueabi)
1274 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1275 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1277 arm*-*-symbianelf*)
1278 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1280 arm-*-pe*)
1281 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1283 thumb-*-coff)
1284 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1286 thumb-*-elf)
1287 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1289 thumb-*-pe)
1290 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1292 arm-*-riscix*)
1293 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1295 avr-*-*)
1296 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1298 bfin-*-*)
1299 noconfigdirs="$noconfigdirs target-libgloss gdb"
1300 if test x${is_cross_compiler} != xno ; then
1301 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1304 c4x-*-* | tic4x-*-*)
1305 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1307 c54x*-*-* | tic54x-*-*)
1308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1310 cris-*-* | crisv32-*-*)
1311 unsupported_languages="$unsupported_languages java"
1312 case "${target}" in
1313 *-*-aout)
1314 unsupported_languages="$unsupported_languages fortran"
1315 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1316 *-*-elf)
1317 unsupported_languages="$unsupported_languages fortran"
1318 noconfigdirs="$noconfigdirs target-boehm-gc";;
1319 *-*-linux*)
1320 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1322 unsupported_languages="$unsupported_languages fortran"
1323 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1324 esac
1326 crx-*-*)
1327 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1329 d10v-*-*)
1330 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1332 d30v-*-*)
1333 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1335 fr30-*-elf*)
1336 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1338 frv-*-*)
1339 noconfigdirs="$noconfigdirs ${libgcj}"
1341 h8300*-*-*)
1342 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1344 h8500-*-*)
1345 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1347 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1349 hppa*64*-*-linux* | parisc*64*-*-linux*)
1350 # In this case, it's because the hppa64-linux target is for
1351 # the kernel only at this point and has no libc, and thus no
1352 # headers, crt*.o, etc., all of which are needed by these.
1353 noconfigdirs="$noconfigdirs target-zlib"
1355 parisc*-*-linux* | hppa*-*-linux*)
1357 hppa*-*-*elf* | \
1358 hppa*-*-lites* | \
1359 hppa*-*-openbsd* | \
1360 hppa*64*-*-*)
1361 noconfigdirs="$noconfigdirs ${libgcj}"
1363 hppa*-*-*)
1364 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1365 # build on HP-UX 10.20.
1366 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1368 i960-*-*)
1369 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1371 ia64*-*-elf*)
1372 # No gdb support yet.
1373 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1375 ia64*-**-hpux*)
1376 # No gdb or ld support yet.
1377 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1379 i370-*-opened*)
1381 i[3456789]86-*-coff | i[3456789]86-*-elf)
1382 noconfigdirs="$noconfigdirs ${libgcj}"
1384 i[3456789]86-*-linux*)
1385 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1386 # not build java stuff by default.
1387 case "${target}" in
1388 *-*-*libc1*)
1389 noconfigdirs="$noconfigdirs ${libgcj}";;
1390 esac
1392 # This section makes it possible to build newlib natively on linux.
1393 # If we are using a cross compiler then don't configure newlib.
1394 if test x${is_cross_compiler} != xno ; then
1395 noconfigdirs="$noconfigdirs target-newlib"
1397 noconfigdirs="$noconfigdirs target-libgloss"
1398 # If we are not using a cross compiler, do configure newlib.
1399 # Note however, that newlib will only be configured in this situation
1400 # if the --with-newlib option has been given, because otherwise
1401 # 'target-newlib' will appear in skipdirs.
1403 i[3456789]86-*-mingw32*)
1404 target_configdirs="$target_configdirs target-mingw"
1405 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1407 # Can't build gdb for mingw32 if not native.
1408 case "${host}" in
1409 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1410 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1412 esac
1414 *-*-cygwin*)
1415 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1416 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1417 # always build newlib if winsup directory is present.
1418 if test -d "$srcdir/winsup"; then
1419 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1420 elif test -d "$srcdir/newlib"; then
1421 echo "Warning: winsup is missing so newlib can't be built."
1424 # Can't build gdb for Cygwin if not native.
1425 case "${host}" in
1426 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1427 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1429 esac
1431 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1432 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1434 i[3456789]86-*-pe)
1435 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1437 i[3456789]86-*-sco3.2v5*)
1438 # The linker does not yet know about weak symbols in COFF,
1439 # and is not configured to handle mixed ELF and COFF.
1440 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1442 i[3456789]86-*-sco*)
1443 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1445 i[3456789]86-*-solaris2*)
1446 noconfigdirs="$noconfigdirs target-libgloss"
1448 i[3456789]86-*-sysv4*)
1449 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1451 i[3456789]86-*-beos*)
1452 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1454 i[3456789]86-*-rdos*)
1455 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1457 m32r-*-*)
1458 noconfigdirs="$noconfigdirs ${libgcj}"
1460 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1461 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1463 m68k-*-elf*)
1464 noconfigdirs="$noconfigdirs ${libgcj}"
1466 m68k-*-coff*)
1467 noconfigdirs="$noconfigdirs ${libgcj}"
1469 mcore-*-pe*)
1470 # The EPOC C++ environment does not support exceptions or rtti,
1471 # and so building libstdc++-v3 tends not to always work.
1472 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1474 mmix-*-*)
1475 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1476 unsupported_languages="$unsupported_languages fortran java"
1478 mn10200-*-*)
1479 noconfigdirs="$noconfigdirs ${libgcj}"
1481 mn10300-*-*)
1482 noconfigdirs="$noconfigdirs ${libgcj}"
1484 mt-*-*)
1485 noconfigdirs="$noconfigdirs sim"
1487 powerpc-*-aix*)
1488 # copied from rs6000-*-* entry
1489 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1491 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1492 target_configdirs="$target_configdirs target-winsup"
1493 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1494 # always build newlib.
1495 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1497 # This is temporary until we can link against shared libraries
1498 powerpcle-*-solaris*)
1499 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1501 powerpc-*-beos*)
1502 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1504 powerpc-*-eabi)
1505 noconfigdirs="$noconfigdirs ${libgcj}"
1507 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1509 rs6000-*-lynxos*)
1510 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1512 rs6000-*-aix*)
1513 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1515 rs6000-*-*)
1516 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1518 m68k-apollo-*)
1519 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1521 mips*-*-irix5*)
1522 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1524 mips*-*-irix6*)
1525 # Linking libjava exceeds command-line length limits on at least
1526 # IRIX 6.2, but not on IRIX 6.5.
1527 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1528 # <oldham@codesourcery.com>
1529 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1531 mips*-dec-bsd*)
1532 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1534 mips*-*-bsd*)
1535 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1537 mipstx39-*-*)
1538 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1540 mips64*-*-linux*)
1541 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1543 mips*-*-linux*)
1544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1546 mips*-*-*)
1547 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1549 romp-*-*)
1550 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1552 sh-*-* | sh64-*-*)
1553 case "${host}" in
1554 i[3456789]86-*-vsta) ;; # don't add gprof back in
1555 i[3456789]86-*-go32*) ;; # don't add gprof back in
1556 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1557 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1558 esac
1559 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1561 sparc-*-elf*)
1562 noconfigdirs="$noconfigdirs ${libgcj}"
1564 sparc64-*-elf*)
1565 noconfigdirs="$noconfigdirs ${libgcj}"
1567 sparclite-*-*)
1568 noconfigdirs="$noconfigdirs ${libgcj}"
1570 sparc-*-sunos4*)
1571 noconfigdirs="$noconfigdirs ${libgcj}"
1572 if test x${is_cross_compiler} != xno ; then
1573 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1574 else
1575 use_gnu_ld=no
1578 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1579 noconfigdirs="$noconfigdirs ${libgcj}"
1581 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1583 v810-*-*)
1584 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1586 v850-*-*)
1587 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1589 v850e-*-*)
1590 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1592 v850ea-*-*)
1593 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1595 vax-*-vms)
1596 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1598 vax-*-*)
1599 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1601 xtensa-*-*)
1602 noconfigdirs="$noconfigdirs ${libgcj}"
1604 ip2k-*-*)
1605 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1607 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1608 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1610 *-*-lynxos*)
1611 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1613 *-*-*)
1614 noconfigdirs="$noconfigdirs ${libgcj}"
1616 esac
1618 # If we aren't building newlib, then don't build libgloss, since libgloss
1619 # depends upon some newlib header files.
1620 case "${noconfigdirs}" in
1621 *target-libgloss*) ;;
1622 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1623 esac
1625 # Work in distributions that contain no compiler tools, like Autoconf.
1626 tentative_cc=""
1627 host_makefile_frag=/dev/null
1628 if test -d ${srcdir}/config ; then
1629 case "${host}" in
1630 m68k-hp-hpux*)
1631 # Avoid "too much defining" errors from HPUX compiler.
1632 tentative_cc="cc -Wp,-H256000"
1633 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1634 # If it's HP/UX ar, this should be harmless.
1635 RANLIB="ar ts"
1637 m68k-apollo-sysv*)
1638 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1640 m68k-apollo-bsd*)
1641 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1642 # chokes on bfd, the compiler won't let you assign integers to enums, and
1643 # other problems. Defining CC to gcc is a questionable way to say "don't use
1644 # the apollo compiler" (the preferred version of GCC could be called cc,
1645 # or whatever), but I'm not sure leaving CC as cc is any better...
1646 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1647 # Used to have BISON=yacc.
1648 tentative_cc=gcc
1650 m88k-dg-dgux*)
1651 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1653 m88k-harris-cxux*)
1654 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1655 tentative_cc="cc -Xa"
1656 host_makefile_frag="config/mh-cxux"
1658 m88k-motorola-sysv*)
1660 mips*-dec-ultrix*)
1661 tentative_cc="cc -Wf,-XNg1000"
1662 host_makefile_frag="config/mh-decstation"
1664 mips*-nec-sysv4*)
1665 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1666 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1667 host_makefile_frag="config/mh-necv4"
1669 mips*-sgi-irix4*)
1670 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1671 # environment. Also bump switch table size so that cp-parse will
1672 # compile. Bump string length limit so linker builds.
1673 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1675 mips*-*-sysv4*)
1676 host_makefile_frag="config/mh-sysv4"
1678 mips*-*-sysv*)
1679 # This is for a MIPS running RISC/os 4.52C.
1681 # This is needed for GDB, but needs to be in the top-level make because
1682 # if a library is compiled with the bsd headers and gets linked with the
1683 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1684 # a different size).
1685 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1686 # known except to select the sysv environment. Could we use /proc instead?
1687 # These "sysv environments" and "bsd environments" often end up being a pain.
1689 # This is not part of CFLAGS because perhaps not all C compilers have this
1690 # option.
1691 tentative_cc="cc -systype sysv"
1693 i370-ibm-opened*)
1694 tentative_cc="c89"
1696 i[3456789]86-*-sysv5*)
1697 host_makefile_frag="config/mh-sysv5"
1699 i[3456789]86-*-dgux*)
1700 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1701 host_makefile_frag="config/mh-dgux386"
1703 i[3456789]86-ncr-sysv4.3*)
1704 # The MetaWare compiler will generate a copyright message unless you
1705 # turn it off by adding the -Hnocopyr flag.
1706 tentative_cc="cc -Hnocopyr"
1708 i[3456789]86-ncr-sysv4*)
1709 # for an NCR 3000 (i486/SVR4) system.
1710 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1711 # This compiler not only emits obnoxious copyright messages every time
1712 # you run it, but it chokes and dies on a whole bunch of GNU source
1713 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1714 tentative_cc="/usr/ccs/ATT/cc"
1715 host_makefile_frag="config/mh-ncr3000"
1717 i[3456789]86-*-sco3.2v5*)
1719 i[3456789]86-*-sco*)
1720 # The native C compiler botches some simple uses of const. Unfortunately,
1721 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1722 tentative_cc="cc -Dconst="
1723 host_makefile_frag="config/mh-sco"
1725 i[3456789]86-*-udk*)
1726 host_makefile_frag="config/mh-sysv5"
1728 i[3456789]86-*-solaris2*)
1729 host_makefile_frag="config/mh-sysv4"
1731 i[3456789]86-*-msdosdjgpp*)
1732 host_makefile_frag="config/mh-djgpp"
1734 *-cygwin*)
1735 host_makefile_frag="config/mh-cygwin"
1737 *-mingw32*)
1739 *-interix*)
1740 host_makefile_frag="config/mh-interix"
1742 vax-*-ultrix2*)
1743 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1744 tentative_cc=gcc
1746 *-*-solaris2*)
1747 host_makefile_frag="config/mh-solaris"
1749 m68k-sun-sunos*)
1750 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1751 # without overflowing the jump tables (-J says to use a 32 bit table)
1752 tentative_cc="cc -J"
1754 *-hp-hpux*)
1755 tentative_cc="cc -Wp,-H256000"
1757 *-*-hiux*)
1758 tentative_cc="cc -Wp,-H256000"
1760 rs6000-*-lynxos*)
1761 # /bin/cc is less than useful for our purposes. Always use GCC
1762 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1763 host_makefile_frag="config/mh-lynxrs6k"
1765 powerpc-*-darwin*)
1766 host_makefile_frag="config/mh-ppc-darwin"
1768 powerpc-*-aix*)
1769 host_makefile_frag="config/mh-ppc-aix"
1771 rs6000-*-aix*)
1772 host_makefile_frag="config/mh-ppc-aix"
1774 *-*-lynxos*)
1775 # /bin/cc is less than useful for our purposes. Always use GCC
1776 tentative_cc="/bin/gcc"
1778 *-*-sysv4*)
1779 host_makefile_frag="config/mh-sysv4"
1781 # This is placed last to prevent interfering with the cases above.
1782 i[3456789]86-*-*)
1783 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1784 host_makefile_frag="config/mh-x86omitfp"
1786 esac
1789 # If we aren't going to be using gcc, see if we can extract a definition
1790 # of CC from the fragment.
1791 # Actually, use the 'pre-extracted' version above.
1792 if test -z "${CC}" && test "${build}" = "${host}" ; then
1793 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1794 found=
1795 for dir in $PATH; do
1796 test -z "$dir" && dir=.
1797 if test -f $dir/gcc; then
1798 found=yes
1799 break
1801 done
1802 IFS="$save_ifs"
1803 if test -z "${found}" && test -n "${tentative_cc}" ; then
1804 CC=$tentative_cc
1808 if test "${build}" != "${host}" ; then
1809 # If we are doing a Canadian Cross, in which the host and build systems
1810 # are not the same, we set reasonable default values for the tools.
1812 CC=${CC-${host_alias}-gcc}
1813 CFLAGS=${CFLAGS-"-g -O2"}
1814 CXX=${CXX-${host_alias}-c++}
1815 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1816 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1817 BUILD_PREFIX=${build_alias}-
1818 BUILD_PREFIX_1=${build_alias}-
1820 else
1821 # Set reasonable default values for some tools even if not Canadian.
1822 # Of course, these are different reasonable default values, originally
1823 # specified directly in the Makefile.
1824 # We don't export, so that autoconf can do its job.
1825 # Note that all these settings are above the fragment inclusion point
1826 # in Makefile.in, so can still be overridden by fragments.
1827 # This is all going to change when we autoconfiscate...
1829 CC_FOR_BUILD="\$(CC)"
1830 BUILD_PREFIX=
1831 BUILD_PREFIX_1=loser-
1833 # Extract the first word of "gcc", so it can be a program name with args.
1834 set dummy gcc; ac_word=$2
1835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_word" >&5
1837 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1839 else
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1842 else
1843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1844 ac_dummy="$PATH"
1845 for ac_dir in $ac_dummy; do
1846 test -z "$ac_dir" && ac_dir=.
1847 if test -f $ac_dir/$ac_word; then
1848 ac_cv_prog_CC="gcc"
1849 break
1851 done
1852 IFS="$ac_save_ifs"
1855 CC="$ac_cv_prog_CC"
1856 if test -n "$CC"; then
1857 echo "$ac_t""$CC" 1>&6
1858 else
1859 echo "$ac_t""no" 1>&6
1862 if test -z "$CC"; then
1863 # Extract the first word of "cc", so it can be a program name with args.
1864 set dummy cc; ac_word=$2
1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $ac_word" >&5
1867 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1869 else
1870 if test -n "$CC"; then
1871 ac_cv_prog_CC="$CC" # Let the user override the test.
1872 else
1873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1874 ac_prog_rejected=no
1875 ac_dummy="$PATH"
1876 for ac_dir in $ac_dummy; do
1877 test -z "$ac_dir" && ac_dir=.
1878 if test -f $ac_dir/$ac_word; then
1879 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1880 ac_prog_rejected=yes
1881 continue
1883 ac_cv_prog_CC="cc"
1884 break
1886 done
1887 IFS="$ac_save_ifs"
1888 if test $ac_prog_rejected = yes; then
1889 # We found a bogon in the path, so make sure we never use it.
1890 set dummy $ac_cv_prog_CC
1891 shift
1892 if test $# -gt 0; then
1893 # We chose a different compiler from the bogus one.
1894 # However, it has the same basename, so the bogon will be chosen
1895 # first if we set CC to just the basename; use the full file name.
1896 shift
1897 set dummy "$ac_dir/$ac_word" "$@"
1898 shift
1899 ac_cv_prog_CC="$@"
1904 CC="$ac_cv_prog_CC"
1905 if test -n "$CC"; then
1906 echo "$ac_t""$CC" 1>&6
1907 else
1908 echo "$ac_t""no" 1>&6
1911 if test -z "$CC"; then
1912 case "`uname -s`" in
1913 *win32* | *WIN32*)
1914 # Extract the first word of "cl", so it can be a program name with args.
1915 set dummy cl; ac_word=$2
1916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1917 echo "configure:1918: checking for $ac_word" >&5
1918 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1920 else
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1923 else
1924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1925 ac_dummy="$PATH"
1926 for ac_dir in $ac_dummy; do
1927 test -z "$ac_dir" && ac_dir=.
1928 if test -f $ac_dir/$ac_word; then
1929 ac_cv_prog_CC="cl"
1930 break
1932 done
1933 IFS="$ac_save_ifs"
1936 CC="$ac_cv_prog_CC"
1937 if test -n "$CC"; then
1938 echo "$ac_t""$CC" 1>&6
1939 else
1940 echo "$ac_t""no" 1>&6
1943 esac
1945 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1948 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1949 echo "configure:1950: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1951 ac_ext=c
1952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1953 ac_cpp='$CPP $CPPFLAGS'
1954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1956 cross_compiling=$ac_cv_prog_cc_cross
1958 cat > conftest.$ac_ext << EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1963 main(){return(0);}
1965 if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1966 ac_cv_prog_cc_works=yes
1967 # If we can't run a trivial program, we are probably using a cross compiler.
1968 if (./conftest; exit) 2>/dev/null; then
1969 ac_cv_prog_cc_cross=no
1970 else
1971 ac_cv_prog_cc_cross=yes
1973 else
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 ac_cv_prog_cc_works=no
1978 rm -fr conftest*
1979 ac_ext=c
1980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1981 ac_cpp='$CPP $CPPFLAGS'
1982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1984 cross_compiling=$ac_cv_prog_cc_cross
1986 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1987 if test $ac_cv_prog_cc_works = no; then
1988 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1990 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1991 echo "configure:1992: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1992 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1993 cross_compiling=$ac_cv_prog_cc_cross
1995 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1996 echo "configure:1997: checking whether we are using GNU C" >&5
1997 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
1999 else
2000 cat > conftest.c <<EOF
2001 #ifdef __GNUC__
2002 yes;
2003 #endif
2005 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2006 ac_cv_prog_gcc=yes
2007 else
2008 ac_cv_prog_gcc=no
2012 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2014 if test $ac_cv_prog_gcc = yes; then
2015 GCC=yes
2016 else
2017 GCC=
2020 ac_test_CFLAGS="${CFLAGS+set}"
2021 ac_save_CFLAGS="$CFLAGS"
2022 CFLAGS=
2023 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2024 echo "configure:2025: checking whether ${CC-cc} accepts -g" >&5
2025 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2027 else
2028 echo 'void f(){}' > conftest.c
2029 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2030 ac_cv_prog_cc_g=yes
2031 else
2032 ac_cv_prog_cc_g=no
2034 rm -f conftest*
2038 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2039 if test "$ac_test_CFLAGS" = set; then
2040 CFLAGS="$ac_save_CFLAGS"
2041 elif test $ac_cv_prog_cc_g = yes; then
2042 if test "$GCC" = yes; then
2043 CFLAGS="-g -O2"
2044 else
2045 CFLAGS="-g"
2047 else
2048 if test "$GCC" = yes; then
2049 CFLAGS="-O2"
2050 else
2051 CFLAGS=
2056 # We must set the default linker to the linker used by gcc for the correct
2057 # operation of libtool. If LD is not defined and we are using gcc, try to
2058 # set the LD default to the ld used by gcc.
2059 if test -z "$LD"; then
2060 if test "$GCC" = yes; then
2061 case $build in
2062 *-*-mingw*)
2063 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2065 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2066 esac
2067 case $gcc_prog_ld in
2068 # Accept absolute paths.
2069 [\\/]* | [A-Za-z]:[\\/]*)
2070 LD="$gcc_prog_ld" ;;
2071 esac
2075 CXX=${CXX-"c++"}
2076 CFLAGS=${CFLAGS-"-g"}
2077 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2080 if test $host != $build; then
2081 ac_tool_prefix=${host_alias}-
2082 else
2083 ac_tool_prefix=
2088 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2089 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2091 echo "configure:2092: checking for $ac_word" >&5
2092 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2094 else
2095 if test -n "$GNATBIND"; then
2096 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2097 else
2098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2099 ac_dummy="$PATH"
2100 for ac_dir in $ac_dummy; do
2101 test -z "$ac_dir" && ac_dir=.
2102 if test -f $ac_dir/$ac_word; then
2103 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2104 break
2106 done
2107 IFS="$ac_save_ifs"
2110 GNATBIND="$ac_cv_prog_GNATBIND"
2111 if test -n "$GNATBIND"; then
2112 echo "$ac_t""$GNATBIND" 1>&6
2113 else
2114 echo "$ac_t""no" 1>&6
2118 if test -z "$ac_cv_prog_GNATBIND"; then
2119 if test -n "$ac_tool_prefix"; then
2120 # Extract the first word of "gnatbind", so it can be a program name with args.
2121 set dummy gnatbind; ac_word=$2
2122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_word" >&5
2124 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2126 else
2127 if test -n "$GNATBIND"; then
2128 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2129 else
2130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2131 ac_dummy="$PATH"
2132 for ac_dir in $ac_dummy; do
2133 test -z "$ac_dir" && ac_dir=.
2134 if test -f $ac_dir/$ac_word; then
2135 ac_cv_prog_GNATBIND="gnatbind"
2136 break
2138 done
2139 IFS="$ac_save_ifs"
2140 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2143 GNATBIND="$ac_cv_prog_GNATBIND"
2144 if test -n "$GNATBIND"; then
2145 echo "$ac_t""$GNATBIND" 1>&6
2146 else
2147 echo "$ac_t""no" 1>&6
2150 else
2151 GNATBIND="no"
2155 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2156 echo "configure:2157: checking whether compiler driver understands Ada" >&5
2157 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2159 else
2160 cat >conftest.adb <<EOF
2161 procedure conftest is begin null; end conftest;
2163 acx_cv_cc_gcc_supports_ada=no
2164 # There is a bug in old released versions of GCC which causes the
2165 # driver to exit successfully when the appropriate language module
2166 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2167 # Therefore we must check for the error message as well as an
2168 # unsuccessful exit.
2169 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2170 # given a .adb file, but produce no object file. So we must check
2171 # if an object file was really produced to guard against this.
2172 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2173 if test x"$errors" = x && test -f conftest.$ac_objext; then
2174 acx_cv_cc_gcc_supports_ada=yes
2176 rm -f conftest.*
2179 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2181 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2182 have_gnat=yes
2183 else
2184 have_gnat=no
2187 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2188 echo "configure:2189: checking how to compare bootstrapped objects" >&5
2189 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2191 else
2192 echo abfoo >t1
2193 echo cdfoo >t2
2194 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2195 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2196 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2198 else
2199 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2202 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2203 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2205 else
2206 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2209 rm t1 t2
2213 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2214 do_compare="$gcc_cv_prog_cmp_skip"
2218 # Check for GMP and MPFR
2219 gmplibs=
2220 gmpinc=
2221 have_gmp=yes
2222 # Specify a location for mpfr
2223 # check for this first so it ends up on the link line before gmp.
2224 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2225 if test "${with_mpfr_dir+set}" = set; then
2226 withval="$with_mpfr_dir"
2231 if test "x$with_mpfr_dir" != x; then
2232 gmpinc="-I$with_mpfr_dir"
2233 gmplibs="$with_mpfr_dir/libmpfr.a"
2234 else
2235 gmplibs="-lmpfr"
2238 # Check whether --with-mpfr or --without-mpfr was given.
2239 if test "${with_mpfr+set}" = set; then
2240 withval="$with_mpfr"
2245 if test "x$with_mpfr" != x; then
2246 gmplibs="-L$with_mpfr/lib $gmplibs"
2247 gmpinc="-I$with_mpfr/include"
2250 # Specify a location for gmp
2251 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2252 if test "${with_gmp_dir+set}" = set; then
2253 withval="$with_gmp_dir"
2258 if test "x$with_gmp_dir" != x; then
2259 gmpinc="$gmpinc -I$with_gmp_dir"
2260 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2261 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2262 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2263 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2265 # One of the later tests will catch the error if neither library is present.
2266 else
2267 gmplibs="$gmplibs -lgmp"
2270 # Check whether --with-gmp or --without-gmp was given.
2271 if test "${with_gmp+set}" = set; then
2272 withval="$with_gmp"
2277 if test "x$with_gmp" != x; then
2278 gmplibs="-L$with_gmp/lib $gmplibs"
2279 gmpinc="-I$with_gmp/include $gmpinc"
2282 saved_CFLAGS="$CFLAGS"
2283 CFLAGS="$CFLAGS $gmpinc"
2284 # Check GMP actually works
2285 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2286 echo "configure:2287: checking for correct version of gmp.h" >&5
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2290 #include "gmp.h"
2291 int main() {
2293 #if __GNU_MP_VERSION < 3
2294 choke me
2295 #endif
2297 ; return 0; }
2299 if { (eval echo configure:2300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2300 rm -rf conftest*
2301 echo "$ac_t""yes" 1>&6
2302 else
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2305 rm -rf conftest*
2306 echo "$ac_t""no" 1>&6; have_gmp=no
2308 rm -f conftest*
2310 if test x"$have_gmp" = xyes; then
2311 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2312 echo "configure:2313: checking for MPFR" >&5
2314 saved_LIBS="$LIBS"
2315 LIBS="$LIBS $gmplibs"
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2319 #include <gmp.h>
2320 #include <mpfr.h>
2321 int main() {
2322 mpfr_t n; mpfr_init(n);
2323 ; return 0; }
2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2326 rm -rf conftest*
2327 echo "$ac_t""yes" 1>&6
2328 else
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2331 rm -rf conftest*
2332 echo "$ac_t""no" 1>&6; have_gmp=no
2334 rm -f conftest*
2335 LIBS="$saved_LIBS"
2336 CFLAGS="$saved_CFLAGS"
2339 # Flags needed for both GMP and/or MPFR
2343 # By default, C is the only stage 1 language.
2344 stage1_languages=c
2347 # Figure out what language subdirectories are present.
2348 # Look if the user specified --enable-languages="..."; if not, use
2349 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2350 # go away some day.
2351 # NB: embedded tabs in this IF block -- do not untabify
2352 if test -d ${srcdir}/gcc; then
2353 if test x"${enable_languages+set}" != xset; then
2354 if test x"${LANGUAGES+set}" = xset; then
2355 enable_languages="${LANGUAGES}"
2356 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2357 else
2358 enable_languages=all
2360 else
2361 if test x"${enable_languages}" = x ||
2362 test x"${enable_languages}" = xyes;
2363 then
2364 echo configure.in: --enable-languages needs at least one language argument 1>&2
2365 exit 1
2368 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2370 # 'f95' is the old name for the 'fortran' language. We issue a warning
2371 # and make the substitution.
2372 case ,${enable_languages}, in
2373 *,f95,*)
2374 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2375 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2377 esac
2379 # First scan to see if an enabled language requires some other language.
2380 # We assume that a given config-lang.in will list all the language
2381 # front ends it requires, even if some are required indirectly.
2382 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2383 case ${lang_frag} in
2384 ..) ;;
2385 # The odd quoting in the next line works around
2386 # an apparent bug in bash 1.12 on linux.
2387 ${srcdir}/gcc/[*]/config-lang.in) ;;
2389 # From the config-lang.in, get $language, $lang_requires
2390 language=
2391 lang_requires=
2392 . ${lang_frag}
2393 for other in ${lang_requires} ; do
2394 case ,${enable_languages}, in
2395 *,$other,*) ;;
2396 *,all,*) ;;
2397 *,$language,*)
2398 echo " \`$other' language required by \`$language'; enabling" 1>&2
2399 enable_languages="${enable_languages},${other}"
2401 esac
2402 done
2404 esac
2405 done
2407 new_enable_languages=c
2408 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2409 potential_languages=c
2411 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2412 case ${lang_frag} in
2413 ..) ;;
2414 # The odd quoting in the next line works around
2415 # an apparent bug in bash 1.12 on linux.
2416 ${srcdir}/gcc/[*]/config-lang.in) ;;
2418 # From the config-lang.in, get $language, $target_libs,
2419 # $lang_dirs, $boot_language, and $build_by_default
2420 language=
2421 target_libs=
2422 lang_dirs=
2423 boot_language=
2424 build_by_default=
2425 need_gmp=
2426 . ${lang_frag}
2427 potential_languages="${potential_languages},${language}"
2428 # This is quite sensitive to the ordering of the case statement arms.
2429 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2430 *::*:*)
2431 echo "${lang_frag} doesn't set \$language." 1>&2
2432 exit 1
2434 *:ada:no:*)
2435 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2436 add_this_lang=no
2438 *,${language},*:*:*:*)
2439 # Language was explicitly selected; include it.
2440 add_this_lang=yes
2442 *,all,*:*:*:no)
2443 # 'all' was selected, but this is not a default language
2444 # so do not include it.
2445 add_this_lang=no
2447 *,all,*:*:*:*)
2448 # 'all' was selected and this is a default language; include it.
2449 add_this_lang=yes
2452 add_this_lang=no
2454 esac
2456 # Disable languages that need GMP if it isn't available.
2457 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2458 *,${language},*:no:yes)
2459 # Specifically requested language; tell them.
2460 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2462 *:no:yes)
2463 # Silently disable.
2464 add_this_lang=no
2466 esac
2468 # Disable a language that is unsupported by the target.
2469 case " $unsupported_languages " in
2470 *" $language "*)
2471 add_this_lang=no
2473 esac
2475 case $add_this_lang in
2477 # Remove language-dependent dirs.
2478 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2481 new_enable_languages="$new_enable_languages,$language"
2482 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2483 case ${boot_language} in
2484 yes)
2485 # Add to (comma-separated) list of stage 1 languages.
2486 stage1_languages="${stage1_languages},${language}"
2488 esac
2490 esac
2492 esac
2493 done
2495 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2496 if test "x$missing_languages" != x; then
2497 { echo "configure: error:
2498 The following requested languages could not be built: ${missing_languages}
2499 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2502 if test "x$new_enable_languages" != "x$enable_languages"; then
2503 echo The following languages will be built: ${new_enable_languages}
2505 enable_languages="$new_enable_languages"
2506 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2509 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2510 # $build_configdirs and $target_configdirs.
2511 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2513 notsupp=""
2514 for dir in . $skipdirs $noconfigdirs ; do
2515 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2516 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2517 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2518 if test -r $srcdir/$dirname/configure ; then
2519 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2520 true
2521 else
2522 notsupp="$notsupp $dir"
2526 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2527 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2528 if test -r $srcdir/$dirname/configure ; then
2529 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2530 true
2531 else
2532 notsupp="$notsupp $dir"
2536 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2537 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2538 if test -r $srcdir/$dirname/configure ; then
2539 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2540 true
2541 else
2542 notsupp="$notsupp $dir"
2546 done
2548 # Sometimes the tools are distributed with libiberty but with no other
2549 # libraries. In that case, we don't want to build target-libiberty.
2550 if test -n "${target_configdirs}" ; then
2551 others=
2552 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2553 if test "$i" != "libiberty" ; then
2554 if test -r $srcdir/$i/configure ; then
2555 others=yes;
2556 break;
2559 done
2560 if test -z "${others}" ; then
2561 target_configdirs=
2565 # Quietly strip out all directories which aren't configurable in this tree.
2566 # This relies on all configurable subdirectories being autoconfiscated, which
2567 # is now the case.
2568 build_configdirs_all="$build_configdirs"
2569 build_configdirs=
2570 for i in ${build_configdirs_all} ; do
2571 j=`echo $i | sed -e s/build-//g`
2572 if test -f ${srcdir}/$j/configure ; then
2573 build_configdirs="${build_configdirs} $i"
2575 done
2577 configdirs_all="$configdirs"
2578 configdirs=
2579 for i in ${configdirs_all} ; do
2580 if test -f ${srcdir}/$i/configure ; then
2581 configdirs="${configdirs} $i"
2583 done
2585 target_configdirs_all="$target_configdirs"
2586 target_configdirs=
2587 for i in ${target_configdirs_all} ; do
2588 j=`echo $i | sed -e s/target-//g`
2589 if test -f ${srcdir}/$j/configure ; then
2590 target_configdirs="${target_configdirs} $i"
2592 done
2594 # Produce a warning message for the subdirs we can't configure.
2595 # This isn't especially interesting in the Cygnus tree, but in the individual
2596 # FSF releases, it's important to let people know when their machine isn't
2597 # supported by the one or two programs in a package.
2599 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2600 # If $appdirs is non-empty, at least one of those directories must still
2601 # be configured, or we error out. (E.g., if the gas release supports a
2602 # specified target in some subdirs but not the gas subdir, we shouldn't
2603 # pretend that all is well.)
2604 if test -n "$appdirs" ; then
2605 for dir in $appdirs ; do
2606 if test -r $dir/Makefile.in ; then
2607 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2608 appdirs=""
2609 break
2611 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2612 appdirs=""
2613 break
2616 done
2617 if test -n "$appdirs" ; then
2618 echo "*** This configuration is not supported by this package." 1>&2
2619 exit 1
2622 # Okay, some application will build, or we don't care to check. Still
2623 # notify of subdirs not getting built.
2624 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2625 echo " ${notsupp}" 1>&2
2626 echo " (Any other directories should still work fine.)" 1>&2
2629 case "$host" in
2630 *msdosdjgpp*)
2631 enable_gdbtk=no ;;
2632 esac
2634 copy_dirs=
2636 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2637 if test "${with_build_sysroot+set}" = set; then
2638 withval="$with_build_sysroot"
2639 if test x"$withval" != x ; then
2640 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2642 else
2643 SYSROOT_CFLAGS_FOR_TARGET=
2648 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2649 # the named directory are copied to $(tooldir)/sys-include.
2650 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2651 if test x${is_cross_compiler} = xno ; then
2652 echo 1>&2 '***' --with-headers is only supported when cross compiling
2653 exit 1
2655 if test x"${with_headers}" != xyes ; then
2656 case "${exec_prefixoption}" in
2657 "") x=${prefix} ;;
2658 *) x=${exec_prefix} ;;
2659 esac
2660 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2664 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2665 # the name directories are copied to $(tooldir)/lib. Multiple directories
2666 # are permitted.
2667 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2668 if test x${is_cross_compiler} = xno ; then
2669 echo 1>&2 '***' --with-libs is only supported when cross compiling
2670 exit 1
2672 if test x"${with_libs}" != xyes ; then
2673 # Copy the libraries in reverse order, so that files in the first named
2674 # library override files in subsequent libraries.
2675 case "${exec_prefixoption}" in
2676 "") x=${prefix} ;;
2677 *) x=${exec_prefix} ;;
2678 esac
2679 for l in ${with_libs}; do
2680 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2681 done
2685 # Set with_gnu_as and with_gnu_ld as appropriate.
2687 # This is done by determining whether or not the appropriate directory
2688 # is available, and by checking whether or not specific configurations
2689 # have requested that this magic not happen.
2691 # The command line options always override the explicit settings in
2692 # configure.in, and the settings in configure.in override this magic.
2694 # If the default for a toolchain is to use GNU as and ld, and you don't
2695 # want to do that, then you should use the --without-gnu-as and
2696 # --without-gnu-ld options for the configure script.
2698 if test x${use_gnu_as} = x &&
2699 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2700 with_gnu_as=yes
2701 extra_host_args="$extra_host_args --with-gnu-as"
2704 if test x${use_gnu_ld} = x &&
2705 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2706 with_gnu_ld=yes
2707 extra_host_args="$extra_host_args --with-gnu-ld"
2710 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2711 # can detect this case.
2713 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2714 with_newlib=yes
2715 extra_host_args="$extra_host_args --with-newlib"
2718 # Handle ${copy_dirs}
2719 set fnord ${copy_dirs}
2720 shift
2721 while test $# != 0 ; do
2722 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2724 else
2725 echo Copying $1 to $2
2727 # Use the install script to create the directory and all required
2728 # parent directories.
2729 if test -d $2 ; then
2731 else
2732 echo >config.temp
2733 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2736 # Copy the directory, assuming we have tar.
2737 # FIXME: Should we use B in the second tar? Not all systems support it.
2738 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2740 # It is the responsibility of the user to correctly adjust all
2741 # symlinks. If somebody can figure out how to handle them correctly
2742 # here, feel free to add the code.
2744 echo $1 > $2/COPIED
2746 shift; shift
2747 done
2749 # Determine a target-dependent exec_prefix that the installed
2750 # gcc will search in. Keep this list sorted by triplet, with
2751 # the *-*-osname triplets last.
2752 md_exec_prefix=
2753 case "${target}" in
2754 alpha*-*-*vms*)
2755 md_exec_prefix=/gnu/lib/gcc-lib
2757 i3456786-pc-msdosdjgpp*)
2758 md_exec_prefix=/dev/env/DJDIR/bin
2760 i3456786-*-sco3.2v5*)
2761 if test $with_gnu_as = yes; then
2762 md_exec_prefix=/usr/gnu/bin
2763 else
2764 md_exec_prefix=/usr/ccs/bin/elf
2768 mn10300-*-* | \
2769 powerpc-*-chorusos* | \
2770 powerpc*-*-eabi* | \
2771 powerpc*-*-sysv* | \
2772 powerpc*-*-kaos* | \
2773 s390x-ibm-tpf*)
2774 md_exec_prefix=/usr/ccs/bin
2776 sparc64-*-elf*)
2778 v850*-*-*)
2779 md_exec_prefix=/usr/ccs/bin
2781 xtensa-*-elf*)
2784 *-*-beos* | \
2785 *-*-elf* | \
2786 *-*-hpux* | \
2787 *-*-netware* | \
2788 *-*-nto-qnx* | \
2789 *-*-rtems* | \
2790 *-*-solaris2* | \
2791 *-*-sysv45* | \
2792 *-*-vxworks* | \
2793 *-wrs-windiss)
2794 md_exec_prefix=/usr/ccs/bin
2796 esac
2798 extra_arflags_for_target=
2799 extra_nmflags_for_target=
2800 extra_ranlibflags_for_target=
2801 target_makefile_frag=/dev/null
2802 case "${target}" in
2803 *-*-netware*)
2804 target_makefile_frag="config/mt-netware"
2806 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2807 target_makefile_frag="config/mt-gnu"
2809 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2810 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2811 # commands to handle both 32-bit and 64-bit objects. These flags are
2812 # harmless if we're using GNU nm or ar.
2813 extra_arflags_for_target=" -X32_64"
2814 extra_nmflags_for_target=" -B -X32_64"
2816 *-*-darwin*)
2817 # ranlib from Darwin requires the -c flag to look at common symbols.
2818 extra_ranlibflags_for_target=" -c"
2820 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2821 target_makefile_frag="config/mt-wince"
2823 esac
2825 alphaieee_frag=/dev/null
2826 case $target in
2827 alpha*-*-*)
2828 # This just makes sure to use the -mieee option to build target libs.
2829 # This should probably be set individually by each library.
2830 alphaieee_frag="config/mt-alphaieee"
2832 esac
2834 # If --enable-target-optspace always use -Os instead of -O2 to build
2835 # the target libraries, similarly if it is not specified, use -Os
2836 # on selected platforms.
2837 ospace_frag=/dev/null
2838 case "${enable_target_optspace}:${target}" in
2839 yes:*)
2840 ospace_frag="config/mt-ospace"
2842 :d30v-*)
2843 ospace_frag="config/mt-d30v"
2845 :m32r-* | :d10v-* | :fr30-*)
2846 ospace_frag="config/mt-ospace"
2848 no:* | :*)
2851 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2853 esac
2855 # Default to using --with-stabs for certain targets.
2856 if test x${with_stabs} = x ; then
2857 case "${target}" in
2858 mips*-*-irix[56]*)
2860 mips*-*-* | alpha*-*-osf*)
2861 with_stabs=yes;
2862 extra_host_args="${extra_host_args} --with-stabs"
2864 esac
2867 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2868 # them automatically.
2869 case "${host}" in
2870 hppa*64*-*-hpux11*)
2871 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2873 esac
2875 # Some systems (e.g., one of the i386-aix systems the gas testers are
2876 # using) don't handle "\$" correctly, so don't use it here.
2877 tooldir='${exec_prefix}'/${target_alias}
2878 build_tooldir=${tooldir}
2880 # Create a .gdbinit file which runs the one in srcdir
2881 # and tells GDB to look there for source files.
2883 if test -r ${srcdir}/.gdbinit ; then
2884 case ${srcdir} in
2885 .) ;;
2886 *) cat > ./.gdbinit <<EOF
2887 # ${NO_EDIT}
2888 dir ${srcdir}
2889 dir .
2890 source ${srcdir}/.gdbinit
2893 esac
2896 # Make sure that the compiler is able to generate an executable. If it
2897 # can't, we are probably in trouble. We don't care whether we can run the
2898 # executable--we might be using a cross compiler--we only care whether it
2899 # can be created. At this point the main configure script has set CC.
2900 we_are_ok=no
2901 echo "int main () { return 0; }" > conftest.c
2902 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2903 if test $? = 0 ; then
2904 if test -s conftest || test -s conftest.exe ; then
2905 we_are_ok=yes
2908 case $we_are_ok in
2910 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2911 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2912 rm -f conftest*
2913 exit 1
2915 esac
2916 rm -f conftest*
2918 # The Solaris /usr/ucb/cc compiler does not appear to work.
2919 case "${host}" in
2920 sparc-sun-solaris2*)
2921 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2922 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2923 could_use=
2924 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2925 if test -d /opt/cygnus/bin ; then
2926 if test "$could_use" = "" ; then
2927 could_use="/opt/cygnus/bin"
2928 else
2929 could_use="$could_use or /opt/cygnus/bin"
2932 if test "$could_use" = "" ; then
2933 echo "Warning: compilation may fail because you're using"
2934 echo "/usr/ucb/cc. You should change your PATH or CC "
2935 echo "variable and rerun configure."
2936 else
2937 echo "Warning: compilation may fail because you're using"
2938 echo "/usr/ucb/cc, when you should use the C compiler from"
2939 echo "$could_use. You should change your"
2940 echo "PATH or CC variable and rerun configure."
2944 esac
2946 case "${host}" in
2947 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2948 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
2949 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2950 esac
2952 # Record target_configdirs and the configure arguments for target and
2953 # build configuration in Makefile.
2954 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2955 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
2957 # Determine whether gdb needs tk/tcl or not.
2958 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2959 # and in that case we want gdb to be built without tk. Ugh!
2960 # In fact I believe gdb is the *only* package directly dependent on tk,
2961 # so we should be able to put the 'maybe's in unconditionally and
2962 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2963 # 100% sure that that's safe though.
2965 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
2966 case "$enable_gdbtk" in
2968 GDB_TK="" ;;
2969 yes)
2970 GDB_TK="${gdb_tk}" ;;
2972 # Only add the dependency on gdbtk when GDBtk is part of the gdb
2973 # distro. Eventually someone will fix this and move Insight, nee
2974 # gdbtk to a separate directory.
2975 if test -d ${srcdir}/gdb/gdbtk ; then
2976 GDB_TK="${gdb_tk}"
2977 else
2978 GDB_TK=""
2981 esac
2982 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
2983 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
2985 # Strip out unwanted targets.
2987 # While at that, we remove Makefiles if we were started for recursive
2988 # configuration, so that the top-level Makefile reconfigures them,
2989 # like we used to do when configure itself was recursive.
2991 # Loop over modules. $extrasub must be used with care, limiting as
2992 # much as possible the usage of range addresses. That's because autoconf
2993 # splits the sed script to overcome limits in the number of commands,
2994 # and relying on carefully-timed sed passes may turn out to be very hard
2995 # to maintain later. In this particular case, you just have to be careful
2996 # not to nest @if/@endif pairs, because configure will not warn you at all.
2998 # Check whether --enable-bootstrap or --disable-bootstrap was given.
2999 if test "${enable_bootstrap+set}" = set; then
3000 enableval="$enable_bootstrap"
3002 else
3003 enable_bootstrap=default
3007 # Issue errors and warnings for invalid/strange bootstrap combinations.
3008 case "$configdirs" in
3009 *gcc*) have_compiler=yes ;;
3010 *) have_compiler=no ;;
3011 esac
3013 case "$have_compiler:$host:$target:$enable_bootstrap" in
3014 *:*:*:no) ;;
3016 # Default behavior. Enable bootstrap if we have a compiler
3017 # and we are in a native configuration.
3018 yes:$build:$build:default)
3019 enable_bootstrap=yes ;;
3021 *:*:*:default)
3022 enable_bootstrap=no ;;
3024 # We have a compiler and we are in a native configuration, bootstrap is ok
3025 yes:$build:$build:yes)
3028 # Other configurations, but we have a compiler. Assume the user knows
3029 # what he's doing.
3030 yes:*:*:yes)
3031 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3034 # No compiler: if they passed --enable-bootstrap explicitly, fail
3035 no:*:*:yes)
3036 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3038 # Fail if wrong command line
3040 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3042 esac
3044 # Adjust the toplevel makefile according to whether bootstrap was selected.
3045 case "$enable_bootstrap" in
3046 yes)
3047 bootstrap_suffix=bootstrap ;;
3049 bootstrap_suffix=no-bootstrap ;;
3050 esac
3052 for module in ${build_configdirs} ; do
3053 if test -z "${no_recursion}" \
3054 && test -f ${build_subdir}/${module}/Makefile; then
3055 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3056 rm -f ${build_subdir}/${module}/Makefile
3058 extrasub="$extrasub
3059 /^@if build-$module\$/d
3060 /^@endif build-$module\$/d
3061 /^@if build-$module-$bootstrap_suffix\$/d
3062 /^@endif build-$module-$bootstrap_suffix\$/d"
3063 done
3064 for module in ${configdirs} ; do
3065 if test -z "${no_recursion}"; then
3066 for file in stage*-${module}/Makefile ${module}/Makefile; do
3067 if test -f ${file}; then
3068 echo 1>&2 "*** removing ${file} to force reconfigure"
3069 rm -f ${file}
3071 done
3073 extrasub="$extrasub
3074 /^@if $module\$/d
3075 /^@endif $module\$/d
3076 /^@if $module-$bootstrap_suffix\$/d
3077 /^@endif $module-$bootstrap_suffix\$/d"
3078 done
3079 for module in ${target_configdirs} ; do
3080 if test -z "${no_recursion}" \
3081 && test -f ${target_subdir}/${module}/Makefile; then
3082 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3083 rm -f ${target_subdir}/${module}/Makefile
3085 extrasub="$extrasub
3086 /^@if target-$module\$/d
3087 /^@endif target-$module\$/d
3088 /^@if target-$module-$bootstrap_suffix\$/d
3089 /^@endif target-$module-$bootstrap_suffix\$/d"
3090 done
3092 extrasub="$extrasub
3093 /^@if /,/^@endif /d"
3095 # Create the serialization dependencies. This uses a temporary file.
3097 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3098 if test "${enable_serial_configure+set}" = set; then
3099 enableval="$enable_serial_configure"
3104 case ${enable_serial_configure} in
3105 yes)
3106 enable_serial_build_configure=yes
3107 enable_serial_host_configure=yes
3108 enable_serial_target_configure=yes
3110 esac
3112 # These force 'configure's to be done one at a time, to avoid problems
3113 # with contention over a shared config.cache.
3114 rm -f serdep.tmp
3115 echo '# serdep.tmp' > serdep.tmp
3116 olditem=
3117 test "x${enable_serial_build_configure}" = xyes &&
3118 for item in ${build_configdirs} ; do
3119 case ${olditem} in
3120 "") ;;
3121 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3122 esac
3123 olditem=${item}
3124 done
3125 olditem=
3126 test "x${enable_serial_host_configure}" = xyes &&
3127 for item in ${configdirs} ; do
3128 case ${olditem} in
3129 "") ;;
3130 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3131 esac
3132 olditem=${item}
3133 done
3134 olditem=
3135 test "x${enable_serial_target_configure}" = xyes &&
3136 for item in ${target_configdirs} ; do
3137 case ${olditem} in
3138 "") ;;
3139 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3140 esac
3141 olditem=${item}
3142 done
3143 serialization_dependencies=serdep.tmp
3146 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3147 # target and nonopt. These are the ones we might not want to pass
3148 # down to subconfigures. Also strip program-prefix, program-suffix,
3149 # and program-transform-name, so that we can pass down a consistent
3150 # program-transform-name. If autoconf has put single quotes around
3151 # any of these arguments (because they contain shell metacharacters)
3152 # then this will fail; in practice this only happens for
3153 # --program-transform-name, so be sure to override --program-transform-name
3154 # at the end of the argument list.
3155 # These will be expanded by make, so quote '$'.
3156 cat <<\EOF_SED > conftestsed
3157 s/ --no[^ ]*/ /g
3158 s/ --c[a-z-]*[= ][^ ]*//g
3159 s/ --sr[a-z-]*[= ][^ ]*//g
3160 s/ --ho[a-z-]*[= ][^ ]*//g
3161 s/ --bu[a-z-]*[= ][^ ]*//g
3162 s/ --t[a-z-]*[= ][^ ]*//g
3163 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3164 s/ -cache-file[= ][^ ]*//g
3165 s/ -srcdir[= ][^ ]*//g
3166 s/ -host[= ][^ ]*//g
3167 s/ -build[= ][^ ]*//g
3168 s/ -target[= ][^ ]*//g
3169 s/ -program-prefix[= ][^ ]*//g
3170 s/ -program-suffix[= ][^ ]*//g
3171 s/ -program-transform-name[= ][^ ]*//g
3172 s/ [^' -][^ ]* / /
3173 s/^ *//;s/ *$//
3174 s,\$,$$,g
3175 EOF_SED
3176 sed -f conftestsed <<EOF_SED > conftestsed.out
3177 ${ac_configure_args}
3178 EOF_SED
3179 baseargs=`cat conftestsed.out`
3180 rm -f conftestsed conftestsed.out
3182 # Add in --program-transform-name, after --program-prefix and
3183 # --program-suffix have been applied to it. Autoconf has already
3184 # doubled dollar signs and backslashes in program_transform_name; we want
3185 # the backslashes un-doubled, and then the entire thing wrapped in single
3186 # quotes, because this will be expanded first by make and then by the shell.
3187 # Also, because we want to override the logic in subdir configure scripts to
3188 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3189 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3190 ${program_transform_name}
3191 EOF_SED
3192 gcc_transform_name=`cat conftestsed.out`
3193 rm -f conftestsed.out
3194 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3196 # For the build-side libraries, we just need to pretend we're native,
3197 # and not use the same cache file. Multilibs are neither needed nor
3198 # desired.
3199 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3201 # For host modules, accept cache file option, or specification as blank.
3202 case "${cache_file}" in
3203 "") # empty
3204 cache_file_option="" ;;
3205 /* | [A-Za-z]:[\\/]* ) # absolute path
3206 cache_file_option="--cache-file=${cache_file}" ;;
3207 *) # relative path
3208 cache_file_option="--cache-file=../${cache_file}" ;;
3209 esac
3211 # Host dirs don't like to share a cache file either, horribly enough.
3212 # This seems to be due to autoconf 2.5x stupidity.
3213 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3215 target_configargs=${baseargs}
3217 # Passing a --with-cross-host argument lets the target libraries know
3218 # whether they are being built with a cross-compiler or being built
3219 # native. However, it would be better to use other mechanisms to make the
3220 # sorts of decisions they want to make on this basis. Please consider
3221 # this option to be deprecated. FIXME.
3222 if test x${is_cross_compiler} = xyes ; then
3223 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3226 # Default to --enable-multilib.
3227 if test x${enable_multilib} = x ; then
3228 target_configargs="--enable-multilib ${target_configargs}"
3231 # Pass --with-newlib if appropriate. Note that target_configdirs has
3232 # changed from the earlier setting of with_newlib.
3233 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3234 target_configargs="--with-newlib ${target_configargs}"
3237 # Different target subdirs use different values of certain variables
3238 # (notably CXX). Worse, multilibs use *lots* of different values.
3239 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3240 # it doesn't automatically accept command-line overrides of them.
3241 # This means it's not safe for target subdirs to share a cache file,
3242 # which is disgusting, but there you have it. Hopefully this can be
3243 # fixed in future. It's still worthwhile to use a cache file for each
3244 # directory. I think.
3246 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3247 # We need to pass --target, as newer autoconf's requires consistency
3248 # for target_alias and gcc doesn't manage it consistently.
3249 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3251 FLAGS_FOR_TARGET=
3252 case " $target_configdirs " in
3253 *" newlib "*)
3254 case " $target_configargs " in
3255 *" --with-newlib "*)
3256 case "$target" in
3257 *-cygwin*)
3258 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' ;;
3259 esac
3261 # If we're not building GCC, don't discard standard headers.
3262 if test -d ${srcdir}/gcc; then
3263 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3265 if test "${build}" != "${host}"; then
3266 # On Canadian crosses, CC_FOR_TARGET will have already been set
3267 # by `configure', so we won't have an opportunity to add -Bgcc/
3268 # to it. This is right: we don't want to search that directory
3269 # for binaries, but we want the header files in there, so add
3270 # them explicitly.
3271 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3273 # Someone might think of using the pre-installed headers on
3274 # Canadian crosses, in case the installed compiler is not fully
3275 # compatible with the compiler being built. In this case, it
3276 # would be better to flag an error than risking having
3277 # incompatible object files being constructed. We can't
3278 # guarantee that an error will be flagged, but let's hope the
3279 # compiler will do it, when presented with incompatible header
3280 # files.
3284 case "${target}-${is_cross_compiler}" in
3285 i[3456789]86-*-linux*-no)
3286 # Here host == target, so we don't need to build gcc,
3287 # so we don't want to discard standard headers.
3288 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3291 # If we're building newlib, use its generic headers last, but search
3292 # for any libc-related directories first (so make it the last -B
3293 # switch).
3294 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3296 esac
3298 esac
3300 esac
3302 # Allow the user to override the flags for
3303 # our build compiler if desired.
3304 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3306 # On Canadian crosses, we'll be searching the right directories for
3307 # the previously-installed cross compiler, so don't bother to add
3308 # flags for directories within the install tree of the compiler
3309 # being built; programs in there won't even run.
3310 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3311 # Search for pre-installed headers if nothing else fits.
3312 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3315 if test "x${use_gnu_ld}" = x &&
3316 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3317 # Arrange for us to find uninstalled linker scripts.
3318 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3321 # Makefile fragments.
3322 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3324 eval fragval=\$$frag
3325 if test $fragval != /dev/null; then
3326 eval $frag=${srcdir}/$fragval
3328 done
3334 # Miscellanea: directories, flags, etc.
3344 # Build module lists & subconfigure args.
3348 # Host module lists & subconfigure args.
3352 # Target module lists & subconfigure args.
3356 # Build tools.
3360 # Generate default definitions for YACC, M4, LEX and other programs that run
3361 # on the build machine. These are used if the Makefile can't locate these
3362 # programs in objdir.
3363 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3365 for ac_prog in 'bison -y' byacc yacc
3367 # Extract the first word of "$ac_prog", so it can be a program name with args.
3368 set dummy $ac_prog; ac_word=$2
3369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3370 echo "configure:3371: checking for $ac_word" >&5
3371 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6
3373 else
3374 if test -n "$YACC"; then
3375 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3376 else
3377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3378 ac_dummy="$PATH"
3379 for ac_dir in $ac_dummy; do
3380 test -z "$ac_dir" && ac_dir=.
3381 if test -f $ac_dir/$ac_word; then
3382 ac_cv_prog_YACC="$ac_prog"
3383 break
3385 done
3386 IFS="$ac_save_ifs"
3389 YACC="$ac_cv_prog_YACC"
3390 if test -n "$YACC"; then
3391 echo "$ac_t""$YACC" 1>&6
3392 else
3393 echo "$ac_t""no" 1>&6
3396 test -n "$YACC" && break
3397 done
3398 test -n "$YACC" || YACC="$MISSING bison -y"
3400 case " $build_configdirs " in
3401 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3402 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3403 esac
3405 for ac_prog in bison
3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3408 set dummy $ac_prog; ac_word=$2
3409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3410 echo "configure:3411: checking for $ac_word" >&5
3411 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3413 else
3414 if test -n "$BISON"; then
3415 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3416 else
3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3418 ac_dummy="$PATH"
3419 for ac_dir in $ac_dummy; do
3420 test -z "$ac_dir" && ac_dir=.
3421 if test -f $ac_dir/$ac_word; then
3422 ac_cv_prog_BISON="$ac_prog"
3423 break
3425 done
3426 IFS="$ac_save_ifs"
3429 BISON="$ac_cv_prog_BISON"
3430 if test -n "$BISON"; then
3431 echo "$ac_t""$BISON" 1>&6
3432 else
3433 echo "$ac_t""no" 1>&6
3436 test -n "$BISON" && break
3437 done
3438 test -n "$BISON" || BISON="$MISSING bison"
3440 case " $build_configdirs " in
3441 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3442 esac
3444 for ac_prog in gm4 gnum4 m4
3446 # Extract the first word of "$ac_prog", so it can be a program name with args.
3447 set dummy $ac_prog; ac_word=$2
3448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3449 echo "configure:3450: checking for $ac_word" >&5
3450 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3452 else
3453 if test -n "$M4"; then
3454 ac_cv_prog_M4="$M4" # Let the user override the test.
3455 else
3456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3457 ac_dummy="$PATH"
3458 for ac_dir in $ac_dummy; do
3459 test -z "$ac_dir" && ac_dir=.
3460 if test -f $ac_dir/$ac_word; then
3461 ac_cv_prog_M4="$ac_prog"
3462 break
3464 done
3465 IFS="$ac_save_ifs"
3468 M4="$ac_cv_prog_M4"
3469 if test -n "$M4"; then
3470 echo "$ac_t""$M4" 1>&6
3471 else
3472 echo "$ac_t""no" 1>&6
3475 test -n "$M4" && break
3476 done
3477 test -n "$M4" || M4="$MISSING m4"
3479 case " $build_configdirs " in
3480 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3481 esac
3483 for ac_prog in flex lex
3485 # Extract the first word of "$ac_prog", so it can be a program name with args.
3486 set dummy $ac_prog; ac_word=$2
3487 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3488 echo "configure:3489: checking for $ac_word" >&5
3489 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3491 else
3492 if test -n "$LEX"; then
3493 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3494 else
3495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3496 ac_dummy="$PATH"
3497 for ac_dir in $ac_dummy; do
3498 test -z "$ac_dir" && ac_dir=.
3499 if test -f $ac_dir/$ac_word; then
3500 ac_cv_prog_LEX="$ac_prog"
3501 break
3503 done
3504 IFS="$ac_save_ifs"
3507 LEX="$ac_cv_prog_LEX"
3508 if test -n "$LEX"; then
3509 echo "$ac_t""$LEX" 1>&6
3510 else
3511 echo "$ac_t""no" 1>&6
3514 test -n "$LEX" && break
3515 done
3516 test -n "$LEX" || LEX="$MISSING flex"
3518 case " $build_configdirs " in
3519 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3520 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3521 esac
3523 for ac_prog in flex
3525 # Extract the first word of "$ac_prog", so it can be a program name with args.
3526 set dummy $ac_prog; ac_word=$2
3527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3528 echo "configure:3529: checking for $ac_word" >&5
3529 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3531 else
3532 if test -n "$FLEX"; then
3533 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3534 else
3535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3536 ac_dummy="$PATH"
3537 for ac_dir in $ac_dummy; do
3538 test -z "$ac_dir" && ac_dir=.
3539 if test -f $ac_dir/$ac_word; then
3540 ac_cv_prog_FLEX="$ac_prog"
3541 break
3543 done
3544 IFS="$ac_save_ifs"
3547 FLEX="$ac_cv_prog_FLEX"
3548 if test -n "$FLEX"; then
3549 echo "$ac_t""$FLEX" 1>&6
3550 else
3551 echo "$ac_t""no" 1>&6
3554 test -n "$FLEX" && break
3555 done
3556 test -n "$FLEX" || FLEX="$MISSING flex"
3558 case " $build_configdirs " in
3559 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3560 esac
3562 for ac_prog in makeinfo
3564 # Extract the first word of "$ac_prog", so it can be a program name with args.
3565 set dummy $ac_prog; ac_word=$2
3566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3567 echo "configure:3568: checking for $ac_word" >&5
3568 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3570 else
3571 if test -n "$MAKEINFO"; then
3572 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3573 else
3574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3575 ac_dummy="$PATH"
3576 for ac_dir in $ac_dummy; do
3577 test -z "$ac_dir" && ac_dir=.
3578 if test -f $ac_dir/$ac_word; then
3579 ac_cv_prog_MAKEINFO="$ac_prog"
3580 break
3582 done
3583 IFS="$ac_save_ifs"
3586 MAKEINFO="$ac_cv_prog_MAKEINFO"
3587 if test -n "$MAKEINFO"; then
3588 echo "$ac_t""$MAKEINFO" 1>&6
3589 else
3590 echo "$ac_t""no" 1>&6
3593 test -n "$MAKEINFO" && break
3594 done
3595 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3597 case " $build_configdirs " in
3598 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3601 # For an installed makeinfo, we require it to be from texinfo 4.2 or
3602 # higher, else we use the "missing" dummy.
3603 if ${MAKEINFO} --version \
3604 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])' >/dev/null 2>&1; then
3606 else
3607 MAKEINFO="$MISSING makeinfo"
3611 esac
3613 # FIXME: expect and dejagnu may become build tools?
3615 for ac_prog in expect
3617 # Extract the first word of "$ac_prog", so it can be a program name with args.
3618 set dummy $ac_prog; ac_word=$2
3619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3620 echo "configure:3621: checking for $ac_word" >&5
3621 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3623 else
3624 if test -n "$EXPECT"; then
3625 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3626 else
3627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3628 ac_dummy="$PATH"
3629 for ac_dir in $ac_dummy; do
3630 test -z "$ac_dir" && ac_dir=.
3631 if test -f $ac_dir/$ac_word; then
3632 ac_cv_prog_EXPECT="$ac_prog"
3633 break
3635 done
3636 IFS="$ac_save_ifs"
3639 EXPECT="$ac_cv_prog_EXPECT"
3640 if test -n "$EXPECT"; then
3641 echo "$ac_t""$EXPECT" 1>&6
3642 else
3643 echo "$ac_t""no" 1>&6
3646 test -n "$EXPECT" && break
3647 done
3648 test -n "$EXPECT" || EXPECT="expect"
3650 case " $configdirs " in
3651 *" expect "*)
3652 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3654 esac
3656 for ac_prog in runtest
3658 # Extract the first word of "$ac_prog", so it can be a program name with args.
3659 set dummy $ac_prog; ac_word=$2
3660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3661 echo "configure:3662: checking for $ac_word" >&5
3662 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3664 else
3665 if test -n "$RUNTEST"; then
3666 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3667 else
3668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3669 ac_dummy="$PATH"
3670 for ac_dir in $ac_dummy; do
3671 test -z "$ac_dir" && ac_dir=.
3672 if test -f $ac_dir/$ac_word; then
3673 ac_cv_prog_RUNTEST="$ac_prog"
3674 break
3676 done
3677 IFS="$ac_save_ifs"
3680 RUNTEST="$ac_cv_prog_RUNTEST"
3681 if test -n "$RUNTEST"; then
3682 echo "$ac_t""$RUNTEST" 1>&6
3683 else
3684 echo "$ac_t""no" 1>&6
3687 test -n "$RUNTEST" && break
3688 done
3689 test -n "$RUNTEST" || RUNTEST="runtest"
3691 case " $configdirs " in
3692 *" dejagnu "*)
3693 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3695 esac
3698 # Host tools.
3699 ncn_tool_prefix=
3700 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3701 ncn_target_tool_prefix=
3702 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3704 for ncn_progname in ar; do
3705 if test -n "$ncn_tool_prefix"; then
3706 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3707 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3709 echo "configure:3710: checking for $ac_word" >&5
3710 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3712 else
3713 if test -n "$AR"; then
3714 ac_cv_prog_AR="$AR" # Let the user override the test.
3715 else
3716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3717 ac_dummy="$PATH"
3718 for ac_dir in $ac_dummy; do
3719 test -z "$ac_dir" && ac_dir=.
3720 if test -f $ac_dir/$ac_word; then
3721 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3722 break
3724 done
3725 IFS="$ac_save_ifs"
3728 AR="$ac_cv_prog_AR"
3729 if test -n "$AR"; then
3730 echo "$ac_t""$AR" 1>&6
3731 else
3732 echo "$ac_t""no" 1>&6
3736 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3738 set dummy ${ncn_progname}; ac_word=$2
3739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3740 echo "configure:3741: checking for $ac_word" >&5
3741 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3743 else
3744 if test -n "$AR"; then
3745 ac_cv_prog_AR="$AR" # Let the user override the test.
3746 else
3747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3748 ac_dummy="$PATH"
3749 for ac_dir in $ac_dummy; do
3750 test -z "$ac_dir" && ac_dir=.
3751 if test -f $ac_dir/$ac_word; then
3752 ac_cv_prog_AR="${ncn_progname}"
3753 break
3755 done
3756 IFS="$ac_save_ifs"
3759 AR="$ac_cv_prog_AR"
3760 if test -n "$AR"; then
3761 echo "$ac_t""$AR" 1>&6
3762 else
3763 echo "$ac_t""no" 1>&6
3767 test -n "$ac_cv_prog_AR" && break
3768 done
3770 if test -z "$ac_cv_prog_AR" ; then
3771 set dummy ar
3772 if test $build = $host ; then
3773 AR="$2"
3774 else
3775 AR="${ncn_tool_prefix}$2"
3779 for ncn_progname in as; do
3780 if test -n "$ncn_tool_prefix"; then
3781 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3782 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3784 echo "configure:3785: checking for $ac_word" >&5
3785 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3787 else
3788 if test -n "$AS"; then
3789 ac_cv_prog_AS="$AS" # Let the user override the test.
3790 else
3791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3792 ac_dummy="$PATH"
3793 for ac_dir in $ac_dummy; do
3794 test -z "$ac_dir" && ac_dir=.
3795 if test -f $ac_dir/$ac_word; then
3796 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3797 break
3799 done
3800 IFS="$ac_save_ifs"
3803 AS="$ac_cv_prog_AS"
3804 if test -n "$AS"; then
3805 echo "$ac_t""$AS" 1>&6
3806 else
3807 echo "$ac_t""no" 1>&6
3811 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3813 set dummy ${ncn_progname}; ac_word=$2
3814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3815 echo "configure:3816: checking for $ac_word" >&5
3816 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3818 else
3819 if test -n "$AS"; then
3820 ac_cv_prog_AS="$AS" # Let the user override the test.
3821 else
3822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3823 ac_dummy="$PATH"
3824 for ac_dir in $ac_dummy; do
3825 test -z "$ac_dir" && ac_dir=.
3826 if test -f $ac_dir/$ac_word; then
3827 ac_cv_prog_AS="${ncn_progname}"
3828 break
3830 done
3831 IFS="$ac_save_ifs"
3834 AS="$ac_cv_prog_AS"
3835 if test -n "$AS"; then
3836 echo "$ac_t""$AS" 1>&6
3837 else
3838 echo "$ac_t""no" 1>&6
3842 test -n "$ac_cv_prog_AS" && break
3843 done
3845 if test -z "$ac_cv_prog_AS" ; then
3846 set dummy as
3847 if test $build = $host ; then
3848 AS="$2"
3849 else
3850 AS="${ncn_tool_prefix}$2"
3854 for ncn_progname in dlltool; do
3855 if test -n "$ncn_tool_prefix"; then
3856 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3857 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3859 echo "configure:3860: checking for $ac_word" >&5
3860 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3862 else
3863 if test -n "$DLLTOOL"; then
3864 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3865 else
3866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3867 ac_dummy="$PATH"
3868 for ac_dir in $ac_dummy; do
3869 test -z "$ac_dir" && ac_dir=.
3870 if test -f $ac_dir/$ac_word; then
3871 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3872 break
3874 done
3875 IFS="$ac_save_ifs"
3878 DLLTOOL="$ac_cv_prog_DLLTOOL"
3879 if test -n "$DLLTOOL"; then
3880 echo "$ac_t""$DLLTOOL" 1>&6
3881 else
3882 echo "$ac_t""no" 1>&6
3886 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3888 set dummy ${ncn_progname}; ac_word=$2
3889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3890 echo "configure:3891: checking for $ac_word" >&5
3891 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3893 else
3894 if test -n "$DLLTOOL"; then
3895 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3896 else
3897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3898 ac_dummy="$PATH"
3899 for ac_dir in $ac_dummy; do
3900 test -z "$ac_dir" && ac_dir=.
3901 if test -f $ac_dir/$ac_word; then
3902 ac_cv_prog_DLLTOOL="${ncn_progname}"
3903 break
3905 done
3906 IFS="$ac_save_ifs"
3909 DLLTOOL="$ac_cv_prog_DLLTOOL"
3910 if test -n "$DLLTOOL"; then
3911 echo "$ac_t""$DLLTOOL" 1>&6
3912 else
3913 echo "$ac_t""no" 1>&6
3917 test -n "$ac_cv_prog_DLLTOOL" && break
3918 done
3920 if test -z "$ac_cv_prog_DLLTOOL" ; then
3921 set dummy dlltool
3922 if test $build = $host ; then
3923 DLLTOOL="$2"
3924 else
3925 DLLTOOL="${ncn_tool_prefix}$2"
3929 for ncn_progname in ld; do
3930 if test -n "$ncn_tool_prefix"; then
3931 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3932 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3934 echo "configure:3935: checking for $ac_word" >&5
3935 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3937 else
3938 if test -n "$LD"; then
3939 ac_cv_prog_LD="$LD" # Let the user override the test.
3940 else
3941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3942 ac_dummy="$PATH"
3943 for ac_dir in $ac_dummy; do
3944 test -z "$ac_dir" && ac_dir=.
3945 if test -f $ac_dir/$ac_word; then
3946 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3947 break
3949 done
3950 IFS="$ac_save_ifs"
3953 LD="$ac_cv_prog_LD"
3954 if test -n "$LD"; then
3955 echo "$ac_t""$LD" 1>&6
3956 else
3957 echo "$ac_t""no" 1>&6
3961 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
3962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3963 set dummy ${ncn_progname}; ac_word=$2
3964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3965 echo "configure:3966: checking for $ac_word" >&5
3966 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3968 else
3969 if test -n "$LD"; then
3970 ac_cv_prog_LD="$LD" # Let the user override the test.
3971 else
3972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3973 ac_dummy="$PATH"
3974 for ac_dir in $ac_dummy; do
3975 test -z "$ac_dir" && ac_dir=.
3976 if test -f $ac_dir/$ac_word; then
3977 ac_cv_prog_LD="${ncn_progname}"
3978 break
3980 done
3981 IFS="$ac_save_ifs"
3984 LD="$ac_cv_prog_LD"
3985 if test -n "$LD"; then
3986 echo "$ac_t""$LD" 1>&6
3987 else
3988 echo "$ac_t""no" 1>&6
3992 test -n "$ac_cv_prog_LD" && break
3993 done
3995 if test -z "$ac_cv_prog_LD" ; then
3996 set dummy ld
3997 if test $build = $host ; then
3998 LD="$2"
3999 else
4000 LD="${ncn_tool_prefix}$2"
4004 for ncn_progname in lipo; do
4005 if test -n "$ncn_tool_prefix"; then
4006 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4007 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4009 echo "configure:4010: checking for $ac_word" >&5
4010 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4012 else
4013 if test -n "$LIPO"; then
4014 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4015 else
4016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4017 ac_dummy="$PATH"
4018 for ac_dir in $ac_dummy; do
4019 test -z "$ac_dir" && ac_dir=.
4020 if test -f $ac_dir/$ac_word; then
4021 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4022 break
4024 done
4025 IFS="$ac_save_ifs"
4028 LIPO="$ac_cv_prog_LIPO"
4029 if test -n "$LIPO"; then
4030 echo "$ac_t""$LIPO" 1>&6
4031 else
4032 echo "$ac_t""no" 1>&6
4036 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4038 set dummy ${ncn_progname}; ac_word=$2
4039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4040 echo "configure:4041: checking for $ac_word" >&5
4041 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4042 echo $ac_n "(cached) $ac_c" 1>&6
4043 else
4044 if test -n "$LIPO"; then
4045 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4046 else
4047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4048 ac_dummy="$PATH"
4049 for ac_dir in $ac_dummy; do
4050 test -z "$ac_dir" && ac_dir=.
4051 if test -f $ac_dir/$ac_word; then
4052 ac_cv_prog_LIPO="${ncn_progname}"
4053 break
4055 done
4056 IFS="$ac_save_ifs"
4059 LIPO="$ac_cv_prog_LIPO"
4060 if test -n "$LIPO"; then
4061 echo "$ac_t""$LIPO" 1>&6
4062 else
4063 echo "$ac_t""no" 1>&6
4067 test -n "$ac_cv_prog_LIPO" && break
4068 done
4070 if test -z "$ac_cv_prog_LIPO" ; then
4071 set dummy lipo
4072 if test $build = $host ; then
4073 LIPO="$2"
4074 else
4075 LIPO="${ncn_tool_prefix}$2"
4079 for ncn_progname in nm; do
4080 if test -n "$ncn_tool_prefix"; then
4081 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4082 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4084 echo "configure:4085: checking for $ac_word" >&5
4085 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4087 else
4088 if test -n "$NM"; then
4089 ac_cv_prog_NM="$NM" # Let the user override the test.
4090 else
4091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4092 ac_dummy="$PATH"
4093 for ac_dir in $ac_dummy; do
4094 test -z "$ac_dir" && ac_dir=.
4095 if test -f $ac_dir/$ac_word; then
4096 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4097 break
4099 done
4100 IFS="$ac_save_ifs"
4103 NM="$ac_cv_prog_NM"
4104 if test -n "$NM"; then
4105 echo "$ac_t""$NM" 1>&6
4106 else
4107 echo "$ac_t""no" 1>&6
4111 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4113 set dummy ${ncn_progname}; ac_word=$2
4114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4115 echo "configure:4116: checking for $ac_word" >&5
4116 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4118 else
4119 if test -n "$NM"; then
4120 ac_cv_prog_NM="$NM" # Let the user override the test.
4121 else
4122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4123 ac_dummy="$PATH"
4124 for ac_dir in $ac_dummy; do
4125 test -z "$ac_dir" && ac_dir=.
4126 if test -f $ac_dir/$ac_word; then
4127 ac_cv_prog_NM="${ncn_progname}"
4128 break
4130 done
4131 IFS="$ac_save_ifs"
4134 NM="$ac_cv_prog_NM"
4135 if test -n "$NM"; then
4136 echo "$ac_t""$NM" 1>&6
4137 else
4138 echo "$ac_t""no" 1>&6
4142 test -n "$ac_cv_prog_NM" && break
4143 done
4145 if test -z "$ac_cv_prog_NM" ; then
4146 set dummy nm
4147 if test $build = $host ; then
4148 NM="$2"
4149 else
4150 NM="${ncn_tool_prefix}$2"
4154 for ncn_progname in ranlib; do
4155 if test -n "$ncn_tool_prefix"; then
4156 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4157 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4159 echo "configure:4160: checking for $ac_word" >&5
4160 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
4162 else
4163 if test -n "$RANLIB"; then
4164 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4165 else
4166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4167 ac_dummy="$PATH"
4168 for ac_dir in $ac_dummy; do
4169 test -z "$ac_dir" && ac_dir=.
4170 if test -f $ac_dir/$ac_word; then
4171 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4172 break
4174 done
4175 IFS="$ac_save_ifs"
4178 RANLIB="$ac_cv_prog_RANLIB"
4179 if test -n "$RANLIB"; then
4180 echo "$ac_t""$RANLIB" 1>&6
4181 else
4182 echo "$ac_t""no" 1>&6
4186 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4188 set dummy ${ncn_progname}; ac_word=$2
4189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_word" >&5
4191 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4193 else
4194 if test -n "$RANLIB"; then
4195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4196 else
4197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4198 ac_dummy="$PATH"
4199 for ac_dir in $ac_dummy; do
4200 test -z "$ac_dir" && ac_dir=.
4201 if test -f $ac_dir/$ac_word; then
4202 ac_cv_prog_RANLIB="${ncn_progname}"
4203 break
4205 done
4206 IFS="$ac_save_ifs"
4209 RANLIB="$ac_cv_prog_RANLIB"
4210 if test -n "$RANLIB"; then
4211 echo "$ac_t""$RANLIB" 1>&6
4212 else
4213 echo "$ac_t""no" 1>&6
4217 test -n "$ac_cv_prog_RANLIB" && break
4218 done
4220 if test -z "$ac_cv_prog_RANLIB" ; then
4221 RANLIB=":"
4224 for ncn_progname in strip; do
4225 if test -n "$ncn_tool_prefix"; then
4226 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4227 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4229 echo "configure:4230: checking for $ac_word" >&5
4230 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4231 echo $ac_n "(cached) $ac_c" 1>&6
4232 else
4233 if test -n "$STRIP"; then
4234 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4235 else
4236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4237 ac_dummy="$PATH"
4238 for ac_dir in $ac_dummy; do
4239 test -z "$ac_dir" && ac_dir=.
4240 if test -f $ac_dir/$ac_word; then
4241 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4242 break
4244 done
4245 IFS="$ac_save_ifs"
4248 STRIP="$ac_cv_prog_STRIP"
4249 if test -n "$STRIP"; then
4250 echo "$ac_t""$STRIP" 1>&6
4251 else
4252 echo "$ac_t""no" 1>&6
4256 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4258 set dummy ${ncn_progname}; ac_word=$2
4259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4260 echo "configure:4261: checking for $ac_word" >&5
4261 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4263 else
4264 if test -n "$STRIP"; then
4265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4266 else
4267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4268 ac_dummy="$PATH"
4269 for ac_dir in $ac_dummy; do
4270 test -z "$ac_dir" && ac_dir=.
4271 if test -f $ac_dir/$ac_word; then
4272 ac_cv_prog_STRIP="${ncn_progname}"
4273 break
4275 done
4276 IFS="$ac_save_ifs"
4279 STRIP="$ac_cv_prog_STRIP"
4280 if test -n "$STRIP"; then
4281 echo "$ac_t""$STRIP" 1>&6
4282 else
4283 echo "$ac_t""no" 1>&6
4287 test -n "$ac_cv_prog_STRIP" && break
4288 done
4290 if test -z "$ac_cv_prog_STRIP" ; then
4291 STRIP=":"
4294 for ncn_progname in windres; do
4295 if test -n "$ncn_tool_prefix"; then
4296 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4297 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4299 echo "configure:4300: checking for $ac_word" >&5
4300 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6
4302 else
4303 if test -n "$WINDRES"; then
4304 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4305 else
4306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4307 ac_dummy="$PATH"
4308 for ac_dir in $ac_dummy; do
4309 test -z "$ac_dir" && ac_dir=.
4310 if test -f $ac_dir/$ac_word; then
4311 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4312 break
4314 done
4315 IFS="$ac_save_ifs"
4318 WINDRES="$ac_cv_prog_WINDRES"
4319 if test -n "$WINDRES"; then
4320 echo "$ac_t""$WINDRES" 1>&6
4321 else
4322 echo "$ac_t""no" 1>&6
4326 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4328 set dummy ${ncn_progname}; ac_word=$2
4329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4330 echo "configure:4331: checking for $ac_word" >&5
4331 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4333 else
4334 if test -n "$WINDRES"; then
4335 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4336 else
4337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4338 ac_dummy="$PATH"
4339 for ac_dir in $ac_dummy; do
4340 test -z "$ac_dir" && ac_dir=.
4341 if test -f $ac_dir/$ac_word; then
4342 ac_cv_prog_WINDRES="${ncn_progname}"
4343 break
4345 done
4346 IFS="$ac_save_ifs"
4349 WINDRES="$ac_cv_prog_WINDRES"
4350 if test -n "$WINDRES"; then
4351 echo "$ac_t""$WINDRES" 1>&6
4352 else
4353 echo "$ac_t""no" 1>&6
4357 test -n "$ac_cv_prog_WINDRES" && break
4358 done
4360 if test -z "$ac_cv_prog_WINDRES" ; then
4361 set dummy windres
4362 if test $build = $host ; then
4363 WINDRES="$2"
4364 else
4365 WINDRES="${ncn_tool_prefix}$2"
4369 for ncn_progname in objcopy; do
4370 if test -n "$ncn_tool_prefix"; then
4371 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4372 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4374 echo "configure:4375: checking for $ac_word" >&5
4375 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4377 else
4378 if test -n "$OBJCOPY"; then
4379 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4380 else
4381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4382 ac_dummy="$PATH"
4383 for ac_dir in $ac_dummy; do
4384 test -z "$ac_dir" && ac_dir=.
4385 if test -f $ac_dir/$ac_word; then
4386 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4387 break
4389 done
4390 IFS="$ac_save_ifs"
4393 OBJCOPY="$ac_cv_prog_OBJCOPY"
4394 if test -n "$OBJCOPY"; then
4395 echo "$ac_t""$OBJCOPY" 1>&6
4396 else
4397 echo "$ac_t""no" 1>&6
4401 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4403 set dummy ${ncn_progname}; ac_word=$2
4404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4405 echo "configure:4406: checking for $ac_word" >&5
4406 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4408 else
4409 if test -n "$OBJCOPY"; then
4410 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4411 else
4412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4413 ac_dummy="$PATH"
4414 for ac_dir in $ac_dummy; do
4415 test -z "$ac_dir" && ac_dir=.
4416 if test -f $ac_dir/$ac_word; then
4417 ac_cv_prog_OBJCOPY="${ncn_progname}"
4418 break
4420 done
4421 IFS="$ac_save_ifs"
4424 OBJCOPY="$ac_cv_prog_OBJCOPY"
4425 if test -n "$OBJCOPY"; then
4426 echo "$ac_t""$OBJCOPY" 1>&6
4427 else
4428 echo "$ac_t""no" 1>&6
4432 test -n "$ac_cv_prog_OBJCOPY" && break
4433 done
4435 if test -z "$ac_cv_prog_OBJCOPY" ; then
4436 set dummy objcopy
4437 if test $build = $host ; then
4438 OBJCOPY="$2"
4439 else
4440 OBJCOPY="${ncn_tool_prefix}$2"
4444 for ncn_progname in objdump; do
4445 if test -n "$ncn_tool_prefix"; then
4446 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4447 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4449 echo "configure:4450: checking for $ac_word" >&5
4450 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4452 else
4453 if test -n "$OBJDUMP"; then
4454 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4455 else
4456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4457 ac_dummy="$PATH"
4458 for ac_dir in $ac_dummy; do
4459 test -z "$ac_dir" && ac_dir=.
4460 if test -f $ac_dir/$ac_word; then
4461 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4462 break
4464 done
4465 IFS="$ac_save_ifs"
4468 OBJDUMP="$ac_cv_prog_OBJDUMP"
4469 if test -n "$OBJDUMP"; then
4470 echo "$ac_t""$OBJDUMP" 1>&6
4471 else
4472 echo "$ac_t""no" 1>&6
4476 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4478 set dummy ${ncn_progname}; ac_word=$2
4479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4480 echo "configure:4481: checking for $ac_word" >&5
4481 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4482 echo $ac_n "(cached) $ac_c" 1>&6
4483 else
4484 if test -n "$OBJDUMP"; then
4485 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4486 else
4487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4488 ac_dummy="$PATH"
4489 for ac_dir in $ac_dummy; do
4490 test -z "$ac_dir" && ac_dir=.
4491 if test -f $ac_dir/$ac_word; then
4492 ac_cv_prog_OBJDUMP="${ncn_progname}"
4493 break
4495 done
4496 IFS="$ac_save_ifs"
4499 OBJDUMP="$ac_cv_prog_OBJDUMP"
4500 if test -n "$OBJDUMP"; then
4501 echo "$ac_t""$OBJDUMP" 1>&6
4502 else
4503 echo "$ac_t""no" 1>&6
4507 test -n "$ac_cv_prog_OBJDUMP" && break
4508 done
4510 if test -z "$ac_cv_prog_OBJDUMP" ; then
4511 set dummy objdump
4512 if test $build = $host ; then
4513 OBJDUMP="$2"
4514 else
4515 OBJDUMP="${ncn_tool_prefix}$2"
4525 # Target tools.
4526 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4527 if test "${with_build_time_tools+set}" = set; then
4528 withval="$with_build_time_tools"
4529 case x"$withval" in
4530 x/*) ;;
4532 with_build_time_tools=
4533 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4535 esac
4536 else
4537 with_build_time_tools=
4541 if test -n "$with_build_time_tools"; then
4542 for ncn_progname in cc gcc; do
4543 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4544 echo "configure:4545: checking for ${ncn_progname} in $with_build_time_tools" >&5
4545 if test -x $with_build_time_tools/CC_FOR_TARGET; then
4546 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/CC_FOR_TARGET
4547 echo "$ac_t""yes" 1>&6
4548 break
4549 else
4550 echo "$ac_t""no" 1>&6
4552 done
4555 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4556 for ncn_progname in cc gcc; do
4557 if test -n "$ncn_target_tool_prefix"; then
4558 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4559 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4561 echo "configure:4562: checking for $ac_word" >&5
4562 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4564 else
4565 if test -n "$CC_FOR_TARGET"; then
4566 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4567 else
4568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4569 ac_dummy="$PATH"
4570 for ac_dir in $ac_dummy; do
4571 test -z "$ac_dir" && ac_dir=.
4572 if test -f $ac_dir/$ac_word; then
4573 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4574 break
4576 done
4577 IFS="$ac_save_ifs"
4580 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4581 if test -n "$CC_FOR_TARGET"; then
4582 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4583 else
4584 echo "$ac_t""no" 1>&6
4588 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4590 set dummy ${ncn_progname}; ac_word=$2
4591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4592 echo "configure:4593: checking for $ac_word" >&5
4593 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4595 else
4596 if test -n "$CC_FOR_TARGET"; then
4597 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4598 else
4599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4600 ac_dummy="$PATH"
4601 for ac_dir in $ac_dummy; do
4602 test -z "$ac_dir" && ac_dir=.
4603 if test -f $ac_dir/$ac_word; then
4604 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4605 break
4607 done
4608 IFS="$ac_save_ifs"
4611 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4612 if test -n "$CC_FOR_TARGET"; then
4613 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4614 else
4615 echo "$ac_t""no" 1>&6
4619 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4620 done
4623 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4624 set dummy cc gcc
4625 if test $build = $target ; then
4626 CC_FOR_TARGET="$2"
4627 else
4628 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4632 if test -n "$with_build_time_tools"; then
4633 for ncn_progname in c++ g++ cxx gxx; do
4634 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4635 echo "configure:4636: checking for ${ncn_progname} in $with_build_time_tools" >&5
4636 if test -x $with_build_time_tools/CXX_FOR_TARGET; then
4637 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/CXX_FOR_TARGET
4638 echo "$ac_t""yes" 1>&6
4639 break
4640 else
4641 echo "$ac_t""no" 1>&6
4643 done
4646 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4647 for ncn_progname in c++ g++ cxx gxx; do
4648 if test -n "$ncn_target_tool_prefix"; then
4649 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4650 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4652 echo "configure:4653: checking for $ac_word" >&5
4653 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
4655 else
4656 if test -n "$CXX_FOR_TARGET"; then
4657 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4658 else
4659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4660 ac_dummy="$PATH"
4661 for ac_dir in $ac_dummy; do
4662 test -z "$ac_dir" && ac_dir=.
4663 if test -f $ac_dir/$ac_word; then
4664 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4665 break
4667 done
4668 IFS="$ac_save_ifs"
4671 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4672 if test -n "$CXX_FOR_TARGET"; then
4673 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4674 else
4675 echo "$ac_t""no" 1>&6
4679 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4681 set dummy ${ncn_progname}; ac_word=$2
4682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4683 echo "configure:4684: checking for $ac_word" >&5
4684 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4686 else
4687 if test -n "$CXX_FOR_TARGET"; then
4688 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4689 else
4690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4691 ac_dummy="$PATH"
4692 for ac_dir in $ac_dummy; do
4693 test -z "$ac_dir" && ac_dir=.
4694 if test -f $ac_dir/$ac_word; then
4695 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4696 break
4698 done
4699 IFS="$ac_save_ifs"
4702 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4703 if test -n "$CXX_FOR_TARGET"; then
4704 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4705 else
4706 echo "$ac_t""no" 1>&6
4710 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4711 done
4714 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4715 set dummy c++ g++ cxx gxx
4716 if test $build = $target ; then
4717 CXX_FOR_TARGET="$2"
4718 else
4719 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4723 if test -n "$with_build_time_tools"; then
4724 for ncn_progname in gcc; do
4725 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4726 echo "configure:4727: checking for ${ncn_progname} in $with_build_time_tools" >&5
4727 if test -x $with_build_time_tools/GCC_FOR_TARGET; then
4728 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/GCC_FOR_TARGET
4729 echo "$ac_t""yes" 1>&6
4730 break
4731 else
4732 echo "$ac_t""no" 1>&6
4734 done
4737 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4738 for ncn_progname in gcc; do
4739 if test -n "$ncn_target_tool_prefix"; then
4740 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4741 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4743 echo "configure:4744: checking for $ac_word" >&5
4744 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4745 echo $ac_n "(cached) $ac_c" 1>&6
4746 else
4747 if test -n "$GCC_FOR_TARGET"; then
4748 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4749 else
4750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4751 ac_dummy="$PATH"
4752 for ac_dir in $ac_dummy; do
4753 test -z "$ac_dir" && ac_dir=.
4754 if test -f $ac_dir/$ac_word; then
4755 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4756 break
4758 done
4759 IFS="$ac_save_ifs"
4762 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4763 if test -n "$GCC_FOR_TARGET"; then
4764 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4765 else
4766 echo "$ac_t""no" 1>&6
4770 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4772 set dummy ${ncn_progname}; ac_word=$2
4773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4774 echo "configure:4775: checking for $ac_word" >&5
4775 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4777 else
4778 if test -n "$GCC_FOR_TARGET"; then
4779 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4780 else
4781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4782 ac_dummy="$PATH"
4783 for ac_dir in $ac_dummy; do
4784 test -z "$ac_dir" && ac_dir=.
4785 if test -f $ac_dir/$ac_word; then
4786 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4787 break
4789 done
4790 IFS="$ac_save_ifs"
4793 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4794 if test -n "$GCC_FOR_TARGET"; then
4795 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4796 else
4797 echo "$ac_t""no" 1>&6
4801 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4802 done
4805 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4806 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4809 if test -n "$with_build_time_tools"; then
4810 for ncn_progname in gcj; do
4811 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4812 echo "configure:4813: checking for ${ncn_progname} in $with_build_time_tools" >&5
4813 if test -x $with_build_time_tools/GCJ_FOR_TARGET; then
4814 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/GCJ_FOR_TARGET
4815 echo "$ac_t""yes" 1>&6
4816 break
4817 else
4818 echo "$ac_t""no" 1>&6
4820 done
4823 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4824 for ncn_progname in gcj; do
4825 if test -n "$ncn_target_tool_prefix"; then
4826 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4827 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4829 echo "configure:4830: checking for $ac_word" >&5
4830 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4832 else
4833 if test -n "$GCJ_FOR_TARGET"; then
4834 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4835 else
4836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4837 ac_dummy="$PATH"
4838 for ac_dir in $ac_dummy; do
4839 test -z "$ac_dir" && ac_dir=.
4840 if test -f $ac_dir/$ac_word; then
4841 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4842 break
4844 done
4845 IFS="$ac_save_ifs"
4848 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4849 if test -n "$GCJ_FOR_TARGET"; then
4850 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4851 else
4852 echo "$ac_t""no" 1>&6
4856 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4858 set dummy ${ncn_progname}; ac_word=$2
4859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4860 echo "configure:4861: checking for $ac_word" >&5
4861 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4862 echo $ac_n "(cached) $ac_c" 1>&6
4863 else
4864 if test -n "$GCJ_FOR_TARGET"; then
4865 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4866 else
4867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4868 ac_dummy="$PATH"
4869 for ac_dir in $ac_dummy; do
4870 test -z "$ac_dir" && ac_dir=.
4871 if test -f $ac_dir/$ac_word; then
4872 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4873 break
4875 done
4876 IFS="$ac_save_ifs"
4879 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4880 if test -n "$GCJ_FOR_TARGET"; then
4881 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4882 else
4883 echo "$ac_t""no" 1>&6
4887 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4888 done
4891 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4892 set dummy gcj
4893 if test $build = $target ; then
4894 GCJ_FOR_TARGET="$2"
4895 else
4896 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4900 if test -n "$with_build_time_tools"; then
4901 for ncn_progname in gfortran; do
4902 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4903 echo "configure:4904: checking for ${ncn_progname} in $with_build_time_tools" >&5
4904 if test -x $with_build_time_tools/GFORTRAN_FOR_TARGET; then
4905 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/GFORTRAN_FOR_TARGET
4906 echo "$ac_t""yes" 1>&6
4907 break
4908 else
4909 echo "$ac_t""no" 1>&6
4911 done
4914 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
4915 for ncn_progname in gfortran; do
4916 if test -n "$ncn_target_tool_prefix"; then
4917 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4918 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4920 echo "configure:4921: checking for $ac_word" >&5
4921 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4923 else
4924 if test -n "$GFORTRAN_FOR_TARGET"; then
4925 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4926 else
4927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4928 ac_dummy="$PATH"
4929 for ac_dir in $ac_dummy; do
4930 test -z "$ac_dir" && ac_dir=.
4931 if test -f $ac_dir/$ac_word; then
4932 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4933 break
4935 done
4936 IFS="$ac_save_ifs"
4939 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4940 if test -n "$GFORTRAN_FOR_TARGET"; then
4941 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4942 else
4943 echo "$ac_t""no" 1>&6
4947 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4949 set dummy ${ncn_progname}; ac_word=$2
4950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4951 echo "configure:4952: checking for $ac_word" >&5
4952 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4954 else
4955 if test -n "$GFORTRAN_FOR_TARGET"; then
4956 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4957 else
4958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4959 ac_dummy="$PATH"
4960 for ac_dir in $ac_dummy; do
4961 test -z "$ac_dir" && ac_dir=.
4962 if test -f $ac_dir/$ac_word; then
4963 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
4964 break
4966 done
4967 IFS="$ac_save_ifs"
4970 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4971 if test -n "$GFORTRAN_FOR_TARGET"; then
4972 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4973 else
4974 echo "$ac_t""no" 1>&6
4978 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
4979 done
4982 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
4983 set dummy gfortran
4984 if test $build = $target ; then
4985 GFORTRAN_FOR_TARGET="$2"
4986 else
4987 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
4993 # The user is always right.
4994 if test "${PATH_SEPARATOR+set}" != set; then
4995 echo "#! /bin/sh" >conf$$.sh
4996 echo "exit 0" >>conf$$.sh
4997 chmod +x conf$$.sh
4998 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4999 PATH_SEPARATOR=';'
5000 else
5001 PATH_SEPARATOR=:
5003 rm -f conf$$.sh
5008 if test "x$exec_prefix" = xNONE; then
5009 if test "x$prefix" = xNONE; then
5010 gcc_cv_tool_prefix=$ac_default_prefix
5011 else
5012 gcc_cv_tool_prefix=$prefix
5014 else
5015 gcc_cv_tool_prefix=$exec_prefix
5018 # If there is no compiler in the tree, use the PATH only. In any
5019 # case, if there is no compiler in the tree nobody should use
5020 # AS_FOR_TARGET and LD_FOR_TARGET.
5021 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5022 gcc_version=`cat $srcdir/gcc/BASE-VER`
5023 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5024 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5025 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5026 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5027 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5028 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5029 else
5030 gcc_cv_tool_dirs=
5033 if test x$build = x$target && test -n "$md_exec_prefix"; then
5034 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5039 cat > conftest.c << \EOF
5040 #ifdef __GNUC__
5041 gcc_yay;
5042 #endif
5044 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5045 have_gcc_for_target=yes
5046 else
5047 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5048 have_gcc_for_target=no
5050 rm conftest.c
5055 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5056 if test -n "$with_build_time_tools"; then
5057 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5058 echo "configure:5059: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
5059 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/AR_FOR_TARGET
5060 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5061 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5062 elif test $build != $host && test $have_gcc_for_target = yes; then
5063 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5064 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5065 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5068 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5069 # Extract the first word of "ar", so it can be a program name with args.
5070 set dummy ar; ac_word=$2
5071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5072 echo "configure:5073: checking for $ac_word" >&5
5073 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5075 else
5076 case "$AR_FOR_TARGET" in
5078 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5080 ?:/*)
5081 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5085 ac_dummy="$gcc_cv_tool_dirs"
5086 for ac_dir in $ac_dummy; do
5087 test -z "$ac_dir" && ac_dir=.
5088 if test -f $ac_dir/$ac_word; then
5089 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
5090 break
5092 done
5093 IFS="$ac_save_ifs"
5095 esac
5097 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5098 if test -n "$AR_FOR_TARGET"; then
5099 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5100 else
5101 echo "$ac_t""no" 1>&6
5105 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5106 if test -n "$with_build_time_tools"; then
5107 for ncn_progname in ar; do
5108 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5109 echo "configure:5110: checking for ${ncn_progname} in $with_build_time_tools" >&5
5110 if test -x $with_build_time_tools/AR_FOR_TARGET; then
5111 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/AR_FOR_TARGET
5112 echo "$ac_t""yes" 1>&6
5113 break
5114 else
5115 echo "$ac_t""no" 1>&6
5117 done
5120 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5121 for ncn_progname in ar; do
5122 if test -n "$ncn_target_tool_prefix"; then
5123 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5124 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5126 echo "configure:5127: checking for $ac_word" >&5
5127 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5128 echo $ac_n "(cached) $ac_c" 1>&6
5129 else
5130 if test -n "$AR_FOR_TARGET"; then
5131 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5132 else
5133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5134 ac_dummy="$PATH"
5135 for ac_dir in $ac_dummy; do
5136 test -z "$ac_dir" && ac_dir=.
5137 if test -f $ac_dir/$ac_word; then
5138 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5139 break
5141 done
5142 IFS="$ac_save_ifs"
5145 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5146 if test -n "$AR_FOR_TARGET"; then
5147 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5148 else
5149 echo "$ac_t""no" 1>&6
5153 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5155 set dummy ${ncn_progname}; ac_word=$2
5156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5157 echo "configure:5158: checking for $ac_word" >&5
5158 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5159 echo $ac_n "(cached) $ac_c" 1>&6
5160 else
5161 if test -n "$AR_FOR_TARGET"; then
5162 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5163 else
5164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5165 ac_dummy="$PATH"
5166 for ac_dir in $ac_dummy; do
5167 test -z "$ac_dir" && ac_dir=.
5168 if test -f $ac_dir/$ac_word; then
5169 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5170 break
5172 done
5173 IFS="$ac_save_ifs"
5176 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5177 if test -n "$AR_FOR_TARGET"; then
5178 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5179 else
5180 echo "$ac_t""no" 1>&6
5184 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5185 done
5188 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5189 set dummy ar
5190 if test $build = $target ; then
5191 AR_FOR_TARGET="$2"
5192 else
5193 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
5202 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5203 if test -n "$with_build_time_tools"; then
5204 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5205 echo "configure:5206: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
5206 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/AS_FOR_TARGET
5207 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5208 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5209 elif test $build != $host && test $have_gcc_for_target = yes; then
5210 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5211 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5212 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5215 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5216 # Extract the first word of "as", so it can be a program name with args.
5217 set dummy as; ac_word=$2
5218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5219 echo "configure:5220: checking for $ac_word" >&5
5220 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5222 else
5223 case "$AS_FOR_TARGET" in
5225 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5227 ?:/*)
5228 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5232 ac_dummy="$gcc_cv_tool_dirs"
5233 for ac_dir in $ac_dummy; do
5234 test -z "$ac_dir" && ac_dir=.
5235 if test -f $ac_dir/$ac_word; then
5236 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5237 break
5239 done
5240 IFS="$ac_save_ifs"
5242 esac
5244 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5245 if test -n "$AS_FOR_TARGET"; then
5246 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5247 else
5248 echo "$ac_t""no" 1>&6
5252 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5253 if test -n "$with_build_time_tools"; then
5254 for ncn_progname in as; do
5255 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5256 echo "configure:5257: checking for ${ncn_progname} in $with_build_time_tools" >&5
5257 if test -x $with_build_time_tools/AS_FOR_TARGET; then
5258 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/AS_FOR_TARGET
5259 echo "$ac_t""yes" 1>&6
5260 break
5261 else
5262 echo "$ac_t""no" 1>&6
5264 done
5267 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5268 for ncn_progname in as; do
5269 if test -n "$ncn_target_tool_prefix"; then
5270 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5271 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5273 echo "configure:5274: checking for $ac_word" >&5
5274 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5276 else
5277 if test -n "$AS_FOR_TARGET"; then
5278 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5279 else
5280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5281 ac_dummy="$PATH"
5282 for ac_dir in $ac_dummy; do
5283 test -z "$ac_dir" && ac_dir=.
5284 if test -f $ac_dir/$ac_word; then
5285 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5286 break
5288 done
5289 IFS="$ac_save_ifs"
5292 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5293 if test -n "$AS_FOR_TARGET"; then
5294 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5295 else
5296 echo "$ac_t""no" 1>&6
5300 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5302 set dummy ${ncn_progname}; ac_word=$2
5303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5304 echo "configure:5305: checking for $ac_word" >&5
5305 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5307 else
5308 if test -n "$AS_FOR_TARGET"; then
5309 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5310 else
5311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5312 ac_dummy="$PATH"
5313 for ac_dir in $ac_dummy; do
5314 test -z "$ac_dir" && ac_dir=.
5315 if test -f $ac_dir/$ac_word; then
5316 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5317 break
5319 done
5320 IFS="$ac_save_ifs"
5323 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5324 if test -n "$AS_FOR_TARGET"; then
5325 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5326 else
5327 echo "$ac_t""no" 1>&6
5331 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5332 done
5335 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5336 set dummy as
5337 if test $build = $target ; then
5338 AS_FOR_TARGET="$2"
5339 else
5340 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5349 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5350 if test -n "$with_build_time_tools"; then
5351 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5352 echo "configure:5353: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
5353 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/DLLTOOL_FOR_TARGET
5354 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5355 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5356 elif test $build != $host && test $have_gcc_for_target = yes; then
5357 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5358 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5359 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5362 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5363 # Extract the first word of "dlltool", so it can be a program name with args.
5364 set dummy dlltool; ac_word=$2
5365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5366 echo "configure:5367: checking for $ac_word" >&5
5367 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5368 echo $ac_n "(cached) $ac_c" 1>&6
5369 else
5370 case "$DLLTOOL_FOR_TARGET" in
5372 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5374 ?:/*)
5375 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5379 ac_dummy="$gcc_cv_tool_dirs"
5380 for ac_dir in $ac_dummy; do
5381 test -z "$ac_dir" && ac_dir=.
5382 if test -f $ac_dir/$ac_word; then
5383 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5384 break
5386 done
5387 IFS="$ac_save_ifs"
5389 esac
5391 DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5392 if test -n "$DLLTOOL_FOR_TARGET"; then
5393 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5394 else
5395 echo "$ac_t""no" 1>&6
5399 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5400 if test -n "$with_build_time_tools"; then
5401 for ncn_progname in dlltool; do
5402 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5403 echo "configure:5404: checking for ${ncn_progname} in $with_build_time_tools" >&5
5404 if test -x $with_build_time_tools/DLLTOOL_FOR_TARGET; then
5405 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/DLLTOOL_FOR_TARGET
5406 echo "$ac_t""yes" 1>&6
5407 break
5408 else
5409 echo "$ac_t""no" 1>&6
5411 done
5414 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5415 for ncn_progname in dlltool; do
5416 if test -n "$ncn_target_tool_prefix"; then
5417 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5418 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5420 echo "configure:5421: checking for $ac_word" >&5
5421 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6
5423 else
5424 if test -n "$DLLTOOL_FOR_TARGET"; then
5425 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5426 else
5427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5428 ac_dummy="$PATH"
5429 for ac_dir in $ac_dummy; do
5430 test -z "$ac_dir" && ac_dir=.
5431 if test -f $ac_dir/$ac_word; then
5432 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5433 break
5435 done
5436 IFS="$ac_save_ifs"
5439 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5440 if test -n "$DLLTOOL_FOR_TARGET"; then
5441 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5442 else
5443 echo "$ac_t""no" 1>&6
5447 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5449 set dummy ${ncn_progname}; ac_word=$2
5450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5451 echo "configure:5452: checking for $ac_word" >&5
5452 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5453 echo $ac_n "(cached) $ac_c" 1>&6
5454 else
5455 if test -n "$DLLTOOL_FOR_TARGET"; then
5456 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5457 else
5458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5459 ac_dummy="$PATH"
5460 for ac_dir in $ac_dummy; do
5461 test -z "$ac_dir" && ac_dir=.
5462 if test -f $ac_dir/$ac_word; then
5463 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5464 break
5466 done
5467 IFS="$ac_save_ifs"
5470 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5471 if test -n "$DLLTOOL_FOR_TARGET"; then
5472 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5473 else
5474 echo "$ac_t""no" 1>&6
5478 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5479 done
5482 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5483 set dummy dlltool
5484 if test $build = $target ; then
5485 DLLTOOL_FOR_TARGET="$2"
5486 else
5487 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5496 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5497 if test -n "$with_build_time_tools"; then
5498 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5499 echo "configure:5500: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
5500 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/LD_FOR_TARGET
5501 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5502 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5503 elif test $build != $host && test $have_gcc_for_target = yes; then
5504 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5505 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5506 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5509 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5510 # Extract the first word of "ld", so it can be a program name with args.
5511 set dummy ld; ac_word=$2
5512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5513 echo "configure:5514: checking for $ac_word" >&5
5514 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
5516 else
5517 case "$LD_FOR_TARGET" in
5519 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5521 ?:/*)
5522 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5526 ac_dummy="$gcc_cv_tool_dirs"
5527 for ac_dir in $ac_dummy; do
5528 test -z "$ac_dir" && ac_dir=.
5529 if test -f $ac_dir/$ac_word; then
5530 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5531 break
5533 done
5534 IFS="$ac_save_ifs"
5536 esac
5538 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5539 if test -n "$LD_FOR_TARGET"; then
5540 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5541 else
5542 echo "$ac_t""no" 1>&6
5546 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5547 if test -n "$with_build_time_tools"; then
5548 for ncn_progname in ld; do
5549 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5550 echo "configure:5551: checking for ${ncn_progname} in $with_build_time_tools" >&5
5551 if test -x $with_build_time_tools/LD_FOR_TARGET; then
5552 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/LD_FOR_TARGET
5553 echo "$ac_t""yes" 1>&6
5554 break
5555 else
5556 echo "$ac_t""no" 1>&6
5558 done
5561 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5562 for ncn_progname in ld; do
5563 if test -n "$ncn_target_tool_prefix"; then
5564 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5565 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5567 echo "configure:5568: checking for $ac_word" >&5
5568 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5569 echo $ac_n "(cached) $ac_c" 1>&6
5570 else
5571 if test -n "$LD_FOR_TARGET"; then
5572 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5573 else
5574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5575 ac_dummy="$PATH"
5576 for ac_dir in $ac_dummy; do
5577 test -z "$ac_dir" && ac_dir=.
5578 if test -f $ac_dir/$ac_word; then
5579 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5580 break
5582 done
5583 IFS="$ac_save_ifs"
5586 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5587 if test -n "$LD_FOR_TARGET"; then
5588 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5589 else
5590 echo "$ac_t""no" 1>&6
5594 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5596 set dummy ${ncn_progname}; ac_word=$2
5597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5598 echo "configure:5599: checking for $ac_word" >&5
5599 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5600 echo $ac_n "(cached) $ac_c" 1>&6
5601 else
5602 if test -n "$LD_FOR_TARGET"; then
5603 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5604 else
5605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5606 ac_dummy="$PATH"
5607 for ac_dir in $ac_dummy; do
5608 test -z "$ac_dir" && ac_dir=.
5609 if test -f $ac_dir/$ac_word; then
5610 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5611 break
5613 done
5614 IFS="$ac_save_ifs"
5617 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5618 if test -n "$LD_FOR_TARGET"; then
5619 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5620 else
5621 echo "$ac_t""no" 1>&6
5625 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5626 done
5629 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5630 set dummy ld
5631 if test $build = $target ; then
5632 LD_FOR_TARGET="$2"
5633 else
5634 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5643 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5644 if test -n "$with_build_time_tools"; then
5645 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5646 echo "configure:5647: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
5647 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/LIPO_FOR_TARGET
5648 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5649 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5650 elif test $build != $host && test $have_gcc_for_target = yes; then
5651 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5652 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5653 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5656 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5657 # Extract the first word of "lipo", so it can be a program name with args.
5658 set dummy lipo; ac_word=$2
5659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5660 echo "configure:5661: checking for $ac_word" >&5
5661 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5662 echo $ac_n "(cached) $ac_c" 1>&6
5663 else
5664 case "$LIPO_FOR_TARGET" in
5666 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5668 ?:/*)
5669 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5673 ac_dummy="$gcc_cv_tool_dirs"
5674 for ac_dir in $ac_dummy; do
5675 test -z "$ac_dir" && ac_dir=.
5676 if test -f $ac_dir/$ac_word; then
5677 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5678 break
5680 done
5681 IFS="$ac_save_ifs"
5683 esac
5685 LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5686 if test -n "$LIPO_FOR_TARGET"; then
5687 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5688 else
5689 echo "$ac_t""no" 1>&6
5693 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5694 if test -n "$with_build_time_tools"; then
5695 for ncn_progname in lipo; do
5696 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5697 echo "configure:5698: checking for ${ncn_progname} in $with_build_time_tools" >&5
5698 if test -x $with_build_time_tools/LIPO_FOR_TARGET; then
5699 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/LIPO_FOR_TARGET
5700 echo "$ac_t""yes" 1>&6
5701 break
5702 else
5703 echo "$ac_t""no" 1>&6
5705 done
5708 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5709 for ncn_progname in lipo; do
5710 if test -n "$ncn_target_tool_prefix"; then
5711 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5712 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5714 echo "configure:5715: checking for $ac_word" >&5
5715 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5717 else
5718 if test -n "$LIPO_FOR_TARGET"; then
5719 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5720 else
5721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5722 ac_dummy="$PATH"
5723 for ac_dir in $ac_dummy; do
5724 test -z "$ac_dir" && ac_dir=.
5725 if test -f $ac_dir/$ac_word; then
5726 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5727 break
5729 done
5730 IFS="$ac_save_ifs"
5733 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5734 if test -n "$LIPO_FOR_TARGET"; then
5735 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5736 else
5737 echo "$ac_t""no" 1>&6
5741 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5743 set dummy ${ncn_progname}; ac_word=$2
5744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5745 echo "configure:5746: checking for $ac_word" >&5
5746 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5747 echo $ac_n "(cached) $ac_c" 1>&6
5748 else
5749 if test -n "$LIPO_FOR_TARGET"; then
5750 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5751 else
5752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5753 ac_dummy="$PATH"
5754 for ac_dir in $ac_dummy; do
5755 test -z "$ac_dir" && ac_dir=.
5756 if test -f $ac_dir/$ac_word; then
5757 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5758 break
5760 done
5761 IFS="$ac_save_ifs"
5764 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5765 if test -n "$LIPO_FOR_TARGET"; then
5766 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5767 else
5768 echo "$ac_t""no" 1>&6
5772 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5773 done
5776 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5777 set dummy lipo
5778 if test $build = $target ; then
5779 LIPO_FOR_TARGET="$2"
5780 else
5781 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5790 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5791 if test -n "$with_build_time_tools"; then
5792 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5793 echo "configure:5794: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
5794 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/NM_FOR_TARGET
5795 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5796 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5797 elif test $build != $host && test $have_gcc_for_target = yes; then
5798 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
5799 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
5800 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5803 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5804 # Extract the first word of "nm", so it can be a program name with args.
5805 set dummy nm; ac_word=$2
5806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5807 echo "configure:5808: checking for $ac_word" >&5
5808 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5809 echo $ac_n "(cached) $ac_c" 1>&6
5810 else
5811 case "$NM_FOR_TARGET" in
5813 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
5815 ?:/*)
5816 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5820 ac_dummy="$gcc_cv_tool_dirs"
5821 for ac_dir in $ac_dummy; do
5822 test -z "$ac_dir" && ac_dir=.
5823 if test -f $ac_dir/$ac_word; then
5824 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
5825 break
5827 done
5828 IFS="$ac_save_ifs"
5830 esac
5832 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
5833 if test -n "$NM_FOR_TARGET"; then
5834 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5835 else
5836 echo "$ac_t""no" 1>&6
5840 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5841 if test -n "$with_build_time_tools"; then
5842 for ncn_progname in nm; do
5843 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5844 echo "configure:5845: checking for ${ncn_progname} in $with_build_time_tools" >&5
5845 if test -x $with_build_time_tools/NM_FOR_TARGET; then
5846 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/NM_FOR_TARGET
5847 echo "$ac_t""yes" 1>&6
5848 break
5849 else
5850 echo "$ac_t""no" 1>&6
5852 done
5855 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5856 for ncn_progname in nm; do
5857 if test -n "$ncn_target_tool_prefix"; then
5858 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5859 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5861 echo "configure:5862: checking for $ac_word" >&5
5862 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5863 echo $ac_n "(cached) $ac_c" 1>&6
5864 else
5865 if test -n "$NM_FOR_TARGET"; then
5866 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5867 else
5868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5869 ac_dummy="$PATH"
5870 for ac_dir in $ac_dummy; do
5871 test -z "$ac_dir" && ac_dir=.
5872 if test -f $ac_dir/$ac_word; then
5873 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5874 break
5876 done
5877 IFS="$ac_save_ifs"
5880 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5881 if test -n "$NM_FOR_TARGET"; then
5882 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5883 else
5884 echo "$ac_t""no" 1>&6
5888 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5890 set dummy ${ncn_progname}; ac_word=$2
5891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5892 echo "configure:5893: checking for $ac_word" >&5
5893 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5895 else
5896 if test -n "$NM_FOR_TARGET"; then
5897 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5898 else
5899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5900 ac_dummy="$PATH"
5901 for ac_dir in $ac_dummy; do
5902 test -z "$ac_dir" && ac_dir=.
5903 if test -f $ac_dir/$ac_word; then
5904 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5905 break
5907 done
5908 IFS="$ac_save_ifs"
5911 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5912 if test -n "$NM_FOR_TARGET"; then
5913 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5914 else
5915 echo "$ac_t""no" 1>&6
5919 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5920 done
5923 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5924 set dummy nm
5925 if test $build = $target ; then
5926 NM_FOR_TARGET="$2"
5927 else
5928 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
5937 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
5938 if test -n "$with_build_time_tools"; then
5939 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5940 echo "configure:5941: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
5941 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/OBJDUMP_FOR_TARGET
5942 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5943 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
5944 elif test $build != $host && test $have_gcc_for_target = yes; then
5945 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
5946 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
5947 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5950 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
5951 # Extract the first word of "objdump", so it can be a program name with args.
5952 set dummy objdump; ac_word=$2
5953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5954 echo "configure:5955: checking for $ac_word" >&5
5955 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5956 echo $ac_n "(cached) $ac_c" 1>&6
5957 else
5958 case "$OBJDUMP_FOR_TARGET" in
5960 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
5962 ?:/*)
5963 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
5966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5967 ac_dummy="$gcc_cv_tool_dirs"
5968 for ac_dir in $ac_dummy; do
5969 test -z "$ac_dir" && ac_dir=.
5970 if test -f $ac_dir/$ac_word; then
5971 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
5972 break
5974 done
5975 IFS="$ac_save_ifs"
5977 esac
5979 OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
5980 if test -n "$OBJDUMP_FOR_TARGET"; then
5981 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5982 else
5983 echo "$ac_t""no" 1>&6
5987 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
5988 if test -n "$with_build_time_tools"; then
5989 for ncn_progname in objdump; do
5990 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5991 echo "configure:5992: checking for ${ncn_progname} in $with_build_time_tools" >&5
5992 if test -x $with_build_time_tools/OBJDUMP_FOR_TARGET; then
5993 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/OBJDUMP_FOR_TARGET
5994 echo "$ac_t""yes" 1>&6
5995 break
5996 else
5997 echo "$ac_t""no" 1>&6
5999 done
6002 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6003 for ncn_progname in objdump; do
6004 if test -n "$ncn_target_tool_prefix"; then
6005 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6006 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6008 echo "configure:6009: checking for $ac_word" >&5
6009 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6010 echo $ac_n "(cached) $ac_c" 1>&6
6011 else
6012 if test -n "$OBJDUMP_FOR_TARGET"; then
6013 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6014 else
6015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6016 ac_dummy="$PATH"
6017 for ac_dir in $ac_dummy; do
6018 test -z "$ac_dir" && ac_dir=.
6019 if test -f $ac_dir/$ac_word; then
6020 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6021 break
6023 done
6024 IFS="$ac_save_ifs"
6027 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6028 if test -n "$OBJDUMP_FOR_TARGET"; then
6029 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6030 else
6031 echo "$ac_t""no" 1>&6
6035 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6037 set dummy ${ncn_progname}; ac_word=$2
6038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6039 echo "configure:6040: checking for $ac_word" >&5
6040 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6041 echo $ac_n "(cached) $ac_c" 1>&6
6042 else
6043 if test -n "$OBJDUMP_FOR_TARGET"; then
6044 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6045 else
6046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6047 ac_dummy="$PATH"
6048 for ac_dir in $ac_dummy; do
6049 test -z "$ac_dir" && ac_dir=.
6050 if test -f $ac_dir/$ac_word; then
6051 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6052 break
6054 done
6055 IFS="$ac_save_ifs"
6058 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6059 if test -n "$OBJDUMP_FOR_TARGET"; then
6060 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6061 else
6062 echo "$ac_t""no" 1>&6
6066 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6067 done
6070 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6071 set dummy objdump
6072 if test $build = $target ; then
6073 OBJDUMP_FOR_TARGET="$2"
6074 else
6075 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6084 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6085 if test -n "$with_build_time_tools"; then
6086 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6087 echo "configure:6088: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
6088 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/RANLIB_FOR_TARGET
6089 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6090 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6091 elif test $build != $host && test $have_gcc_for_target = yes; then
6092 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6093 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6094 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6097 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6098 # Extract the first word of "ranlib", so it can be a program name with args.
6099 set dummy ranlib; ac_word=$2
6100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6101 echo "configure:6102: checking for $ac_word" >&5
6102 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6103 echo $ac_n "(cached) $ac_c" 1>&6
6104 else
6105 case "$RANLIB_FOR_TARGET" in
6107 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6109 ?:/*)
6110 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6114 ac_dummy="$gcc_cv_tool_dirs"
6115 for ac_dir in $ac_dummy; do
6116 test -z "$ac_dir" && ac_dir=.
6117 if test -f $ac_dir/$ac_word; then
6118 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6119 break
6121 done
6122 IFS="$ac_save_ifs"
6124 esac
6126 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6127 if test -n "$RANLIB_FOR_TARGET"; then
6128 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6129 else
6130 echo "$ac_t""no" 1>&6
6134 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6135 if test -n "$with_build_time_tools"; then
6136 for ncn_progname in ranlib; do
6137 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6138 echo "configure:6139: checking for ${ncn_progname} in $with_build_time_tools" >&5
6139 if test -x $with_build_time_tools/RANLIB_FOR_TARGET; then
6140 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/RANLIB_FOR_TARGET
6141 echo "$ac_t""yes" 1>&6
6142 break
6143 else
6144 echo "$ac_t""no" 1>&6
6146 done
6149 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6150 for ncn_progname in ranlib; do
6151 if test -n "$ncn_target_tool_prefix"; then
6152 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6153 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6155 echo "configure:6156: checking for $ac_word" >&5
6156 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6157 echo $ac_n "(cached) $ac_c" 1>&6
6158 else
6159 if test -n "$RANLIB_FOR_TARGET"; then
6160 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6161 else
6162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6163 ac_dummy="$PATH"
6164 for ac_dir in $ac_dummy; do
6165 test -z "$ac_dir" && ac_dir=.
6166 if test -f $ac_dir/$ac_word; then
6167 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6168 break
6170 done
6171 IFS="$ac_save_ifs"
6174 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6175 if test -n "$RANLIB_FOR_TARGET"; then
6176 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6177 else
6178 echo "$ac_t""no" 1>&6
6182 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6184 set dummy ${ncn_progname}; ac_word=$2
6185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6186 echo "configure:6187: checking for $ac_word" >&5
6187 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6188 echo $ac_n "(cached) $ac_c" 1>&6
6189 else
6190 if test -n "$RANLIB_FOR_TARGET"; then
6191 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6192 else
6193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6194 ac_dummy="$PATH"
6195 for ac_dir in $ac_dummy; do
6196 test -z "$ac_dir" && ac_dir=.
6197 if test -f $ac_dir/$ac_word; then
6198 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6199 break
6201 done
6202 IFS="$ac_save_ifs"
6205 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6206 if test -n "$RANLIB_FOR_TARGET"; then
6207 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6208 else
6209 echo "$ac_t""no" 1>&6
6213 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6214 done
6217 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6218 set dummy ranlib
6219 if test $build = $target ; then
6220 RANLIB_FOR_TARGET="$2"
6221 else
6222 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
6231 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6232 if test -n "$with_build_time_tools"; then
6233 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6234 echo "configure:6235: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
6235 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/STRIP_FOR_TARGET
6236 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6237 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6238 elif test $build != $host && test $have_gcc_for_target = yes; then
6239 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6240 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6241 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6244 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6245 # Extract the first word of "strip", so it can be a program name with args.
6246 set dummy strip; ac_word=$2
6247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6248 echo "configure:6249: checking for $ac_word" >&5
6249 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6250 echo $ac_n "(cached) $ac_c" 1>&6
6251 else
6252 case "$STRIP_FOR_TARGET" in
6254 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6256 ?:/*)
6257 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6261 ac_dummy="$gcc_cv_tool_dirs"
6262 for ac_dir in $ac_dummy; do
6263 test -z "$ac_dir" && ac_dir=.
6264 if test -f $ac_dir/$ac_word; then
6265 ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6266 break
6268 done
6269 IFS="$ac_save_ifs"
6271 esac
6273 STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6274 if test -n "$STRIP_FOR_TARGET"; then
6275 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6276 else
6277 echo "$ac_t""no" 1>&6
6281 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6282 if test -n "$with_build_time_tools"; then
6283 for ncn_progname in strip; do
6284 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6285 echo "configure:6286: checking for ${ncn_progname} in $with_build_time_tools" >&5
6286 if test -x $with_build_time_tools/STRIP_FOR_TARGET; then
6287 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/STRIP_FOR_TARGET
6288 echo "$ac_t""yes" 1>&6
6289 break
6290 else
6291 echo "$ac_t""no" 1>&6
6293 done
6296 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6297 for ncn_progname in strip; do
6298 if test -n "$ncn_target_tool_prefix"; then
6299 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6300 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6302 echo "configure:6303: checking for $ac_word" >&5
6303 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6304 echo $ac_n "(cached) $ac_c" 1>&6
6305 else
6306 if test -n "$STRIP_FOR_TARGET"; then
6307 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6308 else
6309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6310 ac_dummy="$PATH"
6311 for ac_dir in $ac_dummy; do
6312 test -z "$ac_dir" && ac_dir=.
6313 if test -f $ac_dir/$ac_word; then
6314 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6315 break
6317 done
6318 IFS="$ac_save_ifs"
6321 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6322 if test -n "$STRIP_FOR_TARGET"; then
6323 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6324 else
6325 echo "$ac_t""no" 1>&6
6329 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6331 set dummy ${ncn_progname}; ac_word=$2
6332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6333 echo "configure:6334: checking for $ac_word" >&5
6334 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6335 echo $ac_n "(cached) $ac_c" 1>&6
6336 else
6337 if test -n "$STRIP_FOR_TARGET"; then
6338 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6339 else
6340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6341 ac_dummy="$PATH"
6342 for ac_dir in $ac_dummy; do
6343 test -z "$ac_dir" && ac_dir=.
6344 if test -f $ac_dir/$ac_word; then
6345 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6346 break
6348 done
6349 IFS="$ac_save_ifs"
6352 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6353 if test -n "$STRIP_FOR_TARGET"; then
6354 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6355 else
6356 echo "$ac_t""no" 1>&6
6360 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6361 done
6364 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6365 set dummy strip
6366 if test $build = $target ; then
6367 STRIP_FOR_TARGET="$2"
6368 else
6369 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6378 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6379 if test -n "$with_build_time_tools"; then
6380 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6381 echo "configure:6382: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
6382 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/WINDRES_FOR_TARGET
6383 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6384 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6385 elif test $build != $host && test $have_gcc_for_target = yes; then
6386 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6387 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6388 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6391 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6392 # Extract the first word of "windres", so it can be a program name with args.
6393 set dummy windres; ac_word=$2
6394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6395 echo "configure:6396: checking for $ac_word" >&5
6396 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6397 echo $ac_n "(cached) $ac_c" 1>&6
6398 else
6399 case "$WINDRES_FOR_TARGET" in
6401 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6403 ?:/*)
6404 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6408 ac_dummy="$gcc_cv_tool_dirs"
6409 for ac_dir in $ac_dummy; do
6410 test -z "$ac_dir" && ac_dir=.
6411 if test -f $ac_dir/$ac_word; then
6412 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6413 break
6415 done
6416 IFS="$ac_save_ifs"
6418 esac
6420 WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6421 if test -n "$WINDRES_FOR_TARGET"; then
6422 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6423 else
6424 echo "$ac_t""no" 1>&6
6428 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6429 if test -n "$with_build_time_tools"; then
6430 for ncn_progname in windres; do
6431 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6432 echo "configure:6433: checking for ${ncn_progname} in $with_build_time_tools" >&5
6433 if test -x $with_build_time_tools/WINDRES_FOR_TARGET; then
6434 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/WINDRES_FOR_TARGET
6435 echo "$ac_t""yes" 1>&6
6436 break
6437 else
6438 echo "$ac_t""no" 1>&6
6440 done
6443 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6444 for ncn_progname in windres; do
6445 if test -n "$ncn_target_tool_prefix"; then
6446 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6447 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6449 echo "configure:6450: checking for $ac_word" >&5
6450 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6451 echo $ac_n "(cached) $ac_c" 1>&6
6452 else
6453 if test -n "$WINDRES_FOR_TARGET"; then
6454 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6455 else
6456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6457 ac_dummy="$PATH"
6458 for ac_dir in $ac_dummy; do
6459 test -z "$ac_dir" && ac_dir=.
6460 if test -f $ac_dir/$ac_word; then
6461 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6462 break
6464 done
6465 IFS="$ac_save_ifs"
6468 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6469 if test -n "$WINDRES_FOR_TARGET"; then
6470 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6471 else
6472 echo "$ac_t""no" 1>&6
6476 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6478 set dummy ${ncn_progname}; ac_word=$2
6479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6480 echo "configure:6481: checking for $ac_word" >&5
6481 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6482 echo $ac_n "(cached) $ac_c" 1>&6
6483 else
6484 if test -n "$WINDRES_FOR_TARGET"; then
6485 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6486 else
6487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6488 ac_dummy="$PATH"
6489 for ac_dir in $ac_dummy; do
6490 test -z "$ac_dir" && ac_dir=.
6491 if test -f $ac_dir/$ac_word; then
6492 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6493 break
6495 done
6496 IFS="$ac_save_ifs"
6499 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6500 if test -n "$WINDRES_FOR_TARGET"; then
6501 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6502 else
6503 echo "$ac_t""no" 1>&6
6507 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6508 done
6511 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6512 set dummy windres
6513 if test $build = $target ; then
6514 WINDRES_FOR_TARGET="$2"
6515 else
6516 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
6523 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6525 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6526 echo "configure:6527: checking where to find the target ar" >&5
6527 if test "x${build}" != "x${host}" ; then
6528 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6529 # We already found the complete path
6530 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6531 else
6532 # Canadian cross, just use what we found
6533 echo "$ac_t""pre-installed" 1>&6
6535 else
6536 ok=yes
6537 case " ${configdirs} " in
6538 *" binutils "*) ;;
6539 *) ok=no ;;
6540 esac
6542 if test $ok = yes; then
6543 # An in-tree tool is available and we can use it
6544 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6545 echo "$ac_t""just compiled" 1>&6
6546 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6547 # We already found the complete path
6548 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6549 elif test "x$target" = "x$host"; then
6550 # We can use an host tool
6551 AR_FOR_TARGET='$(AR)'
6552 echo "$ac_t""host tool" 1>&6
6553 else
6554 # We need a cross tool
6555 echo "$ac_t""pre-installed" 1>&6
6558 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6559 echo "configure:6560: checking where to find the target as" >&5
6560 if test "x${build}" != "x${host}" ; then
6561 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6562 # We already found the complete path
6563 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6564 else
6565 # Canadian cross, just use what we found
6566 echo "$ac_t""pre-installed" 1>&6
6568 else
6569 ok=yes
6570 case " ${configdirs} " in
6571 *" gas "*) ;;
6572 *) ok=no ;;
6573 esac
6575 if test $ok = yes; then
6576 # An in-tree tool is available and we can use it
6577 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6578 echo "$ac_t""just compiled" 1>&6
6579 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6580 # We already found the complete path
6581 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6582 elif test "x$target" = "x$host"; then
6583 # We can use an host tool
6584 AS_FOR_TARGET='$(AS)'
6585 echo "$ac_t""host tool" 1>&6
6586 else
6587 # We need a cross tool
6588 echo "$ac_t""pre-installed" 1>&6
6591 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6592 echo "configure:6593: checking where to find the target cc" >&5
6593 if test "x${build}" != "x${host}" ; then
6594 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6595 # We already found the complete path
6596 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6597 else
6598 # Canadian cross, just use what we found
6599 echo "$ac_t""pre-installed" 1>&6
6601 else
6602 ok=yes
6603 case " ${configdirs} " in
6604 *" gcc "*) ;;
6605 *) ok=no ;;
6606 esac
6608 if test $ok = yes; then
6609 # An in-tree tool is available and we can use it
6610 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6611 echo "$ac_t""just compiled" 1>&6
6612 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6613 # We already found the complete path
6614 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6615 elif test "x$target" = "x$host"; then
6616 # We can use an host tool
6617 CC_FOR_TARGET='$(CC)'
6618 echo "$ac_t""host tool" 1>&6
6619 else
6620 # We need a cross tool
6621 echo "$ac_t""pre-installed" 1>&6
6624 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6625 echo "configure:6626: checking where to find the target c++" >&5
6626 if test "x${build}" != "x${host}" ; then
6627 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6628 # We already found the complete path
6629 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6630 else
6631 # Canadian cross, just use what we found
6632 echo "$ac_t""pre-installed" 1>&6
6634 else
6635 ok=yes
6636 case " ${configdirs} " in
6637 *" gcc "*) ;;
6638 *) ok=no ;;
6639 esac
6640 case ,${enable_languages}, in
6641 *,c++,*) ;;
6642 *) ok=no ;;
6643 esac
6644 if test $ok = yes; then
6645 # An in-tree tool is available and we can use it
6646 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'
6647 echo "$ac_t""just compiled" 1>&6
6648 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6649 # We already found the complete path
6650 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6651 elif test "x$target" = "x$host"; then
6652 # We can use an host tool
6653 CXX_FOR_TARGET='$(CXX)'
6654 echo "$ac_t""host tool" 1>&6
6655 else
6656 # We need a cross tool
6657 echo "$ac_t""pre-installed" 1>&6
6660 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6661 echo "configure:6662: checking where to find the target c++ for libstdc++" >&5
6662 if test "x${build}" != "x${host}" ; then
6663 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6664 # We already found the complete path
6665 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6666 else
6667 # Canadian cross, just use what we found
6668 echo "$ac_t""pre-installed" 1>&6
6670 else
6671 ok=yes
6672 case " ${configdirs} " in
6673 *" gcc "*) ;;
6674 *) ok=no ;;
6675 esac
6676 case ,${enable_languages}, in
6677 *,c++,*) ;;
6678 *) ok=no ;;
6679 esac
6680 if test $ok = yes; then
6681 # An in-tree tool is available and we can use it
6682 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'
6683 echo "$ac_t""just compiled" 1>&6
6684 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6685 # We already found the complete path
6686 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6687 elif test "x$target" = "x$host"; then
6688 # We can use an host tool
6689 RAW_CXX_FOR_TARGET='$(CXX)'
6690 echo "$ac_t""host tool" 1>&6
6691 else
6692 # We need a cross tool
6693 echo "$ac_t""pre-installed" 1>&6
6696 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6697 echo "configure:6698: checking where to find the target dlltool" >&5
6698 if test "x${build}" != "x${host}" ; then
6699 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6700 # We already found the complete path
6701 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6702 else
6703 # Canadian cross, just use what we found
6704 echo "$ac_t""pre-installed" 1>&6
6706 else
6707 ok=yes
6708 case " ${configdirs} " in
6709 *" binutils "*) ;;
6710 *) ok=no ;;
6711 esac
6713 if test $ok = yes; then
6714 # An in-tree tool is available and we can use it
6715 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6716 echo "$ac_t""just compiled" 1>&6
6717 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6718 # We already found the complete path
6719 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6720 elif test "x$target" = "x$host"; then
6721 # We can use an host tool
6722 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
6723 echo "$ac_t""host tool" 1>&6
6724 else
6725 # We need a cross tool
6726 echo "$ac_t""pre-installed" 1>&6
6729 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6730 echo "configure:6731: checking where to find the target gcc" >&5
6731 if test "x${build}" != "x${host}" ; then
6732 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6733 # We already found the complete path
6734 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6735 else
6736 # Canadian cross, just use what we found
6737 echo "$ac_t""pre-installed" 1>&6
6739 else
6740 ok=yes
6741 case " ${configdirs} " in
6742 *" gcc "*) ;;
6743 *) ok=no ;;
6744 esac
6746 if test $ok = yes; then
6747 # An in-tree tool is available and we can use it
6748 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6749 echo "$ac_t""just compiled" 1>&6
6750 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6751 # We already found the complete path
6752 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6753 elif test "x$target" = "x$host"; then
6754 # We can use an host tool
6755 GCC_FOR_TARGET='$()'
6756 echo "$ac_t""host tool" 1>&6
6757 else
6758 # We need a cross tool
6759 echo "$ac_t""pre-installed" 1>&6
6762 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6763 echo "configure:6764: checking where to find the target gcj" >&5
6764 if test "x${build}" != "x${host}" ; then
6765 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6766 # We already found the complete path
6767 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6768 else
6769 # Canadian cross, just use what we found
6770 echo "$ac_t""pre-installed" 1>&6
6772 else
6773 ok=yes
6774 case " ${configdirs} " in
6775 *" gcc "*) ;;
6776 *) ok=no ;;
6777 esac
6778 case ,${enable_languages}, in
6779 *,java,*) ;;
6780 *) ok=no ;;
6781 esac
6782 if test $ok = yes; then
6783 # An in-tree tool is available and we can use it
6784 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6785 echo "$ac_t""just compiled" 1>&6
6786 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6787 # We already found the complete path
6788 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6789 elif test "x$target" = "x$host"; then
6790 # We can use an host tool
6791 GCJ_FOR_TARGET='$(GCJ)'
6792 echo "$ac_t""host tool" 1>&6
6793 else
6794 # We need a cross tool
6795 echo "$ac_t""pre-installed" 1>&6
6798 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6799 echo "configure:6800: checking where to find the target gfortran" >&5
6800 if test "x${build}" != "x${host}" ; then
6801 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6802 # We already found the complete path
6803 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6804 else
6805 # Canadian cross, just use what we found
6806 echo "$ac_t""pre-installed" 1>&6
6808 else
6809 ok=yes
6810 case " ${configdirs} " in
6811 *" gcc "*) ;;
6812 *) ok=no ;;
6813 esac
6814 case ,${enable_languages}, in
6815 *,fortran,*) ;;
6816 *) ok=no ;;
6817 esac
6818 if test $ok = yes; then
6819 # An in-tree tool is available and we can use it
6820 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6821 echo "$ac_t""just compiled" 1>&6
6822 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6823 # We already found the complete path
6824 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6825 elif test "x$target" = "x$host"; then
6826 # We can use an host tool
6827 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
6828 echo "$ac_t""host tool" 1>&6
6829 else
6830 # We need a cross tool
6831 echo "$ac_t""pre-installed" 1>&6
6834 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
6835 echo "configure:6836: checking where to find the target ld" >&5
6836 if test "x${build}" != "x${host}" ; then
6837 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6838 # We already found the complete path
6839 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6840 else
6841 # Canadian cross, just use what we found
6842 echo "$ac_t""pre-installed" 1>&6
6844 else
6845 ok=yes
6846 case " ${configdirs} " in
6847 *" ld "*) ;;
6848 *) ok=no ;;
6849 esac
6851 if test $ok = yes; then
6852 # An in-tree tool is available and we can use it
6853 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
6854 echo "$ac_t""just compiled" 1>&6
6855 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6856 # We already found the complete path
6857 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6858 elif test "x$target" = "x$host"; then
6859 # We can use an host tool
6860 LD_FOR_TARGET='$(LD)'
6861 echo "$ac_t""host tool" 1>&6
6862 else
6863 # We need a cross tool
6864 echo "$ac_t""pre-installed" 1>&6
6867 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
6868 echo "configure:6869: checking where to find the target lipo" >&5
6869 if test "x${build}" != "x${host}" ; then
6870 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6871 # We already found the complete path
6872 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6873 else
6874 # Canadian cross, just use what we found
6875 echo "$ac_t""pre-installed" 1>&6
6877 else
6878 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6879 # We already found the complete path
6880 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6881 elif test "x$target" = "x$host"; then
6882 # We can use an host tool
6883 LIPO_FOR_TARGET='$(LIPO)'
6884 echo "$ac_t""host tool" 1>&6
6885 else
6886 # We need a cross tool
6887 echo "$ac_t""pre-installed" 1>&6
6890 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
6891 echo "configure:6892: checking where to find the target nm" >&5
6892 if test "x${build}" != "x${host}" ; then
6893 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
6894 # We already found the complete path
6895 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
6896 else
6897 # Canadian cross, just use what we found
6898 echo "$ac_t""pre-installed" 1>&6
6900 else
6901 ok=yes
6902 case " ${configdirs} " in
6903 *" binutils "*) ;;
6904 *) ok=no ;;
6905 esac
6907 if test $ok = yes; then
6908 # An in-tree tool is available and we can use it
6909 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
6910 echo "$ac_t""just compiled" 1>&6
6911 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
6912 # We already found the complete path
6913 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
6914 elif test "x$target" = "x$host"; then
6915 # We can use an host tool
6916 NM_FOR_TARGET='$(NM)'
6917 echo "$ac_t""host tool" 1>&6
6918 else
6919 # We need a cross tool
6920 echo "$ac_t""pre-installed" 1>&6
6923 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
6924 echo "configure:6925: checking where to find the target objdump" >&5
6925 if test "x${build}" != "x${host}" ; then
6926 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
6927 # We already found the complete path
6928 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
6929 else
6930 # Canadian cross, just use what we found
6931 echo "$ac_t""pre-installed" 1>&6
6933 else
6934 ok=yes
6935 case " ${configdirs} " in
6936 *" binutils "*) ;;
6937 *) ok=no ;;
6938 esac
6940 if test $ok = yes; then
6941 # An in-tree tool is available and we can use it
6942 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
6943 echo "$ac_t""just compiled" 1>&6
6944 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
6945 # We already found the complete path
6946 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
6947 elif test "x$target" = "x$host"; then
6948 # We can use an host tool
6949 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
6950 echo "$ac_t""host tool" 1>&6
6951 else
6952 # We need a cross tool
6953 echo "$ac_t""pre-installed" 1>&6
6956 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
6957 echo "configure:6958: checking where to find the target ranlib" >&5
6958 if test "x${build}" != "x${host}" ; then
6959 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
6960 # We already found the complete path
6961 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
6962 else
6963 # Canadian cross, just use what we found
6964 echo "$ac_t""pre-installed" 1>&6
6966 else
6967 ok=yes
6968 case " ${configdirs} " in
6969 *" binutils "*) ;;
6970 *) ok=no ;;
6971 esac
6973 if test $ok = yes; then
6974 # An in-tree tool is available and we can use it
6975 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
6976 echo "$ac_t""just compiled" 1>&6
6977 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
6978 # We already found the complete path
6979 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
6980 elif test "x$target" = "x$host"; then
6981 # We can use an host tool
6982 RANLIB_FOR_TARGET='$(RANLIB)'
6983 echo "$ac_t""host tool" 1>&6
6984 else
6985 # We need a cross tool
6986 echo "$ac_t""pre-installed" 1>&6
6989 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
6990 echo "configure:6991: checking where to find the target strip" >&5
6991 if test "x${build}" != "x${host}" ; then
6992 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
6993 # We already found the complete path
6994 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
6995 else
6996 # Canadian cross, just use what we found
6997 echo "$ac_t""pre-installed" 1>&6
6999 else
7000 ok=yes
7001 case " ${configdirs} " in
7002 *" binutils "*) ;;
7003 *) ok=no ;;
7004 esac
7006 if test $ok = yes; then
7007 # An in-tree tool is available and we can use it
7008 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7009 echo "$ac_t""just compiled" 1>&6
7010 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7011 # We already found the complete path
7012 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7013 elif test "x$target" = "x$host"; then
7014 # We can use an host tool
7015 STRIP_FOR_TARGET='$(STRIP)'
7016 echo "$ac_t""host tool" 1>&6
7017 else
7018 # We need a cross tool
7019 echo "$ac_t""pre-installed" 1>&6
7022 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7023 echo "configure:7024: checking where to find the target windres" >&5
7024 if test "x${build}" != "x${host}" ; then
7025 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7026 # We already found the complete path
7027 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7028 else
7029 # Canadian cross, just use what we found
7030 echo "$ac_t""pre-installed" 1>&6
7032 else
7033 ok=yes
7034 case " ${configdirs} " in
7035 *" binutils "*) ;;
7036 *) ok=no ;;
7037 esac
7039 if test $ok = yes; then
7040 # An in-tree tool is available and we can use it
7041 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7042 echo "$ac_t""just compiled" 1>&6
7043 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7044 # We already found the complete path
7045 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7046 elif test "x$target" = "x$host"; then
7047 # We can use an host tool
7048 WINDRES_FOR_TARGET='$(WINDRES)'
7049 echo "$ac_t""host tool" 1>&6
7050 else
7051 # We need a cross tool
7052 echo "$ac_t""pre-installed" 1>&6
7059 # Certain tools may need extra flags.
7060 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7061 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7062 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7064 # When building target libraries, except in a Canadian cross, we use
7065 # the same toolchain as the compiler we just built.
7066 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7067 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7068 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7069 if test $host = $build; then
7070 case " $configdirs " in
7071 *" gcc "*)
7072 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7073 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7074 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7076 esac
7083 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7084 echo "configure:7085: checking whether to enable maintainer-specific portions of Makefiles" >&5
7085 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7086 if test "${enable_maintainer_mode+set}" = set; then
7087 enableval="$enable_maintainer_mode"
7088 USE_MAINTAINER_MODE=$enableval
7089 else
7090 USE_MAINTAINER_MODE=no
7093 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7096 if test "$USE_MAINTAINER_MODE" = yes; then
7097 MAINTAINER_MODE_TRUE=
7098 MAINTAINER_MODE_FALSE='#'
7099 else
7100 MAINTAINER_MODE_TRUE='#'
7101 MAINTAINER_MODE_FALSE=
7103 MAINT=$MAINTAINER_MODE_TRUE
7105 # ---------------------
7106 # GCC bootstrap support
7107 # ---------------------
7109 # Stage specific cflags for build.
7110 stage1_cflags="-g"
7111 case $build in
7112 vax-*-*)
7113 case ${GCC} in
7114 yes) stage1_cflags="-g -Wa,-J" ;;
7115 *) stage1_cflags="-g -J" ;;
7116 esac ;;
7117 powerpc-*-darwin*)
7118 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7119 # sources; use -no-cpp-precomp to get to GNU cpp.
7120 # Apple's GCC has bugs in designated initializer handling, so disable
7121 # that too.
7122 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7124 esac
7127 # Enable -Werror in bootstrap stage2 and later.
7128 # Change the default to "no" on release branches.
7129 # Check whether --enable-werror or --disable-werror was given.
7130 if test "${enable_werror+set}" = set; then
7131 enableval="$enable_werror"
7133 else
7134 enable_werror=yes
7137 case ${enable_werror} in
7138 yes) stage2_werror_flag="--enable-werror-always" ;;
7139 *) stage2_werror_flag="" ;;
7140 esac
7143 trap '' 1 2 15
7144 cat > confcache <<\EOF
7145 # This file is a shell script that caches the results of configure
7146 # tests run on this system so they can be shared between configure
7147 # scripts and configure runs. It is not useful on other systems.
7148 # If it contains results you don't want to keep, you may remove or edit it.
7150 # By default, configure uses ./config.cache as the cache file,
7151 # creating it if it does not exist already. You can give configure
7152 # the --cache-file=FILE option to use a different cache file; that is
7153 # what configure does when it calls configure scripts in
7154 # subdirectories, so they share the cache.
7155 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7156 # config.status only pays attention to the cache file if you give it the
7157 # --recheck option to rerun configure.
7160 # The following way of writing the cache mishandles newlines in values,
7161 # but we know of no workaround that is simple, portable, and efficient.
7162 # So, don't put newlines in cache variables' values.
7163 # Ultrix sh set writes to stderr and can't be redirected directly,
7164 # and sets the high bit in the cache file unless we assign to the vars.
7165 (set) 2>&1 |
7166 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7167 *ac_space=\ *)
7168 # `set' does not quote correctly, so add quotes (double-quote substitution
7169 # turns \\\\ into \\, and sed turns \\ into \).
7170 sed -n \
7171 -e "s/'/'\\\\''/g" \
7172 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7175 # `set' quotes correctly as required by POSIX, so do not add quotes.
7176 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7178 esac >> confcache
7179 if cmp -s $cache_file confcache; then
7181 else
7182 if test -w $cache_file; then
7183 echo "updating cache $cache_file"
7184 cat confcache > $cache_file
7185 else
7186 echo "not updating unwritable cache $cache_file"
7189 rm -f confcache
7191 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7194 # Let make expand exec_prefix.
7195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7197 # Any assignment to VPATH causes Sun make to only execute
7198 # the first set of double-colon rules, so remove it if not needed.
7199 # If there is a colon in the path, we need to keep it.
7200 if test "x$srcdir" = x.; then
7201 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7204 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7206 # Transform confdefs.h into DEFS.
7207 # Protect against shell expansion while executing Makefile rules.
7208 # Protect against Makefile macro expansion.
7209 cat > conftest.defs <<\EOF
7210 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7211 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7212 s%\[%\\&%g
7213 s%\]%\\&%g
7214 s%\$%$$%g
7216 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7217 rm -f conftest.defs
7220 # Without the "./", some shells look in PATH for config.status.
7221 : ${CONFIG_STATUS=./config.status}
7223 echo creating $CONFIG_STATUS
7224 rm -f $CONFIG_STATUS
7225 cat > $CONFIG_STATUS <<EOF
7226 #! /bin/sh
7227 # Generated automatically by configure.
7228 # Run this file to recreate the current configuration.
7229 # This directory was configured as follows,
7230 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7232 # $0 $ac_configure_args
7234 # Compiler output produced by configure, useful for debugging
7235 # configure, is in ./config.log if it exists.
7237 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7238 for ac_option
7240 case "\$ac_option" in
7241 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7242 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7243 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7244 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7245 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7246 exit 0 ;;
7247 -help | --help | --hel | --he | --h)
7248 echo "\$ac_cs_usage"; exit 0 ;;
7249 *) echo "\$ac_cs_usage"; exit 1 ;;
7250 esac
7251 done
7253 ac_given_srcdir=$srcdir
7254 ac_given_INSTALL="$INSTALL"
7256 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7258 cat >> $CONFIG_STATUS <<EOF
7260 # Protect against being on the right side of a sed subst in config.status.
7261 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7262 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7263 $ac_vpsub
7264 $extrasub
7265 s%@SHELL@%$SHELL%g
7266 s%@CFLAGS@%$CFLAGS%g
7267 s%@CPPFLAGS@%$CPPFLAGS%g
7268 s%@CXXFLAGS@%$CXXFLAGS%g
7269 s%@FFLAGS@%$FFLAGS%g
7270 s%@DEFS@%$DEFS%g
7271 s%@LDFLAGS@%$LDFLAGS%g
7272 s%@LIBS@%$LIBS%g
7273 s%@exec_prefix@%$exec_prefix%g
7274 s%@prefix@%$prefix%g
7275 s%@program_transform_name@%$program_transform_name%g
7276 s%@bindir@%$bindir%g
7277 s%@sbindir@%$sbindir%g
7278 s%@libexecdir@%$libexecdir%g
7279 s%@datadir@%$datadir%g
7280 s%@sysconfdir@%$sysconfdir%g
7281 s%@sharedstatedir@%$sharedstatedir%g
7282 s%@localstatedir@%$localstatedir%g
7283 s%@libdir@%$libdir%g
7284 s%@includedir@%$includedir%g
7285 s%@oldincludedir@%$oldincludedir%g
7286 s%@infodir@%$infodir%g
7287 s%@mandir@%$mandir%g
7288 s%@host@%$host%g
7289 s%@host_alias@%$host_alias%g
7290 s%@host_cpu@%$host_cpu%g
7291 s%@host_vendor@%$host_vendor%g
7292 s%@host_os@%$host_os%g
7293 s%@target@%$target%g
7294 s%@target_alias@%$target_alias%g
7295 s%@target_cpu@%$target_cpu%g
7296 s%@target_vendor@%$target_vendor%g
7297 s%@target_os@%$target_os%g
7298 s%@build@%$build%g
7299 s%@build_alias@%$build_alias%g
7300 s%@build_cpu@%$build_cpu%g
7301 s%@build_vendor@%$build_vendor%g
7302 s%@build_os@%$build_os%g
7303 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7304 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7305 s%@INSTALL_DATA@%$INSTALL_DATA%g
7306 s%@LN@%$LN%g
7307 s%@LN_S@%$LN_S%g
7308 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7309 s%@build_subdir@%$build_subdir%g
7310 s%@host_subdir@%$host_subdir%g
7311 s%@target_subdir@%$target_subdir%g
7312 s%@CC@%$CC%g
7313 s%@GNATBIND@%$GNATBIND%g
7314 s%@do_compare@%$do_compare%g
7315 s%@gmplibs@%$gmplibs%g
7316 s%@gmpinc@%$gmpinc%g
7317 s%@stage1_languages@%$stage1_languages%g
7318 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7319 /@serialization_dependencies@/r $serialization_dependencies
7320 s%@serialization_dependencies@%%g
7321 /@host_makefile_frag@/r $host_makefile_frag
7322 s%@host_makefile_frag@%%g
7323 /@target_makefile_frag@/r $target_makefile_frag
7324 s%@target_makefile_frag@%%g
7325 /@alphaieee_frag@/r $alphaieee_frag
7326 s%@alphaieee_frag@%%g
7327 /@ospace_frag@/r $ospace_frag
7328 s%@ospace_frag@%%g
7329 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7330 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
7331 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
7332 s%@tooldir@%$tooldir%g
7333 s%@build_tooldir@%$build_tooldir%g
7334 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7335 s%@GDB_TK@%$GDB_TK%g
7336 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7337 s%@build_configargs@%$build_configargs%g
7338 s%@build_configdirs@%$build_configdirs%g
7339 s%@host_configargs@%$host_configargs%g
7340 s%@configdirs@%$configdirs%g
7341 s%@target_configargs@%$target_configargs%g
7342 s%@target_configdirs@%$target_configdirs%g
7343 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7344 s%@config_shell@%$config_shell%g
7345 s%@YACC@%$YACC%g
7346 s%@BISON@%$BISON%g
7347 s%@M4@%$M4%g
7348 s%@LEX@%$LEX%g
7349 s%@FLEX@%$FLEX%g
7350 s%@MAKEINFO@%$MAKEINFO%g
7351 s%@EXPECT@%$EXPECT%g
7352 s%@RUNTEST@%$RUNTEST%g
7353 s%@AR@%$AR%g
7354 s%@AS@%$AS%g
7355 s%@DLLTOOL@%$DLLTOOL%g
7356 s%@LD@%$LD%g
7357 s%@LIPO@%$LIPO%g
7358 s%@NM@%$NM%g
7359 s%@RANLIB@%$RANLIB%g
7360 s%@STRIP@%$STRIP%g
7361 s%@WINDRES@%$WINDRES%g
7362 s%@OBJCOPY@%$OBJCOPY%g
7363 s%@OBJDUMP@%$OBJDUMP%g
7364 s%@CXX@%$CXX%g
7365 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7366 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7367 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7368 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7369 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7370 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7371 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7372 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7373 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7374 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7375 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7376 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7377 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7378 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7379 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7380 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7381 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7382 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7383 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7384 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7385 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7386 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7387 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7388 s%@MAINT@%$MAINT%g
7389 s%@stage1_cflags@%$stage1_cflags%g
7390 s%@stage2_werror_flag@%$stage2_werror_flag%g
7392 CEOF
7395 cat >> $CONFIG_STATUS <<\EOF
7397 # Split the substitutions into bite-sized pieces for seds with
7398 # small command number limits, like on Digital OSF/1 and HP-UX.
7399 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7400 ac_file=1 # Number of current file.
7401 ac_beg=1 # First line for current file.
7402 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7403 ac_more_lines=:
7404 ac_sed_cmds=""
7405 while $ac_more_lines; do
7406 if test $ac_beg -gt 1; then
7407 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7408 else
7409 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7411 if test ! -s conftest.s$ac_file; then
7412 ac_more_lines=false
7413 rm -f conftest.s$ac_file
7414 else
7415 if test -z "$ac_sed_cmds"; then
7416 ac_sed_cmds="sed -f conftest.s$ac_file"
7417 else
7418 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7420 ac_file=`expr $ac_file + 1`
7421 ac_beg=$ac_end
7422 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7424 done
7425 if test -z "$ac_sed_cmds"; then
7426 ac_sed_cmds=cat
7430 cat >> $CONFIG_STATUS <<EOF
7432 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7434 cat >> $CONFIG_STATUS <<\EOF
7435 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7436 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7437 case "$ac_file" in
7438 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7439 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7440 *) ac_file_in="${ac_file}.in" ;;
7441 esac
7443 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7445 # Remove last slash and all that follows it. Not all systems have dirname.
7446 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7447 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7448 # The file is in a subdirectory.
7449 test ! -d "$ac_dir" && mkdir "$ac_dir"
7450 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7451 # A "../" for each directory in $ac_dir_suffix.
7452 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7453 else
7454 ac_dir_suffix= ac_dots=
7457 case "$ac_given_srcdir" in
7458 .) srcdir=.
7459 if test -z "$ac_dots"; then top_srcdir=.
7460 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7461 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7462 *) # Relative path.
7463 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7464 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7465 esac
7467 case "$ac_given_INSTALL" in
7468 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7469 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7470 esac
7472 echo creating "$ac_file"
7473 rm -f "$ac_file"
7474 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7475 case "$ac_file" in
7476 *Makefile*) ac_comsub="1i\\
7477 # $configure_input" ;;
7478 *) ac_comsub= ;;
7479 esac
7481 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7482 sed -e "$ac_comsub
7483 s%@configure_input@%$configure_input%g
7484 s%@srcdir@%$srcdir%g
7485 s%@top_srcdir@%$top_srcdir%g
7486 s%@INSTALL@%$INSTALL%g
7487 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7488 fi; done
7489 rm -f conftest.s*
7492 cat >> $CONFIG_STATUS <<EOF
7495 cat >> $CONFIG_STATUS <<\EOF
7497 exit 0
7499 chmod +x $CONFIG_STATUS
7500 rm -fr confdefs* $ac_clean_files
7501 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1