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 --enable-libgcc-math Builds libgcc-math directory"
21 --with-mpfr-dir=PATH Specify source directory for MPFR library"
23 --with-mpfr=PATH Specify directory for installed MPFR library"
25 --with-gmp-dir=PATH Specify source directory for GMP library"
27 --with-gmp=PATH Specify directory for installed GMP library"
29 --with-build-sysroot=sysroot
30 use sysroot as the system root during the build"
32 --enable-bootstrap Enable bootstrapping [yes if native build]"
34 --enable-serial-[{host,target,build}-]configure
35 Force sequential configuration of
36 sub-packages for the host, target or build
37 machine, or all sub-packages"
39 --with-build-time-tools=path
40 use given path to find target tools during the build"
42 --enable-maintainer-mode enable make rules and dependencies not useful
43 (and sometimes confusing) to the casual installer"
45 --enable-werror enable -Werror in bootstrap stage2 and later"
47 --with-datarootdir Use datarootdir as the data root directory."
49 --with-docdir Install documentation in this directory."
51 --with-htmldir Install html in this directory."
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
57 cache_file
=.
/config.cache
66 program_transform_name
=s
,x
,x
,
74 bindir
='${exec_prefix}/bin'
75 sbindir
='${exec_prefix}/sbin'
76 libexecdir
='${exec_prefix}/libexec'
77 datadir
='${prefix}/share'
78 sysconfdir
='${prefix}/etc'
79 sharedstatedir
='${prefix}/com'
80 localstatedir
='${prefix}/var'
81 libdir
='${exec_prefix}/lib'
82 includedir
='${prefix}/include'
83 oldincludedir
='/usr/include'
84 infodir
='${prefix}/info'
85 mandir
='${prefix}/man'
87 # Initialize some other variables.
90 SHELL
=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
106 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
110 # Accept the important Cygnus configure options, so we can diagnose typos.
114 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
116 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
117 bindir
="$ac_optarg" ;;
119 -build |
--build |
--buil |
--bui |
--bu)
121 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
122 build
="$ac_optarg" ;;
124 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
125 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
126 ac_prev
=cache_file
;;
127 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
128 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
129 cache_file
="$ac_optarg" ;;
131 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
133 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
135 datadir
="$ac_optarg" ;;
137 -disable-* |
--disable-*)
138 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}=no" ;;
146 -enable-* |
--enable-*)
147 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}='$ac_optarg'" ;;
159 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
160 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
161 |
--exec |
--exe |
--ex)
162 ac_prev
=exec_prefix
;;
163 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
164 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
165 |
--exec=* |
--exe=* |
--ex=*)
166 exec_prefix
="$ac_optarg" ;;
168 -gas |
--gas |
--ga |
--g)
169 # Obsolete; use --with-gas.
172 -help |
--help |
--hel |
--he)
173 # Omit some internal or obsolete options to make the list less imposing.
174 # This message is too long to be a string in the A/UX 3.1 sh.
176 Usage: configure [options] [host]
177 Options: [defaults in brackets after descriptions]
179 --cache-file=FILE cache test results in FILE
180 --help print this message
181 --no-create do not create output files
182 --quiet, --silent do not print \`checking...' messages
183 --version print the version of autoconf that created configure
184 Directory and file names:
185 --prefix=PREFIX install architecture-independent files in PREFIX
187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
189 --bindir=DIR user executables in DIR [EPREFIX/bin]
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192 --datadir=DIR read-only architecture-independent data in DIR
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
199 --includedir=DIR C header files in DIR [PREFIX/include]
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201 --infodir=DIR info documentation in DIR [PREFIX/info]
202 --mandir=DIR man documentation in DIR [PREFIX/man]
203 --srcdir=DIR find the sources in DIR [configure dir or ..]
204 --program-prefix=PREFIX prepend PREFIX to installed program names
205 --program-suffix=SUFFIX append SUFFIX to installed program names
206 --program-transform-name=PROGRAM
207 run sed PROGRAM on installed program names
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
212 --host=HOST configure for HOST [guessed]
213 --target=TARGET configure for TARGET [TARGET=HOST]
214 Features and packages:
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219 --x-includes=DIR X include files are in DIR
220 --x-libraries=DIR X library files are in DIR
222 if test -n "$ac_help"; then
223 echo "--enable and --with options recognized:$ac_help"
227 -host |
--host |
--hos |
--ho)
229 -host=* |
--host=* |
--hos=* |
--ho=*)
232 -includedir |
--includedir |
--includedi |
--included |
--include \
233 |
--includ |
--inclu |
--incl |
--inc)
234 ac_prev
=includedir
;;
235 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
236 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
237 includedir
="$ac_optarg" ;;
239 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
241 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
242 infodir
="$ac_optarg" ;;
244 -libdir |
--libdir |
--libdi |
--libd)
246 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
247 libdir
="$ac_optarg" ;;
249 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
250 |
--libexe |
--libex |
--libe)
251 ac_prev
=libexecdir
;;
252 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
253 |
--libexe=* |
--libex=* |
--libe=*)
254 libexecdir
="$ac_optarg" ;;
256 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
257 |
--localstate |
--localstat |
--localsta |
--localst \
258 |
--locals |
--local |
--loca |
--loc |
--lo)
259 ac_prev
=localstatedir
;;
260 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
261 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
262 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
263 localstatedir
="$ac_optarg" ;;
265 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
267 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
268 mandir
="$ac_optarg" ;;
271 # Obsolete; use --without-fp.
274 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
278 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
279 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
282 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
283 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
284 |
--oldin |
--oldi |
--old |
--ol |
--o)
285 ac_prev
=oldincludedir
;;
286 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
287 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
288 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
289 oldincludedir
="$ac_optarg" ;;
291 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
293 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
294 prefix
="$ac_optarg" ;;
296 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
297 |
--program-pre |
--program-pr |
--program-p)
298 ac_prev
=program_prefix
;;
299 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
300 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
301 program_prefix
="$ac_optarg" ;;
303 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
304 |
--program-suf |
--program-su |
--program-s)
305 ac_prev
=program_suffix
;;
306 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
307 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
308 program_suffix
="$ac_optarg" ;;
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 ac_prev
=program_transform_name
;;
318 -program-transform-name=* |
--program-transform-name=* \
319 |
--program-transform-nam=* |
--program-transform-na=* \
320 |
--program-transform-n=* |
--program-transform-=* \
321 |
--program-transform=* |
--program-transfor=* \
322 |
--program-transfo=* |
--program-transf=* \
323 |
--program-trans=* |
--program-tran=* \
324 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
325 program_transform_name
="$ac_optarg" ;;
327 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
328 |
-silent |
--silent |
--silen |
--sile |
--sil)
331 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
333 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
335 sbindir
="$ac_optarg" ;;
337 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
338 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
339 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
341 ac_prev
=sharedstatedir
;;
342 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
343 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
344 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
346 sharedstatedir
="$ac_optarg" ;;
348 -site |
--site |
--sit)
350 -site=* |
--site=* |
--sit=*)
353 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
355 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
356 srcdir
="$ac_optarg" ;;
358 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
359 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
360 ac_prev
=sysconfdir
;;
361 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
362 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
363 sysconfdir
="$ac_optarg" ;;
365 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
367 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
368 target
="$ac_optarg" ;;
370 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
373 -version |
--version |
--versio |
--versi |
--vers)
374 echo "configure generated by autoconf version 2.13"
378 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package
=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}='$ac_optarg'" ;;
390 -without-* |
--without-*)
391 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package
=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
400 # Obsolete; use --with-x.
403 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
404 |
--x-incl |
--x-inc |
--x-in |
--x-i)
405 ac_prev
=x_includes
;;
406 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
407 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
408 x_includes
="$ac_optarg" ;;
410 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
411 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
412 ac_prev
=x_libraries
;;
413 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
414 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
415 x_libraries
="$ac_optarg" ;;
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
424 if test "x$nonopt" != xNONE
; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433 if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
439 # File descriptor usage:
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
465 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
466 |
--no-cr |
--no-c) ;;
467 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
468 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
469 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
476 # Only set these to C if already set. These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
481 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
483 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest
* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file
=move-if-change
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496 ac_srcdir_defaulted
=yes
497 # Try the directory containing this script, then its parent.
499 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
502 if test ! -r $srcdir/$ac_unique_file; then
506 ac_srcdir_defaulted
=no
508 if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$CONFIG_SITE"; then
519 if test "x$prefix" != xNONE
; then
520 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
522 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525 for ac_site_file
in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
536 echo "creating cache $cache_file"
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp
='$CPP $CPPFLAGS'
543 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling
=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
558 ac_n
= ac_c
='\c' ac_t
=
564 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
565 if test -f $ac_dir/install-sh
; then
567 ac_install_sh
="$ac_aux_dir/install-sh -c"
569 elif test -f $ac_dir/install.sh
; then
571 ac_install_sh
="$ac_aux_dir/install.sh -c"
575 if test -z "$ac_aux_dir"; then
576 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
578 ac_config_guess
=$ac_aux_dir/config.guess
579 ac_config_sub
=$ac_aux_dir/config.sub
580 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
583 # Do some error checking and defaulting for the host and target type.
585 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
588 # 1. You are not allowed to specify --host, --target, and nonopt at the
590 # 2. Host defaults to nonopt.
591 # 3. If nonopt is not specified, then host defaults to the current host,
592 # as determined by config.guess.
593 # 4. Target and build default to nonopt.
594 # 5. If nonopt is not specified, then target and build default to host.
596 # The aliases save the names the user supplied, while $host etc.
597 # will get canonicalized.
598 case $host---$target---$nonopt in
599 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
600 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
604 # Make sure we can run config.sub.
605 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
606 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
609 echo $ac_n "checking host system type""... $ac_c" 1>&6
610 echo "configure:611: checking host system type" >&5
613 case "$host_alias" in
617 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
618 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
620 *) host_alias
=$nonopt ;;
624 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
625 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
626 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
627 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
628 echo "$ac_t""$host" 1>&6
630 echo $ac_n "checking target system type""... $ac_c" 1>&6
631 echo "configure:632: checking target system type" >&5
634 case "$target_alias" in
637 NONE
) target_alias
=$host_alias ;;
638 *) target_alias
=$nonopt ;;
642 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
643 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
646 echo "$ac_t""$target" 1>&6
648 echo $ac_n "checking build system type""... $ac_c" 1>&6
649 echo "configure:650: checking build system type" >&5
652 case "$build_alias" in
655 NONE
) build_alias
=$host_alias ;;
656 *) build_alias
=$nonopt ;;
660 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
661 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
662 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
663 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
664 echo "$ac_t""$build" 1>&6
666 test "$host_alias" != "$target_alias" &&
667 test "$program_prefix$program_suffix$program_transform_name" = \
669 program_prefix
=${target_alias}-
671 if test "$program_transform_name" = s
,x
,x
,; then
672 program_transform_name
=
674 # Double any \ or $. echo might interpret backslashes.
675 cat <<\EOF_SED
> conftestsed
676 s
,\\,\\\\,g
; s
,\$
,$$
,g
678 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
681 test "$program_prefix" != NONE
&&
682 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
683 # Use a double $ so make ignores it.
684 test "$program_suffix" != NONE
&&
685 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
687 # sed with no file args requires a program.
688 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
691 # Get 'install' or 'install-sh' and its variants.
692 # Find a good install program. We prefer a C program (faster),
693 # so one script is as good as another. But avoid the broken or
694 # incompatible versions:
695 # SysV /etc/install, /usr/sbin/install
696 # SunOS /usr/etc/install
699 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
700 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
701 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
702 # ./install, which can be erroneously created by make from ./install.sh.
703 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
704 echo "configure:705: checking for a BSD compatible install" >&5
705 if test -z "$INSTALL"; then
706 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
709 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
710 for ac_dir
in $PATH; do
711 # Account for people who put trailing slashes in PATH elements.
713 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
715 # OSF1 and SCO ODT 3.0 have their own names for install.
716 # Don't use installbsd from OSF since it installs stuff as root
718 for ac_prog
in ginstall scoinst
install; do
719 if test -f $ac_dir/$ac_prog; then
720 if test $ac_prog = install &&
721 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
722 # AIX install. It has an incompatible calling convention.
725 ac_cv_path_install
="$ac_dir/$ac_prog -c"
736 if test "${ac_cv_path_install+set}" = set; then
737 INSTALL
="$ac_cv_path_install"
739 # As a last resort, use the slow shell script. We don't cache a
740 # path for INSTALL within a source directory, because that will
741 # break other packages using the cache if that directory is
742 # removed, or if the path is relative.
743 INSTALL
="$ac_install_sh"
746 echo "$ac_t""$INSTALL" 1>&6
748 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
749 # It thinks the first close brace ends the variable substitution.
750 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
752 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
754 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
756 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
757 echo "configure:758: checking whether ln works" >&5
758 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
763 if ln conftestdata_f conftestdata_t
2>/dev
/null
769 rm -f conftestdata_f conftestdata_t
772 if test $acx_cv_prog_LN = no
; then
774 echo "$ac_t""no, using $LN" 1>&6
777 echo "$ac_t""yes" 1>&6
780 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
781 echo "configure:782: checking whether ln -s works" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
786 if ln -s X conftestdata
2>/dev
/null
789 ac_cv_prog_LN_S
="ln -s"
794 LN_S
="$ac_cv_prog_LN_S"
795 if test "$ac_cv_prog_LN_S" = "ln -s"; then
796 echo "$ac_t""yes" 1>&6
798 echo "$ac_t""no" 1>&6
802 ### we might need to use some other shell than /bin/sh for running subshells
803 ### If we are on Windows, search for the shell. This will permit people
804 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
805 ### without also having to set CONFIG_SHELL. This code will work when
806 ### using bash, which sets OSTYPE.
809 if test x
${CONFIG_SHELL} = x
; then
810 if test ! -f /bin
/sh
; then
811 if test x
${SHELL} != x
&& test -f ${SHELL} ; then
812 CONFIG_SHELL
=${SHELL}
815 for prog
in sh sh.exe bash bash.exe
; do
816 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
818 test -z "$dir" && dir
=.
819 if test -f $dir/$prog; then
820 CONFIG_SHELL
=$dir/$prog
826 test -n "${CONFIG_SHELL}" && break
834 config_shell
=${CONFIG_SHELL-/bin/sh}
837 # if PWD already has a value, it is probably wrong.
838 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
840 # Export original configure arguments for use by sub-configures. These
841 # will be expanded by make, so quote '$'.
843 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
846 TOPLEVEL_CONFIGURE_ARGUMENTS
=`cat conftestsed.out`
847 rm -f conftestsed.out
850 moveifchange
=${srcdir}/move-if-change
852 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
854 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
856 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
857 INSTALL
="${srcpwd}/install-sh -c"
860 # Set srcdir to "." if that's what it is.
861 # This is important for multilib support.
863 if test "${pwd}" = "${srcpwd}" ; then
871 ### To add a new directory to the tree, first choose whether it is a target
872 ### or a host dependent tool. Then put it into the appropriate list
873 ### (library or tools, host or target), doing a dependency sort.
875 # Subdirs will be configured in the order listed in build_configdirs,
876 # configdirs, or target_configdirs; see the serialization section below.
878 # Dependency sorting is only needed when *configuration* must be done in
879 # a particular order. In all cases a dependency should be specified in
880 # the Makefile, whether or not it's implicitly specified here.
882 # Double entries in build_configdirs, configdirs, or target_configdirs may
883 # cause circular dependencies and break everything horribly.
885 # these library is used by various programs built for the build
888 build_libs
="build-libiberty"
890 # these tools are built for the build environment
891 build_tools
="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
893 # these libraries are used by various programs built for the host environment
895 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
897 # these tools are built for the host environment
898 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
899 # know that we are building the simulator.
900 # binutils, gas and ld appear in that order because it makes sense to run
901 # "make check" in that particular order.
902 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"
904 # libgcj represents the runtime libraries only used by gcj.
905 libgcj
="target-libffi \
911 # these libraries are built for the target environment, and are built after
912 # the host libraries and the host tools (which may be a cross compiler)
914 target_libraries
="target-libiberty \
917 target-libstdc++-v3 \
927 # these tools are built using the target libraries, and are intended to
928 # run only in the target environment
930 # note: any program that *uses* libraries that are in the "target_libraries"
931 # list belongs in this list. those programs are also very likely
932 # candidates for the "native_only" list which follows
934 target_tools
="target-examples target-groff target-gperf target-rda"
936 ################################################################################
938 ## All tools belong in one of the four categories, and are assigned above
939 ## We assign ${configdirs} this way to remove all embedded newlines. This
940 ## is important because configure will choke if they ever get through.
941 ## ${configdirs} is directories we build using the host tools.
942 ## ${target_configdirs} is directories we build using the target tools.
943 configdirs
=`echo ${host_libs} ${host_tools}`
944 target_configdirs
=`echo ${target_libraries} ${target_tools}`
945 build_configdirs
=`echo ${build_libs} ${build_tools}`
947 ################################################################################
949 srcname
="gnu development package"
951 # This gets set non-empty for some net releases of packages.
954 # Define is_cross_compiler to save on calls to 'test'.
956 if test x
"${host}" = x
"${target}" ; then
959 is_cross_compiler
=yes
962 # Find the build and target subdir names.
963 case ${build_alias} in
964 "") build_noncanonical
=${build} ;;
965 *) build_noncanonical
=${build_alias} ;;
968 case ${host_alias} in
969 "") host_noncanonical
=${build_noncanonical} ;;
970 *) host_noncanonical
=${host_alias} ;;
973 case ${target_alias} in
974 "") target_noncanonical
=${host_noncanonical} ;;
975 *) target_noncanonical
=${target_alias} ;;
978 # Prefix 'build-' so this never conflicts with target_subdir.
979 build_subdir
="build-${build_noncanonical}"
980 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
981 if ( test $srcdir = .
&& test -d gcc
) \
982 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
983 host_subdir
="host-${host_noncanonical}"
988 target_subdir
=${target_noncanonical}
991 # Skipdirs are removed silently.
993 # Noconfigdirs are removed loudly.
997 # Make sure we don't let GNU ld be added if we didn't want it.
998 if test x
$with_gnu_ld = xno
; then
1000 noconfigdirs
="$noconfigdirs ld"
1004 # Make sure we don't let GNU as be added if we didn't want it.
1005 if test x
$with_gnu_as = xno
; then
1007 noconfigdirs
="$noconfigdirs gas"
1010 # some tools are so dependent upon X11 that if we're not building with X,
1011 # it's not even worth trying to configure, much less build, that tool.
1014 yes |
"") ;; # the default value for this tree is that X11 is available
1016 skipdirs
="${skipdirs} tk itcl libgui"
1017 # We won't be able to build gdbtk without X.
1020 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1023 # Some tools are only suitable for building in a "native" situation.
1024 # Remove these if host!=target.
1025 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"
1027 # Similarly, some are only suitable for cross toolchains.
1028 # Remove these if host=target.
1029 cross_only
="target-libgloss target-newlib target-opcodes"
1031 case $is_cross_compiler in
1032 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1033 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1036 # If both --with-headers and --with-libs are specified, default to
1038 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
1039 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
1040 if test x
"${with_newlib}" = x
; then
1045 # Recognize --with-newlib/--without-newlib.
1046 case ${with_newlib} in
1047 no
) skipdirs
="${skipdirs} target-newlib" ;;
1048 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1051 # Configure extra directories which are host specific
1055 configdirs
="$configdirs libtermcap" ;;
1058 # A target can indicate whether a language isn't supported for some reason.
1059 # Only spaces may be used in this macro; not newlines or tabs.
1060 unsupported_languages
=
1062 # Remove more programs from consideration, based on the host or
1063 # target this usually means that a port of the program doesn't
1068 noconfigdirs
="$noconfigdirs byacc"
1070 i
[3456789]86-*-vsta)
1071 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1073 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1074 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1076 i
[3456789]86-*-mingw32*)
1077 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1078 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1080 i
[3456789]86-*-beos*)
1081 noconfigdirs
="$noconfigdirs tk itcl libgui gdb"
1084 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1087 noconfigdirs
="$noconfigdirs rcs"
1090 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1093 noconfigdirs
="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1098 # Check whether --enable-libada or --disable-libada was given.
1099 if test "${enable_libada+set}" = set; then
1100 enableval
="$enable_libada"
1101 ENABLE_LIBADA
=$enableval
1106 if test "${ENABLE_LIBADA}" != "yes" ; then
1107 noconfigdirs
="$noconfigdirs gnattools"
1110 # Check whether --enable-libssp or --disable-libssp was given.
1111 if test "${enable_libssp+set}" = set; then
1112 enableval
="$enable_libssp"
1113 ENABLE_LIBSSP
=$enableval
1119 # Set the default so we build libgcc-math for ix86 and x86_64
1120 # Check whether --enable-libgcc-math or --disable-libgcc-math was given.
1121 if test "${enable_libgcc_math+set}" = set; then
1122 enableval
="$enable_libgcc_math"
1128 enable_libgcc_math
=yes ;;
1130 enable_libgcc_math
=no
;;
1136 # Save it here so that, even in case of --enable-libgcj, if the Java
1137 # front-end isn't enabled, we still get libgcj disabled.
1138 libgcj_saved
=$libgcj
1139 case $enable_libgcj in
1141 # If we reset it here, it won't get added to noconfigdirs in the
1142 # target-specific build rules, so it will be forcibly enabled
1143 # (unless the Java language itself isn't enabled).
1147 # Make sure we get it printed in the list of not supported target libs.
1148 noconfigdirs
="$noconfigdirs ${libgcj}"
1153 # Disable libmudflap on some systems.
1154 if test x
$enable_libmudflap = x
; then
1156 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1157 # Enable libmudflap by default in GNU and friends.
1160 # Enable libmudflap by default in FreeBSD.
1163 # Disable it by default everywhere else.
1164 noconfigdirs
="$noconfigdirs target-libmudflap"
1169 # Disable libgomp on non POSIX hosted systems.
1170 if test x
$enable_libgomp = x
; then
1171 # Enable libgomp by default on hosted POSIX systems.
1173 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1175 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd*)
1177 *-*-solaris2* |
*-*-sysv4* |
*-*-irix* |
*-*-osf* |
*-*-hpux*)
1179 *-*-darwin* |
*-*-aix*)
1182 noconfigdirs
="$noconfigdirs target-libgomp"
1190 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1193 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1194 noconfigdirs
="$noconfigdirs sim target-rda"
1197 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
1198 noconfigdirs
="$noconfigdirs sim target-rda"
1199 noconfigdirs
="$noconfigdirs ${libgcj}"
1201 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1202 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1205 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1206 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1207 && test -f /usr
/local
/include
/gmp.h
; then
1211 # Skip some stuff that's unsupported on some FreeBSD configurations.
1216 noconfigdirs
="$noconfigdirs ${libgcj}"
1221 # Remove unsupported stuff on all kaOS configurations.
1222 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1223 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1224 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1225 noconfigdirs
="$noconfigdirs target-libgloss"
1228 # Skip some stuff on all NetBSD configurations.
1229 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1231 # Skip some stuff that's unsupported on some NetBSD configurations.
1233 i
*86-*-netbsdelf*) ;;
1234 arm
*-*-netbsdelf*) ;;
1236 noconfigdirs
="$noconfigdirs ${libgcj}"
1241 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1244 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1246 # The tpf target doesn't support gdb yet.
1248 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1251 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1254 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1257 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1260 # ld works, but does not support shared libraries.
1261 # newlib is not 64 bit ready. I'm not sure about fileutils.
1262 # gas doesn't generate exception information.
1263 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1266 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1269 # newlib is not 64 bit ready
1270 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1273 # newlib is not 64 bit ready
1274 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1277 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1280 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1282 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1283 noconfigdirs
="$noconfigdirs ${libgcj}"
1284 noconfigdirs
="$noconfigdirs target-examples"
1285 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1286 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
1287 noconfigdirs
="$noconfigdirs expect dejagnu"
1288 # the C++ libraries don't build on top of CE's C libraries
1289 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1290 noconfigdirs
="$noconfigdirs target-newlib"
1292 *-*-cygwin*) ;; # keep gdb and readline
1293 *) noconfigdirs
="$noconfigdirs gdb readline"
1298 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1302 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1303 noconfigdirs
="$noconfigdirs ${libgcj}"
1305 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
1306 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1308 arm
*-*-linux-gnueabi)
1309 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1310 noconfigdirs
="$noconfigdirs target-libjava target-libobjc"
1313 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1316 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1319 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1322 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1325 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1328 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1331 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1334 noconfigdirs
="$noconfigdirs target-libgloss gdb"
1335 if test x
${is_cross_compiler} != xno
; then
1336 target_configdirs
="${target_configdirs} target-bsp target-cygmon"
1339 c4x-
*-* | tic4x-
*-*)
1340 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1342 c54x
*-*-* | tic54x-
*-*)
1343 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1345 cris-
*-* | crisv32-
*-*)
1346 unsupported_languages
="$unsupported_languages java"
1349 unsupported_languages
="$unsupported_languages fortran"
1350 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
1352 unsupported_languages
="$unsupported_languages fortran"
1353 noconfigdirs
="$noconfigdirs target-boehm-gc";;
1355 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
1357 unsupported_languages
="$unsupported_languages fortran"
1358 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1362 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1365 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1368 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1371 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1374 noconfigdirs
="$noconfigdirs ${libgcj}"
1377 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1380 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1382 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
1384 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1385 # In this case, it's because the hppa64-linux target is for
1386 # the kernel only at this point and has no libc, and thus no
1387 # headers, crt*.o, etc., all of which are needed by these.
1388 noconfigdirs
="$noconfigdirs target-zlib"
1390 parisc
*-*-linux* | hppa
*-*-linux*)
1394 hppa
*-*-openbsd* | \
1396 noconfigdirs
="$noconfigdirs ${libgcj}"
1399 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1400 # build on HP-UX 10.20.
1401 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1404 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1407 # No gdb support yet.
1408 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
1411 # No gdb or ld support yet.
1412 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1416 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1417 noconfigdirs
="$noconfigdirs ${libgcj}"
1419 i
[3456789]86-*-linux*)
1420 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1421 # not build java stuff by default.
1424 noconfigdirs
="$noconfigdirs ${libgcj}";;
1427 # This section makes it possible to build newlib natively on linux.
1428 # If we are using a cross compiler then don't configure newlib.
1429 if test x
${is_cross_compiler} != xno
; then
1430 noconfigdirs
="$noconfigdirs target-newlib"
1432 noconfigdirs
="$noconfigdirs target-libgloss"
1433 # If we are not using a cross compiler, do configure newlib.
1434 # Note however, that newlib will only be configured in this situation
1435 # if the --with-newlib option has been given, because otherwise
1436 # 'target-newlib' will appear in skipdirs.
1438 i
[3456789]86-*-mingw32*)
1439 target_configdirs
="$target_configdirs target-mingw"
1440 noconfigdirs
="$noconfigdirs expect target-libgloss ${libgcj}"
1442 # Can't build gdb for mingw32 if not native.
1444 i
[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1445 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1450 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1451 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1452 # always build newlib if winsup directory is present.
1453 if test -d "$srcdir/winsup"; then
1454 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1455 elif test -d "$srcdir/newlib"; then
1456 echo "Warning: winsup is missing so newlib can't be built."
1459 # Can't build gdb for Cygwin if not native.
1461 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1462 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1466 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
1467 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
1470 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1472 i
[3456789]86-*-sco3.2v5
*)
1473 # The linker does not yet know about weak symbols in COFF,
1474 # and is not configured to handle mixed ELF and COFF.
1475 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1477 i
[3456789]86-*-sco*)
1478 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1480 i
[3456789]86-*-solaris2*)
1481 noconfigdirs
="$noconfigdirs target-libgloss"
1483 i
[3456789]86-*-sysv4*)
1484 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1486 i
[3456789]86-*-beos*)
1487 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1489 i
[3456789]86-*-rdos*)
1490 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1493 noconfigdirs
="$noconfigdirs ${libgcj}"
1495 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1496 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1499 noconfigdirs
="$noconfigdirs ${libgcj}"
1502 noconfigdirs
="$noconfigdirs ${libgcj}"
1505 # The EPOC C++ environment does not support exceptions or rtti,
1506 # and so building libstdc++-v3 tends not to always work.
1507 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1510 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1511 unsupported_languages
="$unsupported_languages fortran java"
1514 noconfigdirs
="$noconfigdirs ${libgcj}"
1517 noconfigdirs
="$noconfigdirs ${libgcj}"
1520 noconfigdirs
="$noconfigdirs sim"
1523 # copied from rs6000-*-* entry
1524 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1526 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1527 target_configdirs
="$target_configdirs target-winsup"
1528 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1529 # always build newlib.
1530 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1532 # This is temporary until we can link against shared libraries
1533 powerpcle-
*-solaris*)
1534 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1537 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1540 noconfigdirs
="$noconfigdirs ${libgcj}"
1542 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
1545 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1548 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1551 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1554 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1557 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1560 # Linking libjava exceeds command-line length limits on at least
1561 # IRIX 6.2, but not on IRIX 6.5.
1562 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1563 # <oldham@codesourcery.com>
1564 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1567 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1570 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1573 noconfigdirs
="$noconfigdirs gprof ${libgcj}" # same as generic mips
1576 noconfigdirs
="$noconfigdirs target-newlib ${libgcj}"
1579 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1582 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1585 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1589 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1590 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1591 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1592 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1594 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1597 noconfigdirs
="$noconfigdirs ${libgcj}"
1600 noconfigdirs
="$noconfigdirs ${libgcj}"
1603 noconfigdirs
="$noconfigdirs ${libgcj}"
1606 noconfigdirs
="$noconfigdirs ${libgcj}"
1607 if test x
${is_cross_compiler} != xno
; then
1608 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1613 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
1614 noconfigdirs
="$noconfigdirs ${libgcj}"
1616 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1619 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1622 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1625 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1628 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1631 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1634 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1637 noconfigdirs
="$noconfigdirs ${libgcj}"
1640 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1642 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1643 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1646 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1649 noconfigdirs
="$noconfigdirs ${libgcj}"
1653 # If we aren't building newlib, then don't build libgloss, since libgloss
1654 # depends upon some newlib header files.
1655 case "${noconfigdirs}" in
1656 *target-libgloss
*) ;;
1657 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1660 # Work in distributions that contain no compiler tools, like Autoconf.
1662 host_makefile_frag
=/dev
/null
1663 if test -d ${srcdir}/config
; then
1666 # Avoid "too much defining" errors from HPUX compiler.
1667 tentative_cc
="cc -Wp,-H256000"
1668 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1669 # If it's HP/UX ar, this should be harmless.
1673 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1676 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1677 # chokes on bfd, the compiler won't let you assign integers to enums, and
1678 # other problems. Defining CC to gcc is a questionable way to say "don't use
1679 # the apollo compiler" (the preferred version of GCC could be called cc,
1680 # or whatever), but I'm not sure leaving CC as cc is any better...
1681 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1682 # Used to have BISON=yacc.
1686 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1689 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1690 tentative_cc
="cc -Xa"
1691 host_makefile_frag
="config/mh-cxux"
1693 m88k-motorola-sysv
*)
1696 tentative_cc
="cc -Wf,-XNg1000"
1697 host_makefile_frag
="config/mh-decstation"
1700 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1701 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1702 host_makefile_frag
="config/mh-necv4"
1705 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1706 # environment. Also bump switch table size so that cp-parse will
1707 # compile. Bump string length limit so linker builds.
1708 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1711 host_makefile_frag
="config/mh-sysv4"
1714 # This is for a MIPS running RISC/os 4.52C.
1716 # This is needed for GDB, but needs to be in the top-level make because
1717 # if a library is compiled with the bsd headers and gets linked with the
1718 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1719 # a different size).
1720 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1721 # known except to select the sysv environment. Could we use /proc instead?
1722 # These "sysv environments" and "bsd environments" often end up being a pain.
1724 # This is not part of CFLAGS because perhaps not all C compilers have this
1726 tentative_cc
="cc -systype sysv"
1731 i
[3456789]86-*-sysv5*)
1732 host_makefile_frag
="config/mh-sysv5"
1734 i
[3456789]86-*-dgux*)
1735 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1736 host_makefile_frag
="config/mh-dgux386"
1738 i
[3456789]86-ncr-sysv4.3
*)
1739 # The MetaWare compiler will generate a copyright message unless you
1740 # turn it off by adding the -Hnocopyr flag.
1741 tentative_cc
="cc -Hnocopyr"
1743 i
[3456789]86-ncr-sysv4*)
1744 # for an NCR 3000 (i486/SVR4) system.
1745 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1746 # This compiler not only emits obnoxious copyright messages every time
1747 # you run it, but it chokes and dies on a whole bunch of GNU source
1748 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1749 tentative_cc
="/usr/ccs/ATT/cc"
1750 host_makefile_frag
="config/mh-ncr3000"
1752 i
[3456789]86-*-sco3.2v5
*)
1754 i
[3456789]86-*-sco*)
1755 # The native C compiler botches some simple uses of const. Unfortunately,
1756 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1757 tentative_cc
="cc -Dconst="
1758 host_makefile_frag
="config/mh-sco"
1760 i
[3456789]86-*-udk*)
1761 host_makefile_frag
="config/mh-sysv5"
1763 i
[3456789]86-*-solaris2*)
1764 host_makefile_frag
="config/mh-sysv4"
1766 i
[3456789]86-*-msdosdjgpp*)
1767 host_makefile_frag
="config/mh-djgpp"
1770 host_makefile_frag
="config/mh-cygwin"
1775 host_makefile_frag
="config/mh-interix"
1778 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1782 host_makefile_frag
="config/mh-solaris"
1785 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1786 # without overflowing the jump tables (-J says to use a 32 bit table)
1787 tentative_cc
="cc -J"
1790 tentative_cc
="cc -Wp,-H256000"
1793 tentative_cc
="cc -Wp,-H256000"
1796 # /bin/cc is less than useful for our purposes. Always use GCC
1797 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1798 host_makefile_frag
="config/mh-lynxrs6k"
1801 host_makefile_frag
="config/mh-ppc-darwin"
1804 host_makefile_frag
="config/mh-ppc-aix"
1807 host_makefile_frag
="config/mh-ppc-aix"
1810 # /bin/cc is less than useful for our purposes. Always use GCC
1811 tentative_cc
="/bin/gcc"
1814 host_makefile_frag
="config/mh-sysv4"
1816 # This is placed last to prevent interfering with the cases above.
1818 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1819 host_makefile_frag
="config/mh-x86omitfp"
1824 # If we aren't going to be using gcc, see if we can extract a definition
1825 # of CC from the fragment.
1826 # Actually, use the 'pre-extracted' version above.
1827 if test -z "${CC}" && test "${build}" = "${host}" ; then
1828 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1830 for dir
in $PATH; do
1831 test -z "$dir" && dir
=.
1832 if test -f $dir/gcc
; then
1838 if test -z "${found}" && test -n "${tentative_cc}" ; then
1843 if test "${build}" != "${host}" ; then
1844 # If we are doing a Canadian Cross, in which the host and build systems
1845 # are not the same, we set reasonable default values for the tools.
1847 CC
=${CC-${host_alias}-gcc}
1848 CFLAGS
=${CFLAGS-"-g -O2"}
1849 CXX
=${CXX-${host_alias}-c++}
1850 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1851 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1854 # Set reasonable default values for some tools even if not Canadian.
1855 # Of course, these are different reasonable default values, originally
1856 # specified directly in the Makefile.
1857 # We don't export, so that autoconf can do its job.
1858 # Note that all these settings are above the fragment inclusion point
1859 # in Makefile.in, so can still be overridden by fragments.
1860 # This is all going to change when we autoconfiscate...
1862 CC_FOR_BUILD
="\$(CC)"
1863 # Extract the first word of "gcc", so it can be a program name with args.
1864 set dummy gcc
; 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
=":"
1875 for ac_dir
in $ac_dummy; do
1876 test -z "$ac_dir" && ac_dir
=.
1877 if test -f $ac_dir/$ac_word; then
1886 if test -n "$CC"; then
1887 echo "$ac_t""$CC" 1>&6
1889 echo "$ac_t""no" 1>&6
1892 if test -z "$CC"; then
1893 # Extract the first word of "cc", so it can be a program name with args.
1894 set dummy cc
; ac_word
=$2
1895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1896 echo "configure:1897: checking for $ac_word" >&5
1897 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 if test -n "$CC"; then
1901 ac_cv_prog_CC
="$CC" # Let the user override the test.
1903 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1906 for ac_dir
in $ac_dummy; do
1907 test -z "$ac_dir" && ac_dir
=.
1908 if test -f $ac_dir/$ac_word; then
1909 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1910 ac_prog_rejected
=yes
1918 if test $ac_prog_rejected = yes; then
1919 # We found a bogon in the path, so make sure we never use it.
1920 set dummy
$ac_cv_prog_CC
1922 if test $# -gt 0; then
1923 # We chose a different compiler from the bogus one.
1924 # However, it has the same basename, so the bogon will be chosen
1925 # first if we set CC to just the basename; use the full file name.
1927 set dummy
"$ac_dir/$ac_word" "$@"
1935 if test -n "$CC"; then
1936 echo "$ac_t""$CC" 1>&6
1938 echo "$ac_t""no" 1>&6
1941 if test -z "$CC"; then
1942 case "`uname -s`" in
1944 # Extract the first word of "cl", so it can be a program name with args.
1945 set dummy cl
; ac_word
=$2
1946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1947 echo "configure:1948: checking for $ac_word" >&5
1948 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 if test -n "$CC"; then
1952 ac_cv_prog_CC
="$CC" # Let the user override the test.
1954 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1956 for ac_dir
in $ac_dummy; do
1957 test -z "$ac_dir" && ac_dir
=.
1958 if test -f $ac_dir/$ac_word; then
1967 if test -n "$CC"; then
1968 echo "$ac_t""$CC" 1>&6
1970 echo "$ac_t""no" 1>&6
1975 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1978 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1979 echo "configure:1980: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1982 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1983 ac_cpp
='$CPP $CPPFLAGS'
1984 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1985 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1986 cross_compiling
=$ac_cv_prog_cc_cross
1988 cat > conftest.
$ac_ext << EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1995 if { (eval echo configure
:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1996 ac_cv_prog_cc_works
=yes
1997 # If we can't run a trivial program, we are probably using a cross compiler.
1998 if (.
/conftest
; exit) 2>/dev
/null
; then
1999 ac_cv_prog_cc_cross
=no
2001 ac_cv_prog_cc_cross
=yes
2004 echo "configure: failed program was:" >&5
2005 cat conftest.
$ac_ext >&5
2006 ac_cv_prog_cc_works
=no
2010 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2011 ac_cpp
='$CPP $CPPFLAGS'
2012 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2013 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2014 cross_compiling
=$ac_cv_prog_cc_cross
2016 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2017 if test $ac_cv_prog_cc_works = no
; then
2018 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2020 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2021 echo "configure:2022: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2022 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2023 cross_compiling
=$ac_cv_prog_cc_cross
2025 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2026 echo "configure:2027: checking whether we are using GNU C" >&5
2027 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2030 cat > conftest.c
<<EOF
2035 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2042 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2044 if test $ac_cv_prog_gcc = yes; then
2050 ac_test_CFLAGS
="${CFLAGS+set}"
2051 ac_save_CFLAGS
="$CFLAGS"
2053 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2054 echo "configure:2055: checking whether ${CC-cc} accepts -g" >&5
2055 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2058 echo 'void f(){}' > conftest.c
2059 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2068 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2069 if test "$ac_test_CFLAGS" = set; then
2070 CFLAGS
="$ac_save_CFLAGS"
2071 elif test $ac_cv_prog_cc_g = yes; then
2072 if test "$GCC" = yes; then
2078 if test "$GCC" = yes; then
2086 # We must set the default linker to the linker used by gcc for the correct
2087 # operation of libtool. If LD is not defined and we are using gcc, try to
2088 # set the LD default to the ld used by gcc.
2089 if test -z "$LD"; then
2090 if test "$GCC" = yes; then
2093 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2095 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2097 case $gcc_prog_ld in
2098 # Accept absolute paths.
2099 [\\/]* |
[A-Za-z
]:[\\/]*)
2100 LD
="$gcc_prog_ld" ;;
2106 CFLAGS
=${CFLAGS-"-g"}
2107 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2110 if test $host != $build; then
2111 ac_tool_prefix
=${host_alias}-
2118 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2119 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2121 echo "configure:2122: checking for $ac_word" >&5
2122 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 if test -n "$GNATBIND"; then
2126 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2128 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2130 for ac_dir
in $ac_dummy; do
2131 test -z "$ac_dir" && ac_dir
=.
2132 if test -f $ac_dir/$ac_word; then
2133 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2140 GNATBIND
="$ac_cv_prog_GNATBIND"
2141 if test -n "$GNATBIND"; then
2142 echo "$ac_t""$GNATBIND" 1>&6
2144 echo "$ac_t""no" 1>&6
2148 if test -z "$ac_cv_prog_GNATBIND"; then
2149 if test -n "$ac_tool_prefix"; then
2150 # Extract the first word of "gnatbind", so it can be a program name with args.
2151 set dummy gnatbind
; ac_word
=$2
2152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2153 echo "configure:2154: checking for $ac_word" >&5
2154 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2157 if test -n "$GNATBIND"; then
2158 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2160 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2162 for ac_dir
in $ac_dummy; do
2163 test -z "$ac_dir" && ac_dir
=.
2164 if test -f $ac_dir/$ac_word; then
2165 ac_cv_prog_GNATBIND
="gnatbind"
2170 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2173 GNATBIND
="$ac_cv_prog_GNATBIND"
2174 if test -n "$GNATBIND"; then
2175 echo "$ac_t""$GNATBIND" 1>&6
2177 echo "$ac_t""no" 1>&6
2185 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2186 echo "configure:2187: checking whether compiler driver understands Ada" >&5
2187 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2190 cat >conftest.adb
<<EOF
2191 procedure conftest is begin null; end conftest;
2193 acx_cv_cc_gcc_supports_ada
=no
2194 # There is a bug in old released versions of GCC which causes the
2195 # driver to exit successfully when the appropriate language module
2196 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2197 # Therefore we must check for the error message as well as an
2198 # unsuccessful exit.
2199 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2200 # given a .adb file, but produce no object file. So we must check
2201 # if an object file was really produced to guard against this.
2202 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2203 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2204 acx_cv_cc_gcc_supports_ada
=yes
2209 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2211 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2217 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2218 echo "configure:2219: checking how to compare bootstrapped objects" >&5
2219 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2224 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2225 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2226 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2229 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2232 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2233 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2236 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2243 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2244 do_compare
="$gcc_cv_prog_cmp_skip"
2248 # Check for GMP and MPFR
2252 # Specify a location for mpfr
2253 # check for this first so it ends up on the link line before gmp.
2254 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2255 if test "${with_mpfr_dir+set}" = set; then
2256 withval
="$with_mpfr_dir"
2261 if test "x$with_mpfr_dir" != x
; then
2262 gmpinc
="-I$with_mpfr_dir"
2263 gmplibs
="$with_mpfr_dir/libmpfr.a"
2268 # Check whether --with-mpfr or --without-mpfr was given.
2269 if test "${with_mpfr+set}" = set; then
2270 withval
="$with_mpfr"
2275 if test "x$with_mpfr" != x
; then
2276 gmplibs
="-L$with_mpfr/lib $gmplibs"
2277 gmpinc
="-I$with_mpfr/include"
2280 # Specify a location for gmp
2281 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2282 if test "${with_gmp_dir+set}" = set; then
2283 withval
="$with_gmp_dir"
2288 if test "x$with_gmp_dir" != x
; then
2289 gmpinc
="$gmpinc -I$with_gmp_dir"
2290 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2291 gmplibs
="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2292 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2293 gmplibs
="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2295 # One of the later tests will catch the error if neither library is present.
2297 gmplibs
="$gmplibs -lgmp"
2300 # Check whether --with-gmp or --without-gmp was given.
2301 if test "${with_gmp+set}" = set; then
2307 if test "x$with_gmp" != x
; then
2308 gmplibs
="-L$with_gmp/lib $gmplibs"
2309 gmpinc
="-I$with_gmp/include $gmpinc"
2312 saved_CFLAGS
="$CFLAGS"
2313 CFLAGS
="$CFLAGS $gmpinc"
2314 # Check GMP actually works
2315 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2316 echo "configure:2317: checking for correct version of gmp.h" >&5
2317 cat > conftest.
$ac_ext <<EOF
2318 #line 2319 "configure"
2319 #include "confdefs.h"
2323 #if __GNU_MP_VERSION < 3
2329 if { (eval echo configure
:2330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2331 echo "$ac_t""yes" 1>&6
2333 echo "configure: failed program was:" >&5
2334 cat conftest.
$ac_ext >&5
2336 echo "$ac_t""no" 1>&6; have_gmp
=no
2340 if test x
"$have_gmp" = xyes
; then
2341 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2342 echo "configure:2343: checking for MPFR" >&5
2345 LIBS
="$LIBS $gmplibs"
2346 cat > conftest.
$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2352 mpfr_t n; mpfr_init(n);
2355 if { (eval echo configure
:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2357 echo "$ac_t""yes" 1>&6
2359 echo "configure: failed program was:" >&5
2360 cat conftest.
$ac_ext >&5
2362 echo "$ac_t""no" 1>&6; have_gmp
=no
2366 CFLAGS
="$saved_CFLAGS"
2369 # Flags needed for both GMP and/or MPFR
2373 # By default, C is the only stage 1 language.
2377 # Figure out what language subdirectories are present.
2378 # Look if the user specified --enable-languages="..."; if not, use
2379 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2381 # NB: embedded tabs in this IF block -- do not untabify
2382 if test -d ${srcdir}/gcc
; then
2383 if test x
"${enable_languages+set}" != xset
; then
2384 if test x
"${LANGUAGES+set}" = xset
; then
2385 enable_languages
="${LANGUAGES}"
2386 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2388 enable_languages
=all
2391 if test x
"${enable_languages}" = x ||
2392 test x
"${enable_languages}" = xyes
;
2394 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2398 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2400 # 'f95' is the old name for the 'fortran' language. We issue a warning
2401 # and make the substitution.
2402 case ,${enable_languages}, in
2404 echo configure.
in: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
2405 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2409 # First scan to see if an enabled language requires some other language.
2410 # We assume that a given config-lang.in will list all the language
2411 # front ends it requires, even if some are required indirectly.
2412 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2413 case ${lang_frag} in
2415 # The odd quoting in the next line works around
2416 # an apparent bug in bash 1.12 on linux.
2417 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2419 # From the config-lang.in, get $language, $lang_requires
2423 for other
in ${lang_requires} ; do
2424 case ,${enable_languages}, in
2428 echo " \`$other' language required by \`$language'; enabling" 1>&2
2429 enable_languages
="${enable_languages},${other}"
2437 new_enable_languages
=c
2438 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2439 potential_languages
=c
2441 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2442 case ${lang_frag} in
2444 # The odd quoting in the next line works around
2445 # an apparent bug in bash 1.12 on linux.
2446 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2448 # From the config-lang.in, get $language, $target_libs,
2449 # $lang_dirs, $boot_language, and $build_by_default
2457 potential_languages
="${potential_languages},${language}"
2458 # This is quite sensitive to the ordering of the case statement arms.
2459 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2461 echo "${lang_frag} doesn't set \$language." 1>&2
2465 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2468 *,${language},*:*:*:*)
2469 # Language was explicitly selected; include it.
2473 # 'all' was selected, but this is not a default language
2474 # so do not include it.
2478 # 'all' was selected and this is a default language; include it.
2486 # Disable languages that need GMP if it isn't available.
2487 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2488 *,${language},*:no
:yes)
2489 # Specifically requested language; tell them.
2490 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2498 # Disable a language that is unsupported by the target.
2499 case " $unsupported_languages " in
2505 case $add_this_lang in
2507 # Remove language-dependent dirs.
2508 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2511 new_enable_languages
="$new_enable_languages,$language"
2512 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2513 case ${boot_language} in
2515 # Add to (comma-separated) list of stage 1 languages.
2516 stage1_languages
="${stage1_languages},${language}"
2525 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2526 if test "x$missing_languages" != x
; then
2527 { echo "configure: error:
2528 The following requested languages could not be built: ${missing_languages}
2529 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2532 if test "x$new_enable_languages" != "x$enable_languages"; then
2533 echo The following languages will be built
: ${new_enable_languages}
2535 enable_languages
="$new_enable_languages"
2536 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2539 # Handle --disable-<component> generically.
2540 for dir
in $configdirs $build_configdirs $target_configdirs ; do
2541 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2542 if eval test x\
${enable_${dirname}} "=" xno
; then
2543 noconfigdirs
="$noconfigdirs $dir"
2547 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2548 # $build_configdirs and $target_configdirs.
2549 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2552 for dir
in .
$skipdirs $noconfigdirs ; do
2553 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2554 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2555 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2556 if test -r $srcdir/$dirname/configure
; then
2557 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2560 notsupp
="$notsupp $dir"
2564 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2565 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2566 if test -r $srcdir/$dirname/configure
; then
2567 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2570 notsupp
="$notsupp $dir"
2574 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2575 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2576 if test -r $srcdir/$dirname/configure
; then
2577 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2580 notsupp
="$notsupp $dir"
2586 # Sometimes the tools are distributed with libiberty but with no other
2587 # libraries. In that case, we don't want to build target-libiberty.
2588 if test -n "${target_configdirs}" ; then
2590 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2591 if test "$i" != "libiberty" ; then
2592 if test -r $srcdir/$i/configure
; then
2598 if test -z "${others}" ; then
2603 # Quietly strip out all directories which aren't configurable in this tree.
2604 # This relies on all configurable subdirectories being autoconfiscated, which
2606 build_configdirs_all
="$build_configdirs"
2608 for i
in ${build_configdirs_all} ; do
2609 j
=`echo $i | sed -e s/build-//g`
2610 if test -f ${srcdir}/$j/configure
; then
2611 build_configdirs
="${build_configdirs} $i"
2615 configdirs_all
="$configdirs"
2617 for i
in ${configdirs_all} ; do
2618 if test -f ${srcdir}/$i/configure
; then
2619 configdirs
="${configdirs} $i"
2623 target_configdirs_all
="$target_configdirs"
2625 for i
in ${target_configdirs_all} ; do
2626 j
=`echo $i | sed -e s/target-//g`
2627 if test -f ${srcdir}/$j/configure
; then
2628 target_configdirs
="${target_configdirs} $i"
2632 # Produce a warning message for the subdirs we can't configure.
2633 # This isn't especially interesting in the Cygnus tree, but in the individual
2634 # FSF releases, it's important to let people know when their machine isn't
2635 # supported by the one or two programs in a package.
2637 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2638 # If $appdirs is non-empty, at least one of those directories must still
2639 # be configured, or we error out. (E.g., if the gas release supports a
2640 # specified target in some subdirs but not the gas subdir, we shouldn't
2641 # pretend that all is well.)
2642 if test -n "$appdirs" ; then
2643 for dir
in $appdirs ; do
2644 if test -r $dir/Makefile.
in ; then
2645 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2649 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2655 if test -n "$appdirs" ; then
2656 echo "*** This configuration is not supported by this package." 1>&2
2660 # Okay, some application will build, or we don't care to check. Still
2661 # notify of subdirs not getting built.
2662 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2663 echo " ${notsupp}" 1>&2
2664 echo " (Any other directories should still work fine.)" 1>&2
2674 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2675 if test "${with_build_sysroot+set}" = set; then
2676 withval
="$with_build_sysroot"
2677 if test x
"$withval" != x
; then
2678 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
2681 SYSROOT_CFLAGS_FOR_TARGET
=
2686 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2687 # the named directory are copied to $(tooldir)/sys-include.
2688 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2689 if test x
${is_cross_compiler} = xno
; then
2690 echo 1>&2 '***' --with-headers is only supported when cross compiling
2693 if test x
"${with_headers}" != xyes
; then
2694 case "${exec_prefixoption}" in
2696 *) x
=${exec_prefix} ;;
2698 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2702 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2703 # the name directories are copied to $(tooldir)/lib. Multiple directories
2705 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2706 if test x
${is_cross_compiler} = xno
; then
2707 echo 1>&2 '***' --with-libs is only supported when cross compiling
2710 if test x
"${with_libs}" != xyes
; then
2711 # Copy the libraries in reverse order, so that files in the first named
2712 # library override files in subsequent libraries.
2713 case "${exec_prefixoption}" in
2715 *) x
=${exec_prefix} ;;
2717 for l
in ${with_libs}; do
2718 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2723 # Set with_gnu_as and with_gnu_ld as appropriate.
2725 # This is done by determining whether or not the appropriate directory
2726 # is available, and by checking whether or not specific configurations
2727 # have requested that this magic not happen.
2729 # The command line options always override the explicit settings in
2730 # configure.in, and the settings in configure.in override this magic.
2732 # If the default for a toolchain is to use GNU as and ld, and you don't
2733 # want to do that, then you should use the --without-gnu-as and
2734 # --without-gnu-ld options for the configure script.
2736 if test x
${use_gnu_as} = x
&&
2737 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2739 extra_host_args
="$extra_host_args --with-gnu-as"
2742 if test x
${use_gnu_ld} = x
&&
2743 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2745 extra_host_args
="$extra_host_args --with-gnu-ld"
2748 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2749 # can detect this case.
2751 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2753 extra_host_args
="$extra_host_args --with-newlib"
2756 # Handle ${copy_dirs}
2757 set fnord
${copy_dirs}
2759 while test $# != 0 ; do
2760 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2763 echo Copying
$1 to
$2
2765 # Use the install script to create the directory and all required
2766 # parent directories.
2767 if test -d $2 ; then
2771 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2774 # Copy the directory, assuming we have tar.
2775 # FIXME: Should we use B in the second tar? Not all systems support it.
2776 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2778 # It is the responsibility of the user to correctly adjust all
2779 # symlinks. If somebody can figure out how to handle them correctly
2780 # here, feel free to add the code.
2787 # Determine a target-dependent exec_prefix that the installed
2788 # gcc will search in. Keep this list sorted by triplet, with
2789 # the *-*-osname triplets last.
2793 md_exec_prefix
=/gnu
/lib
/gcc-lib
2795 i3456786-pc-msdosdjgpp
*)
2796 md_exec_prefix
=/dev
/env
/DJDIR
/bin
2798 i3456786-
*-sco3.2v5
*)
2799 if test $with_gnu_as = yes; then
2800 md_exec_prefix
=/usr
/gnu
/bin
2802 md_exec_prefix
=/usr
/ccs
/bin
/elf
2807 powerpc-
*-chorusos* | \
2808 powerpc
*-*-eabi* | \
2809 powerpc
*-*-sysv* | \
2810 powerpc
*-*-kaos* | \
2812 md_exec_prefix
=/usr
/ccs
/bin
2817 md_exec_prefix
=/usr
/ccs
/bin
2832 md_exec_prefix
=/usr
/ccs
/bin
2836 extra_arflags_for_target
=
2837 extra_nmflags_for_target
=
2838 extra_ranlibflags_for_target
=
2839 target_makefile_frag
=/dev
/null
2842 target_makefile_frag
="config/mt-netware"
2844 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2845 target_makefile_frag
="config/mt-gnu"
2847 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2848 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2849 # commands to handle both 32-bit and 64-bit objects. These flags are
2850 # harmless if we're using GNU nm or ar.
2851 extra_arflags_for_target
=" -X32_64"
2852 extra_nmflags_for_target
=" -B -X32_64"
2855 # ranlib from Darwin requires the -c flag to look at common symbols.
2856 extra_ranlibflags_for_target
=" -c"
2858 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2859 target_makefile_frag
="config/mt-wince"
2863 alphaieee_frag
=/dev
/null
2866 # This just makes sure to use the -mieee option to build target libs.
2867 # This should probably be set individually by each library.
2868 alphaieee_frag
="config/mt-alphaieee"
2872 # If --enable-target-optspace always use -Os instead of -O2 to build
2873 # the target libraries, similarly if it is not specified, use -Os
2874 # on selected platforms.
2875 ospace_frag
=/dev
/null
2876 case "${enable_target_optspace}:${target}" in
2878 ospace_frag
="config/mt-ospace"
2881 ospace_frag
="config/mt-d30v"
2883 :m32r-
* |
:d10v-
* |
:fr30-
*)
2884 ospace_frag
="config/mt-ospace"
2889 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2893 # Default to using --with-stabs for certain targets.
2894 if test x
${with_stabs} = x
; then
2898 mips
*-*-* | alpha
*-*-osf*)
2900 extra_host_args
="${extra_host_args} --with-stabs"
2905 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2906 # them automatically.
2909 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2913 # Some systems (e.g., one of the i386-aix systems the gas testers are
2914 # using) don't handle "\$" correctly, so don't use it here.
2915 tooldir
='${exec_prefix}'/${target_alias}
2916 build_tooldir
=${tooldir}
2918 # Create a .gdbinit file which runs the one in srcdir
2919 # and tells GDB to look there for source files.
2921 if test -r ${srcdir}/.gdbinit
; then
2924 *) cat > .
/.gdbinit
<<EOF
2928 source ${srcdir}/.gdbinit
2934 # Make sure that the compiler is able to generate an executable. If it
2935 # can't, we are probably in trouble. We don't care whether we can run the
2936 # executable--we might be using a cross compiler--we only care whether it
2937 # can be created. At this point the main configure script has set CC.
2939 echo "int main () { return 0; }" > conftest.c
2940 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2941 if test $?
= 0 ; then
2942 if test -s conftest ||
test -s conftest.exe
; then
2948 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2949 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2956 # The Solaris /usr/ucb/cc compiler does not appear to work.
2958 sparc-sun-solaris2
*)
2959 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
2960 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2962 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
2963 if test -d /opt
/cygnus
/bin
; then
2964 if test "$could_use" = "" ; then
2965 could_use
="/opt/cygnus/bin"
2967 could_use
="$could_use or /opt/cygnus/bin"
2970 if test "$could_use" = "" ; then
2971 echo "Warning: compilation may fail because you're using"
2972 echo "/usr/ucb/cc. You should change your PATH or CC "
2973 echo "variable and rerun configure."
2975 echo "Warning: compilation may fail because you're using"
2976 echo "/usr/ucb/cc, when you should use the C compiler from"
2977 echo "$could_use. You should change your"
2978 echo "PATH or CC variable and rerun configure."
2985 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
2986 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
2987 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
2990 # Record target_configdirs and the configure arguments for target and
2991 # build configuration in Makefile.
2992 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2993 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
2995 # Determine whether gdb needs tk/tcl or not.
2996 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2997 # and in that case we want gdb to be built without tk. Ugh!
2998 # In fact I believe gdb is the *only* package directly dependent on tk,
2999 # so we should be able to put the 'maybe's in unconditionally and
3000 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3001 # 100% sure that that's safe though.
3003 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3004 case "$enable_gdbtk" in
3008 GDB_TK
="${gdb_tk}" ;;
3010 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3011 # distro. Eventually someone will fix this and move Insight, nee
3012 # gdbtk to a separate directory.
3013 if test -d ${srcdir}/gdb
/gdbtk
; then
3020 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3021 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3023 # Strip out unwanted targets.
3025 # While at that, we remove Makefiles if we were started for recursive
3026 # configuration, so that the top-level Makefile reconfigures them,
3027 # like we used to do when configure itself was recursive.
3029 # Loop over modules. $extrasub must be used with care, limiting as
3030 # much as possible the usage of range addresses. That's because autoconf
3031 # splits the sed script to overcome limits in the number of commands,
3032 # and relying on carefully-timed sed passes may turn out to be very hard
3033 # to maintain later. In this particular case, you just have to be careful
3034 # not to nest @if/@endif pairs, because configure will not warn you at all.
3036 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3037 if test "${enable_bootstrap+set}" = set; then
3038 enableval
="$enable_bootstrap"
3041 enable_bootstrap
=default
3045 # Issue errors and warnings for invalid/strange bootstrap combinations.
3046 case "$configdirs" in
3047 *gcc
*) have_compiler
=yes ;;
3048 *) have_compiler
=no
;;
3051 case "$have_compiler:$host:$target:$enable_bootstrap" in
3054 # Default behavior. Enable bootstrap if we have a compiler
3055 # and we are in a native configuration.
3056 yes:$build:$build:default
)
3057 enable_bootstrap
=yes ;;
3060 enable_bootstrap
=no
;;
3062 # We have a compiler and we are in a native configuration, bootstrap is ok
3063 yes:$build:$build:yes)
3066 # Other configurations, but we have a compiler. Assume the user knows
3069 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3072 # No compiler: if they passed --enable-bootstrap explicitly, fail
3074 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3076 # Fail if wrong command line
3078 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3082 # Adjust the toplevel makefile according to whether bootstrap was selected.
3083 case "$enable_bootstrap" in
3085 bootstrap_suffix
=bootstrap
;;
3087 bootstrap_suffix
=no-bootstrap
;;
3090 for module
in ${build_configdirs} ; do
3091 if test -z "${no_recursion}" \
3092 && test -f ${build_subdir}/${module}/Makefile
; then
3093 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3094 rm -f ${build_subdir}/${module}/Makefile
3097 /^@if build-$module\$/d
3098 /^@endif build-$module\$/d
3099 /^@if build-$module-$bootstrap_suffix\$/d
3100 /^@endif build-$module-$bootstrap_suffix\$/d"
3102 for module
in ${configdirs} ; do
3103 if test -z "${no_recursion}"; then
3104 for file in stage
*-${module}/Makefile
${module}/Makefile
; do
3105 if test -f ${file}; then
3106 echo 1>&2 "*** removing ${file} to force reconfigure"
3113 /^@endif $module\$/d
3114 /^@if $module-$bootstrap_suffix\$/d
3115 /^@endif $module-$bootstrap_suffix\$/d"
3117 for module
in ${target_configdirs} ; do
3118 if test -z "${no_recursion}" \
3119 && test -f ${target_subdir}/${module}/Makefile
; then
3120 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3121 rm -f ${target_subdir}/${module}/Makefile
3124 /^@if target-$module\$/d
3125 /^@endif target-$module\$/d
3126 /^@if target-$module-$bootstrap_suffix\$/d
3127 /^@endif target-$module-$bootstrap_suffix\$/d"
3131 /^@if /,/^@endif /d"
3133 # Create the serialization dependencies. This uses a temporary file.
3135 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3136 if test "${enable_serial_configure+set}" = set; then
3137 enableval
="$enable_serial_configure"
3142 case ${enable_serial_configure} in
3144 enable_serial_build_configure
=yes
3145 enable_serial_host_configure
=yes
3146 enable_serial_target_configure
=yes
3150 # These force 'configure's to be done one at a time, to avoid problems
3151 # with contention over a shared config.cache.
3153 echo '# serdep.tmp' > serdep.tmp
3155 test "x${enable_serial_build_configure}" = xyes
&&
3156 for item
in ${build_configdirs} ; do
3159 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3164 test "x${enable_serial_host_configure}" = xyes
&&
3165 for item
in ${configdirs} ; do
3168 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3173 test "x${enable_serial_target_configure}" = xyes
&&
3174 for item
in ${target_configdirs} ; do
3177 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3181 serialization_dependencies
=serdep.tmp
3184 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3185 # target and nonopt. These are the ones we might not want to pass
3186 # down to subconfigures. Also strip program-prefix, program-suffix,
3187 # and program-transform-name, so that we can pass down a consistent
3188 # program-transform-name. If autoconf has put single quotes around
3189 # any of these arguments (because they contain shell metacharacters)
3190 # then this will fail; in practice this only happens for
3191 # --program-transform-name, so be sure to override --program-transform-name
3192 # at the end of the argument list.
3193 # These will be expanded by make, so quote '$'.
3194 cat <<\EOF_SED
> conftestsed
3196 s
/ --c[a-z-
]*[= ][^
]*//g
3197 s
/ --sr[a-z-
]*[= ][^
]*//g
3198 s
/ --ho[a-z-
]*[= ][^
]*//g
3199 s
/ --bu[a-z-
]*[= ][^
]*//g
3200 s
/ --t[a-z-
]*[= ][^
]*//g
3201 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3202 s
/ -cache-file[= ][^
]*//g
3203 s
/ -srcdir[= ][^
]*//g
3204 s
/ -host[= ][^
]*//g
3205 s
/ -build[= ][^
]*//g
3206 s
/ -target[= ][^
]*//g
3207 s
/ -program-prefix[= ][^
]*//g
3208 s
/ -program-suffix[= ][^
]*//g
3209 s
/ -program-transform-name[= ][^
]*//g
3214 sed -f conftestsed <<EOF_SED > conftestsed.out
3215 ${ac_configure_args}
3217 baseargs=`cat conftestsed.out`
3218 rm -f conftestsed conftestsed.out
3220 # Add in --program-transform-name, after --program-prefix and
3221 # --program-suffix have been applied to it. Autoconf has already
3222 # doubled dollar signs and backslashes in program_transform_name; we want
3223 # the backslashes un-doubled, and then the entire thing wrapped in single
3224 # quotes, because this will be expanded first by make and then by the shell.
3225 # Also, because we want to override the logic in subdir configure scripts to
3226 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3227 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3228 ${program_transform_name}
3230 gcc_transform_name=`cat conftestsed.out`
3231 rm -f conftestsed.out
3232 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3234 # For the build-side libraries, we just need to pretend we're native
,
3235 # and not use the same cache file. Multilibs are neither needed nor
3237 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3239 # For host modules, accept cache file option, or specification as blank.
3240 case "${cache_file}" in
3242 cache_file_option
="" ;;
3243 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3244 cache_file_option
="--cache-file=${cache_file}" ;;
3246 cache_file_option
="--cache-file=../${cache_file}" ;;
3249 # Host dirs don't like to share a cache file either, horribly enough.
3250 # This seems to be due to autoconf 2.5x stupidity.
3251 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3253 target_configargs
=${baseargs}
3255 # Passing a --with-cross-host argument lets the target libraries know
3256 # whether they are being built with a cross-compiler or being built
3257 # native. However, it would be better to use other mechanisms to make the
3258 # sorts of decisions they want to make on this basis. Please consider
3259 # this option to be deprecated. FIXME.
3260 if test x
${is_cross_compiler} = xyes
; then
3261 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3264 # Default to --enable-multilib.
3265 if test x
${enable_multilib} = x
; then
3266 target_configargs
="--enable-multilib ${target_configargs}"
3269 # Pass --with-newlib if appropriate. Note that target_configdirs has
3270 # changed from the earlier setting of with_newlib.
3271 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3272 target_configargs
="--with-newlib ${target_configargs}"
3275 # Different target subdirs use different values of certain variables
3276 # (notably CXX). Worse, multilibs use *lots* of different values.
3277 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3278 # it doesn't automatically accept command-line overrides of them.
3279 # This means it's not safe for target subdirs to share a cache file,
3280 # which is disgusting, but there you have it. Hopefully this can be
3281 # fixed in future. It's still worthwhile to use a cache file for each
3282 # directory. I think.
3284 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3285 # We need to pass --target, as newer autoconf's requires consistency
3286 # for target_alias and gcc doesn't manage it consistently.
3287 target_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3290 case " $target_configdirs " in
3292 case " $target_configargs " in
3293 *" --with-newlib "*)
3296 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' ;;
3299 # If we're not building GCC, don't discard standard headers.
3300 if test -d ${srcdir}/gcc
; then
3301 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3303 if test "${build}" != "${host}"; then
3304 # On Canadian crosses, CC_FOR_TARGET will have already been set
3305 # by `configure', so we won't have an opportunity to add -Bgcc/
3306 # to it. This is right: we don't want to search that directory
3307 # for binaries, but we want the header files in there, so add
3309 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3311 # Someone might think of using the pre-installed headers on
3312 # Canadian crosses, in case the installed compiler is not fully
3313 # compatible with the compiler being built. In this case, it
3314 # would be better to flag an error than risking having
3315 # incompatible object files being constructed. We can't
3316 # guarantee that an error will be flagged, but let's hope the
3317 # compiler will do it, when presented with incompatible header
3322 case "${target}-${is_cross_compiler}" in
3323 i
[3456789]86-*-linux*-no)
3324 # Here host == target, so we don't need to build gcc,
3325 # so we don't want to discard standard headers.
3326 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3329 # If we're building newlib, use its generic headers last, but search
3330 # for any libc-related directories first (so make it the last -B
3332 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3340 # Allow the user to override the flags for
3341 # our build compiler if desired.
3342 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3344 # On Canadian crosses, we'll be searching the right directories for
3345 # the previously-installed cross compiler, so don't bother to add
3346 # flags for directories within the install tree of the compiler
3347 # being built; programs in there won't even run.
3348 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3349 # Search for pre-installed headers if nothing else fits.
3350 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3353 if test "x
${use_gnu_ld}" = x &&
3354 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3355 # Arrange for us to find uninstalled linker scripts.
3356 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3359 # Makefile fragments.
3360 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3362 eval fragval=\$$frag
3363 if test $fragval != /dev/null; then
3364 eval $frag=${srcdir}/$fragval
3372 # Miscellanea: directories, flags, etc.
3380 # Build module lists & subconfigure args.
3384 # Host module lists & subconfigure args.
3388 # Target module lists & subconfigure args.
3396 # Generate default definitions for YACC, M4, LEX and other programs that run
3397 # on the build machine. These are used if the Makefile can't locate these
3398 # programs in objdir.
3399 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3401 for ac_prog in 'bison -y' byacc yacc
3403 # Extract the first word of "$ac_prog", so it can be a program name with args.
3404 set dummy $ac_prog; ac_word=$2
3405 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3406 echo "configure
:3407: checking
for $ac_word" >&5
3407 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3408 echo $ac_n "(cached
) $ac_c" 1>&6
3410 if test -n "$YACC"; then
3411 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3415 for ac_dir in $ac_dummy; do
3416 test -z "$ac_dir" && ac_dir=.
3417 if test -f $ac_dir/$ac_word; then
3418 ac_cv_prog_YACC="$ac_prog"
3425 YACC="$ac_cv_prog_YACC"
3426 if test -n "$YACC"; then
3427 echo "$ac_t""$YACC" 1>&6
3429 echo "$ac_t""no
" 1>&6
3432 test -n "$YACC" && break
3434 test -n "$YACC" || YACC="$MISSING bison
-y"
3436 case " $build_configdirs " in
3437 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3438 *" byacc
"*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3441 for ac_prog in bison
3443 # Extract the first word of "$ac_prog", so it can be a program name with args.
3444 set dummy $ac_prog; ac_word=$2
3445 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3446 echo "configure
:3447: checking
for $ac_word" >&5
3447 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3448 echo $ac_n "(cached
) $ac_c" 1>&6
3450 if test -n "$BISON"; then
3451 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3455 for ac_dir in $ac_dummy; do
3456 test -z "$ac_dir" && ac_dir=.
3457 if test -f $ac_dir/$ac_word; then
3458 ac_cv_prog_BISON="$ac_prog"
3465 BISON="$ac_cv_prog_BISON"
3466 if test -n "$BISON"; then
3467 echo "$ac_t""$BISON" 1>&6
3469 echo "$ac_t""no
" 1>&6
3472 test -n "$BISON" && break
3474 test -n "$BISON" || BISON="$MISSING bison
"
3476 case " $build_configdirs " in
3477 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3480 for ac_prog in gm4 gnum4 m4
3482 # Extract the first word of "$ac_prog", so it can be a program name with args.
3483 set dummy $ac_prog; ac_word=$2
3484 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3485 echo "configure
:3486: checking
for $ac_word" >&5
3486 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3487 echo $ac_n "(cached
) $ac_c" 1>&6
3489 if test -n "$M4"; then
3490 ac_cv_prog_M4="$M4" # Let the user override the test.
3492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3494 for ac_dir in $ac_dummy; do
3495 test -z "$ac_dir" && ac_dir=.
3496 if test -f $ac_dir/$ac_word; then
3497 ac_cv_prog_M4="$ac_prog"
3505 if test -n "$M4"; then
3506 echo "$ac_t""$M4" 1>&6
3508 echo "$ac_t""no
" 1>&6
3511 test -n "$M4" && break
3513 test -n "$M4" || M4="$MISSING m4"
3515 case " $build_configdirs " in
3516 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3519 for ac_prog in flex lex
3521 # Extract the first word of "$ac_prog", so it can be a program name with args.
3522 set dummy $ac_prog; ac_word=$2
3523 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3524 echo "configure
:3525: checking
for $ac_word" >&5
3525 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3526 echo $ac_n "(cached
) $ac_c" 1>&6
3528 if test -n "$LEX"; then
3529 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3533 for ac_dir in $ac_dummy; do
3534 test -z "$ac_dir" && ac_dir=.
3535 if test -f $ac_dir/$ac_word; then
3536 ac_cv_prog_LEX="$ac_prog"
3543 LEX="$ac_cv_prog_LEX"
3544 if test -n "$LEX"; then
3545 echo "$ac_t""$LEX" 1>&6
3547 echo "$ac_t""no
" 1>&6
3550 test -n "$LEX" && break
3552 test -n "$LEX" || LEX="$MISSING flex
"
3554 case " $build_configdirs " in
3555 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3556 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3561 # Extract the first word of "$ac_prog", so it can be a program name with args.
3562 set dummy $ac_prog; ac_word=$2
3563 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3564 echo "configure
:3565: checking
for $ac_word" >&5
3565 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3566 echo $ac_n "(cached
) $ac_c" 1>&6
3568 if test -n "$FLEX"; then
3569 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3573 for ac_dir in $ac_dummy; do
3574 test -z "$ac_dir" && ac_dir=.
3575 if test -f $ac_dir/$ac_word; then
3576 ac_cv_prog_FLEX="$ac_prog"
3583 FLEX="$ac_cv_prog_FLEX"
3584 if test -n "$FLEX"; then
3585 echo "$ac_t""$FLEX" 1>&6
3587 echo "$ac_t""no
" 1>&6
3590 test -n "$FLEX" && break
3592 test -n "$FLEX" || FLEX="$MISSING flex
"
3594 case " $build_configdirs " in
3595 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3598 for ac_prog in makeinfo
3600 # Extract the first word of "$ac_prog", so it can be a program name with args.
3601 set dummy $ac_prog; ac_word=$2
3602 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3603 echo "configure
:3604: checking
for $ac_word" >&5
3604 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3605 echo $ac_n "(cached
) $ac_c" 1>&6
3607 if test -n "$MAKEINFO"; then
3608 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3612 for ac_dir in $ac_dummy; do
3613 test -z "$ac_dir" && ac_dir=.
3614 if test -f $ac_dir/$ac_word; then
3615 ac_cv_prog_MAKEINFO="$ac_prog"
3622 MAKEINFO="$ac_cv_prog_MAKEINFO"
3623 if test -n "$MAKEINFO"; then
3624 echo "$ac_t""$MAKEINFO" 1>&6
3626 echo "$ac_t""no
" 1>&6
3629 test -n "$MAKEINFO" && break
3631 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
3633 case " $build_configdirs " in
3634 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3637 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3638 # higher, else we use the "missing
" dummy.
3639 if ${MAKEINFO} --version \
3640 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3643 MAKEINFO="$MISSING makeinfo
"
3649 # FIXME: expect and dejagnu may become build tools?
3651 for ac_prog in expect
3653 # Extract the first word of "$ac_prog", so it can be a program name with args.
3654 set dummy $ac_prog; ac_word=$2
3655 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3656 echo "configure
:3657: checking
for $ac_word" >&5
3657 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3658 echo $ac_n "(cached
) $ac_c" 1>&6
3660 if test -n "$EXPECT"; then
3661 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3665 for ac_dir in $ac_dummy; do
3666 test -z "$ac_dir" && ac_dir=.
3667 if test -f $ac_dir/$ac_word; then
3668 ac_cv_prog_EXPECT="$ac_prog"
3675 EXPECT="$ac_cv_prog_EXPECT"
3676 if test -n "$EXPECT"; then
3677 echo "$ac_t""$EXPECT" 1>&6
3679 echo "$ac_t""no
" 1>&6
3682 test -n "$EXPECT" && break
3684 test -n "$EXPECT" || EXPECT="expect
"
3686 case " $configdirs " in
3688 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3692 for ac_prog in runtest
3694 # Extract the first word of "$ac_prog", so it can be a program name with args.
3695 set dummy $ac_prog; ac_word=$2
3696 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3697 echo "configure
:3698: checking
for $ac_word" >&5
3698 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3699 echo $ac_n "(cached
) $ac_c" 1>&6
3701 if test -n "$RUNTEST"; then
3702 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3706 for ac_dir in $ac_dummy; do
3707 test -z "$ac_dir" && ac_dir=.
3708 if test -f $ac_dir/$ac_word; then
3709 ac_cv_prog_RUNTEST="$ac_prog"
3716 RUNTEST="$ac_cv_prog_RUNTEST"
3717 if test -n "$RUNTEST"; then
3718 echo "$ac_t""$RUNTEST" 1>&6
3720 echo "$ac_t""no
" 1>&6
3723 test -n "$RUNTEST" && break
3725 test -n "$RUNTEST" || RUNTEST="runtest
"
3727 case " $configdirs " in
3729 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3736 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3737 ncn_target_tool_prefix=
3738 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3740 for ncn_progname in ar; do
3741 if test -n "$ncn_tool_prefix"; then
3742 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3743 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3744 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3745 echo "configure
:3746: checking
for $ac_word" >&5
3746 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3747 echo $ac_n "(cached
) $ac_c" 1>&6
3749 if test -n "$AR"; then
3750 ac_cv_prog_AR="$AR" # Let the user override the test.
3752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3754 for ac_dir in $ac_dummy; do
3755 test -z "$ac_dir" && ac_dir=.
3756 if test -f $ac_dir/$ac_word; then
3757 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3765 if test -n "$AR"; then
3766 echo "$ac_t""$AR" 1>&6
3768 echo "$ac_t""no
" 1>&6
3772 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3774 set dummy ${ncn_progname}; ac_word=$2
3775 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3776 echo "configure
:3777: checking
for $ac_word" >&5
3777 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3778 echo $ac_n "(cached
) $ac_c" 1>&6
3780 if test -n "$AR"; then
3781 ac_cv_prog_AR="$AR" # Let the user override the test.
3783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3785 for ac_dir in $ac_dummy; do
3786 test -z "$ac_dir" && ac_dir=.
3787 if test -f $ac_dir/$ac_word; then
3788 ac_cv_prog_AR="${ncn_progname}"
3796 if test -n "$AR"; then
3797 echo "$ac_t""$AR" 1>&6
3799 echo "$ac_t""no
" 1>&6
3803 test -n "$ac_cv_prog_AR" && break
3806 if test -z "$ac_cv_prog_AR" ; then
3808 if test $build = $host ; then
3811 AR="${ncn_tool_prefix}$2"
3815 for ncn_progname in as; do
3816 if test -n "$ncn_tool_prefix"; then
3817 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3818 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3819 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3820 echo "configure
:3821: checking
for $ac_word" >&5
3821 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3822 echo $ac_n "(cached
) $ac_c" 1>&6
3824 if test -n "$AS"; then
3825 ac_cv_prog_AS="$AS" # Let the user override the test.
3827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3829 for ac_dir in $ac_dummy; do
3830 test -z "$ac_dir" && ac_dir=.
3831 if test -f $ac_dir/$ac_word; then
3832 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3840 if test -n "$AS"; then
3841 echo "$ac_t""$AS" 1>&6
3843 echo "$ac_t""no
" 1>&6
3847 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3849 set dummy ${ncn_progname}; ac_word=$2
3850 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3851 echo "configure
:3852: checking
for $ac_word" >&5
3852 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3853 echo $ac_n "(cached
) $ac_c" 1>&6
3855 if test -n "$AS"; then
3856 ac_cv_prog_AS="$AS" # Let the user override the test.
3858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3860 for ac_dir in $ac_dummy; do
3861 test -z "$ac_dir" && ac_dir=.
3862 if test -f $ac_dir/$ac_word; then
3863 ac_cv_prog_AS="${ncn_progname}"
3871 if test -n "$AS"; then
3872 echo "$ac_t""$AS" 1>&6
3874 echo "$ac_t""no
" 1>&6
3878 test -n "$ac_cv_prog_AS" && break
3881 if test -z "$ac_cv_prog_AS" ; then
3883 if test $build = $host ; then
3886 AS="${ncn_tool_prefix}$2"
3890 for ncn_progname in dlltool; do
3891 if test -n "$ncn_tool_prefix"; then
3892 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3893 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3894 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3895 echo "configure
:3896: checking
for $ac_word" >&5
3896 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3897 echo $ac_n "(cached
) $ac_c" 1>&6
3899 if test -n "$DLLTOOL"; then
3900 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3904 for ac_dir in $ac_dummy; do
3905 test -z "$ac_dir" && ac_dir=.
3906 if test -f $ac_dir/$ac_word; then
3907 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3914 DLLTOOL="$ac_cv_prog_DLLTOOL"
3915 if test -n "$DLLTOOL"; then
3916 echo "$ac_t""$DLLTOOL" 1>&6
3918 echo "$ac_t""no
" 1>&6
3922 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3924 set dummy ${ncn_progname}; ac_word=$2
3925 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3926 echo "configure
:3927: checking
for $ac_word" >&5
3927 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3928 echo $ac_n "(cached
) $ac_c" 1>&6
3930 if test -n "$DLLTOOL"; then
3931 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3935 for ac_dir in $ac_dummy; do
3936 test -z "$ac_dir" && ac_dir=.
3937 if test -f $ac_dir/$ac_word; then
3938 ac_cv_prog_DLLTOOL="${ncn_progname}"
3945 DLLTOOL="$ac_cv_prog_DLLTOOL"
3946 if test -n "$DLLTOOL"; then
3947 echo "$ac_t""$DLLTOOL" 1>&6
3949 echo "$ac_t""no
" 1>&6
3953 test -n "$ac_cv_prog_DLLTOOL" && break
3956 if test -z "$ac_cv_prog_DLLTOOL" ; then
3958 if test $build = $host ; then
3961 DLLTOOL="${ncn_tool_prefix}$2"
3965 for ncn_progname in ld; do
3966 if test -n "$ncn_tool_prefix"; then
3967 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3968 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3969 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3970 echo "configure
:3971: checking
for $ac_word" >&5
3971 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3972 echo $ac_n "(cached
) $ac_c" 1>&6
3974 if test -n "$LD"; then
3975 ac_cv_prog_LD="$LD" # Let the user override the test.
3977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3979 for ac_dir in $ac_dummy; do
3980 test -z "$ac_dir" && ac_dir=.
3981 if test -f $ac_dir/$ac_word; then
3982 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3990 if test -n "$LD"; then
3991 echo "$ac_t""$LD" 1>&6
3993 echo "$ac_t""no
" 1>&6
3997 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
3998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3999 set dummy ${ncn_progname}; ac_word=$2
4000 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4001 echo "configure
:4002: checking
for $ac_word" >&5
4002 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4003 echo $ac_n "(cached
) $ac_c" 1>&6
4005 if test -n "$LD"; then
4006 ac_cv_prog_LD="$LD" # Let the user override the test.
4008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4010 for ac_dir in $ac_dummy; do
4011 test -z "$ac_dir" && ac_dir=.
4012 if test -f $ac_dir/$ac_word; then
4013 ac_cv_prog_LD="${ncn_progname}"
4021 if test -n "$LD"; then
4022 echo "$ac_t""$LD" 1>&6
4024 echo "$ac_t""no
" 1>&6
4028 test -n "$ac_cv_prog_LD" && break
4031 if test -z "$ac_cv_prog_LD" ; then
4033 if test $build = $host ; then
4036 LD="${ncn_tool_prefix}$2"
4040 for ncn_progname in lipo; do
4041 if test -n "$ncn_tool_prefix"; then
4042 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4043 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4044 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4045 echo "configure
:4046: checking
for $ac_word" >&5
4046 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4047 echo $ac_n "(cached
) $ac_c" 1>&6
4049 if test -n "$LIPO"; then
4050 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4054 for ac_dir in $ac_dummy; do
4055 test -z "$ac_dir" && ac_dir=.
4056 if test -f $ac_dir/$ac_word; then
4057 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4064 LIPO="$ac_cv_prog_LIPO"
4065 if test -n "$LIPO"; then
4066 echo "$ac_t""$LIPO" 1>&6
4068 echo "$ac_t""no
" 1>&6
4072 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4074 set dummy ${ncn_progname}; ac_word=$2
4075 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4076 echo "configure
:4077: checking
for $ac_word" >&5
4077 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4078 echo $ac_n "(cached
) $ac_c" 1>&6
4080 if test -n "$LIPO"; then
4081 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4085 for ac_dir in $ac_dummy; do
4086 test -z "$ac_dir" && ac_dir=.
4087 if test -f $ac_dir/$ac_word; then
4088 ac_cv_prog_LIPO="${ncn_progname}"
4095 LIPO="$ac_cv_prog_LIPO"
4096 if test -n "$LIPO"; then
4097 echo "$ac_t""$LIPO" 1>&6
4099 echo "$ac_t""no
" 1>&6
4103 test -n "$ac_cv_prog_LIPO" && break
4106 if test -z "$ac_cv_prog_LIPO" ; then
4108 if test $build = $host ; then
4111 LIPO="${ncn_tool_prefix}$2"
4115 for ncn_progname in nm; do
4116 if test -n "$ncn_tool_prefix"; then
4117 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4118 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4119 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4120 echo "configure
:4121: checking
for $ac_word" >&5
4121 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4122 echo $ac_n "(cached
) $ac_c" 1>&6
4124 if test -n "$NM"; then
4125 ac_cv_prog_NM="$NM" # Let the user override the test.
4127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4129 for ac_dir in $ac_dummy; do
4130 test -z "$ac_dir" && ac_dir=.
4131 if test -f $ac_dir/$ac_word; then
4132 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4140 if test -n "$NM"; then
4141 echo "$ac_t""$NM" 1>&6
4143 echo "$ac_t""no
" 1>&6
4147 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4149 set dummy ${ncn_progname}; ac_word=$2
4150 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4151 echo "configure
:4152: checking
for $ac_word" >&5
4152 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4153 echo $ac_n "(cached
) $ac_c" 1>&6
4155 if test -n "$NM"; then
4156 ac_cv_prog_NM="$NM" # Let the user override the test.
4158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4160 for ac_dir in $ac_dummy; do
4161 test -z "$ac_dir" && ac_dir=.
4162 if test -f $ac_dir/$ac_word; then
4163 ac_cv_prog_NM="${ncn_progname}"
4171 if test -n "$NM"; then
4172 echo "$ac_t""$NM" 1>&6
4174 echo "$ac_t""no
" 1>&6
4178 test -n "$ac_cv_prog_NM" && break
4181 if test -z "$ac_cv_prog_NM" ; then
4183 if test $build = $host ; then
4186 NM="${ncn_tool_prefix}$2"
4190 for ncn_progname in ranlib; do
4191 if test -n "$ncn_tool_prefix"; then
4192 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4193 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4194 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4195 echo "configure
:4196: checking
for $ac_word" >&5
4196 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4197 echo $ac_n "(cached
) $ac_c" 1>&6
4199 if test -n "$RANLIB"; then
4200 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4204 for ac_dir in $ac_dummy; do
4205 test -z "$ac_dir" && ac_dir=.
4206 if test -f $ac_dir/$ac_word; then
4207 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4214 RANLIB="$ac_cv_prog_RANLIB"
4215 if test -n "$RANLIB"; then
4216 echo "$ac_t""$RANLIB" 1>&6
4218 echo "$ac_t""no
" 1>&6
4222 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4224 set dummy ${ncn_progname}; ac_word=$2
4225 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4226 echo "configure
:4227: checking
for $ac_word" >&5
4227 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4228 echo $ac_n "(cached
) $ac_c" 1>&6
4230 if test -n "$RANLIB"; then
4231 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4235 for ac_dir in $ac_dummy; do
4236 test -z "$ac_dir" && ac_dir=.
4237 if test -f $ac_dir/$ac_word; then
4238 ac_cv_prog_RANLIB="${ncn_progname}"
4245 RANLIB="$ac_cv_prog_RANLIB"
4246 if test -n "$RANLIB"; then
4247 echo "$ac_t""$RANLIB" 1>&6
4249 echo "$ac_t""no
" 1>&6
4253 test -n "$ac_cv_prog_RANLIB" && break
4256 if test -z "$ac_cv_prog_RANLIB" ; then
4260 for ncn_progname in strip; do
4261 if test -n "$ncn_tool_prefix"; then
4262 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4263 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4264 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4265 echo "configure
:4266: checking
for $ac_word" >&5
4266 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4267 echo $ac_n "(cached
) $ac_c" 1>&6
4269 if test -n "$STRIP"; then
4270 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4274 for ac_dir in $ac_dummy; do
4275 test -z "$ac_dir" && ac_dir=.
4276 if test -f $ac_dir/$ac_word; then
4277 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4284 STRIP="$ac_cv_prog_STRIP"
4285 if test -n "$STRIP"; then
4286 echo "$ac_t""$STRIP" 1>&6
4288 echo "$ac_t""no
" 1>&6
4292 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4294 set dummy ${ncn_progname}; ac_word=$2
4295 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4296 echo "configure
:4297: checking
for $ac_word" >&5
4297 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4298 echo $ac_n "(cached
) $ac_c" 1>&6
4300 if test -n "$STRIP"; then
4301 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4305 for ac_dir in $ac_dummy; do
4306 test -z "$ac_dir" && ac_dir=.
4307 if test -f $ac_dir/$ac_word; then
4308 ac_cv_prog_STRIP="${ncn_progname}"
4315 STRIP="$ac_cv_prog_STRIP"
4316 if test -n "$STRIP"; then
4317 echo "$ac_t""$STRIP" 1>&6
4319 echo "$ac_t""no
" 1>&6
4323 test -n "$ac_cv_prog_STRIP" && break
4326 if test -z "$ac_cv_prog_STRIP" ; then
4330 for ncn_progname in windres; do
4331 if test -n "$ncn_tool_prefix"; then
4332 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4333 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4334 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4335 echo "configure
:4336: checking
for $ac_word" >&5
4336 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4337 echo $ac_n "(cached
) $ac_c" 1>&6
4339 if test -n "$WINDRES"; then
4340 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4344 for ac_dir in $ac_dummy; do
4345 test -z "$ac_dir" && ac_dir=.
4346 if test -f $ac_dir/$ac_word; then
4347 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4354 WINDRES="$ac_cv_prog_WINDRES"
4355 if test -n "$WINDRES"; then
4356 echo "$ac_t""$WINDRES" 1>&6
4358 echo "$ac_t""no
" 1>&6
4362 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4364 set dummy ${ncn_progname}; ac_word=$2
4365 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4366 echo "configure
:4367: checking
for $ac_word" >&5
4367 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4368 echo $ac_n "(cached
) $ac_c" 1>&6
4370 if test -n "$WINDRES"; then
4371 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4375 for ac_dir in $ac_dummy; do
4376 test -z "$ac_dir" && ac_dir=.
4377 if test -f $ac_dir/$ac_word; then
4378 ac_cv_prog_WINDRES="${ncn_progname}"
4385 WINDRES="$ac_cv_prog_WINDRES"
4386 if test -n "$WINDRES"; then
4387 echo "$ac_t""$WINDRES" 1>&6
4389 echo "$ac_t""no
" 1>&6
4393 test -n "$ac_cv_prog_WINDRES" && break
4396 if test -z "$ac_cv_prog_WINDRES" ; then
4398 if test $build = $host ; then
4401 WINDRES="${ncn_tool_prefix}$2"
4405 for ncn_progname in objcopy; do
4406 if test -n "$ncn_tool_prefix"; then
4407 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4408 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4409 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4410 echo "configure
:4411: checking
for $ac_word" >&5
4411 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4412 echo $ac_n "(cached
) $ac_c" 1>&6
4414 if test -n "$OBJCOPY"; then
4415 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4419 for ac_dir in $ac_dummy; do
4420 test -z "$ac_dir" && ac_dir=.
4421 if test -f $ac_dir/$ac_word; then
4422 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4429 OBJCOPY="$ac_cv_prog_OBJCOPY"
4430 if test -n "$OBJCOPY"; then
4431 echo "$ac_t""$OBJCOPY" 1>&6
4433 echo "$ac_t""no
" 1>&6
4437 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4439 set dummy ${ncn_progname}; ac_word=$2
4440 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4441 echo "configure
:4442: checking
for $ac_word" >&5
4442 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4443 echo $ac_n "(cached
) $ac_c" 1>&6
4445 if test -n "$OBJCOPY"; then
4446 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4450 for ac_dir in $ac_dummy; do
4451 test -z "$ac_dir" && ac_dir=.
4452 if test -f $ac_dir/$ac_word; then
4453 ac_cv_prog_OBJCOPY="${ncn_progname}"
4460 OBJCOPY="$ac_cv_prog_OBJCOPY"
4461 if test -n "$OBJCOPY"; then
4462 echo "$ac_t""$OBJCOPY" 1>&6
4464 echo "$ac_t""no
" 1>&6
4468 test -n "$ac_cv_prog_OBJCOPY" && break
4471 if test -z "$ac_cv_prog_OBJCOPY" ; then
4473 if test $build = $host ; then
4476 OBJCOPY="${ncn_tool_prefix}$2"
4480 for ncn_progname in objdump; do
4481 if test -n "$ncn_tool_prefix"; then
4482 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4483 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4484 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4485 echo "configure
:4486: checking
for $ac_word" >&5
4486 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4487 echo $ac_n "(cached
) $ac_c" 1>&6
4489 if test -n "$OBJDUMP"; then
4490 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4494 for ac_dir in $ac_dummy; do
4495 test -z "$ac_dir" && ac_dir=.
4496 if test -f $ac_dir/$ac_word; then
4497 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4504 OBJDUMP="$ac_cv_prog_OBJDUMP"
4505 if test -n "$OBJDUMP"; then
4506 echo "$ac_t""$OBJDUMP" 1>&6
4508 echo "$ac_t""no
" 1>&6
4512 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4514 set dummy ${ncn_progname}; ac_word=$2
4515 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4516 echo "configure
:4517: checking
for $ac_word" >&5
4517 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4518 echo $ac_n "(cached
) $ac_c" 1>&6
4520 if test -n "$OBJDUMP"; then
4521 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4525 for ac_dir in $ac_dummy; do
4526 test -z "$ac_dir" && ac_dir=.
4527 if test -f $ac_dir/$ac_word; then
4528 ac_cv_prog_OBJDUMP="${ncn_progname}"
4535 OBJDUMP="$ac_cv_prog_OBJDUMP"
4536 if test -n "$OBJDUMP"; then
4537 echo "$ac_t""$OBJDUMP" 1>&6
4539 echo "$ac_t""no
" 1>&6
4543 test -n "$ac_cv_prog_OBJDUMP" && break
4546 if test -z "$ac_cv_prog_OBJDUMP" ; then
4548 if test $build = $host ; then
4551 OBJDUMP="${ncn_tool_prefix}$2"
4562 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4563 if test "${with_build_time_tools+set}" = set; then
4564 withval="$with_build_time_tools"
4568 with_build_time_tools=
4569 echo "configure
: warning
: argument to
--with-build-time-tools must be an absolute path
" 1>&2
4573 with_build_time_tools=
4577 if test -n "$with_build_time_tools"; then
4578 for ncn_progname in cc gcc; do
4579 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4580 echo "configure
:4581: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4581 if test -x $with_build_time_tools/${ncn_progname}; then
4582 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4583 echo "$ac_t""yes" 1>&6
4586 echo "$ac_t""no
" 1>&6
4591 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4592 for ncn_progname in cc gcc; do
4593 if test -n "$ncn_target_tool_prefix"; then
4594 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4595 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4596 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4597 echo "configure
:4598: checking
for $ac_word" >&5
4598 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4599 echo $ac_n "(cached
) $ac_c" 1>&6
4601 if test -n "$CC_FOR_TARGET"; then
4602 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4606 for ac_dir in $ac_dummy; do
4607 test -z "$ac_dir" && ac_dir=.
4608 if test -f $ac_dir/$ac_word; then
4609 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4616 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4617 if test -n "$CC_FOR_TARGET"; then
4618 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4620 echo "$ac_t""no
" 1>&6
4624 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4626 set dummy ${ncn_progname}; ac_word=$2
4627 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4628 echo "configure
:4629: checking
for $ac_word" >&5
4629 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4630 echo $ac_n "(cached
) $ac_c" 1>&6
4632 if test -n "$CC_FOR_TARGET"; then
4633 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4637 for ac_dir in $ac_dummy; do
4638 test -z "$ac_dir" && ac_dir=.
4639 if test -f $ac_dir/$ac_word; then
4640 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4647 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4648 if test -n "$CC_FOR_TARGET"; then
4649 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4651 echo "$ac_t""no
" 1>&6
4655 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4659 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4661 if test $build = $target ; then
4664 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4668 if test -n "$with_build_time_tools"; then
4669 for ncn_progname in c++ g++ cxx gxx; do
4670 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4671 echo "configure
:4672: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4672 if test -x $with_build_time_tools/${ncn_progname}; then
4673 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4674 echo "$ac_t""yes" 1>&6
4677 echo "$ac_t""no
" 1>&6
4682 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4683 for ncn_progname in c++ g++ cxx gxx; do
4684 if test -n "$ncn_target_tool_prefix"; then
4685 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4686 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4687 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4688 echo "configure
:4689: checking
for $ac_word" >&5
4689 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4690 echo $ac_n "(cached
) $ac_c" 1>&6
4692 if test -n "$CXX_FOR_TARGET"; then
4693 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4697 for ac_dir in $ac_dummy; do
4698 test -z "$ac_dir" && ac_dir=.
4699 if test -f $ac_dir/$ac_word; then
4700 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4707 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4708 if test -n "$CXX_FOR_TARGET"; then
4709 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4711 echo "$ac_t""no
" 1>&6
4715 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4717 set dummy ${ncn_progname}; ac_word=$2
4718 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4719 echo "configure
:4720: checking
for $ac_word" >&5
4720 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4721 echo $ac_n "(cached
) $ac_c" 1>&6
4723 if test -n "$CXX_FOR_TARGET"; then
4724 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4728 for ac_dir in $ac_dummy; do
4729 test -z "$ac_dir" && ac_dir=.
4730 if test -f $ac_dir/$ac_word; then
4731 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4738 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4739 if test -n "$CXX_FOR_TARGET"; then
4740 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4742 echo "$ac_t""no
" 1>&6
4746 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4750 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4751 set dummy c++ g++ cxx gxx
4752 if test $build = $target ; then
4755 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4759 if test -n "$with_build_time_tools"; then
4760 for ncn_progname in gcc; do
4761 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4762 echo "configure
:4763: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4763 if test -x $with_build_time_tools/${ncn_progname}; then
4764 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4765 echo "$ac_t""yes" 1>&6
4768 echo "$ac_t""no
" 1>&6
4773 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4774 for ncn_progname in gcc; do
4775 if test -n "$ncn_target_tool_prefix"; then
4776 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4777 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4778 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4779 echo "configure
:4780: checking
for $ac_word" >&5
4780 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4781 echo $ac_n "(cached
) $ac_c" 1>&6
4783 if test -n "$GCC_FOR_TARGET"; then
4784 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4788 for ac_dir in $ac_dummy; do
4789 test -z "$ac_dir" && ac_dir=.
4790 if test -f $ac_dir/$ac_word; then
4791 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4798 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4799 if test -n "$GCC_FOR_TARGET"; then
4800 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4802 echo "$ac_t""no
" 1>&6
4806 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4808 set dummy ${ncn_progname}; ac_word=$2
4809 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4810 echo "configure
:4811: checking
for $ac_word" >&5
4811 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4812 echo $ac_n "(cached
) $ac_c" 1>&6
4814 if test -n "$GCC_FOR_TARGET"; then
4815 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4819 for ac_dir in $ac_dummy; do
4820 test -z "$ac_dir" && ac_dir=.
4821 if test -f $ac_dir/$ac_word; then
4822 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4829 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4830 if test -n "$GCC_FOR_TARGET"; then
4831 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4833 echo "$ac_t""no
" 1>&6
4837 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4841 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4842 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4845 if test -n "$with_build_time_tools"; then
4846 for ncn_progname in gcj; do
4847 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4848 echo "configure
:4849: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4849 if test -x $with_build_time_tools/${ncn_progname}; then
4850 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4851 echo "$ac_t""yes" 1>&6
4854 echo "$ac_t""no
" 1>&6
4859 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4860 for ncn_progname in gcj; do
4861 if test -n "$ncn_target_tool_prefix"; then
4862 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4863 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4864 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4865 echo "configure
:4866: checking
for $ac_word" >&5
4866 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4867 echo $ac_n "(cached
) $ac_c" 1>&6
4869 if test -n "$GCJ_FOR_TARGET"; then
4870 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4874 for ac_dir in $ac_dummy; do
4875 test -z "$ac_dir" && ac_dir=.
4876 if test -f $ac_dir/$ac_word; then
4877 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4884 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4885 if test -n "$GCJ_FOR_TARGET"; then
4886 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4888 echo "$ac_t""no
" 1>&6
4892 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4894 set dummy ${ncn_progname}; ac_word=$2
4895 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4896 echo "configure
:4897: checking
for $ac_word" >&5
4897 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4898 echo $ac_n "(cached
) $ac_c" 1>&6
4900 if test -n "$GCJ_FOR_TARGET"; then
4901 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4905 for ac_dir in $ac_dummy; do
4906 test -z "$ac_dir" && ac_dir=.
4907 if test -f $ac_dir/$ac_word; then
4908 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4915 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4916 if test -n "$GCJ_FOR_TARGET"; then
4917 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4919 echo "$ac_t""no
" 1>&6
4923 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4927 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4929 if test $build = $target ; then
4932 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4936 if test -n "$with_build_time_tools"; then
4937 for ncn_progname in gfortran; do
4938 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4939 echo "configure
:4940: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4940 if test -x $with_build_time_tools/${ncn_progname}; then
4941 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4942 echo "$ac_t""yes" 1>&6
4945 echo "$ac_t""no
" 1>&6
4950 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
4951 for ncn_progname in gfortran; do
4952 if test -n "$ncn_target_tool_prefix"; then
4953 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4954 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4955 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4956 echo "configure
:4957: checking
for $ac_word" >&5
4957 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4958 echo $ac_n "(cached
) $ac_c" 1>&6
4960 if test -n "$GFORTRAN_FOR_TARGET"; then
4961 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4965 for ac_dir in $ac_dummy; do
4966 test -z "$ac_dir" && ac_dir=.
4967 if test -f $ac_dir/$ac_word; then
4968 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4975 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4976 if test -n "$GFORTRAN_FOR_TARGET"; then
4977 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4979 echo "$ac_t""no
" 1>&6
4983 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4985 set dummy ${ncn_progname}; ac_word=$2
4986 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4987 echo "configure
:4988: checking
for $ac_word" >&5
4988 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4989 echo $ac_n "(cached
) $ac_c" 1>&6
4991 if test -n "$GFORTRAN_FOR_TARGET"; then
4992 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4996 for ac_dir in $ac_dummy; do
4997 test -z "$ac_dir" && ac_dir=.
4998 if test -f $ac_dir/$ac_word; then
4999 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5006 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5007 if test -n "$GFORTRAN_FOR_TARGET"; then
5008 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5010 echo "$ac_t""no
" 1>&6
5014 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5018 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5020 if test $build = $target ; then
5021 GFORTRAN_FOR_TARGET="$2"
5023 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5029 # The user is always right.
5030 if test "${PATH_SEPARATOR+set}" != set; then
5031 echo "#! /bin/sh" >conf$$.sh
5032 echo "exit 0" >>conf$$.sh
5034 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5044 if test "x$exec_prefix" = xNONE
; then
5045 if test "x$prefix" = xNONE
; then
5046 gcc_cv_tool_prefix
=$ac_default_prefix
5048 gcc_cv_tool_prefix
=$prefix
5051 gcc_cv_tool_prefix
=$exec_prefix
5054 # If there is no compiler in the tree, use the PATH only. In any
5055 # case, if there is no compiler in the tree nobody should use
5056 # AS_FOR_TARGET and LD_FOR_TARGET.
5057 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
5058 gcc_version
=`cat $srcdir/gcc/BASE-VER`
5059 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5060 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5061 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5062 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5063 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5064 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5069 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
5070 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5075 cat > conftest.c
<< \EOF
5080 if ($GCC_FOR_TARGET -E conftest.c |
grep gcc_yay
) > /dev
/null
2>&1; then
5081 have_gcc_for_target
=yes
5083 GCC_FOR_TARGET
=${ncn_target_tool_prefix}gcc
5084 have_gcc_for_target
=no
5091 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5092 if test -n "$with_build_time_tools"; then
5093 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5094 echo "configure:5095: checking for ar in $with_build_time_tools" >&5
5095 if test -x $with_build_time_tools/ar; then
5096 AR_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ar
5097 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5098 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5100 echo "$ac_t""no" 1>&6
5102 elif test $build != $host && test $have_gcc_for_target = yes; then
5103 AR_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ar`
5104 test $AR_FOR_TARGET=ar && AR_FOR_TARGET
=
5105 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5108 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5109 # Extract the first word of "ar", so it can be a program name with args.
5110 set dummy
ar; ac_word
=$2
5111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5112 echo "configure:5113: checking for $ac_word" >&5
5113 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5114 echo $ac_n "(cached) $ac_c" 1>&6
5116 case "$AR_FOR_TARGET" in
5118 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a path.
5121 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5124 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5125 ac_dummy
="$gcc_cv_tool_dirs"
5126 for ac_dir
in $ac_dummy; do
5127 test -z "$ac_dir" && ac_dir
=.
5128 if test -f $ac_dir/$ac_word; then
5129 ac_cv_path_AR_FOR_TARGET
="$ac_dir/$ac_word"
5137 AR_FOR_TARGET
="$ac_cv_path_AR_FOR_TARGET"
5138 if test -n "$AR_FOR_TARGET"; then
5139 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5141 echo "$ac_t""no" 1>&6
5145 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5146 if test -n "$with_build_time_tools"; then
5147 for ncn_progname
in ar; do
5148 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5149 echo "configure:5150: checking for ${ncn_progname} in $with_build_time_tools" >&5
5150 if test -x $with_build_time_tools/${ncn_progname}; then
5151 ac_cv_prog_AR_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5152 echo "$ac_t""yes" 1>&6
5155 echo "$ac_t""no" 1>&6
5160 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5161 for ncn_progname
in ar; do
5162 if test -n "$ncn_target_tool_prefix"; then
5163 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5164 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5166 echo "configure:5167: checking for $ac_word" >&5
5167 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5168 echo $ac_n "(cached) $ac_c" 1>&6
5170 if test -n "$AR_FOR_TARGET"; then
5171 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5173 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5175 for ac_dir
in $ac_dummy; do
5176 test -z "$ac_dir" && ac_dir
=.
5177 if test -f $ac_dir/$ac_word; then
5178 ac_cv_prog_AR_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5185 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5186 if test -n "$AR_FOR_TARGET"; then
5187 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5189 echo "$ac_t""no" 1>&6
5193 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5195 set dummy
${ncn_progname}; ac_word
=$2
5196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5197 echo "configure:5198: checking for $ac_word" >&5
5198 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5199 echo $ac_n "(cached) $ac_c" 1>&6
5201 if test -n "$AR_FOR_TARGET"; then
5202 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5204 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5206 for ac_dir
in $ac_dummy; do
5207 test -z "$ac_dir" && ac_dir
=.
5208 if test -f $ac_dir/$ac_word; then
5209 ac_cv_prog_AR_FOR_TARGET
="${ncn_progname}"
5216 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5217 if test -n "$AR_FOR_TARGET"; then
5218 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5220 echo "$ac_t""no" 1>&6
5224 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5228 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5230 if test $build = $target ; then
5233 AR_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5238 AR_FOR_TARGET
=$ac_cv_path_AR_FOR_TARGET
5244 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5245 if test -n "$with_build_time_tools"; then
5246 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5247 echo "configure:5248: checking for as in $with_build_time_tools" >&5
5248 if test -x $with_build_time_tools/as
; then
5249 AS_FOR_TARGET
=`cd $with_build_time_tools && pwd`/as
5250 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5251 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5253 echo "$ac_t""no" 1>&6
5255 elif test $build != $host && test $have_gcc_for_target = yes; then
5256 AS_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=as`
5257 test $AS_FOR_TARGET=as
&& AS_FOR_TARGET
=
5258 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5261 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5262 # Extract the first word of "as", so it can be a program name with args.
5263 set dummy as
; ac_word
=$2
5264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5265 echo "configure:5266: checking for $ac_word" >&5
5266 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5269 case "$AS_FOR_TARGET" in
5271 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a path.
5274 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5277 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5278 ac_dummy
="$gcc_cv_tool_dirs"
5279 for ac_dir
in $ac_dummy; do
5280 test -z "$ac_dir" && ac_dir
=.
5281 if test -f $ac_dir/$ac_word; then
5282 ac_cv_path_AS_FOR_TARGET
="$ac_dir/$ac_word"
5290 AS_FOR_TARGET
="$ac_cv_path_AS_FOR_TARGET"
5291 if test -n "$AS_FOR_TARGET"; then
5292 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5294 echo "$ac_t""no" 1>&6
5298 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5299 if test -n "$with_build_time_tools"; then
5300 for ncn_progname
in as
; do
5301 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5302 echo "configure:5303: checking for ${ncn_progname} in $with_build_time_tools" >&5
5303 if test -x $with_build_time_tools/${ncn_progname}; then
5304 ac_cv_prog_AS_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5305 echo "$ac_t""yes" 1>&6
5308 echo "$ac_t""no" 1>&6
5313 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5314 for ncn_progname
in as
; do
5315 if test -n "$ncn_target_tool_prefix"; then
5316 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5317 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5319 echo "configure:5320: checking for $ac_word" >&5
5320 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5323 if test -n "$AS_FOR_TARGET"; then
5324 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5326 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5328 for ac_dir
in $ac_dummy; do
5329 test -z "$ac_dir" && ac_dir
=.
5330 if test -f $ac_dir/$ac_word; then
5331 ac_cv_prog_AS_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5338 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5339 if test -n "$AS_FOR_TARGET"; then
5340 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5342 echo "$ac_t""no" 1>&6
5346 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5348 set dummy
${ncn_progname}; ac_word
=$2
5349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5350 echo "configure:5351: checking for $ac_word" >&5
5351 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6
5354 if test -n "$AS_FOR_TARGET"; then
5355 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5357 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5359 for ac_dir
in $ac_dummy; do
5360 test -z "$ac_dir" && ac_dir
=.
5361 if test -f $ac_dir/$ac_word; then
5362 ac_cv_prog_AS_FOR_TARGET
="${ncn_progname}"
5369 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5370 if test -n "$AS_FOR_TARGET"; then
5371 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5373 echo "$ac_t""no" 1>&6
5377 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5381 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5383 if test $build = $target ; then
5386 AS_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5391 AS_FOR_TARGET
=$ac_cv_path_AS_FOR_TARGET
5397 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5398 if test -n "$with_build_time_tools"; then
5399 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5400 echo "configure:5401: checking for dlltool in $with_build_time_tools" >&5
5401 if test -x $with_build_time_tools/dlltool
; then
5402 DLLTOOL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/dlltool
5403 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5404 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5406 echo "$ac_t""no" 1>&6
5408 elif test $build != $host && test $have_gcc_for_target = yes; then
5409 DLLTOOL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5410 test $DLLTOOL_FOR_TARGET=dlltool
&& DLLTOOL_FOR_TARGET
=
5411 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5414 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5415 # Extract the first word of "dlltool", so it can be a program name with args.
5416 set dummy dlltool
; ac_word
=$2
5417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5418 echo "configure:5419: checking for $ac_word" >&5
5419 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5420 echo $ac_n "(cached) $ac_c" 1>&6
5422 case "$DLLTOOL_FOR_TARGET" in
5424 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5427 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5430 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5431 ac_dummy
="$gcc_cv_tool_dirs"
5432 for ac_dir
in $ac_dummy; do
5433 test -z "$ac_dir" && ac_dir
=.
5434 if test -f $ac_dir/$ac_word; then
5435 ac_cv_path_DLLTOOL_FOR_TARGET
="$ac_dir/$ac_word"
5443 DLLTOOL_FOR_TARGET
="$ac_cv_path_DLLTOOL_FOR_TARGET"
5444 if test -n "$DLLTOOL_FOR_TARGET"; then
5445 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5447 echo "$ac_t""no" 1>&6
5451 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5452 if test -n "$with_build_time_tools"; then
5453 for ncn_progname
in dlltool
; do
5454 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5455 echo "configure:5456: checking for ${ncn_progname} in $with_build_time_tools" >&5
5456 if test -x $with_build_time_tools/${ncn_progname}; then
5457 ac_cv_prog_DLLTOOL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5458 echo "$ac_t""yes" 1>&6
5461 echo "$ac_t""no" 1>&6
5466 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5467 for ncn_progname
in dlltool
; do
5468 if test -n "$ncn_target_tool_prefix"; then
5469 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5470 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5472 echo "configure:5473: checking for $ac_word" >&5
5473 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5474 echo $ac_n "(cached) $ac_c" 1>&6
5476 if test -n "$DLLTOOL_FOR_TARGET"; then
5477 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5479 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5481 for ac_dir
in $ac_dummy; do
5482 test -z "$ac_dir" && ac_dir
=.
5483 if test -f $ac_dir/$ac_word; then
5484 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5491 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5492 if test -n "$DLLTOOL_FOR_TARGET"; then
5493 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5495 echo "$ac_t""no" 1>&6
5499 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5501 set dummy
${ncn_progname}; ac_word
=$2
5502 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5503 echo "configure:5504: checking for $ac_word" >&5
5504 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5507 if test -n "$DLLTOOL_FOR_TARGET"; then
5508 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5510 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5512 for ac_dir
in $ac_dummy; do
5513 test -z "$ac_dir" && ac_dir
=.
5514 if test -f $ac_dir/$ac_word; then
5515 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_progname}"
5522 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5523 if test -n "$DLLTOOL_FOR_TARGET"; then
5524 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5526 echo "$ac_t""no" 1>&6
5530 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5534 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5536 if test $build = $target ; then
5537 DLLTOOL_FOR_TARGET
="$2"
5539 DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5544 DLLTOOL_FOR_TARGET
=$ac_cv_path_DLLTOOL_FOR_TARGET
5550 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5551 if test -n "$with_build_time_tools"; then
5552 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5553 echo "configure:5554: checking for ld in $with_build_time_tools" >&5
5554 if test -x $with_build_time_tools/ld
; then
5555 LD_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ld
5556 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5557 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5559 echo "$ac_t""no" 1>&6
5561 elif test $build != $host && test $have_gcc_for_target = yes; then
5562 LD_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ld`
5563 test $LD_FOR_TARGET=ld
&& LD_FOR_TARGET
=
5564 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5567 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5568 # Extract the first word of "ld", so it can be a program name with args.
5569 set dummy ld
; ac_word
=$2
5570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5571 echo "configure:5572: checking for $ac_word" >&5
5572 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5573 echo $ac_n "(cached) $ac_c" 1>&6
5575 case "$LD_FOR_TARGET" in
5577 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a path.
5580 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5583 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5584 ac_dummy
="$gcc_cv_tool_dirs"
5585 for ac_dir
in $ac_dummy; do
5586 test -z "$ac_dir" && ac_dir
=.
5587 if test -f $ac_dir/$ac_word; then
5588 ac_cv_path_LD_FOR_TARGET
="$ac_dir/$ac_word"
5596 LD_FOR_TARGET
="$ac_cv_path_LD_FOR_TARGET"
5597 if test -n "$LD_FOR_TARGET"; then
5598 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5600 echo "$ac_t""no" 1>&6
5604 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5605 if test -n "$with_build_time_tools"; then
5606 for ncn_progname
in ld
; do
5607 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5608 echo "configure:5609: checking for ${ncn_progname} in $with_build_time_tools" >&5
5609 if test -x $with_build_time_tools/${ncn_progname}; then
5610 ac_cv_prog_LD_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5611 echo "$ac_t""yes" 1>&6
5614 echo "$ac_t""no" 1>&6
5619 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5620 for ncn_progname
in ld
; do
5621 if test -n "$ncn_target_tool_prefix"; then
5622 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5623 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5625 echo "configure:5626: checking for $ac_word" >&5
5626 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5627 echo $ac_n "(cached) $ac_c" 1>&6
5629 if test -n "$LD_FOR_TARGET"; then
5630 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5632 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5634 for ac_dir
in $ac_dummy; do
5635 test -z "$ac_dir" && ac_dir
=.
5636 if test -f $ac_dir/$ac_word; then
5637 ac_cv_prog_LD_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5644 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5645 if test -n "$LD_FOR_TARGET"; then
5646 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5648 echo "$ac_t""no" 1>&6
5652 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5654 set dummy
${ncn_progname}; ac_word
=$2
5655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5656 echo "configure:5657: checking for $ac_word" >&5
5657 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5658 echo $ac_n "(cached) $ac_c" 1>&6
5660 if test -n "$LD_FOR_TARGET"; then
5661 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5663 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5665 for ac_dir
in $ac_dummy; do
5666 test -z "$ac_dir" && ac_dir
=.
5667 if test -f $ac_dir/$ac_word; then
5668 ac_cv_prog_LD_FOR_TARGET
="${ncn_progname}"
5675 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5676 if test -n "$LD_FOR_TARGET"; then
5677 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5679 echo "$ac_t""no" 1>&6
5683 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5687 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5689 if test $build = $target ; then
5692 LD_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5697 LD_FOR_TARGET
=$ac_cv_path_LD_FOR_TARGET
5703 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5704 if test -n "$with_build_time_tools"; then
5705 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5706 echo "configure:5707: checking for lipo in $with_build_time_tools" >&5
5707 if test -x $with_build_time_tools/lipo
; then
5708 LIPO_FOR_TARGET
=`cd $with_build_time_tools && pwd`/lipo
5709 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5710 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5712 echo "$ac_t""no" 1>&6
5714 elif test $build != $host && test $have_gcc_for_target = yes; then
5715 LIPO_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=lipo`
5716 test $LIPO_FOR_TARGET=lipo
&& LIPO_FOR_TARGET
=
5717 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5720 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5721 # Extract the first word of "lipo", so it can be a program name with args.
5722 set dummy lipo
; ac_word
=$2
5723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5724 echo "configure:5725: checking for $ac_word" >&5
5725 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5726 echo $ac_n "(cached) $ac_c" 1>&6
5728 case "$LIPO_FOR_TARGET" in
5730 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5733 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5736 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5737 ac_dummy
="$gcc_cv_tool_dirs"
5738 for ac_dir
in $ac_dummy; do
5739 test -z "$ac_dir" && ac_dir
=.
5740 if test -f $ac_dir/$ac_word; then
5741 ac_cv_path_LIPO_FOR_TARGET
="$ac_dir/$ac_word"
5749 LIPO_FOR_TARGET
="$ac_cv_path_LIPO_FOR_TARGET"
5750 if test -n "$LIPO_FOR_TARGET"; then
5751 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5753 echo "$ac_t""no" 1>&6
5757 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5758 if test -n "$with_build_time_tools"; then
5759 for ncn_progname
in lipo
; do
5760 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5761 echo "configure:5762: checking for ${ncn_progname} in $with_build_time_tools" >&5
5762 if test -x $with_build_time_tools/${ncn_progname}; then
5763 ac_cv_prog_LIPO_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5764 echo "$ac_t""yes" 1>&6
5767 echo "$ac_t""no" 1>&6
5772 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5773 for ncn_progname
in lipo
; do
5774 if test -n "$ncn_target_tool_prefix"; then
5775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5776 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5778 echo "configure:5779: checking for $ac_word" >&5
5779 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5780 echo $ac_n "(cached) $ac_c" 1>&6
5782 if test -n "$LIPO_FOR_TARGET"; then
5783 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5785 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5787 for ac_dir
in $ac_dummy; do
5788 test -z "$ac_dir" && ac_dir
=.
5789 if test -f $ac_dir/$ac_word; then
5790 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5797 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5798 if test -n "$LIPO_FOR_TARGET"; then
5799 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5801 echo "$ac_t""no" 1>&6
5805 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5807 set dummy
${ncn_progname}; ac_word
=$2
5808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5809 echo "configure:5810: checking for $ac_word" >&5
5810 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5811 echo $ac_n "(cached) $ac_c" 1>&6
5813 if test -n "$LIPO_FOR_TARGET"; then
5814 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5816 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5818 for ac_dir
in $ac_dummy; do
5819 test -z "$ac_dir" && ac_dir
=.
5820 if test -f $ac_dir/$ac_word; then
5821 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_progname}"
5828 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5829 if test -n "$LIPO_FOR_TARGET"; then
5830 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5832 echo "$ac_t""no" 1>&6
5836 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5840 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5842 if test $build = $target ; then
5843 LIPO_FOR_TARGET
="$2"
5845 LIPO_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5850 LIPO_FOR_TARGET
=$ac_cv_path_LIPO_FOR_TARGET
5856 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5857 if test -n "$with_build_time_tools"; then
5858 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5859 echo "configure:5860: checking for nm in $with_build_time_tools" >&5
5860 if test -x $with_build_time_tools/nm
; then
5861 NM_FOR_TARGET
=`cd $with_build_time_tools && pwd`/nm
5862 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5863 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5865 echo "$ac_t""no" 1>&6
5867 elif test $build != $host && test $have_gcc_for_target = yes; then
5868 NM_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=nm`
5869 test $NM_FOR_TARGET=nm
&& NM_FOR_TARGET
=
5870 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5873 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5874 # Extract the first word of "nm", so it can be a program name with args.
5875 set dummy nm
; ac_word
=$2
5876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5877 echo "configure:5878: checking for $ac_word" >&5
5878 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5879 echo $ac_n "(cached) $ac_c" 1>&6
5881 case "$NM_FOR_TARGET" in
5883 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a path.
5886 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5889 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5890 ac_dummy
="$gcc_cv_tool_dirs"
5891 for ac_dir
in $ac_dummy; do
5892 test -z "$ac_dir" && ac_dir
=.
5893 if test -f $ac_dir/$ac_word; then
5894 ac_cv_path_NM_FOR_TARGET
="$ac_dir/$ac_word"
5902 NM_FOR_TARGET
="$ac_cv_path_NM_FOR_TARGET"
5903 if test -n "$NM_FOR_TARGET"; then
5904 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5906 echo "$ac_t""no" 1>&6
5910 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5911 if test -n "$with_build_time_tools"; then
5912 for ncn_progname
in nm
; do
5913 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5914 echo "configure:5915: checking for ${ncn_progname} in $with_build_time_tools" >&5
5915 if test -x $with_build_time_tools/${ncn_progname}; then
5916 ac_cv_prog_NM_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5917 echo "$ac_t""yes" 1>&6
5920 echo "$ac_t""no" 1>&6
5925 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5926 for ncn_progname
in nm
; do
5927 if test -n "$ncn_target_tool_prefix"; then
5928 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5929 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5931 echo "configure:5932: checking for $ac_word" >&5
5932 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5933 echo $ac_n "(cached) $ac_c" 1>&6
5935 if test -n "$NM_FOR_TARGET"; then
5936 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
5938 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5940 for ac_dir
in $ac_dummy; do
5941 test -z "$ac_dir" && ac_dir
=.
5942 if test -f $ac_dir/$ac_word; then
5943 ac_cv_prog_NM_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5950 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
5951 if test -n "$NM_FOR_TARGET"; then
5952 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5954 echo "$ac_t""no" 1>&6
5958 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5960 set dummy
${ncn_progname}; ac_word
=$2
5961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5962 echo "configure:5963: checking for $ac_word" >&5
5963 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5964 echo $ac_n "(cached) $ac_c" 1>&6
5966 if test -n "$NM_FOR_TARGET"; then
5967 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
5969 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5971 for ac_dir
in $ac_dummy; do
5972 test -z "$ac_dir" && ac_dir
=.
5973 if test -f $ac_dir/$ac_word; then
5974 ac_cv_prog_NM_FOR_TARGET
="${ncn_progname}"
5981 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
5982 if test -n "$NM_FOR_TARGET"; then
5983 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5985 echo "$ac_t""no" 1>&6
5989 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5993 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5995 if test $build = $target ; then
5998 NM_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6003 NM_FOR_TARGET
=$ac_cv_path_NM_FOR_TARGET
6009 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6010 if test -n "$with_build_time_tools"; then
6011 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6012 echo "configure:6013: checking for objdump in $with_build_time_tools" >&5
6013 if test -x $with_build_time_tools/objdump
; then
6014 OBJDUMP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/objdump
6015 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6016 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6018 echo "$ac_t""no" 1>&6
6020 elif test $build != $host && test $have_gcc_for_target = yes; then
6021 OBJDUMP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=objdump`
6022 test $OBJDUMP_FOR_TARGET=objdump
&& OBJDUMP_FOR_TARGET
=
6023 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6026 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6027 # Extract the first word of "objdump", so it can be a program name with args.
6028 set dummy objdump
; ac_word
=$2
6029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6030 echo "configure:6031: checking for $ac_word" >&5
6031 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6032 echo $ac_n "(cached) $ac_c" 1>&6
6034 case "$OBJDUMP_FOR_TARGET" in
6036 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6039 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6042 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6043 ac_dummy
="$gcc_cv_tool_dirs"
6044 for ac_dir
in $ac_dummy; do
6045 test -z "$ac_dir" && ac_dir
=.
6046 if test -f $ac_dir/$ac_word; then
6047 ac_cv_path_OBJDUMP_FOR_TARGET
="$ac_dir/$ac_word"
6055 OBJDUMP_FOR_TARGET
="$ac_cv_path_OBJDUMP_FOR_TARGET"
6056 if test -n "$OBJDUMP_FOR_TARGET"; then
6057 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6059 echo "$ac_t""no" 1>&6
6063 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6064 if test -n "$with_build_time_tools"; then
6065 for ncn_progname
in objdump
; do
6066 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6067 echo "configure:6068: checking for ${ncn_progname} in $with_build_time_tools" >&5
6068 if test -x $with_build_time_tools/${ncn_progname}; then
6069 ac_cv_prog_OBJDUMP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6070 echo "$ac_t""yes" 1>&6
6073 echo "$ac_t""no" 1>&6
6078 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6079 for ncn_progname
in objdump
; do
6080 if test -n "$ncn_target_tool_prefix"; then
6081 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6082 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6084 echo "configure:6085: checking for $ac_word" >&5
6085 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6086 echo $ac_n "(cached) $ac_c" 1>&6
6088 if test -n "$OBJDUMP_FOR_TARGET"; then
6089 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6091 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6093 for ac_dir
in $ac_dummy; do
6094 test -z "$ac_dir" && ac_dir
=.
6095 if test -f $ac_dir/$ac_word; then
6096 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6103 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6104 if test -n "$OBJDUMP_FOR_TARGET"; then
6105 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6107 echo "$ac_t""no" 1>&6
6111 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6113 set dummy
${ncn_progname}; ac_word
=$2
6114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6115 echo "configure:6116: checking for $ac_word" >&5
6116 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6117 echo $ac_n "(cached) $ac_c" 1>&6
6119 if test -n "$OBJDUMP_FOR_TARGET"; then
6120 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6122 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6124 for ac_dir
in $ac_dummy; do
6125 test -z "$ac_dir" && ac_dir
=.
6126 if test -f $ac_dir/$ac_word; then
6127 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_progname}"
6134 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6135 if test -n "$OBJDUMP_FOR_TARGET"; then
6136 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6138 echo "$ac_t""no" 1>&6
6142 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6146 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6148 if test $build = $target ; then
6149 OBJDUMP_FOR_TARGET
="$2"
6151 OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6156 OBJDUMP_FOR_TARGET
=$ac_cv_path_OBJDUMP_FOR_TARGET
6162 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6163 if test -n "$with_build_time_tools"; then
6164 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6165 echo "configure:6166: checking for ranlib in $with_build_time_tools" >&5
6166 if test -x $with_build_time_tools/ranlib
; then
6167 RANLIB_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ranlib
6168 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6169 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6171 echo "$ac_t""no" 1>&6
6173 elif test $build != $host && test $have_gcc_for_target = yes; then
6174 RANLIB_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6175 test $RANLIB_FOR_TARGET=ranlib
&& RANLIB_FOR_TARGET
=
6176 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6179 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6180 # Extract the first word of "ranlib", so it can be a program name with args.
6181 set dummy ranlib
; ac_word
=$2
6182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6183 echo "configure:6184: checking for $ac_word" >&5
6184 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6185 echo $ac_n "(cached) $ac_c" 1>&6
6187 case "$RANLIB_FOR_TARGET" in
6189 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6192 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6195 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6196 ac_dummy
="$gcc_cv_tool_dirs"
6197 for ac_dir
in $ac_dummy; do
6198 test -z "$ac_dir" && ac_dir
=.
6199 if test -f $ac_dir/$ac_word; then
6200 ac_cv_path_RANLIB_FOR_TARGET
="$ac_dir/$ac_word"
6208 RANLIB_FOR_TARGET
="$ac_cv_path_RANLIB_FOR_TARGET"
6209 if test -n "$RANLIB_FOR_TARGET"; then
6210 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6212 echo "$ac_t""no" 1>&6
6216 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6217 if test -n "$with_build_time_tools"; then
6218 for ncn_progname
in ranlib
; do
6219 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6220 echo "configure:6221: checking for ${ncn_progname} in $with_build_time_tools" >&5
6221 if test -x $with_build_time_tools/${ncn_progname}; then
6222 ac_cv_prog_RANLIB_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6223 echo "$ac_t""yes" 1>&6
6226 echo "$ac_t""no" 1>&6
6231 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6232 for ncn_progname
in ranlib
; do
6233 if test -n "$ncn_target_tool_prefix"; then
6234 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6235 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6237 echo "configure:6238: checking for $ac_word" >&5
6238 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6239 echo $ac_n "(cached) $ac_c" 1>&6
6241 if test -n "$RANLIB_FOR_TARGET"; then
6242 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6244 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6246 for ac_dir
in $ac_dummy; do
6247 test -z "$ac_dir" && ac_dir
=.
6248 if test -f $ac_dir/$ac_word; then
6249 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6256 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6257 if test -n "$RANLIB_FOR_TARGET"; then
6258 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6260 echo "$ac_t""no" 1>&6
6264 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6265 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6266 set dummy
${ncn_progname}; ac_word
=$2
6267 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6268 echo "configure:6269: checking for $ac_word" >&5
6269 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6270 echo $ac_n "(cached) $ac_c" 1>&6
6272 if test -n "$RANLIB_FOR_TARGET"; then
6273 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6275 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6277 for ac_dir
in $ac_dummy; do
6278 test -z "$ac_dir" && ac_dir
=.
6279 if test -f $ac_dir/$ac_word; then
6280 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_progname}"
6287 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6288 if test -n "$RANLIB_FOR_TARGET"; then
6289 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6291 echo "$ac_t""no" 1>&6
6295 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6299 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6301 if test $build = $target ; then
6302 RANLIB_FOR_TARGET
="$2"
6304 RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6309 RANLIB_FOR_TARGET
=$ac_cv_path_RANLIB_FOR_TARGET
6315 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6316 if test -n "$with_build_time_tools"; then
6317 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6318 echo "configure:6319: checking for strip in $with_build_time_tools" >&5
6319 if test -x $with_build_time_tools/strip
; then
6320 STRIP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/strip
6321 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6322 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6324 echo "$ac_t""no" 1>&6
6326 elif test $build != $host && test $have_gcc_for_target = yes; then
6327 STRIP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=strip`
6328 test $STRIP_FOR_TARGET=strip
&& STRIP_FOR_TARGET
=
6329 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6332 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6333 # Extract the first word of "strip", so it can be a program name with args.
6334 set dummy strip
; ac_word
=$2
6335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6336 echo "configure:6337: checking for $ac_word" >&5
6337 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6340 case "$STRIP_FOR_TARGET" in
6342 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6345 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6348 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6349 ac_dummy
="$gcc_cv_tool_dirs"
6350 for ac_dir
in $ac_dummy; do
6351 test -z "$ac_dir" && ac_dir
=.
6352 if test -f $ac_dir/$ac_word; then
6353 ac_cv_path_STRIP_FOR_TARGET
="$ac_dir/$ac_word"
6361 STRIP_FOR_TARGET
="$ac_cv_path_STRIP_FOR_TARGET"
6362 if test -n "$STRIP_FOR_TARGET"; then
6363 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6365 echo "$ac_t""no" 1>&6
6369 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6370 if test -n "$with_build_time_tools"; then
6371 for ncn_progname
in strip
; do
6372 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6373 echo "configure:6374: checking for ${ncn_progname} in $with_build_time_tools" >&5
6374 if test -x $with_build_time_tools/${ncn_progname}; then
6375 ac_cv_prog_STRIP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6376 echo "$ac_t""yes" 1>&6
6379 echo "$ac_t""no" 1>&6
6384 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6385 for ncn_progname
in strip
; do
6386 if test -n "$ncn_target_tool_prefix"; then
6387 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6388 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6390 echo "configure:6391: checking for $ac_word" >&5
6391 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6392 echo $ac_n "(cached) $ac_c" 1>&6
6394 if test -n "$STRIP_FOR_TARGET"; then
6395 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6397 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6399 for ac_dir
in $ac_dummy; do
6400 test -z "$ac_dir" && ac_dir
=.
6401 if test -f $ac_dir/$ac_word; then
6402 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6409 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6410 if test -n "$STRIP_FOR_TARGET"; then
6411 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6413 echo "$ac_t""no" 1>&6
6417 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6419 set dummy
${ncn_progname}; ac_word
=$2
6420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6421 echo "configure:6422: checking for $ac_word" >&5
6422 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6423 echo $ac_n "(cached) $ac_c" 1>&6
6425 if test -n "$STRIP_FOR_TARGET"; then
6426 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6428 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6430 for ac_dir
in $ac_dummy; do
6431 test -z "$ac_dir" && ac_dir
=.
6432 if test -f $ac_dir/$ac_word; then
6433 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_progname}"
6440 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6441 if test -n "$STRIP_FOR_TARGET"; then
6442 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6444 echo "$ac_t""no" 1>&6
6448 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6452 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6454 if test $build = $target ; then
6455 STRIP_FOR_TARGET
="$2"
6457 STRIP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6462 STRIP_FOR_TARGET
=$ac_cv_path_STRIP_FOR_TARGET
6468 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6469 if test -n "$with_build_time_tools"; then
6470 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6471 echo "configure:6472: checking for windres in $with_build_time_tools" >&5
6472 if test -x $with_build_time_tools/windres
; then
6473 WINDRES_FOR_TARGET
=`cd $with_build_time_tools && pwd`/windres
6474 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6475 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6477 echo "$ac_t""no" 1>&6
6479 elif test $build != $host && test $have_gcc_for_target = yes; then
6480 WINDRES_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=windres`
6481 test $WINDRES_FOR_TARGET=windres
&& WINDRES_FOR_TARGET
=
6482 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6485 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6486 # Extract the first word of "windres", so it can be a program name with args.
6487 set dummy windres
; ac_word
=$2
6488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6489 echo "configure:6490: checking for $ac_word" >&5
6490 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6491 echo $ac_n "(cached) $ac_c" 1>&6
6493 case "$WINDRES_FOR_TARGET" in
6495 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6498 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6501 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6502 ac_dummy
="$gcc_cv_tool_dirs"
6503 for ac_dir
in $ac_dummy; do
6504 test -z "$ac_dir" && ac_dir
=.
6505 if test -f $ac_dir/$ac_word; then
6506 ac_cv_path_WINDRES_FOR_TARGET
="$ac_dir/$ac_word"
6514 WINDRES_FOR_TARGET
="$ac_cv_path_WINDRES_FOR_TARGET"
6515 if test -n "$WINDRES_FOR_TARGET"; then
6516 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6518 echo "$ac_t""no" 1>&6
6522 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6523 if test -n "$with_build_time_tools"; then
6524 for ncn_progname
in windres
; do
6525 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6526 echo "configure:6527: checking for ${ncn_progname} in $with_build_time_tools" >&5
6527 if test -x $with_build_time_tools/${ncn_progname}; then
6528 ac_cv_prog_WINDRES_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6529 echo "$ac_t""yes" 1>&6
6532 echo "$ac_t""no" 1>&6
6537 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6538 for ncn_progname
in windres
; do
6539 if test -n "$ncn_target_tool_prefix"; then
6540 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6541 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6542 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6543 echo "configure:6544: checking for $ac_word" >&5
6544 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6545 echo $ac_n "(cached) $ac_c" 1>&6
6547 if test -n "$WINDRES_FOR_TARGET"; then
6548 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6550 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6552 for ac_dir
in $ac_dummy; do
6553 test -z "$ac_dir" && ac_dir
=.
6554 if test -f $ac_dir/$ac_word; then
6555 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6562 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6563 if test -n "$WINDRES_FOR_TARGET"; then
6564 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6566 echo "$ac_t""no" 1>&6
6570 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6572 set dummy
${ncn_progname}; ac_word
=$2
6573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6574 echo "configure:6575: checking for $ac_word" >&5
6575 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6578 if test -n "$WINDRES_FOR_TARGET"; then
6579 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6581 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6583 for ac_dir
in $ac_dummy; do
6584 test -z "$ac_dir" && ac_dir
=.
6585 if test -f $ac_dir/$ac_word; then
6586 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_progname}"
6593 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6594 if test -n "$WINDRES_FOR_TARGET"; then
6595 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6597 echo "$ac_t""no" 1>&6
6601 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6605 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6607 if test $build = $target ; then
6608 WINDRES_FOR_TARGET
="$2"
6610 WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6615 WINDRES_FOR_TARGET
=$ac_cv_path_WINDRES_FOR_TARGET
6619 RAW_CXX_FOR_TARGET
="$CXX_FOR_TARGET"
6621 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6622 echo "configure:6623: checking where to find the target ar" >&5
6623 if test "x${build}" != "x${host}" ; then
6624 if expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6625 # We already found the complete path
6626 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6628 # Canadian cross, just use what we found
6629 echo "$ac_t""pre-installed" 1>&6
6633 case " ${configdirs} " in
6638 if test $ok = yes; then
6639 # An in-tree tool is available and we can use it
6640 AR_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ar'
6641 echo "$ac_t""just compiled" 1>&6
6642 elif expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6643 # We already found the complete path
6644 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6645 elif test "x$target" = "x$host"; then
6646 # We can use an host tool
6647 AR_FOR_TARGET
='$(AR)'
6648 echo "$ac_t""host tool" 1>&6
6650 # We need a cross tool
6651 echo "$ac_t""pre-installed" 1>&6
6654 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6655 echo "configure:6656: checking where to find the target as" >&5
6656 if test "x${build}" != "x${host}" ; then
6657 if expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6658 # We already found the complete path
6659 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6661 # Canadian cross, just use what we found
6662 echo "$ac_t""pre-installed" 1>&6
6666 case " ${configdirs} " in
6671 if test $ok = yes; then
6672 # An in-tree tool is available and we can use it
6673 AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gas/as-new'
6674 echo "$ac_t""just compiled" 1>&6
6675 elif expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6676 # We already found the complete path
6677 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6678 elif test "x$target" = "x$host"; then
6679 # We can use an host tool
6680 AS_FOR_TARGET
='$(AS)'
6681 echo "$ac_t""host tool" 1>&6
6683 # We need a cross tool
6684 echo "$ac_t""pre-installed" 1>&6
6687 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6688 echo "configure:6689: checking where to find the target cc" >&5
6689 if test "x${build}" != "x${host}" ; then
6690 if expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6691 # We already found the complete path
6692 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6694 # Canadian cross, just use what we found
6695 echo "$ac_t""pre-installed" 1>&6
6699 case " ${configdirs} " in
6704 if test $ok = yes; then
6705 # An in-tree tool is available and we can use it
6706 CC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6707 echo "$ac_t""just compiled" 1>&6
6708 elif expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6709 # We already found the complete path
6710 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6711 elif test "x$target" = "x$host"; then
6712 # We can use an host tool
6713 CC_FOR_TARGET
='$(CC)'
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++""... $ac_c" 1>&6
6721 echo "configure:6722: checking where to find the target c++" >&5
6722 if test "x${build}" != "x${host}" ; then
6723 if expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6724 # We already found the complete path
6725 echo "$ac_t""pre-installed in `dirname $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 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'
6743 echo "$ac_t""just compiled" 1>&6
6744 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6745 # We already found the complete path
6746 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6747 elif test "x$target" = "x$host"; then
6748 # We can use an host tool
6749 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 c++ for libstdc++""... $ac_c" 1>&6
6757 echo "configure:6758: checking where to find the target c++ for libstdc++" >&5
6758 if test "x${build}" != "x${host}" ; then
6759 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6760 # We already found the complete path
6761 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6763 # Canadian cross, just use what we found
6764 echo "$ac_t""pre-installed" 1>&6
6768 case " ${configdirs} " in
6772 case ,${enable_languages}, in
6776 if test $ok = yes; then
6777 # An in-tree tool is available and we can use it
6778 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'
6779 echo "$ac_t""just compiled" 1>&6
6780 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6781 # We already found the complete path
6782 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6783 elif test "x$target" = "x$host"; then
6784 # We can use an host tool
6785 RAW_CXX_FOR_TARGET
='$(CXX)'
6786 echo "$ac_t""host tool" 1>&6
6788 # We need a cross tool
6789 echo "$ac_t""pre-installed" 1>&6
6792 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6793 echo "configure:6794: checking where to find the target dlltool" >&5
6794 if test "x${build}" != "x${host}" ; then
6795 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6796 # We already found the complete path
6797 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6799 # Canadian cross, just use what we found
6800 echo "$ac_t""pre-installed" 1>&6
6804 case " ${configdirs} " in
6809 if test $ok = yes; then
6810 # An in-tree tool is available and we can use it
6811 DLLTOOL_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6812 echo "$ac_t""just compiled" 1>&6
6813 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6814 # We already found the complete path
6815 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6816 elif test "x$target" = "x$host"; then
6817 # We can use an host tool
6818 DLLTOOL_FOR_TARGET
='$(DLLTOOL)'
6819 echo "$ac_t""host tool" 1>&6
6821 # We need a cross tool
6822 echo "$ac_t""pre-installed" 1>&6
6825 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6826 echo "configure:6827: checking where to find the target gcc" >&5
6827 if test "x${build}" != "x${host}" ; then
6828 if expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6829 # We already found the complete path
6830 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6832 # Canadian cross, just use what we found
6833 echo "$ac_t""pre-installed" 1>&6
6837 case " ${configdirs} " in
6842 if test $ok = yes; then
6843 # An in-tree tool is available and we can use it
6844 GCC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6845 echo "$ac_t""just compiled" 1>&6
6846 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6847 # We already found the complete path
6848 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6849 elif test "x$target" = "x$host"; then
6850 # We can use an host tool
6851 GCC_FOR_TARGET
='$()'
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 gcj""... $ac_c" 1>&6
6859 echo "configure:6860: checking where to find the target gcj" >&5
6860 if test "x${build}" != "x${host}" ; then
6861 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6862 # We already found the complete path
6863 echo "$ac_t""pre-installed in `dirname $GCJ_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 GCJ_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6881 echo "$ac_t""just compiled" 1>&6
6882 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6883 # We already found the complete path
6884 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6885 elif test "x$target" = "x$host"; then
6886 # We can use an host tool
6887 GCJ_FOR_TARGET
='$(GCJ)'
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 gfortran""... $ac_c" 1>&6
6895 echo "configure:6896: checking where to find the target gfortran" >&5
6896 if test "x${build}" != "x${host}" ; then
6897 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
6898 # We already found the complete path
6899 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6901 # Canadian cross, just use what we found
6902 echo "$ac_t""pre-installed" 1>&6
6906 case " ${configdirs} " in
6910 case ,${enable_languages}, in
6914 if test $ok = yes; then
6915 # An in-tree tool is available and we can use it
6916 GFORTRAN_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6917 echo "$ac_t""just compiled" 1>&6
6918 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
6919 # We already found the complete path
6920 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6921 elif test "x$target" = "x$host"; then
6922 # We can use an host tool
6923 GFORTRAN_FOR_TARGET
='$(GFORTRAN)'
6924 echo "$ac_t""host tool" 1>&6
6926 # We need a cross tool
6927 echo "$ac_t""pre-installed" 1>&6
6930 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
6931 echo "configure:6932: checking where to find the target ld" >&5
6932 if test "x${build}" != "x${host}" ; then
6933 if expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
6934 # We already found the complete path
6935 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6937 # Canadian cross, just use what we found
6938 echo "$ac_t""pre-installed" 1>&6
6942 case " ${configdirs} " in
6947 if test $ok = yes; then
6948 # An in-tree tool is available and we can use it
6949 LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/ld/ld-new'
6950 echo "$ac_t""just compiled" 1>&6
6951 elif expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
6952 # We already found the complete path
6953 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6954 elif test "x$target" = "x$host"; then
6955 # We can use an host tool
6956 LD_FOR_TARGET
='$(LD)'
6957 echo "$ac_t""host tool" 1>&6
6959 # We need a cross tool
6960 echo "$ac_t""pre-installed" 1>&6
6963 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
6964 echo "configure:6965: checking where to find the target lipo" >&5
6965 if test "x${build}" != "x${host}" ; then
6966 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
6967 # We already found the complete path
6968 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6970 # Canadian cross, just use what we found
6971 echo "$ac_t""pre-installed" 1>&6
6974 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
6975 # We already found the complete path
6976 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6977 elif test "x$target" = "x$host"; then
6978 # We can use an host tool
6979 LIPO_FOR_TARGET
='$(LIPO)'
6980 echo "$ac_t""host tool" 1>&6
6982 # We need a cross tool
6983 echo "$ac_t""pre-installed" 1>&6
6986 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
6987 echo "configure:6988: checking where to find the target nm" >&5
6988 if test "x${build}" != "x${host}" ; then
6989 if expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
6990 # We already found the complete path
6991 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
6993 # Canadian cross, just use what we found
6994 echo "$ac_t""pre-installed" 1>&6
6998 case " ${configdirs} " in
7003 if test $ok = yes; then
7004 # An in-tree tool is available and we can use it
7005 NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7006 echo "$ac_t""just compiled" 1>&6
7007 elif expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7008 # We already found the complete path
7009 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7010 elif test "x$target" = "x$host"; then
7011 # We can use an host tool
7012 NM_FOR_TARGET
='$(NM)'
7013 echo "$ac_t""host tool" 1>&6
7015 # We need a cross tool
7016 echo "$ac_t""pre-installed" 1>&6
7019 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7020 echo "configure:7021: checking where to find the target objdump" >&5
7021 if test "x${build}" != "x${host}" ; then
7022 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7023 # We already found the complete path
7024 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7026 # Canadian cross, just use what we found
7027 echo "$ac_t""pre-installed" 1>&6
7031 case " ${configdirs} " in
7036 if test $ok = yes; then
7037 # An in-tree tool is available and we can use it
7038 OBJDUMP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/objdump'
7039 echo "$ac_t""just compiled" 1>&6
7040 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7041 # We already found the complete path
7042 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7043 elif test "x$target" = "x$host"; then
7044 # We can use an host tool
7045 OBJDUMP_FOR_TARGET
='$(OBJDUMP)'
7046 echo "$ac_t""host tool" 1>&6
7048 # We need a cross tool
7049 echo "$ac_t""pre-installed" 1>&6
7052 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7053 echo "configure:7054: checking where to find the target ranlib" >&5
7054 if test "x${build}" != "x${host}" ; then
7055 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7056 # We already found the complete path
7057 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7059 # Canadian cross, just use what we found
7060 echo "$ac_t""pre-installed" 1>&6
7064 case " ${configdirs} " in
7069 if test $ok = yes; then
7070 # An in-tree tool is available and we can use it
7071 RANLIB_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7072 echo "$ac_t""just compiled" 1>&6
7073 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7074 # We already found the complete path
7075 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7076 elif test "x$target" = "x$host"; then
7077 # We can use an host tool
7078 RANLIB_FOR_TARGET
='$(RANLIB)'
7079 echo "$ac_t""host tool" 1>&6
7081 # We need a cross tool
7082 echo "$ac_t""pre-installed" 1>&6
7085 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7086 echo "configure:7087: checking where to find the target strip" >&5
7087 if test "x${build}" != "x${host}" ; then
7088 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7089 # We already found the complete path
7090 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7092 # Canadian cross, just use what we found
7093 echo "$ac_t""pre-installed" 1>&6
7097 case " ${configdirs} " in
7102 if test $ok = yes; then
7103 # An in-tree tool is available and we can use it
7104 STRIP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/strip'
7105 echo "$ac_t""just compiled" 1>&6
7106 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7107 # We already found the complete path
7108 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7109 elif test "x$target" = "x$host"; then
7110 # We can use an host tool
7111 STRIP_FOR_TARGET
='$(STRIP)'
7112 echo "$ac_t""host tool" 1>&6
7114 # We need a cross tool
7115 echo "$ac_t""pre-installed" 1>&6
7118 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7119 echo "configure:7120: checking where to find the target windres" >&5
7120 if test "x${build}" != "x${host}" ; then
7121 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7122 # We already found the complete path
7123 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7125 # Canadian cross, just use what we found
7126 echo "$ac_t""pre-installed" 1>&6
7130 case " ${configdirs} " in
7135 if test $ok = yes; then
7136 # An in-tree tool is available and we can use it
7137 WINDRES_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/windres'
7138 echo "$ac_t""just compiled" 1>&6
7139 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7140 # We already found the complete path
7141 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7142 elif test "x$target" = "x$host"; then
7143 # We can use an host tool
7144 WINDRES_FOR_TARGET
='$(WINDRES)'
7145 echo "$ac_t""host tool" 1>&6
7147 # We need a cross tool
7148 echo "$ac_t""pre-installed" 1>&6
7155 # Certain tools may need extra flags.
7156 AR_FOR_TARGET
=${AR_FOR_TARGET}${extra_arflags_for_target}
7157 RANLIB_FOR_TARGET
=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7158 NM_FOR_TARGET
=${NM_FOR_TARGET}${extra_nmflags_for_target}
7160 # When building target libraries, except in a Canadian cross, we use
7161 # the same toolchain as the compiler we just built.
7162 COMPILER_AS_FOR_TARGET
='$(AS_FOR_TARGET)'
7163 COMPILER_LD_FOR_TARGET
='$(LD_FOR_TARGET)'
7164 COMPILER_NM_FOR_TARGET
='$(NM_FOR_TARGET)'
7165 if test $host = $build; then
7166 case " $configdirs " in
7168 COMPILER_AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/as'
7169 COMPILER_LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7170 COMPILER_NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7179 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7180 echo "configure:7181: checking whether to enable maintainer-specific portions of Makefiles" >&5
7181 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7182 if test "${enable_maintainer_mode+set}" = set; then
7183 enableval
="$enable_maintainer_mode"
7184 USE_MAINTAINER_MODE
=$enableval
7186 USE_MAINTAINER_MODE
=no
7189 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7192 if test "$USE_MAINTAINER_MODE" = yes; then
7193 MAINTAINER_MODE_TRUE
=
7194 MAINTAINER_MODE_FALSE
='#'
7196 MAINTAINER_MODE_TRUE
='#'
7197 MAINTAINER_MODE_FALSE
=
7199 MAINT
=$MAINTAINER_MODE_TRUE
7201 # ---------------------
7202 # GCC bootstrap support
7203 # ---------------------
7205 # Stage specific cflags for build.
7210 yes) stage1_cflags
="-g -Wa,-J" ;;
7211 *) stage1_cflags
="-g -J" ;;
7214 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7215 # sources; use -no-cpp-precomp to get to GNU cpp.
7216 # Apple's GCC has bugs in designated initializer handling, so disable
7218 stage1_cflags
="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7223 # Enable -Werror in bootstrap stage2 and later.
7224 # Change the default to "no" on release branches.
7225 # Check whether --enable-werror or --disable-werror was given.
7226 if test "${enable_werror+set}" = set; then
7227 enableval
="$enable_werror"
7233 case ${enable_werror} in
7234 yes) stage2_werror_flag
="--enable-werror-always" ;;
7235 *) stage2_werror_flag
="" ;;
7239 # Flags needed to enable html installing and building
7240 # Check whether --with-datarootdir or --without-datarootdir was given.
7241 if test "${with_datarootdir+set}" = set; then
7242 withval
="$with_datarootdir"
7243 datarootdir
="\${prefix}/${withval}"
7245 datarootdir
="\${prefix}/share"
7249 # Check whether --with-docdir or --without-docdir was given.
7250 if test "${with_docdir+set}" = set; then
7251 withval
="$with_docdir"
7252 docdir
="\${prefix}/${withval}"
7254 docdir
="\${datarootdir}/doc"
7258 # Check whether --with-htmldir or --without-htmldir was given.
7259 if test "${with_htmldir+set}" = set; then
7260 withval
="$with_htmldir"
7261 htmldir
="\${prefix}/${withval}"
7263 htmldir
="\${docdir}"
7272 cat > confcache
<<\EOF
7273 # This file is a shell script that caches the results of configure
7274 # tests run on this system so they can be shared between configure
7275 # scripts and configure runs. It is not useful on other systems.
7276 # If it contains results you don't want to keep, you may remove or edit it.
7278 # By default, configure uses ./config.cache as the cache file,
7279 # creating it if it does not exist already. You can give configure
7280 # the --cache-file=FILE option to use a different cache file; that is
7281 # what configure does when it calls configure scripts in
7282 # subdirectories, so they share the cache.
7283 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7284 # config.status only pays attention to the cache file if you give it the
7285 # --recheck option to rerun configure.
7288 # The following way of writing the cache mishandles newlines in values,
7289 # but we know of no workaround that is simple, portable, and efficient.
7290 # So, don't put newlines in cache variables' values.
7291 # Ultrix sh set writes to stderr and can't be redirected directly,
7292 # and sets the high bit in the cache file unless we assign to the vars.
7294 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7296 # `set' does not quote correctly, so add quotes (double-quote substitution
7297 # turns \\\\ into \\, and sed turns \\ into \).
7299 -e "s/'/'\\\\''/g" \
7300 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7303 # `set' quotes correctly as required by POSIX, so do not add quotes.
7304 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7307 if cmp -s $cache_file confcache
; then
7310 if test -w $cache_file; then
7311 echo "updating cache $cache_file"
7312 cat confcache
> $cache_file
7314 echo "not updating unwritable cache $cache_file"
7319 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7321 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7322 # Let make expand exec_prefix.
7323 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7325 # Any assignment to VPATH causes Sun make to only execute
7326 # the first set of double-colon rules, so remove it if not needed.
7327 # If there is a colon in the path, we need to keep it.
7328 if test "x$srcdir" = x.
; then
7329 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7332 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7334 # Transform confdefs.h into DEFS.
7335 # Protect against shell expansion while executing Makefile rules.
7336 # Protect against Makefile macro expansion.
7338 # If the first sed substitution is executed (which looks for macros that
7339 # take arguments), then we branch to the quote section. Otherwise,
7340 # look for a macro that doesn't take arguments.
7341 cat >confdef2opt.
sed <<\_ACEOF
7344 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
7346 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
7350 s
,[ `~#$^&*(){}\\|;'"<>?],\\&,g
7356 # We use echo to avoid assuming a particular line-breaking character.
7357 # The extra dot is to prevent the shell from consuming trailing
7358 # line-breaks from the sub-command output. A line-break within
7359 # single-quotes doesn't work because, if this script is created in a
7360 # platform that uses two characters for line-breaks (e.g., DOS), tr
7362 ac_LF_and_DOT=`echo; echo .
`
7363 DEFS=`sed -n -f confdef2opt.
sed confdefs.h |
tr "$ac_LF_and_DOT" ' .'`
7364 rm -f confdef2opt.sed
7367 # Without the "./", some shells look in PATH for config.status.
7368 : ${CONFIG_STATUS=./config.status}
7370 echo creating $CONFIG_STATUS
7371 rm -f $CONFIG_STATUS
7372 cat > $CONFIG_STATUS <<EOF
7374 # Generated automatically by configure.
7375 # Run this file to recreate the current configuration.
7376 # This directory was configured as follows,
7377 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
7379 # $0 $ac_configure_args
7381 # Compiler output produced by configure, useful for debugging
7382 # configure, is in ./config.log if it exists.
7384 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7387 case "\$ac_option" in
7388 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7389 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7390 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7391 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7392 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7394 -help | --help | --hel | --he | --h)
7395 echo "\$ac_cs_usage"; exit 0 ;;
7396 *) echo "\$ac_cs_usage"; exit 1 ;;
7400 ac_given_srcdir=$srcdir
7401 ac_given_INSTALL="$INSTALL"
7403 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7405 cat >> $CONFIG_STATUS <<EOF
7407 # Protect against being on the right side of a sed subst in config.status.
7408 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7409 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7413 s%@CFLAGS@%$CFLAGS%g
7414 s%@CPPFLAGS@%$CPPFLAGS%g
7415 s%@CXXFLAGS@%$CXXFLAGS%g
7416 s%@FFLAGS@%$FFLAGS%g
7418 s%@LDFLAGS@%$LDFLAGS%g
7420 s%@exec_prefix@%$exec_prefix%g
7421 s%@prefix@%$prefix%g
7422 s%@program_transform_name@%$program_transform_name%g
7423 s%@bindir@%$bindir%g
7424 s%@sbindir@%$sbindir%g
7425 s%@libexecdir@%$libexecdir%g
7426 s%@datadir@%$datadir%g
7427 s%@sysconfdir@%$sysconfdir%g
7428 s%@sharedstatedir@%$sharedstatedir%g
7429 s%@localstatedir@%$localstatedir%g
7430 s%@libdir@%$libdir%g
7431 s%@includedir@%$includedir%g
7432 s%@oldincludedir@%$oldincludedir%g
7433 s%@infodir@%$infodir%g
7434 s%@mandir@%$mandir%g
7436 s%@host_alias@%$host_alias%g
7437 s%@host_cpu@%$host_cpu%g
7438 s%@host_vendor@%$host_vendor%g
7439 s%@host_os@%$host_os%g
7440 s%@target@%$target%g
7441 s%@target_alias@%$target_alias%g
7442 s%@target_cpu@%$target_cpu%g
7443 s%@target_vendor@%$target_vendor%g
7444 s%@target_os@%$target_os%g
7446 s%@build_alias@%$build_alias%g
7447 s%@build_cpu@%$build_cpu%g
7448 s%@build_vendor@%$build_vendor%g
7449 s%@build_os@%$build_os%g
7450 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7451 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7452 s%@INSTALL_DATA@%$INSTALL_DATA%g
7455 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7456 s%@build_subdir@%$build_subdir%g
7457 s%@host_subdir@%$host_subdir%g
7458 s%@target_subdir@%$target_subdir%g
7460 s%@GNATBIND@%$GNATBIND%g
7461 s%@do_compare@%$do_compare%g
7462 s%@gmplibs@%$gmplibs%g
7463 s%@gmpinc@%$gmpinc%g
7464 s%@stage1_languages@%$stage1_languages%g
7465 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7466 /@serialization_dependencies@/r $serialization_dependencies
7467 s%@serialization_dependencies@%%g
7468 /@host_makefile_frag@/r $host_makefile_frag
7469 s%@host_makefile_frag@%%g
7470 /@target_makefile_frag@/r $target_makefile_frag
7471 s%@target_makefile_frag@%%g
7472 /@alphaieee_frag@/r $alphaieee_frag
7473 s%@alphaieee_frag@%%g
7474 /@ospace_frag@/r $ospace_frag
7476 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7477 s%@tooldir@%$tooldir%g
7478 s%@build_tooldir@%$build_tooldir%g
7479 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7480 s%@GDB_TK@%$GDB_TK%g
7481 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7482 s%@build_configargs@%$build_configargs%g
7483 s%@build_configdirs@%$build_configdirs%g
7484 s%@host_configargs@%$host_configargs%g
7485 s%@configdirs@%$configdirs%g
7486 s%@target_configargs@%$target_configargs%g
7487 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7488 s%@config_shell@%$config_shell%g
7494 s%@MAKEINFO@%$MAKEINFO%g
7495 s%@EXPECT@%$EXPECT%g
7496 s%@RUNTEST@%$RUNTEST%g
7499 s%@DLLTOOL@%$DLLTOOL%g
7503 s%@RANLIB@%$RANLIB%g
7505 s%@WINDRES@%$WINDRES%g
7506 s%@OBJCOPY@%$OBJCOPY%g
7507 s%@OBJDUMP@%$OBJDUMP%g
7509 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7510 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7511 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7512 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7513 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7514 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7515 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7516 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7517 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7518 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7519 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7520 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7521 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7522 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7523 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7524 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7525 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7526 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7527 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7528 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7529 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7530 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7531 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7533 s%@stage1_cflags@%$stage1_cflags%g
7534 s%@stage2_werror_flag@%$stage2_werror_flag%g
7535 s%@datarootdir@%$datarootdir%g
7536 s%@docdir@%$docdir%g
7537 s%@htmldir@%$htmldir%g
7542 cat >> $CONFIG_STATUS <<\EOF
7544 # Split the substitutions into bite-sized pieces for seds with
7545 # small command number limits, like on Digital OSF/1 and HP-UX.
7546 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7547 ac_file=1 # Number of current file.
7548 ac_beg=1 # First line for current file.
7549 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7552 while $ac_more_lines; do
7553 if test $ac_beg -gt 1; then
7554 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7556 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7558 if test ! -s conftest.s$ac_file; then
7560 rm -f conftest.s$ac_file
7562 if test -z "$ac_sed_cmds"; then
7563 ac_sed_cmds="sed -f conftest.s$ac_file"
7565 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7567 ac_file=`expr $ac_file + 1`
7569 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7572 if test -z "$ac_sed_cmds"; then
7577 cat >> $CONFIG_STATUS <<EOF
7579 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7581 cat >> $CONFIG_STATUS <<\EOF
7582 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7583 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7585 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
7586 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
7587 *) ac_file_in="${ac_file}.in" ;;
7590 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7592 # Remove last slash and all that follows it. Not all systems have dirname.
7593 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7594 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7595 # The file is in a subdirectory.
7596 test ! -d "$ac_dir" && mkdir "$ac_dir"
7597 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
7598 # A "../" for each directory in $ac_dir_suffix.
7599 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
7601 ac_dir_suffix= ac_dots=
7604 case "$ac_given_srcdir" in
7606 if test -z "$ac_dots"; then top_srcdir=.
7607 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
7608 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7610 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7611 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7614 case "$ac_given_INSTALL" in
7615 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7616 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7619 echo creating "$ac_file"
7621 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
7623 *Makefile*) ac_comsub="1i\\
7624 # $configure_input" ;;
7628 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7630 s%@configure_input@%$configure_input%g
7631 s%@srcdir@%$srcdir%g
7632 s%@top_srcdir@%$top_srcdir%g
7633 s%@INSTALL@%$INSTALL%g
7634 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7639 cat >> $CONFIG_STATUS <<EOF
7642 cat >> $CONFIG_STATUS <<\EOF
7646 chmod +x $CONFIG_STATUS
7647 rm -fr confdefs* $ac_clean_files
7648 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1