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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-libada Builds libada directory"
17 --enable-libssp Builds libssp directory"
19 --with-mpfr-dir=PATH Specify source directory for MPFR library"
21 --with-mpfr=PATH Specify directory for installed MPFR library"
23 --with-gmp-dir=PATH Specify source directory for GMP library"
25 --with-gmp=PATH Specify directory for installed GMP library"
27 --with-build-sysroot=sysroot
28 use sysroot as the system root during the build"
30 --enable-bootstrap Enable bootstrapping [yes if native build]"
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"
37 --with-build-time-tools=path
38 use given path to find target tools during the build"
40 --enable-maintainer-mode enable make rules and dependencies not useful
41 (and sometimes confusing) to the casual installer"
43 --enable-werror enable -Werror in bootstrap stage2 and later"
45 # Initialize some variables set by options.
46 # The variables have the same names as the options, with
47 # dashes changed to underlines.
49 cache_file=./config.cache
58 program_transform_name=s,x,x,
66 bindir='${exec_prefix}/bin'
67 sbindir='${exec_prefix}/sbin'
68 libexecdir='${exec_prefix}/libexec'
69 datadir='${prefix}/share'
70 sysconfdir='${prefix}/etc'
71 sharedstatedir='${prefix}/com'
72 localstatedir='${prefix}/var'
73 libdir='${exec_prefix}/lib'
74 includedir='${prefix}/include'
75 oldincludedir='/usr/include'
76 infodir='${prefix}/info'
77 mandir='${prefix}/man'
79 # Initialize some other variables.
82 SHELL=${CONFIG_SHELL-/bin/sh}
83 # Maximum number of lines to put in a shell here document.
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
98 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
102 # Accept the important Cygnus configure options, so we can diagnose typos.
106 -bindir | --bindir | --bindi | --bind | --bin | --bi)
108 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
109 bindir="$ac_optarg" ;;
111 -build | --build | --buil | --bui | --bu)
113 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
114 build="$ac_optarg" ;;
116 -cache-file | --cache-file | --cache-fil | --cache-fi \
117 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
118 ac_prev=cache_file ;;
119 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
120 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
121 cache_file="$ac_optarg" ;;
123 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127 datadir="$ac_optarg" ;;
129 -disable-* | --disable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
138 -enable-* | --enable-*)
139 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
149 eval "enable_${ac_feature}='$ac_optarg'" ;;
151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
153 | --exec | --exe | --ex)
154 ac_prev=exec_prefix ;;
155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
157 | --exec=* | --exe=* | --ex=*)
158 exec_prefix="$ac_optarg" ;;
160 -gas | --gas | --ga | --g)
161 # Obsolete; use --with-gas.
164 -help | --help | --hel | --he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
168 Usage: configure [options] [host]
169 Options: [defaults in brackets after descriptions]
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --version print the version of autoconf that created configure
176 Directory and file names:
177 --prefix=PREFIX install architecture-independent files in PREFIX
179 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181 --bindir=DIR user executables in DIR [EPREFIX/bin]
182 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
183 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
184 --datadir=DIR read-only architecture-independent data in DIR
186 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
187 --sharedstatedir=DIR modifiable architecture-independent data in DIR
189 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
190 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
191 --includedir=DIR C header files in DIR [PREFIX/include]
192 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
193 --infodir=DIR info documentation in DIR [PREFIX/info]
194 --mandir=DIR man documentation in DIR [PREFIX/man]
195 --srcdir=DIR find the sources in DIR [configure dir or ..]
196 --program-prefix=PREFIX prepend PREFIX to installed program names
197 --program-suffix=SUFFIX append SUFFIX to installed program names
198 --program-transform-name=PROGRAM
199 run sed PROGRAM on installed program names
203 --build=BUILD configure for building on BUILD [BUILD=HOST]
204 --host=HOST configure for HOST [guessed]
205 --target=TARGET configure for TARGET [TARGET=HOST]
206 Features and packages:
207 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
208 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
209 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
210 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
211 --x-includes=DIR X include files are in DIR
212 --x-libraries=DIR X library files are in DIR
214 if test -n "$ac_help"; then
215 echo "--enable and --with options recognized:$ac_help"
219 -host | --host | --hos | --ho)
221 -host=* | --host=* | --hos=* | --ho=*)
224 -includedir | --includedir | --includedi | --included | --include \
225 | --includ | --inclu | --incl | --inc)
226 ac_prev=includedir ;;
227 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
228 | --includ=* | --inclu=* | --incl=* | --inc=*)
229 includedir="$ac_optarg" ;;
231 -infodir | --infodir | --infodi | --infod | --info | --inf)
233 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
234 infodir="$ac_optarg" ;;
236 -libdir | --libdir | --libdi | --libd)
238 -libdir=* | --libdir=* | --libdi=* | --libd=*)
239 libdir="$ac_optarg" ;;
241 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
242 | --libexe | --libex | --libe)
243 ac_prev=libexecdir ;;
244 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
245 | --libexe=* | --libex=* | --libe=*)
246 libexecdir="$ac_optarg" ;;
248 -localstatedir | --localstatedir | --localstatedi | --localstated \
249 | --localstate | --localstat | --localsta | --localst \
250 | --locals | --local | --loca | --loc | --lo)
251 ac_prev=localstatedir ;;
252 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
253 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
254 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
255 localstatedir="$ac_optarg" ;;
257 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
260 mandir="$ac_optarg" ;;
263 # Obsolete; use --without-fp.
266 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
270 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
271 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
274 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
275 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
276 | --oldin | --oldi | --old | --ol | --o)
277 ac_prev=oldincludedir ;;
278 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
279 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
280 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
281 oldincludedir="$ac_optarg" ;;
283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
286 prefix="$ac_optarg" ;;
288 -program-prefix | --program-prefix | --program-prefi | --program-pref \
289 | --program-pre | --program-pr | --program-p)
290 ac_prev=program_prefix ;;
291 -program-prefix=* | --program-prefix=* | --program-prefi=* \
292 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
293 program_prefix="$ac_optarg" ;;
295 -program-suffix | --program-suffix | --program-suffi | --program-suff \
296 | --program-suf | --program-su | --program-s)
297 ac_prev=program_suffix ;;
298 -program-suffix=* | --program-suffix=* | --program-suffi=* \
299 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
300 program_suffix="$ac_optarg" ;;
302 -program-transform-name | --program-transform-name \
303 | --program-transform-nam | --program-transform-na \
304 | --program-transform-n | --program-transform- \
305 | --program-transform | --program-transfor \
306 | --program-transfo | --program-transf \
307 | --program-trans | --program-tran \
308 | --progr-tra | --program-tr | --program-t)
309 ac_prev=program_transform_name ;;
310 -program-transform-name=* | --program-transform-name=* \
311 | --program-transform-nam=* | --program-transform-na=* \
312 | --program-transform-n=* | --program-transform-=* \
313 | --program-transform=* | --program-transfor=* \
314 | --program-transfo=* | --program-transf=* \
315 | --program-trans=* | --program-tran=* \
316 | --progr-tra=* | --program-tr=* | --program-t=*)
317 program_transform_name="$ac_optarg" ;;
319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
320 | -silent | --silent | --silen | --sile | --sil)
323 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327 sbindir="$ac_optarg" ;;
329 -sharedstatedir | --sharedstatedir | --sharedstatedi \
330 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
331 | --sharedst | --shareds | --shared | --share | --shar \
333 ac_prev=sharedstatedir ;;
334 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
335 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
336 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338 sharedstatedir="$ac_optarg" ;;
340 -site | --site | --sit)
342 -site=* | --site=* | --sit=*)
345 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
348 srcdir="$ac_optarg" ;;
350 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
351 | --syscon | --sysco | --sysc | --sys | --sy)
352 ac_prev=sysconfdir ;;
353 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
354 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
355 sysconfdir="$ac_optarg" ;;
357 -target | --target | --targe | --targ | --tar | --ta | --t)
359 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
360 target="$ac_optarg" ;;
362 -v | -verbose | --verbose | --verbos | --verbo | --verb)
365 -version | --version | --versio | --versi | --vers)
366 echo "configure generated by autoconf version 2.13"
370 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}='$ac_optarg'" ;;
382 -without-* | --without-*)
383 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
392 # Obsolete; use --with-x.
395 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
396 | --x-incl | --x-inc | --x-in | --x-i)
397 ac_prev=x_includes ;;
398 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
399 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
400 x_includes="$ac_optarg" ;;
402 -x-libraries | --x-libraries | --x-librarie | --x-librari \
403 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
404 ac_prev=x_libraries ;;
405 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
406 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
407 x_libraries="$ac_optarg" ;;
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 if test "x$nonopt" != xNONE; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431 # File descriptor usage:
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
457 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
458 | --no-cr | --no-c) ;;
459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
484 ac_unique_file=move-if-change
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted=yes
489 # Try the directory containing this script, then its parent.
491 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 if test ! -r $srcdir/$ac_unique_file; then
498 ac_srcdir_defaulted=no
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$CONFIG_SITE"; then
511 if test "x$prefix" != xNONE; then
512 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 for ac_site_file in $CONFIG_SITE; do
518 if test -r "$ac_site_file"; then
519 echo "loading site script $ac_site_file"
524 if test -r "$cache_file"; then
525 echo "loading cache $cache_file"
528 echo "creating cache $cache_file"
533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
534 ac_cpp='$CPP $CPPFLAGS'
535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
536 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
537 cross_compiling=$ac_cv_prog_cc_cross
541 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
543 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
550 ac_n= ac_c='\c' ac_t=
556 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
557 if test -f $ac_dir/install-sh; then
559 ac_install_sh="$ac_aux_dir/install-sh -c"
561 elif test -f $ac_dir/install.sh; then
563 ac_install_sh="$ac_aux_dir/install.sh -c"
567 if test -z "$ac_aux_dir"; then
568 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
570 ac_config_guess=$ac_aux_dir/config.guess
571 ac_config_sub=$ac_aux_dir/config.sub
572 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
575 # Do some error checking and defaulting for the host and target type.
577 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
580 # 1. You are not allowed to specify --host, --target, and nonopt at the
582 # 2. Host defaults to nonopt.
583 # 3. If nonopt is not specified, then host defaults to the current host,
584 # as determined by config.guess.
585 # 4. Target and build default to nonopt.
586 # 5. If nonopt is not specified, then target and build default to host.
588 # The aliases save the names the user supplied, while $host etc.
589 # will get canonicalized.
590 case $host---$target---$nonopt in
591 NONE---*---* | *---NONE---* | *---*---NONE) ;;
592 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
596 # Make sure we can run config.sub.
597 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
598 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
601 echo $ac_n "checking host system type""... $ac_c" 1>&6
602 echo "configure:603: checking host system type" >&5
605 case "$host_alias" in
609 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
610 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
612 *) host_alias=$nonopt ;;
616 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
617 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$host" 1>&6
622 echo $ac_n "checking target system type""... $ac_c" 1>&6
623 echo "configure:624: checking target system type" >&5
626 case "$target_alias" in
629 NONE) target_alias=$host_alias ;;
630 *) target_alias=$nonopt ;;
634 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
635 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$target" 1>&6
640 echo $ac_n "checking build system type""... $ac_c" 1>&6
641 echo "configure:642: checking build system type" >&5
644 case "$build_alias" in
647 NONE) build_alias=$host_alias ;;
648 *) build_alias=$nonopt ;;
652 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
653 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
654 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
655 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
656 echo "$ac_t""$build" 1>&6
658 test "$host_alias" != "$target_alias" &&
659 test "$program_prefix$program_suffix$program_transform_name" = \
661 program_prefix=${target_alias}-
663 if test "$program_transform_name" = s,x,x,; then
664 program_transform_name=
666 # Double any \ or $. echo might interpret backslashes.
667 cat <<\EOF_SED > conftestsed
668 s,\\,\\\\,g; s,\$,$$,g
670 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
673 test "$program_prefix" != NONE &&
674 program_transform_name="s,^,${program_prefix},; $program_transform_name"
675 # Use a double $ so make ignores it.
676 test "$program_suffix" != NONE &&
677 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
679 # sed with no file args requires a program.
680 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
683 # Get 'install' or 'install-sh' and its variants.
684 # Find a good install program. We prefer a C program (faster),
685 # so one script is as good as another. But avoid the broken or
686 # incompatible versions:
687 # SysV /etc/install, /usr/sbin/install
688 # SunOS /usr/etc/install
691 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
692 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
693 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
694 # ./install, which can be erroneously created by make from ./install.sh.
695 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
696 echo "configure:697: checking for a BSD compatible install" >&5
697 if test -z "$INSTALL"; then
698 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
701 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
702 for ac_dir in $PATH; do
703 # Account for people who put trailing slashes in PATH elements.
705 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
707 # OSF1 and SCO ODT 3.0 have their own names for install.
708 # Don't use installbsd from OSF since it installs stuff as root
710 for ac_prog in ginstall scoinst install; do
711 if test -f $ac_dir/$ac_prog; then
712 if test $ac_prog = install &&
713 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
714 # AIX install. It has an incompatible calling convention.
717 ac_cv_path_install="$ac_dir/$ac_prog -c"
728 if test "${ac_cv_path_install+set}" = set; then
729 INSTALL="$ac_cv_path_install"
731 # As a last resort, use the slow shell script. We don't cache a
732 # path for INSTALL within a source directory, because that will
733 # break other packages using the cache if that directory is
734 # removed, or if the path is relative.
735 INSTALL="$ac_install_sh"
738 echo "$ac_t""$INSTALL" 1>&6
740 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
741 # It thinks the first close brace ends the variable substitution.
742 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
744 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
746 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
748 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
749 echo "configure:750: checking whether ln works" >&5
750 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
755 if ln conftestdata_f conftestdata_t 2>/dev/null
761 rm -f conftestdata_f conftestdata_t
764 if test $acx_cv_prog_LN = no; then
766 echo "$ac_t""no, using $LN" 1>&6
769 echo "$ac_t""yes" 1>&6
772 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
773 echo "configure:774: checking whether ln -s works" >&5
774 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
778 if ln -s X conftestdata 2>/dev/null
781 ac_cv_prog_LN_S="ln -s"
786 LN_S="$ac_cv_prog_LN_S"
787 if test "$ac_cv_prog_LN_S" = "ln -s"; then
788 echo "$ac_t""yes" 1>&6
790 echo "$ac_t""no" 1>&6
794 ### we might need to use some other shell than /bin/sh for running subshells
795 ### If we are on Windows, search for the shell. This will permit people
796 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
797 ### without also having to set CONFIG_SHELL. This code will work when
798 ### using bash, which sets OSTYPE.
801 if test x${CONFIG_SHELL} = x ; then
802 if test ! -f /bin/sh ; then
803 if test x${SHELL} != x && test -f ${SHELL} ; then
804 CONFIG_SHELL=${SHELL}
807 for prog in sh sh.exe bash bash.exe; do
808 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
810 test -z "$dir" && dir=.
811 if test -f $dir/$prog; then
812 CONFIG_SHELL=$dir/$prog
818 test -n "${CONFIG_SHELL}" && break
826 config_shell=${CONFIG_SHELL-/bin/sh}
829 # if PWD already has a value, it is probably wrong.
830 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
832 # Export original configure arguments for use by sub-configures. These
833 # will be expanded by make, so quote '$'.
835 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
838 TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
839 rm -f conftestsed.out
842 moveifchange=${srcdir}/move-if-change
844 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
846 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
848 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
849 INSTALL="${srcpwd}/install-sh -c"
852 # Set srcdir to "." if that's what it is.
853 # This is important for multilib support.
855 if test "${pwd}" = "${srcpwd}" ; then
863 ### To add a new directory to the tree, first choose whether it is a target
864 ### or a host dependent tool. Then put it into the appropriate list
865 ### (library or tools, host or target), doing a dependency sort.
867 # Subdirs will be configured in the order listed in build_configdirs,
868 # configdirs, or target_configdirs; see the serialization section below.
870 # Dependency sorting is only needed when *configuration* must be done in
871 # a particular order. In all cases a dependency should be specified in
872 # the Makefile, whether or not it's implicitly specified here.
874 # Double entries in build_configdirs, configdirs, or target_configdirs may
875 # cause circular dependencies and break everything horribly.
877 # these library is used by various programs built for the build
880 build_libs="build-libiberty"
882 # these tools are built for the build environment
883 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
885 # these libraries are used by various programs built for the host environment
887 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
889 # these tools are built for the host environment
890 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
891 # know that we are building the simulator.
892 # binutils, gas and ld appear in that order because it makes sense to run
893 # "make check" in that particular order.
894 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"
896 # libgcj represents the runtime libraries only used by gcj.
897 libgcj="target-libffi \
903 # these libraries are built for the target environment, and are built after
904 # the host libraries and the host tools (which may be a cross compiler)
906 target_libraries="target-libiberty \
909 target-libstdc++-v3 \
917 # these tools are built using the target libraries, and are intended to
918 # run only in the target environment
920 # note: any program that *uses* libraries that are in the "target_libraries"
921 # list belongs in this list. those programs are also very likely
922 # candidates for the "native_only" list which follows
924 target_tools="target-examples target-groff target-gperf target-rda"
926 ################################################################################
928 ## All tools belong in one of the four categories, and are assigned above
929 ## We assign ${configdirs} this way to remove all embedded newlines. This
930 ## is important because configure will choke if they ever get through.
931 ## ${configdirs} is directories we build using the host tools.
932 ## ${target_configdirs} is directories we build using the target tools.
933 configdirs=`echo ${host_libs} ${host_tools}`
934 target_configdirs=`echo ${target_libraries} ${target_tools}`
935 build_configdirs=`echo ${build_libs} ${build_tools}`
937 ################################################################################
939 srcname="gnu development package"
941 # This gets set non-empty for some net releases of packages.
944 # Define is_cross_compiler to save on calls to 'test'.
946 if test x"${host}" = x"${target}" ; then
949 is_cross_compiler=yes
952 # Find the build and target subdir names.
953 case ${build_alias} in
954 "") build_noncanonical=${build} ;;
955 *) build_noncanonical=${build_alias} ;;
958 case ${host_alias} in
959 "") host_noncanonical=${build_noncanonical} ;;
960 *) host_noncanonical=${host_alias} ;;
963 case ${target_alias} in
964 "") target_noncanonical=${host_noncanonical} ;;
965 *) target_noncanonical=${target_alias} ;;
968 # Prefix 'build-' so this never conflicts with target_subdir.
969 build_subdir="build-${build_noncanonical}"
970 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
971 if ( test $srcdir = . && test -d gcc ) \
972 || test -d $srcdir/../host-${host_noncanonical}; then
973 host_subdir="host-${host_noncanonical}"
978 target_subdir=${target_noncanonical}
981 # Skipdirs are removed silently.
983 # Noconfigdirs are removed loudly.
987 # Make sure we don't let GNU ld be added if we didn't want it.
988 if test x$with_gnu_ld = xno ; then
990 noconfigdirs="$noconfigdirs ld"
994 # Make sure we don't let GNU as be added if we didn't want it.
995 if test x$with_gnu_as = xno ; then
997 noconfigdirs="$noconfigdirs gas"
1000 # some tools are so dependent upon X11 that if we're not building with X,
1001 # it's not even worth trying to configure, much less build, that tool.
1004 yes | "") ;; # the default value for this tree is that X11 is available
1006 skipdirs="${skipdirs} tk itcl libgui"
1007 # We won't be able to build gdbtk without X.
1010 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1013 # Some tools are only suitable for building in a "native" situation.
1014 # Remove these if host!=target.
1015 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"
1017 # Similarly, some are only suitable for cross toolchains.
1018 # Remove these if host=target.
1019 cross_only="target-libgloss target-newlib target-opcodes"
1021 case $is_cross_compiler in
1022 no) skipdirs="${skipdirs} ${cross_only}" ;;
1023 yes) skipdirs="${skipdirs} ${native_only}" ;;
1026 # If both --with-headers and --with-libs are specified, default to
1028 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1029 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1030 if test x"${with_newlib}" = x ; then
1035 # Recognize --with-newlib/--without-newlib.
1036 case ${with_newlib} in
1037 no) skipdirs="${skipdirs} target-newlib" ;;
1038 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1041 # Configure extra directories which are host specific
1045 configdirs="$configdirs libtermcap" ;;
1048 # A target can indicate whether a language isn't supported for some reason.
1049 # Only spaces may be used in this macro; not newlines or tabs.
1050 unsupported_languages=
1052 # Remove more programs from consideration, based on the host or
1053 # target this usually means that a port of the program doesn't
1058 noconfigdirs="$noconfigdirs byacc"
1060 i[3456789]86-*-vsta)
1061 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1063 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1064 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1066 i[3456789]86-*-mingw32*)
1067 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1068 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1070 i[3456789]86-*-beos*)
1071 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1074 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1077 noconfigdirs="$noconfigdirs rcs"
1080 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1083 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1088 # Check whether --enable-libada or --disable-libada was given.
1089 if test "${enable_libada+set}" = set; then
1090 enableval="$enable_libada"
1091 ENABLE_LIBADA=$enableval
1096 if test "${ENABLE_LIBADA}" != "yes" ; then
1097 noconfigdirs="$noconfigdirs target-libada"
1098 noconfigdirs="$noconfigdirs gnattools"
1101 # Check whether --enable-libssp or --disable-libssp was given.
1102 if test "${enable_libssp+set}" = set; then
1103 enableval="$enable_libssp"
1104 ENABLE_LIBSSP=$enableval
1109 if test "${ENABLE_LIBSSP}" != "yes" ; then
1110 noconfigdirs="$noconfigdirs target-libssp"
1113 # Save it here so that, even in case of --enable-libgcj, if the Java
1114 # front-end isn't enabled, we still get libgcj disabled.
1115 libgcj_saved=$libgcj
1116 case $enable_libgcj in
1118 # If we reset it here, it won't get added to noconfigdirs in the
1119 # target-specific build rules, so it will be forcibly enabled
1120 # (unless the Java language itself isn't enabled).
1124 # Make sure we get it printed in the list of not supported target libs.
1125 noconfigdirs="$noconfigdirs ${libgcj}"
1130 # Allow --disable-libmudflap to exclude target-libmudflap
1131 case $enable_libmudflap in
1135 noconfigdirs="$noconfigdirs target-libmudflap"
1139 *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
1140 # Enable libmudflap by default in GNU and friends.
1143 # Enable libmudflap by default in FreeBSD.
1146 # Disable it by default everywhere else.
1147 noconfigdirs="$noconfigdirs target-libmudflap"
1155 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1158 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1159 noconfigdirs="$noconfigdirs sim target-rda"
1162 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1163 noconfigdirs="$noconfigdirs sim target-rda"
1164 noconfigdirs="$noconfigdirs ${libgcj}"
1166 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1167 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1170 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1171 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1172 && test -f /usr/local/include/gmp.h; then
1176 # Skip some stuff that's unsupported on some FreeBSD configurations.
1181 noconfigdirs="$noconfigdirs ${libgcj}"
1186 # Remove unsupported stuff on all kaOS configurations.
1187 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1188 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1189 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1190 noconfigdirs="$noconfigdirs target-libgloss"
1193 # Skip some stuff on all NetBSD configurations.
1194 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1196 # Skip some stuff that's unsupported on some NetBSD configurations.
1198 i*86-*-netbsdelf*) ;;
1199 arm*-*-netbsdelf*) ;;
1201 noconfigdirs="$noconfigdirs ${libgcj}"
1206 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1209 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1211 # The tpf target doesn't support gdb yet.
1213 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1216 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1219 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1222 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1225 # ld works, but does not support shared libraries.
1226 # newlib is not 64 bit ready. I'm not sure about fileutils.
1227 # gas doesn't generate exception information.
1228 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1231 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1234 # newlib is not 64 bit ready
1235 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1238 # newlib is not 64 bit ready
1239 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1242 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1245 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1247 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
1248 noconfigdirs="$noconfigdirs ${libgcj}"
1249 noconfigdirs="$noconfigdirs target-examples"
1250 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
1251 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
1252 noconfigdirs="$noconfigdirs expect dejagnu"
1253 # the C++ libraries don't build on top of CE's C libraries
1254 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1255 noconfigdirs="$noconfigdirs target-newlib"
1257 *-*-cygwin*) ;; # keep gdb and readline
1258 *) noconfigdirs="$noconfigdirs gdb readline"
1263 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1267 arm-*-coff | strongarm-*-coff | xscale-*-coff)
1268 noconfigdirs="$noconfigdirs ${libgcj}"
1270 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
1271 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1273 arm*-*-linux-gnueabi)
1274 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
1275 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1278 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
1281 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1284 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1287 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1290 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1293 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1296 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1299 noconfigdirs="$noconfigdirs target-libgloss gdb"
1300 if test x${is_cross_compiler} != xno ; then
1301 target_configdirs="${target_configdirs} target-bsp target-cygmon"
1304 c4x-*-* | tic4x-*-*)
1305 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1307 c54x*-*-* | tic54x-*-*)
1308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1310 cris-*-* | crisv32-*-*)
1311 unsupported_languages="$unsupported_languages java"
1314 unsupported_languages="$unsupported_languages fortran"
1315 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
1317 unsupported_languages="$unsupported_languages fortran"
1318 noconfigdirs="$noconfigdirs target-boehm-gc";;
1320 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
1322 unsupported_languages="$unsupported_languages fortran"
1323 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1327 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1330 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1333 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1336 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1339 noconfigdirs="$noconfigdirs ${libgcj}"
1342 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1345 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1347 hppa1.1-*-osf* | hppa1.1-*-bsd* )
1349 hppa*64*-*-linux* | parisc*64*-*-linux*)
1350 # In this case, it's because the hppa64-linux target is for
1351 # the kernel only at this point and has no libc, and thus no
1352 # headers, crt*.o, etc., all of which are needed by these.
1353 noconfigdirs="$noconfigdirs target-zlib"
1355 parisc*-*-linux* | hppa*-*-linux*)
1359 hppa*-*-openbsd* | \
1361 noconfigdirs="$noconfigdirs ${libgcj}"
1365 # build on HP-UX 10.20.
1366 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
1369 noconfigdirs="$noconfigdirs ${libgcj} gdb"
1372 # No gdb support yet.
1373 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
1376 # No gdb or ld support yet.
1377 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1381 i[3456789]86-*-coff | i[3456789]86-*-elf)
1382 noconfigdirs="$noconfigdirs ${libgcj}"
1384 i[3456789]86-*-linux*)
1385 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1386 # not build java stuff by default.
1389 noconfigdirs="$noconfigdirs ${libgcj}";;
1392 # This section makes it possible to build newlib natively on linux.
1393 # If we are using a cross compiler then don't configure newlib.
1394 if test x${is_cross_compiler} != xno ; then
1395 noconfigdirs="$noconfigdirs target-newlib"
1397 noconfigdirs="$noconfigdirs target-libgloss"
1398 # If we are not using a cross compiler, do configure newlib.
1399 # Note however, that newlib will only be configured in this situation
1400 # if the --with-newlib option has been given, because otherwise
1401 # 'target-newlib' will appear in skipdirs.
1403 i[3456789]86-*-mingw32*)
1404 target_configdirs="$target_configdirs target-mingw"
1405 noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
1407 # Can't build gdb for mingw32 if not native.
1409 i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1410 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1415 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1416 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1417 # always build newlib if winsup directory is present.
1418 if test -d "$srcdir/winsup"; then
1419 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1420 elif test -d "$srcdir/newlib"; then
1421 echo "Warning: winsup is missing so newlib can't be built."
1424 # Can't build gdb for Cygwin if not native.
1426 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1427 *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1431 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
1432 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
1435 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1437 i[3456789]86-*-sco3.2v5*)
1438 # The linker does not yet know about weak symbols in COFF,
1439 # and is not configured to handle mixed ELF and COFF.
1440 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
1442 i[3456789]86-*-sco*)
1443 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1445 i[3456789]86-*-solaris2*)
1446 noconfigdirs="$noconfigdirs target-libgloss"
1448 i[3456789]86-*-sysv4*)
1449 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1451 i[3456789]86-*-beos*)
1452 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1454 i[3456789]86-*-rdos*)
1455 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1458 noconfigdirs="$noconfigdirs ${libgcj}"
1460 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
1461 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1464 noconfigdirs="$noconfigdirs ${libgcj}"
1467 noconfigdirs="$noconfigdirs ${libgcj}"
1470 # The EPOC C++ environment does not support exceptions or rtti,
1471 # and so building libstdc++-v3 tends not to always work.
1472 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1475 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1476 unsupported_languages="$unsupported_languages fortran java"
1479 noconfigdirs="$noconfigdirs ${libgcj}"
1482 noconfigdirs="$noconfigdirs ${libgcj}"
1485 noconfigdirs="$noconfigdirs sim"
1488 # copied from rs6000-*-* entry
1489 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1491 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
1492 target_configdirs="$target_configdirs target-winsup"
1493 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1494 # always build newlib.
1495 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1497 # This is temporary until we can link against shared libraries
1498 powerpcle-*-solaris*)
1499 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1502 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1505 noconfigdirs="$noconfigdirs ${libgcj}"
1507 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
1510 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
1513 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1516 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1519 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1522 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1525 # Linking libjava exceeds command-line length limits on at least
1526 # IRIX 6.2, but not on IRIX 6.5.
1527 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1529 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1532 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1535 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
1538 noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips
1541 noconfigdirs="$noconfigdirs target-newlib ${libgcj}"
1544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1547 noconfigdirs="$noconfigdirs gprof ${libgcj}"
1550 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1554 i[3456789]86-*-vsta) ;; # don't add gprof back in
1555 i[3456789]86-*-go32*) ;; # don't add gprof back in
1556 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1557 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1559 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1562 noconfigdirs="$noconfigdirs ${libgcj}"
1565 noconfigdirs="$noconfigdirs ${libgcj}"
1568 noconfigdirs="$noconfigdirs ${libgcj}"
1571 noconfigdirs="$noconfigdirs ${libgcj}"
1572 if test x${is_cross_compiler} != xno ; then
1573 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
1578 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1579 noconfigdirs="$noconfigdirs ${libgcj}"
1581 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
1584 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1587 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1590 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1593 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
1596 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1599 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1602 noconfigdirs="$noconfigdirs ${libgcj}"
1605 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1607 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1608 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1611 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1614 noconfigdirs="$noconfigdirs ${libgcj}"
1618 # If we aren't building newlib, then don't build libgloss, since libgloss
1619 # depends upon some newlib header files.
1620 case "${noconfigdirs}" in
1621 *target-libgloss*) ;;
1622 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
1625 # Work in distributions that contain no compiler tools, like Autoconf.
1627 host_makefile_frag=/dev/null
1628 if test -d ${srcdir}/config ; then
1631 # Avoid "too much defining" errors from HPUX compiler.
1632 tentative_cc="cc -Wp,-H256000"
1633 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1634 # If it's HP/UX ar, this should be harmless.
1638 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1641 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1642 # chokes on bfd, the compiler won't let you assign integers to enums, and
1643 # other problems. Defining CC to gcc is a questionable way to say "don't use
1644 # the apollo compiler" (the preferred version of GCC could be called cc,
1645 # or whatever), but I'm not sure leaving CC as cc is any better...
1646 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1647 # Used to have BISON=yacc.
1651 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1654 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1655 tentative_cc="cc -Xa"
1656 host_makefile_frag="config/mh-cxux"
1658 m88k-motorola-sysv*)
1661 tentative_cc="cc -Wf,-XNg1000"
1662 host_makefile_frag="config/mh-decstation"
1665 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1666 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
1667 host_makefile_frag="config/mh-necv4"
1670 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1671 # environment. Also bump switch table size so that cp-parse will
1672 # compile. Bump string length limit so linker builds.
1673 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1676 host_makefile_frag="config/mh-sysv4"
1679 # This is for a MIPS running RISC/os 4.52C.
1681 # This is needed for GDB, but needs to be in the top-level make because
1682 # if a library is compiled with the bsd headers and gets linked with the
1683 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1684 # a different size).
1685 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1686 # known except to select the sysv environment. Could we use /proc instead?
1687 # These "sysv environments" and "bsd environments" often end up being a pain.
1689 # This is not part of CFLAGS because perhaps not all C compilers have this
1691 tentative_cc="cc -systype sysv"
1696 i[3456789]86-*-sysv5*)
1697 host_makefile_frag="config/mh-sysv5"
1699 i[3456789]86-*-dgux*)
1700 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
1701 host_makefile_frag="config/mh-dgux386"
1703 i[3456789]86-ncr-sysv4.3*)
1704 # The MetaWare compiler will generate a copyright message unless you
1705 # turn it off by adding the -Hnocopyr flag.
1706 tentative_cc="cc -Hnocopyr"
1708 i[3456789]86-ncr-sysv4*)
1709 # for an NCR 3000 (i486/SVR4) system.
1710 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1711 # This compiler not only emits obnoxious copyright messages every time
1712 # you run it, but it chokes and dies on a whole bunch of GNU source
1713 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1714 tentative_cc="/usr/ccs/ATT/cc"
1715 host_makefile_frag="config/mh-ncr3000"
1717 i[3456789]86-*-sco3.2v5*)
1719 i[3456789]86-*-sco*)
1720 # The native C compiler botches some simple uses of const. Unfortunately,
1721 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1722 tentative_cc="cc -Dconst="
1723 host_makefile_frag="config/mh-sco"
1725 i[3456789]86-*-udk*)
1726 host_makefile_frag="config/mh-sysv5"
1728 i[3456789]86-*-solaris2*)
1729 host_makefile_frag="config/mh-sysv4"
1731 i[3456789]86-*-msdosdjgpp*)
1732 host_makefile_frag="config/mh-djgpp"
1735 host_makefile_frag="config/mh-cygwin"
1740 host_makefile_frag="config/mh-interix"
1743 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1747 host_makefile_frag="config/mh-solaris"
1750 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1751 # without overflowing the jump tables (-J says to use a 32 bit table)
1752 tentative_cc="cc -J"
1755 tentative_cc="cc -Wp,-H256000"
1758 tentative_cc="cc -Wp,-H256000"
1761 # /bin/cc is less than useful for our purposes. Always use GCC
1762 tentative_cc="/usr/cygnus/progressive/bin/gcc"
1763 host_makefile_frag="config/mh-lynxrs6k"
1766 host_makefile_frag="config/mh-ppc-darwin"
1769 host_makefile_frag="config/mh-ppc-aix"
1772 host_makefile_frag="config/mh-ppc-aix"
1775 # /bin/cc is less than useful for our purposes. Always use GCC
1776 tentative_cc="/bin/gcc"
1779 host_makefile_frag="config/mh-sysv4"
1781 # This is placed last to prevent interfering with the cases above.
1783 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1784 host_makefile_frag="config/mh-x86omitfp"
1789 # If we aren't going to be using gcc, see if we can extract a definition
1790 # of CC from the fragment.
1791 # Actually, use the 'pre-extracted' version above.
1792 if test -z "${CC}" && test "${build}" = "${host}" ; then
1793 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1795 for dir in $PATH; do
1796 test -z "$dir" && dir=.
1797 if test -f $dir/gcc; then
1803 if test -z "${found}" && test -n "${tentative_cc}" ; then
1808 if test "${build}" != "${host}" ; then
1809 # If we are doing a Canadian Cross, in which the host and build systems
1810 # are not the same, we set reasonable default values for the tools.
1812 CC=${CC-${host_alias}-gcc}
1813 CFLAGS=${CFLAGS-"-g -O2"}
1814 CXX=${CXX-${host_alias}-c++}
1815 CXXFLAGS=${CXXFLAGS-"-g -O2"}
1816 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1817 BUILD_PREFIX=${build_alias}-
1818 BUILD_PREFIX_1=${build_alias}-
1821 # Set reasonable default values for some tools even if not Canadian.
1822 # Of course, these are different reasonable default values, originally
1823 # specified directly in the Makefile.
1824 # We don't export, so that autoconf can do its job.
1825 # Note that all these settings are above the fragment inclusion point
1826 # in Makefile.in, so can still be overridden by fragments.
1827 # This is all going to change when we autoconfiscate...
1829 CC_FOR_BUILD="\$(CC)"
1831 BUILD_PREFIX_1=loser-
1833 # Extract the first word of "gcc", so it can be a program name with args.
1834 set dummy gcc; ac_word=$2
1835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_word" >&5
1837 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1845 for ac_dir in $ac_dummy; do
1846 test -z "$ac_dir" && ac_dir=.
1847 if test -f $ac_dir/$ac_word; then
1856 if test -n "$CC"; then
1857 echo "$ac_t""$CC" 1>&6
1859 echo "$ac_t""no" 1>&6
1862 if test -z "$CC"; then
1863 # Extract the first word of "cc", so it can be a program name with args.
1864 set dummy cc; ac_word=$2
1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $ac_word" >&5
1867 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 if test -n "$CC"; then
1871 ac_cv_prog_CC="$CC" # Let the user override the test.
1873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1876 for ac_dir in $ac_dummy; do
1877 test -z "$ac_dir" && ac_dir=.
1878 if test -f $ac_dir/$ac_word; then
1879 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1880 ac_prog_rejected=yes
1888 if test $ac_prog_rejected = yes; then
1889 # We found a bogon in the path, so make sure we never use it.
1890 set dummy $ac_cv_prog_CC
1892 if test $# -gt 0; then
1893 # We chose a different compiler from the bogus one.
1894 # However, it has the same basename, so the bogon will be chosen
1895 # first if we set CC to just the basename; use the full file name.
1897 set dummy "$ac_dir/$ac_word" "$@"
1905 if test -n "$CC"; then
1906 echo "$ac_t""$CC" 1>&6
1908 echo "$ac_t""no" 1>&6
1911 if test -z "$CC"; then
1912 case "`uname -s`" in
1914 # Extract the first word of "cl", so it can be a program name with args.
1915 set dummy cl; ac_word=$2
1916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1917 echo "configure:1918: checking for $ac_word" >&5
1918 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1926 for ac_dir in $ac_dummy; do
1927 test -z "$ac_dir" && ac_dir=.
1928 if test -f $ac_dir/$ac_word; then
1937 if test -n "$CC"; then
1938 echo "$ac_t""$CC" 1>&6
1940 echo "$ac_t""no" 1>&6
1945 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1948 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1949 echo "configure:1950: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1953 ac_cpp='$CPP $CPPFLAGS'
1954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1956 cross_compiling=$ac_cv_prog_cc_cross
1958 cat > conftest.$ac_ext << EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1965 if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1966 ac_cv_prog_cc_works=yes
1967 # If we can't run a trivial program, we are probably using a cross compiler.
1968 if (./conftest; exit) 2>/dev/null; then
1969 ac_cv_prog_cc_cross=no
1971 ac_cv_prog_cc_cross=yes
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 ac_cv_prog_cc_works=no
1980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1981 ac_cpp='$CPP $CPPFLAGS'
1982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1984 cross_compiling=$ac_cv_prog_cc_cross
1986 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1987 if test $ac_cv_prog_cc_works = no; then
1988 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1990 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1991 echo "configure:1992: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1992 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1993 cross_compiling=$ac_cv_prog_cc_cross
1995 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1996 echo "configure:1997: checking whether we are using GNU C" >&5
1997 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
2000 cat > conftest.c <<EOF
2005 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2012 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2014 if test $ac_cv_prog_gcc = yes; then
2020 ac_test_CFLAGS="${CFLAGS+set}"
2021 ac_save_CFLAGS="$CFLAGS"
2023 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2024 echo "configure:2025: checking whether ${CC-cc} accepts -g" >&5
2025 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 echo 'void f(){}' > conftest.c
2029 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2038 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2039 if test "$ac_test_CFLAGS" = set; then
2040 CFLAGS="$ac_save_CFLAGS"
2041 elif test $ac_cv_prog_cc_g = yes; then
2042 if test "$GCC" = yes; then
2048 if test "$GCC" = yes; then
2056 # We must set the default linker to the linker used by gcc for the correct
2057 # operation of libtool. If LD is not defined and we are using gcc, try to
2058 # set the LD default to the ld used by gcc.
2059 if test -z "$LD"; then
2060 if test "$GCC" = yes; then
2063 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2065 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
2067 case $gcc_prog_ld in
2068 # Accept absolute paths.
2069 [\\/]* | [A-Za-z]:[\\/]*)
2070 LD="$gcc_prog_ld" ;;
2076 CFLAGS=${CFLAGS-"-g"}
2077 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2080 if test $host != $build; then
2081 ac_tool_prefix=${host_alias}-
2088 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2089 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2091 echo "configure:2092: checking for $ac_word" >&5
2092 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2095 if test -n "$GNATBIND"; then
2096 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2100 for ac_dir in $ac_dummy; do
2101 test -z "$ac_dir" && ac_dir=.
2102 if test -f $ac_dir/$ac_word; then
2103 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2110 GNATBIND="$ac_cv_prog_GNATBIND"
2111 if test -n "$GNATBIND"; then
2112 echo "$ac_t""$GNATBIND" 1>&6
2114 echo "$ac_t""no" 1>&6
2118 if test -z "$ac_cv_prog_GNATBIND"; then
2119 if test -n "$ac_tool_prefix"; then
2120 # Extract the first word of "gnatbind", so it can be a program name with args.
2121 set dummy gnatbind; ac_word=$2
2122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_word" >&5
2124 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 if test -n "$GNATBIND"; then
2128 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2132 for ac_dir in $ac_dummy; do
2133 test -z "$ac_dir" && ac_dir=.
2134 if test -f $ac_dir/$ac_word; then
2135 ac_cv_prog_GNATBIND="gnatbind"
2140 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2143 GNATBIND="$ac_cv_prog_GNATBIND"
2144 if test -n "$GNATBIND"; then
2145 echo "$ac_t""$GNATBIND" 1>&6
2147 echo "$ac_t""no" 1>&6
2155 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2156 echo "configure:2157: checking whether compiler driver understands Ada" >&5
2157 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2160 cat >conftest.adb <<EOF
2161 procedure conftest is begin null; end conftest;
2163 acx_cv_cc_gcc_supports_ada=no
2164 # There is a bug in old released versions of GCC which causes the
2165 # driver to exit successfully when the appropriate language module
2166 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2167 # Therefore we must check for the error message as well as an
2168 # unsuccessful exit.
2169 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2170 # given a .adb file, but produce no object file. So we must check
2171 # if an object file was really produced to guard against this.
2172 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2173 if test x"$errors" = x && test -f conftest.$ac_objext; then
2174 acx_cv_cc_gcc_supports_ada=yes
2179 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2181 if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
2187 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2188 echo "configure:2189: checking how to compare bootstrapped objects" >&5
2189 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2194 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2195 if cmp t1 t2 2 2 > /dev/null 2>&1; then
2196 if cmp t1 t2 1 1 > /dev/null 2>&1; then
2199 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
2202 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
2203 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
2206 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
2213 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2214 do_compare="$gcc_cv_prog_cmp_skip"
2218 # Check for GMP and MPFR
2222 # Specify a location for mpfr
2223 # check for this first so it ends up on the link line before gmp.
2224 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2225 if test "${with_mpfr_dir+set}" = set; then
2226 withval="$with_mpfr_dir"
2231 if test "x$with_mpfr_dir" != x; then
2232 gmpinc="-I$with_mpfr_dir"
2233 gmplibs="$with_mpfr_dir/libmpfr.a"
2238 # Check whether --with-mpfr or --without-mpfr was given.
2239 if test "${with_mpfr+set}" = set; then
2240 withval="$with_mpfr"
2245 if test "x$with_mpfr" != x; then
2246 gmplibs="-L$with_mpfr/lib $gmplibs"
2247 gmpinc="-I$with_mpfr/include"
2250 # Specify a location for gmp
2251 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2252 if test "${with_gmp_dir+set}" = set; then
2253 withval="$with_gmp_dir"
2258 if test "x$with_gmp_dir" != x; then
2259 gmpinc="$gmpinc -I$with_gmp_dir"
2260 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2261 gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2262 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2263 gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2265 # One of the later tests will catch the error if neither library is present.
2267 gmplibs="$gmplibs -lgmp"
2270 # Check whether --with-gmp or --without-gmp was given.
2271 if test "${with_gmp+set}" = set; then
2277 if test "x$with_gmp" != x; then
2278 gmplibs="-L$with_gmp/lib $gmplibs"
2279 gmpinc="-I$with_gmp/include $gmpinc"
2282 saved_CFLAGS="$CFLAGS"
2283 CFLAGS="$CFLAGS $gmpinc"
2284 # Check GMP actually works
2285 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2286 echo "configure:2287: checking for correct version of gmp.h" >&5
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2293 #if __GNU_MP_VERSION < 3
2299 if { (eval echo configure:2300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2301 echo "$ac_t""yes" 1>&6
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2306 echo "$ac_t""no" 1>&6; have_gmp=no
2310 if test x"$have_gmp" = xyes; then
2311 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2312 echo "configure:2313: checking for MPFR" >&5
2315 LIBS="$LIBS $gmplibs"
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2322 mpfr_t n; mpfr_init(n);
2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2327 echo "$ac_t""yes" 1>&6
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2332 echo "$ac_t""no" 1>&6; have_gmp=no
2336 CFLAGS="$saved_CFLAGS"
2339 # Flags needed for both GMP and/or MPFR
2343 # By default, C is the only stage 1 language.
2347 # Figure out what language subdirectories are present.
2348 # Look if the user specified --enable-languages="..."; if not, use
2349 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2351 # NB: embedded tabs in this IF block -- do not untabify
2352 if test -d ${srcdir}/gcc; then
2353 if test x"${enable_languages+set}" != xset; then
2354 if test x"${LANGUAGES+set}" = xset; then
2355 enable_languages="${LANGUAGES}"
2356 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
2358 enable_languages=all
2361 if test x"${enable_languages}" = x ||
2362 test x"${enable_languages}" = xyes;
2364 echo configure.in: --enable-languages needs at least one language argument 1>&2
2368 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2370 # 'f95' is the old name for the 'fortran' language. We issue a warning
2371 # and make the substitution.
2372 case ,${enable_languages}, in
2374 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
2375 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2379 # First scan to see if an enabled language requires some other language.
2380 # We assume that a given config-lang.in will list all the language
2381 # front ends it requires, even if some are required indirectly.
2382 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2383 case ${lang_frag} in
2385 # The odd quoting in the next line works around
2386 # an apparent bug in bash 1.12 on linux.
2387 ${srcdir}/gcc/[*]/config-lang.in) ;;
2389 # From the config-lang.in, get $language, $lang_requires
2393 for other in ${lang_requires} ; do
2394 case ,${enable_languages}, in
2398 echo " \`$other' language required by \`$language'; enabling" 1>&2
2399 enable_languages="${enable_languages},${other}"
2407 new_enable_languages=c
2408 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2409 potential_languages=c
2411 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
2412 case ${lang_frag} in
2414 # The odd quoting in the next line works around
2415 # an apparent bug in bash 1.12 on linux.
2416 ${srcdir}/gcc/[*]/config-lang.in) ;;
2418 # From the config-lang.in, get $language, $target_libs,
2419 # $lang_dirs, $boot_language, and $build_by_default
2427 potential_languages="${potential_languages},${language}"
2428 # This is quite sensitive to the ordering of the case statement arms.
2429 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2431 echo "${lang_frag} doesn't set \$language." 1>&2
2435 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2438 *,${language},*:*:*:*)
2439 # Language was explicitly selected; include it.
2443 # 'all' was selected, but this is not a default language
2444 # so do not include it.
2448 # 'all' was selected and this is a default language; include it.
2456 # Disable languages that need GMP if it isn't available.
2457 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2458 *,${language},*:no:yes)
2459 # Specifically requested language; tell them.
2460 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2468 # Disable a language that is unsupported by the target.
2469 case " $unsupported_languages " in
2475 case $add_this_lang in
2477 # Remove language-dependent dirs.
2478 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2481 new_enable_languages="$new_enable_languages,$language"
2482 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
2483 case ${boot_language} in
2485 # Add to (comma-separated) list of stage 1 languages.
2486 stage1_languages="${stage1_languages},${language}"
2495 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2496 if test "x$missing_languages" != x; then
2497 { echo "configure: error:
2498 The following requested languages could not be built: ${missing_languages}
2499 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2502 if test "x$new_enable_languages" != "x$enable_languages"; then
2503 echo The following languages will be built: ${new_enable_languages}
2505 enable_languages="$new_enable_languages"
2506 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2509 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2510 # $build_configdirs and $target_configdirs.
2511 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2514 for dir in . $skipdirs $noconfigdirs ; do
2515 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2516 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2517 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2518 if test -r $srcdir/$dirname/configure ; then
2519 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2522 notsupp="$notsupp $dir"
2526 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2527 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2528 if test -r $srcdir/$dirname/configure ; then
2529 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2532 notsupp="$notsupp $dir"
2536 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2537 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2538 if test -r $srcdir/$dirname/configure ; then
2539 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2542 notsupp="$notsupp $dir"
2548 # Sometimes the tools are distributed with libiberty but with no other
2549 # libraries. In that case, we don't want to build target-libiberty.
2550 if test -n "${target_configdirs}" ; then
2552 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2553 if test "$i" != "libiberty" ; then
2554 if test -r $srcdir/$i/configure ; then
2560 if test -z "${others}" ; then
2565 # Quietly strip out all directories which aren't configurable in this tree.
2566 # This relies on all configurable subdirectories being autoconfiscated, which
2568 build_configdirs_all="$build_configdirs"
2570 for i in ${build_configdirs_all} ; do
2571 j=`echo $i | sed -e s/build-//g`
2572 if test -f ${srcdir}/$j/configure ; then
2573 build_configdirs="${build_configdirs} $i"
2577 configdirs_all="$configdirs"
2579 for i in ${configdirs_all} ; do
2580 if test -f ${srcdir}/$i/configure ; then
2581 configdirs="${configdirs} $i"
2585 target_configdirs_all="$target_configdirs"
2587 for i in ${target_configdirs_all} ; do
2588 j=`echo $i | sed -e s/target-//g`
2589 if test -f ${srcdir}/$j/configure ; then
2590 target_configdirs="${target_configdirs} $i"
2594 # Produce a warning message for the subdirs we can't configure.
2595 # This isn't especially interesting in the Cygnus tree, but in the individual
2596 # FSF releases, it's important to let people know when their machine isn't
2597 # supported by the one or two programs in a package.
2599 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2600 # If $appdirs is non-empty, at least one of those directories must still
2601 # be configured, or we error out. (E.g., if the gas release supports a
2602 # specified target in some subdirs but not the gas subdir, we shouldn't
2603 # pretend that all is well.)
2604 if test -n "$appdirs" ; then
2605 for dir in $appdirs ; do
2606 if test -r $dir/Makefile.in ; then
2607 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
2611 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
2617 if test -n "$appdirs" ; then
2618 echo "*** This configuration is not supported by this package." 1>&2
2622 # Okay, some application will build, or we don't care to check. Still
2623 # notify of subdirs not getting built.
2624 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2625 echo " ${notsupp}" 1>&2
2626 echo " (Any other directories should still work fine.)" 1>&2
2636 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2637 if test "${with_build_sysroot+set}" = set; then
2638 withval="$with_build_sysroot"
2639 if test x"$withval" != x ; then
2640 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
2643 SYSROOT_CFLAGS_FOR_TARGET=
2648 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2649 # the named directory are copied to $(tooldir)/sys-include.
2650 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
2651 if test x${is_cross_compiler} = xno ; then
2652 echo 1>&2 '***' --with-headers is only supported when cross compiling
2655 if test x"${with_headers}" != xyes ; then
2656 case "${exec_prefixoption}" in
2658 *) x=${exec_prefix} ;;
2660 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2664 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2665 # the name directories are copied to $(tooldir)/lib. Multiple directories
2667 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2668 if test x${is_cross_compiler} = xno ; then
2669 echo 1>&2 '***' --with-libs is only supported when cross compiling
2672 if test x"${with_libs}" != xyes ; then
2673 # Copy the libraries in reverse order, so that files in the first named
2674 # library override files in subsequent libraries.
2675 case "${exec_prefixoption}" in
2677 *) x=${exec_prefix} ;;
2679 for l in ${with_libs}; do
2680 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
2685 # Set with_gnu_as and with_gnu_ld as appropriate.
2687 # This is done by determining whether or not the appropriate directory
2688 # is available, and by checking whether or not specific configurations
2689 # have requested that this magic not happen.
2691 # The command line options always override the explicit settings in
2692 # configure.in, and the settings in configure.in override this magic.
2694 # If the default for a toolchain is to use GNU as and ld, and you don't
2695 # want to do that, then you should use the --without-gnu-as and
2696 # --without-gnu-ld options for the configure script.
2698 if test x${use_gnu_as} = x &&
2699 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
2701 extra_host_args="$extra_host_args --with-gnu-as"
2704 if test x${use_gnu_ld} = x &&
2705 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
2707 extra_host_args="$extra_host_args --with-gnu-ld"
2710 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2711 # can detect this case.
2713 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
2715 extra_host_args="$extra_host_args --with-newlib"
2718 # Handle ${copy_dirs}
2719 set fnord ${copy_dirs}
2721 while test $# != 0 ; do
2722 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
2725 echo Copying $1 to $2
2727 # Use the install script to create the directory and all required
2728 # parent directories.
2729 if test -d $2 ; then
2733 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
2736 # Copy the directory, assuming we have tar.
2737 # FIXME: Should we use B in the second tar? Not all systems support it.
2738 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
2740 # It is the responsibility of the user to correctly adjust all
2741 # symlinks. If somebody can figure out how to handle them correctly
2742 # here, feel free to add the code.
2749 # Determine a target-dependent exec_prefix that the installed
2750 # gcc will search in. Keep this list sorted by triplet, with
2751 # the *-*-osname triplets last.
2755 md_exec_prefix=/gnu/lib/gcc-lib
2757 i3456786-pc-msdosdjgpp*)
2758 md_exec_prefix=/dev/env/DJDIR/bin
2760 i3456786-*-sco3.2v5*)
2761 if test $with_gnu_as = yes; then
2762 md_exec_prefix=/usr/gnu/bin
2764 md_exec_prefix=/usr/ccs/bin/elf
2769 powerpc-*-chorusos* | \
2770 powerpc*-*-eabi* | \
2771 powerpc*-*-sysv* | \
2772 powerpc*-*-kaos* | \
2774 md_exec_prefix=/usr/ccs/bin
2779 md_exec_prefix=/usr/ccs/bin
2794 md_exec_prefix=/usr/ccs/bin
2798 extra_arflags_for_target=
2799 extra_nmflags_for_target=
2800 extra_ranlibflags_for_target=
2801 target_makefile_frag=/dev/null
2804 target_makefile_frag="config/mt-netware"
2806 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2807 target_makefile_frag="config/mt-gnu"
2809 *-*-aix4.[3456789]* | *-*-aix[56789].*)
2810 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2811 # commands to handle both 32-bit and 64-bit objects. These flags are
2812 # harmless if we're using GNU nm or ar.
2813 extra_arflags_for_target=" -X32_64"
2814 extra_nmflags_for_target=" -B -X32_64"
2817 # ranlib from Darwin requires the -c flag to look at common symbols.
2818 extra_ranlibflags_for_target=" -c"
2820 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
2821 target_makefile_frag="config/mt-wince"
2825 alphaieee_frag=/dev/null
2828 # This just makes sure to use the -mieee option to build target libs.
2829 # This should probably be set individually by each library.
2830 alphaieee_frag="config/mt-alphaieee"
2834 # If --enable-target-optspace always use -Os instead of -O2 to build
2835 # the target libraries, similarly if it is not specified, use -Os
2836 # on selected platforms.
2837 ospace_frag=/dev/null
2838 case "${enable_target_optspace}:${target}" in
2840 ospace_frag="config/mt-ospace"
2843 ospace_frag="config/mt-d30v"
2845 :m32r-* | :d10v-* | :fr30-*)
2846 ospace_frag="config/mt-ospace"
2851 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2855 # Default to using --with-stabs for certain targets.
2856 if test x${with_stabs} = x ; then
2860 mips*-*-* | alpha*-*-osf*)
2862 extra_host_args="${extra_host_args} --with-stabs"
2867 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2868 # them automatically.
2871 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2875 # Some systems (e.g., one of the i386-aix systems the gas testers are
2876 # using) don't handle "\$" correctly, so don't use it here.
2877 tooldir='${exec_prefix}'/${target_alias}
2878 build_tooldir=${tooldir}
2880 # Create a .gdbinit file which runs the one in srcdir
2881 # and tells GDB to look there for source files.
2883 if test -r ${srcdir}/.gdbinit ; then
2886 *) cat > ./.gdbinit <<EOF
2890 source ${srcdir}/.gdbinit
2896 # Make sure that the compiler is able to generate an executable. If it
2897 # can't, we are probably in trouble. We don't care whether we can run the
2898 # executable--we might be using a cross compiler--we only care whether it
2899 # can be created. At this point the main configure script has set CC.
2901 echo "int main () { return 0; }" > conftest.c
2902 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2903 if test $? = 0 ; then
2904 if test -s conftest || test -s conftest.exe ; then
2910 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2911 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2918 # The Solaris /usr/ucb/cc compiler does not appear to work.
2920 sparc-sun-solaris2*)
2921 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
2922 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2924 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
2925 if test -d /opt/cygnus/bin ; then
2926 if test "$could_use" = "" ; then
2927 could_use="/opt/cygnus/bin"
2929 could_use="$could_use or /opt/cygnus/bin"
2932 if test "$could_use" = "" ; then
2933 echo "Warning: compilation may fail because you're using"
2934 echo "/usr/ucb/cc. You should change your PATH or CC "
2935 echo "variable and rerun configure."
2937 echo "Warning: compilation may fail because you're using"
2938 echo "/usr/ucb/cc, when you should use the C compiler from"
2939 echo "$could_use. You should change your"
2940 echo "PATH or CC variable and rerun configure."
2947 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
2948 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
2949 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
2952 # Record target_configdirs and the configure arguments for target and
2953 # build configuration in Makefile.
2954 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2955 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
2957 # Determine whether gdb needs tk/tcl or not.
2958 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2959 # and in that case we want gdb to be built without tk. Ugh!
2960 # In fact I believe gdb is the *only* package directly dependent on tk,
2961 # so we should be able to put the 'maybe's in unconditionally and
2962 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2963 # 100% sure that that's safe though.
2965 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
2966 case "$enable_gdbtk" in
2970 GDB_TK="${gdb_tk}" ;;
2972 # Only add the dependency on gdbtk when GDBtk is part of the gdb
2973 # distro. Eventually someone will fix this and move Insight, nee
2974 # gdbtk to a separate directory.
2975 if test -d ${srcdir}/gdb/gdbtk ; then
2982 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
2983 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
2985 # Strip out unwanted targets.
2987 # While at that, we remove Makefiles if we were started for recursive
2988 # configuration, so that the top-level Makefile reconfigures them,
2989 # like we used to do when configure itself was recursive.
2991 # Loop over modules. $extrasub must be used with care, limiting as
2992 # much as possible the usage of range addresses. That's because autoconf
2993 # splits the sed script to overcome limits in the number of commands,
2994 # and relying on carefully-timed sed passes may turn out to be very hard
2995 # to maintain later. In this particular case, you just have to be careful
2996 # not to nest @if/@endif pairs, because configure will not warn you at all.
2998 # Check whether --enable-bootstrap or --disable-bootstrap was given.
2999 if test "${enable_bootstrap+set}" = set; then
3000 enableval="$enable_bootstrap"
3003 enable_bootstrap=default
3007 # Issue errors and warnings for invalid/strange bootstrap combinations.
3008 case "$configdirs" in
3009 *gcc*) have_compiler=yes ;;
3010 *) have_compiler=no ;;
3013 case "$have_compiler:$host:$target:$enable_bootstrap" in
3016 # Default behavior. Enable bootstrap if we have a compiler
3017 # and we are in a native configuration.
3018 yes:$build:$build:default)
3019 enable_bootstrap=yes ;;
3022 enable_bootstrap=no ;;
3024 # We have a compiler and we are in a native configuration, bootstrap is ok
3025 yes:$build:$build:yes)
3028 # Other configurations, but we have a compiler. Assume the user knows
3031 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3034 # No compiler: if they passed --enable-bootstrap explicitly, fail
3036 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3038 # Fail if wrong command line
3040 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3044 # Adjust the toplevel makefile according to whether bootstrap was selected.
3045 case "$enable_bootstrap" in
3047 bootstrap_suffix=bootstrap ;;
3049 bootstrap_suffix=no-bootstrap ;;
3052 for module in ${build_configdirs} ; do
3053 if test -z "${no_recursion}" \
3054 && test -f ${build_subdir}/${module}/Makefile; then
3055 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3056 rm -f ${build_subdir}/${module}/Makefile
3059 /^@if build-$module\$/d
3060 /^@endif build-$module\$/d
3061 /^@if build-$module-$bootstrap_suffix\$/d
3062 /^@endif build-$module-$bootstrap_suffix\$/d"
3064 for module in ${configdirs} ; do
3065 if test -z "${no_recursion}"; then
3066 for file in stage*-${module}/Makefile ${module}/Makefile; do
3067 if test -f ${file}; then
3068 echo 1>&2 "*** removing ${file} to force reconfigure"
3075 /^@endif $module\$/d
3076 /^@if $module-$bootstrap_suffix\$/d
3077 /^@endif $module-$bootstrap_suffix\$/d"
3079 for module in ${target_configdirs} ; do
3080 if test -z "${no_recursion}" \
3081 && test -f ${target_subdir}/${module}/Makefile; then
3082 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3083 rm -f ${target_subdir}/${module}/Makefile
3086 /^@if target-$module\$/d
3087 /^@endif target-$module\$/d
3088 /^@if target-$module-$bootstrap_suffix\$/d
3089 /^@endif target-$module-$bootstrap_suffix\$/d"
3093 /^@if /,/^@endif /d"
3095 # Create the serialization dependencies. This uses a temporary file.
3097 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3098 if test "${enable_serial_configure+set}" = set; then
3099 enableval="$enable_serial_configure"
3104 case ${enable_serial_configure} in
3106 enable_serial_build_configure=yes
3107 enable_serial_host_configure=yes
3108 enable_serial_target_configure=yes
3112 # These force 'configure's to be done one at a time, to avoid problems
3113 # with contention over a shared config.cache.
3115 echo '# serdep.tmp' > serdep.tmp
3117 test "x${enable_serial_build_configure}" = xyes &&
3118 for item in ${build_configdirs} ; do
3121 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
3126 test "x${enable_serial_host_configure}" = xyes &&
3127 for item in ${configdirs} ; do
3130 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
3135 test "x${enable_serial_target_configure}" = xyes &&
3136 for item in ${target_configdirs} ; do
3139 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
3143 serialization_dependencies=serdep.tmp
3146 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3147 # target and nonopt. These are the ones we might not want to pass
3148 # down to subconfigures. Also strip program-prefix, program-suffix,
3149 # and program-transform-name, so that we can pass down a consistent
3150 # program-transform-name. If autoconf has put single quotes around
3151 # any of these arguments (because they contain shell metacharacters)
3152 # then this will fail; in practice this only happens for
3153 # --program-transform-name, so be sure to override --program-transform-name
3154 # at the end of the argument list.
3155 # These will be expanded by make, so quote '$'.
3156 cat <<\EOF_SED > conftestsed
3158 s/ --c[a-z-]*[= ][^ ]*//g
3159 s/ --sr[a-z-]*[= ][^ ]*//g
3160 s/ --ho[a-z-]*[= ][^ ]*//g
3161 s/ --bu[a-z-]*[= ][^ ]*//g
3162 s/ --t[a-z-]*[= ][^ ]*//g
3163 s/ --program-[pst][a-z-]*[= ][^ ]*//g
3164 s/ -cache-file[= ][^ ]*//g
3165 s/ -srcdir[= ][^ ]*//g
3166 s/ -host[= ][^ ]*//g
3167 s/ -build[= ][^ ]*//g
3168 s/ -target[= ][^ ]*//g
3169 s/ -program-prefix[= ][^ ]*//g
3170 s/ -program-suffix[= ][^ ]*//g
3171 s/ -program-transform-name[= ][^ ]*//g
3176 sed -f conftestsed <<EOF_SED > conftestsed.out
3177 ${ac_configure_args}
3179 baseargs=`cat conftestsed.out`
3180 rm -f conftestsed conftestsed.out
3182 # Add in --program-transform-name, after --program-prefix and
3183 # --program-suffix have been applied to it. Autoconf has already
3184 # doubled dollar signs and backslashes in program_transform_name; we want
3185 # the backslashes un-doubled, and then the entire thing wrapped in single
3186 # quotes, because this will be expanded first by make and then by the shell.
3187 # Also, because we want to override the logic in subdir configure scripts to
3188 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3189 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3190 ${program_transform_name}
3192 gcc_transform_name=`cat conftestsed.out`
3193 rm -f conftestsed.out
3194 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3196 # For the build-side libraries, we just need to pretend we're native,
3197 # and not use the same cache file. Multilibs are neither needed nor
3199 build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3201 # For host modules, accept cache file option, or specification as blank.
3202 case "${cache_file}" in
3204 cache_file_option="" ;;
3205 /* | [A-Za-z]:[\\/]* ) # absolute path
3206 cache_file_option="--cache-file=${cache_file}" ;;
3208 cache_file_option="--cache-file=../${cache_file}" ;;
3211 # Host dirs don't like to share a cache file either, horribly enough.
3212 # This seems to be due to autoconf 2.5x stupidity.
3213 host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3215 target_configargs=${baseargs}
3217 # Passing a --with-cross-host argument lets the target libraries know
3218 # whether they are being built with a cross-compiler or being built
3219 # native. However, it would be better to use other mechanisms to make the
3220 # sorts of decisions they want to make on this basis. Please consider
3221 # this option to be deprecated. FIXME.
3222 if test x${is_cross_compiler} = xyes ; then
3223 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
3226 # Default to --enable-multilib.
3227 if test x${enable_multilib} = x ; then
3228 target_configargs="--enable-multilib ${target_configargs}"
3231 # Pass --with-newlib if appropriate. Note that target_configdirs has
3232 # changed from the earlier setting of with_newlib.
3233 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
3234 target_configargs="--with-newlib ${target_configargs}"
3237 # Different target subdirs use different values of certain variables
3238 # (notably CXX). Worse, multilibs use *lots* of different values.
3239 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3240 # it doesn't automatically accept command-line overrides of them.
3241 # This means it's not safe for target subdirs to share a cache file,
3242 # which is disgusting, but there you have it. Hopefully this can be
3243 # fixed in future. It's still worthwhile to use a cache file for each
3244 # directory. I think.
3246 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3247 # We need to pass --target, as newer autoconf's requires consistency
3248 # for target_alias and gcc doesn't manage it consistently.
3249 target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3252 case " $target_configdirs " in
3254 case " $target_configargs " in
3255 *" --with-newlib "*)
3258 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' ;;
3261 # If we're not building GCC, don't discard standard headers.
3262 if test -d ${srcdir}/gcc; then
3263 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
3265 if test "${build}" != "${host}"; then
3266 # On Canadian crosses, CC_FOR_TARGET will have already been set
3267 # by `configure', so we won't have an opportunity to add -Bgcc/
3268 # to it. This is right: we don't want to search that directory
3269 # for binaries, but we want the header files in there, so add
3271 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3273 # Someone might think of using the pre-installed headers on
3274 # Canadian crosses, in case the installed compiler is not fully
3275 # compatible with the compiler being built. In this case, it
3276 # would be better to flag an error than risking having
3277 # incompatible object files being constructed. We can't
3278 # guarantee that an error will be flagged, but let's hope the
3279 # compiler will do it, when presented with incompatible header
3284 case "${target}-${is_cross_compiler}" in
3285 i[3456789]86-*-linux*-no)
3286 # Here host == target, so we don't need to build gcc,
3287 # so we don't want to discard standard headers.
3288 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3291 # If we're building newlib, use its generic headers last, but search
3292 # for any libc-related directories first (so make it the last -B
3294 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3302 # Allow the user to override the flags for
3303 # our build compiler if desired.
3304 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3306 # On Canadian crosses, we'll be searching the right directories for
3307 # the previously-installed cross compiler, so don't bother to add
3308 # flags for directories within the install tree of the compiler
3309 # being built; programs in there won't even run.
3310 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3311 # Search for pre-installed headers if nothing else fits.
3312 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3315 if test "x${use_gnu_ld}" = x &&
3316 echo " ${configdirs} " | grep " ld " > /dev/null ; then
3317 # Arrange for us to find uninstalled linker scripts.
3318 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3321 # Makefile fragments.
3322 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3324 eval fragval=\$$frag
3325 if test $fragval != /dev/null; then
3326 eval $frag=${srcdir}/$fragval
3334 # Miscellanea: directories, flags, etc.
3344 # Build module lists & subconfigure args.
3348 # Host module lists & subconfigure args.
3352 # Target module lists & subconfigure args.
3360 # Generate default definitions for YACC, M4, LEX and other programs that run
3361 # on the build machine. These are used if the Makefile can't locate these
3362 # programs in objdir.
3363 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3365 for ac_prog in 'bison -y' byacc yacc
3367 # Extract the first word of "$ac_prog", so it can be a program name with args.
3368 set dummy $ac_prog; ac_word=$2
3369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3370 echo "configure:3371: checking for $ac_word" >&5
3371 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6
3374 if test -n "$YACC"; then
3375 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3379 for ac_dir in $ac_dummy; do
3380 test -z "$ac_dir" && ac_dir=.
3381 if test -f $ac_dir/$ac_word; then
3382 ac_cv_prog_YACC="$ac_prog"
3389 YACC="$ac_cv_prog_YACC"
3390 if test -n "$YACC"; then
3391 echo "$ac_t""$YACC" 1>&6
3393 echo "$ac_t""no" 1>&6
3396 test -n "$YACC" && break
3398 test -n "$YACC" || YACC="$MISSING bison -y"
3400 case " $build_configdirs " in
3401 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3402 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3405 for ac_prog in bison
3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3408 set dummy $ac_prog; ac_word=$2
3409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3410 echo "configure:3411: checking for $ac_word" >&5
3411 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 if test -n "$BISON"; then
3415 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3419 for ac_dir in $ac_dummy; do
3420 test -z "$ac_dir" && ac_dir=.
3421 if test -f $ac_dir/$ac_word; then
3422 ac_cv_prog_BISON="$ac_prog"
3429 BISON="$ac_cv_prog_BISON"
3430 if test -n "$BISON"; then
3431 echo "$ac_t""$BISON" 1>&6
3433 echo "$ac_t""no" 1>&6
3436 test -n "$BISON" && break
3438 test -n "$BISON" || BISON="$MISSING bison"
3440 case " $build_configdirs " in
3441 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3444 for ac_prog in gm4 gnum4 m4
3446 # Extract the first word of "$ac_prog", so it can be a program name with args.
3447 set dummy $ac_prog; ac_word=$2
3448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3449 echo "configure:3450: checking for $ac_word" >&5
3450 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3453 if test -n "$M4"; then
3454 ac_cv_prog_M4="$M4" # Let the user override the test.
3456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3458 for ac_dir in $ac_dummy; do
3459 test -z "$ac_dir" && ac_dir=.
3460 if test -f $ac_dir/$ac_word; then
3461 ac_cv_prog_M4="$ac_prog"
3469 if test -n "$M4"; then
3470 echo "$ac_t""$M4" 1>&6
3472 echo "$ac_t""no" 1>&6
3475 test -n "$M4" && break
3477 test -n "$M4" || M4="$MISSING m4"
3479 case " $build_configdirs " in
3480 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3483 for ac_prog in flex lex
3485 # Extract the first word of "$ac_prog", so it can be a program name with args.
3486 set dummy $ac_prog; ac_word=$2
3487 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3488 echo "configure:3489: checking for $ac_word" >&5
3489 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3492 if test -n "$LEX"; then
3493 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3497 for ac_dir in $ac_dummy; do
3498 test -z "$ac_dir" && ac_dir=.
3499 if test -f $ac_dir/$ac_word; then
3500 ac_cv_prog_LEX="$ac_prog"
3507 LEX="$ac_cv_prog_LEX"
3508 if test -n "$LEX"; then
3509 echo "$ac_t""$LEX" 1>&6
3511 echo "$ac_t""no" 1>&6
3514 test -n "$LEX" && break
3516 test -n "$LEX" || LEX="$MISSING flex"
3518 case " $build_configdirs " in
3519 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3520 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3525 # Extract the first word of "$ac_prog", so it can be a program name with args.
3526 set dummy $ac_prog; ac_word=$2
3527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3528 echo "configure:3529: checking for $ac_word" >&5
3529 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 if test -n "$FLEX"; then
3533 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3537 for ac_dir in $ac_dummy; do
3538 test -z "$ac_dir" && ac_dir=.
3539 if test -f $ac_dir/$ac_word; then
3540 ac_cv_prog_FLEX="$ac_prog"
3547 FLEX="$ac_cv_prog_FLEX"
3548 if test -n "$FLEX"; then
3549 echo "$ac_t""$FLEX" 1>&6
3551 echo "$ac_t""no" 1>&6
3554 test -n "$FLEX" && break
3556 test -n "$FLEX" || FLEX="$MISSING flex"
3558 case " $build_configdirs " in
3559 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3562 for ac_prog in makeinfo
3564 # Extract the first word of "$ac_prog", so it can be a program name with args.
3565 set dummy $ac_prog; ac_word=$2
3566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3567 echo "configure:3568: checking for $ac_word" >&5
3568 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3571 if test -n "$MAKEINFO"; then
3572 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3576 for ac_dir in $ac_dummy; do
3577 test -z "$ac_dir" && ac_dir=.
3578 if test -f $ac_dir/$ac_word; then
3579 ac_cv_prog_MAKEINFO="$ac_prog"
3586 MAKEINFO="$ac_cv_prog_MAKEINFO"
3587 if test -n "$MAKEINFO"; then
3588 echo "$ac_t""$MAKEINFO" 1>&6
3590 echo "$ac_t""no" 1>&6
3593 test -n "$MAKEINFO" && break
3595 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
3597 case " $build_configdirs " in
3598 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3601 # For an installed makeinfo, we require it to be from texinfo 4.2 or
3602 # higher, else we use the "missing" dummy.
3603 if ${MAKEINFO} --version \
3604 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])' >/dev/null 2>&1; then
3607 MAKEINFO="$MISSING makeinfo"
3613 # FIXME: expect and dejagnu may become build tools?
3615 for ac_prog in expect
3617 # Extract the first word of "$ac_prog", so it can be a program name with args.
3618 set dummy $ac_prog; ac_word=$2
3619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3620 echo "configure:3621: checking for $ac_word" >&5
3621 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3624 if test -n "$EXPECT"; then
3625 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3629 for ac_dir in $ac_dummy; do
3630 test -z "$ac_dir" && ac_dir=.
3631 if test -f $ac_dir/$ac_word; then
3632 ac_cv_prog_EXPECT="$ac_prog"
3639 EXPECT="$ac_cv_prog_EXPECT"
3640 if test -n "$EXPECT"; then
3641 echo "$ac_t""$EXPECT" 1>&6
3643 echo "$ac_t""no" 1>&6
3646 test -n "$EXPECT" && break
3648 test -n "$EXPECT" || EXPECT="expect"
3650 case " $configdirs " in
3652 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3656 for ac_prog in runtest
3658 # Extract the first word of "$ac_prog", so it can be a program name with args.
3659 set dummy $ac_prog; ac_word=$2
3660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3661 echo "configure:3662: checking for $ac_word" >&5
3662 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3665 if test -n "$RUNTEST"; then
3666 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3670 for ac_dir in $ac_dummy; do
3671 test -z "$ac_dir" && ac_dir=.
3672 if test -f $ac_dir/$ac_word; then
3673 ac_cv_prog_RUNTEST="$ac_prog"
3680 RUNTEST="$ac_cv_prog_RUNTEST"
3681 if test -n "$RUNTEST"; then
3682 echo "$ac_t""$RUNTEST" 1>&6
3684 echo "$ac_t""no" 1>&6
3687 test -n "$RUNTEST" && break
3689 test -n "$RUNTEST" || RUNTEST="runtest"
3691 case " $configdirs " in
3693 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3700 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3701 ncn_target_tool_prefix=
3702 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3704 for ncn_progname in ar; do
3705 if test -n "$ncn_tool_prefix"; then
3706 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3707 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3709 echo "configure:3710: checking for $ac_word" >&5
3710 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3713 if test -n "$AR"; then
3714 ac_cv_prog_AR="$AR" # Let the user override the test.
3716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3718 for ac_dir in $ac_dummy; do
3719 test -z "$ac_dir" && ac_dir=.
3720 if test -f $ac_dir/$ac_word; then
3721 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3729 if test -n "$AR"; then
3730 echo "$ac_t""$AR" 1>&6
3732 echo "$ac_t""no" 1>&6
3736 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3738 set dummy ${ncn_progname}; ac_word=$2
3739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3740 echo "configure:3741: checking for $ac_word" >&5
3741 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3744 if test -n "$AR"; then
3745 ac_cv_prog_AR="$AR" # Let the user override the test.
3747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3749 for ac_dir in $ac_dummy; do
3750 test -z "$ac_dir" && ac_dir=.
3751 if test -f $ac_dir/$ac_word; then
3752 ac_cv_prog_AR="${ncn_progname}"
3760 if test -n "$AR"; then
3761 echo "$ac_t""$AR" 1>&6
3763 echo "$ac_t""no" 1>&6
3767 test -n "$ac_cv_prog_AR" && break
3770 if test -z "$ac_cv_prog_AR" ; then
3772 if test $build = $host ; then
3775 AR="${ncn_tool_prefix}$2"
3779 for ncn_progname in as; do
3780 if test -n "$ncn_tool_prefix"; then
3781 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3782 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3784 echo "configure:3785: checking for $ac_word" >&5
3785 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 if test -n "$AS"; then
3789 ac_cv_prog_AS="$AS" # Let the user override the test.
3791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3793 for ac_dir in $ac_dummy; do
3794 test -z "$ac_dir" && ac_dir=.
3795 if test -f $ac_dir/$ac_word; then
3796 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3804 if test -n "$AS"; then
3805 echo "$ac_t""$AS" 1>&6
3807 echo "$ac_t""no" 1>&6
3811 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3813 set dummy ${ncn_progname}; ac_word=$2
3814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3815 echo "configure:3816: checking for $ac_word" >&5
3816 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3819 if test -n "$AS"; then
3820 ac_cv_prog_AS="$AS" # Let the user override the test.
3822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3824 for ac_dir in $ac_dummy; do
3825 test -z "$ac_dir" && ac_dir=.
3826 if test -f $ac_dir/$ac_word; then
3827 ac_cv_prog_AS="${ncn_progname}"
3835 if test -n "$AS"; then
3836 echo "$ac_t""$AS" 1>&6
3838 echo "$ac_t""no" 1>&6
3842 test -n "$ac_cv_prog_AS" && break
3845 if test -z "$ac_cv_prog_AS" ; then
3847 if test $build = $host ; then
3850 AS="${ncn_tool_prefix}$2"
3854 for ncn_progname in dlltool; do
3855 if test -n "$ncn_tool_prefix"; then
3856 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3857 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3859 echo "configure:3860: checking for $ac_word" >&5
3860 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3863 if test -n "$DLLTOOL"; then
3864 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3868 for ac_dir in $ac_dummy; do
3869 test -z "$ac_dir" && ac_dir=.
3870 if test -f $ac_dir/$ac_word; then
3871 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3878 DLLTOOL="$ac_cv_prog_DLLTOOL"
3879 if test -n "$DLLTOOL"; then
3880 echo "$ac_t""$DLLTOOL" 1>&6
3882 echo "$ac_t""no" 1>&6
3886 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3888 set dummy ${ncn_progname}; ac_word=$2
3889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3890 echo "configure:3891: checking for $ac_word" >&5
3891 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3894 if test -n "$DLLTOOL"; then
3895 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3899 for ac_dir in $ac_dummy; do
3900 test -z "$ac_dir" && ac_dir=.
3901 if test -f $ac_dir/$ac_word; then
3902 ac_cv_prog_DLLTOOL="${ncn_progname}"
3909 DLLTOOL="$ac_cv_prog_DLLTOOL"
3910 if test -n "$DLLTOOL"; then
3911 echo "$ac_t""$DLLTOOL" 1>&6
3913 echo "$ac_t""no" 1>&6
3917 test -n "$ac_cv_prog_DLLTOOL" && break
3920 if test -z "$ac_cv_prog_DLLTOOL" ; then
3922 if test $build = $host ; then
3925 DLLTOOL="${ncn_tool_prefix}$2"
3929 for ncn_progname in ld; do
3930 if test -n "$ncn_tool_prefix"; then
3931 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3932 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3934 echo "configure:3935: checking for $ac_word" >&5
3935 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3938 if test -n "$LD"; then
3939 ac_cv_prog_LD="$LD" # Let the user override the test.
3941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3943 for ac_dir in $ac_dummy; do
3944 test -z "$ac_dir" && ac_dir=.
3945 if test -f $ac_dir/$ac_word; then
3946 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3954 if test -n "$LD"; then
3955 echo "$ac_t""$LD" 1>&6
3957 echo "$ac_t""no" 1>&6
3961 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
3962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3963 set dummy ${ncn_progname}; ac_word=$2
3964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3965 echo "configure:3966: checking for $ac_word" >&5
3966 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3969 if test -n "$LD"; then
3970 ac_cv_prog_LD="$LD" # Let the user override the test.
3972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3974 for ac_dir in $ac_dummy; do
3975 test -z "$ac_dir" && ac_dir=.
3976 if test -f $ac_dir/$ac_word; then
3977 ac_cv_prog_LD="${ncn_progname}"
3985 if test -n "$LD"; then
3986 echo "$ac_t""$LD" 1>&6
3988 echo "$ac_t""no" 1>&6
3992 test -n "$ac_cv_prog_LD" && break
3995 if test -z "$ac_cv_prog_LD" ; then
3997 if test $build = $host ; then
4000 LD="${ncn_tool_prefix}$2"
4004 for ncn_progname in lipo; do
4005 if test -n "$ncn_tool_prefix"; then
4006 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4007 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4009 echo "configure:4010: checking for $ac_word" >&5
4010 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4013 if test -n "$LIPO"; then
4014 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4018 for ac_dir in $ac_dummy; do
4019 test -z "$ac_dir" && ac_dir=.
4020 if test -f $ac_dir/$ac_word; then
4021 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4028 LIPO="$ac_cv_prog_LIPO"
4029 if test -n "$LIPO"; then
4030 echo "$ac_t""$LIPO" 1>&6
4032 echo "$ac_t""no" 1>&6
4036 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4038 set dummy ${ncn_progname}; ac_word=$2
4039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4040 echo "configure:4041: checking for $ac_word" >&5
4041 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4042 echo $ac_n "(cached) $ac_c" 1>&6
4044 if test -n "$LIPO"; then
4045 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4049 for ac_dir in $ac_dummy; do
4050 test -z "$ac_dir" && ac_dir=.
4051 if test -f $ac_dir/$ac_word; then
4052 ac_cv_prog_LIPO="${ncn_progname}"
4059 LIPO="$ac_cv_prog_LIPO"
4060 if test -n "$LIPO"; then
4061 echo "$ac_t""$LIPO" 1>&6
4063 echo "$ac_t""no" 1>&6
4067 test -n "$ac_cv_prog_LIPO" && break
4070 if test -z "$ac_cv_prog_LIPO" ; then
4072 if test $build = $host ; then
4075 LIPO="${ncn_tool_prefix}$2"
4079 for ncn_progname in nm; do
4080 if test -n "$ncn_tool_prefix"; then
4081 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4082 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4084 echo "configure:4085: checking for $ac_word" >&5
4085 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4088 if test -n "$NM"; then
4089 ac_cv_prog_NM="$NM" # Let the user override the test.
4091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4093 for ac_dir in $ac_dummy; do
4094 test -z "$ac_dir" && ac_dir=.
4095 if test -f $ac_dir/$ac_word; then
4096 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4104 if test -n "$NM"; then
4105 echo "$ac_t""$NM" 1>&6
4107 echo "$ac_t""no" 1>&6
4111 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4113 set dummy ${ncn_progname}; ac_word=$2
4114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4115 echo "configure:4116: checking for $ac_word" >&5
4116 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4119 if test -n "$NM"; then
4120 ac_cv_prog_NM="$NM" # Let the user override the test.
4122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4124 for ac_dir in $ac_dummy; do
4125 test -z "$ac_dir" && ac_dir=.
4126 if test -f $ac_dir/$ac_word; then
4127 ac_cv_prog_NM="${ncn_progname}"
4135 if test -n "$NM"; then
4136 echo "$ac_t""$NM" 1>&6
4138 echo "$ac_t""no" 1>&6
4142 test -n "$ac_cv_prog_NM" && break
4145 if test -z "$ac_cv_prog_NM" ; then
4147 if test $build = $host ; then
4150 NM="${ncn_tool_prefix}$2"
4154 for ncn_progname in ranlib; do
4155 if test -n "$ncn_tool_prefix"; then
4156 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4157 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4159 echo "configure:4160: checking for $ac_word" >&5
4160 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
4163 if test -n "$RANLIB"; then
4164 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4168 for ac_dir in $ac_dummy; do
4169 test -z "$ac_dir" && ac_dir=.
4170 if test -f $ac_dir/$ac_word; then
4171 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4178 RANLIB="$ac_cv_prog_RANLIB"
4179 if test -n "$RANLIB"; then
4180 echo "$ac_t""$RANLIB" 1>&6
4182 echo "$ac_t""no" 1>&6
4186 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4188 set dummy ${ncn_progname}; ac_word=$2
4189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_word" >&5
4191 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 if test -n "$RANLIB"; then
4195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4199 for ac_dir in $ac_dummy; do
4200 test -z "$ac_dir" && ac_dir=.
4201 if test -f $ac_dir/$ac_word; then
4202 ac_cv_prog_RANLIB="${ncn_progname}"
4209 RANLIB="$ac_cv_prog_RANLIB"
4210 if test -n "$RANLIB"; then
4211 echo "$ac_t""$RANLIB" 1>&6
4213 echo "$ac_t""no" 1>&6
4217 test -n "$ac_cv_prog_RANLIB" && break
4220 if test -z "$ac_cv_prog_RANLIB" ; then
4224 for ncn_progname in strip; do
4225 if test -n "$ncn_tool_prefix"; then
4226 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4227 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4229 echo "configure:4230: checking for $ac_word" >&5
4230 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4231 echo $ac_n "(cached) $ac_c" 1>&6
4233 if test -n "$STRIP"; then
4234 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4238 for ac_dir in $ac_dummy; do
4239 test -z "$ac_dir" && ac_dir=.
4240 if test -f $ac_dir/$ac_word; then
4241 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4248 STRIP="$ac_cv_prog_STRIP"
4249 if test -n "$STRIP"; then
4250 echo "$ac_t""$STRIP" 1>&6
4252 echo "$ac_t""no" 1>&6
4256 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4258 set dummy ${ncn_progname}; ac_word=$2
4259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4260 echo "configure:4261: checking for $ac_word" >&5
4261 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4264 if test -n "$STRIP"; then
4265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4269 for ac_dir in $ac_dummy; do
4270 test -z "$ac_dir" && ac_dir=.
4271 if test -f $ac_dir/$ac_word; then
4272 ac_cv_prog_STRIP="${ncn_progname}"
4279 STRIP="$ac_cv_prog_STRIP"
4280 if test -n "$STRIP"; then
4281 echo "$ac_t""$STRIP" 1>&6
4283 echo "$ac_t""no" 1>&6
4287 test -n "$ac_cv_prog_STRIP" && break
4290 if test -z "$ac_cv_prog_STRIP" ; then
4294 for ncn_progname in windres; do
4295 if test -n "$ncn_tool_prefix"; then
4296 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4297 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4299 echo "configure:4300: checking for $ac_word" >&5
4300 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6
4303 if test -n "$WINDRES"; then
4304 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4308 for ac_dir in $ac_dummy; do
4309 test -z "$ac_dir" && ac_dir=.
4310 if test -f $ac_dir/$ac_word; then
4311 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4318 WINDRES="$ac_cv_prog_WINDRES"
4319 if test -n "$WINDRES"; then
4320 echo "$ac_t""$WINDRES" 1>&6
4322 echo "$ac_t""no" 1>&6
4326 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4328 set dummy ${ncn_progname}; ac_word=$2
4329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4330 echo "configure:4331: checking for $ac_word" >&5
4331 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4334 if test -n "$WINDRES"; then
4335 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4339 for ac_dir in $ac_dummy; do
4340 test -z "$ac_dir" && ac_dir=.
4341 if test -f $ac_dir/$ac_word; then
4342 ac_cv_prog_WINDRES="${ncn_progname}"
4349 WINDRES="$ac_cv_prog_WINDRES"
4350 if test -n "$WINDRES"; then
4351 echo "$ac_t""$WINDRES" 1>&6
4353 echo "$ac_t""no" 1>&6
4357 test -n "$ac_cv_prog_WINDRES" && break
4360 if test -z "$ac_cv_prog_WINDRES" ; then
4362 if test $build = $host ; then
4365 WINDRES="${ncn_tool_prefix}$2"
4369 for ncn_progname in objcopy; do
4370 if test -n "$ncn_tool_prefix"; then
4371 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4372 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4374 echo "configure:4375: checking for $ac_word" >&5
4375 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4378 if test -n "$OBJCOPY"; then
4379 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4383 for ac_dir in $ac_dummy; do
4384 test -z "$ac_dir" && ac_dir=.
4385 if test -f $ac_dir/$ac_word; then
4386 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4393 OBJCOPY="$ac_cv_prog_OBJCOPY"
4394 if test -n "$OBJCOPY"; then
4395 echo "$ac_t""$OBJCOPY" 1>&6
4397 echo "$ac_t""no" 1>&6
4401 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4403 set dummy ${ncn_progname}; ac_word=$2
4404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4405 echo "configure:4406: checking for $ac_word" >&5
4406 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4409 if test -n "$OBJCOPY"; then
4410 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4414 for ac_dir in $ac_dummy; do
4415 test -z "$ac_dir" && ac_dir=.
4416 if test -f $ac_dir/$ac_word; then
4417 ac_cv_prog_OBJCOPY="${ncn_progname}"
4424 OBJCOPY="$ac_cv_prog_OBJCOPY"
4425 if test -n "$OBJCOPY"; then
4426 echo "$ac_t""$OBJCOPY" 1>&6
4428 echo "$ac_t""no" 1>&6
4432 test -n "$ac_cv_prog_OBJCOPY" && break
4435 if test -z "$ac_cv_prog_OBJCOPY" ; then
4437 if test $build = $host ; then
4440 OBJCOPY="${ncn_tool_prefix}$2"
4444 for ncn_progname in objdump; do
4445 if test -n "$ncn_tool_prefix"; then
4446 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4447 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4449 echo "configure:4450: checking for $ac_word" >&5
4450 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 if test -n "$OBJDUMP"; then
4454 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4458 for ac_dir in $ac_dummy; do
4459 test -z "$ac_dir" && ac_dir=.
4460 if test -f $ac_dir/$ac_word; then
4461 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4468 OBJDUMP="$ac_cv_prog_OBJDUMP"
4469 if test -n "$OBJDUMP"; then
4470 echo "$ac_t""$OBJDUMP" 1>&6
4472 echo "$ac_t""no" 1>&6
4476 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4478 set dummy ${ncn_progname}; ac_word=$2
4479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4480 echo "configure:4481: checking for $ac_word" >&5
4481 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4482 echo $ac_n "(cached) $ac_c" 1>&6
4484 if test -n "$OBJDUMP"; then
4485 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4489 for ac_dir in $ac_dummy; do
4490 test -z "$ac_dir" && ac_dir=.
4491 if test -f $ac_dir/$ac_word; then
4492 ac_cv_prog_OBJDUMP="${ncn_progname}"
4499 OBJDUMP="$ac_cv_prog_OBJDUMP"
4500 if test -n "$OBJDUMP"; then
4501 echo "$ac_t""$OBJDUMP" 1>&6
4503 echo "$ac_t""no" 1>&6
4507 test -n "$ac_cv_prog_OBJDUMP" && break
4510 if test -z "$ac_cv_prog_OBJDUMP" ; then
4512 if test $build = $host ; then
4515 OBJDUMP="${ncn_tool_prefix}$2"
4526 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4527 if test "${with_build_time_tools+set}" = set; then
4528 withval="$with_build_time_tools"
4532 with_build_time_tools=
4533 echo "configure: warning: argument to --with-build-time-tools must be an absolute path" 1>&2
4537 with_build_time_tools=
4541 if test -n "$with_build_time_tools"; then
4542 for ncn_progname in cc gcc; do
4543 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4544 echo "configure:4545: checking for ${ncn_progname} in $with_build_time_tools" >&5
4545 if test -x $with_build_time_tools/${ncn_progname}; then
4546 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4547 echo "$ac_t""yes" 1>&6
4550 echo "$ac_t""no" 1>&6
4555 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4556 for ncn_progname in cc gcc; do
4557 if test -n "$ncn_target_tool_prefix"; then
4558 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4559 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4561 echo "configure:4562: checking for $ac_word" >&5
4562 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4565 if test -n "$CC_FOR_TARGET"; then
4566 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4570 for ac_dir in $ac_dummy; do
4571 test -z "$ac_dir" && ac_dir=.
4572 if test -f $ac_dir/$ac_word; then
4573 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4580 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4581 if test -n "$CC_FOR_TARGET"; then
4582 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4584 echo "$ac_t""no" 1>&6
4588 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4590 set dummy ${ncn_progname}; ac_word=$2
4591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4592 echo "configure:4593: checking for $ac_word" >&5
4593 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4596 if test -n "$CC_FOR_TARGET"; then
4597 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4601 for ac_dir in $ac_dummy; do
4602 test -z "$ac_dir" && ac_dir=.
4603 if test -f $ac_dir/$ac_word; then
4604 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4611 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4612 if test -n "$CC_FOR_TARGET"; then
4613 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4615 echo "$ac_t""no" 1>&6
4619 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4623 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4625 if test $build = $target ; then
4628 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4632 if test -n "$with_build_time_tools"; then
4633 for ncn_progname in c++ g++ cxx gxx; do
4634 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4635 echo "configure:4636: checking for ${ncn_progname} in $with_build_time_tools" >&5
4636 if test -x $with_build_time_tools/${ncn_progname}; then
4637 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4638 echo "$ac_t""yes" 1>&6
4641 echo "$ac_t""no" 1>&6
4646 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4647 for ncn_progname in c++ g++ cxx gxx; do
4648 if test -n "$ncn_target_tool_prefix"; then
4649 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4650 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4652 echo "configure:4653: checking for $ac_word" >&5
4653 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
4656 if test -n "$CXX_FOR_TARGET"; then
4657 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4661 for ac_dir in $ac_dummy; do
4662 test -z "$ac_dir" && ac_dir=.
4663 if test -f $ac_dir/$ac_word; then
4664 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4671 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4672 if test -n "$CXX_FOR_TARGET"; then
4673 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4675 echo "$ac_t""no" 1>&6
4679 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4681 set dummy ${ncn_progname}; ac_word=$2
4682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4683 echo "configure:4684: checking for $ac_word" >&5
4684 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4687 if test -n "$CXX_FOR_TARGET"; then
4688 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4692 for ac_dir in $ac_dummy; do
4693 test -z "$ac_dir" && ac_dir=.
4694 if test -f $ac_dir/$ac_word; then
4695 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4702 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4703 if test -n "$CXX_FOR_TARGET"; then
4704 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4706 echo "$ac_t""no" 1>&6
4710 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4714 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4715 set dummy c++ g++ cxx gxx
4716 if test $build = $target ; then
4719 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4723 if test -n "$with_build_time_tools"; then
4724 for ncn_progname in gcc; do
4725 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4726 echo "configure:4727: checking for ${ncn_progname} in $with_build_time_tools" >&5
4727 if test -x $with_build_time_tools/${ncn_progname}; then
4728 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4729 echo "$ac_t""yes" 1>&6
4732 echo "$ac_t""no" 1>&6
4737 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4738 for ncn_progname in gcc; do
4739 if test -n "$ncn_target_tool_prefix"; then
4740 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4741 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4743 echo "configure:4744: checking for $ac_word" >&5
4744 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4745 echo $ac_n "(cached) $ac_c" 1>&6
4747 if test -n "$GCC_FOR_TARGET"; then
4748 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4752 for ac_dir in $ac_dummy; do
4753 test -z "$ac_dir" && ac_dir=.
4754 if test -f $ac_dir/$ac_word; then
4755 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4762 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4763 if test -n "$GCC_FOR_TARGET"; then
4764 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4766 echo "$ac_t""no" 1>&6
4770 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4772 set dummy ${ncn_progname}; ac_word=$2
4773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4774 echo "configure:4775: checking for $ac_word" >&5
4775 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 if test -n "$GCC_FOR_TARGET"; then
4779 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4783 for ac_dir in $ac_dummy; do
4784 test -z "$ac_dir" && ac_dir=.
4785 if test -f $ac_dir/$ac_word; then
4786 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4793 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4794 if test -n "$GCC_FOR_TARGET"; then
4795 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4797 echo "$ac_t""no" 1>&6
4801 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4805 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4806 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4809 if test -n "$with_build_time_tools"; then
4810 for ncn_progname in gcj; do
4811 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4812 echo "configure:4813: checking for ${ncn_progname} in $with_build_time_tools" >&5
4813 if test -x $with_build_time_tools/${ncn_progname}; then
4814 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4815 echo "$ac_t""yes" 1>&6
4818 echo "$ac_t""no" 1>&6
4823 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4824 for ncn_progname in gcj; do
4825 if test -n "$ncn_target_tool_prefix"; then
4826 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4827 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4829 echo "configure:4830: checking for $ac_word" >&5
4830 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4833 if test -n "$GCJ_FOR_TARGET"; then
4834 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4838 for ac_dir in $ac_dummy; do
4839 test -z "$ac_dir" && ac_dir=.
4840 if test -f $ac_dir/$ac_word; then
4841 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4848 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4849 if test -n "$GCJ_FOR_TARGET"; then
4850 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4852 echo "$ac_t""no" 1>&6
4856 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4858 set dummy ${ncn_progname}; ac_word=$2
4859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4860 echo "configure:4861: checking for $ac_word" >&5
4861 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4862 echo $ac_n "(cached) $ac_c" 1>&6
4864 if test -n "$GCJ_FOR_TARGET"; then
4865 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4869 for ac_dir in $ac_dummy; do
4870 test -z "$ac_dir" && ac_dir=.
4871 if test -f $ac_dir/$ac_word; then
4872 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4879 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4880 if test -n "$GCJ_FOR_TARGET"; then
4881 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4883 echo "$ac_t""no" 1>&6
4887 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4891 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4893 if test $build = $target ; then
4896 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4900 if test -n "$with_build_time_tools"; then
4901 for ncn_progname in gfortran; do
4902 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
4903 echo "configure:4904: checking for ${ncn_progname} in $with_build_time_tools" >&5
4904 if test -x $with_build_time_tools/${ncn_progname}; then
4905 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4906 echo "$ac_t""yes" 1>&6
4909 echo "$ac_t""no" 1>&6
4914 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
4915 for ncn_progname in gfortran; do
4916 if test -n "$ncn_target_tool_prefix"; then
4917 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4918 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4920 echo "configure:4921: checking for $ac_word" >&5
4921 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4924 if test -n "$GFORTRAN_FOR_TARGET"; then
4925 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4929 for ac_dir in $ac_dummy; do
4930 test -z "$ac_dir" && ac_dir=.
4931 if test -f $ac_dir/$ac_word; then
4932 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4939 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4940 if test -n "$GFORTRAN_FOR_TARGET"; then
4941 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4943 echo "$ac_t""no" 1>&6
4947 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4949 set dummy ${ncn_progname}; ac_word=$2
4950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4951 echo "configure:4952: checking for $ac_word" >&5
4952 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4955 if test -n "$GFORTRAN_FOR_TARGET"; then
4956 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4960 for ac_dir in $ac_dummy; do
4961 test -z "$ac_dir" && ac_dir=.
4962 if test -f $ac_dir/$ac_word; then
4963 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
4970 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4971 if test -n "$GFORTRAN_FOR_TARGET"; then
4972 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4974 echo "$ac_t""no" 1>&6
4978 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
4982 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
4984 if test $build = $target ; then
4985 GFORTRAN_FOR_TARGET="$2"
4987 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
4993 # The user is always right.
4994 if test "${PATH_SEPARATOR+set}" != set; then
4995 echo "#! /bin/sh" >conf$$.sh
4996 echo "exit 0" >>conf$$.sh
4998 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5008 if test "x$exec_prefix" = xNONE; then
5009 if test "x$prefix" = xNONE; then
5010 gcc_cv_tool_prefix=$ac_default_prefix
5012 gcc_cv_tool_prefix=$prefix
5015 gcc_cv_tool_prefix=$exec_prefix
5018 # If there is no compiler in the tree, use the PATH only. In any
5019 # case, if there is no compiler in the tree nobody should use
5020 # AS_FOR_TARGET and LD_FOR_TARGET.
5021 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5022 gcc_version=`cat $srcdir/gcc/BASE-VER`
5023 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5024 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5025 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5026 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5027 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5028 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5033 if test x$build = x$target && test -n "$md_exec_prefix"; then
5034 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5039 cat > conftest.c << \EOF
5044 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
5045 have_gcc_for_target=yes
5047 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
5048 have_gcc_for_target=no
5055 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5056 if test -n "$with_build_time_tools"; then
5057 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5058 echo "configure:5059: checking for ar in $with_build_time_tools" >&5
5059 if test -x $with_build_time_tools/ar; then
5060 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
5061 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5062 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5064 echo "$ac_t""no" 1>&6
5066 elif test $build != $host && test $have_gcc_for_target = yes; then
5067 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
5068 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
5069 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5072 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5073 # Extract the first word of "ar", so it can be a program name with args.
5074 set dummy ar; ac_word=$2
5075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5076 echo "configure:5077: checking for $ac_word" >&5
5077 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5078 echo $ac_n "(cached) $ac_c" 1>&6
5080 case "$AR_FOR_TARGET" in
5082 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
5085 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5089 ac_dummy="$gcc_cv_tool_dirs"
5090 for ac_dir in $ac_dummy; do
5091 test -z "$ac_dir" && ac_dir=.
5092 if test -f $ac_dir/$ac_word; then
5093 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
5101 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
5102 if test -n "$AR_FOR_TARGET"; then
5103 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5105 echo "$ac_t""no" 1>&6
5109 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5110 if test -n "$with_build_time_tools"; then
5111 for ncn_progname in ar; do
5112 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5113 echo "configure:5114: checking for ${ncn_progname} in $with_build_time_tools" >&5
5114 if test -x $with_build_time_tools/${ncn_progname}; then
5115 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5116 echo "$ac_t""yes" 1>&6
5119 echo "$ac_t""no" 1>&6
5124 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5125 for ncn_progname in ar; do
5126 if test -n "$ncn_target_tool_prefix"; then
5127 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5128 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5130 echo "configure:5131: checking for $ac_word" >&5
5131 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6
5134 if test -n "$AR_FOR_TARGET"; then
5135 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5139 for ac_dir in $ac_dummy; do
5140 test -z "$ac_dir" && ac_dir=.
5141 if test -f $ac_dir/$ac_word; then
5142 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5149 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5150 if test -n "$AR_FOR_TARGET"; then
5151 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5153 echo "$ac_t""no" 1>&6
5157 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5159 set dummy ${ncn_progname}; ac_word=$2
5160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5161 echo "configure:5162: checking for $ac_word" >&5
5162 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 if test -n "$AR_FOR_TARGET"; then
5166 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
5168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5170 for ac_dir in $ac_dummy; do
5171 test -z "$ac_dir" && ac_dir=.
5172 if test -f $ac_dir/$ac_word; then
5173 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5180 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
5181 if test -n "$AR_FOR_TARGET"; then
5182 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5184 echo "$ac_t""no" 1>&6
5188 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5192 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5194 if test $build = $target ; then
5197 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
5202 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
5208 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5209 if test -n "$with_build_time_tools"; then
5210 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5211 echo "configure:5212: checking for as in $with_build_time_tools" >&5
5212 if test -x $with_build_time_tools/as; then
5213 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
5214 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5215 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5217 echo "$ac_t""no" 1>&6
5219 elif test $build != $host && test $have_gcc_for_target = yes; then
5220 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
5221 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
5222 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5225 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5226 # Extract the first word of "as", so it can be a program name with args.
5227 set dummy as; ac_word=$2
5228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5229 echo "configure:5230: checking for $ac_word" >&5
5230 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5233 case "$AS_FOR_TARGET" in
5235 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
5238 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5242 ac_dummy="$gcc_cv_tool_dirs"
5243 for ac_dir in $ac_dummy; do
5244 test -z "$ac_dir" && ac_dir=.
5245 if test -f $ac_dir/$ac_word; then
5246 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
5254 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
5255 if test -n "$AS_FOR_TARGET"; then
5256 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5258 echo "$ac_t""no" 1>&6
5262 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5263 if test -n "$with_build_time_tools"; then
5264 for ncn_progname in as; do
5265 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5266 echo "configure:5267: checking for ${ncn_progname} in $with_build_time_tools" >&5
5267 if test -x $with_build_time_tools/${ncn_progname}; then
5268 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5269 echo "$ac_t""yes" 1>&6
5272 echo "$ac_t""no" 1>&6
5277 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5278 for ncn_progname in as; do
5279 if test -n "$ncn_target_tool_prefix"; then
5280 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5281 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5283 echo "configure:5284: checking for $ac_word" >&5
5284 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5287 if test -n "$AS_FOR_TARGET"; then
5288 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5292 for ac_dir in $ac_dummy; do
5293 test -z "$ac_dir" && ac_dir=.
5294 if test -f $ac_dir/$ac_word; then
5295 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5302 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5303 if test -n "$AS_FOR_TARGET"; then
5304 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5306 echo "$ac_t""no" 1>&6
5310 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5312 set dummy ${ncn_progname}; ac_word=$2
5313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5314 echo "configure:5315: checking for $ac_word" >&5
5315 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5318 if test -n "$AS_FOR_TARGET"; then
5319 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
5321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5323 for ac_dir in $ac_dummy; do
5324 test -z "$ac_dir" && ac_dir=.
5325 if test -f $ac_dir/$ac_word; then
5326 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5333 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
5334 if test -n "$AS_FOR_TARGET"; then
5335 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5337 echo "$ac_t""no" 1>&6
5341 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5345 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5347 if test $build = $target ; then
5350 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
5355 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
5361 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5362 if test -n "$with_build_time_tools"; then
5363 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5364 echo "configure:5365: checking for dlltool in $with_build_time_tools" >&5
5365 if test -x $with_build_time_tools/dlltool; then
5366 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
5367 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5368 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5370 echo "$ac_t""no" 1>&6
5372 elif test $build != $host && test $have_gcc_for_target = yes; then
5373 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5374 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
5375 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5378 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5379 # Extract the first word of "dlltool", so it can be a program name with args.
5380 set dummy dlltool; ac_word=$2
5381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5382 echo "configure:5383: checking for $ac_word" >&5
5383 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5384 echo $ac_n "(cached) $ac_c" 1>&6
5386 case "$DLLTOOL_FOR_TARGET" in
5388 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5391 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5395 ac_dummy="$gcc_cv_tool_dirs"
5396 for ac_dir in $ac_dummy; do
5397 test -z "$ac_dir" && ac_dir=.
5398 if test -f $ac_dir/$ac_word; then
5399 ac_cv_path_DLLTOOL_FOR_TARGET="$ac_dir/$ac_word"
5407 DLLTOOL_FOR_TARGET="$ac_cv_path_DLLTOOL_FOR_TARGET"
5408 if test -n "$DLLTOOL_FOR_TARGET"; then
5409 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5411 echo "$ac_t""no" 1>&6
5415 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5416 if test -n "$with_build_time_tools"; then
5417 for ncn_progname in dlltool; do
5418 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5419 echo "configure:5420: checking for ${ncn_progname} in $with_build_time_tools" >&5
5420 if test -x $with_build_time_tools/${ncn_progname}; then
5421 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5422 echo "$ac_t""yes" 1>&6
5425 echo "$ac_t""no" 1>&6
5430 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5431 for ncn_progname in dlltool; do
5432 if test -n "$ncn_target_tool_prefix"; then
5433 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5434 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5436 echo "configure:5437: checking for $ac_word" >&5
5437 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5438 echo $ac_n "(cached) $ac_c" 1>&6
5440 if test -n "$DLLTOOL_FOR_TARGET"; then
5441 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5445 for ac_dir in $ac_dummy; do
5446 test -z "$ac_dir" && ac_dir=.
5447 if test -f $ac_dir/$ac_word; then
5448 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5455 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5456 if test -n "$DLLTOOL_FOR_TARGET"; then
5457 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5459 echo "$ac_t""no" 1>&6
5463 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5465 set dummy ${ncn_progname}; ac_word=$2
5466 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5467 echo "configure:5468: checking for $ac_word" >&5
5468 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6
5471 if test -n "$DLLTOOL_FOR_TARGET"; then
5472 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5476 for ac_dir in $ac_dummy; do
5477 test -z "$ac_dir" && ac_dir=.
5478 if test -f $ac_dir/$ac_word; then
5479 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5486 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5487 if test -n "$DLLTOOL_FOR_TARGET"; then
5488 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5490 echo "$ac_t""no" 1>&6
5494 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5498 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5500 if test $build = $target ; then
5501 DLLTOOL_FOR_TARGET="$2"
5503 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
5508 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
5514 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5515 if test -n "$with_build_time_tools"; then
5516 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5517 echo "configure:5518: checking for ld in $with_build_time_tools" >&5
5518 if test -x $with_build_time_tools/ld; then
5519 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
5520 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5521 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5523 echo "$ac_t""no" 1>&6
5525 elif test $build != $host && test $have_gcc_for_target = yes; then
5526 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
5527 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
5528 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5531 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5532 # Extract the first word of "ld", so it can be a program name with args.
5533 set dummy ld; ac_word=$2
5534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5535 echo "configure:5536: checking for $ac_word" >&5
5536 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 case "$LD_FOR_TARGET" in
5541 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
5544 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5548 ac_dummy="$gcc_cv_tool_dirs"
5549 for ac_dir in $ac_dummy; do
5550 test -z "$ac_dir" && ac_dir=.
5551 if test -f $ac_dir/$ac_word; then
5552 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
5560 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
5561 if test -n "$LD_FOR_TARGET"; then
5562 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5564 echo "$ac_t""no" 1>&6
5568 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5569 if test -n "$with_build_time_tools"; then
5570 for ncn_progname in ld; do
5571 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5572 echo "configure:5573: checking for ${ncn_progname} in $with_build_time_tools" >&5
5573 if test -x $with_build_time_tools/${ncn_progname}; then
5574 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5575 echo "$ac_t""yes" 1>&6
5578 echo "$ac_t""no" 1>&6
5583 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5584 for ncn_progname in ld; do
5585 if test -n "$ncn_target_tool_prefix"; then
5586 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5587 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5589 echo "configure:5590: checking for $ac_word" >&5
5590 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5591 echo $ac_n "(cached) $ac_c" 1>&6
5593 if test -n "$LD_FOR_TARGET"; then
5594 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5598 for ac_dir in $ac_dummy; do
5599 test -z "$ac_dir" && ac_dir=.
5600 if test -f $ac_dir/$ac_word; then
5601 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5608 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5609 if test -n "$LD_FOR_TARGET"; then
5610 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5612 echo "$ac_t""no" 1>&6
5616 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5618 set dummy ${ncn_progname}; ac_word=$2
5619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5620 echo "configure:5621: checking for $ac_word" >&5
5621 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5622 echo $ac_n "(cached) $ac_c" 1>&6
5624 if test -n "$LD_FOR_TARGET"; then
5625 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
5627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5629 for ac_dir in $ac_dummy; do
5630 test -z "$ac_dir" && ac_dir=.
5631 if test -f $ac_dir/$ac_word; then
5632 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5639 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
5640 if test -n "$LD_FOR_TARGET"; then
5641 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5643 echo "$ac_t""no" 1>&6
5647 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5651 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5653 if test $build = $target ; then
5656 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
5661 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
5667 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5668 if test -n "$with_build_time_tools"; then
5669 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5670 echo "configure:5671: checking for lipo in $with_build_time_tools" >&5
5671 if test -x $with_build_time_tools/lipo; then
5672 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
5673 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5674 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5676 echo "$ac_t""no" 1>&6
5678 elif test $build != $host && test $have_gcc_for_target = yes; then
5679 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
5680 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
5681 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5684 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5685 # Extract the first word of "lipo", so it can be a program name with args.
5686 set dummy lipo; ac_word=$2
5687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5688 echo "configure:5689: checking for $ac_word" >&5
5689 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5690 echo $ac_n "(cached) $ac_c" 1>&6
5692 case "$LIPO_FOR_TARGET" in
5694 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5697 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5701 ac_dummy="$gcc_cv_tool_dirs"
5702 for ac_dir in $ac_dummy; do
5703 test -z "$ac_dir" && ac_dir=.
5704 if test -f $ac_dir/$ac_word; then
5705 ac_cv_path_LIPO_FOR_TARGET="$ac_dir/$ac_word"
5713 LIPO_FOR_TARGET="$ac_cv_path_LIPO_FOR_TARGET"
5714 if test -n "$LIPO_FOR_TARGET"; then
5715 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5717 echo "$ac_t""no" 1>&6
5721 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5722 if test -n "$with_build_time_tools"; then
5723 for ncn_progname in lipo; do
5724 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5725 echo "configure:5726: checking for ${ncn_progname} in $with_build_time_tools" >&5
5726 if test -x $with_build_time_tools/${ncn_progname}; then
5727 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5728 echo "$ac_t""yes" 1>&6
5731 echo "$ac_t""no" 1>&6
5736 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5737 for ncn_progname in lipo; do
5738 if test -n "$ncn_target_tool_prefix"; then
5739 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5740 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5742 echo "configure:5743: checking for $ac_word" >&5
5743 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5744 echo $ac_n "(cached) $ac_c" 1>&6
5746 if test -n "$LIPO_FOR_TARGET"; then
5747 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5751 for ac_dir in $ac_dummy; do
5752 test -z "$ac_dir" && ac_dir=.
5753 if test -f $ac_dir/$ac_word; then
5754 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5761 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5762 if test -n "$LIPO_FOR_TARGET"; then
5763 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5765 echo "$ac_t""no" 1>&6
5769 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5771 set dummy ${ncn_progname}; ac_word=$2
5772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5773 echo "configure:5774: checking for $ac_word" >&5
5774 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5777 if test -n "$LIPO_FOR_TARGET"; then
5778 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
5780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5782 for ac_dir in $ac_dummy; do
5783 test -z "$ac_dir" && ac_dir=.
5784 if test -f $ac_dir/$ac_word; then
5785 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5792 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
5793 if test -n "$LIPO_FOR_TARGET"; then
5794 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5796 echo "$ac_t""no" 1>&6
5800 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5804 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5806 if test $build = $target ; then
5807 LIPO_FOR_TARGET="$2"
5809 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
5814 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
5820 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5821 if test -n "$with_build_time_tools"; then
5822 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5823 echo "configure:5824: checking for nm in $with_build_time_tools" >&5
5824 if test -x $with_build_time_tools/nm; then
5825 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
5826 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5827 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5829 echo "$ac_t""no" 1>&6
5831 elif test $build != $host && test $have_gcc_for_target = yes; then
5832 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
5833 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
5834 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5837 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5838 # Extract the first word of "nm", so it can be a program name with args.
5839 set dummy nm; ac_word=$2
5840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5841 echo "configure:5842: checking for $ac_word" >&5
5842 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5843 echo $ac_n "(cached) $ac_c" 1>&6
5845 case "$NM_FOR_TARGET" in
5847 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
5850 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5854 ac_dummy="$gcc_cv_tool_dirs"
5855 for ac_dir in $ac_dummy; do
5856 test -z "$ac_dir" && ac_dir=.
5857 if test -f $ac_dir/$ac_word; then
5858 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
5866 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
5867 if test -n "$NM_FOR_TARGET"; then
5868 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5870 echo "$ac_t""no" 1>&6
5874 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5875 if test -n "$with_build_time_tools"; then
5876 for ncn_progname in nm; do
5877 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5878 echo "configure:5879: checking for ${ncn_progname} in $with_build_time_tools" >&5
5879 if test -x $with_build_time_tools/${ncn_progname}; then
5880 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5881 echo "$ac_t""yes" 1>&6
5884 echo "$ac_t""no" 1>&6
5889 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5890 for ncn_progname in nm; do
5891 if test -n "$ncn_target_tool_prefix"; then
5892 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5893 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5895 echo "configure:5896: checking for $ac_word" >&5
5896 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5897 echo $ac_n "(cached) $ac_c" 1>&6
5899 if test -n "$NM_FOR_TARGET"; then
5900 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5904 for ac_dir in $ac_dummy; do
5905 test -z "$ac_dir" && ac_dir=.
5906 if test -f $ac_dir/$ac_word; then
5907 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5914 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5915 if test -n "$NM_FOR_TARGET"; then
5916 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5918 echo "$ac_t""no" 1>&6
5922 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5924 set dummy ${ncn_progname}; ac_word=$2
5925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5926 echo "configure:5927: checking for $ac_word" >&5
5927 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5928 echo $ac_n "(cached) $ac_c" 1>&6
5930 if test -n "$NM_FOR_TARGET"; then
5931 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
5933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5935 for ac_dir in $ac_dummy; do
5936 test -z "$ac_dir" && ac_dir=.
5937 if test -f $ac_dir/$ac_word; then
5938 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5945 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
5946 if test -n "$NM_FOR_TARGET"; then
5947 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5949 echo "$ac_t""no" 1>&6
5953 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5957 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5959 if test $build = $target ; then
5962 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
5967 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
5973 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
5974 if test -n "$with_build_time_tools"; then
5975 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
5976 echo "configure:5977: checking for objdump in $with_build_time_tools" >&5
5977 if test -x $with_build_time_tools/objdump; then
5978 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
5979 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5980 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
5982 echo "$ac_t""no" 1>&6
5984 elif test $build != $host && test $have_gcc_for_target = yes; then
5985 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
5986 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
5987 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5990 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
5991 # Extract the first word of "objdump", so it can be a program name with args.
5992 set dummy objdump; ac_word=$2
5993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5994 echo "configure:5995: checking for $ac_word" >&5
5995 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5996 echo $ac_n "(cached) $ac_c" 1>&6
5998 case "$OBJDUMP_FOR_TARGET" in
6000 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6003 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6007 ac_dummy="$gcc_cv_tool_dirs"
6008 for ac_dir in $ac_dummy; do
6009 test -z "$ac_dir" && ac_dir=.
6010 if test -f $ac_dir/$ac_word; then
6011 ac_cv_path_OBJDUMP_FOR_TARGET="$ac_dir/$ac_word"
6019 OBJDUMP_FOR_TARGET="$ac_cv_path_OBJDUMP_FOR_TARGET"
6020 if test -n "$OBJDUMP_FOR_TARGET"; then
6021 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6023 echo "$ac_t""no" 1>&6
6027 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6028 if test -n "$with_build_time_tools"; then
6029 for ncn_progname in objdump; do
6030 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6031 echo "configure:6032: checking for ${ncn_progname} in $with_build_time_tools" >&5
6032 if test -x $with_build_time_tools/${ncn_progname}; then
6033 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6034 echo "$ac_t""yes" 1>&6
6037 echo "$ac_t""no" 1>&6
6042 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6043 for ncn_progname in objdump; do
6044 if test -n "$ncn_target_tool_prefix"; then
6045 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6046 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6048 echo "configure:6049: checking for $ac_word" >&5
6049 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6050 echo $ac_n "(cached) $ac_c" 1>&6
6052 if test -n "$OBJDUMP_FOR_TARGET"; then
6053 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6057 for ac_dir in $ac_dummy; do
6058 test -z "$ac_dir" && ac_dir=.
6059 if test -f $ac_dir/$ac_word; then
6060 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6067 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6068 if test -n "$OBJDUMP_FOR_TARGET"; then
6069 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6071 echo "$ac_t""no" 1>&6
6075 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6077 set dummy ${ncn_progname}; ac_word=$2
6078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6079 echo "configure:6080: checking for $ac_word" >&5
6080 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6083 if test -n "$OBJDUMP_FOR_TARGET"; then
6084 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6088 for ac_dir in $ac_dummy; do
6089 test -z "$ac_dir" && ac_dir=.
6090 if test -f $ac_dir/$ac_word; then
6091 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
6098 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6099 if test -n "$OBJDUMP_FOR_TARGET"; then
6100 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6102 echo "$ac_t""no" 1>&6
6106 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6110 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6112 if test $build = $target ; then
6113 OBJDUMP_FOR_TARGET="$2"
6115 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6120 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
6126 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6127 if test -n "$with_build_time_tools"; then
6128 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6129 echo "configure:6130: checking for ranlib in $with_build_time_tools" >&5
6130 if test -x $with_build_time_tools/ranlib; then
6131 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
6132 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6133 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6135 echo "$ac_t""no" 1>&6
6137 elif test $build != $host && test $have_gcc_for_target = yes; then
6138 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6139 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
6140 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
6143 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6144 # Extract the first word of "ranlib", so it can be a program name with args.
6145 set dummy ranlib; ac_word=$2
6146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6147 echo "configure:6148: checking for $ac_word" >&5
6148 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6149 echo $ac_n "(cached) $ac_c" 1>&6
6151 case "$RANLIB_FOR_TARGET" in
6153 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6156 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6160 ac_dummy="$gcc_cv_tool_dirs"
6161 for ac_dir in $ac_dummy; do
6162 test -z "$ac_dir" && ac_dir=.
6163 if test -f $ac_dir/$ac_word; then
6164 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
6172 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
6173 if test -n "$RANLIB_FOR_TARGET"; then
6174 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6176 echo "$ac_t""no" 1>&6
6180 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6181 if test -n "$with_build_time_tools"; then
6182 for ncn_progname in ranlib; do
6183 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6184 echo "configure:6185: checking for ${ncn_progname} in $with_build_time_tools" >&5
6185 if test -x $with_build_time_tools/${ncn_progname}; then
6186 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6187 echo "$ac_t""yes" 1>&6
6190 echo "$ac_t""no" 1>&6
6195 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6196 for ncn_progname in ranlib; do
6197 if test -n "$ncn_target_tool_prefix"; then
6198 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6199 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6201 echo "configure:6202: checking for $ac_word" >&5
6202 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6203 echo $ac_n "(cached) $ac_c" 1>&6
6205 if test -n "$RANLIB_FOR_TARGET"; then
6206 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6210 for ac_dir in $ac_dummy; do
6211 test -z "$ac_dir" && ac_dir=.
6212 if test -f $ac_dir/$ac_word; then
6213 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6220 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6221 if test -n "$RANLIB_FOR_TARGET"; then
6222 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6224 echo "$ac_t""no" 1>&6
6228 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6230 set dummy ${ncn_progname}; ac_word=$2
6231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6232 echo "configure:6233: checking for $ac_word" >&5
6233 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6234 echo $ac_n "(cached) $ac_c" 1>&6
6236 if test -n "$RANLIB_FOR_TARGET"; then
6237 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
6239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6241 for ac_dir in $ac_dummy; do
6242 test -z "$ac_dir" && ac_dir=.
6243 if test -f $ac_dir/$ac_word; then
6244 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
6251 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
6252 if test -n "$RANLIB_FOR_TARGET"; then
6253 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6255 echo "$ac_t""no" 1>&6
6259 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6263 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6265 if test $build = $target ; then
6266 RANLIB_FOR_TARGET="$2"
6268 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
6273 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
6279 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6280 if test -n "$with_build_time_tools"; then
6281 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6282 echo "configure:6283: checking for strip in $with_build_time_tools" >&5
6283 if test -x $with_build_time_tools/strip; then
6284 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
6285 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6286 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6288 echo "$ac_t""no" 1>&6
6290 elif test $build != $host && test $have_gcc_for_target = yes; then
6291 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
6292 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
6293 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
6296 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6297 # Extract the first word of "strip", so it can be a program name with args.
6298 set dummy strip; ac_word=$2
6299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6300 echo "configure:6301: checking for $ac_word" >&5
6301 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6302 echo $ac_n "(cached) $ac_c" 1>&6
6304 case "$STRIP_FOR_TARGET" in
6306 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6309 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6313 ac_dummy="$gcc_cv_tool_dirs"
6314 for ac_dir in $ac_dummy; do
6315 test -z "$ac_dir" && ac_dir=.
6316 if test -f $ac_dir/$ac_word; then
6317 ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
6325 STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
6326 if test -n "$STRIP_FOR_TARGET"; then
6327 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6329 echo "$ac_t""no" 1>&6
6333 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6334 if test -n "$with_build_time_tools"; then
6335 for ncn_progname in strip; do
6336 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6337 echo "configure:6338: checking for ${ncn_progname} in $with_build_time_tools" >&5
6338 if test -x $with_build_time_tools/${ncn_progname}; then
6339 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6340 echo "$ac_t""yes" 1>&6
6343 echo "$ac_t""no" 1>&6
6348 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6349 for ncn_progname in strip; do
6350 if test -n "$ncn_target_tool_prefix"; then
6351 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6352 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6354 echo "configure:6355: checking for $ac_word" >&5
6355 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
6358 if test -n "$STRIP_FOR_TARGET"; then
6359 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6363 for ac_dir in $ac_dummy; do
6364 test -z "$ac_dir" && ac_dir=.
6365 if test -f $ac_dir/$ac_word; then
6366 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6373 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6374 if test -n "$STRIP_FOR_TARGET"; then
6375 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6377 echo "$ac_t""no" 1>&6
6381 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6383 set dummy ${ncn_progname}; ac_word=$2
6384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6385 echo "configure:6386: checking for $ac_word" >&5
6386 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
6389 if test -n "$STRIP_FOR_TARGET"; then
6390 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
6392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6394 for ac_dir in $ac_dummy; do
6395 test -z "$ac_dir" && ac_dir=.
6396 if test -f $ac_dir/$ac_word; then
6397 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
6404 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
6405 if test -n "$STRIP_FOR_TARGET"; then
6406 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6408 echo "$ac_t""no" 1>&6
6412 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6416 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6418 if test $build = $target ; then
6419 STRIP_FOR_TARGET="$2"
6421 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
6426 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
6432 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6433 if test -n "$with_build_time_tools"; then
6434 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6435 echo "configure:6436: checking for windres in $with_build_time_tools" >&5
6436 if test -x $with_build_time_tools/windres; then
6437 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
6438 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6439 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6441 echo "$ac_t""no" 1>&6
6443 elif test $build != $host && test $have_gcc_for_target = yes; then
6444 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
6445 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
6446 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
6449 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6450 # Extract the first word of "windres", so it can be a program name with args.
6451 set dummy windres; ac_word=$2
6452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6453 echo "configure:6454: checking for $ac_word" >&5
6454 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6455 echo $ac_n "(cached) $ac_c" 1>&6
6457 case "$WINDRES_FOR_TARGET" in
6459 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6462 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6466 ac_dummy="$gcc_cv_tool_dirs"
6467 for ac_dir in $ac_dummy; do
6468 test -z "$ac_dir" && ac_dir=.
6469 if test -f $ac_dir/$ac_word; then
6470 ac_cv_path_WINDRES_FOR_TARGET="$ac_dir/$ac_word"
6478 WINDRES_FOR_TARGET="$ac_cv_path_WINDRES_FOR_TARGET"
6479 if test -n "$WINDRES_FOR_TARGET"; then
6480 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6482 echo "$ac_t""no" 1>&6
6486 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6487 if test -n "$with_build_time_tools"; then
6488 for ncn_progname in windres; do
6489 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6490 echo "configure:6491: checking for ${ncn_progname} in $with_build_time_tools" >&5
6491 if test -x $with_build_time_tools/${ncn_progname}; then
6492 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
6493 echo "$ac_t""yes" 1>&6
6496 echo "$ac_t""no" 1>&6
6501 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6502 for ncn_progname in windres; do
6503 if test -n "$ncn_target_tool_prefix"; then
6504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6505 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
6506 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6507 echo "configure:6508: checking for $ac_word" >&5
6508 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
6511 if test -n "$WINDRES_FOR_TARGET"; then
6512 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6516 for ac_dir in $ac_dummy; do
6517 test -z "$ac_dir" && ac_dir=.
6518 if test -f $ac_dir/$ac_word; then
6519 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6526 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6527 if test -n "$WINDRES_FOR_TARGET"; then
6528 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6530 echo "$ac_t""no" 1>&6
6534 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6536 set dummy ${ncn_progname}; ac_word=$2
6537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6538 echo "configure:6539: checking for $ac_word" >&5
6539 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6542 if test -n "$WINDRES_FOR_TARGET"; then
6543 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
6545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6547 for ac_dir in $ac_dummy; do
6548 test -z "$ac_dir" && ac_dir=.
6549 if test -f $ac_dir/$ac_word; then
6550 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
6557 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
6558 if test -n "$WINDRES_FOR_TARGET"; then
6559 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6561 echo "$ac_t""no" 1>&6
6565 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6569 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6571 if test $build = $target ; then
6572 WINDRES_FOR_TARGET="$2"
6574 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
6579 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
6583 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
6585 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6586 echo "configure:6587: checking where to find the target ar" >&5
6587 if test "x${build}" != "x${host}" ; then
6588 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6589 # We already found the complete path
6590 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6592 # Canadian cross, just use what we found
6593 echo "$ac_t""pre-installed" 1>&6
6597 case " ${configdirs} " in
6602 if test $ok = yes; then
6603 # An in-tree tool is available and we can use it
6604 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
6605 echo "$ac_t""just compiled" 1>&6
6606 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
6607 # We already found the complete path
6608 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6609 elif test "x$target" = "x$host"; then
6610 # We can use an host tool
6611 AR_FOR_TARGET='$(AR)'
6612 echo "$ac_t""host tool" 1>&6
6614 # We need a cross tool
6615 echo "$ac_t""pre-installed" 1>&6
6618 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6619 echo "configure:6620: checking where to find the target as" >&5
6620 if test "x${build}" != "x${host}" ; then
6621 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6622 # We already found the complete path
6623 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6625 # Canadian cross, just use what we found
6626 echo "$ac_t""pre-installed" 1>&6
6630 case " ${configdirs} " in
6635 if test $ok = yes; then
6636 # An in-tree tool is available and we can use it
6637 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
6638 echo "$ac_t""just compiled" 1>&6
6639 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
6640 # We already found the complete path
6641 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6642 elif test "x$target" = "x$host"; then
6643 # We can use an host tool
6644 AS_FOR_TARGET='$(AS)'
6645 echo "$ac_t""host tool" 1>&6
6647 # We need a cross tool
6648 echo "$ac_t""pre-installed" 1>&6
6651 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6652 echo "configure:6653: checking where to find the target cc" >&5
6653 if test "x${build}" != "x${host}" ; then
6654 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6655 # We already found the complete path
6656 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6658 # Canadian cross, just use what we found
6659 echo "$ac_t""pre-installed" 1>&6
6663 case " ${configdirs} " in
6668 if test $ok = yes; then
6669 # An in-tree tool is available and we can use it
6670 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6671 echo "$ac_t""just compiled" 1>&6
6672 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
6673 # We already found the complete path
6674 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6675 elif test "x$target" = "x$host"; then
6676 # We can use an host tool
6677 CC_FOR_TARGET='$(CC)'
6678 echo "$ac_t""host tool" 1>&6
6680 # We need a cross tool
6681 echo "$ac_t""pre-installed" 1>&6
6684 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6685 echo "configure:6686: checking where to find the target c++" >&5
6686 if test "x${build}" != "x${host}" ; then
6687 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6688 # We already found the complete path
6689 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6691 # Canadian cross, just use what we found
6692 echo "$ac_t""pre-installed" 1>&6
6696 case " ${configdirs} " in
6700 case ,${enable_languages}, in
6704 if test $ok = yes; then
6705 # An in-tree tool is available and we can use it
6706 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
6707 echo "$ac_t""just compiled" 1>&6
6708 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
6709 # We already found the complete path
6710 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6711 elif test "x$target" = "x$host"; then
6712 # We can use an host tool
6713 CXX_FOR_TARGET='$(CXX)'
6714 echo "$ac_t""host tool" 1>&6
6716 # We need a cross tool
6717 echo "$ac_t""pre-installed" 1>&6
6720 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6721 echo "configure:6722: checking where to find the target c++ for libstdc++" >&5
6722 if test "x${build}" != "x${host}" ; then
6723 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6724 # We already found the complete path
6725 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6727 # Canadian cross, just use what we found
6728 echo "$ac_t""pre-installed" 1>&6
6732 case " ${configdirs} " in
6736 case ,${enable_languages}, in
6740 if test $ok = yes; then
6741 # An in-tree tool is available and we can use it
6742 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
6743 echo "$ac_t""just compiled" 1>&6
6744 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
6745 # We already found the complete path
6746 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6747 elif test "x$target" = "x$host"; then
6748 # We can use an host tool
6749 RAW_CXX_FOR_TARGET='$(CXX)'
6750 echo "$ac_t""host tool" 1>&6
6752 # We need a cross tool
6753 echo "$ac_t""pre-installed" 1>&6
6756 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6757 echo "configure:6758: checking where to find the target dlltool" >&5
6758 if test "x${build}" != "x${host}" ; then
6759 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6760 # We already found the complete path
6761 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6763 # Canadian cross, just use what we found
6764 echo "$ac_t""pre-installed" 1>&6
6768 case " ${configdirs} " in
6773 if test $ok = yes; then
6774 # An in-tree tool is available and we can use it
6775 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6776 echo "$ac_t""just compiled" 1>&6
6777 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
6778 # We already found the complete path
6779 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6780 elif test "x$target" = "x$host"; then
6781 # We can use an host tool
6782 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
6783 echo "$ac_t""host tool" 1>&6
6785 # We need a cross tool
6786 echo "$ac_t""pre-installed" 1>&6
6789 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6790 echo "configure:6791: checking where to find the target gcc" >&5
6791 if test "x${build}" != "x${host}" ; then
6792 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6793 # We already found the complete path
6794 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6796 # Canadian cross, just use what we found
6797 echo "$ac_t""pre-installed" 1>&6
6801 case " ${configdirs} " in
6806 if test $ok = yes; then
6807 # An in-tree tool is available and we can use it
6808 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6809 echo "$ac_t""just compiled" 1>&6
6810 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
6811 # We already found the complete path
6812 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6813 elif test "x$target" = "x$host"; then
6814 # We can use an host tool
6815 GCC_FOR_TARGET='$()'
6816 echo "$ac_t""host tool" 1>&6
6818 # We need a cross tool
6819 echo "$ac_t""pre-installed" 1>&6
6822 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6823 echo "configure:6824: checking where to find the target gcj" >&5
6824 if test "x${build}" != "x${host}" ; then
6825 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6826 # We already found the complete path
6827 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6829 # Canadian cross, just use what we found
6830 echo "$ac_t""pre-installed" 1>&6
6834 case " ${configdirs} " in
6838 case ,${enable_languages}, in
6842 if test $ok = yes; then
6843 # An in-tree tool is available and we can use it
6844 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6845 echo "$ac_t""just compiled" 1>&6
6846 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
6847 # We already found the complete path
6848 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6849 elif test "x$target" = "x$host"; then
6850 # We can use an host tool
6851 GCJ_FOR_TARGET='$(GCJ)'
6852 echo "$ac_t""host tool" 1>&6
6854 # We need a cross tool
6855 echo "$ac_t""pre-installed" 1>&6
6858 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6859 echo "configure:6860: checking where to find the target gfortran" >&5
6860 if test "x${build}" != "x${host}" ; then
6861 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6862 # We already found the complete path
6863 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6865 # Canadian cross, just use what we found
6866 echo "$ac_t""pre-installed" 1>&6
6870 case " ${configdirs} " in
6874 case ,${enable_languages}, in
6878 if test $ok = yes; then
6879 # An in-tree tool is available and we can use it
6880 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6881 echo "$ac_t""just compiled" 1>&6
6882 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
6883 # We already found the complete path
6884 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6885 elif test "x$target" = "x$host"; then
6886 # We can use an host tool
6887 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
6888 echo "$ac_t""host tool" 1>&6
6890 # We need a cross tool
6891 echo "$ac_t""pre-installed" 1>&6
6894 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
6895 echo "configure:6896: checking where to find the target ld" >&5
6896 if test "x${build}" != "x${host}" ; then
6897 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6898 # We already found the complete path
6899 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6901 # Canadian cross, just use what we found
6902 echo "$ac_t""pre-installed" 1>&6
6906 case " ${configdirs} " in
6911 if test $ok = yes; then
6912 # An in-tree tool is available and we can use it
6913 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
6914 echo "$ac_t""just compiled" 1>&6
6915 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
6916 # We already found the complete path
6917 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6918 elif test "x$target" = "x$host"; then
6919 # We can use an host tool
6920 LD_FOR_TARGET='$(LD)'
6921 echo "$ac_t""host tool" 1>&6
6923 # We need a cross tool
6924 echo "$ac_t""pre-installed" 1>&6
6927 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
6928 echo "configure:6929: checking where to find the target lipo" >&5
6929 if test "x${build}" != "x${host}" ; then
6930 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6931 # We already found the complete path
6932 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6934 # Canadian cross, just use what we found
6935 echo "$ac_t""pre-installed" 1>&6
6938 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
6939 # We already found the complete path
6940 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6941 elif test "x$target" = "x$host"; then
6942 # We can use an host tool
6943 LIPO_FOR_TARGET='$(LIPO)'
6944 echo "$ac_t""host tool" 1>&6
6946 # We need a cross tool
6947 echo "$ac_t""pre-installed" 1>&6
6950 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
6951 echo "configure:6952: checking where to find the target nm" >&5
6952 if test "x${build}" != "x${host}" ; then
6953 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
6954 # We already found the complete path
6955 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
6957 # Canadian cross, just use what we found
6958 echo "$ac_t""pre-installed" 1>&6
6962 case " ${configdirs} " in
6967 if test $ok = yes; then
6968 # An in-tree tool is available and we can use it
6969 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
6970 echo "$ac_t""just compiled" 1>&6
6971 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
6972 # We already found the complete path
6973 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
6974 elif test "x$target" = "x$host"; then
6975 # We can use an host tool
6976 NM_FOR_TARGET='$(NM)'
6977 echo "$ac_t""host tool" 1>&6
6979 # We need a cross tool
6980 echo "$ac_t""pre-installed" 1>&6
6983 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
6984 echo "configure:6985: checking where to find the target objdump" >&5
6985 if test "x${build}" != "x${host}" ; then
6986 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
6987 # We already found the complete path
6988 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
6990 # Canadian cross, just use what we found
6991 echo "$ac_t""pre-installed" 1>&6
6995 case " ${configdirs} " in
7000 if test $ok = yes; then
7001 # An in-tree tool is available and we can use it
7002 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
7003 echo "$ac_t""just compiled" 1>&6
7004 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
7005 # We already found the complete path
7006 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7007 elif test "x$target" = "x$host"; then
7008 # We can use an host tool
7009 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
7010 echo "$ac_t""host tool" 1>&6
7012 # We need a cross tool
7013 echo "$ac_t""pre-installed" 1>&6
7016 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7017 echo "configure:7018: checking where to find the target ranlib" >&5
7018 if test "x${build}" != "x${host}" ; then
7019 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7020 # We already found the complete path
7021 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7023 # Canadian cross, just use what we found
7024 echo "$ac_t""pre-installed" 1>&6
7028 case " ${configdirs} " in
7033 if test $ok = yes; then
7034 # An in-tree tool is available and we can use it
7035 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7036 echo "$ac_t""just compiled" 1>&6
7037 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
7038 # We already found the complete path
7039 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7040 elif test "x$target" = "x$host"; then
7041 # We can use an host tool
7042 RANLIB_FOR_TARGET='$(RANLIB)'
7043 echo "$ac_t""host tool" 1>&6
7045 # We need a cross tool
7046 echo "$ac_t""pre-installed" 1>&6
7049 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7050 echo "configure:7051: checking where to find the target strip" >&5
7051 if test "x${build}" != "x${host}" ; then
7052 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7053 # We already found the complete path
7054 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7056 # Canadian cross, just use what we found
7057 echo "$ac_t""pre-installed" 1>&6
7061 case " ${configdirs} " in
7066 if test $ok = yes; then
7067 # An in-tree tool is available and we can use it
7068 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
7069 echo "$ac_t""just compiled" 1>&6
7070 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
7071 # We already found the complete path
7072 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7073 elif test "x$target" = "x$host"; then
7074 # We can use an host tool
7075 STRIP_FOR_TARGET='$(STRIP)'
7076 echo "$ac_t""host tool" 1>&6
7078 # We need a cross tool
7079 echo "$ac_t""pre-installed" 1>&6
7082 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7083 echo "configure:7084: checking where to find the target windres" >&5
7084 if test "x${build}" != "x${host}" ; then
7085 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7086 # We already found the complete path
7087 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7089 # Canadian cross, just use what we found
7090 echo "$ac_t""pre-installed" 1>&6
7094 case " ${configdirs} " in
7099 if test $ok = yes; then
7100 # An in-tree tool is available and we can use it
7101 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
7102 echo "$ac_t""just compiled" 1>&6
7103 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
7104 # We already found the complete path
7105 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7106 elif test "x$target" = "x$host"; then
7107 # We can use an host tool
7108 WINDRES_FOR_TARGET='$(WINDRES)'
7109 echo "$ac_t""host tool" 1>&6
7111 # We need a cross tool
7112 echo "$ac_t""pre-installed" 1>&6
7119 # Certain tools may need extra flags.
7120 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
7121 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7122 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
7124 # When building target libraries, except in a Canadian cross, we use
7125 # the same toolchain as the compiler we just built.
7126 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
7127 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
7128 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
7129 if test $host = $build; then
7130 case " $configdirs " in
7132 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
7133 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7134 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7143 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7144 echo "configure:7145: checking whether to enable maintainer-specific portions of Makefiles" >&5
7145 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7146 if test "${enable_maintainer_mode+set}" = set; then
7147 enableval="$enable_maintainer_mode"
7148 USE_MAINTAINER_MODE=$enableval
7150 USE_MAINTAINER_MODE=no
7153 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7156 if test "$USE_MAINTAINER_MODE" = yes; then
7157 MAINTAINER_MODE_TRUE=
7158 MAINTAINER_MODE_FALSE='#'
7160 MAINTAINER_MODE_TRUE='#'
7161 MAINTAINER_MODE_FALSE=
7163 MAINT=$MAINTAINER_MODE_TRUE
7165 # ---------------------
7166 # GCC bootstrap support
7167 # ---------------------
7169 # Stage specific cflags for build.
7174 yes) stage1_cflags="-g -Wa,-J" ;;
7175 *) stage1_cflags="-g -J" ;;
7178 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7179 # sources; use -no-cpp-precomp to get to GNU cpp.
7180 # Apple's GCC has bugs in designated initializer handling, so disable
7182 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7187 # Enable -Werror in bootstrap stage2 and later.
7188 # Change the default to "no" on release branches.
7189 # Check whether --enable-werror or --disable-werror was given.
7190 if test "${enable_werror+set}" = set; then
7191 enableval="$enable_werror"
7197 case ${enable_werror} in
7198 yes) stage2_werror_flag="--enable-werror-always" ;;
7199 *) stage2_werror_flag="" ;;
7204 cat > confcache <<\EOF
7205 # This file is a shell script that caches the results of configure
7206 # tests run on this system so they can be shared between configure
7207 # scripts and configure runs. It is not useful on other systems.
7208 # If it contains results you don't want to keep, you may remove or edit it.
7210 # By default, configure uses ./config.cache as the cache file,
7211 # creating it if it does not exist already. You can give configure
7212 # the --cache-file=FILE option to use a different cache file; that is
7213 # what configure does when it calls configure scripts in
7214 # subdirectories, so they share the cache.
7215 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7216 # config.status only pays attention to the cache file if you give it the
7217 # --recheck option to rerun configure.
7220 # The following way of writing the cache mishandles newlines in values,
7221 # but we know of no workaround that is simple, portable, and efficient.
7222 # So, don't put newlines in cache variables' values.
7223 # Ultrix sh set writes to stderr and can't be redirected directly,
7224 # and sets the high bit in the cache file unless we assign to the vars.
7226 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7228 # `set' does not quote correctly, so add quotes (double-quote substitution
7229 # turns \\\\ into \\, and sed turns \\ into \).
7231 -e "s/'/'\\\\''/g" \
7232 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7235 # `set' quotes correctly as required by POSIX, so do not add quotes.
7236 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7239 if cmp -s $cache_file confcache; then
7242 if test -w $cache_file; then
7243 echo "updating cache $cache_file"
7244 cat confcache > $cache_file
7246 echo "not updating unwritable cache $cache_file"
7251 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7254 # Let make expand exec_prefix.
7255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7257 # Any assignment to VPATH causes Sun make to only execute
7258 # the first set of double-colon rules, so remove it if not needed.
7259 # If there is a colon in the path, we need to keep it.
7260 if test "x$srcdir" = x.; then
7261 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7264 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7266 # Transform confdefs.h into DEFS.
7267 # Protect against shell expansion while executing Makefile rules.
7268 # Protect against Makefile macro expansion.
7269 cat > conftest.defs <<\EOF
7270 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7271 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7276 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
7280 # Without the "./", some shells look in PATH for config.status.
7281 : ${CONFIG_STATUS=./config.status}
7283 echo creating $CONFIG_STATUS
7284 rm -f $CONFIG_STATUS
7285 cat > $CONFIG_STATUS <<EOF
7287 # Generated automatically by configure.
7288 # Run this file to recreate the current configuration.
7289 # This directory was configured as follows,
7290 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7292 # $0 $ac_configure_args
7294 # Compiler output produced by configure, useful for debugging
7295 # configure, is in ./config.log if it exists.
7297 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7300 case "\$ac_option" in
7301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7302 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7303 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7304 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7305 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7307 -help | --help | --hel | --he | --h)
7308 echo "\$ac_cs_usage"; exit 0 ;;
7309 *) echo "\$ac_cs_usage"; exit 1 ;;
7313 ac_given_srcdir=$srcdir
7314 ac_given_INSTALL="$INSTALL"
7316 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7318 cat >> $CONFIG_STATUS <<EOF
7320 # Protect against being on the right side of a sed subst in config.status.
7321 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7322 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7326 s%@CFLAGS@%$CFLAGS%g
7327 s%@CPPFLAGS@%$CPPFLAGS%g
7328 s%@CXXFLAGS@%$CXXFLAGS%g
7329 s%@FFLAGS@%$FFLAGS%g
7331 s%@LDFLAGS@%$LDFLAGS%g
7333 s%@exec_prefix@%$exec_prefix%g
7334 s%@prefix@%$prefix%g
7335 s%@program_transform_name@%$program_transform_name%g
7336 s%@bindir@%$bindir%g
7337 s%@sbindir@%$sbindir%g
7338 s%@libexecdir@%$libexecdir%g
7339 s%@datadir@%$datadir%g
7340 s%@sysconfdir@%$sysconfdir%g
7341 s%@sharedstatedir@%$sharedstatedir%g
7342 s%@localstatedir@%$localstatedir%g
7343 s%@libdir@%$libdir%g
7344 s%@includedir@%$includedir%g
7345 s%@oldincludedir@%$oldincludedir%g
7346 s%@infodir@%$infodir%g
7347 s%@mandir@%$mandir%g
7349 s%@host_alias@%$host_alias%g
7350 s%@host_cpu@%$host_cpu%g
7351 s%@host_vendor@%$host_vendor%g
7352 s%@host_os@%$host_os%g
7353 s%@target@%$target%g
7354 s%@target_alias@%$target_alias%g
7355 s%@target_cpu@%$target_cpu%g
7356 s%@target_vendor@%$target_vendor%g
7357 s%@target_os@%$target_os%g
7359 s%@build_alias@%$build_alias%g
7360 s%@build_cpu@%$build_cpu%g
7361 s%@build_vendor@%$build_vendor%g
7362 s%@build_os@%$build_os%g
7363 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7364 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7365 s%@INSTALL_DATA@%$INSTALL_DATA%g
7368 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7369 s%@build_subdir@%$build_subdir%g
7370 s%@host_subdir@%$host_subdir%g
7371 s%@target_subdir@%$target_subdir%g
7373 s%@GNATBIND@%$GNATBIND%g
7374 s%@do_compare@%$do_compare%g
7375 s%@gmplibs@%$gmplibs%g
7376 s%@gmpinc@%$gmpinc%g
7377 s%@stage1_languages@%$stage1_languages%g
7378 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7379 /@serialization_dependencies@/r $serialization_dependencies
7380 s%@serialization_dependencies@%%g
7381 /@host_makefile_frag@/r $host_makefile_frag
7382 s%@host_makefile_frag@%%g
7383 /@target_makefile_frag@/r $target_makefile_frag
7384 s%@target_makefile_frag@%%g
7385 /@alphaieee_frag@/r $alphaieee_frag
7386 s%@alphaieee_frag@%%g
7387 /@ospace_frag@/r $ospace_frag
7389 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7390 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
7391 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
7392 s%@tooldir@%$tooldir%g
7393 s%@build_tooldir@%$build_tooldir%g
7394 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7395 s%@GDB_TK@%$GDB_TK%g
7396 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7397 s%@build_configargs@%$build_configargs%g
7398 s%@build_configdirs@%$build_configdirs%g
7399 s%@host_configargs@%$host_configargs%g
7400 s%@configdirs@%$configdirs%g
7401 s%@target_configargs@%$target_configargs%g
7402 s%@target_configdirs@%$target_configdirs%g
7403 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7404 s%@config_shell@%$config_shell%g
7410 s%@MAKEINFO@%$MAKEINFO%g
7411 s%@EXPECT@%$EXPECT%g
7412 s%@RUNTEST@%$RUNTEST%g
7415 s%@DLLTOOL@%$DLLTOOL%g
7419 s%@RANLIB@%$RANLIB%g
7421 s%@WINDRES@%$WINDRES%g
7422 s%@OBJCOPY@%$OBJCOPY%g
7423 s%@OBJDUMP@%$OBJDUMP%g
7425 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7426 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7427 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7428 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7429 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7430 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7431 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7432 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7433 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7434 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7435 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7436 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7437 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7438 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7439 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7440 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7441 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7442 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7443 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7444 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7445 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7446 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7447 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7449 s%@stage1_cflags@%$stage1_cflags%g
7450 s%@stage2_werror_flag@%$stage2_werror_flag%g
7455 cat >> $CONFIG_STATUS <<\EOF
7457 # Split the substitutions into bite-sized pieces for seds with
7458 # small command number limits, like on Digital OSF/1 and HP-UX.
7459 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7460 ac_file=1 # Number of current file.
7461 ac_beg=1 # First line for current file.
7462 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7465 while $ac_more_lines; do
7466 if test $ac_beg -gt 1; then
7467 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7469 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7471 if test ! -s conftest.s$ac_file; then
7473 rm -f conftest.s$ac_file
7475 if test -z "$ac_sed_cmds"; then
7476 ac_sed_cmds="sed -f conftest.s$ac_file"
7478 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7480 ac_file=`expr $ac_file + 1`
7482 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7485 if test -z "$ac_sed_cmds"; then
7490 cat >> $CONFIG_STATUS <<EOF
7492 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7494 cat >> $CONFIG_STATUS <<\EOF
7495 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7496 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7498 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7499 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7500 *) ac_file_in="${ac_file}.in" ;;
7503 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7505 # Remove last slash and all that follows it. Not all systems have dirname.
7506 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7507 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7508 # The file is in a subdirectory.
7509 test ! -d "$ac_dir" && mkdir "$ac_dir"
7510 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7511 # A "../" for each directory in $ac_dir_suffix.
7512 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7514 ac_dir_suffix= ac_dots=
7517 case "$ac_given_srcdir" in
7519 if test -z "$ac_dots"; then top_srcdir=.
7520 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7521 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7523 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7524 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7527 case "$ac_given_INSTALL" in
7528 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7529 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7532 echo creating "$ac_file"
7534 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7536 *Makefile*) ac_comsub="1i\\
7537 # $configure_input" ;;
7541 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7543 s%@configure_input@%$configure_input%g
7544 s%@srcdir@%$srcdir%g
7545 s%@top_srcdir@%$top_srcdir%g
7546 s%@INSTALL@%$INSTALL%g
7547 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7552 cat >> $CONFIG_STATUS <<EOF
7555 cat >> $CONFIG_STATUS <<\EOF
7559 chmod +x $CONFIG_STATUS
7560 rm -fr confdefs* $ac_clean_files
7561 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1