Add 2006 to copyright line
[official-gcc.git] / configure
blob421fe9386c5ca90e5ab21e592a140ac1ad74e7d9
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 --enable-libgcc-math Builds libgcc-math directory"
20 ac_help="$ac_help
21 --with-mpfr-dir=PATH Specify source directory for MPFR library"
22 ac_help="$ac_help
23 --with-mpfr=PATH Specify directory for installed MPFR library"
24 ac_help="$ac_help
25 --with-gmp-dir=PATH Specify source directory for GMP library"
26 ac_help="$ac_help
27 --with-gmp=PATH Specify directory for installed GMP library"
28 ac_help="$ac_help
29 --with-build-sysroot=sysroot
30 use sysroot as the system root during the build"
31 ac_help="$ac_help
32 --enable-bootstrap Enable bootstrapping [yes if native build]"
33 ac_help="$ac_help
34 --enable-serial-[{host,target,build}-]configure
35 Force sequential configuration of
36 sub-packages for the host, target or build
37 machine, or all sub-packages"
38 ac_help="$ac_help
39 --with-build-time-tools=path
40 use given path to find target tools during the build"
41 ac_help="$ac_help
42 --enable-maintainer-mode enable make rules and dependencies not useful
43 (and sometimes confusing) to the casual installer"
44 ac_help="$ac_help
45 --enable-werror enable -Werror in bootstrap stage2 and later"
47 # Initialize some variables set by options.
48 # The variables have the same names as the options, with
49 # dashes changed to underlines.
50 build=NONE
51 cache_file=./config.cache
52 exec_prefix=NONE
53 host=NONE
54 no_create=
55 nonopt=NONE
56 no_recursion=
57 prefix=NONE
58 program_prefix=NONE
59 program_suffix=NONE
60 program_transform_name=s,x,x,
61 silent=
62 site=
63 srcdir=
64 target=NONE
65 verbose=
66 x_includes=NONE
67 x_libraries=NONE
68 bindir='${exec_prefix}/bin'
69 sbindir='${exec_prefix}/sbin'
70 libexecdir='${exec_prefix}/libexec'
71 datadir='${prefix}/share'
72 sysconfdir='${prefix}/etc'
73 sharedstatedir='${prefix}/com'
74 localstatedir='${prefix}/var'
75 libdir='${exec_prefix}/lib'
76 includedir='${prefix}/include'
77 oldincludedir='/usr/include'
78 infodir='${prefix}/info'
79 mandir='${prefix}/man'
81 # Initialize some other variables.
82 subdirs=
83 MFLAGS= MAKEFLAGS=
84 SHELL=${CONFIG_SHELL-/bin/sh}
85 # Maximum number of lines to put in a shell here document.
86 ac_max_here_lines=12
88 ac_prev=
89 for ac_option
92 # If the previous option needs an argument, assign it.
93 if test -n "$ac_prev"; then
94 eval "$ac_prev=\$ac_option"
95 ac_prev=
96 continue
99 case "$ac_option" in
100 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 *) ac_optarg= ;;
102 esac
104 # Accept the important Cygnus configure options, so we can diagnose typos.
106 case "$ac_option" in
108 -bindir | --bindir | --bindi | --bind | --bin | --bi)
109 ac_prev=bindir ;;
110 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
111 bindir="$ac_optarg" ;;
113 -build | --build | --buil | --bui | --bu)
114 ac_prev=build ;;
115 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
116 build="$ac_optarg" ;;
118 -cache-file | --cache-file | --cache-fil | --cache-fi \
119 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
120 ac_prev=cache_file ;;
121 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
122 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
123 cache_file="$ac_optarg" ;;
125 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
126 ac_prev=datadir ;;
127 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
128 | --da=*)
129 datadir="$ac_optarg" ;;
131 -disable-* | --disable-*)
132 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
140 -enable-* | --enable-*)
141 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 case "$ac_option" in
148 *=*) ;;
149 *) ac_optarg=yes ;;
150 esac
151 eval "enable_${ac_feature}='$ac_optarg'" ;;
153 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
154 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
155 | --exec | --exe | --ex)
156 ac_prev=exec_prefix ;;
157 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
158 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
159 | --exec=* | --exe=* | --ex=*)
160 exec_prefix="$ac_optarg" ;;
162 -gas | --gas | --ga | --g)
163 # Obsolete; use --with-gas.
164 with_gas=yes ;;
166 -help | --help | --hel | --he)
167 # Omit some internal or obsolete options to make the list less imposing.
168 # This message is too long to be a string in the A/UX 3.1 sh.
169 cat << EOF
170 Usage: configure [options] [host]
171 Options: [defaults in brackets after descriptions]
172 Configuration:
173 --cache-file=FILE cache test results in FILE
174 --help print this message
175 --no-create do not create output files
176 --quiet, --silent do not print \`checking...' messages
177 --version print the version of autoconf that created configure
178 Directory and file names:
179 --prefix=PREFIX install architecture-independent files in PREFIX
180 [$ac_default_prefix]
181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
182 [same as prefix]
183 --bindir=DIR user executables in DIR [EPREFIX/bin]
184 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
185 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
186 --datadir=DIR read-only architecture-independent data in DIR
187 [PREFIX/share]
188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
189 --sharedstatedir=DIR modifiable architecture-independent data in DIR
190 [PREFIX/com]
191 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
192 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
193 --includedir=DIR C header files in DIR [PREFIX/include]
194 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
195 --infodir=DIR info documentation in DIR [PREFIX/info]
196 --mandir=DIR man documentation in DIR [PREFIX/man]
197 --srcdir=DIR find the sources in DIR [configure dir or ..]
198 --program-prefix=PREFIX prepend PREFIX to installed program names
199 --program-suffix=SUFFIX append SUFFIX to installed program names
200 --program-transform-name=PROGRAM
201 run sed PROGRAM on installed program names
203 cat << EOF
204 Host type:
205 --build=BUILD configure for building on BUILD [BUILD=HOST]
206 --host=HOST configure for HOST [guessed]
207 --target=TARGET configure for TARGET [TARGET=HOST]
208 Features and packages:
209 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
210 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
213 --x-includes=DIR X include files are in DIR
214 --x-libraries=DIR X library files are in DIR
216 if test -n "$ac_help"; then
217 echo "--enable and --with options recognized:$ac_help"
219 exit 0 ;;
221 -host | --host | --hos | --ho)
222 ac_prev=host ;;
223 -host=* | --host=* | --hos=* | --ho=*)
224 host="$ac_optarg" ;;
226 -includedir | --includedir | --includedi | --included | --include \
227 | --includ | --inclu | --incl | --inc)
228 ac_prev=includedir ;;
229 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
230 | --includ=* | --inclu=* | --incl=* | --inc=*)
231 includedir="$ac_optarg" ;;
233 -infodir | --infodir | --infodi | --infod | --info | --inf)
234 ac_prev=infodir ;;
235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
236 infodir="$ac_optarg" ;;
238 -libdir | --libdir | --libdi | --libd)
239 ac_prev=libdir ;;
240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
241 libdir="$ac_optarg" ;;
243 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
244 | --libexe | --libex | --libe)
245 ac_prev=libexecdir ;;
246 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
247 | --libexe=* | --libex=* | --libe=*)
248 libexecdir="$ac_optarg" ;;
250 -localstatedir | --localstatedir | --localstatedi | --localstated \
251 | --localstate | --localstat | --localsta | --localst \
252 | --locals | --local | --loca | --loc | --lo)
253 ac_prev=localstatedir ;;
254 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
255 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
256 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
257 localstatedir="$ac_optarg" ;;
259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
260 ac_prev=mandir ;;
261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
262 mandir="$ac_optarg" ;;
264 -nfp | --nfp | --nf)
265 # Obsolete; use --without-fp.
266 with_fp=no ;;
268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
269 | --no-cr | --no-c)
270 no_create=yes ;;
272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
274 no_recursion=yes ;;
276 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
277 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
278 | --oldin | --oldi | --old | --ol | --o)
279 ac_prev=oldincludedir ;;
280 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
281 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
282 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
283 oldincludedir="$ac_optarg" ;;
285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
286 ac_prev=prefix ;;
287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
288 prefix="$ac_optarg" ;;
290 -program-prefix | --program-prefix | --program-prefi | --program-pref \
291 | --program-pre | --program-pr | --program-p)
292 ac_prev=program_prefix ;;
293 -program-prefix=* | --program-prefix=* | --program-prefi=* \
294 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
295 program_prefix="$ac_optarg" ;;
297 -program-suffix | --program-suffix | --program-suffi | --program-suff \
298 | --program-suf | --program-su | --program-s)
299 ac_prev=program_suffix ;;
300 -program-suffix=* | --program-suffix=* | --program-suffi=* \
301 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
302 program_suffix="$ac_optarg" ;;
304 -program-transform-name | --program-transform-name \
305 | --program-transform-nam | --program-transform-na \
306 | --program-transform-n | --program-transform- \
307 | --program-transform | --program-transfor \
308 | --program-transfo | --program-transf \
309 | --program-trans | --program-tran \
310 | --progr-tra | --program-tr | --program-t)
311 ac_prev=program_transform_name ;;
312 -program-transform-name=* | --program-transform-name=* \
313 | --program-transform-nam=* | --program-transform-na=* \
314 | --program-transform-n=* | --program-transform-=* \
315 | --program-transform=* | --program-transfor=* \
316 | --program-transfo=* | --program-transf=* \
317 | --program-trans=* | --program-tran=* \
318 | --progr-tra=* | --program-tr=* | --program-t=*)
319 program_transform_name="$ac_optarg" ;;
321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
322 | -silent | --silent | --silen | --sile | --sil)
323 silent=yes ;;
325 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
326 ac_prev=sbindir ;;
327 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
328 | --sbi=* | --sb=*)
329 sbindir="$ac_optarg" ;;
331 -sharedstatedir | --sharedstatedir | --sharedstatedi \
332 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
333 | --sharedst | --shareds | --shared | --share | --shar \
334 | --sha | --sh)
335 ac_prev=sharedstatedir ;;
336 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
337 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
338 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
339 | --sha=* | --sh=*)
340 sharedstatedir="$ac_optarg" ;;
342 -site | --site | --sit)
343 ac_prev=site ;;
344 -site=* | --site=* | --sit=*)
345 site="$ac_optarg" ;;
347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
348 ac_prev=srcdir ;;
349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
350 srcdir="$ac_optarg" ;;
352 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
353 | --syscon | --sysco | --sysc | --sys | --sy)
354 ac_prev=sysconfdir ;;
355 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
356 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
357 sysconfdir="$ac_optarg" ;;
359 -target | --target | --targe | --targ | --tar | --ta | --t)
360 ac_prev=target ;;
361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
362 target="$ac_optarg" ;;
364 -v | -verbose | --verbose | --verbos | --verbo | --verb)
365 verbose=yes ;;
367 -version | --version | --versio | --versi | --vers)
368 echo "configure generated by autoconf version 2.13"
369 exit 0 ;;
371 -with-* | --with-*)
372 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 case "$ac_option" in
379 *=*) ;;
380 *) ac_optarg=yes ;;
381 esac
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* | --without-*)
385 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
393 --x)
394 # Obsolete; use --with-x.
395 with_x=yes ;;
397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
398 | --x-incl | --x-inc | --x-in | --x-i)
399 ac_prev=x_includes ;;
400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
402 x_includes="$ac_optarg" ;;
404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
406 ac_prev=x_libraries ;;
407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
409 x_libraries="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
421 nonopt="$ac_option"
424 esac
425 done
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
434 # 0 standard input
435 # 1 file creation
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
442 exec 6>/dev/null
443 else
444 exec 6>&1
446 exec 5>./config.log
448 echo "\
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
451 " 1>&5
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
455 ac_configure_args=
456 for ac_arg
458 case "$ac_arg" in
459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
460 | --no-cr | --no-c) ;;
461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 esac
467 done
469 # NLS nuisances.
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 echo > confdefs.h
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file=move-if-change
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted=yes
491 # Try the directory containing this script, then its parent.
492 ac_prog=$0
493 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
495 srcdir=$ac_confdir
496 if test ! -r $srcdir/$ac_unique_file; then
497 srcdir=..
499 else
500 ac_srcdir_defaulted=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 else
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$CONFIG_SITE"; then
513 if test "x$prefix" != xNONE; then
514 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
515 else
516 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
522 . "$ac_site_file"
524 done
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
528 . $cache_file
529 else
530 echo "creating cache $cache_file"
531 > $cache_file
534 ac_ext=c
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
541 ac_exeext=
542 ac_objext=o
543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
546 ac_n= ac_c='
547 ' ac_t=' '
548 else
549 ac_n=-n ac_c= ac_t=
551 else
552 ac_n= ac_c='\c' ac_t=
557 ac_aux_dir=
558 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
559 if test -f $ac_dir/install-sh; then
560 ac_aux_dir=$ac_dir
561 ac_install_sh="$ac_aux_dir/install-sh -c"
562 break
563 elif test -f $ac_dir/install.sh; then
564 ac_aux_dir=$ac_dir
565 ac_install_sh="$ac_aux_dir/install.sh -c"
566 break
568 done
569 if test -z "$ac_aux_dir"; then
570 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
572 ac_config_guess=$ac_aux_dir/config.guess
573 ac_config_sub=$ac_aux_dir/config.sub
574 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
577 # Do some error checking and defaulting for the host and target type.
578 # The inputs are:
579 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
581 # The rules are:
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
583 # same time.
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 # as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---*---* | *---NONE---* | *---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
595 esac
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
606 host_alias=$host
607 case "$host_alias" in
608 NONE)
609 case $nonopt in
610 NONE)
611 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
613 fi ;;
614 *) host_alias=$nonopt ;;
615 esac ;;
616 esac
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
627 target_alias=$target
628 case "$target_alias" in
629 NONE)
630 case $nonopt in
631 NONE) target_alias=$host_alias ;;
632 *) target_alias=$nonopt ;;
633 esac ;;
634 esac
636 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$target" 1>&6
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
645 build_alias=$build
646 case "$build_alias" in
647 NONE)
648 case $nonopt in
649 NONE) build_alias=$host_alias ;;
650 *) build_alias=$nonopt ;;
651 esac ;;
652 esac
654 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$build" 1>&6
660 test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
662 NONENONEs,x,x, &&
663 program_prefix=${target_alias}-
665 if test "$program_transform_name" = s,x,x,; then
666 program_transform_name=
667 else
668 # Double any \ or $. echo might interpret backslashes.
669 cat <<\EOF_SED > conftestsed
670 s,\\,\\\\,g; s,\$,$$,g
671 EOF_SED
672 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
673 rm -f conftestsed
675 test "$program_prefix" != NONE &&
676 program_transform_name="s,^,${program_prefix},; $program_transform_name"
677 # Use a double $ so make ignores it.
678 test "$program_suffix" != NONE &&
679 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
681 # sed with no file args requires a program.
682 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
685 # Get 'install' or 'install-sh' and its variants.
686 # Find a good install program. We prefer a C program (faster),
687 # so one script is as good as another. But avoid the broken or
688 # incompatible versions:
689 # SysV /etc/install, /usr/sbin/install
690 # SunOS /usr/etc/install
691 # IRIX /sbin/install
692 # AIX /bin/install
693 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
694 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
695 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
696 # ./install, which can be erroneously created by make from ./install.sh.
697 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
698 echo "configure:699: checking for a BSD compatible install" >&5
699 if test -z "$INSTALL"; then
700 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
702 else
703 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
704 for ac_dir in $PATH; do
705 # Account for people who put trailing slashes in PATH elements.
706 case "$ac_dir/" in
707 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
709 # OSF1 and SCO ODT 3.0 have their own names for install.
710 # Don't use installbsd from OSF since it installs stuff as root
711 # by default.
712 for ac_prog in ginstall scoinst install; do
713 if test -f $ac_dir/$ac_prog; then
714 if test $ac_prog = install &&
715 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
716 # AIX install. It has an incompatible calling convention.
718 else
719 ac_cv_path_install="$ac_dir/$ac_prog -c"
720 break 2
723 done
725 esac
726 done
727 IFS="$ac_save_IFS"
730 if test "${ac_cv_path_install+set}" = set; then
731 INSTALL="$ac_cv_path_install"
732 else
733 # As a last resort, use the slow shell script. We don't cache a
734 # path for INSTALL within a source directory, because that will
735 # break other packages using the cache if that directory is
736 # removed, or if the path is relative.
737 INSTALL="$ac_install_sh"
740 echo "$ac_t""$INSTALL" 1>&6
742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
743 # It thinks the first close brace ends the variable substitution.
744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
748 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
750 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
751 echo "configure:752: checking whether ln works" >&5
752 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
754 else
755 rm -f conftestdata_t
756 echo >conftestdata_f
757 if ln conftestdata_f conftestdata_t 2>/dev/null
758 then
759 acx_cv_prog_LN=ln
760 else
761 acx_cv_prog_LN=no
763 rm -f conftestdata_f conftestdata_t
766 if test $acx_cv_prog_LN = no; then
767 LN="cp"
768 echo "$ac_t""no, using $LN" 1>&6
769 else
770 LN="$acx_cv_prog_LN"
771 echo "$ac_t""yes" 1>&6
774 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
775 echo "configure:776: checking whether ln -s works" >&5
776 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
778 else
779 rm -f conftestdata
780 if ln -s X conftestdata 2>/dev/null
781 then
782 rm -f conftestdata
783 ac_cv_prog_LN_S="ln -s"
784 else
785 ac_cv_prog_LN_S=ln
788 LN_S="$ac_cv_prog_LN_S"
789 if test "$ac_cv_prog_LN_S" = "ln -s"; then
790 echo "$ac_t""yes" 1>&6
791 else
792 echo "$ac_t""no" 1>&6
796 ### we might need to use some other shell than /bin/sh for running subshells
797 ### If we are on Windows, search for the shell. This will permit people
798 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
799 ### without also having to set CONFIG_SHELL. This code will work when
800 ### using bash, which sets OSTYPE.
801 case "${OSTYPE}" in
802 *win32*)
803 if test x${CONFIG_SHELL} = x ; then
804 if test ! -f /bin/sh ; then
805 if test x${SHELL} != x && test -f ${SHELL} ; then
806 CONFIG_SHELL=${SHELL}
807 export CONFIG_SHELL
808 else
809 for prog in sh sh.exe bash bash.exe; do
810 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
811 for dir in $PATH; do
812 test -z "$dir" && dir=.
813 if test -f $dir/$prog; then
814 CONFIG_SHELL=$dir/$prog
815 export CONFIG_SHELL
816 break
818 done
819 IFS="$save_ifs"
820 test -n "${CONFIG_SHELL}" && break
821 done
826 esac
828 config_shell=${CONFIG_SHELL-/bin/sh}
830 progname=$0
831 # if PWD already has a value, it is probably wrong.
832 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
834 # Export original configure arguments for use by sub-configures. These
835 # will be expanded by make, so quote '$'.
836 tmp="$progname $@"
837 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
838 $tmp
839 EOF_SED
840 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
841 rm -f conftestsed.out
844 moveifchange=${srcdir}/move-if-change
846 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
848 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
849 # a relative path.
850 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
851 INSTALL="${srcpwd}/install-sh -c"
854 # Set srcdir to "." if that's what it is.
855 # This is important for multilib support.
856 pwd=`${PWDCMD-pwd}`
857 if test "${pwd}" = "${srcpwd}" ; then
858 srcdir=.
861 topsrcdir=$srcpwd
863 extra_host_args=
865 ### To add a new directory to the tree, first choose whether it is a target
866 ### or a host dependent tool. Then put it into the appropriate list
867 ### (library or tools, host or target), doing a dependency sort.
869 # Subdirs will be configured in the order listed in build_configdirs,
870 # configdirs, or target_configdirs; see the serialization section below.
872 # Dependency sorting is only needed when *configuration* must be done in
873 # a particular order. In all cases a dependency should be specified in
874 # the Makefile, whether or not it's implicitly specified here.
876 # Double entries in build_configdirs, configdirs, or target_configdirs may
877 # cause circular dependencies and break everything horribly.
879 # these library is used by various programs built for the build
880 # environment
882 build_libs="build-libiberty"
884 # these tools are built for the build environment
885 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
887 # these libraries are used by various programs built for the host environment
889 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
891 # these tools are built for the host environment
892 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
893 # know that we are building the simulator.
894 # binutils, gas and ld appear in that order because it makes sense to run
895 # "make check" in that particular order.
896 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"
898 # libgcj represents the runtime libraries only used by gcj.
899 libgcj="target-libffi \
900 target-boehm-gc \
901 target-zlib \
902 target-qthreads \
903 target-libjava"
905 # these libraries are built for the target environment, and are built after
906 # the host libraries and the host tools (which may be a cross compiler)
908 target_libraries="target-libiberty \
909 target-libgloss \
910 target-newlib \
911 target-libstdc++-v3 \
912 target-libmudflap \
913 target-libssp \
914 target-libgcc-math \
915 target-libgfortran \
916 ${libgcj} \
917 target-libobjc \
918 target-libada \
919 target-libgomp"
921 # these tools are built using the target libraries, and are intended to
922 # run only in the target environment
924 # note: any program that *uses* libraries that are in the "target_libraries"
925 # list belongs in this list. those programs are also very likely
926 # candidates for the "native_only" list which follows
928 target_tools="target-examples target-groff target-gperf target-rda"
930 ################################################################################
932 ## All tools belong in one of the four categories, and are assigned above
933 ## We assign ${configdirs} this way to remove all embedded newlines. This
934 ## is important because configure will choke if they ever get through.
935 ## ${configdirs} is directories we build using the host tools.
936 ## ${target_configdirs} is directories we build using the target tools.
937 configdirs=`echo ${host_libs} ${host_tools}`
938 target_configdirs=`echo ${target_libraries} ${target_tools}`
939 build_configdirs=`echo ${build_libs} ${build_tools}`
941 ################################################################################
943 srcname="gnu development package"
945 # This gets set non-empty for some net releases of packages.
946 appdirs=""
948 # Define is_cross_compiler to save on calls to 'test'.
949 is_cross_compiler=
950 if test x"${host}" = x"${target}" ; then
951 is_cross_compiler=no
952 else
953 is_cross_compiler=yes
956 # Find the build and target subdir names.
957 case ${build_alias} in
958 "") build_noncanonical=${build} ;;
959 *) build_noncanonical=${build_alias} ;;
960 esac
962 case ${host_alias} in
963 "") host_noncanonical=${build_noncanonical} ;;
964 *) host_noncanonical=${host_alias} ;;
965 esac
967 case ${target_alias} in
968 "") target_noncanonical=${host_noncanonical} ;;
969 *) target_noncanonical=${target_alias} ;;
970 esac
972 # Prefix 'build-' so this never conflicts with target_subdir.
973 build_subdir="build-${build_noncanonical}"
974 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
975 if ( test $srcdir = . && test -d gcc ) \
976 || test -d $srcdir/../host-${host_noncanonical}; then
977 host_subdir="host-${host_noncanonical}"
978 else
979 host_subdir=.
981 # No prefix.
982 target_subdir=${target_noncanonical}
985 # Skipdirs are removed silently.
986 skipdirs=
987 # Noconfigdirs are removed loudly.
988 noconfigdirs=""
990 use_gnu_ld=
991 # Make sure we don't let GNU ld be added if we didn't want it.
992 if test x$with_gnu_ld = xno ; then
993 use_gnu_ld=no
994 noconfigdirs="$noconfigdirs ld"
997 use_gnu_as=
998 # Make sure we don't let GNU as be added if we didn't want it.
999 if test x$with_gnu_as = xno ; then
1000 use_gnu_as=no
1001 noconfigdirs="$noconfigdirs gas"
1004 # some tools are so dependent upon X11 that if we're not building with X,
1005 # it's not even worth trying to configure, much less build, that tool.
1007 case ${with_x} in
1008 yes | "") ;; # the default value for this tree is that X11 is available
1010 skipdirs="${skipdirs} tk itcl libgui"
1011 # We won't be able to build gdbtk without X.
1012 enable_gdbtk=no
1014 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1015 esac
1017 # Some tools are only suitable for building in a "native" situation.
1018 # Remove these if host!=target.
1019 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"
1021 # Similarly, some are only suitable for cross toolchains.
1022 # Remove these if host=target.
1023 cross_only="target-libgloss target-newlib target-opcodes"
1025 case $is_cross_compiler in
1026 no) skipdirs="${skipdirs} ${cross_only}" ;;
1027 yes) skipdirs="${skipdirs} ${native_only}" ;;
1028 esac
1030 # If both --with-headers and --with-libs are specified, default to
1031 # --without-newlib.
1032 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1033 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1034 if test x"${with_newlib}" = x ; then
1035 with_newlib=no
1039 # Recognize --with-newlib/--without-newlib.
1040 case ${with_newlib} in
1041 no) skipdirs="${skipdirs} target-newlib" ;;
1042 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1043 esac
1045 # Configure extra directories which are host specific
1047 case "${host}" in
1048 *-cygwin*)
1049 configdirs="$configdirs libtermcap" ;;
1050 esac
1052 # A target can indicate whether a language isn't supported for some reason.
1053 # Only spaces may be used in this macro; not newlines or tabs.
1054 unsupported_languages=
1056 # Remove more programs from consideration, based on the host or
1057 # target this usually means that a port of the program doesn't
1058 # exist yet.
1060 case "${host}" in
1061 hppa*64*-*-*)
1062 noconfigdirs="$noconfigdirs byacc"
1064 i[3456789]86-*-vsta)
1065 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1067 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1068 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1070 i[3456789]86-*-mingw32*)
1071 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1072 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1074 i[3456789]86-*-beos*)
1075 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1077 *-*-cygwin*)
1078 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1080 *-*-netbsd*)
1081 noconfigdirs="$noconfigdirs rcs"
1083 ppc*-*-pe)
1084 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1086 powerpc-*-beos*)
1087 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1089 esac
1092 # Check whether --enable-libada or --disable-libada was given.
1093 if test "${enable_libada+set}" = set; then
1094 enableval="$enable_libada"
1095 ENABLE_LIBADA=$enableval
1096 else
1097 ENABLE_LIBADA=yes
1100 if test "${ENABLE_LIBADA}" != "yes" ; then
1101 noconfigdirs="$noconfigdirs target-libada"
1102 noconfigdirs="$noconfigdirs gnattools"
1105 # Check whether --enable-libssp or --disable-libssp was given.
1106 if test "${enable_libssp+set}" = set; then
1107 enableval="$enable_libssp"
1108 ENABLE_LIBSSP=$enableval
1109 else
1110 ENABLE_LIBSSP=yes
1113 if test "${ENABLE_LIBSSP}" != "yes" ; then
1114 noconfigdirs="$noconfigdirs target-libssp"
1117 # Set the default so we build libgcc-math for ix86 and x86_64
1118 # Check whether --enable-libgcc-math or --disable-libgcc-math was given.
1119 if test "${enable_libgcc_math+set}" = set; then
1120 enableval="$enable_libgcc_math"
1122 else
1124 case "${target}" in
1125 i?86-* | x86_64-* )
1126 enable_libgcc_math=yes ;;
1128 enable_libgcc_math=no ;;
1129 esac
1133 if test "${enable_libgcc_math}" != "yes"; then
1134 noconfigdirs="$noconfigdirs target-libgcc-math"
1137 # Save it here so that, even in case of --enable-libgcj, if the Java
1138 # front-end isn't enabled, we still get libgcj disabled.
1139 libgcj_saved=$libgcj
1140 case $enable_libgcj in
1141 yes)
1142 # If we reset it here, it won't get added to noconfigdirs in the
1143 # target-specific build rules, so it will be forcibly enabled
1144 # (unless the Java language itself isn't enabled).
1145 libgcj=
1148 # Make sure we get it printed in the list of not supported target libs.
1149 noconfigdirs="$noconfigdirs ${libgcj}"
1151 esac
1154 # Allow --disable-libmudflap to exclude target-libmudflap
1155 case $enable_libmudflap in
1156 yes)
1159 noconfigdirs="$noconfigdirs target-libmudflap"
1162 case "${target}" in
1163 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1164 # Enable libmudflap by default in GNU and friends.
1166 *-*-freebsd*)
1167 # Enable libmudflap by default in FreeBSD.
1170 # Disable it by default everywhere else.
1171 noconfigdirs="$noconfigdirs target-libmudflap"
1173 esac
1174 esac
1176 # Allow --disable-libgomp to exclude target-libgomp
1177 case $enable_libgomp in
1178 yes)
1181 noconfigdirs="$noconfigdirs target-libgomp"
1184 # Enable libgomp by default on hosted POSIX systems.
1185 case "${target}" in
1186 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1188 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1190 *-*-solaris2* | *-*-sysv4* | *-*-irix* | *-*-osf* | *-*-hpux*)
1192 *-*-darwin*)
1195 noconfigdirs="$noconfigdirs target-libgomp"
1197 esac
1198 esac
1201 case "${target}" in
1202 *-*-chorusos)
1203 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1205 powerpc-*-darwin*)
1206 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1207 noconfigdirs="$noconfigdirs sim target-rda"
1209 *-*-darwin*)
1210 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1211 noconfigdirs="$noconfigdirs sim target-rda"
1212 noconfigdirs="$noconfigdirs ${libgcj}"
1214 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1215 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1217 *-*-freebsd*)
1218 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1219 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1220 && test -f /usr/local/include/gmp.h; then
1221 with_gmp=/usr/local
1224 # Skip some stuff that's unsupported on some FreeBSD configurations.
1225 case "${target}" in
1226 i*86-*-*) ;;
1227 alpha*-*-*) ;;
1229 noconfigdirs="$noconfigdirs ${libgcj}"
1231 esac
1233 *-*-kaos*)
1234 # Remove unsupported stuff on all kaOS configurations.
1235 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1236 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1237 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1238 noconfigdirs="$noconfigdirs target-libgloss"
1240 *-*-netbsd*)
1241 # Skip some stuff on all NetBSD configurations.
1242 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1244 # Skip some stuff that's unsupported on some NetBSD configurations.
1245 case "${target}" in
1246 i*86-*-netbsdelf*) ;;
1247 arm*-*-netbsdelf*) ;;
1249 noconfigdirs="$noconfigdirs ${libgcj}"
1251 esac
1253 *-*-netware*)
1254 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1256 *-*-rtems*)
1257 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1259 # The tpf target doesn't support gdb yet.
1260 *-*-tpf*)
1261 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1263 *-*-uclinux*)
1264 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1266 *-*-vxworks*)
1267 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1269 m32c-*-*)
1270 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1272 alpha*-dec-osf*)
1273 # ld works, but does not support shared libraries.
1274 # newlib is not 64 bit ready. I'm not sure about fileutils.
1275 # gas doesn't generate exception information.
1276 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1278 alpha*-*-*vms*)
1279 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1281 alpha*-*-linux*)
1282 # newlib is not 64 bit ready
1283 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1285 alpha*-*-*)
1286 # newlib is not 64 bit ready
1287 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1289 am33_2.0-*-linux*)
1290 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1292 sh-*-linux*)
1293 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1295 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1296 noconfigdirs="$noconfigdirs ${libgcj}"
1297 noconfigdirs="$noconfigdirs target-examples"
1298 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1299 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1300 noconfigdirs="$noconfigdirs expect dejagnu"
1301 # the C++ libraries don't build on top of CE's C libraries
1302 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1303 noconfigdirs="$noconfigdirs target-newlib"
1304 case "${host}" in
1305 *-*-cygwin*) ;; # keep gdb and readline
1306 *) noconfigdirs="$noconfigdirs gdb readline"
1308 esac
1310 arc-*-*)
1311 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1313 arm-semi-aof )
1315 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1316 noconfigdirs="$noconfigdirs ${libgcj}"
1318 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1319 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1321 arm*-*-linux-gnueabi)
1322 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1323 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1325 arm*-*-symbianelf*)
1326 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1328 arm-*-pe*)
1329 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1331 thumb-*-coff)
1332 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1334 thumb-*-elf)
1335 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1337 thumb-*-pe)
1338 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1340 arm-*-riscix*)
1341 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1343 avr-*-*)
1344 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1346 bfin-*-*)
1347 noconfigdirs="$noconfigdirs target-libgloss gdb"
1348 if test x${is_cross_compiler} != xno ; then
1349 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1352 c4x-*-* | tic4x-*-*)
1353 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1355 c54x*-*-* | tic54x-*-*)
1356 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1358 cris-*-* | crisv32-*-*)
1359 unsupported_languages="$unsupported_languages java"
1360 case "${target}" in
1361 *-*-aout)
1362 unsupported_languages="$unsupported_languages fortran"
1363 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1364 *-*-elf)
1365 unsupported_languages="$unsupported_languages fortran"
1366 noconfigdirs="$noconfigdirs target-boehm-gc";;
1367 *-*-linux*)
1368 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1370 unsupported_languages="$unsupported_languages fortran"
1371 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1372 esac
1374 crx-*-*)
1375 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1377 d10v-*-*)
1378 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1380 d30v-*-*)
1381 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1383 fr30-*-elf*)
1384 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1386 frv-*-*)
1387 noconfigdirs="$noconfigdirs ${libgcj}"
1389 h8300*-*-*)
1390 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1392 h8500-*-*)
1393 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1395 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1397 hppa*64*-*-linux* | parisc*64*-*-linux*)
1398 # In this case, it's because the hppa64-linux target is for
1399 # the kernel only at this point and has no libc, and thus no
1400 # headers, crt*.o, etc., all of which are needed by these.
1401 noconfigdirs="$noconfigdirs target-zlib"
1403 parisc*-*-linux* | hppa*-*-linux*)
1405 hppa*-*-*elf* | \
1406 hppa*-*-lites* | \
1407 hppa*-*-openbsd* | \
1408 hppa*64*-*-*)
1409 noconfigdirs="$noconfigdirs ${libgcj}"
1411 hppa*-*-*)
1412 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1413 # build on HP-UX 10.20.
1414 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1416 i960-*-*)
1417 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1419 ia64*-*-elf*)
1420 # No gdb support yet.
1421 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1423 ia64*-**-hpux*)
1424 # No gdb or ld support yet.
1425 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1427 i370-*-opened*)
1429 i[3456789]86-*-coff | i[3456789]86-*-elf)
1430 noconfigdirs="$noconfigdirs ${libgcj}"
1432 i[3456789]86-*-linux*)
1433 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1434 # not build java stuff by default.
1435 case "${target}" in
1436 *-*-*libc1*)
1437 noconfigdirs="$noconfigdirs ${libgcj}";;
1438 esac
1440 # This section makes it possible to build newlib natively on linux.
1441 # If we are using a cross compiler then don't configure newlib.
1442 if test x${is_cross_compiler} != xno ; then
1443 noconfigdirs="$noconfigdirs target-newlib"
1445 noconfigdirs="$noconfigdirs target-libgloss"
1446 # If we are not using a cross compiler, do configure newlib.
1447 # Note however, that newlib will only be configured in this situation
1448 # if the --with-newlib option has been given, because otherwise
1449 # 'target-newlib' will appear in skipdirs.
1451 i[3456789]86-*-mingw32*)
1452 target_configdirs="$target_configdirs target-mingw"
1453 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1455 # Can't build gdb for mingw32 if not native.
1456 case "${host}" in
1457 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1458 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1460 esac
1462 *-*-cygwin*)
1463 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1464 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1465 # always build newlib if winsup directory is present.
1466 if test -d "$srcdir/winsup"; then
1467 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1468 elif test -d "$srcdir/newlib"; then
1469 echo "Warning: winsup is missing so newlib can't be built."
1472 # Can't build gdb for Cygwin if not native.
1473 case "${host}" in
1474 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1475 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1477 esac
1479 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1480 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1482 i[3456789]86-*-pe)
1483 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1485 i[3456789]86-*-sco3.2v5*)
1486 # The linker does not yet know about weak symbols in COFF,
1487 # and is not configured to handle mixed ELF and COFF.
1488 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1490 i[3456789]86-*-sco*)
1491 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1493 i[3456789]86-*-solaris2*)
1494 noconfigdirs="$noconfigdirs target-libgloss"
1496 i[3456789]86-*-sysv4*)
1497 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1499 i[3456789]86-*-beos*)
1500 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1502 m32r-*-*)
1503 noconfigdirs="$noconfigdirs ${libgcj}"
1505 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1506 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1508 m68k-*-elf*)
1509 noconfigdirs="$noconfigdirs ${libgcj}"
1511 m68k-*-coff*)
1512 noconfigdirs="$noconfigdirs ${libgcj}"
1514 mcore-*-pe*)
1515 # The EPOC C++ environment does not support exceptions or rtti,
1516 # and so building libstdc++-v3 tends not to always work.
1517 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1519 mmix-*-*)
1520 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1521 unsupported_languages="$unsupported_languages fortran java"
1523 mn10200-*-*)
1524 noconfigdirs="$noconfigdirs ${libgcj}"
1526 mn10300-*-*)
1527 noconfigdirs="$noconfigdirs ${libgcj}"
1529 mt-*-*)
1530 noconfigdirs="$noconfigdirs sim"
1532 powerpc-*-aix*)
1533 # copied from rs6000-*-* entry
1534 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1536 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1537 target_configdirs="$target_configdirs target-winsup"
1538 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1539 # always build newlib.
1540 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1542 # This is temporary until we can link against shared libraries
1543 powerpcle-*-solaris*)
1544 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1546 powerpc-*-beos*)
1547 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1549 powerpc-*-eabi)
1550 noconfigdirs="$noconfigdirs ${libgcj}"
1552 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1554 rs6000-*-lynxos*)
1555 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1557 rs6000-*-aix*)
1558 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1560 rs6000-*-*)
1561 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1563 m68k-apollo-*)
1564 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1566 mips*-*-irix5*)
1567 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1569 mips*-*-irix6*)
1570 # Linking libjava exceeds command-line length limits on at least
1571 # IRIX 6.2, but not on IRIX 6.5.
1572 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1573 # <oldham@codesourcery.com>
1574 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1576 mips*-dec-bsd*)
1577 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1579 mips*-*-bsd*)
1580 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1582 mipstx39-*-*)
1583 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1585 mips64*-*-linux*)
1586 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1588 mips*-*-linux*)
1589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1591 mips*-*-*)
1592 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1594 romp-*-*)
1595 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1597 sh-*-* | sh64-*-*)
1598 case "${host}" in
1599 i[3456789]86-*-vsta) ;; # don't add gprof back in
1600 i[3456789]86-*-go32*) ;; # don't add gprof back in
1601 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1602 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1603 esac
1604 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1606 sparc-*-elf*)
1607 noconfigdirs="$noconfigdirs ${libgcj}"
1609 sparc64-*-elf*)
1610 noconfigdirs="$noconfigdirs ${libgcj}"
1612 sparclite-*-*)
1613 noconfigdirs="$noconfigdirs ${libgcj}"
1615 sparc-*-sunos4*)
1616 noconfigdirs="$noconfigdirs ${libgcj}"
1617 if test x${is_cross_compiler} != xno ; then
1618 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1619 else
1620 use_gnu_ld=no
1623 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1624 noconfigdirs="$noconfigdirs ${libgcj}"
1626 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1628 v810-*-*)
1629 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1631 v850-*-*)
1632 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1634 v850e-*-*)
1635 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1637 v850ea-*-*)
1638 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1640 vax-*-vms)
1641 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1643 vax-*-*)
1644 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1646 xtensa-*-*)
1647 noconfigdirs="$noconfigdirs ${libgcj}"
1649 ip2k-*-*)
1650 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1652 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1655 *-*-lynxos*)
1656 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1658 *-*-*)
1659 noconfigdirs="$noconfigdirs ${libgcj}"
1661 esac
1663 # If we aren't building newlib, then don't build libgloss, since libgloss
1664 # depends upon some newlib header files.
1665 case "${noconfigdirs}" in
1666 *target-libgloss*) ;;
1667 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1668 esac
1670 # Work in distributions that contain no compiler tools, like Autoconf.
1671 tentative_cc=""
1672 host_makefile_frag=/dev/null
1673 if test -d ${srcdir}/config ; then
1674 case "${host}" in
1675 m68k-hp-hpux*)
1676 # Avoid "too much defining" errors from HPUX compiler.
1677 tentative_cc="cc -Wp,-H256000"
1678 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1679 # If it's HP/UX ar, this should be harmless.
1680 RANLIB="ar ts"
1682 m68k-apollo-sysv*)
1683 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1685 m68k-apollo-bsd*)
1686 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1687 # chokes on bfd, the compiler won't let you assign integers to enums, and
1688 # other problems. Defining CC to gcc is a questionable way to say "don't use
1689 # the apollo compiler" (the preferred version of GCC could be called cc,
1690 # or whatever), but I'm not sure leaving CC as cc is any better...
1691 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1692 # Used to have BISON=yacc.
1693 tentative_cc=gcc
1695 m88k-dg-dgux*)
1696 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1698 m88k-harris-cxux*)
1699 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1700 tentative_cc="cc -Xa"
1701 host_makefile_frag="config/mh-cxux"
1703 m88k-motorola-sysv*)
1705 mips*-dec-ultrix*)
1706 tentative_cc="cc -Wf,-XNg1000"
1707 host_makefile_frag="config/mh-decstation"
1709 mips*-nec-sysv4*)
1710 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1711 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1712 host_makefile_frag="config/mh-necv4"
1714 mips*-sgi-irix4*)
1715 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1716 # environment. Also bump switch table size so that cp-parse will
1717 # compile. Bump string length limit so linker builds.
1718 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1720 mips*-*-sysv4*)
1721 host_makefile_frag="config/mh-sysv4"
1723 mips*-*-sysv*)
1724 # This is for a MIPS running RISC/os 4.52C.
1726 # This is needed for GDB, but needs to be in the top-level make because
1727 # if a library is compiled with the bsd headers and gets linked with the
1728 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1729 # a different size).
1730 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1731 # known except to select the sysv environment. Could we use /proc instead?
1732 # These "sysv environments" and "bsd environments" often end up being a pain.
1734 # This is not part of CFLAGS because perhaps not all C compilers have this
1735 # option.
1736 tentative_cc="cc -systype sysv"
1738 i370-ibm-opened*)
1739 tentative_cc="c89"
1741 i[3456789]86-*-sysv5*)
1742 host_makefile_frag="config/mh-sysv5"
1744 i[3456789]86-*-dgux*)
1745 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1746 host_makefile_frag="config/mh-dgux386"
1748 i[3456789]86-ncr-sysv4.3*)
1749 # The MetaWare compiler will generate a copyright message unless you
1750 # turn it off by adding the -Hnocopyr flag.
1751 tentative_cc="cc -Hnocopyr"
1753 i[3456789]86-ncr-sysv4*)
1754 # for an NCR 3000 (i486/SVR4) system.
1755 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1756 # This compiler not only emits obnoxious copyright messages every time
1757 # you run it, but it chokes and dies on a whole bunch of GNU source
1758 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1759 tentative_cc="/usr/ccs/ATT/cc"
1760 host_makefile_frag="config/mh-ncr3000"
1762 i[3456789]86-*-sco3.2v5*)
1764 i[3456789]86-*-sco*)
1765 # The native C compiler botches some simple uses of const. Unfortunately,
1766 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1767 tentative_cc="cc -Dconst="
1768 host_makefile_frag="config/mh-sco"
1770 i[3456789]86-*-udk*)
1771 host_makefile_frag="config/mh-sysv5"
1773 i[3456789]86-*-solaris2*)
1774 host_makefile_frag="config/mh-sysv4"
1776 i[3456789]86-*-msdosdjgpp*)
1777 host_makefile_frag="config/mh-djgpp"
1779 *-cygwin*)
1780 host_makefile_frag="config/mh-cygwin"
1782 *-mingw32*)
1784 *-interix*)
1785 host_makefile_frag="config/mh-interix"
1787 vax-*-ultrix2*)
1788 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1789 tentative_cc=gcc
1791 *-*-solaris2*)
1792 host_makefile_frag="config/mh-solaris"
1794 m68k-sun-sunos*)
1795 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1796 # without overflowing the jump tables (-J says to use a 32 bit table)
1797 tentative_cc="cc -J"
1799 *-hp-hpux*)
1800 tentative_cc="cc -Wp,-H256000"
1802 *-*-hiux*)
1803 tentative_cc="cc -Wp,-H256000"
1805 rs6000-*-lynxos*)
1806 # /bin/cc is less than useful for our purposes. Always use GCC
1807 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1808 host_makefile_frag="config/mh-lynxrs6k"
1810 powerpc-*-darwin*)
1811 host_makefile_frag="config/mh-ppc-darwin"
1813 powerpc-*-aix*)
1814 host_makefile_frag="config/mh-ppc-aix"
1816 rs6000-*-aix*)
1817 host_makefile_frag="config/mh-ppc-aix"
1819 *-*-lynxos*)
1820 # /bin/cc is less than useful for our purposes. Always use GCC
1821 tentative_cc="/bin/gcc"
1823 *-*-sysv4*)
1824 host_makefile_frag="config/mh-sysv4"
1826 # This is placed last to prevent interfering with the cases above.
1827 i[3456789]86-*-*)
1828 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1829 host_makefile_frag="config/mh-x86omitfp"
1831 esac
1834 # If we aren't going to be using gcc, see if we can extract a definition
1835 # of CC from the fragment.
1836 # Actually, use the 'pre-extracted' version above.
1837 if test -z "${CC}" && test "${build}" = "${host}" ; then
1838 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1839 found=
1840 for dir in $PATH; do
1841 test -z "$dir" && dir=.
1842 if test -f $dir/gcc; then
1843 found=yes
1844 break
1846 done
1847 IFS="$save_ifs"
1848 if test -z "${found}" && test -n "${tentative_cc}" ; then
1849 CC=$tentative_cc
1853 if test "${build}" != "${host}" ; then
1854 # If we are doing a Canadian Cross, in which the host and build systems
1855 # are not the same, we set reasonable default values for the tools.
1857 CC=${CC-${host_alias}-gcc}
1858 CFLAGS=${CFLAGS-"-g -O2"}
1859 CXX=${CXX-${host_alias}-c++}
1860 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1861 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1862 BUILD_PREFIX=${build_alias}-
1863 BUILD_PREFIX_1=${build_alias}-
1865 else
1866 # Set reasonable default values for some tools even if not Canadian.
1867 # Of course, these are different reasonable default values, originally
1868 # specified directly in the Makefile.
1869 # We don't export, so that autoconf can do its job.
1870 # Note that all these settings are above the fragment inclusion point
1871 # in Makefile.in, so can still be overridden by fragments.
1872 # This is all going to change when we autoconfiscate...
1874 CC_FOR_BUILD="\$(CC)"
1875 BUILD_PREFIX=
1876 BUILD_PREFIX_1=loser-
1878 # Extract the first word of "gcc", so it can be a program name with args.
1879 set dummy gcc; ac_word=$2
1880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1881 echo "configure:1882: checking for $ac_word" >&5
1882 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1884 else
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC="$CC" # Let the user override the test.
1887 else
1888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1889 ac_dummy="$PATH"
1890 for ac_dir in $ac_dummy; do
1891 test -z "$ac_dir" && ac_dir=.
1892 if test -f $ac_dir/$ac_word; then
1893 ac_cv_prog_CC="gcc"
1894 break
1896 done
1897 IFS="$ac_save_ifs"
1900 CC="$ac_cv_prog_CC"
1901 if test -n "$CC"; then
1902 echo "$ac_t""$CC" 1>&6
1903 else
1904 echo "$ac_t""no" 1>&6
1907 if test -z "$CC"; then
1908 # Extract the first word of "cc", so it can be a program name with args.
1909 set dummy cc; ac_word=$2
1910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_word" >&5
1912 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1914 else
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1917 else
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1919 ac_prog_rejected=no
1920 ac_dummy="$PATH"
1921 for ac_dir in $ac_dummy; do
1922 test -z "$ac_dir" && ac_dir=.
1923 if test -f $ac_dir/$ac_word; then
1924 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1925 ac_prog_rejected=yes
1926 continue
1928 ac_cv_prog_CC="cc"
1929 break
1931 done
1932 IFS="$ac_save_ifs"
1933 if test $ac_prog_rejected = yes; then
1934 # We found a bogon in the path, so make sure we never use it.
1935 set dummy $ac_cv_prog_CC
1936 shift
1937 if test $# -gt 0; then
1938 # We chose a different compiler from the bogus one.
1939 # However, it has the same basename, so the bogon will be chosen
1940 # first if we set CC to just the basename; use the full file name.
1941 shift
1942 set dummy "$ac_dir/$ac_word" "$@"
1943 shift
1944 ac_cv_prog_CC="$@"
1949 CC="$ac_cv_prog_CC"
1950 if test -n "$CC"; then
1951 echo "$ac_t""$CC" 1>&6
1952 else
1953 echo "$ac_t""no" 1>&6
1956 if test -z "$CC"; then
1957 case "`uname -s`" in
1958 *win32* | *WIN32*)
1959 # Extract the first word of "cl", so it can be a program name with args.
1960 set dummy cl; ac_word=$2
1961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_word" >&5
1963 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1965 else
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1968 else
1969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1970 ac_dummy="$PATH"
1971 for ac_dir in $ac_dummy; do
1972 test -z "$ac_dir" && ac_dir=.
1973 if test -f $ac_dir/$ac_word; then
1974 ac_cv_prog_CC="cl"
1975 break
1977 done
1978 IFS="$ac_save_ifs"
1981 CC="$ac_cv_prog_CC"
1982 if test -n "$CC"; then
1983 echo "$ac_t""$CC" 1>&6
1984 else
1985 echo "$ac_t""no" 1>&6
1988 esac
1990 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1994 echo "configure:1995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1996 ac_ext=c
1997 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1998 ac_cpp='$CPP $CPPFLAGS'
1999 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2000 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2001 cross_compiling=$ac_cv_prog_cc_cross
2003 cat > conftest.$ac_ext << EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2008 main(){return(0);}
2010 if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2011 ac_cv_prog_cc_works=yes
2012 # If we can't run a trivial program, we are probably using a cross compiler.
2013 if (./conftest; exit) 2>/dev/null; then
2014 ac_cv_prog_cc_cross=no
2015 else
2016 ac_cv_prog_cc_cross=yes
2018 else
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2021 ac_cv_prog_cc_works=no
2023 rm -fr conftest*
2024 ac_ext=c
2025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2026 ac_cpp='$CPP $CPPFLAGS'
2027 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2028 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2029 cross_compiling=$ac_cv_prog_cc_cross
2031 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2032 if test $ac_cv_prog_cc_works = no; then
2033 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2035 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2036 echo "configure:2037: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2037 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2038 cross_compiling=$ac_cv_prog_cc_cross
2040 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2041 echo "configure:2042: checking whether we are using GNU C" >&5
2042 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2044 else
2045 cat > conftest.c <<EOF
2046 #ifdef __GNUC__
2047 yes;
2048 #endif
2050 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2051 ac_cv_prog_gcc=yes
2052 else
2053 ac_cv_prog_gcc=no
2057 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2059 if test $ac_cv_prog_gcc = yes; then
2060 GCC=yes
2061 else
2062 GCC=
2065 ac_test_CFLAGS="${CFLAGS+set}"
2066 ac_save_CFLAGS="$CFLAGS"
2067 CFLAGS=
2068 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2069 echo "configure:2070: checking whether ${CC-cc} accepts -g" >&5
2070 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2072 else
2073 echo 'void f(){}' > conftest.c
2074 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2075 ac_cv_prog_cc_g=yes
2076 else
2077 ac_cv_prog_cc_g=no
2079 rm -f conftest*
2083 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2084 if test "$ac_test_CFLAGS" = set; then
2085 CFLAGS="$ac_save_CFLAGS"
2086 elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2088 CFLAGS="-g -O2"
2089 else
2090 CFLAGS="-g"
2092 else
2093 if test "$GCC" = yes; then
2094 CFLAGS="-O2"
2095 else
2096 CFLAGS=
2101 # We must set the default linker to the linker used by gcc for the correct
2102 # operation of libtool. If LD is not defined and we are using gcc, try to
2103 # set the LD default to the ld used by gcc.
2104 if test -z "$LD"; then
2105 if test "$GCC" = yes; then
2106 case $build in
2107 *-*-mingw*)
2108 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2110 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2111 esac
2112 case $gcc_prog_ld in
2113 # Accept absolute paths.
2114 [\\/]* | [A-Za-z]:[\\/]*)
2115 LD="$gcc_prog_ld" ;;
2116 esac
2120 CXX=${CXX-"c++"}
2121 CFLAGS=${CFLAGS-"-g"}
2122 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2125 if test $host != $build; then
2126 ac_tool_prefix=${host_alias}-
2127 else
2128 ac_tool_prefix=
2133 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2134 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2136 echo "configure:2137: checking for $ac_word" >&5
2137 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2139 else
2140 if test -n "$GNATBIND"; then
2141 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2142 else
2143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2144 ac_dummy="$PATH"
2145 for ac_dir in $ac_dummy; do
2146 test -z "$ac_dir" && ac_dir=.
2147 if test -f $ac_dir/$ac_word; then
2148 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2149 break
2151 done
2152 IFS="$ac_save_ifs"
2155 GNATBIND="$ac_cv_prog_GNATBIND"
2156 if test -n "$GNATBIND"; then
2157 echo "$ac_t""$GNATBIND" 1>&6
2158 else
2159 echo "$ac_t""no" 1>&6
2163 if test -z "$ac_cv_prog_GNATBIND"; then
2164 if test -n "$ac_tool_prefix"; then
2165 # Extract the first word of "gnatbind", so it can be a program name with args.
2166 set dummy gnatbind; ac_word=$2
2167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2168 echo "configure:2169: checking for $ac_word" >&5
2169 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2171 else
2172 if test -n "$GNATBIND"; then
2173 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2174 else
2175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2176 ac_dummy="$PATH"
2177 for ac_dir in $ac_dummy; do
2178 test -z "$ac_dir" && ac_dir=.
2179 if test -f $ac_dir/$ac_word; then
2180 ac_cv_prog_GNATBIND="gnatbind"
2181 break
2183 done
2184 IFS="$ac_save_ifs"
2185 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2188 GNATBIND="$ac_cv_prog_GNATBIND"
2189 if test -n "$GNATBIND"; then
2190 echo "$ac_t""$GNATBIND" 1>&6
2191 else
2192 echo "$ac_t""no" 1>&6
2195 else
2196 GNATBIND="no"
2200 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2201 echo "configure:2202: checking whether compiler driver understands Ada" >&5
2202 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2204 else
2205 cat >conftest.adb <<EOF
2206 procedure conftest is begin null; end conftest;
2208 acx_cv_cc_gcc_supports_ada=no
2209 # There is a bug in old released versions of GCC which causes the
2210 # driver to exit successfully when the appropriate language module
2211 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2212 # Therefore we must check for the error message as well as an
2213 # unsuccessful exit.
2214 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2215 # given a .adb file, but produce no object file. So we must check
2216 # if an object file was really produced to guard against this.
2217 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2218 if test x"$errors" = x && test -f conftest.$ac_objext; then
2219 acx_cv_cc_gcc_supports_ada=yes
2221 rm -f conftest.*
2224 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2226 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2227 have_gnat=yes
2228 else
2229 have_gnat=no
2232 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2233 echo "configure:2234: checking how to compare bootstrapped objects" >&5
2234 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2236 else
2237 echo abfoo >t1
2238 echo cdfoo >t2
2239 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2240 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2241 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2243 else
2244 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2247 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2248 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2250 else
2251 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2254 rm t1 t2
2258 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2259 do_compare="$gcc_cv_prog_cmp_skip"
2263 # Check for GMP and MPFR
2264 gmplibs=
2265 gmpinc=
2266 have_gmp=yes
2267 # Specify a location for mpfr
2268 # check for this first so it ends up on the link line before gmp.
2269 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2270 if test "${with_mpfr_dir+set}" = set; then
2271 withval="$with_mpfr_dir"
2276 if test "x$with_mpfr_dir" != x; then
2277 gmpinc="-I$with_mpfr_dir"
2278 gmplibs="$with_mpfr_dir/libmpfr.a"
2279 else
2280 gmplibs="-lmpfr"
2283 # Check whether --with-mpfr or --without-mpfr was given.
2284 if test "${with_mpfr+set}" = set; then
2285 withval="$with_mpfr"
2290 if test "x$with_mpfr" != x; then
2291 gmplibs="-L$with_mpfr/lib $gmplibs"
2292 gmpinc="-I$with_mpfr/include"
2295 # Specify a location for gmp
2296 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2297 if test "${with_gmp_dir+set}" = set; then
2298 withval="$with_gmp_dir"
2303 if test "x$with_gmp_dir" != x; then
2304 gmpinc="$gmpinc -I$with_gmp_dir"
2305 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2306 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2307 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2308 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2310 # One of the later tests will catch the error if neither library is present.
2311 else
2312 gmplibs="$gmplibs -lgmp"
2315 # Check whether --with-gmp or --without-gmp was given.
2316 if test "${with_gmp+set}" = set; then
2317 withval="$with_gmp"
2322 if test "x$with_gmp" != x; then
2323 gmplibs="-L$with_gmp/lib $gmplibs"
2324 gmpinc="-I$with_gmp/include $gmpinc"
2327 saved_CFLAGS="$CFLAGS"
2328 CFLAGS="$CFLAGS $gmpinc"
2329 # Check GMP actually works
2330 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2331 echo "configure:2332: checking for correct version of gmp.h" >&5
2332 cat > conftest.$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2335 #include "gmp.h"
2336 int main() {
2338 #if __GNU_MP_VERSION < 3
2339 choke me
2340 #endif
2342 ; return 0; }
2344 if { (eval echo configure:2345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2345 rm -rf conftest*
2346 echo "$ac_t""yes" 1>&6
2347 else
2348 echo "configure: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2350 rm -rf conftest*
2351 echo "$ac_t""no" 1>&6; have_gmp=no
2353 rm -f conftest*
2355 if test x"$have_gmp" = xyes; then
2356 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2357 echo "configure:2358: checking for MPFR" >&5
2359 saved_LIBS="$LIBS"
2360 LIBS="$LIBS $gmplibs"
2361 cat > conftest.$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364 #include <gmp.h>
2365 #include <mpfr.h>
2366 int main() {
2367 mpfr_t n; mpfr_init(n);
2368 ; return 0; }
2370 if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2371 rm -rf conftest*
2372 echo "$ac_t""yes" 1>&6
2373 else
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2376 rm -rf conftest*
2377 echo "$ac_t""no" 1>&6; have_gmp=no
2379 rm -f conftest*
2380 LIBS="$saved_LIBS"
2381 CFLAGS="$saved_CFLAGS"
2384 # Flags needed for both GMP and/or MPFR
2388 # By default, C is the only stage 1 language.
2389 stage1_languages=c
2392 # Figure out what language subdirectories are present.
2393 # Look if the user specified --enable-languages="..."; if not, use
2394 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2395 # go away some day.
2396 # NB: embedded tabs in this IF block -- do not untabify
2397 if test -d ${srcdir}/gcc; then
2398 if test x"${enable_languages+set}" != xset; then
2399 if test x"${LANGUAGES+set}" = xset; then
2400 enable_languages="${LANGUAGES}"
2401 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2402 else
2403 enable_languages=all
2405 else
2406 if test x"${enable_languages}" = x ||
2407 test x"${enable_languages}" = xyes;
2408 then
2409 echo configure.in: --enable-languages needs at least one language argument 1>&2
2410 exit 1
2413 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2415 # 'f95' is the old name for the 'fortran' language. We issue a warning
2416 # and make the substitution.
2417 case ,${enable_languages}, in
2418 *,f95,*)
2419 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2420 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2422 esac
2424 # First scan to see if an enabled language requires some other language.
2425 # We assume that a given config-lang.in will list all the language
2426 # front ends it requires, even if some are required indirectly.
2427 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2428 case ${lang_frag} in
2429 ..) ;;
2430 # The odd quoting in the next line works around
2431 # an apparent bug in bash 1.12 on linux.
2432 ${srcdir}/gcc/[*]/config-lang.in) ;;
2434 # From the config-lang.in, get $language, $lang_requires
2435 language=
2436 lang_requires=
2437 . ${lang_frag}
2438 for other in ${lang_requires} ; do
2439 case ,${enable_languages}, in
2440 *,$other,*) ;;
2441 *,all,*) ;;
2442 *,$language,*)
2443 echo " \`$other' language required by \`$language'; enabling" 1>&2
2444 enable_languages="${enable_languages},${other}"
2446 esac
2447 done
2449 esac
2450 done
2452 new_enable_languages=c
2453 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2454 potential_languages=c
2456 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2457 case ${lang_frag} in
2458 ..) ;;
2459 # The odd quoting in the next line works around
2460 # an apparent bug in bash 1.12 on linux.
2461 ${srcdir}/gcc/[*]/config-lang.in) ;;
2463 # From the config-lang.in, get $language, $target_libs,
2464 # $lang_dirs, $boot_language, and $build_by_default
2465 language=
2466 target_libs=
2467 lang_dirs=
2468 boot_language=
2469 build_by_default=
2470 need_gmp=
2471 . ${lang_frag}
2472 potential_languages="${potential_languages},${language}"
2473 # This is quite sensitive to the ordering of the case statement arms.
2474 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2475 *::*:*)
2476 echo "${lang_frag} doesn't set \$language." 1>&2
2477 exit 1
2479 *:ada:no:*)
2480 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2481 add_this_lang=no
2483 *,${language},*:*:*:*)
2484 # Language was explicitly selected; include it.
2485 add_this_lang=yes
2487 *,all,*:*:*:no)
2488 # 'all' was selected, but this is not a default language
2489 # so do not include it.
2490 add_this_lang=no
2492 *,all,*:*:*:*)
2493 # 'all' was selected and this is a default language; include it.
2494 add_this_lang=yes
2497 add_this_lang=no
2499 esac
2501 # Disable languages that need GMP if it isn't available.
2502 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2503 *,${language},*:no:yes)
2504 # Specifically requested language; tell them.
2505 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2507 *:no:yes)
2508 # Silently disable.
2509 add_this_lang=no
2511 esac
2513 # Disable a language that is unsupported by the target.
2514 case " $unsupported_languages " in
2515 *" $language "*)
2516 add_this_lang=no
2518 esac
2520 case $add_this_lang in
2522 # Remove language-dependent dirs.
2523 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2526 new_enable_languages="$new_enable_languages,$language"
2527 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2528 case ${boot_language} in
2529 yes)
2530 # Add to (comma-separated) list of stage 1 languages.
2531 stage1_languages="${stage1_languages},${language}"
2533 esac
2535 esac
2537 esac
2538 done
2540 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2541 if test "x$missing_languages" != x; then
2542 { echo "configure: error:
2543 The following requested languages could not be built: ${missing_languages}
2544 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2547 if test "x$new_enable_languages" != "x$enable_languages"; then
2548 echo The following languages will be built: ${new_enable_languages}
2550 enable_languages="$new_enable_languages"
2551 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2554 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2555 # $build_configdirs and $target_configdirs.
2556 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2558 notsupp=""
2559 for dir in . $skipdirs $noconfigdirs ; do
2560 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2561 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2562 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2563 if test -r $srcdir/$dirname/configure ; then
2564 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2565 true
2566 else
2567 notsupp="$notsupp $dir"
2571 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2572 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2573 if test -r $srcdir/$dirname/configure ; then
2574 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2575 true
2576 else
2577 notsupp="$notsupp $dir"
2581 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2582 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2583 if test -r $srcdir/$dirname/configure ; then
2584 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2585 true
2586 else
2587 notsupp="$notsupp $dir"
2591 done
2593 # Sometimes the tools are distributed with libiberty but with no other
2594 # libraries. In that case, we don't want to build target-libiberty.
2595 if test -n "${target_configdirs}" ; then
2596 others=
2597 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2598 if test "$i" != "libiberty" ; then
2599 if test -r $srcdir/$i/configure ; then
2600 others=yes;
2601 break;
2604 done
2605 if test -z "${others}" ; then
2606 target_configdirs=
2610 # Quietly strip out all directories which aren't configurable in this tree.
2611 # This relies on all configurable subdirectories being autoconfiscated, which
2612 # is now the case.
2613 build_configdirs_all="$build_configdirs"
2614 build_configdirs=
2615 for i in ${build_configdirs_all} ; do
2616 j=`echo $i | sed -e s/build-//g`
2617 if test -f ${srcdir}/$j/configure ; then
2618 build_configdirs="${build_configdirs} $i"
2620 done
2622 configdirs_all="$configdirs"
2623 configdirs=
2624 for i in ${configdirs_all} ; do
2625 if test -f ${srcdir}/$i/configure ; then
2626 configdirs="${configdirs} $i"
2628 done
2630 target_configdirs_all="$target_configdirs"
2631 target_configdirs=
2632 for i in ${target_configdirs_all} ; do
2633 j=`echo $i | sed -e s/target-//g`
2634 if test -f ${srcdir}/$j/configure ; then
2635 target_configdirs="${target_configdirs} $i"
2637 done
2639 # Produce a warning message for the subdirs we can't configure.
2640 # This isn't especially interesting in the Cygnus tree, but in the individual
2641 # FSF releases, it's important to let people know when their machine isn't
2642 # supported by the one or two programs in a package.
2644 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2645 # If $appdirs is non-empty, at least one of those directories must still
2646 # be configured, or we error out. (E.g., if the gas release supports a
2647 # specified target in some subdirs but not the gas subdir, we shouldn't
2648 # pretend that all is well.)
2649 if test -n "$appdirs" ; then
2650 for dir in $appdirs ; do
2651 if test -r $dir/Makefile.in ; then
2652 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2653 appdirs=""
2654 break
2656 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2657 appdirs=""
2658 break
2661 done
2662 if test -n "$appdirs" ; then
2663 echo "*** This configuration is not supported by this package." 1>&2
2664 exit 1
2667 # Okay, some application will build, or we don't care to check. Still
2668 # notify of subdirs not getting built.
2669 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2670 echo " ${notsupp}" 1>&2
2671 echo " (Any other directories should still work fine.)" 1>&2
2674 case "$host" in
2675 *msdosdjgpp*)
2676 enable_gdbtk=no ;;
2677 esac
2679 copy_dirs=
2681 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2682 if test "${with_build_sysroot+set}" = set; then
2683 withval="$with_build_sysroot"
2684 if test x"$withval" != x ; then
2685 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2687 else
2688 SYSROOT_CFLAGS_FOR_TARGET=
2693 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2694 # the named directory are copied to $(tooldir)/sys-include.
2695 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2696 if test x${is_cross_compiler} = xno ; then
2697 echo 1>&2 '***' --with-headers is only supported when cross compiling
2698 exit 1
2700 if test x"${with_headers}" != xyes ; then
2701 case "${exec_prefixoption}" in
2702 "") x=${prefix} ;;
2703 *) x=${exec_prefix} ;;
2704 esac
2705 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2709 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2710 # the name directories are copied to $(tooldir)/lib. Multiple directories
2711 # are permitted.
2712 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2713 if test x${is_cross_compiler} = xno ; then
2714 echo 1>&2 '***' --with-libs is only supported when cross compiling
2715 exit 1
2717 if test x"${with_libs}" != xyes ; then
2718 # Copy the libraries in reverse order, so that files in the first named
2719 # library override files in subsequent libraries.
2720 case "${exec_prefixoption}" in
2721 "") x=${prefix} ;;
2722 *) x=${exec_prefix} ;;
2723 esac
2724 for l in ${with_libs}; do
2725 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2726 done
2730 # Set with_gnu_as and with_gnu_ld as appropriate.
2732 # This is done by determining whether or not the appropriate directory
2733 # is available, and by checking whether or not specific configurations
2734 # have requested that this magic not happen.
2736 # The command line options always override the explicit settings in
2737 # configure.in, and the settings in configure.in override this magic.
2739 # If the default for a toolchain is to use GNU as and ld, and you don't
2740 # want to do that, then you should use the --without-gnu-as and
2741 # --without-gnu-ld options for the configure script.
2743 if test x${use_gnu_as} = x &&
2744 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2745 with_gnu_as=yes
2746 extra_host_args="$extra_host_args --with-gnu-as"
2749 if test x${use_gnu_ld} = x &&
2750 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2751 with_gnu_ld=yes
2752 extra_host_args="$extra_host_args --with-gnu-ld"
2755 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2756 # can detect this case.
2758 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2759 with_newlib=yes
2760 extra_host_args="$extra_host_args --with-newlib"
2763 # Handle ${copy_dirs}
2764 set fnord ${copy_dirs}
2765 shift
2766 while test $# != 0 ; do
2767 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2769 else
2770 echo Copying $1 to $2
2772 # Use the install script to create the directory and all required
2773 # parent directories.
2774 if test -d $2 ; then
2776 else
2777 echo >config.temp
2778 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2781 # Copy the directory, assuming we have tar.
2782 # FIXME: Should we use B in the second tar? Not all systems support it.
2783 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2785 # It is the responsibility of the user to correctly adjust all
2786 # symlinks. If somebody can figure out how to handle them correctly
2787 # here, feel free to add the code.
2789 echo $1 > $2/COPIED
2791 shift; shift
2792 done
2794 # Determine a target-dependent exec_prefix that the installed
2795 # gcc will search in. Keep this list sorted by triplet, with
2796 # the *-*-osname triplets last.
2797 md_exec_prefix=
2798 case "${target}" in
2799 alpha*-*-*vms*)
2800 md_exec_prefix=/gnu/lib/gcc-lib
2802 i3456786-pc-msdosdjgpp*)
2803 md_exec_prefix=/dev/env/DJDIR/bin
2805 i3456786-*-sco3.2v5*)
2806 if test $with_gnu_as = yes; then
2807 md_exec_prefix=/usr/gnu/bin
2808 else
2809 md_exec_prefix=/usr/ccs/bin/elf
2813 mn10300-*-* | \
2814 powerpc-*-chorusos* | \
2815 powerpc*-*-eabi* | \
2816 powerpc*-*-sysv* | \
2817 powerpc*-*-kaos* | \
2818 s390x-ibm-tpf*)
2819 md_exec_prefix=/usr/ccs/bin
2821 sparc64-*-elf*)
2823 v850*-*-*)
2824 md_exec_prefix=/usr/ccs/bin
2826 xtensa-*-elf*)
2829 *-*-beos* | \
2830 *-*-elf* | \
2831 *-*-hpux* | \
2832 *-*-netware* | \
2833 *-*-nto-qnx* | \
2834 *-*-rtems* | \
2835 *-*-solaris2* | \
2836 *-*-sysv45* | \
2837 *-*-vxworks* | \
2838 *-wrs-windiss)
2839 md_exec_prefix=/usr/ccs/bin
2841 esac
2843 extra_arflags_for_target=
2844 extra_nmflags_for_target=
2845 extra_ranlibflags_for_target=
2846 target_makefile_frag=/dev/null
2847 case "${target}" in
2848 *-*-netware*)
2849 target_makefile_frag="config/mt-netware"
2851 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2852 target_makefile_frag="config/mt-gnu"
2854 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2855 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2856 # commands to handle both 32-bit and 64-bit objects. These flags are
2857 # harmless if we're using GNU nm or ar.
2858 extra_arflags_for_target=" -X32_64"
2859 extra_nmflags_for_target=" -B -X32_64"
2861 *-*-darwin*)
2862 # ranlib from Darwin requires the -c flag to look at common symbols.
2863 extra_ranlibflags_for_target=" -c"
2865 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2866 target_makefile_frag="config/mt-wince"
2868 esac
2870 alphaieee_frag=/dev/null
2871 case $target in
2872 alpha*-*-*)
2873 # This just makes sure to use the -mieee option to build target libs.
2874 # This should probably be set individually by each library.
2875 alphaieee_frag="config/mt-alphaieee"
2877 esac
2879 # If --enable-target-optspace always use -Os instead of -O2 to build
2880 # the target libraries, similarly if it is not specified, use -Os
2881 # on selected platforms.
2882 ospace_frag=/dev/null
2883 case "${enable_target_optspace}:${target}" in
2884 yes:*)
2885 ospace_frag="config/mt-ospace"
2887 :d30v-*)
2888 ospace_frag="config/mt-d30v"
2890 :m32r-* | :d10v-* | :fr30-*)
2891 ospace_frag="config/mt-ospace"
2893 no:* | :*)
2896 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2898 esac
2900 # Default to using --with-stabs for certain targets.
2901 if test x${with_stabs} = x ; then
2902 case "${target}" in
2903 mips*-*-irix[56]*)
2905 mips*-*-* | alpha*-*-osf*)
2906 with_stabs=yes;
2907 extra_host_args="${extra_host_args} --with-stabs"
2909 esac
2912 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2913 # them automatically.
2914 case "${host}" in
2915 hppa*64*-*-hpux11*)
2916 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2918 esac
2920 # Some systems (e.g., one of the i386-aix systems the gas testers are
2921 # using) don't handle "\$" correctly, so don't use it here.
2922 tooldir='${exec_prefix}'/${target_alias}
2923 build_tooldir=${tooldir}
2925 # Create a .gdbinit file which runs the one in srcdir
2926 # and tells GDB to look there for source files.
2928 if test -r ${srcdir}/.gdbinit ; then
2929 case ${srcdir} in
2930 .) ;;
2931 *) cat > ./.gdbinit <<EOF
2932 # ${NO_EDIT}
2933 dir ${srcdir}
2934 dir .
2935 source ${srcdir}/.gdbinit
2938 esac
2941 # Make sure that the compiler is able to generate an executable. If it
2942 # can't, we are probably in trouble. We don't care whether we can run the
2943 # executable--we might be using a cross compiler--we only care whether it
2944 # can be created. At this point the main configure script has set CC.
2945 we_are_ok=no
2946 echo "int main () { return 0; }" > conftest.c
2947 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2948 if test $? = 0 ; then
2949 if test -s conftest || test -s conftest.exe ; then
2950 we_are_ok=yes
2953 case $we_are_ok in
2955 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2956 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2957 rm -f conftest*
2958 exit 1
2960 esac
2961 rm -f conftest*
2963 # The Solaris /usr/ucb/cc compiler does not appear to work.
2964 case "${host}" in
2965 sparc-sun-solaris2*)
2966 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2967 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2968 could_use=
2969 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2970 if test -d /opt/cygnus/bin ; then
2971 if test "$could_use" = "" ; then
2972 could_use="/opt/cygnus/bin"
2973 else
2974 could_use="$could_use or /opt/cygnus/bin"
2977 if test "$could_use" = "" ; then
2978 echo "Warning: compilation may fail because you're using"
2979 echo "/usr/ucb/cc. You should change your PATH or CC "
2980 echo "variable and rerun configure."
2981 else
2982 echo "Warning: compilation may fail because you're using"
2983 echo "/usr/ucb/cc, when you should use the C compiler from"
2984 echo "$could_use. You should change your"
2985 echo "PATH or CC variable and rerun configure."
2989 esac
2991 case "${host}" in
2992 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2993 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
2994 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2995 esac
2997 # Record target_configdirs and the configure arguments for target and
2998 # build configuration in Makefile.
2999 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3000 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3002 # Determine whether gdb needs tk/tcl or not.
3003 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3004 # and in that case we want gdb to be built without tk. Ugh!
3005 # In fact I believe gdb is the *only* package directly dependent on tk,
3006 # so we should be able to put the 'maybe's in unconditionally and
3007 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3008 # 100% sure that that's safe though.
3010 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3011 case "$enable_gdbtk" in
3013 GDB_TK="" ;;
3014 yes)
3015 GDB_TK="${gdb_tk}" ;;
3017 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3018 # distro. Eventually someone will fix this and move Insight, nee
3019 # gdbtk to a separate directory.
3020 if test -d ${srcdir}/gdb/gdbtk ; then
3021 GDB_TK="${gdb_tk}"
3022 else
3023 GDB_TK=""
3026 esac
3027 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3028 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3030 # Strip out unwanted targets.
3032 # While at that, we remove Makefiles if we were started for recursive
3033 # configuration, so that the top-level Makefile reconfigures them,
3034 # like we used to do when configure itself was recursive.
3036 # Loop over modules. $extrasub must be used with care, limiting as
3037 # much as possible the usage of range addresses. That's because autoconf
3038 # splits the sed script to overcome limits in the number of commands,
3039 # and relying on carefully-timed sed passes may turn out to be very hard
3040 # to maintain later. In this particular case, you just have to be careful
3041 # not to nest @if/@endif pairs, because configure will not warn you at all.
3043 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3044 if test "${enable_bootstrap+set}" = set; then
3045 enableval="$enable_bootstrap"
3047 else
3048 enable_bootstrap=default
3052 # Issue errors and warnings for invalid/strange bootstrap combinations.
3053 case "$configdirs" in
3054 *gcc*) have_compiler=yes ;;
3055 *) have_compiler=no ;;
3056 esac
3058 case "$have_compiler:$host:$target:$enable_bootstrap" in
3059 *:*:*:no) ;;
3061 # Default behavior. Enable bootstrap if we have a compiler
3062 # and we are in a native configuration.
3063 yes:$build:$build:default)
3064 enable_bootstrap=yes ;;
3066 *:*:*:default)
3067 enable_bootstrap=no ;;
3069 # We have a compiler and we are in a native configuration, bootstrap is ok
3070 yes:$build:$build:yes)
3073 # Other configurations, but we have a compiler. Assume the user knows
3074 # what he's doing.
3075 yes:*:*:yes)
3076 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3079 # No compiler: if they passed --enable-bootstrap explicitly, fail
3080 no:*:*:yes)
3081 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3083 # Fail if wrong command line
3085 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3087 esac
3089 # Adjust the toplevel makefile according to whether bootstrap was selected.
3090 case "$enable_bootstrap" in
3091 yes)
3092 bootstrap_suffix=bootstrap ;;
3094 bootstrap_suffix=no-bootstrap ;;
3095 esac
3097 for module in ${build_configdirs} ; do
3098 if test -z "${no_recursion}" \
3099 && test -f ${build_subdir}/${module}/Makefile; then
3100 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3101 rm -f ${build_subdir}/${module}/Makefile
3103 extrasub="$extrasub
3104 /^@if build-$module\$/d
3105 /^@endif build-$module\$/d
3106 /^@if build-$module-$bootstrap_suffix\$/d
3107 /^@endif build-$module-$bootstrap_suffix\$/d"
3108 done
3109 for module in ${configdirs} ; do
3110 if test -z "${no_recursion}"; then
3111 for file in stage*-${module}/Makefile ${module}/Makefile; do
3112 if test -f ${file}; then
3113 echo 1>&2 "*** removing ${file} to force reconfigure"
3114 rm -f ${file}
3116 done
3118 extrasub="$extrasub
3119 /^@if $module\$/d
3120 /^@endif $module\$/d
3121 /^@if $module-$bootstrap_suffix\$/d
3122 /^@endif $module-$bootstrap_suffix\$/d"
3123 done
3124 for module in ${target_configdirs} ; do
3125 if test -z "${no_recursion}" \
3126 && test -f ${target_subdir}/${module}/Makefile; then
3127 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3128 rm -f ${target_subdir}/${module}/Makefile
3130 extrasub="$extrasub
3131 /^@if target-$module\$/d
3132 /^@endif target-$module\$/d
3133 /^@if target-$module-$bootstrap_suffix\$/d
3134 /^@endif target-$module-$bootstrap_suffix\$/d"
3135 done
3137 extrasub="$extrasub
3138 /^@if /,/^@endif /d"
3140 # Create the serialization dependencies. This uses a temporary file.
3142 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3143 if test "${enable_serial_configure+set}" = set; then
3144 enableval="$enable_serial_configure"
3149 case ${enable_serial_configure} in
3150 yes)
3151 enable_serial_build_configure=yes
3152 enable_serial_host_configure=yes
3153 enable_serial_target_configure=yes
3155 esac
3157 # These force 'configure's to be done one at a time, to avoid problems
3158 # with contention over a shared config.cache.
3159 rm -f serdep.tmp
3160 echo '# serdep.tmp' > serdep.tmp
3161 olditem=
3162 test "x${enable_serial_build_configure}" = xyes &&
3163 for item in ${build_configdirs} ; do
3164 case ${olditem} in
3165 "") ;;
3166 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3167 esac
3168 olditem=${item}
3169 done
3170 olditem=
3171 test "x${enable_serial_host_configure}" = xyes &&
3172 for item in ${configdirs} ; do
3173 case ${olditem} in
3174 "") ;;
3175 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3176 esac
3177 olditem=${item}
3178 done
3179 olditem=
3180 test "x${enable_serial_target_configure}" = xyes &&
3181 for item in ${target_configdirs} ; do
3182 case ${olditem} in
3183 "") ;;
3184 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3185 esac
3186 olditem=${item}
3187 done
3188 serialization_dependencies=serdep.tmp
3191 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3192 # target and nonopt. These are the ones we might not want to pass
3193 # down to subconfigures. Also strip program-prefix, program-suffix,
3194 # and program-transform-name, so that we can pass down a consistent
3195 # program-transform-name. If autoconf has put single quotes around
3196 # any of these arguments (because they contain shell metacharacters)
3197 # then this will fail; in practice this only happens for
3198 # --program-transform-name, so be sure to override --program-transform-name
3199 # at the end of the argument list.
3200 # These will be expanded by make, so quote '$'.
3201 cat <<\EOF_SED > conftestsed
3202 s/ --no[^ ]*/ /g
3203 s/ --c[a-z-]*[= ][^ ]*//g
3204 s/ --sr[a-z-]*[= ][^ ]*//g
3205 s/ --ho[a-z-]*[= ][^ ]*//g
3206 s/ --bu[a-z-]*[= ][^ ]*//g
3207 s/ --t[a-z-]*[= ][^ ]*//g
3208 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3209 s/ -cache-file[= ][^ ]*//g
3210 s/ -srcdir[= ][^ ]*//g
3211 s/ -host[= ][^ ]*//g
3212 s/ -build[= ][^ ]*//g
3213 s/ -target[= ][^ ]*//g
3214 s/ -program-prefix[= ][^ ]*//g
3215 s/ -program-suffix[= ][^ ]*//g
3216 s/ -program-transform-name[= ][^ ]*//g
3217 s/ [^' -][^ ]* / /
3218 s/^ *//;s/ *$//
3219 s,\$,$$,g
3220 EOF_SED
3221 sed -f conftestsed <<EOF_SED > conftestsed.out
3222 ${ac_configure_args}
3223 EOF_SED
3224 baseargs=`cat conftestsed.out`
3225 rm -f conftestsed conftestsed.out
3227 # Add in --program-transform-name, after --program-prefix and
3228 # --program-suffix have been applied to it. Autoconf has already
3229 # doubled dollar signs and backslashes in program_transform_name; we want
3230 # the backslashes un-doubled, and then the entire thing wrapped in single
3231 # quotes, because this will be expanded first by make and then by the shell.
3232 # Also, because we want to override the logic in subdir configure scripts to
3233 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3234 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3235 ${program_transform_name}
3236 EOF_SED
3237 gcc_transform_name=`cat conftestsed.out`
3238 rm -f conftestsed.out
3239 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3241 # For the build-side libraries, we just need to pretend we're native,
3242 # and not use the same cache file. Multilibs are neither needed nor
3243 # desired.
3244 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3246 # For host modules, accept cache file option, or specification as blank.
3247 case "${cache_file}" in
3248 "") # empty
3249 cache_file_option="" ;;
3250 /* | [A-Za-z]:[\\/]* ) # absolute path
3251 cache_file_option="--cache-file=${cache_file}" ;;
3252 *) # relative path
3253 cache_file_option="--cache-file=../${cache_file}" ;;
3254 esac
3256 # Host dirs don't like to share a cache file either, horribly enough.
3257 # This seems to be due to autoconf 2.5x stupidity.
3258 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3260 target_configargs=${baseargs}
3262 # Passing a --with-cross-host argument lets the target libraries know
3263 # whether they are being built with a cross-compiler or being built
3264 # native. However, it would be better to use other mechanisms to make the
3265 # sorts of decisions they want to make on this basis. Please consider
3266 # this option to be deprecated. FIXME.
3267 if test x${is_cross_compiler} = xyes ; then
3268 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3271 # Default to --enable-multilib.
3272 if test x${enable_multilib} = x ; then
3273 target_configargs="--enable-multilib ${target_configargs}"
3276 # Pass --with-newlib if appropriate. Note that target_configdirs has
3277 # changed from the earlier setting of with_newlib.
3278 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3279 target_configargs="--with-newlib ${target_configargs}"
3282 # Different target subdirs use different values of certain variables
3283 # (notably CXX). Worse, multilibs use *lots* of different values.
3284 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3285 # it doesn't automatically accept command-line overrides of them.
3286 # This means it's not safe for target subdirs to share a cache file,
3287 # which is disgusting, but there you have it. Hopefully this can be
3288 # fixed in future. It's still worthwhile to use a cache file for each
3289 # directory. I think.
3291 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3292 # We need to pass --target, as newer autoconf's requires consistency
3293 # for target_alias and gcc doesn't manage it consistently.
3294 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3296 FLAGS_FOR_TARGET=
3297 case " $target_configdirs " in
3298 *" newlib "*)
3299 case " $target_configargs " in
3300 *" --with-newlib "*)
3301 case "$target" in
3302 *-cygwin*)
3303 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' ;;
3304 esac
3306 # If we're not building GCC, don't discard standard headers.
3307 if test -d ${srcdir}/gcc; then
3308 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3310 if test "${build}" != "${host}"; then
3311 # On Canadian crosses, CC_FOR_TARGET will have already been set
3312 # by `configure', so we won't have an opportunity to add -Bgcc/
3313 # to it. This is right: we don't want to search that directory
3314 # for binaries, but we want the header files in there, so add
3315 # them explicitly.
3316 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3318 # Someone might think of using the pre-installed headers on
3319 # Canadian crosses, in case the installed compiler is not fully
3320 # compatible with the compiler being built. In this case, it
3321 # would be better to flag an error than risking having
3322 # incompatible object files being constructed. We can't
3323 # guarantee that an error will be flagged, but let's hope the
3324 # compiler will do it, when presented with incompatible header
3325 # files.
3329 case "${target}-${is_cross_compiler}" in
3330 i[3456789]86-*-linux*-no)
3331 # Here host == target, so we don't need to build gcc,
3332 # so we don't want to discard standard headers.
3333 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3336 # If we're building newlib, use its generic headers last, but search
3337 # for any libc-related directories first (so make it the last -B
3338 # switch).
3339 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3341 esac
3343 esac
3345 esac
3347 # Allow the user to override the flags for
3348 # our build compiler if desired.
3349 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3351 # On Canadian crosses, we'll be searching the right directories for
3352 # the previously-installed cross compiler, so don't bother to add
3353 # flags for directories within the install tree of the compiler
3354 # being built; programs in there won't even run.
3355 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3356 # Search for pre-installed headers if nothing else fits.
3357 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3360 if test "x${use_gnu_ld}" = x &&
3361 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3362 # Arrange for us to find uninstalled linker scripts.
3363 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3366 # Makefile fragments.
3367 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3369 eval fragval=\$$frag
3370 if test $fragval != /dev/null; then
3371 eval $frag=${srcdir}/$fragval
3373 done
3379 # Miscellanea: directories, flags, etc.
3389 # Build module lists & subconfigure args.
3393 # Host module lists & subconfigure args.
3397 # Target module lists & subconfigure args.
3401 # Build tools.
3405 # Generate default definitions for YACC, M4, LEX and other programs that run
3406 # on the build machine. These are used if the Makefile can't locate these
3407 # programs in objdir.
3408 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3410 for ac_prog in 'bison -y' byacc yacc
3412 # Extract the first word of "$ac_prog", so it can be a program name with args.
3413 set dummy $ac_prog; ac_word=$2
3414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3415 echo "configure:3416: checking for $ac_word" >&5
3416 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3417 echo $ac_n "(cached) $ac_c" 1>&6
3418 else
3419 if test -n "$YACC"; then
3420 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3421 else
3422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3423 ac_dummy="$PATH"
3424 for ac_dir in $ac_dummy; do
3425 test -z "$ac_dir" && ac_dir=.
3426 if test -f $ac_dir/$ac_word; then
3427 ac_cv_prog_YACC="$ac_prog"
3428 break
3430 done
3431 IFS="$ac_save_ifs"
3434 YACC="$ac_cv_prog_YACC"
3435 if test -n "$YACC"; then
3436 echo "$ac_t""$YACC" 1>&6
3437 else
3438 echo "$ac_t""no" 1>&6
3441 test -n "$YACC" && break
3442 done
3443 test -n "$YACC" || YACC="$MISSING bison -y"
3445 case " $build_configdirs " in
3446 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3447 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3448 esac
3450 for ac_prog in bison
3452 # Extract the first word of "$ac_prog", so it can be a program name with args.
3453 set dummy $ac_prog; ac_word=$2
3454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3455 echo "configure:3456: checking for $ac_word" >&5
3456 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3458 else
3459 if test -n "$BISON"; then
3460 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3461 else
3462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3463 ac_dummy="$PATH"
3464 for ac_dir in $ac_dummy; do
3465 test -z "$ac_dir" && ac_dir=.
3466 if test -f $ac_dir/$ac_word; then
3467 ac_cv_prog_BISON="$ac_prog"
3468 break
3470 done
3471 IFS="$ac_save_ifs"
3474 BISON="$ac_cv_prog_BISON"
3475 if test -n "$BISON"; then
3476 echo "$ac_t""$BISON" 1>&6
3477 else
3478 echo "$ac_t""no" 1>&6
3481 test -n "$BISON" && break
3482 done
3483 test -n "$BISON" || BISON="$MISSING bison"
3485 case " $build_configdirs " in
3486 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3487 esac
3489 for ac_prog in gm4 gnum4 m4
3491 # Extract the first word of "$ac_prog", so it can be a program name with args.
3492 set dummy $ac_prog; ac_word=$2
3493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3494 echo "configure:3495: checking for $ac_word" >&5
3495 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3497 else
3498 if test -n "$M4"; then
3499 ac_cv_prog_M4="$M4" # Let the user override the test.
3500 else
3501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3502 ac_dummy="$PATH"
3503 for ac_dir in $ac_dummy; do
3504 test -z "$ac_dir" && ac_dir=.
3505 if test -f $ac_dir/$ac_word; then
3506 ac_cv_prog_M4="$ac_prog"
3507 break
3509 done
3510 IFS="$ac_save_ifs"
3513 M4="$ac_cv_prog_M4"
3514 if test -n "$M4"; then
3515 echo "$ac_t""$M4" 1>&6
3516 else
3517 echo "$ac_t""no" 1>&6
3520 test -n "$M4" && break
3521 done
3522 test -n "$M4" || M4="$MISSING m4"
3524 case " $build_configdirs " in
3525 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3526 esac
3528 for ac_prog in flex lex
3530 # Extract the first word of "$ac_prog", so it can be a program name with args.
3531 set dummy $ac_prog; ac_word=$2
3532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3533 echo "configure:3534: checking for $ac_word" >&5
3534 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3535 echo $ac_n "(cached) $ac_c" 1>&6
3536 else
3537 if test -n "$LEX"; then
3538 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3539 else
3540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3541 ac_dummy="$PATH"
3542 for ac_dir in $ac_dummy; do
3543 test -z "$ac_dir" && ac_dir=.
3544 if test -f $ac_dir/$ac_word; then
3545 ac_cv_prog_LEX="$ac_prog"
3546 break
3548 done
3549 IFS="$ac_save_ifs"
3552 LEX="$ac_cv_prog_LEX"
3553 if test -n "$LEX"; then
3554 echo "$ac_t""$LEX" 1>&6
3555 else
3556 echo "$ac_t""no" 1>&6
3559 test -n "$LEX" && break
3560 done
3561 test -n "$LEX" || LEX="$MISSING flex"
3563 case " $build_configdirs " in
3564 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3565 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3566 esac
3568 for ac_prog in flex
3570 # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3573 echo "configure:3574: checking for $ac_word" >&5
3574 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3576 else
3577 if test -n "$FLEX"; then
3578 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3579 else
3580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3581 ac_dummy="$PATH"
3582 for ac_dir in $ac_dummy; do
3583 test -z "$ac_dir" && ac_dir=.
3584 if test -f $ac_dir/$ac_word; then
3585 ac_cv_prog_FLEX="$ac_prog"
3586 break
3588 done
3589 IFS="$ac_save_ifs"
3592 FLEX="$ac_cv_prog_FLEX"
3593 if test -n "$FLEX"; then
3594 echo "$ac_t""$FLEX" 1>&6
3595 else
3596 echo "$ac_t""no" 1>&6
3599 test -n "$FLEX" && break
3600 done
3601 test -n "$FLEX" || FLEX="$MISSING flex"
3603 case " $build_configdirs " in
3604 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3605 esac
3607 for ac_prog in makeinfo
3609 # Extract the first word of "$ac_prog", so it can be a program name with args.
3610 set dummy $ac_prog; ac_word=$2
3611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3612 echo "configure:3613: checking for $ac_word" >&5
3613 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3614 echo $ac_n "(cached) $ac_c" 1>&6
3615 else
3616 if test -n "$MAKEINFO"; then
3617 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3618 else
3619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3620 ac_dummy="$PATH"
3621 for ac_dir in $ac_dummy; do
3622 test -z "$ac_dir" && ac_dir=.
3623 if test -f $ac_dir/$ac_word; then
3624 ac_cv_prog_MAKEINFO="$ac_prog"
3625 break
3627 done
3628 IFS="$ac_save_ifs"
3631 MAKEINFO="$ac_cv_prog_MAKEINFO"
3632 if test -n "$MAKEINFO"; then
3633 echo "$ac_t""$MAKEINFO" 1>&6
3634 else
3635 echo "$ac_t""no" 1>&6
3638 test -n "$MAKEINFO" && break
3639 done
3640 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3642 case " $build_configdirs " in
3643 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3646 # For an installed makeinfo, we require it to be from texinfo 4.2 or
3647 # higher, else we use the "missing" dummy.
3648 if ${MAKEINFO} --version \
3649 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])' >/dev/null 2>&1; then
3651 else
3652 MAKEINFO="$MISSING makeinfo"
3656 esac
3658 # FIXME: expect and dejagnu may become build tools?
3660 for ac_prog in expect
3662 # Extract the first word of "$ac_prog", so it can be a program name with args.
3663 set dummy $ac_prog; ac_word=$2
3664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3665 echo "configure:3666: checking for $ac_word" >&5
3666 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3668 else
3669 if test -n "$EXPECT"; then
3670 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3671 else
3672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3673 ac_dummy="$PATH"
3674 for ac_dir in $ac_dummy; do
3675 test -z "$ac_dir" && ac_dir=.
3676 if test -f $ac_dir/$ac_word; then
3677 ac_cv_prog_EXPECT="$ac_prog"
3678 break
3680 done
3681 IFS="$ac_save_ifs"
3684 EXPECT="$ac_cv_prog_EXPECT"
3685 if test -n "$EXPECT"; then
3686 echo "$ac_t""$EXPECT" 1>&6
3687 else
3688 echo "$ac_t""no" 1>&6
3691 test -n "$EXPECT" && break
3692 done
3693 test -n "$EXPECT" || EXPECT="expect"
3695 case " $configdirs " in
3696 *" expect "*)
3697 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3699 esac
3701 for ac_prog in runtest
3703 # Extract the first word of "$ac_prog", so it can be a program name with args.
3704 set dummy $ac_prog; ac_word=$2
3705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3706 echo "configure:3707: checking for $ac_word" >&5
3707 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3708 echo $ac_n "(cached) $ac_c" 1>&6
3709 else
3710 if test -n "$RUNTEST"; then
3711 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3712 else
3713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3714 ac_dummy="$PATH"
3715 for ac_dir in $ac_dummy; do
3716 test -z "$ac_dir" && ac_dir=.
3717 if test -f $ac_dir/$ac_word; then
3718 ac_cv_prog_RUNTEST="$ac_prog"
3719 break
3721 done
3722 IFS="$ac_save_ifs"
3725 RUNTEST="$ac_cv_prog_RUNTEST"
3726 if test -n "$RUNTEST"; then
3727 echo "$ac_t""$RUNTEST" 1>&6
3728 else
3729 echo "$ac_t""no" 1>&6
3732 test -n "$RUNTEST" && break
3733 done
3734 test -n "$RUNTEST" || RUNTEST="runtest"
3736 case " $configdirs " in
3737 *" dejagnu "*)
3738 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3740 esac
3743 # Host tools.
3744 ncn_tool_prefix=
3745 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3746 ncn_target_tool_prefix=
3747 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3749 for ncn_progname in ar; do
3750 if test -n "$ncn_tool_prefix"; then
3751 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3752 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3754 echo "configure:3755: checking for $ac_word" >&5
3755 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3757 else
3758 if test -n "$AR"; then
3759 ac_cv_prog_AR="$AR" # Let the user override the test.
3760 else
3761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3762 ac_dummy="$PATH"
3763 for ac_dir in $ac_dummy; do
3764 test -z "$ac_dir" && ac_dir=.
3765 if test -f $ac_dir/$ac_word; then
3766 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3767 break
3769 done
3770 IFS="$ac_save_ifs"
3773 AR="$ac_cv_prog_AR"
3774 if test -n "$AR"; then
3775 echo "$ac_t""$AR" 1>&6
3776 else
3777 echo "$ac_t""no" 1>&6
3781 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3783 set dummy ${ncn_progname}; ac_word=$2
3784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3785 echo "configure:3786: checking for $ac_word" >&5
3786 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3787 echo $ac_n "(cached) $ac_c" 1>&6
3788 else
3789 if test -n "$AR"; then
3790 ac_cv_prog_AR="$AR" # Let the user override the test.
3791 else
3792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3793 ac_dummy="$PATH"
3794 for ac_dir in $ac_dummy; do
3795 test -z "$ac_dir" && ac_dir=.
3796 if test -f $ac_dir/$ac_word; then
3797 ac_cv_prog_AR="${ncn_progname}"
3798 break
3800 done
3801 IFS="$ac_save_ifs"
3804 AR="$ac_cv_prog_AR"
3805 if test -n "$AR"; then
3806 echo "$ac_t""$AR" 1>&6
3807 else
3808 echo "$ac_t""no" 1>&6
3812 test -n "$ac_cv_prog_AR" && break
3813 done
3815 if test -z "$ac_cv_prog_AR" ; then
3816 set dummy ar
3817 if test $build = $host ; then
3818 AR="$2"
3819 else
3820 AR="${ncn_tool_prefix}$2"
3824 for ncn_progname in as; do
3825 if test -n "$ncn_tool_prefix"; then
3826 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3827 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3829 echo "configure:3830: checking for $ac_word" >&5
3830 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3832 else
3833 if test -n "$AS"; then
3834 ac_cv_prog_AS="$AS" # Let the user override the test.
3835 else
3836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3837 ac_dummy="$PATH"
3838 for ac_dir in $ac_dummy; do
3839 test -z "$ac_dir" && ac_dir=.
3840 if test -f $ac_dir/$ac_word; then
3841 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3842 break
3844 done
3845 IFS="$ac_save_ifs"
3848 AS="$ac_cv_prog_AS"
3849 if test -n "$AS"; then
3850 echo "$ac_t""$AS" 1>&6
3851 else
3852 echo "$ac_t""no" 1>&6
3856 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3858 set dummy ${ncn_progname}; ac_word=$2
3859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3860 echo "configure:3861: checking for $ac_word" >&5
3861 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6
3863 else
3864 if test -n "$AS"; then
3865 ac_cv_prog_AS="$AS" # Let the user override the test.
3866 else
3867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3868 ac_dummy="$PATH"
3869 for ac_dir in $ac_dummy; do
3870 test -z "$ac_dir" && ac_dir=.
3871 if test -f $ac_dir/$ac_word; then
3872 ac_cv_prog_AS="${ncn_progname}"
3873 break
3875 done
3876 IFS="$ac_save_ifs"
3879 AS="$ac_cv_prog_AS"
3880 if test -n "$AS"; then
3881 echo "$ac_t""$AS" 1>&6
3882 else
3883 echo "$ac_t""no" 1>&6
3887 test -n "$ac_cv_prog_AS" && break
3888 done
3890 if test -z "$ac_cv_prog_AS" ; then
3891 set dummy as
3892 if test $build = $host ; then
3893 AS="$2"
3894 else
3895 AS="${ncn_tool_prefix}$2"
3899 for ncn_progname in dlltool; do
3900 if test -n "$ncn_tool_prefix"; then
3901 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3902 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3904 echo "configure:3905: checking for $ac_word" >&5
3905 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3907 else
3908 if test -n "$DLLTOOL"; then
3909 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3910 else
3911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3912 ac_dummy="$PATH"
3913 for ac_dir in $ac_dummy; do
3914 test -z "$ac_dir" && ac_dir=.
3915 if test -f $ac_dir/$ac_word; then
3916 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3917 break
3919 done
3920 IFS="$ac_save_ifs"
3923 DLLTOOL="$ac_cv_prog_DLLTOOL"
3924 if test -n "$DLLTOOL"; then
3925 echo "$ac_t""$DLLTOOL" 1>&6
3926 else
3927 echo "$ac_t""no" 1>&6
3931 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3933 set dummy ${ncn_progname}; ac_word=$2
3934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3935 echo "configure:3936: checking for $ac_word" >&5
3936 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3938 else
3939 if test -n "$DLLTOOL"; then
3940 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3941 else
3942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3943 ac_dummy="$PATH"
3944 for ac_dir in $ac_dummy; do
3945 test -z "$ac_dir" && ac_dir=.
3946 if test -f $ac_dir/$ac_word; then
3947 ac_cv_prog_DLLTOOL="${ncn_progname}"
3948 break
3950 done
3951 IFS="$ac_save_ifs"
3954 DLLTOOL="$ac_cv_prog_DLLTOOL"
3955 if test -n "$DLLTOOL"; then
3956 echo "$ac_t""$DLLTOOL" 1>&6
3957 else
3958 echo "$ac_t""no" 1>&6
3962 test -n "$ac_cv_prog_DLLTOOL" && break
3963 done
3965 if test -z "$ac_cv_prog_DLLTOOL" ; then
3966 set dummy dlltool
3967 if test $build = $host ; then
3968 DLLTOOL="$2"
3969 else
3970 DLLTOOL="${ncn_tool_prefix}$2"
3974 for ncn_progname in ld; do
3975 if test -n "$ncn_tool_prefix"; then
3976 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3977 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3979 echo "configure:3980: checking for $ac_word" >&5
3980 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3982 else
3983 if test -n "$LD"; then
3984 ac_cv_prog_LD="$LD" # Let the user override the test.
3985 else
3986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3987 ac_dummy="$PATH"
3988 for ac_dir in $ac_dummy; do
3989 test -z "$ac_dir" && ac_dir=.
3990 if test -f $ac_dir/$ac_word; then
3991 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3992 break
3994 done
3995 IFS="$ac_save_ifs"
3998 LD="$ac_cv_prog_LD"
3999 if test -n "$LD"; then
4000 echo "$ac_t""$LD" 1>&6
4001 else
4002 echo "$ac_t""no" 1>&6
4006 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4008 set dummy ${ncn_progname}; ac_word=$2
4009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4010 echo "configure:4011: checking for $ac_word" >&5
4011 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4013 else
4014 if test -n "$LD"; then
4015 ac_cv_prog_LD="$LD" # Let the user override the test.
4016 else
4017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4018 ac_dummy="$PATH"
4019 for ac_dir in $ac_dummy; do
4020 test -z "$ac_dir" && ac_dir=.
4021 if test -f $ac_dir/$ac_word; then
4022 ac_cv_prog_LD="${ncn_progname}"
4023 break
4025 done
4026 IFS="$ac_save_ifs"
4029 LD="$ac_cv_prog_LD"
4030 if test -n "$LD"; then
4031 echo "$ac_t""$LD" 1>&6
4032 else
4033 echo "$ac_t""no" 1>&6
4037 test -n "$ac_cv_prog_LD" && break
4038 done
4040 if test -z "$ac_cv_prog_LD" ; then
4041 set dummy ld
4042 if test $build = $host ; then
4043 LD="$2"
4044 else
4045 LD="${ncn_tool_prefix}$2"
4049 for ncn_progname in lipo; do
4050 if test -n "$ncn_tool_prefix"; then
4051 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4052 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4054 echo "configure:4055: checking for $ac_word" >&5
4055 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4057 else
4058 if test -n "$LIPO"; then
4059 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4060 else
4061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4062 ac_dummy="$PATH"
4063 for ac_dir in $ac_dummy; do
4064 test -z "$ac_dir" && ac_dir=.
4065 if test -f $ac_dir/$ac_word; then
4066 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4067 break
4069 done
4070 IFS="$ac_save_ifs"
4073 LIPO="$ac_cv_prog_LIPO"
4074 if test -n "$LIPO"; then
4075 echo "$ac_t""$LIPO" 1>&6
4076 else
4077 echo "$ac_t""no" 1>&6
4081 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4083 set dummy ${ncn_progname}; ac_word=$2
4084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4085 echo "configure:4086: checking for $ac_word" >&5
4086 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4088 else
4089 if test -n "$LIPO"; then
4090 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4091 else
4092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4093 ac_dummy="$PATH"
4094 for ac_dir in $ac_dummy; do
4095 test -z "$ac_dir" && ac_dir=.
4096 if test -f $ac_dir/$ac_word; then
4097 ac_cv_prog_LIPO="${ncn_progname}"
4098 break
4100 done
4101 IFS="$ac_save_ifs"
4104 LIPO="$ac_cv_prog_LIPO"
4105 if test -n "$LIPO"; then
4106 echo "$ac_t""$LIPO" 1>&6
4107 else
4108 echo "$ac_t""no" 1>&6
4112 test -n "$ac_cv_prog_LIPO" && break
4113 done
4115 if test -z "$ac_cv_prog_LIPO" ; then
4116 set dummy lipo
4117 if test $build = $host ; then
4118 LIPO="$2"
4119 else
4120 LIPO="${ncn_tool_prefix}$2"
4124 for ncn_progname in nm; do
4125 if test -n "$ncn_tool_prefix"; then
4126 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4127 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4129 echo "configure:4130: checking for $ac_word" >&5
4130 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4132 else
4133 if test -n "$NM"; then
4134 ac_cv_prog_NM="$NM" # Let the user override the test.
4135 else
4136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4137 ac_dummy="$PATH"
4138 for ac_dir in $ac_dummy; do
4139 test -z "$ac_dir" && ac_dir=.
4140 if test -f $ac_dir/$ac_word; then
4141 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4142 break
4144 done
4145 IFS="$ac_save_ifs"
4148 NM="$ac_cv_prog_NM"
4149 if test -n "$NM"; then
4150 echo "$ac_t""$NM" 1>&6
4151 else
4152 echo "$ac_t""no" 1>&6
4156 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4158 set dummy ${ncn_progname}; ac_word=$2
4159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4160 echo "configure:4161: checking for $ac_word" >&5
4161 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4163 else
4164 if test -n "$NM"; then
4165 ac_cv_prog_NM="$NM" # Let the user override the test.
4166 else
4167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4168 ac_dummy="$PATH"
4169 for ac_dir in $ac_dummy; do
4170 test -z "$ac_dir" && ac_dir=.
4171 if test -f $ac_dir/$ac_word; then
4172 ac_cv_prog_NM="${ncn_progname}"
4173 break
4175 done
4176 IFS="$ac_save_ifs"
4179 NM="$ac_cv_prog_NM"
4180 if test -n "$NM"; then
4181 echo "$ac_t""$NM" 1>&6
4182 else
4183 echo "$ac_t""no" 1>&6
4187 test -n "$ac_cv_prog_NM" && break
4188 done
4190 if test -z "$ac_cv_prog_NM" ; then
4191 set dummy nm
4192 if test $build = $host ; then
4193 NM="$2"
4194 else
4195 NM="${ncn_tool_prefix}$2"
4199 for ncn_progname in ranlib; do
4200 if test -n "$ncn_tool_prefix"; then
4201 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4202 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4204 echo "configure:4205: checking for $ac_word" >&5
4205 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4207 else
4208 if test -n "$RANLIB"; then
4209 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4210 else
4211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4212 ac_dummy="$PATH"
4213 for ac_dir in $ac_dummy; do
4214 test -z "$ac_dir" && ac_dir=.
4215 if test -f $ac_dir/$ac_word; then
4216 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4217 break
4219 done
4220 IFS="$ac_save_ifs"
4223 RANLIB="$ac_cv_prog_RANLIB"
4224 if test -n "$RANLIB"; then
4225 echo "$ac_t""$RANLIB" 1>&6
4226 else
4227 echo "$ac_t""no" 1>&6
4231 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4233 set dummy ${ncn_progname}; ac_word=$2
4234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4235 echo "configure:4236: checking for $ac_word" >&5
4236 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4238 else
4239 if test -n "$RANLIB"; then
4240 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4241 else
4242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4243 ac_dummy="$PATH"
4244 for ac_dir in $ac_dummy; do
4245 test -z "$ac_dir" && ac_dir=.
4246 if test -f $ac_dir/$ac_word; then
4247 ac_cv_prog_RANLIB="${ncn_progname}"
4248 break
4250 done
4251 IFS="$ac_save_ifs"
4254 RANLIB="$ac_cv_prog_RANLIB"
4255 if test -n "$RANLIB"; then
4256 echo "$ac_t""$RANLIB" 1>&6
4257 else
4258 echo "$ac_t""no" 1>&6
4262 test -n "$ac_cv_prog_RANLIB" && break
4263 done
4265 if test -z "$ac_cv_prog_RANLIB" ; then
4266 RANLIB=":"
4269 for ncn_progname in strip; do
4270 if test -n "$ncn_tool_prefix"; then
4271 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4272 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4274 echo "configure:4275: checking for $ac_word" >&5
4275 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4277 else
4278 if test -n "$STRIP"; then
4279 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4280 else
4281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4282 ac_dummy="$PATH"
4283 for ac_dir in $ac_dummy; do
4284 test -z "$ac_dir" && ac_dir=.
4285 if test -f $ac_dir/$ac_word; then
4286 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4287 break
4289 done
4290 IFS="$ac_save_ifs"
4293 STRIP="$ac_cv_prog_STRIP"
4294 if test -n "$STRIP"; then
4295 echo "$ac_t""$STRIP" 1>&6
4296 else
4297 echo "$ac_t""no" 1>&6
4301 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4303 set dummy ${ncn_progname}; ac_word=$2
4304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4305 echo "configure:4306: checking for $ac_word" >&5
4306 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4308 else
4309 if test -n "$STRIP"; then
4310 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4311 else
4312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4313 ac_dummy="$PATH"
4314 for ac_dir in $ac_dummy; do
4315 test -z "$ac_dir" && ac_dir=.
4316 if test -f $ac_dir/$ac_word; then
4317 ac_cv_prog_STRIP="${ncn_progname}"
4318 break
4320 done
4321 IFS="$ac_save_ifs"
4324 STRIP="$ac_cv_prog_STRIP"
4325 if test -n "$STRIP"; then
4326 echo "$ac_t""$STRIP" 1>&6
4327 else
4328 echo "$ac_t""no" 1>&6
4332 test -n "$ac_cv_prog_STRIP" && break
4333 done
4335 if test -z "$ac_cv_prog_STRIP" ; then
4336 STRIP=":"
4339 for ncn_progname in windres; do
4340 if test -n "$ncn_tool_prefix"; then
4341 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4342 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4344 echo "configure:4345: checking for $ac_word" >&5
4345 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4347 else
4348 if test -n "$WINDRES"; then
4349 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4350 else
4351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4352 ac_dummy="$PATH"
4353 for ac_dir in $ac_dummy; do
4354 test -z "$ac_dir" && ac_dir=.
4355 if test -f $ac_dir/$ac_word; then
4356 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4357 break
4359 done
4360 IFS="$ac_save_ifs"
4363 WINDRES="$ac_cv_prog_WINDRES"
4364 if test -n "$WINDRES"; then
4365 echo "$ac_t""$WINDRES" 1>&6
4366 else
4367 echo "$ac_t""no" 1>&6
4371 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4373 set dummy ${ncn_progname}; ac_word=$2
4374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4375 echo "configure:4376: checking for $ac_word" >&5
4376 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4378 else
4379 if test -n "$WINDRES"; then
4380 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4381 else
4382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4383 ac_dummy="$PATH"
4384 for ac_dir in $ac_dummy; do
4385 test -z "$ac_dir" && ac_dir=.
4386 if test -f $ac_dir/$ac_word; then
4387 ac_cv_prog_WINDRES="${ncn_progname}"
4388 break
4390 done
4391 IFS="$ac_save_ifs"
4394 WINDRES="$ac_cv_prog_WINDRES"
4395 if test -n "$WINDRES"; then
4396 echo "$ac_t""$WINDRES" 1>&6
4397 else
4398 echo "$ac_t""no" 1>&6
4402 test -n "$ac_cv_prog_WINDRES" && break
4403 done
4405 if test -z "$ac_cv_prog_WINDRES" ; then
4406 set dummy windres
4407 if test $build = $host ; then
4408 WINDRES="$2"
4409 else
4410 WINDRES="${ncn_tool_prefix}$2"
4414 for ncn_progname in objcopy; do
4415 if test -n "$ncn_tool_prefix"; then
4416 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4417 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4419 echo "configure:4420: checking for $ac_word" >&5
4420 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4421 echo $ac_n "(cached) $ac_c" 1>&6
4422 else
4423 if test -n "$OBJCOPY"; then
4424 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4425 else
4426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4427 ac_dummy="$PATH"
4428 for ac_dir in $ac_dummy; do
4429 test -z "$ac_dir" && ac_dir=.
4430 if test -f $ac_dir/$ac_word; then
4431 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4432 break
4434 done
4435 IFS="$ac_save_ifs"
4438 OBJCOPY="$ac_cv_prog_OBJCOPY"
4439 if test -n "$OBJCOPY"; then
4440 echo "$ac_t""$OBJCOPY" 1>&6
4441 else
4442 echo "$ac_t""no" 1>&6
4446 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4448 set dummy ${ncn_progname}; ac_word=$2
4449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4450 echo "configure:4451: checking for $ac_word" >&5
4451 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4452 echo $ac_n "(cached) $ac_c" 1>&6
4453 else
4454 if test -n "$OBJCOPY"; then
4455 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4456 else
4457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4458 ac_dummy="$PATH"
4459 for ac_dir in $ac_dummy; do
4460 test -z "$ac_dir" && ac_dir=.
4461 if test -f $ac_dir/$ac_word; then
4462 ac_cv_prog_OBJCOPY="${ncn_progname}"
4463 break
4465 done
4466 IFS="$ac_save_ifs"
4469 OBJCOPY="$ac_cv_prog_OBJCOPY"
4470 if test -n "$OBJCOPY"; then
4471 echo "$ac_t""$OBJCOPY" 1>&6
4472 else
4473 echo "$ac_t""no" 1>&6
4477 test -n "$ac_cv_prog_OBJCOPY" && break
4478 done
4480 if test -z "$ac_cv_prog_OBJCOPY" ; then
4481 set dummy objcopy
4482 if test $build = $host ; then
4483 OBJCOPY="$2"
4484 else
4485 OBJCOPY="${ncn_tool_prefix}$2"
4489 for ncn_progname in objdump; do
4490 if test -n "$ncn_tool_prefix"; then
4491 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4492 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4494 echo "configure:4495: checking for $ac_word" >&5
4495 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4497 else
4498 if test -n "$OBJDUMP"; then
4499 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4500 else
4501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4502 ac_dummy="$PATH"
4503 for ac_dir in $ac_dummy; do
4504 test -z "$ac_dir" && ac_dir=.
4505 if test -f $ac_dir/$ac_word; then
4506 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4507 break
4509 done
4510 IFS="$ac_save_ifs"
4513 OBJDUMP="$ac_cv_prog_OBJDUMP"
4514 if test -n "$OBJDUMP"; then
4515 echo "$ac_t""$OBJDUMP" 1>&6
4516 else
4517 echo "$ac_t""no" 1>&6
4521 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4523 set dummy ${ncn_progname}; ac_word=$2
4524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4525 echo "configure:4526: checking for $ac_word" >&5
4526 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4528 else
4529 if test -n "$OBJDUMP"; then
4530 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4531 else
4532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4533 ac_dummy="$PATH"
4534 for ac_dir in $ac_dummy; do
4535 test -z "$ac_dir" && ac_dir=.
4536 if test -f $ac_dir/$ac_word; then
4537 ac_cv_prog_OBJDUMP="${ncn_progname}"
4538 break
4540 done
4541 IFS="$ac_save_ifs"
4544 OBJDUMP="$ac_cv_prog_OBJDUMP"
4545 if test -n "$OBJDUMP"; then
4546 echo "$ac_t""$OBJDUMP" 1>&6
4547 else
4548 echo "$ac_t""no" 1>&6
4552 test -n "$ac_cv_prog_OBJDUMP" && break
4553 done
4555 if test -z "$ac_cv_prog_OBJDUMP" ; then
4556 set dummy objdump
4557 if test $build = $host ; then
4558 OBJDUMP="$2"
4559 else
4560 OBJDUMP="${ncn_tool_prefix}$2"
4570 # Target tools.
4571 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4572 if test "${with_build_time_tools+set}" = set; then
4573 withval="$with_build_time_tools"
4574 case x"$withval" in
4575 x/*) ;;
4577 with_build_time_tools=
4578 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4580 esac
4581 else
4582 with_build_time_tools=
4586 if test -n "$with_build_time_tools"; then
4587 for ncn_progname in cc gcc; do
4588 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4589 echo "configure:4590: checking for ${ncn_progname} in $with_build_time_tools" >&5
4590 if test -x $with_build_time_tools/CC_FOR_TARGET; then
4591 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/CC_FOR_TARGET
4592 echo "$ac_t""yes" 1>&6
4593 break
4594 else
4595 echo "$ac_t""no" 1>&6
4597 done
4600 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4601 for ncn_progname in cc gcc; do
4602 if test -n "$ncn_target_tool_prefix"; then
4603 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4604 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4606 echo "configure:4607: checking for $ac_word" >&5
4607 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4608 echo $ac_n "(cached) $ac_c" 1>&6
4609 else
4610 if test -n "$CC_FOR_TARGET"; then
4611 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4612 else
4613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4614 ac_dummy="$PATH"
4615 for ac_dir in $ac_dummy; do
4616 test -z "$ac_dir" && ac_dir=.
4617 if test -f $ac_dir/$ac_word; then
4618 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4619 break
4621 done
4622 IFS="$ac_save_ifs"
4625 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4626 if test -n "$CC_FOR_TARGET"; then
4627 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4628 else
4629 echo "$ac_t""no" 1>&6
4633 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4635 set dummy ${ncn_progname}; ac_word=$2
4636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4637 echo "configure:4638: checking for $ac_word" >&5
4638 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4640 else
4641 if test -n "$CC_FOR_TARGET"; then
4642 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4643 else
4644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4645 ac_dummy="$PATH"
4646 for ac_dir in $ac_dummy; do
4647 test -z "$ac_dir" && ac_dir=.
4648 if test -f $ac_dir/$ac_word; then
4649 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4650 break
4652 done
4653 IFS="$ac_save_ifs"
4656 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4657 if test -n "$CC_FOR_TARGET"; then
4658 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4659 else
4660 echo "$ac_t""no" 1>&6
4664 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4665 done
4668 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4669 set dummy cc gcc
4670 if test $build = $target ; then
4671 CC_FOR_TARGET="$2"
4672 else
4673 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4677 if test -n "$with_build_time_tools"; then
4678 for ncn_progname in c++ g++ cxx gxx; do
4679 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4680 echo "configure:4681: checking for ${ncn_progname} in $with_build_time_tools" >&5
4681 if test -x $with_build_time_tools/CXX_FOR_TARGET; then
4682 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/CXX_FOR_TARGET
4683 echo "$ac_t""yes" 1>&6
4684 break
4685 else
4686 echo "$ac_t""no" 1>&6
4688 done
4691 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4692 for ncn_progname in c++ g++ cxx gxx; do
4693 if test -n "$ncn_target_tool_prefix"; then
4694 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4695 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4697 echo "configure:4698: checking for $ac_word" >&5
4698 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4700 else
4701 if test -n "$CXX_FOR_TARGET"; then
4702 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4703 else
4704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4705 ac_dummy="$PATH"
4706 for ac_dir in $ac_dummy; do
4707 test -z "$ac_dir" && ac_dir=.
4708 if test -f $ac_dir/$ac_word; then
4709 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4710 break
4712 done
4713 IFS="$ac_save_ifs"
4716 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4717 if test -n "$CXX_FOR_TARGET"; then
4718 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4719 else
4720 echo "$ac_t""no" 1>&6
4724 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4726 set dummy ${ncn_progname}; ac_word=$2
4727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4728 echo "configure:4729: checking for $ac_word" >&5
4729 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4730 echo $ac_n "(cached) $ac_c" 1>&6
4731 else
4732 if test -n "$CXX_FOR_TARGET"; then
4733 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4734 else
4735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4736 ac_dummy="$PATH"
4737 for ac_dir in $ac_dummy; do
4738 test -z "$ac_dir" && ac_dir=.
4739 if test -f $ac_dir/$ac_word; then
4740 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4741 break
4743 done
4744 IFS="$ac_save_ifs"
4747 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4748 if test -n "$CXX_FOR_TARGET"; then
4749 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4750 else
4751 echo "$ac_t""no" 1>&6
4755 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4756 done
4759 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4760 set dummy c++ g++ cxx gxx
4761 if test $build = $target ; then
4762 CXX_FOR_TARGET="$2"
4763 else
4764 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4768 if test -n "$with_build_time_tools"; then
4769 for ncn_progname in gcc; do
4770 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4771 echo "configure:4772: checking for ${ncn_progname} in $with_build_time_tools" >&5
4772 if test -x $with_build_time_tools/GCC_FOR_TARGET; then
4773 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/GCC_FOR_TARGET
4774 echo "$ac_t""yes" 1>&6
4775 break
4776 else
4777 echo "$ac_t""no" 1>&6
4779 done
4782 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4783 for ncn_progname in gcc; do
4784 if test -n "$ncn_target_tool_prefix"; then
4785 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4786 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4788 echo "configure:4789: checking for $ac_word" >&5
4789 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4791 else
4792 if test -n "$GCC_FOR_TARGET"; then
4793 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4794 else
4795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4796 ac_dummy="$PATH"
4797 for ac_dir in $ac_dummy; do
4798 test -z "$ac_dir" && ac_dir=.
4799 if test -f $ac_dir/$ac_word; then
4800 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4801 break
4803 done
4804 IFS="$ac_save_ifs"
4807 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4808 if test -n "$GCC_FOR_TARGET"; then
4809 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4810 else
4811 echo "$ac_t""no" 1>&6
4815 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4817 set dummy ${ncn_progname}; ac_word=$2
4818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4819 echo "configure:4820: checking for $ac_word" >&5
4820 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4821 echo $ac_n "(cached) $ac_c" 1>&6
4822 else
4823 if test -n "$GCC_FOR_TARGET"; then
4824 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4825 else
4826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4827 ac_dummy="$PATH"
4828 for ac_dir in $ac_dummy; do
4829 test -z "$ac_dir" && ac_dir=.
4830 if test -f $ac_dir/$ac_word; then
4831 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4832 break
4834 done
4835 IFS="$ac_save_ifs"
4838 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4839 if test -n "$GCC_FOR_TARGET"; then
4840 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4841 else
4842 echo "$ac_t""no" 1>&6
4846 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4847 done
4850 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4851 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4854 if test -n "$with_build_time_tools"; then
4855 for ncn_progname in gcj; do
4856 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4857 echo "configure:4858: checking for ${ncn_progname} in $with_build_time_tools" >&5
4858 if test -x $with_build_time_tools/GCJ_FOR_TARGET; then
4859 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/GCJ_FOR_TARGET
4860 echo "$ac_t""yes" 1>&6
4861 break
4862 else
4863 echo "$ac_t""no" 1>&6
4865 done
4868 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4869 for ncn_progname in gcj; do
4870 if test -n "$ncn_target_tool_prefix"; then
4871 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4872 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4874 echo "configure:4875: checking for $ac_word" >&5
4875 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4877 else
4878 if test -n "$GCJ_FOR_TARGET"; then
4879 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4880 else
4881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4882 ac_dummy="$PATH"
4883 for ac_dir in $ac_dummy; do
4884 test -z "$ac_dir" && ac_dir=.
4885 if test -f $ac_dir/$ac_word; then
4886 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4887 break
4889 done
4890 IFS="$ac_save_ifs"
4893 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4894 if test -n "$GCJ_FOR_TARGET"; then
4895 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4896 else
4897 echo "$ac_t""no" 1>&6
4901 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4903 set dummy ${ncn_progname}; ac_word=$2
4904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4905 echo "configure:4906: checking for $ac_word" >&5
4906 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4908 else
4909 if test -n "$GCJ_FOR_TARGET"; then
4910 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4911 else
4912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4913 ac_dummy="$PATH"
4914 for ac_dir in $ac_dummy; do
4915 test -z "$ac_dir" && ac_dir=.
4916 if test -f $ac_dir/$ac_word; then
4917 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4918 break
4920 done
4921 IFS="$ac_save_ifs"
4924 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4925 if test -n "$GCJ_FOR_TARGET"; then
4926 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4927 else
4928 echo "$ac_t""no" 1>&6
4932 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4933 done
4936 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4937 set dummy gcj
4938 if test $build = $target ; then
4939 GCJ_FOR_TARGET="$2"
4940 else
4941 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4945 if test -n "$with_build_time_tools"; then
4946 for ncn_progname in gfortran; do
4947 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4948 echo "configure:4949: checking for ${ncn_progname} in $with_build_time_tools" >&5
4949 if test -x $with_build_time_tools/GFORTRAN_FOR_TARGET; then
4950 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/GFORTRAN_FOR_TARGET
4951 echo "$ac_t""yes" 1>&6
4952 break
4953 else
4954 echo "$ac_t""no" 1>&6
4956 done
4959 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
4960 for ncn_progname in gfortran; do
4961 if test -n "$ncn_target_tool_prefix"; then
4962 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4963 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4965 echo "configure:4966: checking for $ac_word" >&5
4966 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4967 echo $ac_n "(cached) $ac_c" 1>&6
4968 else
4969 if test -n "$GFORTRAN_FOR_TARGET"; then
4970 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4971 else
4972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4973 ac_dummy="$PATH"
4974 for ac_dir in $ac_dummy; do
4975 test -z "$ac_dir" && ac_dir=.
4976 if test -f $ac_dir/$ac_word; then
4977 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4978 break
4980 done
4981 IFS="$ac_save_ifs"
4984 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4985 if test -n "$GFORTRAN_FOR_TARGET"; then
4986 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4987 else
4988 echo "$ac_t""no" 1>&6
4992 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4994 set dummy ${ncn_progname}; ac_word=$2
4995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4996 echo "configure:4997: checking for $ac_word" >&5
4997 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
4999 else
5000 if test -n "$GFORTRAN_FOR_TARGET"; then
5001 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5002 else
5003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5004 ac_dummy="$PATH"
5005 for ac_dir in $ac_dummy; do
5006 test -z "$ac_dir" && ac_dir=.
5007 if test -f $ac_dir/$ac_word; then
5008 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5009 break
5011 done
5012 IFS="$ac_save_ifs"
5015 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5016 if test -n "$GFORTRAN_FOR_TARGET"; then
5017 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5018 else
5019 echo "$ac_t""no" 1>&6
5023 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5024 done
5027 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5028 set dummy gfortran
5029 if test $build = $target ; then
5030 GFORTRAN_FOR_TARGET="$2"
5031 else
5032 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5038 # The user is always right.
5039 if test "${PATH_SEPARATOR+set}" != set; then
5040 echo "#! /bin/sh" >conf$$.sh
5041 echo "exit 0" >>conf$$.sh
5042 chmod +x conf$$.sh
5043 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5044 PATH_SEPARATOR=';'
5045 else
5046 PATH_SEPARATOR=:
5048 rm -f conf$$.sh
5053 if test "x$exec_prefix" = xNONE; then
5054 if test "x$prefix" = xNONE; then
5055 gcc_cv_tool_prefix=$ac_default_prefix
5056 else
5057 gcc_cv_tool_prefix=$prefix
5059 else
5060 gcc_cv_tool_prefix=$exec_prefix
5063 # If there is no compiler in the tree, use the PATH only. In any
5064 # case, if there is no compiler in the tree nobody should use
5065 # AS_FOR_TARGET and LD_FOR_TARGET.
5066 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5067 gcc_version=`cat $srcdir/gcc/BASE-VER`
5068 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5069 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5070 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5071 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5072 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5073 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5074 else
5075 gcc_cv_tool_dirs=
5078 if test x$build = x$target && test -n "$md_exec_prefix"; then
5079 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5084 cat > conftest.c << \EOF
5085 #ifdef __GNUC__
5086 gcc_yay;
5087 #endif
5089 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5090 have_gcc_for_target=yes
5091 else
5092 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5093 have_gcc_for_target=no
5095 rm conftest.c
5100 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5101 if test -n "$with_build_time_tools"; then
5102 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5103 echo "configure:5104: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
5104 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/AR_FOR_TARGET
5105 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5106 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5107 elif test $build != $host && test $have_gcc_for_target = yes; then
5108 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5109 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5110 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5113 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5114 # Extract the first word of "ar", so it can be a program name with args.
5115 set dummy ar; ac_word=$2
5116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5117 echo "configure:5118: checking for $ac_word" >&5
5118 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5119 echo $ac_n "(cached) $ac_c" 1>&6
5120 else
5121 case "$AR_FOR_TARGET" in
5123 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5125 ?:/*)
5126 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5130 ac_dummy="$gcc_cv_tool_dirs"
5131 for ac_dir in $ac_dummy; do
5132 test -z "$ac_dir" && ac_dir=.
5133 if test -f $ac_dir/$ac_word; then
5134 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
5135 break
5137 done
5138 IFS="$ac_save_ifs"
5140 esac
5142 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5143 if test -n "$AR_FOR_TARGET"; then
5144 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5145 else
5146 echo "$ac_t""no" 1>&6
5150 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5151 if test -n "$with_build_time_tools"; then
5152 for ncn_progname in ar; do
5153 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5154 echo "configure:5155: checking for ${ncn_progname} in $with_build_time_tools" >&5
5155 if test -x $with_build_time_tools/AR_FOR_TARGET; then
5156 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/AR_FOR_TARGET
5157 echo "$ac_t""yes" 1>&6
5158 break
5159 else
5160 echo "$ac_t""no" 1>&6
5162 done
5165 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5166 for ncn_progname in ar; do
5167 if test -n "$ncn_target_tool_prefix"; then
5168 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5169 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5171 echo "configure:5172: checking for $ac_word" >&5
5172 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5173 echo $ac_n "(cached) $ac_c" 1>&6
5174 else
5175 if test -n "$AR_FOR_TARGET"; then
5176 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5177 else
5178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5179 ac_dummy="$PATH"
5180 for ac_dir in $ac_dummy; do
5181 test -z "$ac_dir" && ac_dir=.
5182 if test -f $ac_dir/$ac_word; then
5183 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5184 break
5186 done
5187 IFS="$ac_save_ifs"
5190 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5191 if test -n "$AR_FOR_TARGET"; then
5192 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5193 else
5194 echo "$ac_t""no" 1>&6
5198 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5200 set dummy ${ncn_progname}; ac_word=$2
5201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5202 echo "configure:5203: checking for $ac_word" >&5
5203 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5205 else
5206 if test -n "$AR_FOR_TARGET"; then
5207 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5208 else
5209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5210 ac_dummy="$PATH"
5211 for ac_dir in $ac_dummy; do
5212 test -z "$ac_dir" && ac_dir=.
5213 if test -f $ac_dir/$ac_word; then
5214 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5215 break
5217 done
5218 IFS="$ac_save_ifs"
5221 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5222 if test -n "$AR_FOR_TARGET"; then
5223 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5224 else
5225 echo "$ac_t""no" 1>&6
5229 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5230 done
5233 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5234 set dummy ar
5235 if test $build = $target ; then
5236 AR_FOR_TARGET="$2"
5237 else
5238 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
5247 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5248 if test -n "$with_build_time_tools"; then
5249 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5250 echo "configure:5251: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
5251 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/AS_FOR_TARGET
5252 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5253 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5254 elif test $build != $host && test $have_gcc_for_target = yes; then
5255 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5256 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5257 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5260 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5261 # Extract the first word of "as", so it can be a program name with args.
5262 set dummy as; ac_word=$2
5263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5264 echo "configure:5265: checking for $ac_word" >&5
5265 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5266 echo $ac_n "(cached) $ac_c" 1>&6
5267 else
5268 case "$AS_FOR_TARGET" in
5270 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5272 ?:/*)
5273 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5277 ac_dummy="$gcc_cv_tool_dirs"
5278 for ac_dir in $ac_dummy; do
5279 test -z "$ac_dir" && ac_dir=.
5280 if test -f $ac_dir/$ac_word; then
5281 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5282 break
5284 done
5285 IFS="$ac_save_ifs"
5287 esac
5289 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5290 if test -n "$AS_FOR_TARGET"; then
5291 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5292 else
5293 echo "$ac_t""no" 1>&6
5297 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5298 if test -n "$with_build_time_tools"; then
5299 for ncn_progname in as; do
5300 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5301 echo "configure:5302: checking for ${ncn_progname} in $with_build_time_tools" >&5
5302 if test -x $with_build_time_tools/AS_FOR_TARGET; then
5303 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/AS_FOR_TARGET
5304 echo "$ac_t""yes" 1>&6
5305 break
5306 else
5307 echo "$ac_t""no" 1>&6
5309 done
5312 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5313 for ncn_progname in as; do
5314 if test -n "$ncn_target_tool_prefix"; then
5315 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5316 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5318 echo "configure:5319: checking for $ac_word" >&5
5319 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5321 else
5322 if test -n "$AS_FOR_TARGET"; then
5323 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5324 else
5325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5326 ac_dummy="$PATH"
5327 for ac_dir in $ac_dummy; do
5328 test -z "$ac_dir" && ac_dir=.
5329 if test -f $ac_dir/$ac_word; then
5330 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5331 break
5333 done
5334 IFS="$ac_save_ifs"
5337 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5338 if test -n "$AS_FOR_TARGET"; then
5339 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5340 else
5341 echo "$ac_t""no" 1>&6
5345 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5347 set dummy ${ncn_progname}; ac_word=$2
5348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5349 echo "configure:5350: checking for $ac_word" >&5
5350 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5352 else
5353 if test -n "$AS_FOR_TARGET"; then
5354 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5355 else
5356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5357 ac_dummy="$PATH"
5358 for ac_dir in $ac_dummy; do
5359 test -z "$ac_dir" && ac_dir=.
5360 if test -f $ac_dir/$ac_word; then
5361 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5362 break
5364 done
5365 IFS="$ac_save_ifs"
5368 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5369 if test -n "$AS_FOR_TARGET"; then
5370 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5371 else
5372 echo "$ac_t""no" 1>&6
5376 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5377 done
5380 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5381 set dummy as
5382 if test $build = $target ; then
5383 AS_FOR_TARGET="$2"
5384 else
5385 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5394 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5395 if test -n "$with_build_time_tools"; then
5396 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5397 echo "configure:5398: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
5398 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/DLLTOOL_FOR_TARGET
5399 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5400 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5401 elif test $build != $host && test $have_gcc_for_target = yes; then
5402 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5403 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5404 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5407 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5408 # Extract the first word of "dlltool", so it can be a program name with args.
5409 set dummy dlltool; ac_word=$2
5410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5411 echo "configure:5412: checking for $ac_word" >&5
5412 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5413 echo $ac_n "(cached) $ac_c" 1>&6
5414 else
5415 case "$DLLTOOL_FOR_TARGET" in
5417 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5419 ?:/*)
5420 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5424 ac_dummy="$gcc_cv_tool_dirs"
5425 for ac_dir in $ac_dummy; do
5426 test -z "$ac_dir" && ac_dir=.
5427 if test -f $ac_dir/$ac_word; then
5428 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5429 break
5431 done
5432 IFS="$ac_save_ifs"
5434 esac
5436 DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5437 if test -n "$DLLTOOL_FOR_TARGET"; then
5438 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5439 else
5440 echo "$ac_t""no" 1>&6
5444 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5445 if test -n "$with_build_time_tools"; then
5446 for ncn_progname in dlltool; do
5447 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5448 echo "configure:5449: checking for ${ncn_progname} in $with_build_time_tools" >&5
5449 if test -x $with_build_time_tools/DLLTOOL_FOR_TARGET; then
5450 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/DLLTOOL_FOR_TARGET
5451 echo "$ac_t""yes" 1>&6
5452 break
5453 else
5454 echo "$ac_t""no" 1>&6
5456 done
5459 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5460 for ncn_progname in dlltool; do
5461 if test -n "$ncn_target_tool_prefix"; then
5462 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5463 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5465 echo "configure:5466: checking for $ac_word" >&5
5466 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5467 echo $ac_n "(cached) $ac_c" 1>&6
5468 else
5469 if test -n "$DLLTOOL_FOR_TARGET"; then
5470 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5471 else
5472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5473 ac_dummy="$PATH"
5474 for ac_dir in $ac_dummy; do
5475 test -z "$ac_dir" && ac_dir=.
5476 if test -f $ac_dir/$ac_word; then
5477 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5478 break
5480 done
5481 IFS="$ac_save_ifs"
5484 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5485 if test -n "$DLLTOOL_FOR_TARGET"; then
5486 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5487 else
5488 echo "$ac_t""no" 1>&6
5492 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5494 set dummy ${ncn_progname}; ac_word=$2
5495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5496 echo "configure:5497: checking for $ac_word" >&5
5497 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5498 echo $ac_n "(cached) $ac_c" 1>&6
5499 else
5500 if test -n "$DLLTOOL_FOR_TARGET"; then
5501 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5502 else
5503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5504 ac_dummy="$PATH"
5505 for ac_dir in $ac_dummy; do
5506 test -z "$ac_dir" && ac_dir=.
5507 if test -f $ac_dir/$ac_word; then
5508 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5509 break
5511 done
5512 IFS="$ac_save_ifs"
5515 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5516 if test -n "$DLLTOOL_FOR_TARGET"; then
5517 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5518 else
5519 echo "$ac_t""no" 1>&6
5523 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5524 done
5527 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5528 set dummy dlltool
5529 if test $build = $target ; then
5530 DLLTOOL_FOR_TARGET="$2"
5531 else
5532 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5541 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5542 if test -n "$with_build_time_tools"; then
5543 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5544 echo "configure:5545: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
5545 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/LD_FOR_TARGET
5546 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5547 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5548 elif test $build != $host && test $have_gcc_for_target = yes; then
5549 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5550 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5551 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5554 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5555 # Extract the first word of "ld", so it can be a program name with args.
5556 set dummy ld; ac_word=$2
5557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5558 echo "configure:5559: checking for $ac_word" >&5
5559 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5561 else
5562 case "$LD_FOR_TARGET" in
5564 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5566 ?:/*)
5567 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5571 ac_dummy="$gcc_cv_tool_dirs"
5572 for ac_dir in $ac_dummy; do
5573 test -z "$ac_dir" && ac_dir=.
5574 if test -f $ac_dir/$ac_word; then
5575 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5576 break
5578 done
5579 IFS="$ac_save_ifs"
5581 esac
5583 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5584 if test -n "$LD_FOR_TARGET"; then
5585 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5586 else
5587 echo "$ac_t""no" 1>&6
5591 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5592 if test -n "$with_build_time_tools"; then
5593 for ncn_progname in ld; do
5594 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5595 echo "configure:5596: checking for ${ncn_progname} in $with_build_time_tools" >&5
5596 if test -x $with_build_time_tools/LD_FOR_TARGET; then
5597 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/LD_FOR_TARGET
5598 echo "$ac_t""yes" 1>&6
5599 break
5600 else
5601 echo "$ac_t""no" 1>&6
5603 done
5606 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5607 for ncn_progname in ld; do
5608 if test -n "$ncn_target_tool_prefix"; then
5609 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5610 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5612 echo "configure:5613: checking for $ac_word" >&5
5613 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5615 else
5616 if test -n "$LD_FOR_TARGET"; then
5617 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5618 else
5619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5620 ac_dummy="$PATH"
5621 for ac_dir in $ac_dummy; do
5622 test -z "$ac_dir" && ac_dir=.
5623 if test -f $ac_dir/$ac_word; then
5624 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5625 break
5627 done
5628 IFS="$ac_save_ifs"
5631 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5632 if test -n "$LD_FOR_TARGET"; then
5633 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5634 else
5635 echo "$ac_t""no" 1>&6
5639 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5641 set dummy ${ncn_progname}; ac_word=$2
5642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5643 echo "configure:5644: checking for $ac_word" >&5
5644 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5646 else
5647 if test -n "$LD_FOR_TARGET"; then
5648 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5649 else
5650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5651 ac_dummy="$PATH"
5652 for ac_dir in $ac_dummy; do
5653 test -z "$ac_dir" && ac_dir=.
5654 if test -f $ac_dir/$ac_word; then
5655 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5656 break
5658 done
5659 IFS="$ac_save_ifs"
5662 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5663 if test -n "$LD_FOR_TARGET"; then
5664 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5665 else
5666 echo "$ac_t""no" 1>&6
5670 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5671 done
5674 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5675 set dummy ld
5676 if test $build = $target ; then
5677 LD_FOR_TARGET="$2"
5678 else
5679 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5688 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5689 if test -n "$with_build_time_tools"; then
5690 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5691 echo "configure:5692: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
5692 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/LIPO_FOR_TARGET
5693 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5694 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5695 elif test $build != $host && test $have_gcc_for_target = yes; then
5696 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5697 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5698 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5701 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5702 # Extract the first word of "lipo", so it can be a program name with args.
5703 set dummy lipo; ac_word=$2
5704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5705 echo "configure:5706: checking for $ac_word" >&5
5706 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5708 else
5709 case "$LIPO_FOR_TARGET" in
5711 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5713 ?:/*)
5714 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5718 ac_dummy="$gcc_cv_tool_dirs"
5719 for ac_dir in $ac_dummy; do
5720 test -z "$ac_dir" && ac_dir=.
5721 if test -f $ac_dir/$ac_word; then
5722 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5723 break
5725 done
5726 IFS="$ac_save_ifs"
5728 esac
5730 LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5731 if test -n "$LIPO_FOR_TARGET"; then
5732 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5733 else
5734 echo "$ac_t""no" 1>&6
5738 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5739 if test -n "$with_build_time_tools"; then
5740 for ncn_progname in lipo; do
5741 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5742 echo "configure:5743: checking for ${ncn_progname} in $with_build_time_tools" >&5
5743 if test -x $with_build_time_tools/LIPO_FOR_TARGET; then
5744 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/LIPO_FOR_TARGET
5745 echo "$ac_t""yes" 1>&6
5746 break
5747 else
5748 echo "$ac_t""no" 1>&6
5750 done
5753 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5754 for ncn_progname in lipo; do
5755 if test -n "$ncn_target_tool_prefix"; then
5756 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5757 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5759 echo "configure:5760: checking for $ac_word" >&5
5760 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5761 echo $ac_n "(cached) $ac_c" 1>&6
5762 else
5763 if test -n "$LIPO_FOR_TARGET"; then
5764 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5765 else
5766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5767 ac_dummy="$PATH"
5768 for ac_dir in $ac_dummy; do
5769 test -z "$ac_dir" && ac_dir=.
5770 if test -f $ac_dir/$ac_word; then
5771 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5772 break
5774 done
5775 IFS="$ac_save_ifs"
5778 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5779 if test -n "$LIPO_FOR_TARGET"; then
5780 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5781 else
5782 echo "$ac_t""no" 1>&6
5786 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5788 set dummy ${ncn_progname}; ac_word=$2
5789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5790 echo "configure:5791: checking for $ac_word" >&5
5791 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5792 echo $ac_n "(cached) $ac_c" 1>&6
5793 else
5794 if test -n "$LIPO_FOR_TARGET"; then
5795 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5796 else
5797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5798 ac_dummy="$PATH"
5799 for ac_dir in $ac_dummy; do
5800 test -z "$ac_dir" && ac_dir=.
5801 if test -f $ac_dir/$ac_word; then
5802 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5803 break
5805 done
5806 IFS="$ac_save_ifs"
5809 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5810 if test -n "$LIPO_FOR_TARGET"; then
5811 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5812 else
5813 echo "$ac_t""no" 1>&6
5817 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5818 done
5821 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5822 set dummy lipo
5823 if test $build = $target ; then
5824 LIPO_FOR_TARGET="$2"
5825 else
5826 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5835 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5836 if test -n "$with_build_time_tools"; then
5837 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5838 echo "configure:5839: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
5839 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/NM_FOR_TARGET
5840 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5841 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5842 elif test $build != $host && test $have_gcc_for_target = yes; then
5843 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
5844 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
5845 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5848 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5849 # Extract the first word of "nm", so it can be a program name with args.
5850 set dummy nm; ac_word=$2
5851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5852 echo "configure:5853: checking for $ac_word" >&5
5853 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5855 else
5856 case "$NM_FOR_TARGET" in
5858 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
5860 ?:/*)
5861 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5865 ac_dummy="$gcc_cv_tool_dirs"
5866 for ac_dir in $ac_dummy; do
5867 test -z "$ac_dir" && ac_dir=.
5868 if test -f $ac_dir/$ac_word; then
5869 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
5870 break
5872 done
5873 IFS="$ac_save_ifs"
5875 esac
5877 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
5878 if test -n "$NM_FOR_TARGET"; then
5879 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5880 else
5881 echo "$ac_t""no" 1>&6
5885 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5886 if test -n "$with_build_time_tools"; then
5887 for ncn_progname in nm; do
5888 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5889 echo "configure:5890: checking for ${ncn_progname} in $with_build_time_tools" >&5
5890 if test -x $with_build_time_tools/NM_FOR_TARGET; then
5891 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/NM_FOR_TARGET
5892 echo "$ac_t""yes" 1>&6
5893 break
5894 else
5895 echo "$ac_t""no" 1>&6
5897 done
5900 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5901 for ncn_progname in nm; do
5902 if test -n "$ncn_target_tool_prefix"; then
5903 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5904 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5906 echo "configure:5907: checking for $ac_word" >&5
5907 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5908 echo $ac_n "(cached) $ac_c" 1>&6
5909 else
5910 if test -n "$NM_FOR_TARGET"; then
5911 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5912 else
5913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5914 ac_dummy="$PATH"
5915 for ac_dir in $ac_dummy; do
5916 test -z "$ac_dir" && ac_dir=.
5917 if test -f $ac_dir/$ac_word; then
5918 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5919 break
5921 done
5922 IFS="$ac_save_ifs"
5925 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5926 if test -n "$NM_FOR_TARGET"; then
5927 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5928 else
5929 echo "$ac_t""no" 1>&6
5933 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5935 set dummy ${ncn_progname}; ac_word=$2
5936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5937 echo "configure:5938: checking for $ac_word" >&5
5938 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5939 echo $ac_n "(cached) $ac_c" 1>&6
5940 else
5941 if test -n "$NM_FOR_TARGET"; then
5942 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5943 else
5944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5945 ac_dummy="$PATH"
5946 for ac_dir in $ac_dummy; do
5947 test -z "$ac_dir" && ac_dir=.
5948 if test -f $ac_dir/$ac_word; then
5949 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5950 break
5952 done
5953 IFS="$ac_save_ifs"
5956 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5957 if test -n "$NM_FOR_TARGET"; then
5958 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5959 else
5960 echo "$ac_t""no" 1>&6
5964 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5965 done
5968 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5969 set dummy nm
5970 if test $build = $target ; then
5971 NM_FOR_TARGET="$2"
5972 else
5973 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
5982 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
5983 if test -n "$with_build_time_tools"; then
5984 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5985 echo "configure:5986: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
5986 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/OBJDUMP_FOR_TARGET
5987 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5988 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
5989 elif test $build != $host && test $have_gcc_for_target = yes; then
5990 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
5991 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
5992 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5995 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
5996 # Extract the first word of "objdump", so it can be a program name with args.
5997 set dummy objdump; ac_word=$2
5998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5999 echo "configure:6000: checking for $ac_word" >&5
6000 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6001 echo $ac_n "(cached) $ac_c" 1>&6
6002 else
6003 case "$OBJDUMP_FOR_TARGET" in
6005 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6007 ?:/*)
6008 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6012 ac_dummy="$gcc_cv_tool_dirs"
6013 for ac_dir in $ac_dummy; do
6014 test -z "$ac_dir" && ac_dir=.
6015 if test -f $ac_dir/$ac_word; then
6016 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6017 break
6019 done
6020 IFS="$ac_save_ifs"
6022 esac
6024 OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6025 if test -n "$OBJDUMP_FOR_TARGET"; then
6026 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6027 else
6028 echo "$ac_t""no" 1>&6
6032 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6033 if test -n "$with_build_time_tools"; then
6034 for ncn_progname in objdump; do
6035 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6036 echo "configure:6037: checking for ${ncn_progname} in $with_build_time_tools" >&5
6037 if test -x $with_build_time_tools/OBJDUMP_FOR_TARGET; then
6038 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/OBJDUMP_FOR_TARGET
6039 echo "$ac_t""yes" 1>&6
6040 break
6041 else
6042 echo "$ac_t""no" 1>&6
6044 done
6047 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6048 for ncn_progname in objdump; do
6049 if test -n "$ncn_target_tool_prefix"; then
6050 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6051 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6053 echo "configure:6054: checking for $ac_word" >&5
6054 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6055 echo $ac_n "(cached) $ac_c" 1>&6
6056 else
6057 if test -n "$OBJDUMP_FOR_TARGET"; then
6058 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6059 else
6060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6061 ac_dummy="$PATH"
6062 for ac_dir in $ac_dummy; do
6063 test -z "$ac_dir" && ac_dir=.
6064 if test -f $ac_dir/$ac_word; then
6065 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6066 break
6068 done
6069 IFS="$ac_save_ifs"
6072 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6073 if test -n "$OBJDUMP_FOR_TARGET"; then
6074 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6075 else
6076 echo "$ac_t""no" 1>&6
6080 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6082 set dummy ${ncn_progname}; ac_word=$2
6083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6084 echo "configure:6085: checking for $ac_word" >&5
6085 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6086 echo $ac_n "(cached) $ac_c" 1>&6
6087 else
6088 if test -n "$OBJDUMP_FOR_TARGET"; then
6089 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6090 else
6091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6092 ac_dummy="$PATH"
6093 for ac_dir in $ac_dummy; do
6094 test -z "$ac_dir" && ac_dir=.
6095 if test -f $ac_dir/$ac_word; then
6096 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6097 break
6099 done
6100 IFS="$ac_save_ifs"
6103 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6104 if test -n "$OBJDUMP_FOR_TARGET"; then
6105 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6106 else
6107 echo "$ac_t""no" 1>&6
6111 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6112 done
6115 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6116 set dummy objdump
6117 if test $build = $target ; then
6118 OBJDUMP_FOR_TARGET="$2"
6119 else
6120 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6129 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6130 if test -n "$with_build_time_tools"; then
6131 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6132 echo "configure:6133: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
6133 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/RANLIB_FOR_TARGET
6134 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6135 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6136 elif test $build != $host && test $have_gcc_for_target = yes; then
6137 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6138 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6139 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6142 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6143 # Extract the first word of "ranlib", so it can be a program name with args.
6144 set dummy ranlib; ac_word=$2
6145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6146 echo "configure:6147: checking for $ac_word" >&5
6147 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6148 echo $ac_n "(cached) $ac_c" 1>&6
6149 else
6150 case "$RANLIB_FOR_TARGET" in
6152 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6154 ?:/*)
6155 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6159 ac_dummy="$gcc_cv_tool_dirs"
6160 for ac_dir in $ac_dummy; do
6161 test -z "$ac_dir" && ac_dir=.
6162 if test -f $ac_dir/$ac_word; then
6163 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6164 break
6166 done
6167 IFS="$ac_save_ifs"
6169 esac
6171 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6172 if test -n "$RANLIB_FOR_TARGET"; then
6173 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6174 else
6175 echo "$ac_t""no" 1>&6
6179 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6180 if test -n "$with_build_time_tools"; then
6181 for ncn_progname in ranlib; do
6182 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6183 echo "configure:6184: checking for ${ncn_progname} in $with_build_time_tools" >&5
6184 if test -x $with_build_time_tools/RANLIB_FOR_TARGET; then
6185 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/RANLIB_FOR_TARGET
6186 echo "$ac_t""yes" 1>&6
6187 break
6188 else
6189 echo "$ac_t""no" 1>&6
6191 done
6194 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6195 for ncn_progname in ranlib; do
6196 if test -n "$ncn_target_tool_prefix"; then
6197 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6198 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6200 echo "configure:6201: checking for $ac_word" >&5
6201 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6202 echo $ac_n "(cached) $ac_c" 1>&6
6203 else
6204 if test -n "$RANLIB_FOR_TARGET"; then
6205 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6206 else
6207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6208 ac_dummy="$PATH"
6209 for ac_dir in $ac_dummy; do
6210 test -z "$ac_dir" && ac_dir=.
6211 if test -f $ac_dir/$ac_word; then
6212 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6213 break
6215 done
6216 IFS="$ac_save_ifs"
6219 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6220 if test -n "$RANLIB_FOR_TARGET"; then
6221 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6222 else
6223 echo "$ac_t""no" 1>&6
6227 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6229 set dummy ${ncn_progname}; ac_word=$2
6230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6231 echo "configure:6232: checking for $ac_word" >&5
6232 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6233 echo $ac_n "(cached) $ac_c" 1>&6
6234 else
6235 if test -n "$RANLIB_FOR_TARGET"; then
6236 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6237 else
6238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6239 ac_dummy="$PATH"
6240 for ac_dir in $ac_dummy; do
6241 test -z "$ac_dir" && ac_dir=.
6242 if test -f $ac_dir/$ac_word; then
6243 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6244 break
6246 done
6247 IFS="$ac_save_ifs"
6250 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6251 if test -n "$RANLIB_FOR_TARGET"; then
6252 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6253 else
6254 echo "$ac_t""no" 1>&6
6258 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6259 done
6262 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6263 set dummy ranlib
6264 if test $build = $target ; then
6265 RANLIB_FOR_TARGET="$2"
6266 else
6267 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
6276 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6277 if test -n "$with_build_time_tools"; then
6278 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6279 echo "configure:6280: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
6280 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/STRIP_FOR_TARGET
6281 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6282 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6283 elif test $build != $host && test $have_gcc_for_target = yes; then
6284 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6285 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6286 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6289 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6290 # Extract the first word of "strip", so it can be a program name with args.
6291 set dummy strip; ac_word=$2
6292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6293 echo "configure:6294: checking for $ac_word" >&5
6294 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6295 echo $ac_n "(cached) $ac_c" 1>&6
6296 else
6297 case "$STRIP_FOR_TARGET" in
6299 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6301 ?:/*)
6302 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6306 ac_dummy="$gcc_cv_tool_dirs"
6307 for ac_dir in $ac_dummy; do
6308 test -z "$ac_dir" && ac_dir=.
6309 if test -f $ac_dir/$ac_word; then
6310 ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6311 break
6313 done
6314 IFS="$ac_save_ifs"
6316 esac
6318 STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6319 if test -n "$STRIP_FOR_TARGET"; then
6320 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6321 else
6322 echo "$ac_t""no" 1>&6
6326 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6327 if test -n "$with_build_time_tools"; then
6328 for ncn_progname in strip; do
6329 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6330 echo "configure:6331: checking for ${ncn_progname} in $with_build_time_tools" >&5
6331 if test -x $with_build_time_tools/STRIP_FOR_TARGET; then
6332 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/STRIP_FOR_TARGET
6333 echo "$ac_t""yes" 1>&6
6334 break
6335 else
6336 echo "$ac_t""no" 1>&6
6338 done
6341 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6342 for ncn_progname in strip; do
6343 if test -n "$ncn_target_tool_prefix"; then
6344 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6345 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6347 echo "configure:6348: checking for $ac_word" >&5
6348 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6349 echo $ac_n "(cached) $ac_c" 1>&6
6350 else
6351 if test -n "$STRIP_FOR_TARGET"; then
6352 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6353 else
6354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6355 ac_dummy="$PATH"
6356 for ac_dir in $ac_dummy; do
6357 test -z "$ac_dir" && ac_dir=.
6358 if test -f $ac_dir/$ac_word; then
6359 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6360 break
6362 done
6363 IFS="$ac_save_ifs"
6366 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6367 if test -n "$STRIP_FOR_TARGET"; then
6368 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6369 else
6370 echo "$ac_t""no" 1>&6
6374 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6376 set dummy ${ncn_progname}; ac_word=$2
6377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6378 echo "configure:6379: checking for $ac_word" >&5
6379 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6381 else
6382 if test -n "$STRIP_FOR_TARGET"; then
6383 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6384 else
6385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6386 ac_dummy="$PATH"
6387 for ac_dir in $ac_dummy; do
6388 test -z "$ac_dir" && ac_dir=.
6389 if test -f $ac_dir/$ac_word; then
6390 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6391 break
6393 done
6394 IFS="$ac_save_ifs"
6397 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6398 if test -n "$STRIP_FOR_TARGET"; then
6399 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6400 else
6401 echo "$ac_t""no" 1>&6
6405 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6406 done
6409 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6410 set dummy strip
6411 if test $build = $target ; then
6412 STRIP_FOR_TARGET="$2"
6413 else
6414 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6423 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6424 if test -n "$with_build_time_tools"; then
6425 echo $ac_n "checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6426 echo "configure:6427: checking for ${ncn_target_tool_prefix}${ncn_progname} in $with_build_time_tools" >&5
6427 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/WINDRES_FOR_TARGET
6428 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6429 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6430 elif test $build != $host && test $have_gcc_for_target = yes; then
6431 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6432 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6433 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6436 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6437 # Extract the first word of "windres", so it can be a program name with args.
6438 set dummy windres; ac_word=$2
6439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6440 echo "configure:6441: checking for $ac_word" >&5
6441 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6443 else
6444 case "$WINDRES_FOR_TARGET" in
6446 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6448 ?:/*)
6449 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6453 ac_dummy="$gcc_cv_tool_dirs"
6454 for ac_dir in $ac_dummy; do
6455 test -z "$ac_dir" && ac_dir=.
6456 if test -f $ac_dir/$ac_word; then
6457 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6458 break
6460 done
6461 IFS="$ac_save_ifs"
6463 esac
6465 WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6466 if test -n "$WINDRES_FOR_TARGET"; then
6467 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6468 else
6469 echo "$ac_t""no" 1>&6
6473 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6474 if test -n "$with_build_time_tools"; then
6475 for ncn_progname in windres; do
6476 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6477 echo "configure:6478: checking for ${ncn_progname} in $with_build_time_tools" >&5
6478 if test -x $with_build_time_tools/WINDRES_FOR_TARGET; then
6479 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/WINDRES_FOR_TARGET
6480 echo "$ac_t""yes" 1>&6
6481 break
6482 else
6483 echo "$ac_t""no" 1>&6
6485 done
6488 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6489 for ncn_progname in windres; do
6490 if test -n "$ncn_target_tool_prefix"; then
6491 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6492 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6494 echo "configure:6495: checking for $ac_word" >&5
6495 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6496 echo $ac_n "(cached) $ac_c" 1>&6
6497 else
6498 if test -n "$WINDRES_FOR_TARGET"; then
6499 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6500 else
6501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6502 ac_dummy="$PATH"
6503 for ac_dir in $ac_dummy; do
6504 test -z "$ac_dir" && ac_dir=.
6505 if test -f $ac_dir/$ac_word; then
6506 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6507 break
6509 done
6510 IFS="$ac_save_ifs"
6513 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6514 if test -n "$WINDRES_FOR_TARGET"; then
6515 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6516 else
6517 echo "$ac_t""no" 1>&6
6521 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6523 set dummy ${ncn_progname}; ac_word=$2
6524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6525 echo "configure:6526: checking for $ac_word" >&5
6526 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6528 else
6529 if test -n "$WINDRES_FOR_TARGET"; then
6530 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6531 else
6532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6533 ac_dummy="$PATH"
6534 for ac_dir in $ac_dummy; do
6535 test -z "$ac_dir" && ac_dir=.
6536 if test -f $ac_dir/$ac_word; then
6537 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6538 break
6540 done
6541 IFS="$ac_save_ifs"
6544 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6545 if test -n "$WINDRES_FOR_TARGET"; then
6546 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6547 else
6548 echo "$ac_t""no" 1>&6
6552 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6553 done
6556 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6557 set dummy windres
6558 if test $build = $target ; then
6559 WINDRES_FOR_TARGET="$2"
6560 else
6561 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
6568 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6570 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6571 echo "configure:6572: checking where to find the target ar" >&5
6572 if test "x${build}" != "x${host}" ; then
6573 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6574 # We already found the complete path
6575 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6576 else
6577 # Canadian cross, just use what we found
6578 echo "$ac_t""pre-installed" 1>&6
6580 else
6581 ok=yes
6582 case " ${configdirs} " in
6583 *" binutils "*) ;;
6584 *) ok=no ;;
6585 esac
6587 if test $ok = yes; then
6588 # An in-tree tool is available and we can use it
6589 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6590 echo "$ac_t""just compiled" 1>&6
6591 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6592 # We already found the complete path
6593 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6594 elif test "x$target" = "x$host"; then
6595 # We can use an host tool
6596 AR_FOR_TARGET='$(AR)'
6597 echo "$ac_t""host tool" 1>&6
6598 else
6599 # We need a cross tool
6600 echo "$ac_t""pre-installed" 1>&6
6603 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6604 echo "configure:6605: checking where to find the target as" >&5
6605 if test "x${build}" != "x${host}" ; then
6606 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6607 # We already found the complete path
6608 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6609 else
6610 # Canadian cross, just use what we found
6611 echo "$ac_t""pre-installed" 1>&6
6613 else
6614 ok=yes
6615 case " ${configdirs} " in
6616 *" gas "*) ;;
6617 *) ok=no ;;
6618 esac
6620 if test $ok = yes; then
6621 # An in-tree tool is available and we can use it
6622 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6623 echo "$ac_t""just compiled" 1>&6
6624 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6625 # We already found the complete path
6626 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6627 elif test "x$target" = "x$host"; then
6628 # We can use an host tool
6629 AS_FOR_TARGET='$(AS)'
6630 echo "$ac_t""host tool" 1>&6
6631 else
6632 # We need a cross tool
6633 echo "$ac_t""pre-installed" 1>&6
6636 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6637 echo "configure:6638: checking where to find the target cc" >&5
6638 if test "x${build}" != "x${host}" ; then
6639 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6640 # We already found the complete path
6641 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6642 else
6643 # Canadian cross, just use what we found
6644 echo "$ac_t""pre-installed" 1>&6
6646 else
6647 ok=yes
6648 case " ${configdirs} " in
6649 *" gcc "*) ;;
6650 *) ok=no ;;
6651 esac
6653 if test $ok = yes; then
6654 # An in-tree tool is available and we can use it
6655 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6656 echo "$ac_t""just compiled" 1>&6
6657 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6658 # We already found the complete path
6659 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6660 elif test "x$target" = "x$host"; then
6661 # We can use an host tool
6662 CC_FOR_TARGET='$(CC)'
6663 echo "$ac_t""host tool" 1>&6
6664 else
6665 # We need a cross tool
6666 echo "$ac_t""pre-installed" 1>&6
6669 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6670 echo "configure:6671: checking where to find the target c++" >&5
6671 if test "x${build}" != "x${host}" ; then
6672 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6673 # We already found the complete path
6674 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6675 else
6676 # Canadian cross, just use what we found
6677 echo "$ac_t""pre-installed" 1>&6
6679 else
6680 ok=yes
6681 case " ${configdirs} " in
6682 *" gcc "*) ;;
6683 *) ok=no ;;
6684 esac
6685 case ,${enable_languages}, in
6686 *,c++,*) ;;
6687 *) ok=no ;;
6688 esac
6689 if test $ok = yes; then
6690 # An in-tree tool is available and we can use it
6691 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'
6692 echo "$ac_t""just compiled" 1>&6
6693 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6694 # We already found the complete path
6695 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6696 elif test "x$target" = "x$host"; then
6697 # We can use an host tool
6698 CXX_FOR_TARGET='$(CXX)'
6699 echo "$ac_t""host tool" 1>&6
6700 else
6701 # We need a cross tool
6702 echo "$ac_t""pre-installed" 1>&6
6705 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6706 echo "configure:6707: checking where to find the target c++ for libstdc++" >&5
6707 if test "x${build}" != "x${host}" ; then
6708 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6709 # We already found the complete path
6710 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6711 else
6712 # Canadian cross, just use what we found
6713 echo "$ac_t""pre-installed" 1>&6
6715 else
6716 ok=yes
6717 case " ${configdirs} " in
6718 *" gcc "*) ;;
6719 *) ok=no ;;
6720 esac
6721 case ,${enable_languages}, in
6722 *,c++,*) ;;
6723 *) ok=no ;;
6724 esac
6725 if test $ok = yes; then
6726 # An in-tree tool is available and we can use it
6727 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'
6728 echo "$ac_t""just compiled" 1>&6
6729 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6730 # We already found the complete path
6731 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6732 elif test "x$target" = "x$host"; then
6733 # We can use an host tool
6734 RAW_CXX_FOR_TARGET='$(CXX)'
6735 echo "$ac_t""host tool" 1>&6
6736 else
6737 # We need a cross tool
6738 echo "$ac_t""pre-installed" 1>&6
6741 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6742 echo "configure:6743: checking where to find the target dlltool" >&5
6743 if test "x${build}" != "x${host}" ; then
6744 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6745 # We already found the complete path
6746 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6747 else
6748 # Canadian cross, just use what we found
6749 echo "$ac_t""pre-installed" 1>&6
6751 else
6752 ok=yes
6753 case " ${configdirs} " in
6754 *" binutils "*) ;;
6755 *) ok=no ;;
6756 esac
6758 if test $ok = yes; then
6759 # An in-tree tool is available and we can use it
6760 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6761 echo "$ac_t""just compiled" 1>&6
6762 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6763 # We already found the complete path
6764 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6765 elif test "x$target" = "x$host"; then
6766 # We can use an host tool
6767 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
6768 echo "$ac_t""host tool" 1>&6
6769 else
6770 # We need a cross tool
6771 echo "$ac_t""pre-installed" 1>&6
6774 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6775 echo "configure:6776: checking where to find the target gcc" >&5
6776 if test "x${build}" != "x${host}" ; then
6777 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6778 # We already found the complete path
6779 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6780 else
6781 # Canadian cross, just use what we found
6782 echo "$ac_t""pre-installed" 1>&6
6784 else
6785 ok=yes
6786 case " ${configdirs} " in
6787 *" gcc "*) ;;
6788 *) ok=no ;;
6789 esac
6791 if test $ok = yes; then
6792 # An in-tree tool is available and we can use it
6793 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6794 echo "$ac_t""just compiled" 1>&6
6795 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6796 # We already found the complete path
6797 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6798 elif test "x$target" = "x$host"; then
6799 # We can use an host tool
6800 GCC_FOR_TARGET='$()'
6801 echo "$ac_t""host tool" 1>&6
6802 else
6803 # We need a cross tool
6804 echo "$ac_t""pre-installed" 1>&6
6807 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6808 echo "configure:6809: checking where to find the target gcj" >&5
6809 if test "x${build}" != "x${host}" ; then
6810 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6811 # We already found the complete path
6812 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6813 else
6814 # Canadian cross, just use what we found
6815 echo "$ac_t""pre-installed" 1>&6
6817 else
6818 ok=yes
6819 case " ${configdirs} " in
6820 *" gcc "*) ;;
6821 *) ok=no ;;
6822 esac
6823 case ,${enable_languages}, in
6824 *,java,*) ;;
6825 *) ok=no ;;
6826 esac
6827 if test $ok = yes; then
6828 # An in-tree tool is available and we can use it
6829 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6830 echo "$ac_t""just compiled" 1>&6
6831 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6832 # We already found the complete path
6833 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6834 elif test "x$target" = "x$host"; then
6835 # We can use an host tool
6836 GCJ_FOR_TARGET='$(GCJ)'
6837 echo "$ac_t""host tool" 1>&6
6838 else
6839 # We need a cross tool
6840 echo "$ac_t""pre-installed" 1>&6
6843 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6844 echo "configure:6845: checking where to find the target gfortran" >&5
6845 if test "x${build}" != "x${host}" ; then
6846 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6847 # We already found the complete path
6848 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6849 else
6850 # Canadian cross, just use what we found
6851 echo "$ac_t""pre-installed" 1>&6
6853 else
6854 ok=yes
6855 case " ${configdirs} " in
6856 *" gcc "*) ;;
6857 *) ok=no ;;
6858 esac
6859 case ,${enable_languages}, in
6860 *,fortran,*) ;;
6861 *) ok=no ;;
6862 esac
6863 if test $ok = yes; then
6864 # An in-tree tool is available and we can use it
6865 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6866 echo "$ac_t""just compiled" 1>&6
6867 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6868 # We already found the complete path
6869 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6870 elif test "x$target" = "x$host"; then
6871 # We can use an host tool
6872 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
6873 echo "$ac_t""host tool" 1>&6
6874 else
6875 # We need a cross tool
6876 echo "$ac_t""pre-installed" 1>&6
6879 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
6880 echo "configure:6881: checking where to find the target ld" >&5
6881 if test "x${build}" != "x${host}" ; then
6882 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6883 # We already found the complete path
6884 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6885 else
6886 # Canadian cross, just use what we found
6887 echo "$ac_t""pre-installed" 1>&6
6889 else
6890 ok=yes
6891 case " ${configdirs} " in
6892 *" ld "*) ;;
6893 *) ok=no ;;
6894 esac
6896 if test $ok = yes; then
6897 # An in-tree tool is available and we can use it
6898 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
6899 echo "$ac_t""just compiled" 1>&6
6900 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6901 # We already found the complete path
6902 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6903 elif test "x$target" = "x$host"; then
6904 # We can use an host tool
6905 LD_FOR_TARGET='$(LD)'
6906 echo "$ac_t""host tool" 1>&6
6907 else
6908 # We need a cross tool
6909 echo "$ac_t""pre-installed" 1>&6
6912 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
6913 echo "configure:6914: checking where to find the target lipo" >&5
6914 if test "x${build}" != "x${host}" ; then
6915 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6916 # We already found the complete path
6917 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6918 else
6919 # Canadian cross, just use what we found
6920 echo "$ac_t""pre-installed" 1>&6
6922 else
6923 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6924 # We already found the complete path
6925 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6926 elif test "x$target" = "x$host"; then
6927 # We can use an host tool
6928 LIPO_FOR_TARGET='$(LIPO)'
6929 echo "$ac_t""host tool" 1>&6
6930 else
6931 # We need a cross tool
6932 echo "$ac_t""pre-installed" 1>&6
6935 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
6936 echo "configure:6937: checking where to find the target nm" >&5
6937 if test "x${build}" != "x${host}" ; then
6938 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
6939 # We already found the complete path
6940 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
6941 else
6942 # Canadian cross, just use what we found
6943 echo "$ac_t""pre-installed" 1>&6
6945 else
6946 ok=yes
6947 case " ${configdirs} " in
6948 *" binutils "*) ;;
6949 *) ok=no ;;
6950 esac
6952 if test $ok = yes; then
6953 # An in-tree tool is available and we can use it
6954 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
6955 echo "$ac_t""just compiled" 1>&6
6956 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
6957 # We already found the complete path
6958 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
6959 elif test "x$target" = "x$host"; then
6960 # We can use an host tool
6961 NM_FOR_TARGET='$(NM)'
6962 echo "$ac_t""host tool" 1>&6
6963 else
6964 # We need a cross tool
6965 echo "$ac_t""pre-installed" 1>&6
6968 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
6969 echo "configure:6970: checking where to find the target objdump" >&5
6970 if test "x${build}" != "x${host}" ; then
6971 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
6972 # We already found the complete path
6973 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
6974 else
6975 # Canadian cross, just use what we found
6976 echo "$ac_t""pre-installed" 1>&6
6978 else
6979 ok=yes
6980 case " ${configdirs} " in
6981 *" binutils "*) ;;
6982 *) ok=no ;;
6983 esac
6985 if test $ok = yes; then
6986 # An in-tree tool is available and we can use it
6987 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
6988 echo "$ac_t""just compiled" 1>&6
6989 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
6990 # We already found the complete path
6991 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
6992 elif test "x$target" = "x$host"; then
6993 # We can use an host tool
6994 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
6995 echo "$ac_t""host tool" 1>&6
6996 else
6997 # We need a cross tool
6998 echo "$ac_t""pre-installed" 1>&6
7001 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7002 echo "configure:7003: checking where to find the target ranlib" >&5
7003 if test "x${build}" != "x${host}" ; then
7004 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7005 # We already found the complete path
7006 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7007 else
7008 # Canadian cross, just use what we found
7009 echo "$ac_t""pre-installed" 1>&6
7011 else
7012 ok=yes
7013 case " ${configdirs} " in
7014 *" binutils "*) ;;
7015 *) ok=no ;;
7016 esac
7018 if test $ok = yes; then
7019 # An in-tree tool is available and we can use it
7020 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7021 echo "$ac_t""just compiled" 1>&6
7022 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7023 # We already found the complete path
7024 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7025 elif test "x$target" = "x$host"; then
7026 # We can use an host tool
7027 RANLIB_FOR_TARGET='$(RANLIB)'
7028 echo "$ac_t""host tool" 1>&6
7029 else
7030 # We need a cross tool
7031 echo "$ac_t""pre-installed" 1>&6
7034 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7035 echo "configure:7036: checking where to find the target strip" >&5
7036 if test "x${build}" != "x${host}" ; then
7037 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7038 # We already found the complete path
7039 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7040 else
7041 # Canadian cross, just use what we found
7042 echo "$ac_t""pre-installed" 1>&6
7044 else
7045 ok=yes
7046 case " ${configdirs} " in
7047 *" binutils "*) ;;
7048 *) ok=no ;;
7049 esac
7051 if test $ok = yes; then
7052 # An in-tree tool is available and we can use it
7053 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7054 echo "$ac_t""just compiled" 1>&6
7055 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7056 # We already found the complete path
7057 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7058 elif test "x$target" = "x$host"; then
7059 # We can use an host tool
7060 STRIP_FOR_TARGET='$(STRIP)'
7061 echo "$ac_t""host tool" 1>&6
7062 else
7063 # We need a cross tool
7064 echo "$ac_t""pre-installed" 1>&6
7067 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7068 echo "configure:7069: checking where to find the target windres" >&5
7069 if test "x${build}" != "x${host}" ; then
7070 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7071 # We already found the complete path
7072 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7073 else
7074 # Canadian cross, just use what we found
7075 echo "$ac_t""pre-installed" 1>&6
7077 else
7078 ok=yes
7079 case " ${configdirs} " in
7080 *" binutils "*) ;;
7081 *) ok=no ;;
7082 esac
7084 if test $ok = yes; then
7085 # An in-tree tool is available and we can use it
7086 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7087 echo "$ac_t""just compiled" 1>&6
7088 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7089 # We already found the complete path
7090 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7091 elif test "x$target" = "x$host"; then
7092 # We can use an host tool
7093 WINDRES_FOR_TARGET='$(WINDRES)'
7094 echo "$ac_t""host tool" 1>&6
7095 else
7096 # We need a cross tool
7097 echo "$ac_t""pre-installed" 1>&6
7104 # Certain tools may need extra flags.
7105 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7106 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7107 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7109 # When building target libraries, except in a Canadian cross, we use
7110 # the same toolchain as the compiler we just built.
7111 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7112 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7113 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7114 if test $host = $build; then
7115 case " $configdirs " in
7116 *" gcc "*)
7117 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7118 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7119 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7121 esac
7128 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7129 echo "configure:7130: checking whether to enable maintainer-specific portions of Makefiles" >&5
7130 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7131 if test "${enable_maintainer_mode+set}" = set; then
7132 enableval="$enable_maintainer_mode"
7133 USE_MAINTAINER_MODE=$enableval
7134 else
7135 USE_MAINTAINER_MODE=no
7138 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7141 if test "$USE_MAINTAINER_MODE" = yes; then
7142 MAINTAINER_MODE_TRUE=
7143 MAINTAINER_MODE_FALSE='#'
7144 else
7145 MAINTAINER_MODE_TRUE='#'
7146 MAINTAINER_MODE_FALSE=
7148 MAINT=$MAINTAINER_MODE_TRUE
7150 # ---------------------
7151 # GCC bootstrap support
7152 # ---------------------
7154 # Stage specific cflags for build.
7155 stage1_cflags="-g"
7156 case $build in
7157 vax-*-*)
7158 case ${GCC} in
7159 yes) stage1_cflags="-g -Wa,-J" ;;
7160 *) stage1_cflags="-g -J" ;;
7161 esac ;;
7162 powerpc-*-darwin*)
7163 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7164 # sources; use -no-cpp-precomp to get to GNU cpp.
7165 # Apple's GCC has bugs in designated initializer handling, so disable
7166 # that too.
7167 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7169 esac
7172 # Enable -Werror in bootstrap stage2 and later.
7173 # Change the default to "no" on release branches.
7174 # Check whether --enable-werror or --disable-werror was given.
7175 if test "${enable_werror+set}" = set; then
7176 enableval="$enable_werror"
7178 else
7179 enable_werror=yes
7182 case ${enable_werror} in
7183 yes) stage2_werror_flag="--enable-werror-always" ;;
7184 *) stage2_werror_flag="" ;;
7185 esac
7188 trap '' 1 2 15
7189 cat > confcache <<\EOF
7190 # This file is a shell script that caches the results of configure
7191 # tests run on this system so they can be shared between configure
7192 # scripts and configure runs. It is not useful on other systems.
7193 # If it contains results you don't want to keep, you may remove or edit it.
7195 # By default, configure uses ./config.cache as the cache file,
7196 # creating it if it does not exist already. You can give configure
7197 # the --cache-file=FILE option to use a different cache file; that is
7198 # what configure does when it calls configure scripts in
7199 # subdirectories, so they share the cache.
7200 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7201 # config.status only pays attention to the cache file if you give it the
7202 # --recheck option to rerun configure.
7205 # The following way of writing the cache mishandles newlines in values,
7206 # but we know of no workaround that is simple, portable, and efficient.
7207 # So, don't put newlines in cache variables' values.
7208 # Ultrix sh set writes to stderr and can't be redirected directly,
7209 # and sets the high bit in the cache file unless we assign to the vars.
7210 (set) 2>&1 |
7211 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7212 *ac_space=\ *)
7213 # `set' does not quote correctly, so add quotes (double-quote substitution
7214 # turns \\\\ into \\, and sed turns \\ into \).
7215 sed -n \
7216 -e "s/'/'\\\\''/g" \
7217 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7220 # `set' quotes correctly as required by POSIX, so do not add quotes.
7221 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7223 esac >> confcache
7224 if cmp -s $cache_file confcache; then
7226 else
7227 if test -w $cache_file; then
7228 echo "updating cache $cache_file"
7229 cat confcache > $cache_file
7230 else
7231 echo "not updating unwritable cache $cache_file"
7234 rm -f confcache
7236 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7238 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7239 # Let make expand exec_prefix.
7240 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7242 # Any assignment to VPATH causes Sun make to only execute
7243 # the first set of double-colon rules, so remove it if not needed.
7244 # If there is a colon in the path, we need to keep it.
7245 if test "x$srcdir" = x.; then
7246 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7249 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7251 # Transform confdefs.h into DEFS.
7252 # Protect against shell expansion while executing Makefile rules.
7253 # Protect against Makefile macro expansion.
7254 cat > conftest.defs <<\EOF
7255 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7256 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7257 s%\[%\\&%g
7258 s%\]%\\&%g
7259 s%\$%$$%g
7261 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7262 rm -f conftest.defs
7265 # Without the "./", some shells look in PATH for config.status.
7266 : ${CONFIG_STATUS=./config.status}
7268 echo creating $CONFIG_STATUS
7269 rm -f $CONFIG_STATUS
7270 cat > $CONFIG_STATUS <<EOF
7271 #! /bin/sh
7272 # Generated automatically by configure.
7273 # Run this file to recreate the current configuration.
7274 # This directory was configured as follows,
7275 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7277 # $0 $ac_configure_args
7279 # Compiler output produced by configure, useful for debugging
7280 # configure, is in ./config.log if it exists.
7282 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7283 for ac_option
7285 case "\$ac_option" in
7286 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7287 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7288 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7289 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7290 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7291 exit 0 ;;
7292 -help | --help | --hel | --he | --h)
7293 echo "\$ac_cs_usage"; exit 0 ;;
7294 *) echo "\$ac_cs_usage"; exit 1 ;;
7295 esac
7296 done
7298 ac_given_srcdir=$srcdir
7299 ac_given_INSTALL="$INSTALL"
7301 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7303 cat >> $CONFIG_STATUS <<EOF
7305 # Protect against being on the right side of a sed subst in config.status.
7306 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7307 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7308 $ac_vpsub
7309 $extrasub
7310 s%@SHELL@%$SHELL%g
7311 s%@CFLAGS@%$CFLAGS%g
7312 s%@CPPFLAGS@%$CPPFLAGS%g
7313 s%@CXXFLAGS@%$CXXFLAGS%g
7314 s%@FFLAGS@%$FFLAGS%g
7315 s%@DEFS@%$DEFS%g
7316 s%@LDFLAGS@%$LDFLAGS%g
7317 s%@LIBS@%$LIBS%g
7318 s%@exec_prefix@%$exec_prefix%g
7319 s%@prefix@%$prefix%g
7320 s%@program_transform_name@%$program_transform_name%g
7321 s%@bindir@%$bindir%g
7322 s%@sbindir@%$sbindir%g
7323 s%@libexecdir@%$libexecdir%g
7324 s%@datadir@%$datadir%g
7325 s%@sysconfdir@%$sysconfdir%g
7326 s%@sharedstatedir@%$sharedstatedir%g
7327 s%@localstatedir@%$localstatedir%g
7328 s%@libdir@%$libdir%g
7329 s%@includedir@%$includedir%g
7330 s%@oldincludedir@%$oldincludedir%g
7331 s%@infodir@%$infodir%g
7332 s%@mandir@%$mandir%g
7333 s%@host@%$host%g
7334 s%@host_alias@%$host_alias%g
7335 s%@host_cpu@%$host_cpu%g
7336 s%@host_vendor@%$host_vendor%g
7337 s%@host_os@%$host_os%g
7338 s%@target@%$target%g
7339 s%@target_alias@%$target_alias%g
7340 s%@target_cpu@%$target_cpu%g
7341 s%@target_vendor@%$target_vendor%g
7342 s%@target_os@%$target_os%g
7343 s%@build@%$build%g
7344 s%@build_alias@%$build_alias%g
7345 s%@build_cpu@%$build_cpu%g
7346 s%@build_vendor@%$build_vendor%g
7347 s%@build_os@%$build_os%g
7348 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7349 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7350 s%@INSTALL_DATA@%$INSTALL_DATA%g
7351 s%@LN@%$LN%g
7352 s%@LN_S@%$LN_S%g
7353 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7354 s%@build_subdir@%$build_subdir%g
7355 s%@host_subdir@%$host_subdir%g
7356 s%@target_subdir@%$target_subdir%g
7357 s%@CC@%$CC%g
7358 s%@GNATBIND@%$GNATBIND%g
7359 s%@do_compare@%$do_compare%g
7360 s%@gmplibs@%$gmplibs%g
7361 s%@gmpinc@%$gmpinc%g
7362 s%@stage1_languages@%$stage1_languages%g
7363 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7364 /@serialization_dependencies@/r $serialization_dependencies
7365 s%@serialization_dependencies@%%g
7366 /@host_makefile_frag@/r $host_makefile_frag
7367 s%@host_makefile_frag@%%g
7368 /@target_makefile_frag@/r $target_makefile_frag
7369 s%@target_makefile_frag@%%g
7370 /@alphaieee_frag@/r $alphaieee_frag
7371 s%@alphaieee_frag@%%g
7372 /@ospace_frag@/r $ospace_frag
7373 s%@ospace_frag@%%g
7374 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7375 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
7376 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
7377 s%@tooldir@%$tooldir%g
7378 s%@build_tooldir@%$build_tooldir%g
7379 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7380 s%@GDB_TK@%$GDB_TK%g
7381 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7382 s%@build_configargs@%$build_configargs%g
7383 s%@build_configdirs@%$build_configdirs%g
7384 s%@host_configargs@%$host_configargs%g
7385 s%@configdirs@%$configdirs%g
7386 s%@target_configargs@%$target_configargs%g
7387 s%@target_configdirs@%$target_configdirs%g
7388 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7389 s%@config_shell@%$config_shell%g
7390 s%@YACC@%$YACC%g
7391 s%@BISON@%$BISON%g
7392 s%@M4@%$M4%g
7393 s%@LEX@%$LEX%g
7394 s%@FLEX@%$FLEX%g
7395 s%@MAKEINFO@%$MAKEINFO%g
7396 s%@EXPECT@%$EXPECT%g
7397 s%@RUNTEST@%$RUNTEST%g
7398 s%@AR@%$AR%g
7399 s%@AS@%$AS%g
7400 s%@DLLTOOL@%$DLLTOOL%g
7401 s%@LD@%$LD%g
7402 s%@LIPO@%$LIPO%g
7403 s%@NM@%$NM%g
7404 s%@RANLIB@%$RANLIB%g
7405 s%@STRIP@%$STRIP%g
7406 s%@WINDRES@%$WINDRES%g
7407 s%@OBJCOPY@%$OBJCOPY%g
7408 s%@OBJDUMP@%$OBJDUMP%g
7409 s%@CXX@%$CXX%g
7410 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7411 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7412 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7413 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7414 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7415 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7416 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7417 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7418 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7419 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7420 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7421 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7422 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7423 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7424 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7425 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7426 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7427 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7428 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7429 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7430 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7431 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7432 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7433 s%@MAINT@%$MAINT%g
7434 s%@stage1_cflags@%$stage1_cflags%g
7435 s%@stage2_werror_flag@%$stage2_werror_flag%g
7437 CEOF
7440 cat >> $CONFIG_STATUS <<\EOF
7442 # Split the substitutions into bite-sized pieces for seds with
7443 # small command number limits, like on Digital OSF/1 and HP-UX.
7444 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7445 ac_file=1 # Number of current file.
7446 ac_beg=1 # First line for current file.
7447 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7448 ac_more_lines=:
7449 ac_sed_cmds=""
7450 while $ac_more_lines; do
7451 if test $ac_beg -gt 1; then
7452 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7453 else
7454 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7456 if test ! -s conftest.s$ac_file; then
7457 ac_more_lines=false
7458 rm -f conftest.s$ac_file
7459 else
7460 if test -z "$ac_sed_cmds"; then
7461 ac_sed_cmds="sed -f conftest.s$ac_file"
7462 else
7463 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7465 ac_file=`expr $ac_file + 1`
7466 ac_beg=$ac_end
7467 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7469 done
7470 if test -z "$ac_sed_cmds"; then
7471 ac_sed_cmds=cat
7475 cat >> $CONFIG_STATUS <<EOF
7477 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7479 cat >> $CONFIG_STATUS <<\EOF
7480 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7481 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7482 case "$ac_file" in
7483 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7484 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7485 *) ac_file_in="${ac_file}.in" ;;
7486 esac
7488 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7490 # Remove last slash and all that follows it. Not all systems have dirname.
7491 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7492 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7493 # The file is in a subdirectory.
7494 test ! -d "$ac_dir" && mkdir "$ac_dir"
7495 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7496 # A "../" for each directory in $ac_dir_suffix.
7497 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7498 else
7499 ac_dir_suffix= ac_dots=
7502 case "$ac_given_srcdir" in
7503 .) srcdir=.
7504 if test -z "$ac_dots"; then top_srcdir=.
7505 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7506 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7507 *) # Relative path.
7508 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7509 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7510 esac
7512 case "$ac_given_INSTALL" in
7513 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7514 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7515 esac
7517 echo creating "$ac_file"
7518 rm -f "$ac_file"
7519 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7520 case "$ac_file" in
7521 *Makefile*) ac_comsub="1i\\
7522 # $configure_input" ;;
7523 *) ac_comsub= ;;
7524 esac
7526 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7527 sed -e "$ac_comsub
7528 s%@configure_input@%$configure_input%g
7529 s%@srcdir@%$srcdir%g
7530 s%@top_srcdir@%$top_srcdir%g
7531 s%@INSTALL@%$INSTALL%g
7532 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7533 fi; done
7534 rm -f conftest.s*
7537 cat >> $CONFIG_STATUS <<EOF
7540 cat >> $CONFIG_STATUS <<\EOF
7542 exit 0
7544 chmod +x $CONFIG_STATUS
7545 rm -fr confdefs* $ac_clean_files
7546 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1