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