d74e6116d6a928368f5c8fb2507f5ad6985ad053
[deliverable/binutils-gdb.git] / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
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"
46
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'
80
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
87
88 ac_prev=
89 for ac_option
90 do
91
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
97 fi
98
99 case "$ac_option" in
100 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 *) ac_optarg= ;;
102 esac
103
104 # Accept the important Cygnus configure options, so we can diagnose typos.
105
106 case "$ac_option" in
107
108 -bindir | --bindir | --bindi | --bind | --bin | --bi)
109 ac_prev=bindir ;;
110 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
111 bindir="$ac_optarg" ;;
112
113 -build | --build | --buil | --bui | --bu)
114 ac_prev=build ;;
115 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
116 build="$ac_optarg" ;;
117
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" ;;
124
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" ;;
130
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; }
136 fi
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
139
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; }
145 fi
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'" ;;
152
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" ;;
161
162 -gas | --gas | --ga | --g)
163 # Obsolete; use --with-gas.
164 with_gas=yes ;;
165
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
202 EOF
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
215 EOF
216 if test -n "$ac_help"; then
217 echo "--enable and --with options recognized:$ac_help"
218 fi
219 exit 0 ;;
220
221 -host | --host | --hos | --ho)
222 ac_prev=host ;;
223 -host=* | --host=* | --hos=* | --ho=*)
224 host="$ac_optarg" ;;
225
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" ;;
232
233 -infodir | --infodir | --infodi | --infod | --info | --inf)
234 ac_prev=infodir ;;
235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
236 infodir="$ac_optarg" ;;
237
238 -libdir | --libdir | --libdi | --libd)
239 ac_prev=libdir ;;
240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
241 libdir="$ac_optarg" ;;
242
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" ;;
249
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" ;;
258
259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
260 ac_prev=mandir ;;
261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
262 mandir="$ac_optarg" ;;
263
264 -nfp | --nfp | --nf)
265 # Obsolete; use --without-fp.
266 with_fp=no ;;
267
268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
269 | --no-cr | --no-c)
270 no_create=yes ;;
271
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 ;;
275
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" ;;
284
285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
286 ac_prev=prefix ;;
287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
288 prefix="$ac_optarg" ;;
289
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" ;;
296
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" ;;
303
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" ;;
320
321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
322 | -silent | --silent | --silen | --sile | --sil)
323 silent=yes ;;
324
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" ;;
330
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" ;;
341
342 -site | --site | --sit)
343 ac_prev=site ;;
344 -site=* | --site=* | --sit=*)
345 site="$ac_optarg" ;;
346
347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
348 ac_prev=srcdir ;;
349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
350 srcdir="$ac_optarg" ;;
351
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" ;;
358
359 -target | --target | --targe | --targ | --tar | --ta | --t)
360 ac_prev=target ;;
361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
362 target="$ac_optarg" ;;
363
364 -v | -verbose | --verbose | --verbos | --verbo | --verb)
365 verbose=yes ;;
366
367 -version | --version | --versio | --versi | --vers)
368 echo "configure generated by autoconf version 2.13"
369 exit 0 ;;
370
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; }
376 fi
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'" ;;
383
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; }
389 fi
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
392
393 --x)
394 # Obsolete; use --with-x.
395 with_x=yes ;;
396
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" ;;
403
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" ;;
410
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412 ;;
413
414 *)
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
417 fi
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; }
420 fi
421 nonopt="$ac_option"
422 ;;
423
424 esac
425 done
426
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 fi
430
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432
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
445 fi
446 exec 5>./config.log
447
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
452
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
457 do
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
468
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
478
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
483
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
487
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=..
498 fi
499 else
500 ac_srcdir_defaulted=no
501 fi
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; }
507 fi
508 fi
509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510
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"
517 fi
518 fi
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"
523 fi
524 done
525
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
532 fi
533
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
540
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=
550 fi
551 else
552 ac_n= ac_c='\c' ac_t=
553 fi
554
555
556
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
567 fi
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; }
571 fi
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.
575
576
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
580 #
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.
589
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
596
597
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; }
601 fi
602
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
605
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
617
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
623
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
626
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
635
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
641
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
644
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
653
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
659
660 test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
662 NONENONEs,x,x, &&
663 program_prefix=${target_alias}-
664
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
674 fi
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"
680
681 # sed with no file args requires a program.
682 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
683
684
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/*) ;;
708 *)
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.
717 :
718 else
719 ac_cv_path_install="$ac_dir/$ac_prog -c"
720 break 2
721 fi
722 fi
723 done
724 ;;
725 esac
726 done
727 IFS="$ac_save_IFS"
728
729 fi
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"
738 fi
739 fi
740 echo "$ac_t""$INSTALL" 1>&6
741
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}'
745
746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
747
748 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
749
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
762 fi
763 rm -f conftestdata_f conftestdata_t
764
765 fi
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
772 fi
773
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
786 fi
787 fi
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
793 fi
794
795
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
817 fi
818 done
819 IFS="$save_ifs"
820 test -n "${CONFIG_SHELL}" && break
821 done
822 fi
823 fi
824 fi
825 ;;
826 esac
827
828 config_shell=${CONFIG_SHELL-/bin/sh}
829
830 progname=$0
831 # if PWD already has a value, it is probably wrong.
832 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
833
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
842
843
844 moveifchange=${srcdir}/move-if-change
845
846 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
847
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"
852 fi
853
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=.
859 fi
860
861 topsrcdir=$srcpwd
862
863 extra_host_args=
864
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.
868
869 # Subdirs will be configured in the order listed in build_configdirs,
870 # configdirs, or target_configdirs; see the serialization section below.
871
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.
875
876 # Double entries in build_configdirs, configdirs, or target_configdirs may
877 # cause circular dependencies and break everything horribly.
878
879 # these library is used by various programs built for the build
880 # environment
881 #
882 build_libs="build-libiberty"
883
884 # these tools are built for the build environment
885 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
886
887 # these libraries are used by various programs built for the host environment
888 #
889 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
890
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"
897
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"
904
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)
907 #
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"
920
921 # these tools are built using the target libraries, and are intended to
922 # run only in the target environment
923 #
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
927 #
928 target_tools="target-examples target-groff target-gperf target-rda"
929
930 ################################################################################
931
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}`
940
941 ################################################################################
942
943 srcname="gnu development package"
944
945 # This gets set non-empty for some net releases of packages.
946 appdirs=""
947
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
954 fi
955
956 # Find the build and target subdir names.
957 case ${build_alias} in
958 "") build_noncanonical=${build} ;;
959 *) build_noncanonical=${build_alias} ;;
960 esac
961
962 case ${host_alias} in
963 "") host_noncanonical=${build_noncanonical} ;;
964 *) host_noncanonical=${host_alias} ;;
965 esac
966
967 case ${target_alias} in
968 "") target_noncanonical=${host_noncanonical} ;;
969 *) target_noncanonical=${target_alias} ;;
970 esac
971
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=.
980 fi
981 # No prefix.
982 target_subdir=${target_noncanonical}
983
984
985 # Skipdirs are removed silently.
986 skipdirs=
987 # Noconfigdirs are removed loudly.
988 noconfigdirs=""
989
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"
995 fi
996
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"
1002 fi
1003
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.
1006
1007 case ${with_x} in
1008 yes | "") ;; # the default value for this tree is that X11 is available
1009 no)
1010 skipdirs="${skipdirs} tk itcl libgui"
1011 # We won't be able to build gdbtk without X.
1012 enable_gdbtk=no
1013 ;;
1014 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1015 esac
1016
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"
1020
1021 # Similarly, some are only suitable for cross toolchains.
1022 # Remove these if host=target.
1023 cross_only="target-libgloss target-newlib target-opcodes"
1024
1025 case $is_cross_compiler in
1026 no) skipdirs="${skipdirs} ${cross_only}" ;;
1027 yes) skipdirs="${skipdirs} ${native_only}" ;;
1028 esac
1029
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
1036 fi
1037 fi
1038
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
1044
1045 # Configure extra directories which are host specific
1046
1047 case "${host}" in
1048 *-cygwin*)
1049 configdirs="$configdirs libtermcap" ;;
1050 esac
1051
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=
1055
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.
1059
1060 case "${host}" in
1061 hppa*64*-*-*)
1062 noconfigdirs="$noconfigdirs byacc"
1063 ;;
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"
1066 ;;
1067 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1068 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1069 ;;
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"
1073 ;;
1074 i[3456789]86-*-beos*)
1075 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1076 ;;
1077 *-*-cygwin*)
1078 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1079 ;;
1080 *-*-netbsd*)
1081 noconfigdirs="$noconfigdirs rcs"
1082 ;;
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"
1085 ;;
1086 powerpc-*-beos*)
1087 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1088 ;;
1089 esac
1090
1091
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
1098 fi
1099
1100 if test "${ENABLE_LIBADA}" != "yes" ; then
1101 noconfigdirs="$noconfigdirs target-libada"
1102 noconfigdirs="$noconfigdirs gnattools"
1103 fi
1104
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
1111 fi
1112
1113 if test "${ENABLE_LIBSSP}" != "yes" ; then
1114 noconfigdirs="$noconfigdirs target-libssp"
1115 fi
1116
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"
1121 :
1122 else
1123
1124 case "${target}" in
1125 i?86-* | x86_64-* )
1126 enable_libgcc_math=yes ;;
1127 *)
1128 enable_libgcc_math=no ;;
1129 esac
1130
1131 fi
1132
1133 if test "${enable_libgcc_math}" != "yes"; then
1134 noconfigdirs="$noconfigdirs target-libgcc-math"
1135 fi
1136
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=
1146 ;;
1147 no)
1148 # Make sure we get it printed in the list of not supported target libs.
1149 noconfigdirs="$noconfigdirs ${libgcj}"
1150 ;;
1151 esac
1152
1153
1154 # Allow --disable-libmudflap to exclude target-libmudflap
1155 case $enable_libmudflap in
1156 yes)
1157 ;;
1158 no)
1159 noconfigdirs="$noconfigdirs target-libmudflap"
1160 ;;
1161 "")
1162 case "${target}" in
1163 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1164 # Enable libmudflap by default in GNU and friends.
1165 ;;
1166 *-*-freebsd*)
1167 # Enable libmudflap by default in FreeBSD.
1168 ;;
1169 *)
1170 # Disable it by default everywhere else.
1171 noconfigdirs="$noconfigdirs target-libmudflap"
1172 ;;
1173 esac
1174 esac
1175
1176 # Allow --disable-libgomp to exclude target-libgomp
1177 case $enable_libgomp in
1178 yes)
1179 ;;
1180 no)
1181 noconfigdirs="$noconfigdirs target-libgomp"
1182 ;;
1183 "")
1184 # Enable libgomp by default on hosted POSIX systems.
1185 case "${target}" in
1186 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1187 ;;
1188 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1189 ;;
1190 *-*-solaris2* | *-*-sysv4* | *-*-irix* | *-*-osf* | *-*-hpux*)
1191 ;;
1192 *-*-darwin* | *-*-aix*)
1193 ;;
1194 *)
1195 noconfigdirs="$noconfigdirs target-libgomp"
1196 ;;
1197 esac
1198 esac
1199
1200
1201 case "${target}" in
1202 *-*-chorusos)
1203 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1204 ;;
1205 powerpc-*-darwin*)
1206 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1207 noconfigdirs="$noconfigdirs sim target-rda"
1208 ;;
1209 *-*-darwin*)
1210 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1211 noconfigdirs="$noconfigdirs sim target-rda"
1212 noconfigdirs="$noconfigdirs ${libgcj}"
1213 ;;
1214 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1215 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1216 ;;
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
1222 fi
1223
1224 # Skip some stuff that's unsupported on some FreeBSD configurations.
1225 case "${target}" in
1226 i*86-*-*) ;;
1227 alpha*-*-*) ;;
1228 *)
1229 noconfigdirs="$noconfigdirs ${libgcj}"
1230 ;;
1231 esac
1232 ;;
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"
1239 ;;
1240 *-*-netbsd*)
1241 # Skip some stuff on all NetBSD configurations.
1242 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1243
1244 # Skip some stuff that's unsupported on some NetBSD configurations.
1245 case "${target}" in
1246 i*86-*-netbsdelf*) ;;
1247 arm*-*-netbsdelf*) ;;
1248 *)
1249 noconfigdirs="$noconfigdirs ${libgcj}"
1250 ;;
1251 esac
1252 ;;
1253 *-*-netware*)
1254 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1255 ;;
1256 *-*-rtems*)
1257 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1258 ;;
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"
1262 ;;
1263 *-*-uclinux*)
1264 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1265 ;;
1266 *-*-vxworks*)
1267 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1268 ;;
1269 m32c-*-*)
1270 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1271 ;;
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"
1277 ;;
1278 alpha*-*-*vms*)
1279 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1280 ;;
1281 alpha*-*-linux*)
1282 # newlib is not 64 bit ready
1283 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1284 ;;
1285 alpha*-*-*)
1286 # newlib is not 64 bit ready
1287 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1288 ;;
1289 am33_2.0-*-linux*)
1290 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1291 ;;
1292 sh-*-linux*)
1293 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1294 ;;
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"
1307 ;;
1308 esac
1309 ;;
1310 arc-*-*)
1311 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1312 ;;
1313 arm-semi-aof )
1314 ;;
1315 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1316 noconfigdirs="$noconfigdirs ${libgcj}"
1317 ;;
1318 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1319 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1320 ;;
1321 arm*-*-linux-gnueabi)
1322 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1323 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1324 ;;
1325 arm*-*-symbianelf*)
1326 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1327 ;;
1328 arm-*-pe*)
1329 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1330 ;;
1331 thumb-*-coff)
1332 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1333 ;;
1334 thumb-*-elf)
1335 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1336 ;;
1337 thumb-*-pe)
1338 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1339 ;;
1340 arm-*-riscix*)
1341 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1342 ;;
1343 avr-*-*)
1344 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1345 ;;
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"
1350 fi
1351 ;;
1352 c4x-*-* | tic4x-*-*)
1353 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1354 ;;
1355 c54x*-*-* | tic54x-*-*)
1356 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1357 ;;
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";;
1369 *)
1370 unsupported_languages="$unsupported_languages fortran"
1371 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1372 esac
1373 ;;
1374 crx-*-*)
1375 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1376 ;;
1377 d10v-*-*)
1378 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1379 ;;
1380 d30v-*-*)
1381 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1382 ;;
1383 fr30-*-elf*)
1384 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1385 ;;
1386 frv-*-*)
1387 noconfigdirs="$noconfigdirs ${libgcj}"
1388 ;;
1389 h8300*-*-*)
1390 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1391 ;;
1392 h8500-*-*)
1393 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1394 ;;
1395 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1396 ;;
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"
1402 ;;
1403 parisc*-*-linux* | hppa*-*-linux*)
1404 ;;
1405 hppa*-*-*elf* | \
1406 hppa*-*-lites* | \
1407 hppa*-*-openbsd* | \
1408 hppa*64*-*-*)
1409 noconfigdirs="$noconfigdirs ${libgcj}"
1410 ;;
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}"
1415 ;;
1416 i960-*-*)
1417 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1418 ;;
1419 ia64*-*-elf*)
1420 # No gdb support yet.
1421 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1422 ;;
1423 ia64*-**-hpux*)
1424 # No gdb or ld support yet.
1425 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1426 ;;
1427 i370-*-opened*)
1428 ;;
1429 i[3456789]86-*-coff | i[3456789]86-*-elf)
1430 noconfigdirs="$noconfigdirs ${libgcj}"
1431 ;;
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
1439
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"
1444 fi
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.
1450 ;;
1451 i[3456789]86-*-mingw32*)
1452 target_configdirs="$target_configdirs target-mingw"
1453 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1454
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"
1459 ;;
1460 esac
1461 ;;
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."
1470 fi
1471
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"
1476 ;;
1477 esac
1478 ;;
1479 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1480 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1481 ;;
1482 i[3456789]86-*-pe)
1483 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1484 ;;
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}"
1489 ;;
1490 i[3456789]86-*-sco*)
1491 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1492 ;;
1493 i[3456789]86-*-solaris2*)
1494 noconfigdirs="$noconfigdirs target-libgloss"
1495 ;;
1496 i[3456789]86-*-sysv4*)
1497 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1498 ;;
1499 i[3456789]86-*-beos*)
1500 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1501 ;;
1502 i[3456789]86-*-rdos*)
1503 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1504 ;;
1505 m32r-*-*)
1506 noconfigdirs="$noconfigdirs ${libgcj}"
1507 ;;
1508 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1509 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1510 ;;
1511 m68k-*-elf*)
1512 noconfigdirs="$noconfigdirs ${libgcj}"
1513 ;;
1514 m68k-*-coff*)
1515 noconfigdirs="$noconfigdirs ${libgcj}"
1516 ;;
1517 mcore-*-pe*)
1518 # The EPOC C++ environment does not support exceptions or rtti,
1519 # and so building libstdc++-v3 tends not to always work.
1520 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1521 ;;
1522 mmix-*-*)
1523 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1524 unsupported_languages="$unsupported_languages fortran java"
1525 ;;
1526 mn10200-*-*)
1527 noconfigdirs="$noconfigdirs ${libgcj}"
1528 ;;
1529 mn10300-*-*)
1530 noconfigdirs="$noconfigdirs ${libgcj}"
1531 ;;
1532 mt-*-*)
1533 noconfigdirs="$noconfigdirs sim"
1534 ;;
1535 powerpc-*-aix*)
1536 # copied from rs6000-*-* entry
1537 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1538 ;;
1539 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1540 target_configdirs="$target_configdirs target-winsup"
1541 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1542 # always build newlib.
1543 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1544 ;;
1545 # This is temporary until we can link against shared libraries
1546 powerpcle-*-solaris*)
1547 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1548 ;;
1549 powerpc-*-beos*)
1550 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1551 ;;
1552 powerpc-*-eabi)
1553 noconfigdirs="$noconfigdirs ${libgcj}"
1554 ;;
1555 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1556 ;;
1557 rs6000-*-lynxos*)
1558 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1559 ;;
1560 rs6000-*-aix*)
1561 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1562 ;;
1563 rs6000-*-*)
1564 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1565 ;;
1566 m68k-apollo-*)
1567 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1568 ;;
1569 mips*-*-irix5*)
1570 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1571 ;;
1572 mips*-*-irix6*)
1573 # Linking libjava exceeds command-line length limits on at least
1574 # IRIX 6.2, but not on IRIX 6.5.
1575 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1576 # <oldham@codesourcery.com>
1577 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1578 ;;
1579 mips*-dec-bsd*)
1580 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1581 ;;
1582 mips*-*-bsd*)
1583 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1584 ;;
1585 mipstx39-*-*)
1586 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1587 ;;
1588 mips64*-*-linux*)
1589 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1590 ;;
1591 mips*-*-linux*)
1592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1593 ;;
1594 mips*-*-*)
1595 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1596 ;;
1597 romp-*-*)
1598 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1599 ;;
1600 sh-*-* | sh64-*-*)
1601 case "${host}" in
1602 i[3456789]86-*-vsta) ;; # don't add gprof back in
1603 i[3456789]86-*-go32*) ;; # don't add gprof back in
1604 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1605 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1606 esac
1607 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1608 ;;
1609 sparc-*-elf*)
1610 noconfigdirs="$noconfigdirs ${libgcj}"
1611 ;;
1612 sparc64-*-elf*)
1613 noconfigdirs="$noconfigdirs ${libgcj}"
1614 ;;
1615 sparclite-*-*)
1616 noconfigdirs="$noconfigdirs ${libgcj}"
1617 ;;
1618 sparc-*-sunos4*)
1619 noconfigdirs="$noconfigdirs ${libgcj}"
1620 if test x${is_cross_compiler} != xno ; then
1621 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1622 else
1623 use_gnu_ld=no
1624 fi
1625 ;;
1626 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1627 noconfigdirs="$noconfigdirs ${libgcj}"
1628 ;;
1629 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1630 ;;
1631 v810-*-*)
1632 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1633 ;;
1634 v850-*-*)
1635 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1636 ;;
1637 v850e-*-*)
1638 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1639 ;;
1640 v850ea-*-*)
1641 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1642 ;;
1643 vax-*-vms)
1644 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1645 ;;
1646 vax-*-*)
1647 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1648 ;;
1649 xtensa-*-*)
1650 noconfigdirs="$noconfigdirs ${libgcj}"
1651 ;;
1652 ip2k-*-*)
1653 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1654 ;;
1655 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1657 ;;
1658 *-*-lynxos*)
1659 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1660 ;;
1661 *-*-*)
1662 noconfigdirs="$noconfigdirs ${libgcj}"
1663 ;;
1664 esac
1665
1666 # If we aren't building newlib, then don't build libgloss, since libgloss
1667 # depends upon some newlib header files.
1668 case "${noconfigdirs}" in
1669 *target-libgloss*) ;;
1670 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1671 esac
1672
1673 # Work in distributions that contain no compiler tools, like Autoconf.
1674 tentative_cc=""
1675 host_makefile_frag=/dev/null
1676 if test -d ${srcdir}/config ; then
1677 case "${host}" in
1678 m68k-hp-hpux*)
1679 # Avoid "too much defining" errors from HPUX compiler.
1680 tentative_cc="cc -Wp,-H256000"
1681 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1682 # If it's HP/UX ar, this should be harmless.
1683 RANLIB="ar ts"
1684 ;;
1685 m68k-apollo-sysv*)
1686 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1687 ;;
1688 m68k-apollo-bsd*)
1689 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1690 # chokes on bfd, the compiler won't let you assign integers to enums, and
1691 # other problems. Defining CC to gcc is a questionable way to say "don't use
1692 # the apollo compiler" (the preferred version of GCC could be called cc,
1693 # or whatever), but I'm not sure leaving CC as cc is any better...
1694 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1695 # Used to have BISON=yacc.
1696 tentative_cc=gcc
1697 ;;
1698 m88k-dg-dgux*)
1699 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1700 ;;
1701 m88k-harris-cxux*)
1702 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1703 tentative_cc="cc -Xa"
1704 host_makefile_frag="config/mh-cxux"
1705 ;;
1706 m88k-motorola-sysv*)
1707 ;;
1708 mips*-dec-ultrix*)
1709 tentative_cc="cc -Wf,-XNg1000"
1710 host_makefile_frag="config/mh-decstation"
1711 ;;
1712 mips*-nec-sysv4*)
1713 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1714 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1715 host_makefile_frag="config/mh-necv4"
1716 ;;
1717 mips*-sgi-irix4*)
1718 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1719 # environment. Also bump switch table size so that cp-parse will
1720 # compile. Bump string length limit so linker builds.
1721 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1722 ;;
1723 mips*-*-sysv4*)
1724 host_makefile_frag="config/mh-sysv4"
1725 ;;
1726 mips*-*-sysv*)
1727 # This is for a MIPS running RISC/os 4.52C.
1728
1729 # This is needed for GDB, but needs to be in the top-level make because
1730 # if a library is compiled with the bsd headers and gets linked with the
1731 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1732 # a different size).
1733 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1734 # known except to select the sysv environment. Could we use /proc instead?
1735 # These "sysv environments" and "bsd environments" often end up being a pain.
1736 #
1737 # This is not part of CFLAGS because perhaps not all C compilers have this
1738 # option.
1739 tentative_cc="cc -systype sysv"
1740 ;;
1741 i370-ibm-opened*)
1742 tentative_cc="c89"
1743 ;;
1744 i[3456789]86-*-sysv5*)
1745 host_makefile_frag="config/mh-sysv5"
1746 ;;
1747 i[3456789]86-*-dgux*)
1748 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1749 host_makefile_frag="config/mh-dgux386"
1750 ;;
1751 i[3456789]86-ncr-sysv4.3*)
1752 # The MetaWare compiler will generate a copyright message unless you
1753 # turn it off by adding the -Hnocopyr flag.
1754 tentative_cc="cc -Hnocopyr"
1755 ;;
1756 i[3456789]86-ncr-sysv4*)
1757 # for an NCR 3000 (i486/SVR4) system.
1758 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1759 # This compiler not only emits obnoxious copyright messages every time
1760 # you run it, but it chokes and dies on a whole bunch of GNU source
1761 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1762 tentative_cc="/usr/ccs/ATT/cc"
1763 host_makefile_frag="config/mh-ncr3000"
1764 ;;
1765 i[3456789]86-*-sco3.2v5*)
1766 ;;
1767 i[3456789]86-*-sco*)
1768 # The native C compiler botches some simple uses of const. Unfortunately,
1769 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1770 tentative_cc="cc -Dconst="
1771 host_makefile_frag="config/mh-sco"
1772 ;;
1773 i[3456789]86-*-udk*)
1774 host_makefile_frag="config/mh-sysv5"
1775 ;;
1776 i[3456789]86-*-solaris2*)
1777 host_makefile_frag="config/mh-sysv4"
1778 ;;
1779 i[3456789]86-*-msdosdjgpp*)
1780 host_makefile_frag="config/mh-djgpp"
1781 ;;
1782 *-cygwin*)
1783 host_makefile_frag="config/mh-cygwin"
1784 ;;
1785 *-mingw32*)
1786 ;;
1787 *-interix*)
1788 host_makefile_frag="config/mh-interix"
1789 ;;
1790 vax-*-ultrix2*)
1791 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1792 tentative_cc=gcc
1793 ;;
1794 *-*-solaris2*)
1795 host_makefile_frag="config/mh-solaris"
1796 ;;
1797 m68k-sun-sunos*)
1798 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1799 # without overflowing the jump tables (-J says to use a 32 bit table)
1800 tentative_cc="cc -J"
1801 ;;
1802 *-hp-hpux*)
1803 tentative_cc="cc -Wp,-H256000"
1804 ;;
1805 *-*-hiux*)
1806 tentative_cc="cc -Wp,-H256000"
1807 ;;
1808 rs6000-*-lynxos*)
1809 # /bin/cc is less than useful for our purposes. Always use GCC
1810 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1811 host_makefile_frag="config/mh-lynxrs6k"
1812 ;;
1813 powerpc-*-darwin*)
1814 host_makefile_frag="config/mh-ppc-darwin"
1815 ;;
1816 powerpc-*-aix*)
1817 host_makefile_frag="config/mh-ppc-aix"
1818 ;;
1819 rs6000-*-aix*)
1820 host_makefile_frag="config/mh-ppc-aix"
1821 ;;
1822 *-*-lynxos*)
1823 # /bin/cc is less than useful for our purposes. Always use GCC
1824 tentative_cc="/bin/gcc"
1825 ;;
1826 *-*-sysv4*)
1827 host_makefile_frag="config/mh-sysv4"
1828 ;;
1829 # This is placed last to prevent interfering with the cases above.
1830 i[3456789]86-*-*)
1831 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1832 host_makefile_frag="config/mh-x86omitfp"
1833 ;;
1834 esac
1835 fi
1836
1837 # If we aren't going to be using gcc, see if we can extract a definition
1838 # of CC from the fragment.
1839 # Actually, use the 'pre-extracted' version above.
1840 if test -z "${CC}" && test "${build}" = "${host}" ; then
1841 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1842 found=
1843 for dir in $PATH; do
1844 test -z "$dir" && dir=.
1845 if test -f $dir/gcc; then
1846 found=yes
1847 break
1848 fi
1849 done
1850 IFS="$save_ifs"
1851 if test -z "${found}" && test -n "${tentative_cc}" ; then
1852 CC=$tentative_cc
1853 fi
1854 fi
1855
1856 if test "${build}" != "${host}" ; then
1857 # If we are doing a Canadian Cross, in which the host and build systems
1858 # are not the same, we set reasonable default values for the tools.
1859
1860 CC=${CC-${host_alias}-gcc}
1861 CFLAGS=${CFLAGS-"-g -O2"}
1862 CXX=${CXX-${host_alias}-c++}
1863 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1864 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1865
1866 else
1867 # Set reasonable default values for some tools even if not Canadian.
1868 # Of course, these are different reasonable default values, originally
1869 # specified directly in the Makefile.
1870 # We don't export, so that autoconf can do its job.
1871 # Note that all these settings are above the fragment inclusion point
1872 # in Makefile.in, so can still be overridden by fragments.
1873 # This is all going to change when we autoconfiscate...
1874
1875 CC_FOR_BUILD="\$(CC)"
1876 # Extract the first word of "gcc", so it can be a program name with args.
1877 set dummy gcc; ac_word=$2
1878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1879 echo "configure:1880: checking for $ac_word" >&5
1880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1882 else
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC="$CC" # Let the user override the test.
1885 else
1886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1887 ac_dummy="$PATH"
1888 for ac_dir in $ac_dummy; do
1889 test -z "$ac_dir" && ac_dir=.
1890 if test -f $ac_dir/$ac_word; then
1891 ac_cv_prog_CC="gcc"
1892 break
1893 fi
1894 done
1895 IFS="$ac_save_ifs"
1896 fi
1897 fi
1898 CC="$ac_cv_prog_CC"
1899 if test -n "$CC"; then
1900 echo "$ac_t""$CC" 1>&6
1901 else
1902 echo "$ac_t""no" 1>&6
1903 fi
1904
1905 if test -z "$CC"; then
1906 # Extract the first word of "cc", so it can be a program name with args.
1907 set dummy cc; ac_word=$2
1908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1909 echo "configure:1910: checking for $ac_word" >&5
1910 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1912 else
1913 if test -n "$CC"; then
1914 ac_cv_prog_CC="$CC" # Let the user override the test.
1915 else
1916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1917 ac_prog_rejected=no
1918 ac_dummy="$PATH"
1919 for ac_dir in $ac_dummy; do
1920 test -z "$ac_dir" && ac_dir=.
1921 if test -f $ac_dir/$ac_word; then
1922 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1923 ac_prog_rejected=yes
1924 continue
1925 fi
1926 ac_cv_prog_CC="cc"
1927 break
1928 fi
1929 done
1930 IFS="$ac_save_ifs"
1931 if test $ac_prog_rejected = yes; then
1932 # We found a bogon in the path, so make sure we never use it.
1933 set dummy $ac_cv_prog_CC
1934 shift
1935 if test $# -gt 0; then
1936 # We chose a different compiler from the bogus one.
1937 # However, it has the same basename, so the bogon will be chosen
1938 # first if we set CC to just the basename; use the full file name.
1939 shift
1940 set dummy "$ac_dir/$ac_word" "$@"
1941 shift
1942 ac_cv_prog_CC="$@"
1943 fi
1944 fi
1945 fi
1946 fi
1947 CC="$ac_cv_prog_CC"
1948 if test -n "$CC"; then
1949 echo "$ac_t""$CC" 1>&6
1950 else
1951 echo "$ac_t""no" 1>&6
1952 fi
1953
1954 if test -z "$CC"; then
1955 case "`uname -s`" in
1956 *win32* | *WIN32*)
1957 # Extract the first word of "cl", so it can be a program name with args.
1958 set dummy cl; ac_word=$2
1959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1960 echo "configure:1961: checking for $ac_word" >&5
1961 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1963 else
1964 if test -n "$CC"; then
1965 ac_cv_prog_CC="$CC" # Let the user override the test.
1966 else
1967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1968 ac_dummy="$PATH"
1969 for ac_dir in $ac_dummy; do
1970 test -z "$ac_dir" && ac_dir=.
1971 if test -f $ac_dir/$ac_word; then
1972 ac_cv_prog_CC="cl"
1973 break
1974 fi
1975 done
1976 IFS="$ac_save_ifs"
1977 fi
1978 fi
1979 CC="$ac_cv_prog_CC"
1980 if test -n "$CC"; then
1981 echo "$ac_t""$CC" 1>&6
1982 else
1983 echo "$ac_t""no" 1>&6
1984 fi
1985 ;;
1986 esac
1987 fi
1988 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1989 fi
1990
1991 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1992 echo "configure:1993: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1993
1994 ac_ext=c
1995 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1998 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1999 cross_compiling=$ac_cv_prog_cc_cross
2000
2001 cat > conftest.$ac_ext << EOF
2002
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2005
2006 main(){return(0);}
2007 EOF
2008 if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2009 ac_cv_prog_cc_works=yes
2010 # If we can't run a trivial program, we are probably using a cross compiler.
2011 if (./conftest; exit) 2>/dev/null; then
2012 ac_cv_prog_cc_cross=no
2013 else
2014 ac_cv_prog_cc_cross=yes
2015 fi
2016 else
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2019 ac_cv_prog_cc_works=no
2020 fi
2021 rm -fr conftest*
2022 ac_ext=c
2023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2024 ac_cpp='$CPP $CPPFLAGS'
2025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2027 cross_compiling=$ac_cv_prog_cc_cross
2028
2029 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2030 if test $ac_cv_prog_cc_works = no; then
2031 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2032 fi
2033 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2034 echo "configure:2035: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2035 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2036 cross_compiling=$ac_cv_prog_cc_cross
2037
2038 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2039 echo "configure:2040: checking whether we are using GNU C" >&5
2040 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2041 echo $ac_n "(cached) $ac_c" 1>&6
2042 else
2043 cat > conftest.c <<EOF
2044 #ifdef __GNUC__
2045 yes;
2046 #endif
2047 EOF
2048 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2049 ac_cv_prog_gcc=yes
2050 else
2051 ac_cv_prog_gcc=no
2052 fi
2053 fi
2054
2055 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2056
2057 if test $ac_cv_prog_gcc = yes; then
2058 GCC=yes
2059 else
2060 GCC=
2061 fi
2062
2063 ac_test_CFLAGS="${CFLAGS+set}"
2064 ac_save_CFLAGS="$CFLAGS"
2065 CFLAGS=
2066 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2067 echo "configure:2068: checking whether ${CC-cc} accepts -g" >&5
2068 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2070 else
2071 echo 'void f(){}' > conftest.c
2072 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2073 ac_cv_prog_cc_g=yes
2074 else
2075 ac_cv_prog_cc_g=no
2076 fi
2077 rm -f conftest*
2078
2079 fi
2080
2081 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2082 if test "$ac_test_CFLAGS" = set; then
2083 CFLAGS="$ac_save_CFLAGS"
2084 elif test $ac_cv_prog_cc_g = yes; then
2085 if test "$GCC" = yes; then
2086 CFLAGS="-g -O2"
2087 else
2088 CFLAGS="-g"
2089 fi
2090 else
2091 if test "$GCC" = yes; then
2092 CFLAGS="-O2"
2093 else
2094 CFLAGS=
2095 fi
2096 fi
2097
2098
2099 # We must set the default linker to the linker used by gcc for the correct
2100 # operation of libtool. If LD is not defined and we are using gcc, try to
2101 # set the LD default to the ld used by gcc.
2102 if test -z "$LD"; then
2103 if test "$GCC" = yes; then
2104 case $build in
2105 *-*-mingw*)
2106 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2107 *)
2108 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2109 esac
2110 case $gcc_prog_ld in
2111 # Accept absolute paths.
2112 [\\/]* | [A-Za-z]:[\\/]*)
2113 LD="$gcc_prog_ld" ;;
2114 esac
2115 fi
2116 fi
2117
2118 CXX=${CXX-"c++"}
2119 CFLAGS=${CFLAGS-"-g"}
2120 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2121 fi
2122
2123 if test $host != $build; then
2124 ac_tool_prefix=${host_alias}-
2125 else
2126 ac_tool_prefix=
2127 fi
2128
2129
2130
2131 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2132 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2134 echo "configure:2135: checking for $ac_word" >&5
2135 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2137 else
2138 if test -n "$GNATBIND"; then
2139 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2140 else
2141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2142 ac_dummy="$PATH"
2143 for ac_dir in $ac_dummy; do
2144 test -z "$ac_dir" && ac_dir=.
2145 if test -f $ac_dir/$ac_word; then
2146 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2147 break
2148 fi
2149 done
2150 IFS="$ac_save_ifs"
2151 fi
2152 fi
2153 GNATBIND="$ac_cv_prog_GNATBIND"
2154 if test -n "$GNATBIND"; then
2155 echo "$ac_t""$GNATBIND" 1>&6
2156 else
2157 echo "$ac_t""no" 1>&6
2158 fi
2159
2160
2161 if test -z "$ac_cv_prog_GNATBIND"; then
2162 if test -n "$ac_tool_prefix"; then
2163 # Extract the first word of "gnatbind", so it can be a program name with args.
2164 set dummy gnatbind; ac_word=$2
2165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2166 echo "configure:2167: checking for $ac_word" >&5
2167 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2169 else
2170 if test -n "$GNATBIND"; then
2171 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2172 else
2173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2174 ac_dummy="$PATH"
2175 for ac_dir in $ac_dummy; do
2176 test -z "$ac_dir" && ac_dir=.
2177 if test -f $ac_dir/$ac_word; then
2178 ac_cv_prog_GNATBIND="gnatbind"
2179 break
2180 fi
2181 done
2182 IFS="$ac_save_ifs"
2183 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2184 fi
2185 fi
2186 GNATBIND="$ac_cv_prog_GNATBIND"
2187 if test -n "$GNATBIND"; then
2188 echo "$ac_t""$GNATBIND" 1>&6
2189 else
2190 echo "$ac_t""no" 1>&6
2191 fi
2192
2193 else
2194 GNATBIND="no"
2195 fi
2196 fi
2197
2198 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2199 echo "configure:2200: checking whether compiler driver understands Ada" >&5
2200 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2202 else
2203 cat >conftest.adb <<EOF
2204 procedure conftest is begin null; end conftest;
2205 EOF
2206 acx_cv_cc_gcc_supports_ada=no
2207 # There is a bug in old released versions of GCC which causes the
2208 # driver to exit successfully when the appropriate language module
2209 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2210 # Therefore we must check for the error message as well as an
2211 # unsuccessful exit.
2212 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2213 # given a .adb file, but produce no object file. So we must check
2214 # if an object file was really produced to guard against this.
2215 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2216 if test x"$errors" = x && test -f conftest.$ac_objext; then
2217 acx_cv_cc_gcc_supports_ada=yes
2218 fi
2219 rm -f conftest.*
2220 fi
2221
2222 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2223
2224 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2225 have_gnat=yes
2226 else
2227 have_gnat=no
2228 fi
2229
2230 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2231 echo "configure:2232: checking how to compare bootstrapped objects" >&5
2232 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2234 else
2235 echo abfoo >t1
2236 echo cdfoo >t2
2237 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2238 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2239 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2240 :
2241 else
2242 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2243 fi
2244 fi
2245 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2246 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2247 :
2248 else
2249 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2250 fi
2251 fi
2252 rm t1 t2
2253
2254 fi
2255
2256 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2257 do_compare="$gcc_cv_prog_cmp_skip"
2258
2259
2260
2261 # Check for GMP and MPFR
2262 gmplibs=
2263 gmpinc=
2264 have_gmp=yes
2265 # Specify a location for mpfr
2266 # check for this first so it ends up on the link line before gmp.
2267 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2268 if test "${with_mpfr_dir+set}" = set; then
2269 withval="$with_mpfr_dir"
2270 :
2271 fi
2272
2273
2274 if test "x$with_mpfr_dir" != x; then
2275 gmpinc="-I$with_mpfr_dir"
2276 gmplibs="$with_mpfr_dir/libmpfr.a"
2277 else
2278 gmplibs="-lmpfr"
2279 fi
2280
2281 # Check whether --with-mpfr or --without-mpfr was given.
2282 if test "${with_mpfr+set}" = set; then
2283 withval="$with_mpfr"
2284 :
2285 fi
2286
2287
2288 if test "x$with_mpfr" != x; then
2289 gmplibs="-L$with_mpfr/lib $gmplibs"
2290 gmpinc="-I$with_mpfr/include"
2291 fi
2292
2293 # Specify a location for gmp
2294 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2295 if test "${with_gmp_dir+set}" = set; then
2296 withval="$with_gmp_dir"
2297 :
2298 fi
2299
2300
2301 if test "x$with_gmp_dir" != x; then
2302 gmpinc="$gmpinc -I$with_gmp_dir"
2303 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2304 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2305 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2306 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2307 fi
2308 # One of the later tests will catch the error if neither library is present.
2309 else
2310 gmplibs="$gmplibs -lgmp"
2311 fi
2312
2313 # Check whether --with-gmp or --without-gmp was given.
2314 if test "${with_gmp+set}" = set; then
2315 withval="$with_gmp"
2316 :
2317 fi
2318
2319
2320 if test "x$with_gmp" != x; then
2321 gmplibs="-L$with_gmp/lib $gmplibs"
2322 gmpinc="-I$with_gmp/include $gmpinc"
2323 fi
2324
2325 saved_CFLAGS="$CFLAGS"
2326 CFLAGS="$CFLAGS $gmpinc"
2327 # Check GMP actually works
2328 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2329 echo "configure:2330: checking for correct version of gmp.h" >&5
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 #include "gmp.h"
2334 int main() {
2335
2336 #if __GNU_MP_VERSION < 3
2337 choke me
2338 #endif
2339
2340 ; return 0; }
2341 EOF
2342 if { (eval echo configure:2343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2343 rm -rf conftest*
2344 echo "$ac_t""yes" 1>&6
2345 else
2346 echo "configure: failed program was:" >&5
2347 cat conftest.$ac_ext >&5
2348 rm -rf conftest*
2349 echo "$ac_t""no" 1>&6; have_gmp=no
2350 fi
2351 rm -f conftest*
2352
2353 if test x"$have_gmp" = xyes; then
2354 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2355 echo "configure:2356: checking for MPFR" >&5
2356
2357 saved_LIBS="$LIBS"
2358 LIBS="$LIBS $gmplibs"
2359 cat > conftest.$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2362 #include <gmp.h>
2363 #include <mpfr.h>
2364 int main() {
2365 mpfr_t n; mpfr_init(n);
2366 ; return 0; }
2367 EOF
2368 if { (eval echo configure:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2369 rm -rf conftest*
2370 echo "$ac_t""yes" 1>&6
2371 else
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2374 rm -rf conftest*
2375 echo "$ac_t""no" 1>&6; have_gmp=no
2376 fi
2377 rm -f conftest*
2378 LIBS="$saved_LIBS"
2379 CFLAGS="$saved_CFLAGS"
2380 fi
2381
2382 # Flags needed for both GMP and/or MPFR
2383
2384
2385
2386 # By default, C is the only stage 1 language.
2387 stage1_languages=c
2388
2389
2390 # Figure out what language subdirectories are present.
2391 # Look if the user specified --enable-languages="..."; if not, use
2392 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2393 # go away some day.
2394 # NB: embedded tabs in this IF block -- do not untabify
2395 if test -d ${srcdir}/gcc; then
2396 if test x"${enable_languages+set}" != xset; then
2397 if test x"${LANGUAGES+set}" = xset; then
2398 enable_languages="${LANGUAGES}"
2399 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2400 else
2401 enable_languages=all
2402 fi
2403 else
2404 if test x"${enable_languages}" = x ||
2405 test x"${enable_languages}" = xyes;
2406 then
2407 echo configure.in: --enable-languages needs at least one language argument 1>&2
2408 exit 1
2409 fi
2410 fi
2411 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2412
2413 # 'f95' is the old name for the 'fortran' language. We issue a warning
2414 # and make the substitution.
2415 case ,${enable_languages}, in
2416 *,f95,*)
2417 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2418 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2419 ;;
2420 esac
2421
2422 # First scan to see if an enabled language requires some other language.
2423 # We assume that a given config-lang.in will list all the language
2424 # front ends it requires, even if some are required indirectly.
2425 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2426 case ${lang_frag} in
2427 ..) ;;
2428 # The odd quoting in the next line works around
2429 # an apparent bug in bash 1.12 on linux.
2430 ${srcdir}/gcc/[*]/config-lang.in) ;;
2431 *)
2432 # From the config-lang.in, get $language, $lang_requires
2433 language=
2434 lang_requires=
2435 . ${lang_frag}
2436 for other in ${lang_requires} ; do
2437 case ,${enable_languages}, in
2438 *,$other,*) ;;
2439 *,all,*) ;;
2440 *,$language,*)
2441 echo " \`$other' language required by \`$language'; enabling" 1>&2
2442 enable_languages="${enable_languages},${other}"
2443 ;;
2444 esac
2445 done
2446 ;;
2447 esac
2448 done
2449
2450 new_enable_languages=c
2451 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2452 potential_languages=c
2453
2454 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2455 case ${lang_frag} in
2456 ..) ;;
2457 # The odd quoting in the next line works around
2458 # an apparent bug in bash 1.12 on linux.
2459 ${srcdir}/gcc/[*]/config-lang.in) ;;
2460 *)
2461 # From the config-lang.in, get $language, $target_libs,
2462 # $lang_dirs, $boot_language, and $build_by_default
2463 language=
2464 target_libs=
2465 lang_dirs=
2466 boot_language=
2467 build_by_default=
2468 need_gmp=
2469 . ${lang_frag}
2470 potential_languages="${potential_languages},${language}"
2471 # This is quite sensitive to the ordering of the case statement arms.
2472 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2473 *::*:*)
2474 echo "${lang_frag} doesn't set \$language." 1>&2
2475 exit 1
2476 ;;
2477 *:ada:no:*)
2478 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2479 add_this_lang=no
2480 ;;
2481 *,${language},*:*:*:*)
2482 # Language was explicitly selected; include it.
2483 add_this_lang=yes
2484 ;;
2485 *,all,*:*:*:no)
2486 # 'all' was selected, but this is not a default language
2487 # so do not include it.
2488 add_this_lang=no
2489 ;;
2490 *,all,*:*:*:*)
2491 # 'all' was selected and this is a default language; include it.
2492 add_this_lang=yes
2493 ;;
2494 *)
2495 add_this_lang=no
2496 ;;
2497 esac
2498
2499 # Disable languages that need GMP if it isn't available.
2500 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2501 *,${language},*:no:yes)
2502 # Specifically requested language; tell them.
2503 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2504 ;;
2505 *:no:yes)
2506 # Silently disable.
2507 add_this_lang=no
2508 ;;
2509 esac
2510
2511 # Disable a language that is unsupported by the target.
2512 case " $unsupported_languages " in
2513 *" $language "*)
2514 add_this_lang=no
2515 ;;
2516 esac
2517
2518 case $add_this_lang in
2519 no)
2520 # Remove language-dependent dirs.
2521 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2522 ;;
2523 *)
2524 new_enable_languages="$new_enable_languages,$language"
2525 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2526 case ${boot_language} in
2527 yes)
2528 # Add to (comma-separated) list of stage 1 languages.
2529 stage1_languages="${stage1_languages},${language}"
2530 ;;
2531 esac
2532 ;;
2533 esac
2534 ;;
2535 esac
2536 done
2537
2538 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2539 if test "x$missing_languages" != x; then
2540 { echo "configure: error:
2541 The following requested languages could not be built: ${missing_languages}
2542 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2543 fi
2544
2545 if test "x$new_enable_languages" != "x$enable_languages"; then
2546 echo The following languages will be built: ${new_enable_languages}
2547 fi
2548 enable_languages="$new_enable_languages"
2549 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2550 fi
2551
2552 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2553 # $build_configdirs and $target_configdirs.
2554 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2555
2556 notsupp=""
2557 for dir in . $skipdirs $noconfigdirs ; do
2558 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2559 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2560 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2561 if test -r $srcdir/$dirname/configure ; then
2562 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2563 true
2564 else
2565 notsupp="$notsupp $dir"
2566 fi
2567 fi
2568 fi
2569 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2570 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2571 if test -r $srcdir/$dirname/configure ; then
2572 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2573 true
2574 else
2575 notsupp="$notsupp $dir"
2576 fi
2577 fi
2578 fi
2579 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2580 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2581 if test -r $srcdir/$dirname/configure ; then
2582 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2583 true
2584 else
2585 notsupp="$notsupp $dir"
2586 fi
2587 fi
2588 fi
2589 done
2590
2591 # Sometimes the tools are distributed with libiberty but with no other
2592 # libraries. In that case, we don't want to build target-libiberty.
2593 if test -n "${target_configdirs}" ; then
2594 others=
2595 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2596 if test "$i" != "libiberty" ; then
2597 if test -r $srcdir/$i/configure ; then
2598 others=yes;
2599 break;
2600 fi
2601 fi
2602 done
2603 if test -z "${others}" ; then
2604 target_configdirs=
2605 fi
2606 fi
2607
2608 # Quietly strip out all directories which aren't configurable in this tree.
2609 # This relies on all configurable subdirectories being autoconfiscated, which
2610 # is now the case.
2611 build_configdirs_all="$build_configdirs"
2612 build_configdirs=
2613 for i in ${build_configdirs_all} ; do
2614 j=`echo $i | sed -e s/build-//g`
2615 if test -f ${srcdir}/$j/configure ; then
2616 build_configdirs="${build_configdirs} $i"
2617 fi
2618 done
2619
2620 configdirs_all="$configdirs"
2621 configdirs=
2622 for i in ${configdirs_all} ; do
2623 if test -f ${srcdir}/$i/configure ; then
2624 configdirs="${configdirs} $i"
2625 fi
2626 done
2627
2628 target_configdirs_all="$target_configdirs"
2629 target_configdirs=
2630 for i in ${target_configdirs_all} ; do
2631 j=`echo $i | sed -e s/target-//g`
2632 if test -f ${srcdir}/$j/configure ; then
2633 target_configdirs="${target_configdirs} $i"
2634 fi
2635 done
2636
2637 # Produce a warning message for the subdirs we can't configure.
2638 # This isn't especially interesting in the Cygnus tree, but in the individual
2639 # FSF releases, it's important to let people know when their machine isn't
2640 # supported by the one or two programs in a package.
2641
2642 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2643 # If $appdirs is non-empty, at least one of those directories must still
2644 # be configured, or we error out. (E.g., if the gas release supports a
2645 # specified target in some subdirs but not the gas subdir, we shouldn't
2646 # pretend that all is well.)
2647 if test -n "$appdirs" ; then
2648 for dir in $appdirs ; do
2649 if test -r $dir/Makefile.in ; then
2650 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2651 appdirs=""
2652 break
2653 fi
2654 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2655 appdirs=""
2656 break
2657 fi
2658 fi
2659 done
2660 if test -n "$appdirs" ; then
2661 echo "*** This configuration is not supported by this package." 1>&2
2662 exit 1
2663 fi
2664 fi
2665 # Okay, some application will build, or we don't care to check. Still
2666 # notify of subdirs not getting built.
2667 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2668 echo " ${notsupp}" 1>&2
2669 echo " (Any other directories should still work fine.)" 1>&2
2670 fi
2671
2672 case "$host" in
2673 *msdosdjgpp*)
2674 enable_gdbtk=no ;;
2675 esac
2676
2677 copy_dirs=
2678
2679 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2680 if test "${with_build_sysroot+set}" = set; then
2681 withval="$with_build_sysroot"
2682 if test x"$withval" != x ; then
2683 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2684 fi
2685 else
2686 SYSROOT_CFLAGS_FOR_TARGET=
2687 fi
2688
2689
2690
2691 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2692 # the named directory are copied to $(tooldir)/sys-include.
2693 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2694 if test x${is_cross_compiler} = xno ; then
2695 echo 1>&2 '***' --with-headers is only supported when cross compiling
2696 exit 1
2697 fi
2698 if test x"${with_headers}" != xyes ; then
2699 case "${exec_prefixoption}" in
2700 "") x=${prefix} ;;
2701 *) x=${exec_prefix} ;;
2702 esac
2703 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2704 fi
2705 fi
2706
2707 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2708 # the name directories are copied to $(tooldir)/lib. Multiple directories
2709 # are permitted.
2710 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2711 if test x${is_cross_compiler} = xno ; then
2712 echo 1>&2 '***' --with-libs is only supported when cross compiling
2713 exit 1
2714 fi
2715 if test x"${with_libs}" != xyes ; then
2716 # Copy the libraries in reverse order, so that files in the first named
2717 # library override files in subsequent libraries.
2718 case "${exec_prefixoption}" in
2719 "") x=${prefix} ;;
2720 *) x=${exec_prefix} ;;
2721 esac
2722 for l in ${with_libs}; do
2723 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2724 done
2725 fi
2726 fi
2727
2728 # Set with_gnu_as and with_gnu_ld as appropriate.
2729 #
2730 # This is done by determining whether or not the appropriate directory
2731 # is available, and by checking whether or not specific configurations
2732 # have requested that this magic not happen.
2733 #
2734 # The command line options always override the explicit settings in
2735 # configure.in, and the settings in configure.in override this magic.
2736 #
2737 # If the default for a toolchain is to use GNU as and ld, and you don't
2738 # want to do that, then you should use the --without-gnu-as and
2739 # --without-gnu-ld options for the configure script.
2740
2741 if test x${use_gnu_as} = x &&
2742 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2743 with_gnu_as=yes
2744 extra_host_args="$extra_host_args --with-gnu-as"
2745 fi
2746
2747 if test x${use_gnu_ld} = x &&
2748 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2749 with_gnu_ld=yes
2750 extra_host_args="$extra_host_args --with-gnu-ld"
2751 fi
2752
2753 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2754 # can detect this case.
2755
2756 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2757 with_newlib=yes
2758 extra_host_args="$extra_host_args --with-newlib"
2759 fi
2760
2761 # Handle ${copy_dirs}
2762 set fnord ${copy_dirs}
2763 shift
2764 while test $# != 0 ; do
2765 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2766 :
2767 else
2768 echo Copying $1 to $2
2769
2770 # Use the install script to create the directory and all required
2771 # parent directories.
2772 if test -d $2 ; then
2773 :
2774 else
2775 echo >config.temp
2776 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2777 fi
2778
2779 # Copy the directory, assuming we have tar.
2780 # FIXME: Should we use B in the second tar? Not all systems support it.
2781 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2782
2783 # It is the responsibility of the user to correctly adjust all
2784 # symlinks. If somebody can figure out how to handle them correctly
2785 # here, feel free to add the code.
2786
2787 echo $1 > $2/COPIED
2788 fi
2789 shift; shift
2790 done
2791
2792 # Determine a target-dependent exec_prefix that the installed
2793 # gcc will search in. Keep this list sorted by triplet, with
2794 # the *-*-osname triplets last.
2795 md_exec_prefix=
2796 case "${target}" in
2797 alpha*-*-*vms*)
2798 md_exec_prefix=/gnu/lib/gcc-lib
2799 ;;
2800 i3456786-pc-msdosdjgpp*)
2801 md_exec_prefix=/dev/env/DJDIR/bin
2802 ;;
2803 i3456786-*-sco3.2v5*)
2804 if test $with_gnu_as = yes; then
2805 md_exec_prefix=/usr/gnu/bin
2806 else
2807 md_exec_prefix=/usr/ccs/bin/elf
2808 fi
2809 ;;
2810
2811 mn10300-*-* | \
2812 powerpc-*-chorusos* | \
2813 powerpc*-*-eabi* | \
2814 powerpc*-*-sysv* | \
2815 powerpc*-*-kaos* | \
2816 s390x-ibm-tpf*)
2817 md_exec_prefix=/usr/ccs/bin
2818 ;;
2819 sparc64-*-elf*)
2820 ;;
2821 v850*-*-*)
2822 md_exec_prefix=/usr/ccs/bin
2823 ;;
2824 xtensa-*-elf*)
2825 ;;
2826
2827 *-*-beos* | \
2828 *-*-elf* | \
2829 *-*-hpux* | \
2830 *-*-netware* | \
2831 *-*-nto-qnx* | \
2832 *-*-rtems* | \
2833 *-*-solaris2* | \
2834 *-*-sysv45* | \
2835 *-*-vxworks* | \
2836 *-wrs-windiss)
2837 md_exec_prefix=/usr/ccs/bin
2838 ;;
2839 esac
2840
2841 extra_arflags_for_target=
2842 extra_nmflags_for_target=
2843 extra_ranlibflags_for_target=
2844 target_makefile_frag=/dev/null
2845 case "${target}" in
2846 *-*-netware*)
2847 target_makefile_frag="config/mt-netware"
2848 ;;
2849 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2850 target_makefile_frag="config/mt-gnu"
2851 ;;
2852 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2853 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2854 # commands to handle both 32-bit and 64-bit objects. These flags are
2855 # harmless if we're using GNU nm or ar.
2856 extra_arflags_for_target=" -X32_64"
2857 extra_nmflags_for_target=" -B -X32_64"
2858 ;;
2859 *-*-darwin*)
2860 # ranlib from Darwin requires the -c flag to look at common symbols.
2861 extra_ranlibflags_for_target=" -c"
2862 ;;
2863 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2864 target_makefile_frag="config/mt-wince"
2865 ;;
2866 esac
2867
2868 alphaieee_frag=/dev/null
2869 case $target in
2870 alpha*-*-*)
2871 # This just makes sure to use the -mieee option to build target libs.
2872 # This should probably be set individually by each library.
2873 alphaieee_frag="config/mt-alphaieee"
2874 ;;
2875 esac
2876
2877 # If --enable-target-optspace always use -Os instead of -O2 to build
2878 # the target libraries, similarly if it is not specified, use -Os
2879 # on selected platforms.
2880 ospace_frag=/dev/null
2881 case "${enable_target_optspace}:${target}" in
2882 yes:*)
2883 ospace_frag="config/mt-ospace"
2884 ;;
2885 :d30v-*)
2886 ospace_frag="config/mt-d30v"
2887 ;;
2888 :m32r-* | :d10v-* | :fr30-*)
2889 ospace_frag="config/mt-ospace"
2890 ;;
2891 no:* | :*)
2892 ;;
2893 *)
2894 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2895 ;;
2896 esac
2897
2898 # Default to using --with-stabs for certain targets.
2899 if test x${with_stabs} = x ; then
2900 case "${target}" in
2901 mips*-*-irix[56]*)
2902 ;;
2903 mips*-*-* | alpha*-*-osf*)
2904 with_stabs=yes;
2905 extra_host_args="${extra_host_args} --with-stabs"
2906 ;;
2907 esac
2908 fi
2909
2910 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2911 # them automatically.
2912 case "${host}" in
2913 hppa*64*-*-hpux11*)
2914 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2915 ;;
2916 esac
2917
2918 # Some systems (e.g., one of the i386-aix systems the gas testers are
2919 # using) don't handle "\$" correctly, so don't use it here.
2920 tooldir='${exec_prefix}'/${target_alias}
2921 build_tooldir=${tooldir}
2922
2923 # Create a .gdbinit file which runs the one in srcdir
2924 # and tells GDB to look there for source files.
2925
2926 if test -r ${srcdir}/.gdbinit ; then
2927 case ${srcdir} in
2928 .) ;;
2929 *) cat > ./.gdbinit <<EOF
2930 # ${NO_EDIT}
2931 dir ${srcdir}
2932 dir .
2933 source ${srcdir}/.gdbinit
2934 EOF
2935 ;;
2936 esac
2937 fi
2938
2939 # Make sure that the compiler is able to generate an executable. If it
2940 # can't, we are probably in trouble. We don't care whether we can run the
2941 # executable--we might be using a cross compiler--we only care whether it
2942 # can be created. At this point the main configure script has set CC.
2943 we_are_ok=no
2944 echo "int main () { return 0; }" > conftest.c
2945 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2946 if test $? = 0 ; then
2947 if test -s conftest || test -s conftest.exe ; then
2948 we_are_ok=yes
2949 fi
2950 fi
2951 case $we_are_ok in
2952 no)
2953 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2954 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2955 rm -f conftest*
2956 exit 1
2957 ;;
2958 esac
2959 rm -f conftest*
2960
2961 # The Solaris /usr/ucb/cc compiler does not appear to work.
2962 case "${host}" in
2963 sparc-sun-solaris2*)
2964 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2965 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2966 could_use=
2967 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2968 if test -d /opt/cygnus/bin ; then
2969 if test "$could_use" = "" ; then
2970 could_use="/opt/cygnus/bin"
2971 else
2972 could_use="$could_use or /opt/cygnus/bin"
2973 fi
2974 fi
2975 if test "$could_use" = "" ; then
2976 echo "Warning: compilation may fail because you're using"
2977 echo "/usr/ucb/cc. You should change your PATH or CC "
2978 echo "variable and rerun configure."
2979 else
2980 echo "Warning: compilation may fail because you're using"
2981 echo "/usr/ucb/cc, when you should use the C compiler from"
2982 echo "$could_use. You should change your"
2983 echo "PATH or CC variable and rerun configure."
2984 fi
2985 fi
2986 ;;
2987 esac
2988
2989 case "${host}" in
2990 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2991 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
2992 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2993 esac
2994
2995 # Record target_configdirs and the configure arguments for target and
2996 # build configuration in Makefile.
2997 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2998 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
2999
3000 # Determine whether gdb needs tk/tcl or not.
3001 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3002 # and in that case we want gdb to be built without tk. Ugh!
3003 # In fact I believe gdb is the *only* package directly dependent on tk,
3004 # so we should be able to put the 'maybe's in unconditionally and
3005 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3006 # 100% sure that that's safe though.
3007
3008 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3009 case "$enable_gdbtk" in
3010 no)
3011 GDB_TK="" ;;
3012 yes)
3013 GDB_TK="${gdb_tk}" ;;
3014 *)
3015 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3016 # distro. Eventually someone will fix this and move Insight, nee
3017 # gdbtk to a separate directory.
3018 if test -d ${srcdir}/gdb/gdbtk ; then
3019 GDB_TK="${gdb_tk}"
3020 else
3021 GDB_TK=""
3022 fi
3023 ;;
3024 esac
3025 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3026 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3027
3028 # Strip out unwanted targets.
3029
3030 # While at that, we remove Makefiles if we were started for recursive
3031 # configuration, so that the top-level Makefile reconfigures them,
3032 # like we used to do when configure itself was recursive.
3033
3034 # Loop over modules. $extrasub must be used with care, limiting as
3035 # much as possible the usage of range addresses. That's because autoconf
3036 # splits the sed script to overcome limits in the number of commands,
3037 # and relying on carefully-timed sed passes may turn out to be very hard
3038 # to maintain later. In this particular case, you just have to be careful
3039 # not to nest @if/@endif pairs, because configure will not warn you at all.
3040
3041 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3042 if test "${enable_bootstrap+set}" = set; then
3043 enableval="$enable_bootstrap"
3044 :
3045 else
3046 enable_bootstrap=default
3047 fi
3048
3049
3050 # Issue errors and warnings for invalid/strange bootstrap combinations.
3051 case "$configdirs" in
3052 *gcc*) have_compiler=yes ;;
3053 *) have_compiler=no ;;
3054 esac
3055
3056 case "$have_compiler:$host:$target:$enable_bootstrap" in
3057 *:*:*:no) ;;
3058
3059 # Default behavior. Enable bootstrap if we have a compiler
3060 # and we are in a native configuration.
3061 yes:$build:$build:default)
3062 enable_bootstrap=yes ;;
3063
3064 *:*:*:default)
3065 enable_bootstrap=no ;;
3066
3067 # We have a compiler and we are in a native configuration, bootstrap is ok
3068 yes:$build:$build:yes)
3069 ;;
3070
3071 # Other configurations, but we have a compiler. Assume the user knows
3072 # what he's doing.
3073 yes:*:*:yes)
3074 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3075 ;;
3076
3077 # No compiler: if they passed --enable-bootstrap explicitly, fail
3078 no:*:*:yes)
3079 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3080
3081 # Fail if wrong command line
3082 *)
3083 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3084 ;;
3085 esac
3086
3087 # Adjust the toplevel makefile according to whether bootstrap was selected.
3088 case "$enable_bootstrap" in
3089 yes)
3090 bootstrap_suffix=bootstrap ;;
3091 no)
3092 bootstrap_suffix=no-bootstrap ;;
3093 esac
3094
3095 for module in ${build_configdirs} ; do
3096 if test -z "${no_recursion}" \
3097 && test -f ${build_subdir}/${module}/Makefile; then
3098 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3099 rm -f ${build_subdir}/${module}/Makefile
3100 fi
3101 extrasub="$extrasub
3102 /^@if build-$module\$/d
3103 /^@endif build-$module\$/d
3104 /^@if build-$module-$bootstrap_suffix\$/d
3105 /^@endif build-$module-$bootstrap_suffix\$/d"
3106 done
3107 for module in ${configdirs} ; do
3108 if test -z "${no_recursion}"; then
3109 for file in stage*-${module}/Makefile ${module}/Makefile; do
3110 if test -f ${file}; then
3111 echo 1>&2 "*** removing ${file} to force reconfigure"
3112 rm -f ${file}
3113 fi
3114 done
3115 fi
3116 extrasub="$extrasub
3117 /^@if $module\$/d
3118 /^@endif $module\$/d
3119 /^@if $module-$bootstrap_suffix\$/d
3120 /^@endif $module-$bootstrap_suffix\$/d"
3121 done
3122 for module in ${target_configdirs} ; do
3123 if test -z "${no_recursion}" \
3124 && test -f ${target_subdir}/${module}/Makefile; then
3125 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3126 rm -f ${target_subdir}/${module}/Makefile
3127 fi
3128 extrasub="$extrasub
3129 /^@if target-$module\$/d
3130 /^@endif target-$module\$/d
3131 /^@if target-$module-$bootstrap_suffix\$/d
3132 /^@endif target-$module-$bootstrap_suffix\$/d"
3133 done
3134
3135 extrasub="$extrasub
3136 /^@if /,/^@endif /d"
3137
3138 # Create the serialization dependencies. This uses a temporary file.
3139
3140 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3141 if test "${enable_serial_configure+set}" = set; then
3142 enableval="$enable_serial_configure"
3143 :
3144 fi
3145
3146
3147 case ${enable_serial_configure} in
3148 yes)
3149 enable_serial_build_configure=yes
3150 enable_serial_host_configure=yes
3151 enable_serial_target_configure=yes
3152 ;;
3153 esac
3154
3155 # These force 'configure's to be done one at a time, to avoid problems
3156 # with contention over a shared config.cache.
3157 rm -f serdep.tmp
3158 echo '# serdep.tmp' > serdep.tmp
3159 olditem=
3160 test "x${enable_serial_build_configure}" = xyes &&
3161 for item in ${build_configdirs} ; do
3162 case ${olditem} in
3163 "") ;;
3164 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3165 esac
3166 olditem=${item}
3167 done
3168 olditem=
3169 test "x${enable_serial_host_configure}" = xyes &&
3170 for item in ${configdirs} ; do
3171 case ${olditem} in
3172 "") ;;
3173 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3174 esac
3175 olditem=${item}
3176 done
3177 olditem=
3178 test "x${enable_serial_target_configure}" = xyes &&
3179 for item in ${target_configdirs} ; do
3180 case ${olditem} in
3181 "") ;;
3182 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3183 esac
3184 olditem=${item}
3185 done
3186 serialization_dependencies=serdep.tmp
3187
3188
3189 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3190 # target and nonopt. These are the ones we might not want to pass
3191 # down to subconfigures. Also strip program-prefix, program-suffix,
3192 # and program-transform-name, so that we can pass down a consistent
3193 # program-transform-name. If autoconf has put single quotes around
3194 # any of these arguments (because they contain shell metacharacters)
3195 # then this will fail; in practice this only happens for
3196 # --program-transform-name, so be sure to override --program-transform-name
3197 # at the end of the argument list.
3198 # These will be expanded by make, so quote '$'.
3199 cat <<\EOF_SED > conftestsed
3200 s/ --no[^ ]*/ /g
3201 s/ --c[a-z-]*[= ][^ ]*//g
3202 s/ --sr[a-z-]*[= ][^ ]*//g
3203 s/ --ho[a-z-]*[= ][^ ]*//g
3204 s/ --bu[a-z-]*[= ][^ ]*//g
3205 s/ --t[a-z-]*[= ][^ ]*//g
3206 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3207 s/ -cache-file[= ][^ ]*//g
3208 s/ -srcdir[= ][^ ]*//g
3209 s/ -host[= ][^ ]*//g
3210 s/ -build[= ][^ ]*//g
3211 s/ -target[= ][^ ]*//g
3212 s/ -program-prefix[= ][^ ]*//g
3213 s/ -program-suffix[= ][^ ]*//g
3214 s/ -program-transform-name[= ][^ ]*//g
3215 s/ [^' -][^ ]* / /
3216 s/^ *//;s/ *$//
3217 s,\$,$$,g
3218 EOF_SED
3219 sed -f conftestsed <<EOF_SED > conftestsed.out
3220 ${ac_configure_args}
3221 EOF_SED
3222 baseargs=`cat conftestsed.out`
3223 rm -f conftestsed conftestsed.out
3224
3225 # Add in --program-transform-name, after --program-prefix and
3226 # --program-suffix have been applied to it. Autoconf has already
3227 # doubled dollar signs and backslashes in program_transform_name; we want
3228 # the backslashes un-doubled, and then the entire thing wrapped in single
3229 # quotes, because this will be expanded first by make and then by the shell.
3230 # Also, because we want to override the logic in subdir configure scripts to
3231 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3232 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3233 ${program_transform_name}
3234 EOF_SED
3235 gcc_transform_name=`cat conftestsed.out`
3236 rm -f conftestsed.out
3237 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3238
3239 # For the build-side libraries, we just need to pretend we're native,
3240 # and not use the same cache file. Multilibs are neither needed nor
3241 # desired.
3242 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3243
3244 # For host modules, accept cache file option, or specification as blank.
3245 case "${cache_file}" in
3246 "") # empty
3247 cache_file_option="" ;;
3248 /* | [A-Za-z]:[\\/]* ) # absolute path
3249 cache_file_option="--cache-file=${cache_file}" ;;
3250 *) # relative path
3251 cache_file_option="--cache-file=../${cache_file}" ;;
3252 esac
3253
3254 # Host dirs don't like to share a cache file either, horribly enough.
3255 # This seems to be due to autoconf 2.5x stupidity.
3256 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3257
3258 target_configargs=${baseargs}
3259
3260 # Passing a --with-cross-host argument lets the target libraries know
3261 # whether they are being built with a cross-compiler or being built
3262 # native. However, it would be better to use other mechanisms to make the
3263 # sorts of decisions they want to make on this basis. Please consider
3264 # this option to be deprecated. FIXME.
3265 if test x${is_cross_compiler} = xyes ; then
3266 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3267 fi
3268
3269 # Default to --enable-multilib.
3270 if test x${enable_multilib} = x ; then
3271 target_configargs="--enable-multilib ${target_configargs}"
3272 fi
3273
3274 # Pass --with-newlib if appropriate. Note that target_configdirs has
3275 # changed from the earlier setting of with_newlib.
3276 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3277 target_configargs="--with-newlib ${target_configargs}"
3278 fi
3279
3280 # Different target subdirs use different values of certain variables
3281 # (notably CXX). Worse, multilibs use *lots* of different values.
3282 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3283 # it doesn't automatically accept command-line overrides of them.
3284 # This means it's not safe for target subdirs to share a cache file,
3285 # which is disgusting, but there you have it. Hopefully this can be
3286 # fixed in future. It's still worthwhile to use a cache file for each
3287 # directory. I think.
3288
3289 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3290 # We need to pass --target, as newer autoconf's requires consistency
3291 # for target_alias and gcc doesn't manage it consistently.
3292 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3293
3294 FLAGS_FOR_TARGET=
3295 case " $target_configdirs " in
3296 *" newlib "*)
3297 case " $target_configargs " in
3298 *" --with-newlib "*)
3299 case "$target" in
3300 *-cygwin*)
3301 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' ;;
3302 esac
3303
3304 # If we're not building GCC, don't discard standard headers.
3305 if test -d ${srcdir}/gcc; then
3306 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3307
3308 if test "${build}" != "${host}"; then
3309 # On Canadian crosses, CC_FOR_TARGET will have already been set
3310 # by `configure', so we won't have an opportunity to add -Bgcc/
3311 # to it. This is right: we don't want to search that directory
3312 # for binaries, but we want the header files in there, so add
3313 # them explicitly.
3314 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3315
3316 # Someone might think of using the pre-installed headers on
3317 # Canadian crosses, in case the installed compiler is not fully
3318 # compatible with the compiler being built. In this case, it
3319 # would be better to flag an error than risking having
3320 # incompatible object files being constructed. We can't
3321 # guarantee that an error will be flagged, but let's hope the
3322 # compiler will do it, when presented with incompatible header
3323 # files.
3324 fi
3325 fi
3326
3327 case "${target}-${is_cross_compiler}" in
3328 i[3456789]86-*-linux*-no)
3329 # Here host == target, so we don't need to build gcc,
3330 # so we don't want to discard standard headers.
3331 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3332 ;;
3333 *)
3334 # If we're building newlib, use its generic headers last, but search
3335 # for any libc-related directories first (so make it the last -B
3336 # switch).
3337 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3338 ;;
3339 esac
3340 ;;
3341 esac
3342 ;;
3343 esac
3344
3345 # Allow the user to override the flags for
3346 # our build compiler if desired.
3347 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3348
3349 # On Canadian crosses, we'll be searching the right directories for
3350 # the previously-installed cross compiler, so don't bother to add
3351 # flags for directories within the install tree of the compiler
3352 # being built; programs in there won't even run.
3353 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3354 # Search for pre-installed headers if nothing else fits.
3355 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3356 fi
3357
3358 if test "x${use_gnu_ld}" = x &&
3359 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3360 # Arrange for us to find uninstalled linker scripts.
3361 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3362 fi
3363
3364 # Makefile fragments.
3365 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3366 do
3367 eval fragval=\$$frag
3368 if test $fragval != /dev/null; then
3369 eval $frag=${srcdir}/$fragval
3370 fi
3371 done
3372
3373
3374
3375
3376
3377 # Miscellanea: directories, flags, etc.
3378
3379
3380
3381
3382
3383
3384
3385 # Build module lists & subconfigure args.
3386
3387
3388
3389 # Host module lists & subconfigure args.
3390
3391
3392
3393 # Target module lists & subconfigure args.
3394
3395
3396
3397 # Build tools.
3398
3399
3400
3401 # Generate default definitions for YACC, M4, LEX and other programs that run
3402 # on the build machine. These are used if the Makefile can't locate these
3403 # programs in objdir.
3404 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3405
3406 for ac_prog in 'bison -y' byacc yacc
3407 do
3408 # Extract the first word of "$ac_prog", so it can be a program name with args.
3409 set dummy $ac_prog; ac_word=$2
3410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3411 echo "configure:3412: checking for $ac_word" >&5
3412 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3414 else
3415 if test -n "$YACC"; then
3416 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3417 else
3418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3419 ac_dummy="$PATH"
3420 for ac_dir in $ac_dummy; do
3421 test -z "$ac_dir" && ac_dir=.
3422 if test -f $ac_dir/$ac_word; then
3423 ac_cv_prog_YACC="$ac_prog"
3424 break
3425 fi
3426 done
3427 IFS="$ac_save_ifs"
3428 fi
3429 fi
3430 YACC="$ac_cv_prog_YACC"
3431 if test -n "$YACC"; then
3432 echo "$ac_t""$YACC" 1>&6
3433 else
3434 echo "$ac_t""no" 1>&6
3435 fi
3436
3437 test -n "$YACC" && break
3438 done
3439 test -n "$YACC" || YACC="$MISSING bison -y"
3440
3441 case " $build_configdirs " in
3442 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3443 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3444 esac
3445
3446 for ac_prog in bison
3447 do
3448 # Extract the first word of "$ac_prog", so it can be a program name with args.
3449 set dummy $ac_prog; ac_word=$2
3450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3451 echo "configure:3452: checking for $ac_word" >&5
3452 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3454 else
3455 if test -n "$BISON"; then
3456 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3457 else
3458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3459 ac_dummy="$PATH"
3460 for ac_dir in $ac_dummy; do
3461 test -z "$ac_dir" && ac_dir=.
3462 if test -f $ac_dir/$ac_word; then
3463 ac_cv_prog_BISON="$ac_prog"
3464 break
3465 fi
3466 done
3467 IFS="$ac_save_ifs"
3468 fi
3469 fi
3470 BISON="$ac_cv_prog_BISON"
3471 if test -n "$BISON"; then
3472 echo "$ac_t""$BISON" 1>&6
3473 else
3474 echo "$ac_t""no" 1>&6
3475 fi
3476
3477 test -n "$BISON" && break
3478 done
3479 test -n "$BISON" || BISON="$MISSING bison"
3480
3481 case " $build_configdirs " in
3482 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3483 esac
3484
3485 for ac_prog in gm4 gnum4 m4
3486 do
3487 # Extract the first word of "$ac_prog", so it can be a program name with args.
3488 set dummy $ac_prog; ac_word=$2
3489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3490 echo "configure:3491: checking for $ac_word" >&5
3491 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3493 else
3494 if test -n "$M4"; then
3495 ac_cv_prog_M4="$M4" # Let the user override the test.
3496 else
3497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3498 ac_dummy="$PATH"
3499 for ac_dir in $ac_dummy; do
3500 test -z "$ac_dir" && ac_dir=.
3501 if test -f $ac_dir/$ac_word; then
3502 ac_cv_prog_M4="$ac_prog"
3503 break
3504 fi
3505 done
3506 IFS="$ac_save_ifs"
3507 fi
3508 fi
3509 M4="$ac_cv_prog_M4"
3510 if test -n "$M4"; then
3511 echo "$ac_t""$M4" 1>&6
3512 else
3513 echo "$ac_t""no" 1>&6
3514 fi
3515
3516 test -n "$M4" && break
3517 done
3518 test -n "$M4" || M4="$MISSING m4"
3519
3520 case " $build_configdirs " in
3521 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3522 esac
3523
3524 for ac_prog in flex lex
3525 do
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3529 echo "configure:3530: checking for $ac_word" >&5
3530 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3532 else
3533 if test -n "$LEX"; then
3534 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3535 else
3536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3537 ac_dummy="$PATH"
3538 for ac_dir in $ac_dummy; do
3539 test -z "$ac_dir" && ac_dir=.
3540 if test -f $ac_dir/$ac_word; then
3541 ac_cv_prog_LEX="$ac_prog"
3542 break
3543 fi
3544 done
3545 IFS="$ac_save_ifs"
3546 fi
3547 fi
3548 LEX="$ac_cv_prog_LEX"
3549 if test -n "$LEX"; then
3550 echo "$ac_t""$LEX" 1>&6
3551 else
3552 echo "$ac_t""no" 1>&6
3553 fi
3554
3555 test -n "$LEX" && break
3556 done
3557 test -n "$LEX" || LEX="$MISSING flex"
3558
3559 case " $build_configdirs " in
3560 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3561 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3562 esac
3563
3564 for ac_prog in flex
3565 do
3566 # Extract the first word of "$ac_prog", so it can be a program name with args.
3567 set dummy $ac_prog; ac_word=$2
3568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3569 echo "configure:3570: checking for $ac_word" >&5
3570 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3572 else
3573 if test -n "$FLEX"; then
3574 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3575 else
3576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3577 ac_dummy="$PATH"
3578 for ac_dir in $ac_dummy; do
3579 test -z "$ac_dir" && ac_dir=.
3580 if test -f $ac_dir/$ac_word; then
3581 ac_cv_prog_FLEX="$ac_prog"
3582 break
3583 fi
3584 done
3585 IFS="$ac_save_ifs"
3586 fi
3587 fi
3588 FLEX="$ac_cv_prog_FLEX"
3589 if test -n "$FLEX"; then
3590 echo "$ac_t""$FLEX" 1>&6
3591 else
3592 echo "$ac_t""no" 1>&6
3593 fi
3594
3595 test -n "$FLEX" && break
3596 done
3597 test -n "$FLEX" || FLEX="$MISSING flex"
3598
3599 case " $build_configdirs " in
3600 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3601 esac
3602
3603 for ac_prog in makeinfo
3604 do
3605 # Extract the first word of "$ac_prog", so it can be a program name with args.
3606 set dummy $ac_prog; ac_word=$2
3607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3608 echo "configure:3609: checking for $ac_word" >&5
3609 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3611 else
3612 if test -n "$MAKEINFO"; then
3613 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3614 else
3615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3616 ac_dummy="$PATH"
3617 for ac_dir in $ac_dummy; do
3618 test -z "$ac_dir" && ac_dir=.
3619 if test -f $ac_dir/$ac_word; then
3620 ac_cv_prog_MAKEINFO="$ac_prog"
3621 break
3622 fi
3623 done
3624 IFS="$ac_save_ifs"
3625 fi
3626 fi
3627 MAKEINFO="$ac_cv_prog_MAKEINFO"
3628 if test -n "$MAKEINFO"; then
3629 echo "$ac_t""$MAKEINFO" 1>&6
3630 else
3631 echo "$ac_t""no" 1>&6
3632 fi
3633
3634 test -n "$MAKEINFO" && break
3635 done
3636 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3637
3638 case " $build_configdirs " in
3639 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3640 *)
3641
3642 # For an installed makeinfo, we require it to be from texinfo 4.2 or
3643 # higher, else we use the "missing" dummy.
3644 if ${MAKEINFO} --version \
3645 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])' >/dev/null 2>&1; then
3646 :
3647 else
3648 MAKEINFO="$MISSING makeinfo"
3649 fi
3650 ;;
3651
3652 esac
3653
3654 # FIXME: expect and dejagnu may become build tools?
3655
3656 for ac_prog in expect
3657 do
3658 # Extract the first word of "$ac_prog", so it can be a program name with args.
3659 set dummy $ac_prog; ac_word=$2
3660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3661 echo "configure:3662: checking for $ac_word" >&5
3662 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3664 else
3665 if test -n "$EXPECT"; then
3666 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3667 else
3668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3669 ac_dummy="$PATH"
3670 for ac_dir in $ac_dummy; do
3671 test -z "$ac_dir" && ac_dir=.
3672 if test -f $ac_dir/$ac_word; then
3673 ac_cv_prog_EXPECT="$ac_prog"
3674 break
3675 fi
3676 done
3677 IFS="$ac_save_ifs"
3678 fi
3679 fi
3680 EXPECT="$ac_cv_prog_EXPECT"
3681 if test -n "$EXPECT"; then
3682 echo "$ac_t""$EXPECT" 1>&6
3683 else
3684 echo "$ac_t""no" 1>&6
3685 fi
3686
3687 test -n "$EXPECT" && break
3688 done
3689 test -n "$EXPECT" || EXPECT="expect"
3690
3691 case " $configdirs " in
3692 *" expect "*)
3693 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3694 ;;
3695 esac
3696
3697 for ac_prog in runtest
3698 do
3699 # Extract the first word of "$ac_prog", so it can be a program name with args.
3700 set dummy $ac_prog; ac_word=$2
3701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3702 echo "configure:3703: checking for $ac_word" >&5
3703 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3705 else
3706 if test -n "$RUNTEST"; then
3707 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3708 else
3709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3710 ac_dummy="$PATH"
3711 for ac_dir in $ac_dummy; do
3712 test -z "$ac_dir" && ac_dir=.
3713 if test -f $ac_dir/$ac_word; then
3714 ac_cv_prog_RUNTEST="$ac_prog"
3715 break
3716 fi
3717 done
3718 IFS="$ac_save_ifs"
3719 fi
3720 fi
3721 RUNTEST="$ac_cv_prog_RUNTEST"
3722 if test -n "$RUNTEST"; then
3723 echo "$ac_t""$RUNTEST" 1>&6
3724 else
3725 echo "$ac_t""no" 1>&6
3726 fi
3727
3728 test -n "$RUNTEST" && break
3729 done
3730 test -n "$RUNTEST" || RUNTEST="runtest"
3731
3732 case " $configdirs " in
3733 *" dejagnu "*)
3734 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3735 ;;
3736 esac
3737
3738
3739 # Host tools.
3740 ncn_tool_prefix=
3741 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3742 ncn_target_tool_prefix=
3743 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3744
3745 for ncn_progname in ar; do
3746 if test -n "$ncn_tool_prefix"; then
3747 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3748 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3750 echo "configure:3751: checking for $ac_word" >&5
3751 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3753 else
3754 if test -n "$AR"; then
3755 ac_cv_prog_AR="$AR" # Let the user override the test.
3756 else
3757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3758 ac_dummy="$PATH"
3759 for ac_dir in $ac_dummy; do
3760 test -z "$ac_dir" && ac_dir=.
3761 if test -f $ac_dir/$ac_word; then
3762 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3763 break
3764 fi
3765 done
3766 IFS="$ac_save_ifs"
3767 fi
3768 fi
3769 AR="$ac_cv_prog_AR"
3770 if test -n "$AR"; then
3771 echo "$ac_t""$AR" 1>&6
3772 else
3773 echo "$ac_t""no" 1>&6
3774 fi
3775
3776 fi
3777 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3779 set dummy ${ncn_progname}; ac_word=$2
3780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3781 echo "configure:3782: checking for $ac_word" >&5
3782 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3784 else
3785 if test -n "$AR"; then
3786 ac_cv_prog_AR="$AR" # Let the user override the test.
3787 else
3788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3789 ac_dummy="$PATH"
3790 for ac_dir in $ac_dummy; do
3791 test -z "$ac_dir" && ac_dir=.
3792 if test -f $ac_dir/$ac_word; then
3793 ac_cv_prog_AR="${ncn_progname}"
3794 break
3795 fi
3796 done
3797 IFS="$ac_save_ifs"
3798 fi
3799 fi
3800 AR="$ac_cv_prog_AR"
3801 if test -n "$AR"; then
3802 echo "$ac_t""$AR" 1>&6
3803 else
3804 echo "$ac_t""no" 1>&6
3805 fi
3806
3807 fi
3808 test -n "$ac_cv_prog_AR" && break
3809 done
3810
3811 if test -z "$ac_cv_prog_AR" ; then
3812 set dummy ar
3813 if test $build = $host ; then
3814 AR="$2"
3815 else
3816 AR="${ncn_tool_prefix}$2"
3817 fi
3818 fi
3819
3820 for ncn_progname in as; do
3821 if test -n "$ncn_tool_prefix"; then
3822 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3823 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3825 echo "configure:3826: checking for $ac_word" >&5
3826 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3828 else
3829 if test -n "$AS"; then
3830 ac_cv_prog_AS="$AS" # Let the user override the test.
3831 else
3832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3833 ac_dummy="$PATH"
3834 for ac_dir in $ac_dummy; do
3835 test -z "$ac_dir" && ac_dir=.
3836 if test -f $ac_dir/$ac_word; then
3837 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3838 break
3839 fi
3840 done
3841 IFS="$ac_save_ifs"
3842 fi
3843 fi
3844 AS="$ac_cv_prog_AS"
3845 if test -n "$AS"; then
3846 echo "$ac_t""$AS" 1>&6
3847 else
3848 echo "$ac_t""no" 1>&6
3849 fi
3850
3851 fi
3852 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3854 set dummy ${ncn_progname}; ac_word=$2
3855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3856 echo "configure:3857: checking for $ac_word" >&5
3857 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3859 else
3860 if test -n "$AS"; then
3861 ac_cv_prog_AS="$AS" # Let the user override the test.
3862 else
3863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3864 ac_dummy="$PATH"
3865 for ac_dir in $ac_dummy; do
3866 test -z "$ac_dir" && ac_dir=.
3867 if test -f $ac_dir/$ac_word; then
3868 ac_cv_prog_AS="${ncn_progname}"
3869 break
3870 fi
3871 done
3872 IFS="$ac_save_ifs"
3873 fi
3874 fi
3875 AS="$ac_cv_prog_AS"
3876 if test -n "$AS"; then
3877 echo "$ac_t""$AS" 1>&6
3878 else
3879 echo "$ac_t""no" 1>&6
3880 fi
3881
3882 fi
3883 test -n "$ac_cv_prog_AS" && break
3884 done
3885
3886 if test -z "$ac_cv_prog_AS" ; then
3887 set dummy as
3888 if test $build = $host ; then
3889 AS="$2"
3890 else
3891 AS="${ncn_tool_prefix}$2"
3892 fi
3893 fi
3894
3895 for ncn_progname in dlltool; do
3896 if test -n "$ncn_tool_prefix"; then
3897 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3898 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3900 echo "configure:3901: checking for $ac_word" >&5
3901 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3903 else
3904 if test -n "$DLLTOOL"; then
3905 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3906 else
3907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3908 ac_dummy="$PATH"
3909 for ac_dir in $ac_dummy; do
3910 test -z "$ac_dir" && ac_dir=.
3911 if test -f $ac_dir/$ac_word; then
3912 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3913 break
3914 fi
3915 done
3916 IFS="$ac_save_ifs"
3917 fi
3918 fi
3919 DLLTOOL="$ac_cv_prog_DLLTOOL"
3920 if test -n "$DLLTOOL"; then
3921 echo "$ac_t""$DLLTOOL" 1>&6
3922 else
3923 echo "$ac_t""no" 1>&6
3924 fi
3925
3926 fi
3927 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3929 set dummy ${ncn_progname}; ac_word=$2
3930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3931 echo "configure:3932: checking for $ac_word" >&5
3932 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3934 else
3935 if test -n "$DLLTOOL"; then
3936 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3937 else
3938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3939 ac_dummy="$PATH"
3940 for ac_dir in $ac_dummy; do
3941 test -z "$ac_dir" && ac_dir=.
3942 if test -f $ac_dir/$ac_word; then
3943 ac_cv_prog_DLLTOOL="${ncn_progname}"
3944 break
3945 fi
3946 done
3947 IFS="$ac_save_ifs"
3948 fi
3949 fi
3950 DLLTOOL="$ac_cv_prog_DLLTOOL"
3951 if test -n "$DLLTOOL"; then
3952 echo "$ac_t""$DLLTOOL" 1>&6
3953 else
3954 echo "$ac_t""no" 1>&6
3955 fi
3956
3957 fi
3958 test -n "$ac_cv_prog_DLLTOOL" && break
3959 done
3960
3961 if test -z "$ac_cv_prog_DLLTOOL" ; then
3962 set dummy dlltool
3963 if test $build = $host ; then
3964 DLLTOOL="$2"
3965 else
3966 DLLTOOL="${ncn_tool_prefix}$2"
3967 fi
3968 fi
3969
3970 for ncn_progname in ld; do
3971 if test -n "$ncn_tool_prefix"; then
3972 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3973 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3975 echo "configure:3976: checking for $ac_word" >&5
3976 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3977 echo $ac_n "(cached) $ac_c" 1>&6
3978 else
3979 if test -n "$LD"; then
3980 ac_cv_prog_LD="$LD" # Let the user override the test.
3981 else
3982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3983 ac_dummy="$PATH"
3984 for ac_dir in $ac_dummy; do
3985 test -z "$ac_dir" && ac_dir=.
3986 if test -f $ac_dir/$ac_word; then
3987 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3988 break
3989 fi
3990 done
3991 IFS="$ac_save_ifs"
3992 fi
3993 fi
3994 LD="$ac_cv_prog_LD"
3995 if test -n "$LD"; then
3996 echo "$ac_t""$LD" 1>&6
3997 else
3998 echo "$ac_t""no" 1>&6
3999 fi
4000
4001 fi
4002 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4004 set dummy ${ncn_progname}; ac_word=$2
4005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4006 echo "configure:4007: checking for $ac_word" >&5
4007 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4009 else
4010 if test -n "$LD"; then
4011 ac_cv_prog_LD="$LD" # Let the user override the test.
4012 else
4013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4014 ac_dummy="$PATH"
4015 for ac_dir in $ac_dummy; do
4016 test -z "$ac_dir" && ac_dir=.
4017 if test -f $ac_dir/$ac_word; then
4018 ac_cv_prog_LD="${ncn_progname}"
4019 break
4020 fi
4021 done
4022 IFS="$ac_save_ifs"
4023 fi
4024 fi
4025 LD="$ac_cv_prog_LD"
4026 if test -n "$LD"; then
4027 echo "$ac_t""$LD" 1>&6
4028 else
4029 echo "$ac_t""no" 1>&6
4030 fi
4031
4032 fi
4033 test -n "$ac_cv_prog_LD" && break
4034 done
4035
4036 if test -z "$ac_cv_prog_LD" ; then
4037 set dummy ld
4038 if test $build = $host ; then
4039 LD="$2"
4040 else
4041 LD="${ncn_tool_prefix}$2"
4042 fi
4043 fi
4044
4045 for ncn_progname in lipo; do
4046 if test -n "$ncn_tool_prefix"; then
4047 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4048 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4050 echo "configure:4051: checking for $ac_word" >&5
4051 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4052 echo $ac_n "(cached) $ac_c" 1>&6
4053 else
4054 if test -n "$LIPO"; then
4055 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4056 else
4057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4058 ac_dummy="$PATH"
4059 for ac_dir in $ac_dummy; do
4060 test -z "$ac_dir" && ac_dir=.
4061 if test -f $ac_dir/$ac_word; then
4062 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4063 break
4064 fi
4065 done
4066 IFS="$ac_save_ifs"
4067 fi
4068 fi
4069 LIPO="$ac_cv_prog_LIPO"
4070 if test -n "$LIPO"; then
4071 echo "$ac_t""$LIPO" 1>&6
4072 else
4073 echo "$ac_t""no" 1>&6
4074 fi
4075
4076 fi
4077 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4079 set dummy ${ncn_progname}; ac_word=$2
4080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4081 echo "configure:4082: checking for $ac_word" >&5
4082 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4083 echo $ac_n "(cached) $ac_c" 1>&6
4084 else
4085 if test -n "$LIPO"; then
4086 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4087 else
4088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4089 ac_dummy="$PATH"
4090 for ac_dir in $ac_dummy; do
4091 test -z "$ac_dir" && ac_dir=.
4092 if test -f $ac_dir/$ac_word; then
4093 ac_cv_prog_LIPO="${ncn_progname}"
4094 break
4095 fi
4096 done
4097 IFS="$ac_save_ifs"
4098 fi
4099 fi
4100 LIPO="$ac_cv_prog_LIPO"
4101 if test -n "$LIPO"; then
4102 echo "$ac_t""$LIPO" 1>&6
4103 else
4104 echo "$ac_t""no" 1>&6
4105 fi
4106
4107 fi
4108 test -n "$ac_cv_prog_LIPO" && break
4109 done
4110
4111 if test -z "$ac_cv_prog_LIPO" ; then
4112 set dummy lipo
4113 if test $build = $host ; then
4114 LIPO="$2"
4115 else
4116 LIPO="${ncn_tool_prefix}$2"
4117 fi
4118 fi
4119
4120 for ncn_progname in nm; do
4121 if test -n "$ncn_tool_prefix"; then
4122 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4123 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4125 echo "configure:4126: checking for $ac_word" >&5
4126 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4128 else
4129 if test -n "$NM"; then
4130 ac_cv_prog_NM="$NM" # Let the user override the test.
4131 else
4132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4133 ac_dummy="$PATH"
4134 for ac_dir in $ac_dummy; do
4135 test -z "$ac_dir" && ac_dir=.
4136 if test -f $ac_dir/$ac_word; then
4137 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4138 break
4139 fi
4140 done
4141 IFS="$ac_save_ifs"
4142 fi
4143 fi
4144 NM="$ac_cv_prog_NM"
4145 if test -n "$NM"; then
4146 echo "$ac_t""$NM" 1>&6
4147 else
4148 echo "$ac_t""no" 1>&6
4149 fi
4150
4151 fi
4152 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4154 set dummy ${ncn_progname}; ac_word=$2
4155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4156 echo "configure:4157: checking for $ac_word" >&5
4157 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4159 else
4160 if test -n "$NM"; then
4161 ac_cv_prog_NM="$NM" # Let the user override the test.
4162 else
4163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4164 ac_dummy="$PATH"
4165 for ac_dir in $ac_dummy; do
4166 test -z "$ac_dir" && ac_dir=.
4167 if test -f $ac_dir/$ac_word; then
4168 ac_cv_prog_NM="${ncn_progname}"
4169 break
4170 fi
4171 done
4172 IFS="$ac_save_ifs"
4173 fi
4174 fi
4175 NM="$ac_cv_prog_NM"
4176 if test -n "$NM"; then
4177 echo "$ac_t""$NM" 1>&6
4178 else
4179 echo "$ac_t""no" 1>&6
4180 fi
4181
4182 fi
4183 test -n "$ac_cv_prog_NM" && break
4184 done
4185
4186 if test -z "$ac_cv_prog_NM" ; then
4187 set dummy nm
4188 if test $build = $host ; then
4189 NM="$2"
4190 else
4191 NM="${ncn_tool_prefix}$2"
4192 fi
4193 fi
4194
4195 for ncn_progname in ranlib; do
4196 if test -n "$ncn_tool_prefix"; then
4197 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4198 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4200 echo "configure:4201: checking for $ac_word" >&5
4201 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4202 echo $ac_n "(cached) $ac_c" 1>&6
4203 else
4204 if test -n "$RANLIB"; then
4205 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4206 else
4207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4208 ac_dummy="$PATH"
4209 for ac_dir in $ac_dummy; do
4210 test -z "$ac_dir" && ac_dir=.
4211 if test -f $ac_dir/$ac_word; then
4212 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4213 break
4214 fi
4215 done
4216 IFS="$ac_save_ifs"
4217 fi
4218 fi
4219 RANLIB="$ac_cv_prog_RANLIB"
4220 if test -n "$RANLIB"; then
4221 echo "$ac_t""$RANLIB" 1>&6
4222 else
4223 echo "$ac_t""no" 1>&6
4224 fi
4225
4226 fi
4227 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4229 set dummy ${ncn_progname}; ac_word=$2
4230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4231 echo "configure:4232: checking for $ac_word" >&5
4232 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4234 else
4235 if test -n "$RANLIB"; then
4236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4237 else
4238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4239 ac_dummy="$PATH"
4240 for ac_dir in $ac_dummy; do
4241 test -z "$ac_dir" && ac_dir=.
4242 if test -f $ac_dir/$ac_word; then
4243 ac_cv_prog_RANLIB="${ncn_progname}"
4244 break
4245 fi
4246 done
4247 IFS="$ac_save_ifs"
4248 fi
4249 fi
4250 RANLIB="$ac_cv_prog_RANLIB"
4251 if test -n "$RANLIB"; then
4252 echo "$ac_t""$RANLIB" 1>&6
4253 else
4254 echo "$ac_t""no" 1>&6
4255 fi
4256
4257 fi
4258 test -n "$ac_cv_prog_RANLIB" && break
4259 done
4260
4261 if test -z "$ac_cv_prog_RANLIB" ; then
4262 RANLIB=":"
4263 fi
4264
4265 for ncn_progname in strip; do
4266 if test -n "$ncn_tool_prefix"; then
4267 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4268 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4269 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4270 echo "configure:4271: checking for $ac_word" >&5
4271 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4272 echo $ac_n "(cached) $ac_c" 1>&6
4273 else
4274 if test -n "$STRIP"; then
4275 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4276 else
4277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4278 ac_dummy="$PATH"
4279 for ac_dir in $ac_dummy; do
4280 test -z "$ac_dir" && ac_dir=.
4281 if test -f $ac_dir/$ac_word; then
4282 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4283 break
4284 fi
4285 done
4286 IFS="$ac_save_ifs"
4287 fi
4288 fi
4289 STRIP="$ac_cv_prog_STRIP"
4290 if test -n "$STRIP"; then
4291 echo "$ac_t""$STRIP" 1>&6
4292 else
4293 echo "$ac_t""no" 1>&6
4294 fi
4295
4296 fi
4297 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4299 set dummy ${ncn_progname}; ac_word=$2
4300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4301 echo "configure:4302: checking for $ac_word" >&5
4302 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4303 echo $ac_n "(cached) $ac_c" 1>&6
4304 else
4305 if test -n "$STRIP"; then
4306 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4307 else
4308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4309 ac_dummy="$PATH"
4310 for ac_dir in $ac_dummy; do
4311 test -z "$ac_dir" && ac_dir=.
4312 if test -f $ac_dir/$ac_word; then
4313 ac_cv_prog_STRIP="${ncn_progname}"
4314 break
4315 fi
4316 done
4317 IFS="$ac_save_ifs"
4318 fi
4319 fi
4320 STRIP="$ac_cv_prog_STRIP"
4321 if test -n "$STRIP"; then
4322 echo "$ac_t""$STRIP" 1>&6
4323 else
4324 echo "$ac_t""no" 1>&6
4325 fi
4326
4327 fi
4328 test -n "$ac_cv_prog_STRIP" && break
4329 done
4330
4331 if test -z "$ac_cv_prog_STRIP" ; then
4332 STRIP=":"
4333 fi
4334
4335 for ncn_progname in windres; do
4336 if test -n "$ncn_tool_prefix"; then
4337 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4338 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4340 echo "configure:4341: checking for $ac_word" >&5
4341 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4342 echo $ac_n "(cached) $ac_c" 1>&6
4343 else
4344 if test -n "$WINDRES"; then
4345 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4346 else
4347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4348 ac_dummy="$PATH"
4349 for ac_dir in $ac_dummy; do
4350 test -z "$ac_dir" && ac_dir=.
4351 if test -f $ac_dir/$ac_word; then
4352 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4353 break
4354 fi
4355 done
4356 IFS="$ac_save_ifs"
4357 fi
4358 fi
4359 WINDRES="$ac_cv_prog_WINDRES"
4360 if test -n "$WINDRES"; then
4361 echo "$ac_t""$WINDRES" 1>&6
4362 else
4363 echo "$ac_t""no" 1>&6
4364 fi
4365
4366 fi
4367 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4369 set dummy ${ncn_progname}; ac_word=$2
4370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4371 echo "configure:4372: checking for $ac_word" >&5
4372 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4374 else
4375 if test -n "$WINDRES"; then
4376 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4377 else
4378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4379 ac_dummy="$PATH"
4380 for ac_dir in $ac_dummy; do
4381 test -z "$ac_dir" && ac_dir=.
4382 if test -f $ac_dir/$ac_word; then
4383 ac_cv_prog_WINDRES="${ncn_progname}"
4384 break
4385 fi
4386 done
4387 IFS="$ac_save_ifs"
4388 fi
4389 fi
4390 WINDRES="$ac_cv_prog_WINDRES"
4391 if test -n "$WINDRES"; then
4392 echo "$ac_t""$WINDRES" 1>&6
4393 else
4394 echo "$ac_t""no" 1>&6
4395 fi
4396
4397 fi
4398 test -n "$ac_cv_prog_WINDRES" && break
4399 done
4400
4401 if test -z "$ac_cv_prog_WINDRES" ; then
4402 set dummy windres
4403 if test $build = $host ; then
4404 WINDRES="$2"
4405 else
4406 WINDRES="${ncn_tool_prefix}$2"
4407 fi
4408 fi
4409
4410 for ncn_progname in objcopy; do
4411 if test -n "$ncn_tool_prefix"; then
4412 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4413 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4415 echo "configure:4416: checking for $ac_word" >&5
4416 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4418 else
4419 if test -n "$OBJCOPY"; then
4420 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4421 else
4422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4423 ac_dummy="$PATH"
4424 for ac_dir in $ac_dummy; do
4425 test -z "$ac_dir" && ac_dir=.
4426 if test -f $ac_dir/$ac_word; then
4427 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4428 break
4429 fi
4430 done
4431 IFS="$ac_save_ifs"
4432 fi
4433 fi
4434 OBJCOPY="$ac_cv_prog_OBJCOPY"
4435 if test -n "$OBJCOPY"; then
4436 echo "$ac_t""$OBJCOPY" 1>&6
4437 else
4438 echo "$ac_t""no" 1>&6
4439 fi
4440
4441 fi
4442 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4444 set dummy ${ncn_progname}; ac_word=$2
4445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4446 echo "configure:4447: checking for $ac_word" >&5
4447 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4449 else
4450 if test -n "$OBJCOPY"; then
4451 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4452 else
4453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4454 ac_dummy="$PATH"
4455 for ac_dir in $ac_dummy; do
4456 test -z "$ac_dir" && ac_dir=.
4457 if test -f $ac_dir/$ac_word; then
4458 ac_cv_prog_OBJCOPY="${ncn_progname}"
4459 break
4460 fi
4461 done
4462 IFS="$ac_save_ifs"
4463 fi
4464 fi
4465 OBJCOPY="$ac_cv_prog_OBJCOPY"
4466 if test -n "$OBJCOPY"; then
4467 echo "$ac_t""$OBJCOPY" 1>&6
4468 else
4469 echo "$ac_t""no" 1>&6
4470 fi
4471
4472 fi
4473 test -n "$ac_cv_prog_OBJCOPY" && break
4474 done
4475
4476 if test -z "$ac_cv_prog_OBJCOPY" ; then
4477 set dummy objcopy
4478 if test $build = $host ; then
4479 OBJCOPY="$2"
4480 else
4481 OBJCOPY="${ncn_tool_prefix}$2"
4482 fi
4483 fi
4484
4485 for ncn_progname in objdump; do
4486 if test -n "$ncn_tool_prefix"; then
4487 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4488 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4490 echo "configure:4491: checking for $ac_word" >&5
4491 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4493 else
4494 if test -n "$OBJDUMP"; then
4495 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4496 else
4497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4498 ac_dummy="$PATH"
4499 for ac_dir in $ac_dummy; do
4500 test -z "$ac_dir" && ac_dir=.
4501 if test -f $ac_dir/$ac_word; then
4502 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4503 break
4504 fi
4505 done
4506 IFS="$ac_save_ifs"
4507 fi
4508 fi
4509 OBJDUMP="$ac_cv_prog_OBJDUMP"
4510 if test -n "$OBJDUMP"; then
4511 echo "$ac_t""$OBJDUMP" 1>&6
4512 else
4513 echo "$ac_t""no" 1>&6
4514 fi
4515
4516 fi
4517 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4519 set dummy ${ncn_progname}; ac_word=$2
4520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4521 echo "configure:4522: checking for $ac_word" >&5
4522 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4523 echo $ac_n "(cached) $ac_c" 1>&6
4524 else
4525 if test -n "$OBJDUMP"; then
4526 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4527 else
4528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4529 ac_dummy="$PATH"
4530 for ac_dir in $ac_dummy; do
4531 test -z "$ac_dir" && ac_dir=.
4532 if test -f $ac_dir/$ac_word; then
4533 ac_cv_prog_OBJDUMP="${ncn_progname}"
4534 break
4535 fi
4536 done
4537 IFS="$ac_save_ifs"
4538 fi
4539 fi
4540 OBJDUMP="$ac_cv_prog_OBJDUMP"
4541 if test -n "$OBJDUMP"; then
4542 echo "$ac_t""$OBJDUMP" 1>&6
4543 else
4544 echo "$ac_t""no" 1>&6
4545 fi
4546
4547 fi
4548 test -n "$ac_cv_prog_OBJDUMP" && break
4549 done
4550
4551 if test -z "$ac_cv_prog_OBJDUMP" ; then
4552 set dummy objdump
4553 if test $build = $host ; then
4554 OBJDUMP="$2"
4555 else
4556 OBJDUMP="${ncn_tool_prefix}$2"
4557 fi
4558 fi
4559
4560
4561
4562
4563
4564
4565
4566 # Target tools.
4567 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4568 if test "${with_build_time_tools+set}" = set; then
4569 withval="$with_build_time_tools"
4570 case x"$withval" in
4571 x/*) ;;
4572 *)
4573 with_build_time_tools=
4574 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4575 ;;
4576 esac
4577 else
4578 with_build_time_tools=
4579 fi
4580
4581
4582 if test -n "$with_build_time_tools"; then
4583 for ncn_progname in cc gcc; do
4584 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4585 echo "configure:4586: checking for ${ncn_progname} in $with_build_time_tools" >&5
4586 if test -x $with_build_time_tools/${ncn_progname}; then
4587 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4588 echo "$ac_t""yes" 1>&6
4589 break
4590 else
4591 echo "$ac_t""no" 1>&6
4592 fi
4593 done
4594 fi
4595
4596 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4597 for ncn_progname in cc gcc; do
4598 if test -n "$ncn_target_tool_prefix"; then
4599 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4600 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4602 echo "configure:4603: checking for $ac_word" >&5
4603 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4605 else
4606 if test -n "$CC_FOR_TARGET"; then
4607 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4608 else
4609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4610 ac_dummy="$PATH"
4611 for ac_dir in $ac_dummy; do
4612 test -z "$ac_dir" && ac_dir=.
4613 if test -f $ac_dir/$ac_word; then
4614 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4615 break
4616 fi
4617 done
4618 IFS="$ac_save_ifs"
4619 fi
4620 fi
4621 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4622 if test -n "$CC_FOR_TARGET"; then
4623 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4624 else
4625 echo "$ac_t""no" 1>&6
4626 fi
4627
4628 fi
4629 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4631 set dummy ${ncn_progname}; ac_word=$2
4632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4633 echo "configure:4634: checking for $ac_word" >&5
4634 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4635 echo $ac_n "(cached) $ac_c" 1>&6
4636 else
4637 if test -n "$CC_FOR_TARGET"; then
4638 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4639 else
4640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4641 ac_dummy="$PATH"
4642 for ac_dir in $ac_dummy; do
4643 test -z "$ac_dir" && ac_dir=.
4644 if test -f $ac_dir/$ac_word; then
4645 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4646 break
4647 fi
4648 done
4649 IFS="$ac_save_ifs"
4650 fi
4651 fi
4652 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4653 if test -n "$CC_FOR_TARGET"; then
4654 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4655 else
4656 echo "$ac_t""no" 1>&6
4657 fi
4658
4659 fi
4660 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4661 done
4662 fi
4663
4664 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4665 set dummy cc gcc
4666 if test $build = $target ; then
4667 CC_FOR_TARGET="$2"
4668 else
4669 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4670 fi
4671 fi
4672
4673 if test -n "$with_build_time_tools"; then
4674 for ncn_progname in c++ g++ cxx gxx; do
4675 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4676 echo "configure:4677: checking for ${ncn_progname} in $with_build_time_tools" >&5
4677 if test -x $with_build_time_tools/${ncn_progname}; then
4678 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4679 echo "$ac_t""yes" 1>&6
4680 break
4681 else
4682 echo "$ac_t""no" 1>&6
4683 fi
4684 done
4685 fi
4686
4687 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4688 for ncn_progname in c++ g++ cxx gxx; do
4689 if test -n "$ncn_target_tool_prefix"; then
4690 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4691 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4693 echo "configure:4694: checking for $ac_word" >&5
4694 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4695 echo $ac_n "(cached) $ac_c" 1>&6
4696 else
4697 if test -n "$CXX_FOR_TARGET"; then
4698 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4699 else
4700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4701 ac_dummy="$PATH"
4702 for ac_dir in $ac_dummy; do
4703 test -z "$ac_dir" && ac_dir=.
4704 if test -f $ac_dir/$ac_word; then
4705 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4706 break
4707 fi
4708 done
4709 IFS="$ac_save_ifs"
4710 fi
4711 fi
4712 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4713 if test -n "$CXX_FOR_TARGET"; then
4714 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4715 else
4716 echo "$ac_t""no" 1>&6
4717 fi
4718
4719 fi
4720 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4722 set dummy ${ncn_progname}; ac_word=$2
4723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4724 echo "configure:4725: checking for $ac_word" >&5
4725 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4727 else
4728 if test -n "$CXX_FOR_TARGET"; then
4729 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4730 else
4731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4732 ac_dummy="$PATH"
4733 for ac_dir in $ac_dummy; do
4734 test -z "$ac_dir" && ac_dir=.
4735 if test -f $ac_dir/$ac_word; then
4736 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4737 break
4738 fi
4739 done
4740 IFS="$ac_save_ifs"
4741 fi
4742 fi
4743 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4744 if test -n "$CXX_FOR_TARGET"; then
4745 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4746 else
4747 echo "$ac_t""no" 1>&6
4748 fi
4749
4750 fi
4751 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4752 done
4753 fi
4754
4755 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4756 set dummy c++ g++ cxx gxx
4757 if test $build = $target ; then
4758 CXX_FOR_TARGET="$2"
4759 else
4760 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4761 fi
4762 fi
4763
4764 if test -n "$with_build_time_tools"; then
4765 for ncn_progname in gcc; do
4766 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4767 echo "configure:4768: checking for ${ncn_progname} in $with_build_time_tools" >&5
4768 if test -x $with_build_time_tools/${ncn_progname}; then
4769 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4770 echo "$ac_t""yes" 1>&6
4771 break
4772 else
4773 echo "$ac_t""no" 1>&6
4774 fi
4775 done
4776 fi
4777
4778 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4779 for ncn_progname in gcc; do
4780 if test -n "$ncn_target_tool_prefix"; then
4781 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4782 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4784 echo "configure:4785: checking for $ac_word" >&5
4785 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4787 else
4788 if test -n "$GCC_FOR_TARGET"; then
4789 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4790 else
4791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4792 ac_dummy="$PATH"
4793 for ac_dir in $ac_dummy; do
4794 test -z "$ac_dir" && ac_dir=.
4795 if test -f $ac_dir/$ac_word; then
4796 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4797 break
4798 fi
4799 done
4800 IFS="$ac_save_ifs"
4801 fi
4802 fi
4803 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4804 if test -n "$GCC_FOR_TARGET"; then
4805 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4806 else
4807 echo "$ac_t""no" 1>&6
4808 fi
4809
4810 fi
4811 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4813 set dummy ${ncn_progname}; ac_word=$2
4814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4815 echo "configure:4816: checking for $ac_word" >&5
4816 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4818 else
4819 if test -n "$GCC_FOR_TARGET"; then
4820 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4821 else
4822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4823 ac_dummy="$PATH"
4824 for ac_dir in $ac_dummy; do
4825 test -z "$ac_dir" && ac_dir=.
4826 if test -f $ac_dir/$ac_word; then
4827 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4828 break
4829 fi
4830 done
4831 IFS="$ac_save_ifs"
4832 fi
4833 fi
4834 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4835 if test -n "$GCC_FOR_TARGET"; then
4836 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4837 else
4838 echo "$ac_t""no" 1>&6
4839 fi
4840
4841 fi
4842 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4843 done
4844 fi
4845
4846 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4847 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4848 fi
4849
4850 if test -n "$with_build_time_tools"; then
4851 for ncn_progname in gcj; do
4852 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4853 echo "configure:4854: checking for ${ncn_progname} in $with_build_time_tools" >&5
4854 if test -x $with_build_time_tools/${ncn_progname}; then
4855 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4856 echo "$ac_t""yes" 1>&6
4857 break
4858 else
4859 echo "$ac_t""no" 1>&6
4860 fi
4861 done
4862 fi
4863
4864 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4865 for ncn_progname in gcj; do
4866 if test -n "$ncn_target_tool_prefix"; then
4867 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4868 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4870 echo "configure:4871: checking for $ac_word" >&5
4871 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4873 else
4874 if test -n "$GCJ_FOR_TARGET"; then
4875 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4876 else
4877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4878 ac_dummy="$PATH"
4879 for ac_dir in $ac_dummy; do
4880 test -z "$ac_dir" && ac_dir=.
4881 if test -f $ac_dir/$ac_word; then
4882 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4883 break
4884 fi
4885 done
4886 IFS="$ac_save_ifs"
4887 fi
4888 fi
4889 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4890 if test -n "$GCJ_FOR_TARGET"; then
4891 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4892 else
4893 echo "$ac_t""no" 1>&6
4894 fi
4895
4896 fi
4897 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4899 set dummy ${ncn_progname}; ac_word=$2
4900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4901 echo "configure:4902: checking for $ac_word" >&5
4902 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4904 else
4905 if test -n "$GCJ_FOR_TARGET"; then
4906 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4907 else
4908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4909 ac_dummy="$PATH"
4910 for ac_dir in $ac_dummy; do
4911 test -z "$ac_dir" && ac_dir=.
4912 if test -f $ac_dir/$ac_word; then
4913 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4914 break
4915 fi
4916 done
4917 IFS="$ac_save_ifs"
4918 fi
4919 fi
4920 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4921 if test -n "$GCJ_FOR_TARGET"; then
4922 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4923 else
4924 echo "$ac_t""no" 1>&6
4925 fi
4926
4927 fi
4928 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4929 done
4930 fi
4931
4932 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4933 set dummy gcj
4934 if test $build = $target ; then
4935 GCJ_FOR_TARGET="$2"
4936 else
4937 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4938 fi
4939 fi
4940
4941 if test -n "$with_build_time_tools"; then
4942 for ncn_progname in gfortran; do
4943 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4944 echo "configure:4945: checking for ${ncn_progname} in $with_build_time_tools" >&5
4945 if test -x $with_build_time_tools/${ncn_progname}; then
4946 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4947 echo "$ac_t""yes" 1>&6
4948 break
4949 else
4950 echo "$ac_t""no" 1>&6
4951 fi
4952 done
4953 fi
4954
4955 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
4956 for ncn_progname in gfortran; do
4957 if test -n "$ncn_target_tool_prefix"; then
4958 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4959 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4961 echo "configure:4962: checking for $ac_word" >&5
4962 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4964 else
4965 if test -n "$GFORTRAN_FOR_TARGET"; then
4966 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4967 else
4968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4969 ac_dummy="$PATH"
4970 for ac_dir in $ac_dummy; do
4971 test -z "$ac_dir" && ac_dir=.
4972 if test -f $ac_dir/$ac_word; then
4973 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4974 break
4975 fi
4976 done
4977 IFS="$ac_save_ifs"
4978 fi
4979 fi
4980 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4981 if test -n "$GFORTRAN_FOR_TARGET"; then
4982 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4983 else
4984 echo "$ac_t""no" 1>&6
4985 fi
4986
4987 fi
4988 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4990 set dummy ${ncn_progname}; ac_word=$2
4991 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4992 echo "configure:4993: checking for $ac_word" >&5
4993 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4995 else
4996 if test -n "$GFORTRAN_FOR_TARGET"; then
4997 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4998 else
4999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5000 ac_dummy="$PATH"
5001 for ac_dir in $ac_dummy; do
5002 test -z "$ac_dir" && ac_dir=.
5003 if test -f $ac_dir/$ac_word; then
5004 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5005 break
5006 fi
5007 done
5008 IFS="$ac_save_ifs"
5009 fi
5010 fi
5011 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5012 if test -n "$GFORTRAN_FOR_TARGET"; then
5013 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5014 else
5015 echo "$ac_t""no" 1>&6
5016 fi
5017
5018 fi
5019 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5020 done
5021 fi
5022
5023 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5024 set dummy gfortran
5025 if test $build = $target ; then
5026 GFORTRAN_FOR_TARGET="$2"
5027 else
5028 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5029 fi
5030 fi
5031
5032
5033
5034 # The user is always right.
5035 if test "${PATH_SEPARATOR+set}" != set; then
5036 echo "#! /bin/sh" >conf$$.sh
5037 echo "exit 0" >>conf$$.sh
5038 chmod +x conf$$.sh
5039 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5040 PATH_SEPARATOR=';'
5041 else
5042 PATH_SEPARATOR=:
5043 fi
5044 rm -f conf$$.sh
5045 fi
5046
5047
5048
5049 if test "x$exec_prefix" = xNONE; then
5050 if test "x$prefix" = xNONE; then
5051 gcc_cv_tool_prefix=$ac_default_prefix
5052 else
5053 gcc_cv_tool_prefix=$prefix
5054 fi
5055 else
5056 gcc_cv_tool_prefix=$exec_prefix
5057 fi
5058
5059 # If there is no compiler in the tree, use the PATH only. In any
5060 # case, if there is no compiler in the tree nobody should use
5061 # AS_FOR_TARGET and LD_FOR_TARGET.
5062 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5063 gcc_version=`cat $srcdir/gcc/BASE-VER`
5064 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5065 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5066 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5067 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5068 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5069 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5070 else
5071 gcc_cv_tool_dirs=
5072 fi
5073
5074 if test x$build = x$target && test -n "$md_exec_prefix"; then
5075 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5076 fi
5077
5078
5079
5080 cat > conftest.c << \EOF
5081 #ifdef __GNUC__
5082 gcc_yay;
5083 #endif
5084 EOF
5085 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5086 have_gcc_for_target=yes
5087 else
5088 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5089 have_gcc_for_target=no
5090 fi
5091 rm conftest.c
5092
5093
5094
5095
5096 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5097 if test -n "$with_build_time_tools"; then
5098 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5099 echo "configure:5100: checking for ar in $with_build_time_tools" >&5
5100 if test -x $with_build_time_tools/ar; then
5101 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
5102 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5103 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5104 else
5105 echo "$ac_t""no" 1>&6
5106 fi
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
5111 fi
5112 fi
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
5122 /*)
5123 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5124 ;;
5125 ?:/*)
5126 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5127 ;;
5128 *)
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
5136 fi
5137 done
5138 IFS="$ac_save_ifs"
5139 ;;
5140 esac
5141 fi
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
5147 fi
5148
5149 fi
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/${ncn_progname}; then
5156 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5157 echo "$ac_t""yes" 1>&6
5158 break
5159 else
5160 echo "$ac_t""no" 1>&6
5161 fi
5162 done
5163 fi
5164
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
5185 fi
5186 done
5187 IFS="$ac_save_ifs"
5188 fi
5189 fi
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
5195 fi
5196
5197 fi
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
5216 fi
5217 done
5218 IFS="$ac_save_ifs"
5219 fi
5220 fi
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
5226 fi
5227
5228 fi
5229 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5230 done
5231 fi
5232
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"
5239 fi
5240 fi
5241
5242 else
5243 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5244 fi
5245
5246
5247
5248
5249 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5250 if test -n "$with_build_time_tools"; then
5251 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5252 echo "configure:5253: checking for as in $with_build_time_tools" >&5
5253 if test -x $with_build_time_tools/as; then
5254 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
5255 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5256 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5257 else
5258 echo "$ac_t""no" 1>&6
5259 fi
5260 elif test $build != $host && test $have_gcc_for_target = yes; then
5261 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5262 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5263 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5264 fi
5265 fi
5266 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5267 # Extract the first word of "as", so it can be a program name with args.
5268 set dummy as; ac_word=$2
5269 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5270 echo "configure:5271: checking for $ac_word" >&5
5271 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5272 echo $ac_n "(cached) $ac_c" 1>&6
5273 else
5274 case "$AS_FOR_TARGET" in
5275 /*)
5276 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5277 ;;
5278 ?:/*)
5279 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5280 ;;
5281 *)
5282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5283 ac_dummy="$gcc_cv_tool_dirs"
5284 for ac_dir in $ac_dummy; do
5285 test -z "$ac_dir" && ac_dir=.
5286 if test -f $ac_dir/$ac_word; then
5287 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5288 break
5289 fi
5290 done
5291 IFS="$ac_save_ifs"
5292 ;;
5293 esac
5294 fi
5295 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5296 if test -n "$AS_FOR_TARGET"; then
5297 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5298 else
5299 echo "$ac_t""no" 1>&6
5300 fi
5301
5302 fi
5303 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5304 if test -n "$with_build_time_tools"; then
5305 for ncn_progname in as; do
5306 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5307 echo "configure:5308: checking for ${ncn_progname} in $with_build_time_tools" >&5
5308 if test -x $with_build_time_tools/${ncn_progname}; then
5309 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5310 echo "$ac_t""yes" 1>&6
5311 break
5312 else
5313 echo "$ac_t""no" 1>&6
5314 fi
5315 done
5316 fi
5317
5318 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5319 for ncn_progname in as; do
5320 if test -n "$ncn_target_tool_prefix"; then
5321 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5322 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5324 echo "configure:5325: checking for $ac_word" >&5
5325 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5326 echo $ac_n "(cached) $ac_c" 1>&6
5327 else
5328 if test -n "$AS_FOR_TARGET"; then
5329 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5330 else
5331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5332 ac_dummy="$PATH"
5333 for ac_dir in $ac_dummy; do
5334 test -z "$ac_dir" && ac_dir=.
5335 if test -f $ac_dir/$ac_word; then
5336 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5337 break
5338 fi
5339 done
5340 IFS="$ac_save_ifs"
5341 fi
5342 fi
5343 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5344 if test -n "$AS_FOR_TARGET"; then
5345 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5346 else
5347 echo "$ac_t""no" 1>&6
5348 fi
5349
5350 fi
5351 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5353 set dummy ${ncn_progname}; ac_word=$2
5354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5355 echo "configure:5356: checking for $ac_word" >&5
5356 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5357 echo $ac_n "(cached) $ac_c" 1>&6
5358 else
5359 if test -n "$AS_FOR_TARGET"; then
5360 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5361 else
5362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5363 ac_dummy="$PATH"
5364 for ac_dir in $ac_dummy; do
5365 test -z "$ac_dir" && ac_dir=.
5366 if test -f $ac_dir/$ac_word; then
5367 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5368 break
5369 fi
5370 done
5371 IFS="$ac_save_ifs"
5372 fi
5373 fi
5374 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5375 if test -n "$AS_FOR_TARGET"; then
5376 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5377 else
5378 echo "$ac_t""no" 1>&6
5379 fi
5380
5381 fi
5382 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5383 done
5384 fi
5385
5386 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5387 set dummy as
5388 if test $build = $target ; then
5389 AS_FOR_TARGET="$2"
5390 else
5391 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5392 fi
5393 fi
5394
5395 else
5396 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5397 fi
5398
5399
5400
5401
5402 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5403 if test -n "$with_build_time_tools"; then
5404 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5405 echo "configure:5406: checking for dlltool in $with_build_time_tools" >&5
5406 if test -x $with_build_time_tools/dlltool; then
5407 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
5408 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5409 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5410 else
5411 echo "$ac_t""no" 1>&6
5412 fi
5413 elif test $build != $host && test $have_gcc_for_target = yes; then
5414 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5415 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5416 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5417 fi
5418 fi
5419 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5420 # Extract the first word of "dlltool", so it can be a program name with args.
5421 set dummy dlltool; ac_word=$2
5422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5423 echo "configure:5424: checking for $ac_word" >&5
5424 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5426 else
5427 case "$DLLTOOL_FOR_TARGET" in
5428 /*)
5429 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5430 ;;
5431 ?:/*)
5432 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5433 ;;
5434 *)
5435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5436 ac_dummy="$gcc_cv_tool_dirs"
5437 for ac_dir in $ac_dummy; do
5438 test -z "$ac_dir" && ac_dir=.
5439 if test -f $ac_dir/$ac_word; then
5440 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5441 break
5442 fi
5443 done
5444 IFS="$ac_save_ifs"
5445 ;;
5446 esac
5447 fi
5448 DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5449 if test -n "$DLLTOOL_FOR_TARGET"; then
5450 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5451 else
5452 echo "$ac_t""no" 1>&6
5453 fi
5454
5455 fi
5456 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5457 if test -n "$with_build_time_tools"; then
5458 for ncn_progname in dlltool; do
5459 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5460 echo "configure:5461: checking for ${ncn_progname} in $with_build_time_tools" >&5
5461 if test -x $with_build_time_tools/${ncn_progname}; then
5462 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5463 echo "$ac_t""yes" 1>&6
5464 break
5465 else
5466 echo "$ac_t""no" 1>&6
5467 fi
5468 done
5469 fi
5470
5471 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5472 for ncn_progname in dlltool; do
5473 if test -n "$ncn_target_tool_prefix"; then
5474 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5475 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5477 echo "configure:5478: checking for $ac_word" >&5
5478 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5479 echo $ac_n "(cached) $ac_c" 1>&6
5480 else
5481 if test -n "$DLLTOOL_FOR_TARGET"; then
5482 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5483 else
5484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5485 ac_dummy="$PATH"
5486 for ac_dir in $ac_dummy; do
5487 test -z "$ac_dir" && ac_dir=.
5488 if test -f $ac_dir/$ac_word; then
5489 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5490 break
5491 fi
5492 done
5493 IFS="$ac_save_ifs"
5494 fi
5495 fi
5496 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5497 if test -n "$DLLTOOL_FOR_TARGET"; then
5498 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5499 else
5500 echo "$ac_t""no" 1>&6
5501 fi
5502
5503 fi
5504 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5506 set dummy ${ncn_progname}; ac_word=$2
5507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5508 echo "configure:5509: checking for $ac_word" >&5
5509 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5510 echo $ac_n "(cached) $ac_c" 1>&6
5511 else
5512 if test -n "$DLLTOOL_FOR_TARGET"; then
5513 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5514 else
5515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5516 ac_dummy="$PATH"
5517 for ac_dir in $ac_dummy; do
5518 test -z "$ac_dir" && ac_dir=.
5519 if test -f $ac_dir/$ac_word; then
5520 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5521 break
5522 fi
5523 done
5524 IFS="$ac_save_ifs"
5525 fi
5526 fi
5527 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5528 if test -n "$DLLTOOL_FOR_TARGET"; then
5529 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5530 else
5531 echo "$ac_t""no" 1>&6
5532 fi
5533
5534 fi
5535 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5536 done
5537 fi
5538
5539 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5540 set dummy dlltool
5541 if test $build = $target ; then
5542 DLLTOOL_FOR_TARGET="$2"
5543 else
5544 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5545 fi
5546 fi
5547
5548 else
5549 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5550 fi
5551
5552
5553
5554
5555 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5556 if test -n "$with_build_time_tools"; then
5557 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5558 echo "configure:5559: checking for ld in $with_build_time_tools" >&5
5559 if test -x $with_build_time_tools/ld; then
5560 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
5561 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5562 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5563 else
5564 echo "$ac_t""no" 1>&6
5565 fi
5566 elif test $build != $host && test $have_gcc_for_target = yes; then
5567 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5568 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5569 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5570 fi
5571 fi
5572 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5573 # Extract the first word of "ld", so it can be a program name with args.
5574 set dummy ld; ac_word=$2
5575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5576 echo "configure:5577: checking for $ac_word" >&5
5577 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5579 else
5580 case "$LD_FOR_TARGET" in
5581 /*)
5582 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5583 ;;
5584 ?:/*)
5585 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5586 ;;
5587 *)
5588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5589 ac_dummy="$gcc_cv_tool_dirs"
5590 for ac_dir in $ac_dummy; do
5591 test -z "$ac_dir" && ac_dir=.
5592 if test -f $ac_dir/$ac_word; then
5593 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5594 break
5595 fi
5596 done
5597 IFS="$ac_save_ifs"
5598 ;;
5599 esac
5600 fi
5601 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5602 if test -n "$LD_FOR_TARGET"; then
5603 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5604 else
5605 echo "$ac_t""no" 1>&6
5606 fi
5607
5608 fi
5609 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5610 if test -n "$with_build_time_tools"; then
5611 for ncn_progname in ld; do
5612 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5613 echo "configure:5614: checking for ${ncn_progname} in $with_build_time_tools" >&5
5614 if test -x $with_build_time_tools/${ncn_progname}; then
5615 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5616 echo "$ac_t""yes" 1>&6
5617 break
5618 else
5619 echo "$ac_t""no" 1>&6
5620 fi
5621 done
5622 fi
5623
5624 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5625 for ncn_progname in ld; do
5626 if test -n "$ncn_target_tool_prefix"; then
5627 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5628 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5630 echo "configure:5631: checking for $ac_word" >&5
5631 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5632 echo $ac_n "(cached) $ac_c" 1>&6
5633 else
5634 if test -n "$LD_FOR_TARGET"; then
5635 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5636 else
5637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5638 ac_dummy="$PATH"
5639 for ac_dir in $ac_dummy; do
5640 test -z "$ac_dir" && ac_dir=.
5641 if test -f $ac_dir/$ac_word; then
5642 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5643 break
5644 fi
5645 done
5646 IFS="$ac_save_ifs"
5647 fi
5648 fi
5649 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5650 if test -n "$LD_FOR_TARGET"; then
5651 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5652 else
5653 echo "$ac_t""no" 1>&6
5654 fi
5655
5656 fi
5657 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5659 set dummy ${ncn_progname}; ac_word=$2
5660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5661 echo "configure:5662: checking for $ac_word" >&5
5662 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5664 else
5665 if test -n "$LD_FOR_TARGET"; then
5666 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5667 else
5668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5669 ac_dummy="$PATH"
5670 for ac_dir in $ac_dummy; do
5671 test -z "$ac_dir" && ac_dir=.
5672 if test -f $ac_dir/$ac_word; then
5673 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5674 break
5675 fi
5676 done
5677 IFS="$ac_save_ifs"
5678 fi
5679 fi
5680 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5681 if test -n "$LD_FOR_TARGET"; then
5682 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5683 else
5684 echo "$ac_t""no" 1>&6
5685 fi
5686
5687 fi
5688 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5689 done
5690 fi
5691
5692 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5693 set dummy ld
5694 if test $build = $target ; then
5695 LD_FOR_TARGET="$2"
5696 else
5697 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5698 fi
5699 fi
5700
5701 else
5702 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5703 fi
5704
5705
5706
5707
5708 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5709 if test -n "$with_build_time_tools"; then
5710 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5711 echo "configure:5712: checking for lipo in $with_build_time_tools" >&5
5712 if test -x $with_build_time_tools/lipo; then
5713 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
5714 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5715 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5716 else
5717 echo "$ac_t""no" 1>&6
5718 fi
5719 elif test $build != $host && test $have_gcc_for_target = yes; then
5720 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5721 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5722 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5723 fi
5724 fi
5725 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5726 # Extract the first word of "lipo", so it can be a program name with args.
5727 set dummy lipo; ac_word=$2
5728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5729 echo "configure:5730: checking for $ac_word" >&5
5730 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5731 echo $ac_n "(cached) $ac_c" 1>&6
5732 else
5733 case "$LIPO_FOR_TARGET" in
5734 /*)
5735 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5736 ;;
5737 ?:/*)
5738 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5739 ;;
5740 *)
5741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5742 ac_dummy="$gcc_cv_tool_dirs"
5743 for ac_dir in $ac_dummy; do
5744 test -z "$ac_dir" && ac_dir=.
5745 if test -f $ac_dir/$ac_word; then
5746 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5747 break
5748 fi
5749 done
5750 IFS="$ac_save_ifs"
5751 ;;
5752 esac
5753 fi
5754 LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5755 if test -n "$LIPO_FOR_TARGET"; then
5756 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5757 else
5758 echo "$ac_t""no" 1>&6
5759 fi
5760
5761 fi
5762 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5763 if test -n "$with_build_time_tools"; then
5764 for ncn_progname in lipo; do
5765 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5766 echo "configure:5767: checking for ${ncn_progname} in $with_build_time_tools" >&5
5767 if test -x $with_build_time_tools/${ncn_progname}; then
5768 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5769 echo "$ac_t""yes" 1>&6
5770 break
5771 else
5772 echo "$ac_t""no" 1>&6
5773 fi
5774 done
5775 fi
5776
5777 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5778 for ncn_progname in lipo; do
5779 if test -n "$ncn_target_tool_prefix"; then
5780 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5781 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5783 echo "configure:5784: checking for $ac_word" >&5
5784 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5785 echo $ac_n "(cached) $ac_c" 1>&6
5786 else
5787 if test -n "$LIPO_FOR_TARGET"; then
5788 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5789 else
5790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5791 ac_dummy="$PATH"
5792 for ac_dir in $ac_dummy; do
5793 test -z "$ac_dir" && ac_dir=.
5794 if test -f $ac_dir/$ac_word; then
5795 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5796 break
5797 fi
5798 done
5799 IFS="$ac_save_ifs"
5800 fi
5801 fi
5802 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5803 if test -n "$LIPO_FOR_TARGET"; then
5804 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5805 else
5806 echo "$ac_t""no" 1>&6
5807 fi
5808
5809 fi
5810 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5812 set dummy ${ncn_progname}; ac_word=$2
5813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5814 echo "configure:5815: checking for $ac_word" >&5
5815 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5816 echo $ac_n "(cached) $ac_c" 1>&6
5817 else
5818 if test -n "$LIPO_FOR_TARGET"; then
5819 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5820 else
5821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5822 ac_dummy="$PATH"
5823 for ac_dir in $ac_dummy; do
5824 test -z "$ac_dir" && ac_dir=.
5825 if test -f $ac_dir/$ac_word; then
5826 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5827 break
5828 fi
5829 done
5830 IFS="$ac_save_ifs"
5831 fi
5832 fi
5833 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5834 if test -n "$LIPO_FOR_TARGET"; then
5835 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5836 else
5837 echo "$ac_t""no" 1>&6
5838 fi
5839
5840 fi
5841 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5842 done
5843 fi
5844
5845 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5846 set dummy lipo
5847 if test $build = $target ; then
5848 LIPO_FOR_TARGET="$2"
5849 else
5850 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5851 fi
5852 fi
5853
5854 else
5855 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
5856 fi
5857
5858
5859
5860
5861 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5862 if test -n "$with_build_time_tools"; then
5863 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5864 echo "configure:5865: checking for nm in $with_build_time_tools" >&5
5865 if test -x $with_build_time_tools/nm; then
5866 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
5867 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5868 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5869 else
5870 echo "$ac_t""no" 1>&6
5871 fi
5872 elif test $build != $host && test $have_gcc_for_target = yes; then
5873 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
5874 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
5875 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5876 fi
5877 fi
5878 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5879 # Extract the first word of "nm", so it can be a program name with args.
5880 set dummy nm; ac_word=$2
5881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5882 echo "configure:5883: checking for $ac_word" >&5
5883 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6
5885 else
5886 case "$NM_FOR_TARGET" in
5887 /*)
5888 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
5889 ;;
5890 ?:/*)
5891 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5892 ;;
5893 *)
5894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5895 ac_dummy="$gcc_cv_tool_dirs"
5896 for ac_dir in $ac_dummy; do
5897 test -z "$ac_dir" && ac_dir=.
5898 if test -f $ac_dir/$ac_word; then
5899 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
5900 break
5901 fi
5902 done
5903 IFS="$ac_save_ifs"
5904 ;;
5905 esac
5906 fi
5907 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
5908 if test -n "$NM_FOR_TARGET"; then
5909 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5910 else
5911 echo "$ac_t""no" 1>&6
5912 fi
5913
5914 fi
5915 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5916 if test -n "$with_build_time_tools"; then
5917 for ncn_progname in nm; do
5918 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5919 echo "configure:5920: checking for ${ncn_progname} in $with_build_time_tools" >&5
5920 if test -x $with_build_time_tools/${ncn_progname}; then
5921 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5922 echo "$ac_t""yes" 1>&6
5923 break
5924 else
5925 echo "$ac_t""no" 1>&6
5926 fi
5927 done
5928 fi
5929
5930 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5931 for ncn_progname in nm; do
5932 if test -n "$ncn_target_tool_prefix"; then
5933 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5934 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5936 echo "configure:5937: checking for $ac_word" >&5
5937 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5938 echo $ac_n "(cached) $ac_c" 1>&6
5939 else
5940 if test -n "$NM_FOR_TARGET"; then
5941 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5942 else
5943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5944 ac_dummy="$PATH"
5945 for ac_dir in $ac_dummy; do
5946 test -z "$ac_dir" && ac_dir=.
5947 if test -f $ac_dir/$ac_word; then
5948 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5949 break
5950 fi
5951 done
5952 IFS="$ac_save_ifs"
5953 fi
5954 fi
5955 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5956 if test -n "$NM_FOR_TARGET"; then
5957 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5958 else
5959 echo "$ac_t""no" 1>&6
5960 fi
5961
5962 fi
5963 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5965 set dummy ${ncn_progname}; ac_word=$2
5966 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5967 echo "configure:5968: checking for $ac_word" >&5
5968 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5969 echo $ac_n "(cached) $ac_c" 1>&6
5970 else
5971 if test -n "$NM_FOR_TARGET"; then
5972 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5973 else
5974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5975 ac_dummy="$PATH"
5976 for ac_dir in $ac_dummy; do
5977 test -z "$ac_dir" && ac_dir=.
5978 if test -f $ac_dir/$ac_word; then
5979 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5980 break
5981 fi
5982 done
5983 IFS="$ac_save_ifs"
5984 fi
5985 fi
5986 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5987 if test -n "$NM_FOR_TARGET"; then
5988 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5989 else
5990 echo "$ac_t""no" 1>&6
5991 fi
5992
5993 fi
5994 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5995 done
5996 fi
5997
5998 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5999 set dummy nm
6000 if test $build = $target ; then
6001 NM_FOR_TARGET="$2"
6002 else
6003 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
6004 fi
6005 fi
6006
6007 else
6008 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
6009 fi
6010
6011
6012
6013
6014 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6015 if test -n "$with_build_time_tools"; then
6016 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6017 echo "configure:6018: checking for objdump in $with_build_time_tools" >&5
6018 if test -x $with_build_time_tools/objdump; then
6019 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
6020 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6021 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6022 else
6023 echo "$ac_t""no" 1>&6
6024 fi
6025 elif test $build != $host && test $have_gcc_for_target = yes; then
6026 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
6027 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
6028 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
6029 fi
6030 fi
6031 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6032 # Extract the first word of "objdump", so it can be a program name with args.
6033 set dummy objdump; ac_word=$2
6034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6035 echo "configure:6036: checking for $ac_word" >&5
6036 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6038 else
6039 case "$OBJDUMP_FOR_TARGET" in
6040 /*)
6041 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6042 ;;
6043 ?:/*)
6044 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6045 ;;
6046 *)
6047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6048 ac_dummy="$gcc_cv_tool_dirs"
6049 for ac_dir in $ac_dummy; do
6050 test -z "$ac_dir" && ac_dir=.
6051 if test -f $ac_dir/$ac_word; then
6052 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6053 break
6054 fi
6055 done
6056 IFS="$ac_save_ifs"
6057 ;;
6058 esac
6059 fi
6060 OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6061 if test -n "$OBJDUMP_FOR_TARGET"; then
6062 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6063 else
6064 echo "$ac_t""no" 1>&6
6065 fi
6066
6067 fi
6068 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6069 if test -n "$with_build_time_tools"; then
6070 for ncn_progname in objdump; do
6071 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6072 echo "configure:6073: checking for ${ncn_progname} in $with_build_time_tools" >&5
6073 if test -x $with_build_time_tools/${ncn_progname}; then
6074 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6075 echo "$ac_t""yes" 1>&6
6076 break
6077 else
6078 echo "$ac_t""no" 1>&6
6079 fi
6080 done
6081 fi
6082
6083 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6084 for ncn_progname in objdump; do
6085 if test -n "$ncn_target_tool_prefix"; then
6086 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6087 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6089 echo "configure:6090: checking for $ac_word" >&5
6090 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6092 else
6093 if test -n "$OBJDUMP_FOR_TARGET"; then
6094 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6095 else
6096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6097 ac_dummy="$PATH"
6098 for ac_dir in $ac_dummy; do
6099 test -z "$ac_dir" && ac_dir=.
6100 if test -f $ac_dir/$ac_word; then
6101 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6102 break
6103 fi
6104 done
6105 IFS="$ac_save_ifs"
6106 fi
6107 fi
6108 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6109 if test -n "$OBJDUMP_FOR_TARGET"; then
6110 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6111 else
6112 echo "$ac_t""no" 1>&6
6113 fi
6114
6115 fi
6116 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6118 set dummy ${ncn_progname}; ac_word=$2
6119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6120 echo "configure:6121: checking for $ac_word" >&5
6121 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6122 echo $ac_n "(cached) $ac_c" 1>&6
6123 else
6124 if test -n "$OBJDUMP_FOR_TARGET"; then
6125 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6126 else
6127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6128 ac_dummy="$PATH"
6129 for ac_dir in $ac_dummy; do
6130 test -z "$ac_dir" && ac_dir=.
6131 if test -f $ac_dir/$ac_word; then
6132 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6133 break
6134 fi
6135 done
6136 IFS="$ac_save_ifs"
6137 fi
6138 fi
6139 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6140 if test -n "$OBJDUMP_FOR_TARGET"; then
6141 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6142 else
6143 echo "$ac_t""no" 1>&6
6144 fi
6145
6146 fi
6147 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6148 done
6149 fi
6150
6151 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6152 set dummy objdump
6153 if test $build = $target ; then
6154 OBJDUMP_FOR_TARGET="$2"
6155 else
6156 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6157 fi
6158 fi
6159
6160 else
6161 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
6162 fi
6163
6164
6165
6166
6167 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6168 if test -n "$with_build_time_tools"; then
6169 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6170 echo "configure:6171: checking for ranlib in $with_build_time_tools" >&5
6171 if test -x $with_build_time_tools/ranlib; then
6172 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
6173 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6174 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6175 else
6176 echo "$ac_t""no" 1>&6
6177 fi
6178 elif test $build != $host && test $have_gcc_for_target = yes; then
6179 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6180 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6181 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6182 fi
6183 fi
6184 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6185 # Extract the first word of "ranlib", so it can be a program name with args.
6186 set dummy ranlib; ac_word=$2
6187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6188 echo "configure:6189: checking for $ac_word" >&5
6189 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6190 echo $ac_n "(cached) $ac_c" 1>&6
6191 else
6192 case "$RANLIB_FOR_TARGET" in
6193 /*)
6194 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6195 ;;
6196 ?:/*)
6197 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6198 ;;
6199 *)
6200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6201 ac_dummy="$gcc_cv_tool_dirs"
6202 for ac_dir in $ac_dummy; do
6203 test -z "$ac_dir" && ac_dir=.
6204 if test -f $ac_dir/$ac_word; then
6205 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6206 break
6207 fi
6208 done
6209 IFS="$ac_save_ifs"
6210 ;;
6211 esac
6212 fi
6213 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6214 if test -n "$RANLIB_FOR_TARGET"; then
6215 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6216 else
6217 echo "$ac_t""no" 1>&6
6218 fi
6219
6220 fi
6221 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6222 if test -n "$with_build_time_tools"; then
6223 for ncn_progname in ranlib; do
6224 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6225 echo "configure:6226: checking for ${ncn_progname} in $with_build_time_tools" >&5
6226 if test -x $with_build_time_tools/${ncn_progname}; then
6227 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6228 echo "$ac_t""yes" 1>&6
6229 break
6230 else
6231 echo "$ac_t""no" 1>&6
6232 fi
6233 done
6234 fi
6235
6236 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6237 for ncn_progname in ranlib; do
6238 if test -n "$ncn_target_tool_prefix"; then
6239 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6240 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6242 echo "configure:6243: checking for $ac_word" >&5
6243 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6244 echo $ac_n "(cached) $ac_c" 1>&6
6245 else
6246 if test -n "$RANLIB_FOR_TARGET"; then
6247 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6248 else
6249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6250 ac_dummy="$PATH"
6251 for ac_dir in $ac_dummy; do
6252 test -z "$ac_dir" && ac_dir=.
6253 if test -f $ac_dir/$ac_word; then
6254 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6255 break
6256 fi
6257 done
6258 IFS="$ac_save_ifs"
6259 fi
6260 fi
6261 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6262 if test -n "$RANLIB_FOR_TARGET"; then
6263 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6264 else
6265 echo "$ac_t""no" 1>&6
6266 fi
6267
6268 fi
6269 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6271 set dummy ${ncn_progname}; ac_word=$2
6272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6273 echo "configure:6274: checking for $ac_word" >&5
6274 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6275 echo $ac_n "(cached) $ac_c" 1>&6
6276 else
6277 if test -n "$RANLIB_FOR_TARGET"; then
6278 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6279 else
6280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6281 ac_dummy="$PATH"
6282 for ac_dir in $ac_dummy; do
6283 test -z "$ac_dir" && ac_dir=.
6284 if test -f $ac_dir/$ac_word; then
6285 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6286 break
6287 fi
6288 done
6289 IFS="$ac_save_ifs"
6290 fi
6291 fi
6292 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6293 if test -n "$RANLIB_FOR_TARGET"; then
6294 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6295 else
6296 echo "$ac_t""no" 1>&6
6297 fi
6298
6299 fi
6300 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6301 done
6302 fi
6303
6304 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6305 set dummy ranlib
6306 if test $build = $target ; then
6307 RANLIB_FOR_TARGET="$2"
6308 else
6309 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
6310 fi
6311 fi
6312
6313 else
6314 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
6315 fi
6316
6317
6318
6319
6320 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6321 if test -n "$with_build_time_tools"; then
6322 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6323 echo "configure:6324: checking for strip in $with_build_time_tools" >&5
6324 if test -x $with_build_time_tools/strip; then
6325 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
6326 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6327 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6328 else
6329 echo "$ac_t""no" 1>&6
6330 fi
6331 elif test $build != $host && test $have_gcc_for_target = yes; then
6332 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6333 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6334 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6335 fi
6336 fi
6337 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6338 # Extract the first word of "strip", so it can be a program name with args.
6339 set dummy strip; ac_word=$2
6340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6341 echo "configure:6342: checking for $ac_word" >&5
6342 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6343 echo $ac_n "(cached) $ac_c" 1>&6
6344 else
6345 case "$STRIP_FOR_TARGET" in
6346 /*)
6347 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6348 ;;
6349 ?:/*)
6350 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6351 ;;
6352 *)
6353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6354 ac_dummy="$gcc_cv_tool_dirs"
6355 for ac_dir in $ac_dummy; do
6356 test -z "$ac_dir" && ac_dir=.
6357 if test -f $ac_dir/$ac_word; then
6358 ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6359 break
6360 fi
6361 done
6362 IFS="$ac_save_ifs"
6363 ;;
6364 esac
6365 fi
6366 STRIP_FOR_TARGET="$ac_cv_path_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
6371 fi
6372
6373 fi
6374 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6375 if test -n "$with_build_time_tools"; then
6376 for ncn_progname in strip; do
6377 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6378 echo "configure:6379: checking for ${ncn_progname} in $with_build_time_tools" >&5
6379 if test -x $with_build_time_tools/${ncn_progname}; then
6380 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6381 echo "$ac_t""yes" 1>&6
6382 break
6383 else
6384 echo "$ac_t""no" 1>&6
6385 fi
6386 done
6387 fi
6388
6389 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6390 for ncn_progname in strip; do
6391 if test -n "$ncn_target_tool_prefix"; then
6392 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6393 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6395 echo "configure:6396: checking for $ac_word" >&5
6396 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6397 echo $ac_n "(cached) $ac_c" 1>&6
6398 else
6399 if test -n "$STRIP_FOR_TARGET"; then
6400 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6401 else
6402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6403 ac_dummy="$PATH"
6404 for ac_dir in $ac_dummy; do
6405 test -z "$ac_dir" && ac_dir=.
6406 if test -f $ac_dir/$ac_word; then
6407 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6408 break
6409 fi
6410 done
6411 IFS="$ac_save_ifs"
6412 fi
6413 fi
6414 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6415 if test -n "$STRIP_FOR_TARGET"; then
6416 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6417 else
6418 echo "$ac_t""no" 1>&6
6419 fi
6420
6421 fi
6422 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6424 set dummy ${ncn_progname}; ac_word=$2
6425 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6426 echo "configure:6427: checking for $ac_word" >&5
6427 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6428 echo $ac_n "(cached) $ac_c" 1>&6
6429 else
6430 if test -n "$STRIP_FOR_TARGET"; then
6431 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6432 else
6433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6434 ac_dummy="$PATH"
6435 for ac_dir in $ac_dummy; do
6436 test -z "$ac_dir" && ac_dir=.
6437 if test -f $ac_dir/$ac_word; then
6438 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6439 break
6440 fi
6441 done
6442 IFS="$ac_save_ifs"
6443 fi
6444 fi
6445 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6446 if test -n "$STRIP_FOR_TARGET"; then
6447 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6448 else
6449 echo "$ac_t""no" 1>&6
6450 fi
6451
6452 fi
6453 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6454 done
6455 fi
6456
6457 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6458 set dummy strip
6459 if test $build = $target ; then
6460 STRIP_FOR_TARGET="$2"
6461 else
6462 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6463 fi
6464 fi
6465
6466 else
6467 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
6468 fi
6469
6470
6471
6472
6473 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6474 if test -n "$with_build_time_tools"; then
6475 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6476 echo "configure:6477: checking for windres in $with_build_time_tools" >&5
6477 if test -x $with_build_time_tools/windres; then
6478 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
6479 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6480 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6481 else
6482 echo "$ac_t""no" 1>&6
6483 fi
6484 elif test $build != $host && test $have_gcc_for_target = yes; then
6485 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6486 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6487 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6488 fi
6489 fi
6490 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6491 # Extract the first word of "windres", so it can be a program name with args.
6492 set dummy windres; 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_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6496 echo $ac_n "(cached) $ac_c" 1>&6
6497 else
6498 case "$WINDRES_FOR_TARGET" in
6499 /*)
6500 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6501 ;;
6502 ?:/*)
6503 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6504 ;;
6505 *)
6506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6507 ac_dummy="$gcc_cv_tool_dirs"
6508 for ac_dir in $ac_dummy; do
6509 test -z "$ac_dir" && ac_dir=.
6510 if test -f $ac_dir/$ac_word; then
6511 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6512 break
6513 fi
6514 done
6515 IFS="$ac_save_ifs"
6516 ;;
6517 esac
6518 fi
6519 WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6520 if test -n "$WINDRES_FOR_TARGET"; then
6521 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6522 else
6523 echo "$ac_t""no" 1>&6
6524 fi
6525
6526 fi
6527 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6528 if test -n "$with_build_time_tools"; then
6529 for ncn_progname in windres; do
6530 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6531 echo "configure:6532: checking for ${ncn_progname} in $with_build_time_tools" >&5
6532 if test -x $with_build_time_tools/${ncn_progname}; then
6533 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6534 echo "$ac_t""yes" 1>&6
6535 break
6536 else
6537 echo "$ac_t""no" 1>&6
6538 fi
6539 done
6540 fi
6541
6542 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6543 for ncn_progname in windres; do
6544 if test -n "$ncn_target_tool_prefix"; then
6545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6546 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6548 echo "configure:6549: checking for $ac_word" >&5
6549 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6550 echo $ac_n "(cached) $ac_c" 1>&6
6551 else
6552 if test -n "$WINDRES_FOR_TARGET"; then
6553 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6554 else
6555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6556 ac_dummy="$PATH"
6557 for ac_dir in $ac_dummy; do
6558 test -z "$ac_dir" && ac_dir=.
6559 if test -f $ac_dir/$ac_word; then
6560 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6561 break
6562 fi
6563 done
6564 IFS="$ac_save_ifs"
6565 fi
6566 fi
6567 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6568 if test -n "$WINDRES_FOR_TARGET"; then
6569 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6570 else
6571 echo "$ac_t""no" 1>&6
6572 fi
6573
6574 fi
6575 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6577 set dummy ${ncn_progname}; ac_word=$2
6578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6579 echo "configure:6580: checking for $ac_word" >&5
6580 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6582 else
6583 if test -n "$WINDRES_FOR_TARGET"; then
6584 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6585 else
6586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6587 ac_dummy="$PATH"
6588 for ac_dir in $ac_dummy; do
6589 test -z "$ac_dir" && ac_dir=.
6590 if test -f $ac_dir/$ac_word; then
6591 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6592 break
6593 fi
6594 done
6595 IFS="$ac_save_ifs"
6596 fi
6597 fi
6598 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6599 if test -n "$WINDRES_FOR_TARGET"; then
6600 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6601 else
6602 echo "$ac_t""no" 1>&6
6603 fi
6604
6605 fi
6606 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6607 done
6608 fi
6609
6610 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6611 set dummy windres
6612 if test $build = $target ; then
6613 WINDRES_FOR_TARGET="$2"
6614 else
6615 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
6616 fi
6617 fi
6618
6619 else
6620 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
6621 fi
6622
6623
6624 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6625
6626 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6627 echo "configure:6628: checking where to find the target ar" >&5
6628 if test "x${build}" != "x${host}" ; then
6629 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6630 # We already found the complete path
6631 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6632 else
6633 # Canadian cross, just use what we found
6634 echo "$ac_t""pre-installed" 1>&6
6635 fi
6636 else
6637 ok=yes
6638 case " ${configdirs} " in
6639 *" binutils "*) ;;
6640 *) ok=no ;;
6641 esac
6642
6643 if test $ok = yes; then
6644 # An in-tree tool is available and we can use it
6645 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6646 echo "$ac_t""just compiled" 1>&6
6647 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6648 # We already found the complete path
6649 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6650 elif test "x$target" = "x$host"; then
6651 # We can use an host tool
6652 AR_FOR_TARGET='$(AR)'
6653 echo "$ac_t""host tool" 1>&6
6654 else
6655 # We need a cross tool
6656 echo "$ac_t""pre-installed" 1>&6
6657 fi
6658 fi
6659 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6660 echo "configure:6661: checking where to find the target as" >&5
6661 if test "x${build}" != "x${host}" ; then
6662 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6663 # We already found the complete path
6664 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6665 else
6666 # Canadian cross, just use what we found
6667 echo "$ac_t""pre-installed" 1>&6
6668 fi
6669 else
6670 ok=yes
6671 case " ${configdirs} " in
6672 *" gas "*) ;;
6673 *) ok=no ;;
6674 esac
6675
6676 if test $ok = yes; then
6677 # An in-tree tool is available and we can use it
6678 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6679 echo "$ac_t""just compiled" 1>&6
6680 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6681 # We already found the complete path
6682 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6683 elif test "x$target" = "x$host"; then
6684 # We can use an host tool
6685 AS_FOR_TARGET='$(AS)'
6686 echo "$ac_t""host tool" 1>&6
6687 else
6688 # We need a cross tool
6689 echo "$ac_t""pre-installed" 1>&6
6690 fi
6691 fi
6692 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6693 echo "configure:6694: checking where to find the target cc" >&5
6694 if test "x${build}" != "x${host}" ; then
6695 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6696 # We already found the complete path
6697 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6698 else
6699 # Canadian cross, just use what we found
6700 echo "$ac_t""pre-installed" 1>&6
6701 fi
6702 else
6703 ok=yes
6704 case " ${configdirs} " in
6705 *" gcc "*) ;;
6706 *) ok=no ;;
6707 esac
6708
6709 if test $ok = yes; then
6710 # An in-tree tool is available and we can use it
6711 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6712 echo "$ac_t""just compiled" 1>&6
6713 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6714 # We already found the complete path
6715 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6716 elif test "x$target" = "x$host"; then
6717 # We can use an host tool
6718 CC_FOR_TARGET='$(CC)'
6719 echo "$ac_t""host tool" 1>&6
6720 else
6721 # We need a cross tool
6722 echo "$ac_t""pre-installed" 1>&6
6723 fi
6724 fi
6725 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6726 echo "configure:6727: checking where to find the target c++" >&5
6727 if test "x${build}" != "x${host}" ; then
6728 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6729 # We already found the complete path
6730 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6731 else
6732 # Canadian cross, just use what we found
6733 echo "$ac_t""pre-installed" 1>&6
6734 fi
6735 else
6736 ok=yes
6737 case " ${configdirs} " in
6738 *" gcc "*) ;;
6739 *) ok=no ;;
6740 esac
6741 case ,${enable_languages}, in
6742 *,c++,*) ;;
6743 *) ok=no ;;
6744 esac
6745 if test $ok = yes; then
6746 # An in-tree tool is available and we can use it
6747 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'
6748 echo "$ac_t""just compiled" 1>&6
6749 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6750 # We already found the complete path
6751 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6752 elif test "x$target" = "x$host"; then
6753 # We can use an host tool
6754 CXX_FOR_TARGET='$(CXX)'
6755 echo "$ac_t""host tool" 1>&6
6756 else
6757 # We need a cross tool
6758 echo "$ac_t""pre-installed" 1>&6
6759 fi
6760 fi
6761 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6762 echo "configure:6763: checking where to find the target c++ for libstdc++" >&5
6763 if test "x${build}" != "x${host}" ; then
6764 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6765 # We already found the complete path
6766 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6767 else
6768 # Canadian cross, just use what we found
6769 echo "$ac_t""pre-installed" 1>&6
6770 fi
6771 else
6772 ok=yes
6773 case " ${configdirs} " in
6774 *" gcc "*) ;;
6775 *) ok=no ;;
6776 esac
6777 case ,${enable_languages}, in
6778 *,c++,*) ;;
6779 *) ok=no ;;
6780 esac
6781 if test $ok = yes; then
6782 # An in-tree tool is available and we can use it
6783 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'
6784 echo "$ac_t""just compiled" 1>&6
6785 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6786 # We already found the complete path
6787 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6788 elif test "x$target" = "x$host"; then
6789 # We can use an host tool
6790 RAW_CXX_FOR_TARGET='$(CXX)'
6791 echo "$ac_t""host tool" 1>&6
6792 else
6793 # We need a cross tool
6794 echo "$ac_t""pre-installed" 1>&6
6795 fi
6796 fi
6797 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6798 echo "configure:6799: checking where to find the target dlltool" >&5
6799 if test "x${build}" != "x${host}" ; then
6800 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6801 # We already found the complete path
6802 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6803 else
6804 # Canadian cross, just use what we found
6805 echo "$ac_t""pre-installed" 1>&6
6806 fi
6807 else
6808 ok=yes
6809 case " ${configdirs} " in
6810 *" binutils "*) ;;
6811 *) ok=no ;;
6812 esac
6813
6814 if test $ok = yes; then
6815 # An in-tree tool is available and we can use it
6816 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6817 echo "$ac_t""just compiled" 1>&6
6818 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6819 # We already found the complete path
6820 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6821 elif test "x$target" = "x$host"; then
6822 # We can use an host tool
6823 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
6824 echo "$ac_t""host tool" 1>&6
6825 else
6826 # We need a cross tool
6827 echo "$ac_t""pre-installed" 1>&6
6828 fi
6829 fi
6830 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6831 echo "configure:6832: checking where to find the target gcc" >&5
6832 if test "x${build}" != "x${host}" ; then
6833 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6834 # We already found the complete path
6835 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6836 else
6837 # Canadian cross, just use what we found
6838 echo "$ac_t""pre-installed" 1>&6
6839 fi
6840 else
6841 ok=yes
6842 case " ${configdirs} " in
6843 *" gcc "*) ;;
6844 *) ok=no ;;
6845 esac
6846
6847 if test $ok = yes; then
6848 # An in-tree tool is available and we can use it
6849 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6850 echo "$ac_t""just compiled" 1>&6
6851 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6852 # We already found the complete path
6853 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6854 elif test "x$target" = "x$host"; then
6855 # We can use an host tool
6856 GCC_FOR_TARGET='$()'
6857 echo "$ac_t""host tool" 1>&6
6858 else
6859 # We need a cross tool
6860 echo "$ac_t""pre-installed" 1>&6
6861 fi
6862 fi
6863 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6864 echo "configure:6865: checking where to find the target gcj" >&5
6865 if test "x${build}" != "x${host}" ; then
6866 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6867 # We already found the complete path
6868 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6869 else
6870 # Canadian cross, just use what we found
6871 echo "$ac_t""pre-installed" 1>&6
6872 fi
6873 else
6874 ok=yes
6875 case " ${configdirs} " in
6876 *" gcc "*) ;;
6877 *) ok=no ;;
6878 esac
6879 case ,${enable_languages}, in
6880 *,java,*) ;;
6881 *) ok=no ;;
6882 esac
6883 if test $ok = yes; then
6884 # An in-tree tool is available and we can use it
6885 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6886 echo "$ac_t""just compiled" 1>&6
6887 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6888 # We already found the complete path
6889 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6890 elif test "x$target" = "x$host"; then
6891 # We can use an host tool
6892 GCJ_FOR_TARGET='$(GCJ)'
6893 echo "$ac_t""host tool" 1>&6
6894 else
6895 # We need a cross tool
6896 echo "$ac_t""pre-installed" 1>&6
6897 fi
6898 fi
6899 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6900 echo "configure:6901: checking where to find the target gfortran" >&5
6901 if test "x${build}" != "x${host}" ; then
6902 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6903 # We already found the complete path
6904 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6905 else
6906 # Canadian cross, just use what we found
6907 echo "$ac_t""pre-installed" 1>&6
6908 fi
6909 else
6910 ok=yes
6911 case " ${configdirs} " in
6912 *" gcc "*) ;;
6913 *) ok=no ;;
6914 esac
6915 case ,${enable_languages}, in
6916 *,fortran,*) ;;
6917 *) ok=no ;;
6918 esac
6919 if test $ok = yes; then
6920 # An in-tree tool is available and we can use it
6921 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6922 echo "$ac_t""just compiled" 1>&6
6923 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6924 # We already found the complete path
6925 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6926 elif test "x$target" = "x$host"; then
6927 # We can use an host tool
6928 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
6929 echo "$ac_t""host tool" 1>&6
6930 else
6931 # We need a cross tool
6932 echo "$ac_t""pre-installed" 1>&6
6933 fi
6934 fi
6935 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
6936 echo "configure:6937: checking where to find the target ld" >&5
6937 if test "x${build}" != "x${host}" ; then
6938 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6939 # We already found the complete path
6940 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6941 else
6942 # Canadian cross, just use what we found
6943 echo "$ac_t""pre-installed" 1>&6
6944 fi
6945 else
6946 ok=yes
6947 case " ${configdirs} " in
6948 *" ld "*) ;;
6949 *) ok=no ;;
6950 esac
6951
6952 if test $ok = yes; then
6953 # An in-tree tool is available and we can use it
6954 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
6955 echo "$ac_t""just compiled" 1>&6
6956 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6957 # We already found the complete path
6958 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6959 elif test "x$target" = "x$host"; then
6960 # We can use an host tool
6961 LD_FOR_TARGET='$(LD)'
6962 echo "$ac_t""host tool" 1>&6
6963 else
6964 # We need a cross tool
6965 echo "$ac_t""pre-installed" 1>&6
6966 fi
6967 fi
6968 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
6969 echo "configure:6970: checking where to find the target lipo" >&5
6970 if test "x${build}" != "x${host}" ; then
6971 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6972 # We already found the complete path
6973 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6974 else
6975 # Canadian cross, just use what we found
6976 echo "$ac_t""pre-installed" 1>&6
6977 fi
6978 else
6979 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6980 # We already found the complete path
6981 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6982 elif test "x$target" = "x$host"; then
6983 # We can use an host tool
6984 LIPO_FOR_TARGET='$(LIPO)'
6985 echo "$ac_t""host tool" 1>&6
6986 else
6987 # We need a cross tool
6988 echo "$ac_t""pre-installed" 1>&6
6989 fi
6990 fi
6991 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
6992 echo "configure:6993: checking where to find the target nm" >&5
6993 if test "x${build}" != "x${host}" ; then
6994 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
6995 # We already found the complete path
6996 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
6997 else
6998 # Canadian cross, just use what we found
6999 echo "$ac_t""pre-installed" 1>&6
7000 fi
7001 else
7002 ok=yes
7003 case " ${configdirs} " in
7004 *" binutils "*) ;;
7005 *) ok=no ;;
7006 esac
7007
7008 if test $ok = yes; then
7009 # An in-tree tool is available and we can use it
7010 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7011 echo "$ac_t""just compiled" 1>&6
7012 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
7013 # We already found the complete path
7014 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7015 elif test "x$target" = "x$host"; then
7016 # We can use an host tool
7017 NM_FOR_TARGET='$(NM)'
7018 echo "$ac_t""host tool" 1>&6
7019 else
7020 # We need a cross tool
7021 echo "$ac_t""pre-installed" 1>&6
7022 fi
7023 fi
7024 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7025 echo "configure:7026: checking where to find the target objdump" >&5
7026 if test "x${build}" != "x${host}" ; then
7027 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7028 # We already found the complete path
7029 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7030 else
7031 # Canadian cross, just use what we found
7032 echo "$ac_t""pre-installed" 1>&6
7033 fi
7034 else
7035 ok=yes
7036 case " ${configdirs} " in
7037 *" binutils "*) ;;
7038 *) ok=no ;;
7039 esac
7040
7041 if test $ok = yes; then
7042 # An in-tree tool is available and we can use it
7043 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
7044 echo "$ac_t""just compiled" 1>&6
7045 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7046 # We already found the complete path
7047 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7048 elif test "x$target" = "x$host"; then
7049 # We can use an host tool
7050 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
7051 echo "$ac_t""host tool" 1>&6
7052 else
7053 # We need a cross tool
7054 echo "$ac_t""pre-installed" 1>&6
7055 fi
7056 fi
7057 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7058 echo "configure:7059: checking where to find the target ranlib" >&5
7059 if test "x${build}" != "x${host}" ; then
7060 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7061 # We already found the complete path
7062 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7063 else
7064 # Canadian cross, just use what we found
7065 echo "$ac_t""pre-installed" 1>&6
7066 fi
7067 else
7068 ok=yes
7069 case " ${configdirs} " in
7070 *" binutils "*) ;;
7071 *) ok=no ;;
7072 esac
7073
7074 if test $ok = yes; then
7075 # An in-tree tool is available and we can use it
7076 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7077 echo "$ac_t""just compiled" 1>&6
7078 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7079 # We already found the complete path
7080 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7081 elif test "x$target" = "x$host"; then
7082 # We can use an host tool
7083 RANLIB_FOR_TARGET='$(RANLIB)'
7084 echo "$ac_t""host tool" 1>&6
7085 else
7086 # We need a cross tool
7087 echo "$ac_t""pre-installed" 1>&6
7088 fi
7089 fi
7090 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7091 echo "configure:7092: checking where to find the target strip" >&5
7092 if test "x${build}" != "x${host}" ; then
7093 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7094 # We already found the complete path
7095 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7096 else
7097 # Canadian cross, just use what we found
7098 echo "$ac_t""pre-installed" 1>&6
7099 fi
7100 else
7101 ok=yes
7102 case " ${configdirs} " in
7103 *" binutils "*) ;;
7104 *) ok=no ;;
7105 esac
7106
7107 if test $ok = yes; then
7108 # An in-tree tool is available and we can use it
7109 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7110 echo "$ac_t""just compiled" 1>&6
7111 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7112 # We already found the complete path
7113 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7114 elif test "x$target" = "x$host"; then
7115 # We can use an host tool
7116 STRIP_FOR_TARGET='$(STRIP)'
7117 echo "$ac_t""host tool" 1>&6
7118 else
7119 # We need a cross tool
7120 echo "$ac_t""pre-installed" 1>&6
7121 fi
7122 fi
7123 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7124 echo "configure:7125: checking where to find the target windres" >&5
7125 if test "x${build}" != "x${host}" ; then
7126 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7127 # We already found the complete path
7128 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7129 else
7130 # Canadian cross, just use what we found
7131 echo "$ac_t""pre-installed" 1>&6
7132 fi
7133 else
7134 ok=yes
7135 case " ${configdirs} " in
7136 *" binutils "*) ;;
7137 *) ok=no ;;
7138 esac
7139
7140 if test $ok = yes; then
7141 # An in-tree tool is available and we can use it
7142 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7143 echo "$ac_t""just compiled" 1>&6
7144 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7145 # We already found the complete path
7146 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7147 elif test "x$target" = "x$host"; then
7148 # We can use an host tool
7149 WINDRES_FOR_TARGET='$(WINDRES)'
7150 echo "$ac_t""host tool" 1>&6
7151 else
7152 # We need a cross tool
7153 echo "$ac_t""pre-installed" 1>&6
7154 fi
7155 fi
7156
7157
7158
7159
7160 # Certain tools may need extra flags.
7161 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7162 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7163 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7164
7165 # When building target libraries, except in a Canadian cross, we use
7166 # the same toolchain as the compiler we just built.
7167 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7168 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7169 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7170 if test $host = $build; then
7171 case " $configdirs " in
7172 *" gcc "*)
7173 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7174 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7175 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7176 ;;
7177 esac
7178 fi
7179
7180
7181
7182
7183
7184 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7185 echo "configure:7186: checking whether to enable maintainer-specific portions of Makefiles" >&5
7186 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7187 if test "${enable_maintainer_mode+set}" = set; then
7188 enableval="$enable_maintainer_mode"
7189 USE_MAINTAINER_MODE=$enableval
7190 else
7191 USE_MAINTAINER_MODE=no
7192 fi
7193
7194 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7195
7196
7197 if test "$USE_MAINTAINER_MODE" = yes; then
7198 MAINTAINER_MODE_TRUE=
7199 MAINTAINER_MODE_FALSE='#'
7200 else
7201 MAINTAINER_MODE_TRUE='#'
7202 MAINTAINER_MODE_FALSE=
7203 fi
7204 MAINT=$MAINTAINER_MODE_TRUE
7205
7206 # ---------------------
7207 # GCC bootstrap support
7208 # ---------------------
7209
7210 # Stage specific cflags for build.
7211 stage1_cflags="-g"
7212 case $build in
7213 vax-*-*)
7214 case ${GCC} in
7215 yes) stage1_cflags="-g -Wa,-J" ;;
7216 *) stage1_cflags="-g -J" ;;
7217 esac ;;
7218 powerpc-*-darwin*)
7219 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7220 # sources; use -no-cpp-precomp to get to GNU cpp.
7221 # Apple's GCC has bugs in designated initializer handling, so disable
7222 # that too.
7223 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7224 ;;
7225 esac
7226
7227
7228 # Enable -Werror in bootstrap stage2 and later.
7229 # Change the default to "no" on release branches.
7230 # Check whether --enable-werror or --disable-werror was given.
7231 if test "${enable_werror+set}" = set; then
7232 enableval="$enable_werror"
7233 :
7234 else
7235 enable_werror=yes
7236 fi
7237
7238 case ${enable_werror} in
7239 yes) stage2_werror_flag="--enable-werror-always" ;;
7240 *) stage2_werror_flag="" ;;
7241 esac
7242
7243
7244 trap '' 1 2 15
7245 cat > confcache <<\EOF
7246 # This file is a shell script that caches the results of configure
7247 # tests run on this system so they can be shared between configure
7248 # scripts and configure runs. It is not useful on other systems.
7249 # If it contains results you don't want to keep, you may remove or edit it.
7250 #
7251 # By default, configure uses ./config.cache as the cache file,
7252 # creating it if it does not exist already. You can give configure
7253 # the --cache-file=FILE option to use a different cache file; that is
7254 # what configure does when it calls configure scripts in
7255 # subdirectories, so they share the cache.
7256 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7257 # config.status only pays attention to the cache file if you give it the
7258 # --recheck option to rerun configure.
7259 #
7260 EOF
7261 # The following way of writing the cache mishandles newlines in values,
7262 # but we know of no workaround that is simple, portable, and efficient.
7263 # So, don't put newlines in cache variables' values.
7264 # Ultrix sh set writes to stderr and can't be redirected directly,
7265 # and sets the high bit in the cache file unless we assign to the vars.
7266 (set) 2>&1 |
7267 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7268 *ac_space=\ *)
7269 # `set' does not quote correctly, so add quotes (double-quote substitution
7270 # turns \\\\ into \\, and sed turns \\ into \).
7271 sed -n \
7272 -e "s/'/'\\\\''/g" \
7273 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7274 ;;
7275 *)
7276 # `set' quotes correctly as required by POSIX, so do not add quotes.
7277 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7278 ;;
7279 esac >> confcache
7280 if cmp -s $cache_file confcache; then
7281 :
7282 else
7283 if test -w $cache_file; then
7284 echo "updating cache $cache_file"
7285 cat confcache > $cache_file
7286 else
7287 echo "not updating unwritable cache $cache_file"
7288 fi
7289 fi
7290 rm -f confcache
7291
7292 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7293
7294 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7295 # Let make expand exec_prefix.
7296 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7297
7298 # Any assignment to VPATH causes Sun make to only execute
7299 # the first set of double-colon rules, so remove it if not needed.
7300 # If there is a colon in the path, we need to keep it.
7301 if test "x$srcdir" = x.; then
7302 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7303 fi
7304
7305 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7306
7307 # Transform confdefs.h into DEFS.
7308 # Protect against shell expansion while executing Makefile rules.
7309 # Protect against Makefile macro expansion.
7310 cat > conftest.defs <<\EOF
7311 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7312 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7313 s%\[%\\&%g
7314 s%\]%\\&%g
7315 s%\$%$$%g
7316 EOF
7317 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7318 rm -f conftest.defs
7319
7320
7321 # Without the "./", some shells look in PATH for config.status.
7322 : ${CONFIG_STATUS=./config.status}
7323
7324 echo creating $CONFIG_STATUS
7325 rm -f $CONFIG_STATUS
7326 cat > $CONFIG_STATUS <<EOF
7327 #! /bin/sh
7328 # Generated automatically by configure.
7329 # Run this file to recreate the current configuration.
7330 # This directory was configured as follows,
7331 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7332 #
7333 # $0 $ac_configure_args
7334 #
7335 # Compiler output produced by configure, useful for debugging
7336 # configure, is in ./config.log if it exists.
7337
7338 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7339 for ac_option
7340 do
7341 case "\$ac_option" in
7342 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7343 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7344 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7345 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7346 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7347 exit 0 ;;
7348 -help | --help | --hel | --he | --h)
7349 echo "\$ac_cs_usage"; exit 0 ;;
7350 *) echo "\$ac_cs_usage"; exit 1 ;;
7351 esac
7352 done
7353
7354 ac_given_srcdir=$srcdir
7355 ac_given_INSTALL="$INSTALL"
7356
7357 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7358 EOF
7359 cat >> $CONFIG_STATUS <<EOF
7360
7361 # Protect against being on the right side of a sed subst in config.status.
7362 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7363 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7364 $ac_vpsub
7365 $extrasub
7366 s%@SHELL@%$SHELL%g
7367 s%@CFLAGS@%$CFLAGS%g
7368 s%@CPPFLAGS@%$CPPFLAGS%g
7369 s%@CXXFLAGS@%$CXXFLAGS%g
7370 s%@FFLAGS@%$FFLAGS%g
7371 s%@DEFS@%$DEFS%g
7372 s%@LDFLAGS@%$LDFLAGS%g
7373 s%@LIBS@%$LIBS%g
7374 s%@exec_prefix@%$exec_prefix%g
7375 s%@prefix@%$prefix%g
7376 s%@program_transform_name@%$program_transform_name%g
7377 s%@bindir@%$bindir%g
7378 s%@sbindir@%$sbindir%g
7379 s%@libexecdir@%$libexecdir%g
7380 s%@datadir@%$datadir%g
7381 s%@sysconfdir@%$sysconfdir%g
7382 s%@sharedstatedir@%$sharedstatedir%g
7383 s%@localstatedir@%$localstatedir%g
7384 s%@libdir@%$libdir%g
7385 s%@includedir@%$includedir%g
7386 s%@oldincludedir@%$oldincludedir%g
7387 s%@infodir@%$infodir%g
7388 s%@mandir@%$mandir%g
7389 s%@host@%$host%g
7390 s%@host_alias@%$host_alias%g
7391 s%@host_cpu@%$host_cpu%g
7392 s%@host_vendor@%$host_vendor%g
7393 s%@host_os@%$host_os%g
7394 s%@target@%$target%g
7395 s%@target_alias@%$target_alias%g
7396 s%@target_cpu@%$target_cpu%g
7397 s%@target_vendor@%$target_vendor%g
7398 s%@target_os@%$target_os%g
7399 s%@build@%$build%g
7400 s%@build_alias@%$build_alias%g
7401 s%@build_cpu@%$build_cpu%g
7402 s%@build_vendor@%$build_vendor%g
7403 s%@build_os@%$build_os%g
7404 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7405 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7406 s%@INSTALL_DATA@%$INSTALL_DATA%g
7407 s%@LN@%$LN%g
7408 s%@LN_S@%$LN_S%g
7409 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7410 s%@build_subdir@%$build_subdir%g
7411 s%@host_subdir@%$host_subdir%g
7412 s%@target_subdir@%$target_subdir%g
7413 s%@CC@%$CC%g
7414 s%@GNATBIND@%$GNATBIND%g
7415 s%@do_compare@%$do_compare%g
7416 s%@gmplibs@%$gmplibs%g
7417 s%@gmpinc@%$gmpinc%g
7418 s%@stage1_languages@%$stage1_languages%g
7419 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7420 /@serialization_dependencies@/r $serialization_dependencies
7421 s%@serialization_dependencies@%%g
7422 /@host_makefile_frag@/r $host_makefile_frag
7423 s%@host_makefile_frag@%%g
7424 /@target_makefile_frag@/r $target_makefile_frag
7425 s%@target_makefile_frag@%%g
7426 /@alphaieee_frag@/r $alphaieee_frag
7427 s%@alphaieee_frag@%%g
7428 /@ospace_frag@/r $ospace_frag
7429 s%@ospace_frag@%%g
7430 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7431 s%@tooldir@%$tooldir%g
7432 s%@build_tooldir@%$build_tooldir%g
7433 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7434 s%@GDB_TK@%$GDB_TK%g
7435 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7436 s%@build_configargs@%$build_configargs%g
7437 s%@build_configdirs@%$build_configdirs%g
7438 s%@host_configargs@%$host_configargs%g
7439 s%@configdirs@%$configdirs%g
7440 s%@target_configargs@%$target_configargs%g
7441 s%@target_configdirs@%$target_configdirs%g
7442 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7443 s%@config_shell@%$config_shell%g
7444 s%@YACC@%$YACC%g
7445 s%@BISON@%$BISON%g
7446 s%@M4@%$M4%g
7447 s%@LEX@%$LEX%g
7448 s%@FLEX@%$FLEX%g
7449 s%@MAKEINFO@%$MAKEINFO%g
7450 s%@EXPECT@%$EXPECT%g
7451 s%@RUNTEST@%$RUNTEST%g
7452 s%@AR@%$AR%g
7453 s%@AS@%$AS%g
7454 s%@DLLTOOL@%$DLLTOOL%g
7455 s%@LD@%$LD%g
7456 s%@LIPO@%$LIPO%g
7457 s%@NM@%$NM%g
7458 s%@RANLIB@%$RANLIB%g
7459 s%@STRIP@%$STRIP%g
7460 s%@WINDRES@%$WINDRES%g
7461 s%@OBJCOPY@%$OBJCOPY%g
7462 s%@OBJDUMP@%$OBJDUMP%g
7463 s%@CXX@%$CXX%g
7464 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7465 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7466 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7467 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7468 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7469 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7470 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7471 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7472 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7473 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7474 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7475 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7476 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7477 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7478 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7479 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7480 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7481 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7482 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7483 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7484 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7485 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7486 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7487 s%@MAINT@%$MAINT%g
7488 s%@stage1_cflags@%$stage1_cflags%g
7489 s%@stage2_werror_flag@%$stage2_werror_flag%g
7490
7491 CEOF
7492 EOF
7493
7494 cat >> $CONFIG_STATUS <<\EOF
7495
7496 # Split the substitutions into bite-sized pieces for seds with
7497 # small command number limits, like on Digital OSF/1 and HP-UX.
7498 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7499 ac_file=1 # Number of current file.
7500 ac_beg=1 # First line for current file.
7501 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7502 ac_more_lines=:
7503 ac_sed_cmds=""
7504 while $ac_more_lines; do
7505 if test $ac_beg -gt 1; then
7506 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7507 else
7508 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7509 fi
7510 if test ! -s conftest.s$ac_file; then
7511 ac_more_lines=false
7512 rm -f conftest.s$ac_file
7513 else
7514 if test -z "$ac_sed_cmds"; then
7515 ac_sed_cmds="sed -f conftest.s$ac_file"
7516 else
7517 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7518 fi
7519 ac_file=`expr $ac_file + 1`
7520 ac_beg=$ac_end
7521 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7522 fi
7523 done
7524 if test -z "$ac_sed_cmds"; then
7525 ac_sed_cmds=cat
7526 fi
7527 EOF
7528
7529 cat >> $CONFIG_STATUS <<EOF
7530
7531 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7532 EOF
7533 cat >> $CONFIG_STATUS <<\EOF
7534 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7535 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7536 case "$ac_file" in
7537 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7538 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7539 *) ac_file_in="${ac_file}.in" ;;
7540 esac
7541
7542 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7543
7544 # Remove last slash and all that follows it. Not all systems have dirname.
7545 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7546 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7547 # The file is in a subdirectory.
7548 test ! -d "$ac_dir" && mkdir "$ac_dir"
7549 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7550 # A "../" for each directory in $ac_dir_suffix.
7551 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7552 else
7553 ac_dir_suffix= ac_dots=
7554 fi
7555
7556 case "$ac_given_srcdir" in
7557 .) srcdir=.
7558 if test -z "$ac_dots"; then top_srcdir=.
7559 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7560 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7561 *) # Relative path.
7562 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7563 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7564 esac
7565
7566 case "$ac_given_INSTALL" in
7567 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7568 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7569 esac
7570
7571 echo creating "$ac_file"
7572 rm -f "$ac_file"
7573 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7574 case "$ac_file" in
7575 *Makefile*) ac_comsub="1i\\
7576 # $configure_input" ;;
7577 *) ac_comsub= ;;
7578 esac
7579
7580 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7581 sed -e "$ac_comsub
7582 s%@configure_input@%$configure_input%g
7583 s%@srcdir@%$srcdir%g
7584 s%@top_srcdir@%$top_srcdir%g
7585 s%@INSTALL@%$INSTALL%g
7586 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7587 fi; done
7588 rm -f conftest.s*
7589
7590 EOF
7591 cat >> $CONFIG_STATUS <<EOF
7592
7593 EOF
7594 cat >> $CONFIG_STATUS <<\EOF
7595
7596 exit 0
7597 EOF
7598 chmod +x $CONFIG_STATUS
7599 rm -fr confdefs* $ac_clean_files
7600 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7601
This page took 0.265959 seconds and 3 git commands to generate.