* config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
[official-gcc.git] / configure
blobc0f7d25050582333df0622a27792d8f24e9c58f8
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.
785 ### we might need to use some other shell than /bin/sh for running subshells
786 ### If we are on Windows, search for the shell. This will permit people
787 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
788 ### without also having to set CONFIG_SHELL. This code will work when
789 ### using bash, which sets OSTYPE.
790 case "${OSTYPE}" in
791 *win32*)
792 if test x${CONFIG_SHELL} = x ; then
793 if test ! -f /bin/sh ; then
794 if test x${SHELL} != x && test -f ${SHELL} ; then
795 CONFIG_SHELL=${SHELL}
796 export CONFIG_SHELL
797 else
798 for prog in sh sh.exe bash bash.exe; do
799 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
800 for dir in $PATH; do
801 test -z "$dir" && dir=.
802 if test -f $dir/$prog; then
803 CONFIG_SHELL=$dir/$prog
804 export CONFIG_SHELL
805 break
807 done
808 IFS="$save_ifs"
809 test -n "${CONFIG_SHELL}" && break
810 done
815 esac
817 config_shell=${CONFIG_SHELL-/bin/sh}
819 progname=$0
820 # if PWD already has a value, it is probably wrong.
821 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
823 # Export original configure arguments for use by sub-configures. These
824 # will be expanded by make, so quote '$'.
825 tmp="$progname $@"
826 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
827 $tmp
828 EOF_SED
829 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
830 rm -f conftestsed.out
833 moveifchange=${srcdir}/move-if-change
835 # Set srcdir to "." if that's what it is.
836 # This is important for multilib support.
837 pwd=`${PWDCMD-pwd}`
838 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
839 if test "${pwd}" = "${srcpwd}" ; then
840 srcdir=.
843 topsrcdir=$srcpwd
845 extra_host_args=
846 # Define the trigger file to make sure configure will re-run whenever
847 # the gcc version number changes.
848 if test "${with_gcc_version_trigger+set}" = set ; then
849 gcc_version_trigger="$with_gcc_version_trigger"
850 gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
851 else
852 # If gcc's sources are available, define the trigger file.
853 if test -f ${topsrcdir}/gcc/version.c ; then
854 gcc_version_trigger=${topsrcdir}/gcc/version.c
855 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
856 case "$ac_configure_args" in
857 *--with-gcc-version-trigger=$gcc_version_trigger* )
860 # Add to all subconfigure arguments: build, host, and target.
861 ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
863 esac
867 ### To add a new directory to the tree, first choose whether it is a target
868 ### or a host dependent tool. Then put it into the appropriate list
869 ### (library or tools, host or target), doing a dependency sort.
871 # Subdirs will be configured in the order listed in build_configdirs,
872 # configdirs, or target_configdirs; see the serialization section below.
874 # Dependency sorting is only needed when *configuration* must be done in
875 # a particular order. In all cases a dependency should be specified in
876 # the Makefile, whether or not it's implicitly specified here.
878 # Double entries in build_configdirs, configdirs, or target_configdirs may
879 # cause circular dependencies and break everything horribly.
881 # these libraries are used by various programs built for the host environment
883 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib"
885 # these tools are built for the host environment
886 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
887 # know that we are building the simulator.
888 # binutils, gas and ld appear in that order because it makes sense to run
889 # "make check" in that particular order.
890 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"
892 # libgcj represents the runtime libraries only used by gcj.
893 libgcj="target-libffi \
894 target-boehm-gc \
895 target-zlib \
896 target-qthreads \
897 target-libjava"
899 # these libraries are built for the target environment, and are built after
900 # the host libraries and the host tools (which may be a cross compiler)
902 target_libraries="target-libiberty \
903 target-libgloss \
904 target-newlib \
905 target-libstdc++-v3 \
906 target-libf2c \
907 ${libgcj} \
908 target-libobjc \
909 target-libada"
911 # these tools are built using the target libraries, and are intended to
912 # run only in the target environment
914 # note: any program that *uses* libraries that are in the "target_libraries"
915 # list belongs in this list. those programs are also very likely
916 # candidates for the "native_only" list which follows
918 target_tools="target-examples target-groff target-gperf target-rda"
920 ################################################################################
922 ## All tools belong in one of the four categories, and are assigned above
923 ## We assign ${configdirs} this way to remove all embedded newlines. This
924 ## is important because configure will choke if they ever get through.
925 ## ${configdirs} is directories we build using the host tools.
926 ## ${target_configdirs} is directories we build using the target tools.
928 configdirs=`echo ${host_libs} ${host_tools}`
929 target_configdirs=`echo ${target_libraries} ${target_tools}`
931 # Only make build modules if build != host.
932 # This should be done more generally, but at the moment it doesn't matter.
933 if test ${host_alias} != ${build_alias} ; then
934 # This is the only build module.
935 build_modules=libiberty
936 else
937 build_modules=
941 ################################################################################
943 srcname="gnu development package"
945 # This gets set non-empty for some net releases of packages.
946 appdirs=""
948 # Define is_cross_compiler to save on calls to 'test'.
949 is_cross_compiler=
950 if test x"${host}" = x"${target}" ; then
951 is_cross_compiler=no
952 else
953 is_cross_compiler=yes
956 # Find the build and target subdir names.
957 case ${build_alias} in
958 "") build_noncanonical=${build} ;;
959 *) build_noncanonical=${build_alias} ;;
960 esac
962 case ${host_alias} in
963 "") host_noncanonical=${build_noncanonical} ;;
964 *) host_noncanonical=${host_alias} ;;
965 esac
967 case ${target_alias} in
968 "") target_noncanonical=${host_noncanonical} ;;
969 *) target_noncanonical=${target_alias} ;;
970 esac
972 # Prefix 'build-' so this never conflicts with target_subdir.
973 build_subdir="build-${build_noncanonical}"
974 # Not really a subdirectory, but here for completeness.
975 host_subdir=.
976 # No prefix.
977 target_subdir=${target_noncanonical}
980 # Skipdirs are removed silently.
981 skipdirs=
982 # Noconfigdirs are removed loudly.
983 noconfigdirs=""
985 use_gnu_ld=
986 # Make sure we don't let GNU ld be added if we didn't want it.
987 if test x$with_gnu_ld = xno ; then
988 use_gnu_ld=no
989 noconfigdirs="$noconfigdirs ld"
992 use_gnu_as=
993 # Make sure we don't let GNU as be added if we didn't want it.
994 if test x$with_gnu_as = xno ; then
995 use_gnu_as=no
996 noconfigdirs="$noconfigdirs gas"
999 # some tools are so dependent upon X11 that if we're not building with X,
1000 # it's not even worth trying to configure, much less build, that tool.
1002 case ${with_x} in
1003 yes | "") ;; # the default value for this tree is that X11 is available
1005 skipdirs="${skipdirs} tk tix itcl libgui"
1006 # We won't be able to build gdbtk without X.
1007 enable_gdbtk=no
1009 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1010 esac
1012 # Some tools are only suitable for building in a "native" situation.
1013 # Remove these if host!=target.
1014 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"
1016 # Similarly, some are only suitable for cross toolchains.
1017 # Remove these if host=target.
1018 cross_only="target-libgloss target-newlib target-opcodes"
1020 case $is_cross_compiler in
1021 no) skipdirs="${skipdirs} ${cross_only}" ;;
1022 yes) skipdirs="${skipdirs} ${native_only}" ;;
1023 esac
1025 # If both --with-headers and --with-libs are specified, default to
1026 # --without-newlib.
1027 if test x"${with_headers}" != x && test x"${with_headers} != xno \
1028 && test x"${with_libs}" != x && test x"${with_libs} != xno ; then
1029 if test x"${with_newlib}" = x ; then
1030 with_newlib=no
1034 # Recognize --with-newlib/--without-newlib.
1035 case ${with_newlib} in
1036 no) skipdirs="${skipdirs} target-newlib" ;;
1037 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1038 esac
1040 # Configure extra directories which are host specific
1042 case "${host}" in
1043 *-cygwin*)
1044 configdirs="$configdirs libtermcap" ;;
1045 esac
1047 # Remove more programs from consideration, based on the host or
1048 # target this usually means that a port of the program doesn't
1049 # exist yet.
1051 case "${host}" in
1052 hppa*64*-*-*)
1053 noconfigdirs="$noconfigdirs byacc"
1055 i[3456789]86-*-vsta)
1056 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext"
1058 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1059 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi"
1061 i[3456789]86-*-mingw32*)
1062 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv"
1063 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1065 i[3456789]86-*-beos*)
1066 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb"
1068 *-*-cygwin*)
1069 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1071 *-*-netbsd*)
1072 noconfigdirs="$noconfigdirs rcs"
1074 ppc*-*-pe)
1075 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv"
1077 powerpc-*-beos*)
1078 noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
1080 *-*-darwin*)
1081 noconfigdirs="$noconfigdirs tk itcl tix libgui"
1083 esac
1085 # Check whether --enable-libada or --disable-libada was given.
1086 if test "${enable_libada+set}" = set; then
1087 enableval="$enable_libada"
1088 ENABLE_LIBADA=$enableval
1089 else
1090 ENABLE_LIBADA=yes
1093 if test "${ENABLE_LIBADA}" != "yes" ; then
1094 noconfigdirs="$noconfigdirs target-libada"
1097 # Save it here so that, even in case of --enable-libgcj, if the Java
1098 # front-end isn't enabled, we still get libgcj disabled.
1099 libgcj_saved=$libgcj
1100 case $enable_libgcj in
1101 yes)
1102 # If we reset it here, it won't get added to noconfigdirs in the
1103 # target-specific build rules, so it will be forcibly enabled
1104 # (unless the Java language itself isn't enabled).
1105 libgcj=
1108 # Make sure we get it printed in the list of not supported target libs.
1109 noconfigdirs="$noconfigdirs ${libgcj}"
1111 esac
1113 case "${target}" in
1114 *-*-chorusos)
1115 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1117 powerpc-*-darwin*)
1118 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1119 noconfigdirs="$noconfigdirs target-libobjc"
1121 *-*-darwin*)
1122 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1123 noconfigdirs="$noconfigdirs target-libobjc ${libgcj}"
1125 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1126 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1128 *-*-kaos*)
1129 # Remove unsupported stuff on all kaOS configurations.
1130 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-libf2c target-librx"
1131 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1132 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1133 noconfigdirs="$noconfigdirs target-libgloss"
1135 *-*-netbsd*)
1136 # Skip some stuff on all NetBSD configurations.
1137 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1139 # Skip some stuff that's unsupported on some NetBSD configurations.
1140 case "${target}" in
1141 i*86-*-netbsdelf*) ;;
1142 arm*-*-netbsdelf*) ;;
1144 noconfigdirs="$noconfigdirs ${libgcj}"
1146 esac
1148 *-*-netware)
1149 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
1151 *-*-rtems*)
1152 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1153 case ${target} in
1154 h8300*-*-* | h8500-*-*)
1155 noconfigdirs="$noconfigdirs target-libf2c"
1157 *) ;;
1158 esac
1160 *-*-uclinux*)
1161 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1163 *-*-vxworks*)
1164 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
1166 alpha*-dec-osf*)
1167 # ld works, but does not support shared libraries.
1168 # newlib is not 64 bit ready. I'm not sure about fileutils.
1169 # gas doesn't generate exception information.
1170 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1172 alpha*-*-*vms*)
1173 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1175 alpha*-*-linux*)
1176 # newlib is not 64 bit ready
1177 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1179 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
1180 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1182 alpha*-*-*)
1183 # newlib is not 64 bit ready
1184 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1186 am33_2.0-*-linux*)
1187 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1189 sh-*-linux*)
1190 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1192 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1193 noconfigdirs="$noconfigdirs ${libgcj}"
1194 noconfigdirs="$noconfigdirs target-examples"
1195 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1196 noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim"
1197 noconfigdirs="$noconfigdirs expect dejagnu"
1198 # the C++ libraries don't build on top of CE's C libraries
1199 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1200 noconfigdirs="$noconfigdirs target-newlib"
1201 case "${host}" in
1202 *-*-cygwin*) ;; # keep gdb and readline
1203 *) noconfigdirs="$noconfigdirs gdb readline"
1205 esac
1207 arc-*-*)
1208 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1210 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1211 noconfigdirs="$noconfigdirs ${libgcj}"
1213 arm-*-elf* | strongarm-*-elf* | xscale-*-elf*)
1214 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1216 arm-*-pe*)
1217 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1219 arm-*-oabi*)
1220 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1222 thumb-*-coff)
1223 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1225 thumb-*-elf)
1226 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1228 thumb-*-oabi)
1229 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1231 thumb-*-pe)
1232 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1234 arm-*-riscix*)
1235 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1237 avr-*-*)
1238 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1240 c4x-*-* | tic4x-*-*)
1241 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1243 c54x*-*-* | tic54x-*-*)
1244 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1246 cris-*-*)
1247 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1249 d10v-*-*)
1250 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1252 d30v-*-*)
1253 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1255 fr30-*-elf*)
1256 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1258 frv-*-*)
1259 noconfigdirs="$noconfigdirs ${libgcj}"
1261 h8300*-*-*)
1262 noconfigdirs="$noconfigdirs target-libgloss ${libgcj} target-libf2c"
1264 h8500-*-*)
1265 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} target-libf2c"
1267 hppa*64*-*-linux* | parisc*64*-*-linux*)
1268 # In this case, it's because the hppa64-linux target is for
1269 # the kernel only at this point and has no libc, and thus no
1270 # headers, crt*.o, etc., all of which are needed by these.
1271 noconfigdirs="$noconfigdirs target-zlib"
1273 hppa*-*-*elf* | \
1274 parisc*-*-linux* | hppa*-*-linux* | \
1275 hppa*-*-lites* | \
1276 hppa*-*-openbsd* | \
1277 hppa*64*-*-*)
1278 noconfigdirs="$noconfigdirs ${libgcj}"
1279 # Do configure ld/binutils/gas for this case.
1281 hppa*-*-*)
1282 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1283 # build on HP-UX 10.20.
1284 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1286 i960-*-*)
1287 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1289 ia64*-*-elf*)
1290 # No gdb support yet.
1291 noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1293 ia64*-**-hpux*)
1294 # No gdb or ld support yet.
1295 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
1297 i[3456789]86-*-coff | i[3456789]86-*-elf)
1298 noconfigdirs="$noconfigdirs ${libgcj}"
1300 i[3456789]86-*-freebsd* | i[3456789]86-*-kfreebsd*-gnu)
1301 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1303 i[3456789]86-*-linux*)
1304 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1305 # not build java stuff by default.
1306 case "${target}" in
1307 *-*-*libc1*)
1308 noconfigdirs="$noconfigdirs ${libgcj}";;
1309 esac
1311 # This section makes it possible to build newlib natively on linux.
1312 # If we are using a cross compiler then don't configure newlib.
1313 if test x${is_cross_compiler} != xno ; then
1314 noconfigdirs="$noconfigdirs target-newlib"
1316 noconfigdirs="$noconfigdirs target-libgloss"
1317 # If we are not using a cross compiler, do configure newlib.
1318 # Note however, that newlib will only be configured in this situation
1319 # if the --with-newlib option has been given, because otherwise
1320 # 'target-newlib' will appear in skipdirs.
1322 i[3456789]86-*-mingw32*)
1323 target_configdirs="$target_configdirs target-mingw"
1324 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1326 # Can't build gdb for mingw32 if not native.
1327 case "${host}" in
1328 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1329 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix gnuserv"
1331 esac
1333 *-*-cygwin*)
1334 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1335 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1336 # always build newlib.
1337 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1339 # Can't build gdb for Cygwin if not native.
1340 case "${host}" in
1341 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1342 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv"
1344 esac
1346 i[3456789]86-*-pe)
1347 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1349 i[3456789]86-*-sco3.2v5*)
1350 # The linker does not yet know about weak symbols in COFF,
1351 # and is not configured to handle mixed ELF and COFF.
1352 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1354 i[3456789]86-*-sco*)
1355 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1357 i[3456789]86-*-solaris2*)
1358 noconfigdirs="$noconfigdirs target-libgloss"
1360 i[3456789]86-*-sysv4*)
1361 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1363 i[3456789]86-*-beos*)
1364 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1366 m32r-*-*)
1367 noconfigdirs="$noconfigdirs ${libgcj}"
1369 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1370 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1372 m68k-*-elf*)
1373 noconfigdirs="$noconfigdirs ${libgcj}"
1375 m68k-*-coff*)
1376 noconfigdirs="$noconfigdirs ${libgcj}"
1378 mcore-*-pe*)
1379 # The EPOC C++ environment does not support exceptions or rtti,
1380 # and so building libstdc++-v3 tends not to always work.
1381 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1383 mmix-*-*)
1384 noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss"
1386 mn10200-*-*)
1387 noconfigdirs="$noconfigdirs ${libgcj}"
1389 mn10300-*-*)
1390 noconfigdirs="$noconfigdirs ${libgcj}"
1392 powerpc-*-aix*)
1393 # copied from rs6000-*-* entry
1394 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1396 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1397 target_configdirs="$target_configdirs target-winsup"
1398 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}"
1399 # always build newlib.
1400 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1402 # This is temporary until we can link against shared libraries
1403 powerpcle-*-solaris*)
1404 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}"
1406 powerpc-*-beos*)
1407 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1409 powerpc-*-eabi)
1410 noconfigdirs="$noconfigdirs ${libgcj}"
1412 rs6000-*-lynxos*)
1413 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1415 rs6000-*-aix*)
1416 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1418 rs6000-*-*)
1419 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1421 m68k-apollo-*)
1422 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1424 mips*-*-irix5*)
1425 # The GNU linker does not support shared libraries.
1426 noconfigdirs="$noconfigdirs ld gprof target-libgloss ${libgcj}"
1428 mips*-*-irix6*)
1429 # Linking libjava exceeds command-line length limits on at least
1430 # IRIX 6.2, but not on IRIX 6.5.
1431 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1432 # <oldham@codesourcery.com>
1433 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1435 mips*-dec-bsd*)
1436 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1438 mips*-*-bsd*)
1439 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1441 mipstx39-*-*)
1442 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1444 mips64*-*-linux*)
1445 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1447 mips*-*-linux*)
1448 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1450 mips*-*-*)
1451 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1453 romp-*-*)
1454 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1456 sh-*-*)
1457 case "${host}" in
1458 i[3456789]86-*-vsta) ;; # don't add gprof back in
1459 i[3456789]86-*-go32*) ;; # don't add gprof back in
1460 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1461 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1462 esac
1463 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1465 sh64-*-*)
1466 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1468 sparc-*-elf*)
1469 noconfigdirs="$noconfigdirs ${libgcj}"
1471 sparc64-*-elf*)
1472 noconfigdirs="$noconfigdirs ${libgcj}"
1474 sparclite-*-*)
1475 noconfigdirs="$noconfigdirs ${libgcj}"
1477 sparc-*-sunos4*)
1478 noconfigdirs="$noconfigdirs ${libgcj}"
1479 if test x${is_cross_compiler} != xno ; then
1480 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1481 else
1482 use_gnu_ld=no
1485 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1487 v810-*-*)
1488 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1490 v850-*-*)
1491 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1493 v850e-*-*)
1494 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1496 v850ea-*-*)
1497 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1499 vax-*-vms)
1500 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1502 vax-*-*)
1503 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1505 xtensa-*-*)
1506 noconfigdirs="$noconfigdirs ${libgcj}"
1508 ip2k-*-*)
1509 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1511 *-*-linux*)
1512 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1514 *-*-lynxos*)
1515 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1517 *-*-*)
1518 noconfigdirs="$noconfigdirs ${libgcj}"
1520 esac
1522 # If we aren't building newlib, then don't build libgloss, since libgloss
1523 # depends upon some newlib header files.
1524 case "${noconfigdirs}" in
1525 *target-libgloss*) ;;
1526 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1527 esac
1529 # Work in distributions that contain no compiler tools, like Autoconf.
1530 tentative_cc=""
1531 host_makefile_frag=/dev/null
1532 if test -d ${srcdir}/config ; then
1533 case "${host}" in
1534 m68k-hp-hpux*)
1535 # Avoid "too much defining" errors from HPUX compiler.
1536 tentative_cc="cc -Wp,-H256000"
1537 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1538 # If it's HP/UX ar, this should be harmless.
1539 RANLIB="ar ts"
1541 m68k-apollo-sysv*)
1542 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1544 m68k-apollo-bsd*)
1545 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1546 # chokes on bfd, the compiler won't let you assign integers to enums, and
1547 # other problems. Defining CC to gcc is a questionable way to say "don't use
1548 # the apollo compiler" (the preferred version of GCC could be called cc,
1549 # or whatever), but I'm not sure leaving CC as cc is any better...
1550 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1551 # Used to have BISON=yacc.
1552 tentative_cc=gcc
1554 m88k-dg-dgux*)
1555 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1557 m88k-harris-cxux*)
1558 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1559 tentative_cc="cc -Xa"
1560 host_makefile_frag="config/mh-cxux"
1562 m88k-motorola-sysv*)
1564 mips*-dec-ultrix*)
1565 tentative_cc="cc -Wf,-XNg1000"
1566 host_makefile_frag="config/mh-decstation"
1568 mips*-nec-sysv4*)
1569 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1570 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1571 host_makefile_frag="config/mh-necv4"
1573 mips*-sgi-irix4*)
1574 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1575 # environment. Also bump switch table size so that cp-parse will
1576 # compile. Bump string length limit so linker builds.
1577 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1579 mips*-*-sysv4*)
1580 host_makefile_frag="config/mh-sysv4"
1582 mips*-*-sysv*)
1583 # This is for a MIPS running RISC/os 4.52C.
1585 # This is needed for GDB, but needs to be in the top-level make because
1586 # if a library is compiled with the bsd headers and gets linked with the
1587 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1588 # a different size).
1589 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1590 # known except to select the sysv environment. Could we use /proc instead?
1591 # These "sysv environments" and "bsd environments" often end up being a pain.
1593 # This is not part of CFLAGS because perhaps not all C compilers have this
1594 # option.
1595 tentative_cc="cc -systype sysv"
1597 i370-ibm-opened*)
1598 tentative_cc="c89"
1600 i[3456789]86-*-sysv5*)
1601 host_makefile_frag="config/mh-sysv5"
1603 i[3456789]86-*-dgux*)
1604 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1605 host_makefile_frag="config/mh-dgux386"
1607 i[3456789]86-ncr-sysv4.3*)
1608 # The MetaWare compiler will generate a copyright message unless you
1609 # turn it off by adding the -Hnocopyr flag.
1610 tentative_cc="cc -Hnocopyr"
1612 i[3456789]86-ncr-sysv4*)
1613 # for an NCR 3000 (i486/SVR4) system.
1614 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1615 # This compiler not only emits obnoxious copyright messages every time
1616 # you run it, but it chokes and dies on a whole bunch of GNU source
1617 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1618 tentative_cc="/usr/ccs/ATT/cc"
1619 host_makefile_frag="config/mh-ncr3000"
1621 i[3456789]86-*-sco3.2v5*)
1623 i[3456789]86-*-sco*)
1624 # The native C compiler botches some simple uses of const. Unfortunately,
1625 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1626 tentative_cc="cc -Dconst="
1627 host_makefile_frag="config/mh-sco"
1629 i[3456789]86-*-udk*)
1630 host_makefile_frag="config/mh-sysv5"
1632 i[3456789]86-*-solaris2*)
1633 host_makefile_frag="config/mh-sysv4"
1635 i[3456789]86-*-msdosdjgpp*)
1636 host_makefile_frag="config/mh-djgpp"
1638 *-cygwin*)
1639 host_makefile_frag="config/mh-cygwin"
1641 *-mingw32*)
1642 host_makefile_frag="config/mh-mingw32"
1644 *-interix*)
1645 host_makefile_frag="config/mh-interix"
1647 vax-*-ultrix2*)
1648 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1649 tentative_cc=gcc
1651 *-*-solaris2*)
1652 host_makefile_frag="config/mh-solaris"
1654 m68k-sun-sunos*)
1655 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1656 # without overflowing the jump tables (-J says to use a 32 bit table)
1657 tentative_cc="cc -J"
1659 *-hp-hpux*)
1660 tentative_cc="cc -Wp,-H256000"
1662 *-*-hiux*)
1663 tentative_cc="cc -Wp,-H256000"
1665 rs6000-*-lynxos*)
1666 # /bin/cc is less than useful for our purposes. Always use GCC
1667 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1668 host_makefile_frag="config/mh-lynxrs6k"
1670 *-*-lynxos*)
1671 # /bin/cc is less than useful for our purposes. Always use GCC
1672 tentative_cc="/bin/gcc"
1674 *-*-sysv4*)
1675 host_makefile_frag="config/mh-sysv4"
1677 esac
1680 # If we aren't going to be using gcc, see if we can extract a definition
1681 # of CC from the fragment.
1682 # Actually, use the 'pre-extracted' version above.
1683 if test -z "${CC}" && test "${build}" = "${host}" ; then
1684 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1685 found=
1686 for dir in $PATH; do
1687 test -z "$dir" && dir=.
1688 if test -f $dir/gcc; then
1689 found=yes
1690 break
1692 done
1693 IFS="$save_ifs"
1694 if test -z "${found}" && test -n "${tentative_cc}" ; then
1695 CC=$tentative_cc
1699 if test "${build}" != "${host}" ; then
1700 # If we are doing a Canadian Cross, in which the host and build systems
1701 # are not the same, we set reasonable default values for the tools.
1703 BISON=${BISON-bison}
1704 CC=${CC-${host_alias}-gcc}
1705 CFLAGS=${CFLAGS-"-g -O2"}
1706 CXX=${CXX-${host_alias}-c++}
1707 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1708 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1709 CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc}
1710 CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
1711 GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
1712 GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
1713 BUILD_PREFIX=${build_alias}-
1714 BUILD_PREFIX_1=${build_alias}-
1715 MAKEINFO=${MAKEINFO-makeinfo}
1717 if test -z "${YACC}" ; then
1718 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1719 for dir in $PATH; do
1720 test -z "$dir" && dir=.
1721 if test -f $dir/bison; then
1722 YACC="bison -y"
1723 break
1725 if test -f $dir/byacc; then
1726 YACC=byacc
1727 break
1729 if test -f $dir/yacc; then
1730 YACC=yacc
1731 break
1733 done
1734 IFS="$save_ifs"
1735 if test -z "${YACC}" ; then
1736 YACC="bison -y"
1740 if test -z "${LEX}" ; then
1741 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1742 for dir in $PATH; do
1743 test -z "$dir" && dir=.
1744 if test -f $dir/flex; then
1745 LEX=flex
1746 break
1748 if test -f $dir/lex; then
1749 LEX=lex
1750 break
1752 done
1753 IFS="$save_ifs"
1754 LEX=${LEX-flex}
1757 else
1758 # Set reasonable default values for some tools even if not Canadian.
1759 # Of course, these are different reasonable default values, originally
1760 # specified directly in the Makefile.
1761 # We don't export, so that autoconf can do its job.
1762 # Note that all these settings are above the fragment inclusion point
1763 # in Makefile.in, so can still be overridden by fragments.
1764 # This is all going to change when we autoconfiscate...
1766 BISON="\$(USUAL_BISON)"
1767 CC_FOR_BUILD="\$(CC)"
1768 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
1769 BUILD_PREFIX=
1770 BUILD_PREFIX_1=loser-
1771 MAKEINFO="\$(USUAL_MAKEINFO)"
1772 LEX="\$(USUAL_LEX)"
1773 YACC="\$(USUAL_YACC)"
1775 # If CC is still not set, try to get gcc.
1776 cc_prog_is_gcc=
1777 if test -z "${CC}" ; then
1778 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1779 for dir in $PATH; do
1780 test -z "$dir" && dir=.
1781 if test -f $dir/gcc; then
1782 CC="gcc"
1783 cc_prog_is_gcc=yes
1784 echo 'void f(){}' > conftest.c
1785 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1786 CFLAGS=${CFLAGS-"-g -O2"}
1787 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1788 else
1789 CFLAGS=${CFLAGS-"-O2"}
1790 CXXFLAGS=${CXXFLAGS-"-O2"}
1792 rm -f conftest*
1793 break
1795 done
1796 IFS="$save_ifs"
1797 CC=${CC-cc}
1798 else
1799 # Determine if we are using gcc.
1800 cat > conftest.c <<EOF
1801 #ifdef __GNUC__
1802 yes;
1803 #endif
1805 if ${CC} -E conftest.c | grep yes >/dev/null 2>&1; then
1806 cc_prog_is_gcc=yes
1808 rm -f conftest.c
1809 if test -z "${CFLAGS}"; then
1810 # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
1811 # is set to a version of gcc.
1812 if test "$cc_prog_is_gcc" = yes; then
1813 echo 'void f(){}' > conftest.c
1814 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1815 CFLAGS=${CFLAGS-"-g -O2"}
1816 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1817 else
1818 CFLAGS=${CFLAGS-"-O2"}
1819 CXXFLAGS=${CXXFLAGS-"-O2"}
1821 rm -f conftest*
1826 # We must set the default linker to the linker used by gcc for the correct
1827 # operation of libtool. If LD is not defined and we are using gcc, try to
1828 # set the LD default to the ld used by gcc.
1829 if test -z "$LD"; then
1830 if test "$cc_prog_is_gcc" = yes; then
1831 case $build in
1832 *-*-mingw*)
1833 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
1835 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
1836 esac
1837 case $gcc_prog_ld in
1838 # Accept absolute paths.
1839 [\\/]* | [A-Za-z]:[\\/]*)
1840 LD="$gcc_prog_ld" ;;
1841 esac
1845 CXX=${CXX-"c++"}
1846 CFLAGS=${CFLAGS-"-g"}
1847 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1850 if test $host != $build; then
1851 ac_tool_prefix=${host_alias}-
1852 else
1853 ac_tool_prefix=
1856 # Extract the first word of "gcc", so it can be a program name with args.
1857 set dummy gcc; ac_word=$2
1858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1859 echo "configure:1860: checking for $ac_word" >&5
1860 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1862 else
1863 if test -n "$CC"; then
1864 ac_cv_prog_CC="$CC" # Let the user override the test.
1865 else
1866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1867 ac_dummy="$PATH"
1868 for ac_dir in $ac_dummy; do
1869 test -z "$ac_dir" && ac_dir=.
1870 if test -f $ac_dir/$ac_word; then
1871 ac_cv_prog_CC="gcc"
1872 break
1874 done
1875 IFS="$ac_save_ifs"
1878 CC="$ac_cv_prog_CC"
1879 if test -n "$CC"; then
1880 echo "$ac_t""$CC" 1>&6
1881 else
1882 echo "$ac_t""no" 1>&6
1885 if test -z "$CC"; then
1886 # Extract the first word of "cc", so it can be a program name with args.
1887 set dummy cc; ac_word=$2
1888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1889 echo "configure:1890: checking for $ac_word" >&5
1890 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1891 echo $ac_n "(cached) $ac_c" 1>&6
1892 else
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC="$CC" # Let the user override the test.
1895 else
1896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1897 ac_prog_rejected=no
1898 ac_dummy="$PATH"
1899 for ac_dir in $ac_dummy; do
1900 test -z "$ac_dir" && ac_dir=.
1901 if test -f $ac_dir/$ac_word; then
1902 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1903 ac_prog_rejected=yes
1904 continue
1906 ac_cv_prog_CC="cc"
1907 break
1909 done
1910 IFS="$ac_save_ifs"
1911 if test $ac_prog_rejected = yes; then
1912 # We found a bogon in the path, so make sure we never use it.
1913 set dummy $ac_cv_prog_CC
1914 shift
1915 if test $# -gt 0; then
1916 # We chose a different compiler from the bogus one.
1917 # However, it has the same basename, so the bogon will be chosen
1918 # first if we set CC to just the basename; use the full file name.
1919 shift
1920 set dummy "$ac_dir/$ac_word" "$@"
1921 shift
1922 ac_cv_prog_CC="$@"
1927 CC="$ac_cv_prog_CC"
1928 if test -n "$CC"; then
1929 echo "$ac_t""$CC" 1>&6
1930 else
1931 echo "$ac_t""no" 1>&6
1934 if test -z "$CC"; then
1935 case "`uname -s`" in
1936 *win32* | *WIN32*)
1937 # Extract the first word of "cl", so it can be a program name with args.
1938 set dummy cl; ac_word=$2
1939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1940 echo "configure:1941: checking for $ac_word" >&5
1941 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1943 else
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC="$CC" # Let the user override the test.
1946 else
1947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1948 ac_dummy="$PATH"
1949 for ac_dir in $ac_dummy; do
1950 test -z "$ac_dir" && ac_dir=.
1951 if test -f $ac_dir/$ac_word; then
1952 ac_cv_prog_CC="cl"
1953 break
1955 done
1956 IFS="$ac_save_ifs"
1959 CC="$ac_cv_prog_CC"
1960 if test -n "$CC"; then
1961 echo "$ac_t""$CC" 1>&6
1962 else
1963 echo "$ac_t""no" 1>&6
1966 esac
1968 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1971 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1972 echo "configure:1973: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1974 ac_ext=c
1975 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1976 ac_cpp='$CPP $CPPFLAGS'
1977 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1978 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1979 cross_compiling=$ac_cv_prog_cc_cross
1981 cat > conftest.$ac_ext << EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1986 main(){return(0);}
1988 if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1989 ac_cv_prog_cc_works=yes
1990 # If we can't run a trivial program, we are probably using a cross compiler.
1991 if (./conftest; exit) 2>/dev/null; then
1992 ac_cv_prog_cc_cross=no
1993 else
1994 ac_cv_prog_cc_cross=yes
1996 else
1997 echo "configure: failed program was:" >&5
1998 cat conftest.$ac_ext >&5
1999 ac_cv_prog_cc_works=no
2001 rm -fr conftest*
2002 ac_ext=c
2003 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2006 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2007 cross_compiling=$ac_cv_prog_cc_cross
2009 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2010 if test $ac_cv_prog_cc_works = no; then
2011 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2013 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2014 echo "configure:2015: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2015 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2016 cross_compiling=$ac_cv_prog_cc_cross
2018 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2019 echo "configure:2020: checking whether we are using GNU C" >&5
2020 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2022 else
2023 cat > conftest.c <<EOF
2024 #ifdef __GNUC__
2025 yes;
2026 #endif
2028 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2029 ac_cv_prog_gcc=yes
2030 else
2031 ac_cv_prog_gcc=no
2035 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2037 if test $ac_cv_prog_gcc = yes; then
2038 GCC=yes
2039 else
2040 GCC=
2043 ac_test_CFLAGS="${CFLAGS+set}"
2044 ac_save_CFLAGS="$CFLAGS"
2045 CFLAGS=
2046 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2047 echo "configure:2048: checking whether ${CC-cc} accepts -g" >&5
2048 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2050 else
2051 echo 'void f(){}' > conftest.c
2052 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2053 ac_cv_prog_cc_g=yes
2054 else
2055 ac_cv_prog_cc_g=no
2057 rm -f conftest*
2061 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2062 if test "$ac_test_CFLAGS" = set; then
2063 CFLAGS="$ac_save_CFLAGS"
2064 elif test $ac_cv_prog_cc_g = yes; then
2065 if test "$GCC" = yes; then
2066 CFLAGS="-g -O2"
2067 else
2068 CFLAGS="-g"
2070 else
2071 if test "$GCC" = yes; then
2072 CFLAGS="-O2"
2073 else
2074 CFLAGS=
2080 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2081 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_word" >&5
2084 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2086 else
2087 if test -n "$GNATBIND"; then
2088 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2089 else
2090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2091 ac_dummy="$PATH"
2092 for ac_dir in $ac_dummy; do
2093 test -z "$ac_dir" && ac_dir=.
2094 if test -f $ac_dir/$ac_word; then
2095 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2096 break
2098 done
2099 IFS="$ac_save_ifs"
2102 GNATBIND="$ac_cv_prog_GNATBIND"
2103 if test -n "$GNATBIND"; then
2104 echo "$ac_t""$GNATBIND" 1>&6
2105 else
2106 echo "$ac_t""no" 1>&6
2110 if test -z "$ac_cv_prog_GNATBIND"; then
2111 if test -n "$ac_tool_prefix"; then
2112 # Extract the first word of "gnatbind", so it can be a program name with args.
2113 set dummy gnatbind; ac_word=$2
2114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2115 echo "configure:2116: checking for $ac_word" >&5
2116 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2118 else
2119 if test -n "$GNATBIND"; then
2120 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2121 else
2122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2123 ac_dummy="$PATH"
2124 for ac_dir in $ac_dummy; do
2125 test -z "$ac_dir" && ac_dir=.
2126 if test -f $ac_dir/$ac_word; then
2127 ac_cv_prog_GNATBIND="gnatbind"
2128 break
2130 done
2131 IFS="$ac_save_ifs"
2132 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2135 GNATBIND="$ac_cv_prog_GNATBIND"
2136 if test -n "$GNATBIND"; then
2137 echo "$ac_t""$GNATBIND" 1>&6
2138 else
2139 echo "$ac_t""no" 1>&6
2142 else
2143 GNATBIND="no"
2147 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2148 echo "configure:2149: checking whether compiler driver understands Ada" >&5
2149 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2151 else
2152 cat >conftest.adb <<EOF
2153 procedure conftest is begin null; end conftest;
2155 acx_cv_cc_gcc_supports_ada=no
2156 # There is a bug in old released versions of GCC which causes the
2157 # driver to exit successfully when the appropriate language module
2158 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2159 # Therefore we must check for the error message as well as an
2160 # unsuccessful exit.
2161 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2162 # given a .adb file, but produce no object file. So we must check
2163 # if an object file was really produced to guard against this.
2164 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2165 if test x"$errors" = x && test -f conftest.$ac_objext; then
2166 acx_cv_cc_gcc_supports_ada=yes
2167 break
2169 rm -f conftest.*
2172 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2174 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2175 have_gnat=yes
2176 else
2177 have_gnat=no
2180 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2181 echo "configure:2182: checking how to compare bootstrapped objects" >&5
2182 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2184 else
2185 echo abfoo >t1
2186 echo cdfoo >t2
2187 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2188 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2189 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2190 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2191 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2193 else
2194 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2197 else
2198 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2201 rm t1 t2
2205 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2206 do_compare="$gcc_cv_prog_cmp_skip"
2210 # By default, C is the only stage 1 language.
2211 stage1_languages=c
2214 # Figure out what language subdirectories are present.
2215 # Look if the user specified --enable-languages="..."; if not, use
2216 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2217 # go away some day.
2218 # NB: embedded tabs in this IF block -- do not untabify
2219 if test -d ${srcdir}/gcc; then
2220 if test x"${enable_languages+set}" != xset; then
2221 if test x"${LANGUAGES+set}" = xset; then
2222 enable_languages="${LANGUAGES}"
2223 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2224 else
2225 enable_languages=all
2227 else
2228 if test x"${enable_languages}" = x ||
2229 test x"${enable_languages}" = xyes;
2230 then
2231 echo configure.in: --enable-languages needs at least one language argument 1>&2
2232 exit 1
2235 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2237 # First scan to see if an enabled language requires some other language.
2238 # We assume that a given config-lang.in will list all the language
2239 # front ends it requires, even if some are required indirectly.
2240 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2241 case ${lang_frag} in
2242 ..) ;;
2243 # The odd quoting in the next line works around
2244 # an apparent bug in bash 1.12 on linux.
2245 ${srcdir}/gcc/[*]/config-lang.in) ;;
2247 # From the config-lang.in, get $language, $lang_requires
2248 language=
2249 lang_requires=
2250 . ${lang_frag}
2251 for other in ${lang_requires} ; do
2252 case ,${enable_languages}, in
2253 *,$other,*) ;;
2254 *,all,*) ;;
2255 *,$language,*)
2256 echo " \`$other' language required by \`$language'; enabling" 1>&2
2257 enable_languages="${enable_languages},${other}"
2259 esac
2260 done
2262 esac
2263 done
2265 new_enable_languages=c
2266 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2268 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2269 case ${lang_frag} in
2270 ..) ;;
2271 # The odd quoting in the next line works around
2272 # an apparent bug in bash 1.12 on linux.
2273 ${srcdir}/gcc/[*]/config-lang.in) ;;
2275 # From the config-lang.in, get $language, $target_libs,
2276 # $lang_dirs, $boot_language, and $build_by_default
2277 language=
2278 target_libs=
2279 lang_dirs=
2280 boot_language=
2281 build_by_default=
2282 . ${lang_frag}
2283 # This is quite sensitive to the ordering of the case statement arms.
2284 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2285 *::*:*)
2286 echo "${lang_frag} doesn't set \$language." 1>&2
2287 exit 1
2289 *:ada:no:*)
2290 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2291 add_this_lang=no
2293 *,${language},*:*:*:*)
2294 # Language was explicitly selected; include it.
2295 add_this_lang=yes
2297 *,all,*:*:*:no)
2298 # 'all' was selected, but this is not a default language
2299 # so do not include it.
2300 add_this_lang=no
2302 *,all,*:*:*:*)
2303 # 'all' was selected and this is a default language; include it.
2304 add_this_lang=yes
2307 add_this_lang=no
2309 esac
2310 case $add_this_lang in
2312 # Remove language-dependent dirs.
2313 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2316 new_enable_languages="$new_enable_languages,$language"
2317 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2318 case ${boot_language} in
2319 yes)
2320 # Add to (comma-separated) list of stage 1 languages.
2321 stage1_languages="${stage1_languages},${language}"
2323 esac
2325 esac
2327 esac
2328 done
2330 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2331 if test "x$missing_languages" != x; then
2332 { echo "configure: error:
2333 The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; }
2336 if test "x$new_enable_languages" != "x$enable_languages"; then
2337 echo The following languages will be built: ${new_enable_languages}
2339 enable_languages="$new_enable_languages"
2340 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2343 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
2344 # $target_configdirs.
2345 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2347 notsupp=""
2348 for dir in . $skipdirs $noconfigdirs ; do
2349 dirname=`echo $dir | sed -e s/target-//g`
2350 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2351 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2352 if test -r $srcdir/$dirname/configure ; then
2353 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2354 true
2355 else
2356 notsupp="$notsupp $dir"
2360 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2361 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2362 if test -r $srcdir/$dirname/configure ; then
2363 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2364 true
2365 else
2366 notsupp="$notsupp $dir"
2370 done
2372 # Sometimes the tools are distributed with libiberty but with no other
2373 # libraries. In that case, we don't want to build target-libiberty.
2374 if test -n "${target_configdirs}" ; then
2375 others=
2376 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2377 if test "$i" != "libiberty" ; then
2378 if test -r $srcdir/$i/configure ; then
2379 others=yes;
2380 break;
2383 done
2384 if test -z "${others}" ; then
2385 target_configdirs=
2389 # Quietly strip out all directories which aren't configurable in this tree.
2390 # This relies on all configurable subdirectories being autoconfiscated, which
2391 # is now the case.
2392 configdirs_all="$configdirs"
2393 configdirs=
2394 for i in ${configdirs_all} ; do
2395 if test -f ${srcdir}/$i/configure ; then
2396 configdirs="${configdirs} $i"
2398 done
2399 target_configdirs_all="$target_configdirs"
2400 target_configdirs=
2401 for i in ${target_configdirs_all} ; do
2402 j=`echo $i | sed -e s/target-//g`
2403 if test -f ${srcdir}/$j/configure ; then
2404 target_configdirs="${target_configdirs} $i"
2406 done
2408 # Produce a warning message for the subdirs we can't configure.
2409 # This isn't especially interesting in the Cygnus tree, but in the individual
2410 # FSF releases, it's important to let people know when their machine isn't
2411 # supported by the one or two programs in a package.
2413 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2414 # If $appdirs is non-empty, at least one of those directories must still
2415 # be configured, or we error out. (E.g., if the gas release supports a
2416 # specified target in some subdirs but not the gas subdir, we shouldn't
2417 # pretend that all is well.)
2418 if test -n "$appdirs" ; then
2419 for dir in $appdirs ; do
2420 if test -r $dir/Makefile.in ; then
2421 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2422 appdirs=""
2423 break
2425 if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2426 appdirs=""
2427 break
2430 done
2431 if test -n "$appdirs" ; then
2432 echo "*** This configuration is not supported by this package." 1>&2
2433 exit 1
2436 # Okay, some application will build, or we don't care to check. Still
2437 # notify of subdirs not getting built.
2438 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2439 echo " ${notsupp}" 1>&2
2440 echo " (Any other directories should still work fine.)" 1>&2
2443 case "$host" in
2444 *msdosdjgpp*)
2445 enable_gdbtk=no ;;
2446 esac
2448 copy_dirs=
2450 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2451 # the named directory are copied to $(tooldir)/sys-include.
2452 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2453 if test x${is_cross_compiler} = xno ; then
2454 echo 1>&2 '***' --with-headers is only supported when cross compiling
2455 exit 1
2457 if test x"${with_headers}" != xyes ; then
2458 case "${exec_prefixoption}" in
2459 "") x=${prefix} ;;
2460 *) x=${exec_prefix} ;;
2461 esac
2462 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2466 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2467 # the name directories are copied to $(tooldir)/lib. Multiple directories
2468 # are permitted.
2469 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2470 if test x${is_cross_compiler} = xno ; then
2471 echo 1>&2 '***' --with-libs is only supported when cross compiling
2472 exit 1
2474 if test x"${with_libs}" != xyes ; then
2475 # Copy the libraries in reverse order, so that files in the first named
2476 # library override files in subsequent libraries.
2477 case "${exec_prefixoption}" in
2478 "") x=${prefix} ;;
2479 *) x=${exec_prefix} ;;
2480 esac
2481 for l in ${with_libs}; do
2482 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2483 done
2487 # Handle ${copy_dirs}
2488 set fnord ${copy_dirs}
2489 shift
2490 while test $# != 0 ; do
2491 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2493 else
2494 echo Copying $1 to $2
2496 # Use the install script to create the directory and all required
2497 # parent directories.
2498 if test -d $2 ; then
2500 else
2501 echo >config.temp
2502 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2505 # Copy the directory, assuming we have tar.
2506 # FIXME: Should we use B in the second tar? Not all systems support it.
2507 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2509 # It is the responsibility of the user to correctly adjust all
2510 # symlinks. If somebody can figure out how to handle them correctly
2511 # here, feel free to add the code.
2513 echo $1 > $2/COPIED
2515 shift; shift
2516 done
2518 extra_arflags_for_target=
2519 extra_nmflags_for_target=
2520 extra_ranlibflags_for_target=
2521 target_makefile_frag=/dev/null
2522 case "${target}" in
2523 i[3456789]86-*-netware*)
2524 target_makefile_frag="config/mt-netware"
2526 powerpc-*-netware*)
2527 target_makefile_frag="config/mt-netware"
2529 *-*-linux*)
2530 target_makefile_frag="config/mt-linux"
2532 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2533 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2534 # commands to handle both 32-bit and 64-bit objects. These flags are
2535 # harmless if we're using GNU nm or ar.
2536 extra_arflags_for_target=" -X32_64"
2537 extra_nmflags_for_target=" -B -X32_64"
2539 *-*-darwin*)
2540 # ranlib from Darwin requires the -c flag to look at common symbols.
2541 extra_ranlibflags_for_target=" -c"
2543 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2544 target_makefile_frag="config/mt-wince"
2546 esac
2548 alphaieee_frag=/dev/null
2549 case $target in
2550 alpha*-*-*)
2551 # This just makes sure to use the -mieee option to build target libs.
2552 # This should probably be set individually by each library.
2553 alphaieee_frag="config/mt-alphaieee"
2555 esac
2557 # If --enable-target-optspace always use -Os instead of -O2 to build
2558 # the target libraries, similarly if it is not specified, use -Os
2559 # on selected platforms.
2560 ospace_frag=/dev/null
2561 case "${enable_target_optspace}:${target}" in
2562 yes:*)
2563 ospace_frag="config/mt-ospace"
2565 :d30v-*)
2566 ospace_frag="config/mt-d30v"
2568 :m32r-* | :d10v-* | :fr30-*)
2569 ospace_frag="config/mt-ospace"
2571 no:* | :*)
2574 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2576 esac
2578 # Set with_gnu_as and with_gnu_ld as appropriate.
2580 # This is done by determining whether or not the appropriate directory
2581 # is available, and by checking whether or not specific configurations
2582 # have requested that this magic not happen.
2584 # The command line options always override the explicit settings in
2585 # configure.in, and the settings in configure.in override this magic.
2587 # If the default for a toolchain is to use GNU as and ld, and you don't
2588 # want to do that, then you should use the --without-gnu-as and
2589 # --without-gnu-ld options for the configure script.
2591 if test x${use_gnu_as} = x &&
2592 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2593 with_gnu_as=yes
2594 extra_host_args="$extra_host_args --with-gnu-as"
2597 if test x${use_gnu_ld} = x &&
2598 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2599 with_gnu_ld=yes
2600 extra_host_args="$extra_host_args --with-gnu-ld"
2603 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2604 # can detect this case.
2606 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2607 with_newlib=yes
2608 extra_host_args="$extra_host_args --with-newlib"
2612 # Default to using --with-stabs for certain targets.
2613 if test x${with_stabs} = x ; then
2614 case "${target}" in
2615 mips*-*-irix[56]*)
2617 mips*-*-* | alpha*-*-osf*)
2618 with_stabs=yes;
2619 extra_host_args="${extra_host_args} --with-stabs"
2621 esac
2624 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2625 # them automatically.
2626 case "${host}" in
2627 hppa*64*-*-hpux11*)
2628 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2630 esac
2632 # Some systems (e.g., one of the i386-aix systems the gas testers are
2633 # using) don't handle "\$" correctly, so don't use it here.
2634 tooldir='${exec_prefix}'/${target_alias}
2635 build_tooldir=${tooldir}
2637 # Generate default definitions for YACC, M4, LEX. These are used if the
2638 # Makefile can't locate these programs in objdir.
2639 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2640 for ac_prog in 'bison -y' byacc yacc
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_YACC'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2648 else
2649 if test -n "$DEFAULT_YACC"; then
2650 ac_cv_prog_DEFAULT_YACC="$DEFAULT_YACC" # 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_YACC="$ac_prog"
2658 break
2660 done
2661 IFS="$ac_save_ifs"
2664 DEFAULT_YACC="$ac_cv_prog_DEFAULT_YACC"
2665 if test -n "$DEFAULT_YACC"; then
2666 echo "$ac_t""$DEFAULT_YACC" 1>&6
2667 else
2668 echo "$ac_t""no" 1>&6
2671 test -n "$DEFAULT_YACC" && break
2672 done
2673 test -n "$DEFAULT_YACC" || DEFAULT_YACC="$MISSING bison"
2675 for ac_prog in gm4 gnum4 m4
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_M4'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2683 else
2684 if test -n "$DEFAULT_M4"; then
2685 ac_cv_prog_DEFAULT_M4="$DEFAULT_M4" # 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_M4="$ac_prog"
2693 break
2695 done
2696 IFS="$ac_save_ifs"
2699 DEFAULT_M4="$ac_cv_prog_DEFAULT_M4"
2700 if test -n "$DEFAULT_M4"; then
2701 echo "$ac_t""$DEFAULT_M4" 1>&6
2702 else
2703 echo "$ac_t""no" 1>&6
2706 test -n "$DEFAULT_M4" && break
2707 done
2708 test -n "$DEFAULT_M4" || DEFAULT_M4="$MISSING m4"
2710 for ac_prog in flex lex
2712 # Extract the first word of "$ac_prog", so it can be a program name with args.
2713 set dummy $ac_prog; ac_word=$2
2714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2715 echo "configure:2716: checking for $ac_word" >&5
2716 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_LEX'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2718 else
2719 if test -n "$DEFAULT_LEX"; then
2720 ac_cv_prog_DEFAULT_LEX="$DEFAULT_LEX" # Let the user override the test.
2721 else
2722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2723 ac_dummy="$PATH"
2724 for ac_dir in $ac_dummy; do
2725 test -z "$ac_dir" && ac_dir=.
2726 if test -f $ac_dir/$ac_word; then
2727 ac_cv_prog_DEFAULT_LEX="$ac_prog"
2728 break
2730 done
2731 IFS="$ac_save_ifs"
2734 DEFAULT_LEX="$ac_cv_prog_DEFAULT_LEX"
2735 if test -n "$DEFAULT_LEX"; then
2736 echo "$ac_t""$DEFAULT_LEX" 1>&6
2737 else
2738 echo "$ac_t""no" 1>&6
2741 test -n "$DEFAULT_LEX" && break
2742 done
2743 test -n "$DEFAULT_LEX" || DEFAULT_LEX="$MISSING flex"
2746 # Create a .gdbinit file which runs the one in srcdir
2747 # and tells GDB to look there for source files.
2749 if test -r ${srcdir}/.gdbinit ; then
2750 case ${srcdir} in
2751 .) ;;
2752 *) cat > ./.gdbinit <<EOF
2753 # ${NO_EDIT}
2754 dir ${srcdir}
2755 dir .
2756 source ${srcdir}/.gdbinit
2759 esac
2762 # Make sure that the compiler is able to generate an executable. If it
2763 # can't, we are probably in trouble. We don't care whether we can run the
2764 # executable--we might be using a cross compiler--we only care whether it
2765 # can be created. At this point the main configure script has set CC.
2766 we_are_ok=no
2767 echo "int main () { return 0; }" > conftest.c
2768 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2769 if test $? = 0 ; then
2770 if test -s conftest || test -s conftest.exe ; then
2771 we_are_ok=yes
2774 case $we_are_ok in
2776 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2777 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2778 rm -f conftest*
2779 exit 1
2781 esac
2782 rm -f conftest*
2784 # The Solaris /usr/ucb/cc compiler does not appear to work.
2785 case "${host}" in
2786 sparc-sun-solaris2*)
2787 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2788 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2789 could_use=
2790 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2791 if test -d /opt/cygnus/bin ; then
2792 if test "$could_use" = "" ; then
2793 could_use="/opt/cygnus/bin"
2794 else
2795 could_use="$could_use or /opt/cygnus/bin"
2798 if test "$could_use" = "" ; then
2799 echo "Warning: compilation may fail because you're using"
2800 echo "/usr/ucb/cc. You should change your PATH or CC "
2801 echo "variable and rerun configure."
2802 else
2803 echo "Warning: compilation may fail because you're using"
2804 echo "/usr/ucb/cc, when you should use the C compiler from"
2805 echo "$could_use. You should change your"
2806 echo "PATH or CC variable and rerun configure."
2810 esac
2812 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
2813 # binutils tools will find libbfd.so.
2814 case "${enable_shared}" in
2815 no | "") SET_LIB_PATH= ;;
2816 *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;;
2817 esac
2819 case "${host}" in
2820 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2821 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2822 esac
2824 # Record target_configdirs and the configure arguments for target and
2825 # build configuration in Makefile.
2826 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2828 # This is the final value for target_configdirs. configdirs already
2829 # has its final value, as does build_modules. It's time to create some
2830 # lists of valid targets.
2832 all_build_modules=
2833 configure_build_modules=
2834 for module in ${build_modules} ; do
2835 all_build_modules=all-build-${module}
2836 configure_build_modules=configure-build-${module}
2837 done
2839 # Determine whether gdb needs tk/tcl or not.
2840 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2841 # and in that case we want gdb to be built without tk. Ugh!
2842 # In fact I believe gdb is the *only* package directly dependent on tk,
2843 # so we should be able to put the 'maybe's in unconditionally and
2844 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2845 # 100% sure that that's safe though.
2847 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui"
2848 case "$enable_gdbtk" in
2850 GDB_TK="" ;;
2851 yes)
2852 GDB_TK="${gdb_tk}" ;;
2854 # Only add the dependency on gdbtk when GDBtk is part of the gdb
2855 # distro. Eventually someone will fix this and move Insight, nee
2856 # gdbtk to a separate directory.
2857 if test -d ${srcdir}/gdb/gdbtk ; then
2858 GDB_TK="${gdb_tk}"
2859 else
2860 GDB_TK=""
2863 esac
2865 # Create the 'maybe dependencies'. This uses a temporary file.
2867 # While at that, we remove Makefiles if we were started for recursive
2868 # configuration, so that the top-level Makefile reconfigures them,
2869 # like we used to do when configure itself was recursive.
2870 rm -f maybedep.tmp
2871 echo '# maybedep.tmp' > maybedep.tmp
2873 # Make-targets which may need maybe dependencies.
2874 mts="configure all install check clean distclean dvi info install-info"
2875 mts="${mts} installcheck mostlyclean maintainer-clean TAGS"
2877 # Loop over modules and make-targets.
2878 for module in ${build_modules} ; do
2879 if test -z "${no_recursion}" \
2880 && test -f ${build_subdir}/${module}/Makefile; then
2881 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
2882 rm -f ${build_subdir}/${module}/Makefile
2884 for mt in ${mts} ; do
2885 case ${mt} in
2886 install) ;; # No installing build modules.
2887 *) echo "maybe-${mt}-build-${module}: ${mt}-build-${module}" >> maybedep.tmp ;;
2888 esac
2889 done
2890 done
2891 for module in ${configdirs} ; do
2892 if test -z "${no_recursion}" \
2893 && test -f ${module}/Makefile; then
2894 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
2895 rm -f ${module}/Makefile
2897 for mt in ${mts} ; do
2898 echo "maybe-${mt}-${module}: ${mt}-${module}" >> maybedep.tmp
2899 done
2900 done
2901 for module in ${target_configdirs} ; do
2902 if test -z "${no_recursion}" \
2903 && test -f ${target_subdir}/${module}/Makefile; then
2904 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
2905 rm -f ${target_subdir}/${module}/Makefile
2907 for mt in ${mts} ; do
2908 echo "maybe-${mt}-target-${module}: ${mt}-target-${module}" >> maybedep.tmp
2909 done
2910 done
2911 maybe_dependencies=maybedep.tmp
2914 # Create the serialization dependencies. This uses a temporary file.
2916 # Check whether --enable-serial-configure or --disable-serial-configure was given.
2917 if test "${enable_serial_configure+set}" = set; then
2918 enableval="$enable_serial_configure"
2923 case ${enable_serial_configure} in
2924 yes)
2925 enable_serial_build_configure=yes
2926 enable_serial_host_configure=yes
2927 enable_serial_target_configure=yes
2929 esac
2931 # These force 'configure's to be done one at a time, to avoid problems
2932 # with contention over a shared config.cache.
2933 rm -f serdep.tmp
2934 echo '# serdep.tmp' > serdep.tmp
2935 olditem=
2936 test "x${enable_serial_build_configure}" = xyes &&
2937 for item in ${build_configdirs} ; do
2938 case ${olditem} in
2939 "") ;;
2940 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
2941 esac
2942 olditem=${item}
2943 done
2944 olditem=
2945 test "x${enable_serial_host_configure}" = xyes &&
2946 for item in ${configdirs} ; do
2947 case ${olditem} in
2948 "") ;;
2949 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
2950 esac
2951 olditem=${item}
2952 done
2953 olditem=
2954 test "x${enable_serial_target_configure}" = xyes &&
2955 for item in ${target_configdirs} ; do
2956 case ${olditem} in
2957 "") ;;
2958 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
2959 esac
2960 olditem=${item}
2961 done
2962 serialization_dependencies=serdep.tmp
2965 # Base args. Strip norecursion, cache-file, srcdir, host, build,
2966 # target and nonopt. These are the ones we might not want to pass
2967 # down to subconfigures. Also strip program-prefix, program-suffix,
2968 # and program-transform-name, so that we can pass down a consistent
2969 # program-transform-name. If autoconf has put single quotes around
2970 # any of these arguments (because they contain shell metacharacters)
2971 # then this will fail; in practice this only happens for
2972 # --program-transform-name, so be sure to override --program-transform-name
2973 # at the end of the argument list.
2974 # These will be expanded by make, so quote '$'.
2975 cat <<\EOF_SED > conftestsed
2976 s/ --no[^ ]*/ /g
2977 s/ --c[a-z-]*[= ][^ ]*//g
2978 s/ --sr[a-z-]*[= ][^ ]*//g
2979 s/ --ho[a-z-]*[= ][^ ]*//g
2980 s/ --bu[a-z-]*[= ][^ ]*//g
2981 s/ --t[a-z-]*[= ][^ ]*//g
2982 s/ --program-[pst][a-z-]*[= ][^ ]*//g
2983 s/ -cache-file[= ][^ ]*//g
2984 s/ -srcdir[= ][^ ]*//g
2985 s/ -host[= ][^ ]*//g
2986 s/ -build[= ][^ ]*//g
2987 s/ -target[= ][^ ]*//g
2988 s/ -program-prefix[= ][^ ]*//g
2989 s/ -program-suffix[= ][^ ]*//g
2990 s/ -program-transform-name[= ][^ ]*//g
2991 s/ [^' -][^ ]* / /
2992 s/^ *//;s/ *$//
2993 s,\$,$$,g
2994 EOF_SED
2995 sed -f conftestsed <<EOF_SED > conftestsed.out
2996 ${ac_configure_args}
2997 EOF_SED
2998 baseargs=`cat conftestsed.out`
2999 rm -f conftestsed conftestsed.out
3001 # Add in --program-transform-name, after --program-prefix and
3002 # --program-suffix have been applied to it. Autoconf has already
3003 # doubled dollar signs and backslashes in program_transform_name; we want
3004 # the backslashes un-doubled, and then the entire thing wrapped in single
3005 # quotes, because this will be expanded first by make and then by the shell.
3006 # Also, because we want to override the logic in subdir configure scripts to
3007 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3008 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3009 ${program_transform_name}
3010 EOF_SED
3011 gcc_transform_name=`cat conftestsed.out`
3012 rm -f conftestsed.out
3013 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3015 # For the build-side libraries, we just need to pretend we're native,
3016 # and not use the same cache file. Multilibs are neither needed nor
3017 # desired.
3018 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
3020 # For host modules, accept cache file option, or specification as blank.
3021 case "${cache_file}" in
3022 "") # empty
3023 cache_file_option="" ;;
3024 /* | [A-Za-z]:[\\/]* ) # absolute path
3025 cache_file_option="--cache-file=${cache_file}" ;;
3026 *) # relative path
3027 cache_file_option="--cache-file=../${cache_file}" ;;
3028 esac
3030 # Host dirs don't like to share a cache file either, horribly enough.
3031 # This seems to be due to autoconf 2.5x stupidity.
3032 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3034 target_configargs=${baseargs}
3036 # Passing a --with-cross-host argument lets the target libraries know
3037 # whether they are being built with a cross-compiler or being built
3038 # native. However, it would be better to use other mechanisms to make the
3039 # sorts of decisions they want to make on this basis. Please consider
3040 # this option to be deprecated. FIXME.
3041 if test x${is_cross_compiler} = xyes ; then
3042 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3045 # Default to --enable-multilib.
3046 if test x${enable_multilib} = x ; then
3047 target_configargs="--enable-multilib ${target_configargs}"
3050 # Pass --with-newlib if appropriate. Note that target_configdirs has
3051 # changed from the earlier setting of with_newlib.
3052 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3053 target_configargs="--with-newlib ${target_configargs}"
3056 # Different target subdirs use different values of certain variables
3057 # (notably CXX). Worse, multilibs use *lots* of different values.
3058 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3059 # it doesn't automatically accept command-line overrides of them.
3060 # This means it's not safe for target subdirs to share a cache file,
3061 # which is disgusting, but there you have it. Hopefully this can be
3062 # fixed in future. It's still worthwhile to use a cache file for each
3063 # directory. I think.
3065 # Pass the appropriate --host, --build, and --cache-file arguments.
3066 target_configargs="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
3068 # provide a proper gxx_include_dir.
3069 # Note, if you change the default, make sure to fix both here and in
3070 # the gcc and libstdc++-v3 subdirectories.
3071 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
3072 case "${with_gxx_include_dir}" in
3073 yes)
3074 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
3076 no | "")
3077 case "${enable_version_specific_runtime_libs}" in
3078 yes) gxx_include_dir='${libsubdir}/include/c++' ;;
3080 . ${srcdir}/config.if
3081 gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;;
3082 esac ;;
3083 *) gxx_include_dir=${with_gxx_include_dir} ;;
3084 esac
3086 FLAGS_FOR_TARGET=
3087 case " $target_configdirs " in
3088 *" newlib "*)
3089 case " $target_configargs " in
3090 *" --with-newlib "*)
3091 case "$target" in
3092 *-cygwin*)
3093 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' ;;
3094 esac
3096 # If we're not building GCC, don't discard standard headers.
3097 if test -d ${srcdir}/gcc; then
3098 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3100 if test "${build}" != "${host}"; then
3101 # On Canadian crosses, CC_FOR_TARGET will have already been set
3102 # by `configure', so we won't have an opportunity to add -Bgcc/
3103 # to it. This is right: we don't want to search that directory
3104 # for binaries, but we want the header files in there, so add
3105 # them explicitly.
3106 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
3108 # Someone might think of using the pre-installed headers on
3109 # Canadian crosses, in case the installed compiler is not fully
3110 # compatible with the compiler being built. In this case, it
3111 # would be better to flag an error than risking having
3112 # incompatible object files being constructed. We can't
3113 # guarantee that an error will be flagged, but let's hope the
3114 # compiler will do it, when presented with incompatible header
3115 # files.
3119 case "${target}-${is_cross_compiler}" in
3120 i[3456789]86-*-linux*-no)
3121 # Here host == target, so we don't need to build gcc,
3122 # so we don't want to discard standard headers.
3123 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3126 # If we're building newlib, use its generic headers last, but search
3127 # for any libc-related directories first (so make it the last -B
3128 # switch).
3129 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3131 esac
3133 esac
3135 esac
3137 # Allow the user to override the flags for
3138 # our build compiler if desired.
3139 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3141 # On Canadian crosses, we'll be searching the right directories for
3142 # the previously-installed cross compiler, so don't bother to add
3143 # flags for directories within the install tree of the compiler
3144 # being built; programs in there won't even run.
3145 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3146 # Search for pre-installed headers if nothing else fits.
3147 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3150 if test "x${use_gnu_ld}" = x &&
3151 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3152 # Arrange for us to find uninstalled linker scripts.
3153 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
3156 if test "x${CC_FOR_TARGET+set}" = xset; then
3158 elif test -d ${srcdir}/gcc; then
3159 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
3160 elif test "$host" = "$target"; then
3161 CC_FOR_TARGET='$(CC)'
3162 else
3163 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
3165 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3167 if test "x${GCJ_FOR_TARGET+set}" = xset; then
3169 elif test -d ${srcdir}/gcc; then
3170 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
3171 elif test "$host" = "$target"; then
3172 GCJ_FOR_TARGET='gcj'
3173 else
3174 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
3176 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3178 # Don't use libstdc++-v3's flags to configure/build itself.
3179 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'
3180 raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3182 if test "x${CXX_FOR_TARGET+set}" = xset; then
3183 if test "x${RAW_CXX_FOR_TARGET+set}" != xset; then
3184 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3186 elif test -d ${srcdir}/gcc; then
3187 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3188 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3189 # default whereas gcc does not.
3190 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3191 # all other cases.
3192 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
3193 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3194 elif test "$host" = "$target"; then
3195 CXX_FOR_TARGET='$(CXX)'
3196 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3197 else
3198 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
3199 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3201 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3202 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3204 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3205 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3207 # We want to defer the evaluation of `cmd`s and shell variables in
3208 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3209 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3210 # quotes, but we still have to duplicate `$'s so that shell variables
3211 # can be expanded by the nested make as shell variables, not as make
3212 # macros.
3213 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3214 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3216 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
3217 CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}"
3218 GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}"
3219 CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}"
3220 RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}"
3221 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}"
3222 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}"
3224 # Makefile fragments.
3225 host_makefile_frag=${srcdir}/${host_makefile_frag}
3226 target_makefile_frag=${srcdir}/${target_makefile_frag}
3227 alphaieee_frag=${srcdir}/${alphaieee_frag}
3228 ospace_frag=${srcdir}/${ospace_frag}
3234 # Miscellanea: directories, flags, etc.
3247 # Build module lists & subconfigure args.
3252 # Host module lists & subconfigure args.
3256 # Target module lists & subconfigure args.
3260 # Build tools.
3268 # Host tools.
3269 ncn_tool_prefix=
3270 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3271 ncn_target_tool_prefix=
3272 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3274 if test -n "$ncn_tool_prefix"; then
3275 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3276 set dummy ${ncn_tool_prefix}ar; ac_word=$2
3277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3278 echo "configure:3279: checking for $ac_word" >&5
3279 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3281 else
3282 if test -n "$AR"; then
3283 ac_cv_prog_AR="$AR" # Let the user override the test.
3284 else
3285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3286 ac_dummy="$PATH"
3287 for ac_dir in $ac_dummy; do
3288 test -z "$ac_dir" && ac_dir=.
3289 if test -f $ac_dir/$ac_word; then
3290 ac_cv_prog_AR="${ncn_tool_prefix}ar"
3291 break
3293 done
3294 IFS="$ac_save_ifs"
3297 AR="$ac_cv_prog_AR"
3298 if test -n "$AR"; then
3299 echo "$ac_t""$AR" 1>&6
3300 else
3301 echo "$ac_t""no" 1>&6
3305 if test -z "$ac_cv_prog_AR" ; then
3306 if test $build = $host ; then
3307 ncn_cv_AR=$AR
3308 # Extract the first word of "ar", so it can be a program name with args.
3309 set dummy ar; ac_word=$2
3310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3311 echo "configure:3312: checking for $ac_word" >&5
3312 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3314 else
3315 if test -n "$ncn_cv_AR"; then
3316 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
3317 else
3318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3319 ac_dummy="$PATH"
3320 for ac_dir in $ac_dummy; do
3321 test -z "$ac_dir" && ac_dir=.
3322 if test -f $ac_dir/$ac_word; then
3323 ac_cv_prog_ncn_cv_AR="ar"
3324 break
3326 done
3327 IFS="$ac_save_ifs"
3328 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3331 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3332 if test -n "$ncn_cv_AR"; then
3333 echo "$ac_t""$ncn_cv_AR" 1>&6
3334 else
3335 echo "$ac_t""no" 1>&6
3338 AR=$ncn_cv_AR
3339 else
3340 AR="${ncn_tool_prefix}ar"
3342 else
3343 AR="$ac_cv_prog_AR"
3346 if test -n "$ncn_tool_prefix"; then
3347 # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
3348 set dummy ${ncn_tool_prefix}as; ac_word=$2
3349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3350 echo "configure:3351: checking for $ac_word" >&5
3351 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3353 else
3354 if test -n "$AS"; then
3355 ac_cv_prog_AS="$AS" # Let the user override the test.
3356 else
3357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3358 ac_dummy="$PATH"
3359 for ac_dir in $ac_dummy; do
3360 test -z "$ac_dir" && ac_dir=.
3361 if test -f $ac_dir/$ac_word; then
3362 ac_cv_prog_AS="${ncn_tool_prefix}as"
3363 break
3365 done
3366 IFS="$ac_save_ifs"
3369 AS="$ac_cv_prog_AS"
3370 if test -n "$AS"; then
3371 echo "$ac_t""$AS" 1>&6
3372 else
3373 echo "$ac_t""no" 1>&6
3377 if test -z "$ac_cv_prog_AS" ; then
3378 if test $build = $host ; then
3379 ncn_cv_AS=$AS
3380 # Extract the first word of "as", so it can be a program name with args.
3381 set dummy as; ac_word=$2
3382 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3383 echo "configure:3384: checking for $ac_word" >&5
3384 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3386 else
3387 if test -n "$ncn_cv_AS"; then
3388 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
3389 else
3390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3391 ac_dummy="$PATH"
3392 for ac_dir in $ac_dummy; do
3393 test -z "$ac_dir" && ac_dir=.
3394 if test -f $ac_dir/$ac_word; then
3395 ac_cv_prog_ncn_cv_AS="as"
3396 break
3398 done
3399 IFS="$ac_save_ifs"
3400 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as"
3403 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3404 if test -n "$ncn_cv_AS"; then
3405 echo "$ac_t""$ncn_cv_AS" 1>&6
3406 else
3407 echo "$ac_t""no" 1>&6
3410 AS=$ncn_cv_AS
3411 else
3412 AS="${ncn_tool_prefix}as"
3414 else
3415 AS="$ac_cv_prog_AS"
3418 if test -n "$ncn_tool_prefix"; then
3419 # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
3420 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3422 echo "configure:3423: checking for $ac_word" >&5
3423 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3425 else
3426 if test -n "$DLLTOOL"; then
3427 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3428 else
3429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3430 ac_dummy="$PATH"
3431 for ac_dir in $ac_dummy; do
3432 test -z "$ac_dir" && ac_dir=.
3433 if test -f $ac_dir/$ac_word; then
3434 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool"
3435 break
3437 done
3438 IFS="$ac_save_ifs"
3441 DLLTOOL="$ac_cv_prog_DLLTOOL"
3442 if test -n "$DLLTOOL"; then
3443 echo "$ac_t""$DLLTOOL" 1>&6
3444 else
3445 echo "$ac_t""no" 1>&6
3449 if test -z "$ac_cv_prog_DLLTOOL" ; then
3450 if test $build = $host ; then
3451 ncn_cv_DLLTOOL=$DLLTOOL
3452 # Extract the first word of "dlltool", so it can be a program name with args.
3453 set dummy dlltool; ac_word=$2
3454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3455 echo "configure:3456: checking for $ac_word" >&5
3456 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3458 else
3459 if test -n "$ncn_cv_DLLTOOL"; then
3460 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
3461 else
3462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3463 ac_dummy="$PATH"
3464 for ac_dir in $ac_dummy; do
3465 test -z "$ac_dir" && ac_dir=.
3466 if test -f $ac_dir/$ac_word; then
3467 ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3468 break
3470 done
3471 IFS="$ac_save_ifs"
3472 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool"
3475 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3476 if test -n "$ncn_cv_DLLTOOL"; then
3477 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3478 else
3479 echo "$ac_t""no" 1>&6
3482 DLLTOOL=$ncn_cv_DLLTOOL
3483 else
3484 DLLTOOL="${ncn_tool_prefix}dlltool"
3486 else
3487 DLLTOOL="$ac_cv_prog_DLLTOOL"
3490 if test -n "$ncn_tool_prefix"; then
3491 # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
3492 set dummy ${ncn_tool_prefix}ld; ac_word=$2
3493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3494 echo "configure:3495: checking for $ac_word" >&5
3495 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3497 else
3498 if test -n "$LD"; then
3499 ac_cv_prog_LD="$LD" # Let the user override the test.
3500 else
3501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3502 ac_dummy="$PATH"
3503 for ac_dir in $ac_dummy; do
3504 test -z "$ac_dir" && ac_dir=.
3505 if test -f $ac_dir/$ac_word; then
3506 ac_cv_prog_LD="${ncn_tool_prefix}ld"
3507 break
3509 done
3510 IFS="$ac_save_ifs"
3513 LD="$ac_cv_prog_LD"
3514 if test -n "$LD"; then
3515 echo "$ac_t""$LD" 1>&6
3516 else
3517 echo "$ac_t""no" 1>&6
3521 if test -z "$ac_cv_prog_LD" ; then
3522 if test $build = $host ; then
3523 ncn_cv_LD=$LD
3524 # Extract the first word of "ld", so it can be a program name with args.
3525 set dummy ld; ac_word=$2
3526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3527 echo "configure:3528: checking for $ac_word" >&5
3528 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3530 else
3531 if test -n "$ncn_cv_LD"; then
3532 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3533 else
3534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3535 ac_dummy="$PATH"
3536 for ac_dir in $ac_dummy; do
3537 test -z "$ac_dir" && ac_dir=.
3538 if test -f $ac_dir/$ac_word; then
3539 ac_cv_prog_ncn_cv_LD="ld"
3540 break
3542 done
3543 IFS="$ac_save_ifs"
3544 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld"
3547 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3548 if test -n "$ncn_cv_LD"; then
3549 echo "$ac_t""$ncn_cv_LD" 1>&6
3550 else
3551 echo "$ac_t""no" 1>&6
3554 LD=$ncn_cv_LD
3555 else
3556 LD="${ncn_tool_prefix}ld"
3558 else
3559 LD="$ac_cv_prog_LD"
3562 if test -n "$ncn_tool_prefix"; then
3563 # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
3564 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3566 echo "configure:3567: checking for $ac_word" >&5
3567 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3569 else
3570 if test -n "$NM"; then
3571 ac_cv_prog_NM="$NM" # Let the user override the test.
3572 else
3573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3574 ac_dummy="$PATH"
3575 for ac_dir in $ac_dummy; do
3576 test -z "$ac_dir" && ac_dir=.
3577 if test -f $ac_dir/$ac_word; then
3578 ac_cv_prog_NM="${ncn_tool_prefix}nm"
3579 break
3581 done
3582 IFS="$ac_save_ifs"
3585 NM="$ac_cv_prog_NM"
3586 if test -n "$NM"; then
3587 echo "$ac_t""$NM" 1>&6
3588 else
3589 echo "$ac_t""no" 1>&6
3593 if test -z "$ac_cv_prog_NM" ; then
3594 if test $build = $host ; then
3595 ncn_cv_NM=$NM
3596 # Extract the first word of "nm", so it can be a program name with args.
3597 set dummy nm; ac_word=$2
3598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3599 echo "configure:3600: checking for $ac_word" >&5
3600 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3601 echo $ac_n "(cached) $ac_c" 1>&6
3602 else
3603 if test -n "$ncn_cv_NM"; then
3604 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3605 else
3606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3607 ac_dummy="$PATH"
3608 for ac_dir in $ac_dummy; do
3609 test -z "$ac_dir" && ac_dir=.
3610 if test -f $ac_dir/$ac_word; then
3611 ac_cv_prog_ncn_cv_NM="nm"
3612 break
3614 done
3615 IFS="$ac_save_ifs"
3616 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm"
3619 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3620 if test -n "$ncn_cv_NM"; then
3621 echo "$ac_t""$ncn_cv_NM" 1>&6
3622 else
3623 echo "$ac_t""no" 1>&6
3626 NM=$ncn_cv_NM
3627 else
3628 NM="${ncn_tool_prefix}nm"
3630 else
3631 NM="$ac_cv_prog_NM"
3634 if test -n "$ncn_tool_prefix"; then
3635 # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
3636 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3638 echo "configure:3639: checking for $ac_word" >&5
3639 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3640 echo $ac_n "(cached) $ac_c" 1>&6
3641 else
3642 if test -n "$RANLIB"; then
3643 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3644 else
3645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3646 ac_dummy="$PATH"
3647 for ac_dir in $ac_dummy; do
3648 test -z "$ac_dir" && ac_dir=.
3649 if test -f $ac_dir/$ac_word; then
3650 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib"
3651 break
3653 done
3654 IFS="$ac_save_ifs"
3657 RANLIB="$ac_cv_prog_RANLIB"
3658 if test -n "$RANLIB"; then
3659 echo "$ac_t""$RANLIB" 1>&6
3660 else
3661 echo "$ac_t""no" 1>&6
3665 if test -z "$ac_cv_prog_RANLIB" ; then
3666 if test $build = $host ; then
3667 ncn_cv_RANLIB=$RANLIB
3668 # Extract the first word of "ranlib", so it can be a program name with args.
3669 set dummy ranlib; ac_word=$2
3670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3671 echo "configure:3672: checking for $ac_word" >&5
3672 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3674 else
3675 if test -n "$ncn_cv_RANLIB"; then
3676 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3677 else
3678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3679 ac_dummy="$PATH"
3680 for ac_dir in $ac_dummy; do
3681 test -z "$ac_dir" && ac_dir=.
3682 if test -f $ac_dir/$ac_word; then
3683 ac_cv_prog_ncn_cv_RANLIB="ranlib"
3684 break
3686 done
3687 IFS="$ac_save_ifs"
3688 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3691 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3692 if test -n "$ncn_cv_RANLIB"; then
3693 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3694 else
3695 echo "$ac_t""no" 1>&6
3698 RANLIB=$ncn_cv_RANLIB
3699 else
3700 RANLIB=":"
3702 else
3703 RANLIB="$ac_cv_prog_RANLIB"
3706 if test -n "$ncn_tool_prefix"; then
3707 # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
3708 set dummy ${ncn_tool_prefix}windres; ac_word=$2
3709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3710 echo "configure:3711: checking for $ac_word" >&5
3711 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3713 else
3714 if test -n "$WINDRES"; then
3715 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3716 else
3717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3718 ac_dummy="$PATH"
3719 for ac_dir in $ac_dummy; do
3720 test -z "$ac_dir" && ac_dir=.
3721 if test -f $ac_dir/$ac_word; then
3722 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres"
3723 break
3725 done
3726 IFS="$ac_save_ifs"
3729 WINDRES="$ac_cv_prog_WINDRES"
3730 if test -n "$WINDRES"; then
3731 echo "$ac_t""$WINDRES" 1>&6
3732 else
3733 echo "$ac_t""no" 1>&6
3737 if test -z "$ac_cv_prog_WINDRES" ; then
3738 if test $build = $host ; then
3739 ncn_cv_WINDRES=$WINDRES
3740 # Extract the first word of "windres", so it can be a program name with args.
3741 set dummy windres; ac_word=$2
3742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3743 echo "configure:3744: checking for $ac_word" >&5
3744 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3746 else
3747 if test -n "$ncn_cv_WINDRES"; then
3748 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
3749 else
3750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3751 ac_dummy="$PATH"
3752 for ac_dir in $ac_dummy; do
3753 test -z "$ac_dir" && ac_dir=.
3754 if test -f $ac_dir/$ac_word; then
3755 ac_cv_prog_ncn_cv_WINDRES="windres"
3756 break
3758 done
3759 IFS="$ac_save_ifs"
3760 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres"
3763 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
3764 if test -n "$ncn_cv_WINDRES"; then
3765 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
3766 else
3767 echo "$ac_t""no" 1>&6
3770 WINDRES=$ncn_cv_WINDRES
3771 else
3772 WINDRES="${ncn_tool_prefix}windres"
3774 else
3775 WINDRES="$ac_cv_prog_WINDRES"
3778 if test -n "$ncn_tool_prefix"; then
3779 # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
3780 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
3781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3782 echo "configure:3783: checking for $ac_word" >&5
3783 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
3784 echo $ac_n "(cached) $ac_c" 1>&6
3785 else
3786 if test -n "$OBJCOPY"; then
3787 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3788 else
3789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3790 ac_dummy="$PATH"
3791 for ac_dir in $ac_dummy; do
3792 test -z "$ac_dir" && ac_dir=.
3793 if test -f $ac_dir/$ac_word; then
3794 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy"
3795 break
3797 done
3798 IFS="$ac_save_ifs"
3801 OBJCOPY="$ac_cv_prog_OBJCOPY"
3802 if test -n "$OBJCOPY"; then
3803 echo "$ac_t""$OBJCOPY" 1>&6
3804 else
3805 echo "$ac_t""no" 1>&6
3809 if test -z "$ac_cv_prog_OBJCOPY" ; then
3810 if test $build = $host ; then
3811 ncn_cv_OBJCOPY=$OBJCOPY
3812 # Extract the first word of "objcopy", so it can be a program name with args.
3813 set dummy objcopy; ac_word=$2
3814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3815 echo "configure:3816: checking for $ac_word" >&5
3816 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3818 else
3819 if test -n "$ncn_cv_OBJCOPY"; then
3820 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
3821 else
3822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3823 ac_dummy="$PATH"
3824 for ac_dir in $ac_dummy; do
3825 test -z "$ac_dir" && ac_dir=.
3826 if test -f $ac_dir/$ac_word; then
3827 ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3828 break
3830 done
3831 IFS="$ac_save_ifs"
3832 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy"
3835 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
3836 if test -n "$ncn_cv_OBJCOPY"; then
3837 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
3838 else
3839 echo "$ac_t""no" 1>&6
3842 OBJCOPY=$ncn_cv_OBJCOPY
3843 else
3844 OBJCOPY="${ncn_tool_prefix}objcopy"
3846 else
3847 OBJCOPY="$ac_cv_prog_OBJCOPY"
3850 if test -n "$ncn_tool_prefix"; then
3851 # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
3852 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
3853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3854 echo "configure:3855: checking for $ac_word" >&5
3855 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3857 else
3858 if test -n "$OBJDUMP"; then
3859 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3860 else
3861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3862 ac_dummy="$PATH"
3863 for ac_dir in $ac_dummy; do
3864 test -z "$ac_dir" && ac_dir=.
3865 if test -f $ac_dir/$ac_word; then
3866 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump"
3867 break
3869 done
3870 IFS="$ac_save_ifs"
3873 OBJDUMP="$ac_cv_prog_OBJDUMP"
3874 if test -n "$OBJDUMP"; then
3875 echo "$ac_t""$OBJDUMP" 1>&6
3876 else
3877 echo "$ac_t""no" 1>&6
3881 if test -z "$ac_cv_prog_OBJDUMP" ; then
3882 if test $build = $host ; then
3883 ncn_cv_OBJDUMP=$OBJDUMP
3884 # Extract the first word of "objdump", so it can be a program name with args.
3885 set dummy objdump; ac_word=$2
3886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3887 echo "configure:3888: checking for $ac_word" >&5
3888 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3890 else
3891 if test -n "$ncn_cv_OBJDUMP"; then
3892 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
3893 else
3894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3895 ac_dummy="$PATH"
3896 for ac_dir in $ac_dummy; do
3897 test -z "$ac_dir" && ac_dir=.
3898 if test -f $ac_dir/$ac_word; then
3899 ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3900 break
3902 done
3903 IFS="$ac_save_ifs"
3904 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump"
3907 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
3908 if test -n "$ncn_cv_OBJDUMP"; then
3909 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
3910 else
3911 echo "$ac_t""no" 1>&6
3914 OBJDUMP=$ncn_cv_OBJDUMP
3915 else
3916 OBJDUMP="${ncn_tool_prefix}objdump"
3918 else
3919 OBJDUMP="$ac_cv_prog_OBJDUMP"
3931 # Target tools.
3932 if test -n "$ncn_target_tool_prefix"; then
3933 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
3934 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
3935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3936 echo "configure:3937: checking for $ac_word" >&5
3937 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3939 else
3940 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
3941 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
3942 else
3943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3944 ac_dummy="$PATH"
3945 for ac_dir in $ac_dummy; do
3946 test -z "$ac_dir" && ac_dir=.
3947 if test -f $ac_dir/$ac_word; then
3948 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
3949 break
3951 done
3952 IFS="$ac_save_ifs"
3955 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
3956 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
3957 echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6
3958 else
3959 echo "$ac_t""no" 1>&6
3963 if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then
3964 if test $build = $target ; then
3965 ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET
3966 # Extract the first word of "ar", so it can be a program name with args.
3967 set dummy ar; ac_word=$2
3968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3969 echo "configure:3970: checking for $ac_word" >&5
3970 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3972 else
3973 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
3974 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
3975 else
3976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3977 ac_dummy="$PATH"
3978 for ac_dir in $ac_dummy; do
3979 test -z "$ac_dir" && ac_dir=.
3980 if test -f $ac_dir/$ac_word; then
3981 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
3982 break
3984 done
3985 IFS="$ac_save_ifs"
3986 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
3989 ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET"
3990 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
3991 echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6
3992 else
3993 echo "$ac_t""no" 1>&6
3996 CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET
3997 else
3998 CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4000 else
4001 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4004 if test -n "$ncn_target_tool_prefix"; then
4005 # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
4006 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
4007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4008 echo "configure:4009: checking for $ac_word" >&5
4009 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4011 else
4012 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4013 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4014 else
4015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4016 ac_dummy="$PATH"
4017 for ac_dir in $ac_dummy; do
4018 test -z "$ac_dir" && ac_dir=.
4019 if test -f $ac_dir/$ac_word; then
4020 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
4021 break
4023 done
4024 IFS="$ac_save_ifs"
4027 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4028 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4029 echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6
4030 else
4031 echo "$ac_t""no" 1>&6
4035 if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then
4036 if test $build = $target ; then
4037 ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET
4038 # Extract the first word of "as", so it can be a program name with args.
4039 set dummy as; ac_word=$2
4040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4041 echo "configure:4042: checking for $ac_word" >&5
4042 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4044 else
4045 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4046 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4047 else
4048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4049 ac_dummy="$PATH"
4050 for ac_dir in $ac_dummy; do
4051 test -z "$ac_dir" && ac_dir=.
4052 if test -f $ac_dir/$ac_word; then
4053 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
4054 break
4056 done
4057 IFS="$ac_save_ifs"
4058 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as"
4061 ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET"
4062 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4063 echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6
4064 else
4065 echo "$ac_t""no" 1>&6
4068 CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET
4069 else
4070 CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as"
4072 else
4073 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4076 if test -n "$ncn_target_tool_prefix"; then
4077 # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
4078 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4080 echo "configure:4081: checking for $ac_word" >&5
4081 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4083 else
4084 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4085 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4086 else
4087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4088 ac_dummy="$PATH"
4089 for ac_dir in $ac_dummy; do
4090 test -z "$ac_dir" && ac_dir=.
4091 if test -f $ac_dir/$ac_word; then
4092 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4093 break
4095 done
4096 IFS="$ac_save_ifs"
4099 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4100 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4101 echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4102 else
4103 echo "$ac_t""no" 1>&6
4107 if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then
4108 if test $build = $target ; then
4109 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET
4110 # Extract the first word of "dlltool", so it can be a program name with args.
4111 set dummy dlltool; ac_word=$2
4112 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4113 echo "configure:4114: checking for $ac_word" >&5
4114 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4116 else
4117 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4118 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4119 else
4120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4121 ac_dummy="$PATH"
4122 for ac_dir in $ac_dummy; do
4123 test -z "$ac_dir" && ac_dir=.
4124 if test -f $ac_dir/$ac_word; then
4125 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
4126 break
4128 done
4129 IFS="$ac_save_ifs"
4130 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool"
4133 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"
4134 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4135 echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4136 else
4137 echo "$ac_t""no" 1>&6
4140 CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET
4141 else
4142 CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool"
4144 else
4145 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4148 if test -n "$ncn_target_tool_prefix"; then
4149 # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
4150 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4152 echo "configure:4153: checking for $ac_word" >&5
4153 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4154 echo $ac_n "(cached) $ac_c" 1>&6
4155 else
4156 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4157 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4158 else
4159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4160 ac_dummy="$PATH"
4161 for ac_dir in $ac_dummy; do
4162 test -z "$ac_dir" && ac_dir=.
4163 if test -f $ac_dir/$ac_word; then
4164 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4165 break
4167 done
4168 IFS="$ac_save_ifs"
4171 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4172 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4173 echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6
4174 else
4175 echo "$ac_t""no" 1>&6
4179 if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then
4180 if test $build = $target ; then
4181 ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET
4182 # Extract the first word of "ld", so it can be a program name with args.
4183 set dummy ld; ac_word=$2
4184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4185 echo "configure:4186: checking for $ac_word" >&5
4186 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4187 echo $ac_n "(cached) $ac_c" 1>&6
4188 else
4189 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4190 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4191 else
4192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4193 ac_dummy="$PATH"
4194 for ac_dir in $ac_dummy; do
4195 test -z "$ac_dir" && ac_dir=.
4196 if test -f $ac_dir/$ac_word; then
4197 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
4198 break
4200 done
4201 IFS="$ac_save_ifs"
4202 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld"
4205 ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET"
4206 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4207 echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6
4208 else
4209 echo "$ac_t""no" 1>&6
4212 CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET
4213 else
4214 CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld"
4216 else
4217 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4220 if test -n "$ncn_target_tool_prefix"; then
4221 # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
4222 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4224 echo "configure:4225: checking for $ac_word" >&5
4225 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4227 else
4228 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4229 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4230 else
4231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4232 ac_dummy="$PATH"
4233 for ac_dir in $ac_dummy; do
4234 test -z "$ac_dir" && ac_dir=.
4235 if test -f $ac_dir/$ac_word; then
4236 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4237 break
4239 done
4240 IFS="$ac_save_ifs"
4243 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4244 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4245 echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6
4246 else
4247 echo "$ac_t""no" 1>&6
4251 if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then
4252 if test $build = $target ; then
4253 ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET
4254 # Extract the first word of "nm", so it can be a program name with args.
4255 set dummy nm; ac_word=$2
4256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4257 echo "configure:4258: checking for $ac_word" >&5
4258 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4260 else
4261 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4262 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4263 else
4264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4265 ac_dummy="$PATH"
4266 for ac_dir in $ac_dummy; do
4267 test -z "$ac_dir" && ac_dir=.
4268 if test -f $ac_dir/$ac_word; then
4269 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
4270 break
4272 done
4273 IFS="$ac_save_ifs"
4274 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm"
4277 ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET"
4278 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4279 echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6
4280 else
4281 echo "$ac_t""no" 1>&6
4284 CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET
4285 else
4286 CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm"
4288 else
4289 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4292 if test -n "$ncn_target_tool_prefix"; then
4293 # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
4294 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4296 echo "configure:4297: checking for $ac_word" >&5
4297 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4298 echo $ac_n "(cached) $ac_c" 1>&6
4299 else
4300 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4301 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4302 else
4303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4304 ac_dummy="$PATH"
4305 for ac_dir in $ac_dummy; do
4306 test -z "$ac_dir" && ac_dir=.
4307 if test -f $ac_dir/$ac_word; then
4308 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib"
4309 break
4311 done
4312 IFS="$ac_save_ifs"
4315 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4316 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4317 echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4318 else
4319 echo "$ac_t""no" 1>&6
4323 if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then
4324 if test $build = $target ; then
4325 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET
4326 # Extract the first word of "ranlib", so it can be a program name with args.
4327 set dummy ranlib; ac_word=$2
4328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4329 echo "configure:4330: checking for $ac_word" >&5
4330 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4332 else
4333 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4334 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4335 else
4336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4337 ac_dummy="$PATH"
4338 for ac_dir in $ac_dummy; do
4339 test -z "$ac_dir" && ac_dir=.
4340 if test -f $ac_dir/$ac_word; then
4341 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib"
4342 break
4344 done
4345 IFS="$ac_save_ifs"
4346 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":"
4349 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"
4350 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4351 echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4352 else
4353 echo "$ac_t""no" 1>&6
4356 CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET
4357 else
4358 CONFIGURED_RANLIB_FOR_TARGET=":"
4360 else
4361 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4364 if test -n "$ncn_target_tool_prefix"; then
4365 # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
4366 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4368 echo "configure:4369: checking for $ac_word" >&5
4369 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4371 else
4372 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4373 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4374 else
4375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4376 ac_dummy="$PATH"
4377 for ac_dir in $ac_dummy; do
4378 test -z "$ac_dir" && ac_dir=.
4379 if test -f $ac_dir/$ac_word; then
4380 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4381 break
4383 done
4384 IFS="$ac_save_ifs"
4387 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4388 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4389 echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4390 else
4391 echo "$ac_t""no" 1>&6
4395 if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then
4396 if test $build = $target ; then
4397 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET
4398 # Extract the first word of "windres", so it can be a program name with args.
4399 set dummy windres; ac_word=$2
4400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4401 echo "configure:4402: checking for $ac_word" >&5
4402 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4404 else
4405 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4406 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4407 else
4408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4409 ac_dummy="$PATH"
4410 for ac_dir in $ac_dummy; do
4411 test -z "$ac_dir" && ac_dir=.
4412 if test -f $ac_dir/$ac_word; then
4413 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
4414 break
4416 done
4417 IFS="$ac_save_ifs"
4418 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres"
4421 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"
4422 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4423 echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4424 else
4425 echo "$ac_t""no" 1>&6
4428 CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET
4429 else
4430 CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres"
4432 else
4433 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4446 # Fix up target tools.
4447 if test "x${build}" = "x${host}" ; then
4448 # In this case, the newly built tools can and should be used,
4449 # so we override the results of the autoconf tests.
4450 # This should really only happen when the tools are actually being built,
4451 # but that's a further refinement. The new build scheme, where
4452 # tools are built into a structure paralleling where they're installed,
4453 # should also eliminate all of this cleanly.
4454 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
4455 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
4456 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
4457 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
4458 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
4459 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
4460 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
4461 else
4462 # Just use the ones we found.
4463 AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)"
4464 AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)"
4465 DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)"
4466 LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)"
4467 NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)"
4468 RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)"
4469 WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)"
4479 # Certain tools may need extra flags.
4480 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4481 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4482 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4484 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4485 echo "configure:4486: checking whether to enable maintainer-specific portions of Makefiles" >&5
4486 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4487 if test "${enable_maintainer_mode+set}" = set; then
4488 enableval="$enable_maintainer_mode"
4489 USE_MAINTAINER_MODE=$enableval
4490 else
4491 USE_MAINTAINER_MODE=no
4494 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4497 if test "$USE_MAINTAINER_MODE" = yes; then
4498 MAINTAINER_MODE_TRUE=
4499 MAINTAINER_MODE_FALSE='#'
4500 else
4501 MAINTAINER_MODE_TRUE='#'
4502 MAINTAINER_MODE_FALSE=
4504 MAINT=$MAINTAINER_MODE_TRUE
4506 # ---------------------
4507 # GCC bootstrap support
4508 # ---------------------
4510 # Stage specific cflags for build.
4511 stage1_cflags="-g"
4512 case $build in
4513 vax-*-*)
4514 case ${GCC} in
4515 yes) stage1_cflags="-g -Wa,-J" ;;
4516 *) stage1_cflags="-g -J" ;;
4517 esac ;;
4518 powerpc-*-darwin*)
4519 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
4520 # sources; use -no-cpp-precomp to get to GNU cpp.
4521 # Apple's GCC has bugs in designated initializer handling, so disable
4522 # that too.
4523 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
4525 esac
4528 # Enable -Werror in bootstrap stage2 and later.
4529 # Change the default to "no" on release branches.
4530 # Check whether --enable-werror or --disable-werror was given.
4531 if test "${enable_werror+set}" = set; then
4532 enableval="$enable_werror"
4534 else
4535 enable_werror=yes
4538 case ${enable_werror} in
4539 yes) stage2_werror_flag="--enable-werror-always" ;;
4540 *) stage2_werror_flag="" ;;
4541 esac
4544 trap '' 1 2 15
4545 cat > confcache <<\EOF
4546 # This file is a shell script that caches the results of configure
4547 # tests run on this system so they can be shared between configure
4548 # scripts and configure runs. It is not useful on other systems.
4549 # If it contains results you don't want to keep, you may remove or edit it.
4551 # By default, configure uses ./config.cache as the cache file,
4552 # creating it if it does not exist already. You can give configure
4553 # the --cache-file=FILE option to use a different cache file; that is
4554 # what configure does when it calls configure scripts in
4555 # subdirectories, so they share the cache.
4556 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4557 # config.status only pays attention to the cache file if you give it the
4558 # --recheck option to rerun configure.
4561 # The following way of writing the cache mishandles newlines in values,
4562 # but we know of no workaround that is simple, portable, and efficient.
4563 # So, don't put newlines in cache variables' values.
4564 # Ultrix sh set writes to stderr and can't be redirected directly,
4565 # and sets the high bit in the cache file unless we assign to the vars.
4566 (set) 2>&1 |
4567 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4568 *ac_space=\ *)
4569 # `set' does not quote correctly, so add quotes (double-quote substitution
4570 # turns \\\\ into \\, and sed turns \\ into \).
4571 sed -n \
4572 -e "s/'/'\\\\''/g" \
4573 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4576 # `set' quotes correctly as required by POSIX, so do not add quotes.
4577 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4579 esac >> confcache
4580 if cmp -s $cache_file confcache; then
4582 else
4583 if test -w $cache_file; then
4584 echo "updating cache $cache_file"
4585 cat confcache > $cache_file
4586 else
4587 echo "not updating unwritable cache $cache_file"
4590 rm -f confcache
4592 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4594 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4595 # Let make expand exec_prefix.
4596 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4598 # Any assignment to VPATH causes Sun make to only execute
4599 # the first set of double-colon rules, so remove it if not needed.
4600 # If there is a colon in the path, we need to keep it.
4601 if test "x$srcdir" = x.; then
4602 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4605 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4607 # Transform confdefs.h into DEFS.
4608 # Protect against shell expansion while executing Makefile rules.
4609 # Protect against Makefile macro expansion.
4610 cat > conftest.defs <<\EOF
4611 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4612 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4613 s%\[%\\&%g
4614 s%\]%\\&%g
4615 s%\$%$$%g
4617 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4618 rm -f conftest.defs
4621 # Without the "./", some shells look in PATH for config.status.
4622 : ${CONFIG_STATUS=./config.status}
4624 echo creating $CONFIG_STATUS
4625 rm -f $CONFIG_STATUS
4626 cat > $CONFIG_STATUS <<EOF
4627 #! /bin/sh
4628 # Generated automatically by configure.
4629 # Run this file to recreate the current configuration.
4630 # This directory was configured as follows,
4631 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4633 # $0 $ac_configure_args
4635 # Compiler output produced by configure, useful for debugging
4636 # configure, is in ./config.log if it exists.
4638 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4639 for ac_option
4641 case "\$ac_option" in
4642 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4643 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4644 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4645 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4646 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4647 exit 0 ;;
4648 -help | --help | --hel | --he | --h)
4649 echo "\$ac_cs_usage"; exit 0 ;;
4650 *) echo "\$ac_cs_usage"; exit 1 ;;
4651 esac
4652 done
4654 ac_given_srcdir=$srcdir
4655 ac_given_INSTALL="$INSTALL"
4657 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4659 cat >> $CONFIG_STATUS <<EOF
4661 # Protect against being on the right side of a sed subst in config.status.
4662 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4663 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4664 $ac_vpsub
4665 $extrasub
4666 s%@SHELL@%$SHELL%g
4667 s%@CFLAGS@%$CFLAGS%g
4668 s%@CPPFLAGS@%$CPPFLAGS%g
4669 s%@CXXFLAGS@%$CXXFLAGS%g
4670 s%@FFLAGS@%$FFLAGS%g
4671 s%@DEFS@%$DEFS%g
4672 s%@LDFLAGS@%$LDFLAGS%g
4673 s%@LIBS@%$LIBS%g
4674 s%@exec_prefix@%$exec_prefix%g
4675 s%@prefix@%$prefix%g
4676 s%@program_transform_name@%$program_transform_name%g
4677 s%@bindir@%$bindir%g
4678 s%@sbindir@%$sbindir%g
4679 s%@libexecdir@%$libexecdir%g
4680 s%@datadir@%$datadir%g
4681 s%@sysconfdir@%$sysconfdir%g
4682 s%@sharedstatedir@%$sharedstatedir%g
4683 s%@localstatedir@%$localstatedir%g
4684 s%@libdir@%$libdir%g
4685 s%@includedir@%$includedir%g
4686 s%@oldincludedir@%$oldincludedir%g
4687 s%@infodir@%$infodir%g
4688 s%@mandir@%$mandir%g
4689 s%@host@%$host%g
4690 s%@host_alias@%$host_alias%g
4691 s%@host_cpu@%$host_cpu%g
4692 s%@host_vendor@%$host_vendor%g
4693 s%@host_os@%$host_os%g
4694 s%@target@%$target%g
4695 s%@target_alias@%$target_alias%g
4696 s%@target_cpu@%$target_cpu%g
4697 s%@target_vendor@%$target_vendor%g
4698 s%@target_os@%$target_os%g
4699 s%@build@%$build%g
4700 s%@build_alias@%$build_alias%g
4701 s%@build_cpu@%$build_cpu%g
4702 s%@build_vendor@%$build_vendor%g
4703 s%@build_os@%$build_os%g
4704 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4705 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4706 s%@INSTALL_DATA@%$INSTALL_DATA%g
4707 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
4708 s%@build_subdir@%$build_subdir%g
4709 s%@host_subdir@%$host_subdir%g
4710 s%@target_subdir@%$target_subdir%g
4711 s%@CC@%$CC%g
4712 s%@GNATBIND@%$GNATBIND%g
4713 s%@do_compare@%$do_compare%g
4714 s%@stage1_languages@%$stage1_languages%g
4715 s%@DEFAULT_YACC@%$DEFAULT_YACC%g
4716 s%@DEFAULT_M4@%$DEFAULT_M4%g
4717 s%@DEFAULT_LEX@%$DEFAULT_LEX%g
4718 /@maybe_dependencies@/r $maybe_dependencies
4719 s%@maybe_dependencies@%%g
4720 /@serialization_dependencies@/r $serialization_dependencies
4721 s%@serialization_dependencies@%%g
4722 /@host_makefile_frag@/r $host_makefile_frag
4723 s%@host_makefile_frag@%%g
4724 /@target_makefile_frag@/r $target_makefile_frag
4725 s%@target_makefile_frag@%%g
4726 /@alphaieee_frag@/r $alphaieee_frag
4727 s%@alphaieee_frag@%%g
4728 /@ospace_frag@/r $ospace_frag
4729 s%@ospace_frag@%%g
4730 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
4731 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
4732 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
4733 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
4734 s%@gcc_version_trigger@%$gcc_version_trigger%g
4735 s%@gcc_version@%$gcc_version%g
4736 s%@tooldir@%$tooldir%g
4737 s%@build_tooldir@%$build_tooldir%g
4738 s%@GDB_TK@%$GDB_TK%g
4739 s%@gxx_include_dir@%$gxx_include_dir%g
4740 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
4741 s%@build_configargs@%$build_configargs%g
4742 s%@configure_build_modules@%$configure_build_modules%g
4743 s%@all_build_modules@%$all_build_modules%g
4744 s%@host_configargs@%$host_configargs%g
4745 s%@configdirs@%$configdirs%g
4746 s%@target_configargs@%$target_configargs%g
4747 s%@target_configdirs@%$target_configdirs%g
4748 s%@BISON@%$BISON%g
4749 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4750 s%@LEX@%$LEX%g
4751 s%@MAKEINFO@%$MAKEINFO%g
4752 s%@YACC@%$YACC%g
4753 s%@config_shell@%$config_shell%g
4754 s%@AR@%$AR%g
4755 s%@ncn_cv_AR@%$ncn_cv_AR%g
4756 s%@AS@%$AS%g
4757 s%@ncn_cv_AS@%$ncn_cv_AS%g
4758 s%@DLLTOOL@%$DLLTOOL%g
4759 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
4760 s%@LD@%$LD%g
4761 s%@ncn_cv_LD@%$ncn_cv_LD%g
4762 s%@NM@%$NM%g
4763 s%@ncn_cv_NM@%$ncn_cv_NM%g
4764 s%@RANLIB@%$RANLIB%g
4765 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
4766 s%@WINDRES@%$WINDRES%g
4767 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
4768 s%@OBJCOPY@%$OBJCOPY%g
4769 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
4770 s%@OBJDUMP@%$OBJDUMP%g
4771 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
4772 s%@CXX@%$CXX%g
4773 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
4774 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
4775 s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g
4776 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
4777 s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g
4778 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
4779 s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g
4780 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
4781 s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g
4782 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
4783 s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g
4784 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
4785 s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g
4786 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
4787 s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g
4788 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
4789 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
4790 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
4791 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
4792 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
4793 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
4794 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4795 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4796 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
4797 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
4798 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
4799 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
4800 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
4801 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
4802 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
4803 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4804 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4805 s%@MAINT@%$MAINT%g
4806 s%@stage1_cflags@%$stage1_cflags%g
4807 s%@stage2_werror_flag@%$stage2_werror_flag%g
4809 CEOF
4812 cat >> $CONFIG_STATUS <<\EOF
4814 # Split the substitutions into bite-sized pieces for seds with
4815 # small command number limits, like on Digital OSF/1 and HP-UX.
4816 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4817 ac_file=1 # Number of current file.
4818 ac_beg=1 # First line for current file.
4819 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4820 ac_more_lines=:
4821 ac_sed_cmds=""
4822 while $ac_more_lines; do
4823 if test $ac_beg -gt 1; then
4824 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4825 else
4826 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4828 if test ! -s conftest.s$ac_file; then
4829 ac_more_lines=false
4830 rm -f conftest.s$ac_file
4831 else
4832 if test -z "$ac_sed_cmds"; then
4833 ac_sed_cmds="sed -f conftest.s$ac_file"
4834 else
4835 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4837 ac_file=`expr $ac_file + 1`
4838 ac_beg=$ac_end
4839 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4841 done
4842 if test -z "$ac_sed_cmds"; then
4843 ac_sed_cmds=cat
4847 cat >> $CONFIG_STATUS <<EOF
4849 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4851 cat >> $CONFIG_STATUS <<\EOF
4852 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4853 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4854 case "$ac_file" in
4855 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4856 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4857 *) ac_file_in="${ac_file}.in" ;;
4858 esac
4860 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4862 # Remove last slash and all that follows it. Not all systems have dirname.
4863 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4864 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4865 # The file is in a subdirectory.
4866 test ! -d "$ac_dir" && mkdir "$ac_dir"
4867 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4868 # A "../" for each directory in $ac_dir_suffix.
4869 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4870 else
4871 ac_dir_suffix= ac_dots=
4874 case "$ac_given_srcdir" in
4875 .) srcdir=.
4876 if test -z "$ac_dots"; then top_srcdir=.
4877 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4878 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4879 *) # Relative path.
4880 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4881 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4882 esac
4884 case "$ac_given_INSTALL" in
4885 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4886 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4887 esac
4889 echo creating "$ac_file"
4890 rm -f "$ac_file"
4891 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4892 case "$ac_file" in
4893 *Makefile*) ac_comsub="1i\\
4894 # $configure_input" ;;
4895 *) ac_comsub= ;;
4896 esac
4898 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4899 sed -e "$ac_comsub
4900 s%@configure_input@%$configure_input%g
4901 s%@srcdir@%$srcdir%g
4902 s%@top_srcdir@%$top_srcdir%g
4903 s%@INSTALL@%$INSTALL%g
4904 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4905 fi; done
4906 rm -f conftest.s*
4909 cat >> $CONFIG_STATUS <<EOF
4912 cat >> $CONFIG_STATUS <<\EOF
4914 exit 0
4916 chmod +x $CONFIG_STATUS
4917 rm -fr confdefs* $ac_clean_files
4918 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1