2004-04-21 Andrew Cagney <cagney@redhat.com>
[binutils.git] / configure
blobbbac69a37e2c6fc0d8526abc67408d3fc827c816
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-libada Builds libada directory"
16 ac_help="$ac_help
17 --enable-serial-[{host,target,build}-]configure
18 Force sequential configuration of
19 sub-packages for the host, target or build
20 machine, or all sub-packages"
21 ac_help="$ac_help
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
24 ac_help="$ac_help
25 --enable-werror enable -Werror in bootstrap stage2 and later"
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
30 build=NONE
31 cache_file=./config.cache
32 exec_prefix=NONE
33 host=NONE
34 no_create=
35 nonopt=NONE
36 no_recursion=
37 prefix=NONE
38 program_prefix=NONE
39 program_suffix=NONE
40 program_transform_name=s,x,x,
41 silent=
42 site=
43 srcdir=
44 target=NONE
45 verbose=
46 x_includes=NONE
47 x_libraries=NONE
48 bindir='${exec_prefix}/bin'
49 sbindir='${exec_prefix}/sbin'
50 libexecdir='${exec_prefix}/libexec'
51 datadir='${prefix}/share'
52 sysconfdir='${prefix}/etc'
53 sharedstatedir='${prefix}/com'
54 localstatedir='${prefix}/var'
55 libdir='${exec_prefix}/lib'
56 includedir='${prefix}/include'
57 oldincludedir='/usr/include'
58 infodir='${prefix}/info'
59 mandir='${prefix}/man'
61 # Initialize some other variables.
62 subdirs=
63 MFLAGS= MAKEFLAGS=
64 SHELL=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
66 ac_max_here_lines=12
68 ac_prev=
69 for ac_option
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
79 case "$ac_option" in
80 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81 *) ac_optarg= ;;
82 esac
84 # Accept the important Cygnus configure options, so we can diagnose typos.
86 case "$ac_option" in
88 -bindir | --bindir | --bindi | --bind | --bin | --bi)
89 ac_prev=bindir ;;
90 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91 bindir="$ac_optarg" ;;
93 -build | --build | --buil | --bui | --bu)
94 ac_prev=build ;;
95 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96 build="$ac_optarg" ;;
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" ;;
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" ;;
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; }
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
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; }
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'" ;;
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" ;;
142 -gas | --gas | --ga | --g)
143 # Obsolete; use --with-gas.
144 with_gas=yes ;;
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
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
152 Configuration:
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
158 Directory 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
183 cat << EOF
184 Host 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]
188 Features 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
196 if test -n "$ac_help"; then
197 echo "--enable and --with options recognized:$ac_help"
199 exit 0 ;;
201 -host | --host | --hos | --ho)
202 ac_prev=host ;;
203 -host=* | --host=* | --hos=* | --ho=*)
204 host="$ac_optarg" ;;
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" ;;
213 -infodir | --infodir | --infodi | --infod | --info | --inf)
214 ac_prev=infodir ;;
215 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216 infodir="$ac_optarg" ;;
218 -libdir | --libdir | --libdi | --libd)
219 ac_prev=libdir ;;
220 -libdir=* | --libdir=* | --libdi=* | --libd=*)
221 libdir="$ac_optarg" ;;
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" ;;
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" ;;
239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240 ac_prev=mandir ;;
241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242 mandir="$ac_optarg" ;;
244 -nfp | --nfp | --nf)
245 # Obsolete; use --without-fp.
246 with_fp=no ;;
248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249 | --no-cr | --no-c)
250 no_create=yes ;;
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 ;;
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" ;;
265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266 ac_prev=prefix ;;
267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302 | -silent | --silent | --silen | --sile | --sil)
303 silent=yes ;;
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" ;;
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" ;;
322 -site | --site | --sit)
323 ac_prev=site ;;
324 -site=* | --site=* | --sit=*)
325 site="$ac_optarg" ;;
327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
328 ac_prev=srcdir ;;
329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330 srcdir="$ac_optarg" ;;
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" ;;
339 -target | --target | --targe | --targ | --tar | --ta | --t)
340 ac_prev=target ;;
341 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342 target="$ac_optarg" ;;
344 -v | -verbose | --verbose | --verbos | --verbo | --verb)
345 verbose=yes ;;
347 -version | --version | --versio | --versi | --vers)
348 echo "configure generated by autoconf version 2.13"
349 exit 0 ;;
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; }
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'" ;;
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; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
373 --x)
374 # Obsolete; use --with-x.
375 with_x=yes ;;
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" ;;
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" ;;
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
401 nonopt="$ac_option"
404 esac
405 done
407 if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
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
421 if test "$silent" = yes; then
422 exec 6>/dev/null
423 else
424 exec 6>&1
426 exec 5>./config.log
428 echo "\
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
431 " 1>&5
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
435 ac_configure_args=
436 for ac_arg
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
447 done
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.
454 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
455 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 echo > confdefs.h
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.
466 ac_unique_file=move-if-change
468 # Find the source files, if location was not specified.
469 if 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=..
479 else
480 ac_srcdir_defaulted=no
482 if 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; }
489 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491 # Prefer explicitly selected file to automatically selected ones.
492 if 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"
499 for 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"
504 done
506 if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
508 . $cache_file
509 else
510 echo "creating cache $cache_file"
511 > $cache_file
514 ac_ext=c
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp='$CPP $CPPFLAGS'
517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 cross_compiling=$ac_cv_prog_cc_cross
521 ac_exeext=
522 ac_objext=o
523 if (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=
531 else
532 ac_n= ac_c='\c' ac_t=
537 ac_aux_dir=
538 for 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
548 done
549 if 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; }
552 ac_config_guess=$ac_aux_dir/config.guess
553 ac_config_sub=$ac_aux_dir/config.sub
554 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
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
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.
570 # The aliases save the names the user supplied, while $host etc.
571 # will get canonicalized.
572 case $host---$target---$nonopt in
573 NONE---*---* | *---NONE---* | *---*---NONE) ;;
574 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
575 esac
578 # Make sure we can run config.sub.
579 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
580 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
583 echo $ac_n "checking host system type""... $ac_c" 1>&6
584 echo "configure:585: checking host system type" >&5
586 host_alias=$host
587 case "$host_alias" in
588 NONE)
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 ;;
596 esac
598 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
599 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
600 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
601 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
602 echo "$ac_t""$host" 1>&6
604 echo $ac_n "checking target system type""... $ac_c" 1>&6
605 echo "configure:606: checking target system type" >&5
607 target_alias=$target
608 case "$target_alias" in
609 NONE)
610 case $nonopt in
611 NONE) target_alias=$host_alias ;;
612 *) target_alias=$nonopt ;;
613 esac ;;
614 esac
616 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
617 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$target" 1>&6
622 echo $ac_n "checking build system type""... $ac_c" 1>&6
623 echo "configure:624: checking build system type" >&5
625 build_alias=$build
626 case "$build_alias" in
627 NONE)
628 case $nonopt in
629 NONE) build_alias=$host_alias ;;
630 *) build_alias=$nonopt ;;
631 esac ;;
632 esac
634 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
635 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$build" 1>&6
640 test "$host_alias" != "$target_alias" &&
641 test "$program_prefix$program_suffix$program_transform_name" = \
642 NONENONEs,x,x, &&
643 program_prefix=${target_alias}-
645 if test "$program_transform_name" = s,x,x,; then
646 program_transform_name=
647 else
648 # Double any \ or $. echo might interpret backslashes.
649 cat <<\EOF_SED > conftestsed
650 s,\\,\\\\,g; s,\$,$$,g
651 EOF_SED
652 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
653 rm -f conftestsed
655 test "$program_prefix" != NONE &&
656 program_transform_name="s,^,${program_prefix},; $program_transform_name"
657 # Use a double $ so make ignores it.
658 test "$program_suffix" != NONE &&
659 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
661 # sed with no file args requires a program.
662 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
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.
677 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
678 echo "configure:679: checking for a BSD compatible install" >&5
679 if test -z "$INSTALL"; then
680 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
682 else
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/*) ;;
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.
698 else
699 ac_cv_path_install="$ac_dir/$ac_prog -c"
700 break 2
703 done
705 esac
706 done
707 IFS="$ac_save_IFS"
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"
720 echo "$ac_t""$INSTALL" 1>&6
722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
723 # It thinks the first close brace ends the variable substitution.
724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
728 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
731 # Autoconf M4 include file defining utility macros for complex Canadian
732 # cross builds.
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.
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.
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.
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.
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.
772 # AC_PROG_CPP_WERROR
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.
778 # Sets the shell variable have_gnat to yes or no as appropriate, and
779 # substitutes GNATBIND.
783 ### we might need to use some other shell than /bin/sh for running subshells
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.
788 case "${OSTYPE}" in
789 *win32*)
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
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
805 done
806 IFS="$save_ifs"
807 test -n "${CONFIG_SHELL}" && break
808 done
813 esac
815 config_shell=${CONFIG_SHELL-/bin/sh}
817 progname=$0
818 # if PWD already has a value, it is probably wrong.
819 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
821 # Export original configure arguments for use by sub-configures. These
822 # will be expanded by make, so quote '$'.
823 tmp="$progname $@"
824 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
825 $tmp
826 EOF_SED
827 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
828 rm -f conftestsed.out
831 moveifchange=${srcdir}/move-if-change
833 # Set srcdir to "." if that's what it is.
834 # This is important for multilib support.
835 pwd=`${PWDCMD-pwd}`
836 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
837 if test "${pwd}" = "${srcpwd}" ; then
838 srcdir=.
841 topsrcdir=$srcpwd
843 extra_host_args=
844 # Define the trigger file to make sure configure will re-run whenever
845 # the gcc version number changes.
846 if 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/'`
849 else
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* )
858 # Add to all subconfigure arguments: build, host, and target.
859 ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
861 esac
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.
869 # Subdirs will be configured in the order listed in build_configdirs,
870 # configdirs, or target_configdirs; see the serialization section below.
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.
876 # Double entries in build_configdirs, configdirs, or target_configdirs may
877 # cause circular dependencies and break everything horribly.
879 # these libraries are used by various programs built for the host environment
881 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib"
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.
888 host_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"
890 # libgcj represents the runtime libraries only used by gcj.
891 libgcj="target-libffi \
892 target-boehm-gc \
893 target-zlib \
894 target-qthreads \
895 target-libjava"
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)
900 target_libraries="target-libiberty \
901 target-libgloss \
902 target-newlib \
903 target-libstdc++-v3 \
904 target-libf2c \
905 ${libgcj} \
906 target-libobjc \
907 target-libada"
909 # these tools are built using the target libraries, and are intended to
910 # run only in the target environment
912 # note: any program that *uses* libraries that are in the "target_libraries"
913 # list belongs in this list. those programs are also very likely
914 # candidates for the "native_only" list which follows
916 target_tools="target-examples target-groff target-gperf target-rda"
918 ################################################################################
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.
926 configdirs=`echo ${host_libs} ${host_tools}`
927 target_configdirs=`echo ${target_libraries} ${target_tools}`
929 # Only make build modules if build != host.
930 # This should be done more generally, but at the moment it doesn't matter.
931 if test ${host_alias} != ${build_alias} ; then
932 # This is the only build module.
933 build_modules=libiberty
934 else
935 build_modules=
939 ################################################################################
941 srcname="gnu development package"
943 # This gets set non-empty for some net releases of packages.
944 appdirs=""
946 # Define is_cross_compiler to save on calls to 'test'.
947 is_cross_compiler=
948 if test x"${host}" = x"${target}" ; then
949 is_cross_compiler=no
950 else
951 is_cross_compiler=yes
954 # Find the build and target subdir names.
955 case ${build_alias} in
956 "") build_noncanonical=${build} ;;
957 *) build_noncanonical=${build_alias} ;;
958 esac
960 case ${host_alias} in
961 "") host_noncanonical=${build_noncanonical} ;;
962 *) host_noncanonical=${host_alias} ;;
963 esac
965 case ${target_alias} in
966 "") target_noncanonical=${host_noncanonical} ;;
967 *) target_noncanonical=${target_alias} ;;
968 esac
970 # Prefix 'build-' so this never conflicts with target_subdir.
971 build_subdir="build-${build_noncanonical}"
972 # Not really a subdirectory, but here for completeness.
973 host_subdir=.
974 # No prefix.
975 target_subdir=${target_noncanonical}
978 # Skipdirs are removed silently.
979 skipdirs=
980 # Noconfigdirs are removed loudly.
981 noconfigdirs=""
983 use_gnu_ld=
984 # Make sure we don't let GNU ld be added if we didn't want it.
985 if test x$with_gnu_ld = xno ; then
986 use_gnu_ld=no
987 noconfigdirs="$noconfigdirs ld"
990 use_gnu_as=
991 # Make sure we don't let GNU as be added if we didn't want it.
992 if test x$with_gnu_as = xno ; then
993 use_gnu_as=no
994 noconfigdirs="$noconfigdirs gas"
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.
1000 case ${with_x} in
1001 yes | "") ;; # the default value for this tree is that X11 is available
1003 skipdirs="${skipdirs} tk tix itcl libgui"
1004 # We won't be able to build gdbtk without X.
1005 enable_gdbtk=no
1007 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1008 esac
1010 # Some tools are only suitable for building in a "native" situation.
1011 # Remove these if host!=target.
1012 native_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"
1014 # Similarly, some are only suitable for cross toolchains.
1015 # Remove these if host=target.
1016 cross_only="target-libgloss target-newlib target-opcodes"
1018 case $is_cross_compiler in
1019 no) skipdirs="${skipdirs} ${cross_only}" ;;
1020 yes) skipdirs="${skipdirs} ${native_only}" ;;
1021 esac
1023 # If both --with-headers and --with-libs are specified, default to
1024 # --without-newlib.
1025 if test x"${with_headers}" != x && test x"${with_headers} != xno \
1026 && test x"${with_libs}" != x && test x"${with_libs} != xno ; then
1027 if test x"${with_newlib}" = x ; then
1028 with_newlib=no
1032 # Recognize --with-newlib/--without-newlib.
1033 case ${with_newlib} in
1034 no) skipdirs="${skipdirs} target-newlib" ;;
1035 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1036 esac
1038 # Configure extra directories which are host specific
1040 case "${host}" in
1041 *-cygwin*)
1042 configdirs="$configdirs libtermcap" ;;
1043 esac
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.
1049 case "${host}" in
1050 hppa*64*-*-*)
1051 noconfigdirs="$noconfigdirs byacc"
1053 i[3456789]86-*-vsta)
1054 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext"
1056 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1057 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi"
1059 i[3456789]86-*-mingw32*)
1060 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv"
1061 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1063 i[3456789]86-*-beos*)
1064 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb"
1066 *-*-cygwin*)
1067 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1069 *-*-netbsd*)
1070 noconfigdirs="$noconfigdirs rcs"
1072 ppc*-*-pe)
1073 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv"
1075 powerpc-*-beos*)
1076 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
1078 *-*-darwin*)
1079 noconfigdirs="$noconfigdirs tk itcl tix libgui"
1081 esac
1083 # Check whether --enable-libada or --disable-libada was given.
1084 if test "${enable_libada+set}" = set; then
1085 enableval="$enable_libada"
1086 ENABLE_LIBADA=$enableval
1087 else
1088 ENABLE_LIBADA=yes
1091 if test "${ENABLE_LIBADA}" != "yes" ; then
1092 noconfigdirs="$noconfigdirs target-libada"
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.
1097 libgcj_saved=$libgcj
1098 case $enable_libgcj in
1099 yes)
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=
1106 # Make sure we get it printed in the list of not supported target libs.
1107 noconfigdirs="$noconfigdirs ${libgcj}"
1109 esac
1111 case "${target}" in
1112 *-*-chorusos)
1113 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1115 powerpc-*-darwin*)
1116 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1117 noconfigdirs="$noconfigdirs target-libobjc"
1119 *-*-darwin*)
1120 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1121 noconfigdirs="$noconfigdirs target-libobjc ${libgcj}"
1123 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1124 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1126 *-*-kaos*)
1127 # Remove unsupported stuff on all kaOS configurations.
1128 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-libf2c target-librx"
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"
1133 *-*-netbsd*)
1134 # Skip some stuff on all NetBSD configurations.
1135 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1137 # Skip some stuff that's unsupported on some NetBSD configurations.
1138 case "${target}" in
1139 i*86-*-netbsdelf*) ;;
1140 arm*-*-netbsdelf*) ;;
1142 noconfigdirs="$noconfigdirs ${libgcj}"
1144 esac
1146 *-*-netware)
1147 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
1149 *-*-rtems*)
1150 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1151 case ${target} in
1152 h8300*-*-* | h8500-*-*)
1153 noconfigdirs="$noconfigdirs target-libf2c"
1155 *) ;;
1156 esac
1158 *-*-uclinux*)
1159 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1161 *-*-vxworks*)
1162 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
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"
1170 alpha*-*-*vms*)
1171 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1173 alpha*-*-linux*)
1174 # newlib is not 64 bit ready
1175 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1177 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
1178 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1180 alpha*-*-*)
1181 # newlib is not 64 bit ready
1182 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1184 am33_2.0-*-linux*)
1185 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1187 sh-*-linux*)
1188 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
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
1197 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1198 noconfigdirs="$noconfigdirs target-newlib"
1199 case "${host}" in
1200 *-*-cygwin*) ;; # keep gdb and readline
1201 *) noconfigdirs="$noconfigdirs gdb readline"
1203 esac
1205 arc-*-*)
1206 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1208 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1209 noconfigdirs="$noconfigdirs ${libgcj}"
1211 arm-*-elf* | strongarm-*-elf* | xscale-*-elf*)
1212 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1214 arm-*-pe*)
1215 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1217 arm-*-oabi*)
1218 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1220 thumb-*-coff)
1221 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1223 thumb-*-elf)
1224 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1226 thumb-*-oabi)
1227 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1229 thumb-*-pe)
1230 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1232 arm-*-riscix*)
1233 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1235 avr-*-*)
1236 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1238 c4x-*-* | tic4x-*-*)
1239 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1241 c54x*-*-* | tic54x-*-*)
1242 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1244 cris-*-*)
1245 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1247 d10v-*-*)
1248 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1250 d30v-*-*)
1251 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1253 fr30-*-elf*)
1254 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1256 frv-*-*)
1257 noconfigdirs="$noconfigdirs ${libgcj}"
1259 h8300*-*-*)
1260 noconfigdirs="$noconfigdirs target-libgloss ${libgcj} target-libf2c"
1262 h8500-*-*)
1263 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} target-libf2c"
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"
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.
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}"
1284 i960-*-*)
1285 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1287 ia64*-*-elf*)
1288 # No gdb support yet.
1289 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1291 ia64*-**-hpux*)
1292 # No gdb or ld support yet.
1293 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
1295 i[3456789]86-*-coff | i[3456789]86-*-elf)
1296 noconfigdirs="$noconfigdirs ${libgcj}"
1298 i[3456789]86-*-freebsd* | i[3456789]86-*-kfreebsd*-gnu)
1299 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1301 i[3456789]86-*-linux*)
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
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
1312 noconfigdirs="$noconfigdirs target-newlib"
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.
1320 i[3456789]86-*-mingw32*)
1321 target_configdirs="$target_configdirs target-mingw"
1322 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1324 # Can't build gdb for mingw32 if not native.
1325 case "${host}" in
1326 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1327 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix gnuserv"
1329 esac
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 / /'`
1337 # Can't build gdb for Cygwin if not native.
1338 case "${host}" in
1339 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1340 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv"
1342 esac
1344 i[3456789]86-*-pe)
1345 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1347 i[3456789]86-*-sco3.2v5*)
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}"
1352 i[3456789]86-*-sco*)
1353 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1355 i[3456789]86-*-solaris2*)
1356 noconfigdirs="$noconfigdirs target-libgloss"
1358 i[3456789]86-*-sysv4*)
1359 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1361 i[3456789]86-*-beos*)
1362 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1364 m32r-*-*)
1365 noconfigdirs="$noconfigdirs ${libgcj}"
1367 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1368 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1370 m68k-*-elf*)
1371 noconfigdirs="$noconfigdirs ${libgcj}"
1373 m68k-*-coff*)
1374 noconfigdirs="$noconfigdirs ${libgcj}"
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"
1381 mmix-*-*)
1382 noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss"
1384 mn10200-*-*)
1385 noconfigdirs="$noconfigdirs ${libgcj}"
1387 mn10300-*-*)
1388 noconfigdirs="$noconfigdirs ${libgcj}"
1390 powerpc-*-aix*)
1391 # copied from rs6000-*-* entry
1392 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1394 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1395 target_configdirs="$target_configdirs target-winsup"
1396 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}"
1397 # always build newlib.
1398 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1400 # This is temporary until we can link against shared libraries
1401 powerpcle-*-solaris*)
1402 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}"
1404 powerpc-*-beos*)
1405 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1407 powerpc-*-eabi)
1408 noconfigdirs="$noconfigdirs ${libgcj}"
1410 rs6000-*-lynxos*)
1411 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1413 rs6000-*-aix*)
1414 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1416 rs6000-*-*)
1417 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1419 m68k-apollo-*)
1420 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1422 mips*-*-irix5*)
1423 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1425 mips*-*-irix6*)
1426 # Linking libjava exceeds command-line length limits on at least
1427 # IRIX 6.2, but not on IRIX 6.5.
1428 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1429 # <oldham@codesourcery.com>
1430 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1432 mips*-dec-bsd*)
1433 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1435 mips*-*-bsd*)
1436 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1438 mipstx39-*-*)
1439 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1441 mips64*-*-linux*)
1442 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1444 mips*-*-linux*)
1445 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1447 mips*-*-*)
1448 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1450 romp-*-*)
1451 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1453 sh-*-*)
1454 case "${host}" in
1455 i[3456789]86-*-vsta) ;; # don't add gprof back in
1456 i[3456789]86-*-go32*) ;; # don't add gprof back in
1457 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1458 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1459 esac
1460 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1462 sh64-*-*)
1463 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1465 sparc-*-elf*)
1466 noconfigdirs="$noconfigdirs ${libgcj}"
1468 sparc64-*-elf*)
1469 noconfigdirs="$noconfigdirs ${libgcj}"
1471 sparclite-*-*)
1472 noconfigdirs="$noconfigdirs ${libgcj}"
1474 sparc-*-sunos4*)
1475 noconfigdirs="$noconfigdirs ${libgcj}"
1476 if test x${is_cross_compiler} != xno ; then
1477 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1478 else
1479 use_gnu_ld=no
1482 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1484 v810-*-*)
1485 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1487 v850-*-*)
1488 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1490 v850e-*-*)
1491 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1493 v850ea-*-*)
1494 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1496 vax-*-vms)
1497 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1499 vax-*-*)
1500 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1502 xtensa-*-*)
1503 noconfigdirs="$noconfigdirs ${libgcj}"
1505 ip2k-*-*)
1506 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1508 *-*-linux*)
1509 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1511 *-*-lynxos*)
1512 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1514 *-*-*)
1515 noconfigdirs="$noconfigdirs ${libgcj}"
1517 esac
1519 # If we aren't building newlib, then don't build libgloss, since libgloss
1520 # depends upon some newlib header files.
1521 case "${noconfigdirs}" in
1522 *target-libgloss*) ;;
1523 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1524 esac
1526 # Work in distributions that contain no compiler tools, like Autoconf.
1527 tentative_cc=""
1528 host_makefile_frag=/dev/null
1529 if test -d ${srcdir}/config ; then
1530 case "${host}" in
1531 m68k-hp-hpux*)
1532 # Avoid "too much defining" errors from HPUX compiler.
1533 tentative_cc="cc -Wp,-H256000"
1534 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1535 # If it's HP/UX ar, this should be harmless.
1536 RANLIB="ar ts"
1538 m68k-apollo-sysv*)
1539 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1541 m68k-apollo-bsd*)
1542 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1543 # chokes on bfd, the compiler won't let you assign integers to enums, and
1544 # other problems. Defining CC to gcc is a questionable way to say "don't use
1545 # the apollo compiler" (the preferred version of GCC could be called cc,
1546 # or whatever), but I'm not sure leaving CC as cc is any better...
1547 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1548 # Used to have BISON=yacc.
1549 tentative_cc=gcc
1551 m88k-dg-dgux*)
1552 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1554 m88k-harris-cxux*)
1555 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1556 tentative_cc="cc -Xa"
1557 host_makefile_frag="config/mh-cxux"
1559 m88k-motorola-sysv*)
1561 mips*-dec-ultrix*)
1562 tentative_cc="cc -Wf,-XNg1000"
1563 host_makefile_frag="config/mh-decstation"
1565 mips*-nec-sysv4*)
1566 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1567 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1568 host_makefile_frag="config/mh-necv4"
1570 mips*-sgi-irix4*)
1571 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1572 # environment. Also bump switch table size so that cp-parse will
1573 # compile. Bump string length limit so linker builds.
1574 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1576 mips*-*-sysv4*)
1577 host_makefile_frag="config/mh-sysv4"
1579 mips*-*-sysv*)
1580 # This is for a MIPS running RISC/os 4.52C.
1582 # This is needed for GDB, but needs to be in the top-level make because
1583 # if a library is compiled with the bsd headers and gets linked with the
1584 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1585 # a different size).
1586 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1587 # known except to select the sysv environment. Could we use /proc instead?
1588 # These "sysv environments" and "bsd environments" often end up being a pain.
1590 # This is not part of CFLAGS because perhaps not all C compilers have this
1591 # option.
1592 tentative_cc="cc -systype sysv"
1594 i370-ibm-opened*)
1595 tentative_cc="c89"
1597 i[3456789]86-*-sysv5*)
1598 host_makefile_frag="config/mh-sysv5"
1600 i[3456789]86-*-dgux*)
1601 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1602 host_makefile_frag="config/mh-dgux386"
1604 i[3456789]86-ncr-sysv4.3*)
1605 # The MetaWare compiler will generate a copyright message unless you
1606 # turn it off by adding the -Hnocopyr flag.
1607 tentative_cc="cc -Hnocopyr"
1609 i[3456789]86-ncr-sysv4*)
1610 # for an NCR 3000 (i486/SVR4) system.
1611 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1612 # This compiler not only emits obnoxious copyright messages every time
1613 # you run it, but it chokes and dies on a whole bunch of GNU source
1614 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1615 tentative_cc="/usr/ccs/ATT/cc"
1616 host_makefile_frag="config/mh-ncr3000"
1618 i[3456789]86-*-sco3.2v5*)
1620 i[3456789]86-*-sco*)
1621 # The native C compiler botches some simple uses of const. Unfortunately,
1622 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1623 tentative_cc="cc -Dconst="
1624 host_makefile_frag="config/mh-sco"
1626 i[3456789]86-*-udk*)
1627 host_makefile_frag="config/mh-sysv5"
1629 i[3456789]86-*-solaris2*)
1630 host_makefile_frag="config/mh-sysv4"
1632 i[3456789]86-*-msdosdjgpp*)
1633 host_makefile_frag="config/mh-djgpp"
1635 *-cygwin*)
1636 host_makefile_frag="config/mh-cygwin"
1638 *-mingw32*)
1639 host_makefile_frag="config/mh-mingw32"
1641 *-interix*)
1642 host_makefile_frag="config/mh-interix"
1644 vax-*-ultrix2*)
1645 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1646 tentative_cc=gcc
1648 *-*-solaris2*)
1649 host_makefile_frag="config/mh-solaris"
1651 m68k-sun-sunos*)
1652 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1653 # without overflowing the jump tables (-J says to use a 32 bit table)
1654 tentative_cc="cc -J"
1656 *-hp-hpux*)
1657 tentative_cc="cc -Wp,-H256000"
1659 *-*-hiux*)
1660 tentative_cc="cc -Wp,-H256000"
1662 rs6000-*-lynxos*)
1663 # /bin/cc is less than useful for our purposes. Always use GCC
1664 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1665 host_makefile_frag="config/mh-lynxrs6k"
1667 *-*-lynxos*)
1668 # /bin/cc is less than useful for our purposes. Always use GCC
1669 tentative_cc="/bin/gcc"
1671 *-*-sysv4*)
1672 host_makefile_frag="config/mh-sysv4"
1674 esac
1677 # If we aren't going to be using gcc, see if we can extract a definition
1678 # of CC from the fragment.
1679 # Actually, use the 'pre-extracted' version above.
1680 if test -z "${CC}" && test "${build}" = "${host}" ; then
1681 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1682 found=
1683 for dir in $PATH; do
1684 test -z "$dir" && dir=.
1685 if test -f $dir/gcc; then
1686 found=yes
1687 break
1689 done
1690 IFS="$save_ifs"
1691 if test -z "${found}" && test -n "${tentative_cc}" ; then
1692 CC=$tentative_cc
1696 if test "${build}" != "${host}" ; then
1697 # If we are doing a Canadian Cross, in which the host and build systems
1698 # are not the same, we set reasonable default values for the tools.
1700 BISON=${BISON-bison}
1701 CC=${CC-${host_alias}-gcc}
1702 CFLAGS=${CFLAGS-"-g -O2"}
1703 CXX=${CXX-${host_alias}-c++}
1704 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1705 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1706 CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc}
1707 CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
1708 GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
1709 GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
1710 BUILD_PREFIX=${build_alias}-
1711 BUILD_PREFIX_1=${build_alias}-
1712 MAKEINFO=${MAKEINFO-makeinfo}
1714 if test -z "${YACC}" ; then
1715 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1716 for dir in $PATH; do
1717 test -z "$dir" && dir=.
1718 if test -f $dir/bison; then
1719 YACC="bison -y"
1720 break
1722 if test -f $dir/byacc; then
1723 YACC=byacc
1724 break
1726 if test -f $dir/yacc; then
1727 YACC=yacc
1728 break
1730 done
1731 IFS="$save_ifs"
1732 if test -z "${YACC}" ; then
1733 YACC="bison -y"
1737 if test -z "${LEX}" ; then
1738 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1739 for dir in $PATH; do
1740 test -z "$dir" && dir=.
1741 if test -f $dir/flex; then
1742 LEX=flex
1743 break
1745 if test -f $dir/lex; then
1746 LEX=lex
1747 break
1749 done
1750 IFS="$save_ifs"
1751 LEX=${LEX-flex}
1754 else
1755 # Set reasonable default values for some tools even if not Canadian.
1756 # Of course, these are different reasonable default values, originally
1757 # specified directly in the Makefile.
1758 # We don't export, so that autoconf can do its job.
1759 # Note that all these settings are above the fragment inclusion point
1760 # in Makefile.in, so can still be overridden by fragments.
1761 # This is all going to change when we autoconfiscate...
1763 BISON="\$(USUAL_BISON)"
1764 CC_FOR_BUILD="\$(CC)"
1765 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
1766 BUILD_PREFIX=
1767 BUILD_PREFIX_1=loser-
1768 MAKEINFO="\$(USUAL_MAKEINFO)"
1769 LEX="\$(USUAL_LEX)"
1770 YACC="\$(USUAL_YACC)"
1772 # If CC is still not set, try to get gcc.
1773 cc_prog_is_gcc=
1774 if test -z "${CC}" ; then
1775 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1776 for dir in $PATH; do
1777 test -z "$dir" && dir=.
1778 if test -f $dir/gcc; then
1779 CC="gcc"
1780 cc_prog_is_gcc=yes
1781 echo 'void f(){}' > conftest.c
1782 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1783 CFLAGS=${CFLAGS-"-g -O2"}
1784 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1785 else
1786 CFLAGS=${CFLAGS-"-O2"}
1787 CXXFLAGS=${CXXFLAGS-"-O2"}
1789 rm -f conftest*
1790 break
1792 done
1793 IFS="$save_ifs"
1794 CC=${CC-cc}
1795 else
1796 # Determine if we are using gcc.
1797 cat > conftest.c <<EOF
1798 #ifdef __GNUC__
1799 yes;
1800 #endif
1802 if ${CC} -E conftest.c | grep yes >/dev/null 2>&1; then
1803 cc_prog_is_gcc=yes
1805 rm -f conftest.c
1806 if test -z "${CFLAGS}"; then
1807 # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
1808 # is set to a version of gcc.
1809 if test "$cc_prog_is_gcc" = yes; then
1810 echo 'void f(){}' > conftest.c
1811 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1812 CFLAGS=${CFLAGS-"-g -O2"}
1813 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1814 else
1815 CFLAGS=${CFLAGS-"-O2"}
1816 CXXFLAGS=${CXXFLAGS-"-O2"}
1818 rm -f conftest*
1823 # We must set the default linker to the linker used by gcc for the correct
1824 # operation of libtool. If LD is not defined and we are using gcc, try to
1825 # set the LD default to the ld used by gcc.
1826 if test -z "$LD"; then
1827 if test "$cc_prog_is_gcc" = yes; then
1828 case $build in
1829 *-*-mingw*)
1830 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
1832 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
1833 esac
1834 case $gcc_prog_ld in
1835 # Accept absolute paths.
1836 [\\/]* | [A-Za-z]:[\\/]*)
1837 LD="$gcc_prog_ld" ;;
1838 esac
1842 CXX=${CXX-"c++"}
1843 CFLAGS=${CFLAGS-"-g"}
1844 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1847 if test $host != $build; then
1848 ac_tool_prefix=${host_alias}-
1849 else
1850 ac_tool_prefix=
1853 # Extract the first word of "gcc", so it can be a program name with args.
1854 set dummy gcc; ac_word=$2
1855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1856 echo "configure:1857: checking for $ac_word" >&5
1857 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1859 else
1860 if test -n "$CC"; then
1861 ac_cv_prog_CC="$CC" # Let the user override the test.
1862 else
1863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1864 ac_dummy="$PATH"
1865 for ac_dir in $ac_dummy; do
1866 test -z "$ac_dir" && ac_dir=.
1867 if test -f $ac_dir/$ac_word; then
1868 ac_cv_prog_CC="gcc"
1869 break
1871 done
1872 IFS="$ac_save_ifs"
1875 CC="$ac_cv_prog_CC"
1876 if test -n "$CC"; then
1877 echo "$ac_t""$CC" 1>&6
1878 else
1879 echo "$ac_t""no" 1>&6
1882 if test -z "$CC"; then
1883 # Extract the first word of "cc", so it can be a program name with args.
1884 set dummy cc; ac_word=$2
1885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1886 echo "configure:1887: checking for $ac_word" >&5
1887 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1889 else
1890 if test -n "$CC"; then
1891 ac_cv_prog_CC="$CC" # Let the user override the test.
1892 else
1893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1894 ac_prog_rejected=no
1895 ac_dummy="$PATH"
1896 for ac_dir in $ac_dummy; do
1897 test -z "$ac_dir" && ac_dir=.
1898 if test -f $ac_dir/$ac_word; then
1899 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1900 ac_prog_rejected=yes
1901 continue
1903 ac_cv_prog_CC="cc"
1904 break
1906 done
1907 IFS="$ac_save_ifs"
1908 if test $ac_prog_rejected = yes; then
1909 # We found a bogon in the path, so make sure we never use it.
1910 set dummy $ac_cv_prog_CC
1911 shift
1912 if test $# -gt 0; then
1913 # We chose a different compiler from the bogus one.
1914 # However, it has the same basename, so the bogon will be chosen
1915 # first if we set CC to just the basename; use the full file name.
1916 shift
1917 set dummy "$ac_dir/$ac_word" "$@"
1918 shift
1919 ac_cv_prog_CC="$@"
1924 CC="$ac_cv_prog_CC"
1925 if test -n "$CC"; then
1926 echo "$ac_t""$CC" 1>&6
1927 else
1928 echo "$ac_t""no" 1>&6
1931 if test -z "$CC"; then
1932 case "`uname -s`" in
1933 *win32* | *WIN32*)
1934 # Extract the first word of "cl", so it can be a program name with args.
1935 set dummy cl; ac_word=$2
1936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1937 echo "configure:1938: checking for $ac_word" >&5
1938 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1940 else
1941 if test -n "$CC"; then
1942 ac_cv_prog_CC="$CC" # Let the user override the test.
1943 else
1944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1945 ac_dummy="$PATH"
1946 for ac_dir in $ac_dummy; do
1947 test -z "$ac_dir" && ac_dir=.
1948 if test -f $ac_dir/$ac_word; then
1949 ac_cv_prog_CC="cl"
1950 break
1952 done
1953 IFS="$ac_save_ifs"
1956 CC="$ac_cv_prog_CC"
1957 if test -n "$CC"; then
1958 echo "$ac_t""$CC" 1>&6
1959 else
1960 echo "$ac_t""no" 1>&6
1963 esac
1965 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1968 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1969 echo "configure:1970: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1971 ac_ext=c
1972 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1975 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1976 cross_compiling=$ac_cv_prog_cc_cross
1978 cat > conftest.$ac_ext << EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1983 main(){return(0);}
1985 if { (eval echo configure:1986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1986 ac_cv_prog_cc_works=yes
1987 # If we can't run a trivial program, we are probably using a cross compiler.
1988 if (./conftest; exit) 2>/dev/null; then
1989 ac_cv_prog_cc_cross=no
1990 else
1991 ac_cv_prog_cc_cross=yes
1993 else
1994 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5
1996 ac_cv_prog_cc_works=no
1998 rm -fr conftest*
1999 ac_ext=c
2000 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2003 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2004 cross_compiling=$ac_cv_prog_cc_cross
2006 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2007 if test $ac_cv_prog_cc_works = no; then
2008 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2010 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2011 echo "configure:2012: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2012 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2013 cross_compiling=$ac_cv_prog_cc_cross
2015 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2016 echo "configure:2017: checking whether we are using GNU C" >&5
2017 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2019 else
2020 cat > conftest.c <<EOF
2021 #ifdef __GNUC__
2022 yes;
2023 #endif
2025 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2026 ac_cv_prog_gcc=yes
2027 else
2028 ac_cv_prog_gcc=no
2032 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2034 if test $ac_cv_prog_gcc = yes; then
2035 GCC=yes
2036 else
2037 GCC=
2040 ac_test_CFLAGS="${CFLAGS+set}"
2041 ac_save_CFLAGS="$CFLAGS"
2042 CFLAGS=
2043 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2044 echo "configure:2045: checking whether ${CC-cc} accepts -g" >&5
2045 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2047 else
2048 echo 'void f(){}' > conftest.c
2049 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2050 ac_cv_prog_cc_g=yes
2051 else
2052 ac_cv_prog_cc_g=no
2054 rm -f conftest*
2058 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2059 if test "$ac_test_CFLAGS" = set; then
2060 CFLAGS="$ac_save_CFLAGS"
2061 elif test $ac_cv_prog_cc_g = yes; then
2062 if test "$GCC" = yes; then
2063 CFLAGS="-g -O2"
2064 else
2065 CFLAGS="-g"
2067 else
2068 if test "$GCC" = yes; then
2069 CFLAGS="-O2"
2070 else
2071 CFLAGS=
2077 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2078 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2080 echo "configure:2081: checking for $ac_word" >&5
2081 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2083 else
2084 if test -n "$GNATBIND"; then
2085 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2086 else
2087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2088 ac_dummy="$PATH"
2089 for ac_dir in $ac_dummy; do
2090 test -z "$ac_dir" && ac_dir=.
2091 if test -f $ac_dir/$ac_word; then
2092 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2093 break
2095 done
2096 IFS="$ac_save_ifs"
2099 GNATBIND="$ac_cv_prog_GNATBIND"
2100 if test -n "$GNATBIND"; then
2101 echo "$ac_t""$GNATBIND" 1>&6
2102 else
2103 echo "$ac_t""no" 1>&6
2107 if test -z "$ac_cv_prog_GNATBIND"; then
2108 if test -n "$ac_tool_prefix"; then
2109 # Extract the first word of "gnatbind", so it can be a program name with args.
2110 set dummy gnatbind; ac_word=$2
2111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2112 echo "configure:2113: checking for $ac_word" >&5
2113 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2115 else
2116 if test -n "$GNATBIND"; then
2117 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2118 else
2119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2120 ac_dummy="$PATH"
2121 for ac_dir in $ac_dummy; do
2122 test -z "$ac_dir" && ac_dir=.
2123 if test -f $ac_dir/$ac_word; then
2124 ac_cv_prog_GNATBIND="gnatbind"
2125 break
2127 done
2128 IFS="$ac_save_ifs"
2129 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2132 GNATBIND="$ac_cv_prog_GNATBIND"
2133 if test -n "$GNATBIND"; then
2134 echo "$ac_t""$GNATBIND" 1>&6
2135 else
2136 echo "$ac_t""no" 1>&6
2139 else
2140 GNATBIND="no"
2144 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2145 echo "configure:2146: checking whether compiler driver understands Ada" >&5
2146 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2148 else
2149 cat >conftest.adb <<EOF
2150 procedure conftest is begin null; end conftest;
2152 acx_cv_cc_gcc_supports_ada=no
2153 # There is a bug in old released versions of GCC which causes the
2154 # driver to exit successfully when the appropriate language module
2155 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2156 # Therefore we must check for the error message as well as an
2157 # unsuccessful exit.
2158 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2159 if test x"$errors" = x; then
2160 acx_cv_cc_gcc_supports_ada=yes
2161 break
2163 rm -f conftest.*
2166 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2168 if test x$GNATBIND != xno && test x$acx_cv_gcc_supports_ada != xno; then
2169 have_gnat=yes
2170 else
2171 have_gnat=no
2175 # By default, C is the only stage 1 language.
2176 stage1_languages=c
2179 # Figure out what language subdirectories are present.
2180 # Look if the user specified --enable-languages="..."; if not, use
2181 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2182 # go away some day.
2183 # NB: embedded tabs in this IF block -- do not untabify
2184 if test -d ${srcdir}/gcc; then
2185 if test x"${enable_languages+set}" != xset; then
2186 if test x"${LANGUAGES+set}" = xset; then
2187 enable_languages="${LANGUAGES}"
2188 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2189 else
2190 enable_languages=all
2192 else
2193 if test x"${enable_languages}" = x ||
2194 test x"${enable_languages}" = xyes;
2195 then
2196 echo configure.in: --enable-languages needs at least one language argument 1>&2
2197 exit 1
2200 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2202 # First scan to see if an enabled language requires some other language.
2203 # We assume that a given config-lang.in will list all the language
2204 # front ends it requires, even if some are required indirectly.
2205 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2206 case ${lang_frag} in
2207 ..) ;;
2208 # The odd quoting in the next line works around
2209 # an apparent bug in bash 1.12 on linux.
2210 ${srcdir}/gcc/[*]/config-lang.in) ;;
2212 # From the config-lang.in, get $language, $lang_requires
2213 language=
2214 lang_requires=
2215 . ${lang_frag}
2216 for other in ${lang_requires} ; do
2217 case ,${enable_languages}, in
2218 *,$other,*) ;;
2219 *,all,*) ;;
2220 *,$language,*)
2221 echo " \`$other' language required by \`$language'; enabling" 1>&2
2222 enable_languages="${enable_languages},${other}"
2224 esac
2225 done
2227 esac
2228 done
2230 new_enable_languages=c
2231 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2233 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2234 case ${lang_frag} in
2235 ..) ;;
2236 # The odd quoting in the next line works around
2237 # an apparent bug in bash 1.12 on linux.
2238 ${srcdir}/gcc/[*]/config-lang.in) ;;
2240 # From the config-lang.in, get $language, $target_libs,
2241 # $lang_dirs, $boot_language, and $build_by_default
2242 language=
2243 target_libs=
2244 lang_dirs=
2245 boot_language=
2246 build_by_default=
2247 . ${lang_frag}
2248 # This is quite sensitive to the ordering of the case statement arms.
2249 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2250 *::*:*)
2251 echo "${lang_frag} doesn't set \$language." 1>&2
2252 exit 1
2254 *:ada:no:*)
2255 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2256 add_this_lang=no
2258 *,${language},*:*:*:*)
2259 # Language was explicitly selected; include it.
2260 add_this_lang=yes
2262 *,all,*:*:*:no)
2263 # 'all' was selected, but this is not a default language
2264 # so do not include it.
2265 add_this_lang=no
2267 *,all,*:*:*:*)
2268 # 'all' was selected and this is a default language; include it.
2269 add_this_lang=yes
2272 add_this_lang=no
2274 esac
2275 case $add_this_lang in
2277 # Remove language-dependent dirs.
2278 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2281 new_enable_languages="$new_enable_languages,$language"
2282 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2283 case ${boot_language} in
2284 yes)
2285 # Add to (comma-separated) list of stage 1 languages.
2286 stage1_languages="${stage1_languages},${language}"
2288 esac
2290 esac
2292 esac
2293 done
2295 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2296 if test "x$missing_languages" != x; then
2297 { echo "configure: error:
2298 The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; }
2301 if test "x$new_enable_languages" != "x$enable_languages"; then
2302 echo The following languages will be built: ${new_enable_languages}
2304 enable_languages="$new_enable_languages"
2305 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2308 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
2309 # $target_configdirs.
2310 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2312 notsupp=""
2313 for dir in . $skipdirs $noconfigdirs ; do
2314 dirname=`echo $dir | sed -e s/target-//g`
2315 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2316 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2317 if test -r $srcdir/$dirname/configure ; then
2318 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2319 true
2320 else
2321 notsupp="$notsupp $dir"
2325 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2326 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2327 if test -r $srcdir/$dirname/configure ; then
2328 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2329 true
2330 else
2331 notsupp="$notsupp $dir"
2335 done
2337 # Sometimes the tools are distributed with libiberty but with no other
2338 # libraries. In that case, we don't want to build target-libiberty.
2339 if test -n "${target_configdirs}" ; then
2340 others=
2341 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2342 if test "$i" != "libiberty" ; then
2343 if test -r $srcdir/$i/configure ; then
2344 others=yes;
2345 break;
2348 done
2349 if test -z "${others}" ; then
2350 target_configdirs=
2354 # Quietly strip out all directories which aren't configurable in this tree.
2355 # This relies on all configurable subdirectories being autoconfiscated, which
2356 # is now the case.
2357 configdirs_all="$configdirs"
2358 configdirs=
2359 for i in ${configdirs_all} ; do
2360 if test -f ${srcdir}/$i/configure ; then
2361 configdirs="${configdirs} $i"
2363 done
2364 target_configdirs_all="$target_configdirs"
2365 target_configdirs=
2366 for i in ${target_configdirs_all} ; do
2367 j=`echo $i | sed -e s/target-//g`
2368 if test -f ${srcdir}/$j/configure ; then
2369 target_configdirs="${target_configdirs} $i"
2371 done
2373 # Produce a warning message for the subdirs we can't configure.
2374 # This isn't especially interesting in the Cygnus tree, but in the individual
2375 # FSF releases, it's important to let people know when their machine isn't
2376 # supported by the one or two programs in a package.
2378 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2379 # If $appdirs is non-empty, at least one of those directories must still
2380 # be configured, or we error out. (E.g., if the gas release supports a
2381 # specified target in some subdirs but not the gas subdir, we shouldn't
2382 # pretend that all is well.)
2383 if test -n "$appdirs" ; then
2384 for dir in $appdirs ; do
2385 if test -r $dir/Makefile.in ; then
2386 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2387 appdirs=""
2388 break
2390 if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2391 appdirs=""
2392 break
2395 done
2396 if test -n "$appdirs" ; then
2397 echo "*** This configuration is not supported by this package." 1>&2
2398 exit 1
2401 # Okay, some application will build, or we don't care to check. Still
2402 # notify of subdirs not getting built.
2403 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2404 echo " ${notsupp}" 1>&2
2405 echo " (Any other directories should still work fine.)" 1>&2
2408 case "$host" in
2409 *msdosdjgpp*)
2410 enable_gdbtk=no ;;
2411 esac
2413 copy_dirs=
2415 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2416 # the named directory are copied to $(tooldir)/sys-include.
2417 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2418 if test x${is_cross_compiler} = xno ; then
2419 echo 1>&2 '***' --with-headers is only supported when cross compiling
2420 exit 1
2422 if test x"${with_headers}" != xyes ; then
2423 case "${exec_prefixoption}" in
2424 "") x=${prefix} ;;
2425 *) x=${exec_prefix} ;;
2426 esac
2427 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2431 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2432 # the name directories are copied to $(tooldir)/lib. Multiple directories
2433 # are permitted.
2434 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2435 if test x${is_cross_compiler} = xno ; then
2436 echo 1>&2 '***' --with-libs is only supported when cross compiling
2437 exit 1
2439 if test x"${with_libs}" != xyes ; then
2440 # Copy the libraries in reverse order, so that files in the first named
2441 # library override files in subsequent libraries.
2442 case "${exec_prefixoption}" in
2443 "") x=${prefix} ;;
2444 *) x=${exec_prefix} ;;
2445 esac
2446 for l in ${with_libs}; do
2447 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2448 done
2452 # Handle ${copy_dirs}
2453 set fnord ${copy_dirs}
2454 shift
2455 while test $# != 0 ; do
2456 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2458 else
2459 echo Copying $1 to $2
2461 # Use the install script to create the directory and all required
2462 # parent directories.
2463 if test -d $2 ; then
2465 else
2466 echo >config.temp
2467 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2470 # Copy the directory, assuming we have tar.
2471 # FIXME: Should we use B in the second tar? Not all systems support it.
2472 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2474 # It is the responsibility of the user to correctly adjust all
2475 # symlinks. If somebody can figure out how to handle them correctly
2476 # here, feel free to add the code.
2478 echo $1 > $2/COPIED
2480 shift; shift
2481 done
2483 extra_arflags_for_target=
2484 extra_nmflags_for_target=
2485 extra_ranlibflags_for_target=
2486 target_makefile_frag=/dev/null
2487 case "${target}" in
2488 i[3456789]86-*-netware*)
2489 target_makefile_frag="config/mt-netware"
2491 powerpc-*-netware*)
2492 target_makefile_frag="config/mt-netware"
2494 *-*-linux*)
2495 target_makefile_frag="config/mt-linux"
2497 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2498 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2499 # commands to handle both 32-bit and 64-bit objects. These flags are
2500 # harmless if we're using GNU nm or ar.
2501 extra_arflags_for_target=" -X32_64"
2502 extra_nmflags_for_target=" -B -X32_64"
2504 *-*-darwin*)
2505 # ranlib from Darwin requires the -c flag to look at common symbols.
2506 extra_ranlibflags_for_target=" -c"
2508 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2509 target_makefile_frag="config/mt-wince"
2511 esac
2513 alphaieee_frag=/dev/null
2514 case $target in
2515 alpha*-*-*)
2516 # This just makes sure to use the -mieee option to build target libs.
2517 # This should probably be set individually by each library.
2518 alphaieee_frag="config/mt-alphaieee"
2520 esac
2522 # If --enable-target-optspace always use -Os instead of -O2 to build
2523 # the target libraries, similarly if it is not specified, use -Os
2524 # on selected platforms.
2525 ospace_frag=/dev/null
2526 case "${enable_target_optspace}:${target}" in
2527 yes:*)
2528 ospace_frag="config/mt-ospace"
2530 :d30v-*)
2531 ospace_frag="config/mt-d30v"
2533 :m32r-* | :d10v-* | :fr30-*)
2534 ospace_frag="config/mt-ospace"
2536 no:* | :*)
2539 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2541 esac
2543 # Set with_gnu_as and with_gnu_ld as appropriate.
2545 # This is done by determining whether or not the appropriate directory
2546 # is available, and by checking whether or not specific configurations
2547 # have requested that this magic not happen.
2549 # The command line options always override the explicit settings in
2550 # configure.in, and the settings in configure.in override this magic.
2552 # If the default for a toolchain is to use GNU as and ld, and you don't
2553 # want to do that, then you should use the --without-gnu-as and
2554 # --without-gnu-ld options for the configure script.
2556 if test x${use_gnu_as} = x &&
2557 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2558 with_gnu_as=yes
2559 extra_host_args="$extra_host_args --with-gnu-as"
2562 if test x${use_gnu_ld} = x &&
2563 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2564 with_gnu_ld=yes
2565 extra_host_args="$extra_host_args --with-gnu-ld"
2568 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2569 # can detect this case.
2571 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2572 with_newlib=yes
2573 extra_host_args="$extra_host_args --with-newlib"
2577 # Default to using --with-stabs for certain targets.
2578 if test x${with_stabs} = x ; then
2579 case "${target}" in
2580 mips*-*-irix[56]*)
2582 mips*-*-* | alpha*-*-osf*)
2583 with_stabs=yes;
2584 extra_host_args="${extra_host_args} --with-stabs"
2586 esac
2589 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2590 # them automatically.
2591 case "${host}" in
2592 hppa*64*-*-hpux11*)
2593 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2595 esac
2597 # Some systems (e.g., one of the i386-aix systems the gas testers are
2598 # using) don't handle "\$" correctly, so don't use it here.
2599 tooldir='${exec_prefix}'/${target_alias}
2600 build_tooldir=${tooldir}
2602 # Generate default definitions for YACC, M4, LEX. These are used if the
2603 # Makefile can't locate these programs in objdir.
2604 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2605 for ac_prog in 'bison -y' byacc yacc
2607 # Extract the first word of "$ac_prog", so it can be a program name with args.
2608 set dummy $ac_prog; ac_word=$2
2609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2610 echo "configure:2611: checking for $ac_word" >&5
2611 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_YACC'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2613 else
2614 if test -n "$DEFAULT_YACC"; then
2615 ac_cv_prog_DEFAULT_YACC="$DEFAULT_YACC" # Let the user override the test.
2616 else
2617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2618 ac_dummy="$PATH"
2619 for ac_dir in $ac_dummy; do
2620 test -z "$ac_dir" && ac_dir=.
2621 if test -f $ac_dir/$ac_word; then
2622 ac_cv_prog_DEFAULT_YACC="$ac_prog"
2623 break
2625 done
2626 IFS="$ac_save_ifs"
2629 DEFAULT_YACC="$ac_cv_prog_DEFAULT_YACC"
2630 if test -n "$DEFAULT_YACC"; then
2631 echo "$ac_t""$DEFAULT_YACC" 1>&6
2632 else
2633 echo "$ac_t""no" 1>&6
2636 test -n "$DEFAULT_YACC" && break
2637 done
2638 test -n "$DEFAULT_YACC" || DEFAULT_YACC="$MISSING bison"
2640 for ac_prog in gm4 gnum4 m4
2642 # Extract the first word of "$ac_prog", so it can be a program name with args.
2643 set dummy $ac_prog; ac_word=$2
2644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2645 echo "configure:2646: checking for $ac_word" >&5
2646 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_M4'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2648 else
2649 if test -n "$DEFAULT_M4"; then
2650 ac_cv_prog_DEFAULT_M4="$DEFAULT_M4" # Let the user override the test.
2651 else
2652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2653 ac_dummy="$PATH"
2654 for ac_dir in $ac_dummy; do
2655 test -z "$ac_dir" && ac_dir=.
2656 if test -f $ac_dir/$ac_word; then
2657 ac_cv_prog_DEFAULT_M4="$ac_prog"
2658 break
2660 done
2661 IFS="$ac_save_ifs"
2664 DEFAULT_M4="$ac_cv_prog_DEFAULT_M4"
2665 if test -n "$DEFAULT_M4"; then
2666 echo "$ac_t""$DEFAULT_M4" 1>&6
2667 else
2668 echo "$ac_t""no" 1>&6
2671 test -n "$DEFAULT_M4" && break
2672 done
2673 test -n "$DEFAULT_M4" || DEFAULT_M4="$MISSING m4"
2675 for ac_prog in flex lex
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2680 echo "configure:2681: checking for $ac_word" >&5
2681 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_LEX'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2683 else
2684 if test -n "$DEFAULT_LEX"; then
2685 ac_cv_prog_DEFAULT_LEX="$DEFAULT_LEX" # Let the user override the test.
2686 else
2687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2688 ac_dummy="$PATH"
2689 for ac_dir in $ac_dummy; do
2690 test -z "$ac_dir" && ac_dir=.
2691 if test -f $ac_dir/$ac_word; then
2692 ac_cv_prog_DEFAULT_LEX="$ac_prog"
2693 break
2695 done
2696 IFS="$ac_save_ifs"
2699 DEFAULT_LEX="$ac_cv_prog_DEFAULT_LEX"
2700 if test -n "$DEFAULT_LEX"; then
2701 echo "$ac_t""$DEFAULT_LEX" 1>&6
2702 else
2703 echo "$ac_t""no" 1>&6
2706 test -n "$DEFAULT_LEX" && break
2707 done
2708 test -n "$DEFAULT_LEX" || DEFAULT_LEX="$MISSING flex"
2711 # Create a .gdbinit file which runs the one in srcdir
2712 # and tells GDB to look there for source files.
2714 if test -r ${srcdir}/.gdbinit ; then
2715 case ${srcdir} in
2716 .) ;;
2717 *) cat > ./.gdbinit <<EOF
2718 # ${NO_EDIT}
2719 dir ${srcdir}
2720 dir .
2721 source ${srcdir}/.gdbinit
2724 esac
2727 # Make sure that the compiler is able to generate an executable. If it
2728 # can't, we are probably in trouble. We don't care whether we can run the
2729 # executable--we might be using a cross compiler--we only care whether it
2730 # can be created. At this point the main configure script has set CC.
2731 we_are_ok=no
2732 echo "int main () { return 0; }" > conftest.c
2733 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2734 if test $? = 0 ; then
2735 if test -s conftest || test -s conftest.exe ; then
2736 we_are_ok=yes
2739 case $we_are_ok in
2741 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2742 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2743 rm -f conftest*
2744 exit 1
2746 esac
2747 rm -f conftest*
2749 # The Solaris /usr/ucb/cc compiler does not appear to work.
2750 case "${host}" in
2751 sparc-sun-solaris2*)
2752 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2753 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2754 could_use=
2755 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2756 if test -d /opt/cygnus/bin ; then
2757 if test "$could_use" = "" ; then
2758 could_use="/opt/cygnus/bin"
2759 else
2760 could_use="$could_use or /opt/cygnus/bin"
2763 if test "$could_use" = "" ; then
2764 echo "Warning: compilation may fail because you're using"
2765 echo "/usr/ucb/cc. You should change your PATH or CC "
2766 echo "variable and rerun configure."
2767 else
2768 echo "Warning: compilation may fail because you're using"
2769 echo "/usr/ucb/cc, when you should use the C compiler from"
2770 echo "$could_use. You should change your"
2771 echo "PATH or CC variable and rerun configure."
2775 esac
2777 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
2778 # binutils tools will find libbfd.so.
2779 case "${enable_shared}" in
2780 no | "") SET_LIB_PATH= ;;
2781 *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;;
2782 esac
2784 case "${host}" in
2785 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2786 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2787 esac
2789 # Record target_configdirs and the configure arguments for target and
2790 # build configuration in Makefile.
2791 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2793 # This is the final value for target_configdirs. configdirs already
2794 # has its final value, as does build_modules. It's time to create some
2795 # lists of valid targets.
2797 all_build_modules=
2798 configure_build_modules=
2799 for module in ${build_modules} ; do
2800 all_build_modules=all-build-${module}
2801 configure_build_modules=configure-build-${module}
2802 done
2804 # Determine whether gdb needs tk/tcl or not.
2805 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2806 # and in that case we want gdb to be built without tk. Ugh!
2807 # In fact I believe gdb is the *only* package directly dependent on tk,
2808 # so we should be able to put the 'maybe's in unconditionally and
2809 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2810 # 100% sure that that's safe though.
2812 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui"
2813 case "$enable_gdbtk" in
2815 GDB_TK="" ;;
2816 yes)
2817 GDB_TK="${gdb_tk}" ;;
2819 # Only add the dependency on gdbtk when GDBtk is part of the gdb
2820 # distro. Eventually someone will fix this and move Insight, nee
2821 # gdbtk to a separate directory.
2822 if test -d ${srcdir}/gdb/gdbtk ; then
2823 GDB_TK="${gdb_tk}"
2824 else
2825 GDB_TK=""
2828 esac
2830 # Create the 'maybe dependencies'. This uses a temporary file.
2832 # While at that, we remove Makefiles if we were started for recursive
2833 # configuration, so that the top-level Makefile reconfigures them,
2834 # like we used to do when configure itself was recursive.
2835 rm -f maybedep.tmp
2836 echo '# maybedep.tmp' > maybedep.tmp
2838 # Make-targets which may need maybe dependencies.
2839 mts="configure all install check clean distclean dvi info install-info"
2840 mts="${mts} installcheck mostlyclean maintainer-clean TAGS"
2842 # Loop over modules and make-targets.
2843 for module in ${build_modules} ; do
2844 if test -z "${no_recursion}" \
2845 && test -f ${build_subdir}/${module}/Makefile; then
2846 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
2847 rm -f ${build_subdir}/${module}/Makefile
2849 for mt in ${mts} ; do
2850 case ${mt} in
2851 install) ;; # No installing build modules.
2852 *) echo "maybe-${mt}-build-${module}: ${mt}-build-${module}" >> maybedep.tmp ;;
2853 esac
2854 done
2855 done
2856 for module in ${configdirs} ; do
2857 if test -z "${no_recursion}" \
2858 && test -f ${module}/Makefile; then
2859 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
2860 rm -f ${module}/Makefile
2862 for mt in ${mts} ; do
2863 echo "maybe-${mt}-${module}: ${mt}-${module}" >> maybedep.tmp
2864 done
2865 done
2866 for module in ${target_configdirs} ; do
2867 if test -z "${no_recursion}" \
2868 && test -f ${target_subdir}/${module}/Makefile; then
2869 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
2870 rm -f ${target_subdir}/${module}/Makefile
2872 for mt in ${mts} ; do
2873 echo "maybe-${mt}-target-${module}: ${mt}-target-${module}" >> maybedep.tmp
2874 done
2875 done
2876 maybe_dependencies=maybedep.tmp
2879 # Create the serialization dependencies. This uses a temporary file.
2881 # Check whether --enable-serial-configure or --disable-serial-configure was given.
2882 if test "${enable_serial_configure+set}" = set; then
2883 enableval="$enable_serial_configure"
2888 case ${enable_serial_configure} in
2889 yes)
2890 enable_serial_build_configure=yes
2891 enable_serial_host_configure=yes
2892 enable_serial_target_configure=yes
2894 esac
2896 # These force 'configure's to be done one at a time, to avoid problems
2897 # with contention over a shared config.cache.
2898 rm -f serdep.tmp
2899 echo '# serdep.tmp' > serdep.tmp
2900 olditem=
2901 test "x${enable_serial_build_configure}" = xyes &&
2902 for item in ${build_configdirs} ; do
2903 case ${olditem} in
2904 "") ;;
2905 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
2906 esac
2907 olditem=${item}
2908 done
2909 olditem=
2910 test "x${enable_serial_host_configure}" = xyes &&
2911 for item in ${configdirs} ; do
2912 case ${olditem} in
2913 "") ;;
2914 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
2915 esac
2916 olditem=${item}
2917 done
2918 olditem=
2919 test "x${enable_serial_target_configure}" = xyes &&
2920 for item in ${target_configdirs} ; do
2921 case ${olditem} in
2922 "") ;;
2923 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
2924 esac
2925 olditem=${item}
2926 done
2927 serialization_dependencies=serdep.tmp
2930 # Base args. Strip norecursion, cache-file, srcdir, host, build,
2931 # target and nonopt. These are the ones we might not want to pass
2932 # down to subconfigures. Also strip program-prefix, program-suffix,
2933 # and program-transform-name, so that we can pass down a consistent
2934 # program-transform-name. If autoconf has put single quotes around
2935 # any of these arguments (because they contain shell metacharacters)
2936 # then this will fail; in practice this only happens for
2937 # --program-transform-name, so be sure to override --program-transform-name
2938 # at the end of the argument list.
2939 # These will be expanded by make, so quote '$'.
2940 cat <<\EOF_SED > conftestsed
2941 s/ --no[^ ]*/ /g
2942 s/ --c[a-z-]*[= ][^ ]*//g
2943 s/ --sr[a-z-]*[= ][^ ]*//g
2944 s/ --ho[a-z-]*[= ][^ ]*//g
2945 s/ --bu[a-z-]*[= ][^ ]*//g
2946 s/ --t[a-z-]*[= ][^ ]*//g
2947 s/ --program-[pst][a-z-]*[= ][^ ]*//g
2948 s/ -cache-file[= ][^ ]*//g
2949 s/ -srcdir[= ][^ ]*//g
2950 s/ -host[= ][^ ]*//g
2951 s/ -build[= ][^ ]*//g
2952 s/ -target[= ][^ ]*//g
2953 s/ -program-prefix[= ][^ ]*//g
2954 s/ -program-suffix[= ][^ ]*//g
2955 s/ -program-transform-name[= ][^ ]*//g
2956 s/ [^' -][^ ]* / /
2957 s/^ *//;s/ *$//
2958 s,\$,$$,g
2959 EOF_SED
2960 sed -f conftestsed <<EOF_SED > conftestsed.out
2961 ${ac_configure_args}
2962 EOF_SED
2963 baseargs=`cat conftestsed.out`
2964 rm -f conftestsed conftestsed.out
2966 # Add in --program-transform-name, after --program-prefix and
2967 # --program-suffix have been applied to it. Autoconf has already
2968 # doubled dollar signs and backslashes in program_transform_name; we want
2969 # the backslashes un-doubled, and then the entire thing wrapped in single
2970 # quotes, because this will be expanded first by make and then by the shell.
2971 # Also, because we want to override the logic in subdir configure scripts to
2972 # choose program_transform_name, replace any s,x,x, with s,y,y,.
2973 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
2974 ${program_transform_name}
2975 EOF_SED
2976 gcc_transform_name=`cat conftestsed.out`
2977 rm -f conftestsed.out
2978 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2980 # For the build-side libraries, we just need to pretend we're native,
2981 # and not use the same cache file. Multilibs are neither needed nor
2982 # desired.
2983 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
2985 # For host modules, accept cache file option, or specification as blank.
2986 case "${cache_file}" in
2987 "") # empty
2988 cache_file_option="" ;;
2989 /* | [A-Za-z]:[\\/]* ) # absolute path
2990 cache_file_option="--cache-file=${cache_file}" ;;
2991 *) # relative path
2992 cache_file_option="--cache-file=../${cache_file}" ;;
2993 esac
2995 # Host dirs don't like to share a cache file either, horribly enough.
2996 # This seems to be due to autoconf 2.5x stupidity.
2997 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
2999 target_configargs=${baseargs}
3001 # Passing a --with-cross-host argument lets the target libraries know
3002 # whether they are being built with a cross-compiler or being built
3003 # native. However, it would be better to use other mechanisms to make the
3004 # sorts of decisions they want to make on this basis. Please consider
3005 # this option to be deprecated. FIXME.
3006 if test x${is_cross_compiler} = xyes ; then
3007 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3010 # Default to --enable-multilib.
3011 if test x${enable_multilib} = x ; then
3012 target_configargs="--enable-multilib ${target_configargs}"
3015 # Pass --with-newlib if appropriate. Note that target_configdirs has
3016 # changed from the earlier setting of with_newlib.
3017 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3018 target_configargs="--with-newlib ${target_configargs}"
3021 # Different target subdirs use different values of certain variables
3022 # (notably CXX). Worse, multilibs use *lots* of different values.
3023 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3024 # it doesn't automatically accept command-line overrides of them.
3025 # This means it's not safe for target subdirs to share a cache file,
3026 # which is disgusting, but there you have it. Hopefully this can be
3027 # fixed in future. It's still worthwhile to use a cache file for each
3028 # directory. I think.
3030 # Pass the appropriate --host, --build, and --cache-file arguments.
3031 target_configargs="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
3033 # provide a proper gxx_include_dir.
3034 # Note, if you change the default, make sure to fix both here and in
3035 # the gcc and libstdc++-v3 subdirectories.
3036 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
3037 case "${with_gxx_include_dir}" in
3038 yes)
3039 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
3041 no | "")
3042 case "${enable_version_specific_runtime_libs}" in
3043 yes) gxx_include_dir='${libsubdir}/include/c++' ;;
3045 . ${srcdir}/config.if
3046 gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;;
3047 esac ;;
3048 *) gxx_include_dir=${with_gxx_include_dir} ;;
3049 esac
3051 FLAGS_FOR_TARGET=
3052 case " $target_configdirs " in
3053 *" newlib "*)
3054 case " $target_configargs " in
3055 *" --with-newlib "*)
3056 case "$target" in
3057 *-cygwin*)
3058 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' ;;
3059 esac
3061 # If we're not building GCC, don't discard standard headers.
3062 if test -d ${srcdir}/gcc; then
3063 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3065 if test "${build}" != "${host}"; then
3066 # On Canadian crosses, CC_FOR_TARGET will have already been set
3067 # by `configure', so we won't have an opportunity to add -Bgcc/
3068 # to it. This is right: we don't want to search that directory
3069 # for binaries, but we want the header files in there, so add
3070 # them explicitly.
3071 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
3073 # Someone might think of using the pre-installed headers on
3074 # Canadian crosses, in case the installed compiler is not fully
3075 # compatible with the compiler being built. In this case, it
3076 # would be better to flag an error than risking having
3077 # incompatible object files being constructed. We can't
3078 # guarantee that an error will be flagged, but let's hope the
3079 # compiler will do it, when presented with incompatible header
3080 # files.
3084 case "${target}-${is_cross_compiler}" in
3085 i[3456789]86-*-linux*-no)
3086 # Here host == target, so we don't need to build gcc,
3087 # so we don't want to discard standard headers.
3088 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3091 # If we're building newlib, use its generic headers last, but search
3092 # for any libc-related directories first (so make it the last -B
3093 # switch).
3094 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3096 esac
3098 esac
3100 esac
3102 # Allow the user to override the flags for
3103 # our build compiler if desired.
3104 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3106 # On Canadian crosses, we'll be searching the right directories for
3107 # the previously-installed cross compiler, so don't bother to add
3108 # flags for directories within the install tree of the compiler
3109 # being built; programs in there won't even run.
3110 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3111 # Search for pre-installed headers if nothing else fits.
3112 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3115 if test "x${use_gnu_ld}" = x &&
3116 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3117 # Arrange for us to find uninstalled linker scripts.
3118 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
3121 if test "x${CC_FOR_TARGET+set}" = xset; then
3123 elif test -d ${srcdir}/gcc; then
3124 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
3125 elif test "$host" = "$target"; then
3126 CC_FOR_TARGET='$(CC)'
3127 else
3128 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
3130 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3132 if test "x${GCJ_FOR_TARGET+set}" = xset; then
3134 elif test -d ${srcdir}/gcc; then
3135 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
3136 elif test "$host" = "$target"; then
3137 GCJ_FOR_TARGET='gcj'
3138 else
3139 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
3141 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3143 # Don't use libstdc++-v3's flags to configure/build itself.
3144 libstdcxx_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'
3145 raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3147 if test "x${CXX_FOR_TARGET+set}" = xset; then
3148 if test "x${RAW_CXX_FOR_TARGET+set}" != xset; then
3149 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3151 elif test -d ${srcdir}/gcc; then
3152 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3153 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3154 # default whereas gcc does not.
3155 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3156 # all other cases.
3157 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
3158 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3159 elif test "$host" = "$target"; then
3160 CXX_FOR_TARGET='$(CXX)'
3161 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3162 else
3163 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
3164 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3166 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3167 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3169 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3170 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3172 # We want to defer the evaluation of `cmd`s and shell variables in
3173 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3174 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3175 # quotes, but we still have to duplicate `$'s so that shell variables
3176 # can be expanded by the nested make as shell variables, not as make
3177 # macros.
3178 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3179 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3181 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
3182 CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}"
3183 GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}"
3184 CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}"
3185 RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}"
3186 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}"
3187 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}"
3189 # Makefile fragments.
3190 host_makefile_frag=${srcdir}/${host_makefile_frag}
3191 target_makefile_frag=${srcdir}/${target_makefile_frag}
3192 alphaieee_frag=${srcdir}/${alphaieee_frag}
3193 ospace_frag=${srcdir}/${ospace_frag}
3199 # Miscellanea: directories, flags, etc.
3212 # Build module lists & subconfigure args.
3217 # Host module lists & subconfigure args.
3221 # Target module lists & subconfigure args.
3225 # Build tools.
3233 # Host tools.
3234 ncn_tool_prefix=
3235 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3236 ncn_target_tool_prefix=
3237 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3239 if test -n "$ncn_tool_prefix"; then
3240 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3241 set dummy ${ncn_tool_prefix}ar; ac_word=$2
3242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3243 echo "configure:3244: checking for $ac_word" >&5
3244 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3246 else
3247 if test -n "$AR"; then
3248 ac_cv_prog_AR="$AR" # Let the user override the test.
3249 else
3250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3251 ac_dummy="$PATH"
3252 for ac_dir in $ac_dummy; do
3253 test -z "$ac_dir" && ac_dir=.
3254 if test -f $ac_dir/$ac_word; then
3255 ac_cv_prog_AR="${ncn_tool_prefix}ar"
3256 break
3258 done
3259 IFS="$ac_save_ifs"
3262 AR="$ac_cv_prog_AR"
3263 if test -n "$AR"; then
3264 echo "$ac_t""$AR" 1>&6
3265 else
3266 echo "$ac_t""no" 1>&6
3270 if test -z "$ac_cv_prog_AR" ; then
3271 if test $build = $host ; then
3272 ncn_cv_AR=$AR
3273 # Extract the first word of "ar", so it can be a program name with args.
3274 set dummy ar; ac_word=$2
3275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3276 echo "configure:3277: checking for $ac_word" >&5
3277 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3279 else
3280 if test -n "$ncn_cv_AR"; then
3281 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
3282 else
3283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3284 ac_dummy="$PATH"
3285 for ac_dir in $ac_dummy; do
3286 test -z "$ac_dir" && ac_dir=.
3287 if test -f $ac_dir/$ac_word; then
3288 ac_cv_prog_ncn_cv_AR="ar"
3289 break
3291 done
3292 IFS="$ac_save_ifs"
3293 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3296 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3297 if test -n "$ncn_cv_AR"; then
3298 echo "$ac_t""$ncn_cv_AR" 1>&6
3299 else
3300 echo "$ac_t""no" 1>&6
3303 AR=$ncn_cv_AR
3304 else
3305 AR="${ncn_tool_prefix}ar"
3307 else
3308 AR="$ac_cv_prog_AR"
3311 if test -n "$ncn_tool_prefix"; then
3312 # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
3313 set dummy ${ncn_tool_prefix}as; ac_word=$2
3314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3315 echo "configure:3316: checking for $ac_word" >&5
3316 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3318 else
3319 if test -n "$AS"; then
3320 ac_cv_prog_AS="$AS" # Let the user override the test.
3321 else
3322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3323 ac_dummy="$PATH"
3324 for ac_dir in $ac_dummy; do
3325 test -z "$ac_dir" && ac_dir=.
3326 if test -f $ac_dir/$ac_word; then
3327 ac_cv_prog_AS="${ncn_tool_prefix}as"
3328 break
3330 done
3331 IFS="$ac_save_ifs"
3334 AS="$ac_cv_prog_AS"
3335 if test -n "$AS"; then
3336 echo "$ac_t""$AS" 1>&6
3337 else
3338 echo "$ac_t""no" 1>&6
3342 if test -z "$ac_cv_prog_AS" ; then
3343 if test $build = $host ; then
3344 ncn_cv_AS=$AS
3345 # Extract the first word of "as", so it can be a program name with args.
3346 set dummy as; ac_word=$2
3347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3348 echo "configure:3349: checking for $ac_word" >&5
3349 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3351 else
3352 if test -n "$ncn_cv_AS"; then
3353 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
3354 else
3355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3356 ac_dummy="$PATH"
3357 for ac_dir in $ac_dummy; do
3358 test -z "$ac_dir" && ac_dir=.
3359 if test -f $ac_dir/$ac_word; then
3360 ac_cv_prog_ncn_cv_AS="as"
3361 break
3363 done
3364 IFS="$ac_save_ifs"
3365 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as"
3368 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3369 if test -n "$ncn_cv_AS"; then
3370 echo "$ac_t""$ncn_cv_AS" 1>&6
3371 else
3372 echo "$ac_t""no" 1>&6
3375 AS=$ncn_cv_AS
3376 else
3377 AS="${ncn_tool_prefix}as"
3379 else
3380 AS="$ac_cv_prog_AS"
3383 if test -n "$ncn_tool_prefix"; then
3384 # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
3385 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3387 echo "configure:3388: checking for $ac_word" >&5
3388 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3390 else
3391 if test -n "$DLLTOOL"; then
3392 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3393 else
3394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3395 ac_dummy="$PATH"
3396 for ac_dir in $ac_dummy; do
3397 test -z "$ac_dir" && ac_dir=.
3398 if test -f $ac_dir/$ac_word; then
3399 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool"
3400 break
3402 done
3403 IFS="$ac_save_ifs"
3406 DLLTOOL="$ac_cv_prog_DLLTOOL"
3407 if test -n "$DLLTOOL"; then
3408 echo "$ac_t""$DLLTOOL" 1>&6
3409 else
3410 echo "$ac_t""no" 1>&6
3414 if test -z "$ac_cv_prog_DLLTOOL" ; then
3415 if test $build = $host ; then
3416 ncn_cv_DLLTOOL=$DLLTOOL
3417 # Extract the first word of "dlltool", so it can be a program name with args.
3418 set dummy dlltool; ac_word=$2
3419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3420 echo "configure:3421: checking for $ac_word" >&5
3421 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3423 else
3424 if test -n "$ncn_cv_DLLTOOL"; then
3425 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
3426 else
3427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3428 ac_dummy="$PATH"
3429 for ac_dir in $ac_dummy; do
3430 test -z "$ac_dir" && ac_dir=.
3431 if test -f $ac_dir/$ac_word; then
3432 ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3433 break
3435 done
3436 IFS="$ac_save_ifs"
3437 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3440 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3441 if test -n "$ncn_cv_DLLTOOL"; then
3442 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3443 else
3444 echo "$ac_t""no" 1>&6
3447 DLLTOOL=$ncn_cv_DLLTOOL
3448 else
3449 DLLTOOL="${ncn_tool_prefix}dlltool"
3451 else
3452 DLLTOOL="$ac_cv_prog_DLLTOOL"
3455 if test -n "$ncn_tool_prefix"; then
3456 # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
3457 set dummy ${ncn_tool_prefix}ld; ac_word=$2
3458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3459 echo "configure:3460: checking for $ac_word" >&5
3460 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3462 else
3463 if test -n "$LD"; then
3464 ac_cv_prog_LD="$LD" # Let the user override the test.
3465 else
3466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3467 ac_dummy="$PATH"
3468 for ac_dir in $ac_dummy; do
3469 test -z "$ac_dir" && ac_dir=.
3470 if test -f $ac_dir/$ac_word; then
3471 ac_cv_prog_LD="${ncn_tool_prefix}ld"
3472 break
3474 done
3475 IFS="$ac_save_ifs"
3478 LD="$ac_cv_prog_LD"
3479 if test -n "$LD"; then
3480 echo "$ac_t""$LD" 1>&6
3481 else
3482 echo "$ac_t""no" 1>&6
3486 if test -z "$ac_cv_prog_LD" ; then
3487 if test $build = $host ; then
3488 ncn_cv_LD=$LD
3489 # Extract the first word of "ld", so it can be a program name with args.
3490 set dummy ld; ac_word=$2
3491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3492 echo "configure:3493: checking for $ac_word" >&5
3493 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3495 else
3496 if test -n "$ncn_cv_LD"; then
3497 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3498 else
3499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3500 ac_dummy="$PATH"
3501 for ac_dir in $ac_dummy; do
3502 test -z "$ac_dir" && ac_dir=.
3503 if test -f $ac_dir/$ac_word; then
3504 ac_cv_prog_ncn_cv_LD="ld"
3505 break
3507 done
3508 IFS="$ac_save_ifs"
3509 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld"
3512 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3513 if test -n "$ncn_cv_LD"; then
3514 echo "$ac_t""$ncn_cv_LD" 1>&6
3515 else
3516 echo "$ac_t""no" 1>&6
3519 LD=$ncn_cv_LD
3520 else
3521 LD="${ncn_tool_prefix}ld"
3523 else
3524 LD="$ac_cv_prog_LD"
3527 if test -n "$ncn_tool_prefix"; then
3528 # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
3529 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3531 echo "configure:3532: checking for $ac_word" >&5
3532 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3533 echo $ac_n "(cached) $ac_c" 1>&6
3534 else
3535 if test -n "$NM"; then
3536 ac_cv_prog_NM="$NM" # Let the user override the test.
3537 else
3538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3539 ac_dummy="$PATH"
3540 for ac_dir in $ac_dummy; do
3541 test -z "$ac_dir" && ac_dir=.
3542 if test -f $ac_dir/$ac_word; then
3543 ac_cv_prog_NM="${ncn_tool_prefix}nm"
3544 break
3546 done
3547 IFS="$ac_save_ifs"
3550 NM="$ac_cv_prog_NM"
3551 if test -n "$NM"; then
3552 echo "$ac_t""$NM" 1>&6
3553 else
3554 echo "$ac_t""no" 1>&6
3558 if test -z "$ac_cv_prog_NM" ; then
3559 if test $build = $host ; then
3560 ncn_cv_NM=$NM
3561 # Extract the first word of "nm", so it can be a program name with args.
3562 set dummy nm; ac_word=$2
3563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3564 echo "configure:3565: checking for $ac_word" >&5
3565 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3567 else
3568 if test -n "$ncn_cv_NM"; then
3569 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3570 else
3571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3572 ac_dummy="$PATH"
3573 for ac_dir in $ac_dummy; do
3574 test -z "$ac_dir" && ac_dir=.
3575 if test -f $ac_dir/$ac_word; then
3576 ac_cv_prog_ncn_cv_NM="nm"
3577 break
3579 done
3580 IFS="$ac_save_ifs"
3581 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm"
3584 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3585 if test -n "$ncn_cv_NM"; then
3586 echo "$ac_t""$ncn_cv_NM" 1>&6
3587 else
3588 echo "$ac_t""no" 1>&6
3591 NM=$ncn_cv_NM
3592 else
3593 NM="${ncn_tool_prefix}nm"
3595 else
3596 NM="$ac_cv_prog_NM"
3599 if test -n "$ncn_tool_prefix"; then
3600 # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
3601 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3603 echo "configure:3604: checking for $ac_word" >&5
3604 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3606 else
3607 if test -n "$RANLIB"; then
3608 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3609 else
3610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3611 ac_dummy="$PATH"
3612 for ac_dir in $ac_dummy; do
3613 test -z "$ac_dir" && ac_dir=.
3614 if test -f $ac_dir/$ac_word; then
3615 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib"
3616 break
3618 done
3619 IFS="$ac_save_ifs"
3622 RANLIB="$ac_cv_prog_RANLIB"
3623 if test -n "$RANLIB"; then
3624 echo "$ac_t""$RANLIB" 1>&6
3625 else
3626 echo "$ac_t""no" 1>&6
3630 if test -z "$ac_cv_prog_RANLIB" ; then
3631 if test $build = $host ; then
3632 ncn_cv_RANLIB=$RANLIB
3633 # Extract the first word of "ranlib", so it can be a program name with args.
3634 set dummy ranlib; ac_word=$2
3635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3636 echo "configure:3637: checking for $ac_word" >&5
3637 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3639 else
3640 if test -n "$ncn_cv_RANLIB"; then
3641 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3642 else
3643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3644 ac_dummy="$PATH"
3645 for ac_dir in $ac_dummy; do
3646 test -z "$ac_dir" && ac_dir=.
3647 if test -f $ac_dir/$ac_word; then
3648 ac_cv_prog_ncn_cv_RANLIB="ranlib"
3649 break
3651 done
3652 IFS="$ac_save_ifs"
3653 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3656 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3657 if test -n "$ncn_cv_RANLIB"; then
3658 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3659 else
3660 echo "$ac_t""no" 1>&6
3663 RANLIB=$ncn_cv_RANLIB
3664 else
3665 RANLIB=":"
3667 else
3668 RANLIB="$ac_cv_prog_RANLIB"
3671 if test -n "$ncn_tool_prefix"; then
3672 # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
3673 set dummy ${ncn_tool_prefix}windres; ac_word=$2
3674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3675 echo "configure:3676: checking for $ac_word" >&5
3676 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3678 else
3679 if test -n "$WINDRES"; then
3680 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3681 else
3682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3683 ac_dummy="$PATH"
3684 for ac_dir in $ac_dummy; do
3685 test -z "$ac_dir" && ac_dir=.
3686 if test -f $ac_dir/$ac_word; then
3687 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres"
3688 break
3690 done
3691 IFS="$ac_save_ifs"
3694 WINDRES="$ac_cv_prog_WINDRES"
3695 if test -n "$WINDRES"; then
3696 echo "$ac_t""$WINDRES" 1>&6
3697 else
3698 echo "$ac_t""no" 1>&6
3702 if test -z "$ac_cv_prog_WINDRES" ; then
3703 if test $build = $host ; then
3704 ncn_cv_WINDRES=$WINDRES
3705 # Extract the first word of "windres", so it can be a program name with args.
3706 set dummy windres; ac_word=$2
3707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3708 echo "configure:3709: checking for $ac_word" >&5
3709 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
3710 echo $ac_n "(cached) $ac_c" 1>&6
3711 else
3712 if test -n "$ncn_cv_WINDRES"; then
3713 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
3714 else
3715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3716 ac_dummy="$PATH"
3717 for ac_dir in $ac_dummy; do
3718 test -z "$ac_dir" && ac_dir=.
3719 if test -f $ac_dir/$ac_word; then
3720 ac_cv_prog_ncn_cv_WINDRES="windres"
3721 break
3723 done
3724 IFS="$ac_save_ifs"
3725 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres"
3728 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
3729 if test -n "$ncn_cv_WINDRES"; then
3730 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
3731 else
3732 echo "$ac_t""no" 1>&6
3735 WINDRES=$ncn_cv_WINDRES
3736 else
3737 WINDRES="${ncn_tool_prefix}windres"
3739 else
3740 WINDRES="$ac_cv_prog_WINDRES"
3743 if test -n "$ncn_tool_prefix"; then
3744 # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
3745 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
3746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3747 echo "configure:3748: checking for $ac_word" >&5
3748 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
3749 echo $ac_n "(cached) $ac_c" 1>&6
3750 else
3751 if test -n "$OBJCOPY"; then
3752 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3753 else
3754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3755 ac_dummy="$PATH"
3756 for ac_dir in $ac_dummy; do
3757 test -z "$ac_dir" && ac_dir=.
3758 if test -f $ac_dir/$ac_word; then
3759 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy"
3760 break
3762 done
3763 IFS="$ac_save_ifs"
3766 OBJCOPY="$ac_cv_prog_OBJCOPY"
3767 if test -n "$OBJCOPY"; then
3768 echo "$ac_t""$OBJCOPY" 1>&6
3769 else
3770 echo "$ac_t""no" 1>&6
3774 if test -z "$ac_cv_prog_OBJCOPY" ; then
3775 if test $build = $host ; then
3776 ncn_cv_OBJCOPY=$OBJCOPY
3777 # Extract the first word of "objcopy", so it can be a program name with args.
3778 set dummy objcopy; ac_word=$2
3779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3780 echo "configure:3781: checking for $ac_word" >&5
3781 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3783 else
3784 if test -n "$ncn_cv_OBJCOPY"; then
3785 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
3786 else
3787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3788 ac_dummy="$PATH"
3789 for ac_dir in $ac_dummy; do
3790 test -z "$ac_dir" && ac_dir=.
3791 if test -f $ac_dir/$ac_word; then
3792 ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3793 break
3795 done
3796 IFS="$ac_save_ifs"
3797 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3800 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
3801 if test -n "$ncn_cv_OBJCOPY"; then
3802 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
3803 else
3804 echo "$ac_t""no" 1>&6
3807 OBJCOPY=$ncn_cv_OBJCOPY
3808 else
3809 OBJCOPY="${ncn_tool_prefix}objcopy"
3811 else
3812 OBJCOPY="$ac_cv_prog_OBJCOPY"
3815 if test -n "$ncn_tool_prefix"; then
3816 # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
3817 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
3818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3819 echo "configure:3820: checking for $ac_word" >&5
3820 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3821 echo $ac_n "(cached) $ac_c" 1>&6
3822 else
3823 if test -n "$OBJDUMP"; then
3824 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3825 else
3826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3827 ac_dummy="$PATH"
3828 for ac_dir in $ac_dummy; do
3829 test -z "$ac_dir" && ac_dir=.
3830 if test -f $ac_dir/$ac_word; then
3831 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump"
3832 break
3834 done
3835 IFS="$ac_save_ifs"
3838 OBJDUMP="$ac_cv_prog_OBJDUMP"
3839 if test -n "$OBJDUMP"; then
3840 echo "$ac_t""$OBJDUMP" 1>&6
3841 else
3842 echo "$ac_t""no" 1>&6
3846 if test -z "$ac_cv_prog_OBJDUMP" ; then
3847 if test $build = $host ; then
3848 ncn_cv_OBJDUMP=$OBJDUMP
3849 # Extract the first word of "objdump", so it can be a program name with args.
3850 set dummy objdump; ac_word=$2
3851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3852 echo "configure:3853: checking for $ac_word" >&5
3853 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
3854 echo $ac_n "(cached) $ac_c" 1>&6
3855 else
3856 if test -n "$ncn_cv_OBJDUMP"; then
3857 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
3858 else
3859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3860 ac_dummy="$PATH"
3861 for ac_dir in $ac_dummy; do
3862 test -z "$ac_dir" && ac_dir=.
3863 if test -f $ac_dir/$ac_word; then
3864 ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3865 break
3867 done
3868 IFS="$ac_save_ifs"
3869 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3872 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
3873 if test -n "$ncn_cv_OBJDUMP"; then
3874 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
3875 else
3876 echo "$ac_t""no" 1>&6
3879 OBJDUMP=$ncn_cv_OBJDUMP
3880 else
3881 OBJDUMP="${ncn_tool_prefix}objdump"
3883 else
3884 OBJDUMP="$ac_cv_prog_OBJDUMP"
3896 # Target tools.
3897 if test -n "$ncn_target_tool_prefix"; then
3898 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
3899 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
3900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3901 echo "configure:3902: checking for $ac_word" >&5
3902 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3904 else
3905 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
3906 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
3907 else
3908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3909 ac_dummy="$PATH"
3910 for ac_dir in $ac_dummy; do
3911 test -z "$ac_dir" && ac_dir=.
3912 if test -f $ac_dir/$ac_word; then
3913 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3914 break
3916 done
3917 IFS="$ac_save_ifs"
3920 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
3921 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
3922 echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6
3923 else
3924 echo "$ac_t""no" 1>&6
3928 if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then
3929 if test $build = $target ; then
3930 ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET
3931 # Extract the first word of "ar", so it can be a program name with args.
3932 set dummy ar; ac_word=$2
3933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3934 echo "configure:3935: checking for $ac_word" >&5
3935 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3937 else
3938 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
3939 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
3940 else
3941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3942 ac_dummy="$PATH"
3943 for ac_dir in $ac_dummy; do
3944 test -z "$ac_dir" && ac_dir=.
3945 if test -f $ac_dir/$ac_word; then
3946 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
3947 break
3949 done
3950 IFS="$ac_save_ifs"
3951 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
3954 ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET"
3955 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
3956 echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6
3957 else
3958 echo "$ac_t""no" 1>&6
3961 CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET
3962 else
3963 CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3965 else
3966 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
3969 if test -n "$ncn_target_tool_prefix"; then
3970 # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
3971 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
3972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3973 echo "configure:3974: checking for $ac_word" >&5
3974 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3976 else
3977 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
3978 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
3979 else
3980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3981 ac_dummy="$PATH"
3982 for ac_dir in $ac_dummy; do
3983 test -z "$ac_dir" && ac_dir=.
3984 if test -f $ac_dir/$ac_word; then
3985 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
3986 break
3988 done
3989 IFS="$ac_save_ifs"
3992 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
3993 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
3994 echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6
3995 else
3996 echo "$ac_t""no" 1>&6
4000 if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then
4001 if test $build = $target ; then
4002 ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET
4003 # Extract the first word of "as", so it can be a program name with args.
4004 set dummy as; ac_word=$2
4005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4006 echo "configure:4007: checking for $ac_word" >&5
4007 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4009 else
4010 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4011 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4012 else
4013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4014 ac_dummy="$PATH"
4015 for ac_dir in $ac_dummy; do
4016 test -z "$ac_dir" && ac_dir=.
4017 if test -f $ac_dir/$ac_word; then
4018 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
4019 break
4021 done
4022 IFS="$ac_save_ifs"
4023 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
4026 ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET"
4027 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4028 echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6
4029 else
4030 echo "$ac_t""no" 1>&6
4033 CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET
4034 else
4035 CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
4037 else
4038 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4041 if test -n "$ncn_target_tool_prefix"; then
4042 # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
4043 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4045 echo "configure:4046: checking for $ac_word" >&5
4046 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4047 echo $ac_n "(cached) $ac_c" 1>&6
4048 else
4049 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4050 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4051 else
4052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4053 ac_dummy="$PATH"
4054 for ac_dir in $ac_dummy; do
4055 test -z "$ac_dir" && ac_dir=.
4056 if test -f $ac_dir/$ac_word; then
4057 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4058 break
4060 done
4061 IFS="$ac_save_ifs"
4064 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4065 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4066 echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4067 else
4068 echo "$ac_t""no" 1>&6
4072 if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then
4073 if test $build = $target ; then
4074 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET
4075 # Extract the first word of "dlltool", so it can be a program name with args.
4076 set dummy dlltool; ac_word=$2
4077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4078 echo "configure:4079: checking for $ac_word" >&5
4079 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4081 else
4082 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4083 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4084 else
4085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4086 ac_dummy="$PATH"
4087 for ac_dir in $ac_dummy; do
4088 test -z "$ac_dir" && ac_dir=.
4089 if test -f $ac_dir/$ac_word; then
4090 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
4091 break
4093 done
4094 IFS="$ac_save_ifs"
4095 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
4098 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"
4099 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4100 echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4101 else
4102 echo "$ac_t""no" 1>&6
4105 CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET
4106 else
4107 CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4109 else
4110 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4113 if test -n "$ncn_target_tool_prefix"; then
4114 # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
4115 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4117 echo "configure:4118: checking for $ac_word" >&5
4118 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4119 echo $ac_n "(cached) $ac_c" 1>&6
4120 else
4121 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4122 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4123 else
4124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4125 ac_dummy="$PATH"
4126 for ac_dir in $ac_dummy; do
4127 test -z "$ac_dir" && ac_dir=.
4128 if test -f $ac_dir/$ac_word; then
4129 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4130 break
4132 done
4133 IFS="$ac_save_ifs"
4136 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4137 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4138 echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6
4139 else
4140 echo "$ac_t""no" 1>&6
4144 if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then
4145 if test $build = $target ; then
4146 ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET
4147 # Extract the first word of "ld", so it can be a program name with args.
4148 set dummy ld; ac_word=$2
4149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4150 echo "configure:4151: checking for $ac_word" >&5
4151 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4152 echo $ac_n "(cached) $ac_c" 1>&6
4153 else
4154 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4155 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4156 else
4157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4158 ac_dummy="$PATH"
4159 for ac_dir in $ac_dummy; do
4160 test -z "$ac_dir" && ac_dir=.
4161 if test -f $ac_dir/$ac_word; then
4162 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
4163 break
4165 done
4166 IFS="$ac_save_ifs"
4167 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
4170 ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET"
4171 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4172 echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6
4173 else
4174 echo "$ac_t""no" 1>&6
4177 CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET
4178 else
4179 CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4181 else
4182 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4185 if test -n "$ncn_target_tool_prefix"; then
4186 # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
4187 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4189 echo "configure:4190: checking for $ac_word" >&5
4190 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4192 else
4193 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4194 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4195 else
4196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4197 ac_dummy="$PATH"
4198 for ac_dir in $ac_dummy; do
4199 test -z "$ac_dir" && ac_dir=.
4200 if test -f $ac_dir/$ac_word; then
4201 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4202 break
4204 done
4205 IFS="$ac_save_ifs"
4208 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4209 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4210 echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6
4211 else
4212 echo "$ac_t""no" 1>&6
4216 if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then
4217 if test $build = $target ; then
4218 ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET
4219 # Extract the first word of "nm", so it can be a program name with args.
4220 set dummy nm; ac_word=$2
4221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4222 echo "configure:4223: checking for $ac_word" >&5
4223 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4225 else
4226 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4227 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4228 else
4229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4230 ac_dummy="$PATH"
4231 for ac_dir in $ac_dummy; do
4232 test -z "$ac_dir" && ac_dir=.
4233 if test -f $ac_dir/$ac_word; then
4234 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
4235 break
4237 done
4238 IFS="$ac_save_ifs"
4239 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
4242 ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET"
4243 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4244 echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6
4245 else
4246 echo "$ac_t""no" 1>&6
4249 CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET
4250 else
4251 CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4253 else
4254 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4257 if test -n "$ncn_target_tool_prefix"; then
4258 # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
4259 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4261 echo "configure:4262: checking for $ac_word" >&5
4262 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4264 else
4265 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4266 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4267 else
4268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4269 ac_dummy="$PATH"
4270 for ac_dir in $ac_dummy; do
4271 test -z "$ac_dir" && ac_dir=.
4272 if test -f $ac_dir/$ac_word; then
4273 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib"
4274 break
4276 done
4277 IFS="$ac_save_ifs"
4280 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4281 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4282 echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4283 else
4284 echo "$ac_t""no" 1>&6
4288 if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then
4289 if test $build = $target ; then
4290 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET
4291 # Extract the first word of "ranlib", so it can be a program name with args.
4292 set dummy ranlib; ac_word=$2
4293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4294 echo "configure:4295: checking for $ac_word" >&5
4295 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4297 else
4298 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4299 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4300 else
4301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4302 ac_dummy="$PATH"
4303 for ac_dir in $ac_dummy; do
4304 test -z "$ac_dir" && ac_dir=.
4305 if test -f $ac_dir/$ac_word; then
4306 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib"
4307 break
4309 done
4310 IFS="$ac_save_ifs"
4311 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":"
4314 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"
4315 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4316 echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4317 else
4318 echo "$ac_t""no" 1>&6
4321 CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET
4322 else
4323 CONFIGURED_RANLIB_FOR_TARGET=":"
4325 else
4326 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4329 if test -n "$ncn_target_tool_prefix"; then
4330 # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
4331 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4333 echo "configure:4334: checking for $ac_word" >&5
4334 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4336 else
4337 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4338 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4339 else
4340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4341 ac_dummy="$PATH"
4342 for ac_dir in $ac_dummy; do
4343 test -z "$ac_dir" && ac_dir=.
4344 if test -f $ac_dir/$ac_word; then
4345 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4346 break
4348 done
4349 IFS="$ac_save_ifs"
4352 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4353 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4354 echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4355 else
4356 echo "$ac_t""no" 1>&6
4360 if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then
4361 if test $build = $target ; then
4362 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET
4363 # Extract the first word of "windres", so it can be a program name with args.
4364 set dummy windres; ac_word=$2
4365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4366 echo "configure:4367: checking for $ac_word" >&5
4367 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4369 else
4370 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4371 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4372 else
4373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4374 ac_dummy="$PATH"
4375 for ac_dir in $ac_dummy; do
4376 test -z "$ac_dir" && ac_dir=.
4377 if test -f $ac_dir/$ac_word; then
4378 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
4379 break
4381 done
4382 IFS="$ac_save_ifs"
4383 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
4386 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"
4387 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4388 echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4389 else
4390 echo "$ac_t""no" 1>&6
4393 CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET
4394 else
4395 CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4397 else
4398 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4411 # Fix up target tools.
4412 if test "x${build}" = "x${host}" ; then
4413 # In this case, the newly built tools can and should be used,
4414 # so we override the results of the autoconf tests.
4415 # This should really only happen when the tools are actually being built,
4416 # but that's a further refinement. The new build scheme, where
4417 # tools are built into a structure paralleling where they're installed,
4418 # should also eliminate all of this cleanly.
4419 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
4420 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
4421 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
4422 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
4423 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
4424 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
4425 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
4426 else
4427 # Just use the ones we found.
4428 AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)"
4429 AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)"
4430 DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)"
4431 LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)"
4432 NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)"
4433 RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)"
4434 WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)"
4444 # Certain tools may need extra flags.
4445 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4446 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4447 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4449 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4450 echo "configure:4451: checking whether to enable maintainer-specific portions of Makefiles" >&5
4451 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4452 if test "${enable_maintainer_mode+set}" = set; then
4453 enableval="$enable_maintainer_mode"
4454 USE_MAINTAINER_MODE=$enableval
4455 else
4456 USE_MAINTAINER_MODE=no
4459 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4462 if test "$USE_MAINTAINER_MODE" = yes; then
4463 MAINTAINER_MODE_TRUE=
4464 MAINTAINER_MODE_FALSE='#'
4465 else
4466 MAINTAINER_MODE_TRUE='#'
4467 MAINTAINER_MODE_FALSE=
4469 MAINT=$MAINTAINER_MODE_TRUE
4471 # ---------------------
4472 # GCC bootstrap support
4473 # ---------------------
4475 # Stage specific cflags for build.
4476 stage1_cflags="-g"
4477 case $build in
4478 vax-*-*)
4479 case ${GCC} in
4480 yes) stage1_cflags="-g -Wa,-J" ;;
4481 *) stage1_cflags="-g -J" ;;
4482 esac ;;
4483 powerpc-*-darwin*)
4484 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
4485 # sources; use -no-cpp-precomp to get to GNU cpp.
4486 # Apple's GCC has bugs in designated initializer handling, so disable
4487 # that too.
4488 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
4490 esac
4493 # Enable -Werror in bootstrap stage2 and later.
4494 # Change the default to "no" on release branches.
4495 # Check whether --enable-werror or --disable-werror was given.
4496 if test "${enable_werror+set}" = set; then
4497 enableval="$enable_werror"
4499 else
4500 enable_werror=yes
4503 case ${enable_werror} in
4504 yes) stage2_werror_flag="--enable-werror-always" ;;
4505 *) stage2_werror_flag="" ;;
4506 esac
4509 trap '' 1 2 15
4510 cat > confcache <<\EOF
4511 # This file is a shell script that caches the results of configure
4512 # tests run on this system so they can be shared between configure
4513 # scripts and configure runs. It is not useful on other systems.
4514 # If it contains results you don't want to keep, you may remove or edit it.
4516 # By default, configure uses ./config.cache as the cache file,
4517 # creating it if it does not exist already. You can give configure
4518 # the --cache-file=FILE option to use a different cache file; that is
4519 # what configure does when it calls configure scripts in
4520 # subdirectories, so they share the cache.
4521 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4522 # config.status only pays attention to the cache file if you give it the
4523 # --recheck option to rerun configure.
4526 # The following way of writing the cache mishandles newlines in values,
4527 # but we know of no workaround that is simple, portable, and efficient.
4528 # So, don't put newlines in cache variables' values.
4529 # Ultrix sh set writes to stderr and can't be redirected directly,
4530 # and sets the high bit in the cache file unless we assign to the vars.
4531 (set) 2>&1 |
4532 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4533 *ac_space=\ *)
4534 # `set' does not quote correctly, so add quotes (double-quote substitution
4535 # turns \\\\ into \\, and sed turns \\ into \).
4536 sed -n \
4537 -e "s/'/'\\\\''/g" \
4538 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4541 # `set' quotes correctly as required by POSIX, so do not add quotes.
4542 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4544 esac >> confcache
4545 if cmp -s $cache_file confcache; then
4547 else
4548 if test -w $cache_file; then
4549 echo "updating cache $cache_file"
4550 cat confcache > $cache_file
4551 else
4552 echo "not updating unwritable cache $cache_file"
4555 rm -f confcache
4557 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4559 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4560 # Let make expand exec_prefix.
4561 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4563 # Any assignment to VPATH causes Sun make to only execute
4564 # the first set of double-colon rules, so remove it if not needed.
4565 # If there is a colon in the path, we need to keep it.
4566 if test "x$srcdir" = x.; then
4567 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4570 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4572 # Transform confdefs.h into DEFS.
4573 # Protect against shell expansion while executing Makefile rules.
4574 # Protect against Makefile macro expansion.
4575 cat > conftest.defs <<\EOF
4576 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4577 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4578 s%\[%\\&%g
4579 s%\]%\\&%g
4580 s%\$%$$%g
4582 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4583 rm -f conftest.defs
4586 # Without the "./", some shells look in PATH for config.status.
4587 : ${CONFIG_STATUS=./config.status}
4589 echo creating $CONFIG_STATUS
4590 rm -f $CONFIG_STATUS
4591 cat > $CONFIG_STATUS <<EOF
4592 #! /bin/sh
4593 # Generated automatically by configure.
4594 # Run this file to recreate the current configuration.
4595 # This directory was configured as follows,
4596 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4598 # $0 $ac_configure_args
4600 # Compiler output produced by configure, useful for debugging
4601 # configure, is in ./config.log if it exists.
4603 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4604 for ac_option
4606 case "\$ac_option" in
4607 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4608 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4609 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4610 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4611 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4612 exit 0 ;;
4613 -help | --help | --hel | --he | --h)
4614 echo "\$ac_cs_usage"; exit 0 ;;
4615 *) echo "\$ac_cs_usage"; exit 1 ;;
4616 esac
4617 done
4619 ac_given_srcdir=$srcdir
4620 ac_given_INSTALL="$INSTALL"
4622 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4624 cat >> $CONFIG_STATUS <<EOF
4626 # Protect against being on the right side of a sed subst in config.status.
4627 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4628 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4629 $ac_vpsub
4630 $extrasub
4631 s%@SHELL@%$SHELL%g
4632 s%@CFLAGS@%$CFLAGS%g
4633 s%@CPPFLAGS@%$CPPFLAGS%g
4634 s%@CXXFLAGS@%$CXXFLAGS%g
4635 s%@FFLAGS@%$FFLAGS%g
4636 s%@DEFS@%$DEFS%g
4637 s%@LDFLAGS@%$LDFLAGS%g
4638 s%@LIBS@%$LIBS%g
4639 s%@exec_prefix@%$exec_prefix%g
4640 s%@prefix@%$prefix%g
4641 s%@program_transform_name@%$program_transform_name%g
4642 s%@bindir@%$bindir%g
4643 s%@sbindir@%$sbindir%g
4644 s%@libexecdir@%$libexecdir%g
4645 s%@datadir@%$datadir%g
4646 s%@sysconfdir@%$sysconfdir%g
4647 s%@sharedstatedir@%$sharedstatedir%g
4648 s%@localstatedir@%$localstatedir%g
4649 s%@libdir@%$libdir%g
4650 s%@includedir@%$includedir%g
4651 s%@oldincludedir@%$oldincludedir%g
4652 s%@infodir@%$infodir%g
4653 s%@mandir@%$mandir%g
4654 s%@host@%$host%g
4655 s%@host_alias@%$host_alias%g
4656 s%@host_cpu@%$host_cpu%g
4657 s%@host_vendor@%$host_vendor%g
4658 s%@host_os@%$host_os%g
4659 s%@target@%$target%g
4660 s%@target_alias@%$target_alias%g
4661 s%@target_cpu@%$target_cpu%g
4662 s%@target_vendor@%$target_vendor%g
4663 s%@target_os@%$target_os%g
4664 s%@build@%$build%g
4665 s%@build_alias@%$build_alias%g
4666 s%@build_cpu@%$build_cpu%g
4667 s%@build_vendor@%$build_vendor%g
4668 s%@build_os@%$build_os%g
4669 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4670 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4671 s%@INSTALL_DATA@%$INSTALL_DATA%g
4672 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
4673 s%@build_subdir@%$build_subdir%g
4674 s%@host_subdir@%$host_subdir%g
4675 s%@target_subdir@%$target_subdir%g
4676 s%@CC@%$CC%g
4677 s%@GNATBIND@%$GNATBIND%g
4678 s%@stage1_languages@%$stage1_languages%g
4679 s%@DEFAULT_YACC@%$DEFAULT_YACC%g
4680 s%@DEFAULT_M4@%$DEFAULT_M4%g
4681 s%@DEFAULT_LEX@%$DEFAULT_LEX%g
4682 /@maybe_dependencies@/r $maybe_dependencies
4683 s%@maybe_dependencies@%%g
4684 /@serialization_dependencies@/r $serialization_dependencies
4685 s%@serialization_dependencies@%%g
4686 /@host_makefile_frag@/r $host_makefile_frag
4687 s%@host_makefile_frag@%%g
4688 /@target_makefile_frag@/r $target_makefile_frag
4689 s%@target_makefile_frag@%%g
4690 /@alphaieee_frag@/r $alphaieee_frag
4691 s%@alphaieee_frag@%%g
4692 /@ospace_frag@/r $ospace_frag
4693 s%@ospace_frag@%%g
4694 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
4695 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
4696 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
4697 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
4698 s%@gcc_version_trigger@%$gcc_version_trigger%g
4699 s%@gcc_version@%$gcc_version%g
4700 s%@tooldir@%$tooldir%g
4701 s%@build_tooldir@%$build_tooldir%g
4702 s%@GDB_TK@%$GDB_TK%g
4703 s%@gxx_include_dir@%$gxx_include_dir%g
4704 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
4705 s%@build_configargs@%$build_configargs%g
4706 s%@configure_build_modules@%$configure_build_modules%g
4707 s%@all_build_modules@%$all_build_modules%g
4708 s%@host_configargs@%$host_configargs%g
4709 s%@configdirs@%$configdirs%g
4710 s%@target_configargs@%$target_configargs%g
4711 s%@target_configdirs@%$target_configdirs%g
4712 s%@BISON@%$BISON%g
4713 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4714 s%@LEX@%$LEX%g
4715 s%@MAKEINFO@%$MAKEINFO%g
4716 s%@YACC@%$YACC%g
4717 s%@config_shell@%$config_shell%g
4718 s%@AR@%$AR%g
4719 s%@ncn_cv_AR@%$ncn_cv_AR%g
4720 s%@AS@%$AS%g
4721 s%@ncn_cv_AS@%$ncn_cv_AS%g
4722 s%@DLLTOOL@%$DLLTOOL%g
4723 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
4724 s%@LD@%$LD%g
4725 s%@ncn_cv_LD@%$ncn_cv_LD%g
4726 s%@NM@%$NM%g
4727 s%@ncn_cv_NM@%$ncn_cv_NM%g
4728 s%@RANLIB@%$RANLIB%g
4729 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
4730 s%@WINDRES@%$WINDRES%g
4731 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
4732 s%@OBJCOPY@%$OBJCOPY%g
4733 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
4734 s%@OBJDUMP@%$OBJDUMP%g
4735 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
4736 s%@CXX@%$CXX%g
4737 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
4738 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
4739 s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g
4740 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
4741 s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g
4742 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
4743 s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g
4744 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
4745 s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g
4746 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
4747 s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g
4748 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
4749 s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g
4750 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
4751 s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g
4752 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
4753 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
4754 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
4755 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
4756 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
4757 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
4758 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4759 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4760 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
4761 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
4762 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
4763 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
4764 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
4765 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
4766 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
4767 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4768 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4769 s%@MAINT@%$MAINT%g
4770 s%@stage1_cflags@%$stage1_cflags%g
4771 s%@stage2_werror_flag@%$stage2_werror_flag%g
4773 CEOF
4776 cat >> $CONFIG_STATUS <<\EOF
4778 # Split the substitutions into bite-sized pieces for seds with
4779 # small command number limits, like on Digital OSF/1 and HP-UX.
4780 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4781 ac_file=1 # Number of current file.
4782 ac_beg=1 # First line for current file.
4783 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4784 ac_more_lines=:
4785 ac_sed_cmds=""
4786 while $ac_more_lines; do
4787 if test $ac_beg -gt 1; then
4788 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4789 else
4790 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4792 if test ! -s conftest.s$ac_file; then
4793 ac_more_lines=false
4794 rm -f conftest.s$ac_file
4795 else
4796 if test -z "$ac_sed_cmds"; then
4797 ac_sed_cmds="sed -f conftest.s$ac_file"
4798 else
4799 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4801 ac_file=`expr $ac_file + 1`
4802 ac_beg=$ac_end
4803 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4805 done
4806 if test -z "$ac_sed_cmds"; then
4807 ac_sed_cmds=cat
4811 cat >> $CONFIG_STATUS <<EOF
4813 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4815 cat >> $CONFIG_STATUS <<\EOF
4816 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4817 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4818 case "$ac_file" in
4819 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4820 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4821 *) ac_file_in="${ac_file}.in" ;;
4822 esac
4824 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4826 # Remove last slash and all that follows it. Not all systems have dirname.
4827 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4828 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4829 # The file is in a subdirectory.
4830 test ! -d "$ac_dir" && mkdir "$ac_dir"
4831 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4832 # A "../" for each directory in $ac_dir_suffix.
4833 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4834 else
4835 ac_dir_suffix= ac_dots=
4838 case "$ac_given_srcdir" in
4839 .) srcdir=.
4840 if test -z "$ac_dots"; then top_srcdir=.
4841 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4842 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4843 *) # Relative path.
4844 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4845 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4846 esac
4848 case "$ac_given_INSTALL" in
4849 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4850 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4851 esac
4853 echo creating "$ac_file"
4854 rm -f "$ac_file"
4855 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4856 case "$ac_file" in
4857 *Makefile*) ac_comsub="1i\\
4858 # $configure_input" ;;
4859 *) ac_comsub= ;;
4860 esac
4862 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4863 sed -e "$ac_comsub
4864 s%@configure_input@%$configure_input%g
4865 s%@srcdir@%$srcdir%g
4866 s%@top_srcdir@%$top_srcdir%g
4867 s%@INSTALL@%$INSTALL%g
4868 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4869 fi; done
4870 rm -f conftest.s*
4873 cat >> $CONFIG_STATUS <<EOF
4876 cat >> $CONFIG_STATUS <<\EOF
4878 exit 0
4880 chmod +x $CONFIG_STATUS
4881 rm -fr confdefs* $ac_clean_files
4882 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1