* gcc.dg/gomp/sharing-1.c: New test.
[official-gcc.git] / configure
blobf48dd53ea2dda082578b492eac9b87b395679d72
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*-*-linux-gnueabi)
1296 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1297 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1299 arm*-*-symbianelf*)
1300 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1302 arm-*-pe*)
1303 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1305 thumb-*-coff)
1306 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1308 thumb-*-elf)
1309 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1311 thumb-*-pe)
1312 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1314 arm-*-riscix*)
1315 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1317 avr-*-*)
1318 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1320 bfin-*-*)
1321 noconfigdirs="$noconfigdirs target-libgloss gdb"
1322 if x${is_cross_compiler} != xno ; then
1323 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1326 c4x-*-* | tic4x-*-*)
1327 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1329 c54x*-*-* | tic54x-*-*)
1330 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1332 cris-*-* | crisv32-*-*)
1333 unsupported_languages="$unsupported_languages java"
1334 case "${target}" in
1335 *-*-aout)
1336 unsupported_languages="$unsupported_languages fortran"
1337 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1338 *-*-elf)
1339 unsupported_languages="$unsupported_languages fortran"
1340 noconfigdirs="$noconfigdirs target-boehm-gc";;
1341 *-*-linux*)
1342 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1344 unsupported_languages="$unsupported_languages fortran"
1345 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1346 esac
1348 crx-*-*)
1349 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1351 d10v-*-*)
1352 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1354 d30v-*-*)
1355 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1357 fr30-*-elf*)
1358 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1360 frv-*-*)
1361 noconfigdirs="$noconfigdirs ${libgcj}"
1363 h8300*-*-*)
1364 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1366 h8500-*-*)
1367 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1369 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1371 hppa*64*-*-linux* | parisc*64*-*-linux*)
1372 # In this case, it's because the hppa64-linux target is for
1373 # the kernel only at this point and has no libc, and thus no
1374 # headers, crt*.o, etc., all of which are needed by these.
1375 noconfigdirs="$noconfigdirs target-zlib"
1377 parisc*-*-linux* | hppa*-*-linux*)
1379 hppa*-*-*elf* | \
1380 hppa*-*-lites* | \
1381 hppa*-*-openbsd* | \
1382 hppa*64*-*-*)
1383 noconfigdirs="$noconfigdirs ${libgcj}"
1385 hppa*-*-*)
1386 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1387 # build on HP-UX 10.20.
1388 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1390 i960-*-*)
1391 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1393 ia64*-*-elf*)
1394 # No gdb support yet.
1395 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1397 ia64*-**-hpux*)
1398 # No gdb or ld support yet.
1399 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1401 i370-*-opened*)
1403 i[3456789]86-*-coff | i[3456789]86-*-elf)
1404 noconfigdirs="$noconfigdirs ${libgcj}"
1406 i[3456789]86-*-linux*)
1407 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1408 # not build java stuff by default.
1409 case "${target}" in
1410 *-*-*libc1*)
1411 noconfigdirs="$noconfigdirs ${libgcj}";;
1412 esac
1414 # This section makes it possible to build newlib natively on linux.
1415 # If we are using a cross compiler then don't configure newlib.
1416 if test x${is_cross_compiler} != xno ; then
1417 noconfigdirs="$noconfigdirs target-newlib"
1419 noconfigdirs="$noconfigdirs target-libgloss"
1420 # If we are not using a cross compiler, do configure newlib.
1421 # Note however, that newlib will only be configured in this situation
1422 # if the --with-newlib option has been given, because otherwise
1423 # 'target-newlib' will appear in skipdirs.
1425 i[3456789]86-*-mingw32*)
1426 target_configdirs="$target_configdirs target-mingw"
1427 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1429 # Can't build gdb for mingw32 if not native.
1430 case "${host}" in
1431 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1432 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1434 esac
1436 *-*-cygwin*)
1437 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1438 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1439 # always build newlib if winsup directory is present.
1440 if test -d "$srcdir/winsup"; then
1441 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1442 elif test -d "$srcdir/newlib"; then
1443 echo "Warning: winsup is missing so newlib can't be built."
1446 # Can't build gdb for Cygwin if not native.
1447 case "${host}" in
1448 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1449 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1451 esac
1453 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1454 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1456 i[3456789]86-*-pe)
1457 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1459 i[3456789]86-*-sco3.2v5*)
1460 # The linker does not yet know about weak symbols in COFF,
1461 # and is not configured to handle mixed ELF and COFF.
1462 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1464 i[3456789]86-*-sco*)
1465 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1467 i[3456789]86-*-solaris2*)
1468 noconfigdirs="$noconfigdirs target-libgloss"
1470 i[3456789]86-*-sysv4*)
1471 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1473 i[3456789]86-*-beos*)
1474 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1476 m32r-*-*)
1477 noconfigdirs="$noconfigdirs ${libgcj}"
1479 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1480 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1482 m68k-*-elf*)
1483 noconfigdirs="$noconfigdirs ${libgcj}"
1485 m68k-*-coff*)
1486 noconfigdirs="$noconfigdirs ${libgcj}"
1488 mcore-*-pe*)
1489 # The EPOC C++ environment does not support exceptions or rtti,
1490 # and so building libstdc++-v3 tends not to always work.
1491 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1493 mmix-*-*)
1494 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1495 unsupported_languages="$unsupported_languages fortran java"
1497 mn10200-*-*)
1498 noconfigdirs="$noconfigdirs ${libgcj}"
1500 mn10300-*-*)
1501 noconfigdirs="$noconfigdirs ${libgcj}"
1503 ms1-*-*)
1504 noconfigdirs="$noconfigdirs sim"
1506 powerpc-*-aix*)
1507 # copied from rs6000-*-* entry
1508 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1510 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1511 target_configdirs="$target_configdirs target-winsup"
1512 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1513 # always build newlib.
1514 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1516 # This is temporary until we can link against shared libraries
1517 powerpcle-*-solaris*)
1518 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1520 powerpc-*-beos*)
1521 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1523 powerpc-*-eabi)
1524 noconfigdirs="$noconfigdirs ${libgcj}"
1526 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1528 rs6000-*-lynxos*)
1529 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1531 rs6000-*-aix*)
1532 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1534 rs6000-*-*)
1535 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1537 m68k-apollo-*)
1538 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1540 mips*-*-irix5*)
1541 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1543 mips*-*-irix6*)
1544 # Linking libjava exceeds command-line length limits on at least
1545 # IRIX 6.2, but not on IRIX 6.5.
1546 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1547 # <oldham@codesourcery.com>
1548 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1550 mips*-dec-bsd*)
1551 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1553 mips*-*-bsd*)
1554 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1556 mipstx39-*-*)
1557 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1559 mips64*-*-linux*)
1560 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1562 mips*-*-linux*)
1563 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1565 mips*-*-*)
1566 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1568 romp-*-*)
1569 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1571 sh-*-* | sh64-*-*)
1572 case "${host}" in
1573 i[3456789]86-*-vsta) ;; # don't add gprof back in
1574 i[3456789]86-*-go32*) ;; # don't add gprof back in
1575 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1576 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1577 esac
1578 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1580 sparc-*-elf*)
1581 noconfigdirs="$noconfigdirs ${libgcj}"
1583 sparc64-*-elf*)
1584 noconfigdirs="$noconfigdirs ${libgcj}"
1586 sparclite-*-*)
1587 noconfigdirs="$noconfigdirs ${libgcj}"
1589 sparc-*-sunos4*)
1590 noconfigdirs="$noconfigdirs ${libgcj}"
1591 if test x${is_cross_compiler} != xno ; then
1592 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1593 else
1594 use_gnu_ld=no
1597 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1598 noconfigdirs="$noconfigdirs ${libgcj}"
1600 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1602 v810-*-*)
1603 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1605 v850-*-*)
1606 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1608 v850e-*-*)
1609 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1611 v850ea-*-*)
1612 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1614 vax-*-vms)
1615 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1617 vax-*-*)
1618 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1620 xtensa-*-*)
1621 noconfigdirs="$noconfigdirs ${libgcj}"
1623 ip2k-*-*)
1624 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1626 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1627 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1629 *-*-lynxos*)
1630 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1632 *-*-*)
1633 noconfigdirs="$noconfigdirs ${libgcj}"
1635 esac
1637 # If we aren't building newlib, then don't build libgloss, since libgloss
1638 # depends upon some newlib header files.
1639 case "${noconfigdirs}" in
1640 *target-libgloss*) ;;
1641 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1642 esac
1644 # Work in distributions that contain no compiler tools, like Autoconf.
1645 tentative_cc=""
1646 host_makefile_frag=/dev/null
1647 if test -d ${srcdir}/config ; then
1648 case "${host}" in
1649 m68k-hp-hpux*)
1650 # Avoid "too much defining" errors from HPUX compiler.
1651 tentative_cc="cc -Wp,-H256000"
1652 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1653 # If it's HP/UX ar, this should be harmless.
1654 RANLIB="ar ts"
1656 m68k-apollo-sysv*)
1657 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1659 m68k-apollo-bsd*)
1660 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1661 # chokes on bfd, the compiler won't let you assign integers to enums, and
1662 # other problems. Defining CC to gcc is a questionable way to say "don't use
1663 # the apollo compiler" (the preferred version of GCC could be called cc,
1664 # or whatever), but I'm not sure leaving CC as cc is any better...
1665 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1666 # Used to have BISON=yacc.
1667 tentative_cc=gcc
1669 m88k-dg-dgux*)
1670 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1672 m88k-harris-cxux*)
1673 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1674 tentative_cc="cc -Xa"
1675 host_makefile_frag="config/mh-cxux"
1677 m88k-motorola-sysv*)
1679 mips*-dec-ultrix*)
1680 tentative_cc="cc -Wf,-XNg1000"
1681 host_makefile_frag="config/mh-decstation"
1683 mips*-nec-sysv4*)
1684 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1685 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1686 host_makefile_frag="config/mh-necv4"
1688 mips*-sgi-irix4*)
1689 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1690 # environment. Also bump switch table size so that cp-parse will
1691 # compile. Bump string length limit so linker builds.
1692 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1694 mips*-*-sysv4*)
1695 host_makefile_frag="config/mh-sysv4"
1697 mips*-*-sysv*)
1698 # This is for a MIPS running RISC/os 4.52C.
1700 # This is needed for GDB, but needs to be in the top-level make because
1701 # if a library is compiled with the bsd headers and gets linked with the
1702 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1703 # a different size).
1704 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1705 # known except to select the sysv environment. Could we use /proc instead?
1706 # These "sysv environments" and "bsd environments" often end up being a pain.
1708 # This is not part of CFLAGS because perhaps not all C compilers have this
1709 # option.
1710 tentative_cc="cc -systype sysv"
1712 i370-ibm-opened*)
1713 tentative_cc="c89"
1715 i[3456789]86-*-sysv5*)
1716 host_makefile_frag="config/mh-sysv5"
1718 i[3456789]86-*-dgux*)
1719 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1720 host_makefile_frag="config/mh-dgux386"
1722 i[3456789]86-ncr-sysv4.3*)
1723 # The MetaWare compiler will generate a copyright message unless you
1724 # turn it off by adding the -Hnocopyr flag.
1725 tentative_cc="cc -Hnocopyr"
1727 i[3456789]86-ncr-sysv4*)
1728 # for an NCR 3000 (i486/SVR4) system.
1729 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1730 # This compiler not only emits obnoxious copyright messages every time
1731 # you run it, but it chokes and dies on a whole bunch of GNU source
1732 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1733 tentative_cc="/usr/ccs/ATT/cc"
1734 host_makefile_frag="config/mh-ncr3000"
1736 i[3456789]86-*-sco3.2v5*)
1738 i[3456789]86-*-sco*)
1739 # The native C compiler botches some simple uses of const. Unfortunately,
1740 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1741 tentative_cc="cc -Dconst="
1742 host_makefile_frag="config/mh-sco"
1744 i[3456789]86-*-udk*)
1745 host_makefile_frag="config/mh-sysv5"
1747 i[3456789]86-*-solaris2*)
1748 host_makefile_frag="config/mh-sysv4"
1750 i[3456789]86-*-msdosdjgpp*)
1751 host_makefile_frag="config/mh-djgpp"
1753 *-cygwin*)
1754 host_makefile_frag="config/mh-cygwin"
1756 *-mingw32*)
1758 *-interix*)
1759 host_makefile_frag="config/mh-interix"
1761 vax-*-ultrix2*)
1762 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1763 tentative_cc=gcc
1765 *-*-solaris2*)
1766 host_makefile_frag="config/mh-solaris"
1768 m68k-sun-sunos*)
1769 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1770 # without overflowing the jump tables (-J says to use a 32 bit table)
1771 tentative_cc="cc -J"
1773 *-hp-hpux*)
1774 tentative_cc="cc -Wp,-H256000"
1776 *-*-hiux*)
1777 tentative_cc="cc -Wp,-H256000"
1779 rs6000-*-lynxos*)
1780 # /bin/cc is less than useful for our purposes. Always use GCC
1781 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1782 host_makefile_frag="config/mh-lynxrs6k"
1784 powerpc-*-darwin*)
1785 host_makefile_frag="config/mh-ppc-darwin"
1787 *-*-lynxos*)
1788 # /bin/cc is less than useful for our purposes. Always use GCC
1789 tentative_cc="/bin/gcc"
1791 *-*-sysv4*)
1792 host_makefile_frag="config/mh-sysv4"
1794 # This is placed last to prevent interfering with the cases above.
1795 i[3456789]86-*-*)
1796 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1797 host_makefile_frag="config/mh-x86omitfp"
1799 esac
1802 # If we aren't going to be using gcc, see if we can extract a definition
1803 # of CC from the fragment.
1804 # Actually, use the 'pre-extracted' version above.
1805 if test -z "${CC}" && test "${build}" = "${host}" ; then
1806 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1807 found=
1808 for dir in $PATH; do
1809 test -z "$dir" && dir=.
1810 if test -f $dir/gcc; then
1811 found=yes
1812 break
1814 done
1815 IFS="$save_ifs"
1816 if test -z "${found}" && test -n "${tentative_cc}" ; then
1817 CC=$tentative_cc
1821 if test "${build}" != "${host}" ; then
1822 # If we are doing a Canadian Cross, in which the host and build systems
1823 # are not the same, we set reasonable default values for the tools.
1825 CC=${CC-${host_alias}-gcc}
1826 CFLAGS=${CFLAGS-"-g -O2"}
1827 CXX=${CXX-${host_alias}-c++}
1828 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1829 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1830 BUILD_PREFIX=${build_alias}-
1831 BUILD_PREFIX_1=${build_alias}-
1833 else
1834 # Set reasonable default values for some tools even if not Canadian.
1835 # Of course, these are different reasonable default values, originally
1836 # specified directly in the Makefile.
1837 # We don't export, so that autoconf can do its job.
1838 # Note that all these settings are above the fragment inclusion point
1839 # in Makefile.in, so can still be overridden by fragments.
1840 # This is all going to change when we autoconfiscate...
1842 CC_FOR_BUILD="\$(CC)"
1843 BUILD_PREFIX=
1844 BUILD_PREFIX_1=loser-
1846 # Extract the first word of "gcc", so it can be a program name with args.
1847 set dummy gcc; ac_word=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1852 else
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC="$CC" # Let the user override the test.
1855 else
1856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1857 ac_dummy="$PATH"
1858 for ac_dir in $ac_dummy; do
1859 test -z "$ac_dir" && ac_dir=.
1860 if test -f $ac_dir/$ac_word; then
1861 ac_cv_prog_CC="gcc"
1862 break
1864 done
1865 IFS="$ac_save_ifs"
1868 CC="$ac_cv_prog_CC"
1869 if test -n "$CC"; then
1870 echo "$ac_t""$CC" 1>&6
1871 else
1872 echo "$ac_t""no" 1>&6
1875 if test -z "$CC"; then
1876 # Extract the first word of "cc", so it can be a program name with args.
1877 set dummy cc; ac_word=$2
1878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1879 echo "configure:1880: checking for $ac_word" >&5
1880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1882 else
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC="$CC" # Let the user override the test.
1885 else
1886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1887 ac_prog_rejected=no
1888 ac_dummy="$PATH"
1889 for ac_dir in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir=.
1891 if test -f $ac_dir/$ac_word; then
1892 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1893 ac_prog_rejected=yes
1894 continue
1896 ac_cv_prog_CC="cc"
1897 break
1899 done
1900 IFS="$ac_save_ifs"
1901 if test $ac_prog_rejected = yes; then
1902 # We found a bogon in the path, so make sure we never use it.
1903 set dummy $ac_cv_prog_CC
1904 shift
1905 if test $# -gt 0; then
1906 # We chose a different compiler from the bogus one.
1907 # However, it has the same basename, so the bogon will be chosen
1908 # first if we set CC to just the basename; use the full file name.
1909 shift
1910 set dummy "$ac_dir/$ac_word" "$@"
1911 shift
1912 ac_cv_prog_CC="$@"
1917 CC="$ac_cv_prog_CC"
1918 if test -n "$CC"; then
1919 echo "$ac_t""$CC" 1>&6
1920 else
1921 echo "$ac_t""no" 1>&6
1924 if test -z "$CC"; then
1925 case "`uname -s`" in
1926 *win32* | *WIN32*)
1927 # Extract the first word of "cl", so it can be a program name with args.
1928 set dummy cl; ac_word=$2
1929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1930 echo "configure:1931: checking for $ac_word" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1933 else
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC="$CC" # Let the user override the test.
1936 else
1937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1938 ac_dummy="$PATH"
1939 for ac_dir in $ac_dummy; do
1940 test -z "$ac_dir" && ac_dir=.
1941 if test -f $ac_dir/$ac_word; then
1942 ac_cv_prog_CC="cl"
1943 break
1945 done
1946 IFS="$ac_save_ifs"
1949 CC="$ac_cv_prog_CC"
1950 if test -n "$CC"; then
1951 echo "$ac_t""$CC" 1>&6
1952 else
1953 echo "$ac_t""no" 1>&6
1956 esac
1958 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1962 echo "configure:1963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1964 ac_ext=c
1965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1968 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1969 cross_compiling=$ac_cv_prog_cc_cross
1971 cat > conftest.$ac_ext << EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1976 main(){return(0);}
1978 if { (eval echo configure:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1979 ac_cv_prog_cc_works=yes
1980 # If we can't run a trivial program, we are probably using a cross compiler.
1981 if (./conftest; exit) 2>/dev/null; then
1982 ac_cv_prog_cc_cross=no
1983 else
1984 ac_cv_prog_cc_cross=yes
1986 else
1987 echo "configure: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1989 ac_cv_prog_cc_works=no
1991 rm -fr conftest*
1992 ac_ext=c
1993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1997 cross_compiling=$ac_cv_prog_cc_cross
1999 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2000 if test $ac_cv_prog_cc_works = no; then
2001 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2003 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2004 echo "configure:2005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2005 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2006 cross_compiling=$ac_cv_prog_cc_cross
2008 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2009 echo "configure:2010: checking whether we are using GNU C" >&5
2010 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2012 else
2013 cat > conftest.c <<EOF
2014 #ifdef __GNUC__
2015 yes;
2016 #endif
2018 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2019 ac_cv_prog_gcc=yes
2020 else
2021 ac_cv_prog_gcc=no
2025 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2027 if test $ac_cv_prog_gcc = yes; then
2028 GCC=yes
2029 else
2030 GCC=
2033 ac_test_CFLAGS="${CFLAGS+set}"
2034 ac_save_CFLAGS="$CFLAGS"
2035 CFLAGS=
2036 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether ${CC-cc} accepts -g" >&5
2038 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2040 else
2041 echo 'void f(){}' > conftest.c
2042 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2043 ac_cv_prog_cc_g=yes
2044 else
2045 ac_cv_prog_cc_g=no
2047 rm -f conftest*
2051 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2052 if test "$ac_test_CFLAGS" = set; then
2053 CFLAGS="$ac_save_CFLAGS"
2054 elif test $ac_cv_prog_cc_g = yes; then
2055 if test "$GCC" = yes; then
2056 CFLAGS="-g -O2"
2057 else
2058 CFLAGS="-g"
2060 else
2061 if test "$GCC" = yes; then
2062 CFLAGS="-O2"
2063 else
2064 CFLAGS=
2069 # We must set the default linker to the linker used by gcc for the correct
2070 # operation of libtool. If LD is not defined and we are using gcc, try to
2071 # set the LD default to the ld used by gcc.
2072 if test -z "$LD"; then
2073 if test "$GCC" = yes; then
2074 case $build in
2075 *-*-mingw*)
2076 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2078 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2079 esac
2080 case $gcc_prog_ld in
2081 # Accept absolute paths.
2082 [\\/]* | [A-Za-z]:[\\/]*)
2083 LD="$gcc_prog_ld" ;;
2084 esac
2088 CXX=${CXX-"c++"}
2089 CFLAGS=${CFLAGS-"-g"}
2090 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2093 if test $host != $build; then
2094 ac_tool_prefix=${host_alias}-
2095 else
2096 ac_tool_prefix=
2101 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2102 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2104 echo "configure:2105: checking for $ac_word" >&5
2105 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2107 else
2108 if test -n "$GNATBIND"; then
2109 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2110 else
2111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2112 ac_dummy="$PATH"
2113 for ac_dir in $ac_dummy; do
2114 test -z "$ac_dir" && ac_dir=.
2115 if test -f $ac_dir/$ac_word; then
2116 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2117 break
2119 done
2120 IFS="$ac_save_ifs"
2123 GNATBIND="$ac_cv_prog_GNATBIND"
2124 if test -n "$GNATBIND"; then
2125 echo "$ac_t""$GNATBIND" 1>&6
2126 else
2127 echo "$ac_t""no" 1>&6
2131 if test -z "$ac_cv_prog_GNATBIND"; then
2132 if test -n "$ac_tool_prefix"; then
2133 # Extract the first word of "gnatbind", so it can be a program name with args.
2134 set dummy gnatbind; ac_word=$2
2135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2136 echo "configure:2137: checking for $ac_word" >&5
2137 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2139 else
2140 if test -n "$GNATBIND"; then
2141 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2142 else
2143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2144 ac_dummy="$PATH"
2145 for ac_dir in $ac_dummy; do
2146 test -z "$ac_dir" && ac_dir=.
2147 if test -f $ac_dir/$ac_word; then
2148 ac_cv_prog_GNATBIND="gnatbind"
2149 break
2151 done
2152 IFS="$ac_save_ifs"
2153 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2156 GNATBIND="$ac_cv_prog_GNATBIND"
2157 if test -n "$GNATBIND"; then
2158 echo "$ac_t""$GNATBIND" 1>&6
2159 else
2160 echo "$ac_t""no" 1>&6
2163 else
2164 GNATBIND="no"
2168 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2169 echo "configure:2170: checking whether compiler driver understands Ada" >&5
2170 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2172 else
2173 cat >conftest.adb <<EOF
2174 procedure conftest is begin null; end conftest;
2176 acx_cv_cc_gcc_supports_ada=no
2177 # There is a bug in old released versions of GCC which causes the
2178 # driver to exit successfully when the appropriate language module
2179 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2180 # Therefore we must check for the error message as well as an
2181 # unsuccessful exit.
2182 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2183 # given a .adb file, but produce no object file. So we must check
2184 # if an object file was really produced to guard against this.
2185 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2186 if test x"$errors" = x && test -f conftest.$ac_objext; then
2187 acx_cv_cc_gcc_supports_ada=yes
2189 rm -f conftest.*
2192 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2194 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2195 have_gnat=yes
2196 else
2197 have_gnat=no
2200 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2201 echo "configure:2202: checking how to compare bootstrapped objects" >&5
2202 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2204 else
2205 echo abfoo >t1
2206 echo cdfoo >t2
2207 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2208 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2209 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2211 else
2212 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2215 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2216 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2218 else
2219 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2222 rm t1 t2
2226 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2227 do_compare="$gcc_cv_prog_cmp_skip"
2231 # Check for GMP and MPFR
2232 gmplibs=
2233 gmpinc=
2234 have_gmp=yes
2235 # Specify a location for mpfr
2236 # check for this first so it ends up on the link line before gmp.
2237 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2238 if test "${with_mpfr_dir+set}" = set; then
2239 withval="$with_mpfr_dir"
2244 if test "x$with_mpfr_dir" != x; then
2245 gmpinc="-I$with_mpfr_dir"
2246 gmplibs="$with_mpfr_dir/libmpfr.a"
2247 else
2248 gmplibs="-lmpfr"
2251 # Check whether --with-mpfr or --without-mpfr was given.
2252 if test "${with_mpfr+set}" = set; then
2253 withval="$with_mpfr"
2258 if test "x$with_mpfr" != x; then
2259 gmplibs="-L$with_mpfr/lib $gmplibs"
2260 gmpinc="-I$with_mpfr/include"
2263 # Specify a location for gmp
2264 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2265 if test "${with_gmp_dir+set}" = set; then
2266 withval="$with_gmp_dir"
2271 if test "x$with_gmp_dir" != x; then
2272 gmpinc="$gmpinc -I$with_gmp_dir"
2273 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2274 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2275 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2276 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2278 # One of the later tests will catch the error if neither library is present.
2279 else
2280 gmplibs="$gmplibs -lgmp"
2283 # Check whether --with-gmp or --without-gmp was given.
2284 if test "${with_gmp+set}" = set; then
2285 withval="$with_gmp"
2290 if test "x$with_gmp" != x; then
2291 gmplibs="-L$with_gmp/lib $gmplibs"
2292 gmpinc="-I$with_gmp/include $gmpinc"
2295 saved_CFLAGS="$CFLAGS"
2296 CFLAGS="$CFLAGS $gmpinc"
2297 # Check GMP actually works
2298 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2299 echo "configure:2300: checking for correct version of gmp.h" >&5
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 #include "gmp.h"
2304 int main() {
2306 #if __GNU_MP_VERSION < 3
2307 choke me
2308 #endif
2310 ; return 0; }
2312 if { (eval echo configure:2313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2313 rm -rf conftest*
2314 echo "$ac_t""yes" 1>&6
2315 else
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2318 rm -rf conftest*
2319 echo "$ac_t""no" 1>&6; have_gmp=no
2321 rm -f conftest*
2323 if test x"$have_gmp" = xyes; then
2324 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2325 echo "configure:2326: checking for MPFR" >&5
2327 saved_LIBS="$LIBS"
2328 LIBS="$LIBS $gmplibs"
2329 cat > conftest.$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2332 #include <gmp.h>
2333 #include <mpfr.h>
2334 int main() {
2335 mpfr_t n; mpfr_init(n);
2336 ; return 0; }
2338 if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2339 rm -rf conftest*
2340 echo "$ac_t""yes" 1>&6
2341 else
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2344 rm -rf conftest*
2345 echo "$ac_t""no" 1>&6; have_gmp=no
2347 rm -f conftest*
2348 LIBS="$saved_LIBS"
2349 CFLAGS="$saved_CFLAGS"
2352 # Flags needed for both GMP and/or MPFR
2356 # By default, C is the only stage 1 language.
2357 stage1_languages=c
2360 # Figure out what language subdirectories are present.
2361 # Look if the user specified --enable-languages="..."; if not, use
2362 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2363 # go away some day.
2364 # NB: embedded tabs in this IF block -- do not untabify
2365 if test -d ${srcdir}/gcc; then
2366 if test x"${enable_languages+set}" != xset; then
2367 if test x"${LANGUAGES+set}" = xset; then
2368 enable_languages="${LANGUAGES}"
2369 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2370 else
2371 enable_languages=all
2373 else
2374 if test x"${enable_languages}" = x ||
2375 test x"${enable_languages}" = xyes;
2376 then
2377 echo configure.in: --enable-languages needs at least one language argument 1>&2
2378 exit 1
2381 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2383 # 'f95' is the old name for the 'fortran' language. We issue a warning
2384 # and make the substitution.
2385 case ,${enable_languages}, in
2386 *,f95,*)
2387 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2388 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2390 esac
2392 # First scan to see if an enabled language requires some other language.
2393 # We assume that a given config-lang.in will list all the language
2394 # front ends it requires, even if some are required indirectly.
2395 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2396 case ${lang_frag} in
2397 ..) ;;
2398 # The odd quoting in the next line works around
2399 # an apparent bug in bash 1.12 on linux.
2400 ${srcdir}/gcc/[*]/config-lang.in) ;;
2402 # From the config-lang.in, get $language, $lang_requires
2403 language=
2404 lang_requires=
2405 . ${lang_frag}
2406 for other in ${lang_requires} ; do
2407 case ,${enable_languages}, in
2408 *,$other,*) ;;
2409 *,all,*) ;;
2410 *,$language,*)
2411 echo " \`$other' language required by \`$language'; enabling" 1>&2
2412 enable_languages="${enable_languages},${other}"
2414 esac
2415 done
2417 esac
2418 done
2420 new_enable_languages=c
2421 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2422 potential_languages=c
2424 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2425 case ${lang_frag} in
2426 ..) ;;
2427 # The odd quoting in the next line works around
2428 # an apparent bug in bash 1.12 on linux.
2429 ${srcdir}/gcc/[*]/config-lang.in) ;;
2431 # From the config-lang.in, get $language, $target_libs,
2432 # $lang_dirs, $boot_language, and $build_by_default
2433 language=
2434 target_libs=
2435 lang_dirs=
2436 boot_language=
2437 build_by_default=
2438 need_gmp=
2439 . ${lang_frag}
2440 potential_languages="${potential_languages},${language}"
2441 # This is quite sensitive to the ordering of the case statement arms.
2442 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2443 *::*:*)
2444 echo "${lang_frag} doesn't set \$language." 1>&2
2445 exit 1
2447 *:ada:no:*)
2448 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2449 add_this_lang=no
2451 *,${language},*:*:*:*)
2452 # Language was explicitly selected; include it.
2453 add_this_lang=yes
2455 *,all,*:*:*:no)
2456 # 'all' was selected, but this is not a default language
2457 # so do not include it.
2458 add_this_lang=no
2460 *,all,*:*:*:*)
2461 # 'all' was selected and this is a default language; include it.
2462 add_this_lang=yes
2465 add_this_lang=no
2467 esac
2469 # Disable languages that need GMP if it isn't available.
2470 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2471 *,${language},*:no:yes)
2472 # Specifically requested language; tell them.
2473 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2475 *:no:yes)
2476 # Silently disable.
2477 add_this_lang=no
2479 esac
2481 # Disable a language that is unsupported by the target.
2482 case " $unsupported_languages " in
2483 *" $language "*)
2484 add_this_lang=no
2486 esac
2488 case $add_this_lang in
2490 # Remove language-dependent dirs.
2491 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2494 new_enable_languages="$new_enable_languages,$language"
2495 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2496 case ${boot_language} in
2497 yes)
2498 # Add to (comma-separated) list of stage 1 languages.
2499 stage1_languages="${stage1_languages},${language}"
2501 esac
2503 esac
2505 esac
2506 done
2508 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2509 if test "x$missing_languages" != x; then
2510 { echo "configure: error:
2511 The following requested languages could not be built: ${missing_languages}
2512 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2515 if test "x$new_enable_languages" != "x$enable_languages"; then
2516 echo The following languages will be built: ${new_enable_languages}
2518 enable_languages="$new_enable_languages"
2519 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2522 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2523 # $build_configdirs and $target_configdirs.
2524 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2526 notsupp=""
2527 for dir in . $skipdirs $noconfigdirs ; do
2528 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2529 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2530 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2531 if test -r $srcdir/$dirname/configure ; then
2532 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2533 true
2534 else
2535 notsupp="$notsupp $dir"
2539 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2540 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2541 if test -r $srcdir/$dirname/configure ; then
2542 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2543 true
2544 else
2545 notsupp="$notsupp $dir"
2549 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2550 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2551 if test -r $srcdir/$dirname/configure ; then
2552 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2553 true
2554 else
2555 notsupp="$notsupp $dir"
2559 done
2561 # Sometimes the tools are distributed with libiberty but with no other
2562 # libraries. In that case, we don't want to build target-libiberty.
2563 if test -n "${target_configdirs}" ; then
2564 others=
2565 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2566 if test "$i" != "libiberty" ; then
2567 if test -r $srcdir/$i/configure ; then
2568 others=yes;
2569 break;
2572 done
2573 if test -z "${others}" ; then
2574 target_configdirs=
2578 # Quietly strip out all directories which aren't configurable in this tree.
2579 # This relies on all configurable subdirectories being autoconfiscated, which
2580 # is now the case.
2581 build_configdirs_all="$build_configdirs"
2582 build_configdirs=
2583 for i in ${build_configdirs_all} ; do
2584 j=`echo $i | sed -e s/build-//g`
2585 if test -f ${srcdir}/$j/configure ; then
2586 build_configdirs="${build_configdirs} $i"
2588 done
2590 configdirs_all="$configdirs"
2591 configdirs=
2592 for i in ${configdirs_all} ; do
2593 if test -f ${srcdir}/$i/configure ; then
2594 configdirs="${configdirs} $i"
2596 done
2598 target_configdirs_all="$target_configdirs"
2599 target_configdirs=
2600 for i in ${target_configdirs_all} ; do
2601 j=`echo $i | sed -e s/target-//g`
2602 if test -f ${srcdir}/$j/configure ; then
2603 target_configdirs="${target_configdirs} $i"
2605 done
2607 # Produce a warning message for the subdirs we can't configure.
2608 # This isn't especially interesting in the Cygnus tree, but in the individual
2609 # FSF releases, it's important to let people know when their machine isn't
2610 # supported by the one or two programs in a package.
2612 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2613 # If $appdirs is non-empty, at least one of those directories must still
2614 # be configured, or we error out. (E.g., if the gas release supports a
2615 # specified target in some subdirs but not the gas subdir, we shouldn't
2616 # pretend that all is well.)
2617 if test -n "$appdirs" ; then
2618 for dir in $appdirs ; do
2619 if test -r $dir/Makefile.in ; then
2620 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2621 appdirs=""
2622 break
2624 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2625 appdirs=""
2626 break
2629 done
2630 if test -n "$appdirs" ; then
2631 echo "*** This configuration is not supported by this package." 1>&2
2632 exit 1
2635 # Okay, some application will build, or we don't care to check. Still
2636 # notify of subdirs not getting built.
2637 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2638 echo " ${notsupp}" 1>&2
2639 echo " (Any other directories should still work fine.)" 1>&2
2642 case "$host" in
2643 *msdosdjgpp*)
2644 enable_gdbtk=no ;;
2645 esac
2647 copy_dirs=
2649 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2650 if test "${with_build_sysroot+set}" = set; then
2651 withval="$with_build_sysroot"
2652 if test x"$withval" != x ; then
2653 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2655 else
2656 SYSROOT_CFLAGS_FOR_TARGET=
2661 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2662 # the named directory are copied to $(tooldir)/sys-include.
2663 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2664 if test x${is_cross_compiler} = xno ; then
2665 echo 1>&2 '***' --with-headers is only supported when cross compiling
2666 exit 1
2668 if test x"${with_headers}" != xyes ; then
2669 case "${exec_prefixoption}" in
2670 "") x=${prefix} ;;
2671 *) x=${exec_prefix} ;;
2672 esac
2673 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2677 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2678 # the name directories are copied to $(tooldir)/lib. Multiple directories
2679 # are permitted.
2680 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2681 if test x${is_cross_compiler} = xno ; then
2682 echo 1>&2 '***' --with-libs is only supported when cross compiling
2683 exit 1
2685 if test x"${with_libs}" != xyes ; then
2686 # Copy the libraries in reverse order, so that files in the first named
2687 # library override files in subsequent libraries.
2688 case "${exec_prefixoption}" in
2689 "") x=${prefix} ;;
2690 *) x=${exec_prefix} ;;
2691 esac
2692 for l in ${with_libs}; do
2693 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2694 done
2698 # Handle ${copy_dirs}
2699 set fnord ${copy_dirs}
2700 shift
2701 while test $# != 0 ; do
2702 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2704 else
2705 echo Copying $1 to $2
2707 # Use the install script to create the directory and all required
2708 # parent directories.
2709 if test -d $2 ; then
2711 else
2712 echo >config.temp
2713 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2716 # Copy the directory, assuming we have tar.
2717 # FIXME: Should we use B in the second tar? Not all systems support it.
2718 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2720 # It is the responsibility of the user to correctly adjust all
2721 # symlinks. If somebody can figure out how to handle them correctly
2722 # here, feel free to add the code.
2724 echo $1 > $2/COPIED
2726 shift; shift
2727 done
2729 extra_arflags_for_target=
2730 extra_nmflags_for_target=
2731 extra_ranlibflags_for_target=
2732 target_makefile_frag=/dev/null
2733 case "${target}" in
2734 *-*-netware*)
2735 target_makefile_frag="config/mt-netware"
2737 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2738 target_makefile_frag="config/mt-gnu"
2740 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2741 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2742 # commands to handle both 32-bit and 64-bit objects. These flags are
2743 # harmless if we're using GNU nm or ar.
2744 extra_arflags_for_target=" -X32_64"
2745 extra_nmflags_for_target=" -B -X32_64"
2747 *-*-darwin*)
2748 # ranlib from Darwin requires the -c flag to look at common symbols.
2749 extra_ranlibflags_for_target=" -c"
2751 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2752 target_makefile_frag="config/mt-wince"
2754 esac
2756 alphaieee_frag=/dev/null
2757 case $target in
2758 alpha*-*-*)
2759 # This just makes sure to use the -mieee option to build target libs.
2760 # This should probably be set individually by each library.
2761 alphaieee_frag="config/mt-alphaieee"
2763 esac
2765 # If --enable-target-optspace always use -Os instead of -O2 to build
2766 # the target libraries, similarly if it is not specified, use -Os
2767 # on selected platforms.
2768 ospace_frag=/dev/null
2769 case "${enable_target_optspace}:${target}" in
2770 yes:*)
2771 ospace_frag="config/mt-ospace"
2773 :d30v-*)
2774 ospace_frag="config/mt-d30v"
2776 :m32r-* | :d10v-* | :fr30-*)
2777 ospace_frag="config/mt-ospace"
2779 no:* | :*)
2782 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2784 esac
2786 # Set with_gnu_as and with_gnu_ld as appropriate.
2788 # This is done by determining whether or not the appropriate directory
2789 # is available, and by checking whether or not specific configurations
2790 # have requested that this magic not happen.
2792 # The command line options always override the explicit settings in
2793 # configure.in, and the settings in configure.in override this magic.
2795 # If the default for a toolchain is to use GNU as and ld, and you don't
2796 # want to do that, then you should use the --without-gnu-as and
2797 # --without-gnu-ld options for the configure script.
2799 if test x${use_gnu_as} = x &&
2800 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2801 with_gnu_as=yes
2802 extra_host_args="$extra_host_args --with-gnu-as"
2805 if test x${use_gnu_ld} = x &&
2806 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2807 with_gnu_ld=yes
2808 extra_host_args="$extra_host_args --with-gnu-ld"
2811 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2812 # can detect this case.
2814 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2815 with_newlib=yes
2816 extra_host_args="$extra_host_args --with-newlib"
2819 # Default to using --with-stabs for certain targets.
2820 if test x${with_stabs} = x ; then
2821 case "${target}" in
2822 mips*-*-irix[56]*)
2824 mips*-*-* | alpha*-*-osf*)
2825 with_stabs=yes;
2826 extra_host_args="${extra_host_args} --with-stabs"
2828 esac
2831 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2832 # them automatically.
2833 case "${host}" in
2834 hppa*64*-*-hpux11*)
2835 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2837 esac
2839 # Some systems (e.g., one of the i386-aix systems the gas testers are
2840 # using) don't handle "\$" correctly, so don't use it here.
2841 tooldir='${exec_prefix}'/${target_alias}
2842 build_tooldir=${tooldir}
2844 # Generate default definitions for YACC, M4, LEX and other programs that run
2845 # on the build machine. These are used if the Makefile can't locate these
2846 # programs in objdir.
2847 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2848 for ac_prog in bison
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy $ac_prog; ac_word=$2
2852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2853 echo "configure:2854: checking for $ac_word" >&5
2854 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2856 else
2857 if test -n "$CONFIGURED_BISON"; then
2858 ac_cv_prog_CONFIGURED_BISON="$CONFIGURED_BISON" # Let the user override the test.
2859 else
2860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2861 ac_dummy="$PATH"
2862 for ac_dir in $ac_dummy; do
2863 test -z "$ac_dir" && ac_dir=.
2864 if test -f $ac_dir/$ac_word; then
2865 ac_cv_prog_CONFIGURED_BISON="$ac_prog"
2866 break
2868 done
2869 IFS="$ac_save_ifs"
2872 CONFIGURED_BISON="$ac_cv_prog_CONFIGURED_BISON"
2873 if test -n "$CONFIGURED_BISON"; then
2874 echo "$ac_t""$CONFIGURED_BISON" 1>&6
2875 else
2876 echo "$ac_t""no" 1>&6
2879 test -n "$CONFIGURED_BISON" && break
2880 done
2881 test -n "$CONFIGURED_BISON" || CONFIGURED_BISON="$MISSING bison"
2883 for ac_prog in 'bison -y' byacc yacc
2885 # Extract the first word of "$ac_prog", so it can be a program name with args.
2886 set dummy $ac_prog; ac_word=$2
2887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2888 echo "configure:2889: checking for $ac_word" >&5
2889 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2891 else
2892 if test -n "$CONFIGURED_YACC"; then
2893 ac_cv_prog_CONFIGURED_YACC="$CONFIGURED_YACC" # Let the user override the test.
2894 else
2895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2896 ac_dummy="$PATH"
2897 for ac_dir in $ac_dummy; do
2898 test -z "$ac_dir" && ac_dir=.
2899 if test -f $ac_dir/$ac_word; then
2900 ac_cv_prog_CONFIGURED_YACC="$ac_prog"
2901 break
2903 done
2904 IFS="$ac_save_ifs"
2907 CONFIGURED_YACC="$ac_cv_prog_CONFIGURED_YACC"
2908 if test -n "$CONFIGURED_YACC"; then
2909 echo "$ac_t""$CONFIGURED_YACC" 1>&6
2910 else
2911 echo "$ac_t""no" 1>&6
2914 test -n "$CONFIGURED_YACC" && break
2915 done
2916 test -n "$CONFIGURED_YACC" || CONFIGURED_YACC="$MISSING bison -y"
2918 for ac_prog in gm4 gnum4 m4
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy $ac_prog; ac_word=$2
2922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2923 echo "configure:2924: checking for $ac_word" >&5
2924 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2926 else
2927 if test -n "$CONFIGURED_M4"; then
2928 ac_cv_prog_CONFIGURED_M4="$CONFIGURED_M4" # Let the user override the test.
2929 else
2930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2931 ac_dummy="$PATH"
2932 for ac_dir in $ac_dummy; do
2933 test -z "$ac_dir" && ac_dir=.
2934 if test -f $ac_dir/$ac_word; then
2935 ac_cv_prog_CONFIGURED_M4="$ac_prog"
2936 break
2938 done
2939 IFS="$ac_save_ifs"
2942 CONFIGURED_M4="$ac_cv_prog_CONFIGURED_M4"
2943 if test -n "$CONFIGURED_M4"; then
2944 echo "$ac_t""$CONFIGURED_M4" 1>&6
2945 else
2946 echo "$ac_t""no" 1>&6
2949 test -n "$CONFIGURED_M4" && break
2950 done
2951 test -n "$CONFIGURED_M4" || CONFIGURED_M4="$MISSING m4"
2953 for ac_prog in flex
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2958 echo "configure:2959: checking for $ac_word" >&5
2959 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2961 else
2962 if test -n "$CONFIGURED_FLEX"; then
2963 ac_cv_prog_CONFIGURED_FLEX="$CONFIGURED_FLEX" # Let the user override the test.
2964 else
2965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2966 ac_dummy="$PATH"
2967 for ac_dir in $ac_dummy; do
2968 test -z "$ac_dir" && ac_dir=.
2969 if test -f $ac_dir/$ac_word; then
2970 ac_cv_prog_CONFIGURED_FLEX="$ac_prog"
2971 break
2973 done
2974 IFS="$ac_save_ifs"
2977 CONFIGURED_FLEX="$ac_cv_prog_CONFIGURED_FLEX"
2978 if test -n "$CONFIGURED_FLEX"; then
2979 echo "$ac_t""$CONFIGURED_FLEX" 1>&6
2980 else
2981 echo "$ac_t""no" 1>&6
2984 test -n "$CONFIGURED_FLEX" && break
2985 done
2986 test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX="$MISSING flex"
2988 for ac_prog in flex lex
2990 # Extract the first word of "$ac_prog", so it can be a program name with args.
2991 set dummy $ac_prog; ac_word=$2
2992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2993 echo "configure:2994: checking for $ac_word" >&5
2994 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2996 else
2997 if test -n "$CONFIGURED_LEX"; then
2998 ac_cv_prog_CONFIGURED_LEX="$CONFIGURED_LEX" # Let the user override the test.
2999 else
3000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3001 ac_dummy="$PATH"
3002 for ac_dir in $ac_dummy; do
3003 test -z "$ac_dir" && ac_dir=.
3004 if test -f $ac_dir/$ac_word; then
3005 ac_cv_prog_CONFIGURED_LEX="$ac_prog"
3006 break
3008 done
3009 IFS="$ac_save_ifs"
3012 CONFIGURED_LEX="$ac_cv_prog_CONFIGURED_LEX"
3013 if test -n "$CONFIGURED_LEX"; then
3014 echo "$ac_t""$CONFIGURED_LEX" 1>&6
3015 else
3016 echo "$ac_t""no" 1>&6
3019 test -n "$CONFIGURED_LEX" && break
3020 done
3021 test -n "$CONFIGURED_LEX" || CONFIGURED_LEX="$MISSING flex"
3023 for ac_prog in makeinfo
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3028 echo "configure:3029: checking for $ac_word" >&5
3029 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3031 else
3032 if test -n "$CONFIGURED_MAKEINFO"; then
3033 ac_cv_prog_CONFIGURED_MAKEINFO="$CONFIGURED_MAKEINFO" # Let the user override the test.
3034 else
3035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3036 ac_dummy="$PATH"
3037 for ac_dir in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if test -f $ac_dir/$ac_word; then
3040 ac_cv_prog_CONFIGURED_MAKEINFO="$ac_prog"
3041 break
3043 done
3044 IFS="$ac_save_ifs"
3047 CONFIGURED_MAKEINFO="$ac_cv_prog_CONFIGURED_MAKEINFO"
3048 if test -n "$CONFIGURED_MAKEINFO"; then
3049 echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6
3050 else
3051 echo "$ac_t""no" 1>&6
3054 test -n "$CONFIGURED_MAKEINFO" && break
3055 done
3056 test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO="$MISSING makeinfo"
3059 # Create a .gdbinit file which runs the one in srcdir
3060 # and tells GDB to look there for source files.
3062 if test -r ${srcdir}/.gdbinit ; then
3063 case ${srcdir} in
3064 .) ;;
3065 *) cat > ./.gdbinit <<EOF
3066 # ${NO_EDIT}
3067 dir ${srcdir}
3068 dir .
3069 source ${srcdir}/.gdbinit
3072 esac
3075 # Make sure that the compiler is able to generate an executable. If it
3076 # can't, we are probably in trouble. We don't care whether we can run the
3077 # executable--we might be using a cross compiler--we only care whether it
3078 # can be created. At this point the main configure script has set CC.
3079 we_are_ok=no
3080 echo "int main () { return 0; }" > conftest.c
3081 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3082 if test $? = 0 ; then
3083 if test -s conftest || test -s conftest.exe ; then
3084 we_are_ok=yes
3087 case $we_are_ok in
3089 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3090 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3091 rm -f conftest*
3092 exit 1
3094 esac
3095 rm -f conftest*
3097 # The Solaris /usr/ucb/cc compiler does not appear to work.
3098 case "${host}" in
3099 sparc-sun-solaris2*)
3100 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
3101 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3102 could_use=
3103 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
3104 if test -d /opt/cygnus/bin ; then
3105 if test "$could_use" = "" ; then
3106 could_use="/opt/cygnus/bin"
3107 else
3108 could_use="$could_use or /opt/cygnus/bin"
3111 if test "$could_use" = "" ; then
3112 echo "Warning: compilation may fail because you're using"
3113 echo "/usr/ucb/cc. You should change your PATH or CC "
3114 echo "variable and rerun configure."
3115 else
3116 echo "Warning: compilation may fail because you're using"
3117 echo "/usr/ucb/cc, when you should use the C compiler from"
3118 echo "$could_use. You should change your"
3119 echo "PATH or CC variable and rerun configure."
3123 esac
3125 case "${host}" in
3126 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3127 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3128 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
3129 esac
3131 # Record target_configdirs and the configure arguments for target and
3132 # build configuration in Makefile.
3133 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3134 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3136 # Determine whether gdb needs tk/tcl or not.
3137 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3138 # and in that case we want gdb to be built without tk. Ugh!
3139 # In fact I believe gdb is the *only* package directly dependent on tk,
3140 # so we should be able to put the 'maybe's in unconditionally and
3141 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3142 # 100% sure that that's safe though.
3144 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3145 case "$enable_gdbtk" in
3147 GDB_TK="" ;;
3148 yes)
3149 GDB_TK="${gdb_tk}" ;;
3151 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3152 # distro. Eventually someone will fix this and move Insight, nee
3153 # gdbtk to a separate directory.
3154 if test -d ${srcdir}/gdb/gdbtk ; then
3155 GDB_TK="${gdb_tk}"
3156 else
3157 GDB_TK=""
3160 esac
3162 # Strip out unwanted targets.
3164 # While at that, we remove Makefiles if we were started for recursive
3165 # configuration, so that the top-level Makefile reconfigures them,
3166 # like we used to do when configure itself was recursive.
3168 # Loop over modules. $extrasub must be used with care, limiting as
3169 # much as possible the usage of range addresses. That's because autoconf
3170 # splits the sed script to overcome limits in the number of commands,
3171 # and relying on carefully-timed sed passes may turn out to be very hard
3172 # to maintain later. In this particular case, you just have to be careful
3173 # not to nest @if/@endif pairs, because configure will not warn you at all.
3175 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3176 if test "${enable_bootstrap+set}" = set; then
3177 enableval="$enable_bootstrap"
3179 else
3180 enable_bootstrap=default
3184 # Issue errors and warnings for invalid/strange bootstrap combinations.
3185 case "$configdirs" in
3186 *gcc*) have_compiler=yes ;;
3187 *) have_compiler=no ;;
3188 esac
3190 case "$have_compiler:$host:$target:$enable_bootstrap" in
3191 *:*:*:no) ;;
3193 # Default behavior. (We'll) enable bootstrap if we have a compiler
3194 # and we are in a native configuration.
3195 yes:$build:$build:default)
3196 # This will become 'yes'
3197 enable_bootstrap=no ;;
3199 *:*:*:default)
3200 enable_bootstrap=no ;;
3202 # We have a compiler and we are in a native configuration, bootstrap is ok
3203 yes:$build:$build:yes | yes:$build:$build:lean)
3206 # Other configurations, but we have a compiler. Assume the user knows
3207 # what he's doing.
3208 yes:*:*:yes | yes:*:*:lean)
3209 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3212 # No compiler: if they passed --enable-bootstrap explicitly, fail
3213 no:*:*:yes | no:*:*:lean)
3214 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3216 # Fail if wrong command line
3218 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3220 esac
3222 # Adjust the toplevel makefile according to whether bootstrap was selected.
3223 case "$enable_bootstrap" in
3224 yes)
3225 bootstrap_lean='#'
3226 bootstrap_suffix=bootstrap ;;
3227 lean)
3228 bootstrap_lean=''
3229 bootstrap_suffix=bootstrap ;;
3231 bootstrap_suffix=no-bootstrap ;;
3232 esac
3235 for module in ${build_configdirs} ; do
3236 if test -z "${no_recursion}" \
3237 && test -f ${build_subdir}/${module}/Makefile; then
3238 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3239 rm -f ${build_subdir}/${module}/Makefile
3241 extrasub="$extrasub
3242 /^@if build-$module\$/d
3243 /^@endif build-$module\$/d
3244 /^@if build-$module-$bootstrap_suffix\$/d
3245 /^@endif build-$module-$bootstrap_suffix\$/d"
3246 done
3247 for module in ${configdirs} ; do
3248 if test -z "${no_recursion}" \
3249 && test -f ${module}/Makefile; then
3250 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3251 rm -f ${module}/Makefile
3253 extrasub="$extrasub
3254 /^@if $module\$/d
3255 /^@endif $module\$/d
3256 /^@if $module-$bootstrap_suffix\$/d
3257 /^@endif $module-$bootstrap_suffix\$/d"
3258 done
3259 for module in ${target_configdirs} ; do
3260 if test -z "${no_recursion}" \
3261 && test -f ${target_subdir}/${module}/Makefile; then
3262 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3263 rm -f ${target_subdir}/${module}/Makefile
3265 extrasub="$extrasub
3266 /^@if target-$module\$/d
3267 /^@endif target-$module\$/d
3268 /^@if target-$module-$bootstrap_suffix\$/d
3269 /^@endif target-$module-$bootstrap_suffix\$/d"
3270 done
3272 extrasub="$extrasub
3273 /^@if /,/^@endif /d"
3275 # Create the serialization dependencies. This uses a temporary file.
3277 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3278 if test "${enable_serial_configure+set}" = set; then
3279 enableval="$enable_serial_configure"
3284 case ${enable_serial_configure} in
3285 yes)
3286 enable_serial_build_configure=yes
3287 enable_serial_host_configure=yes
3288 enable_serial_target_configure=yes
3290 esac
3292 # These force 'configure's to be done one at a time, to avoid problems
3293 # with contention over a shared config.cache.
3294 rm -f serdep.tmp
3295 echo '# serdep.tmp' > serdep.tmp
3296 olditem=
3297 test "x${enable_serial_build_configure}" = xyes &&
3298 for item in ${build_configdirs} ; do
3299 case ${olditem} in
3300 "") ;;
3301 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3302 esac
3303 olditem=${item}
3304 done
3305 olditem=
3306 test "x${enable_serial_host_configure}" = xyes &&
3307 for item in ${configdirs} ; do
3308 case ${olditem} in
3309 "") ;;
3310 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3311 esac
3312 olditem=${item}
3313 done
3314 olditem=
3315 test "x${enable_serial_target_configure}" = xyes &&
3316 for item in ${target_configdirs} ; do
3317 case ${olditem} in
3318 "") ;;
3319 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3320 esac
3321 olditem=${item}
3322 done
3323 serialization_dependencies=serdep.tmp
3326 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3327 # target and nonopt. These are the ones we might not want to pass
3328 # down to subconfigures. Also strip program-prefix, program-suffix,
3329 # and program-transform-name, so that we can pass down a consistent
3330 # program-transform-name. If autoconf has put single quotes around
3331 # any of these arguments (because they contain shell metacharacters)
3332 # then this will fail; in practice this only happens for
3333 # --program-transform-name, so be sure to override --program-transform-name
3334 # at the end of the argument list.
3335 # These will be expanded by make, so quote '$'.
3336 cat <<\EOF_SED > conftestsed
3337 s/ --no[^ ]*/ /g
3338 s/ --c[a-z-]*[= ][^ ]*//g
3339 s/ --sr[a-z-]*[= ][^ ]*//g
3340 s/ --ho[a-z-]*[= ][^ ]*//g
3341 s/ --bu[a-z-]*[= ][^ ]*//g
3342 s/ --t[a-z-]*[= ][^ ]*//g
3343 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3344 s/ -cache-file[= ][^ ]*//g
3345 s/ -srcdir[= ][^ ]*//g
3346 s/ -host[= ][^ ]*//g
3347 s/ -build[= ][^ ]*//g
3348 s/ -target[= ][^ ]*//g
3349 s/ -program-prefix[= ][^ ]*//g
3350 s/ -program-suffix[= ][^ ]*//g
3351 s/ -program-transform-name[= ][^ ]*//g
3352 s/ [^' -][^ ]* / /
3353 s/^ *//;s/ *$//
3354 s,\$,$$,g
3355 EOF_SED
3356 sed -f conftestsed <<EOF_SED > conftestsed.out
3357 ${ac_configure_args}
3358 EOF_SED
3359 baseargs=`cat conftestsed.out`
3360 rm -f conftestsed conftestsed.out
3362 # Add in --program-transform-name, after --program-prefix and
3363 # --program-suffix have been applied to it. Autoconf has already
3364 # doubled dollar signs and backslashes in program_transform_name; we want
3365 # the backslashes un-doubled, and then the entire thing wrapped in single
3366 # quotes, because this will be expanded first by make and then by the shell.
3367 # Also, because we want to override the logic in subdir configure scripts to
3368 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3369 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3370 ${program_transform_name}
3371 EOF_SED
3372 gcc_transform_name=`cat conftestsed.out`
3373 rm -f conftestsed.out
3374 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3376 # For the build-side libraries, we just need to pretend we're native,
3377 # and not use the same cache file. Multilibs are neither needed nor
3378 # desired.
3379 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3381 # For host modules, accept cache file option, or specification as blank.
3382 case "${cache_file}" in
3383 "") # empty
3384 cache_file_option="" ;;
3385 /* | [A-Za-z]:[\\/]* ) # absolute path
3386 cache_file_option="--cache-file=${cache_file}" ;;
3387 *) # relative path
3388 cache_file_option="--cache-file=../${cache_file}" ;;
3389 esac
3391 # Host dirs don't like to share a cache file either, horribly enough.
3392 # This seems to be due to autoconf 2.5x stupidity.
3393 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3395 target_configargs=${baseargs}
3397 # Passing a --with-cross-host argument lets the target libraries know
3398 # whether they are being built with a cross-compiler or being built
3399 # native. However, it would be better to use other mechanisms to make the
3400 # sorts of decisions they want to make on this basis. Please consider
3401 # this option to be deprecated. FIXME.
3402 if test x${is_cross_compiler} = xyes ; then
3403 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3406 # Default to --enable-multilib.
3407 if test x${enable_multilib} = x ; then
3408 target_configargs="--enable-multilib ${target_configargs}"
3411 # Pass --with-newlib if appropriate. Note that target_configdirs has
3412 # changed from the earlier setting of with_newlib.
3413 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3414 target_configargs="--with-newlib ${target_configargs}"
3417 # Different target subdirs use different values of certain variables
3418 # (notably CXX). Worse, multilibs use *lots* of different values.
3419 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3420 # it doesn't automatically accept command-line overrides of them.
3421 # This means it's not safe for target subdirs to share a cache file,
3422 # which is disgusting, but there you have it. Hopefully this can be
3423 # fixed in future. It's still worthwhile to use a cache file for each
3424 # directory. I think.
3426 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3427 # We need to pass --target, as newer autoconf's requires consistency
3428 # for target_alias and gcc doesn't manage it consistently.
3429 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3431 FLAGS_FOR_TARGET=
3432 case " $target_configdirs " in
3433 *" newlib "*)
3434 case " $target_configargs " in
3435 *" --with-newlib "*)
3436 case "$target" in
3437 *-cygwin*)
3438 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' ;;
3439 esac
3441 # If we're not building GCC, don't discard standard headers.
3442 if test -d ${srcdir}/gcc; then
3443 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3445 if test "${build}" != "${host}"; then
3446 # On Canadian crosses, CC_FOR_TARGET will have already been set
3447 # by `configure', so we won't have an opportunity to add -Bgcc/
3448 # to it. This is right: we don't want to search that directory
3449 # for binaries, but we want the header files in there, so add
3450 # them explicitly.
3451 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3453 # Someone might think of using the pre-installed headers on
3454 # Canadian crosses, in case the installed compiler is not fully
3455 # compatible with the compiler being built. In this case, it
3456 # would be better to flag an error than risking having
3457 # incompatible object files being constructed. We can't
3458 # guarantee that an error will be flagged, but let's hope the
3459 # compiler will do it, when presented with incompatible header
3460 # files.
3464 case "${target}-${is_cross_compiler}" in
3465 i[3456789]86-*-linux*-no)
3466 # Here host == target, so we don't need to build gcc,
3467 # so we don't want to discard standard headers.
3468 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3471 # If we're building newlib, use its generic headers last, but search
3472 # for any libc-related directories first (so make it the last -B
3473 # switch).
3474 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3476 esac
3478 esac
3480 esac
3482 # Allow the user to override the flags for
3483 # our build compiler if desired.
3484 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3486 # On Canadian crosses, we'll be searching the right directories for
3487 # the previously-installed cross compiler, so don't bother to add
3488 # flags for directories within the install tree of the compiler
3489 # being built; programs in there won't even run.
3490 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3491 # Search for pre-installed headers if nothing else fits.
3492 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3495 if test "x${use_gnu_ld}" = x &&
3496 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3497 # Arrange for us to find uninstalled linker scripts.
3498 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3501 # Makefile fragments.
3502 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3504 eval fragval=\$$frag
3505 if test $fragval != /dev/null; then
3506 eval $frag=${srcdir}/$fragval
3508 done
3514 # Miscellanea: directories, flags, etc.
3522 # Build module lists & subconfigure args.
3526 # Host module lists & subconfigure args.
3530 # Target module lists & subconfigure args.
3534 # Build tools.
3538 # Host tools.
3539 ncn_tool_prefix=
3540 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3541 ncn_target_tool_prefix=
3542 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3544 for ncn_progname in ar; do
3545 if test -n "$ncn_tool_prefix"; then
3546 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3547 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3549 echo "configure:3550: checking for $ac_word" >&5
3550 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3552 else
3553 if test -n "$AR"; then
3554 ac_cv_prog_AR="$AR" # Let the user override the test.
3555 else
3556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3557 ac_dummy="$PATH"
3558 for ac_dir in $ac_dummy; do
3559 test -z "$ac_dir" && ac_dir=.
3560 if test -f $ac_dir/$ac_word; then
3561 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3562 break
3564 done
3565 IFS="$ac_save_ifs"
3568 AR="$ac_cv_prog_AR"
3569 if test -n "$AR"; then
3570 echo "$ac_t""$AR" 1>&6
3571 else
3572 echo "$ac_t""no" 1>&6
3576 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3578 set dummy ${ncn_progname}; ac_word=$2
3579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3580 echo "configure:3581: checking for $ac_word" >&5
3581 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3583 else
3584 if test -n "$AR"; then
3585 ac_cv_prog_AR="$AR" # Let the user override the test.
3586 else
3587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3588 ac_dummy="$PATH"
3589 for ac_dir in $ac_dummy; do
3590 test -z "$ac_dir" && ac_dir=.
3591 if test -f $ac_dir/$ac_word; then
3592 ac_cv_prog_AR="${ncn_progname}"
3593 break
3595 done
3596 IFS="$ac_save_ifs"
3599 AR="$ac_cv_prog_AR"
3600 if test -n "$AR"; then
3601 echo "$ac_t""$AR" 1>&6
3602 else
3603 echo "$ac_t""no" 1>&6
3607 test -n "$ac_cv_prog_AR" && break
3608 done
3610 if test -z "$ac_cv_prog_AR" ; then
3611 set dummy ar
3612 if test $build = $host ; then
3613 AR="$2"
3614 else
3615 AR="${ncn_tool_prefix}$2"
3619 for ncn_progname in as; do
3620 if test -n "$ncn_tool_prefix"; then
3621 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3622 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3624 echo "configure:3625: checking for $ac_word" >&5
3625 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3627 else
3628 if test -n "$AS"; then
3629 ac_cv_prog_AS="$AS" # Let the user override the test.
3630 else
3631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3632 ac_dummy="$PATH"
3633 for ac_dir in $ac_dummy; do
3634 test -z "$ac_dir" && ac_dir=.
3635 if test -f $ac_dir/$ac_word; then
3636 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3637 break
3639 done
3640 IFS="$ac_save_ifs"
3643 AS="$ac_cv_prog_AS"
3644 if test -n "$AS"; then
3645 echo "$ac_t""$AS" 1>&6
3646 else
3647 echo "$ac_t""no" 1>&6
3651 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3653 set dummy ${ncn_progname}; ac_word=$2
3654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3655 echo "configure:3656: checking for $ac_word" >&5
3656 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3658 else
3659 if test -n "$AS"; then
3660 ac_cv_prog_AS="$AS" # Let the user override the test.
3661 else
3662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3663 ac_dummy="$PATH"
3664 for ac_dir in $ac_dummy; do
3665 test -z "$ac_dir" && ac_dir=.
3666 if test -f $ac_dir/$ac_word; then
3667 ac_cv_prog_AS="${ncn_progname}"
3668 break
3670 done
3671 IFS="$ac_save_ifs"
3674 AS="$ac_cv_prog_AS"
3675 if test -n "$AS"; then
3676 echo "$ac_t""$AS" 1>&6
3677 else
3678 echo "$ac_t""no" 1>&6
3682 test -n "$ac_cv_prog_AS" && break
3683 done
3685 if test -z "$ac_cv_prog_AS" ; then
3686 set dummy as
3687 if test $build = $host ; then
3688 AS="$2"
3689 else
3690 AS="${ncn_tool_prefix}$2"
3694 for ncn_progname in dlltool; do
3695 if test -n "$ncn_tool_prefix"; then
3696 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3697 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3699 echo "configure:3700: checking for $ac_word" >&5
3700 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3702 else
3703 if test -n "$DLLTOOL"; then
3704 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3705 else
3706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3707 ac_dummy="$PATH"
3708 for ac_dir in $ac_dummy; do
3709 test -z "$ac_dir" && ac_dir=.
3710 if test -f $ac_dir/$ac_word; then
3711 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3712 break
3714 done
3715 IFS="$ac_save_ifs"
3718 DLLTOOL="$ac_cv_prog_DLLTOOL"
3719 if test -n "$DLLTOOL"; then
3720 echo "$ac_t""$DLLTOOL" 1>&6
3721 else
3722 echo "$ac_t""no" 1>&6
3726 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3728 set dummy ${ncn_progname}; ac_word=$2
3729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3730 echo "configure:3731: checking for $ac_word" >&5
3731 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3733 else
3734 if test -n "$DLLTOOL"; then
3735 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3736 else
3737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3738 ac_dummy="$PATH"
3739 for ac_dir in $ac_dummy; do
3740 test -z "$ac_dir" && ac_dir=.
3741 if test -f $ac_dir/$ac_word; then
3742 ac_cv_prog_DLLTOOL="${ncn_progname}"
3743 break
3745 done
3746 IFS="$ac_save_ifs"
3749 DLLTOOL="$ac_cv_prog_DLLTOOL"
3750 if test -n "$DLLTOOL"; then
3751 echo "$ac_t""$DLLTOOL" 1>&6
3752 else
3753 echo "$ac_t""no" 1>&6
3757 test -n "$ac_cv_prog_DLLTOOL" && break
3758 done
3760 if test -z "$ac_cv_prog_DLLTOOL" ; then
3761 set dummy dlltool
3762 if test $build = $host ; then
3763 DLLTOOL="$2"
3764 else
3765 DLLTOOL="${ncn_tool_prefix}$2"
3769 for ncn_progname in ld; do
3770 if test -n "$ncn_tool_prefix"; then
3771 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3772 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3774 echo "configure:3775: checking for $ac_word" >&5
3775 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3777 else
3778 if test -n "$LD"; then
3779 ac_cv_prog_LD="$LD" # Let the user override the test.
3780 else
3781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3782 ac_dummy="$PATH"
3783 for ac_dir in $ac_dummy; do
3784 test -z "$ac_dir" && ac_dir=.
3785 if test -f $ac_dir/$ac_word; then
3786 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3787 break
3789 done
3790 IFS="$ac_save_ifs"
3793 LD="$ac_cv_prog_LD"
3794 if test -n "$LD"; then
3795 echo "$ac_t""$LD" 1>&6
3796 else
3797 echo "$ac_t""no" 1>&6
3801 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
3802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3803 set dummy ${ncn_progname}; ac_word=$2
3804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3805 echo "configure:3806: checking for $ac_word" >&5
3806 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3808 else
3809 if test -n "$LD"; then
3810 ac_cv_prog_LD="$LD" # Let the user override the test.
3811 else
3812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3813 ac_dummy="$PATH"
3814 for ac_dir in $ac_dummy; do
3815 test -z "$ac_dir" && ac_dir=.
3816 if test -f $ac_dir/$ac_word; then
3817 ac_cv_prog_LD="${ncn_progname}"
3818 break
3820 done
3821 IFS="$ac_save_ifs"
3824 LD="$ac_cv_prog_LD"
3825 if test -n "$LD"; then
3826 echo "$ac_t""$LD" 1>&6
3827 else
3828 echo "$ac_t""no" 1>&6
3832 test -n "$ac_cv_prog_LD" && break
3833 done
3835 if test -z "$ac_cv_prog_LD" ; then
3836 set dummy ld
3837 if test $build = $host ; then
3838 LD="$2"
3839 else
3840 LD="${ncn_tool_prefix}$2"
3844 for ncn_progname in nm; do
3845 if test -n "$ncn_tool_prefix"; then
3846 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3847 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3849 echo "configure:3850: checking for $ac_word" >&5
3850 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3852 else
3853 if test -n "$NM"; then
3854 ac_cv_prog_NM="$NM" # Let the user override the test.
3855 else
3856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3857 ac_dummy="$PATH"
3858 for ac_dir in $ac_dummy; do
3859 test -z "$ac_dir" && ac_dir=.
3860 if test -f $ac_dir/$ac_word; then
3861 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
3862 break
3864 done
3865 IFS="$ac_save_ifs"
3868 NM="$ac_cv_prog_NM"
3869 if test -n "$NM"; then
3870 echo "$ac_t""$NM" 1>&6
3871 else
3872 echo "$ac_t""no" 1>&6
3876 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
3877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3878 set dummy ${ncn_progname}; ac_word=$2
3879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3880 echo "configure:3881: checking for $ac_word" >&5
3881 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3883 else
3884 if test -n "$NM"; then
3885 ac_cv_prog_NM="$NM" # Let the user override the test.
3886 else
3887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3888 ac_dummy="$PATH"
3889 for ac_dir in $ac_dummy; do
3890 test -z "$ac_dir" && ac_dir=.
3891 if test -f $ac_dir/$ac_word; then
3892 ac_cv_prog_NM="${ncn_progname}"
3893 break
3895 done
3896 IFS="$ac_save_ifs"
3899 NM="$ac_cv_prog_NM"
3900 if test -n "$NM"; then
3901 echo "$ac_t""$NM" 1>&6
3902 else
3903 echo "$ac_t""no" 1>&6
3907 test -n "$ac_cv_prog_NM" && break
3908 done
3910 if test -z "$ac_cv_prog_NM" ; then
3911 set dummy nm
3912 if test $build = $host ; then
3913 NM="$2"
3914 else
3915 NM="${ncn_tool_prefix}$2"
3919 for ncn_progname in ranlib; do
3920 if test -n "$ncn_tool_prefix"; then
3921 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3922 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3924 echo "configure:3925: checking for $ac_word" >&5
3925 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3927 else
3928 if test -n "$RANLIB"; then
3929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3930 else
3931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3932 ac_dummy="$PATH"
3933 for ac_dir in $ac_dummy; do
3934 test -z "$ac_dir" && ac_dir=.
3935 if test -f $ac_dir/$ac_word; then
3936 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
3937 break
3939 done
3940 IFS="$ac_save_ifs"
3943 RANLIB="$ac_cv_prog_RANLIB"
3944 if test -n "$RANLIB"; then
3945 echo "$ac_t""$RANLIB" 1>&6
3946 else
3947 echo "$ac_t""no" 1>&6
3951 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
3952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3953 set dummy ${ncn_progname}; ac_word=$2
3954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3955 echo "configure:3956: checking for $ac_word" >&5
3956 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3958 else
3959 if test -n "$RANLIB"; then
3960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3961 else
3962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3963 ac_dummy="$PATH"
3964 for ac_dir in $ac_dummy; do
3965 test -z "$ac_dir" && ac_dir=.
3966 if test -f $ac_dir/$ac_word; then
3967 ac_cv_prog_RANLIB="${ncn_progname}"
3968 break
3970 done
3971 IFS="$ac_save_ifs"
3974 RANLIB="$ac_cv_prog_RANLIB"
3975 if test -n "$RANLIB"; then
3976 echo "$ac_t""$RANLIB" 1>&6
3977 else
3978 echo "$ac_t""no" 1>&6
3982 test -n "$ac_cv_prog_RANLIB" && break
3983 done
3985 if test -z "$ac_cv_prog_RANLIB" ; then
3986 RANLIB=":"
3989 for ncn_progname in windres; do
3990 if test -n "$ncn_tool_prefix"; then
3991 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3992 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3994 echo "configure:3995: checking for $ac_word" >&5
3995 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3996 echo $ac_n "(cached) $ac_c" 1>&6
3997 else
3998 if test -n "$WINDRES"; then
3999 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4000 else
4001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4002 ac_dummy="$PATH"
4003 for ac_dir in $ac_dummy; do
4004 test -z "$ac_dir" && ac_dir=.
4005 if test -f $ac_dir/$ac_word; then
4006 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4007 break
4009 done
4010 IFS="$ac_save_ifs"
4013 WINDRES="$ac_cv_prog_WINDRES"
4014 if test -n "$WINDRES"; then
4015 echo "$ac_t""$WINDRES" 1>&6
4016 else
4017 echo "$ac_t""no" 1>&6
4021 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4023 set dummy ${ncn_progname}; ac_word=$2
4024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4025 echo "configure:4026: checking for $ac_word" >&5
4026 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4027 echo $ac_n "(cached) $ac_c" 1>&6
4028 else
4029 if test -n "$WINDRES"; then
4030 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4031 else
4032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4033 ac_dummy="$PATH"
4034 for ac_dir in $ac_dummy; do
4035 test -z "$ac_dir" && ac_dir=.
4036 if test -f $ac_dir/$ac_word; then
4037 ac_cv_prog_WINDRES="${ncn_progname}"
4038 break
4040 done
4041 IFS="$ac_save_ifs"
4044 WINDRES="$ac_cv_prog_WINDRES"
4045 if test -n "$WINDRES"; then
4046 echo "$ac_t""$WINDRES" 1>&6
4047 else
4048 echo "$ac_t""no" 1>&6
4052 test -n "$ac_cv_prog_WINDRES" && break
4053 done
4055 if test -z "$ac_cv_prog_WINDRES" ; then
4056 set dummy windres
4057 if test $build = $host ; then
4058 WINDRES="$2"
4059 else
4060 WINDRES="${ncn_tool_prefix}$2"
4064 for ncn_progname in objcopy; do
4065 if test -n "$ncn_tool_prefix"; then
4066 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4067 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4069 echo "configure:4070: checking for $ac_word" >&5
4070 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4072 else
4073 if test -n "$OBJCOPY"; then
4074 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4075 else
4076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4077 ac_dummy="$PATH"
4078 for ac_dir in $ac_dummy; do
4079 test -z "$ac_dir" && ac_dir=.
4080 if test -f $ac_dir/$ac_word; then
4081 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4082 break
4084 done
4085 IFS="$ac_save_ifs"
4088 OBJCOPY="$ac_cv_prog_OBJCOPY"
4089 if test -n "$OBJCOPY"; then
4090 echo "$ac_t""$OBJCOPY" 1>&6
4091 else
4092 echo "$ac_t""no" 1>&6
4096 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4098 set dummy ${ncn_progname}; ac_word=$2
4099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4100 echo "configure:4101: checking for $ac_word" >&5
4101 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4103 else
4104 if test -n "$OBJCOPY"; then
4105 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4106 else
4107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4108 ac_dummy="$PATH"
4109 for ac_dir in $ac_dummy; do
4110 test -z "$ac_dir" && ac_dir=.
4111 if test -f $ac_dir/$ac_word; then
4112 ac_cv_prog_OBJCOPY="${ncn_progname}"
4113 break
4115 done
4116 IFS="$ac_save_ifs"
4119 OBJCOPY="$ac_cv_prog_OBJCOPY"
4120 if test -n "$OBJCOPY"; then
4121 echo "$ac_t""$OBJCOPY" 1>&6
4122 else
4123 echo "$ac_t""no" 1>&6
4127 test -n "$ac_cv_prog_OBJCOPY" && break
4128 done
4130 if test -z "$ac_cv_prog_OBJCOPY" ; then
4131 set dummy objcopy
4132 if test $build = $host ; then
4133 OBJCOPY="$2"
4134 else
4135 OBJCOPY="${ncn_tool_prefix}$2"
4139 for ncn_progname in objdump; do
4140 if test -n "$ncn_tool_prefix"; then
4141 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4142 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4144 echo "configure:4145: checking for $ac_word" >&5
4145 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4147 else
4148 if test -n "$OBJDUMP"; then
4149 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4150 else
4151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4152 ac_dummy="$PATH"
4153 for ac_dir in $ac_dummy; do
4154 test -z "$ac_dir" && ac_dir=.
4155 if test -f $ac_dir/$ac_word; then
4156 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4157 break
4159 done
4160 IFS="$ac_save_ifs"
4163 OBJDUMP="$ac_cv_prog_OBJDUMP"
4164 if test -n "$OBJDUMP"; then
4165 echo "$ac_t""$OBJDUMP" 1>&6
4166 else
4167 echo "$ac_t""no" 1>&6
4171 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4173 set dummy ${ncn_progname}; ac_word=$2
4174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4175 echo "configure:4176: checking for $ac_word" >&5
4176 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4177 echo $ac_n "(cached) $ac_c" 1>&6
4178 else
4179 if test -n "$OBJDUMP"; then
4180 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4181 else
4182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4183 ac_dummy="$PATH"
4184 for ac_dir in $ac_dummy; do
4185 test -z "$ac_dir" && ac_dir=.
4186 if test -f $ac_dir/$ac_word; then
4187 ac_cv_prog_OBJDUMP="${ncn_progname}"
4188 break
4190 done
4191 IFS="$ac_save_ifs"
4194 OBJDUMP="$ac_cv_prog_OBJDUMP"
4195 if test -n "$OBJDUMP"; then
4196 echo "$ac_t""$OBJDUMP" 1>&6
4197 else
4198 echo "$ac_t""no" 1>&6
4202 test -n "$ac_cv_prog_OBJDUMP" && break
4203 done
4205 if test -z "$ac_cv_prog_OBJDUMP" ; then
4206 set dummy objdump
4207 if test $build = $host ; then
4208 OBJDUMP="$2"
4209 else
4210 OBJDUMP="${ncn_tool_prefix}$2"
4220 # Target tools. Do the tests using the names they may have passed in
4221 # the environment, then move it to CONFIGURED_*_FOR_TARGET.
4222 for ncn_progname in ar; do
4223 if test -n "$ncn_target_tool_prefix"; then
4224 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4225 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4227 echo "configure:4228: checking for $ac_word" >&5
4228 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4230 else
4231 if test -n "$AR_FOR_TARGET"; then
4232 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4233 else
4234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4235 ac_dummy="$PATH"
4236 for ac_dir in $ac_dummy; do
4237 test -z "$ac_dir" && ac_dir=.
4238 if test -f $ac_dir/$ac_word; then
4239 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4240 break
4242 done
4243 IFS="$ac_save_ifs"
4246 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4247 if test -n "$AR_FOR_TARGET"; then
4248 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4249 else
4250 echo "$ac_t""no" 1>&6
4254 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
4255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4256 set dummy ${ncn_progname}; ac_word=$2
4257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4258 echo "configure:4259: checking for $ac_word" >&5
4259 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4261 else
4262 if test -n "$AR_FOR_TARGET"; then
4263 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4264 else
4265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4266 ac_dummy="$PATH"
4267 for ac_dir in $ac_dummy; do
4268 test -z "$ac_dir" && ac_dir=.
4269 if test -f $ac_dir/$ac_word; then
4270 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
4271 break
4273 done
4274 IFS="$ac_save_ifs"
4277 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4278 if test -n "$AR_FOR_TARGET"; then
4279 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4280 else
4281 echo "$ac_t""no" 1>&6
4285 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
4286 done
4288 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
4289 set dummy ar
4290 if test $build = $target ; then
4291 AR_FOR_TARGET="$2"
4292 else
4293 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
4297 for ncn_progname in as; do
4298 if test -n "$ncn_target_tool_prefix"; then
4299 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4300 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4302 echo "configure:4303: checking for $ac_word" >&5
4303 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4305 else
4306 if test -n "$AS_FOR_TARGET"; then
4307 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4308 else
4309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4310 ac_dummy="$PATH"
4311 for ac_dir in $ac_dummy; do
4312 test -z "$ac_dir" && ac_dir=.
4313 if test -f $ac_dir/$ac_word; then
4314 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4315 break
4317 done
4318 IFS="$ac_save_ifs"
4321 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4322 if test -n "$AS_FOR_TARGET"; then
4323 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4324 else
4325 echo "$ac_t""no" 1>&6
4329 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
4330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4331 set dummy ${ncn_progname}; ac_word=$2
4332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4333 echo "configure:4334: checking for $ac_word" >&5
4334 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4336 else
4337 if test -n "$AS_FOR_TARGET"; then
4338 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4339 else
4340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4341 ac_dummy="$PATH"
4342 for ac_dir in $ac_dummy; do
4343 test -z "$ac_dir" && ac_dir=.
4344 if test -f $ac_dir/$ac_word; then
4345 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
4346 break
4348 done
4349 IFS="$ac_save_ifs"
4352 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4353 if test -n "$AS_FOR_TARGET"; then
4354 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4355 else
4356 echo "$ac_t""no" 1>&6
4360 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
4361 done
4363 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
4364 set dummy as
4365 if test $build = $target ; then
4366 AS_FOR_TARGET="$2"
4367 else
4368 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4372 for ncn_progname in cc gcc; do
4373 if test -n "$ncn_target_tool_prefix"; then
4374 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4375 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4377 echo "configure:4378: checking for $ac_word" >&5
4378 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4380 else
4381 if test -n "$CC_FOR_TARGET"; then
4382 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4383 else
4384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4385 ac_dummy="$PATH"
4386 for ac_dir in $ac_dummy; do
4387 test -z "$ac_dir" && ac_dir=.
4388 if test -f $ac_dir/$ac_word; then
4389 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4390 break
4392 done
4393 IFS="$ac_save_ifs"
4396 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4397 if test -n "$CC_FOR_TARGET"; then
4398 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4399 else
4400 echo "$ac_t""no" 1>&6
4404 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4406 set dummy ${ncn_progname}; ac_word=$2
4407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4408 echo "configure:4409: checking for $ac_word" >&5
4409 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4411 else
4412 if test -n "$CC_FOR_TARGET"; then
4413 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4414 else
4415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4416 ac_dummy="$PATH"
4417 for ac_dir in $ac_dummy; do
4418 test -z "$ac_dir" && ac_dir=.
4419 if test -f $ac_dir/$ac_word; then
4420 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4421 break
4423 done
4424 IFS="$ac_save_ifs"
4427 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4428 if test -n "$CC_FOR_TARGET"; then
4429 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4430 else
4431 echo "$ac_t""no" 1>&6
4435 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4436 done
4438 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4439 set dummy cc gcc
4440 if test $build = $target ; then
4441 CC_FOR_TARGET="$2"
4442 else
4443 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4447 for ncn_progname in c++ g++ cxx gxx; do
4448 if test -n "$ncn_target_tool_prefix"; then
4449 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4450 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4452 echo "configure:4453: checking for $ac_word" >&5
4453 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4455 else
4456 if test -n "$CXX_FOR_TARGET"; then
4457 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4458 else
4459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4460 ac_dummy="$PATH"
4461 for ac_dir in $ac_dummy; do
4462 test -z "$ac_dir" && ac_dir=.
4463 if test -f $ac_dir/$ac_word; then
4464 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4465 break
4467 done
4468 IFS="$ac_save_ifs"
4471 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4472 if test -n "$CXX_FOR_TARGET"; then
4473 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4474 else
4475 echo "$ac_t""no" 1>&6
4479 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4481 set dummy ${ncn_progname}; ac_word=$2
4482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4483 echo "configure:4484: checking for $ac_word" >&5
4484 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6
4486 else
4487 if test -n "$CXX_FOR_TARGET"; then
4488 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4489 else
4490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4491 ac_dummy="$PATH"
4492 for ac_dir in $ac_dummy; do
4493 test -z "$ac_dir" && ac_dir=.
4494 if test -f $ac_dir/$ac_word; then
4495 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4496 break
4498 done
4499 IFS="$ac_save_ifs"
4502 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4503 if test -n "$CXX_FOR_TARGET"; then
4504 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4505 else
4506 echo "$ac_t""no" 1>&6
4510 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4511 done
4513 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4514 set dummy c++ g++ cxx gxx
4515 if test $build = $target ; then
4516 CXX_FOR_TARGET="$2"
4517 else
4518 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4522 for ncn_progname in dlltool; do
4523 if test -n "$ncn_target_tool_prefix"; then
4524 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4525 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4527 echo "configure:4528: checking for $ac_word" >&5
4528 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4530 else
4531 if test -n "$DLLTOOL_FOR_TARGET"; then
4532 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4533 else
4534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4535 ac_dummy="$PATH"
4536 for ac_dir in $ac_dummy; do
4537 test -z "$ac_dir" && ac_dir=.
4538 if test -f $ac_dir/$ac_word; then
4539 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4540 break
4542 done
4543 IFS="$ac_save_ifs"
4546 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4547 if test -n "$DLLTOOL_FOR_TARGET"; then
4548 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4549 else
4550 echo "$ac_t""no" 1>&6
4554 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
4555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4556 set dummy ${ncn_progname}; ac_word=$2
4557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4558 echo "configure:4559: checking for $ac_word" >&5
4559 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4560 echo $ac_n "(cached) $ac_c" 1>&6
4561 else
4562 if test -n "$DLLTOOL_FOR_TARGET"; then
4563 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4564 else
4565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4566 ac_dummy="$PATH"
4567 for ac_dir in $ac_dummy; do
4568 test -z "$ac_dir" && ac_dir=.
4569 if test -f $ac_dir/$ac_word; then
4570 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
4571 break
4573 done
4574 IFS="$ac_save_ifs"
4577 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4578 if test -n "$DLLTOOL_FOR_TARGET"; then
4579 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4580 else
4581 echo "$ac_t""no" 1>&6
4585 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
4586 done
4588 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
4589 set dummy dlltool
4590 if test $build = $target ; then
4591 DLLTOOL_FOR_TARGET="$2"
4592 else
4593 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
4597 for ncn_progname in gcc; do
4598 if test -n "$ncn_target_tool_prefix"; then
4599 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4600 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4602 echo "configure:4603: checking for $ac_word" >&5
4603 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4605 else
4606 if test -n "$GCC_FOR_TARGET"; then
4607 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4608 else
4609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4610 ac_dummy="$PATH"
4611 for ac_dir in $ac_dummy; do
4612 test -z "$ac_dir" && ac_dir=.
4613 if test -f $ac_dir/$ac_word; then
4614 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4615 break
4617 done
4618 IFS="$ac_save_ifs"
4621 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4622 if test -n "$GCC_FOR_TARGET"; then
4623 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4624 else
4625 echo "$ac_t""no" 1>&6
4629 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4631 set dummy ${ncn_progname}; ac_word=$2
4632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4633 echo "configure:4634: checking for $ac_word" >&5
4634 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4635 echo $ac_n "(cached) $ac_c" 1>&6
4636 else
4637 if test -n "$GCC_FOR_TARGET"; then
4638 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4639 else
4640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4641 ac_dummy="$PATH"
4642 for ac_dir in $ac_dummy; do
4643 test -z "$ac_dir" && ac_dir=.
4644 if test -f $ac_dir/$ac_word; then
4645 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4646 break
4648 done
4649 IFS="$ac_save_ifs"
4652 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4653 if test -n "$GCC_FOR_TARGET"; then
4654 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4655 else
4656 echo "$ac_t""no" 1>&6
4660 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4661 done
4663 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4664 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4667 for ncn_progname in gcj; do
4668 if test -n "$ncn_target_tool_prefix"; then
4669 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4670 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4672 echo "configure:4673: checking for $ac_word" >&5
4673 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4675 else
4676 if test -n "$GCJ_FOR_TARGET"; then
4677 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4678 else
4679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4680 ac_dummy="$PATH"
4681 for ac_dir in $ac_dummy; do
4682 test -z "$ac_dir" && ac_dir=.
4683 if test -f $ac_dir/$ac_word; then
4684 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4685 break
4687 done
4688 IFS="$ac_save_ifs"
4691 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4692 if test -n "$GCJ_FOR_TARGET"; then
4693 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4694 else
4695 echo "$ac_t""no" 1>&6
4699 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4701 set dummy ${ncn_progname}; ac_word=$2
4702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4703 echo "configure:4704: checking for $ac_word" >&5
4704 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4706 else
4707 if test -n "$GCJ_FOR_TARGET"; then
4708 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4709 else
4710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4711 ac_dummy="$PATH"
4712 for ac_dir in $ac_dummy; do
4713 test -z "$ac_dir" && ac_dir=.
4714 if test -f $ac_dir/$ac_word; then
4715 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4716 break
4718 done
4719 IFS="$ac_save_ifs"
4722 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4723 if test -n "$GCJ_FOR_TARGET"; then
4724 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4725 else
4726 echo "$ac_t""no" 1>&6
4730 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4731 done
4733 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4734 set dummy gcj
4735 if test $build = $target ; then
4736 GCJ_FOR_TARGET="$2"
4737 else
4738 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4742 for ncn_progname in gfortran; do
4743 if test -n "$ncn_target_tool_prefix"; then
4744 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4745 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4747 echo "configure:4748: checking for $ac_word" >&5
4748 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4749 echo $ac_n "(cached) $ac_c" 1>&6
4750 else
4751 if test -n "$GFORTRAN_FOR_TARGET"; then
4752 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4753 else
4754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4755 ac_dummy="$PATH"
4756 for ac_dir in $ac_dummy; do
4757 test -z "$ac_dir" && ac_dir=.
4758 if test -f $ac_dir/$ac_word; then
4759 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4760 break
4762 done
4763 IFS="$ac_save_ifs"
4766 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4767 if test -n "$GFORTRAN_FOR_TARGET"; then
4768 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4769 else
4770 echo "$ac_t""no" 1>&6
4774 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4776 set dummy ${ncn_progname}; ac_word=$2
4777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4778 echo "configure:4779: checking for $ac_word" >&5
4779 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4781 else
4782 if test -n "$GFORTRAN_FOR_TARGET"; then
4783 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4784 else
4785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4786 ac_dummy="$PATH"
4787 for ac_dir in $ac_dummy; do
4788 test -z "$ac_dir" && ac_dir=.
4789 if test -f $ac_dir/$ac_word; then
4790 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
4791 break
4793 done
4794 IFS="$ac_save_ifs"
4797 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4798 if test -n "$GFORTRAN_FOR_TARGET"; then
4799 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4800 else
4801 echo "$ac_t""no" 1>&6
4805 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
4806 done
4808 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
4809 set dummy gfortran
4810 if test $build = $target ; then
4811 GFORTRAN_FOR_TARGET="$2"
4812 else
4813 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
4817 for ncn_progname in ld; do
4818 if test -n "$ncn_target_tool_prefix"; then
4819 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4820 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4822 echo "configure:4823: checking for $ac_word" >&5
4823 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4824 echo $ac_n "(cached) $ac_c" 1>&6
4825 else
4826 if test -n "$LD_FOR_TARGET"; then
4827 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4828 else
4829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4830 ac_dummy="$PATH"
4831 for ac_dir in $ac_dummy; do
4832 test -z "$ac_dir" && ac_dir=.
4833 if test -f $ac_dir/$ac_word; then
4834 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4835 break
4837 done
4838 IFS="$ac_save_ifs"
4841 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4842 if test -n "$LD_FOR_TARGET"; then
4843 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4844 else
4845 echo "$ac_t""no" 1>&6
4849 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
4850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4851 set dummy ${ncn_progname}; ac_word=$2
4852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4853 echo "configure:4854: checking for $ac_word" >&5
4854 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4856 else
4857 if test -n "$LD_FOR_TARGET"; then
4858 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4859 else
4860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4861 ac_dummy="$PATH"
4862 for ac_dir in $ac_dummy; do
4863 test -z "$ac_dir" && ac_dir=.
4864 if test -f $ac_dir/$ac_word; then
4865 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
4866 break
4868 done
4869 IFS="$ac_save_ifs"
4872 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4873 if test -n "$LD_FOR_TARGET"; then
4874 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4875 else
4876 echo "$ac_t""no" 1>&6
4880 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
4881 done
4883 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
4884 set dummy ld
4885 if test $build = $target ; then
4886 LD_FOR_TARGET="$2"
4887 else
4888 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
4892 for ncn_progname in lipo; do
4893 if test -n "$ncn_target_tool_prefix"; then
4894 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4895 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4897 echo "configure:4898: checking for $ac_word" >&5
4898 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6
4900 else
4901 if test -n "$LIPO_FOR_TARGET"; then
4902 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
4903 else
4904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4905 ac_dummy="$PATH"
4906 for ac_dir in $ac_dummy; do
4907 test -z "$ac_dir" && ac_dir=.
4908 if test -f $ac_dir/$ac_word; then
4909 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4910 break
4912 done
4913 IFS="$ac_save_ifs"
4916 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
4917 if test -n "$LIPO_FOR_TARGET"; then
4918 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
4919 else
4920 echo "$ac_t""no" 1>&6
4924 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
4925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4926 set dummy ${ncn_progname}; ac_word=$2
4927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4928 echo "configure:4929: checking for $ac_word" >&5
4929 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
4930 echo $ac_n "(cached) $ac_c" 1>&6
4931 else
4932 if test -n "$LIPO_FOR_TARGET"; then
4933 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
4934 else
4935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4936 ac_dummy="$PATH"
4937 for ac_dir in $ac_dummy; do
4938 test -z "$ac_dir" && ac_dir=.
4939 if test -f $ac_dir/$ac_word; then
4940 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
4941 break
4943 done
4944 IFS="$ac_save_ifs"
4947 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
4948 if test -n "$LIPO_FOR_TARGET"; then
4949 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
4950 else
4951 echo "$ac_t""no" 1>&6
4955 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
4956 done
4958 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
4959 set dummy lipo
4960 if test $build = $target ; then
4961 LIPO_FOR_TARGET="$2"
4962 else
4963 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
4967 for ncn_progname in nm; do
4968 if test -n "$ncn_target_tool_prefix"; then
4969 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4970 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4972 echo "configure:4973: checking for $ac_word" >&5
4973 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4975 else
4976 if test -n "$NM_FOR_TARGET"; then
4977 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
4978 else
4979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4980 ac_dummy="$PATH"
4981 for ac_dir in $ac_dummy; do
4982 test -z "$ac_dir" && ac_dir=.
4983 if test -f $ac_dir/$ac_word; then
4984 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4985 break
4987 done
4988 IFS="$ac_save_ifs"
4991 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
4992 if test -n "$NM_FOR_TARGET"; then
4993 echo "$ac_t""$NM_FOR_TARGET" 1>&6
4994 else
4995 echo "$ac_t""no" 1>&6
4999 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5001 set dummy ${ncn_progname}; ac_word=$2
5002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5003 echo "configure:5004: checking for $ac_word" >&5
5004 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5005 echo $ac_n "(cached) $ac_c" 1>&6
5006 else
5007 if test -n "$NM_FOR_TARGET"; then
5008 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5009 else
5010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5011 ac_dummy="$PATH"
5012 for ac_dir in $ac_dummy; do
5013 test -z "$ac_dir" && ac_dir=.
5014 if test -f $ac_dir/$ac_word; then
5015 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5016 break
5018 done
5019 IFS="$ac_save_ifs"
5022 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5023 if test -n "$NM_FOR_TARGET"; then
5024 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5025 else
5026 echo "$ac_t""no" 1>&6
5030 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5031 done
5033 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5034 set dummy nm
5035 if test $build = $target ; then
5036 NM_FOR_TARGET="$2"
5037 else
5038 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
5042 for ncn_progname in objdump; do
5043 if test -n "$ncn_target_tool_prefix"; then
5044 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5045 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5046 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5047 echo "configure:5048: checking for $ac_word" >&5
5048 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5049 echo $ac_n "(cached) $ac_c" 1>&6
5050 else
5051 if test -n "$OBJDUMP_FOR_TARGET"; then
5052 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5053 else
5054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5055 ac_dummy="$PATH"
5056 for ac_dir in $ac_dummy; do
5057 test -z "$ac_dir" && ac_dir=.
5058 if test -f $ac_dir/$ac_word; then
5059 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5060 break
5062 done
5063 IFS="$ac_save_ifs"
5066 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5067 if test -n "$OBJDUMP_FOR_TARGET"; then
5068 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5069 else
5070 echo "$ac_t""no" 1>&6
5074 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
5075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5076 set dummy ${ncn_progname}; ac_word=$2
5077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5078 echo "configure:5079: checking for $ac_word" >&5
5079 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6
5081 else
5082 if test -n "$OBJDUMP_FOR_TARGET"; then
5083 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5084 else
5085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5086 ac_dummy="$PATH"
5087 for ac_dir in $ac_dummy; do
5088 test -z "$ac_dir" && ac_dir=.
5089 if test -f $ac_dir/$ac_word; then
5090 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5091 break
5093 done
5094 IFS="$ac_save_ifs"
5097 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5098 if test -n "$OBJDUMP_FOR_TARGET"; then
5099 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5100 else
5101 echo "$ac_t""no" 1>&6
5105 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
5106 done
5108 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
5109 set dummy objdump
5110 if test $build = $target ; then
5111 OBJDUMP_FOR_TARGET="$2"
5112 else
5113 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5117 for ncn_progname in ranlib; do
5118 if test -n "$ncn_target_tool_prefix"; then
5119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5120 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5122 echo "configure:5123: checking for $ac_word" >&5
5123 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5124 echo $ac_n "(cached) $ac_c" 1>&6
5125 else
5126 if test -n "$RANLIB_FOR_TARGET"; then
5127 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5128 else
5129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5130 ac_dummy="$PATH"
5131 for ac_dir in $ac_dummy; do
5132 test -z "$ac_dir" && ac_dir=.
5133 if test -f $ac_dir/$ac_word; then
5134 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5135 break
5137 done
5138 IFS="$ac_save_ifs"
5141 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5142 if test -n "$RANLIB_FOR_TARGET"; then
5143 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5144 else
5145 echo "$ac_t""no" 1>&6
5149 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
5150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5151 set dummy ${ncn_progname}; ac_word=$2
5152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5153 echo "configure:5154: checking for $ac_word" >&5
5154 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5155 echo $ac_n "(cached) $ac_c" 1>&6
5156 else
5157 if test -n "$RANLIB_FOR_TARGET"; then
5158 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5159 else
5160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5161 ac_dummy="$PATH"
5162 for ac_dir in $ac_dummy; do
5163 test -z "$ac_dir" && ac_dir=.
5164 if test -f $ac_dir/$ac_word; then
5165 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5166 break
5168 done
5169 IFS="$ac_save_ifs"
5172 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5173 if test -n "$RANLIB_FOR_TARGET"; then
5174 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5175 else
5176 echo "$ac_t""no" 1>&6
5180 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
5181 done
5183 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
5184 RANLIB_FOR_TARGET=":"
5187 for ncn_progname in strip; do
5188 if test -n "$ncn_target_tool_prefix"; then
5189 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5190 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5192 echo "configure:5193: checking for $ac_word" >&5
5193 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5195 else
5196 if test -n "$STRIP_FOR_TARGET"; then
5197 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5198 else
5199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5200 ac_dummy="$PATH"
5201 for ac_dir in $ac_dummy; do
5202 test -z "$ac_dir" && ac_dir=.
5203 if test -f $ac_dir/$ac_word; then
5204 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5205 break
5207 done
5208 IFS="$ac_save_ifs"
5211 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5212 if test -n "$STRIP_FOR_TARGET"; then
5213 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5214 else
5215 echo "$ac_t""no" 1>&6
5219 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
5220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5221 set dummy ${ncn_progname}; ac_word=$2
5222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5223 echo "configure:5224: checking for $ac_word" >&5
5224 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5226 else
5227 if test -n "$STRIP_FOR_TARGET"; then
5228 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5229 else
5230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5231 ac_dummy="$PATH"
5232 for ac_dir in $ac_dummy; do
5233 test -z "$ac_dir" && ac_dir=.
5234 if test -f $ac_dir/$ac_word; then
5235 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5236 break
5238 done
5239 IFS="$ac_save_ifs"
5242 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5243 if test -n "$STRIP_FOR_TARGET"; then
5244 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5245 else
5246 echo "$ac_t""no" 1>&6
5250 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
5251 done
5253 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
5254 set dummy strip
5255 if test $build = $target ; then
5256 STRIP_FOR_TARGET="$2"
5257 else
5258 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5262 for ncn_progname in windres; do
5263 if test -n "$ncn_target_tool_prefix"; then
5264 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5265 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5267 echo "configure:5268: checking for $ac_word" >&5
5268 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5270 else
5271 if test -n "$WINDRES_FOR_TARGET"; then
5272 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5273 else
5274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5275 ac_dummy="$PATH"
5276 for ac_dir in $ac_dummy; do
5277 test -z "$ac_dir" && ac_dir=.
5278 if test -f $ac_dir/$ac_word; then
5279 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5280 break
5282 done
5283 IFS="$ac_save_ifs"
5286 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5287 if test -n "$WINDRES_FOR_TARGET"; then
5288 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5289 else
5290 echo "$ac_t""no" 1>&6
5294 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
5295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5296 set dummy ${ncn_progname}; ac_word=$2
5297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5298 echo "configure:5299: checking for $ac_word" >&5
5299 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5301 else
5302 if test -n "$WINDRES_FOR_TARGET"; then
5303 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5304 else
5305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5306 ac_dummy="$PATH"
5307 for ac_dir in $ac_dummy; do
5308 test -z "$ac_dir" && ac_dir=.
5309 if test -f $ac_dir/$ac_word; then
5310 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5311 break
5313 done
5314 IFS="$ac_save_ifs"
5317 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5318 if test -n "$WINDRES_FOR_TARGET"; then
5319 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5320 else
5321 echo "$ac_t""no" 1>&6
5325 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
5326 done
5328 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
5329 set dummy windres
5330 if test $build = $target ; then
5331 WINDRES_FOR_TARGET="$2"
5332 else
5333 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
5338 CONFIGURED_AR_FOR_TARGET="$AR_FOR_TARGET"
5339 CONFIGURED_AS_FOR_TARGET="$AS_FOR_TARGET"
5340 CONFIGURED_CC_FOR_TARGET="$CC_FOR_TARGET"
5341 CONFIGURED_CXX_FOR_TARGET="$CXX_FOR_TARGET"
5342 CONFIGURED_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET"
5343 CONFIGURED_GCC_FOR_TARGET="$GCC_FOR_TARGET"
5344 CONFIGURED_GCJ_FOR_TARGET="$GCJ_FOR_TARGET"
5345 CONFIGURED_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET"
5346 CONFIGURED_LD_FOR_TARGET="$LD_FOR_TARGET"
5347 CONFIGURED_LIPO_FOR_TARGET="$LIPO_FOR_TARGET"
5348 CONFIGURED_NM_FOR_TARGET="$NM_FOR_TARGET"
5349 CONFIGURED_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET"
5350 CONFIGURED_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET"
5351 CONFIGURED_STRIP_FOR_TARGET="$STRIP_FOR_TARGET"
5352 CONFIGURED_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET"
5356 # Fix up target tools.
5357 if test "x${build}" = "x${host}" ; then
5358 # In this case, the newly built tools can and should be used,
5359 # so we override the results of the autoconf tests.
5360 # This should really only happen when the tools are actually being built,
5361 # but that's a further refinement. The new build scheme, where
5362 # tools are built into a structure paralleling where they're installed,
5363 # should also eliminate all of this cleanly.
5364 AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)"
5365 AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)"
5366 CC_FOR_TARGET="\$(USUAL_CC_FOR_TARGET)"
5367 CXX_FOR_TARGET="\$(USUAL_CXX_FOR_TARGET)"
5368 RAW_CXX_FOR_TARGET="\$(USUAL_RAW_CXX_FOR_TARGET)"
5369 DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)"
5370 GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
5371 GCJ_FOR_TARGET="\$(USUAL_GCJ_FOR_TARGET)"
5372 GFORTRAN_FOR_TARGET="\$(USUAL_GFORTRAN_FOR_TARGET)"
5373 LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)"
5374 LIPO_FOR_TARGET="\$(USUAL_LIPO_FOR_TARGET)"
5375 NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)"
5376 OBJDUMP_FOR_TARGET="\$(USUAL_OBJDUMP_FOR_TARGET)"
5377 RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)"
5378 STRIP_FOR_TARGET="\$(USUAL_STRIP_FOR_TARGET)"
5379 WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)"
5380 else
5381 # Just use the ones we found.
5382 AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)"
5383 AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)"
5384 CC_FOR_TARGET="\$(CONFIGURED_CC_FOR_TARGET)"
5385 CXX_FOR_TARGET="\$(CONFIGURED_CXX_FOR_TARGET)"
5386 RAW_CXX_FOR_TARGET="\$(CONFIGURED_CXX_FOR_TARGET)"
5387 DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)"
5388 GCC_FOR_TARGET="\$(CONFIGURED_GCC_FOR_TARGET)"
5389 GCJ_FOR_TARGET="\$(CONFIGURED_GCJ_FOR_TARGET)"
5390 GFORTRAN_FOR_TARGET="\$(CONFIGURED_GFORTRAN_FOR_TARGET)"
5391 LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)"
5392 LIPO_FOR_TARGET="\$(CONFIGURED_LIPO_FOR_TARGET)"
5393 NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)"
5394 OBJDUMP_FOR_TARGET="\$(CONFIGURED_OBJDUMP_FOR_TARGET)"
5395 RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)"
5396 STRIP_FOR_TARGET="\$(CONFIGURED_STRIP_FOR_TARGET)"
5397 WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)"
5402 # Certain tools may need extra flags.
5403 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
5404 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
5405 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
5407 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
5408 echo "configure:5409: checking whether to enable maintainer-specific portions of Makefiles" >&5
5409 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5410 if test "${enable_maintainer_mode+set}" = set; then
5411 enableval="$enable_maintainer_mode"
5412 USE_MAINTAINER_MODE=$enableval
5413 else
5414 USE_MAINTAINER_MODE=no
5417 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
5420 if test "$USE_MAINTAINER_MODE" = yes; then
5421 MAINTAINER_MODE_TRUE=
5422 MAINTAINER_MODE_FALSE='#'
5423 else
5424 MAINTAINER_MODE_TRUE='#'
5425 MAINTAINER_MODE_FALSE=
5427 MAINT=$MAINTAINER_MODE_TRUE
5429 # ---------------------
5430 # GCC bootstrap support
5431 # ---------------------
5433 # Stage specific cflags for build.
5434 stage1_cflags="-g"
5435 case $build in
5436 vax-*-*)
5437 case ${GCC} in
5438 yes) stage1_cflags="-g -Wa,-J" ;;
5439 *) stage1_cflags="-g -J" ;;
5440 esac ;;
5441 powerpc-*-darwin*)
5442 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
5443 # sources; use -no-cpp-precomp to get to GNU cpp.
5444 # Apple's GCC has bugs in designated initializer handling, so disable
5445 # that too.
5446 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
5448 esac
5451 # It makes debugging easier if we create as symlinks the stage directories
5452 # gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not
5453 # possible, however, we can resort to mv.
5454 echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6
5455 echo "configure:5456: checking if symbolic links between directories work" >&5
5456 if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
5457 echo $ac_n "(cached) $ac_c" 1>&6
5458 else
5459 if test "${LN_S}" = "ln -s" \
5460 && mkdir confdir.s1 \
5461 && ln -s confdir.s1 confdir.s2 \
5462 && echo timestamp1 > confdir.s1/conftest.1 \
5463 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
5464 && echo timestamp2 > confdir.s2/conftest.2 \
5465 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
5466 && rm -f confdir.s2; then
5467 gcc_cv_prog_ln_s_dir=yes
5468 else
5469 gcc_cv_prog_ln_s_dir=no
5471 rm -rf confdir.s1 confdir.s2
5474 echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
5476 case ${gcc_cv_prog_ln_s_dir} in
5477 yes)
5478 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
5479 UNDO_LINK_TO_DIR='rm -f $$1' ;;
5481 CREATE_LINK_TO_DIR='mv $$1 $$2'
5482 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
5483 esac
5487 # Enable -Werror in bootstrap stage2 and later.
5488 # Change the default to "no" on release branches.
5489 # Check whether --enable-werror or --disable-werror was given.
5490 if test "${enable_werror+set}" = set; then
5491 enableval="$enable_werror"
5493 else
5494 enable_werror=yes
5497 case ${enable_werror} in
5498 yes) stage2_werror_flag="--enable-werror-always" ;;
5499 *) stage2_werror_flag="" ;;
5500 esac
5503 trap '' 1 2 15
5504 cat > confcache <<\EOF
5505 # This file is a shell script that caches the results of configure
5506 # tests run on this system so they can be shared between configure
5507 # scripts and configure runs. It is not useful on other systems.
5508 # If it contains results you don't want to keep, you may remove or edit it.
5510 # By default, configure uses ./config.cache as the cache file,
5511 # creating it if it does not exist already. You can give configure
5512 # the --cache-file=FILE option to use a different cache file; that is
5513 # what configure does when it calls configure scripts in
5514 # subdirectories, so they share the cache.
5515 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5516 # config.status only pays attention to the cache file if you give it the
5517 # --recheck option to rerun configure.
5520 # The following way of writing the cache mishandles newlines in values,
5521 # but we know of no workaround that is simple, portable, and efficient.
5522 # So, don't put newlines in cache variables' values.
5523 # Ultrix sh set writes to stderr and can't be redirected directly,
5524 # and sets the high bit in the cache file unless we assign to the vars.
5525 (set) 2>&1 |
5526 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5527 *ac_space=\ *)
5528 # `set' does not quote correctly, so add quotes (double-quote substitution
5529 # turns \\\\ into \\, and sed turns \\ into \).
5530 sed -n \
5531 -e "s/'/'\\\\''/g" \
5532 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5535 # `set' quotes correctly as required by POSIX, so do not add quotes.
5536 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5538 esac >> confcache
5539 if cmp -s $cache_file confcache; then
5541 else
5542 if test -w $cache_file; then
5543 echo "updating cache $cache_file"
5544 cat confcache > $cache_file
5545 else
5546 echo "not updating unwritable cache $cache_file"
5549 rm -f confcache
5551 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5553 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5554 # Let make expand exec_prefix.
5555 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5557 # Any assignment to VPATH causes Sun make to only execute
5558 # the first set of double-colon rules, so remove it if not needed.
5559 # If there is a colon in the path, we need to keep it.
5560 if test "x$srcdir" = x.; then
5561 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5564 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5566 # Transform confdefs.h into DEFS.
5567 # Protect against shell expansion while executing Makefile rules.
5568 # Protect against Makefile macro expansion.
5570 # If the first sed substitution is executed (which looks for macros that
5571 # take arguments), then we branch to the quote section. Otherwise,
5572 # look for a macro that doesn't take arguments.
5573 cat >confdef2opt.sed <<\_ACEOF
5574 t clear
5575 : clear
5576 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5577 t quote
5578 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5579 t quote
5581 : quote
5582 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5583 s,\[,\\&,g
5584 s,\],\\&,g
5585 s,\$,$$,g
5587 _ACEOF
5588 # We use echo to avoid assuming a particular line-breaking character.
5589 # The extra dot is to prevent the shell from consuming trailing
5590 # line-breaks from the sub-command output. A line-break within
5591 # single-quotes doesn't work because, if this script is created in a
5592 # platform that uses two characters for line-breaks (e.g., DOS), tr
5593 # would break.
5594 ac_LF_and_DOT=`echo; echo .`
5595 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5596 rm -f confdef2opt.sed
5599 # Without the "./", some shells look in PATH for config.status.
5600 : ${CONFIG_STATUS=./config.status}
5602 echo creating $CONFIG_STATUS
5603 rm -f $CONFIG_STATUS
5604 cat > $CONFIG_STATUS <<EOF
5605 #! /bin/sh
5606 # Generated automatically by configure.
5607 # Run this file to recreate the current configuration.
5608 # This directory was configured as follows,
5609 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5611 # $0 $ac_configure_args
5613 # Compiler output produced by configure, useful for debugging
5614 # configure, is in ./config.log if it exists.
5616 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5617 for ac_option
5619 case "\$ac_option" in
5620 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5621 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5622 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5623 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5624 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5625 exit 0 ;;
5626 -help | --help | --hel | --he | --h)
5627 echo "\$ac_cs_usage"; exit 0 ;;
5628 *) echo "\$ac_cs_usage"; exit 1 ;;
5629 esac
5630 done
5632 ac_given_srcdir=$srcdir
5633 ac_given_INSTALL="$INSTALL"
5635 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5637 cat >> $CONFIG_STATUS <<EOF
5639 # Protect against being on the right side of a sed subst in config.status.
5640 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5641 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5642 $ac_vpsub
5643 $extrasub
5644 s%@SHELL@%$SHELL%g
5645 s%@CFLAGS@%$CFLAGS%g
5646 s%@CPPFLAGS@%$CPPFLAGS%g
5647 s%@CXXFLAGS@%$CXXFLAGS%g
5648 s%@FFLAGS@%$FFLAGS%g
5649 s%@DEFS@%$DEFS%g
5650 s%@LDFLAGS@%$LDFLAGS%g
5651 s%@LIBS@%$LIBS%g
5652 s%@exec_prefix@%$exec_prefix%g
5653 s%@prefix@%$prefix%g
5654 s%@program_transform_name@%$program_transform_name%g
5655 s%@bindir@%$bindir%g
5656 s%@sbindir@%$sbindir%g
5657 s%@libexecdir@%$libexecdir%g
5658 s%@datadir@%$datadir%g
5659 s%@sysconfdir@%$sysconfdir%g
5660 s%@sharedstatedir@%$sharedstatedir%g
5661 s%@localstatedir@%$localstatedir%g
5662 s%@libdir@%$libdir%g
5663 s%@includedir@%$includedir%g
5664 s%@oldincludedir@%$oldincludedir%g
5665 s%@infodir@%$infodir%g
5666 s%@mandir@%$mandir%g
5667 s%@host@%$host%g
5668 s%@host_alias@%$host_alias%g
5669 s%@host_cpu@%$host_cpu%g
5670 s%@host_vendor@%$host_vendor%g
5671 s%@host_os@%$host_os%g
5672 s%@target@%$target%g
5673 s%@target_alias@%$target_alias%g
5674 s%@target_cpu@%$target_cpu%g
5675 s%@target_vendor@%$target_vendor%g
5676 s%@target_os@%$target_os%g
5677 s%@build@%$build%g
5678 s%@build_alias@%$build_alias%g
5679 s%@build_cpu@%$build_cpu%g
5680 s%@build_vendor@%$build_vendor%g
5681 s%@build_os@%$build_os%g
5682 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5683 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5684 s%@INSTALL_DATA@%$INSTALL_DATA%g
5685 s%@LN@%$LN%g
5686 s%@LN_S@%$LN_S%g
5687 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
5688 s%@build_subdir@%$build_subdir%g
5689 s%@host_subdir@%$host_subdir%g
5690 s%@target_subdir@%$target_subdir%g
5691 s%@CC@%$CC%g
5692 s%@GNATBIND@%$GNATBIND%g
5693 s%@do_compare@%$do_compare%g
5694 s%@gmplibs@%$gmplibs%g
5695 s%@gmpinc@%$gmpinc%g
5696 s%@stage1_languages@%$stage1_languages%g
5697 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
5698 s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g
5699 s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g
5700 s%@CONFIGURED_M4@%$CONFIGURED_M4%g
5701 s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g
5702 s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g
5703 s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g
5704 s%@bootstrap_lean@%$bootstrap_lean%g
5705 /@serialization_dependencies@/r $serialization_dependencies
5706 s%@serialization_dependencies@%%g
5707 /@host_makefile_frag@/r $host_makefile_frag
5708 s%@host_makefile_frag@%%g
5709 /@target_makefile_frag@/r $target_makefile_frag
5710 s%@target_makefile_frag@%%g
5711 /@alphaieee_frag@/r $alphaieee_frag
5712 s%@alphaieee_frag@%%g
5713 /@ospace_frag@/r $ospace_frag
5714 s%@ospace_frag@%%g
5715 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
5716 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
5717 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
5718 s%@tooldir@%$tooldir%g
5719 s%@build_tooldir@%$build_tooldir%g
5720 s%@GDB_TK@%$GDB_TK%g
5721 s%@build_configargs@%$build_configargs%g
5722 s%@build_configdirs@%$build_configdirs%g
5723 s%@host_configargs@%$host_configargs%g
5724 s%@configdirs@%$configdirs%g
5725 s%@target_configargs@%$target_configargs%g
5726 s%@target_configdirs@%$target_configdirs%g
5727 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5728 s%@config_shell@%$config_shell%g
5729 s%@AR@%$AR%g
5730 s%@AS@%$AS%g
5731 s%@DLLTOOL@%$DLLTOOL%g
5732 s%@LD@%$LD%g
5733 s%@NM@%$NM%g
5734 s%@RANLIB@%$RANLIB%g
5735 s%@WINDRES@%$WINDRES%g
5736 s%@OBJCOPY@%$OBJCOPY%g
5737 s%@OBJDUMP@%$OBJDUMP%g
5738 s%@CXX@%$CXX%g
5739 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
5740 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
5741 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
5742 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
5743 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
5744 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
5745 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
5746 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
5747 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
5748 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
5749 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
5750 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5751 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
5752 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
5753 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
5754 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
5755 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
5756 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
5757 s%@CONFIGURED_CC_FOR_TARGET@%$CONFIGURED_CC_FOR_TARGET%g
5758 s%@CONFIGURED_CXX_FOR_TARGET@%$CONFIGURED_CXX_FOR_TARGET%g
5759 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
5760 s%@CONFIGURED_GCC_FOR_TARGET@%$CONFIGURED_GCC_FOR_TARGET%g
5761 s%@CONFIGURED_GCJ_FOR_TARGET@%$CONFIGURED_GCJ_FOR_TARGET%g
5762 s%@CONFIGURED_GFORTRAN_FOR_TARGET@%$CONFIGURED_GFORTRAN_FOR_TARGET%g
5763 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
5764 s%@CONFIGURED_LIPO_FOR_TARGET@%$CONFIGURED_LIPO_FOR_TARGET%g
5765 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
5766 s%@CONFIGURED_OBJDUMP_FOR_TARGET@%$CONFIGURED_OBJDUMP_FOR_TARGET%g
5767 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
5768 s%@CONFIGURED_STRIP_FOR_TARGET@%$CONFIGURED_STRIP_FOR_TARGET%g
5769 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
5770 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
5771 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
5772 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5773 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5774 s%@MAINT@%$MAINT%g
5775 s%@stage1_cflags@%$stage1_cflags%g
5776 s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
5777 s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
5778 s%@stage2_werror_flag@%$stage2_werror_flag%g
5780 CEOF
5783 cat >> $CONFIG_STATUS <<\EOF
5785 # Split the substitutions into bite-sized pieces for seds with
5786 # small command number limits, like on Digital OSF/1 and HP-UX.
5787 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5788 ac_file=1 # Number of current file.
5789 ac_beg=1 # First line for current file.
5790 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5791 ac_more_lines=:
5792 ac_sed_cmds=""
5793 while $ac_more_lines; do
5794 if test $ac_beg -gt 1; then
5795 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5796 else
5797 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5799 if test ! -s conftest.s$ac_file; then
5800 ac_more_lines=false
5801 rm -f conftest.s$ac_file
5802 else
5803 if test -z "$ac_sed_cmds"; then
5804 ac_sed_cmds="sed -f conftest.s$ac_file"
5805 else
5806 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5808 ac_file=`expr $ac_file + 1`
5809 ac_beg=$ac_end
5810 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5812 done
5813 if test -z "$ac_sed_cmds"; then
5814 ac_sed_cmds=cat
5818 cat >> $CONFIG_STATUS <<EOF
5820 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5822 cat >> $CONFIG_STATUS <<\EOF
5823 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5825 case "$ac_file" in
5826 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5827 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5828 *) ac_file_in="${ac_file}.in" ;;
5829 esac
5831 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5833 # Remove last slash and all that follows it. Not all systems have dirname.
5834 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5835 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5836 # The file is in a subdirectory.
5837 test ! -d "$ac_dir" && mkdir "$ac_dir"
5838 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5839 # A "../" for each directory in $ac_dir_suffix.
5840 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5841 else
5842 ac_dir_suffix= ac_dots=
5845 case "$ac_given_srcdir" in
5846 .) srcdir=.
5847 if test -z "$ac_dots"; then top_srcdir=.
5848 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5849 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5850 *) # Relative path.
5851 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5852 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5853 esac
5855 case "$ac_given_INSTALL" in
5856 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5857 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5858 esac
5860 echo creating "$ac_file"
5861 rm -f "$ac_file"
5862 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5863 case "$ac_file" in
5864 *Makefile*) ac_comsub="1i\\
5865 # $configure_input" ;;
5866 *) ac_comsub= ;;
5867 esac
5869 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5870 sed -e "$ac_comsub
5871 s%@configure_input@%$configure_input%g
5872 s%@srcdir@%$srcdir%g
5873 s%@top_srcdir@%$top_srcdir%g
5874 s%@INSTALL@%$INSTALL%g
5875 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5876 fi; done
5877 rm -f conftest.s*
5880 cat >> $CONFIG_STATUS <<EOF
5883 cat >> $CONFIG_STATUS <<\EOF
5885 exit 0
5887 chmod +x $CONFIG_STATUS
5888 rm -fr confdefs* $ac_clean_files
5889 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1