* omp-low.c (expand_rec_input_clauses): Fix a typo.
[official-gcc.git] / configure
blobbcec4188123c77b09dc4edc11d902fbae02415de
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-libssp Builds libssp directory"
18 ac_help="$ac_help
19 --with-mpfr-dir=PATH Specify source directory for MPFR library"
20 ac_help="$ac_help
21 --with-mpfr=PATH Specify directory for installed MPFR library"
22 ac_help="$ac_help
23 --with-gmp-dir=PATH Specify source directory for GMP library"
24 ac_help="$ac_help
25 --with-gmp=PATH Specify directory for installed GMP library"
26 ac_help="$ac_help
27 --with-build-sysroot=sysroot
28 use sysroot as the system root during the build"
29 ac_help="$ac_help
30 --enable-bootstrap[=lean] Enable bootstrapping [no]"
31 ac_help="$ac_help
32 --enable-serial-[{host,target,build}-]configure
33 Force sequential configuration of
34 sub-packages for the host, target or build
35 machine, or all sub-packages"
36 ac_help="$ac_help
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
39 ac_help="$ac_help
40 --enable-werror enable -Werror in bootstrap stage2 and later"
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
45 build=NONE
46 cache_file=./config.cache
47 exec_prefix=NONE
48 host=NONE
49 no_create=
50 nonopt=NONE
51 no_recursion=
52 prefix=NONE
53 program_prefix=NONE
54 program_suffix=NONE
55 program_transform_name=s,x,x,
56 silent=
57 site=
58 srcdir=
59 target=NONE
60 verbose=
61 x_includes=NONE
62 x_libraries=NONE
63 bindir='${exec_prefix}/bin'
64 sbindir='${exec_prefix}/sbin'
65 libexecdir='${exec_prefix}/libexec'
66 datadir='${prefix}/share'
67 sysconfdir='${prefix}/etc'
68 sharedstatedir='${prefix}/com'
69 localstatedir='${prefix}/var'
70 libdir='${exec_prefix}/lib'
71 includedir='${prefix}/include'
72 oldincludedir='/usr/include'
73 infodir='${prefix}/info'
74 mandir='${prefix}/man'
76 # Initialize some other variables.
77 subdirs=
78 MFLAGS= MAKEFLAGS=
79 SHELL=${CONFIG_SHELL-/bin/sh}
80 # Maximum number of lines to put in a shell here document.
81 ac_max_here_lines=12
83 ac_prev=
84 for ac_option
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
90 ac_prev=
91 continue
94 case "$ac_option" in
95 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 *) ac_optarg= ;;
97 esac
99 # Accept the important Cygnus configure options, so we can diagnose typos.
101 case "$ac_option" in
103 -bindir | --bindir | --bindi | --bind | --bin | --bi)
104 ac_prev=bindir ;;
105 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
106 bindir="$ac_optarg" ;;
108 -build | --build | --buil | --bui | --bu)
109 ac_prev=build ;;
110 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
111 build="$ac_optarg" ;;
113 -cache-file | --cache-file | --cache-fil | --cache-fi \
114 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
115 ac_prev=cache_file ;;
116 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
117 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
118 cache_file="$ac_optarg" ;;
120 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
121 ac_prev=datadir ;;
122 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
123 | --da=*)
124 datadir="$ac_optarg" ;;
126 -disable-* | --disable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
135 -enable-* | --enable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142 case "$ac_option" in
143 *=*) ;;
144 *) ac_optarg=yes ;;
145 esac
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
148 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
149 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
150 | --exec | --exe | --ex)
151 ac_prev=exec_prefix ;;
152 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
153 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
154 | --exec=* | --exe=* | --ex=*)
155 exec_prefix="$ac_optarg" ;;
157 -gas | --gas | --ga | --g)
158 # Obsolete; use --with-gas.
159 with_gas=yes ;;
161 -help | --help | --hel | --he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
164 cat << EOF
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
167 Configuration:
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
175 [$ac_default_prefix]
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
177 [same as prefix]
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
182 [PREFIX/share]
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
185 [PREFIX/com]
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
198 cat << EOF
199 Host type:
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
214 exit 0 ;;
216 -host | --host | --hos | --ho)
217 ac_prev=host ;;
218 -host=* | --host=* | --hos=* | --ho=*)
219 host="$ac_optarg" ;;
221 -includedir | --includedir | --includedi | --included | --include \
222 | --includ | --inclu | --incl | --inc)
223 ac_prev=includedir ;;
224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225 | --includ=* | --inclu=* | --incl=* | --inc=*)
226 includedir="$ac_optarg" ;;
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
229 ac_prev=infodir ;;
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
233 -libdir | --libdir | --libdi | --libd)
234 ac_prev=libdir ;;
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239 | --libexe | --libex | --libe)
240 ac_prev=libexecdir ;;
241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242 | --libexe=* | --libex=* | --libe=*)
243 libexecdir="$ac_optarg" ;;
245 -localstatedir | --localstatedir | --localstatedi | --localstated \
246 | --localstate | --localstat | --localsta | --localst \
247 | --locals | --local | --loca | --loc | --lo)
248 ac_prev=localstatedir ;;
249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252 localstatedir="$ac_optarg" ;;
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
255 ac_prev=mandir ;;
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
259 -nfp | --nfp | --nf)
260 # Obsolete; use --without-fp.
261 with_fp=no ;;
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
264 | --no-cr | --no-c)
265 no_create=yes ;;
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
269 no_recursion=yes ;;
271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273 | --oldin | --oldi | --old | --ol | --o)
274 ac_prev=oldincludedir ;;
275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278 oldincludedir="$ac_optarg" ;;
280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
281 ac_prev=prefix ;;
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
286 | --program-pre | --program-pr | --program-p)
287 ac_prev=program_prefix ;;
288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290 program_prefix="$ac_optarg" ;;
292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
293 | --program-suf | --program-su | --program-s)
294 ac_prev=program_suffix ;;
295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297 program_suffix="$ac_optarg" ;;
299 -program-transform-name | --program-transform-name \
300 | --program-transform-nam | --program-transform-na \
301 | --program-transform-n | --program-transform- \
302 | --program-transform | --program-transfor \
303 | --program-transfo | --program-transf \
304 | --program-trans | --program-tran \
305 | --progr-tra | --program-tr | --program-t)
306 ac_prev=program_transform_name ;;
307 -program-transform-name=* | --program-transform-name=* \
308 | --program-transform-nam=* | --program-transform-na=* \
309 | --program-transform-n=* | --program-transform-=* \
310 | --program-transform=* | --program-transfor=* \
311 | --program-transfo=* | --program-transf=* \
312 | --program-trans=* | --program-tran=* \
313 | --progr-tra=* | --program-tr=* | --program-t=*)
314 program_transform_name="$ac_optarg" ;;
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
318 silent=yes ;;
320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
321 ac_prev=sbindir ;;
322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
323 | --sbi=* | --sb=*)
324 sbindir="$ac_optarg" ;;
326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328 | --sharedst | --shareds | --shared | --share | --shar \
329 | --sha | --sh)
330 ac_prev=sharedstatedir ;;
331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
334 | --sha=* | --sh=*)
335 sharedstatedir="$ac_optarg" ;;
337 -site | --site | --sit)
338 ac_prev=site ;;
339 -site=* | --site=* | --sit=*)
340 site="$ac_optarg" ;;
342 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
343 ac_prev=srcdir ;;
344 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
345 srcdir="$ac_optarg" ;;
347 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
348 | --syscon | --sysco | --sysc | --sys | --sy)
349 ac_prev=sysconfdir ;;
350 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
351 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
352 sysconfdir="$ac_optarg" ;;
354 -target | --target | --targe | --targ | --tar | --ta | --t)
355 ac_prev=target ;;
356 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
357 target="$ac_optarg" ;;
359 -v | -verbose | --verbose | --verbos | --verbo | --verb)
360 verbose=yes ;;
362 -version | --version | --versio | --versi | --vers)
363 echo "configure generated by autoconf version 2.13"
364 exit 0 ;;
366 -with-* | --with-*)
367 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 case "$ac_option" in
374 *=*) ;;
375 *) ac_optarg=yes ;;
376 esac
377 eval "with_${ac_package}='$ac_optarg'" ;;
379 -without-* | --without-*)
380 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
388 --x)
389 # Obsolete; use --with-x.
390 with_x=yes ;;
392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
393 | --x-incl | --x-inc | --x-in | --x-i)
394 ac_prev=x_includes ;;
395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
397 x_includes="$ac_optarg" ;;
399 -x-libraries | --x-libraries | --x-librarie | --x-librari \
400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
401 ac_prev=x_libraries ;;
402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
404 x_libraries="$ac_optarg" ;;
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 if test "x$nonopt" != xNONE; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 nonopt="$ac_option"
419 esac
420 done
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428 # File descriptor usage:
429 # 0 standard input
430 # 1 file creation
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
437 exec 6>/dev/null
438 else
439 exec 6>&1
441 exec 5>./config.log
443 echo "\
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
446 " 1>&5
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
450 ac_configure_args=
451 for ac_arg
453 case "$ac_arg" in
454 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
455 | --no-cr | --no-c) ;;
456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
458 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
461 esac
462 done
464 # NLS nuisances.
465 # Only set these to C if already set. These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
472 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 echo > confdefs.h
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
481 ac_unique_file=move-if-change
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485 ac_srcdir_defaulted=yes
486 # Try the directory containing this script, then its parent.
487 ac_prog=$0
488 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
490 srcdir=$ac_confdir
491 if test ! -r $srcdir/$ac_unique_file; then
492 srcdir=..
494 else
495 ac_srcdir_defaulted=no
497 if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
500 else
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE; then
509 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
510 else
511 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 for ac_site_file in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
517 . "$ac_site_file"
519 done
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
523 . $cache_file
524 else
525 echo "creating cache $cache_file"
526 > $cache_file
529 ac_ext=c
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp='$CPP $CPPFLAGS'
532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling=$ac_cv_prog_cc_cross
536 ac_exeext=
537 ac_objext=o
538 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
541 ac_n= ac_c='
542 ' ac_t=' '
543 else
544 ac_n=-n ac_c= ac_t=
546 else
547 ac_n= ac_c='\c' ac_t=
552 ac_aux_dir=
553 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
554 if test -f $ac_dir/install-sh; then
555 ac_aux_dir=$ac_dir
556 ac_install_sh="$ac_aux_dir/install-sh -c"
557 break
558 elif test -f $ac_dir/install.sh; then
559 ac_aux_dir=$ac_dir
560 ac_install_sh="$ac_aux_dir/install.sh -c"
561 break
563 done
564 if test -z "$ac_aux_dir"; then
565 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
567 ac_config_guess=$ac_aux_dir/config.guess
568 ac_config_sub=$ac_aux_dir/config.sub
569 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
572 # Do some error checking and defaulting for the host and target type.
573 # The inputs are:
574 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
576 # The rules are:
577 # 1. You are not allowed to specify --host, --target, and nonopt at the
578 # same time.
579 # 2. Host defaults to nonopt.
580 # 3. If nonopt is not specified, then host defaults to the current host,
581 # as determined by config.guess.
582 # 4. Target and build default to nonopt.
583 # 5. If nonopt is not specified, then target and build default to host.
585 # The aliases save the names the user supplied, while $host etc.
586 # will get canonicalized.
587 case $host---$target---$nonopt in
588 NONE---*---* | *---NONE---* | *---*---NONE) ;;
589 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
590 esac
593 # Make sure we can run config.sub.
594 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
595 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
598 echo $ac_n "checking host system type""... $ac_c" 1>&6
599 echo "configure:600: checking host system type" >&5
601 host_alias=$host
602 case "$host_alias" in
603 NONE)
604 case $nonopt in
605 NONE)
606 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
607 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
608 fi ;;
609 *) host_alias=$nonopt ;;
610 esac ;;
611 esac
613 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
614 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
615 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
616 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
617 echo "$ac_t""$host" 1>&6
619 echo $ac_n "checking target system type""... $ac_c" 1>&6
620 echo "configure:621: checking target system type" >&5
622 target_alias=$target
623 case "$target_alias" in
624 NONE)
625 case $nonopt in
626 NONE) target_alias=$host_alias ;;
627 *) target_alias=$nonopt ;;
628 esac ;;
629 esac
631 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
632 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
633 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
634 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
635 echo "$ac_t""$target" 1>&6
637 echo $ac_n "checking build system type""... $ac_c" 1>&6
638 echo "configure:639: checking build system type" >&5
640 build_alias=$build
641 case "$build_alias" in
642 NONE)
643 case $nonopt in
644 NONE) build_alias=$host_alias ;;
645 *) build_alias=$nonopt ;;
646 esac ;;
647 esac
649 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
650 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653 echo "$ac_t""$build" 1>&6
655 test "$host_alias" != "$target_alias" &&
656 test "$program_prefix$program_suffix$program_transform_name" = \
657 NONENONEs,x,x, &&
658 program_prefix=${target_alias}-
660 if test "$program_transform_name" = s,x,x,; then
661 program_transform_name=
662 else
663 # Double any \ or $. echo might interpret backslashes.
664 cat <<\EOF_SED > conftestsed
665 s,\\,\\\\,g; s,\$,$$,g
666 EOF_SED
667 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
668 rm -f conftestsed
670 test "$program_prefix" != NONE &&
671 program_transform_name="s,^,${program_prefix},; $program_transform_name"
672 # Use a double $ so make ignores it.
673 test "$program_suffix" != NONE &&
674 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
676 # sed with no file args requires a program.
677 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
680 # Get 'install' or 'install-sh' and its variants.
681 # Find a good install program. We prefer a C program (faster),
682 # so one script is as good as another. But avoid the broken or
683 # incompatible versions:
684 # SysV /etc/install, /usr/sbin/install
685 # SunOS /usr/etc/install
686 # IRIX /sbin/install
687 # AIX /bin/install
688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
691 # ./install, which can be erroneously created by make from ./install.sh.
692 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
693 echo "configure:694: checking for a BSD compatible install" >&5
694 if test -z "$INSTALL"; then
695 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
697 else
698 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
699 for ac_dir in $PATH; do
700 # Account for people who put trailing slashes in PATH elements.
701 case "$ac_dir/" in
702 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
704 # OSF1 and SCO ODT 3.0 have their own names for install.
705 # Don't use installbsd from OSF since it installs stuff as root
706 # by default.
707 for ac_prog in ginstall scoinst install; do
708 if test -f $ac_dir/$ac_prog; then
709 if test $ac_prog = install &&
710 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
711 # AIX install. It has an incompatible calling convention.
713 else
714 ac_cv_path_install="$ac_dir/$ac_prog -c"
715 break 2
718 done
720 esac
721 done
722 IFS="$ac_save_IFS"
725 if test "${ac_cv_path_install+set}" = set; then
726 INSTALL="$ac_cv_path_install"
727 else
728 # As a last resort, use the slow shell script. We don't cache a
729 # path for INSTALL within a source directory, because that will
730 # break other packages using the cache if that directory is
731 # removed, or if the path is relative.
732 INSTALL="$ac_install_sh"
735 echo "$ac_t""$INSTALL" 1>&6
737 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
738 # It thinks the first close brace ends the variable substitution.
739 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
741 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
743 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
745 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
746 echo "configure:747: checking whether ln works" >&5
747 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
749 else
750 rm -f conftestdata_t
751 echo >conftestdata_f
752 if ln conftestdata_f conftestdata_t 2>/dev/null
753 then
754 acx_cv_prog_LN=ln
755 else
756 acx_cv_prog_LN=no
758 rm -f conftestdata_f conftestdata_t
761 if test $acx_cv_prog_LN = no; then
762 LN="cp"
763 echo "$ac_t""no, using $LN" 1>&6
764 else
765 LN="$acx_cv_prog_LN"
766 echo "$ac_t""yes" 1>&6
769 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
770 echo "configure:771: checking whether ln -s works" >&5
771 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
772 echo $ac_n "(cached) $ac_c" 1>&6
773 else
774 rm -f conftestdata
775 if ln -s X conftestdata 2>/dev/null
776 then
777 rm -f conftestdata
778 ac_cv_prog_LN_S="ln -s"
779 else
780 ac_cv_prog_LN_S=ln
783 LN_S="$ac_cv_prog_LN_S"
784 if test "$ac_cv_prog_LN_S" = "ln -s"; then
785 echo "$ac_t""yes" 1>&6
786 else
787 echo "$ac_t""no" 1>&6
791 ### we might need to use some other shell than /bin/sh for running subshells
792 ### If we are on Windows, search for the shell. This will permit people
793 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
794 ### without also having to set CONFIG_SHELL. This code will work when
795 ### using bash, which sets OSTYPE.
796 case "${OSTYPE}" in
797 *win32*)
798 if test x${CONFIG_SHELL} = x ; then
799 if test ! -f /bin/sh ; then
800 if test x${SHELL} != x && test -f ${SHELL} ; then
801 CONFIG_SHELL=${SHELL}
802 export CONFIG_SHELL
803 else
804 for prog in sh sh.exe bash bash.exe; do
805 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
806 for dir in $PATH; do
807 test -z "$dir" && dir=.
808 if test -f $dir/$prog; then
809 CONFIG_SHELL=$dir/$prog
810 export CONFIG_SHELL
811 break
813 done
814 IFS="$save_ifs"
815 test -n "${CONFIG_SHELL}" && break
816 done
821 esac
823 config_shell=${CONFIG_SHELL-/bin/sh}
825 progname=$0
826 # if PWD already has a value, it is probably wrong.
827 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
829 # Export original configure arguments for use by sub-configures. These
830 # will be expanded by make, so quote '$'.
831 tmp="$progname $@"
832 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
833 $tmp
834 EOF_SED
835 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
836 rm -f conftestsed.out
839 moveifchange=${srcdir}/move-if-change
841 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
843 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
844 # a relative path.
845 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
846 INSTALL="${srcpwd}/install-sh -c"
849 # Set srcdir to "." if that's what it is.
850 # This is important for multilib support.
851 pwd=`${PWDCMD-pwd}`
852 if test "${pwd}" = "${srcpwd}" ; then
853 srcdir=.
856 topsrcdir=$srcpwd
858 extra_host_args=
860 ### To add a new directory to the tree, first choose whether it is a target
861 ### or a host dependent tool. Then put it into the appropriate list
862 ### (library or tools, host or target), doing a dependency sort.
864 # Subdirs will be configured in the order listed in build_configdirs,
865 # configdirs, or target_configdirs; see the serialization section below.
867 # Dependency sorting is only needed when *configuration* must be done in
868 # a particular order. In all cases a dependency should be specified in
869 # the Makefile, whether or not it's implicitly specified here.
871 # Double entries in build_configdirs, configdirs, or target_configdirs may
872 # cause circular dependencies and break everything horribly.
874 # these library is used by various programs built for the build
875 # environment
877 build_libs="build-libiberty"
879 # these tools are built for the build environment
880 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
882 # these libraries are used by various programs built for the host environment
884 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp"
886 # these tools are built for the host environment
887 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
888 # know that we are building the simulator.
889 # binutils, gas and ld appear in that order because it makes sense to run
890 # "make check" in that particular order.
891 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
893 # libgcj represents the runtime libraries only used by gcj.
894 libgcj="target-libffi \
895 target-boehm-gc \
896 target-zlib \
897 target-qthreads \
898 target-libjava"
900 # these libraries are built for the target environment, and are built after
901 # the host libraries and the host tools (which may be a cross compiler)
903 target_libraries="target-libiberty \
904 target-libgloss \
905 target-newlib \
906 target-libstdc++-v3 \
907 target-libmudflap \
908 target-libssp \
909 target-libgfortran \
910 ${libgcj} \
911 target-libobjc \
912 target-libada \
913 target-libgomp"
915 # these tools are built using the target libraries, and are intended to
916 # run only in the target environment
918 # note: any program that *uses* libraries that are in the "target_libraries"
919 # list belongs in this list. those programs are also very likely
920 # candidates for the "native_only" list which follows
922 target_tools="target-examples target-groff target-gperf target-rda"
924 ################################################################################
926 ## All tools belong in one of the four categories, and are assigned above
927 ## We assign ${configdirs} this way to remove all embedded newlines. This
928 ## is important because configure will choke if they ever get through.
929 ## ${configdirs} is directories we build using the host tools.
930 ## ${target_configdirs} is directories we build using the target tools.
931 configdirs=`echo ${host_libs} ${host_tools}`
932 target_configdirs=`echo ${target_libraries} ${target_tools}`
933 build_configdirs=`echo ${build_libs} ${build_tools}`
935 ################################################################################
937 srcname="gnu development package"
939 # This gets set non-empty for some net releases of packages.
940 appdirs=""
942 # Define is_cross_compiler to save on calls to 'test'.
943 is_cross_compiler=
944 if test x"${host}" = x"${target}" ; then
945 is_cross_compiler=no
946 else
947 is_cross_compiler=yes
950 # Find the build and target subdir names.
951 case ${build_alias} in
952 "") build_noncanonical=${build} ;;
953 *) build_noncanonical=${build_alias} ;;
954 esac
956 case ${host_alias} in
957 "") host_noncanonical=${build_noncanonical} ;;
958 *) host_noncanonical=${host_alias} ;;
959 esac
961 case ${target_alias} in
962 "") target_noncanonical=${host_noncanonical} ;;
963 *) target_noncanonical=${target_alias} ;;
964 esac
966 # Prefix 'build-' so this never conflicts with target_subdir.
967 build_subdir="build-${build_noncanonical}"
968 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
969 if ( test $srcdir = . && test -d gcc ) \
970 || test -d $srcdir/../host-${host_noncanonical}; then
971 host_subdir="host-${host_noncanonical}"
972 else
973 host_subdir=.
975 # No prefix.
976 target_subdir=${target_noncanonical}
979 # Skipdirs are removed silently.
980 skipdirs=
981 # Noconfigdirs are removed loudly.
982 noconfigdirs=""
984 use_gnu_ld=
985 # Make sure we don't let GNU ld be added if we didn't want it.
986 if test x$with_gnu_ld = xno ; then
987 use_gnu_ld=no
988 noconfigdirs="$noconfigdirs ld"
991 use_gnu_as=
992 # Make sure we don't let GNU as be added if we didn't want it.
993 if test x$with_gnu_as = xno ; then
994 use_gnu_as=no
995 noconfigdirs="$noconfigdirs gas"
998 # some tools are so dependent upon X11 that if we're not building with X,
999 # it's not even worth trying to configure, much less build, that tool.
1001 case ${with_x} in
1002 yes | "") ;; # the default value for this tree is that X11 is available
1004 skipdirs="${skipdirs} tk itcl libgui"
1005 # We won't be able to build gdbtk without X.
1006 enable_gdbtk=no
1008 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1009 esac
1011 # Some tools are only suitable for building in a "native" situation.
1012 # Remove these if host!=target.
1013 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"
1015 # Similarly, some are only suitable for cross toolchains.
1016 # Remove these if host=target.
1017 cross_only="target-libgloss target-newlib target-opcodes"
1019 case $is_cross_compiler in
1020 no) skipdirs="${skipdirs} ${cross_only}" ;;
1021 yes) skipdirs="${skipdirs} ${native_only}" ;;
1022 esac
1024 # If both --with-headers and --with-libs are specified, default to
1025 # --without-newlib.
1026 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1027 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1028 if test x"${with_newlib}" = x ; then
1029 with_newlib=no
1033 # Recognize --with-newlib/--without-newlib.
1034 case ${with_newlib} in
1035 no) skipdirs="${skipdirs} target-newlib" ;;
1036 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1037 esac
1039 # Configure extra directories which are host specific
1041 case "${host}" in
1042 *-cygwin*)
1043 configdirs="$configdirs libtermcap" ;;
1044 esac
1046 # A target can indicate whether a language isn't supported for some reason.
1047 # Only spaces may be used in this macro; not newlines or tabs.
1048 unsupported_languages=
1050 # Remove more programs from consideration, based on the host or
1051 # target this usually means that a port of the program doesn't
1052 # exist yet.
1054 case "${host}" in
1055 hppa*64*-*-*)
1056 noconfigdirs="$noconfigdirs byacc"
1058 i[3456789]86-*-vsta)
1059 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1061 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1062 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1064 i[3456789]86-*-mingw32*)
1065 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1066 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1068 i[3456789]86-*-beos*)
1069 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1071 *-*-cygwin*)
1072 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1074 *-*-netbsd*)
1075 noconfigdirs="$noconfigdirs rcs"
1077 ppc*-*-pe)
1078 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1080 powerpc-*-beos*)
1081 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1083 esac
1086 # Check whether --enable-libada or --disable-libada was given.
1087 if test "${enable_libada+set}" = set; then
1088 enableval="$enable_libada"
1089 ENABLE_LIBADA=$enableval
1090 else
1091 ENABLE_LIBADA=yes
1094 if test "${ENABLE_LIBADA}" != "yes" ; then
1095 noconfigdirs="$noconfigdirs target-libada"
1096 noconfigdirs="$noconfigdirs gnattools"
1099 # Check whether --enable-libssp or --disable-libssp was given.
1100 if test "${enable_libssp+set}" = set; then
1101 enableval="$enable_libssp"
1102 ENABLE_LIBSSP=$enableval
1103 else
1104 ENABLE_LIBSSP=yes
1107 if test "${ENABLE_LIBSSP}" != "yes" ; then
1108 noconfigdirs="$noconfigdirs target-libssp"
1111 # Save it here so that, even in case of --enable-libgcj, if the Java
1112 # front-end isn't enabled, we still get libgcj disabled.
1113 libgcj_saved=$libgcj
1114 case $enable_libgcj in
1115 yes)
1116 # If we reset it here, it won't get added to noconfigdirs in the
1117 # target-specific build rules, so it will be forcibly enabled
1118 # (unless the Java language itself isn't enabled).
1119 libgcj=
1122 # Make sure we get it printed in the list of not supported target libs.
1123 noconfigdirs="$noconfigdirs ${libgcj}"
1125 esac
1128 # Allow --disable-libmudflap to exclude target-libmudflap
1129 case $enable_libmudflap in
1130 yes)
1133 noconfigdirs="$noconfigdirs target-libmudflap"
1136 case "${target}" in
1137 *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
1138 # Enable libmudflap by default in GNU and friends.
1140 *-*-freebsd*)
1141 # Enable libmudflap by default in FreeBSD.
1144 # Disable it by default everywhere else.
1145 noconfigdirs="$noconfigdirs target-libmudflap"
1147 esac
1148 esac
1150 # Allow --disable-libgomp to exclude target-libgomp
1151 case $enable_libgomp in
1152 yes)
1155 noconfigdirs="$noconfigdirs target-libgomp"
1158 # Enable libgomp by default on hosted POSIX systems.
1159 case "${target}" in
1160 *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
1162 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1164 *-*-solaris2* | *-*-sysv4* | *-*-irix* | *-*-osf* | *-*-hpux*)
1166 *-*-darwin*)
1169 noconfigdirs="$noconfigdirs target-libgomp"
1171 esac
1172 esac
1175 case "${target}" in
1176 *-*-chorusos)
1177 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1179 powerpc-*-darwin*)
1180 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1181 noconfigdirs="$noconfigdirs sim target-rda"
1183 *-*-darwin*)
1184 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1185 noconfigdirs="$noconfigdirs sim target-rda"
1186 noconfigdirs="$noconfigdirs ${libgcj}"
1188 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1189 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1191 *-*-freebsd*)
1192 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1193 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1194 && test -f /usr/local/include/gmp.h; then
1195 with_gmp=/usr/local
1198 # Skip some stuff that's unsupported on some FreeBSD configurations.
1199 case "${target}" in
1200 i*86-*-*) ;;
1201 alpha*-*-*) ;;
1203 noconfigdirs="$noconfigdirs ${libgcj}"
1205 esac
1207 *-*-kaos*)
1208 # Remove unsupported stuff on all kaOS configurations.
1209 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1210 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1211 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1212 noconfigdirs="$noconfigdirs target-libgloss"
1214 *-*-netbsd*)
1215 # Skip some stuff on all NetBSD configurations.
1216 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1218 # Skip some stuff that's unsupported on some NetBSD configurations.
1219 case "${target}" in
1220 i*86-*-netbsdelf*) ;;
1221 arm*-*-netbsdelf*) ;;
1223 noconfigdirs="$noconfigdirs ${libgcj}"
1225 esac
1227 *-*-netware*)
1228 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1230 *-*-rtems*)
1231 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1233 # The tpf target doesn't support gdb yet.
1234 *-*-tpf*)
1235 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1237 *-*-uclinux*)
1238 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1240 *-*-vxworks*)
1241 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1243 m32c-*-*)
1244 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1246 alpha*-dec-osf*)
1247 # ld works, but does not support shared libraries.
1248 # newlib is not 64 bit ready. I'm not sure about fileutils.
1249 # gas doesn't generate exception information.
1250 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1252 alpha*-*-*vms*)
1253 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1255 alpha*-*-linux*)
1256 # newlib is not 64 bit ready
1257 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1259 alpha*-*-*)
1260 # newlib is not 64 bit ready
1261 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1263 am33_2.0-*-linux*)
1264 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1266 sh-*-linux*)
1267 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1269 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1270 noconfigdirs="$noconfigdirs ${libgcj}"
1271 noconfigdirs="$noconfigdirs target-examples"
1272 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1273 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1274 noconfigdirs="$noconfigdirs expect dejagnu"
1275 # the C++ libraries don't build on top of CE's C libraries
1276 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1277 noconfigdirs="$noconfigdirs target-newlib"
1278 case "${host}" in
1279 *-*-cygwin*) ;; # keep gdb and readline
1280 *) noconfigdirs="$noconfigdirs gdb readline"
1282 esac
1284 arc-*-*)
1285 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1287 arm-semi-aof )
1289 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1290 noconfigdirs="$noconfigdirs ${libgcj}"
1292 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1293 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1295 arm*-*-symbianelf*)
1296 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1298 arm-*-pe*)
1299 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1301 thumb-*-coff)
1302 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1304 thumb-*-elf)
1305 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1307 thumb-*-pe)
1308 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1310 arm-*-riscix*)
1311 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1313 avr-*-*)
1314 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1316 bfin-*-*)
1317 noconfigdirs="$noconfigdirs target-libgloss gdb"
1318 if x${is_cross_compiler} != xno ; then
1319 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1322 c4x-*-* | tic4x-*-*)
1323 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1325 c54x*-*-* | tic54x-*-*)
1326 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1328 cris-*-* | crisv32-*-*)
1329 unsupported_languages="$unsupported_languages java"
1330 case "${target}" in
1331 *-*-aout)
1332 unsupported_languages="$unsupported_languages fortran"
1333 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1334 *-*-elf)
1335 unsupported_languages="$unsupported_languages fortran"
1336 noconfigdirs="$noconfigdirs target-boehm-gc";;
1337 *-*-linux*)
1338 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1340 unsupported_languages="$unsupported_languages fortran"
1341 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1342 esac
1344 crx-*-*)
1345 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1347 d10v-*-*)
1348 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1350 d30v-*-*)
1351 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1353 fr30-*-elf*)
1354 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1356 frv-*-*)
1357 noconfigdirs="$noconfigdirs ${libgcj}"
1359 h8300*-*-*)
1360 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1362 h8500-*-*)
1363 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1365 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1367 hppa*64*-*-linux* | parisc*64*-*-linux*)
1368 # In this case, it's because the hppa64-linux target is for
1369 # the kernel only at this point and has no libc, and thus no
1370 # headers, crt*.o, etc., all of which are needed by these.
1371 noconfigdirs="$noconfigdirs target-zlib"
1373 parisc*-*-linux* | hppa*-*-linux*)
1375 hppa*-*-*elf* | \
1376 hppa*-*-lites* | \
1377 hppa*-*-openbsd* | \
1378 hppa*64*-*-*)
1379 noconfigdirs="$noconfigdirs ${libgcj}"
1381 hppa*-*-*)
1382 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1383 # build on HP-UX 10.20.
1384 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1386 i960-*-*)
1387 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1389 ia64*-*-elf*)
1390 # No gdb support yet.
1391 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1393 ia64*-**-hpux*)
1394 # No gdb or ld support yet.
1395 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1397 i370-*-opened*)
1399 i[3456789]86-*-coff | i[3456789]86-*-elf)
1400 noconfigdirs="$noconfigdirs ${libgcj}"
1402 i[3456789]86-*-linux*)
1403 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1404 # not build java stuff by default.
1405 case "${target}" in
1406 *-*-*libc1*)
1407 noconfigdirs="$noconfigdirs ${libgcj}";;
1408 esac
1410 # This section makes it possible to build newlib natively on linux.
1411 # If we are using a cross compiler then don't configure newlib.
1412 if test x${is_cross_compiler} != xno ; then
1413 noconfigdirs="$noconfigdirs target-newlib"
1415 noconfigdirs="$noconfigdirs target-libgloss"
1416 # If we are not using a cross compiler, do configure newlib.
1417 # Note however, that newlib will only be configured in this situation
1418 # if the --with-newlib option has been given, because otherwise
1419 # 'target-newlib' will appear in skipdirs.
1421 i[3456789]86-*-mingw32*)
1422 target_configdirs="$target_configdirs target-mingw"
1423 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1425 # Can't build gdb for mingw32 if not native.
1426 case "${host}" in
1427 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1428 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1430 esac
1432 *-*-cygwin*)
1433 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1434 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1435 # always build newlib if winsup directory is present.
1436 if test -d "$srcdir/winsup"; then
1437 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1438 elif test -d "$srcdir/newlib"; then
1439 echo "Warning: winsup is missing so newlib can't be built."
1442 # Can't build gdb for Cygwin if not native.
1443 case "${host}" in
1444 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1445 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1447 esac
1449 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1450 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1452 i[3456789]86-*-pe)
1453 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1455 i[3456789]86-*-sco3.2v5*)
1456 # The linker does not yet know about weak symbols in COFF,
1457 # and is not configured to handle mixed ELF and COFF.
1458 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1460 i[3456789]86-*-sco*)
1461 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1463 i[3456789]86-*-solaris2*)
1464 noconfigdirs="$noconfigdirs target-libgloss"
1466 i[3456789]86-*-sysv4*)
1467 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1469 i[3456789]86-*-beos*)
1470 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1472 m32r-*-*)
1473 noconfigdirs="$noconfigdirs ${libgcj}"
1475 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1476 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1478 m68k-*-elf*)
1479 noconfigdirs="$noconfigdirs ${libgcj}"
1481 m68k-*-coff*)
1482 noconfigdirs="$noconfigdirs ${libgcj}"
1484 mcore-*-pe*)
1485 # The EPOC C++ environment does not support exceptions or rtti,
1486 # and so building libstdc++-v3 tends not to always work.
1487 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1489 mmix-*-*)
1490 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1491 unsupported_languages="$unsupported_languages fortran java"
1493 mn10200-*-*)
1494 noconfigdirs="$noconfigdirs ${libgcj}"
1496 mn10300-*-*)
1497 noconfigdirs="$noconfigdirs ${libgcj}"
1499 ms1-*-*)
1500 noconfigdirs="$noconfigdirs sim"
1502 powerpc-*-aix*)
1503 # copied from rs6000-*-* entry
1504 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1506 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1507 target_configdirs="$target_configdirs target-winsup"
1508 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1509 # always build newlib.
1510 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1512 # This is temporary until we can link against shared libraries
1513 powerpcle-*-solaris*)
1514 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1516 powerpc-*-beos*)
1517 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1519 powerpc-*-eabi)
1520 noconfigdirs="$noconfigdirs ${libgcj}"
1522 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1524 rs6000-*-lynxos*)
1525 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1527 rs6000-*-aix*)
1528 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1530 rs6000-*-*)
1531 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1533 m68k-apollo-*)
1534 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1536 mips*-*-irix5*)
1537 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1539 mips*-*-irix6*)
1540 # Linking libjava exceeds command-line length limits on at least
1541 # IRIX 6.2, but not on IRIX 6.5.
1542 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1543 # <oldham@codesourcery.com>
1544 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1546 mips*-dec-bsd*)
1547 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1549 mips*-*-bsd*)
1550 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1552 mipstx39-*-*)
1553 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1555 mips64*-*-linux*)
1556 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1558 mips*-*-linux*)
1559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1561 mips*-*-*)
1562 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1564 romp-*-*)
1565 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1567 sh-*-* | sh64-*-*)
1568 case "${host}" in
1569 i[3456789]86-*-vsta) ;; # don't add gprof back in
1570 i[3456789]86-*-go32*) ;; # don't add gprof back in
1571 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1572 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1573 esac
1574 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1576 sparc-*-elf*)
1577 noconfigdirs="$noconfigdirs ${libgcj}"
1579 sparc64-*-elf*)
1580 noconfigdirs="$noconfigdirs ${libgcj}"
1582 sparclite-*-*)
1583 noconfigdirs="$noconfigdirs ${libgcj}"
1585 sparc-*-sunos4*)
1586 noconfigdirs="$noconfigdirs ${libgcj}"
1587 if test x${is_cross_compiler} != xno ; then
1588 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1589 else
1590 use_gnu_ld=no
1593 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1594 noconfigdirs="$noconfigdirs ${libgcj}"
1596 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1598 v810-*-*)
1599 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1601 v850-*-*)
1602 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1604 v850e-*-*)
1605 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1607 v850ea-*-*)
1608 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1610 vax-*-vms)
1611 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1613 vax-*-*)
1614 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1616 xtensa-*-*)
1617 noconfigdirs="$noconfigdirs ${libgcj}"
1619 ip2k-*-*)
1620 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1622 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1623 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1625 *-*-lynxos*)
1626 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1628 *-*-*)
1629 noconfigdirs="$noconfigdirs ${libgcj}"
1631 esac
1633 # If we aren't building newlib, then don't build libgloss, since libgloss
1634 # depends upon some newlib header files.
1635 case "${noconfigdirs}" in
1636 *target-libgloss*) ;;
1637 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1638 esac
1640 # Work in distributions that contain no compiler tools, like Autoconf.
1641 tentative_cc=""
1642 host_makefile_frag=/dev/null
1643 if test -d ${srcdir}/config ; then
1644 case "${host}" in
1645 m68k-hp-hpux*)
1646 # Avoid "too much defining" errors from HPUX compiler.
1647 tentative_cc="cc -Wp,-H256000"
1648 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1649 # If it's HP/UX ar, this should be harmless.
1650 RANLIB="ar ts"
1652 m68k-apollo-sysv*)
1653 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1655 m68k-apollo-bsd*)
1656 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1657 # chokes on bfd, the compiler won't let you assign integers to enums, and
1658 # other problems. Defining CC to gcc is a questionable way to say "don't use
1659 # the apollo compiler" (the preferred version of GCC could be called cc,
1660 # or whatever), but I'm not sure leaving CC as cc is any better...
1661 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1662 # Used to have BISON=yacc.
1663 tentative_cc=gcc
1665 m88k-dg-dgux*)
1666 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1668 m88k-harris-cxux*)
1669 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1670 tentative_cc="cc -Xa"
1671 host_makefile_frag="config/mh-cxux"
1673 m88k-motorola-sysv*)
1675 mips*-dec-ultrix*)
1676 tentative_cc="cc -Wf,-XNg1000"
1677 host_makefile_frag="config/mh-decstation"
1679 mips*-nec-sysv4*)
1680 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1681 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1682 host_makefile_frag="config/mh-necv4"
1684 mips*-sgi-irix4*)
1685 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1686 # environment. Also bump switch table size so that cp-parse will
1687 # compile. Bump string length limit so linker builds.
1688 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1690 mips*-*-sysv4*)
1691 host_makefile_frag="config/mh-sysv4"
1693 mips*-*-sysv*)
1694 # This is for a MIPS running RISC/os 4.52C.
1696 # This is needed for GDB, but needs to be in the top-level make because
1697 # if a library is compiled with the bsd headers and gets linked with the
1698 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1699 # a different size).
1700 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1701 # known except to select the sysv environment. Could we use /proc instead?
1702 # These "sysv environments" and "bsd environments" often end up being a pain.
1704 # This is not part of CFLAGS because perhaps not all C compilers have this
1705 # option.
1706 tentative_cc="cc -systype sysv"
1708 i370-ibm-opened*)
1709 tentative_cc="c89"
1711 i[3456789]86-*-sysv5*)
1712 host_makefile_frag="config/mh-sysv5"
1714 i[3456789]86-*-dgux*)
1715 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1716 host_makefile_frag="config/mh-dgux386"
1718 i[3456789]86-ncr-sysv4.3*)
1719 # The MetaWare compiler will generate a copyright message unless you
1720 # turn it off by adding the -Hnocopyr flag.
1721 tentative_cc="cc -Hnocopyr"
1723 i[3456789]86-ncr-sysv4*)
1724 # for an NCR 3000 (i486/SVR4) system.
1725 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1726 # This compiler not only emits obnoxious copyright messages every time
1727 # you run it, but it chokes and dies on a whole bunch of GNU source
1728 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1729 tentative_cc="/usr/ccs/ATT/cc"
1730 host_makefile_frag="config/mh-ncr3000"
1732 i[3456789]86-*-sco3.2v5*)
1734 i[3456789]86-*-sco*)
1735 # The native C compiler botches some simple uses of const. Unfortunately,
1736 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1737 tentative_cc="cc -Dconst="
1738 host_makefile_frag="config/mh-sco"
1740 i[3456789]86-*-udk*)
1741 host_makefile_frag="config/mh-sysv5"
1743 i[3456789]86-*-solaris2*)
1744 host_makefile_frag="config/mh-sysv4"
1746 i[3456789]86-*-msdosdjgpp*)
1747 host_makefile_frag="config/mh-djgpp"
1749 *-cygwin*)
1750 host_makefile_frag="config/mh-cygwin"
1752 *-mingw32*)
1754 *-interix*)
1755 host_makefile_frag="config/mh-interix"
1757 vax-*-ultrix2*)
1758 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1759 tentative_cc=gcc
1761 *-*-solaris2*)
1762 host_makefile_frag="config/mh-solaris"
1764 m68k-sun-sunos*)
1765 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1766 # without overflowing the jump tables (-J says to use a 32 bit table)
1767 tentative_cc="cc -J"
1769 *-hp-hpux*)
1770 tentative_cc="cc -Wp,-H256000"
1772 *-*-hiux*)
1773 tentative_cc="cc -Wp,-H256000"
1775 rs6000-*-lynxos*)
1776 # /bin/cc is less than useful for our purposes. Always use GCC
1777 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1778 host_makefile_frag="config/mh-lynxrs6k"
1780 powerpc-*-darwin*)
1781 host_makefile_frag="config/mh-ppc-darwin"
1783 *-*-lynxos*)
1784 # /bin/cc is less than useful for our purposes. Always use GCC
1785 tentative_cc="/bin/gcc"
1787 *-*-sysv4*)
1788 host_makefile_frag="config/mh-sysv4"
1790 # This is placed last to prevent interfering with the cases above.
1791 i[3456789]86-*-*)
1792 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1793 host_makefile_frag="config/mh-x86omitfp"
1795 esac
1798 # If we aren't going to be using gcc, see if we can extract a definition
1799 # of CC from the fragment.
1800 # Actually, use the 'pre-extracted' version above.
1801 if test -z "${CC}" && test "${build}" = "${host}" ; then
1802 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1803 found=
1804 for dir in $PATH; do
1805 test -z "$dir" && dir=.
1806 if test -f $dir/gcc; then
1807 found=yes
1808 break
1810 done
1811 IFS="$save_ifs"
1812 if test -z "${found}" && test -n "${tentative_cc}" ; then
1813 CC=$tentative_cc
1817 if test "${build}" != "${host}" ; then
1818 # If we are doing a Canadian Cross, in which the host and build systems
1819 # are not the same, we set reasonable default values for the tools.
1821 CC=${CC-${host_alias}-gcc}
1822 CFLAGS=${CFLAGS-"-g -O2"}
1823 CXX=${CXX-${host_alias}-c++}
1824 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1825 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1826 BUILD_PREFIX=${build_alias}-
1827 BUILD_PREFIX_1=${build_alias}-
1829 else
1830 # Set reasonable default values for some tools even if not Canadian.
1831 # Of course, these are different reasonable default values, originally
1832 # specified directly in the Makefile.
1833 # We don't export, so that autoconf can do its job.
1834 # Note that all these settings are above the fragment inclusion point
1835 # in Makefile.in, so can still be overridden by fragments.
1836 # This is all going to change when we autoconfiscate...
1838 CC_FOR_BUILD="\$(CC)"
1839 BUILD_PREFIX=
1840 BUILD_PREFIX_1=loser-
1842 # Extract the first word of "gcc", so it can be a program name with args.
1843 set dummy gcc; ac_word=$2
1844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $ac_word" >&5
1846 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1848 else
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC="$CC" # Let the user override the test.
1851 else
1852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1853 ac_dummy="$PATH"
1854 for ac_dir in $ac_dummy; do
1855 test -z "$ac_dir" && ac_dir=.
1856 if test -f $ac_dir/$ac_word; then
1857 ac_cv_prog_CC="gcc"
1858 break
1860 done
1861 IFS="$ac_save_ifs"
1864 CC="$ac_cv_prog_CC"
1865 if test -n "$CC"; then
1866 echo "$ac_t""$CC" 1>&6
1867 else
1868 echo "$ac_t""no" 1>&6
1871 if test -z "$CC"; then
1872 # Extract the first word of "cc", so it can be a program name with args.
1873 set dummy cc; ac_word=$2
1874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1875 echo "configure:1876: checking for $ac_word" >&5
1876 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 else
1882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1883 ac_prog_rejected=no
1884 ac_dummy="$PATH"
1885 for ac_dir in $ac_dummy; do
1886 test -z "$ac_dir" && ac_dir=.
1887 if test -f $ac_dir/$ac_word; then
1888 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1889 ac_prog_rejected=yes
1890 continue
1892 ac_cv_prog_CC="cc"
1893 break
1895 done
1896 IFS="$ac_save_ifs"
1897 if test $ac_prog_rejected = yes; then
1898 # We found a bogon in the path, so make sure we never use it.
1899 set dummy $ac_cv_prog_CC
1900 shift
1901 if test $# -gt 0; then
1902 # We chose a different compiler from the bogus one.
1903 # However, it has the same basename, so the bogon will be chosen
1904 # first if we set CC to just the basename; use the full file name.
1905 shift
1906 set dummy "$ac_dir/$ac_word" "$@"
1907 shift
1908 ac_cv_prog_CC="$@"
1913 CC="$ac_cv_prog_CC"
1914 if test -n "$CC"; then
1915 echo "$ac_t""$CC" 1>&6
1916 else
1917 echo "$ac_t""no" 1>&6
1920 if test -z "$CC"; then
1921 case "`uname -s`" in
1922 *win32* | *WIN32*)
1923 # Extract the first word of "cl", so it can be a program name with args.
1924 set dummy cl; ac_word=$2
1925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1926 echo "configure:1927: checking for $ac_word" >&5
1927 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1929 else
1930 if test -n "$CC"; then
1931 ac_cv_prog_CC="$CC" # Let the user override the test.
1932 else
1933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1934 ac_dummy="$PATH"
1935 for ac_dir in $ac_dummy; do
1936 test -z "$ac_dir" && ac_dir=.
1937 if test -f $ac_dir/$ac_word; then
1938 ac_cv_prog_CC="cl"
1939 break
1941 done
1942 IFS="$ac_save_ifs"
1945 CC="$ac_cv_prog_CC"
1946 if test -n "$CC"; then
1947 echo "$ac_t""$CC" 1>&6
1948 else
1949 echo "$ac_t""no" 1>&6
1952 esac
1954 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1957 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1958 echo "configure:1959: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1960 ac_ext=c
1961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1962 ac_cpp='$CPP $CPPFLAGS'
1963 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1964 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1965 cross_compiling=$ac_cv_prog_cc_cross
1967 cat > conftest.$ac_ext << EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1972 main(){return(0);}
1974 if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1975 ac_cv_prog_cc_works=yes
1976 # If we can't run a trivial program, we are probably using a cross compiler.
1977 if (./conftest; exit) 2>/dev/null; then
1978 ac_cv_prog_cc_cross=no
1979 else
1980 ac_cv_prog_cc_cross=yes
1982 else
1983 echo "configure: failed program was:" >&5
1984 cat conftest.$ac_ext >&5
1985 ac_cv_prog_cc_works=no
1987 rm -fr conftest*
1988 ac_ext=c
1989 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1990 ac_cpp='$CPP $CPPFLAGS'
1991 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1992 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1993 cross_compiling=$ac_cv_prog_cc_cross
1995 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1996 if test $ac_cv_prog_cc_works = no; then
1997 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1999 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2000 echo "configure:2001: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2001 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2002 cross_compiling=$ac_cv_prog_cc_cross
2004 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2005 echo "configure:2006: checking whether we are using GNU C" >&5
2006 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2008 else
2009 cat > conftest.c <<EOF
2010 #ifdef __GNUC__
2011 yes;
2012 #endif
2014 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2015 ac_cv_prog_gcc=yes
2016 else
2017 ac_cv_prog_gcc=no
2021 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2023 if test $ac_cv_prog_gcc = yes; then
2024 GCC=yes
2025 else
2026 GCC=
2029 ac_test_CFLAGS="${CFLAGS+set}"
2030 ac_save_CFLAGS="$CFLAGS"
2031 CFLAGS=
2032 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2033 echo "configure:2034: checking whether ${CC-cc} accepts -g" >&5
2034 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2036 else
2037 echo 'void f(){}' > conftest.c
2038 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2039 ac_cv_prog_cc_g=yes
2040 else
2041 ac_cv_prog_cc_g=no
2043 rm -f conftest*
2047 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2048 if test "$ac_test_CFLAGS" = set; then
2049 CFLAGS="$ac_save_CFLAGS"
2050 elif test $ac_cv_prog_cc_g = yes; then
2051 if test "$GCC" = yes; then
2052 CFLAGS="-g -O2"
2053 else
2054 CFLAGS="-g"
2056 else
2057 if test "$GCC" = yes; then
2058 CFLAGS="-O2"
2059 else
2060 CFLAGS=
2065 # We must set the default linker to the linker used by gcc for the correct
2066 # operation of libtool. If LD is not defined and we are using gcc, try to
2067 # set the LD default to the ld used by gcc.
2068 if test -z "$LD"; then
2069 if test "$GCC" = yes; then
2070 case $build in
2071 *-*-mingw*)
2072 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2074 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2075 esac
2076 case $gcc_prog_ld in
2077 # Accept absolute paths.
2078 [\\/]* | [A-Za-z]:[\\/]*)
2079 LD="$gcc_prog_ld" ;;
2080 esac
2084 CXX=${CXX-"c++"}
2085 CFLAGS=${CFLAGS-"-g"}
2086 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2089 if test $host != $build; then
2090 ac_tool_prefix=${host_alias}-
2091 else
2092 ac_tool_prefix=
2097 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2098 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2100 echo "configure:2101: checking for $ac_word" >&5
2101 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2103 else
2104 if test -n "$GNATBIND"; then
2105 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2106 else
2107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2108 ac_dummy="$PATH"
2109 for ac_dir in $ac_dummy; do
2110 test -z "$ac_dir" && ac_dir=.
2111 if test -f $ac_dir/$ac_word; then
2112 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2113 break
2115 done
2116 IFS="$ac_save_ifs"
2119 GNATBIND="$ac_cv_prog_GNATBIND"
2120 if test -n "$GNATBIND"; then
2121 echo "$ac_t""$GNATBIND" 1>&6
2122 else
2123 echo "$ac_t""no" 1>&6
2127 if test -z "$ac_cv_prog_GNATBIND"; then
2128 if test -n "$ac_tool_prefix"; then
2129 # Extract the first word of "gnatbind", so it can be a program name with args.
2130 set dummy gnatbind; ac_word=$2
2131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2132 echo "configure:2133: checking for $ac_word" >&5
2133 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2135 else
2136 if test -n "$GNATBIND"; then
2137 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2138 else
2139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2140 ac_dummy="$PATH"
2141 for ac_dir in $ac_dummy; do
2142 test -z "$ac_dir" && ac_dir=.
2143 if test -f $ac_dir/$ac_word; then
2144 ac_cv_prog_GNATBIND="gnatbind"
2145 break
2147 done
2148 IFS="$ac_save_ifs"
2149 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2152 GNATBIND="$ac_cv_prog_GNATBIND"
2153 if test -n "$GNATBIND"; then
2154 echo "$ac_t""$GNATBIND" 1>&6
2155 else
2156 echo "$ac_t""no" 1>&6
2159 else
2160 GNATBIND="no"
2164 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2165 echo "configure:2166: checking whether compiler driver understands Ada" >&5
2166 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2168 else
2169 cat >conftest.adb <<EOF
2170 procedure conftest is begin null; end conftest;
2172 acx_cv_cc_gcc_supports_ada=no
2173 # There is a bug in old released versions of GCC which causes the
2174 # driver to exit successfully when the appropriate language module
2175 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2176 # Therefore we must check for the error message as well as an
2177 # unsuccessful exit.
2178 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2179 # given a .adb file, but produce no object file. So we must check
2180 # if an object file was really produced to guard against this.
2181 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2182 if test x"$errors" = x && test -f conftest.$ac_objext; then
2183 acx_cv_cc_gcc_supports_ada=yes
2185 rm -f conftest.*
2188 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2190 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2191 have_gnat=yes
2192 else
2193 have_gnat=no
2196 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2197 echo "configure:2198: checking how to compare bootstrapped objects" >&5
2198 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2199 echo $ac_n "(cached) $ac_c" 1>&6
2200 else
2201 echo abfoo >t1
2202 echo cdfoo >t2
2203 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2204 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2205 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2207 else
2208 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2211 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2212 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2214 else
2215 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2218 rm t1 t2
2222 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2223 do_compare="$gcc_cv_prog_cmp_skip"
2227 # Check for GMP and MPFR
2228 gmplibs=
2229 gmpinc=
2230 have_gmp=yes
2231 # Specify a location for mpfr
2232 # check for this first so it ends up on the link line before gmp.
2233 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2234 if test "${with_mpfr_dir+set}" = set; then
2235 withval="$with_mpfr_dir"
2240 if test "x$with_mpfr_dir" != x; then
2241 gmpinc="-I$with_mpfr_dir"
2242 gmplibs="$with_mpfr_dir/libmpfr.a"
2243 else
2244 gmplibs="-lmpfr"
2247 # Check whether --with-mpfr or --without-mpfr was given.
2248 if test "${with_mpfr+set}" = set; then
2249 withval="$with_mpfr"
2254 if test "x$with_mpfr" != x; then
2255 gmplibs="-L$with_mpfr/lib $gmplibs"
2256 gmpinc="-I$with_mpfr/include"
2259 # Specify a location for gmp
2260 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2261 if test "${with_gmp_dir+set}" = set; then
2262 withval="$with_gmp_dir"
2267 if test "x$with_gmp_dir" != x; then
2268 gmpinc="$gmpinc -I$with_gmp_dir"
2269 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2270 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2271 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2272 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2274 # One of the later tests will catch the error if neither library is present.
2275 else
2276 gmplibs="$gmplibs -lgmp"
2279 # Check whether --with-gmp or --without-gmp was given.
2280 if test "${with_gmp+set}" = set; then
2281 withval="$with_gmp"
2286 if test "x$with_gmp" != x; then
2287 gmplibs="-L$with_gmp/lib $gmplibs"
2288 gmpinc="-I$with_gmp/include $gmpinc"
2291 saved_CFLAGS="$CFLAGS"
2292 CFLAGS="$CFLAGS $gmpinc"
2293 # Check GMP actually works
2294 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2295 echo "configure:2296: checking for correct version of gmp.h" >&5
2296 cat > conftest.$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2299 #include "gmp.h"
2300 int main() {
2302 #if __GNU_MP_VERSION < 3
2303 choke me
2304 #endif
2306 ; return 0; }
2308 if { (eval echo configure:2309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2309 rm -rf conftest*
2310 echo "$ac_t""yes" 1>&6
2311 else
2312 echo "configure: failed program was:" >&5
2313 cat conftest.$ac_ext >&5
2314 rm -rf conftest*
2315 echo "$ac_t""no" 1>&6; have_gmp=no
2317 rm -f conftest*
2319 if test x"$have_gmp" = xyes; then
2320 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2321 echo "configure:2322: checking for MPFR" >&5
2323 saved_LIBS="$LIBS"
2324 LIBS="$LIBS $gmplibs"
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2328 #include <gmp.h>
2329 #include <mpfr.h>
2330 int main() {
2331 mpfr_t n; mpfr_init(n);
2332 ; return 0; }
2334 if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2335 rm -rf conftest*
2336 echo "$ac_t""yes" 1>&6
2337 else
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2340 rm -rf conftest*
2341 echo "$ac_t""no" 1>&6; have_gmp=no
2343 rm -f conftest*
2344 LIBS="$saved_LIBS"
2345 CFLAGS="$saved_CFLAGS"
2348 # Flags needed for both GMP and/or MPFR
2352 # By default, C is the only stage 1 language.
2353 stage1_languages=c
2356 # Figure out what language subdirectories are present.
2357 # Look if the user specified --enable-languages="..."; if not, use
2358 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2359 # go away some day.
2360 # NB: embedded tabs in this IF block -- do not untabify
2361 if test -d ${srcdir}/gcc; then
2362 if test x"${enable_languages+set}" != xset; then
2363 if test x"${LANGUAGES+set}" = xset; then
2364 enable_languages="${LANGUAGES}"
2365 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2366 else
2367 enable_languages=all
2369 else
2370 if test x"${enable_languages}" = x ||
2371 test x"${enable_languages}" = xyes;
2372 then
2373 echo configure.in: --enable-languages needs at least one language argument 1>&2
2374 exit 1
2377 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2379 # 'f95' is the old name for the 'fortran' language. We issue a warning
2380 # and make the substitution.
2381 case ,${enable_languages}, in
2382 *,f95,*)
2383 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2384 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2386 esac
2388 # First scan to see if an enabled language requires some other language.
2389 # We assume that a given config-lang.in will list all the language
2390 # front ends it requires, even if some are required indirectly.
2391 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2392 case ${lang_frag} in
2393 ..) ;;
2394 # The odd quoting in the next line works around
2395 # an apparent bug in bash 1.12 on linux.
2396 ${srcdir}/gcc/[*]/config-lang.in) ;;
2398 # From the config-lang.in, get $language, $lang_requires
2399 language=
2400 lang_requires=
2401 . ${lang_frag}
2402 for other in ${lang_requires} ; do
2403 case ,${enable_languages}, in
2404 *,$other,*) ;;
2405 *,all,*) ;;
2406 *,$language,*)
2407 echo " \`$other' language required by \`$language'; enabling" 1>&2
2408 enable_languages="${enable_languages},${other}"
2410 esac
2411 done
2413 esac
2414 done
2416 new_enable_languages=c
2417 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2418 potential_languages=c
2420 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2421 case ${lang_frag} in
2422 ..) ;;
2423 # The odd quoting in the next line works around
2424 # an apparent bug in bash 1.12 on linux.
2425 ${srcdir}/gcc/[*]/config-lang.in) ;;
2427 # From the config-lang.in, get $language, $target_libs,
2428 # $lang_dirs, $boot_language, and $build_by_default
2429 language=
2430 target_libs=
2431 lang_dirs=
2432 boot_language=
2433 build_by_default=
2434 need_gmp=
2435 . ${lang_frag}
2436 potential_languages="${potential_languages},${language}"
2437 # This is quite sensitive to the ordering of the case statement arms.
2438 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2439 *::*:*)
2440 echo "${lang_frag} doesn't set \$language." 1>&2
2441 exit 1
2443 *:ada:no:*)
2444 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2445 add_this_lang=no
2447 *,${language},*:*:*:*)
2448 # Language was explicitly selected; include it.
2449 add_this_lang=yes
2451 *,all,*:*:*:no)
2452 # 'all' was selected, but this is not a default language
2453 # so do not include it.
2454 add_this_lang=no
2456 *,all,*:*:*:*)
2457 # 'all' was selected and this is a default language; include it.
2458 add_this_lang=yes
2461 add_this_lang=no
2463 esac
2465 # Disable languages that need GMP if it isn't available.
2466 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2467 *,${language},*:no:yes)
2468 # Specifically requested language; tell them.
2469 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2471 *:no:yes)
2472 # Silently disable.
2473 add_this_lang=no
2475 esac
2477 # Disable a language that is unsupported by the target.
2478 case " $unsupported_languages " in
2479 *" $language "*)
2480 add_this_lang=no
2482 esac
2484 case $add_this_lang in
2486 # Remove language-dependent dirs.
2487 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2490 new_enable_languages="$new_enable_languages,$language"
2491 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2492 case ${boot_language} in
2493 yes)
2494 # Add to (comma-separated) list of stage 1 languages.
2495 stage1_languages="${stage1_languages},${language}"
2497 esac
2499 esac
2501 esac
2502 done
2504 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2505 if test "x$missing_languages" != x; then
2506 { echo "configure: error:
2507 The following requested languages could not be built: ${missing_languages}
2508 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2511 if test "x$new_enable_languages" != "x$enable_languages"; then
2512 echo The following languages will be built: ${new_enable_languages}
2514 enable_languages="$new_enable_languages"
2515 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2518 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2519 # $build_configdirs and $target_configdirs.
2520 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2522 notsupp=""
2523 for dir in . $skipdirs $noconfigdirs ; do
2524 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2525 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2526 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2527 if test -r $srcdir/$dirname/configure ; then
2528 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2529 true
2530 else
2531 notsupp="$notsupp $dir"
2535 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2536 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2537 if test -r $srcdir/$dirname/configure ; then
2538 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2539 true
2540 else
2541 notsupp="$notsupp $dir"
2545 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2546 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2547 if test -r $srcdir/$dirname/configure ; then
2548 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2549 true
2550 else
2551 notsupp="$notsupp $dir"
2555 done
2557 # Sometimes the tools are distributed with libiberty but with no other
2558 # libraries. In that case, we don't want to build target-libiberty.
2559 if test -n "${target_configdirs}" ; then
2560 others=
2561 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2562 if test "$i" != "libiberty" ; then
2563 if test -r $srcdir/$i/configure ; then
2564 others=yes;
2565 break;
2568 done
2569 if test -z "${others}" ; then
2570 target_configdirs=
2574 # Quietly strip out all directories which aren't configurable in this tree.
2575 # This relies on all configurable subdirectories being autoconfiscated, which
2576 # is now the case.
2577 build_configdirs_all="$build_configdirs"
2578 build_configdirs=
2579 for i in ${build_configdirs_all} ; do
2580 j=`echo $i | sed -e s/build-//g`
2581 if test -f ${srcdir}/$j/configure ; then
2582 build_configdirs="${build_configdirs} $i"
2584 done
2586 configdirs_all="$configdirs"
2587 configdirs=
2588 for i in ${configdirs_all} ; do
2589 if test -f ${srcdir}/$i/configure ; then
2590 configdirs="${configdirs} $i"
2592 done
2594 target_configdirs_all="$target_configdirs"
2595 target_configdirs=
2596 for i in ${target_configdirs_all} ; do
2597 j=`echo $i | sed -e s/target-//g`
2598 if test -f ${srcdir}/$j/configure ; then
2599 target_configdirs="${target_configdirs} $i"
2601 done
2603 # Produce a warning message for the subdirs we can't configure.
2604 # This isn't especially interesting in the Cygnus tree, but in the individual
2605 # FSF releases, it's important to let people know when their machine isn't
2606 # supported by the one or two programs in a package.
2608 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2609 # If $appdirs is non-empty, at least one of those directories must still
2610 # be configured, or we error out. (E.g., if the gas release supports a
2611 # specified target in some subdirs but not the gas subdir, we shouldn't
2612 # pretend that all is well.)
2613 if test -n "$appdirs" ; then
2614 for dir in $appdirs ; do
2615 if test -r $dir/Makefile.in ; then
2616 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2617 appdirs=""
2618 break
2620 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2621 appdirs=""
2622 break
2625 done
2626 if test -n "$appdirs" ; then
2627 echo "*** This configuration is not supported by this package." 1>&2
2628 exit 1
2631 # Okay, some application will build, or we don't care to check. Still
2632 # notify of subdirs not getting built.
2633 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2634 echo " ${notsupp}" 1>&2
2635 echo " (Any other directories should still work fine.)" 1>&2
2638 case "$host" in
2639 *msdosdjgpp*)
2640 enable_gdbtk=no ;;
2641 esac
2643 copy_dirs=
2645 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2646 if test "${with_build_sysroot+set}" = set; then
2647 withval="$with_build_sysroot"
2648 if test x"$withval" != x ; then
2649 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2651 else
2652 SYSROOT_CFLAGS_FOR_TARGET=
2657 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2658 # the named directory are copied to $(tooldir)/sys-include.
2659 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2660 if test x${is_cross_compiler} = xno ; then
2661 echo 1>&2 '***' --with-headers is only supported when cross compiling
2662 exit 1
2664 if test x"${with_headers}" != xyes ; then
2665 case "${exec_prefixoption}" in
2666 "") x=${prefix} ;;
2667 *) x=${exec_prefix} ;;
2668 esac
2669 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2673 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2674 # the name directories are copied to $(tooldir)/lib. Multiple directories
2675 # are permitted.
2676 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2677 if test x${is_cross_compiler} = xno ; then
2678 echo 1>&2 '***' --with-libs is only supported when cross compiling
2679 exit 1
2681 if test x"${with_libs}" != xyes ; then
2682 # Copy the libraries in reverse order, so that files in the first named
2683 # library override files in subsequent libraries.
2684 case "${exec_prefixoption}" in
2685 "") x=${prefix} ;;
2686 *) x=${exec_prefix} ;;
2687 esac
2688 for l in ${with_libs}; do
2689 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2690 done
2694 # Handle ${copy_dirs}
2695 set fnord ${copy_dirs}
2696 shift
2697 while test $# != 0 ; do
2698 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2700 else
2701 echo Copying $1 to $2
2703 # Use the install script to create the directory and all required
2704 # parent directories.
2705 if test -d $2 ; then
2707 else
2708 echo >config.temp
2709 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2712 # Copy the directory, assuming we have tar.
2713 # FIXME: Should we use B in the second tar? Not all systems support it.
2714 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2716 # It is the responsibility of the user to correctly adjust all
2717 # symlinks. If somebody can figure out how to handle them correctly
2718 # here, feel free to add the code.
2720 echo $1 > $2/COPIED
2722 shift; shift
2723 done
2725 extra_arflags_for_target=
2726 extra_nmflags_for_target=
2727 extra_ranlibflags_for_target=
2728 target_makefile_frag=/dev/null
2729 case "${target}" in
2730 *-*-netware*)
2731 target_makefile_frag="config/mt-netware"
2733 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2734 target_makefile_frag="config/mt-gnu"
2736 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2737 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2738 # commands to handle both 32-bit and 64-bit objects. These flags are
2739 # harmless if we're using GNU nm or ar.
2740 extra_arflags_for_target=" -X32_64"
2741 extra_nmflags_for_target=" -B -X32_64"
2743 *-*-darwin*)
2744 # ranlib from Darwin requires the -c flag to look at common symbols.
2745 extra_ranlibflags_for_target=" -c"
2747 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2748 target_makefile_frag="config/mt-wince"
2750 esac
2752 alphaieee_frag=/dev/null
2753 case $target in
2754 alpha*-*-*)
2755 # This just makes sure to use the -mieee option to build target libs.
2756 # This should probably be set individually by each library.
2757 alphaieee_frag="config/mt-alphaieee"
2759 esac
2761 # If --enable-target-optspace always use -Os instead of -O2 to build
2762 # the target libraries, similarly if it is not specified, use -Os
2763 # on selected platforms.
2764 ospace_frag=/dev/null
2765 case "${enable_target_optspace}:${target}" in
2766 yes:*)
2767 ospace_frag="config/mt-ospace"
2769 :d30v-*)
2770 ospace_frag="config/mt-d30v"
2772 :m32r-* | :d10v-* | :fr30-*)
2773 ospace_frag="config/mt-ospace"
2775 no:* | :*)
2778 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2780 esac
2782 # Set with_gnu_as and with_gnu_ld as appropriate.
2784 # This is done by determining whether or not the appropriate directory
2785 # is available, and by checking whether or not specific configurations
2786 # have requested that this magic not happen.
2788 # The command line options always override the explicit settings in
2789 # configure.in, and the settings in configure.in override this magic.
2791 # If the default for a toolchain is to use GNU as and ld, and you don't
2792 # want to do that, then you should use the --without-gnu-as and
2793 # --without-gnu-ld options for the configure script.
2795 if test x${use_gnu_as} = x &&
2796 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2797 with_gnu_as=yes
2798 extra_host_args="$extra_host_args --with-gnu-as"
2801 if test x${use_gnu_ld} = x &&
2802 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2803 with_gnu_ld=yes
2804 extra_host_args="$extra_host_args --with-gnu-ld"
2807 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2808 # can detect this case.
2810 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2811 with_newlib=yes
2812 extra_host_args="$extra_host_args --with-newlib"
2815 # Default to using --with-stabs for certain targets.
2816 if test x${with_stabs} = x ; then
2817 case "${target}" in
2818 mips*-*-irix[56]*)
2820 mips*-*-* | alpha*-*-osf*)
2821 with_stabs=yes;
2822 extra_host_args="${extra_host_args} --with-stabs"
2824 esac
2827 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2828 # them automatically.
2829 case "${host}" in
2830 hppa*64*-*-hpux11*)
2831 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2833 esac
2835 # Some systems (e.g., one of the i386-aix systems the gas testers are
2836 # using) don't handle "\$" correctly, so don't use it here.
2837 tooldir='${exec_prefix}'/${target_alias}
2838 build_tooldir=${tooldir}
2840 # Generate default definitions for YACC, M4, LEX and other programs that run
2841 # on the build machine. These are used if the Makefile can't locate these
2842 # programs in objdir.
2843 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2844 for ac_prog in bison
2846 # Extract the first word of "$ac_prog", so it can be a program name with args.
2847 set dummy $ac_prog; ac_word=$2
2848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2849 echo "configure:2850: checking for $ac_word" >&5
2850 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2852 else
2853 if test -n "$CONFIGURED_BISON"; then
2854 ac_cv_prog_CONFIGURED_BISON="$CONFIGURED_BISON" # Let the user override the test.
2855 else
2856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2857 ac_dummy="$PATH"
2858 for ac_dir in $ac_dummy; do
2859 test -z "$ac_dir" && ac_dir=.
2860 if test -f $ac_dir/$ac_word; then
2861 ac_cv_prog_CONFIGURED_BISON="$ac_prog"
2862 break
2864 done
2865 IFS="$ac_save_ifs"
2868 CONFIGURED_BISON="$ac_cv_prog_CONFIGURED_BISON"
2869 if test -n "$CONFIGURED_BISON"; then
2870 echo "$ac_t""$CONFIGURED_BISON" 1>&6
2871 else
2872 echo "$ac_t""no" 1>&6
2875 test -n "$CONFIGURED_BISON" && break
2876 done
2877 test -n "$CONFIGURED_BISON" || CONFIGURED_BISON="$MISSING bison"
2879 for ac_prog in 'bison -y' byacc yacc
2881 # Extract the first word of "$ac_prog", so it can be a program name with args.
2882 set dummy $ac_prog; ac_word=$2
2883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2884 echo "configure:2885: checking for $ac_word" >&5
2885 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2887 else
2888 if test -n "$CONFIGURED_YACC"; then
2889 ac_cv_prog_CONFIGURED_YACC="$CONFIGURED_YACC" # Let the user override the test.
2890 else
2891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2892 ac_dummy="$PATH"
2893 for ac_dir in $ac_dummy; do
2894 test -z "$ac_dir" && ac_dir=.
2895 if test -f $ac_dir/$ac_word; then
2896 ac_cv_prog_CONFIGURED_YACC="$ac_prog"
2897 break
2899 done
2900 IFS="$ac_save_ifs"
2903 CONFIGURED_YACC="$ac_cv_prog_CONFIGURED_YACC"
2904 if test -n "$CONFIGURED_YACC"; then
2905 echo "$ac_t""$CONFIGURED_YACC" 1>&6
2906 else
2907 echo "$ac_t""no" 1>&6
2910 test -n "$CONFIGURED_YACC" && break
2911 done
2912 test -n "$CONFIGURED_YACC" || CONFIGURED_YACC="$MISSING bison -y"
2914 for ac_prog in gm4 gnum4 m4
2916 # Extract the first word of "$ac_prog", so it can be a program name with args.
2917 set dummy $ac_prog; ac_word=$2
2918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2919 echo "configure:2920: checking for $ac_word" >&5
2920 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2922 else
2923 if test -n "$CONFIGURED_M4"; then
2924 ac_cv_prog_CONFIGURED_M4="$CONFIGURED_M4" # Let the user override the test.
2925 else
2926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2927 ac_dummy="$PATH"
2928 for ac_dir in $ac_dummy; do
2929 test -z "$ac_dir" && ac_dir=.
2930 if test -f $ac_dir/$ac_word; then
2931 ac_cv_prog_CONFIGURED_M4="$ac_prog"
2932 break
2934 done
2935 IFS="$ac_save_ifs"
2938 CONFIGURED_M4="$ac_cv_prog_CONFIGURED_M4"
2939 if test -n "$CONFIGURED_M4"; then
2940 echo "$ac_t""$CONFIGURED_M4" 1>&6
2941 else
2942 echo "$ac_t""no" 1>&6
2945 test -n "$CONFIGURED_M4" && break
2946 done
2947 test -n "$CONFIGURED_M4" || CONFIGURED_M4="$MISSING m4"
2949 for ac_prog in flex
2951 # Extract the first word of "$ac_prog", so it can be a program name with args.
2952 set dummy $ac_prog; ac_word=$2
2953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2954 echo "configure:2955: checking for $ac_word" >&5
2955 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2957 else
2958 if test -n "$CONFIGURED_FLEX"; then
2959 ac_cv_prog_CONFIGURED_FLEX="$CONFIGURED_FLEX" # Let the user override the test.
2960 else
2961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2962 ac_dummy="$PATH"
2963 for ac_dir in $ac_dummy; do
2964 test -z "$ac_dir" && ac_dir=.
2965 if test -f $ac_dir/$ac_word; then
2966 ac_cv_prog_CONFIGURED_FLEX="$ac_prog"
2967 break
2969 done
2970 IFS="$ac_save_ifs"
2973 CONFIGURED_FLEX="$ac_cv_prog_CONFIGURED_FLEX"
2974 if test -n "$CONFIGURED_FLEX"; then
2975 echo "$ac_t""$CONFIGURED_FLEX" 1>&6
2976 else
2977 echo "$ac_t""no" 1>&6
2980 test -n "$CONFIGURED_FLEX" && break
2981 done
2982 test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX="$MISSING flex"
2984 for ac_prog in flex lex
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy $ac_prog; ac_word=$2
2988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2989 echo "configure:2990: checking for $ac_word" >&5
2990 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2992 else
2993 if test -n "$CONFIGURED_LEX"; then
2994 ac_cv_prog_CONFIGURED_LEX="$CONFIGURED_LEX" # Let the user override the test.
2995 else
2996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2997 ac_dummy="$PATH"
2998 for ac_dir in $ac_dummy; do
2999 test -z "$ac_dir" && ac_dir=.
3000 if test -f $ac_dir/$ac_word; then
3001 ac_cv_prog_CONFIGURED_LEX="$ac_prog"
3002 break
3004 done
3005 IFS="$ac_save_ifs"
3008 CONFIGURED_LEX="$ac_cv_prog_CONFIGURED_LEX"
3009 if test -n "$CONFIGURED_LEX"; then
3010 echo "$ac_t""$CONFIGURED_LEX" 1>&6
3011 else
3012 echo "$ac_t""no" 1>&6
3015 test -n "$CONFIGURED_LEX" && break
3016 done
3017 test -n "$CONFIGURED_LEX" || CONFIGURED_LEX="$MISSING flex"
3019 for ac_prog in makeinfo
3021 # Extract the first word of "$ac_prog", so it can be a program name with args.
3022 set dummy $ac_prog; ac_word=$2
3023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3024 echo "configure:3025: checking for $ac_word" >&5
3025 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3027 else
3028 if test -n "$CONFIGURED_MAKEINFO"; then
3029 ac_cv_prog_CONFIGURED_MAKEINFO="$CONFIGURED_MAKEINFO" # Let the user override the test.
3030 else
3031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3032 ac_dummy="$PATH"
3033 for ac_dir in $ac_dummy; do
3034 test -z "$ac_dir" && ac_dir=.
3035 if test -f $ac_dir/$ac_word; then
3036 ac_cv_prog_CONFIGURED_MAKEINFO="$ac_prog"
3037 break
3039 done
3040 IFS="$ac_save_ifs"
3043 CONFIGURED_MAKEINFO="$ac_cv_prog_CONFIGURED_MAKEINFO"
3044 if test -n "$CONFIGURED_MAKEINFO"; then
3045 echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6
3046 else
3047 echo "$ac_t""no" 1>&6
3050 test -n "$CONFIGURED_MAKEINFO" && break
3051 done
3052 test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO="$MISSING makeinfo"
3055 # Create a .gdbinit file which runs the one in srcdir
3056 # and tells GDB to look there for source files.
3058 if test -r ${srcdir}/.gdbinit ; then
3059 case ${srcdir} in
3060 .) ;;
3061 *) cat > ./.gdbinit <<EOF
3062 # ${NO_EDIT}
3063 dir ${srcdir}
3064 dir .
3065 source ${srcdir}/.gdbinit
3068 esac
3071 # Make sure that the compiler is able to generate an executable. If it
3072 # can't, we are probably in trouble. We don't care whether we can run the
3073 # executable--we might be using a cross compiler--we only care whether it
3074 # can be created. At this point the main configure script has set CC.
3075 we_are_ok=no
3076 echo "int main () { return 0; }" > conftest.c
3077 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3078 if test $? = 0 ; then
3079 if test -s conftest || test -s conftest.exe ; then
3080 we_are_ok=yes
3083 case $we_are_ok in
3085 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3086 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3087 rm -f conftest*
3088 exit 1
3090 esac
3091 rm -f conftest*
3093 # The Solaris /usr/ucb/cc compiler does not appear to work.
3094 case "${host}" in
3095 sparc-sun-solaris2*)
3096 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
3097 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3098 could_use=
3099 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
3100 if test -d /opt/cygnus/bin ; then
3101 if test "$could_use" = "" ; then
3102 could_use="/opt/cygnus/bin"
3103 else
3104 could_use="$could_use or /opt/cygnus/bin"
3107 if test "$could_use" = "" ; then
3108 echo "Warning: compilation may fail because you're using"
3109 echo "/usr/ucb/cc. You should change your PATH or CC "
3110 echo "variable and rerun configure."
3111 else
3112 echo "Warning: compilation may fail because you're using"
3113 echo "/usr/ucb/cc, when you should use the C compiler from"
3114 echo "$could_use. You should change your"
3115 echo "PATH or CC variable and rerun configure."
3119 esac
3121 case "${host}" in
3122 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3123 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3124 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3125 esac
3127 # Record target_configdirs and the configure arguments for target and
3128 # build configuration in Makefile.
3129 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3130 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3132 # Determine whether gdb needs tk/tcl or not.
3133 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3134 # and in that case we want gdb to be built without tk. Ugh!
3135 # In fact I believe gdb is the *only* package directly dependent on tk,
3136 # so we should be able to put the 'maybe's in unconditionally and
3137 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3138 # 100% sure that that's safe though.
3140 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3141 case "$enable_gdbtk" in
3143 GDB_TK="" ;;
3144 yes)
3145 GDB_TK="${gdb_tk}" ;;
3147 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3148 # distro. Eventually someone will fix this and move Insight, nee
3149 # gdbtk to a separate directory.
3150 if test -d ${srcdir}/gdb/gdbtk ; then
3151 GDB_TK="${gdb_tk}"
3152 else
3153 GDB_TK=""
3156 esac
3158 # Strip out unwanted targets.
3160 # While at that, we remove Makefiles if we were started for recursive
3161 # configuration, so that the top-level Makefile reconfigures them,
3162 # like we used to do when configure itself was recursive.
3164 # Loop over modules. $extrasub must be used with care, limiting as
3165 # much as possible the usage of range addresses. That's because autoconf
3166 # splits the sed script to overcome limits in the number of commands,
3167 # and relying on carefully-timed sed passes may turn out to be very hard
3168 # to maintain later. In this particular case, you just have to be careful
3169 # not to nest @if/@endif pairs, because configure will not warn you at all.
3171 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3172 if test "${enable_bootstrap+set}" = set; then
3173 enableval="$enable_bootstrap"
3175 else
3176 enable_bootstrap=default
3180 # Issue errors and warnings for invalid/strange bootstrap combinations.
3181 case "$configdirs" in
3182 *gcc*) have_compiler=yes ;;
3183 *) have_compiler=no ;;
3184 esac
3186 case "$have_compiler:$host:$target:$enable_bootstrap" in
3187 *:*:*:no) ;;
3189 # Default behavior. (We'll) enable bootstrap if we have a compiler
3190 # and we are in a native configuration.
3191 yes:$build:$build:default)
3192 # This will become 'yes'
3193 enable_bootstrap=no ;;
3195 *:*:*:default)
3196 enable_bootstrap=no ;;
3198 # We have a compiler and we are in a native configuration, bootstrap is ok
3199 yes:$build:$build:yes | yes:$build:$build:lean)
3202 # Other configurations, but we have a compiler. Assume the user knows
3203 # what he's doing.
3204 yes:*:*:yes | yes:*:*:lean)
3205 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3208 # No compiler: if they passed --enable-bootstrap explicitly, fail
3209 no:*:*:yes | no:*:*:lean)
3210 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3212 # Fail if wrong command line
3214 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3216 esac
3218 # Adjust the toplevel makefile according to whether bootstrap was selected.
3219 case "$enable_bootstrap" in
3220 yes)
3221 bootstrap_lean='#'
3222 bootstrap_suffix=bootstrap ;;
3223 lean)
3224 bootstrap_lean=''
3225 bootstrap_suffix=bootstrap ;;
3227 bootstrap_suffix=no-bootstrap ;;
3228 esac
3231 for module in ${build_configdirs} ; do
3232 if test -z "${no_recursion}" \
3233 && test -f ${build_subdir}/${module}/Makefile; then
3234 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3235 rm -f ${build_subdir}/${module}/Makefile
3237 extrasub="$extrasub
3238 /^@if build-$module\$/d
3239 /^@endif build-$module\$/d
3240 /^@if build-$module-$bootstrap_suffix\$/d
3241 /^@endif build-$module-$bootstrap_suffix\$/d"
3242 done
3243 for module in ${configdirs} ; do
3244 if test -z "${no_recursion}" \
3245 && test -f ${module}/Makefile; then
3246 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3247 rm -f ${module}/Makefile
3249 extrasub="$extrasub
3250 /^@if $module\$/d
3251 /^@endif $module\$/d
3252 /^@if $module-$bootstrap_suffix\$/d
3253 /^@endif $module-$bootstrap_suffix\$/d"
3254 done
3255 for module in ${target_configdirs} ; do
3256 if test -z "${no_recursion}" \
3257 && test -f ${target_subdir}/${module}/Makefile; then
3258 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3259 rm -f ${target_subdir}/${module}/Makefile
3261 extrasub="$extrasub
3262 /^@if target-$module\$/d
3263 /^@endif target-$module\$/d
3264 /^@if target-$module-$bootstrap_suffix\$/d
3265 /^@endif target-$module-$bootstrap_suffix\$/d"
3266 done
3268 extrasub="$extrasub
3269 /^@if /,/^@endif /d"
3271 # Create the serialization dependencies. This uses a temporary file.
3273 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3274 if test "${enable_serial_configure+set}" = set; then
3275 enableval="$enable_serial_configure"
3280 case ${enable_serial_configure} in
3281 yes)
3282 enable_serial_build_configure=yes
3283 enable_serial_host_configure=yes
3284 enable_serial_target_configure=yes
3286 esac
3288 # These force 'configure's to be done one at a time, to avoid problems
3289 # with contention over a shared config.cache.
3290 rm -f serdep.tmp
3291 echo '# serdep.tmp' > serdep.tmp
3292 olditem=
3293 test "x${enable_serial_build_configure}" = xyes &&
3294 for item in ${build_configdirs} ; do
3295 case ${olditem} in
3296 "") ;;
3297 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3298 esac
3299 olditem=${item}
3300 done
3301 olditem=
3302 test "x${enable_serial_host_configure}" = xyes &&
3303 for item in ${configdirs} ; do
3304 case ${olditem} in
3305 "") ;;
3306 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3307 esac
3308 olditem=${item}
3309 done
3310 olditem=
3311 test "x${enable_serial_target_configure}" = xyes &&
3312 for item in ${target_configdirs} ; do
3313 case ${olditem} in
3314 "") ;;
3315 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3316 esac
3317 olditem=${item}
3318 done
3319 serialization_dependencies=serdep.tmp
3322 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3323 # target and nonopt. These are the ones we might not want to pass
3324 # down to subconfigures. Also strip program-prefix, program-suffix,
3325 # and program-transform-name, so that we can pass down a consistent
3326 # program-transform-name. If autoconf has put single quotes around
3327 # any of these arguments (because they contain shell metacharacters)
3328 # then this will fail; in practice this only happens for
3329 # --program-transform-name, so be sure to override --program-transform-name
3330 # at the end of the argument list.
3331 # These will be expanded by make, so quote '$'.
3332 cat <<\EOF_SED > conftestsed
3333 s/ --no[^ ]*/ /g
3334 s/ --c[a-z-]*[= ][^ ]*//g
3335 s/ --sr[a-z-]*[= ][^ ]*//g
3336 s/ --ho[a-z-]*[= ][^ ]*//g
3337 s/ --bu[a-z-]*[= ][^ ]*//g
3338 s/ --t[a-z-]*[= ][^ ]*//g
3339 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3340 s/ -cache-file[= ][^ ]*//g
3341 s/ -srcdir[= ][^ ]*//g
3342 s/ -host[= ][^ ]*//g
3343 s/ -build[= ][^ ]*//g
3344 s/ -target[= ][^ ]*//g
3345 s/ -program-prefix[= ][^ ]*//g
3346 s/ -program-suffix[= ][^ ]*//g
3347 s/ -program-transform-name[= ][^ ]*//g
3348 s/ [^' -][^ ]* / /
3349 s/^ *//;s/ *$//
3350 s,\$,$$,g
3351 EOF_SED
3352 sed -f conftestsed <<EOF_SED > conftestsed.out
3353 ${ac_configure_args}
3354 EOF_SED
3355 baseargs=`cat conftestsed.out`
3356 rm -f conftestsed conftestsed.out
3358 # Add in --program-transform-name, after --program-prefix and
3359 # --program-suffix have been applied to it. Autoconf has already
3360 # doubled dollar signs and backslashes in program_transform_name; we want
3361 # the backslashes un-doubled, and then the entire thing wrapped in single
3362 # quotes, because this will be expanded first by make and then by the shell.
3363 # Also, because we want to override the logic in subdir configure scripts to
3364 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3365 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3366 ${program_transform_name}
3367 EOF_SED
3368 gcc_transform_name=`cat conftestsed.out`
3369 rm -f conftestsed.out
3370 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3372 # For the build-side libraries, we just need to pretend we're native,
3373 # and not use the same cache file. Multilibs are neither needed nor
3374 # desired.
3375 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3377 # For host modules, accept cache file option, or specification as blank.
3378 case "${cache_file}" in
3379 "") # empty
3380 cache_file_option="" ;;
3381 /* | [A-Za-z]:[\\/]* ) # absolute path
3382 cache_file_option="--cache-file=${cache_file}" ;;
3383 *) # relative path
3384 cache_file_option="--cache-file=../${cache_file}" ;;
3385 esac
3387 # Host dirs don't like to share a cache file either, horribly enough.
3388 # This seems to be due to autoconf 2.5x stupidity.
3389 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3391 target_configargs=${baseargs}
3393 # Passing a --with-cross-host argument lets the target libraries know
3394 # whether they are being built with a cross-compiler or being built
3395 # native. However, it would be better to use other mechanisms to make the
3396 # sorts of decisions they want to make on this basis. Please consider
3397 # this option to be deprecated. FIXME.
3398 if test x${is_cross_compiler} = xyes ; then
3399 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3402 # Default to --enable-multilib.
3403 if test x${enable_multilib} = x ; then
3404 target_configargs="--enable-multilib ${target_configargs}"
3407 # Pass --with-newlib if appropriate. Note that target_configdirs has
3408 # changed from the earlier setting of with_newlib.
3409 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3410 target_configargs="--with-newlib ${target_configargs}"
3413 # Different target subdirs use different values of certain variables
3414 # (notably CXX). Worse, multilibs use *lots* of different values.
3415 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3416 # it doesn't automatically accept command-line overrides of them.
3417 # This means it's not safe for target subdirs to share a cache file,
3418 # which is disgusting, but there you have it. Hopefully this can be
3419 # fixed in future. It's still worthwhile to use a cache file for each
3420 # directory. I think.
3422 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3423 # We need to pass --target, as newer autoconf's requires consistency
3424 # for target_alias and gcc doesn't manage it consistently.
3425 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3427 FLAGS_FOR_TARGET=
3428 case " $target_configdirs " in
3429 *" newlib "*)
3430 case " $target_configargs " in
3431 *" --with-newlib "*)
3432 case "$target" in
3433 *-cygwin*)
3434 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' ;;
3435 esac
3437 # If we're not building GCC, don't discard standard headers.
3438 if test -d ${srcdir}/gcc; then
3439 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3441 if test "${build}" != "${host}"; then
3442 # On Canadian crosses, CC_FOR_TARGET will have already been set
3443 # by `configure', so we won't have an opportunity to add -Bgcc/
3444 # to it. This is right: we don't want to search that directory
3445 # for binaries, but we want the header files in there, so add
3446 # them explicitly.
3447 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3449 # Someone might think of using the pre-installed headers on
3450 # Canadian crosses, in case the installed compiler is not fully
3451 # compatible with the compiler being built. In this case, it
3452 # would be better to flag an error than risking having
3453 # incompatible object files being constructed. We can't
3454 # guarantee that an error will be flagged, but let's hope the
3455 # compiler will do it, when presented with incompatible header
3456 # files.
3460 case "${target}-${is_cross_compiler}" in
3461 i[3456789]86-*-linux*-no)
3462 # Here host == target, so we don't need to build gcc,
3463 # so we don't want to discard standard headers.
3464 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3467 # If we're building newlib, use its generic headers last, but search
3468 # for any libc-related directories first (so make it the last -B
3469 # switch).
3470 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3472 esac
3474 esac
3476 esac
3478 # Allow the user to override the flags for
3479 # our build compiler if desired.
3480 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3482 # On Canadian crosses, we'll be searching the right directories for
3483 # the previously-installed cross compiler, so don't bother to add
3484 # flags for directories within the install tree of the compiler
3485 # being built; programs in there won't even run.
3486 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3487 # Search for pre-installed headers if nothing else fits.
3488 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3491 if test "x${use_gnu_ld}" = x &&
3492 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3493 # Arrange for us to find uninstalled linker scripts.
3494 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3497 # Makefile fragments.
3498 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3500 eval fragval=\$$frag
3501 if test $fragval != /dev/null; then
3502 eval $frag=${srcdir}/$fragval
3504 done
3510 # Miscellanea: directories, flags, etc.
3518 # Build module lists & subconfigure args.
3522 # Host module lists & subconfigure args.
3526 # Target module lists & subconfigure args.
3530 # Build tools.
3534 # Host tools.
3535 ncn_tool_prefix=
3536 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3537 ncn_target_tool_prefix=
3538 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3540 for ncn_progname in ar; do
3541 if test -n "$ncn_tool_prefix"; then
3542 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3543 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3545 echo "configure:3546: checking for $ac_word" >&5
3546 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3547 echo $ac_n "(cached) $ac_c" 1>&6
3548 else
3549 if test -n "$AR"; then
3550 ac_cv_prog_AR="$AR" # Let the user override the test.
3551 else
3552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3553 ac_dummy="$PATH"
3554 for ac_dir in $ac_dummy; do
3555 test -z "$ac_dir" && ac_dir=.
3556 if test -f $ac_dir/$ac_word; then
3557 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3558 break
3560 done
3561 IFS="$ac_save_ifs"
3564 AR="$ac_cv_prog_AR"
3565 if test -n "$AR"; then
3566 echo "$ac_t""$AR" 1>&6
3567 else
3568 echo "$ac_t""no" 1>&6
3572 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3574 set dummy ${ncn_progname}; ac_word=$2
3575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3576 echo "configure:3577: checking for $ac_word" >&5
3577 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3579 else
3580 if test -n "$AR"; then
3581 ac_cv_prog_AR="$AR" # Let the user override the test.
3582 else
3583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3584 ac_dummy="$PATH"
3585 for ac_dir in $ac_dummy; do
3586 test -z "$ac_dir" && ac_dir=.
3587 if test -f $ac_dir/$ac_word; then
3588 ac_cv_prog_AR="${ncn_progname}"
3589 break
3591 done
3592 IFS="$ac_save_ifs"
3595 AR="$ac_cv_prog_AR"
3596 if test -n "$AR"; then
3597 echo "$ac_t""$AR" 1>&6
3598 else
3599 echo "$ac_t""no" 1>&6
3603 test -n "$ac_cv_prog_AR" && break
3604 done
3606 if test -z "$ac_cv_prog_AR" ; then
3607 set dummy ar
3608 if test $build = $host ; then
3609 AR="$2"
3610 else
3611 AR="${ncn_tool_prefix}$2"
3615 for ncn_progname in as; do
3616 if test -n "$ncn_tool_prefix"; then
3617 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3618 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3620 echo "configure:3621: checking for $ac_word" >&5
3621 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3623 else
3624 if test -n "$AS"; then
3625 ac_cv_prog_AS="$AS" # Let the user override the test.
3626 else
3627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3628 ac_dummy="$PATH"
3629 for ac_dir in $ac_dummy; do
3630 test -z "$ac_dir" && ac_dir=.
3631 if test -f $ac_dir/$ac_word; then
3632 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3633 break
3635 done
3636 IFS="$ac_save_ifs"
3639 AS="$ac_cv_prog_AS"
3640 if test -n "$AS"; then
3641 echo "$ac_t""$AS" 1>&6
3642 else
3643 echo "$ac_t""no" 1>&6
3647 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3649 set dummy ${ncn_progname}; ac_word=$2
3650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3651 echo "configure:3652: checking for $ac_word" >&5
3652 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3654 else
3655 if test -n "$AS"; then
3656 ac_cv_prog_AS="$AS" # Let the user override the test.
3657 else
3658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3659 ac_dummy="$PATH"
3660 for ac_dir in $ac_dummy; do
3661 test -z "$ac_dir" && ac_dir=.
3662 if test -f $ac_dir/$ac_word; then
3663 ac_cv_prog_AS="${ncn_progname}"
3664 break
3666 done
3667 IFS="$ac_save_ifs"
3670 AS="$ac_cv_prog_AS"
3671 if test -n "$AS"; then
3672 echo "$ac_t""$AS" 1>&6
3673 else
3674 echo "$ac_t""no" 1>&6
3678 test -n "$ac_cv_prog_AS" && break
3679 done
3681 if test -z "$ac_cv_prog_AS" ; then
3682 set dummy as
3683 if test $build = $host ; then
3684 AS="$2"
3685 else
3686 AS="${ncn_tool_prefix}$2"
3690 for ncn_progname in dlltool; do
3691 if test -n "$ncn_tool_prefix"; then
3692 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3693 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3695 echo "configure:3696: checking for $ac_word" >&5
3696 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3697 echo $ac_n "(cached) $ac_c" 1>&6
3698 else
3699 if test -n "$DLLTOOL"; then
3700 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3701 else
3702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3703 ac_dummy="$PATH"
3704 for ac_dir in $ac_dummy; do
3705 test -z "$ac_dir" && ac_dir=.
3706 if test -f $ac_dir/$ac_word; then
3707 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3708 break
3710 done
3711 IFS="$ac_save_ifs"
3714 DLLTOOL="$ac_cv_prog_DLLTOOL"
3715 if test -n "$DLLTOOL"; then
3716 echo "$ac_t""$DLLTOOL" 1>&6
3717 else
3718 echo "$ac_t""no" 1>&6
3722 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3724 set dummy ${ncn_progname}; ac_word=$2
3725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3726 echo "configure:3727: checking for $ac_word" >&5
3727 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3729 else
3730 if test -n "$DLLTOOL"; then
3731 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3732 else
3733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3734 ac_dummy="$PATH"
3735 for ac_dir in $ac_dummy; do
3736 test -z "$ac_dir" && ac_dir=.
3737 if test -f $ac_dir/$ac_word; then
3738 ac_cv_prog_DLLTOOL="${ncn_progname}"
3739 break
3741 done
3742 IFS="$ac_save_ifs"
3745 DLLTOOL="$ac_cv_prog_DLLTOOL"
3746 if test -n "$DLLTOOL"; then
3747 echo "$ac_t""$DLLTOOL" 1>&6
3748 else
3749 echo "$ac_t""no" 1>&6
3753 test -n "$ac_cv_prog_DLLTOOL" && break
3754 done
3756 if test -z "$ac_cv_prog_DLLTOOL" ; then
3757 set dummy dlltool
3758 if test $build = $host ; then
3759 DLLTOOL="$2"
3760 else
3761 DLLTOOL="${ncn_tool_prefix}$2"
3765 for ncn_progname in ld; do
3766 if test -n "$ncn_tool_prefix"; then
3767 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3768 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3770 echo "configure:3771: checking for $ac_word" >&5
3771 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3773 else
3774 if test -n "$LD"; then
3775 ac_cv_prog_LD="$LD" # Let the user override the test.
3776 else
3777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3778 ac_dummy="$PATH"
3779 for ac_dir in $ac_dummy; do
3780 test -z "$ac_dir" && ac_dir=.
3781 if test -f $ac_dir/$ac_word; then
3782 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3783 break
3785 done
3786 IFS="$ac_save_ifs"
3789 LD="$ac_cv_prog_LD"
3790 if test -n "$LD"; then
3791 echo "$ac_t""$LD" 1>&6
3792 else
3793 echo "$ac_t""no" 1>&6
3797 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
3798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3799 set dummy ${ncn_progname}; ac_word=$2
3800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3801 echo "configure:3802: checking for $ac_word" >&5
3802 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3804 else
3805 if test -n "$LD"; then
3806 ac_cv_prog_LD="$LD" # Let the user override the test.
3807 else
3808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3809 ac_dummy="$PATH"
3810 for ac_dir in $ac_dummy; do
3811 test -z "$ac_dir" && ac_dir=.
3812 if test -f $ac_dir/$ac_word; then
3813 ac_cv_prog_LD="${ncn_progname}"
3814 break
3816 done
3817 IFS="$ac_save_ifs"
3820 LD="$ac_cv_prog_LD"
3821 if test -n "$LD"; then
3822 echo "$ac_t""$LD" 1>&6
3823 else
3824 echo "$ac_t""no" 1>&6
3828 test -n "$ac_cv_prog_LD" && break
3829 done
3831 if test -z "$ac_cv_prog_LD" ; then
3832 set dummy ld
3833 if test $build = $host ; then
3834 LD="$2"
3835 else
3836 LD="${ncn_tool_prefix}$2"
3840 for ncn_progname in nm; do
3841 if test -n "$ncn_tool_prefix"; then
3842 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3843 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3845 echo "configure:3846: checking for $ac_word" >&5
3846 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3848 else
3849 if test -n "$NM"; then
3850 ac_cv_prog_NM="$NM" # Let the user override the test.
3851 else
3852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3853 ac_dummy="$PATH"
3854 for ac_dir in $ac_dummy; do
3855 test -z "$ac_dir" && ac_dir=.
3856 if test -f $ac_dir/$ac_word; then
3857 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
3858 break
3860 done
3861 IFS="$ac_save_ifs"
3864 NM="$ac_cv_prog_NM"
3865 if test -n "$NM"; then
3866 echo "$ac_t""$NM" 1>&6
3867 else
3868 echo "$ac_t""no" 1>&6
3872 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
3873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3874 set dummy ${ncn_progname}; ac_word=$2
3875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3876 echo "configure:3877: checking for $ac_word" >&5
3877 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3879 else
3880 if test -n "$NM"; then
3881 ac_cv_prog_NM="$NM" # Let the user override the test.
3882 else
3883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3884 ac_dummy="$PATH"
3885 for ac_dir in $ac_dummy; do
3886 test -z "$ac_dir" && ac_dir=.
3887 if test -f $ac_dir/$ac_word; then
3888 ac_cv_prog_NM="${ncn_progname}"
3889 break
3891 done
3892 IFS="$ac_save_ifs"
3895 NM="$ac_cv_prog_NM"
3896 if test -n "$NM"; then
3897 echo "$ac_t""$NM" 1>&6
3898 else
3899 echo "$ac_t""no" 1>&6
3903 test -n "$ac_cv_prog_NM" && break
3904 done
3906 if test -z "$ac_cv_prog_NM" ; then
3907 set dummy nm
3908 if test $build = $host ; then
3909 NM="$2"
3910 else
3911 NM="${ncn_tool_prefix}$2"
3915 for ncn_progname in ranlib; do
3916 if test -n "$ncn_tool_prefix"; then
3917 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3918 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3920 echo "configure:3921: checking for $ac_word" >&5
3921 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3922 echo $ac_n "(cached) $ac_c" 1>&6
3923 else
3924 if test -n "$RANLIB"; then
3925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3926 else
3927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3928 ac_dummy="$PATH"
3929 for ac_dir in $ac_dummy; do
3930 test -z "$ac_dir" && ac_dir=.
3931 if test -f $ac_dir/$ac_word; then
3932 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
3933 break
3935 done
3936 IFS="$ac_save_ifs"
3939 RANLIB="$ac_cv_prog_RANLIB"
3940 if test -n "$RANLIB"; then
3941 echo "$ac_t""$RANLIB" 1>&6
3942 else
3943 echo "$ac_t""no" 1>&6
3947 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
3948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3949 set dummy ${ncn_progname}; ac_word=$2
3950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3951 echo "configure:3952: checking for $ac_word" >&5
3952 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3954 else
3955 if test -n "$RANLIB"; then
3956 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3957 else
3958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3959 ac_dummy="$PATH"
3960 for ac_dir in $ac_dummy; do
3961 test -z "$ac_dir" && ac_dir=.
3962 if test -f $ac_dir/$ac_word; then
3963 ac_cv_prog_RANLIB="${ncn_progname}"
3964 break
3966 done
3967 IFS="$ac_save_ifs"
3970 RANLIB="$ac_cv_prog_RANLIB"
3971 if test -n "$RANLIB"; then
3972 echo "$ac_t""$RANLIB" 1>&6
3973 else
3974 echo "$ac_t""no" 1>&6
3978 test -n "$ac_cv_prog_RANLIB" && break
3979 done
3981 if test -z "$ac_cv_prog_RANLIB" ; then
3982 RANLIB=":"
3985 for ncn_progname in windres; do
3986 if test -n "$ncn_tool_prefix"; then
3987 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3988 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3990 echo "configure:3991: checking for $ac_word" >&5
3991 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3993 else
3994 if test -n "$WINDRES"; then
3995 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3996 else
3997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3998 ac_dummy="$PATH"
3999 for ac_dir in $ac_dummy; do
4000 test -z "$ac_dir" && ac_dir=.
4001 if test -f $ac_dir/$ac_word; then
4002 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4003 break
4005 done
4006 IFS="$ac_save_ifs"
4009 WINDRES="$ac_cv_prog_WINDRES"
4010 if test -n "$WINDRES"; then
4011 echo "$ac_t""$WINDRES" 1>&6
4012 else
4013 echo "$ac_t""no" 1>&6
4017 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4019 set dummy ${ncn_progname}; ac_word=$2
4020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4021 echo "configure:4022: checking for $ac_word" >&5
4022 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4024 else
4025 if test -n "$WINDRES"; then
4026 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4027 else
4028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4029 ac_dummy="$PATH"
4030 for ac_dir in $ac_dummy; do
4031 test -z "$ac_dir" && ac_dir=.
4032 if test -f $ac_dir/$ac_word; then
4033 ac_cv_prog_WINDRES="${ncn_progname}"
4034 break
4036 done
4037 IFS="$ac_save_ifs"
4040 WINDRES="$ac_cv_prog_WINDRES"
4041 if test -n "$WINDRES"; then
4042 echo "$ac_t""$WINDRES" 1>&6
4043 else
4044 echo "$ac_t""no" 1>&6
4048 test -n "$ac_cv_prog_WINDRES" && break
4049 done
4051 if test -z "$ac_cv_prog_WINDRES" ; then
4052 set dummy windres
4053 if test $build = $host ; then
4054 WINDRES="$2"
4055 else
4056 WINDRES="${ncn_tool_prefix}$2"
4060 for ncn_progname in objcopy; do
4061 if test -n "$ncn_tool_prefix"; then
4062 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4063 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4065 echo "configure:4066: checking for $ac_word" >&5
4066 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4068 else
4069 if test -n "$OBJCOPY"; then
4070 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4071 else
4072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4073 ac_dummy="$PATH"
4074 for ac_dir in $ac_dummy; do
4075 test -z "$ac_dir" && ac_dir=.
4076 if test -f $ac_dir/$ac_word; then
4077 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4078 break
4080 done
4081 IFS="$ac_save_ifs"
4084 OBJCOPY="$ac_cv_prog_OBJCOPY"
4085 if test -n "$OBJCOPY"; then
4086 echo "$ac_t""$OBJCOPY" 1>&6
4087 else
4088 echo "$ac_t""no" 1>&6
4092 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4094 set dummy ${ncn_progname}; ac_word=$2
4095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4096 echo "configure:4097: checking for $ac_word" >&5
4097 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4099 else
4100 if test -n "$OBJCOPY"; then
4101 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4102 else
4103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4104 ac_dummy="$PATH"
4105 for ac_dir in $ac_dummy; do
4106 test -z "$ac_dir" && ac_dir=.
4107 if test -f $ac_dir/$ac_word; then
4108 ac_cv_prog_OBJCOPY="${ncn_progname}"
4109 break
4111 done
4112 IFS="$ac_save_ifs"
4115 OBJCOPY="$ac_cv_prog_OBJCOPY"
4116 if test -n "$OBJCOPY"; then
4117 echo "$ac_t""$OBJCOPY" 1>&6
4118 else
4119 echo "$ac_t""no" 1>&6
4123 test -n "$ac_cv_prog_OBJCOPY" && break
4124 done
4126 if test -z "$ac_cv_prog_OBJCOPY" ; then
4127 set dummy objcopy
4128 if test $build = $host ; then
4129 OBJCOPY="$2"
4130 else
4131 OBJCOPY="${ncn_tool_prefix}$2"
4135 for ncn_progname in objdump; do
4136 if test -n "$ncn_tool_prefix"; then
4137 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4138 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4140 echo "configure:4141: checking for $ac_word" >&5
4141 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4142 echo $ac_n "(cached) $ac_c" 1>&6
4143 else
4144 if test -n "$OBJDUMP"; then
4145 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4146 else
4147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4148 ac_dummy="$PATH"
4149 for ac_dir in $ac_dummy; do
4150 test -z "$ac_dir" && ac_dir=.
4151 if test -f $ac_dir/$ac_word; then
4152 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4153 break
4155 done
4156 IFS="$ac_save_ifs"
4159 OBJDUMP="$ac_cv_prog_OBJDUMP"
4160 if test -n "$OBJDUMP"; then
4161 echo "$ac_t""$OBJDUMP" 1>&6
4162 else
4163 echo "$ac_t""no" 1>&6
4167 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4169 set dummy ${ncn_progname}; ac_word=$2
4170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4171 echo "configure:4172: checking for $ac_word" >&5
4172 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4174 else
4175 if test -n "$OBJDUMP"; then
4176 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4177 else
4178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4179 ac_dummy="$PATH"
4180 for ac_dir in $ac_dummy; do
4181 test -z "$ac_dir" && ac_dir=.
4182 if test -f $ac_dir/$ac_word; then
4183 ac_cv_prog_OBJDUMP="${ncn_progname}"
4184 break
4186 done
4187 IFS="$ac_save_ifs"
4190 OBJDUMP="$ac_cv_prog_OBJDUMP"
4191 if test -n "$OBJDUMP"; then
4192 echo "$ac_t""$OBJDUMP" 1>&6
4193 else
4194 echo "$ac_t""no" 1>&6
4198 test -n "$ac_cv_prog_OBJDUMP" && break
4199 done
4201 if test -z "$ac_cv_prog_OBJDUMP" ; then
4202 set dummy objdump
4203 if test $build = $host ; then
4204 OBJDUMP="$2"
4205 else
4206 OBJDUMP="${ncn_tool_prefix}$2"
4216 # Target tools. Do the tests using the names they may have passed in
4217 # the environment, then move it to CONFIGURED_*_FOR_TARGET.
4218 for ncn_progname in ar; do
4219 if test -n "$ncn_target_tool_prefix"; then
4220 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4221 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4223 echo "configure:4224: checking for $ac_word" >&5
4224 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4226 else
4227 if test -n "$AR_FOR_TARGET"; then
4228 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4229 else
4230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4231 ac_dummy="$PATH"
4232 for ac_dir in $ac_dummy; do
4233 test -z "$ac_dir" && ac_dir=.
4234 if test -f $ac_dir/$ac_word; then
4235 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4236 break
4238 done
4239 IFS="$ac_save_ifs"
4242 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4243 if test -n "$AR_FOR_TARGET"; then
4244 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4245 else
4246 echo "$ac_t""no" 1>&6
4250 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
4251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4252 set dummy ${ncn_progname}; ac_word=$2
4253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4254 echo "configure:4255: checking for $ac_word" >&5
4255 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4256 echo $ac_n "(cached) $ac_c" 1>&6
4257 else
4258 if test -n "$AR_FOR_TARGET"; then
4259 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4260 else
4261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4262 ac_dummy="$PATH"
4263 for ac_dir in $ac_dummy; do
4264 test -z "$ac_dir" && ac_dir=.
4265 if test -f $ac_dir/$ac_word; then
4266 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
4267 break
4269 done
4270 IFS="$ac_save_ifs"
4273 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4274 if test -n "$AR_FOR_TARGET"; then
4275 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4276 else
4277 echo "$ac_t""no" 1>&6
4281 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
4282 done
4284 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
4285 set dummy ar
4286 if test $build = $target ; then
4287 AR_FOR_TARGET="$2"
4288 else
4289 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
4293 for ncn_progname in as; do
4294 if test -n "$ncn_target_tool_prefix"; then
4295 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4296 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4298 echo "configure:4299: checking for $ac_word" >&5
4299 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4301 else
4302 if test -n "$AS_FOR_TARGET"; then
4303 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4304 else
4305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4306 ac_dummy="$PATH"
4307 for ac_dir in $ac_dummy; do
4308 test -z "$ac_dir" && ac_dir=.
4309 if test -f $ac_dir/$ac_word; then
4310 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4311 break
4313 done
4314 IFS="$ac_save_ifs"
4317 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4318 if test -n "$AS_FOR_TARGET"; then
4319 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4320 else
4321 echo "$ac_t""no" 1>&6
4325 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
4326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4327 set dummy ${ncn_progname}; 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_AS_FOR_TARGET'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4332 else
4333 if test -n "$AS_FOR_TARGET"; then
4334 ac_cv_prog_AS_FOR_TARGET="$AS_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_AS_FOR_TARGET="${ncn_progname}"
4342 break
4344 done
4345 IFS="$ac_save_ifs"
4348 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4349 if test -n "$AS_FOR_TARGET"; then
4350 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4351 else
4352 echo "$ac_t""no" 1>&6
4356 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
4357 done
4359 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
4360 set dummy as
4361 if test $build = $target ; then
4362 AS_FOR_TARGET="$2"
4363 else
4364 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4368 for ncn_progname in cc gcc; do
4369 if test -n "$ncn_target_tool_prefix"; then
4370 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4371 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4373 echo "configure:4374: checking for $ac_word" >&5
4374 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4376 else
4377 if test -n "$CC_FOR_TARGET"; then
4378 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4379 else
4380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4381 ac_dummy="$PATH"
4382 for ac_dir in $ac_dummy; do
4383 test -z "$ac_dir" && ac_dir=.
4384 if test -f $ac_dir/$ac_word; then
4385 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4386 break
4388 done
4389 IFS="$ac_save_ifs"
4392 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4393 if test -n "$CC_FOR_TARGET"; then
4394 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4395 else
4396 echo "$ac_t""no" 1>&6
4400 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4402 set dummy ${ncn_progname}; ac_word=$2
4403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4404 echo "configure:4405: checking for $ac_word" >&5
4405 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4407 else
4408 if test -n "$CC_FOR_TARGET"; then
4409 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4410 else
4411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4412 ac_dummy="$PATH"
4413 for ac_dir in $ac_dummy; do
4414 test -z "$ac_dir" && ac_dir=.
4415 if test -f $ac_dir/$ac_word; then
4416 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4417 break
4419 done
4420 IFS="$ac_save_ifs"
4423 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4424 if test -n "$CC_FOR_TARGET"; then
4425 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4426 else
4427 echo "$ac_t""no" 1>&6
4431 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4432 done
4434 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4435 set dummy cc gcc
4436 if test $build = $target ; then
4437 CC_FOR_TARGET="$2"
4438 else
4439 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4443 for ncn_progname in c++ g++ cxx gxx; do
4444 if test -n "$ncn_target_tool_prefix"; then
4445 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4446 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4448 echo "configure:4449: checking for $ac_word" >&5
4449 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4451 else
4452 if test -n "$CXX_FOR_TARGET"; then
4453 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4454 else
4455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4456 ac_dummy="$PATH"
4457 for ac_dir in $ac_dummy; do
4458 test -z "$ac_dir" && ac_dir=.
4459 if test -f $ac_dir/$ac_word; then
4460 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4461 break
4463 done
4464 IFS="$ac_save_ifs"
4467 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4468 if test -n "$CXX_FOR_TARGET"; then
4469 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4470 else
4471 echo "$ac_t""no" 1>&6
4475 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4477 set dummy ${ncn_progname}; ac_word=$2
4478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4479 echo "configure:4480: checking for $ac_word" >&5
4480 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4482 else
4483 if test -n "$CXX_FOR_TARGET"; then
4484 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4485 else
4486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4487 ac_dummy="$PATH"
4488 for ac_dir in $ac_dummy; do
4489 test -z "$ac_dir" && ac_dir=.
4490 if test -f $ac_dir/$ac_word; then
4491 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4492 break
4494 done
4495 IFS="$ac_save_ifs"
4498 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4499 if test -n "$CXX_FOR_TARGET"; then
4500 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4501 else
4502 echo "$ac_t""no" 1>&6
4506 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4507 done
4509 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4510 set dummy c++ g++ cxx gxx
4511 if test $build = $target ; then
4512 CXX_FOR_TARGET="$2"
4513 else
4514 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4518 for ncn_progname in dlltool; do
4519 if test -n "$ncn_target_tool_prefix"; then
4520 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4521 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4523 echo "configure:4524: checking for $ac_word" >&5
4524 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4525 echo $ac_n "(cached) $ac_c" 1>&6
4526 else
4527 if test -n "$DLLTOOL_FOR_TARGET"; then
4528 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4529 else
4530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4531 ac_dummy="$PATH"
4532 for ac_dir in $ac_dummy; do
4533 test -z "$ac_dir" && ac_dir=.
4534 if test -f $ac_dir/$ac_word; then
4535 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4536 break
4538 done
4539 IFS="$ac_save_ifs"
4542 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4543 if test -n "$DLLTOOL_FOR_TARGET"; then
4544 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4545 else
4546 echo "$ac_t""no" 1>&6
4550 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
4551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4552 set dummy ${ncn_progname}; ac_word=$2
4553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4554 echo "configure:4555: checking for $ac_word" >&5
4555 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4557 else
4558 if test -n "$DLLTOOL_FOR_TARGET"; then
4559 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4560 else
4561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4562 ac_dummy="$PATH"
4563 for ac_dir in $ac_dummy; do
4564 test -z "$ac_dir" && ac_dir=.
4565 if test -f $ac_dir/$ac_word; then
4566 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
4567 break
4569 done
4570 IFS="$ac_save_ifs"
4573 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4574 if test -n "$DLLTOOL_FOR_TARGET"; then
4575 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4576 else
4577 echo "$ac_t""no" 1>&6
4581 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
4582 done
4584 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
4585 set dummy dlltool
4586 if test $build = $target ; then
4587 DLLTOOL_FOR_TARGET="$2"
4588 else
4589 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
4593 for ncn_progname in gcc; do
4594 if test -n "$ncn_target_tool_prefix"; then
4595 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4596 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4598 echo "configure:4599: checking for $ac_word" >&5
4599 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4600 echo $ac_n "(cached) $ac_c" 1>&6
4601 else
4602 if test -n "$GCC_FOR_TARGET"; then
4603 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4604 else
4605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4606 ac_dummy="$PATH"
4607 for ac_dir in $ac_dummy; do
4608 test -z "$ac_dir" && ac_dir=.
4609 if test -f $ac_dir/$ac_word; then
4610 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4611 break
4613 done
4614 IFS="$ac_save_ifs"
4617 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4618 if test -n "$GCC_FOR_TARGET"; then
4619 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4620 else
4621 echo "$ac_t""no" 1>&6
4625 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4627 set dummy ${ncn_progname}; ac_word=$2
4628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4629 echo "configure:4630: checking for $ac_word" >&5
4630 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4632 else
4633 if test -n "$GCC_FOR_TARGET"; then
4634 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4635 else
4636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4637 ac_dummy="$PATH"
4638 for ac_dir in $ac_dummy; do
4639 test -z "$ac_dir" && ac_dir=.
4640 if test -f $ac_dir/$ac_word; then
4641 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4642 break
4644 done
4645 IFS="$ac_save_ifs"
4648 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4649 if test -n "$GCC_FOR_TARGET"; then
4650 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4651 else
4652 echo "$ac_t""no" 1>&6
4656 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4657 done
4659 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4660 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4663 for ncn_progname in gcj; do
4664 if test -n "$ncn_target_tool_prefix"; then
4665 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4666 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4668 echo "configure:4669: checking for $ac_word" >&5
4669 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4671 else
4672 if test -n "$GCJ_FOR_TARGET"; then
4673 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4674 else
4675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4676 ac_dummy="$PATH"
4677 for ac_dir in $ac_dummy; do
4678 test -z "$ac_dir" && ac_dir=.
4679 if test -f $ac_dir/$ac_word; then
4680 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4681 break
4683 done
4684 IFS="$ac_save_ifs"
4687 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4688 if test -n "$GCJ_FOR_TARGET"; then
4689 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4690 else
4691 echo "$ac_t""no" 1>&6
4695 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4697 set dummy ${ncn_progname}; ac_word=$2
4698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4699 echo "configure:4700: checking for $ac_word" >&5
4700 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4701 echo $ac_n "(cached) $ac_c" 1>&6
4702 else
4703 if test -n "$GCJ_FOR_TARGET"; then
4704 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4705 else
4706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4707 ac_dummy="$PATH"
4708 for ac_dir in $ac_dummy; do
4709 test -z "$ac_dir" && ac_dir=.
4710 if test -f $ac_dir/$ac_word; then
4711 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4712 break
4714 done
4715 IFS="$ac_save_ifs"
4718 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4719 if test -n "$GCJ_FOR_TARGET"; then
4720 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4721 else
4722 echo "$ac_t""no" 1>&6
4726 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4727 done
4729 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4730 set dummy gcj
4731 if test $build = $target ; then
4732 GCJ_FOR_TARGET="$2"
4733 else
4734 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4738 for ncn_progname in gfortran; do
4739 if test -n "$ncn_target_tool_prefix"; then
4740 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4741 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4743 echo "configure:4744: checking for $ac_word" >&5
4744 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4745 echo $ac_n "(cached) $ac_c" 1>&6
4746 else
4747 if test -n "$GFORTRAN_FOR_TARGET"; then
4748 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4749 else
4750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4751 ac_dummy="$PATH"
4752 for ac_dir in $ac_dummy; do
4753 test -z "$ac_dir" && ac_dir=.
4754 if test -f $ac_dir/$ac_word; then
4755 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4756 break
4758 done
4759 IFS="$ac_save_ifs"
4762 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4763 if test -n "$GFORTRAN_FOR_TARGET"; then
4764 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4765 else
4766 echo "$ac_t""no" 1>&6
4770 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4772 set dummy ${ncn_progname}; ac_word=$2
4773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4774 echo "configure:4775: checking for $ac_word" >&5
4775 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4777 else
4778 if test -n "$GFORTRAN_FOR_TARGET"; then
4779 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4780 else
4781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4782 ac_dummy="$PATH"
4783 for ac_dir in $ac_dummy; do
4784 test -z "$ac_dir" && ac_dir=.
4785 if test -f $ac_dir/$ac_word; then
4786 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
4787 break
4789 done
4790 IFS="$ac_save_ifs"
4793 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4794 if test -n "$GFORTRAN_FOR_TARGET"; then
4795 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4796 else
4797 echo "$ac_t""no" 1>&6
4801 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
4802 done
4804 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
4805 set dummy gfortran
4806 if test $build = $target ; then
4807 GFORTRAN_FOR_TARGET="$2"
4808 else
4809 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
4813 for ncn_progname in ld; do
4814 if test -n "$ncn_target_tool_prefix"; then
4815 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4816 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4818 echo "configure:4819: checking for $ac_word" >&5
4819 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4821 else
4822 if test -n "$LD_FOR_TARGET"; then
4823 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4824 else
4825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4826 ac_dummy="$PATH"
4827 for ac_dir in $ac_dummy; do
4828 test -z "$ac_dir" && ac_dir=.
4829 if test -f $ac_dir/$ac_word; then
4830 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4831 break
4833 done
4834 IFS="$ac_save_ifs"
4837 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4838 if test -n "$LD_FOR_TARGET"; then
4839 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4840 else
4841 echo "$ac_t""no" 1>&6
4845 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
4846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4847 set dummy ${ncn_progname}; ac_word=$2
4848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4849 echo "configure:4850: checking for $ac_word" >&5
4850 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4852 else
4853 if test -n "$LD_FOR_TARGET"; then
4854 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4855 else
4856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4857 ac_dummy="$PATH"
4858 for ac_dir in $ac_dummy; do
4859 test -z "$ac_dir" && ac_dir=.
4860 if test -f $ac_dir/$ac_word; then
4861 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
4862 break
4864 done
4865 IFS="$ac_save_ifs"
4868 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4869 if test -n "$LD_FOR_TARGET"; then
4870 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4871 else
4872 echo "$ac_t""no" 1>&6
4876 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
4877 done
4879 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
4880 set dummy ld
4881 if test $build = $target ; then
4882 LD_FOR_TARGET="$2"
4883 else
4884 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
4888 for ncn_progname in lipo; do
4889 if test -n "$ncn_target_tool_prefix"; then
4890 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4891 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4893 echo "configure:4894: checking for $ac_word" >&5
4894 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
4895 echo $ac_n "(cached) $ac_c" 1>&6
4896 else
4897 if test -n "$LIPO_FOR_TARGET"; then
4898 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
4899 else
4900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4901 ac_dummy="$PATH"
4902 for ac_dir in $ac_dummy; do
4903 test -z "$ac_dir" && ac_dir=.
4904 if test -f $ac_dir/$ac_word; then
4905 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4906 break
4908 done
4909 IFS="$ac_save_ifs"
4912 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
4913 if test -n "$LIPO_FOR_TARGET"; then
4914 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
4915 else
4916 echo "$ac_t""no" 1>&6
4920 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
4921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4922 set dummy ${ncn_progname}; ac_word=$2
4923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4924 echo "configure:4925: checking for $ac_word" >&5
4925 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
4926 echo $ac_n "(cached) $ac_c" 1>&6
4927 else
4928 if test -n "$LIPO_FOR_TARGET"; then
4929 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
4930 else
4931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4932 ac_dummy="$PATH"
4933 for ac_dir in $ac_dummy; do
4934 test -z "$ac_dir" && ac_dir=.
4935 if test -f $ac_dir/$ac_word; then
4936 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
4937 break
4939 done
4940 IFS="$ac_save_ifs"
4943 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
4944 if test -n "$LIPO_FOR_TARGET"; then
4945 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
4946 else
4947 echo "$ac_t""no" 1>&6
4951 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
4952 done
4954 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
4955 set dummy lipo
4956 if test $build = $target ; then
4957 LIPO_FOR_TARGET="$2"
4958 else
4959 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
4963 for ncn_progname in nm; do
4964 if test -n "$ncn_target_tool_prefix"; then
4965 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4966 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4968 echo "configure:4969: checking for $ac_word" >&5
4969 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
4970 echo $ac_n "(cached) $ac_c" 1>&6
4971 else
4972 if test -n "$NM_FOR_TARGET"; then
4973 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
4974 else
4975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4976 ac_dummy="$PATH"
4977 for ac_dir in $ac_dummy; do
4978 test -z "$ac_dir" && ac_dir=.
4979 if test -f $ac_dir/$ac_word; then
4980 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4981 break
4983 done
4984 IFS="$ac_save_ifs"
4987 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
4988 if test -n "$NM_FOR_TARGET"; then
4989 echo "$ac_t""$NM_FOR_TARGET" 1>&6
4990 else
4991 echo "$ac_t""no" 1>&6
4995 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
4996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4997 set dummy ${ncn_progname}; ac_word=$2
4998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4999 echo "configure:5000: checking for $ac_word" >&5
5000 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5001 echo $ac_n "(cached) $ac_c" 1>&6
5002 else
5003 if test -n "$NM_FOR_TARGET"; then
5004 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5005 else
5006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5007 ac_dummy="$PATH"
5008 for ac_dir in $ac_dummy; do
5009 test -z "$ac_dir" && ac_dir=.
5010 if test -f $ac_dir/$ac_word; then
5011 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5012 break
5014 done
5015 IFS="$ac_save_ifs"
5018 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5019 if test -n "$NM_FOR_TARGET"; then
5020 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5021 else
5022 echo "$ac_t""no" 1>&6
5026 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5027 done
5029 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5030 set dummy nm
5031 if test $build = $target ; then
5032 NM_FOR_TARGET="$2"
5033 else
5034 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
5038 for ncn_progname in objdump; do
5039 if test -n "$ncn_target_tool_prefix"; then
5040 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5041 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5043 echo "configure:5044: checking for $ac_word" >&5
5044 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5045 echo $ac_n "(cached) $ac_c" 1>&6
5046 else
5047 if test -n "$OBJDUMP_FOR_TARGET"; then
5048 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5049 else
5050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5051 ac_dummy="$PATH"
5052 for ac_dir in $ac_dummy; do
5053 test -z "$ac_dir" && ac_dir=.
5054 if test -f $ac_dir/$ac_word; then
5055 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5056 break
5058 done
5059 IFS="$ac_save_ifs"
5062 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5063 if test -n "$OBJDUMP_FOR_TARGET"; then
5064 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5065 else
5066 echo "$ac_t""no" 1>&6
5070 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
5071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5072 set dummy ${ncn_progname}; ac_word=$2
5073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5074 echo "configure:5075: checking for $ac_word" >&5
5075 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5076 echo $ac_n "(cached) $ac_c" 1>&6
5077 else
5078 if test -n "$OBJDUMP_FOR_TARGET"; then
5079 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5080 else
5081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5082 ac_dummy="$PATH"
5083 for ac_dir in $ac_dummy; do
5084 test -z "$ac_dir" && ac_dir=.
5085 if test -f $ac_dir/$ac_word; then
5086 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5087 break
5089 done
5090 IFS="$ac_save_ifs"
5093 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5094 if test -n "$OBJDUMP_FOR_TARGET"; then
5095 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5096 else
5097 echo "$ac_t""no" 1>&6
5101 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
5102 done
5104 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
5105 set dummy objdump
5106 if test $build = $target ; then
5107 OBJDUMP_FOR_TARGET="$2"
5108 else
5109 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5113 for ncn_progname in ranlib; do
5114 if test -n "$ncn_target_tool_prefix"; then
5115 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5116 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5118 echo "configure:5119: checking for $ac_word" >&5
5119 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5120 echo $ac_n "(cached) $ac_c" 1>&6
5121 else
5122 if test -n "$RANLIB_FOR_TARGET"; then
5123 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5124 else
5125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5126 ac_dummy="$PATH"
5127 for ac_dir in $ac_dummy; do
5128 test -z "$ac_dir" && ac_dir=.
5129 if test -f $ac_dir/$ac_word; then
5130 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5131 break
5133 done
5134 IFS="$ac_save_ifs"
5137 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5138 if test -n "$RANLIB_FOR_TARGET"; then
5139 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5140 else
5141 echo "$ac_t""no" 1>&6
5145 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
5146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5147 set dummy ${ncn_progname}; ac_word=$2
5148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5149 echo "configure:5150: checking for $ac_word" >&5
5150 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5151 echo $ac_n "(cached) $ac_c" 1>&6
5152 else
5153 if test -n "$RANLIB_FOR_TARGET"; then
5154 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5155 else
5156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5157 ac_dummy="$PATH"
5158 for ac_dir in $ac_dummy; do
5159 test -z "$ac_dir" && ac_dir=.
5160 if test -f $ac_dir/$ac_word; then
5161 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5162 break
5164 done
5165 IFS="$ac_save_ifs"
5168 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5169 if test -n "$RANLIB_FOR_TARGET"; then
5170 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5171 else
5172 echo "$ac_t""no" 1>&6
5176 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
5177 done
5179 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
5180 RANLIB_FOR_TARGET=":"
5183 for ncn_progname in strip; do
5184 if test -n "$ncn_target_tool_prefix"; then
5185 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5186 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5188 echo "configure:5189: checking for $ac_word" >&5
5189 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5190 echo $ac_n "(cached) $ac_c" 1>&6
5191 else
5192 if test -n "$STRIP_FOR_TARGET"; then
5193 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5194 else
5195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5196 ac_dummy="$PATH"
5197 for ac_dir in $ac_dummy; do
5198 test -z "$ac_dir" && ac_dir=.
5199 if test -f $ac_dir/$ac_word; then
5200 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5201 break
5203 done
5204 IFS="$ac_save_ifs"
5207 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5208 if test -n "$STRIP_FOR_TARGET"; then
5209 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5210 else
5211 echo "$ac_t""no" 1>&6
5215 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
5216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5217 set dummy ${ncn_progname}; ac_word=$2
5218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5219 echo "configure:5220: checking for $ac_word" >&5
5220 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5222 else
5223 if test -n "$STRIP_FOR_TARGET"; then
5224 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5225 else
5226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5227 ac_dummy="$PATH"
5228 for ac_dir in $ac_dummy; do
5229 test -z "$ac_dir" && ac_dir=.
5230 if test -f $ac_dir/$ac_word; then
5231 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5232 break
5234 done
5235 IFS="$ac_save_ifs"
5238 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5239 if test -n "$STRIP_FOR_TARGET"; then
5240 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5241 else
5242 echo "$ac_t""no" 1>&6
5246 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
5247 done
5249 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
5250 set dummy strip
5251 if test $build = $target ; then
5252 STRIP_FOR_TARGET="$2"
5253 else
5254 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5258 for ncn_progname in windres; do
5259 if test -n "$ncn_target_tool_prefix"; then
5260 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5261 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5263 echo "configure:5264: checking for $ac_word" >&5
5264 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5265 echo $ac_n "(cached) $ac_c" 1>&6
5266 else
5267 if test -n "$WINDRES_FOR_TARGET"; then
5268 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5269 else
5270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5271 ac_dummy="$PATH"
5272 for ac_dir in $ac_dummy; do
5273 test -z "$ac_dir" && ac_dir=.
5274 if test -f $ac_dir/$ac_word; then
5275 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5276 break
5278 done
5279 IFS="$ac_save_ifs"
5282 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5283 if test -n "$WINDRES_FOR_TARGET"; then
5284 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5285 else
5286 echo "$ac_t""no" 1>&6
5290 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
5291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5292 set dummy ${ncn_progname}; ac_word=$2
5293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5294 echo "configure:5295: checking for $ac_word" >&5
5295 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5296 echo $ac_n "(cached) $ac_c" 1>&6
5297 else
5298 if test -n "$WINDRES_FOR_TARGET"; then
5299 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5300 else
5301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5302 ac_dummy="$PATH"
5303 for ac_dir in $ac_dummy; do
5304 test -z "$ac_dir" && ac_dir=.
5305 if test -f $ac_dir/$ac_word; then
5306 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5307 break
5309 done
5310 IFS="$ac_save_ifs"
5313 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5314 if test -n "$WINDRES_FOR_TARGET"; then
5315 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5316 else
5317 echo "$ac_t""no" 1>&6
5321 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
5322 done
5324 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
5325 set dummy windres
5326 if test $build = $target ; then
5327 WINDRES_FOR_TARGET="$2"
5328 else
5329 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
5334 CONFIGURED_AR_FOR_TARGET="$AR_FOR_TARGET"
5335 CONFIGURED_AS_FOR_TARGET="$AS_FOR_TARGET"
5336 CONFIGURED_CC_FOR_TARGET="$CC_FOR_TARGET"
5337 CONFIGURED_CXX_FOR_TARGET="$CXX_FOR_TARGET"
5338 CONFIGURED_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET"
5339 CONFIGURED_GCC_FOR_TARGET="$GCC_FOR_TARGET"
5340 CONFIGURED_GCJ_FOR_TARGET="$GCJ_FOR_TARGET"
5341 CONFIGURED_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET"
5342 CONFIGURED_LD_FOR_TARGET="$LD_FOR_TARGET"
5343 CONFIGURED_LIPO_FOR_TARGET="$LIPO_FOR_TARGET"
5344 CONFIGURED_NM_FOR_TARGET="$NM_FOR_TARGET"
5345 CONFIGURED_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET"
5346 CONFIGURED_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET"
5347 CONFIGURED_STRIP_FOR_TARGET="$STRIP_FOR_TARGET"
5348 CONFIGURED_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET"
5352 # Fix up target tools.
5353 if test "x${build}" = "x${host}" ; then
5354 # In this case, the newly built tools can and should be used,
5355 # so we override the results of the autoconf tests.
5356 # This should really only happen when the tools are actually being built,
5357 # but that's a further refinement. The new build scheme, where
5358 # tools are built into a structure paralleling where they're installed,
5359 # should also eliminate all of this cleanly.
5360 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
5361 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
5362 CC_FOR_TARGET="\$(USUAL_CC_FOR_TARGET)"
5363 CXX_FOR_TARGET="\$(USUAL_CXX_FOR_TARGET)"
5364 RAW_CXX_FOR_TARGET="\$(USUAL_RAW_CXX_FOR_TARGET)"
5365 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
5366 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
5367 GCJ_FOR_TARGET="\$(USUAL_GCJ_FOR_TARGET)"
5368 GFORTRAN_FOR_TARGET="\$(USUAL_GFORTRAN_FOR_TARGET)"
5369 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
5370 LIPO_FOR_TARGET="\$(USUAL_LIPO_FOR_TARGET)"
5371 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
5372 OBJDUMP_FOR_TARGET="\$(USUAL_OBJDUMP_FOR_TARGET)"
5373 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
5374 STRIP_FOR_TARGET="\$(USUAL_STRIP_FOR_TARGET)"
5375 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
5376 else
5377 # Just use the ones we found.
5378 AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)"
5379 AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)"
5380 CC_FOR_TARGET="\$(CONFIGURED_CC_FOR_TARGET)"
5381 CXX_FOR_TARGET="\$(CONFIGURED_CXX_FOR_TARGET)"
5382 RAW_CXX_FOR_TARGET="\$(CONFIGURED_CXX_FOR_TARGET)"
5383 DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)"
5384 GCC_FOR_TARGET="\$(CONFIGURED_GCC_FOR_TARGET)"
5385 GCJ_FOR_TARGET="\$(CONFIGURED_GCJ_FOR_TARGET)"
5386 GFORTRAN_FOR_TARGET="\$(CONFIGURED_GFORTRAN_FOR_TARGET)"
5387 LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)"
5388 LIPO_FOR_TARGET="\$(CONFIGURED_LIPO_FOR_TARGET)"
5389 NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)"
5390 OBJDUMP_FOR_TARGET="\$(CONFIGURED_OBJDUMP_FOR_TARGET)"
5391 RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)"
5392 STRIP_FOR_TARGET="\$(CONFIGURED_STRIP_FOR_TARGET)"
5393 WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)"
5398 # Certain tools may need extra flags.
5399 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
5400 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
5401 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
5403 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
5404 echo "configure:5405: checking whether to enable maintainer-specific portions of Makefiles" >&5
5405 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5406 if test "${enable_maintainer_mode+set}" = set; then
5407 enableval="$enable_maintainer_mode"
5408 USE_MAINTAINER_MODE=$enableval
5409 else
5410 USE_MAINTAINER_MODE=no
5413 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
5416 if test "$USE_MAINTAINER_MODE" = yes; then
5417 MAINTAINER_MODE_TRUE=
5418 MAINTAINER_MODE_FALSE='#'
5419 else
5420 MAINTAINER_MODE_TRUE='#'
5421 MAINTAINER_MODE_FALSE=
5423 MAINT=$MAINTAINER_MODE_TRUE
5425 # ---------------------
5426 # GCC bootstrap support
5427 # ---------------------
5429 # Stage specific cflags for build.
5430 stage1_cflags="-g"
5431 case $build in
5432 vax-*-*)
5433 case ${GCC} in
5434 yes) stage1_cflags="-g -Wa,-J" ;;
5435 *) stage1_cflags="-g -J" ;;
5436 esac ;;
5437 powerpc-*-darwin*)
5438 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
5439 # sources; use -no-cpp-precomp to get to GNU cpp.
5440 # Apple's GCC has bugs in designated initializer handling, so disable
5441 # that too.
5442 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
5444 esac
5447 # It makes debugging easier if we create as symlinks the stage directories
5448 # gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not
5449 # possible, however, we can resort to mv.
5450 echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6
5451 echo "configure:5452: checking if symbolic links between directories work" >&5
5452 if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
5453 echo $ac_n "(cached) $ac_c" 1>&6
5454 else
5455 if test "${LN_S}" = "ln -s" \
5456 && mkdir confdir.s1 \
5457 && ln -s confdir.s1 confdir.s2 \
5458 && echo timestamp1 > confdir.s1/conftest.1 \
5459 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
5460 && echo timestamp2 > confdir.s2/conftest.2 \
5461 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
5462 && rm -f confdir.s2; then
5463 gcc_cv_prog_ln_s_dir=yes
5464 else
5465 gcc_cv_prog_ln_s_dir=no
5467 rm -rf confdir.s1 confdir.s2
5470 echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
5472 case ${gcc_cv_prog_ln_s_dir} in
5473 yes)
5474 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
5475 UNDO_LINK_TO_DIR='rm -f $$1' ;;
5477 CREATE_LINK_TO_DIR='mv $$1 $$2'
5478 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
5479 esac
5483 # Enable -Werror in bootstrap stage2 and later.
5484 # Change the default to "no" on release branches.
5485 # Check whether --enable-werror or --disable-werror was given.
5486 if test "${enable_werror+set}" = set; then
5487 enableval="$enable_werror"
5489 else
5490 enable_werror=yes
5493 case ${enable_werror} in
5494 yes) stage2_werror_flag="--enable-werror-always" ;;
5495 *) stage2_werror_flag="" ;;
5496 esac
5499 trap '' 1 2 15
5500 cat > confcache <<\EOF
5501 # This file is a shell script that caches the results of configure
5502 # tests run on this system so they can be shared between configure
5503 # scripts and configure runs. It is not useful on other systems.
5504 # If it contains results you don't want to keep, you may remove or edit it.
5506 # By default, configure uses ./config.cache as the cache file,
5507 # creating it if it does not exist already. You can give configure
5508 # the --cache-file=FILE option to use a different cache file; that is
5509 # what configure does when it calls configure scripts in
5510 # subdirectories, so they share the cache.
5511 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5512 # config.status only pays attention to the cache file if you give it the
5513 # --recheck option to rerun configure.
5516 # The following way of writing the cache mishandles newlines in values,
5517 # but we know of no workaround that is simple, portable, and efficient.
5518 # So, don't put newlines in cache variables' values.
5519 # Ultrix sh set writes to stderr and can't be redirected directly,
5520 # and sets the high bit in the cache file unless we assign to the vars.
5521 (set) 2>&1 |
5522 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5523 *ac_space=\ *)
5524 # `set' does not quote correctly, so add quotes (double-quote substitution
5525 # turns \\\\ into \\, and sed turns \\ into \).
5526 sed -n \
5527 -e "s/'/'\\\\''/g" \
5528 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5531 # `set' quotes correctly as required by POSIX, so do not add quotes.
5532 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5534 esac >> confcache
5535 if cmp -s $cache_file confcache; then
5537 else
5538 if test -w $cache_file; then
5539 echo "updating cache $cache_file"
5540 cat confcache > $cache_file
5541 else
5542 echo "not updating unwritable cache $cache_file"
5545 rm -f confcache
5547 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5549 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5550 # Let make expand exec_prefix.
5551 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5553 # Any assignment to VPATH causes Sun make to only execute
5554 # the first set of double-colon rules, so remove it if not needed.
5555 # If there is a colon in the path, we need to keep it.
5556 if test "x$srcdir" = x.; then
5557 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5560 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5562 # Transform confdefs.h into DEFS.
5563 # Protect against shell expansion while executing Makefile rules.
5564 # Protect against Makefile macro expansion.
5566 # If the first sed substitution is executed (which looks for macros that
5567 # take arguments), then we branch to the quote section. Otherwise,
5568 # look for a macro that doesn't take arguments.
5569 cat >confdef2opt.sed <<\_ACEOF
5570 t clear
5571 : clear
5572 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5573 t quote
5574 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5575 t quote
5577 : quote
5578 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5579 s,\[,\\&,g
5580 s,\],\\&,g
5581 s,\$,$$,g
5583 _ACEOF
5584 # We use echo to avoid assuming a particular line-breaking character.
5585 # The extra dot is to prevent the shell from consuming trailing
5586 # line-breaks from the sub-command output. A line-break within
5587 # single-quotes doesn't work because, if this script is created in a
5588 # platform that uses two characters for line-breaks (e.g., DOS), tr
5589 # would break.
5590 ac_LF_and_DOT=`echo; echo .`
5591 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5592 rm -f confdef2opt.sed
5595 # Without the "./", some shells look in PATH for config.status.
5596 : ${CONFIG_STATUS=./config.status}
5598 echo creating $CONFIG_STATUS
5599 rm -f $CONFIG_STATUS
5600 cat > $CONFIG_STATUS <<EOF
5601 #! /bin/sh
5602 # Generated automatically by configure.
5603 # Run this file to recreate the current configuration.
5604 # This directory was configured as follows,
5605 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5607 # $0 $ac_configure_args
5609 # Compiler output produced by configure, useful for debugging
5610 # configure, is in ./config.log if it exists.
5612 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5613 for ac_option
5615 case "\$ac_option" in
5616 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5617 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5618 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5619 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5620 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5621 exit 0 ;;
5622 -help | --help | --hel | --he | --h)
5623 echo "\$ac_cs_usage"; exit 0 ;;
5624 *) echo "\$ac_cs_usage"; exit 1 ;;
5625 esac
5626 done
5628 ac_given_srcdir=$srcdir
5629 ac_given_INSTALL="$INSTALL"
5631 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5633 cat >> $CONFIG_STATUS <<EOF
5635 # Protect against being on the right side of a sed subst in config.status.
5636 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5637 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5638 $ac_vpsub
5639 $extrasub
5640 s%@SHELL@%$SHELL%g
5641 s%@CFLAGS@%$CFLAGS%g
5642 s%@CPPFLAGS@%$CPPFLAGS%g
5643 s%@CXXFLAGS@%$CXXFLAGS%g
5644 s%@FFLAGS@%$FFLAGS%g
5645 s%@DEFS@%$DEFS%g
5646 s%@LDFLAGS@%$LDFLAGS%g
5647 s%@LIBS@%$LIBS%g
5648 s%@exec_prefix@%$exec_prefix%g
5649 s%@prefix@%$prefix%g
5650 s%@program_transform_name@%$program_transform_name%g
5651 s%@bindir@%$bindir%g
5652 s%@sbindir@%$sbindir%g
5653 s%@libexecdir@%$libexecdir%g
5654 s%@datadir@%$datadir%g
5655 s%@sysconfdir@%$sysconfdir%g
5656 s%@sharedstatedir@%$sharedstatedir%g
5657 s%@localstatedir@%$localstatedir%g
5658 s%@libdir@%$libdir%g
5659 s%@includedir@%$includedir%g
5660 s%@oldincludedir@%$oldincludedir%g
5661 s%@infodir@%$infodir%g
5662 s%@mandir@%$mandir%g
5663 s%@host@%$host%g
5664 s%@host_alias@%$host_alias%g
5665 s%@host_cpu@%$host_cpu%g
5666 s%@host_vendor@%$host_vendor%g
5667 s%@host_os@%$host_os%g
5668 s%@target@%$target%g
5669 s%@target_alias@%$target_alias%g
5670 s%@target_cpu@%$target_cpu%g
5671 s%@target_vendor@%$target_vendor%g
5672 s%@target_os@%$target_os%g
5673 s%@build@%$build%g
5674 s%@build_alias@%$build_alias%g
5675 s%@build_cpu@%$build_cpu%g
5676 s%@build_vendor@%$build_vendor%g
5677 s%@build_os@%$build_os%g
5678 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5679 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5680 s%@INSTALL_DATA@%$INSTALL_DATA%g
5681 s%@LN@%$LN%g
5682 s%@LN_S@%$LN_S%g
5683 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
5684 s%@build_subdir@%$build_subdir%g
5685 s%@host_subdir@%$host_subdir%g
5686 s%@target_subdir@%$target_subdir%g
5687 s%@CC@%$CC%g
5688 s%@GNATBIND@%$GNATBIND%g
5689 s%@do_compare@%$do_compare%g
5690 s%@gmplibs@%$gmplibs%g
5691 s%@gmpinc@%$gmpinc%g
5692 s%@stage1_languages@%$stage1_languages%g
5693 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
5694 s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g
5695 s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g
5696 s%@CONFIGURED_M4@%$CONFIGURED_M4%g
5697 s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g
5698 s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g
5699 s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g
5700 s%@bootstrap_lean@%$bootstrap_lean%g
5701 /@serialization_dependencies@/r $serialization_dependencies
5702 s%@serialization_dependencies@%%g
5703 /@host_makefile_frag@/r $host_makefile_frag
5704 s%@host_makefile_frag@%%g
5705 /@target_makefile_frag@/r $target_makefile_frag
5706 s%@target_makefile_frag@%%g
5707 /@alphaieee_frag@/r $alphaieee_frag
5708 s%@alphaieee_frag@%%g
5709 /@ospace_frag@/r $ospace_frag
5710 s%@ospace_frag@%%g
5711 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
5712 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
5713 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
5714 s%@tooldir@%$tooldir%g
5715 s%@build_tooldir@%$build_tooldir%g
5716 s%@GDB_TK@%$GDB_TK%g
5717 s%@build_configargs@%$build_configargs%g
5718 s%@build_configdirs@%$build_configdirs%g
5719 s%@host_configargs@%$host_configargs%g
5720 s%@configdirs@%$configdirs%g
5721 s%@target_configargs@%$target_configargs%g
5722 s%@target_configdirs@%$target_configdirs%g
5723 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5724 s%@config_shell@%$config_shell%g
5725 s%@AR@%$AR%g
5726 s%@AS@%$AS%g
5727 s%@DLLTOOL@%$DLLTOOL%g
5728 s%@LD@%$LD%g
5729 s%@NM@%$NM%g
5730 s%@RANLIB@%$RANLIB%g
5731 s%@WINDRES@%$WINDRES%g
5732 s%@OBJCOPY@%$OBJCOPY%g
5733 s%@OBJDUMP@%$OBJDUMP%g
5734 s%@CXX@%$CXX%g
5735 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
5736 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
5737 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
5738 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
5739 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
5740 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
5741 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
5742 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
5743 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
5744 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
5745 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
5746 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5747 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
5748 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
5749 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
5750 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
5751 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
5752 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
5753 s%@CONFIGURED_CC_FOR_TARGET@%$CONFIGURED_CC_FOR_TARGET%g
5754 s%@CONFIGURED_CXX_FOR_TARGET@%$CONFIGURED_CXX_FOR_TARGET%g
5755 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
5756 s%@CONFIGURED_GCC_FOR_TARGET@%$CONFIGURED_GCC_FOR_TARGET%g
5757 s%@CONFIGURED_GCJ_FOR_TARGET@%$CONFIGURED_GCJ_FOR_TARGET%g
5758 s%@CONFIGURED_GFORTRAN_FOR_TARGET@%$CONFIGURED_GFORTRAN_FOR_TARGET%g
5759 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
5760 s%@CONFIGURED_LIPO_FOR_TARGET@%$CONFIGURED_LIPO_FOR_TARGET%g
5761 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
5762 s%@CONFIGURED_OBJDUMP_FOR_TARGET@%$CONFIGURED_OBJDUMP_FOR_TARGET%g
5763 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
5764 s%@CONFIGURED_STRIP_FOR_TARGET@%$CONFIGURED_STRIP_FOR_TARGET%g
5765 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
5766 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
5767 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
5768 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5769 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5770 s%@MAINT@%$MAINT%g
5771 s%@stage1_cflags@%$stage1_cflags%g
5772 s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
5773 s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
5774 s%@stage2_werror_flag@%$stage2_werror_flag%g
5776 CEOF
5779 cat >> $CONFIG_STATUS <<\EOF
5781 # Split the substitutions into bite-sized pieces for seds with
5782 # small command number limits, like on Digital OSF/1 and HP-UX.
5783 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5784 ac_file=1 # Number of current file.
5785 ac_beg=1 # First line for current file.
5786 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5787 ac_more_lines=:
5788 ac_sed_cmds=""
5789 while $ac_more_lines; do
5790 if test $ac_beg -gt 1; then
5791 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5792 else
5793 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5795 if test ! -s conftest.s$ac_file; then
5796 ac_more_lines=false
5797 rm -f conftest.s$ac_file
5798 else
5799 if test -z "$ac_sed_cmds"; then
5800 ac_sed_cmds="sed -f conftest.s$ac_file"
5801 else
5802 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5804 ac_file=`expr $ac_file + 1`
5805 ac_beg=$ac_end
5806 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5808 done
5809 if test -z "$ac_sed_cmds"; then
5810 ac_sed_cmds=cat
5814 cat >> $CONFIG_STATUS <<EOF
5816 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5818 cat >> $CONFIG_STATUS <<\EOF
5819 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5820 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5821 case "$ac_file" in
5822 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5823 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5824 *) ac_file_in="${ac_file}.in" ;;
5825 esac
5827 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5829 # Remove last slash and all that follows it. Not all systems have dirname.
5830 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5831 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5832 # The file is in a subdirectory.
5833 test ! -d "$ac_dir" && mkdir "$ac_dir"
5834 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5835 # A "../" for each directory in $ac_dir_suffix.
5836 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5837 else
5838 ac_dir_suffix= ac_dots=
5841 case "$ac_given_srcdir" in
5842 .) srcdir=.
5843 if test -z "$ac_dots"; then top_srcdir=.
5844 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5845 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5846 *) # Relative path.
5847 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5848 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5849 esac
5851 case "$ac_given_INSTALL" in
5852 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5853 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5854 esac
5856 echo creating "$ac_file"
5857 rm -f "$ac_file"
5858 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5859 case "$ac_file" in
5860 *Makefile*) ac_comsub="1i\\
5861 # $configure_input" ;;
5862 *) ac_comsub= ;;
5863 esac
5865 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5866 sed -e "$ac_comsub
5867 s%@configure_input@%$configure_input%g
5868 s%@srcdir@%$srcdir%g
5869 s%@top_srcdir@%$top_srcdir%g
5870 s%@INSTALL@%$INSTALL%g
5871 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5872 fi; done
5873 rm -f conftest.s*
5876 cat >> $CONFIG_STATUS <<EOF
5879 cat >> $CONFIG_STATUS <<\EOF
5881 exit 0
5883 chmod +x $CONFIG_STATUS
5884 rm -fr confdefs* $ac_clean_files
5885 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1