* linux-low.c (regsets_store_inferior_registers): Read the regset
[deliverable/binutils-gdb.git] / configure
... / ...
CommitLineData
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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-libada Builds libada directory"
16ac_help="$ac_help
17 --enable-libssp Builds libssp directory"
18ac_help="$ac_help
19 --enable-libgcc-math Builds libgcc-math directory"
20ac_help="$ac_help
21 --with-mpfr-dir=PATH Specify source directory for MPFR library"
22ac_help="$ac_help
23 --with-mpfr=PATH Specify directory for installed MPFR library"
24ac_help="$ac_help
25 --with-gmp-dir=PATH Specify source directory for GMP library"
26ac_help="$ac_help
27 --with-gmp=PATH Specify directory for installed GMP library"
28ac_help="$ac_help
29 --with-build-sysroot=sysroot
30 use sysroot as the system root during the build"
31ac_help="$ac_help
32 --enable-bootstrap Enable bootstrapping [yes if native build]"
33ac_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"
38ac_help="$ac_help
39 --with-build-time-tools=path
40 use given path to find target tools during the build"
41ac_help="$ac_help
42 --enable-maintainer-mode enable make rules and dependencies not useful
43 (and sometimes confusing) to the casual installer"
44ac_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.
50build=NONE
51cache_file=./config.cache
52exec_prefix=NONE
53host=NONE
54no_create=
55nonopt=NONE
56no_recursion=
57prefix=NONE
58program_prefix=NONE
59program_suffix=NONE
60program_transform_name=s,x,x,
61silent=
62site=
63srcdir=
64target=NONE
65verbose=
66x_includes=NONE
67x_libraries=NONE
68bindir='${exec_prefix}/bin'
69sbindir='${exec_prefix}/sbin'
70libexecdir='${exec_prefix}/libexec'
71datadir='${prefix}/share'
72sysconfdir='${prefix}/etc'
73sharedstatedir='${prefix}/com'
74localstatedir='${prefix}/var'
75libdir='${exec_prefix}/lib'
76includedir='${prefix}/include'
77oldincludedir='/usr/include'
78infodir='${prefix}/info'
79mandir='${prefix}/man'
80
81# Initialize some other variables.
82subdirs=
83MFLAGS= MAKEFLAGS=
84SHELL=${CONFIG_SHELL-/bin/sh}
85# Maximum number of lines to put in a shell here document.
86ac_max_here_lines=12
87
88ac_prev=
89for ac_option
90do
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
170Usage: configure [options] [host]
171Options: [defaults in brackets after descriptions]
172Configuration:
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
178Directory 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
202EOF
203 cat << EOF
204Host 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]
208Features 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
215EOF
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
425done
426
427if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429fi
430
431trap '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
441if test "$silent" = yes; then
442 exec 6>/dev/null
443else
444 exec 6>&1
445fi
446exec 5>./config.log
447
448echo "\
449This file contains any messages produced by compilers while
450running 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.
455ac_configure_args=
456for ac_arg
457do
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
467done
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.
474if test "${LANG+set}" = set; then LANG=C; export LANG; fi
475if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
476if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
477if 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.
480rm -rf conftest* confdefs.h
481# AIX cpp loses on an empty file, so make sure it contains at least a newline.
482echo > 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.
486ac_unique_file=move-if-change
487
488# Find the source files, if location was not specified.
489if 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
499else
500 ac_srcdir_defaulted=no
501fi
502if 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
508fi
509srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510
511# Prefer explicitly selected file to automatically selected ones.
512if 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
518fi
519for 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
524done
525
526if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
528 . $cache_file
529else
530 echo "creating cache $cache_file"
531 > $cache_file
532fi
533
534ac_ext=c
535# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536ac_cpp='$CPP $CPPFLAGS'
537ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539cross_compiling=$ac_cv_prog_cc_cross
540
541ac_exeext=
542ac_objext=o
543if (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
551else
552 ac_n= ac_c='\c' ac_t=
553fi
554
555
556
557ac_aux_dir=
558for 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
568done
569if 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; }
571fi
572ac_config_guess=$ac_aux_dir/config.guess
573ac_config_sub=$ac_aux_dir/config.sub
574ac_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.
592case $host---$target---$nonopt in
593NONE---*---* | *---NONE---* | *---*---NONE) ;;
594*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
595esac
596
597
598# Make sure we can run config.sub.
599if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
600else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
601fi
602
603echo $ac_n "checking host system type""... $ac_c" 1>&6
604echo "configure:605: checking host system type" >&5
605
606host_alias=$host
607case "$host_alias" in
608NONE)
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 ;;
616esac
617
618host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622echo "$ac_t""$host" 1>&6
623
624echo $ac_n "checking target system type""... $ac_c" 1>&6
625echo "configure:626: checking target system type" >&5
626
627target_alias=$target
628case "$target_alias" in
629NONE)
630 case $nonopt in
631 NONE) target_alias=$host_alias ;;
632 *) target_alias=$nonopt ;;
633 esac ;;
634esac
635
636target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640echo "$ac_t""$target" 1>&6
641
642echo $ac_n "checking build system type""... $ac_c" 1>&6
643echo "configure:644: checking build system type" >&5
644
645build_alias=$build
646case "$build_alias" in
647NONE)
648 case $nonopt in
649 NONE) build_alias=$host_alias ;;
650 *) build_alias=$nonopt ;;
651 esac ;;
652esac
653
654build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658echo "$ac_t""$build" 1>&6
659
660test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
662 NONENONEs,x,x, &&
663 program_prefix=${target_alias}-
664
665if test "$program_transform_name" = s,x,x,; then
666 program_transform_name=
667else
668 # Double any \ or $. echo might interpret backslashes.
669 cat <<\EOF_SED > conftestsed
670s,\\,\\\\,g; s,\$,$$,g
671EOF_SED
672 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
673 rm -f conftestsed
674fi
675test "$program_prefix" != NONE &&
676 program_transform_name="s,^,${program_prefix},; $program_transform_name"
677# Use a double $ so make ignores it.
678test "$program_suffix" != NONE &&
679 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
680
681# sed with no file args requires a program.
682test "$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.
697echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
698echo "configure:699: checking for a BSD compatible install" >&5
699if test -z "$INSTALL"; then
700if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
702else
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
729fi
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
739fi
740echo "$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.
744test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
745
746test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
747
748test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
749
750echo $ac_n "checking whether ln works""... $ac_c" 1>&6
751echo "configure:752: checking whether ln works" >&5
752if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
754else
755 rm -f conftestdata_t
756echo >conftestdata_f
757if ln conftestdata_f conftestdata_t 2>/dev/null
758then
759 acx_cv_prog_LN=ln
760else
761 acx_cv_prog_LN=no
762fi
763rm -f conftestdata_f conftestdata_t
764
765fi
766if test $acx_cv_prog_LN = no; then
767 LN="cp"
768 echo "$ac_t""no, using $LN" 1>&6
769else
770 LN="$acx_cv_prog_LN"
771 echo "$ac_t""yes" 1>&6
772fi
773
774echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
775echo "configure:776: checking whether ln -s works" >&5
776if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
778else
779 rm -f conftestdata
780if ln -s X conftestdata 2>/dev/null
781then
782 rm -f conftestdata
783 ac_cv_prog_LN_S="ln -s"
784else
785 ac_cv_prog_LN_S=ln
786fi
787fi
788LN_S="$ac_cv_prog_LN_S"
789if test "$ac_cv_prog_LN_S" = "ln -s"; then
790 echo "$ac_t""yes" 1>&6
791else
792 echo "$ac_t""no" 1>&6
793fi
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.
801case "${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 ;;
826esac
827
828config_shell=${CONFIG_SHELL-/bin/sh}
829
830progname=$0
831# if PWD already has a value, it is probably wrong.
832if 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 '$'.
836tmp="$progname $@"
837sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
838$tmp
839EOF_SED
840TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
841rm -f conftestsed.out
842
843
844moveifchange=${srcdir}/move-if-change
845
846srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
847
848# We pass INSTALL explicitly to sub-makes. Make sure that it is not
849# a relative path.
850if test "$INSTALL" = "${srcdir}/install-sh -c"; then
851 INSTALL="${srcpwd}/install-sh -c"
852fi
853
854# Set srcdir to "." if that's what it is.
855# This is important for multilib support.
856pwd=`${PWDCMD-pwd}`
857if test "${pwd}" = "${srcpwd}" ; then
858 srcdir=.
859fi
860
861topsrcdir=$srcpwd
862
863extra_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#
882build_libs="build-libiberty"
883
884# these tools are built for the build environment
885build_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#
889host_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.
896host_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.
899libgcj="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#
908target_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#
928target_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.
937configdirs=`echo ${host_libs} ${host_tools}`
938target_configdirs=`echo ${target_libraries} ${target_tools}`
939build_configdirs=`echo ${build_libs} ${build_tools}`
940
941################################################################################
942
943srcname="gnu development package"
944
945# This gets set non-empty for some net releases of packages.
946appdirs=""
947
948# Define is_cross_compiler to save on calls to 'test'.
949is_cross_compiler=
950if test x"${host}" = x"${target}" ; then
951 is_cross_compiler=no
952else
953 is_cross_compiler=yes
954fi
955
956# Find the build and target subdir names.
957 case ${build_alias} in
958 "") build_noncanonical=${build} ;;
959 *) build_noncanonical=${build_alias} ;;
960esac
961
962 case ${host_alias} in
963 "") host_noncanonical=${build_noncanonical} ;;
964 *) host_noncanonical=${host_alias} ;;
965esac
966
967 case ${target_alias} in
968 "") target_noncanonical=${host_noncanonical} ;;
969 *) target_noncanonical=${target_alias} ;;
970esac
971
972 # Prefix 'build-' so this never conflicts with target_subdir.
973build_subdir="build-${build_noncanonical}"
974# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
975if ( test $srcdir = . && test -d gcc ) \
976 || test -d $srcdir/../host-${host_noncanonical}; then
977 host_subdir="host-${host_noncanonical}"
978else
979 host_subdir=.
980fi
981# No prefix.
982target_subdir=${target_noncanonical}
983
984
985# Skipdirs are removed silently.
986skipdirs=
987# Noconfigdirs are removed loudly.
988noconfigdirs=""
989
990use_gnu_ld=
991# Make sure we don't let GNU ld be added if we didn't want it.
992if test x$with_gnu_ld = xno ; then
993 use_gnu_ld=no
994 noconfigdirs="$noconfigdirs ld"
995fi
996
997use_gnu_as=
998# Make sure we don't let GNU as be added if we didn't want it.
999if test x$with_gnu_as = xno ; then
1000 use_gnu_as=no
1001 noconfigdirs="$noconfigdirs gas"
1002fi
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
1007case ${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 ;;
1015esac
1016
1017# Some tools are only suitable for building in a "native" situation.
1018# Remove these if host!=target.
1019native_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.
1023cross_only="target-libgloss target-newlib target-opcodes"
1024
1025case $is_cross_compiler in
1026 no) skipdirs="${skipdirs} ${cross_only}" ;;
1027 yes) skipdirs="${skipdirs} ${native_only}" ;;
1028esac
1029
1030# If both --with-headers and --with-libs are specified, default to
1031# --without-newlib.
1032if 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
1037fi
1038
1039# Recognize --with-newlib/--without-newlib.
1040case ${with_newlib} in
1041 no) skipdirs="${skipdirs} target-newlib" ;;
1042 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1043esac
1044
1045# Configure extra directories which are host specific
1046
1047case "${host}" in
1048 *-cygwin*)
1049 configdirs="$configdirs libtermcap" ;;
1050esac
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.
1054unsupported_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
1060case "${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 ;;
1089esac
1090
1091
1092# Check whether --enable-libada or --disable-libada was given.
1093if test "${enable_libada+set}" = set; then
1094 enableval="$enable_libada"
1095 ENABLE_LIBADA=$enableval
1096else
1097 ENABLE_LIBADA=yes
1098fi
1099
1100if test "${ENABLE_LIBADA}" != "yes" ; then
1101 noconfigdirs="$noconfigdirs target-libada"
1102 noconfigdirs="$noconfigdirs gnattools"
1103fi
1104
1105# Check whether --enable-libssp or --disable-libssp was given.
1106if test "${enable_libssp+set}" = set; then
1107 enableval="$enable_libssp"
1108 ENABLE_LIBSSP=$enableval
1109else
1110 ENABLE_LIBSSP=yes
1111fi
1112
1113if test "${ENABLE_LIBSSP}" != "yes" ; then
1114 noconfigdirs="$noconfigdirs target-libssp"
1115fi
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.
1119if test "${enable_libgcc_math+set}" = set; then
1120 enableval="$enable_libgcc_math"
1121 :
1122else
1123
1124case "${target}" in
1125 i?86-* | x86_64-* )
1126 enable_libgcc_math=yes ;;
1127 *)
1128 enable_libgcc_math=no ;;
1129esac
1130
1131fi
1132
1133if test "${enable_libgcc_math}" != "yes"; then
1134 noconfigdirs="$noconfigdirs target-libgcc-math"
1135fi
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.
1139libgcj_saved=$libgcj
1140case $enable_libgcj in
1141yes)
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 ;;
1147no)
1148 # Make sure we get it printed in the list of not supported target libs.
1149 noconfigdirs="$noconfigdirs ${libgcj}"
1150 ;;
1151esac
1152
1153
1154# Allow --disable-libmudflap to exclude target-libmudflap
1155case $enable_libmudflap in
1156yes)
1157 ;;
1158no)
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
1174esac
1175
1176# Allow --disable-libgomp to exclude target-libgomp
1177case $enable_libgomp in
1178yes)
1179 ;;
1180no)
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
1198esac
1199
1200
1201case "${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 ;;
1664esac
1665
1666# If we aren't building newlib, then don't build libgloss, since libgloss
1667# depends upon some newlib header files.
1668case "${noconfigdirs}" in
1669 *target-libgloss*) ;;
1670 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1671esac
1672
1673# Work in distributions that contain no compiler tools, like Autoconf.
1674tentative_cc=""
1675host_makefile_frag=/dev/null
1676if test -d ${srcdir}/config ; then
1677case "${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 ;;
1834esac
1835fi
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.
1840if 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
1854fi
1855
1856if 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
1868else
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.
1882set dummy gcc; ac_word=$2
1883echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1884echo "configure:1885: checking for $ac_word" >&5
1885if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1887else
1888 if test -n "$CC"; then
1889 ac_cv_prog_CC="$CC" # Let the user override the test.
1890else
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"
1901fi
1902fi
1903CC="$ac_cv_prog_CC"
1904if test -n "$CC"; then
1905 echo "$ac_t""$CC" 1>&6
1906else
1907 echo "$ac_t""no" 1>&6
1908fi
1909
1910if test -z "$CC"; then
1911 # Extract the first word of "cc", so it can be a program name with args.
1912set dummy cc; ac_word=$2
1913echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1914echo "configure:1915: checking for $ac_word" >&5
1915if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6
1917else
1918 if test -n "$CC"; then
1919 ac_cv_prog_CC="$CC" # Let the user override the test.
1920else
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"
1936if 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
1949fi
1950fi
1951fi
1952CC="$ac_cv_prog_CC"
1953if test -n "$CC"; then
1954 echo "$ac_t""$CC" 1>&6
1955else
1956 echo "$ac_t""no" 1>&6
1957fi
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.
1963set dummy cl; ac_word=$2
1964echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1965echo "configure:1966: checking for $ac_word" >&5
1966if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1968else
1969 if test -n "$CC"; then
1970 ac_cv_prog_CC="$CC" # Let the user override the test.
1971else
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"
1982fi
1983fi
1984CC="$ac_cv_prog_CC"
1985if test -n "$CC"; then
1986 echo "$ac_t""$CC" 1>&6
1987else
1988 echo "$ac_t""no" 1>&6
1989fi
1990 ;;
1991 esac
1992 fi
1993 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1994fi
1995
1996echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1997echo "configure:1998: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1998
1999ac_ext=c
2000# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2001ac_cpp='$CPP $CPPFLAGS'
2002ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2003ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2004cross_compiling=$ac_cv_prog_cc_cross
2005
2006cat > conftest.$ac_ext << EOF
2007
2008#line 2009 "configure"
2009#include "confdefs.h"
2010
2011main(){return(0);}
2012EOF
2013if { (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
2021else
2022 echo "configure: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2024 ac_cv_prog_cc_works=no
2025fi
2026rm -fr conftest*
2027ac_ext=c
2028# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2029ac_cpp='$CPP $CPPFLAGS'
2030ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2031ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2032cross_compiling=$ac_cv_prog_cc_cross
2033
2034echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2035if 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; }
2037fi
2038echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2039echo "configure:2040: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2040echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2041cross_compiling=$ac_cv_prog_cc_cross
2042
2043echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2044echo "configure:2045: checking whether we are using GNU C" >&5
2045if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2047else
2048 cat > conftest.c <<EOF
2049#ifdef __GNUC__
2050 yes;
2051#endif
2052EOF
2053if { 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
2055else
2056 ac_cv_prog_gcc=no
2057fi
2058fi
2059
2060echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2061
2062if test $ac_cv_prog_gcc = yes; then
2063 GCC=yes
2064else
2065 GCC=
2066fi
2067
2068ac_test_CFLAGS="${CFLAGS+set}"
2069ac_save_CFLAGS="$CFLAGS"
2070CFLAGS=
2071echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2072echo "configure:2073: checking whether ${CC-cc} accepts -g" >&5
2073if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2075else
2076 echo 'void f(){}' > conftest.c
2077if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2078 ac_cv_prog_cc_g=yes
2079else
2080 ac_cv_prog_cc_g=no
2081fi
2082rm -f conftest*
2083
2084fi
2085
2086echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2087if test "$ac_test_CFLAGS" = set; then
2088 CFLAGS="$ac_save_CFLAGS"
2089elif 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
2095else
2096 if test "$GCC" = yes; then
2097 CFLAGS="-O2"
2098 else
2099 CFLAGS=
2100 fi
2101fi
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"}
2126fi
2127
2128if test $host != $build; then
2129 ac_tool_prefix=${host_alias}-
2130else
2131 ac_tool_prefix=
2132fi
2133
2134
2135
2136# Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2137set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2138echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2139echo "configure:2140: checking for $ac_word" >&5
2140if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2142else
2143 if test -n "$GNATBIND"; then
2144 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2145else
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"
2156fi
2157fi
2158GNATBIND="$ac_cv_prog_GNATBIND"
2159if test -n "$GNATBIND"; then
2160 echo "$ac_t""$GNATBIND" 1>&6
2161else
2162 echo "$ac_t""no" 1>&6
2163fi
2164
2165
2166if test -z "$ac_cv_prog_GNATBIND"; then
2167if test -n "$ac_tool_prefix"; then
2168 # Extract the first word of "gnatbind", so it can be a program name with args.
2169set dummy gnatbind; ac_word=$2
2170echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2171echo "configure:2172: checking for $ac_word" >&5
2172if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2174else
2175 if test -n "$GNATBIND"; then
2176 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2177else
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"
2189fi
2190fi
2191GNATBIND="$ac_cv_prog_GNATBIND"
2192if test -n "$GNATBIND"; then
2193 echo "$ac_t""$GNATBIND" 1>&6
2194else
2195 echo "$ac_t""no" 1>&6
2196fi
2197
2198else
2199 GNATBIND="no"
2200fi
2201fi
2202
2203echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2204echo "configure:2205: checking whether compiler driver understands Ada" >&5
2205if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2207else
2208 cat >conftest.adb <<EOF
2209procedure conftest is begin null; end conftest;
2210EOF
2211acx_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.
2220errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2221if test x"$errors" = x && test -f conftest.$ac_objext; then
2222 acx_cv_cc_gcc_supports_ada=yes
2223fi
2224rm -f conftest.*
2225fi
2226
2227echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2228
2229if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2230 have_gnat=yes
2231else
2232 have_gnat=no
2233fi
2234
2235echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2236echo "configure:2237: checking how to compare bootstrapped objects" >&5
2237if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2239else
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
2259fi
2260
2261echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2262do_compare="$gcc_cv_prog_cmp_skip"
2263
2264
2265
2266# Check for GMP and MPFR
2267gmplibs=
2268gmpinc=
2269have_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.
2273if test "${with_mpfr_dir+set}" = set; then
2274 withval="$with_mpfr_dir"
2275 :
2276fi
2277
2278
2279if test "x$with_mpfr_dir" != x; then
2280 gmpinc="-I$with_mpfr_dir"
2281 gmplibs="$with_mpfr_dir/libmpfr.a"
2282else
2283 gmplibs="-lmpfr"
2284fi
2285
2286# Check whether --with-mpfr or --without-mpfr was given.
2287if test "${with_mpfr+set}" = set; then
2288 withval="$with_mpfr"
2289 :
2290fi
2291
2292
2293if test "x$with_mpfr" != x; then
2294 gmplibs="-L$with_mpfr/lib $gmplibs"
2295 gmpinc="-I$with_mpfr/include"
2296fi
2297
2298# Specify a location for gmp
2299# Check whether --with-gmp-dir or --without-gmp-dir was given.
2300if test "${with_gmp_dir+set}" = set; then
2301 withval="$with_gmp_dir"
2302 :
2303fi
2304
2305
2306if 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.
2314else
2315 gmplibs="$gmplibs -lgmp"
2316fi
2317
2318# Check whether --with-gmp or --without-gmp was given.
2319if test "${with_gmp+set}" = set; then
2320 withval="$with_gmp"
2321 :
2322fi
2323
2324
2325if test "x$with_gmp" != x; then
2326 gmplibs="-L$with_gmp/lib $gmplibs"
2327 gmpinc="-I$with_gmp/include $gmpinc"
2328fi
2329
2330saved_CFLAGS="$CFLAGS"
2331CFLAGS="$CFLAGS $gmpinc"
2332# Check GMP actually works
2333echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2334echo "configure:2335: checking for correct version of gmp.h" >&5
2335cat > conftest.$ac_ext <<EOF
2336#line 2337 "configure"
2337#include "confdefs.h"
2338#include "gmp.h"
2339int main() {
2340
2341#if __GNU_MP_VERSION < 3
2342choke me
2343#endif
2344
2345; return 0; }
2346EOF
2347if { (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
2350else
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
2355fi
2356rm -f conftest*
2357
2358if test x"$have_gmp" = xyes; then
2359 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2360echo "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>
2369int main() {
2370mpfr_t n; mpfr_init(n);
2371; return 0; }
2372EOF
2373if { (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
2376else
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
2381fi
2382rm -f conftest*
2383 LIBS="$saved_LIBS"
2384 CFLAGS="$saved_CFLAGS"
2385fi
2386
2387# Flags needed for both GMP and/or MPFR
2388
2389
2390
2391# By default, C is the only stage 1 language.
2392stage1_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
2400if 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:
2546The following requested languages could not be built: ${missing_languages}
2547Recognised 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"/ `
2555fi
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
2561notsupp=""
2562for 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
2594done
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.
2598if 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
2611fi
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.
2616build_configdirs_all="$build_configdirs"
2617build_configdirs=
2618for 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
2623done
2624
2625configdirs_all="$configdirs"
2626configdirs=
2627for i in ${configdirs_all} ; do
2628 if test -f ${srcdir}/$i/configure ; then
2629 configdirs="${configdirs} $i"
2630 fi
2631done
2632
2633target_configdirs_all="$target_configdirs"
2634target_configdirs=
2635for 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
2640done
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
2647if 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
2675fi
2676
2677case "$host" in
2678 *msdosdjgpp*)
2679 enable_gdbtk=no ;;
2680esac
2681
2682copy_dirs=
2683
2684# Check whether --with-build-sysroot or --without-build-sysroot was given.
2685if 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
2690else
2691 SYSROOT_CFLAGS_FOR_TARGET=
2692fi
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.
2698if 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
2710fi
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.
2715if 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
2731fi
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
2746if 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"
2750fi
2751
2752if 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"
2756fi
2757
2758# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2759# can detect this case.
2760
2761if 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"
2764fi
2765
2766# Handle ${copy_dirs}
2767set fnord ${copy_dirs}
2768shift
2769while 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
2795done
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.
2800md_exec_prefix=
2801case "${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 ;;
2844esac
2845
2846extra_arflags_for_target=
2847extra_nmflags_for_target=
2848extra_ranlibflags_for_target=
2849target_makefile_frag=/dev/null
2850case "${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 ;;
2871esac
2872
2873alphaieee_frag=/dev/null
2874case $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 ;;
2880esac
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.
2885ospace_frag=/dev/null
2886case "${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 ;;
2901esac
2902
2903# Default to using --with-stabs for certain targets.
2904if 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
2913fi
2914
2915# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2916# them automatically.
2917case "${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 ;;
2921esac
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.
2925tooldir='${exec_prefix}'/${target_alias}
2926build_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
2931if test -r ${srcdir}/.gdbinit ; then
2932 case ${srcdir} in
2933 .) ;;
2934 *) cat > ./.gdbinit <<EOF
2935# ${NO_EDIT}
2936dir ${srcdir}
2937dir .
2938source ${srcdir}/.gdbinit
2939EOF
2940 ;;
2941 esac
2942fi
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.
2948we_are_ok=no
2949echo "int main () { return 0; }" > conftest.c
2950${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2951if test $? = 0 ; then
2952 if test -s conftest || test -s conftest.exe ; then
2953 we_are_ok=yes
2954 fi
2955fi
2956case $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 ;;
2963esac
2964rm -f conftest*
2965
2966# The Solaris /usr/ucb/cc compiler does not appear to work.
2967case "${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 ;;
2992esac
2993
2994case "${host}" in
2995 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2996 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
2997 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2998esac
2999
3000# Record target_configdirs and the configure arguments for target and
3001# build configuration in Makefile.
3002target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3003build_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
3013gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3014case "$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 ;;
3029esac
3030CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3031INSTALL_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.
3047if test "${enable_bootstrap+set}" = set; then
3048 enableval="$enable_bootstrap"
3049 :
3050else
3051 enable_bootstrap=default
3052fi
3053
3054
3055# Issue errors and warnings for invalid/strange bootstrap combinations.
3056case "$configdirs" in
3057 *gcc*) have_compiler=yes ;;
3058 *) have_compiler=no ;;
3059esac
3060
3061case "$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 ;;
3090esac
3091
3092# Adjust the toplevel makefile according to whether bootstrap was selected.
3093case "$enable_bootstrap" in
3094 yes)
3095 bootstrap_suffix=bootstrap ;;
3096 no)
3097 bootstrap_suffix=no-bootstrap ;;
3098esac
3099
3100for 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"
3111done
3112for 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"
3126done
3127for 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"
3138done
3139
3140extrasub="$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.
3146if test "${enable_serial_configure+set}" = set; then
3147 enableval="$enable_serial_configure"
3148 :
3149fi
3150
3151
3152case ${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 ;;
3158esac
3159
3160# These force 'configure's to be done one at a time, to avoid problems
3161# with contention over a shared config.cache.
3162rm -f serdep.tmp
3163echo '# serdep.tmp' > serdep.tmp
3164olditem=
3165test "x${enable_serial_build_configure}" = xyes &&
3166for 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}
3172done
3173olditem=
3174test "x${enable_serial_host_configure}" = xyes &&
3175for item in ${configdirs} ; do
3176 case ${olditem} in
3177 "") ;;
3178 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3179 esac
3180 olditem=${item}
3181done
3182olditem=
3183test "x${enable_serial_target_configure}" = xyes &&
3184for 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}
3190done
3191serialization_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 '$'.
3204cat <<\EOF_SED > conftestsed
3205s/ --no[^ ]*/ /g
3206s/ --c[a-z-]*[= ][^ ]*//g
3207s/ --sr[a-z-]*[= ][^ ]*//g
3208s/ --ho[a-z-]*[= ][^ ]*//g
3209s/ --bu[a-z-]*[= ][^ ]*//g
3210s/ --t[a-z-]*[= ][^ ]*//g
3211s/ --program-[pst][a-z-]*[= ][^ ]*//g
3212s/ -cache-file[= ][^ ]*//g
3213s/ -srcdir[= ][^ ]*//g
3214s/ -host[= ][^ ]*//g
3215s/ -build[= ][^ ]*//g
3216s/ -target[= ][^ ]*//g
3217s/ -program-prefix[= ][^ ]*//g
3218s/ -program-suffix[= ][^ ]*//g
3219s/ -program-transform-name[= ][^ ]*//g
3220s/ [^' -][^ ]* / /
3221s/^ *//;s/ *$//
3222s,\$,$$,g
3223EOF_SED
3224sed -f conftestsed <<EOF_SED > conftestsed.out
3225 ${ac_configure_args}
3226EOF_SED
3227baseargs=`cat conftestsed.out`
3228rm -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,.
3237sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3238${program_transform_name}
3239EOF_SED
3240gcc_transform_name=`cat conftestsed.out`
3241rm -f conftestsed.out
3242baseargs="$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.
3247build_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.
3250case "${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}" ;;
3257esac
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.
3261host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3262
3263target_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.
3270if test x${is_cross_compiler} = xyes ; then
3271 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3272fi
3273
3274# Default to --enable-multilib.
3275if test x${enable_multilib} = x ; then
3276 target_configargs="--enable-multilib ${target_configargs}"
3277fi
3278
3279# Pass --with-newlib if appropriate. Note that target_configdirs has
3280# changed from the earlier setting of with_newlib.
3281if 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}"
3283fi
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.
3297target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3298
3299FLAGS_FOR_TARGET=
3300case " $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 ;;
3348esac
3349
3350# Allow the user to override the flags for
3351# our build compiler if desired.
3352CFLAGS_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.
3358if 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'
3361fi
3362
3363if 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'
3367fi
3368
3369# Makefile fragments.
3370for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3371do
3372 eval fragval=\$$frag
3373 if test $fragval != /dev/null; then
3374 eval $frag=${srcdir}/$fragval
3375 fi
3376done
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.
3411MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3412
3413for ac_prog in 'bison -y' byacc yacc
3414do
3415# Extract the first word of "$ac_prog", so it can be a program name with args.
3416set dummy $ac_prog; ac_word=$2
3417echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3418echo "configure:3419: checking for $ac_word" >&5
3419if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3420 echo $ac_n "(cached) $ac_c" 1>&6
3421else
3422 if test -n "$YACC"; then
3423 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3424else
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"
3435fi
3436fi
3437YACC="$ac_cv_prog_YACC"
3438if test -n "$YACC"; then
3439 echo "$ac_t""$YACC" 1>&6
3440else
3441 echo "$ac_t""no" 1>&6
3442fi
3443
3444test -n "$YACC" && break
3445done
3446test -n "$YACC" || YACC="$MISSING bison -y"
3447
3448case " $build_configdirs " in
3449 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3450 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3451esac
3452
3453for ac_prog in bison
3454do
3455# Extract the first word of "$ac_prog", so it can be a program name with args.
3456set dummy $ac_prog; ac_word=$2
3457echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3458echo "configure:3459: checking for $ac_word" >&5
3459if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3461else
3462 if test -n "$BISON"; then
3463 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3464else
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"
3475fi
3476fi
3477BISON="$ac_cv_prog_BISON"
3478if test -n "$BISON"; then
3479 echo "$ac_t""$BISON" 1>&6
3480else
3481 echo "$ac_t""no" 1>&6
3482fi
3483
3484test -n "$BISON" && break
3485done
3486test -n "$BISON" || BISON="$MISSING bison"
3487
3488case " $build_configdirs " in
3489 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3490esac
3491
3492for ac_prog in gm4 gnum4 m4
3493do
3494# Extract the first word of "$ac_prog", so it can be a program name with args.
3495set dummy $ac_prog; ac_word=$2
3496echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3497echo "configure:3498: checking for $ac_word" >&5
3498if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3500else
3501 if test -n "$M4"; then
3502 ac_cv_prog_M4="$M4" # Let the user override the test.
3503else
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"
3514fi
3515fi
3516M4="$ac_cv_prog_M4"
3517if test -n "$M4"; then
3518 echo "$ac_t""$M4" 1>&6
3519else
3520 echo "$ac_t""no" 1>&6
3521fi
3522
3523test -n "$M4" && break
3524done
3525test -n "$M4" || M4="$MISSING m4"
3526
3527case " $build_configdirs " in
3528 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3529esac
3530
3531for ac_prog in flex lex
3532do
3533# Extract the first word of "$ac_prog", so it can be a program name with args.
3534set dummy $ac_prog; ac_word=$2
3535echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3536echo "configure:3537: checking for $ac_word" >&5
3537if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3539else
3540 if test -n "$LEX"; then
3541 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3542else
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"
3553fi
3554fi
3555LEX="$ac_cv_prog_LEX"
3556if test -n "$LEX"; then
3557 echo "$ac_t""$LEX" 1>&6
3558else
3559 echo "$ac_t""no" 1>&6
3560fi
3561
3562test -n "$LEX" && break
3563done
3564test -n "$LEX" || LEX="$MISSING flex"
3565
3566case " $build_configdirs " in
3567 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3568 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3569esac
3570
3571for ac_prog in flex
3572do
3573# Extract the first word of "$ac_prog", so it can be a program name with args.
3574set dummy $ac_prog; ac_word=$2
3575echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3576echo "configure:3577: checking for $ac_word" >&5
3577if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3579else
3580 if test -n "$FLEX"; then
3581 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3582else
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"
3593fi
3594fi
3595FLEX="$ac_cv_prog_FLEX"
3596if test -n "$FLEX"; then
3597 echo "$ac_t""$FLEX" 1>&6
3598else
3599 echo "$ac_t""no" 1>&6
3600fi
3601
3602test -n "$FLEX" && break
3603done
3604test -n "$FLEX" || FLEX="$MISSING flex"
3605
3606case " $build_configdirs " in
3607 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3608esac
3609
3610for ac_prog in makeinfo
3611do
3612# Extract the first word of "$ac_prog", so it can be a program name with args.
3613set dummy $ac_prog; ac_word=$2
3614echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3615echo "configure:3616: checking for $ac_word" >&5
3616if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3618else
3619 if test -n "$MAKEINFO"; then
3620 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3621else
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"
3632fi
3633fi
3634MAKEINFO="$ac_cv_prog_MAKEINFO"
3635if test -n "$MAKEINFO"; then
3636 echo "$ac_t""$MAKEINFO" 1>&6
3637else
3638 echo "$ac_t""no" 1>&6
3639fi
3640
3641test -n "$MAKEINFO" && break
3642done
3643test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3644
3645case " $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
3659esac
3660
3661# FIXME: expect and dejagnu may become build tools?
3662
3663for ac_prog in expect
3664do
3665# Extract the first word of "$ac_prog", so it can be a program name with args.
3666set dummy $ac_prog; ac_word=$2
3667echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3668echo "configure:3669: checking for $ac_word" >&5
3669if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3671else
3672 if test -n "$EXPECT"; then
3673 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3674else
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"
3685fi
3686fi
3687EXPECT="$ac_cv_prog_EXPECT"
3688if test -n "$EXPECT"; then
3689 echo "$ac_t""$EXPECT" 1>&6
3690else
3691 echo "$ac_t""no" 1>&6
3692fi
3693
3694test -n "$EXPECT" && break
3695done
3696test -n "$EXPECT" || EXPECT="expect"
3697
3698case " $configdirs " in
3699 *" expect "*)
3700 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3701 ;;
3702esac
3703
3704for ac_prog in runtest
3705do
3706# Extract the first word of "$ac_prog", so it can be a program name with args.
3707set dummy $ac_prog; ac_word=$2
3708echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3709echo "configure:3710: checking for $ac_word" >&5
3710if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3712else
3713 if test -n "$RUNTEST"; then
3714 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3715else
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"
3726fi
3727fi
3728RUNTEST="$ac_cv_prog_RUNTEST"
3729if test -n "$RUNTEST"; then
3730 echo "$ac_t""$RUNTEST" 1>&6
3731else
3732 echo "$ac_t""no" 1>&6
3733fi
3734
3735test -n "$RUNTEST" && break
3736done
3737test -n "$RUNTEST" || RUNTEST="runtest"
3738
3739case " $configdirs " in
3740 *" dejagnu "*)
3741 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3742 ;;
3743esac
3744
3745
3746# Host tools.
3747ncn_tool_prefix=
3748test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3749ncn_target_tool_prefix=
3750test -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.
3755set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3756echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3757echo "configure:3758: checking for $ac_word" >&5
3758if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3760else
3761 if test -n "$AR"; then
3762 ac_cv_prog_AR="$AR" # Let the user override the test.
3763else
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"
3774fi
3775fi
3776AR="$ac_cv_prog_AR"
3777if test -n "$AR"; then
3778 echo "$ac_t""$AR" 1>&6
3779else
3780 echo "$ac_t""no" 1>&6
3781fi
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.
3786set dummy ${ncn_progname}; ac_word=$2
3787echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3788echo "configure:3789: checking for $ac_word" >&5
3789if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3791else
3792 if test -n "$AR"; then
3793 ac_cv_prog_AR="$AR" # Let the user override the test.
3794else
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"
3805fi
3806fi
3807AR="$ac_cv_prog_AR"
3808if test -n "$AR"; then
3809 echo "$ac_t""$AR" 1>&6
3810else
3811 echo "$ac_t""no" 1>&6
3812fi
3813
3814 fi
3815 test -n "$ac_cv_prog_AR" && break
3816done
3817
3818if 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
3825fi
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.
3830set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3832echo "configure:3833: checking for $ac_word" >&5
3833if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3835else
3836 if test -n "$AS"; then
3837 ac_cv_prog_AS="$AS" # Let the user override the test.
3838else
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"
3849fi
3850fi
3851AS="$ac_cv_prog_AS"
3852if test -n "$AS"; then
3853 echo "$ac_t""$AS" 1>&6
3854else
3855 echo "$ac_t""no" 1>&6
3856fi
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.
3861set dummy ${ncn_progname}; ac_word=$2
3862echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3863echo "configure:3864: checking for $ac_word" >&5
3864if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3865 echo $ac_n "(cached) $ac_c" 1>&6
3866else
3867 if test -n "$AS"; then
3868 ac_cv_prog_AS="$AS" # Let the user override the test.
3869else
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"
3880fi
3881fi
3882AS="$ac_cv_prog_AS"
3883if test -n "$AS"; then
3884 echo "$ac_t""$AS" 1>&6
3885else
3886 echo "$ac_t""no" 1>&6
3887fi
3888
3889 fi
3890 test -n "$ac_cv_prog_AS" && break
3891done
3892
3893if 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
3900fi
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.
3905set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3906echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3907echo "configure:3908: checking for $ac_word" >&5
3908if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
3910else
3911 if test -n "$DLLTOOL"; then
3912 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3913else
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"
3924fi
3925fi
3926DLLTOOL="$ac_cv_prog_DLLTOOL"
3927if test -n "$DLLTOOL"; then
3928 echo "$ac_t""$DLLTOOL" 1>&6
3929else
3930 echo "$ac_t""no" 1>&6
3931fi
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.
3936set dummy ${ncn_progname}; ac_word=$2
3937echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3938echo "configure:3939: checking for $ac_word" >&5
3939if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3940 echo $ac_n "(cached) $ac_c" 1>&6
3941else
3942 if test -n "$DLLTOOL"; then
3943 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3944else
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"
3955fi
3956fi
3957DLLTOOL="$ac_cv_prog_DLLTOOL"
3958if test -n "$DLLTOOL"; then
3959 echo "$ac_t""$DLLTOOL" 1>&6
3960else
3961 echo "$ac_t""no" 1>&6
3962fi
3963
3964 fi
3965 test -n "$ac_cv_prog_DLLTOOL" && break
3966done
3967
3968if 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
3975fi
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.
3980set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3981echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3982echo "configure:3983: checking for $ac_word" >&5
3983if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3984 echo $ac_n "(cached) $ac_c" 1>&6
3985else
3986 if test -n "$LD"; then
3987 ac_cv_prog_LD="$LD" # Let the user override the test.
3988else
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"
3999fi
4000fi
4001LD="$ac_cv_prog_LD"
4002if test -n "$LD"; then
4003 echo "$ac_t""$LD" 1>&6
4004else
4005 echo "$ac_t""no" 1>&6
4006fi
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.
4011set dummy ${ncn_progname}; ac_word=$2
4012echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4013echo "configure:4014: checking for $ac_word" >&5
4014if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4016else
4017 if test -n "$LD"; then
4018 ac_cv_prog_LD="$LD" # Let the user override the test.
4019else
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"
4030fi
4031fi
4032LD="$ac_cv_prog_LD"
4033if test -n "$LD"; then
4034 echo "$ac_t""$LD" 1>&6
4035else
4036 echo "$ac_t""no" 1>&6
4037fi
4038
4039 fi
4040 test -n "$ac_cv_prog_LD" && break
4041done
4042
4043if 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
4050fi
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.
4055set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4056echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4057echo "configure:4058: checking for $ac_word" >&5
4058if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4060else
4061 if test -n "$LIPO"; then
4062 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4063else
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"
4074fi
4075fi
4076LIPO="$ac_cv_prog_LIPO"
4077if test -n "$LIPO"; then
4078 echo "$ac_t""$LIPO" 1>&6
4079else
4080 echo "$ac_t""no" 1>&6
4081fi
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.
4086set dummy ${ncn_progname}; ac_word=$2
4087echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4088echo "configure:4089: checking for $ac_word" >&5
4089if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4091else
4092 if test -n "$LIPO"; then
4093 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4094else
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"
4105fi
4106fi
4107LIPO="$ac_cv_prog_LIPO"
4108if test -n "$LIPO"; then
4109 echo "$ac_t""$LIPO" 1>&6
4110else
4111 echo "$ac_t""no" 1>&6
4112fi
4113
4114 fi
4115 test -n "$ac_cv_prog_LIPO" && break
4116done
4117
4118if 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
4125fi
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.
4130set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4131echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4132echo "configure:4133: checking for $ac_word" >&5
4133if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4135else
4136 if test -n "$NM"; then
4137 ac_cv_prog_NM="$NM" # Let the user override the test.
4138else
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"
4149fi
4150fi
4151NM="$ac_cv_prog_NM"
4152if test -n "$NM"; then
4153 echo "$ac_t""$NM" 1>&6
4154else
4155 echo "$ac_t""no" 1>&6
4156fi
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.
4161set dummy ${ncn_progname}; ac_word=$2
4162echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4163echo "configure:4164: checking for $ac_word" >&5
4164if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4165 echo $ac_n "(cached) $ac_c" 1>&6
4166else
4167 if test -n "$NM"; then
4168 ac_cv_prog_NM="$NM" # Let the user override the test.
4169else
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"
4180fi
4181fi
4182NM="$ac_cv_prog_NM"
4183if test -n "$NM"; then
4184 echo "$ac_t""$NM" 1>&6
4185else
4186 echo "$ac_t""no" 1>&6
4187fi
4188
4189 fi
4190 test -n "$ac_cv_prog_NM" && break
4191done
4192
4193if 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
4200fi
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.
4205set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4206echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4207echo "configure:4208: checking for $ac_word" >&5
4208if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4209 echo $ac_n "(cached) $ac_c" 1>&6
4210else
4211 if test -n "$RANLIB"; then
4212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4213else
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"
4224fi
4225fi
4226RANLIB="$ac_cv_prog_RANLIB"
4227if test -n "$RANLIB"; then
4228 echo "$ac_t""$RANLIB" 1>&6
4229else
4230 echo "$ac_t""no" 1>&6
4231fi
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.
4236set dummy ${ncn_progname}; ac_word=$2
4237echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4238echo "configure:4239: checking for $ac_word" >&5
4239if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4240 echo $ac_n "(cached) $ac_c" 1>&6
4241else
4242 if test -n "$RANLIB"; then
4243 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4244else
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"
4255fi
4256fi
4257RANLIB="$ac_cv_prog_RANLIB"
4258if test -n "$RANLIB"; then
4259 echo "$ac_t""$RANLIB" 1>&6
4260else
4261 echo "$ac_t""no" 1>&6
4262fi
4263
4264 fi
4265 test -n "$ac_cv_prog_RANLIB" && break
4266done
4267
4268if test -z "$ac_cv_prog_RANLIB" ; then
4269 RANLIB=":"
4270fi
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.
4275set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4276echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4277echo "configure:4278: checking for $ac_word" >&5
4278if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4279 echo $ac_n "(cached) $ac_c" 1>&6
4280else
4281 if test -n "$STRIP"; then
4282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4283else
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"
4294fi
4295fi
4296STRIP="$ac_cv_prog_STRIP"
4297if test -n "$STRIP"; then
4298 echo "$ac_t""$STRIP" 1>&6
4299else
4300 echo "$ac_t""no" 1>&6
4301fi
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.
4306set dummy ${ncn_progname}; ac_word=$2
4307echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4308echo "configure:4309: checking for $ac_word" >&5
4309if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4311else
4312 if test -n "$STRIP"; then
4313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4314else
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"
4325fi
4326fi
4327STRIP="$ac_cv_prog_STRIP"
4328if test -n "$STRIP"; then
4329 echo "$ac_t""$STRIP" 1>&6
4330else
4331 echo "$ac_t""no" 1>&6
4332fi
4333
4334 fi
4335 test -n "$ac_cv_prog_STRIP" && break
4336done
4337
4338if test -z "$ac_cv_prog_STRIP" ; then
4339 STRIP=":"
4340fi
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.
4345set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4346echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4347echo "configure:4348: checking for $ac_word" >&5
4348if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4350else
4351 if test -n "$WINDRES"; then
4352 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4353else
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"
4364fi
4365fi
4366WINDRES="$ac_cv_prog_WINDRES"
4367if test -n "$WINDRES"; then
4368 echo "$ac_t""$WINDRES" 1>&6
4369else
4370 echo "$ac_t""no" 1>&6
4371fi
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.
4376set dummy ${ncn_progname}; ac_word=$2
4377echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4378echo "configure:4379: checking for $ac_word" >&5
4379if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4381else
4382 if test -n "$WINDRES"; then
4383 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4384else
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"
4395fi
4396fi
4397WINDRES="$ac_cv_prog_WINDRES"
4398if test -n "$WINDRES"; then
4399 echo "$ac_t""$WINDRES" 1>&6
4400else
4401 echo "$ac_t""no" 1>&6
4402fi
4403
4404 fi
4405 test -n "$ac_cv_prog_WINDRES" && break
4406done
4407
4408if 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
4415fi
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.
4420set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4421echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4422echo "configure:4423: checking for $ac_word" >&5
4423if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4425else
4426 if test -n "$OBJCOPY"; then
4427 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4428else
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"
4439fi
4440fi
4441OBJCOPY="$ac_cv_prog_OBJCOPY"
4442if test -n "$OBJCOPY"; then
4443 echo "$ac_t""$OBJCOPY" 1>&6
4444else
4445 echo "$ac_t""no" 1>&6
4446fi
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.
4451set dummy ${ncn_progname}; ac_word=$2
4452echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4453echo "configure:4454: checking for $ac_word" >&5
4454if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4456else
4457 if test -n "$OBJCOPY"; then
4458 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4459else
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"
4470fi
4471fi
4472OBJCOPY="$ac_cv_prog_OBJCOPY"
4473if test -n "$OBJCOPY"; then
4474 echo "$ac_t""$OBJCOPY" 1>&6
4475else
4476 echo "$ac_t""no" 1>&6
4477fi
4478
4479 fi
4480 test -n "$ac_cv_prog_OBJCOPY" && break
4481done
4482
4483if 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
4490fi
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.
4495set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4496echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4497echo "configure:4498: checking for $ac_word" >&5
4498if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4500else
4501 if test -n "$OBJDUMP"; then
4502 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4503else
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"
4514fi
4515fi
4516OBJDUMP="$ac_cv_prog_OBJDUMP"
4517if test -n "$OBJDUMP"; then
4518 echo "$ac_t""$OBJDUMP" 1>&6
4519else
4520 echo "$ac_t""no" 1>&6
4521fi
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.
4526set dummy ${ncn_progname}; ac_word=$2
4527echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4528echo "configure:4529: checking for $ac_word" >&5
4529if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4531else
4532 if test -n "$OBJDUMP"; then
4533 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4534else
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"
4545fi
4546fi
4547OBJDUMP="$ac_cv_prog_OBJDUMP"
4548if test -n "$OBJDUMP"; then
4549 echo "$ac_t""$OBJDUMP" 1>&6
4550else
4551 echo "$ac_t""no" 1>&6
4552fi
4553
4554 fi
4555 test -n "$ac_cv_prog_OBJDUMP" && break
4556done
4557
4558if 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
4565fi
4566
4567
4568
4569
4570
4571
4572
4573# Target tools.
4574# Check whether --with-build-time-tools or --without-build-time-tools was given.
4575if 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
4584else
4585 with_build_time_tools=
4586fi
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
4592echo "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
4601fi
4602
4603if 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.
4607set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4608echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4609echo "configure:4610: checking for $ac_word" >&5
4610if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4612else
4613 if test -n "$CC_FOR_TARGET"; then
4614 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4615else
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"
4626fi
4627fi
4628CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4629if test -n "$CC_FOR_TARGET"; then
4630 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4631else
4632 echo "$ac_t""no" 1>&6
4633fi
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.
4638set dummy ${ncn_progname}; ac_word=$2
4639echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4640echo "configure:4641: checking for $ac_word" >&5
4641if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4642 echo $ac_n "(cached) $ac_c" 1>&6
4643else
4644 if test -n "$CC_FOR_TARGET"; then
4645 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4646else
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"
4657fi
4658fi
4659CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4660if test -n "$CC_FOR_TARGET"; then
4661 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4662else
4663 echo "$ac_t""no" 1>&6
4664fi
4665
4666 fi
4667 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4668 done
4669fi
4670
4671if 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
4678fi
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
4683echo "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
4692fi
4693
4694if 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.
4698set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4699echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4700echo "configure:4701: checking for $ac_word" >&5
4701if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4702 echo $ac_n "(cached) $ac_c" 1>&6
4703else
4704 if test -n "$CXX_FOR_TARGET"; then
4705 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4706else
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"
4717fi
4718fi
4719CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4720if test -n "$CXX_FOR_TARGET"; then
4721 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4722else
4723 echo "$ac_t""no" 1>&6
4724fi
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.
4729set dummy ${ncn_progname}; ac_word=$2
4730echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4731echo "configure:4732: checking for $ac_word" >&5
4732if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4734else
4735 if test -n "$CXX_FOR_TARGET"; then
4736 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4737else
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"
4748fi
4749fi
4750CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4751if test -n "$CXX_FOR_TARGET"; then
4752 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4753else
4754 echo "$ac_t""no" 1>&6
4755fi
4756
4757 fi
4758 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4759 done
4760fi
4761
4762if 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
4769fi
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
4774echo "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
4783fi
4784
4785if 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.
4789set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4790echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4791echo "configure:4792: checking for $ac_word" >&5
4792if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4794else
4795 if test -n "$GCC_FOR_TARGET"; then
4796 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4797else
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"
4808fi
4809fi
4810GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4811if test -n "$GCC_FOR_TARGET"; then
4812 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4813else
4814 echo "$ac_t""no" 1>&6
4815fi
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.
4820set dummy ${ncn_progname}; ac_word=$2
4821echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4822echo "configure:4823: checking for $ac_word" >&5
4823if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4824 echo $ac_n "(cached) $ac_c" 1>&6
4825else
4826 if test -n "$GCC_FOR_TARGET"; then
4827 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4828else
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"
4839fi
4840fi
4841GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4842if test -n "$GCC_FOR_TARGET"; then
4843 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4844else
4845 echo "$ac_t""no" 1>&6
4846fi
4847
4848 fi
4849 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4850 done
4851fi
4852
4853if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4854 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4855fi
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
4860echo "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
4869fi
4870
4871if 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.
4875set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4876echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4877echo "configure:4878: checking for $ac_word" >&5
4878if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4880else
4881 if test -n "$GCJ_FOR_TARGET"; then
4882 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4883else
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"
4894fi
4895fi
4896GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4897if test -n "$GCJ_FOR_TARGET"; then
4898 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4899else
4900 echo "$ac_t""no" 1>&6
4901fi
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.
4906set dummy ${ncn_progname}; ac_word=$2
4907echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4908echo "configure:4909: checking for $ac_word" >&5
4909if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4911else
4912 if test -n "$GCJ_FOR_TARGET"; then
4913 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4914else
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"
4925fi
4926fi
4927GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4928if test -n "$GCJ_FOR_TARGET"; then
4929 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4930else
4931 echo "$ac_t""no" 1>&6
4932fi
4933
4934 fi
4935 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4936 done
4937fi
4938
4939if 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
4946fi
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
4951echo "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
4960fi
4961
4962if 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.
4966set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4967echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4968echo "configure:4969: checking for $ac_word" >&5
4969if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4970 echo $ac_n "(cached) $ac_c" 1>&6
4971else
4972 if test -n "$GFORTRAN_FOR_TARGET"; then
4973 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4974else
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"
4985fi
4986fi
4987GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4988if test -n "$GFORTRAN_FOR_TARGET"; then
4989 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4990else
4991 echo "$ac_t""no" 1>&6
4992fi
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.
4997set dummy ${ncn_progname}; ac_word=$2
4998echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4999echo "configure:5000: checking for $ac_word" >&5
5000if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5001 echo $ac_n "(cached) $ac_c" 1>&6
5002else
5003 if test -n "$GFORTRAN_FOR_TARGET"; then
5004 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5005else
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"
5016fi
5017fi
5018GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5019if test -n "$GFORTRAN_FOR_TARGET"; then
5020 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5021else
5022 echo "$ac_t""no" 1>&6
5023fi
5024
5025 fi
5026 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5027 done
5028fi
5029
5030if 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
5037fi
5038
5039
5040
5041# The user is always right.
5042if 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
5052fi
5053
5054
5055
5056if 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
5062else
5063 gcc_cv_tool_prefix=$exec_prefix
5064fi
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.
5069if 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"
5077else
5078 gcc_cv_tool_dirs=
5079fi
5080
5081if 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"
5083fi
5084
5085
5086
5087cat > conftest.c << \EOF
5088#ifdef __GNUC__
5089 gcc_yay;
5090#endif
5091EOF
5092if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5093 have_gcc_for_target=yes
5094else
5095 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5096 have_gcc_for_target=no
5097fi
5098rm conftest.c
5099
5100
5101
5102
5103if 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
5106echo "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
5119fi
5120if 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.
5122set dummy ar; ac_word=$2
5123echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5124echo "configure:5125: checking for $ac_word" >&5
5125if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5127else
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 ;;
5147esac
5148fi
5149AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5150if test -n "$AR_FOR_TARGET"; then
5151 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5152else
5153 echo "$ac_t""no" 1>&6
5154fi
5155
5156fi
5157if 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
5161echo "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
5170fi
5171
5172if 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.
5176set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5177echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5178echo "configure:5179: checking for $ac_word" >&5
5179if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5180 echo $ac_n "(cached) $ac_c" 1>&6
5181else
5182 if test -n "$AR_FOR_TARGET"; then
5183 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5184else
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"
5195fi
5196fi
5197AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5198if test -n "$AR_FOR_TARGET"; then
5199 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5200else
5201 echo "$ac_t""no" 1>&6
5202fi
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.
5207set dummy ${ncn_progname}; ac_word=$2
5208echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5209echo "configure:5210: checking for $ac_word" >&5
5210if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5212else
5213 if test -n "$AR_FOR_TARGET"; then
5214 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5215else
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"
5226fi
5227fi
5228AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5229if test -n "$AR_FOR_TARGET"; then
5230 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5231else
5232 echo "$ac_t""no" 1>&6
5233fi
5234
5235 fi
5236 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5237 done
5238fi
5239
5240if 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
5247fi
5248
5249else
5250 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5251fi
5252
5253
5254
5255
5256if 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
5259echo "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
5272fi
5273if 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.
5275set dummy as; ac_word=$2
5276echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5277echo "configure:5278: checking for $ac_word" >&5
5278if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5279 echo $ac_n "(cached) $ac_c" 1>&6
5280else
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 ;;
5300esac
5301fi
5302AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5303if test -n "$AS_FOR_TARGET"; then
5304 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5305else
5306 echo "$ac_t""no" 1>&6
5307fi
5308
5309fi
5310if 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
5314echo "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
5323fi
5324
5325if 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.
5329set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5330echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5331echo "configure:5332: checking for $ac_word" >&5
5332if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5334else
5335 if test -n "$AS_FOR_TARGET"; then
5336 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5337else
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"
5348fi
5349fi
5350AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5351if test -n "$AS_FOR_TARGET"; then
5352 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5353else
5354 echo "$ac_t""no" 1>&6
5355fi
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.
5360set dummy ${ncn_progname}; ac_word=$2
5361echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5362echo "configure:5363: checking for $ac_word" >&5
5363if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5364 echo $ac_n "(cached) $ac_c" 1>&6
5365else
5366 if test -n "$AS_FOR_TARGET"; then
5367 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5368else
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"
5379fi
5380fi
5381AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5382if test -n "$AS_FOR_TARGET"; then
5383 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5384else
5385 echo "$ac_t""no" 1>&6
5386fi
5387
5388 fi
5389 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5390 done
5391fi
5392
5393if 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
5400fi
5401
5402else
5403 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5404fi
5405
5406
5407
5408
5409if 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
5412echo "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
5425fi
5426if 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.
5428set dummy dlltool; ac_word=$2
5429echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5430echo "configure:5431: checking for $ac_word" >&5
5431if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5432 echo $ac_n "(cached) $ac_c" 1>&6
5433else
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 ;;
5453esac
5454fi
5455DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5456if test -n "$DLLTOOL_FOR_TARGET"; then
5457 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5458else
5459 echo "$ac_t""no" 1>&6
5460fi
5461
5462fi
5463if 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
5467echo "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
5476fi
5477
5478if 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.
5482set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5483echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5484echo "configure:5485: checking for $ac_word" >&5
5485if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5486 echo $ac_n "(cached) $ac_c" 1>&6
5487else
5488 if test -n "$DLLTOOL_FOR_TARGET"; then
5489 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5490else
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"
5501fi
5502fi
5503DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5504if test -n "$DLLTOOL_FOR_TARGET"; then
5505 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5506else
5507 echo "$ac_t""no" 1>&6
5508fi
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.
5513set dummy ${ncn_progname}; ac_word=$2
5514echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5515echo "configure:5516: checking for $ac_word" >&5
5516if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5517 echo $ac_n "(cached) $ac_c" 1>&6
5518else
5519 if test -n "$DLLTOOL_FOR_TARGET"; then
5520 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5521else
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"
5532fi
5533fi
5534DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5535if test -n "$DLLTOOL_FOR_TARGET"; then
5536 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5537else
5538 echo "$ac_t""no" 1>&6
5539fi
5540
5541 fi
5542 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5543 done
5544fi
5545
5546if 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
5553fi
5554
5555else
5556 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5557fi
5558
5559
5560
5561
5562if 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
5565echo "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
5578fi
5579if 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.
5581set dummy ld; ac_word=$2
5582echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5583echo "configure:5584: checking for $ac_word" >&5
5584if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5585 echo $ac_n "(cached) $ac_c" 1>&6
5586else
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 ;;
5606esac
5607fi
5608LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5609if test -n "$LD_FOR_TARGET"; then
5610 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5611else
5612 echo "$ac_t""no" 1>&6
5613fi
5614
5615fi
5616if 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
5620echo "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
5629fi
5630
5631if 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.
5635set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5636echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5637echo "configure:5638: checking for $ac_word" >&5
5638if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5640else
5641 if test -n "$LD_FOR_TARGET"; then
5642 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5643else
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"
5654fi
5655fi
5656LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5657if test -n "$LD_FOR_TARGET"; then
5658 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5659else
5660 echo "$ac_t""no" 1>&6
5661fi
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.
5666set dummy ${ncn_progname}; ac_word=$2
5667echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5668echo "configure:5669: checking for $ac_word" >&5
5669if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5670 echo $ac_n "(cached) $ac_c" 1>&6
5671else
5672 if test -n "$LD_FOR_TARGET"; then
5673 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5674else
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"
5685fi
5686fi
5687LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5688if test -n "$LD_FOR_TARGET"; then
5689 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5690else
5691 echo "$ac_t""no" 1>&6
5692fi
5693
5694 fi
5695 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5696 done
5697fi
5698
5699if 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
5706fi
5707
5708else
5709 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5710fi
5711
5712
5713
5714
5715if 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
5718echo "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
5731fi
5732if 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.
5734set dummy lipo; ac_word=$2
5735echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5736echo "configure:5737: checking for $ac_word" >&5
5737if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5738 echo $ac_n "(cached) $ac_c" 1>&6
5739else
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 ;;
5759esac
5760fi
5761LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5762if test -n "$LIPO_FOR_TARGET"; then
5763 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5764else
5765 echo "$ac_t""no" 1>&6
5766fi
5767
5768fi
5769if 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
5773echo "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
5782fi
5783
5784if 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.
5788set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5789echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5790echo "configure:5791: checking for $ac_word" >&5
5791if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5792 echo $ac_n "(cached) $ac_c" 1>&6
5793else
5794 if test -n "$LIPO_FOR_TARGET"; then
5795 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5796else
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"
5807fi
5808fi
5809LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5810if test -n "$LIPO_FOR_TARGET"; then
5811 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5812else
5813 echo "$ac_t""no" 1>&6
5814fi
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.
5819set dummy ${ncn_progname}; ac_word=$2
5820echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5821echo "configure:5822: checking for $ac_word" >&5
5822if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5823 echo $ac_n "(cached) $ac_c" 1>&6
5824else
5825 if test -n "$LIPO_FOR_TARGET"; then
5826 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5827else
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"
5838fi
5839fi
5840LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5841if test -n "$LIPO_FOR_TARGET"; then
5842 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5843else
5844 echo "$ac_t""no" 1>&6
5845fi
5846
5847 fi
5848 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5849 done
5850fi
5851
5852if 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
5859fi
5860
5861else
5862 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
5863fi
5864
5865
5866
5867
5868if 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
5871echo "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
5884fi
5885if 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.
5887set dummy nm; ac_word=$2
5888echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5889echo "configure:5890: checking for $ac_word" >&5
5890if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5891 echo $ac_n "(cached) $ac_c" 1>&6
5892else
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 ;;
5912esac
5913fi
5914NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
5915if test -n "$NM_FOR_TARGET"; then
5916 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5917else
5918 echo "$ac_t""no" 1>&6
5919fi
5920
5921fi
5922if 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
5926echo "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
5935fi
5936
5937if 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.
5941set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5942echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5943echo "configure:5944: checking for $ac_word" >&5
5944if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5945 echo $ac_n "(cached) $ac_c" 1>&6
5946else
5947 if test -n "$NM_FOR_TARGET"; then
5948 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5949else
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"
5960fi
5961fi
5962NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5963if test -n "$NM_FOR_TARGET"; then
5964 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5965else
5966 echo "$ac_t""no" 1>&6
5967fi
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.
5972set dummy ${ncn_progname}; ac_word=$2
5973echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5974echo "configure:5975: checking for $ac_word" >&5
5975if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5976 echo $ac_n "(cached) $ac_c" 1>&6
5977else
5978 if test -n "$NM_FOR_TARGET"; then
5979 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5980else
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"
5991fi
5992fi
5993NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5994if test -n "$NM_FOR_TARGET"; then
5995 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5996else
5997 echo "$ac_t""no" 1>&6
5998fi
5999
6000 fi
6001 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6002 done
6003fi
6004
6005if 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
6012fi
6013
6014else
6015 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
6016fi
6017
6018
6019
6020
6021if 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
6024echo "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
6037fi
6038if 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.
6040set dummy objdump; ac_word=$2
6041echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6042echo "configure:6043: checking for $ac_word" >&5
6043if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6
6045else
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 ;;
6065esac
6066fi
6067OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6068if test -n "$OBJDUMP_FOR_TARGET"; then
6069 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6070else
6071 echo "$ac_t""no" 1>&6
6072fi
6073
6074fi
6075if 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
6079echo "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
6088fi
6089
6090if 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.
6094set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6095echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6096echo "configure:6097: checking for $ac_word" >&5
6097if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6098 echo $ac_n "(cached) $ac_c" 1>&6
6099else
6100 if test -n "$OBJDUMP_FOR_TARGET"; then
6101 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6102else
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"
6113fi
6114fi
6115OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6116if test -n "$OBJDUMP_FOR_TARGET"; then
6117 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6118else
6119 echo "$ac_t""no" 1>&6
6120fi
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.
6125set dummy ${ncn_progname}; ac_word=$2
6126echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6127echo "configure:6128: checking for $ac_word" >&5
6128if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6129 echo $ac_n "(cached) $ac_c" 1>&6
6130else
6131 if test -n "$OBJDUMP_FOR_TARGET"; then
6132 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6133else
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"
6144fi
6145fi
6146OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6147if test -n "$OBJDUMP_FOR_TARGET"; then
6148 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6149else
6150 echo "$ac_t""no" 1>&6
6151fi
6152
6153 fi
6154 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6155 done
6156fi
6157
6158if 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
6165fi
6166
6167else
6168 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
6169fi
6170
6171
6172
6173
6174if 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
6177echo "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
6190fi
6191if 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.
6193set dummy ranlib; ac_word=$2
6194echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6195echo "configure:6196: checking for $ac_word" >&5
6196if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6197 echo $ac_n "(cached) $ac_c" 1>&6
6198else
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 ;;
6218esac
6219fi
6220RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6221if test -n "$RANLIB_FOR_TARGET"; then
6222 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6223else
6224 echo "$ac_t""no" 1>&6
6225fi
6226
6227fi
6228if 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
6232echo "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
6241fi
6242
6243if 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.
6247set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6248echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6249echo "configure:6250: checking for $ac_word" >&5
6250if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6251 echo $ac_n "(cached) $ac_c" 1>&6
6252else
6253 if test -n "$RANLIB_FOR_TARGET"; then
6254 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6255else
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"
6266fi
6267fi
6268RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6269if test -n "$RANLIB_FOR_TARGET"; then
6270 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6271else
6272 echo "$ac_t""no" 1>&6
6273fi
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.
6278set dummy ${ncn_progname}; ac_word=$2
6279echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6280echo "configure:6281: checking for $ac_word" >&5
6281if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6282 echo $ac_n "(cached) $ac_c" 1>&6
6283else
6284 if test -n "$RANLIB_FOR_TARGET"; then
6285 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6286else
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"
6297fi
6298fi
6299RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6300if test -n "$RANLIB_FOR_TARGET"; then
6301 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6302else
6303 echo "$ac_t""no" 1>&6
6304fi
6305
6306 fi
6307 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6308 done
6309fi
6310
6311if 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
6318fi
6319
6320else
6321 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
6322fi
6323
6324
6325
6326
6327if 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
6330echo "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
6343fi
6344if 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.
6346set dummy strip; ac_word=$2
6347echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6348echo "configure:6349: checking for $ac_word" >&5
6349if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6350 echo $ac_n "(cached) $ac_c" 1>&6
6351else
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 ;;
6371esac
6372fi
6373STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6374if test -n "$STRIP_FOR_TARGET"; then
6375 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6376else
6377 echo "$ac_t""no" 1>&6
6378fi
6379
6380fi
6381if 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
6385echo "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
6394fi
6395
6396if 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.
6400set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6401echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6402echo "configure:6403: checking for $ac_word" >&5
6403if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6404 echo $ac_n "(cached) $ac_c" 1>&6
6405else
6406 if test -n "$STRIP_FOR_TARGET"; then
6407 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6408else
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"
6419fi
6420fi
6421STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6422if test -n "$STRIP_FOR_TARGET"; then
6423 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6424else
6425 echo "$ac_t""no" 1>&6
6426fi
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.
6431set dummy ${ncn_progname}; ac_word=$2
6432echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6433echo "configure:6434: checking for $ac_word" >&5
6434if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6435 echo $ac_n "(cached) $ac_c" 1>&6
6436else
6437 if test -n "$STRIP_FOR_TARGET"; then
6438 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6439else
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"
6450fi
6451fi
6452STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6453if test -n "$STRIP_FOR_TARGET"; then
6454 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6455else
6456 echo "$ac_t""no" 1>&6
6457fi
6458
6459 fi
6460 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6461 done
6462fi
6463
6464if 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
6471fi
6472
6473else
6474 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
6475fi
6476
6477
6478
6479
6480if 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
6483echo "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
6496fi
6497if 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.
6499set dummy windres; ac_word=$2
6500echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6501echo "configure:6502: checking for $ac_word" >&5
6502if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6503 echo $ac_n "(cached) $ac_c" 1>&6
6504else
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 ;;
6524esac
6525fi
6526WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6527if test -n "$WINDRES_FOR_TARGET"; then
6528 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6529else
6530 echo "$ac_t""no" 1>&6
6531fi
6532
6533fi
6534if 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
6538echo "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
6547fi
6548
6549if 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.
6553set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6554echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6555echo "configure:6556: checking for $ac_word" >&5
6556if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6557 echo $ac_n "(cached) $ac_c" 1>&6
6558else
6559 if test -n "$WINDRES_FOR_TARGET"; then
6560 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6561else
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"
6572fi
6573fi
6574WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6575if test -n "$WINDRES_FOR_TARGET"; then
6576 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6577else
6578 echo "$ac_t""no" 1>&6
6579fi
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.
6584set dummy ${ncn_progname}; ac_word=$2
6585echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6586echo "configure:6587: checking for $ac_word" >&5
6587if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6588 echo $ac_n "(cached) $ac_c" 1>&6
6589else
6590 if test -n "$WINDRES_FOR_TARGET"; then
6591 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6592else
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"
6603fi
6604fi
6605WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6606if test -n "$WINDRES_FOR_TARGET"; then
6607 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6608else
6609 echo "$ac_t""no" 1>&6
6610fi
6611
6612 fi
6613 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6614 done
6615fi
6616
6617if 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
6624fi
6625
6626else
6627 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
6628fi
6629
6630
6631RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6632
6633echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6634echo "configure:6635: checking where to find the target ar" >&5
6635if 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
6643else
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
6665fi
6666echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6667echo "configure:6668: checking where to find the target as" >&5
6668if 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
6676else
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
6698fi
6699echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6700echo "configure:6701: checking where to find the target cc" >&5
6701if 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
6709else
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
6731fi
6732echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6733echo "configure:6734: checking where to find the target c++" >&5
6734if 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
6742else
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
6767fi
6768echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6769echo "configure:6770: checking where to find the target c++ for libstdc++" >&5
6770if 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
6778else
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
6803fi
6804echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6805echo "configure:6806: checking where to find the target dlltool" >&5
6806if 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
6814else
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
6836fi
6837echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6838echo "configure:6839: checking where to find the target gcc" >&5
6839if 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
6847else
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
6869fi
6870echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6871echo "configure:6872: checking where to find the target gcj" >&5
6872if 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
6880else
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
6905fi
6906echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6907echo "configure:6908: checking where to find the target gfortran" >&5
6908if 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
6916else
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
6941fi
6942echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
6943echo "configure:6944: checking where to find the target ld" >&5
6944if 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
6952else
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
6974fi
6975echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
6976echo "configure:6977: checking where to find the target lipo" >&5
6977if 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
6985else
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
6997fi
6998echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
6999echo "configure:7000: checking where to find the target nm" >&5
7000if 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
7008else
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
7030fi
7031echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7032echo "configure:7033: checking where to find the target objdump" >&5
7033if 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
7041else
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
7063fi
7064echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7065echo "configure:7066: checking where to find the target ranlib" >&5
7066if 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
7074else
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
7096fi
7097echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7098echo "configure:7099: checking where to find the target strip" >&5
7099if 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
7107else
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
7129fi
7130echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7131echo "configure:7132: checking where to find the target windres" >&5
7132if 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
7140else
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
7162fi
7163
7164
7165
7166
7167# Certain tools may need extra flags.
7168AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7169RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7170NM_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.
7174COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7175COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7176COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7177if 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
7185fi
7186
7187
7188
7189
7190
7191echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7192echo "configure:7193: checking whether to enable maintainer-specific portions of Makefiles" >&5
7193# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7194if test "${enable_maintainer_mode+set}" = set; then
7195 enableval="$enable_maintainer_mode"
7196 USE_MAINTAINER_MODE=$enableval
7197else
7198 USE_MAINTAINER_MODE=no
7199fi
7200
7201echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7202
7203
7204if test "$USE_MAINTAINER_MODE" = yes; then
7205 MAINTAINER_MODE_TRUE=
7206 MAINTAINER_MODE_FALSE='#'
7207else
7208 MAINTAINER_MODE_TRUE='#'
7209 MAINTAINER_MODE_FALSE=
7210fi
7211MAINT=$MAINTAINER_MODE_TRUE
7212
7213# ---------------------
7214# GCC bootstrap support
7215# ---------------------
7216
7217# Stage specific cflags for build.
7218stage1_cflags="-g"
7219case $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 ;;
7232esac
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.
7238if test "${enable_werror+set}" = set; then
7239 enableval="$enable_werror"
7240 :
7241else
7242 enable_werror=yes
7243fi
7244
7245case ${enable_werror} in
7246 yes) stage2_werror_flag="--enable-werror-always" ;;
7247 *) stage2_werror_flag="" ;;
7248esac
7249
7250
7251trap '' 1 2 15
7252cat > 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#
7267EOF
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
7287if cmp -s $cache_file confcache; then
7288 :
7289else
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
7296fi
7297rm -f confcache
7298
7299trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7300
7301test "x$prefix" = xNONE && prefix=$ac_default_prefix
7302# Let make expand exec_prefix.
7303test "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.
7308if test "x$srcdir" = x.; then
7309 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7310fi
7311
7312trap '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.
7317cat > conftest.defs <<\EOF
7318s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7319s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7320s%\[%\\&%g
7321s%\]%\\&%g
7322s%\$%$$%g
7323EOF
7324DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7325rm -f conftest.defs
7326
7327
7328# Without the "./", some shells look in PATH for config.status.
7329: ${CONFIG_STATUS=./config.status}
7330
7331echo creating $CONFIG_STATUS
7332rm -f $CONFIG_STATUS
7333cat > $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
7345ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7346for ac_option
7347do
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
7359done
7360
7361ac_given_srcdir=$srcdir
7362ac_given_INSTALL="$INSTALL"
7363
7364trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7365EOF
7366cat >> $CONFIG_STATUS <<EOF
7367
7368# Protect against being on the right side of a sed subst in config.status.
7369sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7370 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7371$ac_vpsub
7372$extrasub
7373s%@SHELL@%$SHELL%g
7374s%@CFLAGS@%$CFLAGS%g
7375s%@CPPFLAGS@%$CPPFLAGS%g
7376s%@CXXFLAGS@%$CXXFLAGS%g
7377s%@FFLAGS@%$FFLAGS%g
7378s%@DEFS@%$DEFS%g
7379s%@LDFLAGS@%$LDFLAGS%g
7380s%@LIBS@%$LIBS%g
7381s%@exec_prefix@%$exec_prefix%g
7382s%@prefix@%$prefix%g
7383s%@program_transform_name@%$program_transform_name%g
7384s%@bindir@%$bindir%g
7385s%@sbindir@%$sbindir%g
7386s%@libexecdir@%$libexecdir%g
7387s%@datadir@%$datadir%g
7388s%@sysconfdir@%$sysconfdir%g
7389s%@sharedstatedir@%$sharedstatedir%g
7390s%@localstatedir@%$localstatedir%g
7391s%@libdir@%$libdir%g
7392s%@includedir@%$includedir%g
7393s%@oldincludedir@%$oldincludedir%g
7394s%@infodir@%$infodir%g
7395s%@mandir@%$mandir%g
7396s%@host@%$host%g
7397s%@host_alias@%$host_alias%g
7398s%@host_cpu@%$host_cpu%g
7399s%@host_vendor@%$host_vendor%g
7400s%@host_os@%$host_os%g
7401s%@target@%$target%g
7402s%@target_alias@%$target_alias%g
7403s%@target_cpu@%$target_cpu%g
7404s%@target_vendor@%$target_vendor%g
7405s%@target_os@%$target_os%g
7406s%@build@%$build%g
7407s%@build_alias@%$build_alias%g
7408s%@build_cpu@%$build_cpu%g
7409s%@build_vendor@%$build_vendor%g
7410s%@build_os@%$build_os%g
7411s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7412s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7413s%@INSTALL_DATA@%$INSTALL_DATA%g
7414s%@LN@%$LN%g
7415s%@LN_S@%$LN_S%g
7416s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7417s%@build_subdir@%$build_subdir%g
7418s%@host_subdir@%$host_subdir%g
7419s%@target_subdir@%$target_subdir%g
7420s%@CC@%$CC%g
7421s%@GNATBIND@%$GNATBIND%g
7422s%@do_compare@%$do_compare%g
7423s%@gmplibs@%$gmplibs%g
7424s%@gmpinc@%$gmpinc%g
7425s%@stage1_languages@%$stage1_languages%g
7426s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7427/@serialization_dependencies@/r $serialization_dependencies
7428s%@serialization_dependencies@%%g
7429/@host_makefile_frag@/r $host_makefile_frag
7430s%@host_makefile_frag@%%g
7431/@target_makefile_frag@/r $target_makefile_frag
7432s%@target_makefile_frag@%%g
7433/@alphaieee_frag@/r $alphaieee_frag
7434s%@alphaieee_frag@%%g
7435/@ospace_frag@/r $ospace_frag
7436s%@ospace_frag@%%g
7437s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7438s%@BUILD_PREFIX@%$BUILD_PREFIX%g
7439s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
7440s%@tooldir@%$tooldir%g
7441s%@build_tooldir@%$build_tooldir%g
7442s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7443s%@GDB_TK@%$GDB_TK%g
7444s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7445s%@build_configargs@%$build_configargs%g
7446s%@build_configdirs@%$build_configdirs%g
7447s%@host_configargs@%$host_configargs%g
7448s%@configdirs@%$configdirs%g
7449s%@target_configargs@%$target_configargs%g
7450s%@target_configdirs@%$target_configdirs%g
7451s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7452s%@config_shell@%$config_shell%g
7453s%@YACC@%$YACC%g
7454s%@BISON@%$BISON%g
7455s%@M4@%$M4%g
7456s%@LEX@%$LEX%g
7457s%@FLEX@%$FLEX%g
7458s%@MAKEINFO@%$MAKEINFO%g
7459s%@EXPECT@%$EXPECT%g
7460s%@RUNTEST@%$RUNTEST%g
7461s%@AR@%$AR%g
7462s%@AS@%$AS%g
7463s%@DLLTOOL@%$DLLTOOL%g
7464s%@LD@%$LD%g
7465s%@LIPO@%$LIPO%g
7466s%@NM@%$NM%g
7467s%@RANLIB@%$RANLIB%g
7468s%@STRIP@%$STRIP%g
7469s%@WINDRES@%$WINDRES%g
7470s%@OBJCOPY@%$OBJCOPY%g
7471s%@OBJDUMP@%$OBJDUMP%g
7472s%@CXX@%$CXX%g
7473s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7474s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7475s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7476s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7477s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7478s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7479s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7480s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7481s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7482s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7483s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7484s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7485s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7486s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7487s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7488s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7489s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7490s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7491s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7492s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7493s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7494s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7495s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7496s%@MAINT@%$MAINT%g
7497s%@stage1_cflags@%$stage1_cflags%g
7498s%@stage2_werror_flag@%$stage2_werror_flag%g
7499
7500CEOF
7501EOF
7502
7503cat >> $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.
7507ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7508ac_file=1 # Number of current file.
7509ac_beg=1 # First line for current file.
7510ac_end=$ac_max_sed_cmds # Line after last line for current file.
7511ac_more_lines=:
7512ac_sed_cmds=""
7513while $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
7532done
7533if test -z "$ac_sed_cmds"; then
7534 ac_sed_cmds=cat
7535fi
7536EOF
7537
7538cat >> $CONFIG_STATUS <<EOF
7539
7540CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7541EOF
7542cat >> $CONFIG_STATUS <<\EOF
7543for 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
7591s%@configure_input@%$configure_input%g
7592s%@srcdir@%$srcdir%g
7593s%@top_srcdir@%$top_srcdir%g
7594s%@INSTALL@%$INSTALL%g
7595" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7596fi; done
7597rm -f conftest.s*
7598
7599EOF
7600cat >> $CONFIG_STATUS <<EOF
7601
7602EOF
7603cat >> $CONFIG_STATUS <<\EOF
7604
7605exit 0
7606EOF
7607chmod +x $CONFIG_STATUS
7608rm -fr confdefs* $ac_clean_files
7609test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7610
This page took 0.051855 seconds and 4 git commands to generate.