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 # Initialize some variables set by options.
48 # The variables have the same names as the options, with
49 # dashes changed to underlines.
51 cache_file
=.
/config.cache
60 program_transform_name
=s
,x
,x
,
68 bindir
='${exec_prefix}/bin'
69 sbindir
='${exec_prefix}/sbin'
70 libexecdir
='${exec_prefix}/libexec'
71 datadir
='${prefix}/share'
72 sysconfdir
='${prefix}/etc'
73 sharedstatedir
='${prefix}/com'
74 localstatedir
='${prefix}/var'
75 libdir
='${exec_prefix}/lib'
76 includedir
='${prefix}/include'
77 oldincludedir
='/usr/include'
78 infodir
='${prefix}/info'
79 mandir
='${prefix}/man'
81 # Initialize some other variables.
84 SHELL
=${CONFIG_SHELL-/bin/sh}
85 # Maximum number of lines to put in a shell here document.
92 # If the previous option needs an argument, assign it.
93 if test -n "$ac_prev"; then
94 eval "$ac_prev=\$ac_option"
100 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104 # Accept the important Cygnus configure options, so we can diagnose typos.
108 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
110 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
111 bindir
="$ac_optarg" ;;
113 -build |
--build |
--buil |
--bui |
--bu)
115 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
116 build
="$ac_optarg" ;;
118 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
119 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
120 ac_prev
=cache_file
;;
121 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
122 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
123 cache_file
="$ac_optarg" ;;
125 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
127 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
129 datadir
="$ac_optarg" ;;
131 -disable-* |
--disable-*)
132 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
140 -enable-* |
--enable-*)
141 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}='$ac_optarg'" ;;
153 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
154 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
155 |
--exec |
--exe |
--ex)
156 ac_prev
=exec_prefix
;;
157 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
158 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
159 |
--exec=* |
--exe=* |
--ex=*)
160 exec_prefix
="$ac_optarg" ;;
162 -gas |
--gas |
--ga |
--g)
163 # Obsolete; use --with-gas.
166 -help |
--help |
--hel |
--he)
167 # Omit some internal or obsolete options to make the list less imposing.
168 # This message is too long to be a string in the A/UX 3.1 sh.
170 Usage: configure [options] [host]
171 Options: [defaults in brackets after descriptions]
173 --cache-file=FILE cache test results in FILE
174 --help print this message
175 --no-create do not create output files
176 --quiet, --silent do not print \`checking...' messages
177 --version print the version of autoconf that created configure
178 Directory and file names:
179 --prefix=PREFIX install architecture-independent files in PREFIX
181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
183 --bindir=DIR user executables in DIR [EPREFIX/bin]
184 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
185 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
186 --datadir=DIR read-only architecture-independent data in DIR
188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
189 --sharedstatedir=DIR modifiable architecture-independent data in DIR
191 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
192 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
193 --includedir=DIR C header files in DIR [PREFIX/include]
194 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
195 --infodir=DIR info documentation in DIR [PREFIX/info]
196 --mandir=DIR man documentation in DIR [PREFIX/man]
197 --srcdir=DIR find the sources in DIR [configure dir or ..]
198 --program-prefix=PREFIX prepend PREFIX to installed program names
199 --program-suffix=SUFFIX append SUFFIX to installed program names
200 --program-transform-name=PROGRAM
201 run sed PROGRAM on installed program names
205 --build=BUILD configure for building on BUILD [BUILD=HOST]
206 --host=HOST configure for HOST [guessed]
207 --target=TARGET configure for TARGET [TARGET=HOST]
208 Features and packages:
209 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
210 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
213 --x-includes=DIR X include files are in DIR
214 --x-libraries=DIR X library files are in DIR
216 if test -n "$ac_help"; then
217 echo "--enable and --with options recognized:$ac_help"
221 -host |
--host |
--hos |
--ho)
223 -host=* |
--host=* |
--hos=* |
--ho=*)
226 -includedir |
--includedir |
--includedi |
--included |
--include \
227 |
--includ |
--inclu |
--incl |
--inc)
228 ac_prev
=includedir
;;
229 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
230 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
231 includedir
="$ac_optarg" ;;
233 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
235 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
236 infodir
="$ac_optarg" ;;
238 -libdir |
--libdir |
--libdi |
--libd)
240 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
241 libdir
="$ac_optarg" ;;
243 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
244 |
--libexe |
--libex |
--libe)
245 ac_prev
=libexecdir
;;
246 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
247 |
--libexe=* |
--libex=* |
--libe=*)
248 libexecdir
="$ac_optarg" ;;
250 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
251 |
--localstate |
--localstat |
--localsta |
--localst \
252 |
--locals |
--local |
--loca |
--loc |
--lo)
253 ac_prev
=localstatedir
;;
254 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
255 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
256 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
257 localstatedir
="$ac_optarg" ;;
259 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
261 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
262 mandir
="$ac_optarg" ;;
265 # Obsolete; use --without-fp.
268 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
272 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
273 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
276 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
277 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
278 |
--oldin |
--oldi |
--old |
--ol |
--o)
279 ac_prev
=oldincludedir
;;
280 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
281 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
282 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
283 oldincludedir
="$ac_optarg" ;;
285 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
287 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
288 prefix
="$ac_optarg" ;;
290 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
291 |
--program-pre |
--program-pr |
--program-p)
292 ac_prev
=program_prefix
;;
293 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
294 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
295 program_prefix
="$ac_optarg" ;;
297 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
298 |
--program-suf |
--program-su |
--program-s)
299 ac_prev
=program_suffix
;;
300 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
301 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
302 program_suffix
="$ac_optarg" ;;
304 -program-transform-name |
--program-transform-name \
305 |
--program-transform-nam |
--program-transform-na \
306 |
--program-transform-n |
--program-transform- \
307 |
--program-transform |
--program-transfor \
308 |
--program-transfo |
--program-transf \
309 |
--program-trans |
--program-tran \
310 |
--progr-tra |
--program-tr |
--program-t)
311 ac_prev
=program_transform_name
;;
312 -program-transform-name=* |
--program-transform-name=* \
313 |
--program-transform-nam=* |
--program-transform-na=* \
314 |
--program-transform-n=* |
--program-transform-=* \
315 |
--program-transform=* |
--program-transfor=* \
316 |
--program-transfo=* |
--program-transf=* \
317 |
--program-trans=* |
--program-tran=* \
318 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
319 program_transform_name
="$ac_optarg" ;;
321 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
322 |
-silent |
--silent |
--silen |
--sile |
--sil)
325 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
327 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
329 sbindir
="$ac_optarg" ;;
331 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
332 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
333 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
335 ac_prev
=sharedstatedir
;;
336 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
337 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
338 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
340 sharedstatedir
="$ac_optarg" ;;
342 -site |
--site |
--sit)
344 -site=* |
--site=* |
--sit=*)
347 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
349 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
350 srcdir
="$ac_optarg" ;;
352 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
353 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
354 ac_prev
=sysconfdir
;;
355 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
356 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
357 sysconfdir
="$ac_optarg" ;;
359 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
361 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
362 target
="$ac_optarg" ;;
364 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
367 -version |
--version |
--versio |
--versi |
--vers)
368 echo "configure generated by autoconf version 2.13"
372 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package
=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* |
--without-*)
385 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package
=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
397 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
398 |
--x-incl |
--x-inc |
--x-in |
--x-i)
399 ac_prev
=x_includes
;;
400 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
401 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
402 x_includes
="$ac_optarg" ;;
404 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
405 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
406 ac_prev
=x_libraries
;;
407 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
408 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
409 x_libraries
="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE
; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
459 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
460 |
--no-cr |
--no-c) ;;
461 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
462 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
463 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest
* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file
=move-if-change
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted
=yes
491 # Try the directory containing this script, then its parent.
493 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted
=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$CONFIG_SITE"; then
513 if test "x$prefix" != xNONE
; then
514 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
516 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 for ac_site_file
in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp
='$CPP $CPPFLAGS'
537 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling
=$ac_cv_prog_cc_cross
543 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
552 ac_n
= ac_c
='\c' ac_t
=
558 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
559 if test -f $ac_dir/install-sh
; then
561 ac_install_sh
="$ac_aux_dir/install-sh -c"
563 elif test -f $ac_dir/install.sh
; then
565 ac_install_sh
="$ac_aux_dir/install.sh -c"
569 if test -z "$ac_aux_dir"; then
570 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
572 ac_config_guess
=$ac_aux_dir/config.guess
573 ac_config_sub
=$ac_aux_dir/config.sub
574 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
577 # Do some error checking and defaulting for the host and target type.
579 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 # as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
607 case "$host_alias" in
611 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
614 *) host_alias
=$nonopt ;;
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
628 case "$target_alias" in
631 NONE
) target_alias
=$host_alias ;;
632 *) target_alias
=$nonopt ;;
636 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$target" 1>&6
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
646 case "$build_alias" in
649 NONE
) build_alias
=$host_alias ;;
650 *) build_alias
=$nonopt ;;
654 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$build" 1>&6
660 test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
663 program_prefix
=${target_alias}-
665 if test "$program_transform_name" = s
,x
,x
,; then
666 program_transform_name
=
668 # Double any \ or $. echo might interpret backslashes.
669 cat <<\EOF_SED
> conftestsed
670 s
,\\,\\\\,g
; s
,\$
,$$
,g
672 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
675 test "$program_prefix" != NONE
&&
676 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
677 # Use a double $ so make ignores it.
678 test "$program_suffix" != NONE
&&
679 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
681 # sed with no file args requires a program.
682 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
685 # Get 'install' or 'install-sh' and its variants.
686 # Find a good install program. We prefer a C program (faster),
687 # so one script is as good as another. But avoid the broken or
688 # incompatible versions:
689 # SysV /etc/install, /usr/sbin/install
690 # SunOS /usr/etc/install
693 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
694 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
695 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
696 # ./install, which can be erroneously created by make from ./install.sh.
697 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
698 echo "configure:699: checking for a BSD compatible install" >&5
699 if test -z "$INSTALL"; then
700 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
703 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
704 for ac_dir
in $PATH; do
705 # Account for people who put trailing slashes in PATH elements.
707 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
709 # OSF1 and SCO ODT 3.0 have their own names for install.
710 # Don't use installbsd from OSF since it installs stuff as root
712 for ac_prog
in ginstall scoinst
install; do
713 if test -f $ac_dir/$ac_prog; then
714 if test $ac_prog = install &&
715 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
716 # AIX install. It has an incompatible calling convention.
719 ac_cv_path_install
="$ac_dir/$ac_prog -c"
730 if test "${ac_cv_path_install+set}" = set; then
731 INSTALL
="$ac_cv_path_install"
733 # As a last resort, use the slow shell script. We don't cache a
734 # path for INSTALL within a source directory, because that will
735 # break other packages using the cache if that directory is
736 # removed, or if the path is relative.
737 INSTALL
="$ac_install_sh"
740 echo "$ac_t""$INSTALL" 1>&6
742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
743 # It thinks the first close brace ends the variable substitution.
744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
748 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
750 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
751 echo "configure:752: checking whether ln works" >&5
752 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
757 if ln conftestdata_f conftestdata_t
2>/dev
/null
763 rm -f conftestdata_f conftestdata_t
766 if test $acx_cv_prog_LN = no
; then
768 echo "$ac_t""no, using $LN" 1>&6
771 echo "$ac_t""yes" 1>&6
774 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
775 echo "configure:776: checking whether ln -s works" >&5
776 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
780 if ln -s X conftestdata
2>/dev
/null
783 ac_cv_prog_LN_S
="ln -s"
788 LN_S
="$ac_cv_prog_LN_S"
789 if test "$ac_cv_prog_LN_S" = "ln -s"; then
790 echo "$ac_t""yes" 1>&6
792 echo "$ac_t""no" 1>&6
796 ### we might need to use some other shell than /bin/sh for running subshells
797 ### If we are on Windows, search for the shell. This will permit people
798 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
799 ### without also having to set CONFIG_SHELL. This code will work when
800 ### using bash, which sets OSTYPE.
803 if test x
${CONFIG_SHELL} = x
; then
804 if test ! -f /bin
/sh
; then
805 if test x
${SHELL} != x
&& test -f ${SHELL} ; then
806 CONFIG_SHELL
=${SHELL}
809 for prog
in sh sh.exe bash bash.exe
; do
810 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
812 test -z "$dir" && dir
=.
813 if test -f $dir/$prog; then
814 CONFIG_SHELL
=$dir/$prog
820 test -n "${CONFIG_SHELL}" && break
828 config_shell
=${CONFIG_SHELL-/bin/sh}
831 # if PWD already has a value, it is probably wrong.
832 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
834 # Export original configure arguments for use by sub-configures. These
835 # will be expanded by make, so quote '$'.
837 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
840 TOPLEVEL_CONFIGURE_ARGUMENTS
=`cat conftestsed.out`
841 rm -f conftestsed.out
844 moveifchange
=${srcdir}/move-if-change
846 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
848 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
850 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
851 INSTALL
="${srcpwd}/install-sh -c"
854 # Set srcdir to "." if that's what it is.
855 # This is important for multilib support.
857 if test "${pwd}" = "${srcpwd}" ; then
865 ### To add a new directory to the tree, first choose whether it is a target
866 ### or a host dependent tool. Then put it into the appropriate list
867 ### (library or tools, host or target), doing a dependency sort.
869 # Subdirs will be configured in the order listed in build_configdirs,
870 # configdirs, or target_configdirs; see the serialization section below.
872 # Dependency sorting is only needed when *configuration* must be done in
873 # a particular order. In all cases a dependency should be specified in
874 # the Makefile, whether or not it's implicitly specified here.
876 # Double entries in build_configdirs, configdirs, or target_configdirs may
877 # cause circular dependencies and break everything horribly.
879 # these library is used by various programs built for the build
882 build_libs
="build-libiberty"
884 # these tools are built for the build environment
885 build_tools
="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
887 # these libraries are used by various programs built for the host environment
889 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
891 # these tools are built for the host environment
892 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
893 # know that we are building the simulator.
894 # binutils, gas and ld appear in that order because it makes sense to run
895 # "make check" in that particular order.
896 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"
898 # libgcj represents the runtime libraries only used by gcj.
899 libgcj
="target-libffi \
905 # these libraries are built for the target environment, and are built after
906 # the host libraries and the host tools (which may be a cross compiler)
908 target_libraries
="target-libiberty \
911 target-libstdc++-v3 \
921 # these tools are built using the target libraries, and are intended to
922 # run only in the target environment
924 # note: any program that *uses* libraries that are in the "target_libraries"
925 # list belongs in this list. those programs are also very likely
926 # candidates for the "native_only" list which follows
928 target_tools
="target-examples target-groff target-gperf target-rda"
930 ################################################################################
932 ## All tools belong in one of the four categories, and are assigned above
933 ## We assign ${configdirs} this way to remove all embedded newlines. This
934 ## is important because configure will choke if they ever get through.
935 ## ${configdirs} is directories we build using the host tools.
936 ## ${target_configdirs} is directories we build using the target tools.
937 configdirs
=`echo ${host_libs} ${host_tools}`
938 target_configdirs
=`echo ${target_libraries} ${target_tools}`
939 build_configdirs
=`echo ${build_libs} ${build_tools}`
941 ################################################################################
943 srcname
="gnu development package"
945 # This gets set non-empty for some net releases of packages.
948 # Define is_cross_compiler to save on calls to 'test'.
950 if test x
"${host}" = x
"${target}" ; then
953 is_cross_compiler
=yes
956 # Find the build and target subdir names.
957 case ${build_alias} in
958 "") build_noncanonical
=${build} ;;
959 *) build_noncanonical
=${build_alias} ;;
962 case ${host_alias} in
963 "") host_noncanonical
=${build_noncanonical} ;;
964 *) host_noncanonical
=${host_alias} ;;
967 case ${target_alias} in
968 "") target_noncanonical
=${host_noncanonical} ;;
969 *) target_noncanonical
=${target_alias} ;;
972 # Prefix 'build-' so this never conflicts with target_subdir.
973 build_subdir
="build-${build_noncanonical}"
974 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
975 if ( test $srcdir = .
&& test -d gcc
) \
976 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
977 host_subdir
="host-${host_noncanonical}"
982 target_subdir
=${target_noncanonical}
985 # Skipdirs are removed silently.
987 # Noconfigdirs are removed loudly.
991 # Make sure we don't let GNU ld be added if we didn't want it.
992 if test x
$with_gnu_ld = xno
; then
994 noconfigdirs
="$noconfigdirs ld"
998 # Make sure we don't let GNU as be added if we didn't want it.
999 if test x
$with_gnu_as = xno
; then
1001 noconfigdirs
="$noconfigdirs gas"
1004 # some tools are so dependent upon X11 that if we're not building with X,
1005 # it's not even worth trying to configure, much less build, that tool.
1008 yes |
"") ;; # the default value for this tree is that X11 is available
1010 skipdirs
="${skipdirs} tk itcl libgui"
1011 # We won't be able to build gdbtk without X.
1014 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1017 # Some tools are only suitable for building in a "native" situation.
1018 # Remove these if host!=target.
1019 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"
1021 # Similarly, some are only suitable for cross toolchains.
1022 # Remove these if host=target.
1023 cross_only
="target-libgloss target-newlib target-opcodes"
1025 case $is_cross_compiler in
1026 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1027 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1030 # If both --with-headers and --with-libs are specified, default to
1032 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
1033 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
1034 if test x
"${with_newlib}" = x
; then
1039 # Recognize --with-newlib/--without-newlib.
1040 case ${with_newlib} in
1041 no
) skipdirs
="${skipdirs} target-newlib" ;;
1042 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1045 # Configure extra directories which are host specific
1049 configdirs
="$configdirs libtermcap" ;;
1052 # A target can indicate whether a language isn't supported for some reason.
1053 # Only spaces may be used in this macro; not newlines or tabs.
1054 unsupported_languages
=
1056 # Remove more programs from consideration, based on the host or
1057 # target this usually means that a port of the program doesn't
1062 noconfigdirs
="$noconfigdirs byacc"
1064 i
[3456789]86-*-vsta)
1065 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1067 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1068 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1070 i
[3456789]86-*-mingw32*)
1071 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1072 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1074 i
[3456789]86-*-beos*)
1075 noconfigdirs
="$noconfigdirs tk itcl libgui gdb"
1078 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1081 noconfigdirs
="$noconfigdirs rcs"
1084 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1087 noconfigdirs
="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1092 # Check whether --enable-libada or --disable-libada was given.
1093 if test "${enable_libada+set}" = set; then
1094 enableval
="$enable_libada"
1095 ENABLE_LIBADA
=$enableval
1100 if test "${ENABLE_LIBADA}" != "yes" ; then
1101 noconfigdirs
="$noconfigdirs target-libada"
1102 noconfigdirs
="$noconfigdirs gnattools"
1105 # Check whether --enable-libssp or --disable-libssp was given.
1106 if test "${enable_libssp+set}" = set; then
1107 enableval
="$enable_libssp"
1108 ENABLE_LIBSSP
=$enableval
1113 if test "${ENABLE_LIBSSP}" != "yes" ; then
1114 noconfigdirs
="$noconfigdirs target-libssp"
1117 # Set the default so we build libgcc-math for ix86 and x86_64
1118 # Check whether --enable-libgcc-math or --disable-libgcc-math was given.
1119 if test "${enable_libgcc_math+set}" = set; then
1120 enableval
="$enable_libgcc_math"
1126 enable_libgcc_math
=yes ;;
1128 enable_libgcc_math
=no
;;
1133 if test "${enable_libgcc_math}" != "yes"; then
1134 noconfigdirs
="$noconfigdirs target-libgcc-math"
1137 # Save it here so that, even in case of --enable-libgcj, if the Java
1138 # front-end isn't enabled, we still get libgcj disabled.
1139 libgcj_saved
=$libgcj
1140 case $enable_libgcj in
1142 # If we reset it here, it won't get added to noconfigdirs in the
1143 # target-specific build rules, so it will be forcibly enabled
1144 # (unless the Java language itself isn't enabled).
1148 # Make sure we get it printed in the list of not supported target libs.
1149 noconfigdirs
="$noconfigdirs ${libgcj}"
1154 # Allow --disable-libmudflap to exclude target-libmudflap
1155 case $enable_libmudflap in
1159 noconfigdirs
="$noconfigdirs target-libmudflap"
1163 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1164 # Enable libmudflap by default in GNU and friends.
1167 # Enable libmudflap by default in FreeBSD.
1170 # Disable it by default everywhere else.
1171 noconfigdirs
="$noconfigdirs target-libmudflap"
1176 # Allow --disable-libgomp to exclude target-libgomp
1177 case $enable_libgomp in
1181 noconfigdirs
="$noconfigdirs target-libgomp"
1184 # Enable libgomp by default on hosted POSIX systems.
1186 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1188 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd*)
1190 *-*-solaris2* |
*-*-sysv4* |
*-*-irix* |
*-*-osf* |
*-*-hpux*)
1192 *-*-darwin* |
*-*-aix*)
1195 noconfigdirs
="$noconfigdirs target-libgomp"
1203 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1206 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1207 noconfigdirs
="$noconfigdirs sim target-rda"
1210 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
1211 noconfigdirs
="$noconfigdirs sim target-rda"
1212 noconfigdirs
="$noconfigdirs ${libgcj}"
1214 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1215 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1218 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1219 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1220 && test -f /usr
/local
/include
/gmp.h
; then
1224 # Skip some stuff that's unsupported on some FreeBSD configurations.
1229 noconfigdirs
="$noconfigdirs ${libgcj}"
1234 # Remove unsupported stuff on all kaOS configurations.
1235 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1236 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1237 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1238 noconfigdirs
="$noconfigdirs target-libgloss"
1241 # Skip some stuff on all NetBSD configurations.
1242 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1244 # Skip some stuff that's unsupported on some NetBSD configurations.
1246 i
*86-*-netbsdelf*) ;;
1247 arm
*-*-netbsdelf*) ;;
1249 noconfigdirs
="$noconfigdirs ${libgcj}"
1254 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1257 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1259 # The tpf target doesn't support gdb yet.
1261 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1264 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1267 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1270 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1273 # ld works, but does not support shared libraries.
1274 # newlib is not 64 bit ready. I'm not sure about fileutils.
1275 # gas doesn't generate exception information.
1276 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1279 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1282 # newlib is not 64 bit ready
1283 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1286 # newlib is not 64 bit ready
1287 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1290 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1293 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1295 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1296 noconfigdirs
="$noconfigdirs ${libgcj}"
1297 noconfigdirs
="$noconfigdirs target-examples"
1298 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1299 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
1300 noconfigdirs
="$noconfigdirs expect dejagnu"
1301 # the C++ libraries don't build on top of CE's C libraries
1302 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1303 noconfigdirs
="$noconfigdirs target-newlib"
1305 *-*-cygwin*) ;; # keep gdb and readline
1306 *) noconfigdirs
="$noconfigdirs gdb readline"
1311 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1315 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1316 noconfigdirs
="$noconfigdirs ${libgcj}"
1318 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
1319 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1321 arm
*-*-linux-gnueabi)
1322 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1323 noconfigdirs
="$noconfigdirs target-libjava target-libobjc"
1326 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1329 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1332 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1335 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1338 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1341 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1344 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1347 noconfigdirs
="$noconfigdirs target-libgloss gdb"
1348 if test x
${is_cross_compiler} != xno
; then
1349 target_configdirs
="${target_configdirs} target-bsp target-cygmon"
1352 c4x-
*-* | tic4x-
*-*)
1353 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1355 c54x
*-*-* | tic54x-
*-*)
1356 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1358 cris-
*-* | crisv32-
*-*)
1359 unsupported_languages
="$unsupported_languages java"
1362 unsupported_languages
="$unsupported_languages fortran"
1363 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
1365 unsupported_languages
="$unsupported_languages fortran"
1366 noconfigdirs
="$noconfigdirs target-boehm-gc";;
1368 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
1370 unsupported_languages
="$unsupported_languages fortran"
1371 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1375 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1378 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1381 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1384 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1387 noconfigdirs
="$noconfigdirs ${libgcj}"
1390 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1393 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1395 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
1397 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1398 # In this case, it's because the hppa64-linux target is for
1399 # the kernel only at this point and has no libc, and thus no
1400 # headers, crt*.o, etc., all of which are needed by these.
1401 noconfigdirs
="$noconfigdirs target-zlib"
1403 parisc
*-*-linux* | hppa
*-*-linux*)
1407 hppa
*-*-openbsd* | \
1409 noconfigdirs
="$noconfigdirs ${libgcj}"
1412 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1413 # build on HP-UX 10.20.
1414 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1417 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1420 # No gdb support yet.
1421 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
1424 # No gdb or ld support yet.
1425 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1429 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1430 noconfigdirs
="$noconfigdirs ${libgcj}"
1432 i
[3456789]86-*-linux*)
1433 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1434 # not build java stuff by default.
1437 noconfigdirs
="$noconfigdirs ${libgcj}";;
1440 # This section makes it possible to build newlib natively on linux.
1441 # If we are using a cross compiler then don't configure newlib.
1442 if test x
${is_cross_compiler} != xno
; then
1443 noconfigdirs
="$noconfigdirs target-newlib"
1445 noconfigdirs
="$noconfigdirs target-libgloss"
1446 # If we are not using a cross compiler, do configure newlib.
1447 # Note however, that newlib will only be configured in this situation
1448 # if the --with-newlib option has been given, because otherwise
1449 # 'target-newlib' will appear in skipdirs.
1451 i
[3456789]86-*-mingw32*)
1452 target_configdirs
="$target_configdirs target-mingw"
1453 noconfigdirs
="$noconfigdirs expect target-libgloss ${libgcj}"
1455 # Can't build gdb for mingw32 if not native.
1457 i
[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1458 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1463 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1464 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1465 # always build newlib if winsup directory is present.
1466 if test -d "$srcdir/winsup"; then
1467 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1468 elif test -d "$srcdir/newlib"; then
1469 echo "Warning: winsup is missing so newlib can't be built."
1472 # Can't build gdb for Cygwin if not native.
1474 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1475 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1479 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
1480 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
1483 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1485 i
[3456789]86-*-sco3.2v5
*)
1486 # The linker does not yet know about weak symbols in COFF,
1487 # and is not configured to handle mixed ELF and COFF.
1488 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1490 i
[3456789]86-*-sco*)
1491 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1493 i
[3456789]86-*-solaris2*)
1494 noconfigdirs
="$noconfigdirs target-libgloss"
1496 i
[3456789]86-*-sysv4*)
1497 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1499 i
[3456789]86-*-beos*)
1500 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1502 i
[3456789]86-*-rdos*)
1503 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1506 noconfigdirs
="$noconfigdirs ${libgcj}"
1508 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1509 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1512 noconfigdirs
="$noconfigdirs ${libgcj}"
1515 noconfigdirs
="$noconfigdirs ${libgcj}"
1518 # The EPOC C++ environment does not support exceptions or rtti,
1519 # and so building libstdc++-v3 tends not to always work.
1520 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1523 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1524 unsupported_languages
="$unsupported_languages fortran java"
1527 noconfigdirs
="$noconfigdirs ${libgcj}"
1530 noconfigdirs
="$noconfigdirs ${libgcj}"
1533 noconfigdirs
="$noconfigdirs sim"
1536 # copied from rs6000-*-* entry
1537 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1539 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1540 target_configdirs
="$target_configdirs target-winsup"
1541 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1542 # always build newlib.
1543 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1545 # This is temporary until we can link against shared libraries
1546 powerpcle-
*-solaris*)
1547 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1550 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1553 noconfigdirs
="$noconfigdirs ${libgcj}"
1555 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
1558 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1561 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1564 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1567 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1570 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1573 # Linking libjava exceeds command-line length limits on at least
1574 # IRIX 6.2, but not on IRIX 6.5.
1575 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1576 # <oldham@codesourcery.com>
1577 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1580 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1583 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1586 noconfigdirs
="$noconfigdirs gprof ${libgcj}" # same as generic mips
1589 noconfigdirs
="$noconfigdirs target-newlib ${libgcj}"
1592 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1595 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1598 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1602 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1603 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1604 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1605 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1607 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1610 noconfigdirs
="$noconfigdirs ${libgcj}"
1613 noconfigdirs
="$noconfigdirs ${libgcj}"
1616 noconfigdirs
="$noconfigdirs ${libgcj}"
1619 noconfigdirs
="$noconfigdirs ${libgcj}"
1620 if test x
${is_cross_compiler} != xno
; then
1621 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1626 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
1627 noconfigdirs
="$noconfigdirs ${libgcj}"
1629 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1632 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1635 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1638 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1641 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1644 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1647 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1650 noconfigdirs
="$noconfigdirs ${libgcj}"
1653 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1655 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1656 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1659 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1662 noconfigdirs
="$noconfigdirs ${libgcj}"
1666 # If we aren't building newlib, then don't build libgloss, since libgloss
1667 # depends upon some newlib header files.
1668 case "${noconfigdirs}" in
1669 *target-libgloss
*) ;;
1670 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1673 # Work in distributions that contain no compiler tools, like Autoconf.
1675 host_makefile_frag
=/dev
/null
1676 if test -d ${srcdir}/config
; then
1679 # Avoid "too much defining" errors from HPUX compiler.
1680 tentative_cc
="cc -Wp,-H256000"
1681 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1682 # If it's HP/UX ar, this should be harmless.
1686 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1689 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1690 # chokes on bfd, the compiler won't let you assign integers to enums, and
1691 # other problems. Defining CC to gcc is a questionable way to say "don't use
1692 # the apollo compiler" (the preferred version of GCC could be called cc,
1693 # or whatever), but I'm not sure leaving CC as cc is any better...
1694 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1695 # Used to have BISON=yacc.
1699 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1702 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1703 tentative_cc
="cc -Xa"
1704 host_makefile_frag
="config/mh-cxux"
1706 m88k-motorola-sysv
*)
1709 tentative_cc
="cc -Wf,-XNg1000"
1710 host_makefile_frag
="config/mh-decstation"
1713 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1714 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1715 host_makefile_frag
="config/mh-necv4"
1718 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1719 # environment. Also bump switch table size so that cp-parse will
1720 # compile. Bump string length limit so linker builds.
1721 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1724 host_makefile_frag
="config/mh-sysv4"
1727 # This is for a MIPS running RISC/os 4.52C.
1729 # This is needed for GDB, but needs to be in the top-level make because
1730 # if a library is compiled with the bsd headers and gets linked with the
1731 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1732 # a different size).
1733 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1734 # known except to select the sysv environment. Could we use /proc instead?
1735 # These "sysv environments" and "bsd environments" often end up being a pain.
1737 # This is not part of CFLAGS because perhaps not all C compilers have this
1739 tentative_cc
="cc -systype sysv"
1744 i
[3456789]86-*-sysv5*)
1745 host_makefile_frag
="config/mh-sysv5"
1747 i
[3456789]86-*-dgux*)
1748 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1749 host_makefile_frag
="config/mh-dgux386"
1751 i
[3456789]86-ncr-sysv4.3
*)
1752 # The MetaWare compiler will generate a copyright message unless you
1753 # turn it off by adding the -Hnocopyr flag.
1754 tentative_cc
="cc -Hnocopyr"
1756 i
[3456789]86-ncr-sysv4*)
1757 # for an NCR 3000 (i486/SVR4) system.
1758 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1759 # This compiler not only emits obnoxious copyright messages every time
1760 # you run it, but it chokes and dies on a whole bunch of GNU source
1761 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1762 tentative_cc
="/usr/ccs/ATT/cc"
1763 host_makefile_frag
="config/mh-ncr3000"
1765 i
[3456789]86-*-sco3.2v5
*)
1767 i
[3456789]86-*-sco*)
1768 # The native C compiler botches some simple uses of const. Unfortunately,
1769 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1770 tentative_cc
="cc -Dconst="
1771 host_makefile_frag
="config/mh-sco"
1773 i
[3456789]86-*-udk*)
1774 host_makefile_frag
="config/mh-sysv5"
1776 i
[3456789]86-*-solaris2*)
1777 host_makefile_frag
="config/mh-sysv4"
1779 i
[3456789]86-*-msdosdjgpp*)
1780 host_makefile_frag
="config/mh-djgpp"
1783 host_makefile_frag
="config/mh-cygwin"
1788 host_makefile_frag
="config/mh-interix"
1791 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1795 host_makefile_frag
="config/mh-solaris"
1798 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1799 # without overflowing the jump tables (-J says to use a 32 bit table)
1800 tentative_cc
="cc -J"
1803 tentative_cc
="cc -Wp,-H256000"
1806 tentative_cc
="cc -Wp,-H256000"
1809 # /bin/cc is less than useful for our purposes. Always use GCC
1810 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1811 host_makefile_frag
="config/mh-lynxrs6k"
1814 host_makefile_frag
="config/mh-ppc-darwin"
1817 host_makefile_frag
="config/mh-ppc-aix"
1820 host_makefile_frag
="config/mh-ppc-aix"
1823 # /bin/cc is less than useful for our purposes. Always use GCC
1824 tentative_cc
="/bin/gcc"
1827 host_makefile_frag
="config/mh-sysv4"
1829 # This is placed last to prevent interfering with the cases above.
1831 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1832 host_makefile_frag
="config/mh-x86omitfp"
1837 # If we aren't going to be using gcc, see if we can extract a definition
1838 # of CC from the fragment.
1839 # Actually, use the 'pre-extracted' version above.
1840 if test -z "${CC}" && test "${build}" = "${host}" ; then
1841 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1843 for dir
in $PATH; do
1844 test -z "$dir" && dir
=.
1845 if test -f $dir/gcc
; then
1851 if test -z "${found}" && test -n "${tentative_cc}" ; then
1856 if test "${build}" != "${host}" ; then
1857 # If we are doing a Canadian Cross, in which the host and build systems
1858 # are not the same, we set reasonable default values for the tools.
1860 CC
=${CC-${host_alias}-gcc}
1861 CFLAGS
=${CFLAGS-"-g -O2"}
1862 CXX
=${CXX-${host_alias}-c++}
1863 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1864 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1865 BUILD_PREFIX
=${build_alias}-
1866 BUILD_PREFIX_1
=${build_alias}-
1869 # Set reasonable default values for some tools even if not Canadian.
1870 # Of course, these are different reasonable default values, originally
1871 # specified directly in the Makefile.
1872 # We don't export, so that autoconf can do its job.
1873 # Note that all these settings are above the fragment inclusion point
1874 # in Makefile.in, so can still be overridden by fragments.
1875 # This is all going to change when we autoconfiscate...
1877 CC_FOR_BUILD
="\$(CC)"
1879 BUILD_PREFIX_1
=loser-
1881 # Extract the first word of "gcc", so it can be a program name with args.
1882 set dummy gcc
; ac_word
=$2
1883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1884 echo "configure:1885: checking for $ac_word" >&5
1885 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1888 if test -n "$CC"; then
1889 ac_cv_prog_CC
="$CC" # Let the user override the test.
1891 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1893 for ac_dir
in $ac_dummy; do
1894 test -z "$ac_dir" && ac_dir
=.
1895 if test -f $ac_dir/$ac_word; then
1904 if test -n "$CC"; then
1905 echo "$ac_t""$CC" 1>&6
1907 echo "$ac_t""no" 1>&6
1910 if test -z "$CC"; then
1911 # Extract the first word of "cc", so it can be a program name with args.
1912 set dummy cc
; ac_word
=$2
1913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1914 echo "configure:1915: checking for $ac_word" >&5
1915 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6
1918 if test -n "$CC"; then
1919 ac_cv_prog_CC
="$CC" # Let the user override the test.
1921 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1924 for ac_dir
in $ac_dummy; do
1925 test -z "$ac_dir" && ac_dir
=.
1926 if test -f $ac_dir/$ac_word; then
1927 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1928 ac_prog_rejected
=yes
1936 if test $ac_prog_rejected = yes; then
1937 # We found a bogon in the path, so make sure we never use it.
1938 set dummy
$ac_cv_prog_CC
1940 if test $# -gt 0; then
1941 # We chose a different compiler from the bogus one.
1942 # However, it has the same basename, so the bogon will be chosen
1943 # first if we set CC to just the basename; use the full file name.
1945 set dummy
"$ac_dir/$ac_word" "$@"
1953 if test -n "$CC"; then
1954 echo "$ac_t""$CC" 1>&6
1956 echo "$ac_t""no" 1>&6
1959 if test -z "$CC"; then
1960 case "`uname -s`" in
1962 # Extract the first word of "cl", so it can be a program name with args.
1963 set dummy cl
; ac_word
=$2
1964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1965 echo "configure:1966: checking for $ac_word" >&5
1966 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1969 if test -n "$CC"; then
1970 ac_cv_prog_CC
="$CC" # Let the user override the test.
1972 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1974 for ac_dir
in $ac_dummy; do
1975 test -z "$ac_dir" && ac_dir
=.
1976 if test -f $ac_dir/$ac_word; then
1985 if test -n "$CC"; then
1986 echo "$ac_t""$CC" 1>&6
1988 echo "$ac_t""no" 1>&6
1993 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1996 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1997 echo "configure:1998: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2000 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2001 ac_cpp
='$CPP $CPPFLAGS'
2002 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2003 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2004 cross_compiling
=$ac_cv_prog_cc_cross
2006 cat > conftest.
$ac_ext << EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2013 if { (eval echo configure
:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2014 ac_cv_prog_cc_works
=yes
2015 # If we can't run a trivial program, we are probably using a cross compiler.
2016 if (.
/conftest
; exit) 2>/dev
/null
; then
2017 ac_cv_prog_cc_cross
=no
2019 ac_cv_prog_cc_cross
=yes
2022 echo "configure: failed program was:" >&5
2023 cat conftest.
$ac_ext >&5
2024 ac_cv_prog_cc_works
=no
2028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2029 ac_cpp
='$CPP $CPPFLAGS'
2030 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2031 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2032 cross_compiling
=$ac_cv_prog_cc_cross
2034 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2035 if test $ac_cv_prog_cc_works = no
; then
2036 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2038 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2039 echo "configure:2040: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2040 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2041 cross_compiling
=$ac_cv_prog_cc_cross
2043 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2044 echo "configure:2045: checking whether we are using GNU C" >&5
2045 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2048 cat > conftest.c
<<EOF
2053 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2060 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2062 if test $ac_cv_prog_gcc = yes; then
2068 ac_test_CFLAGS
="${CFLAGS+set}"
2069 ac_save_CFLAGS
="$CFLAGS"
2071 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2072 echo "configure:2073: checking whether ${CC-cc} accepts -g" >&5
2073 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2076 echo 'void f(){}' > conftest.c
2077 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2086 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2087 if test "$ac_test_CFLAGS" = set; then
2088 CFLAGS
="$ac_save_CFLAGS"
2089 elif test $ac_cv_prog_cc_g = yes; then
2090 if test "$GCC" = yes; then
2096 if test "$GCC" = yes; then
2104 # We must set the default linker to the linker used by gcc for the correct
2105 # operation of libtool. If LD is not defined and we are using gcc, try to
2106 # set the LD default to the ld used by gcc.
2107 if test -z "$LD"; then
2108 if test "$GCC" = yes; then
2111 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2113 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2115 case $gcc_prog_ld in
2116 # Accept absolute paths.
2117 [\\/]* |
[A-Za-z
]:[\\/]*)
2118 LD
="$gcc_prog_ld" ;;
2124 CFLAGS
=${CFLAGS-"-g"}
2125 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2128 if test $host != $build; then
2129 ac_tool_prefix
=${host_alias}-
2136 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2137 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2139 echo "configure:2140: checking for $ac_word" >&5
2140 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2143 if test -n "$GNATBIND"; then
2144 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2146 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2148 for ac_dir
in $ac_dummy; do
2149 test -z "$ac_dir" && ac_dir
=.
2150 if test -f $ac_dir/$ac_word; then
2151 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2158 GNATBIND
="$ac_cv_prog_GNATBIND"
2159 if test -n "$GNATBIND"; then
2160 echo "$ac_t""$GNATBIND" 1>&6
2162 echo "$ac_t""no" 1>&6
2166 if test -z "$ac_cv_prog_GNATBIND"; then
2167 if test -n "$ac_tool_prefix"; then
2168 # Extract the first word of "gnatbind", so it can be a program name with args.
2169 set dummy gnatbind
; ac_word
=$2
2170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2171 echo "configure:2172: checking for $ac_word" >&5
2172 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2175 if test -n "$GNATBIND"; then
2176 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2178 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2180 for ac_dir
in $ac_dummy; do
2181 test -z "$ac_dir" && ac_dir
=.
2182 if test -f $ac_dir/$ac_word; then
2183 ac_cv_prog_GNATBIND
="gnatbind"
2188 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2191 GNATBIND
="$ac_cv_prog_GNATBIND"
2192 if test -n "$GNATBIND"; then
2193 echo "$ac_t""$GNATBIND" 1>&6
2195 echo "$ac_t""no" 1>&6
2203 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2204 echo "configure:2205: checking whether compiler driver understands Ada" >&5
2205 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2208 cat >conftest.adb
<<EOF
2209 procedure conftest is begin null; end conftest;
2211 acx_cv_cc_gcc_supports_ada
=no
2212 # There is a bug in old released versions of GCC which causes the
2213 # driver to exit successfully when the appropriate language module
2214 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2215 # Therefore we must check for the error message as well as an
2216 # unsuccessful exit.
2217 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2218 # given a .adb file, but produce no object file. So we must check
2219 # if an object file was really produced to guard against this.
2220 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2221 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2222 acx_cv_cc_gcc_supports_ada
=yes
2227 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2229 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2235 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2236 echo "configure:2237: checking how to compare bootstrapped objects" >&5
2237 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2242 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2243 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2244 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2247 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2250 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2251 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2254 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2261 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2262 do_compare
="$gcc_cv_prog_cmp_skip"
2266 # Check for GMP and MPFR
2270 # Specify a location for mpfr
2271 # check for this first so it ends up on the link line before gmp.
2272 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2273 if test "${with_mpfr_dir+set}" = set; then
2274 withval
="$with_mpfr_dir"
2279 if test "x$with_mpfr_dir" != x
; then
2280 gmpinc
="-I$with_mpfr_dir"
2281 gmplibs
="$with_mpfr_dir/libmpfr.a"
2286 # Check whether --with-mpfr or --without-mpfr was given.
2287 if test "${with_mpfr+set}" = set; then
2288 withval
="$with_mpfr"
2293 if test "x$with_mpfr" != x
; then
2294 gmplibs
="-L$with_mpfr/lib $gmplibs"
2295 gmpinc
="-I$with_mpfr/include"
2298 # Specify a location for gmp
2299 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2300 if test "${with_gmp_dir+set}" = set; then
2301 withval
="$with_gmp_dir"
2306 if test "x$with_gmp_dir" != x
; then
2307 gmpinc
="$gmpinc -I$with_gmp_dir"
2308 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2309 gmplibs
="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2310 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2311 gmplibs
="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2313 # One of the later tests will catch the error if neither library is present.
2315 gmplibs
="$gmplibs -lgmp"
2318 # Check whether --with-gmp or --without-gmp was given.
2319 if test "${with_gmp+set}" = set; then
2325 if test "x$with_gmp" != x
; then
2326 gmplibs
="-L$with_gmp/lib $gmplibs"
2327 gmpinc
="-I$with_gmp/include $gmpinc"
2330 saved_CFLAGS
="$CFLAGS"
2331 CFLAGS
="$CFLAGS $gmpinc"
2332 # Check GMP actually works
2333 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2334 echo "configure:2335: checking for correct version of gmp.h" >&5
2335 cat > conftest.
$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2341 #if __GNU_MP_VERSION < 3
2347 if { (eval echo configure
:2348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2349 echo "$ac_t""yes" 1>&6
2351 echo "configure: failed program was:" >&5
2352 cat conftest.
$ac_ext >&5
2354 echo "$ac_t""no" 1>&6; have_gmp
=no
2358 if test x
"$have_gmp" = xyes
; then
2359 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2360 echo "configure:2361: checking for MPFR" >&5
2363 LIBS
="$LIBS $gmplibs"
2364 cat > conftest.
$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2370 mpfr_t n; mpfr_init(n);
2373 if { (eval echo configure
:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2375 echo "$ac_t""yes" 1>&6
2377 echo "configure: failed program was:" >&5
2378 cat conftest.
$ac_ext >&5
2380 echo "$ac_t""no" 1>&6; have_gmp
=no
2384 CFLAGS
="$saved_CFLAGS"
2387 # Flags needed for both GMP and/or MPFR
2391 # By default, C is the only stage 1 language.
2395 # Figure out what language subdirectories are present.
2396 # Look if the user specified --enable-languages="..."; if not, use
2397 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2399 # NB: embedded tabs in this IF block -- do not untabify
2400 if test -d ${srcdir}/gcc
; then
2401 if test x
"${enable_languages+set}" != xset
; then
2402 if test x
"${LANGUAGES+set}" = xset
; then
2403 enable_languages
="${LANGUAGES}"
2404 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2406 enable_languages
=all
2409 if test x
"${enable_languages}" = x ||
2410 test x
"${enable_languages}" = xyes
;
2412 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2416 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2418 # 'f95' is the old name for the 'fortran' language. We issue a warning
2419 # and make the substitution.
2420 case ,${enable_languages}, in
2422 echo configure.
in: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
2423 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2427 # First scan to see if an enabled language requires some other language.
2428 # We assume that a given config-lang.in will list all the language
2429 # front ends it requires, even if some are required indirectly.
2430 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2431 case ${lang_frag} in
2433 # The odd quoting in the next line works around
2434 # an apparent bug in bash 1.12 on linux.
2435 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2437 # From the config-lang.in, get $language, $lang_requires
2441 for other
in ${lang_requires} ; do
2442 case ,${enable_languages}, in
2446 echo " \`$other' language required by \`$language'; enabling" 1>&2
2447 enable_languages
="${enable_languages},${other}"
2455 new_enable_languages
=c
2456 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2457 potential_languages
=c
2459 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2460 case ${lang_frag} in
2462 # The odd quoting in the next line works around
2463 # an apparent bug in bash 1.12 on linux.
2464 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2466 # From the config-lang.in, get $language, $target_libs,
2467 # $lang_dirs, $boot_language, and $build_by_default
2475 potential_languages
="${potential_languages},${language}"
2476 # This is quite sensitive to the ordering of the case statement arms.
2477 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2479 echo "${lang_frag} doesn't set \$language." 1>&2
2483 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2486 *,${language},*:*:*:*)
2487 # Language was explicitly selected; include it.
2491 # 'all' was selected, but this is not a default language
2492 # so do not include it.
2496 # 'all' was selected and this is a default language; include it.
2504 # Disable languages that need GMP if it isn't available.
2505 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2506 *,${language},*:no
:yes)
2507 # Specifically requested language; tell them.
2508 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2516 # Disable a language that is unsupported by the target.
2517 case " $unsupported_languages " in
2523 case $add_this_lang in
2525 # Remove language-dependent dirs.
2526 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2529 new_enable_languages
="$new_enable_languages,$language"
2530 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2531 case ${boot_language} in
2533 # Add to (comma-separated) list of stage 1 languages.
2534 stage1_languages
="${stage1_languages},${language}"
2543 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2544 if test "x$missing_languages" != x
; then
2545 { echo "configure: error:
2546 The following requested languages could not be built: ${missing_languages}
2547 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2550 if test "x$new_enable_languages" != "x$enable_languages"; then
2551 echo The following languages will be built
: ${new_enable_languages}
2553 enable_languages
="$new_enable_languages"
2554 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2557 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2558 # $build_configdirs and $target_configdirs.
2559 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2562 for dir
in .
$skipdirs $noconfigdirs ; do
2563 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2564 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2565 configdirs
=`echo " ${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 " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2575 build_configdirs
=`echo " ${build_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"
2584 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2585 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2586 if test -r $srcdir/$dirname/configure
; then
2587 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2590 notsupp
="$notsupp $dir"
2596 # Sometimes the tools are distributed with libiberty but with no other
2597 # libraries. In that case, we don't want to build target-libiberty.
2598 if test -n "${target_configdirs}" ; then
2600 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2601 if test "$i" != "libiberty" ; then
2602 if test -r $srcdir/$i/configure
; then
2608 if test -z "${others}" ; then
2613 # Quietly strip out all directories which aren't configurable in this tree.
2614 # This relies on all configurable subdirectories being autoconfiscated, which
2616 build_configdirs_all
="$build_configdirs"
2618 for i
in ${build_configdirs_all} ; do
2619 j
=`echo $i | sed -e s/build-//g`
2620 if test -f ${srcdir}/$j/configure
; then
2621 build_configdirs
="${build_configdirs} $i"
2625 configdirs_all
="$configdirs"
2627 for i
in ${configdirs_all} ; do
2628 if test -f ${srcdir}/$i/configure
; then
2629 configdirs
="${configdirs} $i"
2633 target_configdirs_all
="$target_configdirs"
2635 for i
in ${target_configdirs_all} ; do
2636 j
=`echo $i | sed -e s/target-//g`
2637 if test -f ${srcdir}/$j/configure
; then
2638 target_configdirs
="${target_configdirs} $i"
2642 # Produce a warning message for the subdirs we can't configure.
2643 # This isn't especially interesting in the Cygnus tree, but in the individual
2644 # FSF releases, it's important to let people know when their machine isn't
2645 # supported by the one or two programs in a package.
2647 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2648 # If $appdirs is non-empty, at least one of those directories must still
2649 # be configured, or we error out. (E.g., if the gas release supports a
2650 # specified target in some subdirs but not the gas subdir, we shouldn't
2651 # pretend that all is well.)
2652 if test -n "$appdirs" ; then
2653 for dir
in $appdirs ; do
2654 if test -r $dir/Makefile.
in ; then
2655 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2659 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2665 if test -n "$appdirs" ; then
2666 echo "*** This configuration is not supported by this package." 1>&2
2670 # Okay, some application will build, or we don't care to check. Still
2671 # notify of subdirs not getting built.
2672 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2673 echo " ${notsupp}" 1>&2
2674 echo " (Any other directories should still work fine.)" 1>&2
2684 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2685 if test "${with_build_sysroot+set}" = set; then
2686 withval
="$with_build_sysroot"
2687 if test x
"$withval" != x
; then
2688 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
2691 SYSROOT_CFLAGS_FOR_TARGET
=
2696 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2697 # the named directory are copied to $(tooldir)/sys-include.
2698 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2699 if test x
${is_cross_compiler} = xno
; then
2700 echo 1>&2 '***' --with-headers is only supported when cross compiling
2703 if test x
"${with_headers}" != xyes
; then
2704 case "${exec_prefixoption}" in
2706 *) x
=${exec_prefix} ;;
2708 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2712 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2713 # the name directories are copied to $(tooldir)/lib. Multiple directories
2715 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2716 if test x
${is_cross_compiler} = xno
; then
2717 echo 1>&2 '***' --with-libs is only supported when cross compiling
2720 if test x
"${with_libs}" != xyes
; then
2721 # Copy the libraries in reverse order, so that files in the first named
2722 # library override files in subsequent libraries.
2723 case "${exec_prefixoption}" in
2725 *) x
=${exec_prefix} ;;
2727 for l
in ${with_libs}; do
2728 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2733 # Set with_gnu_as and with_gnu_ld as appropriate.
2735 # This is done by determining whether or not the appropriate directory
2736 # is available, and by checking whether or not specific configurations
2737 # have requested that this magic not happen.
2739 # The command line options always override the explicit settings in
2740 # configure.in, and the settings in configure.in override this magic.
2742 # If the default for a toolchain is to use GNU as and ld, and you don't
2743 # want to do that, then you should use the --without-gnu-as and
2744 # --without-gnu-ld options for the configure script.
2746 if test x
${use_gnu_as} = x
&&
2747 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2749 extra_host_args
="$extra_host_args --with-gnu-as"
2752 if test x
${use_gnu_ld} = x
&&
2753 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2755 extra_host_args
="$extra_host_args --with-gnu-ld"
2758 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2759 # can detect this case.
2761 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2763 extra_host_args
="$extra_host_args --with-newlib"
2766 # Handle ${copy_dirs}
2767 set fnord
${copy_dirs}
2769 while test $# != 0 ; do
2770 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2773 echo Copying
$1 to
$2
2775 # Use the install script to create the directory and all required
2776 # parent directories.
2777 if test -d $2 ; then
2781 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2784 # Copy the directory, assuming we have tar.
2785 # FIXME: Should we use B in the second tar? Not all systems support it.
2786 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2788 # It is the responsibility of the user to correctly adjust all
2789 # symlinks. If somebody can figure out how to handle them correctly
2790 # here, feel free to add the code.
2797 # Determine a target-dependent exec_prefix that the installed
2798 # gcc will search in. Keep this list sorted by triplet, with
2799 # the *-*-osname triplets last.
2803 md_exec_prefix
=/gnu
/lib
/gcc-lib
2805 i3456786-pc-msdosdjgpp
*)
2806 md_exec_prefix
=/dev
/env
/DJDIR
/bin
2808 i3456786-
*-sco3.2v5
*)
2809 if test $with_gnu_as = yes; then
2810 md_exec_prefix
=/usr
/gnu
/bin
2812 md_exec_prefix
=/usr
/ccs
/bin
/elf
2817 powerpc-
*-chorusos* | \
2818 powerpc
*-*-eabi* | \
2819 powerpc
*-*-sysv* | \
2820 powerpc
*-*-kaos* | \
2822 md_exec_prefix
=/usr
/ccs
/bin
2827 md_exec_prefix
=/usr
/ccs
/bin
2842 md_exec_prefix
=/usr
/ccs
/bin
2846 extra_arflags_for_target
=
2847 extra_nmflags_for_target
=
2848 extra_ranlibflags_for_target
=
2849 target_makefile_frag
=/dev
/null
2852 target_makefile_frag
="config/mt-netware"
2854 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2855 target_makefile_frag
="config/mt-gnu"
2857 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2858 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2859 # commands to handle both 32-bit and 64-bit objects. These flags are
2860 # harmless if we're using GNU nm or ar.
2861 extra_arflags_for_target
=" -X32_64"
2862 extra_nmflags_for_target
=" -B -X32_64"
2865 # ranlib from Darwin requires the -c flag to look at common symbols.
2866 extra_ranlibflags_for_target
=" -c"
2868 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2869 target_makefile_frag
="config/mt-wince"
2873 alphaieee_frag
=/dev
/null
2876 # This just makes sure to use the -mieee option to build target libs.
2877 # This should probably be set individually by each library.
2878 alphaieee_frag
="config/mt-alphaieee"
2882 # If --enable-target-optspace always use -Os instead of -O2 to build
2883 # the target libraries, similarly if it is not specified, use -Os
2884 # on selected platforms.
2885 ospace_frag
=/dev
/null
2886 case "${enable_target_optspace}:${target}" in
2888 ospace_frag
="config/mt-ospace"
2891 ospace_frag
="config/mt-d30v"
2893 :m32r-
* |
:d10v-
* |
:fr30-
*)
2894 ospace_frag
="config/mt-ospace"
2899 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2903 # Default to using --with-stabs for certain targets.
2904 if test x
${with_stabs} = x
; then
2908 mips
*-*-* | alpha
*-*-osf*)
2910 extra_host_args
="${extra_host_args} --with-stabs"
2915 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2916 # them automatically.
2919 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2923 # Some systems (e.g., one of the i386-aix systems the gas testers are
2924 # using) don't handle "\$" correctly, so don't use it here.
2925 tooldir
='${exec_prefix}'/${target_alias}
2926 build_tooldir
=${tooldir}
2928 # Create a .gdbinit file which runs the one in srcdir
2929 # and tells GDB to look there for source files.
2931 if test -r ${srcdir}/.gdbinit
; then
2934 *) cat > .
/.gdbinit
<<EOF
2938 source ${srcdir}/.gdbinit
2944 # Make sure that the compiler is able to generate an executable. If it
2945 # can't, we are probably in trouble. We don't care whether we can run the
2946 # executable--we might be using a cross compiler--we only care whether it
2947 # can be created. At this point the main configure script has set CC.
2949 echo "int main () { return 0; }" > conftest.c
2950 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2951 if test $?
= 0 ; then
2952 if test -s conftest ||
test -s conftest.exe
; then
2958 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2959 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2966 # The Solaris /usr/ucb/cc compiler does not appear to work.
2968 sparc-sun-solaris2
*)
2969 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
2970 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2972 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
2973 if test -d /opt
/cygnus
/bin
; then
2974 if test "$could_use" = "" ; then
2975 could_use
="/opt/cygnus/bin"
2977 could_use
="$could_use or /opt/cygnus/bin"
2980 if test "$could_use" = "" ; then
2981 echo "Warning: compilation may fail because you're using"
2982 echo "/usr/ucb/cc. You should change your PATH or CC "
2983 echo "variable and rerun configure."
2985 echo "Warning: compilation may fail because you're using"
2986 echo "/usr/ucb/cc, when you should use the C compiler from"
2987 echo "$could_use. You should change your"
2988 echo "PATH or CC variable and rerun configure."
2995 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
2996 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
2997 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
3000 # Record target_configdirs and the configure arguments for target and
3001 # build configuration in Makefile.
3002 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3003 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3005 # Determine whether gdb needs tk/tcl or not.
3006 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3007 # and in that case we want gdb to be built without tk. Ugh!
3008 # In fact I believe gdb is the *only* package directly dependent on tk,
3009 # so we should be able to put the 'maybe's in unconditionally and
3010 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3011 # 100% sure that that's safe though.
3013 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3014 case "$enable_gdbtk" in
3018 GDB_TK
="${gdb_tk}" ;;
3020 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3021 # distro. Eventually someone will fix this and move Insight, nee
3022 # gdbtk to a separate directory.
3023 if test -d ${srcdir}/gdb
/gdbtk
; then
3030 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3031 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3033 # Strip out unwanted targets.
3035 # While at that, we remove Makefiles if we were started for recursive
3036 # configuration, so that the top-level Makefile reconfigures them,
3037 # like we used to do when configure itself was recursive.
3039 # Loop over modules. $extrasub must be used with care, limiting as
3040 # much as possible the usage of range addresses. That's because autoconf
3041 # splits the sed script to overcome limits in the number of commands,
3042 # and relying on carefully-timed sed passes may turn out to be very hard
3043 # to maintain later. In this particular case, you just have to be careful
3044 # not to nest @if/@endif pairs, because configure will not warn you at all.
3046 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3047 if test "${enable_bootstrap+set}" = set; then
3048 enableval
="$enable_bootstrap"
3051 enable_bootstrap
=default
3055 # Issue errors and warnings for invalid/strange bootstrap combinations.
3056 case "$configdirs" in
3057 *gcc
*) have_compiler
=yes ;;
3058 *) have_compiler
=no
;;
3061 case "$have_compiler:$host:$target:$enable_bootstrap" in
3064 # Default behavior. Enable bootstrap if we have a compiler
3065 # and we are in a native configuration.
3066 yes:$build:$build:default
)
3067 enable_bootstrap
=yes ;;
3070 enable_bootstrap
=no
;;
3072 # We have a compiler and we are in a native configuration, bootstrap is ok
3073 yes:$build:$build:yes)
3076 # Other configurations, but we have a compiler. Assume the user knows
3079 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3082 # No compiler: if they passed --enable-bootstrap explicitly, fail
3084 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3086 # Fail if wrong command line
3088 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3092 # Adjust the toplevel makefile according to whether bootstrap was selected.
3093 case "$enable_bootstrap" in
3095 bootstrap_suffix
=bootstrap
;;
3097 bootstrap_suffix
=no-bootstrap
;;
3100 for module
in ${build_configdirs} ; do
3101 if test -z "${no_recursion}" \
3102 && test -f ${build_subdir}/${module}/Makefile
; then
3103 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3104 rm -f ${build_subdir}/${module}/Makefile
3107 /^@if build-$module\$/d
3108 /^@endif build-$module\$/d
3109 /^@if build-$module-$bootstrap_suffix\$/d
3110 /^@endif build-$module-$bootstrap_suffix\$/d"
3112 for module
in ${configdirs} ; do
3113 if test -z "${no_recursion}"; then
3114 for file in stage
*-${module}/Makefile
${module}/Makefile
; do
3115 if test -f ${file}; then
3116 echo 1>&2 "*** removing ${file} to force reconfigure"
3123 /^@endif $module\$/d
3124 /^@if $module-$bootstrap_suffix\$/d
3125 /^@endif $module-$bootstrap_suffix\$/d"
3127 for module
in ${target_configdirs} ; do
3128 if test -z "${no_recursion}" \
3129 && test -f ${target_subdir}/${module}/Makefile
; then
3130 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3131 rm -f ${target_subdir}/${module}/Makefile
3134 /^@if target-$module\$/d
3135 /^@endif target-$module\$/d
3136 /^@if target-$module-$bootstrap_suffix\$/d
3137 /^@endif target-$module-$bootstrap_suffix\$/d"
3141 /^@if /,/^@endif /d"
3143 # Create the serialization dependencies. This uses a temporary file.
3145 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3146 if test "${enable_serial_configure+set}" = set; then
3147 enableval
="$enable_serial_configure"
3152 case ${enable_serial_configure} in
3154 enable_serial_build_configure
=yes
3155 enable_serial_host_configure
=yes
3156 enable_serial_target_configure
=yes
3160 # These force 'configure's to be done one at a time, to avoid problems
3161 # with contention over a shared config.cache.
3163 echo '# serdep.tmp' > serdep.tmp
3165 test "x${enable_serial_build_configure}" = xyes
&&
3166 for item
in ${build_configdirs} ; do
3169 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3174 test "x${enable_serial_host_configure}" = xyes
&&
3175 for item
in ${configdirs} ; do
3178 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3183 test "x${enable_serial_target_configure}" = xyes
&&
3184 for item
in ${target_configdirs} ; do
3187 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3191 serialization_dependencies
=serdep.tmp
3194 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3195 # target and nonopt. These are the ones we might not want to pass
3196 # down to subconfigures. Also strip program-prefix, program-suffix,
3197 # and program-transform-name, so that we can pass down a consistent
3198 # program-transform-name. If autoconf has put single quotes around
3199 # any of these arguments (because they contain shell metacharacters)
3200 # then this will fail; in practice this only happens for
3201 # --program-transform-name, so be sure to override --program-transform-name
3202 # at the end of the argument list.
3203 # These will be expanded by make, so quote '$'.
3204 cat <<\EOF_SED
> conftestsed
3206 s
/ --c[a-z-
]*[= ][^
]*//g
3207 s
/ --sr[a-z-
]*[= ][^
]*//g
3208 s
/ --ho[a-z-
]*[= ][^
]*//g
3209 s
/ --bu[a-z-
]*[= ][^
]*//g
3210 s
/ --t[a-z-
]*[= ][^
]*//g
3211 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3212 s
/ -cache-file[= ][^
]*//g
3213 s
/ -srcdir[= ][^
]*//g
3214 s
/ -host[= ][^
]*//g
3215 s
/ -build[= ][^
]*//g
3216 s
/ -target[= ][^
]*//g
3217 s
/ -program-prefix[= ][^
]*//g
3218 s
/ -program-suffix[= ][^
]*//g
3219 s
/ -program-transform-name[= ][^
]*//g
3224 sed -f conftestsed <<EOF_SED > conftestsed.out
3225 ${ac_configure_args}
3227 baseargs=`cat conftestsed.out`
3228 rm -f conftestsed conftestsed.out
3230 # Add in --program-transform-name, after --program-prefix and
3231 # --program-suffix have been applied to it. Autoconf has already
3232 # doubled dollar signs and backslashes in program_transform_name; we want
3233 # the backslashes un-doubled, and then the entire thing wrapped in single
3234 # quotes, because this will be expanded first by make and then by the shell.
3235 # Also, because we want to override the logic in subdir configure scripts to
3236 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3237 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3238 ${program_transform_name}
3240 gcc_transform_name=`cat conftestsed.out`
3241 rm -f conftestsed.out
3242 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3244 # For the build-side libraries, we just need to pretend we're native
,
3245 # and not use the same cache file. Multilibs are neither needed nor
3247 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3249 # For host modules, accept cache file option, or specification as blank.
3250 case "${cache_file}" in
3252 cache_file_option
="" ;;
3253 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3254 cache_file_option
="--cache-file=${cache_file}" ;;
3256 cache_file_option
="--cache-file=../${cache_file}" ;;
3259 # Host dirs don't like to share a cache file either, horribly enough.
3260 # This seems to be due to autoconf 2.5x stupidity.
3261 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3263 target_configargs
=${baseargs}
3265 # Passing a --with-cross-host argument lets the target libraries know
3266 # whether they are being built with a cross-compiler or being built
3267 # native. However, it would be better to use other mechanisms to make the
3268 # sorts of decisions they want to make on this basis. Please consider
3269 # this option to be deprecated. FIXME.
3270 if test x
${is_cross_compiler} = xyes
; then
3271 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3274 # Default to --enable-multilib.
3275 if test x
${enable_multilib} = x
; then
3276 target_configargs
="--enable-multilib ${target_configargs}"
3279 # Pass --with-newlib if appropriate. Note that target_configdirs has
3280 # changed from the earlier setting of with_newlib.
3281 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3282 target_configargs
="--with-newlib ${target_configargs}"
3285 # Different target subdirs use different values of certain variables
3286 # (notably CXX). Worse, multilibs use *lots* of different values.
3287 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3288 # it doesn't automatically accept command-line overrides of them.
3289 # This means it's not safe for target subdirs to share a cache file,
3290 # which is disgusting, but there you have it. Hopefully this can be
3291 # fixed in future. It's still worthwhile to use a cache file for each
3292 # directory. I think.
3294 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3295 # We need to pass --target, as newer autoconf's requires consistency
3296 # for target_alias and gcc doesn't manage it consistently.
3297 target_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3300 case " $target_configdirs " in
3302 case " $target_configargs " in
3303 *" --with-newlib "*)
3306 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' ;;
3309 # If we're not building GCC, don't discard standard headers.
3310 if test -d ${srcdir}/gcc
; then
3311 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3313 if test "${build}" != "${host}"; then
3314 # On Canadian crosses, CC_FOR_TARGET will have already been set
3315 # by `configure', so we won't have an opportunity to add -Bgcc/
3316 # to it. This is right: we don't want to search that directory
3317 # for binaries, but we want the header files in there, so add
3319 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3321 # Someone might think of using the pre-installed headers on
3322 # Canadian crosses, in case the installed compiler is not fully
3323 # compatible with the compiler being built. In this case, it
3324 # would be better to flag an error than risking having
3325 # incompatible object files being constructed. We can't
3326 # guarantee that an error will be flagged, but let's hope the
3327 # compiler will do it, when presented with incompatible header
3332 case "${target}-${is_cross_compiler}" in
3333 i
[3456789]86-*-linux*-no)
3334 # Here host == target, so we don't need to build gcc,
3335 # so we don't want to discard standard headers.
3336 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3339 # If we're building newlib, use its generic headers last, but search
3340 # for any libc-related directories first (so make it the last -B
3342 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3350 # Allow the user to override the flags for
3351 # our build compiler if desired.
3352 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3354 # On Canadian crosses, we'll be searching the right directories for
3355 # the previously-installed cross compiler, so don't bother to add
3356 # flags for directories within the install tree of the compiler
3357 # being built; programs in there won't even run.
3358 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3359 # Search for pre-installed headers if nothing else fits.
3360 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3363 if test "x
${use_gnu_ld}" = x &&
3364 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3365 # Arrange for us to find uninstalled linker scripts.
3366 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3369 # Makefile fragments.
3370 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3372 eval fragval=\$$frag
3373 if test $fragval != /dev/null; then
3374 eval $frag=${srcdir}/$fragval
3382 # Miscellanea: directories, flags, etc.
3392 # Build module lists & subconfigure args.
3396 # Host module lists & subconfigure args.
3400 # Target module lists & subconfigure args.
3408 # Generate default definitions for YACC, M4, LEX and other programs that run
3409 # on the build machine. These are used if the Makefile can't locate these
3410 # programs in objdir.
3411 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3413 for ac_prog in 'bison -y' byacc yacc
3415 # Extract the first word of "$ac_prog", so it can be a program name with args.
3416 set dummy $ac_prog; ac_word=$2
3417 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3418 echo "configure
:3419: checking
for $ac_word" >&5
3419 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3420 echo $ac_n "(cached
) $ac_c" 1>&6
3422 if test -n "$YACC"; then
3423 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3427 for ac_dir in $ac_dummy; do
3428 test -z "$ac_dir" && ac_dir=.
3429 if test -f $ac_dir/$ac_word; then
3430 ac_cv_prog_YACC="$ac_prog"
3437 YACC="$ac_cv_prog_YACC"
3438 if test -n "$YACC"; then
3439 echo "$ac_t""$YACC" 1>&6
3441 echo "$ac_t""no
" 1>&6
3444 test -n "$YACC" && break
3446 test -n "$YACC" || YACC="$MISSING bison
-y"
3448 case " $build_configdirs " in
3449 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3450 *" byacc
"*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3453 for ac_prog in bison
3455 # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set dummy $ac_prog; ac_word=$2
3457 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3458 echo "configure
:3459: checking
for $ac_word" >&5
3459 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3460 echo $ac_n "(cached
) $ac_c" 1>&6
3462 if test -n "$BISON"; then
3463 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3467 for ac_dir in $ac_dummy; do
3468 test -z "$ac_dir" && ac_dir=.
3469 if test -f $ac_dir/$ac_word; then
3470 ac_cv_prog_BISON="$ac_prog"
3477 BISON="$ac_cv_prog_BISON"
3478 if test -n "$BISON"; then
3479 echo "$ac_t""$BISON" 1>&6
3481 echo "$ac_t""no
" 1>&6
3484 test -n "$BISON" && break
3486 test -n "$BISON" || BISON="$MISSING bison
"
3488 case " $build_configdirs " in
3489 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3492 for ac_prog in gm4 gnum4 m4
3494 # Extract the first word of "$ac_prog", so it can be a program name with args.
3495 set dummy $ac_prog; ac_word=$2
3496 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3497 echo "configure
:3498: checking
for $ac_word" >&5
3498 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3499 echo $ac_n "(cached
) $ac_c" 1>&6
3501 if test -n "$M4"; then
3502 ac_cv_prog_M4="$M4" # Let the user override the test.
3504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3506 for ac_dir in $ac_dummy; do
3507 test -z "$ac_dir" && ac_dir=.
3508 if test -f $ac_dir/$ac_word; then
3509 ac_cv_prog_M4="$ac_prog"
3517 if test -n "$M4"; then
3518 echo "$ac_t""$M4" 1>&6
3520 echo "$ac_t""no
" 1>&6
3523 test -n "$M4" && break
3525 test -n "$M4" || M4="$MISSING m4"
3527 case " $build_configdirs " in
3528 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3531 for ac_prog in flex lex
3533 # Extract the first word of "$ac_prog", so it can be a program name with args.
3534 set dummy $ac_prog; ac_word=$2
3535 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3536 echo "configure
:3537: checking
for $ac_word" >&5
3537 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3538 echo $ac_n "(cached
) $ac_c" 1>&6
3540 if test -n "$LEX"; then
3541 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3545 for ac_dir in $ac_dummy; do
3546 test -z "$ac_dir" && ac_dir=.
3547 if test -f $ac_dir/$ac_word; then
3548 ac_cv_prog_LEX="$ac_prog"
3555 LEX="$ac_cv_prog_LEX"
3556 if test -n "$LEX"; then
3557 echo "$ac_t""$LEX" 1>&6
3559 echo "$ac_t""no
" 1>&6
3562 test -n "$LEX" && break
3564 test -n "$LEX" || LEX="$MISSING flex
"
3566 case " $build_configdirs " in
3567 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3568 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3573 # Extract the first word of "$ac_prog", so it can be a program name with args.
3574 set dummy $ac_prog; ac_word=$2
3575 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3576 echo "configure
:3577: checking
for $ac_word" >&5
3577 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3578 echo $ac_n "(cached
) $ac_c" 1>&6
3580 if test -n "$FLEX"; then
3581 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3585 for ac_dir in $ac_dummy; do
3586 test -z "$ac_dir" && ac_dir=.
3587 if test -f $ac_dir/$ac_word; then
3588 ac_cv_prog_FLEX="$ac_prog"
3595 FLEX="$ac_cv_prog_FLEX"
3596 if test -n "$FLEX"; then
3597 echo "$ac_t""$FLEX" 1>&6
3599 echo "$ac_t""no
" 1>&6
3602 test -n "$FLEX" && break
3604 test -n "$FLEX" || FLEX="$MISSING flex
"
3606 case " $build_configdirs " in
3607 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3610 for ac_prog in makeinfo
3612 # Extract the first word of "$ac_prog", so it can be a program name with args.
3613 set dummy $ac_prog; ac_word=$2
3614 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3615 echo "configure
:3616: checking
for $ac_word" >&5
3616 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3617 echo $ac_n "(cached
) $ac_c" 1>&6
3619 if test -n "$MAKEINFO"; then
3620 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3624 for ac_dir in $ac_dummy; do
3625 test -z "$ac_dir" && ac_dir=.
3626 if test -f $ac_dir/$ac_word; then
3627 ac_cv_prog_MAKEINFO="$ac_prog"
3634 MAKEINFO="$ac_cv_prog_MAKEINFO"
3635 if test -n "$MAKEINFO"; then
3636 echo "$ac_t""$MAKEINFO" 1>&6
3638 echo "$ac_t""no
" 1>&6
3641 test -n "$MAKEINFO" && break
3643 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
3645 case " $build_configdirs " in
3646 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3649 # For an installed makeinfo, we require it to be from texinfo 4.2 or
3650 # higher, else we use the "missing
" dummy.
3651 if ${MAKEINFO} --version \
3652 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])' >/dev/null 2>&1; then
3655 MAKEINFO="$MISSING makeinfo
"
3661 # FIXME: expect and dejagnu may become build tools?
3663 for ac_prog in expect
3665 # Extract the first word of "$ac_prog", so it can be a program name with args.
3666 set dummy $ac_prog; ac_word=$2
3667 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3668 echo "configure
:3669: checking
for $ac_word" >&5
3669 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3670 echo $ac_n "(cached
) $ac_c" 1>&6
3672 if test -n "$EXPECT"; then
3673 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3677 for ac_dir in $ac_dummy; do
3678 test -z "$ac_dir" && ac_dir=.
3679 if test -f $ac_dir/$ac_word; then
3680 ac_cv_prog_EXPECT="$ac_prog"
3687 EXPECT="$ac_cv_prog_EXPECT"
3688 if test -n "$EXPECT"; then
3689 echo "$ac_t""$EXPECT" 1>&6
3691 echo "$ac_t""no
" 1>&6
3694 test -n "$EXPECT" && break
3696 test -n "$EXPECT" || EXPECT="expect
"
3698 case " $configdirs " in
3700 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3704 for ac_prog in runtest
3706 # Extract the first word of "$ac_prog", so it can be a program name with args.
3707 set dummy $ac_prog; ac_word=$2
3708 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3709 echo "configure
:3710: checking
for $ac_word" >&5
3710 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3711 echo $ac_n "(cached
) $ac_c" 1>&6
3713 if test -n "$RUNTEST"; then
3714 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3718 for ac_dir in $ac_dummy; do
3719 test -z "$ac_dir" && ac_dir=.
3720 if test -f $ac_dir/$ac_word; then
3721 ac_cv_prog_RUNTEST="$ac_prog"
3728 RUNTEST="$ac_cv_prog_RUNTEST"
3729 if test -n "$RUNTEST"; then
3730 echo "$ac_t""$RUNTEST" 1>&6
3732 echo "$ac_t""no
" 1>&6
3735 test -n "$RUNTEST" && break
3737 test -n "$RUNTEST" || RUNTEST="runtest
"
3739 case " $configdirs " in
3741 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3748 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3749 ncn_target_tool_prefix=
3750 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3752 for ncn_progname in ar; do
3753 if test -n "$ncn_tool_prefix"; then
3754 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3755 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3756 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3757 echo "configure
:3758: checking
for $ac_word" >&5
3758 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3759 echo $ac_n "(cached
) $ac_c" 1>&6
3761 if test -n "$AR"; then
3762 ac_cv_prog_AR="$AR" # Let the user override the test.
3764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3766 for ac_dir in $ac_dummy; do
3767 test -z "$ac_dir" && ac_dir=.
3768 if test -f $ac_dir/$ac_word; then
3769 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3777 if test -n "$AR"; then
3778 echo "$ac_t""$AR" 1>&6
3780 echo "$ac_t""no
" 1>&6
3784 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3786 set dummy ${ncn_progname}; ac_word=$2
3787 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3788 echo "configure
:3789: checking
for $ac_word" >&5
3789 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3790 echo $ac_n "(cached
) $ac_c" 1>&6
3792 if test -n "$AR"; then
3793 ac_cv_prog_AR="$AR" # Let the user override the test.
3795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3797 for ac_dir in $ac_dummy; do
3798 test -z "$ac_dir" && ac_dir=.
3799 if test -f $ac_dir/$ac_word; then
3800 ac_cv_prog_AR="${ncn_progname}"
3808 if test -n "$AR"; then
3809 echo "$ac_t""$AR" 1>&6
3811 echo "$ac_t""no
" 1>&6
3815 test -n "$ac_cv_prog_AR" && break
3818 if test -z "$ac_cv_prog_AR" ; then
3820 if test $build = $host ; then
3823 AR="${ncn_tool_prefix}$2"
3827 for ncn_progname in as; do
3828 if test -n "$ncn_tool_prefix"; then
3829 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3830 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3831 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3832 echo "configure
:3833: checking
for $ac_word" >&5
3833 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3834 echo $ac_n "(cached
) $ac_c" 1>&6
3836 if test -n "$AS"; then
3837 ac_cv_prog_AS="$AS" # Let the user override the test.
3839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3841 for ac_dir in $ac_dummy; do
3842 test -z "$ac_dir" && ac_dir=.
3843 if test -f $ac_dir/$ac_word; then
3844 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3852 if test -n "$AS"; then
3853 echo "$ac_t""$AS" 1>&6
3855 echo "$ac_t""no
" 1>&6
3859 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3861 set dummy ${ncn_progname}; ac_word=$2
3862 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3863 echo "configure
:3864: checking
for $ac_word" >&5
3864 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3865 echo $ac_n "(cached
) $ac_c" 1>&6
3867 if test -n "$AS"; then
3868 ac_cv_prog_AS="$AS" # Let the user override the test.
3870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3872 for ac_dir in $ac_dummy; do
3873 test -z "$ac_dir" && ac_dir=.
3874 if test -f $ac_dir/$ac_word; then
3875 ac_cv_prog_AS="${ncn_progname}"
3883 if test -n "$AS"; then
3884 echo "$ac_t""$AS" 1>&6
3886 echo "$ac_t""no
" 1>&6
3890 test -n "$ac_cv_prog_AS" && break
3893 if test -z "$ac_cv_prog_AS" ; then
3895 if test $build = $host ; then
3898 AS="${ncn_tool_prefix}$2"
3902 for ncn_progname in dlltool; do
3903 if test -n "$ncn_tool_prefix"; then
3904 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3905 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3906 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3907 echo "configure
:3908: checking
for $ac_word" >&5
3908 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3909 echo $ac_n "(cached
) $ac_c" 1>&6
3911 if test -n "$DLLTOOL"; then
3912 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3916 for ac_dir in $ac_dummy; do
3917 test -z "$ac_dir" && ac_dir=.
3918 if test -f $ac_dir/$ac_word; then
3919 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3926 DLLTOOL="$ac_cv_prog_DLLTOOL"
3927 if test -n "$DLLTOOL"; then
3928 echo "$ac_t""$DLLTOOL" 1>&6
3930 echo "$ac_t""no
" 1>&6
3934 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3936 set dummy ${ncn_progname}; ac_word=$2
3937 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3938 echo "configure
:3939: checking
for $ac_word" >&5
3939 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3940 echo $ac_n "(cached
) $ac_c" 1>&6
3942 if test -n "$DLLTOOL"; then
3943 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3947 for ac_dir in $ac_dummy; do
3948 test -z "$ac_dir" && ac_dir=.
3949 if test -f $ac_dir/$ac_word; then
3950 ac_cv_prog_DLLTOOL="${ncn_progname}"
3957 DLLTOOL="$ac_cv_prog_DLLTOOL"
3958 if test -n "$DLLTOOL"; then
3959 echo "$ac_t""$DLLTOOL" 1>&6
3961 echo "$ac_t""no
" 1>&6
3965 test -n "$ac_cv_prog_DLLTOOL" && break
3968 if test -z "$ac_cv_prog_DLLTOOL" ; then
3970 if test $build = $host ; then
3973 DLLTOOL="${ncn_tool_prefix}$2"
3977 for ncn_progname in ld; do
3978 if test -n "$ncn_tool_prefix"; then
3979 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3980 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3981 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3982 echo "configure
:3983: checking
for $ac_word" >&5
3983 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3984 echo $ac_n "(cached
) $ac_c" 1>&6
3986 if test -n "$LD"; then
3987 ac_cv_prog_LD="$LD" # Let the user override the test.
3989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3991 for ac_dir in $ac_dummy; do
3992 test -z "$ac_dir" && ac_dir=.
3993 if test -f $ac_dir/$ac_word; then
3994 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4002 if test -n "$LD"; then
4003 echo "$ac_t""$LD" 1>&6
4005 echo "$ac_t""no
" 1>&6
4009 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4011 set dummy ${ncn_progname}; ac_word=$2
4012 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4013 echo "configure
:4014: checking
for $ac_word" >&5
4014 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4015 echo $ac_n "(cached
) $ac_c" 1>&6
4017 if test -n "$LD"; then
4018 ac_cv_prog_LD="$LD" # Let the user override the test.
4020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4022 for ac_dir in $ac_dummy; do
4023 test -z "$ac_dir" && ac_dir=.
4024 if test -f $ac_dir/$ac_word; then
4025 ac_cv_prog_LD="${ncn_progname}"
4033 if test -n "$LD"; then
4034 echo "$ac_t""$LD" 1>&6
4036 echo "$ac_t""no
" 1>&6
4040 test -n "$ac_cv_prog_LD" && break
4043 if test -z "$ac_cv_prog_LD" ; then
4045 if test $build = $host ; then
4048 LD="${ncn_tool_prefix}$2"
4052 for ncn_progname in lipo; do
4053 if test -n "$ncn_tool_prefix"; then
4054 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4055 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4056 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4057 echo "configure
:4058: checking
for $ac_word" >&5
4058 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4059 echo $ac_n "(cached
) $ac_c" 1>&6
4061 if test -n "$LIPO"; then
4062 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4066 for ac_dir in $ac_dummy; do
4067 test -z "$ac_dir" && ac_dir=.
4068 if test -f $ac_dir/$ac_word; then
4069 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4076 LIPO="$ac_cv_prog_LIPO"
4077 if test -n "$LIPO"; then
4078 echo "$ac_t""$LIPO" 1>&6
4080 echo "$ac_t""no
" 1>&6
4084 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4086 set dummy ${ncn_progname}; ac_word=$2
4087 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4088 echo "configure
:4089: checking
for $ac_word" >&5
4089 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4090 echo $ac_n "(cached
) $ac_c" 1>&6
4092 if test -n "$LIPO"; then
4093 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4097 for ac_dir in $ac_dummy; do
4098 test -z "$ac_dir" && ac_dir=.
4099 if test -f $ac_dir/$ac_word; then
4100 ac_cv_prog_LIPO="${ncn_progname}"
4107 LIPO="$ac_cv_prog_LIPO"
4108 if test -n "$LIPO"; then
4109 echo "$ac_t""$LIPO" 1>&6
4111 echo "$ac_t""no
" 1>&6
4115 test -n "$ac_cv_prog_LIPO" && break
4118 if test -z "$ac_cv_prog_LIPO" ; then
4120 if test $build = $host ; then
4123 LIPO="${ncn_tool_prefix}$2"
4127 for ncn_progname in nm; do
4128 if test -n "$ncn_tool_prefix"; then
4129 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4130 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4131 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4132 echo "configure
:4133: checking
for $ac_word" >&5
4133 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4134 echo $ac_n "(cached
) $ac_c" 1>&6
4136 if test -n "$NM"; then
4137 ac_cv_prog_NM="$NM" # Let the user override the test.
4139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4141 for ac_dir in $ac_dummy; do
4142 test -z "$ac_dir" && ac_dir=.
4143 if test -f $ac_dir/$ac_word; then
4144 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4152 if test -n "$NM"; then
4153 echo "$ac_t""$NM" 1>&6
4155 echo "$ac_t""no
" 1>&6
4159 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4161 set dummy ${ncn_progname}; ac_word=$2
4162 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4163 echo "configure
:4164: checking
for $ac_word" >&5
4164 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4165 echo $ac_n "(cached
) $ac_c" 1>&6
4167 if test -n "$NM"; then
4168 ac_cv_prog_NM="$NM" # Let the user override the test.
4170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4172 for ac_dir in $ac_dummy; do
4173 test -z "$ac_dir" && ac_dir=.
4174 if test -f $ac_dir/$ac_word; then
4175 ac_cv_prog_NM="${ncn_progname}"
4183 if test -n "$NM"; then
4184 echo "$ac_t""$NM" 1>&6
4186 echo "$ac_t""no
" 1>&6
4190 test -n "$ac_cv_prog_NM" && break
4193 if test -z "$ac_cv_prog_NM" ; then
4195 if test $build = $host ; then
4198 NM="${ncn_tool_prefix}$2"
4202 for ncn_progname in ranlib; do
4203 if test -n "$ncn_tool_prefix"; then
4204 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4205 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4206 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4207 echo "configure
:4208: checking
for $ac_word" >&5
4208 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4209 echo $ac_n "(cached
) $ac_c" 1>&6
4211 if test -n "$RANLIB"; then
4212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4216 for ac_dir in $ac_dummy; do
4217 test -z "$ac_dir" && ac_dir=.
4218 if test -f $ac_dir/$ac_word; then
4219 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4226 RANLIB="$ac_cv_prog_RANLIB"
4227 if test -n "$RANLIB"; then
4228 echo "$ac_t""$RANLIB" 1>&6
4230 echo "$ac_t""no
" 1>&6
4234 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4236 set dummy ${ncn_progname}; ac_word=$2
4237 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4238 echo "configure
:4239: checking
for $ac_word" >&5
4239 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4240 echo $ac_n "(cached
) $ac_c" 1>&6
4242 if test -n "$RANLIB"; then
4243 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4247 for ac_dir in $ac_dummy; do
4248 test -z "$ac_dir" && ac_dir=.
4249 if test -f $ac_dir/$ac_word; then
4250 ac_cv_prog_RANLIB="${ncn_progname}"
4257 RANLIB="$ac_cv_prog_RANLIB"
4258 if test -n "$RANLIB"; then
4259 echo "$ac_t""$RANLIB" 1>&6
4261 echo "$ac_t""no
" 1>&6
4265 test -n "$ac_cv_prog_RANLIB" && break
4268 if test -z "$ac_cv_prog_RANLIB" ; then
4272 for ncn_progname in strip; do
4273 if test -n "$ncn_tool_prefix"; then
4274 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4275 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4276 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4277 echo "configure
:4278: checking
for $ac_word" >&5
4278 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4279 echo $ac_n "(cached
) $ac_c" 1>&6
4281 if test -n "$STRIP"; then
4282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4286 for ac_dir in $ac_dummy; do
4287 test -z "$ac_dir" && ac_dir=.
4288 if test -f $ac_dir/$ac_word; then
4289 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4296 STRIP="$ac_cv_prog_STRIP"
4297 if test -n "$STRIP"; then
4298 echo "$ac_t""$STRIP" 1>&6
4300 echo "$ac_t""no
" 1>&6
4304 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4306 set dummy ${ncn_progname}; ac_word=$2
4307 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4308 echo "configure
:4309: checking
for $ac_word" >&5
4309 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4310 echo $ac_n "(cached
) $ac_c" 1>&6
4312 if test -n "$STRIP"; then
4313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4317 for ac_dir in $ac_dummy; do
4318 test -z "$ac_dir" && ac_dir=.
4319 if test -f $ac_dir/$ac_word; then
4320 ac_cv_prog_STRIP="${ncn_progname}"
4327 STRIP="$ac_cv_prog_STRIP"
4328 if test -n "$STRIP"; then
4329 echo "$ac_t""$STRIP" 1>&6
4331 echo "$ac_t""no
" 1>&6
4335 test -n "$ac_cv_prog_STRIP" && break
4338 if test -z "$ac_cv_prog_STRIP" ; then
4342 for ncn_progname in windres; do
4343 if test -n "$ncn_tool_prefix"; then
4344 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4345 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4346 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4347 echo "configure
:4348: checking
for $ac_word" >&5
4348 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4349 echo $ac_n "(cached
) $ac_c" 1>&6
4351 if test -n "$WINDRES"; then
4352 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4356 for ac_dir in $ac_dummy; do
4357 test -z "$ac_dir" && ac_dir=.
4358 if test -f $ac_dir/$ac_word; then
4359 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4366 WINDRES="$ac_cv_prog_WINDRES"
4367 if test -n "$WINDRES"; then
4368 echo "$ac_t""$WINDRES" 1>&6
4370 echo "$ac_t""no
" 1>&6
4374 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4376 set dummy ${ncn_progname}; ac_word=$2
4377 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4378 echo "configure
:4379: checking
for $ac_word" >&5
4379 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4380 echo $ac_n "(cached
) $ac_c" 1>&6
4382 if test -n "$WINDRES"; then
4383 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4387 for ac_dir in $ac_dummy; do
4388 test -z "$ac_dir" && ac_dir=.
4389 if test -f $ac_dir/$ac_word; then
4390 ac_cv_prog_WINDRES="${ncn_progname}"
4397 WINDRES="$ac_cv_prog_WINDRES"
4398 if test -n "$WINDRES"; then
4399 echo "$ac_t""$WINDRES" 1>&6
4401 echo "$ac_t""no
" 1>&6
4405 test -n "$ac_cv_prog_WINDRES" && break
4408 if test -z "$ac_cv_prog_WINDRES" ; then
4410 if test $build = $host ; then
4413 WINDRES="${ncn_tool_prefix}$2"
4417 for ncn_progname in objcopy; do
4418 if test -n "$ncn_tool_prefix"; then
4419 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4420 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4421 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4422 echo "configure
:4423: checking
for $ac_word" >&5
4423 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4424 echo $ac_n "(cached
) $ac_c" 1>&6
4426 if test -n "$OBJCOPY"; then
4427 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4431 for ac_dir in $ac_dummy; do
4432 test -z "$ac_dir" && ac_dir=.
4433 if test -f $ac_dir/$ac_word; then
4434 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4441 OBJCOPY="$ac_cv_prog_OBJCOPY"
4442 if test -n "$OBJCOPY"; then
4443 echo "$ac_t""$OBJCOPY" 1>&6
4445 echo "$ac_t""no
" 1>&6
4449 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4451 set dummy ${ncn_progname}; ac_word=$2
4452 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4453 echo "configure
:4454: checking
for $ac_word" >&5
4454 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4455 echo $ac_n "(cached
) $ac_c" 1>&6
4457 if test -n "$OBJCOPY"; then
4458 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4462 for ac_dir in $ac_dummy; do
4463 test -z "$ac_dir" && ac_dir=.
4464 if test -f $ac_dir/$ac_word; then
4465 ac_cv_prog_OBJCOPY="${ncn_progname}"
4472 OBJCOPY="$ac_cv_prog_OBJCOPY"
4473 if test -n "$OBJCOPY"; then
4474 echo "$ac_t""$OBJCOPY" 1>&6
4476 echo "$ac_t""no
" 1>&6
4480 test -n "$ac_cv_prog_OBJCOPY" && break
4483 if test -z "$ac_cv_prog_OBJCOPY" ; then
4485 if test $build = $host ; then
4488 OBJCOPY="${ncn_tool_prefix}$2"
4492 for ncn_progname in objdump; do
4493 if test -n "$ncn_tool_prefix"; then
4494 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4495 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4496 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4497 echo "configure
:4498: checking
for $ac_word" >&5
4498 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4499 echo $ac_n "(cached
) $ac_c" 1>&6
4501 if test -n "$OBJDUMP"; then
4502 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4506 for ac_dir in $ac_dummy; do
4507 test -z "$ac_dir" && ac_dir=.
4508 if test -f $ac_dir/$ac_word; then
4509 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4516 OBJDUMP="$ac_cv_prog_OBJDUMP"
4517 if test -n "$OBJDUMP"; then
4518 echo "$ac_t""$OBJDUMP" 1>&6
4520 echo "$ac_t""no
" 1>&6
4524 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4526 set dummy ${ncn_progname}; ac_word=$2
4527 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4528 echo "configure
:4529: checking
for $ac_word" >&5
4529 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4530 echo $ac_n "(cached
) $ac_c" 1>&6
4532 if test -n "$OBJDUMP"; then
4533 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4537 for ac_dir in $ac_dummy; do
4538 test -z "$ac_dir" && ac_dir=.
4539 if test -f $ac_dir/$ac_word; then
4540 ac_cv_prog_OBJDUMP="${ncn_progname}"
4547 OBJDUMP="$ac_cv_prog_OBJDUMP"
4548 if test -n "$OBJDUMP"; then
4549 echo "$ac_t""$OBJDUMP" 1>&6
4551 echo "$ac_t""no
" 1>&6
4555 test -n "$ac_cv_prog_OBJDUMP" && break
4558 if test -z "$ac_cv_prog_OBJDUMP" ; then
4560 if test $build = $host ; then
4563 OBJDUMP="${ncn_tool_prefix}$2"
4574 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4575 if test "${with_build_time_tools+set}" = set; then
4576 withval="$with_build_time_tools"
4580 with_build_time_tools=
4581 echo "configure
: warning
: argument to
--with-build-time-tools must be an absolute path
" 1>&2
4585 with_build_time_tools=
4589 if test -n "$with_build_time_tools"; then
4590 for ncn_progname in cc gcc; do
4591 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4592 echo "configure
:4593: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4593 if test -x $with_build_time_tools/${ncn_progname}; then
4594 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4595 echo "$ac_t""yes" 1>&6
4598 echo "$ac_t""no
" 1>&6
4603 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4604 for ncn_progname in cc gcc; do
4605 if test -n "$ncn_target_tool_prefix"; then
4606 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4607 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4608 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4609 echo "configure
:4610: checking
for $ac_word" >&5
4610 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4611 echo $ac_n "(cached
) $ac_c" 1>&6
4613 if test -n "$CC_FOR_TARGET"; then
4614 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4618 for ac_dir in $ac_dummy; do
4619 test -z "$ac_dir" && ac_dir=.
4620 if test -f $ac_dir/$ac_word; then
4621 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4628 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4629 if test -n "$CC_FOR_TARGET"; then
4630 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4632 echo "$ac_t""no
" 1>&6
4636 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4638 set dummy ${ncn_progname}; ac_word=$2
4639 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4640 echo "configure
:4641: checking
for $ac_word" >&5
4641 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4642 echo $ac_n "(cached
) $ac_c" 1>&6
4644 if test -n "$CC_FOR_TARGET"; then
4645 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4649 for ac_dir in $ac_dummy; do
4650 test -z "$ac_dir" && ac_dir=.
4651 if test -f $ac_dir/$ac_word; then
4652 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4659 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4660 if test -n "$CC_FOR_TARGET"; then
4661 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4663 echo "$ac_t""no
" 1>&6
4667 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4671 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4673 if test $build = $target ; then
4676 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4680 if test -n "$with_build_time_tools"; then
4681 for ncn_progname in c++ g++ cxx gxx; do
4682 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4683 echo "configure
:4684: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4684 if test -x $with_build_time_tools/${ncn_progname}; then
4685 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4686 echo "$ac_t""yes" 1>&6
4689 echo "$ac_t""no
" 1>&6
4694 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4695 for ncn_progname in c++ g++ cxx gxx; do
4696 if test -n "$ncn_target_tool_prefix"; then
4697 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4698 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4699 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4700 echo "configure
:4701: checking
for $ac_word" >&5
4701 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4702 echo $ac_n "(cached
) $ac_c" 1>&6
4704 if test -n "$CXX_FOR_TARGET"; then
4705 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4709 for ac_dir in $ac_dummy; do
4710 test -z "$ac_dir" && ac_dir=.
4711 if test -f $ac_dir/$ac_word; then
4712 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4719 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4720 if test -n "$CXX_FOR_TARGET"; then
4721 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4723 echo "$ac_t""no
" 1>&6
4727 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4729 set dummy ${ncn_progname}; ac_word=$2
4730 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4731 echo "configure
:4732: checking
for $ac_word" >&5
4732 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4733 echo $ac_n "(cached
) $ac_c" 1>&6
4735 if test -n "$CXX_FOR_TARGET"; then
4736 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4740 for ac_dir in $ac_dummy; do
4741 test -z "$ac_dir" && ac_dir=.
4742 if test -f $ac_dir/$ac_word; then
4743 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4750 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4751 if test -n "$CXX_FOR_TARGET"; then
4752 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4754 echo "$ac_t""no
" 1>&6
4758 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4762 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4763 set dummy c++ g++ cxx gxx
4764 if test $build = $target ; then
4767 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4771 if test -n "$with_build_time_tools"; then
4772 for ncn_progname in gcc; do
4773 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4774 echo "configure
:4775: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4775 if test -x $with_build_time_tools/${ncn_progname}; then
4776 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4777 echo "$ac_t""yes" 1>&6
4780 echo "$ac_t""no
" 1>&6
4785 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4786 for ncn_progname in gcc; do
4787 if test -n "$ncn_target_tool_prefix"; then
4788 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4789 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4790 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4791 echo "configure
:4792: checking
for $ac_word" >&5
4792 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4793 echo $ac_n "(cached
) $ac_c" 1>&6
4795 if test -n "$GCC_FOR_TARGET"; then
4796 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4800 for ac_dir in $ac_dummy; do
4801 test -z "$ac_dir" && ac_dir=.
4802 if test -f $ac_dir/$ac_word; then
4803 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4810 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4811 if test -n "$GCC_FOR_TARGET"; then
4812 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4814 echo "$ac_t""no
" 1>&6
4818 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4820 set dummy ${ncn_progname}; ac_word=$2
4821 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4822 echo "configure
:4823: checking
for $ac_word" >&5
4823 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4824 echo $ac_n "(cached
) $ac_c" 1>&6
4826 if test -n "$GCC_FOR_TARGET"; then
4827 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4831 for ac_dir in $ac_dummy; do
4832 test -z "$ac_dir" && ac_dir=.
4833 if test -f $ac_dir/$ac_word; then
4834 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4841 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4842 if test -n "$GCC_FOR_TARGET"; then
4843 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4845 echo "$ac_t""no
" 1>&6
4849 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4853 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4854 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4857 if test -n "$with_build_time_tools"; then
4858 for ncn_progname in gcj; do
4859 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4860 echo "configure
:4861: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4861 if test -x $with_build_time_tools/${ncn_progname}; then
4862 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4863 echo "$ac_t""yes" 1>&6
4866 echo "$ac_t""no
" 1>&6
4871 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4872 for ncn_progname in gcj; do
4873 if test -n "$ncn_target_tool_prefix"; then
4874 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4875 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4876 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4877 echo "configure
:4878: checking
for $ac_word" >&5
4878 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4879 echo $ac_n "(cached
) $ac_c" 1>&6
4881 if test -n "$GCJ_FOR_TARGET"; then
4882 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4886 for ac_dir in $ac_dummy; do
4887 test -z "$ac_dir" && ac_dir=.
4888 if test -f $ac_dir/$ac_word; then
4889 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4896 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4897 if test -n "$GCJ_FOR_TARGET"; then
4898 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4900 echo "$ac_t""no
" 1>&6
4904 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4906 set dummy ${ncn_progname}; ac_word=$2
4907 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4908 echo "configure
:4909: checking
for $ac_word" >&5
4909 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4910 echo $ac_n "(cached
) $ac_c" 1>&6
4912 if test -n "$GCJ_FOR_TARGET"; then
4913 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4917 for ac_dir in $ac_dummy; do
4918 test -z "$ac_dir" && ac_dir=.
4919 if test -f $ac_dir/$ac_word; then
4920 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4927 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4928 if test -n "$GCJ_FOR_TARGET"; then
4929 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4931 echo "$ac_t""no
" 1>&6
4935 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4939 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4941 if test $build = $target ; then
4944 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4948 if test -n "$with_build_time_tools"; then
4949 for ncn_progname in gfortran; do
4950 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4951 echo "configure
:4952: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4952 if test -x $with_build_time_tools/${ncn_progname}; then
4953 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4954 echo "$ac_t""yes" 1>&6
4957 echo "$ac_t""no
" 1>&6
4962 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
4963 for ncn_progname in gfortran; do
4964 if test -n "$ncn_target_tool_prefix"; then
4965 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4966 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4967 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4968 echo "configure
:4969: checking
for $ac_word" >&5
4969 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4970 echo $ac_n "(cached
) $ac_c" 1>&6
4972 if test -n "$GFORTRAN_FOR_TARGET"; then
4973 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4977 for ac_dir in $ac_dummy; do
4978 test -z "$ac_dir" && ac_dir=.
4979 if test -f $ac_dir/$ac_word; then
4980 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4987 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4988 if test -n "$GFORTRAN_FOR_TARGET"; then
4989 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4991 echo "$ac_t""no
" 1>&6
4995 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4997 set dummy ${ncn_progname}; ac_word=$2
4998 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4999 echo "configure
:5000: checking
for $ac_word" >&5
5000 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5001 echo $ac_n "(cached
) $ac_c" 1>&6
5003 if test -n "$GFORTRAN_FOR_TARGET"; then
5004 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5008 for ac_dir in $ac_dummy; do
5009 test -z "$ac_dir" && ac_dir=.
5010 if test -f $ac_dir/$ac_word; then
5011 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5018 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5019 if test -n "$GFORTRAN_FOR_TARGET"; then
5020 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5022 echo "$ac_t""no
" 1>&6
5026 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5030 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5032 if test $build = $target ; then
5033 GFORTRAN_FOR_TARGET="$2"
5035 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5041 # The user is always right.
5042 if test "${PATH_SEPARATOR+set}" != set; then
5043 echo "#! /bin/sh" >conf$$.sh
5044 echo "exit 0" >>conf$$.sh
5046 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5056 if test "x$exec_prefix" = xNONE
; then
5057 if test "x$prefix" = xNONE
; then
5058 gcc_cv_tool_prefix
=$ac_default_prefix
5060 gcc_cv_tool_prefix
=$prefix
5063 gcc_cv_tool_prefix
=$exec_prefix
5066 # If there is no compiler in the tree, use the PATH only. In any
5067 # case, if there is no compiler in the tree nobody should use
5068 # AS_FOR_TARGET and LD_FOR_TARGET.
5069 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
5070 gcc_version
=`cat $srcdir/gcc/BASE-VER`
5071 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5072 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5073 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5074 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5075 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5076 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5081 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
5082 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5087 cat > conftest.c
<< \EOF
5092 if ($GCC_FOR_TARGET -E conftest.c |
grep gcc_yay
) > /dev
/null
2>&1; then
5093 have_gcc_for_target
=yes
5095 GCC_FOR_TARGET
=${ncn_target_tool_prefix}gcc
5096 have_gcc_for_target
=no
5103 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5104 if test -n "$with_build_time_tools"; then
5105 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5106 echo "configure:5107: checking for ar in $with_build_time_tools" >&5
5107 if test -x $with_build_time_tools/ar; then
5108 AR_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ar
5109 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5110 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5112 echo "$ac_t""no" 1>&6
5114 elif test $build != $host && test $have_gcc_for_target = yes; then
5115 AR_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ar`
5116 test $AR_FOR_TARGET=ar && AR_FOR_TARGET
=
5117 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5120 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5121 # Extract the first word of "ar", so it can be a program name with args.
5122 set dummy
ar; ac_word
=$2
5123 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5124 echo "configure:5125: checking for $ac_word" >&5
5125 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5128 case "$AR_FOR_TARGET" in
5130 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a path.
5133 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5136 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5137 ac_dummy
="$gcc_cv_tool_dirs"
5138 for ac_dir
in $ac_dummy; do
5139 test -z "$ac_dir" && ac_dir
=.
5140 if test -f $ac_dir/$ac_word; then
5141 ac_cv_path_AR_FOR_TARGET
="$ac_dir/$ac_word"
5149 AR_FOR_TARGET
="$ac_cv_path_AR_FOR_TARGET"
5150 if test -n "$AR_FOR_TARGET"; then
5151 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5153 echo "$ac_t""no" 1>&6
5157 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5158 if test -n "$with_build_time_tools"; then
5159 for ncn_progname
in ar; do
5160 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5161 echo "configure:5162: checking for ${ncn_progname} in $with_build_time_tools" >&5
5162 if test -x $with_build_time_tools/${ncn_progname}; then
5163 ac_cv_prog_AR_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5164 echo "$ac_t""yes" 1>&6
5167 echo "$ac_t""no" 1>&6
5172 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5173 for ncn_progname
in ar; do
5174 if test -n "$ncn_target_tool_prefix"; then
5175 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5176 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5178 echo "configure:5179: checking for $ac_word" >&5
5179 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5180 echo $ac_n "(cached) $ac_c" 1>&6
5182 if test -n "$AR_FOR_TARGET"; then
5183 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5185 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5187 for ac_dir
in $ac_dummy; do
5188 test -z "$ac_dir" && ac_dir
=.
5189 if test -f $ac_dir/$ac_word; then
5190 ac_cv_prog_AR_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5197 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5198 if test -n "$AR_FOR_TARGET"; then
5199 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5201 echo "$ac_t""no" 1>&6
5205 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5207 set dummy
${ncn_progname}; ac_word
=$2
5208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5209 echo "configure:5210: checking for $ac_word" >&5
5210 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5213 if test -n "$AR_FOR_TARGET"; then
5214 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5216 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5218 for ac_dir
in $ac_dummy; do
5219 test -z "$ac_dir" && ac_dir
=.
5220 if test -f $ac_dir/$ac_word; then
5221 ac_cv_prog_AR_FOR_TARGET
="${ncn_progname}"
5228 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5229 if test -n "$AR_FOR_TARGET"; then
5230 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5232 echo "$ac_t""no" 1>&6
5236 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5240 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5242 if test $build = $target ; then
5245 AR_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5250 AR_FOR_TARGET
=$ac_cv_path_AR_FOR_TARGET
5256 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5257 if test -n "$with_build_time_tools"; then
5258 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5259 echo "configure:5260: checking for as in $with_build_time_tools" >&5
5260 if test -x $with_build_time_tools/as
; then
5261 AS_FOR_TARGET
=`cd $with_build_time_tools && pwd`/as
5262 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5263 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5265 echo "$ac_t""no" 1>&6
5267 elif test $build != $host && test $have_gcc_for_target = yes; then
5268 AS_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=as`
5269 test $AS_FOR_TARGET=as
&& AS_FOR_TARGET
=
5270 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5273 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5274 # Extract the first word of "as", so it can be a program name with args.
5275 set dummy as
; ac_word
=$2
5276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5277 echo "configure:5278: checking for $ac_word" >&5
5278 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5279 echo $ac_n "(cached) $ac_c" 1>&6
5281 case "$AS_FOR_TARGET" in
5283 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a path.
5286 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5289 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5290 ac_dummy
="$gcc_cv_tool_dirs"
5291 for ac_dir
in $ac_dummy; do
5292 test -z "$ac_dir" && ac_dir
=.
5293 if test -f $ac_dir/$ac_word; then
5294 ac_cv_path_AS_FOR_TARGET
="$ac_dir/$ac_word"
5302 AS_FOR_TARGET
="$ac_cv_path_AS_FOR_TARGET"
5303 if test -n "$AS_FOR_TARGET"; then
5304 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5306 echo "$ac_t""no" 1>&6
5310 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5311 if test -n "$with_build_time_tools"; then
5312 for ncn_progname
in as
; do
5313 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5314 echo "configure:5315: checking for ${ncn_progname} in $with_build_time_tools" >&5
5315 if test -x $with_build_time_tools/${ncn_progname}; then
5316 ac_cv_prog_AS_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5317 echo "$ac_t""yes" 1>&6
5320 echo "$ac_t""no" 1>&6
5325 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5326 for ncn_progname
in as
; do
5327 if test -n "$ncn_target_tool_prefix"; then
5328 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5329 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5331 echo "configure:5332: checking for $ac_word" >&5
5332 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5335 if test -n "$AS_FOR_TARGET"; then
5336 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5338 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5340 for ac_dir
in $ac_dummy; do
5341 test -z "$ac_dir" && ac_dir
=.
5342 if test -f $ac_dir/$ac_word; then
5343 ac_cv_prog_AS_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5350 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5351 if test -n "$AS_FOR_TARGET"; then
5352 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5354 echo "$ac_t""no" 1>&6
5358 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5360 set dummy
${ncn_progname}; ac_word
=$2
5361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5362 echo "configure:5363: checking for $ac_word" >&5
5363 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5364 echo $ac_n "(cached) $ac_c" 1>&6
5366 if test -n "$AS_FOR_TARGET"; then
5367 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5369 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5371 for ac_dir
in $ac_dummy; do
5372 test -z "$ac_dir" && ac_dir
=.
5373 if test -f $ac_dir/$ac_word; then
5374 ac_cv_prog_AS_FOR_TARGET
="${ncn_progname}"
5381 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5382 if test -n "$AS_FOR_TARGET"; then
5383 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5385 echo "$ac_t""no" 1>&6
5389 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5393 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5395 if test $build = $target ; then
5398 AS_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5403 AS_FOR_TARGET
=$ac_cv_path_AS_FOR_TARGET
5409 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5410 if test -n "$with_build_time_tools"; then
5411 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5412 echo "configure:5413: checking for dlltool in $with_build_time_tools" >&5
5413 if test -x $with_build_time_tools/dlltool
; then
5414 DLLTOOL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/dlltool
5415 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5416 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5418 echo "$ac_t""no" 1>&6
5420 elif test $build != $host && test $have_gcc_for_target = yes; then
5421 DLLTOOL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5422 test $DLLTOOL_FOR_TARGET=dlltool
&& DLLTOOL_FOR_TARGET
=
5423 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5426 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5427 # Extract the first word of "dlltool", so it can be a program name with args.
5428 set dummy dlltool
; ac_word
=$2
5429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5430 echo "configure:5431: checking for $ac_word" >&5
5431 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5432 echo $ac_n "(cached) $ac_c" 1>&6
5434 case "$DLLTOOL_FOR_TARGET" in
5436 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5439 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5442 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5443 ac_dummy
="$gcc_cv_tool_dirs"
5444 for ac_dir
in $ac_dummy; do
5445 test -z "$ac_dir" && ac_dir
=.
5446 if test -f $ac_dir/$ac_word; then
5447 ac_cv_path_DLLTOOL_FOR_TARGET
="$ac_dir/$ac_word"
5455 DLLTOOL_FOR_TARGET
="$ac_cv_path_DLLTOOL_FOR_TARGET"
5456 if test -n "$DLLTOOL_FOR_TARGET"; then
5457 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5459 echo "$ac_t""no" 1>&6
5463 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5464 if test -n "$with_build_time_tools"; then
5465 for ncn_progname
in dlltool
; do
5466 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5467 echo "configure:5468: checking for ${ncn_progname} in $with_build_time_tools" >&5
5468 if test -x $with_build_time_tools/${ncn_progname}; then
5469 ac_cv_prog_DLLTOOL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5470 echo "$ac_t""yes" 1>&6
5473 echo "$ac_t""no" 1>&6
5478 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5479 for ncn_progname
in dlltool
; do
5480 if test -n "$ncn_target_tool_prefix"; then
5481 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5482 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5484 echo "configure:5485: checking for $ac_word" >&5
5485 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5486 echo $ac_n "(cached) $ac_c" 1>&6
5488 if test -n "$DLLTOOL_FOR_TARGET"; then
5489 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5491 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5493 for ac_dir
in $ac_dummy; do
5494 test -z "$ac_dir" && ac_dir
=.
5495 if test -f $ac_dir/$ac_word; then
5496 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5503 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5504 if test -n "$DLLTOOL_FOR_TARGET"; then
5505 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5507 echo "$ac_t""no" 1>&6
5511 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5513 set dummy
${ncn_progname}; ac_word
=$2
5514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5515 echo "configure:5516: checking for $ac_word" >&5
5516 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5517 echo $ac_n "(cached) $ac_c" 1>&6
5519 if test -n "$DLLTOOL_FOR_TARGET"; then
5520 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5522 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5524 for ac_dir
in $ac_dummy; do
5525 test -z "$ac_dir" && ac_dir
=.
5526 if test -f $ac_dir/$ac_word; then
5527 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_progname}"
5534 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5535 if test -n "$DLLTOOL_FOR_TARGET"; then
5536 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5538 echo "$ac_t""no" 1>&6
5542 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5546 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5548 if test $build = $target ; then
5549 DLLTOOL_FOR_TARGET
="$2"
5551 DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5556 DLLTOOL_FOR_TARGET
=$ac_cv_path_DLLTOOL_FOR_TARGET
5562 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5563 if test -n "$with_build_time_tools"; then
5564 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5565 echo "configure:5566: checking for ld in $with_build_time_tools" >&5
5566 if test -x $with_build_time_tools/ld
; then
5567 LD_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ld
5568 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5569 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5571 echo "$ac_t""no" 1>&6
5573 elif test $build != $host && test $have_gcc_for_target = yes; then
5574 LD_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ld`
5575 test $LD_FOR_TARGET=ld
&& LD_FOR_TARGET
=
5576 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5579 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5580 # Extract the first word of "ld", so it can be a program name with args.
5581 set dummy ld
; ac_word
=$2
5582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5583 echo "configure:5584: checking for $ac_word" >&5
5584 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5585 echo $ac_n "(cached) $ac_c" 1>&6
5587 case "$LD_FOR_TARGET" in
5589 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a path.
5592 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5595 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5596 ac_dummy
="$gcc_cv_tool_dirs"
5597 for ac_dir
in $ac_dummy; do
5598 test -z "$ac_dir" && ac_dir
=.
5599 if test -f $ac_dir/$ac_word; then
5600 ac_cv_path_LD_FOR_TARGET
="$ac_dir/$ac_word"
5608 LD_FOR_TARGET
="$ac_cv_path_LD_FOR_TARGET"
5609 if test -n "$LD_FOR_TARGET"; then
5610 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5612 echo "$ac_t""no" 1>&6
5616 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5617 if test -n "$with_build_time_tools"; then
5618 for ncn_progname
in ld
; do
5619 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5620 echo "configure:5621: checking for ${ncn_progname} in $with_build_time_tools" >&5
5621 if test -x $with_build_time_tools/${ncn_progname}; then
5622 ac_cv_prog_LD_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5623 echo "$ac_t""yes" 1>&6
5626 echo "$ac_t""no" 1>&6
5631 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5632 for ncn_progname
in ld
; do
5633 if test -n "$ncn_target_tool_prefix"; then
5634 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5635 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5637 echo "configure:5638: checking for $ac_word" >&5
5638 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 if test -n "$LD_FOR_TARGET"; then
5642 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5644 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5646 for ac_dir
in $ac_dummy; do
5647 test -z "$ac_dir" && ac_dir
=.
5648 if test -f $ac_dir/$ac_word; then
5649 ac_cv_prog_LD_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5656 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5657 if test -n "$LD_FOR_TARGET"; then
5658 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5660 echo "$ac_t""no" 1>&6
5664 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5666 set dummy
${ncn_progname}; ac_word
=$2
5667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5668 echo "configure:5669: checking for $ac_word" >&5
5669 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5670 echo $ac_n "(cached) $ac_c" 1>&6
5672 if test -n "$LD_FOR_TARGET"; then
5673 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5675 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5677 for ac_dir
in $ac_dummy; do
5678 test -z "$ac_dir" && ac_dir
=.
5679 if test -f $ac_dir/$ac_word; then
5680 ac_cv_prog_LD_FOR_TARGET
="${ncn_progname}"
5687 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5688 if test -n "$LD_FOR_TARGET"; then
5689 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5691 echo "$ac_t""no" 1>&6
5695 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5699 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5701 if test $build = $target ; then
5704 LD_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5709 LD_FOR_TARGET
=$ac_cv_path_LD_FOR_TARGET
5715 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5716 if test -n "$with_build_time_tools"; then
5717 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5718 echo "configure:5719: checking for lipo in $with_build_time_tools" >&5
5719 if test -x $with_build_time_tools/lipo
; then
5720 LIPO_FOR_TARGET
=`cd $with_build_time_tools && pwd`/lipo
5721 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5722 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5724 echo "$ac_t""no" 1>&6
5726 elif test $build != $host && test $have_gcc_for_target = yes; then
5727 LIPO_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=lipo`
5728 test $LIPO_FOR_TARGET=lipo
&& LIPO_FOR_TARGET
=
5729 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5732 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5733 # Extract the first word of "lipo", so it can be a program name with args.
5734 set dummy lipo
; ac_word
=$2
5735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5736 echo "configure:5737: checking for $ac_word" >&5
5737 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5738 echo $ac_n "(cached) $ac_c" 1>&6
5740 case "$LIPO_FOR_TARGET" in
5742 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5745 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5748 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5749 ac_dummy
="$gcc_cv_tool_dirs"
5750 for ac_dir
in $ac_dummy; do
5751 test -z "$ac_dir" && ac_dir
=.
5752 if test -f $ac_dir/$ac_word; then
5753 ac_cv_path_LIPO_FOR_TARGET
="$ac_dir/$ac_word"
5761 LIPO_FOR_TARGET
="$ac_cv_path_LIPO_FOR_TARGET"
5762 if test -n "$LIPO_FOR_TARGET"; then
5763 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5765 echo "$ac_t""no" 1>&6
5769 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5770 if test -n "$with_build_time_tools"; then
5771 for ncn_progname
in lipo
; do
5772 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5773 echo "configure:5774: checking for ${ncn_progname} in $with_build_time_tools" >&5
5774 if test -x $with_build_time_tools/${ncn_progname}; then
5775 ac_cv_prog_LIPO_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5776 echo "$ac_t""yes" 1>&6
5779 echo "$ac_t""no" 1>&6
5784 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5785 for ncn_progname
in lipo
; do
5786 if test -n "$ncn_target_tool_prefix"; then
5787 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5788 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5790 echo "configure:5791: checking for $ac_word" >&5
5791 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5792 echo $ac_n "(cached) $ac_c" 1>&6
5794 if test -n "$LIPO_FOR_TARGET"; then
5795 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5797 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5799 for ac_dir
in $ac_dummy; do
5800 test -z "$ac_dir" && ac_dir
=.
5801 if test -f $ac_dir/$ac_word; then
5802 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5809 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5810 if test -n "$LIPO_FOR_TARGET"; then
5811 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5813 echo "$ac_t""no" 1>&6
5817 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5819 set dummy
${ncn_progname}; ac_word
=$2
5820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5821 echo "configure:5822: checking for $ac_word" >&5
5822 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5823 echo $ac_n "(cached) $ac_c" 1>&6
5825 if test -n "$LIPO_FOR_TARGET"; then
5826 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5828 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5830 for ac_dir
in $ac_dummy; do
5831 test -z "$ac_dir" && ac_dir
=.
5832 if test -f $ac_dir/$ac_word; then
5833 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_progname}"
5840 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5841 if test -n "$LIPO_FOR_TARGET"; then
5842 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5844 echo "$ac_t""no" 1>&6
5848 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5852 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5854 if test $build = $target ; then
5855 LIPO_FOR_TARGET
="$2"
5857 LIPO_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5862 LIPO_FOR_TARGET
=$ac_cv_path_LIPO_FOR_TARGET
5868 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5869 if test -n "$with_build_time_tools"; then
5870 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5871 echo "configure:5872: checking for nm in $with_build_time_tools" >&5
5872 if test -x $with_build_time_tools/nm
; then
5873 NM_FOR_TARGET
=`cd $with_build_time_tools && pwd`/nm
5874 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5875 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5877 echo "$ac_t""no" 1>&6
5879 elif test $build != $host && test $have_gcc_for_target = yes; then
5880 NM_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=nm`
5881 test $NM_FOR_TARGET=nm
&& NM_FOR_TARGET
=
5882 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5885 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5886 # Extract the first word of "nm", so it can be a program name with args.
5887 set dummy nm
; ac_word
=$2
5888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5889 echo "configure:5890: checking for $ac_word" >&5
5890 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5891 echo $ac_n "(cached) $ac_c" 1>&6
5893 case "$NM_FOR_TARGET" in
5895 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a path.
5898 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5901 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5902 ac_dummy
="$gcc_cv_tool_dirs"
5903 for ac_dir
in $ac_dummy; do
5904 test -z "$ac_dir" && ac_dir
=.
5905 if test -f $ac_dir/$ac_word; then
5906 ac_cv_path_NM_FOR_TARGET
="$ac_dir/$ac_word"
5914 NM_FOR_TARGET
="$ac_cv_path_NM_FOR_TARGET"
5915 if test -n "$NM_FOR_TARGET"; then
5916 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5918 echo "$ac_t""no" 1>&6
5922 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5923 if test -n "$with_build_time_tools"; then
5924 for ncn_progname
in nm
; do
5925 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5926 echo "configure:5927: checking for ${ncn_progname} in $with_build_time_tools" >&5
5927 if test -x $with_build_time_tools/${ncn_progname}; then
5928 ac_cv_prog_NM_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5929 echo "$ac_t""yes" 1>&6
5932 echo "$ac_t""no" 1>&6
5937 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5938 for ncn_progname
in nm
; do
5939 if test -n "$ncn_target_tool_prefix"; then
5940 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5941 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5943 echo "configure:5944: checking for $ac_word" >&5
5944 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5945 echo $ac_n "(cached) $ac_c" 1>&6
5947 if test -n "$NM_FOR_TARGET"; then
5948 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
5950 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5952 for ac_dir
in $ac_dummy; do
5953 test -z "$ac_dir" && ac_dir
=.
5954 if test -f $ac_dir/$ac_word; then
5955 ac_cv_prog_NM_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5962 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
5963 if test -n "$NM_FOR_TARGET"; then
5964 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5966 echo "$ac_t""no" 1>&6
5970 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5972 set dummy
${ncn_progname}; ac_word
=$2
5973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5974 echo "configure:5975: checking for $ac_word" >&5
5975 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5976 echo $ac_n "(cached) $ac_c" 1>&6
5978 if test -n "$NM_FOR_TARGET"; then
5979 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
5981 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5983 for ac_dir
in $ac_dummy; do
5984 test -z "$ac_dir" && ac_dir
=.
5985 if test -f $ac_dir/$ac_word; then
5986 ac_cv_prog_NM_FOR_TARGET
="${ncn_progname}"
5993 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
5994 if test -n "$NM_FOR_TARGET"; then
5995 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5997 echo "$ac_t""no" 1>&6
6001 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6005 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6007 if test $build = $target ; then
6010 NM_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6015 NM_FOR_TARGET
=$ac_cv_path_NM_FOR_TARGET
6021 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6022 if test -n "$with_build_time_tools"; then
6023 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6024 echo "configure:6025: checking for objdump in $with_build_time_tools" >&5
6025 if test -x $with_build_time_tools/objdump
; then
6026 OBJDUMP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/objdump
6027 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6028 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6030 echo "$ac_t""no" 1>&6
6032 elif test $build != $host && test $have_gcc_for_target = yes; then
6033 OBJDUMP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=objdump`
6034 test $OBJDUMP_FOR_TARGET=objdump
&& OBJDUMP_FOR_TARGET
=
6035 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6038 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6039 # Extract the first word of "objdump", so it can be a program name with args.
6040 set dummy objdump
; ac_word
=$2
6041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6042 echo "configure:6043: checking for $ac_word" >&5
6043 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6
6046 case "$OBJDUMP_FOR_TARGET" in
6048 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6051 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6054 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6055 ac_dummy
="$gcc_cv_tool_dirs"
6056 for ac_dir
in $ac_dummy; do
6057 test -z "$ac_dir" && ac_dir
=.
6058 if test -f $ac_dir/$ac_word; then
6059 ac_cv_path_OBJDUMP_FOR_TARGET
="$ac_dir/$ac_word"
6067 OBJDUMP_FOR_TARGET
="$ac_cv_path_OBJDUMP_FOR_TARGET"
6068 if test -n "$OBJDUMP_FOR_TARGET"; then
6069 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6071 echo "$ac_t""no" 1>&6
6075 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6076 if test -n "$with_build_time_tools"; then
6077 for ncn_progname
in objdump
; do
6078 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6079 echo "configure:6080: checking for ${ncn_progname} in $with_build_time_tools" >&5
6080 if test -x $with_build_time_tools/${ncn_progname}; then
6081 ac_cv_prog_OBJDUMP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6082 echo "$ac_t""yes" 1>&6
6085 echo "$ac_t""no" 1>&6
6090 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6091 for ncn_progname
in objdump
; do
6092 if test -n "$ncn_target_tool_prefix"; then
6093 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6094 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6096 echo "configure:6097: checking for $ac_word" >&5
6097 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6098 echo $ac_n "(cached) $ac_c" 1>&6
6100 if test -n "$OBJDUMP_FOR_TARGET"; then
6101 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6103 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6105 for ac_dir
in $ac_dummy; do
6106 test -z "$ac_dir" && ac_dir
=.
6107 if test -f $ac_dir/$ac_word; then
6108 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6115 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6116 if test -n "$OBJDUMP_FOR_TARGET"; then
6117 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6119 echo "$ac_t""no" 1>&6
6123 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6125 set dummy
${ncn_progname}; ac_word
=$2
6126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6127 echo "configure:6128: checking for $ac_word" >&5
6128 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6129 echo $ac_n "(cached) $ac_c" 1>&6
6131 if test -n "$OBJDUMP_FOR_TARGET"; then
6132 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6134 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6136 for ac_dir
in $ac_dummy; do
6137 test -z "$ac_dir" && ac_dir
=.
6138 if test -f $ac_dir/$ac_word; then
6139 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_progname}"
6146 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6147 if test -n "$OBJDUMP_FOR_TARGET"; then
6148 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6150 echo "$ac_t""no" 1>&6
6154 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6158 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6160 if test $build = $target ; then
6161 OBJDUMP_FOR_TARGET
="$2"
6163 OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6168 OBJDUMP_FOR_TARGET
=$ac_cv_path_OBJDUMP_FOR_TARGET
6174 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6175 if test -n "$with_build_time_tools"; then
6176 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6177 echo "configure:6178: checking for ranlib in $with_build_time_tools" >&5
6178 if test -x $with_build_time_tools/ranlib
; then
6179 RANLIB_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ranlib
6180 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6181 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6183 echo "$ac_t""no" 1>&6
6185 elif test $build != $host && test $have_gcc_for_target = yes; then
6186 RANLIB_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6187 test $RANLIB_FOR_TARGET=ranlib
&& RANLIB_FOR_TARGET
=
6188 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6191 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6192 # Extract the first word of "ranlib", so it can be a program name with args.
6193 set dummy ranlib
; ac_word
=$2
6194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6195 echo "configure:6196: checking for $ac_word" >&5
6196 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6197 echo $ac_n "(cached) $ac_c" 1>&6
6199 case "$RANLIB_FOR_TARGET" in
6201 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6204 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6207 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6208 ac_dummy
="$gcc_cv_tool_dirs"
6209 for ac_dir
in $ac_dummy; do
6210 test -z "$ac_dir" && ac_dir
=.
6211 if test -f $ac_dir/$ac_word; then
6212 ac_cv_path_RANLIB_FOR_TARGET
="$ac_dir/$ac_word"
6220 RANLIB_FOR_TARGET
="$ac_cv_path_RANLIB_FOR_TARGET"
6221 if test -n "$RANLIB_FOR_TARGET"; then
6222 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6224 echo "$ac_t""no" 1>&6
6228 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6229 if test -n "$with_build_time_tools"; then
6230 for ncn_progname
in ranlib
; do
6231 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6232 echo "configure:6233: checking for ${ncn_progname} in $with_build_time_tools" >&5
6233 if test -x $with_build_time_tools/${ncn_progname}; then
6234 ac_cv_prog_RANLIB_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6235 echo "$ac_t""yes" 1>&6
6238 echo "$ac_t""no" 1>&6
6243 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6244 for ncn_progname
in ranlib
; do
6245 if test -n "$ncn_target_tool_prefix"; then
6246 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6247 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6249 echo "configure:6250: checking for $ac_word" >&5
6250 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6251 echo $ac_n "(cached) $ac_c" 1>&6
6253 if test -n "$RANLIB_FOR_TARGET"; then
6254 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6256 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6258 for ac_dir
in $ac_dummy; do
6259 test -z "$ac_dir" && ac_dir
=.
6260 if test -f $ac_dir/$ac_word; then
6261 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6268 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6269 if test -n "$RANLIB_FOR_TARGET"; then
6270 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6272 echo "$ac_t""no" 1>&6
6276 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6278 set dummy
${ncn_progname}; ac_word
=$2
6279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6280 echo "configure:6281: checking for $ac_word" >&5
6281 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6282 echo $ac_n "(cached) $ac_c" 1>&6
6284 if test -n "$RANLIB_FOR_TARGET"; then
6285 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6287 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6289 for ac_dir
in $ac_dummy; do
6290 test -z "$ac_dir" && ac_dir
=.
6291 if test -f $ac_dir/$ac_word; then
6292 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_progname}"
6299 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6300 if test -n "$RANLIB_FOR_TARGET"; then
6301 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6303 echo "$ac_t""no" 1>&6
6307 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6311 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6313 if test $build = $target ; then
6314 RANLIB_FOR_TARGET
="$2"
6316 RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6321 RANLIB_FOR_TARGET
=$ac_cv_path_RANLIB_FOR_TARGET
6327 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6328 if test -n "$with_build_time_tools"; then
6329 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6330 echo "configure:6331: checking for strip in $with_build_time_tools" >&5
6331 if test -x $with_build_time_tools/strip
; then
6332 STRIP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/strip
6333 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6334 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6336 echo "$ac_t""no" 1>&6
6338 elif test $build != $host && test $have_gcc_for_target = yes; then
6339 STRIP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=strip`
6340 test $STRIP_FOR_TARGET=strip
&& STRIP_FOR_TARGET
=
6341 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6344 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6345 # Extract the first word of "strip", so it can be a program name with args.
6346 set dummy strip
; ac_word
=$2
6347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6348 echo "configure:6349: checking for $ac_word" >&5
6349 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6350 echo $ac_n "(cached) $ac_c" 1>&6
6352 case "$STRIP_FOR_TARGET" in
6354 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6357 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6360 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6361 ac_dummy
="$gcc_cv_tool_dirs"
6362 for ac_dir
in $ac_dummy; do
6363 test -z "$ac_dir" && ac_dir
=.
6364 if test -f $ac_dir/$ac_word; then
6365 ac_cv_path_STRIP_FOR_TARGET
="$ac_dir/$ac_word"
6373 STRIP_FOR_TARGET
="$ac_cv_path_STRIP_FOR_TARGET"
6374 if test -n "$STRIP_FOR_TARGET"; then
6375 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6377 echo "$ac_t""no" 1>&6
6381 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6382 if test -n "$with_build_time_tools"; then
6383 for ncn_progname
in strip
; do
6384 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6385 echo "configure:6386: checking for ${ncn_progname} in $with_build_time_tools" >&5
6386 if test -x $with_build_time_tools/${ncn_progname}; then
6387 ac_cv_prog_STRIP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6388 echo "$ac_t""yes" 1>&6
6391 echo "$ac_t""no" 1>&6
6396 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6397 for ncn_progname
in strip
; do
6398 if test -n "$ncn_target_tool_prefix"; then
6399 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6400 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6402 echo "configure:6403: checking for $ac_word" >&5
6403 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6404 echo $ac_n "(cached) $ac_c" 1>&6
6406 if test -n "$STRIP_FOR_TARGET"; then
6407 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6409 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6411 for ac_dir
in $ac_dummy; do
6412 test -z "$ac_dir" && ac_dir
=.
6413 if test -f $ac_dir/$ac_word; then
6414 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6421 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6422 if test -n "$STRIP_FOR_TARGET"; then
6423 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6425 echo "$ac_t""no" 1>&6
6429 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6431 set dummy
${ncn_progname}; ac_word
=$2
6432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6433 echo "configure:6434: checking for $ac_word" >&5
6434 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6435 echo $ac_n "(cached) $ac_c" 1>&6
6437 if test -n "$STRIP_FOR_TARGET"; then
6438 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6440 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6442 for ac_dir
in $ac_dummy; do
6443 test -z "$ac_dir" && ac_dir
=.
6444 if test -f $ac_dir/$ac_word; then
6445 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_progname}"
6452 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6453 if test -n "$STRIP_FOR_TARGET"; then
6454 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6456 echo "$ac_t""no" 1>&6
6460 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6464 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6466 if test $build = $target ; then
6467 STRIP_FOR_TARGET
="$2"
6469 STRIP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6474 STRIP_FOR_TARGET
=$ac_cv_path_STRIP_FOR_TARGET
6480 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6481 if test -n "$with_build_time_tools"; then
6482 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6483 echo "configure:6484: checking for windres in $with_build_time_tools" >&5
6484 if test -x $with_build_time_tools/windres
; then
6485 WINDRES_FOR_TARGET
=`cd $with_build_time_tools && pwd`/windres
6486 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6487 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6489 echo "$ac_t""no" 1>&6
6491 elif test $build != $host && test $have_gcc_for_target = yes; then
6492 WINDRES_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=windres`
6493 test $WINDRES_FOR_TARGET=windres
&& WINDRES_FOR_TARGET
=
6494 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6497 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6498 # Extract the first word of "windres", so it can be a program name with args.
6499 set dummy windres
; ac_word
=$2
6500 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6501 echo "configure:6502: checking for $ac_word" >&5
6502 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6503 echo $ac_n "(cached) $ac_c" 1>&6
6505 case "$WINDRES_FOR_TARGET" in
6507 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6510 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6513 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6514 ac_dummy
="$gcc_cv_tool_dirs"
6515 for ac_dir
in $ac_dummy; do
6516 test -z "$ac_dir" && ac_dir
=.
6517 if test -f $ac_dir/$ac_word; then
6518 ac_cv_path_WINDRES_FOR_TARGET
="$ac_dir/$ac_word"
6526 WINDRES_FOR_TARGET
="$ac_cv_path_WINDRES_FOR_TARGET"
6527 if test -n "$WINDRES_FOR_TARGET"; then
6528 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6530 echo "$ac_t""no" 1>&6
6534 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6535 if test -n "$with_build_time_tools"; then
6536 for ncn_progname
in windres
; do
6537 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6538 echo "configure:6539: checking for ${ncn_progname} in $with_build_time_tools" >&5
6539 if test -x $with_build_time_tools/${ncn_progname}; then
6540 ac_cv_prog_WINDRES_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6541 echo "$ac_t""yes" 1>&6
6544 echo "$ac_t""no" 1>&6
6549 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6550 for ncn_progname
in windres
; do
6551 if test -n "$ncn_target_tool_prefix"; then
6552 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6553 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6555 echo "configure:6556: checking for $ac_word" >&5
6556 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6557 echo $ac_n "(cached) $ac_c" 1>&6
6559 if test -n "$WINDRES_FOR_TARGET"; then
6560 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6562 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6564 for ac_dir
in $ac_dummy; do
6565 test -z "$ac_dir" && ac_dir
=.
6566 if test -f $ac_dir/$ac_word; then
6567 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6574 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6575 if test -n "$WINDRES_FOR_TARGET"; then
6576 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6578 echo "$ac_t""no" 1>&6
6582 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6584 set dummy
${ncn_progname}; ac_word
=$2
6585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6586 echo "configure:6587: checking for $ac_word" >&5
6587 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6588 echo $ac_n "(cached) $ac_c" 1>&6
6590 if test -n "$WINDRES_FOR_TARGET"; then
6591 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6593 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6595 for ac_dir
in $ac_dummy; do
6596 test -z "$ac_dir" && ac_dir
=.
6597 if test -f $ac_dir/$ac_word; then
6598 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_progname}"
6605 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6606 if test -n "$WINDRES_FOR_TARGET"; then
6607 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6609 echo "$ac_t""no" 1>&6
6613 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6617 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6619 if test $build = $target ; then
6620 WINDRES_FOR_TARGET
="$2"
6622 WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6627 WINDRES_FOR_TARGET
=$ac_cv_path_WINDRES_FOR_TARGET
6631 RAW_CXX_FOR_TARGET
="$CXX_FOR_TARGET"
6633 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6634 echo "configure:6635: checking where to find the target ar" >&5
6635 if test "x${build}" != "x${host}" ; then
6636 if expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6637 # We already found the complete path
6638 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6640 # Canadian cross, just use what we found
6641 echo "$ac_t""pre-installed" 1>&6
6645 case " ${configdirs} " in
6650 if test $ok = yes; then
6651 # An in-tree tool is available and we can use it
6652 AR_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ar'
6653 echo "$ac_t""just compiled" 1>&6
6654 elif expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6655 # We already found the complete path
6656 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6657 elif test "x$target" = "x$host"; then
6658 # We can use an host tool
6659 AR_FOR_TARGET
='$(AR)'
6660 echo "$ac_t""host tool" 1>&6
6662 # We need a cross tool
6663 echo "$ac_t""pre-installed" 1>&6
6666 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6667 echo "configure:6668: checking where to find the target as" >&5
6668 if test "x${build}" != "x${host}" ; then
6669 if expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6670 # We already found the complete path
6671 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6673 # Canadian cross, just use what we found
6674 echo "$ac_t""pre-installed" 1>&6
6678 case " ${configdirs} " in
6683 if test $ok = yes; then
6684 # An in-tree tool is available and we can use it
6685 AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gas/as-new'
6686 echo "$ac_t""just compiled" 1>&6
6687 elif expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6688 # We already found the complete path
6689 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6690 elif test "x$target" = "x$host"; then
6691 # We can use an host tool
6692 AS_FOR_TARGET
='$(AS)'
6693 echo "$ac_t""host tool" 1>&6
6695 # We need a cross tool
6696 echo "$ac_t""pre-installed" 1>&6
6699 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6700 echo "configure:6701: checking where to find the target cc" >&5
6701 if test "x${build}" != "x${host}" ; then
6702 if expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6703 # We already found the complete path
6704 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6706 # Canadian cross, just use what we found
6707 echo "$ac_t""pre-installed" 1>&6
6711 case " ${configdirs} " in
6716 if test $ok = yes; then
6717 # An in-tree tool is available and we can use it
6718 CC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6719 echo "$ac_t""just compiled" 1>&6
6720 elif expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6721 # We already found the complete path
6722 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6723 elif test "x$target" = "x$host"; then
6724 # We can use an host tool
6725 CC_FOR_TARGET
='$(CC)'
6726 echo "$ac_t""host tool" 1>&6
6728 # We need a cross tool
6729 echo "$ac_t""pre-installed" 1>&6
6732 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6733 echo "configure:6734: checking where to find the target c++" >&5
6734 if test "x${build}" != "x${host}" ; then
6735 if expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6736 # We already found the complete path
6737 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6739 # Canadian cross, just use what we found
6740 echo "$ac_t""pre-installed" 1>&6
6744 case " ${configdirs} " in
6748 case ,${enable_languages}, in
6752 if test $ok = yes; then
6753 # An in-tree tool is available and we can use it
6754 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'
6755 echo "$ac_t""just compiled" 1>&6
6756 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6757 # We already found the complete path
6758 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6759 elif test "x$target" = "x$host"; then
6760 # We can use an host tool
6761 CXX_FOR_TARGET
='$(CXX)'
6762 echo "$ac_t""host tool" 1>&6
6764 # We need a cross tool
6765 echo "$ac_t""pre-installed" 1>&6
6768 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6769 echo "configure:6770: checking where to find the target c++ for libstdc++" >&5
6770 if test "x${build}" != "x${host}" ; then
6771 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6772 # We already found the complete path
6773 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6775 # Canadian cross, just use what we found
6776 echo "$ac_t""pre-installed" 1>&6
6780 case " ${configdirs} " in
6784 case ,${enable_languages}, in
6788 if test $ok = yes; then
6789 # An in-tree tool is available and we can use it
6790 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'
6791 echo "$ac_t""just compiled" 1>&6
6792 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6793 # We already found the complete path
6794 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6795 elif test "x$target" = "x$host"; then
6796 # We can use an host tool
6797 RAW_CXX_FOR_TARGET
='$(CXX)'
6798 echo "$ac_t""host tool" 1>&6
6800 # We need a cross tool
6801 echo "$ac_t""pre-installed" 1>&6
6804 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6805 echo "configure:6806: checking where to find the target dlltool" >&5
6806 if test "x${build}" != "x${host}" ; then
6807 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6808 # We already found the complete path
6809 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6811 # Canadian cross, just use what we found
6812 echo "$ac_t""pre-installed" 1>&6
6816 case " ${configdirs} " in
6821 if test $ok = yes; then
6822 # An in-tree tool is available and we can use it
6823 DLLTOOL_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6824 echo "$ac_t""just compiled" 1>&6
6825 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6826 # We already found the complete path
6827 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6828 elif test "x$target" = "x$host"; then
6829 # We can use an host tool
6830 DLLTOOL_FOR_TARGET
='$(DLLTOOL)'
6831 echo "$ac_t""host tool" 1>&6
6833 # We need a cross tool
6834 echo "$ac_t""pre-installed" 1>&6
6837 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6838 echo "configure:6839: checking where to find the target gcc" >&5
6839 if test "x${build}" != "x${host}" ; then
6840 if expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6841 # We already found the complete path
6842 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6844 # Canadian cross, just use what we found
6845 echo "$ac_t""pre-installed" 1>&6
6849 case " ${configdirs} " in
6854 if test $ok = yes; then
6855 # An in-tree tool is available and we can use it
6856 GCC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6857 echo "$ac_t""just compiled" 1>&6
6858 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6859 # We already found the complete path
6860 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6861 elif test "x$target" = "x$host"; then
6862 # We can use an host tool
6863 GCC_FOR_TARGET
='$()'
6864 echo "$ac_t""host tool" 1>&6
6866 # We need a cross tool
6867 echo "$ac_t""pre-installed" 1>&6
6870 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6871 echo "configure:6872: checking where to find the target gcj" >&5
6872 if test "x${build}" != "x${host}" ; then
6873 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6874 # We already found the complete path
6875 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6877 # Canadian cross, just use what we found
6878 echo "$ac_t""pre-installed" 1>&6
6882 case " ${configdirs} " in
6886 case ,${enable_languages}, in
6890 if test $ok = yes; then
6891 # An in-tree tool is available and we can use it
6892 GCJ_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6893 echo "$ac_t""just compiled" 1>&6
6894 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6895 # We already found the complete path
6896 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6897 elif test "x$target" = "x$host"; then
6898 # We can use an host tool
6899 GCJ_FOR_TARGET
='$(GCJ)'
6900 echo "$ac_t""host tool" 1>&6
6902 # We need a cross tool
6903 echo "$ac_t""pre-installed" 1>&6
6906 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6907 echo "configure:6908: checking where to find the target gfortran" >&5
6908 if test "x${build}" != "x${host}" ; then
6909 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
6910 # We already found the complete path
6911 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6913 # Canadian cross, just use what we found
6914 echo "$ac_t""pre-installed" 1>&6
6918 case " ${configdirs} " in
6922 case ,${enable_languages}, in
6926 if test $ok = yes; then
6927 # An in-tree tool is available and we can use it
6928 GFORTRAN_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6929 echo "$ac_t""just compiled" 1>&6
6930 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
6931 # We already found the complete path
6932 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6933 elif test "x$target" = "x$host"; then
6934 # We can use an host tool
6935 GFORTRAN_FOR_TARGET
='$(GFORTRAN)'
6936 echo "$ac_t""host tool" 1>&6
6938 # We need a cross tool
6939 echo "$ac_t""pre-installed" 1>&6
6942 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
6943 echo "configure:6944: checking where to find the target ld" >&5
6944 if test "x${build}" != "x${host}" ; then
6945 if expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
6946 # We already found the complete path
6947 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6949 # Canadian cross, just use what we found
6950 echo "$ac_t""pre-installed" 1>&6
6954 case " ${configdirs} " in
6959 if test $ok = yes; then
6960 # An in-tree tool is available and we can use it
6961 LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/ld/ld-new'
6962 echo "$ac_t""just compiled" 1>&6
6963 elif expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
6964 # We already found the complete path
6965 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6966 elif test "x$target" = "x$host"; then
6967 # We can use an host tool
6968 LD_FOR_TARGET
='$(LD)'
6969 echo "$ac_t""host tool" 1>&6
6971 # We need a cross tool
6972 echo "$ac_t""pre-installed" 1>&6
6975 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
6976 echo "configure:6977: checking where to find the target lipo" >&5
6977 if test "x${build}" != "x${host}" ; then
6978 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
6979 # We already found the complete path
6980 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6982 # Canadian cross, just use what we found
6983 echo "$ac_t""pre-installed" 1>&6
6986 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
6987 # We already found the complete path
6988 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6989 elif test "x$target" = "x$host"; then
6990 # We can use an host tool
6991 LIPO_FOR_TARGET
='$(LIPO)'
6992 echo "$ac_t""host tool" 1>&6
6994 # We need a cross tool
6995 echo "$ac_t""pre-installed" 1>&6
6998 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
6999 echo "configure:7000: checking where to find the target nm" >&5
7000 if test "x${build}" != "x${host}" ; then
7001 if expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7002 # We already found the complete path
7003 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7005 # Canadian cross, just use what we found
7006 echo "$ac_t""pre-installed" 1>&6
7010 case " ${configdirs} " in
7015 if test $ok = yes; then
7016 # An in-tree tool is available and we can use it
7017 NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7018 echo "$ac_t""just compiled" 1>&6
7019 elif expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7020 # We already found the complete path
7021 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7022 elif test "x$target" = "x$host"; then
7023 # We can use an host tool
7024 NM_FOR_TARGET
='$(NM)'
7025 echo "$ac_t""host tool" 1>&6
7027 # We need a cross tool
7028 echo "$ac_t""pre-installed" 1>&6
7031 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7032 echo "configure:7033: checking where to find the target objdump" >&5
7033 if test "x${build}" != "x${host}" ; then
7034 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7035 # We already found the complete path
7036 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7038 # Canadian cross, just use what we found
7039 echo "$ac_t""pre-installed" 1>&6
7043 case " ${configdirs} " in
7048 if test $ok = yes; then
7049 # An in-tree tool is available and we can use it
7050 OBJDUMP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/objdump'
7051 echo "$ac_t""just compiled" 1>&6
7052 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7053 # We already found the complete path
7054 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7055 elif test "x$target" = "x$host"; then
7056 # We can use an host tool
7057 OBJDUMP_FOR_TARGET
='$(OBJDUMP)'
7058 echo "$ac_t""host tool" 1>&6
7060 # We need a cross tool
7061 echo "$ac_t""pre-installed" 1>&6
7064 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7065 echo "configure:7066: checking where to find the target ranlib" >&5
7066 if test "x${build}" != "x${host}" ; then
7067 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7068 # We already found the complete path
7069 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7071 # Canadian cross, just use what we found
7072 echo "$ac_t""pre-installed" 1>&6
7076 case " ${configdirs} " in
7081 if test $ok = yes; then
7082 # An in-tree tool is available and we can use it
7083 RANLIB_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7084 echo "$ac_t""just compiled" 1>&6
7085 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7086 # We already found the complete path
7087 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7088 elif test "x$target" = "x$host"; then
7089 # We can use an host tool
7090 RANLIB_FOR_TARGET
='$(RANLIB)'
7091 echo "$ac_t""host tool" 1>&6
7093 # We need a cross tool
7094 echo "$ac_t""pre-installed" 1>&6
7097 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7098 echo "configure:7099: checking where to find the target strip" >&5
7099 if test "x${build}" != "x${host}" ; then
7100 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7101 # We already found the complete path
7102 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7104 # Canadian cross, just use what we found
7105 echo "$ac_t""pre-installed" 1>&6
7109 case " ${configdirs} " in
7114 if test $ok = yes; then
7115 # An in-tree tool is available and we can use it
7116 STRIP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/strip'
7117 echo "$ac_t""just compiled" 1>&6
7118 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7119 # We already found the complete path
7120 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7121 elif test "x$target" = "x$host"; then
7122 # We can use an host tool
7123 STRIP_FOR_TARGET
='$(STRIP)'
7124 echo "$ac_t""host tool" 1>&6
7126 # We need a cross tool
7127 echo "$ac_t""pre-installed" 1>&6
7130 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7131 echo "configure:7132: checking where to find the target windres" >&5
7132 if test "x${build}" != "x${host}" ; then
7133 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7134 # We already found the complete path
7135 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7137 # Canadian cross, just use what we found
7138 echo "$ac_t""pre-installed" 1>&6
7142 case " ${configdirs} " in
7147 if test $ok = yes; then
7148 # An in-tree tool is available and we can use it
7149 WINDRES_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/windres'
7150 echo "$ac_t""just compiled" 1>&6
7151 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7152 # We already found the complete path
7153 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7154 elif test "x$target" = "x$host"; then
7155 # We can use an host tool
7156 WINDRES_FOR_TARGET
='$(WINDRES)'
7157 echo "$ac_t""host tool" 1>&6
7159 # We need a cross tool
7160 echo "$ac_t""pre-installed" 1>&6
7167 # Certain tools may need extra flags.
7168 AR_FOR_TARGET
=${AR_FOR_TARGET}${extra_arflags_for_target}
7169 RANLIB_FOR_TARGET
=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7170 NM_FOR_TARGET
=${NM_FOR_TARGET}${extra_nmflags_for_target}
7172 # When building target libraries, except in a Canadian cross, we use
7173 # the same toolchain as the compiler we just built.
7174 COMPILER_AS_FOR_TARGET
='$(AS_FOR_TARGET)'
7175 COMPILER_LD_FOR_TARGET
='$(LD_FOR_TARGET)'
7176 COMPILER_NM_FOR_TARGET
='$(NM_FOR_TARGET)'
7177 if test $host = $build; then
7178 case " $configdirs " in
7180 COMPILER_AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/as'
7181 COMPILER_LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7182 COMPILER_NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7191 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7192 echo "configure:7193: checking whether to enable maintainer-specific portions of Makefiles" >&5
7193 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7194 if test "${enable_maintainer_mode+set}" = set; then
7195 enableval
="$enable_maintainer_mode"
7196 USE_MAINTAINER_MODE
=$enableval
7198 USE_MAINTAINER_MODE
=no
7201 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7204 if test "$USE_MAINTAINER_MODE" = yes; then
7205 MAINTAINER_MODE_TRUE
=
7206 MAINTAINER_MODE_FALSE
='#'
7208 MAINTAINER_MODE_TRUE
='#'
7209 MAINTAINER_MODE_FALSE
=
7211 MAINT
=$MAINTAINER_MODE_TRUE
7213 # ---------------------
7214 # GCC bootstrap support
7215 # ---------------------
7217 # Stage specific cflags for build.
7222 yes) stage1_cflags
="-g -Wa,-J" ;;
7223 *) stage1_cflags
="-g -J" ;;
7226 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7227 # sources; use -no-cpp-precomp to get to GNU cpp.
7228 # Apple's GCC has bugs in designated initializer handling, so disable
7230 stage1_cflags
="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7235 # Enable -Werror in bootstrap stage2 and later.
7236 # Change the default to "no" on release branches.
7237 # Check whether --enable-werror or --disable-werror was given.
7238 if test "${enable_werror+set}" = set; then
7239 enableval
="$enable_werror"
7245 case ${enable_werror} in
7246 yes) stage2_werror_flag
="--enable-werror-always" ;;
7247 *) stage2_werror_flag
="" ;;
7252 cat > confcache
<<\EOF
7253 # This file is a shell script that caches the results of configure
7254 # tests run on this system so they can be shared between configure
7255 # scripts and configure runs. It is not useful on other systems.
7256 # If it contains results you don't want to keep, you may remove or edit it.
7258 # By default, configure uses ./config.cache as the cache file,
7259 # creating it if it does not exist already. You can give configure
7260 # the --cache-file=FILE option to use a different cache file; that is
7261 # what configure does when it calls configure scripts in
7262 # subdirectories, so they share the cache.
7263 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7264 # config.status only pays attention to the cache file if you give it the
7265 # --recheck option to rerun configure.
7268 # The following way of writing the cache mishandles newlines in values,
7269 # but we know of no workaround that is simple, portable, and efficient.
7270 # So, don't put newlines in cache variables' values.
7271 # Ultrix sh set writes to stderr and can't be redirected directly,
7272 # and sets the high bit in the cache file unless we assign to the vars.
7274 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7276 # `set' does not quote correctly, so add quotes (double-quote substitution
7277 # turns \\\\ into \\, and sed turns \\ into \).
7279 -e "s/'/'\\\\''/g" \
7280 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7283 # `set' quotes correctly as required by POSIX, so do not add quotes.
7284 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7287 if cmp -s $cache_file confcache
; then
7290 if test -w $cache_file; then
7291 echo "updating cache $cache_file"
7292 cat confcache
> $cache_file
7294 echo "not updating unwritable cache $cache_file"
7299 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7301 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7302 # Let make expand exec_prefix.
7303 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7305 # Any assignment to VPATH causes Sun make to only execute
7306 # the first set of double-colon rules, so remove it if not needed.
7307 # If there is a colon in the path, we need to keep it.
7308 if test "x$srcdir" = x.
; then
7309 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7312 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7314 # Transform confdefs.h into DEFS.
7315 # Protect against shell expansion while executing Makefile rules.
7316 # Protect against Makefile macro expansion.
7317 cat > conftest.defs
<<\EOF
7318 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7319 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7324 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
7328 # Without the "./", some shells look in PATH for config.status.
7329 : ${CONFIG_STATUS=./config.status}
7331 echo creating $CONFIG_STATUS
7332 rm -f $CONFIG_STATUS
7333 cat > $CONFIG_STATUS <<EOF
7335 # Generated automatically by configure.
7336 # Run this file to recreate the current configuration.
7337 # This directory was configured as follows,
7338 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
7340 # $0 $ac_configure_args
7342 # Compiler output produced by configure, useful for debugging
7343 # configure, is in ./config.log if it exists.
7345 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7348 case "\$ac_option" in
7349 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7350 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7351 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7352 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7353 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7355 -help | --help | --hel | --he | --h)
7356 echo "\$ac_cs_usage"; exit 0 ;;
7357 *) echo "\$ac_cs_usage"; exit 1 ;;
7361 ac_given_srcdir=$srcdir
7362 ac_given_INSTALL="$INSTALL"
7364 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7366 cat >> $CONFIG_STATUS <<EOF
7368 # Protect against being on the right side of a sed subst in config.status.
7369 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7370 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7374 s%@CFLAGS@%$CFLAGS%g
7375 s%@CPPFLAGS@%$CPPFLAGS%g
7376 s%@CXXFLAGS@%$CXXFLAGS%g
7377 s%@FFLAGS@%$FFLAGS%g
7379 s%@LDFLAGS@%$LDFLAGS%g
7381 s%@exec_prefix@%$exec_prefix%g
7382 s%@prefix@%$prefix%g
7383 s%@program_transform_name@%$program_transform_name%g
7384 s%@bindir@%$bindir%g
7385 s%@sbindir@%$sbindir%g
7386 s%@libexecdir@%$libexecdir%g
7387 s%@datadir@%$datadir%g
7388 s%@sysconfdir@%$sysconfdir%g
7389 s%@sharedstatedir@%$sharedstatedir%g
7390 s%@localstatedir@%$localstatedir%g
7391 s%@libdir@%$libdir%g
7392 s%@includedir@%$includedir%g
7393 s%@oldincludedir@%$oldincludedir%g
7394 s%@infodir@%$infodir%g
7395 s%@mandir@%$mandir%g
7397 s%@host_alias@%$host_alias%g
7398 s%@host_cpu@%$host_cpu%g
7399 s%@host_vendor@%$host_vendor%g
7400 s%@host_os@%$host_os%g
7401 s%@target@%$target%g
7402 s%@target_alias@%$target_alias%g
7403 s%@target_cpu@%$target_cpu%g
7404 s%@target_vendor@%$target_vendor%g
7405 s%@target_os@%$target_os%g
7407 s%@build_alias@%$build_alias%g
7408 s%@build_cpu@%$build_cpu%g
7409 s%@build_vendor@%$build_vendor%g
7410 s%@build_os@%$build_os%g
7411 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7412 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7413 s%@INSTALL_DATA@%$INSTALL_DATA%g
7416 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7417 s%@build_subdir@%$build_subdir%g
7418 s%@host_subdir@%$host_subdir%g
7419 s%@target_subdir@%$target_subdir%g
7421 s%@GNATBIND@%$GNATBIND%g
7422 s%@do_compare@%$do_compare%g
7423 s%@gmplibs@%$gmplibs%g
7424 s%@gmpinc@%$gmpinc%g
7425 s%@stage1_languages@%$stage1_languages%g
7426 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7427 /@serialization_dependencies@/r $serialization_dependencies
7428 s%@serialization_dependencies@%%g
7429 /@host_makefile_frag@/r $host_makefile_frag
7430 s%@host_makefile_frag@%%g
7431 /@target_makefile_frag@/r $target_makefile_frag
7432 s%@target_makefile_frag@%%g
7433 /@alphaieee_frag@/r $alphaieee_frag
7434 s%@alphaieee_frag@%%g
7435 /@ospace_frag@/r $ospace_frag
7437 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7438 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
7439 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
7440 s%@tooldir@%$tooldir%g
7441 s%@build_tooldir@%$build_tooldir%g
7442 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7443 s%@GDB_TK@%$GDB_TK%g
7444 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7445 s%@build_configargs@%$build_configargs%g
7446 s%@build_configdirs@%$build_configdirs%g
7447 s%@host_configargs@%$host_configargs%g
7448 s%@configdirs@%$configdirs%g
7449 s%@target_configargs@%$target_configargs%g
7450 s%@target_configdirs@%$target_configdirs%g
7451 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7452 s%@config_shell@%$config_shell%g
7458 s%@MAKEINFO@%$MAKEINFO%g
7459 s%@EXPECT@%$EXPECT%g
7460 s%@RUNTEST@%$RUNTEST%g
7463 s%@DLLTOOL@%$DLLTOOL%g
7467 s%@RANLIB@%$RANLIB%g
7469 s%@WINDRES@%$WINDRES%g
7470 s%@OBJCOPY@%$OBJCOPY%g
7471 s%@OBJDUMP@%$OBJDUMP%g
7473 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7474 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7475 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7476 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7477 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7478 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7479 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7480 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7481 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7482 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7483 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7484 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7485 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7486 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7487 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7488 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7489 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7490 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7491 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7492 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7493 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7494 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7495 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7497 s%@stage1_cflags@%$stage1_cflags%g
7498 s%@stage2_werror_flag@%$stage2_werror_flag%g
7503 cat >> $CONFIG_STATUS <<\EOF
7505 # Split the substitutions into bite-sized pieces for seds with
7506 # small command number limits, like on Digital OSF/1 and HP-UX.
7507 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7508 ac_file=1 # Number of current file.
7509 ac_beg=1 # First line for current file.
7510 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7513 while $ac_more_lines; do
7514 if test $ac_beg -gt 1; then
7515 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7517 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7519 if test ! -s conftest.s$ac_file; then
7521 rm -f conftest.s$ac_file
7523 if test -z "$ac_sed_cmds"; then
7524 ac_sed_cmds="sed -f conftest.s$ac_file"
7526 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7528 ac_file=`expr $ac_file + 1`
7530 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7533 if test -z "$ac_sed_cmds"; then
7538 cat >> $CONFIG_STATUS <<EOF
7540 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7542 cat >> $CONFIG_STATUS <<\EOF
7543 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7544 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7546 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
7547 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
7548 *) ac_file_in="${ac_file}.in" ;;
7551 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7553 # Remove last slash and all that follows it. Not all systems have dirname.
7554 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7555 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7556 # The file is in a subdirectory.
7557 test ! -d "$ac_dir" && mkdir "$ac_dir"
7558 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
7559 # A "../" for each directory in $ac_dir_suffix.
7560 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
7562 ac_dir_suffix= ac_dots=
7565 case "$ac_given_srcdir" in
7567 if test -z "$ac_dots"; then top_srcdir=.
7568 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
7569 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7571 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7572 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7575 case "$ac_given_INSTALL" in
7576 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7577 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7580 echo creating "$ac_file"
7582 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
7584 *Makefile*) ac_comsub="1i\\
7585 # $configure_input" ;;
7589 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7591 s%@configure_input@%$configure_input%g
7592 s%@srcdir@%$srcdir%g
7593 s%@top_srcdir@%$top_srcdir%g
7594 s%@INSTALL@%$INSTALL%g
7595 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7600 cat >> $CONFIG_STATUS <<EOF
7603 cat >> $CONFIG_STATUS <<\EOF
7607 chmod +x $CONFIG_STATUS
7608 rm -fr confdefs* $ac_clean_files
7609 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1