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