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