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