]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
decl.c (complete_array_type): Don't gratuitously copy maxindex.
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
79c06341 2
671aa708
NN
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:
6de9cd9a
DN
14ac_help="$ac_help
15 --without-libbanshee Don't build with libbanshee"
d9cdb878
AC
16ac_help="$ac_help
17 --enable-libada Builds libada directory"
bebf829d
PB
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"
6de9cd9a
DN
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"
f516a7da
PB
26ac_help="$ac_help
27 --enable-bootstrap Enable bootstrapping [no]"
ade82b16 28ac_help="$ac_help
bf1d3e81
NN
29 --enable-serial-[{host,target,build}-]configure
30 Force sequential configuration of
ade82b16 31 sub-packages for the host, target or build
bf1d3e81 32 machine, or all sub-packages"
ee03dc5e
AO
33ac_help="$ac_help
34 --enable-maintainer-mode enable make rules and dependencies not useful
35 (and sometimes confusing) to the casual installer"
2805b53a
NN
36ac_help="$ac_help
37 --enable-werror enable -Werror in bootstrap stage2 and later"
671aa708
NN
38
39# Initialize some variables set by options.
40# The variables have the same names as the options, with
41# dashes changed to underlines.
42build=NONE
43cache_file=./config.cache
44exec_prefix=NONE
45host=NONE
46no_create=
47nonopt=NONE
48no_recursion=
49prefix=NONE
50program_prefix=NONE
51program_suffix=NONE
52program_transform_name=s,x,x,
53silent=
54site=
55srcdir=
56target=NONE
57verbose=
58x_includes=NONE
59x_libraries=NONE
60bindir='${exec_prefix}/bin'
61sbindir='${exec_prefix}/sbin'
62libexecdir='${exec_prefix}/libexec'
63datadir='${prefix}/share'
64sysconfdir='${prefix}/etc'
65sharedstatedir='${prefix}/com'
66localstatedir='${prefix}/var'
67libdir='${exec_prefix}/lib'
68includedir='${prefix}/include'
69oldincludedir='/usr/include'
70infodir='${prefix}/info'
71mandir='${prefix}/man'
79c06341 72
671aa708
NN
73# Initialize some other variables.
74subdirs=
75MFLAGS= MAKEFLAGS=
76SHELL=${CONFIG_SHELL-/bin/sh}
77# Maximum number of lines to put in a shell here document.
78ac_max_here_lines=12
79c06341 79
671aa708
NN
80ac_prev=
81for ac_option
82do
79c06341 83
671aa708
NN
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
87 ac_prev=
88 continue
89 fi
79c06341 90
671aa708
NN
91 case "$ac_option" in
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 *) ac_optarg= ;;
94 esac
95
96 # Accept the important Cygnus configure options, so we can diagnose typos.
97
98 case "$ac_option" in
99
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
101 ac_prev=bindir ;;
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
104
105 -build | --build | --buil | --bui | --bu)
106 ac_prev=build ;;
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
109
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
116
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118 ac_prev=datadir ;;
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120 | --da=*)
121 datadir="$ac_optarg" ;;
122
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 fi
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
131
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 fi
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 case "$ac_option" in
140 *=*) ;;
141 *) ac_optarg=yes ;;
142 esac
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
144
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
153
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
156 with_gas=yes ;;
157
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
161 cat << EOF
162Usage: configure [options] [host]
163Options: [defaults in brackets after descriptions]
164Configuration:
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
172 [$ac_default_prefix]
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 [same as prefix]
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
179 [PREFIX/share]
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 [PREFIX/com]
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
194EOF
195 cat << EOF
196Host type:
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
207EOF
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
210 fi
211 exit 0 ;;
212
213 -host | --host | --hos | --ho)
214 ac_prev=host ;;
215 -host=* | --host=* | --hos=* | --ho=*)
216 host="$ac_optarg" ;;
217
218 -includedir | --includedir | --includedi | --included | --include \
219 | --includ | --inclu | --incl | --inc)
220 ac_prev=includedir ;;
221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
222 | --includ=* | --inclu=* | --incl=* | --inc=*)
223 includedir="$ac_optarg" ;;
224
225 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 ac_prev=infodir ;;
227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
228 infodir="$ac_optarg" ;;
229
230 -libdir | --libdir | --libdi | --libd)
231 ac_prev=libdir ;;
232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
233 libdir="$ac_optarg" ;;
234
235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
236 | --libexe | --libex | --libe)
237 ac_prev=libexecdir ;;
238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
239 | --libexe=* | --libex=* | --libe=*)
240 libexecdir="$ac_optarg" ;;
241
242 -localstatedir | --localstatedir | --localstatedi | --localstated \
243 | --localstate | --localstat | --localsta | --localst \
244 | --locals | --local | --loca | --loc | --lo)
245 ac_prev=localstatedir ;;
246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
247 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
248 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
249 localstatedir="$ac_optarg" ;;
250
251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 ac_prev=mandir ;;
253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
254 mandir="$ac_optarg" ;;
255
256 -nfp | --nfp | --nf)
257 # Obsolete; use --without-fp.
258 with_fp=no ;;
259
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
261 | --no-cr | --no-c)
262 no_create=yes ;;
263
264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
266 no_recursion=yes ;;
267
268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
270 | --oldin | --oldi | --old | --ol | --o)
271 ac_prev=oldincludedir ;;
272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
275 oldincludedir="$ac_optarg" ;;
276
277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 ac_prev=prefix ;;
279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
280 prefix="$ac_optarg" ;;
281
282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
283 | --program-pre | --program-pr | --program-p)
284 ac_prev=program_prefix ;;
285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
287 program_prefix="$ac_optarg" ;;
288
289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
290 | --program-suf | --program-su | --program-s)
291 ac_prev=program_suffix ;;
292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
294 program_suffix="$ac_optarg" ;;
295
296 -program-transform-name | --program-transform-name \
297 | --program-transform-nam | --program-transform-na \
298 | --program-transform-n | --program-transform- \
299 | --program-transform | --program-transfor \
300 | --program-transfo | --program-transf \
301 | --program-trans | --program-tran \
302 | --progr-tra | --program-tr | --program-t)
303 ac_prev=program_transform_name ;;
304 -program-transform-name=* | --program-transform-name=* \
305 | --program-transform-nam=* | --program-transform-na=* \
306 | --program-transform-n=* | --program-transform-=* \
307 | --program-transform=* | --program-transfor=* \
308 | --program-transfo=* | --program-transf=* \
309 | --program-trans=* | --program-tran=* \
310 | --progr-tra=* | --program-tr=* | --program-t=*)
311 program_transform_name="$ac_optarg" ;;
312
313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
314 | -silent | --silent | --silen | --sile | --sil)
315 silent=yes ;;
316
317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 ac_prev=sbindir ;;
319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 | --sbi=* | --sb=*)
321 sbindir="$ac_optarg" ;;
322
323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
325 | --sharedst | --shareds | --shared | --share | --shar \
326 | --sha | --sh)
327 ac_prev=sharedstatedir ;;
328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 | --sha=* | --sh=*)
332 sharedstatedir="$ac_optarg" ;;
333
334 -site | --site | --sit)
335 ac_prev=site ;;
336 -site=* | --site=* | --sit=*)
337 site="$ac_optarg" ;;
338
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
340 ac_prev=srcdir ;;
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
343
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
350
351 -target | --target | --targe | --targ | --tar | --ta | --t)
352 ac_prev=target ;;
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
355
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
357 verbose=yes ;;
358
359 -version | --version | --versio | --versi | --vers)
360 echo "configure generated by autoconf version 2.13"
361 exit 0 ;;
362
363 -with-* | --with-*)
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 fi
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 case "$ac_option" in
371 *=*) ;;
372 *) ac_optarg=yes ;;
373 esac
374 eval "with_${ac_package}='$ac_optarg'" ;;
375
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 fi
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
384
385 --x)
386 # Obsolete; use --with-x.
387 with_x=yes ;;
388
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
395
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
402
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 ;;
405
406 *)
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
409 fi
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 fi
413 nonopt="$ac_option"
414 ;;
415
416 esac
417done
418
419if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421fi
422
423trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
424
425# File descriptor usage:
426# 0 standard input
427# 1 file creation
428# 2 errors and warnings
429# 3 some systems may open it to /dev/tty
430# 4 used on the Kubota Titan
431# 6 checking for... messages and results
432# 5 compiler messages saved in config.log
433if test "$silent" = yes; then
434 exec 6>/dev/null
435else
436 exec 6>&1
437fi
438exec 5>./config.log
439
440echo "\
441This file contains any messages produced by compilers while
442running configure, to aid debugging if configure makes a mistake.
443" 1>&5
444
445# Strip out --no-create and --no-recursion so they do not pile up.
446# Also quote any args containing shell metacharacters.
447ac_configure_args=
448for ac_arg
449do
450 case "$ac_arg" in
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 esac
459done
460
461# NLS nuisances.
462# Only set these to C if already set. These must not be set unconditionally
463# because not all systems understand e.g. LANG=C (notably SCO).
464# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465# Non-C LC_CTYPE values break the ctype check.
466if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
470
471# confdefs.h avoids OS command line length limits that DEFS can exceed.
472rm -rf conftest* confdefs.h
473# AIX cpp loses on an empty file, so make sure it contains at least a newline.
474echo > confdefs.h
475
476# A filename unique to this package, relative to the directory that
477# configure is in, which we can look for to find out if srcdir is correct.
478ac_unique_file=move-if-change
479
480# Find the source files, if location was not specified.
481if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
484 ac_prog=$0
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
487 srcdir=$ac_confdir
488 if test ! -r $srcdir/$ac_unique_file; then
489 srcdir=..
490 fi
491else
492 ac_srcdir_defaulted=no
493fi
494if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 else
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
499 fi
500fi
501srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
502
503# Prefer explicitly selected file to automatically selected ones.
25b656e7
PB
504if test -z "$CONFIG_SITE"; then
505 if test "x$prefix" != xNONE; then
506 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
507 else
508 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
671aa708
NN
509 fi
510fi
511for ac_site_file in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
514 . "$ac_site_file"
515 fi
516done
517
518if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
520 . $cache_file
521else
522 echo "creating cache $cache_file"
523 > $cache_file
524fi
525
526ac_ext=c
527# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528ac_cpp='$CPP $CPPFLAGS'
529ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531cross_compiling=$ac_cv_prog_cc_cross
532
533ac_exeext=
534ac_objext=o
535if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538 ac_n= ac_c='
539' ac_t=' '
540 else
541 ac_n=-n ac_c= ac_t=
542 fi
543else
544 ac_n= ac_c='\c' ac_t=
545fi
546
547
d02c69be 548
671aa708
NN
549ac_aux_dir=
550for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
551 if test -f $ac_dir/install-sh; then
552 ac_aux_dir=$ac_dir
553 ac_install_sh="$ac_aux_dir/install-sh -c"
554 break
555 elif test -f $ac_dir/install.sh; then
556 ac_aux_dir=$ac_dir
557 ac_install_sh="$ac_aux_dir/install.sh -c"
558 break
559 fi
560done
561if test -z "$ac_aux_dir"; then
562 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563fi
564ac_config_guess=$ac_aux_dir/config.guess
565ac_config_sub=$ac_aux_dir/config.sub
566ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
567
568
569# Do some error checking and defaulting for the host and target type.
570# The inputs are:
571# configure --host=HOST --target=TARGET --build=BUILD NONOPT
79c06341 572#
671aa708
NN
573# The rules are:
574# 1. You are not allowed to specify --host, --target, and nonopt at the
575# same time.
576# 2. Host defaults to nonopt.
577# 3. If nonopt is not specified, then host defaults to the current host,
578# as determined by config.guess.
579# 4. Target and build default to nonopt.
580# 5. If nonopt is not specified, then target and build default to host.
581
582# The aliases save the names the user supplied, while $host etc.
583# will get canonicalized.
584case $host---$target---$nonopt in
585NONE---*---* | *---NONE---* | *---*---NONE) ;;
586*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
587esac
588
589
590# Make sure we can run config.sub.
591if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
592else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
593fi
594
595echo $ac_n "checking host system type""... $ac_c" 1>&6
bebf829d 596echo "configure:597: checking host system type" >&5
671aa708
NN
597
598host_alias=$host
599case "$host_alias" in
600NONE)
601 case $nonopt in
602 NONE)
603 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
604 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
605 fi ;;
606 *) host_alias=$nonopt ;;
607 esac ;;
608esac
609
610host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
611host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
612host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
613host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
614echo "$ac_t""$host" 1>&6
615
616echo $ac_n "checking target system type""... $ac_c" 1>&6
bebf829d 617echo "configure:618: checking target system type" >&5
671aa708
NN
618
619target_alias=$target
620case "$target_alias" in
621NONE)
622 case $nonopt in
623 NONE) target_alias=$host_alias ;;
624 *) target_alias=$nonopt ;;
625 esac ;;
626esac
627
628target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
629target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
630target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
631target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
632echo "$ac_t""$target" 1>&6
633
634echo $ac_n "checking build system type""... $ac_c" 1>&6
bebf829d 635echo "configure:636: checking build system type" >&5
671aa708
NN
636
637build_alias=$build
638case "$build_alias" in
639NONE)
640 case $nonopt in
641 NONE) build_alias=$host_alias ;;
642 *) build_alias=$nonopt ;;
643 esac ;;
644esac
645
646build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
647build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
648build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
649build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
650echo "$ac_t""$build" 1>&6
651
652test "$host_alias" != "$target_alias" &&
653 test "$program_prefix$program_suffix$program_transform_name" = \
654 NONENONEs,x,x, &&
655 program_prefix=${target_alias}-
656
657if test "$program_transform_name" = s,x,x,; then
658 program_transform_name=
659else
660 # Double any \ or $. echo might interpret backslashes.
661 cat <<\EOF_SED > conftestsed
662s,\\,\\\\,g; s,\$,$$,g
663EOF_SED
664 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
665 rm -f conftestsed
666fi
667test "$program_prefix" != NONE &&
668 program_transform_name="s,^,${program_prefix},; $program_transform_name"
669# Use a double $ so make ignores it.
670test "$program_suffix" != NONE &&
671 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
672
673# sed with no file args requires a program.
674test "$program_transform_name" = "" && program_transform_name="s,x,x,"
675
676
775956d0
NN
677# Get 'install' or 'install-sh' and its variants.
678# Find a good install program. We prefer a C program (faster),
679# so one script is as good as another. But avoid the broken or
680# incompatible versions:
681# SysV /etc/install, /usr/sbin/install
682# SunOS /usr/etc/install
683# IRIX /sbin/install
684# AIX /bin/install
685# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
686# AFS /usr/afsws/bin/install, which mishandles nonexistent args
687# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
688# ./install, which can be erroneously created by make from ./install.sh.
689echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
bebf829d 690echo "configure:691: checking for a BSD compatible install" >&5
775956d0
NN
691if test -z "$INSTALL"; then
692if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
694else
695 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
696 for ac_dir in $PATH; do
697 # Account for people who put trailing slashes in PATH elements.
698 case "$ac_dir/" in
699 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
700 *)
701 # OSF1 and SCO ODT 3.0 have their own names for install.
702 # Don't use installbsd from OSF since it installs stuff as root
703 # by default.
704 for ac_prog in ginstall scoinst install; do
705 if test -f $ac_dir/$ac_prog; then
706 if test $ac_prog = install &&
707 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
708 # AIX install. It has an incompatible calling convention.
709 :
710 else
711 ac_cv_path_install="$ac_dir/$ac_prog -c"
712 break 2
713 fi
714 fi
715 done
716 ;;
717 esac
718 done
719 IFS="$ac_save_IFS"
720
721fi
722 if test "${ac_cv_path_install+set}" = set; then
723 INSTALL="$ac_cv_path_install"
724 else
725 # As a last resort, use the slow shell script. We don't cache a
726 # path for INSTALL within a source directory, because that will
727 # break other packages using the cache if that directory is
728 # removed, or if the path is relative.
729 INSTALL="$ac_install_sh"
730 fi
731fi
732echo "$ac_t""$INSTALL" 1>&6
733
734# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
735# It thinks the first close brace ends the variable substitution.
736test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
737
738test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
739
740test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
741
ad6717df 742echo $ac_n "checking whether ln works""... $ac_c" 1>&6
bebf829d 743echo "configure:744: checking whether ln works" >&5
ad6717df
PB
744if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
746else
747 rm -f conftestdata_t
748echo >conftestdata_f
749if ln conftestdata_f conftestdata_t 2>/dev/null
750then
751 acx_cv_prog_LN=ln
752else
753 acx_cv_prog_LN=no
754fi
755rm -f conftestdata_f conftestdata_t
756
757fi
758if test $acx_cv_prog_LN = no; then
759 LN="cp"
760 echo "$ac_t""no, using $LN" 1>&6
761else
762 LN="$acx_cv_prog_LN"
763 echo "$ac_t""yes" 1>&6
764fi
765
148907ea 766echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
bebf829d 767echo "configure:768: checking whether ln -s works" >&5
148907ea
PB
768if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
770else
771 rm -f conftestdata
772if ln -s X conftestdata 2>/dev/null
773then
774 rm -f conftestdata
775 ac_cv_prog_LN_S="ln -s"
776else
777 ac_cv_prog_LN_S=ln
778fi
779fi
780LN_S="$ac_cv_prog_LN_S"
781if test "$ac_cv_prog_LN_S" = "ln -s"; then
782 echo "$ac_t""yes" 1>&6
783else
784 echo "$ac_t""no" 1>&6
785fi
786
775956d0 787
79c06341 788### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
789### If we are on Windows, search for the shell. This will permit people
790### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
791### without also having to set CONFIG_SHELL. This code will work when
792### using bash, which sets OSTYPE.
793case "${OSTYPE}" in
794*win32*)
671aa708
NN
795 if test x${CONFIG_SHELL} = x ; then
796 if test ! -f /bin/sh ; then
797 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
798 CONFIG_SHELL=${SHELL}
799 export CONFIG_SHELL
800 else
801 for prog in sh sh.exe bash bash.exe; do
802 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
803 for dir in $PATH; do
804 test -z "$dir" && dir=.
805 if test -f $dir/$prog; then
806 CONFIG_SHELL=$dir/$prog
807 export CONFIG_SHELL
808 break
809 fi
810 done
811 IFS="$save_ifs"
812 test -n "${CONFIG_SHELL}" && break
813 done
814 fi
815 fi
816 fi
817 ;;
818esac
819
820config_shell=${CONFIG_SHELL-/bin/sh}
821
79c06341
JL
822progname=$0
823# if PWD already has a value, it is probably wrong.
671aa708 824if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 825
b348267b 826# Export original configure arguments for use by sub-configures. These
eeae7b41
DJ
827# will be expanded by make, so quote '$'.
828tmp="$progname $@"
829sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
830$tmp
b348267b 831EOF_SED
eeae7b41
DJ
832TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
833rm -f conftestsed.out
3dfabf63 834
cc1e60ea 835
671aa708 836moveifchange=${srcdir}/move-if-change
79c06341 837
671aa708
NN
838# Set srcdir to "." if that's what it is.
839# This is important for multilib support.
840pwd=`${PWDCMD-pwd}`
841srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
842if test "${pwd}" = "${srcpwd}" ; then
843 srcdir=.
79c06341
JL
844fi
845
671aa708 846topsrcdir=$srcpwd
5d4a5ee6 847
671aa708
NN
848extra_host_args=
849# Define the trigger file to make sure configure will re-run whenever
850# the gcc version number changes.
851if test "${with_gcc_version_trigger+set}" = set ; then
852 gcc_version_trigger="$with_gcc_version_trigger"
853 gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
79c06341 854else
671aa708
NN
855 # If gcc's sources are available, define the trigger file.
856 if test -f ${topsrcdir}/gcc/version.c ; then
857 gcc_version_trigger=${topsrcdir}/gcc/version.c
858 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
859 case "$ac_configure_args" in
860 *--with-gcc-version-trigger=$gcc_version_trigger* )
861 ;;
862 * )
863 # Add to all subconfigure arguments: build, host, and target.
ade82b16 864 ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
671aa708
NN
865 ;;
866 esac
867 fi
79c06341
JL
868fi
869
671aa708
NN
870### To add a new directory to the tree, first choose whether it is a target
871### or a host dependent tool. Then put it into the appropriate list
872### (library or tools, host or target), doing a dependency sort.
79c06341 873
671aa708
NN
874# Subdirs will be configured in the order listed in build_configdirs,
875# configdirs, or target_configdirs; see the serialization section below.
79c06341 876
671aa708
NN
877# Dependency sorting is only needed when *configuration* must be done in
878# a particular order. In all cases a dependency should be specified in
879# the Makefile, whether or not it's implicitly specified here.
79c06341 880
671aa708
NN
881# Double entries in build_configdirs, configdirs, or target_configdirs may
882# cause circular dependencies and break everything horribly.
79c06341 883
23f6b2f9
PB
884# these library is used by various programs built for the build
885# environment
886#
887build_libs="build-libiberty"
888
889# these tools are built for the build environment
890build_tools="build-texinfo build-byacc build-flex build-bison build-m4"
891
671aa708
NN
892# these libraries are used by various programs built for the host environment
893#
4f4e53dd 894host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib libbanshee libcpp"
671aa708 895
671aa708
NN
896# these tools are built for the host environment
897# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
898# know that we are building the simulator.
899# binutils, gas and ld appear in that order because it makes sense to run
900# "make check" in that particular order.
bf7d3350 901host_tools="texinfo byacc flex bison binutils gas ld 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"
671aa708
NN
902
903# libgcj represents the runtime libraries only used by gcj.
904libgcj="target-libffi \
905 target-boehm-gc \
906 target-zlib \
907 target-qthreads \
908 target-libjava"
909
910# these libraries are built for the target environment, and are built after
911# the host libraries and the host tools (which may be a cross compiler)
912#
4dbda6f0 913target_libraries="target-libiberty \
671aa708
NN
914 target-libgloss \
915 target-newlib \
cb543528 916 target-libstdc++-v3 \
6de9cd9a 917 target-libmudflap \
6de9cd9a 918 target-libgfortran \
77d187bc 919 ${libgcj} \
d9cdb878
AC
920 target-libobjc \
921 target-libada"
671aa708 922
4dbda6f0
NN
923# these tools are built using the target libraries, and are intended to
924# run only in the target environment
671aa708 925#
4dbda6f0 926# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
927# list belongs in this list. those programs are also very likely
928# candidates for the "native_only" list which follows
929#
97286f7f 930target_tools="target-examples target-groff target-gperf target-rda"
79c06341 931
671aa708 932################################################################################
79c06341 933
671aa708
NN
934## All tools belong in one of the four categories, and are assigned above
935## We assign ${configdirs} this way to remove all embedded newlines. This
936## is important because configure will choke if they ever get through.
937## ${configdirs} is directories we build using the host tools.
938## ${target_configdirs} is directories we build using the target tools.
671aa708 939configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 940target_configdirs=`echo ${target_libraries} ${target_tools}`
79c06341 941
8b87bb96 942# Only make build modules if build != host.
8b87bb96 943if test ${host_alias} != ${build_alias} ; then
23f6b2f9 944 build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96
NN
945fi
946
671aa708 947################################################################################
79c06341 948
671aa708 949srcname="gnu development package"
79c06341 950
671aa708
NN
951# This gets set non-empty for some net releases of packages.
952appdirs=""
79c06341 953
671aa708
NN
954# Define is_cross_compiler to save on calls to 'test'.
955is_cross_compiler=
956if test x"${host}" = x"${target}" ; then
957 is_cross_compiler=no
79c06341 958else
671aa708
NN
959 is_cross_compiler=yes
960fi
79c06341 961
b4acb5ef 962# Find the build and target subdir names.
8b87bb96
NN
963 case ${build_alias} in
964 "") build_noncanonical=${build} ;;
965 *) build_noncanonical=${build_alias} ;;
966esac
967
968 case ${host_alias} in
969 "") host_noncanonical=${build_noncanonical} ;;
970 *) host_noncanonical=${host_alias} ;;
971esac
972
973 case ${target_alias} in
974 "") target_noncanonical=${host_noncanonical} ;;
975 *) target_noncanonical=${target_alias} ;;
976esac
977
978 # Prefix 'build-' so this never conflicts with target_subdir.
979build_subdir="build-${build_noncanonical}"
980# Not really a subdirectory, but here for completeness.
981host_subdir=.
982# No prefix.
983target_subdir=${target_noncanonical}
984
79c06341 985
671aa708
NN
986# Skipdirs are removed silently.
987skipdirs=
988# Noconfigdirs are removed loudly.
989noconfigdirs=""
79c06341 990
671aa708
NN
991use_gnu_ld=
992# Make sure we don't let GNU ld be added if we didn't want it.
993if test x$with_gnu_ld = xno ; then
994 use_gnu_ld=no
995 noconfigdirs="$noconfigdirs ld"
79c06341
JL
996fi
997
671aa708
NN
998use_gnu_as=
999# Make sure we don't let GNU as be added if we didn't want it.
1000if test x$with_gnu_as = xno ; then
1001 use_gnu_as=no
1002 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1003fi
1004
671aa708
NN
1005# some tools are so dependent upon X11 that if we're not building with X,
1006# it's not even worth trying to configure, much less build, that tool.
79c06341 1007
671aa708
NN
1008case ${with_x} in
1009 yes | "") ;; # the default value for this tree is that X11 is available
1010 no)
1011 skipdirs="${skipdirs} tk tix itcl libgui"
1012 # We won't be able to build gdbtk without X.
1013 enable_gdbtk=no
1014 ;;
1015 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1016esac
79c06341 1017
671aa708
NN
1018# Some tools are only suitable for building in a "native" situation.
1019# Remove these if host!=target.
61b56b2e 1020native_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"
79c06341 1021
671aa708
NN
1022# Similarly, some are only suitable for cross toolchains.
1023# Remove these if host=target.
1024cross_only="target-libgloss target-newlib target-opcodes"
1025
1026case $is_cross_compiler in
1027 no) skipdirs="${skipdirs} ${cross_only}" ;;
1028 yes) skipdirs="${skipdirs} ${native_only}" ;;
1029esac
79c06341 1030
671aa708
NN
1031# If both --with-headers and --with-libs are specified, default to
1032# --without-newlib.
078cfb66
GK
1033if test x"${with_headers}" != x && test x"${with_headers} != xno \
1034 && test x"${with_libs}" != x && test x"${with_libs} != xno ; then
671aa708
NN
1035 if test x"${with_newlib}" = x ; then
1036 with_newlib=no
1037 fi
79c06341
JL
1038fi
1039
671aa708
NN
1040# Recognize --with-newlib/--without-newlib.
1041case ${with_newlib} in
1042 no) skipdirs="${skipdirs} target-newlib" ;;
1043 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1044esac
79c06341 1045
671aa708 1046# Configure extra directories which are host specific
79c06341 1047
671aa708
NN
1048case "${host}" in
1049 *-cygwin*)
1050 configdirs="$configdirs libtermcap" ;;
1051esac
79c06341 1052
671aa708
NN
1053# Remove more programs from consideration, based on the host or
1054# target this usually means that a port of the program doesn't
1055# exist yet.
ec8d6ddc 1056
671aa708
NN
1057case "${host}" in
1058 hppa*64*-*-*)
1059 noconfigdirs="$noconfigdirs byacc"
1060 ;;
f2a0e225 1061 i[3456789]86-*-vsta)
a22c2d8d 1062 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext"
671aa708 1063 ;;
f2a0e225 1064 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
a22c2d8d 1065 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi"
3aa83176 1066 ;;
f2a0e225 1067 i[3456789]86-*-mingw32*)
61b56b2e 1068 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv"
a22c2d8d 1069 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
3aa83176 1070 ;;
f2a0e225 1071 i[3456789]86-*-beos*)
3aa83176
NN
1072 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb"
1073 ;;
671aa708 1074 *-*-cygwin*)
a22c2d8d 1075 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
1076 ;;
1077 *-*-netbsd*)
a22c2d8d 1078 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
1079 ;;
1080 ppc*-*-pe)
a22c2d8d 1081 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv"
671aa708
NN
1082 ;;
1083 powerpc-*-beos*)
1084 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
1085 ;;
1086 *-*-darwin*)
1087 noconfigdirs="$noconfigdirs tk itcl tix libgui"
1088 ;;
1089esac
ec8d6ddc 1090
6de9cd9a
DN
1091# Check whether --with-libbanshee or --without-libbanshee was given.
1092if test "${with_libbanshee+set}" = set; then
1093 withval="$with_libbanshee"
1094 :
1095fi
1096
1097case ${with_libbanshee} in
1098 no)
1099 noconfigdirs="$noconfigdirs libbanshee" ;;
1100 yes|"")
1101 with_libbanshee=yes
1102 ;;
1103 *)
1104 { echo "configure: error: --with-libbanshee can only be empty, "yes" or "no" (empty defaults to "yes"." 1>&2; exit 1; }
1105esac
1106
d9cdb878
AC
1107# Check whether --enable-libada or --disable-libada was given.
1108if test "${enable_libada+set}" = set; then
1109 enableval="$enable_libada"
1110 ENABLE_LIBADA=$enableval
1111else
1112 ENABLE_LIBADA=yes
1113fi
1114
d9cdb878
AC
1115if test "${ENABLE_LIBADA}" != "yes" ; then
1116 noconfigdirs="$noconfigdirs target-libada"
1117fi
1118
671aa708
NN
1119# Save it here so that, even in case of --enable-libgcj, if the Java
1120# front-end isn't enabled, we still get libgcj disabled.
1121libgcj_saved=$libgcj
1122case $enable_libgcj in
1123yes)
1124 # If we reset it here, it won't get added to noconfigdirs in the
1125 # target-specific build rules, so it will be forcibly enabled
1126 # (unless the Java language itself isn't enabled).
1127 libgcj=
1128 ;;
1129no)
1130 # Make sure we get it printed in the list of not supported target libs.
1131 noconfigdirs="$noconfigdirs ${libgcj}"
1132 ;;
1133esac
ec8d6ddc 1134
6de9cd9a
DN
1135
1136# Allow --disable-libmudflap to exclude target-libmudflap
1137case $enable_libmudflap in
dfcada9a 1138yes)
6de9cd9a
DN
1139 ;;
1140no)
1141 noconfigdirs="$noconfigdirs target-libmudflap"
1142 ;;
dfcada9a
MM
1143"")
1144 case "${target}" in
98a5bb3b
RM
1145 *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
1146 # Enable libmudflap by default in GNU and friends.
dfcada9a 1147 ;;
a3e8d8b4
LR
1148 *-*-freebsd*)
1149 # Enable libmudflap by default in FreeBSD.
1150 ;;
dfcada9a
MM
1151 *)
1152 # Disable it by default everywhere else.
1153 noconfigdirs="$noconfigdirs target-libmudflap"
1154 ;;
1155 esac
6de9cd9a
DN
1156esac
1157
1158
671aa708
NN
1159case "${target}" in
1160 *-*-chorusos)
1161 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1162 ;;
940cde4d 1163 powerpc-*-darwin*)
c8e5d1af 1164 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
8d9b3f2e 1165 noconfigdirs="$noconfigdirs target-libobjc"
c8e5d1af 1166 ;;
940cde4d
GK
1167 *-*-darwin*)
1168 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1169 noconfigdirs="$noconfigdirs target-libobjc ${libgcj}"
1170 ;;
671aa708
NN
1171 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1172 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1173 ;;
6de9cd9a
DN
1174 *-*-freebsd* | *-*-kfreebsd*-gnu)
1175 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1176 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1177 && test -f /usr/local/include/gmp.h; then
1178 with_gmp=/usr/local
1179 fi
1180
1181 # Skip some stuff that's unsupported on some FreeBSD configurations.
1182 case "${target}" in
1183 i*86-*-*) ;;
1184 alpha*-*-*) ;;
1185 *)
1186 noconfigdirs="$noconfigdirs ${libgcj}"
1187 ;;
1188 esac
1189 ;;
ef4e7569
US
1190 *-*-kaos*)
1191 # Remove unsupported stuff on all kaOS configurations.
b4117c30 1192 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
1193 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1194 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1195 noconfigdirs="$noconfigdirs target-libgloss"
1196 ;;
671aa708
NN
1197 *-*-netbsd*)
1198 # Skip some stuff on all NetBSD configurations.
1199 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1200
1201 # Skip some stuff that's unsupported on some NetBSD configurations.
1202 case "${target}" in
1203 i*86-*-netbsdelf*) ;;
0590b963 1204 arm*-*-netbsdelf*) ;;
671aa708
NN
1205 *)
1206 noconfigdirs="$noconfigdirs ${libgcj}"
1207 ;;
1208 esac
1209 ;;
1210 *-*-netware)
cb543528 1211 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
671aa708
NN
1212 ;;
1213 *-*-rtems*)
1214 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 1215 ;;
5785c0ed
BI
1216 *-*-uclinux*)
1217 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1218 ;;
671aa708 1219 *-*-vxworks*)
4dd01c5c 1220 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
671aa708
NN
1221 ;;
1222 alpha*-dec-osf*)
1223 # ld works, but does not support shared libraries.
1224 # newlib is not 64 bit ready. I'm not sure about fileutils.
1225 # gas doesn't generate exception information.
1226 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1227 ;;
1228 alpha*-*-*vms*)
1229 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1230 ;;
1231 alpha*-*-linux*)
1232 # newlib is not 64 bit ready
1233 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1234 ;;
671aa708
NN
1235 alpha*-*-*)
1236 # newlib is not 64 bit ready
1237 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1238 ;;
33952f6f
AO
1239 am33_2.0-*-linux*)
1240 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1241 ;;
671aa708
NN
1242 sh-*-linux*)
1243 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1244 ;;
1245 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1246 noconfigdirs="$noconfigdirs ${libgcj}"
1247 noconfigdirs="$noconfigdirs target-examples"
1248 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1249 noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim"
1250 noconfigdirs="$noconfigdirs expect dejagnu"
1251 # the C++ libraries don't build on top of CE's C libraries
cb543528 1252 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
1253 noconfigdirs="$noconfigdirs target-newlib"
1254 case "${host}" in
1255 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 1256 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
1257 ;;
1258 esac
1259 ;;
1260 arc-*-*)
1261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1262 ;;
1263 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1264 noconfigdirs="$noconfigdirs ${libgcj}"
1265 ;;
1266 arm-*-elf* | strongarm-*-elf* | xscale-*-elf*)
1267 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1268 ;;
1269 arm-*-pe*)
1270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1271 ;;
1272 arm-*-oabi*)
1273 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1274 ;;
1275 thumb-*-coff)
1276 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1277 ;;
1278 thumb-*-elf)
1279 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1280 ;;
1281 thumb-*-oabi)
1282 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1283 ;;
1284 thumb-*-pe)
1285 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1286 ;;
1287 arm-*-riscix*)
1288 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1289 ;;
1290 avr-*-*)
cb543528 1291 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
1292 ;;
1293 c4x-*-* | tic4x-*-*)
cb543528 1294 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
1295 ;;
1296 c54x*-*-* | tic54x-*-*)
cb543528 1297 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708
NN
1298 ;;
1299 cris-*-*)
fb87ad5d 1300 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
671aa708 1301 ;;
25b656e7
PB
1302 crx-*-*)
1303 noconfigdirs="$noconfigdirs target-libgloss target-libstdc++-v3 target-mudflap ${libgcj}"
1304 ;;
671aa708 1305 d10v-*-*)
cb543528 1306 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
1307 ;;
1308 d30v-*-*)
fb87ad5d 1309 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
1310 ;;
1311 fr30-*-elf*)
fb87ad5d 1312 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
1313 ;;
1314 frv-*-*)
1315 noconfigdirs="$noconfigdirs ${libgcj}"
1316 ;;
1317 h8300*-*-*)
b4117c30 1318 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
1319 ;;
1320 h8500-*-*)
b4117c30 1321 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
1322 ;;
1323 hppa*64*-*-linux* | parisc*64*-*-linux*)
1324 # In this case, it's because the hppa64-linux target is for
1325 # the kernel only at this point and has no libc, and thus no
1326 # headers, crt*.o, etc., all of which are needed by these.
1327 noconfigdirs="$noconfigdirs target-zlib"
1328 ;;
1329 hppa*-*-*elf* | \
1330 parisc*-*-linux* | hppa*-*-linux* | \
1331 hppa*-*-lites* | \
1332 hppa*-*-openbsd* | \
1333 hppa*64*-*-*)
1334 noconfigdirs="$noconfigdirs ${libgcj}"
1335 # Do configure ld/binutils/gas for this case.
1336 ;;
1337 hppa*-*-*)
1338 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1339 # build on HP-UX 10.20.
1340 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1341 ;;
fb87ad5d
HPN
1342 i960-*-*)
1343 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1344 ;;
671aa708
NN
1345 ia64*-*-elf*)
1346 # No gdb support yet.
1347 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1348 ;;
1349 ia64*-**-hpux*)
1350 # No gdb or ld support yet.
07d0a605 1351 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
671aa708 1352 ;;
f2a0e225 1353 i[3456789]86-*-coff | i[3456789]86-*-elf)
671aa708
NN
1354 noconfigdirs="$noconfigdirs ${libgcj}"
1355 ;;
f2a0e225 1356 i[3456789]86-*-linux*)
671aa708
NN
1357 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1358 # not build java stuff by default.
1359 case "${target}" in
1360 *-*-*libc1*)
1361 noconfigdirs="$noconfigdirs ${libgcj}";;
1362 esac
1363
1364 # This section makes it possible to build newlib natively on linux.
1365 # If we are using a cross compiler then don't configure newlib.
1366 if test x${is_cross_compiler} != xno ; then
3aa83176 1367 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
1368 fi
1369 noconfigdirs="$noconfigdirs target-libgloss"
1370 # If we are not using a cross compiler, do configure newlib.
1371 # Note however, that newlib will only be configured in this situation
1372 # if the --with-newlib option has been given, because otherwise
1373 # 'target-newlib' will appear in skipdirs.
1374 ;;
f2a0e225 1375 i[3456789]86-*-mingw32*)
671aa708
NN
1376 target_configdirs="$target_configdirs target-mingw"
1377 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1378
1379 # Can't build gdb for mingw32 if not native.
1380 case "${host}" in
f2a0e225 1381 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
61b56b2e 1382 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix gnuserv"
671aa708
NN
1383 ;;
1384 esac
1385 ;;
1386 *-*-cygwin*)
1387 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1388 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 1389 # always build newlib if winsup directory is present.
6264b0a6 1390 if test -d "$srcdir/winsup"
801e2270
CV
1391 then
1392 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1393 else
1394 echo "Warning: winsup is missing so newlib can't be built."
1395 fi
671aa708
NN
1396
1397 # Can't build gdb for Cygwin if not native.
1398 case "${host}" in
1399 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
61b56b2e 1400 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv"
671aa708
NN
1401 ;;
1402 esac
1403 ;;
f2a0e225 1404 i[3456789]86-*-pe)
cb543528 1405 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 1406 ;;
f2a0e225 1407 i[3456789]86-*-sco3.2v5*)
671aa708
NN
1408 # The linker does not yet know about weak symbols in COFF,
1409 # and is not configured to handle mixed ELF and COFF.
1410 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1411 ;;
f2a0e225 1412 i[3456789]86-*-sco*)
671aa708
NN
1413 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1414 ;;
f2a0e225 1415 i[3456789]86-*-solaris2*)
671aa708
NN
1416 noconfigdirs="$noconfigdirs target-libgloss"
1417 ;;
f2a0e225 1418 i[3456789]86-*-sysv4*)
671aa708
NN
1419 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1420 ;;
f2a0e225 1421 i[3456789]86-*-beos*)
3aa83176
NN
1422 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1423 ;;
fb87ad5d 1424 m32r-*-*)
c197e306 1425 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 1426 ;;
671aa708 1427 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb543528 1428 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
1429 ;;
1430 m68k-*-elf*)
1431 noconfigdirs="$noconfigdirs ${libgcj}"
1432 ;;
1433 m68k-*-coff*)
1434 noconfigdirs="$noconfigdirs ${libgcj}"
1435 ;;
1436 mcore-*-pe*)
1437 # The EPOC C++ environment does not support exceptions or rtti,
1438 # and so building libstdc++-v3 tends not to always work.
1439 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1440 ;;
1441 mmix-*-*)
1442 noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss"
1443 ;;
1444 mn10200-*-*)
1445 noconfigdirs="$noconfigdirs ${libgcj}"
1446 ;;
1447 mn10300-*-*)
1448 noconfigdirs="$noconfigdirs ${libgcj}"
1449 ;;
1450 powerpc-*-aix*)
1451 # copied from rs6000-*-* entry
bef1d700 1452 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
1453 ;;
1454 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1455 target_configdirs="$target_configdirs target-winsup"
61b56b2e 1456 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}"
671aa708
NN
1457 # always build newlib.
1458 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1459 ;;
1460 # This is temporary until we can link against shared libraries
1461 powerpcle-*-solaris*)
61b56b2e 1462 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}"
671aa708
NN
1463 ;;
1464 powerpc-*-beos*)
1465 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1466 ;;
671aa708
NN
1467 powerpc-*-eabi)
1468 noconfigdirs="$noconfigdirs ${libgcj}"
1469 ;;
671aa708
NN
1470 rs6000-*-lynxos*)
1471 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1472 ;;
1473 rs6000-*-aix*)
bef1d700 1474 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
1475 ;;
1476 rs6000-*-*)
1477 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1478 ;;
1479 m68k-apollo-*)
1480 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1481 ;;
1482 mips*-*-irix5*)
1f1d584b 1483 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
1484 ;;
1485 mips*-*-irix6*)
671aa708
NN
1486 # Linking libjava exceeds command-line length limits on at least
1487 # IRIX 6.2, but not on IRIX 6.5.
1488 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1489 # <oldham@codesourcery.com>
7c005a3a 1490 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
1491 ;;
1492 mips*-dec-bsd*)
1493 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1494 ;;
1495 mips*-*-bsd*)
1496 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1497 ;;
1498 mipstx39-*-*)
1499 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
3aa83176 1500 ;;
d0fe5ad3
RS
1501 mips64*-*-linux*)
1502 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1503 ;;
671aa708
NN
1504 mips*-*-linux*)
1505 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1506 ;;
1507 mips*-*-*)
1508 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1509 ;;
1510 romp-*-*)
1511 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1512 ;;
1513 sh-*-*)
1514 case "${host}" in
f2a0e225
KC
1515 i[3456789]86-*-vsta) ;; # don't add gprof back in
1516 i[3456789]86-*-go32*) ;; # don't add gprof back in
1517 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
1518 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1519 esac
1520 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1521 ;;
1522 sh64-*-*)
1523 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1524 ;;
1525 sparc-*-elf*)
1526 noconfigdirs="$noconfigdirs ${libgcj}"
1527 ;;
1528 sparc64-*-elf*)
1529 noconfigdirs="$noconfigdirs ${libgcj}"
1530 ;;
1531 sparclite-*-*)
1532 noconfigdirs="$noconfigdirs ${libgcj}"
1533 ;;
1534 sparc-*-sunos4*)
1535 noconfigdirs="$noconfigdirs ${libgcj}"
1536 if test x${is_cross_compiler} != xno ; then
1537 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1538 else
1539 use_gnu_ld=no
1540 fi
1541 ;;
1542 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1543 ;;
1544 v810-*-*)
cb543528 1545 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
1546 ;;
1547 v850-*-*)
1548 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1549 ;;
1550 v850e-*-*)
1551 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1552 ;;
1553 v850ea-*-*)
1554 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1555 ;;
1556 vax-*-vms)
1557 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1558 ;;
1559 vax-*-*)
1560 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1561 ;;
0d4f1b4e
BW
1562 xtensa-*-*)
1563 noconfigdirs="$noconfigdirs ${libgcj}"
1564 ;;
671aa708 1565 ip2k-*-*)
cb543528 1566 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
1567 ;;
1568 *-*-linux*)
1569 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1570 ;;
1571 *-*-lynxos*)
1572 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1573 ;;
1574 *-*-*)
1575 noconfigdirs="$noconfigdirs ${libgcj}"
1576 ;;
1577esac
79c06341 1578
671aa708
NN
1579# If we aren't building newlib, then don't build libgloss, since libgloss
1580# depends upon some newlib header files.
1581case "${noconfigdirs}" in
1582 *target-libgloss*) ;;
1583 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1584esac
1585
671aa708
NN
1586# Work in distributions that contain no compiler tools, like Autoconf.
1587tentative_cc=""
1588host_makefile_frag=/dev/null
1589if test -d ${srcdir}/config ; then
1590case "${host}" in
1591 m68k-hp-hpux*)
1592 # Avoid "too much defining" errors from HPUX compiler.
1593 tentative_cc="cc -Wp,-H256000"
1594 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1595 # If it's HP/UX ar, this should be harmless.
1596 RANLIB="ar ts"
1597 ;;
1598 m68k-apollo-sysv*)
1599 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1600 ;;
1601 m68k-apollo-bsd*)
1602 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1603 # chokes on bfd, the compiler won't let you assign integers to enums, and
1604 # other problems. Defining CC to gcc is a questionable way to say "don't use
1605 # the apollo compiler" (the preferred version of GCC could be called cc,
1606 # or whatever), but I'm not sure leaving CC as cc is any better...
1607 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1608 # Used to have BISON=yacc.
1609 tentative_cc=gcc
1610 ;;
1611 m88k-dg-dgux*)
1612 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
1613 ;;
1614 m88k-harris-cxux*)
1615 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1616 tentative_cc="cc -Xa"
1617 host_makefile_frag="config/mh-cxux"
1618 ;;
1619 m88k-motorola-sysv*)
1620 ;;
1621 mips*-dec-ultrix*)
1622 tentative_cc="cc -Wf,-XNg1000"
1623 host_makefile_frag="config/mh-decstation"
1624 ;;
1625 mips*-nec-sysv4*)
1626 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1627 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1628 host_makefile_frag="config/mh-necv4"
1629 ;;
1630 mips*-sgi-irix4*)
1631 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1632 # environment. Also bump switch table size so that cp-parse will
1633 # compile. Bump string length limit so linker builds.
1634 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1635 ;;
1636 mips*-*-sysv4*)
1637 host_makefile_frag="config/mh-sysv4"
1638 ;;
1639 mips*-*-sysv*)
1640 # This is for a MIPS running RISC/os 4.52C.
1641
1642 # This is needed for GDB, but needs to be in the top-level make because
1643 # if a library is compiled with the bsd headers and gets linked with the
1644 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1645 # a different size).
1646 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1647 # known except to select the sysv environment. Could we use /proc instead?
1648 # These "sysv environments" and "bsd environments" often end up being a pain.
1649 #
1650 # This is not part of CFLAGS because perhaps not all C compilers have this
1651 # option.
1652 tentative_cc="cc -systype sysv"
1653 ;;
1654 i370-ibm-opened*)
1655 tentative_cc="c89"
1656 ;;
f2a0e225 1657 i[3456789]86-*-sysv5*)
671aa708
NN
1658 host_makefile_frag="config/mh-sysv5"
1659 ;;
f2a0e225 1660 i[3456789]86-*-dgux*)
671aa708
NN
1661 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1662 host_makefile_frag="config/mh-dgux386"
1663 ;;
f2a0e225 1664 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
1665 # The MetaWare compiler will generate a copyright message unless you
1666 # turn it off by adding the -Hnocopyr flag.
1667 tentative_cc="cc -Hnocopyr"
1668 ;;
f2a0e225 1669 i[3456789]86-ncr-sysv4*)
671aa708
NN
1670 # for an NCR 3000 (i486/SVR4) system.
1671 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1672 # This compiler not only emits obnoxious copyright messages every time
1673 # you run it, but it chokes and dies on a whole bunch of GNU source
1674 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1675 tentative_cc="/usr/ccs/ATT/cc"
1676 host_makefile_frag="config/mh-ncr3000"
1677 ;;
f2a0e225 1678 i[3456789]86-*-sco3.2v5*)
671aa708 1679 ;;
f2a0e225 1680 i[3456789]86-*-sco*)
671aa708
NN
1681 # The native C compiler botches some simple uses of const. Unfortunately,
1682 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1683 tentative_cc="cc -Dconst="
1684 host_makefile_frag="config/mh-sco"
1685 ;;
f2a0e225 1686 i[3456789]86-*-udk*)
671aa708
NN
1687 host_makefile_frag="config/mh-sysv5"
1688 ;;
f2a0e225 1689 i[3456789]86-*-solaris2*)
671aa708
NN
1690 host_makefile_frag="config/mh-sysv4"
1691 ;;
f2a0e225 1692 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
1693 host_makefile_frag="config/mh-djgpp"
1694 ;;
1695 *-cygwin*)
1696 host_makefile_frag="config/mh-cygwin"
1697 ;;
1698 *-mingw32*)
1699 host_makefile_frag="config/mh-mingw32"
1700 ;;
1701 *-interix*)
1702 host_makefile_frag="config/mh-interix"
1703 ;;
1704 vax-*-ultrix2*)
1705 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1706 tentative_cc=gcc
1707 ;;
1708 *-*-solaris2*)
1709 host_makefile_frag="config/mh-solaris"
1710 ;;
1711 m68k-sun-sunos*)
1712 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1713 # without overflowing the jump tables (-J says to use a 32 bit table)
1714 tentative_cc="cc -J"
1715 ;;
1716 *-hp-hpux*)
1717 tentative_cc="cc -Wp,-H256000"
1718 ;;
1719 *-*-hiux*)
1720 tentative_cc="cc -Wp,-H256000"
1721 ;;
1722 rs6000-*-lynxos*)
1723 # /bin/cc is less than useful for our purposes. Always use GCC
1724 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1725 host_makefile_frag="config/mh-lynxrs6k"
1726 ;;
1727 *-*-lynxos*)
1728 # /bin/cc is less than useful for our purposes. Always use GCC
1729 tentative_cc="/bin/gcc"
1730 ;;
1731 *-*-sysv4*)
1732 host_makefile_frag="config/mh-sysv4"
1733 ;;
1734esac
1735fi
1736
55ffb5ed
NN
1737# If we aren't going to be using gcc, see if we can extract a definition
1738# of CC from the fragment.
1739# Actually, use the 'pre-extracted' version above.
1740if test -z "${CC}" && test "${build}" = "${host}" ; then
1741 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1742 found=
1743 for dir in $PATH; do
1744 test -z "$dir" && dir=.
1745 if test -f $dir/gcc; then
1746 found=yes
1747 break
1748 fi
1749 done
1750 IFS="$save_ifs"
1751 if test -z "${found}" && test -n "${tentative_cc}" ; then
1752 CC=$tentative_cc
1753 fi
1754fi
1755
1756if test "${build}" != "${host}" ; then
1757 # If we are doing a Canadian Cross, in which the host and build systems
1758 # are not the same, we set reasonable default values for the tools.
1759
55ffb5ed
NN
1760 CC=${CC-${host_alias}-gcc}
1761 CFLAGS=${CFLAGS-"-g -O2"}
1762 CXX=${CXX-${host_alias}-c++}
1763 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1764 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1765 CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc}
1766 CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
1767 GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
1768 GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
23f6b2f9 1769 BUILD_DIR_PREFIX=${build_subdir}
55ffb5ed
NN
1770 BUILD_PREFIX=${build_alias}-
1771 BUILD_PREFIX_1=${build_alias}-
55ffb5ed
NN
1772
1773else
1774 # Set reasonable default values for some tools even if not Canadian.
1775 # Of course, these are different reasonable default values, originally
1776 # specified directly in the Makefile.
1777 # We don't export, so that autoconf can do its job.
1778 # Note that all these settings are above the fragment inclusion point
1779 # in Makefile.in, so can still be overridden by fragments.
1780 # This is all going to change when we autoconfiscate...
1781
55ffb5ed
NN
1782 CC_FOR_BUILD="\$(CC)"
1783 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
23f6b2f9 1784 BUILD_DIR_PREFIX=
55ffb5ed
NN
1785 BUILD_PREFIX=
1786 BUILD_PREFIX_1=loser-
55ffb5ed 1787
23f6b2f9 1788 # Extract the first word of "gcc", so it can be a program name with args.
55ffb5ed
NN
1789set dummy gcc; ac_word=$2
1790echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 1791echo "configure:1792: checking for $ac_word" >&5
55ffb5ed
NN
1792if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1794else
1795 if test -n "$CC"; then
1796 ac_cv_prog_CC="$CC" # Let the user override the test.
1797else
1798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1799 ac_dummy="$PATH"
1800 for ac_dir in $ac_dummy; do
1801 test -z "$ac_dir" && ac_dir=.
1802 if test -f $ac_dir/$ac_word; then
1803 ac_cv_prog_CC="gcc"
1804 break
1805 fi
1806 done
1807 IFS="$ac_save_ifs"
1808fi
1809fi
1810CC="$ac_cv_prog_CC"
1811if test -n "$CC"; then
1812 echo "$ac_t""$CC" 1>&6
1813else
1814 echo "$ac_t""no" 1>&6
1815fi
1816
1817if test -z "$CC"; then
1818 # Extract the first word of "cc", so it can be a program name with args.
1819set dummy cc; ac_word=$2
1820echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 1821echo "configure:1822: checking for $ac_word" >&5
55ffb5ed
NN
1822if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1824else
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # Let the user override the test.
1827else
1828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1829 ac_prog_rejected=no
1830 ac_dummy="$PATH"
1831 for ac_dir in $ac_dummy; do
1832 test -z "$ac_dir" && ac_dir=.
1833 if test -f $ac_dir/$ac_word; then
1834 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1835 ac_prog_rejected=yes
1836 continue
1837 fi
1838 ac_cv_prog_CC="cc"
1839 break
1840 fi
1841 done
1842 IFS="$ac_save_ifs"
1843if test $ac_prog_rejected = yes; then
1844 # We found a bogon in the path, so make sure we never use it.
1845 set dummy $ac_cv_prog_CC
1846 shift
1847 if test $# -gt 0; then
1848 # We chose a different compiler from the bogus one.
1849 # However, it has the same basename, so the bogon will be chosen
1850 # first if we set CC to just the basename; use the full file name.
1851 shift
1852 set dummy "$ac_dir/$ac_word" "$@"
1853 shift
1854 ac_cv_prog_CC="$@"
1855 fi
1856fi
1857fi
1858fi
1859CC="$ac_cv_prog_CC"
1860if test -n "$CC"; then
1861 echo "$ac_t""$CC" 1>&6
1862else
1863 echo "$ac_t""no" 1>&6
1864fi
1865
1866 if test -z "$CC"; then
1867 case "`uname -s`" in
1868 *win32* | *WIN32*)
1869 # Extract the first word of "cl", so it can be a program name with args.
1870set dummy cl; ac_word=$2
1871echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 1872echo "configure:1873: checking for $ac_word" >&5
55ffb5ed
NN
1873if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1875else
1876 if test -n "$CC"; then
1877 ac_cv_prog_CC="$CC" # Let the user override the test.
1878else
1879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1880 ac_dummy="$PATH"
1881 for ac_dir in $ac_dummy; do
1882 test -z "$ac_dir" && ac_dir=.
1883 if test -f $ac_dir/$ac_word; then
1884 ac_cv_prog_CC="cl"
1885 break
1886 fi
1887 done
1888 IFS="$ac_save_ifs"
1889fi
1890fi
1891CC="$ac_cv_prog_CC"
1892if test -n "$CC"; then
1893 echo "$ac_t""$CC" 1>&6
1894else
1895 echo "$ac_t""no" 1>&6
1896fi
1897 ;;
1898 esac
1899 fi
1900 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1901fi
1902
1903echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
bebf829d 1904echo "configure:1905: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
55ffb5ed
NN
1905
1906ac_ext=c
1907# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1908ac_cpp='$CPP $CPPFLAGS'
1909ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1910ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1911cross_compiling=$ac_cv_prog_cc_cross
1912
1913cat > conftest.$ac_ext << EOF
1914
bebf829d 1915#line 1916 "configure"
55ffb5ed
NN
1916#include "confdefs.h"
1917
1918main(){return(0);}
1919EOF
bebf829d 1920if { (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
55ffb5ed
NN
1921 ac_cv_prog_cc_works=yes
1922 # If we can't run a trivial program, we are probably using a cross compiler.
1923 if (./conftest; exit) 2>/dev/null; then
1924 ac_cv_prog_cc_cross=no
1925 else
1926 ac_cv_prog_cc_cross=yes
1927 fi
1928else
1929 echo "configure: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1931 ac_cv_prog_cc_works=no
1932fi
1933rm -fr conftest*
1934ac_ext=c
1935# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1936ac_cpp='$CPP $CPPFLAGS'
1937ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1938ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1939cross_compiling=$ac_cv_prog_cc_cross
1940
1941echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1942if test $ac_cv_prog_cc_works = no; then
1943 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1944fi
1945echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
bebf829d 1946echo "configure:1947: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
55ffb5ed
NN
1947echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1948cross_compiling=$ac_cv_prog_cc_cross
1949
1950echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
bebf829d 1951echo "configure:1952: checking whether we are using GNU C" >&5
55ffb5ed
NN
1952if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1954else
1955 cat > conftest.c <<EOF
1956#ifdef __GNUC__
1957 yes;
1958#endif
1959EOF
bebf829d 1960if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
55ffb5ed
NN
1961 ac_cv_prog_gcc=yes
1962else
1963 ac_cv_prog_gcc=no
1964fi
1965fi
1966
1967echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1968
1969if test $ac_cv_prog_gcc = yes; then
1970 GCC=yes
1971else
1972 GCC=
1973fi
1974
1975ac_test_CFLAGS="${CFLAGS+set}"
1976ac_save_CFLAGS="$CFLAGS"
1977CFLAGS=
1978echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
bebf829d 1979echo "configure:1980: checking whether ${CC-cc} accepts -g" >&5
55ffb5ed
NN
1980if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1982else
1983 echo 'void f(){}' > conftest.c
1984if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1985 ac_cv_prog_cc_g=yes
1986else
1987 ac_cv_prog_cc_g=no
1988fi
1989rm -f conftest*
1990
1991fi
1992
1993echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1994if test "$ac_test_CFLAGS" = set; then
1995 CFLAGS="$ac_save_CFLAGS"
1996elif test $ac_cv_prog_cc_g = yes; then
1997 if test "$GCC" = yes; then
1998 CFLAGS="-g -O2"
1999 else
2000 CFLAGS="-g"
2001 fi
2002else
2003 if test "$GCC" = yes; then
2004 CFLAGS="-O2"
2005 else
2006 CFLAGS=
2007 fi
2008fi
2009
2010
23f6b2f9
PB
2011 # We must set the default linker to the linker used by gcc for the correct
2012 # operation of libtool. If LD is not defined and we are using gcc, try to
2013 # set the LD default to the ld used by gcc.
2014 if test -z "$LD"; then
2015 if test "$GCC" = yes; then
2016 case $build in
2017 *-*-mingw*)
2018 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2019 *)
2020 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2021 esac
2022 case $gcc_prog_ld in
2023 # Accept absolute paths.
2024 [\\/]* | [A-Za-z]:[\\/]*)
2025 LD="$gcc_prog_ld" ;;
2026 esac
2027 fi
2028 fi
2029
2030 CXX=${CXX-"c++"}
2031 CFLAGS=${CFLAGS-"-g"}
2032 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2033fi
2034
2035if test $host != $build; then
2036 ac_tool_prefix=${host_alias}-
2037else
2038 ac_tool_prefix=
2039fi
2040
2041
55ffb5ed
NN
2042
2043# Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2044set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2045echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 2046echo "configure:2047: checking for $ac_word" >&5
55ffb5ed
NN
2047if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2048 echo $ac_n "(cached) $ac_c" 1>&6
2049else
2050 if test -n "$GNATBIND"; then
2051 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2052else
2053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2054 ac_dummy="$PATH"
2055 for ac_dir in $ac_dummy; do
2056 test -z "$ac_dir" && ac_dir=.
2057 if test -f $ac_dir/$ac_word; then
2058 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2059 break
2060 fi
2061 done
2062 IFS="$ac_save_ifs"
2063fi
2064fi
2065GNATBIND="$ac_cv_prog_GNATBIND"
2066if test -n "$GNATBIND"; then
2067 echo "$ac_t""$GNATBIND" 1>&6
2068else
2069 echo "$ac_t""no" 1>&6
2070fi
2071
2072
2073if test -z "$ac_cv_prog_GNATBIND"; then
2074if test -n "$ac_tool_prefix"; then
2075 # Extract the first word of "gnatbind", so it can be a program name with args.
2076set dummy gnatbind; ac_word=$2
2077echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 2078echo "configure:2079: checking for $ac_word" >&5
55ffb5ed
NN
2079if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2080 echo $ac_n "(cached) $ac_c" 1>&6
2081else
2082 if test -n "$GNATBIND"; then
2083 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2084else
2085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2086 ac_dummy="$PATH"
2087 for ac_dir in $ac_dummy; do
2088 test -z "$ac_dir" && ac_dir=.
2089 if test -f $ac_dir/$ac_word; then
2090 ac_cv_prog_GNATBIND="gnatbind"
2091 break
2092 fi
2093 done
2094 IFS="$ac_save_ifs"
2095 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2096fi
2097fi
2098GNATBIND="$ac_cv_prog_GNATBIND"
2099if test -n "$GNATBIND"; then
2100 echo "$ac_t""$GNATBIND" 1>&6
2101else
2102 echo "$ac_t""no" 1>&6
2103fi
2104
2105else
2106 GNATBIND="no"
2107fi
2108fi
2109
2110echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
bebf829d 2111echo "configure:2112: checking whether compiler driver understands Ada" >&5
55ffb5ed
NN
2112if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2114else
2115 cat >conftest.adb <<EOF
2116procedure conftest is begin null; end conftest;
2117EOF
2118acx_cv_cc_gcc_supports_ada=no
2119# There is a bug in old released versions of GCC which causes the
2120# driver to exit successfully when the appropriate language module
2121# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2122# Therefore we must check for the error message as well as an
2123# unsuccessful exit.
1db673ca
RO
2124# Other compilers, like HP Tru64 UNIX cc, exit successfully when
2125# given a .adb file, but produce no object file. So we must check
2126# if an object file was really produced to guard against this.
55ffb5ed 2127errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 2128if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed
NN
2129 acx_cv_cc_gcc_supports_ada=yes
2130 break
2131fi
2132rm -f conftest.*
2133fi
2134
2135echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2136
1db673ca 2137if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
2138 have_gnat=yes
2139else
2140 have_gnat=no
2141fi
2142
a76494aa 2143echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
bebf829d 2144echo "configure:2145: checking how to compare bootstrapped objects" >&5
a76494aa
PB
2145if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2147else
2148 echo abfoo >t1
2149 echo cdfoo >t2
2150 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
2151 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2152 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2153 :
2154 else
2155 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2156 fi
2157 fi
a76494aa
PB
2158 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2159 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 2160 :
a76494aa
PB
2161 else
2162 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2163 fi
2164 fi
2165 rm t1 t2
2166
2167fi
2168
2169echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2170do_compare="$gcc_cv_prog_cmp_skip"
2171
2172
55ffb5ed 2173
bebf829d 2174# Check for GMP and MPFR
6de9cd9a
DN
2175gmplibs=
2176gmpinc=
2177have_gmp=yes
bebf829d
PB
2178# Specify a location for mpfr
2179# check for this first so it ends up on the link line before gmp.
2180# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2181if test "${with_mpfr_dir+set}" = set; then
2182 withval="$with_mpfr_dir"
2183 :
2184fi
2185
2186
2187if test "x$with_mpfr_dir" != x; then
2188 gmpinc="-I$with_mpfr_dir/mpfr"
2189 gmplibs="$with_mpfr_dir/libmpfr.a"
2190else
2191 gmplibs="-lmpfr"
2192fi
2193
2194# Check whether --with-mpfr or --without-mpfr was given.
2195if test "${with_mpfr+set}" = set; then
2196 withval="$with_mpfr"
2197 :
2198fi
2199
2200
2201if test "x$with_mpfr" != x; then
2202 gmplibs="-L$with_mpfr/lib $gmplibs"
2203 gmpinc="-I$with_mpfr/include"
2204fi
2205
6de9cd9a
DN
2206# Specify a location for gmp
2207# Check whether --with-gmp-dir or --without-gmp-dir was given.
2208if test "${with_gmp_dir+set}" = set; then
2209 withval="$with_gmp_dir"
2210 :
2211fi
2212
2213
bebf829d
PB
2214if test "x$with_gmp_dir" != x; then
2215 gmpinc="$gmpinc -I$with_gmp_dir"
6de9cd9a 2216 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
bebf829d 2217 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
6de9cd9a 2218 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
bebf829d 2219 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
6de9cd9a
DN
2220 fi
2221 # One of the later tests will catch the error if neither library is present.
bebf829d
PB
2222else
2223 gmplibs="$gmplibs -lgmp"
6de9cd9a
DN
2224fi
2225
2226# Check whether --with-gmp or --without-gmp was given.
2227if test "${with_gmp+set}" = set; then
2228 withval="$with_gmp"
2229 :
2230fi
2231
2232
bebf829d
PB
2233if test "x$with_gmp" != x; then
2234 gmplibs="-L$with_gmp/lib $gmplibs"
2235 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a
DN
2236fi
2237
2238saved_CFLAGS="$CFLAGS"
2239CFLAGS="$CFLAGS $gmpinc"
2240# Check GMP actually works
2241echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
bebf829d 2242echo "configure:2243: checking for correct version of gmp.h" >&5
6de9cd9a 2243cat > conftest.$ac_ext <<EOF
bebf829d 2244#line 2245 "configure"
6de9cd9a
DN
2245#include "confdefs.h"
2246#include "gmp.h"
2247int main() {
2248
2249#if __GNU_MP_VERSION < 3
2250choke me
2251#endif
2252
2253; return 0; }
2254EOF
bebf829d 2255if { (eval echo configure:2256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6de9cd9a
DN
2256 rm -rf conftest*
2257 echo "$ac_t""yes" 1>&6
2258else
2259 echo "configure: failed program was:" >&5
2260 cat conftest.$ac_ext >&5
2261 rm -rf conftest*
2262 echo "$ac_t""no" 1>&6; have_gmp=no
2263fi
2264rm -f conftest*
2265
2266if test x"$have_gmp" = xyes; then
bebf829d
PB
2267 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2268echo "configure:2269: checking for MPFR" >&5
6de9cd9a
DN
2269
2270 saved_LIBS="$LIBS"
2271 LIBS="$LIBS $gmplibs"
2272 cat > conftest.$ac_ext <<EOF
bebf829d 2273#line 2274 "configure"
6de9cd9a
DN
2274#include "confdefs.h"
2275#include <gmp.h>
bebf829d 2276#include <mpfr.h>
6de9cd9a 2277int main() {
bebf829d 2278mpfr_t n; mpfr_init(n);
6de9cd9a
DN
2279; return 0; }
2280EOF
bebf829d 2281if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6de9cd9a
DN
2282 rm -rf conftest*
2283 echo "$ac_t""yes" 1>&6
2284else
2285 echo "configure: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
2287 rm -rf conftest*
2288 echo "$ac_t""no" 1>&6; have_gmp=no
2289fi
2290rm -f conftest*
2291 LIBS="$saved_LIBS"
2292 CFLAGS="$saved_CFLAGS"
2293fi
2294
bebf829d 2295# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
2296
2297
2298
1e0f07d3 2299# By default, C is the only stage 1 language.
2805b53a
NN
2300stage1_languages=c
2301
2302
55ffb5ed
NN
2303# Figure out what language subdirectories are present.
2304# Look if the user specified --enable-languages="..."; if not, use
2305# the environment variable $LANGUAGES if defined. $LANGUAGES might
2306# go away some day.
2307# NB: embedded tabs in this IF block -- do not untabify
2308if test -d ${srcdir}/gcc; then
2309 if test x"${enable_languages+set}" != xset; then
2310 if test x"${LANGUAGES+set}" = xset; then
2311 enable_languages="${LANGUAGES}"
2312 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2313 else
2314 enable_languages=all
2315 fi
2316 else
2317 if test x"${enable_languages}" = x ||
2318 test x"${enable_languages}" = xyes;
2319 then
2320 echo configure.in: --enable-languages needs at least one language argument 1>&2
2321 exit 1
2322 fi
2323 fi
2324 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2325
2326 # First scan to see if an enabled language requires some other language.
2327 # We assume that a given config-lang.in will list all the language
2328 # front ends it requires, even if some are required indirectly.
2329 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2330 case ${lang_frag} in
2331 ..) ;;
2332 # The odd quoting in the next line works around
2333 # an apparent bug in bash 1.12 on linux.
2334 ${srcdir}/gcc/[*]/config-lang.in) ;;
2335 *)
2336 # From the config-lang.in, get $language, $lang_requires
2337 language=
2338 lang_requires=
2339 . ${lang_frag}
2340 for other in ${lang_requires} ; do
2341 case ,${enable_languages}, in
2342 *,$other,*) ;;
2343 *,all,*) ;;
2344 *,$language,*)
2345 echo " \`$other' language required by \`$language'; enabling" 1>&2
2346 enable_languages="${enable_languages},${other}"
2347 ;;
2348 esac
2349 done
2350 ;;
2351 esac
2352 done
2353
2354 new_enable_languages=c
2355 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2356
2357 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2358 case ${lang_frag} in
2359 ..) ;;
2360 # The odd quoting in the next line works around
2361 # an apparent bug in bash 1.12 on linux.
2362 ${srcdir}/gcc/[*]/config-lang.in) ;;
2363 *)
2364 # From the config-lang.in, get $language, $target_libs,
2805b53a 2365 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
2366 language=
2367 target_libs=
2368 lang_dirs=
2805b53a 2369 boot_language=
55ffb5ed 2370 build_by_default=
6de9cd9a 2371 need_gmp=
55ffb5ed
NN
2372 . ${lang_frag}
2373 # This is quite sensitive to the ordering of the case statement arms.
2374 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2375 *::*:*)
2376 echo "${lang_frag} doesn't set \$language." 1>&2
2377 exit 1
2378 ;;
2379 *:ada:no:*)
2380 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2381 add_this_lang=no
2382 ;;
2383 *,${language},*:*:*:*)
2384 # Language was explicitly selected; include it.
2385 add_this_lang=yes
2386 ;;
2387 *,all,*:*:*:no)
2388 # 'all' was selected, but this is not a default language
2389 # so do not include it.
2390 add_this_lang=no
2391 ;;
2392 *,all,*:*:*:*)
2393 # 'all' was selected and this is a default language; include it.
2394 add_this_lang=yes
2395 ;;
2396 *)
2397 add_this_lang=no
2398 ;;
2399 esac
6de9cd9a
DN
2400
2401 # Disable language that need GMP if it isn't available.
2402 if test x"$need_gmp" = xyes && test x"$have_gmp" = xno; then
2403 add_this_lang=no
2404 fi
2405
2406 case $add_this_lang in
55ffb5ed
NN
2407 no)
2408 # Remove language-dependent dirs.
2805b53a
NN
2409 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2410 ;;
55ffb5ed
NN
2411 *)
2412 new_enable_languages="$new_enable_languages,$language"
2805b53a
NN
2413 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2414 case ${boot_language} in
2415 yes)
340de83f
NN
2416 # Add to (comma-separated) list of stage 1 languages.
2417 stage1_languages="${stage1_languages},${language}"
2805b53a
NN
2418 ;;
2419 esac
2420 ;;
55ffb5ed
NN
2421 esac
2422 ;;
2423 esac
2424 done
2425
79b4b7d2 2426 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
55ffb5ed
NN
2427 if test "x$missing_languages" != x; then
2428 { echo "configure: error:
2429The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; }
2430 fi
2431
2432 if test "x$new_enable_languages" != "x$enable_languages"; then
2433 echo The following languages will be built: ${new_enable_languages}
2434 fi
2435 enable_languages="$new_enable_languages"
6bbec498 2436 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
55ffb5ed
NN
2437fi
2438
2439# Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
2440# $target_configdirs.
2441# If we have the source for $noconfigdirs entries, add them to $notsupp.
2442
2443notsupp=""
2444for dir in . $skipdirs $noconfigdirs ; do
2445 dirname=`echo $dir | sed -e s/target-//g`
2446 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2447 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2448 if test -r $srcdir/$dirname/configure ; then
2449 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2450 true
2451 else
2452 notsupp="$notsupp $dir"
2453 fi
2454 fi
2455 fi
2456 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2457 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2458 if test -r $srcdir/$dirname/configure ; then
2459 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2460 true
2461 else
2462 notsupp="$notsupp $dir"
2463 fi
2464 fi
2465 fi
2466done
2467
2468# Sometimes the tools are distributed with libiberty but with no other
2469# libraries. In that case, we don't want to build target-libiberty.
2470if test -n "${target_configdirs}" ; then
2471 others=
2472 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2473 if test "$i" != "libiberty" ; then
2474 if test -r $srcdir/$i/configure ; then
2475 others=yes;
2476 break;
2477 fi
2478 fi
2479 done
2480 if test -z "${others}" ; then
2481 target_configdirs=
2482 fi
2483fi
2484
2485# Quietly strip out all directories which aren't configurable in this tree.
2486# This relies on all configurable subdirectories being autoconfiscated, which
2487# is now the case.
23f6b2f9
PB
2488build_configdirs_all="$build_configdirs"
2489build_configdirs=
2490for i in ${build_configdirs_all} ; do
2491 j=`echo $i | sed -e s/build-//g`
2492 if test -f ${srcdir}/$j/configure ; then
2493 build_configdirs="${build_configdirs} $i"
2494 fi
2495done
2496
55ffb5ed
NN
2497configdirs_all="$configdirs"
2498configdirs=
2499for i in ${configdirs_all} ; do
2500 if test -f ${srcdir}/$i/configure ; then
2501 configdirs="${configdirs} $i"
2502 fi
2503done
23f6b2f9 2504
55ffb5ed
NN
2505target_configdirs_all="$target_configdirs"
2506target_configdirs=
2507for i in ${target_configdirs_all} ; do
2508 j=`echo $i | sed -e s/target-//g`
2509 if test -f ${srcdir}/$j/configure ; then
2510 target_configdirs="${target_configdirs} $i"
2511 fi
2512done
2513
2514# Produce a warning message for the subdirs we can't configure.
2515# This isn't especially interesting in the Cygnus tree, but in the individual
2516# FSF releases, it's important to let people know when their machine isn't
2517# supported by the one or two programs in a package.
2518
2519if test -n "${notsupp}" && test -z "${norecursion}" ; then
2520 # If $appdirs is non-empty, at least one of those directories must still
2521 # be configured, or we error out. (E.g., if the gas release supports a
2522 # specified target in some subdirs but not the gas subdir, we shouldn't
2523 # pretend that all is well.)
2524 if test -n "$appdirs" ; then
2525 for dir in $appdirs ; do
2526 if test -r $dir/Makefile.in ; then
2527 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2528 appdirs=""
2529 break
2530 fi
23f6b2f9 2531 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
2532 appdirs=""
2533 break
2534 fi
2535 fi
2536 done
2537 if test -n "$appdirs" ; then
2538 echo "*** This configuration is not supported by this package." 1>&2
2539 exit 1
2540 fi
2541 fi
2542 # Okay, some application will build, or we don't care to check. Still
2543 # notify of subdirs not getting built.
2544 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2545 echo " ${notsupp}" 1>&2
2546 echo " (Any other directories should still work fine.)" 1>&2
2547fi
2548
2549case "$host" in
2550 *msdosdjgpp*)
2551 enable_gdbtk=no ;;
2552esac
2553
2554copy_dirs=
2555
2556# Handle --with-headers=XXX. If the value is not "yes", the contents of
2557# the named directory are copied to $(tooldir)/sys-include.
2558if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2559 if test x${is_cross_compiler} = xno ; then
2560 echo 1>&2 '***' --with-headers is only supported when cross compiling
2561 exit 1
2562 fi
2563 if test x"${with_headers}" != xyes ; then
2564 case "${exec_prefixoption}" in
2565 "") x=${prefix} ;;
2566 *) x=${exec_prefix} ;;
2567 esac
2568 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2569 fi
2570fi
2571
2572# Handle --with-libs=XXX. If the value is not "yes", the contents of
2573# the name directories are copied to $(tooldir)/lib. Multiple directories
2574# are permitted.
2575if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2576 if test x${is_cross_compiler} = xno ; then
2577 echo 1>&2 '***' --with-libs is only supported when cross compiling
2578 exit 1
2579 fi
2580 if test x"${with_libs}" != xyes ; then
2581 # Copy the libraries in reverse order, so that files in the first named
2582 # library override files in subsequent libraries.
2583 case "${exec_prefixoption}" in
2584 "") x=${prefix} ;;
2585 *) x=${exec_prefix} ;;
2586 esac
2587 for l in ${with_libs}; do
2588 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2589 done
2590 fi
2591fi
2592
2593# Handle ${copy_dirs}
2594set fnord ${copy_dirs}
2595shift
2596while test $# != 0 ; do
2597 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2598 :
2599 else
2600 echo Copying $1 to $2
2601
2602 # Use the install script to create the directory and all required
2603 # parent directories.
2604 if test -d $2 ; then
2605 :
2606 else
2607 echo >config.temp
2608 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2609 fi
2610
2611 # Copy the directory, assuming we have tar.
2612 # FIXME: Should we use B in the second tar? Not all systems support it.
2613 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2614
2615 # It is the responsibility of the user to correctly adjust all
2616 # symlinks. If somebody can figure out how to handle them correctly
2617 # here, feel free to add the code.
2618
2619 echo $1 > $2/COPIED
2620 fi
2621 shift; shift
2622done
2623
671aa708
NN
2624extra_arflags_for_target=
2625extra_nmflags_for_target=
2626extra_ranlibflags_for_target=
2627target_makefile_frag=/dev/null
2628case "${target}" in
f2a0e225 2629 i[3456789]86-*-netware*)
671aa708
NN
2630 target_makefile_frag="config/mt-netware"
2631 ;;
2632 powerpc-*-netware*)
2633 target_makefile_frag="config/mt-netware"
2634 ;;
98a5bb3b
RM
2635 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2636 target_makefile_frag="config/mt-gnu"
671aa708
NN
2637 ;;
2638 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2639 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2640 # commands to handle both 32-bit and 64-bit objects. These flags are
2641 # harmless if we're using GNU nm or ar.
2642 extra_arflags_for_target=" -X32_64"
2643 extra_nmflags_for_target=" -B -X32_64"
2644 ;;
2645 *-*-darwin*)
2646 # ranlib from Darwin requires the -c flag to look at common symbols.
2647 extra_ranlibflags_for_target=" -c"
2648 ;;
2649 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2650 target_makefile_frag="config/mt-wince"
2651 ;;
2652esac
2653
2654alphaieee_frag=/dev/null
2655case $target in
2656 alpha*-*-*)
2657 # This just makes sure to use the -mieee option to build target libs.
2658 # This should probably be set individually by each library.
2659 alphaieee_frag="config/mt-alphaieee"
2660 ;;
2661esac
2662
2663# If --enable-target-optspace always use -Os instead of -O2 to build
2664# the target libraries, similarly if it is not specified, use -Os
2665# on selected platforms.
2666ospace_frag=/dev/null
2667case "${enable_target_optspace}:${target}" in
2668 yes:*)
2669 ospace_frag="config/mt-ospace"
2670 ;;
2671 :d30v-*)
2672 ospace_frag="config/mt-d30v"
2673 ;;
2674 :m32r-* | :d10v-* | :fr30-*)
2675 ospace_frag="config/mt-ospace"
2676 ;;
2677 no:* | :*)
2678 ;;
2679 *)
2680 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2681 ;;
2682esac
2683
2684# Set with_gnu_as and with_gnu_ld as appropriate.
2685#
2686# This is done by determining whether or not the appropriate directory
2687# is available, and by checking whether or not specific configurations
2688# have requested that this magic not happen.
2689#
2690# The command line options always override the explicit settings in
2691# configure.in, and the settings in configure.in override this magic.
2692#
2693# If the default for a toolchain is to use GNU as and ld, and you don't
2694# want to do that, then you should use the --without-gnu-as and
2695# --without-gnu-ld options for the configure script.
2696
2697if test x${use_gnu_as} = x &&
2698 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2699 with_gnu_as=yes
2700 extra_host_args="$extra_host_args --with-gnu-as"
2701fi
2702
2703if test x${use_gnu_ld} = x &&
2704 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2705 with_gnu_ld=yes
2706 extra_host_args="$extra_host_args --with-gnu-ld"
2707fi
2708
2709# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2710# can detect this case.
2711
2712if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2713 with_newlib=yes
2714 extra_host_args="$extra_host_args --with-newlib"
2715fi
2716
6de9cd9a
DN
2717if test x${with_libbanshee} = xyes && echo " ${configdirs} " | grep " libbanshee " >/dev/null 2>&1; then
2718 extra_host_args="$extra_host_args --with-libbanshee"
2719fi
671aa708
NN
2720
2721# Default to using --with-stabs for certain targets.
2722if test x${with_stabs} = x ; then
2723 case "${target}" in
89a95129 2724 mips*-*-irix[56]*)
671aa708
NN
2725 ;;
2726 mips*-*-* | alpha*-*-osf*)
2727 with_stabs=yes;
2728 extra_host_args="${extra_host_args} --with-stabs"
2729 ;;
2730 esac
2731fi
2732
2733# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2734# them automatically.
2735case "${host}" in
2736 hppa*64*-*-hpux11*)
2737 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2738 ;;
2739esac
2740
671aa708
NN
2741# Some systems (e.g., one of the i386-aix systems the gas testers are
2742# using) don't handle "\$" correctly, so don't use it here.
df445104 2743tooldir='${exec_prefix}'/${target_alias}
671aa708
NN
2744build_tooldir=${tooldir}
2745
23f6b2f9
PB
2746# Generate default definitions for YACC, M4, LEX and other programs that run
2747# on the build machine. These are used if the Makefile can't locate these
2748# programs in objdir.
1e0f07d3 2749MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
23f6b2f9
PB
2750for ac_prog in bison
2751do
2752# Extract the first word of "$ac_prog", so it can be a program name with args.
2753set dummy $ac_prog; ac_word=$2
2754echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 2755echo "configure:2756: checking for $ac_word" >&5
23f6b2f9
PB
2756if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2758else
2759 if test -n "$CONFIGURED_BISON"; then
2760 ac_cv_prog_CONFIGURED_BISON="$CONFIGURED_BISON" # Let the user override the test.
2761else
2762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2763 ac_dummy="$PATH"
2764 for ac_dir in $ac_dummy; do
2765 test -z "$ac_dir" && ac_dir=.
2766 if test -f $ac_dir/$ac_word; then
2767 ac_cv_prog_CONFIGURED_BISON="$ac_prog"
2768 break
2769 fi
2770 done
2771 IFS="$ac_save_ifs"
2772fi
2773fi
2774CONFIGURED_BISON="$ac_cv_prog_CONFIGURED_BISON"
2775if test -n "$CONFIGURED_BISON"; then
2776 echo "$ac_t""$CONFIGURED_BISON" 1>&6
2777else
2778 echo "$ac_t""no" 1>&6
2779fi
2780
2781test -n "$CONFIGURED_BISON" && break
2782done
2783test -n "$CONFIGURED_BISON" || CONFIGURED_BISON="$MISSING bison"
2784
1e0f07d3 2785for ac_prog in 'bison -y' byacc yacc
671aa708 2786do
1e0f07d3
PB
2787# Extract the first word of "$ac_prog", so it can be a program name with args.
2788set dummy $ac_prog; ac_word=$2
2789echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 2790echo "configure:2791: checking for $ac_word" >&5
23f6b2f9 2791if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
1e0f07d3
PB
2792 echo $ac_n "(cached) $ac_c" 1>&6
2793else
23f6b2f9
PB
2794 if test -n "$CONFIGURED_YACC"; then
2795 ac_cv_prog_CONFIGURED_YACC="$CONFIGURED_YACC" # Let the user override the test.
1e0f07d3
PB
2796else
2797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2798 ac_dummy="$PATH"
2799 for ac_dir in $ac_dummy; do
2800 test -z "$ac_dir" && ac_dir=.
2801 if test -f $ac_dir/$ac_word; then
23f6b2f9 2802 ac_cv_prog_CONFIGURED_YACC="$ac_prog"
671aa708
NN
2803 break
2804 fi
2805 done
1e0f07d3
PB
2806 IFS="$ac_save_ifs"
2807fi
2808fi
23f6b2f9
PB
2809CONFIGURED_YACC="$ac_cv_prog_CONFIGURED_YACC"
2810if test -n "$CONFIGURED_YACC"; then
2811 echo "$ac_t""$CONFIGURED_YACC" 1>&6
1e0f07d3
PB
2812else
2813 echo "$ac_t""no" 1>&6
2814fi
671aa708 2815
23f6b2f9 2816test -n "$CONFIGURED_YACC" && break
671aa708 2817done
23f6b2f9 2818test -n "$CONFIGURED_YACC" || CONFIGURED_YACC="$MISSING bison -y"
671aa708 2819
1e0f07d3 2820for ac_prog in gm4 gnum4 m4
671aa708 2821do
1e0f07d3
PB
2822# Extract the first word of "$ac_prog", so it can be a program name with args.
2823set dummy $ac_prog; ac_word=$2
2824echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 2825echo "configure:2826: checking for $ac_word" >&5
23f6b2f9
PB
2826if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2828else
2829 if test -n "$CONFIGURED_M4"; then
2830 ac_cv_prog_CONFIGURED_M4="$CONFIGURED_M4" # Let the user override the test.
2831else
2832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2833 ac_dummy="$PATH"
2834 for ac_dir in $ac_dummy; do
2835 test -z "$ac_dir" && ac_dir=.
2836 if test -f $ac_dir/$ac_word; then
2837 ac_cv_prog_CONFIGURED_M4="$ac_prog"
2838 break
2839 fi
2840 done
2841 IFS="$ac_save_ifs"
2842fi
2843fi
2844CONFIGURED_M4="$ac_cv_prog_CONFIGURED_M4"
2845if test -n "$CONFIGURED_M4"; then
2846 echo "$ac_t""$CONFIGURED_M4" 1>&6
2847else
2848 echo "$ac_t""no" 1>&6
2849fi
2850
2851test -n "$CONFIGURED_M4" && break
2852done
2853test -n "$CONFIGURED_M4" || CONFIGURED_M4="$MISSING m4"
2854
2855for ac_prog in flex
2856do
2857# Extract the first word of "$ac_prog", so it can be a program name with args.
2858set dummy $ac_prog; ac_word=$2
2859echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 2860echo "configure:2861: checking for $ac_word" >&5
23f6b2f9 2861if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
1e0f07d3
PB
2862 echo $ac_n "(cached) $ac_c" 1>&6
2863else
23f6b2f9
PB
2864 if test -n "$CONFIGURED_FLEX"; then
2865 ac_cv_prog_CONFIGURED_FLEX="$CONFIGURED_FLEX" # Let the user override the test.
1e0f07d3
PB
2866else
2867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2868 ac_dummy="$PATH"
2869 for ac_dir in $ac_dummy; do
2870 test -z "$ac_dir" && ac_dir=.
2871 if test -f $ac_dir/$ac_word; then
23f6b2f9 2872 ac_cv_prog_CONFIGURED_FLEX="$ac_prog"
671aa708
NN
2873 break
2874 fi
2875 done
1e0f07d3
PB
2876 IFS="$ac_save_ifs"
2877fi
2878fi
23f6b2f9
PB
2879CONFIGURED_FLEX="$ac_cv_prog_CONFIGURED_FLEX"
2880if test -n "$CONFIGURED_FLEX"; then
2881 echo "$ac_t""$CONFIGURED_FLEX" 1>&6
1e0f07d3
PB
2882else
2883 echo "$ac_t""no" 1>&6
2884fi
671aa708 2885
23f6b2f9 2886test -n "$CONFIGURED_FLEX" && break
671aa708 2887done
23f6b2f9 2888test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX="$MISSING flex"
671aa708 2889
1e0f07d3 2890for ac_prog in flex lex
671aa708 2891do
1e0f07d3
PB
2892# Extract the first word of "$ac_prog", so it can be a program name with args.
2893set dummy $ac_prog; ac_word=$2
2894echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 2895echo "configure:2896: checking for $ac_word" >&5
23f6b2f9 2896if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
1e0f07d3
PB
2897 echo $ac_n "(cached) $ac_c" 1>&6
2898else
23f6b2f9
PB
2899 if test -n "$CONFIGURED_LEX"; then
2900 ac_cv_prog_CONFIGURED_LEX="$CONFIGURED_LEX" # Let the user override the test.
1e0f07d3
PB
2901else
2902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2903 ac_dummy="$PATH"
2904 for ac_dir in $ac_dummy; do
2905 test -z "$ac_dir" && ac_dir=.
2906 if test -f $ac_dir/$ac_word; then
23f6b2f9 2907 ac_cv_prog_CONFIGURED_LEX="$ac_prog"
671aa708
NN
2908 break
2909 fi
2910 done
1e0f07d3
PB
2911 IFS="$ac_save_ifs"
2912fi
2913fi
23f6b2f9
PB
2914CONFIGURED_LEX="$ac_cv_prog_CONFIGURED_LEX"
2915if test -n "$CONFIGURED_LEX"; then
2916 echo "$ac_t""$CONFIGURED_LEX" 1>&6
1e0f07d3
PB
2917else
2918 echo "$ac_t""no" 1>&6
2919fi
671aa708 2920
23f6b2f9 2921test -n "$CONFIGURED_LEX" && break
671aa708 2922done
23f6b2f9
PB
2923test -n "$CONFIGURED_LEX" || CONFIGURED_LEX="$MISSING flex"
2924
2925for ac_prog in makeinfo
2926do
2927# Extract the first word of "$ac_prog", so it can be a program name with args.
2928set dummy $ac_prog; ac_word=$2
2929echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 2930echo "configure:2931: checking for $ac_word" >&5
23f6b2f9
PB
2931if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2933else
2934 if test -n "$CONFIGURED_MAKEINFO"; then
2935 ac_cv_prog_CONFIGURED_MAKEINFO="$CONFIGURED_MAKEINFO" # Let the user override the test.
2936else
2937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2938 ac_dummy="$PATH"
2939 for ac_dir in $ac_dummy; do
2940 test -z "$ac_dir" && ac_dir=.
2941 if test -f $ac_dir/$ac_word; then
2942 ac_cv_prog_CONFIGURED_MAKEINFO="$ac_prog"
2943 break
2944 fi
2945 done
2946 IFS="$ac_save_ifs"
2947fi
2948fi
2949CONFIGURED_MAKEINFO="$ac_cv_prog_CONFIGURED_MAKEINFO"
2950if test -n "$CONFIGURED_MAKEINFO"; then
2951 echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6
2952else
2953 echo "$ac_t""no" 1>&6
2954fi
2955
2956test -n "$CONFIGURED_MAKEINFO" && break
2957done
2958test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO="$MISSING makeinfo"
1e0f07d3 2959
671aa708 2960
671aa708
NN
2961# Create a .gdbinit file which runs the one in srcdir
2962# and tells GDB to look there for source files.
2963
2964if test -r ${srcdir}/.gdbinit ; then
2965 case ${srcdir} in
2966 .) ;;
2967 *) cat > ./.gdbinit <<EOF
2968# ${NO_EDIT}
2969dir ${srcdir}
2970dir .
2971source ${srcdir}/.gdbinit
2972EOF
2973 ;;
2974 esac
2975fi
2976
671aa708
NN
2977# Make sure that the compiler is able to generate an executable. If it
2978# can't, we are probably in trouble. We don't care whether we can run the
2979# executable--we might be using a cross compiler--we only care whether it
2980# can be created. At this point the main configure script has set CC.
2981we_are_ok=no
2982echo "int main () { return 0; }" > conftest.c
2983${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2984if test $? = 0 ; then
2985 if test -s conftest || test -s conftest.exe ; then
2986 we_are_ok=yes
2987 fi
2988fi
2989case $we_are_ok in
2990 no)
2991 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2992 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2993 rm -f conftest*
2994 exit 1
2995 ;;
2996esac
2997rm -f conftest*
2998
2999# The Solaris /usr/ucb/cc compiler does not appear to work.
3000case "${host}" in
3001 sparc-sun-solaris2*)
3002 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
3003 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3004 could_use=
3005 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
3006 if test -d /opt/cygnus/bin ; then
3007 if test "$could_use" = "" ; then
3008 could_use="/opt/cygnus/bin"
3009 else
3010 could_use="$could_use or /opt/cygnus/bin"
3011 fi
3012 fi
3013 if test "$could_use" = "" ; then
3014 echo "Warning: compilation may fail because you're using"
3015 echo "/usr/ucb/cc. You should change your PATH or CC "
3016 echo "variable and rerun configure."
3017 else
3018 echo "Warning: compilation may fail because you're using"
3019 echo "/usr/ucb/cc, when you should use the C compiler from"
3020 echo "$could_use. You should change your"
3021 echo "PATH or CC variable and rerun configure."
3022 fi
3023 fi
3024 ;;
3025esac
3026
3027# If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
3028# binutils tools will find libbfd.so.
aa9c3ab4
NN
3029case "${enable_shared}" in
3030 no | "") SET_LIB_PATH= ;;
3031 *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;;
3032esac
671aa708
NN
3033
3034case "${host}" in
3035 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3036 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3037esac
3038
3039# Record target_configdirs and the configure arguments for target and
3040# build configuration in Makefile.
3041target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 3042build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 3043
671aa708
NN
3044# Determine whether gdb needs tk/tcl or not.
3045# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3046# and in that case we want gdb to be built without tk. Ugh!
3047# In fact I believe gdb is the *only* package directly dependent on tk,
3048# so we should be able to put the 'maybe's in unconditionally and
3049# leave out the maybe dependencies when enable_gdbtk is false. I'm not
3050# 100% sure that that's safe though.
e914a571
AC
3051
3052gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui"
671aa708
NN
3053case "$enable_gdbtk" in
3054 no)
3055 GDB_TK="" ;;
e914a571
AC
3056 yes)
3057 GDB_TK="${gdb_tk}" ;;
671aa708 3058 *)
e914a571
AC
3059 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3060 # distro. Eventually someone will fix this and move Insight, nee
3061 # gdbtk to a separate directory.
3062 if test -d ${srcdir}/gdb/gdbtk ; then
3063 GDB_TK="${gdb_tk}"
3064 else
3065 GDB_TK=""
3066 fi
3067 ;;
671aa708
NN
3068esac
3069
60975492 3070# Strip out unwanted targets.
8b87bb96
NN
3071
3072# While at that, we remove Makefiles if we were started for recursive
3073# configuration, so that the top-level Makefile reconfigures them,
3074# like we used to do when configure itself was recursive.
8b87bb96 3075
60975492
PB
3076# Loop over modules. $extrasub must be used with care, limiting as
3077# much as possible the usage of range addresses. That's because autoconf
3078# splits the sed script to overcome limits in the number of commands,
3079# and relying on carefully-timed sed passes may turn out to be very hard
3080# to maintain later. In this particular case, you just have to be careful
3081# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 3082
f516a7da
PB
3083# Check whether --enable-bootstrap or --disable-bootstrap was given.
3084if test "${enable_bootstrap+set}" = set; then
3085 enableval="$enable_bootstrap"
3086 :
3087else
3088 enable_bootstrap=no
3089fi
3090
3091if test -d ${srcdir}/gcc; then
3092 case "$host:$target:$enable_bootstrap" in
3093 $build:$build:yes | *:no) ;;
3094 *:yes) { echo "configure: error: cannot bootstrap a cross-compiler" 1>&2; exit 1; } ;;
3095 *) { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; } ;;
3096 esac
3097else
3098 if test $enable_bootstrap = yes; then
3099 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; }
3100 fi
3101fi
3102
3103case "$enable_bootstrap" in
3104 yes)
c2f7605f 3105 default_target=bootstrap
5607edfd 3106 bootstrap_suffix=bootstrap ;;
f516a7da
PB
3107 no)
3108 default_target=all
5607edfd 3109 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
3110esac
3111
3112
23f6b2f9 3113for module in ${build_configdirs} ; do
5607edfd
PB
3114 if test -z "${no_recursion}" \
3115 && test -f ${build_subdir}/${module}/Makefile; then
3116 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3117 rm -f ${build_subdir}/${module}/Makefile
3118 fi
3119 extrasub="$extrasub
3120/^@if build-$module\$/d
3121/^@endif build-$module\$/d
3122/^@if build-$module-$bootstrap_suffix\$/d
3123/^@endif build-$module-$bootstrap_suffix\$/d"
3124done
3125for module in ${configdirs} ; do
3126 if test -z "${no_recursion}" \
3127 && test -f ${module}/Makefile; then
3128 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3129 rm -f ${module}/Makefile
3130 fi
3131 extrasub="$extrasub
3132/^@if $module\$/d
3133/^@endif $module\$/d
3134/^@if $module-$bootstrap_suffix\$/d
3135/^@endif $module-$bootstrap_suffix\$/d"
3136done
3137for module in ${target_configdirs} ; do
3138 if test -z "${no_recursion}" \
3139 && test -f ${target_subdir}/${module}/Makefile; then
3140 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3141 rm -f ${target_subdir}/${module}/Makefile
3142 fi
3143 extrasub="$extrasub
3144/^@if target-$module\$/d
3145/^@endif target-$module\$/d
3146/^@if target-$module-$bootstrap_suffix\$/d
3147/^@endif target-$module-$bootstrap_suffix\$/d"
3148done
3149
60975492
PB
3150extrasub="$extrasub
3151/^@if /,/^@endif /d"
671aa708
NN
3152
3153# Create the serialization dependencies. This uses a temporary file.
3154
ade82b16
AO
3155# Check whether --enable-serial-configure or --disable-serial-configure was given.
3156if test "${enable_serial_configure+set}" = set; then
3157 enableval="$enable_serial_configure"
3158 :
3159fi
3160
3161
bf1d3e81
NN
3162case ${enable_serial_configure} in
3163 yes)
3164 enable_serial_build_configure=yes
3165 enable_serial_host_configure=yes
3166 enable_serial_target_configure=yes
3167 ;;
3168esac
3169
671aa708
NN
3170# These force 'configure's to be done one at a time, to avoid problems
3171# with contention over a shared config.cache.
3172rm -f serdep.tmp
ade82b16 3173echo '# serdep.tmp' > serdep.tmp
671aa708 3174olditem=
bf1d3e81 3175test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
3176for item in ${build_configdirs} ; do
3177 case ${olditem} in
3178 "") ;;
ade82b16 3179 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
3180 esac
3181 olditem=${item}
3182done
3183olditem=
bf1d3e81 3184test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
3185for item in ${configdirs} ; do
3186 case ${olditem} in
3187 "") ;;
ade82b16 3188 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
3189 esac
3190 olditem=${item}
3191done
3192olditem=
bf1d3e81 3193test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
3194for item in ${target_configdirs} ; do
3195 case ${olditem} in
3196 "") ;;
ade82b16 3197 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
3198 esac
3199 olditem=${item}
3200done
3201serialization_dependencies=serdep.tmp
3202
3203
ade82b16
AO
3204# Base args. Strip norecursion, cache-file, srcdir, host, build,
3205# target and nonopt. These are the ones we might not want to pass
43bb47c2
DJ
3206# down to subconfigures. Also strip program-prefix, program-suffix,
3207# and program-transform-name, so that we can pass down a consistent
3208# program-transform-name. If autoconf has put single quotes around
3209# any of these arguments (because they contain shell metacharacters)
3210# then this will fail; in practice this only happens for
3211# --program-transform-name, so be sure to override --program-transform-name
3212# at the end of the argument list.
3213# These will be expanded by make, so quote '$'.
b348267b 3214cat <<\EOF_SED > conftestsed
9104315a
NN
3215s/ --no[^ ]*/ /g
3216s/ --c[a-z-]*[= ][^ ]*//g
3217s/ --sr[a-z-]*[= ][^ ]*//g
3218s/ --ho[a-z-]*[= ][^ ]*//g
3219s/ --bu[a-z-]*[= ][^ ]*//g
3220s/ --t[a-z-]*[= ][^ ]*//g
3221s/ --program-[pst][a-z-]*[= ][^ ]*//g
3222s/ -cache-file[= ][^ ]*//g
3223s/ -srcdir[= ][^ ]*//g
3224s/ -host[= ][^ ]*//g
3225s/ -build[= ][^ ]*//g
3226s/ -target[= ][^ ]*//g
3227s/ -program-prefix[= ][^ ]*//g
3228s/ -program-suffix[= ][^ ]*//g
3229s/ -program-transform-name[= ][^ ]*//g
b348267b
GK
3230s/ [^' -][^ ]* / /
3231s/^ *//;s/ *$//
eeae7b41
DJ
3232s,\$,$$,g
3233EOF_SED
3234sed -f conftestsed <<EOF_SED > conftestsed.out
3235 ${ac_configure_args}
b348267b 3236EOF_SED
eeae7b41
DJ
3237baseargs=`cat conftestsed.out`
3238rm -f conftestsed conftestsed.out
671aa708 3239
43bb47c2
DJ
3240# Add in --program-transform-name, after --program-prefix and
3241# --program-suffix have been applied to it. Autoconf has already
3242# doubled dollar signs and backslashes in program_transform_name; we want
3243# the backslashes un-doubled, and then the entire thing wrapped in single
3244# quotes, because this will be expanded first by make and then by the shell.
3245# Also, because we want to override the logic in subdir configure scripts to
3246# choose program_transform_name, replace any s,x,x, with s,y,y,.
3247sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3248${program_transform_name}
3249EOF_SED
3250gcc_transform_name=`cat conftestsed.out`
3251rm -f conftestsed.out
3252baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3253
671aa708
NN
3254# For the build-side libraries, we just need to pretend we're native,
3255# and not use the same cache file. Multilibs are neither needed nor
3256# desired.
3257build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
3258
3259# For host modules, accept cache file option, or specification as blank.
3260case "${cache_file}" in
3261"") # empty
3262 cache_file_option="" ;;
3263/* | [A-Za-z]:[\\/]* ) # absolute path
3264 cache_file_option="--cache-file=${cache_file}" ;;
3265*) # relative path
3266 cache_file_option="--cache-file=../${cache_file}" ;;
3267esac
3268
09438bde
NN
3269# Host dirs don't like to share a cache file either, horribly enough.
3270# This seems to be due to autoconf 2.5x stupidity.
2b6c260d 3271host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
671aa708
NN
3272
3273target_configargs=${baseargs}
3274
3275# Passing a --with-cross-host argument lets the target libraries know
3276# whether they are being built with a cross-compiler or being built
3277# native. However, it would be better to use other mechanisms to make the
3278# sorts of decisions they want to make on this basis. Please consider
3279# this option to be deprecated. FIXME.
3280if test x${is_cross_compiler} = xyes ; then
3281 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3282fi
3283
3284# Default to --enable-multilib.
3285if test x${enable_multilib} = x ; then
3286 target_configargs="--enable-multilib ${target_configargs}"
3287fi
3288
3289# Pass --with-newlib if appropriate. Note that target_configdirs has
3290# changed from the earlier setting of with_newlib.
3291if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3292 target_configargs="--with-newlib ${target_configargs}"
3293fi
3294
6b9eb62c
NN
3295# Different target subdirs use different values of certain variables
3296# (notably CXX). Worse, multilibs use *lots* of different values.
3297# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3298# it doesn't automatically accept command-line overrides of them.
3299# This means it's not safe for target subdirs to share a cache file,
3300# which is disgusting, but there you have it. Hopefully this can be
3301# fixed in future. It's still worthwhile to use a cache file for each
3302# directory. I think.
3303
671aa708 3304# Pass the appropriate --host, --build, and --cache-file arguments.
2b6c260d 3305target_configargs="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
671aa708
NN
3306
3307# provide a proper gxx_include_dir.
3308# Note, if you change the default, make sure to fix both here and in
3309# the gcc and libstdc++-v3 subdirectories.
3310# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
73458fb7
NN
3311case "${with_gxx_include_dir}" in
3312 yes)
3313 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
3314 ;;
3315 no | "")
3316 case "${enable_version_specific_runtime_libs}" in
3317 yes) gxx_include_dir='${libsubdir}/include/c++' ;;
3318 *)
3319 . ${srcdir}/config.if
3320 gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;;
3321 esac ;;
3322 *) gxx_include_dir=${with_gxx_include_dir} ;;
3323esac
671aa708
NN
3324
3325FLAGS_FOR_TARGET=
3326case " $target_configdirs " in
3327 *" newlib "*)
3328 case " $target_configargs " in
3329 *" --with-newlib "*)
3330 case "$target" in
3331 *-cygwin*)
aa8f1f57 3332 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' ;;
671aa708
NN
3333 esac
3334
3335 # If we're not building GCC, don't discard standard headers.
3336 if test -d ${srcdir}/gcc; then
3337 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3338
3339 if test "${build}" != "${host}"; then
3340 # On Canadian crosses, CC_FOR_TARGET will have already been set
3341 # by `configure', so we won't have an opportunity to add -Bgcc/
3342 # to it. This is right: we don't want to search that directory
3343 # for binaries, but we want the header files in there, so add
3344 # them explicitly.
3345 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
3346
3347 # Someone might think of using the pre-installed headers on
3348 # Canadian crosses, in case the installed compiler is not fully
3349 # compatible with the compiler being built. In this case, it
3350 # would be better to flag an error than risking having
3351 # incompatible object files being constructed. We can't
3352 # guarantee that an error will be flagged, but let's hope the
3353 # compiler will do it, when presented with incompatible header
3354 # files.
3355 fi
3356 fi
3357
3358 case "${target}-${is_cross_compiler}" in
f2a0e225 3359 i[3456789]86-*-linux*-no)
671aa708
NN
3360 # Here host == target, so we don't need to build gcc,
3361 # so we don't want to discard standard headers.
3362 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3363 ;;
3364 *)
3365 # If we're building newlib, use its generic headers last, but search
3366 # for any libc-related directories first (so make it the last -B
3367 # switch).
3368 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3369 ;;
3370 esac
3371 ;;
3372 esac
3373 ;;
3374esac
3375
6691a79e
ME
3376# Allow the user to override the flags for
3377# our build compiler if desired.
3378CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3379
671aa708
NN
3380# On Canadian crosses, we'll be searching the right directories for
3381# the previously-installed cross compiler, so don't bother to add
3382# flags for directories within the install tree of the compiler
3383# being built; programs in there won't even run.
3384if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3385 # Search for pre-installed headers if nothing else fits.
9124bc53 3386 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
3387fi
3388
3389if test "x${use_gnu_ld}" = x &&
3390 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3391 # Arrange for us to find uninstalled linker scripts.
3392 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
3393fi
3394
3395if test "x${CC_FOR_TARGET+set}" = xset; then
3396 :
3397elif test -d ${srcdir}/gcc; then
3398 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
3399elif test "$host" = "$target"; then
3400 CC_FOR_TARGET='$(CC)'
3401else
3f4f56e2 3402 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
671aa708
NN
3403fi
3404CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3405
3406if test "x${GCJ_FOR_TARGET+set}" = xset; then
3407 :
3408elif test -d ${srcdir}/gcc; then
3409 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
3410elif test "$host" = "$target"; then
3411 GCJ_FOR_TARGET='gcj'
3412else
3f4f56e2 3413 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
671aa708
NN
3414fi
3415GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3416
6de9cd9a
DN
3417if test "x${GFORTRAN_FOR_TARGET+set}" = xset; then
3418 :
3419elif test -d ${srcdir}/gcc; then
3420 GFORTRAN_FOR_TARGET='$$r/gcc/gfortran -B$$r/gcc/'
3421elif test "$host" = "$target"; then
3422 GFORTRAN_FOR_TARGET='gfortran'
3423else
30f1bddc 3424 GFORTRAN_FOR_TARGET=`echo gfortran | sed "${program_transform_name}"`
6de9cd9a
DN
3425fi
3426case $GFORTRAN_FOR_TARGET in
3427*' $(FLAGS_FOR_TARGET)') ;;
3428*) GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;;
3429esac
3430
671aa708 3431# Don't use libstdc++-v3's flags to configure/build itself.
a7956a48 3432libstdcxx_flags='`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'
9d465b12 3433raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
671aa708
NN
3434
3435if test "x${CXX_FOR_TARGET+set}" = xset; then
d253f9ba
DJ
3436 if test "x${RAW_CXX_FOR_TARGET+set}" != xset; then
3437 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3438 fi
671aa708
NN
3439elif test -d ${srcdir}/gcc; then
3440 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3441 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3442 # default whereas gcc does not.
3443 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3444 # all other cases.
3445 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
3446 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3447elif test "$host" = "$target"; then
3448 CXX_FOR_TARGET='$(CXX)'
3449 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3450else
3f4f56e2 3451 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
671aa708
NN
3452 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3453fi
3454CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3455RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3456
3457qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3458qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3459
3460# We want to defer the evaluation of `cmd`s and shell variables in
3461# CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3462# bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3463# quotes, but we still have to duplicate `$'s so that shell variables
3464# can be expanded by the nested make as shell variables, not as make
3465# macros.
3466qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3467qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3468
3469# Wrap CC_FOR_TARGET and friends, for certain types of builds.
3470CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}"
3471GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}"
6de9cd9a 3472GFORTRAN_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GFORTRAN_FOR_TARGET}"
671aa708
NN
3473CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}"
3474RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}"
3475CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}"
3476RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}"
3477
3478# Makefile fragments.
7b61653a
PE
3479for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3480do
3481 eval fragval=\$$frag
3482 if test $fragval != /dev/null; then
3483 eval $frag=${srcdir}/$fragval
3484 fi
3485done
671aa708
NN
3486
3487
3488
3489
3490
3491# Miscellanea: directories, flags, etc.
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
671aa708 3504
23f6b2f9 3505# Build module lists & subconfigure args.
671aa708
NN
3506
3507
3508
671aa708
NN
3509# Host module lists & subconfigure args.
3510
3511
3512
671aa708
NN
3513# Target module lists & subconfigure args.
3514
3515
3516
671aa708
NN
3517# Build tools.
3518
3519
3520
671aa708 3521# Host tools.
ca9f4b81
AO
3522ncn_tool_prefix=
3523test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3524ncn_target_tool_prefix=
3525test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3526
3527 if test -n "$ncn_tool_prefix"; then
3528 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3529set dummy ${ncn_tool_prefix}ar; ac_word=$2
3530echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 3531echo "configure:3532: checking for $ac_word" >&5
ca9f4b81
AO
3532if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3533 echo $ac_n "(cached) $ac_c" 1>&6
3534else
3535 if test -n "$AR"; then
3536 ac_cv_prog_AR="$AR" # Let the user override the test.
3537else
3538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3539 ac_dummy="$PATH"
3540 for ac_dir in $ac_dummy; do
3541 test -z "$ac_dir" && ac_dir=.
3542 if test -f $ac_dir/$ac_word; then
3543 ac_cv_prog_AR="${ncn_tool_prefix}ar"
3544 break
3545 fi
3546 done
3547 IFS="$ac_save_ifs"
3548fi
3549fi
3550AR="$ac_cv_prog_AR"
3551if test -n "$AR"; then
3552 echo "$ac_t""$AR" 1>&6
3553else
3554 echo "$ac_t""no" 1>&6
3555fi
3556
3557fi
3558if test -z "$ac_cv_prog_AR" ; then
3559 if test $build = $host ; then
3560 ncn_cv_AR=$AR
3561 # Extract the first word of "ar", so it can be a program name with args.
3562set dummy ar; ac_word=$2
3563echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 3564echo "configure:3565: checking for $ac_word" >&5
ca9f4b81
AO
3565if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3567else
3568 if test -n "$ncn_cv_AR"; then
3569 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
3570else
3571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3572 ac_dummy="$PATH"
3573 for ac_dir in $ac_dummy; do
3574 test -z "$ac_dir" && ac_dir=.
3575 if test -f $ac_dir/$ac_word; then
3576 ac_cv_prog_ncn_cv_AR="ar"
3577 break
3578 fi
3579 done
3580 IFS="$ac_save_ifs"
3581 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3582fi
3583fi
3584ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3585if test -n "$ncn_cv_AR"; then
3586 echo "$ac_t""$ncn_cv_AR" 1>&6
3587else
3588 echo "$ac_t""no" 1>&6
3589fi
3590
3591 AR=$ncn_cv_AR
3592 else
3593 AR="${ncn_tool_prefix}ar"
3594 fi
3595else
3596 AR="$ac_cv_prog_AR"
3597fi
3598
3599 if test -n "$ncn_tool_prefix"; then
3600 # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
3601set dummy ${ncn_tool_prefix}as; ac_word=$2
3602echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 3603echo "configure:3604: checking for $ac_word" >&5
ca9f4b81
AO
3604if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3606else
3607 if test -n "$AS"; then
3608 ac_cv_prog_AS="$AS" # Let the user override the test.
3609else
3610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3611 ac_dummy="$PATH"
3612 for ac_dir in $ac_dummy; do
3613 test -z "$ac_dir" && ac_dir=.
3614 if test -f $ac_dir/$ac_word; then
3615 ac_cv_prog_AS="${ncn_tool_prefix}as"
3616 break
3617 fi
3618 done
3619 IFS="$ac_save_ifs"
3620fi
3621fi
3622AS="$ac_cv_prog_AS"
3623if test -n "$AS"; then
3624 echo "$ac_t""$AS" 1>&6
3625else
3626 echo "$ac_t""no" 1>&6
3627fi
3628
3629fi
3630if test -z "$ac_cv_prog_AS" ; then
3631 if test $build = $host ; then
3632 ncn_cv_AS=$AS
3633 # Extract the first word of "as", so it can be a program name with args.
3634set dummy as; ac_word=$2
3635echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 3636echo "configure:3637: checking for $ac_word" >&5
ca9f4b81
AO
3637if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3639else
3640 if test -n "$ncn_cv_AS"; then
3641 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
3642else
3643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3644 ac_dummy="$PATH"
3645 for ac_dir in $ac_dummy; do
3646 test -z "$ac_dir" && ac_dir=.
3647 if test -f $ac_dir/$ac_word; then
3648 ac_cv_prog_ncn_cv_AS="as"
3649 break
3650 fi
3651 done
3652 IFS="$ac_save_ifs"
3653 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as"
3654fi
3655fi
3656ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3657if test -n "$ncn_cv_AS"; then
3658 echo "$ac_t""$ncn_cv_AS" 1>&6
3659else
3660 echo "$ac_t""no" 1>&6
3661fi
3662
3663 AS=$ncn_cv_AS
3664 else
3665 AS="${ncn_tool_prefix}as"
3666 fi
3667else
3668 AS="$ac_cv_prog_AS"
3669fi
3670
3671 if test -n "$ncn_tool_prefix"; then
3672 # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
3673set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3674echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 3675echo "configure:3676: checking for $ac_word" >&5
ca9f4b81
AO
3676if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3678else
3679 if test -n "$DLLTOOL"; then
3680 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3681else
3682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3683 ac_dummy="$PATH"
3684 for ac_dir in $ac_dummy; do
3685 test -z "$ac_dir" && ac_dir=.
3686 if test -f $ac_dir/$ac_word; then
3687 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool"
3688 break
3689 fi
3690 done
3691 IFS="$ac_save_ifs"
3692fi
3693fi
3694DLLTOOL="$ac_cv_prog_DLLTOOL"
3695if test -n "$DLLTOOL"; then
3696 echo "$ac_t""$DLLTOOL" 1>&6
3697else
3698 echo "$ac_t""no" 1>&6
3699fi
3700
3701fi
3702if test -z "$ac_cv_prog_DLLTOOL" ; then
3703 if test $build = $host ; then
3704 ncn_cv_DLLTOOL=$DLLTOOL
3705 # Extract the first word of "dlltool", so it can be a program name with args.
3706set dummy dlltool; ac_word=$2
3707echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 3708echo "configure:3709: checking for $ac_word" >&5
ca9f4b81
AO
3709if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3710 echo $ac_n "(cached) $ac_c" 1>&6
3711else
3712 if test -n "$ncn_cv_DLLTOOL"; then
3713 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
3714else
3715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3716 ac_dummy="$PATH"
3717 for ac_dir in $ac_dummy; do
3718 test -z "$ac_dir" && ac_dir=.
3719 if test -f $ac_dir/$ac_word; then
3720 ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3721 break
3722 fi
3723 done
3724 IFS="$ac_save_ifs"
3725 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3726fi
3727fi
3728ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3729if test -n "$ncn_cv_DLLTOOL"; then
3730 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3731else
3732 echo "$ac_t""no" 1>&6
3733fi
3734
3735 DLLTOOL=$ncn_cv_DLLTOOL
3736 else
3737 DLLTOOL="${ncn_tool_prefix}dlltool"
3738 fi
3739else
3740 DLLTOOL="$ac_cv_prog_DLLTOOL"
3741fi
3742
3743 if test -n "$ncn_tool_prefix"; then
3744 # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
3745set dummy ${ncn_tool_prefix}ld; ac_word=$2
3746echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 3747echo "configure:3748: checking for $ac_word" >&5
ca9f4b81
AO
3748if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3749 echo $ac_n "(cached) $ac_c" 1>&6
3750else
3751 if test -n "$LD"; then
3752 ac_cv_prog_LD="$LD" # Let the user override the test.
3753else
3754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3755 ac_dummy="$PATH"
3756 for ac_dir in $ac_dummy; do
3757 test -z "$ac_dir" && ac_dir=.
3758 if test -f $ac_dir/$ac_word; then
3759 ac_cv_prog_LD="${ncn_tool_prefix}ld"
3760 break
3761 fi
3762 done
3763 IFS="$ac_save_ifs"
3764fi
3765fi
3766LD="$ac_cv_prog_LD"
3767if test -n "$LD"; then
3768 echo "$ac_t""$LD" 1>&6
3769else
3770 echo "$ac_t""no" 1>&6
3771fi
3772
3773fi
3774if test -z "$ac_cv_prog_LD" ; then
3775 if test $build = $host ; then
3776 ncn_cv_LD=$LD
3777 # Extract the first word of "ld", so it can be a program name with args.
3778set dummy ld; ac_word=$2
3779echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 3780echo "configure:3781: checking for $ac_word" >&5
ca9f4b81
AO
3781if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3783else
3784 if test -n "$ncn_cv_LD"; then
3785 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3786else
3787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3788 ac_dummy="$PATH"
3789 for ac_dir in $ac_dummy; do
3790 test -z "$ac_dir" && ac_dir=.
3791 if test -f $ac_dir/$ac_word; then
3792 ac_cv_prog_ncn_cv_LD="ld"
3793 break
3794 fi
3795 done
3796 IFS="$ac_save_ifs"
3797 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld"
3798fi
3799fi
3800ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3801if test -n "$ncn_cv_LD"; then
3802 echo "$ac_t""$ncn_cv_LD" 1>&6
3803else
3804 echo "$ac_t""no" 1>&6
3805fi
3806
3807 LD=$ncn_cv_LD
3808 else
3809 LD="${ncn_tool_prefix}ld"
3810 fi
3811else
3812 LD="$ac_cv_prog_LD"
3813fi
3814
3815 if test -n "$ncn_tool_prefix"; then
3816 # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
3817set dummy ${ncn_tool_prefix}nm; ac_word=$2
3818echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 3819echo "configure:3820: checking for $ac_word" >&5
ca9f4b81
AO
3820if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3821 echo $ac_n "(cached) $ac_c" 1>&6
3822else
3823 if test -n "$NM"; then
3824 ac_cv_prog_NM="$NM" # Let the user override the test.
3825else
3826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3827 ac_dummy="$PATH"
3828 for ac_dir in $ac_dummy; do
3829 test -z "$ac_dir" && ac_dir=.
3830 if test -f $ac_dir/$ac_word; then
3831 ac_cv_prog_NM="${ncn_tool_prefix}nm"
3832 break
3833 fi
3834 done
3835 IFS="$ac_save_ifs"
3836fi
3837fi
3838NM="$ac_cv_prog_NM"
3839if test -n "$NM"; then
3840 echo "$ac_t""$NM" 1>&6
3841else
3842 echo "$ac_t""no" 1>&6
3843fi
3844
3845fi
3846if test -z "$ac_cv_prog_NM" ; then
3847 if test $build = $host ; then
3848 ncn_cv_NM=$NM
3849 # Extract the first word of "nm", so it can be a program name with args.
3850set dummy nm; ac_word=$2
3851echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 3852echo "configure:3853: checking for $ac_word" >&5
ca9f4b81
AO
3853if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3854 echo $ac_n "(cached) $ac_c" 1>&6
3855else
3856 if test -n "$ncn_cv_NM"; then
3857 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3858else
3859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3860 ac_dummy="$PATH"
3861 for ac_dir in $ac_dummy; do
3862 test -z "$ac_dir" && ac_dir=.
3863 if test -f $ac_dir/$ac_word; then
3864 ac_cv_prog_ncn_cv_NM="nm"
3865 break
3866 fi
3867 done
3868 IFS="$ac_save_ifs"
3869 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm"
3870fi
3871fi
3872ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3873if test -n "$ncn_cv_NM"; then
3874 echo "$ac_t""$ncn_cv_NM" 1>&6
3875else
3876 echo "$ac_t""no" 1>&6
3877fi
3878
3879 NM=$ncn_cv_NM
3880 else
3881 NM="${ncn_tool_prefix}nm"
3882 fi
3883else
3884 NM="$ac_cv_prog_NM"
3885fi
3886
3887 if test -n "$ncn_tool_prefix"; then
3888 # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
3889set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3890echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 3891echo "configure:3892: checking for $ac_word" >&5
ca9f4b81
AO
3892if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3893 echo $ac_n "(cached) $ac_c" 1>&6
3894else
3895 if test -n "$RANLIB"; then
3896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3897else
3898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3899 ac_dummy="$PATH"
3900 for ac_dir in $ac_dummy; do
3901 test -z "$ac_dir" && ac_dir=.
3902 if test -f $ac_dir/$ac_word; then
3903 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib"
3904 break
3905 fi
3906 done
3907 IFS="$ac_save_ifs"
3908fi
3909fi
3910RANLIB="$ac_cv_prog_RANLIB"
3911if test -n "$RANLIB"; then
3912 echo "$ac_t""$RANLIB" 1>&6
3913else
3914 echo "$ac_t""no" 1>&6
3915fi
3916
3917fi
3918if test -z "$ac_cv_prog_RANLIB" ; then
3919 if test $build = $host ; then
3920 ncn_cv_RANLIB=$RANLIB
3921 # Extract the first word of "ranlib", so it can be a program name with args.
3922set dummy ranlib; ac_word=$2
3923echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 3924echo "configure:3925: checking for $ac_word" >&5
ca9f4b81
AO
3925if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3927else
3928 if test -n "$ncn_cv_RANLIB"; then
3929 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3930else
3931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3932 ac_dummy="$PATH"
3933 for ac_dir in $ac_dummy; do
3934 test -z "$ac_dir" && ac_dir=.
3935 if test -f $ac_dir/$ac_word; then
3936 ac_cv_prog_ncn_cv_RANLIB="ranlib"
3937 break
3938 fi
3939 done
3940 IFS="$ac_save_ifs"
3941 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3942fi
3943fi
3944ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3945if test -n "$ncn_cv_RANLIB"; then
3946 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3947else
3948 echo "$ac_t""no" 1>&6
3949fi
3950
3951 RANLIB=$ncn_cv_RANLIB
3952 else
3953 RANLIB=":"
3954 fi
3955else
3956 RANLIB="$ac_cv_prog_RANLIB"
3957fi
3958
3959 if test -n "$ncn_tool_prefix"; then
3960 # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
3961set dummy ${ncn_tool_prefix}windres; ac_word=$2
3962echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 3963echo "configure:3964: checking for $ac_word" >&5
ca9f4b81
AO
3964if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3966else
3967 if test -n "$WINDRES"; then
3968 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3969else
3970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3971 ac_dummy="$PATH"
3972 for ac_dir in $ac_dummy; do
3973 test -z "$ac_dir" && ac_dir=.
3974 if test -f $ac_dir/$ac_word; then
3975 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres"
3976 break
3977 fi
3978 done
3979 IFS="$ac_save_ifs"
3980fi
3981fi
3982WINDRES="$ac_cv_prog_WINDRES"
3983if test -n "$WINDRES"; then
3984 echo "$ac_t""$WINDRES" 1>&6
3985else
3986 echo "$ac_t""no" 1>&6
3987fi
3988
3989fi
3990if test -z "$ac_cv_prog_WINDRES" ; then
3991 if test $build = $host ; then
3992 ncn_cv_WINDRES=$WINDRES
3993 # Extract the first word of "windres", so it can be a program name with args.
3994set dummy windres; ac_word=$2
3995echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 3996echo "configure:3997: checking for $ac_word" >&5
ca9f4b81
AO
3997if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
3998 echo $ac_n "(cached) $ac_c" 1>&6
3999else
4000 if test -n "$ncn_cv_WINDRES"; then
4001 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
4002else
4003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4004 ac_dummy="$PATH"
4005 for ac_dir in $ac_dummy; do
4006 test -z "$ac_dir" && ac_dir=.
4007 if test -f $ac_dir/$ac_word; then
4008 ac_cv_prog_ncn_cv_WINDRES="windres"
4009 break
4010 fi
4011 done
4012 IFS="$ac_save_ifs"
4013 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres"
4014fi
4015fi
4016ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
4017if test -n "$ncn_cv_WINDRES"; then
4018 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
4019else
4020 echo "$ac_t""no" 1>&6
4021fi
4022
4023 WINDRES=$ncn_cv_WINDRES
4024 else
4025 WINDRES="${ncn_tool_prefix}windres"
4026 fi
4027else
4028 WINDRES="$ac_cv_prog_WINDRES"
4029fi
4030
4031 if test -n "$ncn_tool_prefix"; then
4032 # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
4033set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
4034echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4035echo "configure:4036: checking for $ac_word" >&5
ca9f4b81
AO
4036if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4038else
4039 if test -n "$OBJCOPY"; then
4040 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4041else
4042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4043 ac_dummy="$PATH"
4044 for ac_dir in $ac_dummy; do
4045 test -z "$ac_dir" && ac_dir=.
4046 if test -f $ac_dir/$ac_word; then
4047 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy"
4048 break
4049 fi
4050 done
4051 IFS="$ac_save_ifs"
4052fi
4053fi
4054OBJCOPY="$ac_cv_prog_OBJCOPY"
4055if test -n "$OBJCOPY"; then
4056 echo "$ac_t""$OBJCOPY" 1>&6
4057else
4058 echo "$ac_t""no" 1>&6
4059fi
4060
4061fi
4062if test -z "$ac_cv_prog_OBJCOPY" ; then
4063 if test $build = $host ; then
4064 ncn_cv_OBJCOPY=$OBJCOPY
4065 # Extract the first word of "objcopy", so it can be a program name with args.
4066set dummy objcopy; ac_word=$2
4067echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4068echo "configure:4069: checking for $ac_word" >&5
ca9f4b81
AO
4069if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4071else
4072 if test -n "$ncn_cv_OBJCOPY"; then
4073 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
4074else
4075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4076 ac_dummy="$PATH"
4077 for ac_dir in $ac_dummy; do
4078 test -z "$ac_dir" && ac_dir=.
4079 if test -f $ac_dir/$ac_word; then
4080 ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
4081 break
4082 fi
4083 done
4084 IFS="$ac_save_ifs"
4085 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
4086fi
4087fi
4088ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
4089if test -n "$ncn_cv_OBJCOPY"; then
4090 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
4091else
4092 echo "$ac_t""no" 1>&6
4093fi
4094
4095 OBJCOPY=$ncn_cv_OBJCOPY
4096 else
4097 OBJCOPY="${ncn_tool_prefix}objcopy"
4098 fi
4099else
4100 OBJCOPY="$ac_cv_prog_OBJCOPY"
4101fi
4102
4103 if test -n "$ncn_tool_prefix"; then
4104 # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
4105set dummy ${ncn_tool_prefix}objdump; ac_word=$2
4106echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4107echo "configure:4108: checking for $ac_word" >&5
ca9f4b81
AO
4108if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4110else
4111 if test -n "$OBJDUMP"; then
4112 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4113else
4114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4115 ac_dummy="$PATH"
4116 for ac_dir in $ac_dummy; do
4117 test -z "$ac_dir" && ac_dir=.
4118 if test -f $ac_dir/$ac_word; then
4119 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump"
4120 break
4121 fi
4122 done
4123 IFS="$ac_save_ifs"
4124fi
4125fi
4126OBJDUMP="$ac_cv_prog_OBJDUMP"
4127if test -n "$OBJDUMP"; then
4128 echo "$ac_t""$OBJDUMP" 1>&6
4129else
4130 echo "$ac_t""no" 1>&6
4131fi
4132
4133fi
4134if test -z "$ac_cv_prog_OBJDUMP" ; then
4135 if test $build = $host ; then
4136 ncn_cv_OBJDUMP=$OBJDUMP
4137 # Extract the first word of "objdump", so it can be a program name with args.
4138set dummy objdump; ac_word=$2
4139echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4140echo "configure:4141: checking for $ac_word" >&5
ca9f4b81
AO
4141if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
4142 echo $ac_n "(cached) $ac_c" 1>&6
4143else
4144 if test -n "$ncn_cv_OBJDUMP"; then
4145 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
4146else
4147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4148 ac_dummy="$PATH"
4149 for ac_dir in $ac_dummy; do
4150 test -z "$ac_dir" && ac_dir=.
4151 if test -f $ac_dir/$ac_word; then
4152 ac_cv_prog_ncn_cv_OBJDUMP="objdump"
4153 break
4154 fi
4155 done
4156 IFS="$ac_save_ifs"
4157 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump"
4158fi
4159fi
4160ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
4161if test -n "$ncn_cv_OBJDUMP"; then
4162 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
4163else
4164 echo "$ac_t""no" 1>&6
4165fi
4166
4167 OBJDUMP=$ncn_cv_OBJDUMP
4168 else
4169 OBJDUMP="${ncn_tool_prefix}objdump"
4170 fi
4171else
4172 OBJDUMP="$ac_cv_prog_OBJDUMP"
4173fi
4174
671aa708
NN
4175
4176
4177
4178
4179
4180
671aa708 4181# Target tools.
ca9f4b81
AO
4182 if test -n "$ncn_target_tool_prefix"; then
4183 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
4184set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
4185echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4186echo "configure:4187: checking for $ac_word" >&5
be912515 4187if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
ca9f4b81
AO
4188 echo $ac_n "(cached) $ac_c" 1>&6
4189else
be912515
NN
4190 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4191 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
ca9f4b81
AO
4192else
4193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4194 ac_dummy="$PATH"
4195 for ac_dir in $ac_dummy; do
4196 test -z "$ac_dir" && ac_dir=.
4197 if test -f $ac_dir/$ac_word; then
be912515 4198 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
ca9f4b81
AO
4199 break
4200 fi
4201 done
4202 IFS="$ac_save_ifs"
4203fi
4204fi
be912515
NN
4205CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4206if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4207 echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6
ca9f4b81
AO
4208else
4209 echo "$ac_t""no" 1>&6
4210fi
4211
4212fi
be912515 4213if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then
ca9f4b81 4214 if test $build = $target ; then
be912515 4215 ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET
ca9f4b81
AO
4216 # Extract the first word of "ar", so it can be a program name with args.
4217set dummy ar; ac_word=$2
4218echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4219echo "configure:4220: checking for $ac_word" >&5
be912515 4220if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
ca9f4b81
AO
4221 echo $ac_n "(cached) $ac_c" 1>&6
4222else
be912515
NN
4223 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4224 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
ca9f4b81
AO
4225else
4226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4227 ac_dummy="$PATH"
4228 for ac_dir in $ac_dummy; do
4229 test -z "$ac_dir" && ac_dir=.
4230 if test -f $ac_dir/$ac_word; then
be912515 4231 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
ca9f4b81
AO
4232 break
4233 fi
4234 done
4235 IFS="$ac_save_ifs"
be912515 4236 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
ca9f4b81
AO
4237fi
4238fi
be912515
NN
4239ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET"
4240if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4241 echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6
ca9f4b81
AO
4242else
4243 echo "$ac_t""no" 1>&6
4244fi
4245
be912515 4246 CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET
ca9f4b81 4247 else
be912515 4248 CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
ca9f4b81
AO
4249 fi
4250else
be912515 4251 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
ca9f4b81
AO
4252fi
4253
4254 if test -n "$ncn_target_tool_prefix"; then
4255 # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
4256set dummy ${ncn_target_tool_prefix}as; ac_word=$2
4257echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4258echo "configure:4259: checking for $ac_word" >&5
be912515 4259if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
ca9f4b81
AO
4260 echo $ac_n "(cached) $ac_c" 1>&6
4261else
be912515
NN
4262 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4263 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
ca9f4b81
AO
4264else
4265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4266 ac_dummy="$PATH"
4267 for ac_dir in $ac_dummy; do
4268 test -z "$ac_dir" && ac_dir=.
4269 if test -f $ac_dir/$ac_word; then
be912515 4270 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
ca9f4b81
AO
4271 break
4272 fi
4273 done
4274 IFS="$ac_save_ifs"
4275fi
4276fi
be912515
NN
4277CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4278if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4279 echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6
ca9f4b81
AO
4280else
4281 echo "$ac_t""no" 1>&6
4282fi
4283
4284fi
be912515 4285if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then
ca9f4b81 4286 if test $build = $target ; then
be912515 4287 ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET
ca9f4b81
AO
4288 # Extract the first word of "as", so it can be a program name with args.
4289set dummy as; ac_word=$2
4290echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4291echo "configure:4292: checking for $ac_word" >&5
be912515 4292if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
ca9f4b81
AO
4293 echo $ac_n "(cached) $ac_c" 1>&6
4294else
be912515
NN
4295 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4296 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
ca9f4b81
AO
4297else
4298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4299 ac_dummy="$PATH"
4300 for ac_dir in $ac_dummy; do
4301 test -z "$ac_dir" && ac_dir=.
4302 if test -f $ac_dir/$ac_word; then
be912515 4303 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
ca9f4b81
AO
4304 break
4305 fi
4306 done
4307 IFS="$ac_save_ifs"
be912515 4308 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
ca9f4b81
AO
4309fi
4310fi
be912515
NN
4311ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET"
4312if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4313 echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6
ca9f4b81
AO
4314else
4315 echo "$ac_t""no" 1>&6
4316fi
4317
be912515 4318 CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET
ca9f4b81 4319 else
be912515 4320 CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
ca9f4b81
AO
4321 fi
4322else
be912515 4323 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
ca9f4b81
AO
4324fi
4325
4326 if test -n "$ncn_target_tool_prefix"; then
4327 # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
4328set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4329echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4330echo "configure:4331: checking for $ac_word" >&5
be912515 4331if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
ca9f4b81
AO
4332 echo $ac_n "(cached) $ac_c" 1>&6
4333else
be912515
NN
4334 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4335 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
ca9f4b81
AO
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
be912515 4342 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
ca9f4b81
AO
4343 break
4344 fi
4345 done
4346 IFS="$ac_save_ifs"
4347fi
4348fi
be912515
NN
4349CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4350if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4351 echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
ca9f4b81
AO
4352else
4353 echo "$ac_t""no" 1>&6
4354fi
4355
4356fi
be912515 4357if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then
ca9f4b81 4358 if test $build = $target ; then
be912515 4359 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET
ca9f4b81
AO
4360 # Extract the first word of "dlltool", so it can be a program name with args.
4361set dummy dlltool; ac_word=$2
4362echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4363echo "configure:4364: checking for $ac_word" >&5
be912515 4364if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
ca9f4b81
AO
4365 echo $ac_n "(cached) $ac_c" 1>&6
4366else
be912515
NN
4367 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4368 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
ca9f4b81
AO
4369else
4370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4371 ac_dummy="$PATH"
4372 for ac_dir in $ac_dummy; do
4373 test -z "$ac_dir" && ac_dir=.
4374 if test -f $ac_dir/$ac_word; then
be912515 4375 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
ca9f4b81
AO
4376 break
4377 fi
4378 done
4379 IFS="$ac_save_ifs"
be912515 4380 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
ca9f4b81
AO
4381fi
4382fi
be912515
NN
4383ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"
4384if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4385 echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
ca9f4b81
AO
4386else
4387 echo "$ac_t""no" 1>&6
4388fi
4389
be912515 4390 CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET
ca9f4b81 4391 else
be912515 4392 CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
ca9f4b81
AO
4393 fi
4394else
be912515 4395 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
ca9f4b81
AO
4396fi
4397
4398 if test -n "$ncn_target_tool_prefix"; then
4399 # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
4400set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4401echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4402echo "configure:4403: checking for $ac_word" >&5
be912515 4403if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
ca9f4b81
AO
4404 echo $ac_n "(cached) $ac_c" 1>&6
4405else
be912515
NN
4406 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4407 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
ca9f4b81
AO
4408else
4409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4410 ac_dummy="$PATH"
4411 for ac_dir in $ac_dummy; do
4412 test -z "$ac_dir" && ac_dir=.
4413 if test -f $ac_dir/$ac_word; then
be912515 4414 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
ca9f4b81
AO
4415 break
4416 fi
4417 done
4418 IFS="$ac_save_ifs"
4419fi
4420fi
be912515
NN
4421CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4422if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4423 echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6
ca9f4b81
AO
4424else
4425 echo "$ac_t""no" 1>&6
4426fi
4427
4428fi
be912515 4429if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then
ca9f4b81 4430 if test $build = $target ; then
be912515 4431 ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET
ca9f4b81
AO
4432 # Extract the first word of "ld", so it can be a program name with args.
4433set dummy ld; ac_word=$2
4434echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4435echo "configure:4436: checking for $ac_word" >&5
be912515 4436if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
ca9f4b81
AO
4437 echo $ac_n "(cached) $ac_c" 1>&6
4438else
be912515
NN
4439 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4440 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
ca9f4b81
AO
4441else
4442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4443 ac_dummy="$PATH"
4444 for ac_dir in $ac_dummy; do
4445 test -z "$ac_dir" && ac_dir=.
4446 if test -f $ac_dir/$ac_word; then
be912515 4447 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
ca9f4b81
AO
4448 break
4449 fi
4450 done
4451 IFS="$ac_save_ifs"
be912515 4452 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
ca9f4b81
AO
4453fi
4454fi
be912515
NN
4455ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET"
4456if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4457 echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6
ca9f4b81
AO
4458else
4459 echo "$ac_t""no" 1>&6
4460fi
4461
be912515 4462 CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET
ca9f4b81 4463 else
be912515 4464 CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
ca9f4b81
AO
4465 fi
4466else
be912515 4467 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
ca9f4b81
AO
4468fi
4469
4470 if test -n "$ncn_target_tool_prefix"; then
4471 # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
4472set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4473echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4474echo "configure:4475: checking for $ac_word" >&5
be912515 4475if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
ca9f4b81
AO
4476 echo $ac_n "(cached) $ac_c" 1>&6
4477else
be912515
NN
4478 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4479 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
ca9f4b81
AO
4480else
4481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4482 ac_dummy="$PATH"
4483 for ac_dir in $ac_dummy; do
4484 test -z "$ac_dir" && ac_dir=.
4485 if test -f $ac_dir/$ac_word; then
be912515 4486 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
ca9f4b81
AO
4487 break
4488 fi
4489 done
4490 IFS="$ac_save_ifs"
4491fi
4492fi
be912515
NN
4493CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4494if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4495 echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6
ca9f4b81
AO
4496else
4497 echo "$ac_t""no" 1>&6
4498fi
4499
4500fi
be912515 4501if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then
ca9f4b81 4502 if test $build = $target ; then
be912515 4503 ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET
ca9f4b81
AO
4504 # Extract the first word of "nm", so it can be a program name with args.
4505set dummy nm; ac_word=$2
4506echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4507echo "configure:4508: checking for $ac_word" >&5
be912515 4508if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
ca9f4b81
AO
4509 echo $ac_n "(cached) $ac_c" 1>&6
4510else
be912515
NN
4511 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4512 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
ca9f4b81
AO
4513else
4514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4515 ac_dummy="$PATH"
4516 for ac_dir in $ac_dummy; do
4517 test -z "$ac_dir" && ac_dir=.
4518 if test -f $ac_dir/$ac_word; then
be912515 4519 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
ca9f4b81
AO
4520 break
4521 fi
4522 done
4523 IFS="$ac_save_ifs"
be912515 4524 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
ca9f4b81
AO
4525fi
4526fi
be912515
NN
4527ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET"
4528if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4529 echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6
ca9f4b81
AO
4530else
4531 echo "$ac_t""no" 1>&6
4532fi
4533
be912515 4534 CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET
ca9f4b81 4535 else
be912515 4536 CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
ca9f4b81
AO
4537 fi
4538else
be912515 4539 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
ca9f4b81
AO
4540fi
4541
4542 if test -n "$ncn_target_tool_prefix"; then
4543 # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
4544set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4545echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4546echo "configure:4547: checking for $ac_word" >&5
be912515 4547if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
ca9f4b81
AO
4548 echo $ac_n "(cached) $ac_c" 1>&6
4549else
be912515
NN
4550 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4551 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81
AO
4552else
4553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4554 ac_dummy="$PATH"
4555 for ac_dir in $ac_dummy; do
4556 test -z "$ac_dir" && ac_dir=.
4557 if test -f $ac_dir/$ac_word; then
be912515 4558 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib"
ca9f4b81
AO
4559 break
4560 fi
4561 done
4562 IFS="$ac_save_ifs"
4563fi
4564fi
be912515
NN
4565CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4566if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4567 echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6
ca9f4b81
AO
4568else
4569 echo "$ac_t""no" 1>&6
4570fi
4571
4572fi
be912515 4573if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then
ca9f4b81 4574 if test $build = $target ; then
be912515 4575 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET
ca9f4b81
AO
4576 # Extract the first word of "ranlib", so it can be a program name with args.
4577set dummy ranlib; ac_word=$2
4578echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4579echo "configure:4580: checking for $ac_word" >&5
be912515 4580if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
ca9f4b81
AO
4581 echo $ac_n "(cached) $ac_c" 1>&6
4582else
be912515
NN
4583 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4584 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81
AO
4585else
4586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4587 ac_dummy="$PATH"
4588 for ac_dir in $ac_dummy; do
4589 test -z "$ac_dir" && ac_dir=.
4590 if test -f $ac_dir/$ac_word; then
be912515 4591 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib"
ca9f4b81
AO
4592 break
4593 fi
4594 done
4595 IFS="$ac_save_ifs"
be912515 4596 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":"
ca9f4b81
AO
4597fi
4598fi
be912515
NN
4599ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"
4600if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4601 echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6
ca9f4b81
AO
4602else
4603 echo "$ac_t""no" 1>&6
4604fi
4605
be912515 4606 CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET
ca9f4b81 4607 else
be912515 4608 CONFIGURED_RANLIB_FOR_TARGET=":"
ca9f4b81
AO
4609 fi
4610else
be912515 4611 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
ca9f4b81
AO
4612fi
4613
4614 if test -n "$ncn_target_tool_prefix"; then
4615 # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
4616set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4617echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4618echo "configure:4619: checking for $ac_word" >&5
be912515 4619if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
ca9f4b81
AO
4620 echo $ac_n "(cached) $ac_c" 1>&6
4621else
be912515
NN
4622 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4623 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81
AO
4624else
4625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4626 ac_dummy="$PATH"
4627 for ac_dir in $ac_dummy; do
4628 test -z "$ac_dir" && ac_dir=.
4629 if test -f $ac_dir/$ac_word; then
be912515 4630 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
ca9f4b81
AO
4631 break
4632 fi
4633 done
4634 IFS="$ac_save_ifs"
4635fi
4636fi
be912515
NN
4637CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4638if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4639 echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6
ca9f4b81
AO
4640else
4641 echo "$ac_t""no" 1>&6
4642fi
4643
4644fi
be912515 4645if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then
ca9f4b81 4646 if test $build = $target ; then
be912515 4647 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET
ca9f4b81
AO
4648 # Extract the first word of "windres", so it can be a program name with args.
4649set dummy windres; ac_word=$2
4650echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
bebf829d 4651echo "configure:4652: checking for $ac_word" >&5
be912515 4652if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
ca9f4b81
AO
4653 echo $ac_n "(cached) $ac_c" 1>&6
4654else
be912515
NN
4655 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4656 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81
AO
4657else
4658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4659 ac_dummy="$PATH"
4660 for ac_dir in $ac_dummy; do
4661 test -z "$ac_dir" && ac_dir=.
4662 if test -f $ac_dir/$ac_word; then
be912515 4663 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
ca9f4b81
AO
4664 break
4665 fi
4666 done
4667 IFS="$ac_save_ifs"
be912515 4668 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
ca9f4b81
AO
4669fi
4670fi
be912515
NN
4671ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"
4672if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4673 echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6
ca9f4b81
AO
4674else
4675 echo "$ac_t""no" 1>&6
4676fi
4677
be912515 4678 CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET
ca9f4b81 4679 else
be912515 4680 CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
ca9f4b81
AO
4681 fi
4682else
be912515 4683 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
ca9f4b81
AO
4684fi
4685
4977bab6 4686
79c06341 4687
79c06341 4688
e490616e 4689
4977bab6 4690
9e60a678 4691
79c06341 4692
79c06341 4693
79c06341 4694
671aa708 4695
6de9cd9a 4696
671aa708
NN
4697# Fix up target tools.
4698if test "x${build}" = "x${host}" ; then
4699 # In this case, the newly built tools can and should be used,
4700 # so we override the results of the autoconf tests.
4701 # This should really only happen when the tools are actually being built,
4702 # but that's a further refinement. The new build scheme, where
4703 # tools are built into a structure paralleling where they're installed,
4704 # should also eliminate all of this cleanly.
4705 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
4706 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
4707 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
4708 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
4709 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
4710 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
4711 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
be912515
NN
4712else
4713 # Just use the ones we found.
4714 AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)"
4715 AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)"
4716 DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)"
4717 LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)"
4718 NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)"
4719 RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)"
4720 WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)"
671aa708 4721fi
be912515
NN
4722
4723
4724
4725
4726
4727
4728
4729
671aa708
NN
4730# Certain tools may need extra flags.
4731AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4732RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4733NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4734
ee03dc5e 4735echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
bebf829d 4736echo "configure:4737: checking whether to enable maintainer-specific portions of Makefiles" >&5
ee03dc5e
AO
4737# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4738if test "${enable_maintainer_mode+set}" = set; then
4739 enableval="$enable_maintainer_mode"
4740 USE_MAINTAINER_MODE=$enableval
4741else
4742 USE_MAINTAINER_MODE=no
4743fi
4744
4745echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4746
4747
4748if test "$USE_MAINTAINER_MODE" = yes; then
4749 MAINTAINER_MODE_TRUE=
4750 MAINTAINER_MODE_FALSE='#'
4751else
4752 MAINTAINER_MODE_TRUE='#'
4753 MAINTAINER_MODE_FALSE=
4754fi
4755MAINT=$MAINTAINER_MODE_TRUE
4756
2805b53a
NN
4757# ---------------------
4758# GCC bootstrap support
4759# ---------------------
4760
4761# Stage specific cflags for build.
4762stage1_cflags="-g"
4763case $build in
4764 vax-*-*)
4765 case ${GCC} in
4766 yes) stage1_cflags="-g -Wa,-J" ;;
4767 *) stage1_cflags="-g -J" ;;
4768 esac ;;
4769 powerpc-*-darwin*)
4770 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
4771 # sources; use -no-cpp-precomp to get to GNU cpp.
4772 # Apple's GCC has bugs in designated initializer handling, so disable
4773 # that too.
4774 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
4775 ;;
4776esac
4777
4778
148907ea
PB
4779# It makes debugging easier if we create as symlinks the stage directories
4780# gcc for stageN-gcc and stage-prev for stage(N-1). In case this is not
4781# possible, however, we can resort to mv.
4782echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6
bebf829d 4783echo "configure:4784: checking if symbolic links between directories work" >&5
148907ea
PB
4784if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
4785 echo $ac_n "(cached) $ac_c" 1>&6
4786else
4787 if test "${LN_S}" = "ln -s" \
4788 && mkdir confdir.s1 \
4789 && ln -s confdir.s1 confdir.s2 \
4790 && echo timestamp1 > confdir.s1/conftest.1 \
4791 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
4792 && echo timestamp2 > confdir.s2/conftest.2 \
4793 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
4794 && rm -f confdir.s2; then
4795 gcc_cv_prog_ln_s_dir=yes
4796else
4797 gcc_cv_prog_ln_s_dir=yes
4798fi
4799rm -rf confdir.s1 confdir.s2
4800fi
4801
4802echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
4803
4804case ${gcc_cv_prog_ln_s_dir} in
4805 yes)
4806 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
4807 UNDO_LINK_TO_DIR='rm -f $$1' ;;
4808 *)
4809 CREATE_LINK_TO_DIR='mv $$1 $$2'
4810 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
4811esac
4812
4813
4814
2805b53a
NN
4815# Enable -Werror in bootstrap stage2 and later.
4816# Change the default to "no" on release branches.
4817# Check whether --enable-werror or --disable-werror was given.
4818if test "${enable_werror+set}" = set; then
4819 enableval="$enable_werror"
4820 :
4821else
4822 enable_werror=yes
4823fi
4824
09a9c095
NN
4825case ${enable_werror} in
4826 yes) stage2_werror_flag="--enable-werror-always" ;;
4827 *) stage2_werror_flag="" ;;
2805b53a
NN
4828esac
4829
4830
671aa708
NN
4831trap '' 1 2 15
4832cat > confcache <<\EOF
4833# This file is a shell script that caches the results of configure
4834# tests run on this system so they can be shared between configure
4835# scripts and configure runs. It is not useful on other systems.
4836# If it contains results you don't want to keep, you may remove or edit it.
4837#
4838# By default, configure uses ./config.cache as the cache file,
4839# creating it if it does not exist already. You can give configure
4840# the --cache-file=FILE option to use a different cache file; that is
4841# what configure does when it calls configure scripts in
4842# subdirectories, so they share the cache.
4843# Giving --cache-file=/dev/null disables caching, for debugging configure.
4844# config.status only pays attention to the cache file if you give it the
4845# --recheck option to rerun configure.
4846#
79c06341 4847EOF
671aa708
NN
4848# The following way of writing the cache mishandles newlines in values,
4849# but we know of no workaround that is simple, portable, and efficient.
4850# So, don't put newlines in cache variables' values.
4851# Ultrix sh set writes to stderr and can't be redirected directly,
4852# and sets the high bit in the cache file unless we assign to the vars.
4853(set) 2>&1 |
4854 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4855 *ac_space=\ *)
4856 # `set' does not quote correctly, so add quotes (double-quote substitution
4857 # turns \\\\ into \\, and sed turns \\ into \).
4858 sed -n \
4859 -e "s/'/'\\\\''/g" \
4860 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4977bab6 4861 ;;
671aa708
NN
4862 *)
4863 # `set' quotes correctly as required by POSIX, so do not add quotes.
4864 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4865 ;;
4866 esac >> confcache
4867if cmp -s $cache_file confcache; then
4868 :
4869else
4870 if test -w $cache_file; then
4871 echo "updating cache $cache_file"
4872 cat confcache > $cache_file
4873 else
4874 echo "not updating unwritable cache $cache_file"
4875 fi
4977bab6 4876fi
671aa708 4877rm -f confcache
79c06341 4878
671aa708 4879trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
79c06341 4880
671aa708
NN
4881test "x$prefix" = xNONE && prefix=$ac_default_prefix
4882# Let make expand exec_prefix.
4883test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 4884
671aa708
NN
4885# Any assignment to VPATH causes Sun make to only execute
4886# the first set of double-colon rules, so remove it if not needed.
4887# If there is a colon in the path, we need to keep it.
4888if test "x$srcdir" = x.; then
4889 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4890fi
79c06341 4891
671aa708
NN
4892trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4893
4894# Transform confdefs.h into DEFS.
4895# Protect against shell expansion while executing Makefile rules.
4896# Protect against Makefile macro expansion.
a3e8d8b4
LR
4897cat > conftest.defs <<\EOF
4898s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4899s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4900s%\[%\\&%g
4901s%\]%\\&%g
4902s%\$%$$%g
4903EOF
4904DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4905rm -f conftest.defs
4977bab6 4906
4977bab6 4907
671aa708
NN
4908# Without the "./", some shells look in PATH for config.status.
4909: ${CONFIG_STATUS=./config.status}
4977bab6 4910
671aa708
NN
4911echo creating $CONFIG_STATUS
4912rm -f $CONFIG_STATUS
4913cat > $CONFIG_STATUS <<EOF
4914#! /bin/sh
4915# Generated automatically by configure.
4916# Run this file to recreate the current configuration.
4917# This directory was configured as follows,
4918# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4919#
4920# $0 $ac_configure_args
4921#
4922# Compiler output produced by configure, useful for debugging
4923# configure, is in ./config.log if it exists.
4977bab6 4924
671aa708
NN
4925ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4926for ac_option
4927do
4928 case "\$ac_option" in
4929 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4930 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4931 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4932 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4933 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4934 exit 0 ;;
4935 -help | --help | --hel | --he | --h)
4936 echo "\$ac_cs_usage"; exit 0 ;;
4937 *) echo "\$ac_cs_usage"; exit 1 ;;
4977bab6 4938 esac
671aa708 4939done
4977bab6 4940
671aa708 4941ac_given_srcdir=$srcdir
775956d0 4942ac_given_INSTALL="$INSTALL"
79c06341 4943
671aa708
NN
4944trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4945EOF
4946cat >> $CONFIG_STATUS <<EOF
4947
4948# Protect against being on the right side of a sed subst in config.status.
4949sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4950 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4951$ac_vpsub
4952$extrasub
4953s%@SHELL@%$SHELL%g
4954s%@CFLAGS@%$CFLAGS%g
4955s%@CPPFLAGS@%$CPPFLAGS%g
4956s%@CXXFLAGS@%$CXXFLAGS%g
4957s%@FFLAGS@%$FFLAGS%g
4958s%@DEFS@%$DEFS%g
4959s%@LDFLAGS@%$LDFLAGS%g
4960s%@LIBS@%$LIBS%g
4961s%@exec_prefix@%$exec_prefix%g
4962s%@prefix@%$prefix%g
4963s%@program_transform_name@%$program_transform_name%g
4964s%@bindir@%$bindir%g
4965s%@sbindir@%$sbindir%g
4966s%@libexecdir@%$libexecdir%g
4967s%@datadir@%$datadir%g
4968s%@sysconfdir@%$sysconfdir%g
4969s%@sharedstatedir@%$sharedstatedir%g
4970s%@localstatedir@%$localstatedir%g
4971s%@libdir@%$libdir%g
4972s%@includedir@%$includedir%g
4973s%@oldincludedir@%$oldincludedir%g
4974s%@infodir@%$infodir%g
4975s%@mandir@%$mandir%g
4976s%@host@%$host%g
4977s%@host_alias@%$host_alias%g
4978s%@host_cpu@%$host_cpu%g
4979s%@host_vendor@%$host_vendor%g
4980s%@host_os@%$host_os%g
4981s%@target@%$target%g
4982s%@target_alias@%$target_alias%g
4983s%@target_cpu@%$target_cpu%g
4984s%@target_vendor@%$target_vendor%g
4985s%@target_os@%$target_os%g
4986s%@build@%$build%g
4987s%@build_alias@%$build_alias%g
4988s%@build_cpu@%$build_cpu%g
4989s%@build_vendor@%$build_vendor%g
4990s%@build_os@%$build_os%g
775956d0
NN
4991s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4992s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4993s%@INSTALL_DATA@%$INSTALL_DATA%g
ad6717df 4994s%@LN@%$LN%g
148907ea 4995s%@LN_S@%$LN_S%g
3dfabf63 4996s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
8b87bb96
NN
4997s%@build_subdir@%$build_subdir%g
4998s%@host_subdir@%$host_subdir%g
4999s%@target_subdir@%$target_subdir%g
55ffb5ed
NN
5000s%@CC@%$CC%g
5001s%@GNATBIND@%$GNATBIND%g
a76494aa 5002s%@do_compare@%$do_compare%g
6de9cd9a
DN
5003s%@gmplibs@%$gmplibs%g
5004s%@gmpinc@%$gmpinc%g
2805b53a 5005s%@stage1_languages@%$stage1_languages%g
23f6b2f9
PB
5006s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g
5007s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g
5008s%@CONFIGURED_M4@%$CONFIGURED_M4%g
5009s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g
5010s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g
5011s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g
f516a7da 5012s%@default_target@%$default_target%g
671aa708
NN
5013/@serialization_dependencies@/r $serialization_dependencies
5014s%@serialization_dependencies@%%g
5015/@host_makefile_frag@/r $host_makefile_frag
5016s%@host_makefile_frag@%%g
5017/@target_makefile_frag@/r $target_makefile_frag
5018s%@target_makefile_frag@%%g
5019/@alphaieee_frag@/r $alphaieee_frag
5020s%@alphaieee_frag@%%g
5021/@ospace_frag@/r $ospace_frag
5022s%@ospace_frag@%%g
5023s%@SET_LIB_PATH@%$SET_LIB_PATH%g
5024s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
23f6b2f9 5025s%@BUILD_DIR_PREFIX@%$BUILD_DIR_PREFIX%g
671aa708
NN
5026s%@BUILD_PREFIX@%$BUILD_PREFIX%g
5027s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
671aa708
NN
5028s%@gcc_version_trigger@%$gcc_version_trigger%g
5029s%@gcc_version@%$gcc_version%g
5030s%@tooldir@%$tooldir%g
5031s%@build_tooldir@%$build_tooldir%g
5032s%@GDB_TK@%$GDB_TK%g
5033s%@gxx_include_dir@%$gxx_include_dir%g
5034s%@libstdcxx_incdir@%$libstdcxx_incdir%g
671aa708 5035s%@build_configargs@%$build_configargs%g
23f6b2f9 5036s%@build_configdirs@%$build_configdirs%g
671aa708
NN
5037s%@host_configargs@%$host_configargs%g
5038s%@configdirs@%$configdirs%g
671aa708
NN
5039s%@target_configargs@%$target_configargs%g
5040s%@target_configdirs@%$target_configdirs%g
671aa708 5041s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
671aa708 5042s%@config_shell@%$config_shell%g
ca9f4b81
AO
5043s%@AR@%$AR%g
5044s%@ncn_cv_AR@%$ncn_cv_AR%g
5045s%@AS@%$AS%g
5046s%@ncn_cv_AS@%$ncn_cv_AS%g
5047s%@DLLTOOL@%$DLLTOOL%g
5048s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
5049s%@LD@%$LD%g
5050s%@ncn_cv_LD@%$ncn_cv_LD%g
5051s%@NM@%$NM%g
5052s%@ncn_cv_NM@%$ncn_cv_NM%g
5053s%@RANLIB@%$RANLIB%g
5054s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
5055s%@WINDRES@%$WINDRES%g
5056s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
5057s%@OBJCOPY@%$OBJCOPY%g
5058s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
5059s%@OBJDUMP@%$OBJDUMP%g
5060s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
671aa708 5061s%@CXX@%$CXX%g
6691a79e 5062s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
be912515
NN
5063s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
5064s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g
5065s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
5066s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g
5067s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
5068s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g
5069s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
5070s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g
5071s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
5072s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g
5073s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
5074s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g
5075s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
5076s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g
671aa708
NN
5077s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
5078s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
5079s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
5080s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
6de9cd9a 5081s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
671aa708
NN
5082s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
5083s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
5084s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
5085s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
be912515
NN
5086s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
5087s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
5088s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
5089s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
5090s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5091s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
5092s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
ee03dc5e
AO
5093s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5094s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5095s%@MAINT@%$MAINT%g
2805b53a 5096s%@stage1_cflags@%$stage1_cflags%g
148907ea
PB
5097s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
5098s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
09a9c095 5099s%@stage2_werror_flag@%$stage2_werror_flag%g
671aa708
NN
5100
5101CEOF
5102EOF
79c06341 5103
671aa708
NN
5104cat >> $CONFIG_STATUS <<\EOF
5105
5106# Split the substitutions into bite-sized pieces for seds with
5107# small command number limits, like on Digital OSF/1 and HP-UX.
5108ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5109ac_file=1 # Number of current file.
5110ac_beg=1 # First line for current file.
5111ac_end=$ac_max_sed_cmds # Line after last line for current file.
5112ac_more_lines=:
5113ac_sed_cmds=""
5114while $ac_more_lines; do
5115 if test $ac_beg -gt 1; then
5116 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5117 else
5118 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4977bab6 5119 fi
671aa708
NN
5120 if test ! -s conftest.s$ac_file; then
5121 ac_more_lines=false
5122 rm -f conftest.s$ac_file
5123 else
5124 if test -z "$ac_sed_cmds"; then
5125 ac_sed_cmds="sed -f conftest.s$ac_file"
5126 else
5127 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5128 fi
5129 ac_file=`expr $ac_file + 1`
5130 ac_beg=$ac_end
5131 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4977bab6 5132 fi
671aa708
NN
5133done
5134if test -z "$ac_sed_cmds"; then
5135 ac_sed_cmds=cat
4977bab6 5136fi
671aa708 5137EOF
79c06341 5138
671aa708 5139cat >> $CONFIG_STATUS <<EOF
79c06341 5140
671aa708
NN
5141CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5142EOF
5143cat >> $CONFIG_STATUS <<\EOF
5144for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5145 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5146 case "$ac_file" in
5147 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5148 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5149 *) ac_file_in="${ac_file}.in" ;;
5150 esac
79c06341 5151
671aa708 5152 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
79c06341 5153
671aa708
NN
5154 # Remove last slash and all that follows it. Not all systems have dirname.
5155 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5156 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5157 # The file is in a subdirectory.
5158 test ! -d "$ac_dir" && mkdir "$ac_dir"
5159 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5160 # A "../" for each directory in $ac_dir_suffix.
5161 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5162 else
5163 ac_dir_suffix= ac_dots=
5164 fi
79c06341 5165
671aa708
NN
5166 case "$ac_given_srcdir" in
5167 .) srcdir=.
5168 if test -z "$ac_dots"; then top_srcdir=.
5169 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5170 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5171 *) # Relative path.
5172 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5173 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5174 esac
79c06341 5175
775956d0
NN
5176 case "$ac_given_INSTALL" in
5177 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5178 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5179 esac
79c06341 5180
671aa708
NN
5181 echo creating "$ac_file"
5182 rm -f "$ac_file"
5183 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5184 case "$ac_file" in
5185 *Makefile*) ac_comsub="1i\\
5186# $configure_input" ;;
5187 *) ac_comsub= ;;
5188 esac
79c06341 5189
671aa708
NN
5190 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5191 sed -e "$ac_comsub
5192s%@configure_input@%$configure_input%g
5193s%@srcdir@%$srcdir%g
5194s%@top_srcdir@%$top_srcdir%g
775956d0 5195s%@INSTALL@%$INSTALL%g
671aa708
NN
5196" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5197fi; done
5198rm -f conftest.s*
79c06341 5199
671aa708
NN
5200EOF
5201cat >> $CONFIG_STATUS <<EOF
79c06341 5202
671aa708
NN
5203EOF
5204cat >> $CONFIG_STATUS <<\EOF
79c06341
JL
5205
5206exit 0
671aa708
NN
5207EOF
5208chmod +x $CONFIG_STATUS
5209rm -fr confdefs* $ac_clean_files
5210test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
79c06341 5211