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 --with-build-libsubdir=[DIR] Directory where to find libraries for build system"
17 --enable-libada Builds libada directory"
19 --enable-libssp Builds libssp directory"
21 --with-mpfr-dir=PATH This option has been REMOVED"
23 --with-mpfr=PATH Specify prefix directory for installed MPFR package
24 Equivalent to --with-mpfr-include=PATH/include
25 plus --with-mpfr-lib=PATH/lib"
27 --with-mpfr-include=PATH
28 Specify directory for installed MPFR include files"
30 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library"
32 --with-gmp-dir=PATH This option has been REMOVED"
34 --with-gmp=PATH Specify prefix directory for the installed GMP package
35 Equivalent to --with-gmp-include=PATH/include
36 plus --with-gmp-lib=PATH/lib"
38 --with-gmp-include=PATH Specify directory for installed GMP include files"
40 --with-gmp-lib=PATH Specify the directory for the installed GMP library"
42 --enable-stage1-languages[=all] choose additional languages to build during
43 stage1. Mostly useful for compiler development."
45 --enable-objc-gc enable the use of Boehm's garbage collector with
46 the GNU Objective-C runtime."
48 --with-build-sysroot=sysroot
49 use sysroot as the system root during the build"
51 --enable-bootstrap Enable bootstrapping [yes if native build]"
53 --enable-serial-[{host,target,build}-]configure
54 Force sequential configuration of
55 sub-packages for the host, target or build
56 machine, or all sub-packages"
58 --with-build-time-tools=path
59 use given path to find target tools during the build"
61 --enable-maintainer-mode enable make rules and dependencies not useful
62 (and sometimes confusing) to the casual installer"
64 --enable-stage1-checking[=all] choose additional checking for stage1
67 --enable-werror enable -Werror in bootstrap stage2 and later"
69 --with-datarootdir Use datarootdir as the data root directory."
71 --with-docdir Install documentation in this directory."
73 --with-htmldir Install html in this directory."
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
79 cache_file
=.
/config.cache
88 program_transform_name
=s
,x
,x
,
96 bindir
='${exec_prefix}/bin'
97 sbindir
='${exec_prefix}/sbin'
98 libexecdir
='${exec_prefix}/libexec'
99 datadir
='${prefix}/share'
100 sysconfdir
='${prefix}/etc'
101 sharedstatedir
='${prefix}/com'
102 localstatedir
='${prefix}/var'
103 libdir
='${exec_prefix}/lib'
104 includedir
='${prefix}/include'
105 oldincludedir
='/usr/include'
106 infodir
='${prefix}/info'
107 mandir
='${prefix}/man'
109 # Initialize some other variables.
112 SHELL
=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
128 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
132 # Accept the important Cygnus configure options, so we can diagnose typos.
136 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
138 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
139 bindir
="$ac_optarg" ;;
141 -build |
--build |
--buil |
--bui |
--bu)
143 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
144 build
="$ac_optarg" ;;
146 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
147 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
148 ac_prev
=cache_file
;;
149 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
150 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
151 cache_file
="$ac_optarg" ;;
153 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
155 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
157 datadir
="$ac_optarg" ;;
159 -disable-* |
--disable-*)
160 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* |
--enable-*)
169 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
182 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
183 |
--exec |
--exe |
--ex)
184 ac_prev
=exec_prefix
;;
185 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
186 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
187 |
--exec=* |
--exe=* |
--ex=*)
188 exec_prefix
="$ac_optarg" ;;
190 -gas |
--gas |
--ga |
--g)
191 # Obsolete; use --with-gas.
194 -help |
--help |
--hel |
--he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
249 -host |
--host |
--hos |
--ho)
251 -host=* |
--host=* |
--hos=* |
--ho=*)
254 -includedir |
--includedir |
--includedi |
--included |
--include \
255 |
--includ |
--inclu |
--incl |
--inc)
256 ac_prev
=includedir
;;
257 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
258 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
259 includedir
="$ac_optarg" ;;
261 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
263 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
264 infodir
="$ac_optarg" ;;
266 -libdir |
--libdir |
--libdi |
--libd)
268 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
269 libdir
="$ac_optarg" ;;
271 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
272 |
--libexe |
--libex |
--libe)
273 ac_prev
=libexecdir
;;
274 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
275 |
--libexe=* |
--libex=* |
--libe=*)
276 libexecdir
="$ac_optarg" ;;
278 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
279 |
--localstate |
--localstat |
--localsta |
--localst \
280 |
--locals |
--local |
--loca |
--loc |
--lo)
281 ac_prev
=localstatedir
;;
282 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
283 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
284 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
285 localstatedir
="$ac_optarg" ;;
287 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
289 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
290 mandir
="$ac_optarg" ;;
293 # Obsolete; use --without-fp.
296 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
300 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
301 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
304 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
305 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
306 |
--oldin |
--oldi |
--old |
--ol |
--o)
307 ac_prev
=oldincludedir
;;
308 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
309 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
310 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
311 oldincludedir
="$ac_optarg" ;;
313 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
315 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
316 prefix
="$ac_optarg" ;;
318 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
319 |
--program-pre |
--program-pr |
--program-p)
320 ac_prev
=program_prefix
;;
321 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
322 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
323 program_prefix
="$ac_optarg" ;;
325 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
326 |
--program-suf |
--program-su |
--program-s)
327 ac_prev
=program_suffix
;;
328 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
329 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
330 program_suffix
="$ac_optarg" ;;
332 -program-transform-name |
--program-transform-name \
333 |
--program-transform-nam |
--program-transform-na \
334 |
--program-transform-n |
--program-transform- \
335 |
--program-transform |
--program-transfor \
336 |
--program-transfo |
--program-transf \
337 |
--program-trans |
--program-tran \
338 |
--progr-tra |
--program-tr |
--program-t)
339 ac_prev
=program_transform_name
;;
340 -program-transform-name=* |
--program-transform-name=* \
341 |
--program-transform-nam=* |
--program-transform-na=* \
342 |
--program-transform-n=* |
--program-transform-=* \
343 |
--program-transform=* |
--program-transfor=* \
344 |
--program-transfo=* |
--program-transf=* \
345 |
--program-trans=* |
--program-tran=* \
346 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
347 program_transform_name
="$ac_optarg" ;;
349 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
350 |
-silent |
--silent |
--silen |
--sile |
--sil)
353 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
355 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
357 sbindir
="$ac_optarg" ;;
359 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
360 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
361 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
363 ac_prev
=sharedstatedir
;;
364 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
365 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
366 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
368 sharedstatedir
="$ac_optarg" ;;
370 -site |
--site |
--sit)
372 -site=* |
--site=* |
--sit=*)
375 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
377 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
378 srcdir
="$ac_optarg" ;;
380 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
381 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
382 ac_prev
=sysconfdir
;;
383 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
384 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
385 sysconfdir
="$ac_optarg" ;;
387 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
389 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
390 target
="$ac_optarg" ;;
392 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
395 -version |
--version |
--versio |
--versi |
--vers)
396 echo "configure generated by autoconf version 2.13"
400 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package
=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* |
--without-*)
413 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
422 # Obsolete; use --with-x.
425 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
426 |
--x-incl |
--x-inc |
--x-in |
--x-i)
427 ac_prev
=x_includes
;;
428 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
429 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
430 x_includes
="$ac_optarg" ;;
432 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
433 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
434 ac_prev
=x_libraries
;;
435 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
436 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
437 x_libraries
="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE
; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c) ;;
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
491 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest
* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file
=move-if-change
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted
=yes
519 # Try the directory containing this script, then its parent.
521 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
524 if test ! -r $srcdir/$ac_unique_file; then
528 ac_srcdir_defaulted
=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE
; then
542 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
544 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file
in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
558 echo "creating cache $cache_file"
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp
='$CPP $CPPFLAGS'
565 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling
=$ac_cv_prog_cc_cross
571 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
580 ac_n
= ac_c
='\c' ac_t
=
586 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
587 if test -f $ac_dir/install-sh
; then
589 ac_install_sh
="$ac_aux_dir/install-sh -c"
591 elif test -f $ac_dir/install.sh
; then
593 ac_install_sh
="$ac_aux_dir/install.sh -c"
597 if test -z "$ac_aux_dir"; then
598 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
600 ac_config_guess
=$ac_aux_dir/config.guess
601 ac_config_sub
=$ac_aux_dir/config.sub
602 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
605 # Do some error checking and defaulting for the host and target type.
607 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
610 # 1. You are not allowed to specify --host, --target, and nonopt at the
612 # 2. Host defaults to nonopt.
613 # 3. If nonopt is not specified, then host defaults to the current host,
614 # as determined by config.guess.
615 # 4. Target and build default to nonopt.
616 # 5. If nonopt is not specified, then target and build default to host.
618 # The aliases save the names the user supplied, while $host etc.
619 # will get canonicalized.
620 case $host---$target---$nonopt in
621 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
622 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
626 # Make sure we can run config.sub.
627 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
628 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
631 echo $ac_n "checking host system type""... $ac_c" 1>&6
632 echo "configure:633: checking host system type" >&5
635 case "$host_alias" in
639 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
640 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
642 *) host_alias
=$nonopt ;;
646 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
647 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
648 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
649 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
650 echo "$ac_t""$host" 1>&6
652 echo $ac_n "checking target system type""... $ac_c" 1>&6
653 echo "configure:654: checking target system type" >&5
656 case "$target_alias" in
659 NONE
) target_alias
=$host_alias ;;
660 *) target_alias
=$nonopt ;;
664 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
665 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
666 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
667 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
668 echo "$ac_t""$target" 1>&6
670 echo $ac_n "checking build system type""... $ac_c" 1>&6
671 echo "configure:672: checking build system type" >&5
674 case "$build_alias" in
677 NONE
) build_alias
=$host_alias ;;
678 *) build_alias
=$nonopt ;;
682 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
683 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
684 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
685 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
686 echo "$ac_t""$build" 1>&6
688 test "$host_alias" != "$target_alias" &&
689 test "$program_prefix$program_suffix$program_transform_name" = \
691 program_prefix
=${target_alias}-
693 if test "$program_transform_name" = s
,x
,x
,; then
694 program_transform_name
=
696 # Double any \ or $. echo might interpret backslashes.
697 cat <<\EOF_SED
> conftestsed
698 s
,\\,\\\\,g
; s
,\$
,$$
,g
700 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
703 test "$program_prefix" != NONE
&&
704 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
705 # Use a double $ so make ignores it.
706 test "$program_suffix" != NONE
&&
707 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
709 # sed with no file args requires a program.
710 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
713 # Get 'install' or 'install-sh' and its variants.
714 # Find a good install program. We prefer a C program (faster),
715 # so one script is as good as another. But avoid the broken or
716 # incompatible versions:
717 # SysV /etc/install, /usr/sbin/install
718 # SunOS /usr/etc/install
721 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
722 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
723 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
724 # ./install, which can be erroneously created by make from ./install.sh.
725 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
726 echo "configure:727: checking for a BSD compatible install" >&5
727 if test -z "$INSTALL"; then
728 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
732 for ac_dir
in $PATH; do
733 # Account for people who put trailing slashes in PATH elements.
735 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
737 # OSF1 and SCO ODT 3.0 have their own names for install.
738 # Don't use installbsd from OSF since it installs stuff as root
740 for ac_prog
in ginstall scoinst
install; do
741 if test -f $ac_dir/$ac_prog; then
742 if test $ac_prog = install &&
743 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
744 # AIX install. It has an incompatible calling convention.
747 ac_cv_path_install
="$ac_dir/$ac_prog -c"
758 if test "${ac_cv_path_install+set}" = set; then
759 INSTALL
="$ac_cv_path_install"
761 # As a last resort, use the slow shell script. We don't cache a
762 # path for INSTALL within a source directory, because that will
763 # break other packages using the cache if that directory is
764 # removed, or if the path is relative.
765 INSTALL
="$ac_install_sh"
768 echo "$ac_t""$INSTALL" 1>&6
770 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
771 # It thinks the first close brace ends the variable substitution.
772 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
774 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
776 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
778 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
779 echo "configure:780: checking whether ln works" >&5
780 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
785 if ln conftestdata_f conftestdata_t
2>/dev
/null
791 rm -f conftestdata_f conftestdata_t
794 if test $acx_cv_prog_LN = no
; then
796 echo "$ac_t""no, using $LN" 1>&6
799 echo "$ac_t""yes" 1>&6
802 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
803 echo "configure:804: checking whether ln -s works" >&5
804 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
808 if ln -s X conftestdata
2>/dev
/null
811 ac_cv_prog_LN_S
="ln -s"
816 LN_S
="$ac_cv_prog_LN_S"
817 if test "$ac_cv_prog_LN_S" = "ln -s"; then
818 echo "$ac_t""yes" 1>&6
820 echo "$ac_t""no" 1>&6
824 ### we might need to use some other shell than /bin/sh for running subshells
825 ### If we are on Windows, search for the shell. This will permit people
826 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
827 ### without also having to set CONFIG_SHELL. This code will work when
828 ### using bash, which sets OSTYPE.
831 if test x
${CONFIG_SHELL} = x
; then
832 if test ! -f /bin
/sh
; then
833 if test x
${SHELL} != x
&& test -f ${SHELL} ; then
834 CONFIG_SHELL
=${SHELL}
837 for prog
in sh sh.exe bash bash.exe
; do
838 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
840 test -z "$dir" && dir
=.
841 if test -f $dir/$prog; then
842 CONFIG_SHELL
=$dir/$prog
848 test -n "${CONFIG_SHELL}" && break
856 config_shell
=${CONFIG_SHELL-/bin/sh}
859 # if PWD already has a value, it is probably wrong.
860 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
862 # Export original configure arguments for use by sub-configures. These
863 # will be expanded by make, so quote '$'.
865 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
868 TOPLEVEL_CONFIGURE_ARGUMENTS
=`cat conftestsed.out`
869 rm -f conftestsed.out
872 moveifchange
=${srcdir}/move-if-change
874 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
876 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
878 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
879 INSTALL
="${srcpwd}/install-sh -c"
882 # Set srcdir to "." if that's what it is.
883 # This is important for multilib support.
885 if test "${pwd}" = "${srcpwd}" ; then
893 ### To add a new directory to the tree, first choose whether it is a target
894 ### or a host dependent tool. Then put it into the appropriate list
895 ### (library or tools, host or target), doing a dependency sort.
897 # Subdirs will be configured in the order listed in build_configdirs,
898 # configdirs, or target_configdirs; see the serialization section below.
900 # Dependency sorting is only needed when *configuration* must be done in
901 # a particular order. In all cases a dependency should be specified in
902 # the Makefile, whether or not it's implicitly specified here.
904 # Double entries in build_configdirs, configdirs, or target_configdirs may
905 # cause circular dependencies and break everything horribly.
907 # these library is used by various programs built for the build
910 build_libs
="build-libiberty"
912 # these tools are built for the build environment
913 build_tools
="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
915 # these libraries are used by various programs built for the host environment
917 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
919 # these tools are built for the host environment
920 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
921 # know that we are building the simulator.
922 # binutils, gas and ld appear in that order because it makes sense to run
923 # "make check" in that particular order.
924 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"
926 # libgcj represents the runtime libraries only used by gcj.
927 libgcj
="target-libffi \
932 # these libraries are built for the target environment, and are built after
933 # the host libraries and the host tools (which may be a cross compiler)
935 target_libraries
="target-libiberty \
939 target-libstdc++-v3 \
949 # these tools are built using the target libraries, and are intended to
950 # run only in the target environment
952 # note: any program that *uses* libraries that are in the "target_libraries"
953 # list belongs in this list. those programs are also very likely
954 # candidates for the "native_only" list which follows
956 target_tools
="target-examples target-groff target-gperf target-rda"
958 ################################################################################
960 ## All tools belong in one of the four categories, and are assigned above
961 ## We assign ${configdirs} this way to remove all embedded newlines. This
962 ## is important because configure will choke if they ever get through.
963 ## ${configdirs} is directories we build using the host tools.
964 ## ${target_configdirs} is directories we build using the target tools.
965 configdirs
=`echo ${host_libs} ${host_tools}`
966 target_configdirs
=`echo ${target_libraries} ${target_tools}`
967 build_configdirs
=`echo ${build_libs} ${build_tools}`
969 ################################################################################
971 srcname
="gnu development package"
973 # This gets set non-empty for some net releases of packages.
976 # Define is_cross_compiler to save on calls to 'test'.
978 if test x
"${host}" = x
"${target}" ; then
981 is_cross_compiler
=yes
984 # Find the build and target subdir names.
985 case ${build_alias} in
986 "") build_noncanonical
=${build} ;;
987 *) build_noncanonical
=${build_alias} ;;
990 case ${host_alias} in
991 "") host_noncanonical
=${build_noncanonical} ;;
992 *) host_noncanonical
=${host_alias} ;;
995 case ${target_alias} in
996 "") target_noncanonical
=${host_noncanonical} ;;
997 *) target_noncanonical
=${target_alias} ;;
1001 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1002 # have matching libraries, they should use host libraries: Makefile.tpl
1003 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1004 # However, they still use the build modules, because the corresponding
1005 # host modules (e.g. bison) are only built for the host when bootstrap
1007 # - build_subdir is where we find build modules, and never changes.
1008 # - build_libsubdir is where we find build libraries, and can be overridden.
1010 # Prefix 'build-' so this never conflicts with target_subdir.
1011 build_subdir
="build-${build_noncanonical}"
1012 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1013 if test "${with_build_libsubdir+set}" = set; then
1014 withval
="$with_build_libsubdir"
1015 build_libsubdir
="$withval"
1017 build_libsubdir
="$build_subdir"
1020 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1021 if ( test $srcdir = .
&& test -d gcc
) \
1022 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
1023 host_subdir
="host-${host_noncanonical}"
1028 target_subdir
=${target_noncanonical}
1031 # Skipdirs are removed silently.
1033 # Noconfigdirs are removed loudly.
1037 # Make sure we don't let GNU ld be added if we didn't want it.
1038 if test x
$with_gnu_ld = xno
; then
1040 noconfigdirs
="$noconfigdirs ld"
1044 # Make sure we don't let GNU as be added if we didn't want it.
1045 if test x
$with_gnu_as = xno
; then
1047 noconfigdirs
="$noconfigdirs gas"
1050 # some tools are so dependent upon X11 that if we're not building with X,
1051 # it's not even worth trying to configure, much less build, that tool.
1054 yes |
"") ;; # the default value for this tree is that X11 is available
1056 skipdirs
="${skipdirs} tk itcl libgui"
1057 # We won't be able to build gdbtk without X.
1060 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1063 # Some tools are only suitable for building in a "native" situation.
1064 # Remove these if host!=target.
1065 native_only
="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1067 # Similarly, some are only suitable for cross toolchains.
1068 # Remove these if host=target.
1069 cross_only
="target-libgloss target-newlib target-opcodes"
1071 case $is_cross_compiler in
1072 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1073 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1076 # If both --with-headers and --with-libs are specified, default to
1078 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
1079 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
1080 if test x
"${with_newlib}" = x
; then
1085 # Recognize --with-newlib/--without-newlib.
1086 case ${with_newlib} in
1087 no
) skipdirs
="${skipdirs} target-newlib" ;;
1088 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1091 # Configure extra directories which are host specific
1095 configdirs
="$configdirs libtermcap" ;;
1098 # A target can indicate whether a language isn't supported for some reason.
1099 # Only spaces may be used in this macro; not newlines or tabs.
1100 unsupported_languages
=
1102 # Remove more programs from consideration, based on the host or
1103 # target this usually means that a port of the program doesn't
1108 noconfigdirs
="$noconfigdirs byacc"
1110 i
[3456789]86-*-vsta)
1111 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1113 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1114 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1117 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1119 i
[3456789]86-*-mingw32*)
1120 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1121 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1123 i
[3456789]86-*-beos*)
1124 noconfigdirs
="$noconfigdirs tk itcl libgui gdb"
1127 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1130 noconfigdirs
="$noconfigdirs rcs"
1133 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1136 noconfigdirs
="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1141 # Check whether --enable-libada or --disable-libada was given.
1142 if test "${enable_libada+set}" = set; then
1143 enableval
="$enable_libada"
1144 ENABLE_LIBADA
=$enableval
1149 if test "${ENABLE_LIBADA}" != "yes" ; then
1150 noconfigdirs
="$noconfigdirs gnattools"
1153 # Check whether --enable-libssp or --disable-libssp was given.
1154 if test "${enable_libssp+set}" = set; then
1155 enableval
="$enable_libssp"
1156 ENABLE_LIBSSP
=$enableval
1162 # Save it here so that, even in case of --enable-libgcj, if the Java
1163 # front-end isn't enabled, we still get libgcj disabled.
1164 libgcj_saved
=$libgcj
1165 case $enable_libgcj in
1167 # If we reset it here, it won't get added to noconfigdirs in the
1168 # target-specific build rules, so it will be forcibly enabled
1169 # (unless the Java language itself isn't enabled).
1173 # Make sure we get it printed in the list of not supported target libs.
1174 noconfigdirs
="$noconfigdirs ${libgcj}"
1179 # Disable libmudflap on some systems.
1180 if test x
$enable_libmudflap = x
; then
1182 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1183 # Enable libmudflap by default in GNU and friends.
1186 # Enable libmudflap by default in FreeBSD.
1189 # Disable it by default everywhere else.
1190 noconfigdirs
="$noconfigdirs target-libmudflap"
1195 # Disable libgomp on non POSIX hosted systems.
1196 if test x
$enable_libgomp = x
; then
1197 # Enable libgomp by default on hosted POSIX systems.
1199 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1201 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd*)
1203 *-*-solaris2* |
*-*-sysv4* |
*-*-irix6* |
*-*-osf* |
*-*-hpux11*)
1205 *-*-darwin* |
*-*-aix*)
1208 noconfigdirs
="$noconfigdirs target-libgomp"
1216 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1218 powerpc-
*-darwin* | i
[3456789]86-*-darwin*)
1219 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1220 noconfigdirs
="$noconfigdirs sim target-rda"
1223 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
1224 noconfigdirs
="$noconfigdirs sim target-rda"
1225 noconfigdirs
="$noconfigdirs ${libgcj}"
1227 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1228 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1231 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1232 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1233 && test -f /usr
/local
/include
/gmp.h
; then
1237 # Skip some stuff that's unsupported on some FreeBSD configurations.
1242 noconfigdirs
="$noconfigdirs ${libgcj}"
1247 # Remove unsupported stuff on all kaOS configurations.
1248 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1249 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1250 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1251 noconfigdirs
="$noconfigdirs target-libgloss"
1254 # Skip some stuff on all NetBSD configurations.
1255 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1257 # Skip some stuff that's unsupported on some NetBSD configurations.
1259 i
*86-*-netbsdelf*) ;;
1260 arm
*-*-netbsdelf*) ;;
1262 noconfigdirs
="$noconfigdirs ${libgcj}"
1267 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1270 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1272 # The tpf target doesn't support gdb yet.
1274 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1277 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1280 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1283 # ld works, but does not support shared libraries.
1284 # newlib is not 64 bit ready. I'm not sure about fileutils.
1285 # gas doesn't generate exception information.
1286 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1289 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1292 # newlib is not 64 bit ready
1293 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1296 # newlib is not 64 bit ready
1297 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1300 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1303 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1305 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1306 noconfigdirs
="$noconfigdirs ${libgcj}"
1307 noconfigdirs
="$noconfigdirs target-examples"
1308 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1309 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
1310 noconfigdirs
="$noconfigdirs expect dejagnu"
1311 # the C++ libraries don't build on top of CE's C libraries
1312 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1313 noconfigdirs
="$noconfigdirs target-newlib"
1315 *-*-cygwin*) ;; # keep gdb and readline
1316 *) noconfigdirs
="$noconfigdirs gdb readline"
1321 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1325 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1326 noconfigdirs
="$noconfigdirs ${libgcj}"
1328 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
1329 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1331 arm
*-*-linux-gnueabi)
1332 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1333 noconfigdirs
="$noconfigdirs target-libjava target-libobjc"
1336 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1339 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1342 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1345 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1348 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1351 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1354 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1357 noconfigdirs
="$noconfigdirs gdb"
1358 if test x
${is_cross_compiler} != xno
; then
1359 target_configdirs
="${target_configdirs} target-bsp target-cygmon"
1362 c4x-
*-* | tic4x-
*-*)
1363 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1365 c54x
*-*-* | tic54x-
*-*)
1366 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1368 cris-
*-* | crisv32-
*-*)
1369 unsupported_languages
="$unsupported_languages java"
1372 unsupported_languages
="$unsupported_languages fortran"
1373 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
1375 unsupported_languages
="$unsupported_languages fortran"
1376 noconfigdirs
="$noconfigdirs target-boehm-gc";;
1378 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
1380 unsupported_languages
="$unsupported_languages fortran"
1381 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1385 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1388 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1391 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1394 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1397 noconfigdirs
="$noconfigdirs ${libgcj}"
1400 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1403 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1405 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
1407 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1408 # In this case, it's because the hppa64-linux target is for
1409 # the kernel only at this point and has no libc, and thus no
1410 # headers, crt*.o, etc., all of which are needed by these.
1411 noconfigdirs
="$noconfigdirs target-zlib"
1413 parisc
*-*-linux* | hppa
*-*-linux*)
1417 hppa
*-*-openbsd* | \
1419 noconfigdirs
="$noconfigdirs ${libgcj}"
1422 noconfigdirs
="$noconfigdirs ld shellutils"
1425 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1426 # build on HP-UX 10.20.
1427 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1430 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1433 # No gdb support yet.
1434 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
1437 # No gdb or ld support yet.
1438 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1442 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1443 noconfigdirs
="$noconfigdirs ${libgcj}"
1445 i
[3456789]86-*-linux*)
1446 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1447 # not build java stuff by default.
1450 noconfigdirs
="$noconfigdirs ${libgcj}";;
1453 # This section makes it possible to build newlib natively on linux.
1454 # If we are using a cross compiler then don't configure newlib.
1455 if test x
${is_cross_compiler} != xno
; then
1456 noconfigdirs
="$noconfigdirs target-newlib"
1458 noconfigdirs
="$noconfigdirs target-libgloss"
1459 # If we are not using a cross compiler, do configure newlib.
1460 # Note however, that newlib will only be configured in this situation
1461 # if the --with-newlib option has been given, because otherwise
1462 # 'target-newlib' will appear in skipdirs.
1464 i
[3456789]86-*-mingw32*)
1465 target_configdirs
="$target_configdirs target-winsup"
1466 noconfigdirs
="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1469 target_configdirs
="$target_configdirs target-winsup"
1470 noconfigdirs
="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1473 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1474 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1475 # always build newlib if winsup directory is present.
1476 if test -d "$srcdir/winsup/cygwin"; then
1477 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1478 elif test -d "$srcdir/newlib"; then
1479 echo "Warning: winsup/cygwin is missing so newlib can't be built."
1482 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
1483 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
1486 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1488 i
[3456789]86-*-sco3.2v5
*)
1489 # The linker does not yet know about weak symbols in COFF,
1490 # and is not configured to handle mixed ELF and COFF.
1491 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1493 i
[3456789]86-*-sco*)
1494 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1496 i
[3456789]86-*-solaris2*)
1497 noconfigdirs
="$noconfigdirs target-libgloss"
1499 i
[3456789]86-*-sysv4*)
1500 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1502 i
[3456789]86-*-beos*)
1503 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1505 i
[3456789]86-*-rdos*)
1506 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1509 noconfigdirs
="$noconfigdirs ${libgcj}"
1511 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1512 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1515 noconfigdirs
="$noconfigdirs ${libgcj}"
1518 noconfigdirs
="$noconfigdirs ${libgcj}"
1521 # The EPOC C++ environment does not support exceptions or rtti,
1522 # and so building libstdc++-v3 tends not to always work.
1523 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1526 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1527 unsupported_languages
="$unsupported_languages fortran java"
1530 noconfigdirs
="$noconfigdirs ${libgcj}"
1533 noconfigdirs
="$noconfigdirs ${libgcj}"
1536 noconfigdirs
="$noconfigdirs sim"
1539 # copied from rs6000-*-* entry
1540 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1542 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1543 target_configdirs
="$target_configdirs target-winsup"
1544 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1545 # always build newlib.
1546 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1548 # This is temporary until we can link against shared libraries
1549 powerpcle-
*-solaris*)
1550 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1553 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1556 noconfigdirs
="$noconfigdirs ${libgcj}"
1558 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
1561 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1564 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1567 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1570 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1573 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1576 # Linking libjava exceeds command-line length limits on at least
1577 # IRIX 6.2, but not on IRIX 6.5.
1578 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1579 # <oldham@codesourcery.com>
1580 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1583 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1586 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1589 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1592 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1595 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1599 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1600 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1601 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1602 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1604 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1607 noconfigdirs
="$noconfigdirs ${libgcj}"
1610 noconfigdirs
="$noconfigdirs ${libgcj}"
1613 noconfigdirs
="$noconfigdirs ${libgcj}"
1616 noconfigdirs
="$noconfigdirs ${libgcj}"
1617 if test x
${is_cross_compiler} != xno
; then
1618 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1623 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
1624 noconfigdirs
="$noconfigdirs ${libgcj}"
1626 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1629 skipdirs
="target-libssp"
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"
1790 host_makefile_frag
="config/mh-interix"
1793 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1797 host_makefile_frag
="config/mh-solaris"
1800 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1801 # without overflowing the jump tables (-J says to use a 32 bit table)
1802 tentative_cc
="cc -J"
1805 tentative_cc
="cc -Wp,-H256000"
1808 tentative_cc
="cc -Wp,-H256000"
1811 # /bin/cc is less than useful for our purposes. Always use GCC
1812 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1813 host_makefile_frag
="config/mh-lynxrs6k"
1816 host_makefile_frag
="config/mh-ppc-darwin"
1819 host_makefile_frag
="config/mh-ppc-aix"
1822 host_makefile_frag
="config/mh-ppc-aix"
1825 # /bin/cc is less than useful for our purposes. Always use GCC
1826 tentative_cc
="/bin/gcc"
1829 host_makefile_frag
="config/mh-sysv4"
1831 # This is placed last to prevent interfering with the cases above.
1833 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1834 host_makefile_frag
="config/mh-x86omitfp"
1839 # If we aren't going to be using gcc, see if we can extract a definition
1840 # of CC from the fragment.
1841 # Actually, use the 'pre-extracted' version above.
1842 if test -z "${CC}" && test "${build}" = "${host}" ; then
1843 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1845 for dir
in $PATH; do
1846 test -z "$dir" && dir
=.
1847 if test -f $dir/gcc
; then
1853 if test -z "${found}" && test -n "${tentative_cc}" ; then
1858 if test "${build}" != "${host}" ; then
1859 # If we are doing a Canadian Cross, in which the host and build systems
1860 # are not the same, we set reasonable default values for the tools.
1862 CC
=${CC-${host_alias}-gcc}
1863 CFLAGS
=${CFLAGS-"-g -O2"}
1864 CXX
=${CXX-${host_alias}-c++}
1865 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1866 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
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)"
1878 # Extract the first word of "gcc", so it can be a program name with args.
1879 set dummy gcc
; ac_word
=$2
1880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1881 echo "configure:1882: checking for $ac_word" >&5
1882 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC
="$CC" # Let the user override the test.
1888 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1890 for ac_dir
in $ac_dummy; do
1891 test -z "$ac_dir" && ac_dir
=.
1892 if test -f $ac_dir/$ac_word; then
1901 if test -n "$CC"; then
1902 echo "$ac_t""$CC" 1>&6
1904 echo "$ac_t""no" 1>&6
1907 if test -z "$CC"; then
1908 # Extract the first word of "cc", so it can be a program name with args.
1909 set dummy cc
; ac_word
=$2
1910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_word" >&5
1912 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC
="$CC" # Let the user override the test.
1918 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1921 for ac_dir
in $ac_dummy; do
1922 test -z "$ac_dir" && ac_dir
=.
1923 if test -f $ac_dir/$ac_word; then
1924 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1925 ac_prog_rejected
=yes
1933 if test $ac_prog_rejected = yes; then
1934 # We found a bogon in the path, so make sure we never use it.
1935 set dummy
$ac_cv_prog_CC
1937 if test $# -gt 0; then
1938 # We chose a different compiler from the bogus one.
1939 # However, it has the same basename, so the bogon will be chosen
1940 # first if we set CC to just the basename; use the full file name.
1942 set dummy
"$ac_dir/$ac_word" "$@"
1950 if test -n "$CC"; then
1951 echo "$ac_t""$CC" 1>&6
1953 echo "$ac_t""no" 1>&6
1956 if test -z "$CC"; then
1957 case "`uname -s`" in
1959 # Extract the first word of "cl", so it can be a program name with args.
1960 set dummy cl
; ac_word
=$2
1961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_word" >&5
1963 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC
="$CC" # Let the user override the test.
1969 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1971 for ac_dir
in $ac_dummy; do
1972 test -z "$ac_dir" && ac_dir
=.
1973 if test -f $ac_dir/$ac_word; then
1982 if test -n "$CC"; then
1983 echo "$ac_t""$CC" 1>&6
1985 echo "$ac_t""no" 1>&6
1990 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1994 echo "configure:1995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1997 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1998 ac_cpp
='$CPP $CPPFLAGS'
1999 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2000 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2001 cross_compiling
=$ac_cv_prog_cc_cross
2003 cat > conftest.
$ac_ext << EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2010 if { (eval echo configure
:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2011 ac_cv_prog_cc_works
=yes
2012 # If we can't run a trivial program, we are probably using a cross compiler.
2013 if (.
/conftest
; exit) 2>/dev
/null
; then
2014 ac_cv_prog_cc_cross
=no
2016 ac_cv_prog_cc_cross
=yes
2019 echo "configure: failed program was:" >&5
2020 cat conftest.
$ac_ext >&5
2021 ac_cv_prog_cc_works
=no
2025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2026 ac_cpp
='$CPP $CPPFLAGS'
2027 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2028 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2029 cross_compiling
=$ac_cv_prog_cc_cross
2031 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2032 if test $ac_cv_prog_cc_works = no
; then
2033 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2035 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2036 echo "configure:2037: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2037 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2038 cross_compiling
=$ac_cv_prog_cc_cross
2040 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2041 echo "configure:2042: checking whether we are using GNU C" >&5
2042 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.c
<<EOF
2050 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2057 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2059 if test $ac_cv_prog_gcc = yes; then
2065 ac_test_CFLAGS
="${CFLAGS+set}"
2066 ac_save_CFLAGS
="$CFLAGS"
2068 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2069 echo "configure:2070: checking whether ${CC-cc} accepts -g" >&5
2070 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 echo 'void f(){}' > conftest.c
2074 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2083 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2084 if test "$ac_test_CFLAGS" = set; then
2085 CFLAGS
="$ac_save_CFLAGS"
2086 elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2093 if test "$GCC" = yes; then
2101 # We must set the default linker to the linker used by gcc for the correct
2102 # operation of libtool. If LD is not defined and we are using gcc, try to
2103 # set the LD default to the ld used by gcc.
2104 if test -z "$LD"; then
2105 if test "$GCC" = yes; then
2108 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2110 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2112 case $gcc_prog_ld in
2113 # Accept absolute paths.
2114 [\\/]* |
[A-Za-z
]:[\\/]*)
2115 LD
="$gcc_prog_ld" ;;
2121 CFLAGS
=${CFLAGS-"-g"}
2122 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2125 if test $host != $build; then
2126 ac_tool_prefix
=${host_alias}-
2133 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2134 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2136 echo "configure:2137: checking for $ac_word" >&5
2137 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 if test -n "$GNATBIND"; then
2141 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2143 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2145 for ac_dir
in $ac_dummy; do
2146 test -z "$ac_dir" && ac_dir
=.
2147 if test -f $ac_dir/$ac_word; then
2148 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2155 GNATBIND
="$ac_cv_prog_GNATBIND"
2156 if test -n "$GNATBIND"; then
2157 echo "$ac_t""$GNATBIND" 1>&6
2159 echo "$ac_t""no" 1>&6
2163 if test -z "$ac_cv_prog_GNATBIND"; then
2164 if test -n "$ac_tool_prefix"; then
2165 # Extract the first word of "gnatbind", so it can be a program name with args.
2166 set dummy gnatbind
; ac_word
=$2
2167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2168 echo "configure:2169: checking for $ac_word" >&5
2169 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 if test -n "$GNATBIND"; then
2173 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2175 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2177 for ac_dir
in $ac_dummy; do
2178 test -z "$ac_dir" && ac_dir
=.
2179 if test -f $ac_dir/$ac_word; then
2180 ac_cv_prog_GNATBIND
="gnatbind"
2185 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2188 GNATBIND
="$ac_cv_prog_GNATBIND"
2189 if test -n "$GNATBIND"; then
2190 echo "$ac_t""$GNATBIND" 1>&6
2192 echo "$ac_t""no" 1>&6
2200 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
2201 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
2202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2203 echo "configure:2204: checking for $ac_word" >&5
2204 if eval "test \"`echo '$''{'ac_cv_prog_GNATMAKE'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2207 if test -n "$GNATMAKE"; then
2208 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
2210 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2212 for ac_dir
in $ac_dummy; do
2213 test -z "$ac_dir" && ac_dir
=.
2214 if test -f $ac_dir/$ac_word; then
2215 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
2222 GNATMAKE
="$ac_cv_prog_GNATMAKE"
2223 if test -n "$GNATMAKE"; then
2224 echo "$ac_t""$GNATMAKE" 1>&6
2226 echo "$ac_t""no" 1>&6
2230 if test -z "$ac_cv_prog_GNATMAKE"; then
2231 if test -n "$ac_tool_prefix"; then
2232 # Extract the first word of "gnatmake", so it can be a program name with args.
2233 set dummy gnatmake
; ac_word
=$2
2234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2235 echo "configure:2236: checking for $ac_word" >&5
2236 if eval "test \"`echo '$''{'ac_cv_prog_GNATMAKE'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2239 if test -n "$GNATMAKE"; then
2240 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
2242 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2244 for ac_dir
in $ac_dummy; do
2245 test -z "$ac_dir" && ac_dir
=.
2246 if test -f $ac_dir/$ac_word; then
2247 ac_cv_prog_GNATMAKE
="gnatmake"
2252 test -z "$ac_cv_prog_GNATMAKE" && ac_cv_prog_GNATMAKE
="no"
2255 GNATMAKE
="$ac_cv_prog_GNATMAKE"
2256 if test -n "$GNATMAKE"; then
2257 echo "$ac_t""$GNATMAKE" 1>&6
2259 echo "$ac_t""no" 1>&6
2267 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2268 echo "configure:2269: checking whether compiler driver understands Ada" >&5
2269 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2272 cat >conftest.adb
<<EOF
2273 procedure conftest is begin null; end conftest;
2275 acx_cv_cc_gcc_supports_ada
=no
2276 # There is a bug in old released versions of GCC which causes the
2277 # driver to exit successfully when the appropriate language module
2278 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2279 # Therefore we must check for the error message as well as an
2280 # unsuccessful exit.
2281 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2282 # given a .adb file, but produce no object file. So we must check
2283 # if an object file was really produced to guard against this.
2284 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2285 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2286 acx_cv_cc_gcc_supports_ada
=yes
2291 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2293 if test x
$GNATBIND != xno
&& test x
$GNATMAKE != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2299 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2300 echo "configure:2301: checking how to compare bootstrapped objects" >&5
2301 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2306 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2307 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2308 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2311 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2314 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2315 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2318 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2325 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2326 do_compare
="$gcc_cv_prog_cmp_skip"
2330 # Check for GMP and MPFR
2331 gmplibs
="-lmpfr -lgmp"
2335 # Specify a location for mpfr
2336 # check for this first so it ends up on the link line before gmp.
2337 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2338 if test "${with_mpfr_dir+set}" = set; then
2339 withval
="$with_mpfr_dir"
2340 { echo "configure: error: The --with-mpfr-dir=PATH option has been removed.
2341 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" 1>&2; exit 1; }
2345 # Check whether --with-mpfr or --without-mpfr was given.
2346 if test "${with_mpfr+set}" = set; then
2347 withval
="$with_mpfr"
2351 # Check whether --with-mpfr_include or --without-mpfr_include was given.
2352 if test "${with_mpfr_include+set}" = set; then
2353 withval
="$with_mpfr_include"
2357 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
2358 if test "${with_mpfr_lib+set}" = set; then
2359 withval
="$with_mpfr_lib"
2364 if test "x$with_mpfr" != x
; then
2365 gmplibs
="-L$with_mpfr/lib $gmplibs"
2366 gmpinc
="-I$with_mpfr/include"
2368 if test "x$with_mpfr_include" != x
; then
2369 gmpinc
="-I$with_mpfr_include"
2371 if test "x$with_mpfr_lib" != x
; then
2372 gmplibs
="-L$with_mpfr_lib $gmplibs"
2374 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
2375 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
2376 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
2377 # Do not test the mpfr version. Assume that it is sufficient, since
2378 # it is in the source tree, and the library has not been built yet
2379 # but it would be included on the link line in the version check below
2380 # hence making the test fail.
2384 # Specify a location for gmp
2385 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2386 if test "${with_gmp_dir+set}" = set; then
2387 withval
="$with_gmp_dir"
2388 { echo "configure: error: The --with-gmp-dir=PATH option has been removed.
2389 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" 1>&2; exit 1; }
2393 # Check whether --with-gmp or --without-gmp was given.
2394 if test "${with_gmp+set}" = set; then
2399 # Check whether --with-gmp_include or --without-gmp_include was given.
2400 if test "${with_gmp_include+set}" = set; then
2401 withval
="$with_gmp_include"
2405 # Check whether --with-gmp_lib or --without-gmp_lib was given.
2406 if test "${with_gmp_lib+set}" = set; then
2407 withval
="$with_gmp_lib"
2413 if test "x$with_gmp" != x
; then
2414 gmplibs
="-L$with_gmp/lib $gmplibs"
2415 gmpinc
="-I$with_gmp/include $gmpinc"
2417 if test "x$with_gmp_include" != x
; then
2418 gmpinc
="-I$with_gmp_include $gmpinc"
2420 if test "x$with_gmp_lib" != x
; then
2421 gmplibs
="-L$with_gmp_lib $gmplibs"
2423 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
2424 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
2425 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
2426 # Do not test the gmp version. Assume that it is sufficient, since
2427 # it is in the source tree, and the library has not been built yet
2428 # but it would be included on the link line in the version check below
2429 # hence making the test fail.
2433 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
2435 saved_CFLAGS
="$CFLAGS"
2436 CFLAGS
="$CFLAGS $gmpinc"
2437 # Check GMP actually works
2438 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2439 echo "configure:2440: checking for correct version of gmp.h" >&5
2440 cat > conftest.
$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2446 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
2452 if { (eval echo configure
:2453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2454 echo "$ac_t""yes" 1>&6
2456 echo "configure: failed program was:" >&5
2457 cat conftest.
$ac_ext >&5
2459 echo "$ac_t""no" 1>&6; have_gmp
=no
2463 if test x
"$have_gmp" = xyes
; then
2465 LIBS
="$LIBS $gmplibs"
2466 echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
2467 echo "configure:2468: checking for correct version of mpfr.h" >&5
2468 cat > conftest.
$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2475 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
2478 mpfr_t n; mpfr_init(n);
2479 mpfr_t x; mpfr_init(x);
2481 mpfr_atan2 (n, n, x, GMP_RNDN);
2482 mpfr_erfc (n, x, GMP_RNDN);
2483 mpfr_subnormalize (x, t, GMP_RNDN);
2487 if { (eval echo configure
:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2489 cat > conftest.
$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2496 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
2499 mpfr_t n; mpfr_init(n);
2503 if { (eval echo configure
:2504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2505 echo "$ac_t""yes" 1>&6
2507 echo "configure: failed program was:" >&5
2508 cat conftest.
$ac_ext >&5
2510 echo "$ac_t""buggy but acceptable" 1>&6
2514 echo "configure: failed program was:" >&5
2515 cat conftest.
$ac_ext >&5
2517 echo "$ac_t""no" 1>&6; have_gmp
=no
2522 CFLAGS
="$saved_CFLAGS"
2524 if test x
$have_gmp != xyes
; then
2525 { echo "configure: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
2526 Try the --with-gmp and/or --with-mpfr options to specify their locations.
2527 Copies of these libraries' source code can be found at their respective
2528 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
2529 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
2530 If you obtained GMP and/or MPFR from a vendor distribution package, make
2531 sure that you have installed both the libraries and the header files.
2532 They may be located in separate packages." 1>&2; exit 1; }
2536 # Flags needed for both GMP and/or MPFR
2540 # By default, C is the only stage 1 language.
2541 stage1_languages
=,c
,
2543 # Figure out what language subdirectories are present.
2544 # Look if the user specified --enable-languages="..."; if not, use
2545 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2547 # NB: embedded tabs in this IF block -- do not untabify
2548 if test -d ${srcdir}/gcc
; then
2549 if test x
"${enable_languages+set}" != xset
; then
2550 if test x
"${LANGUAGES+set}" = xset
; then
2551 enable_languages
="${LANGUAGES}"
2552 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2554 enable_languages
=all
2557 if test x
"${enable_languages}" = x ||
2558 test x
"${enable_languages}" = xyes
;
2560 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2564 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2566 # 'f95' is the old name for the 'fortran' language. We issue a warning
2567 # and make the substitution.
2568 case ,${enable_languages}, in
2570 echo configure.
in: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
2571 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2575 # First scan to see if an enabled language requires some other language.
2576 # We assume that a given config-lang.in will list all the language
2577 # front ends it requires, even if some are required indirectly.
2578 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2579 case ${lang_frag} in
2581 # The odd quoting in the next line works around
2582 # an apparent bug in bash 1.12 on linux.
2583 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2585 # From the config-lang.in, get $language, $lang_requires
2589 for other
in ${lang_requires} ; do
2590 case ,${enable_languages}, in
2594 echo " \`$other' language required by \`$language'; enabling" 1>&2
2595 enable_languages
="${enable_languages},${other}"
2603 new_enable_languages
=,c
,
2604 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2605 potential_languages
=,c
,
2607 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2608 case ${lang_frag} in
2610 # The odd quoting in the next line works around
2611 # an apparent bug in bash 1.12 on linux.
2612 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2614 # From the config-lang.in, get $language, $target_libs,
2615 # $lang_dirs, $boot_language, and $build_by_default
2621 build_by_default
=yes
2623 if test x
${language} = x
; then
2624 echo "${lang_frag} doesn't set \$language." 1>&2
2628 case ,${enable_languages}, in
2630 # Language was explicitly selected; include it.
2634 # 'all' was selected, select it if it is a default language
2635 add_this_lang
=${build_by_default}
2642 # Disable languages that need other directories if these aren't available.
2643 for i
in $subdir_requires; do
2644 test -f "$srcdir/gcc/$i/config-lang.in" && continue
2645 case ,${enable_languages}, in
2647 # Specifically requested language; tell them.
2648 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2652 add_this_lang
=unsupported
2657 # Disable Ada if no preexisting GNAT is available.
2658 case ,${enable_languages},:${language}:${have_gnat} in
2659 *,${language},*:ada
:no
)
2660 # Specifically requested language; tell them.
2661 { echo "configure: error: GNAT is required to build $language" 1>&2; exit 1; }
2665 add_this_lang
=unsupported
2669 # Disable a language that is unsupported by the target.
2670 case " $unsupported_languages " in
2672 add_this_lang
=unsupported
2676 case $add_this_lang in
2678 # Remove language-dependent dirs.
2679 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2682 # Remove language-dependent dirs; still show language as supported.
2683 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2684 potential_languages
="${potential_languages}${language},"
2687 new_enable_languages
="${new_enable_languages}${language},"
2688 potential_languages
="${potential_languages}${language},"
2689 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2690 case ${boot_language} in
2692 # Add to (comma-separated) list of stage 1 languages.
2693 stage1_languages
="${stage1_languages}${language},"
2702 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
2703 if test "${enable_stage1_languages+set}" = set; then
2704 enableval
="$enable_stage1_languages"
2705 case ,${enable_stage1_languages}, in
2707 # Set it to something that will have no effect in the loop below
2708 enable_stage1_languages
=c
;;
2710 enable_stage1_languages
=`echo $new_enable_languages | \
2711 sed -e "s/^,//" -e "s/,$//" ` ;;
2713 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
2714 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
2717 # Add "good" languages from enable_stage1_languages to stage1_languages,
2718 # while "bad" languages go in missing_languages. Leave no duplicates.
2719 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
2720 case $potential_languages in
2722 case $stage1_languages in
2724 *) stage1_languages
="$stage1_languages$i," ;;
2727 case $missing_languages in
2729 *) missing_languages
="$missing_languages$i," ;;
2736 # Remove leading/trailing commas that were added for simplicity
2737 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
2738 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2739 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
2740 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
2742 if test "x$missing_languages" != x
; then
2743 { echo "configure: error:
2744 The following requested languages could not be built: ${missing_languages}
2745 Supported languages are: ${potential_languages}" 1>&2; exit 1; }
2747 if test "x$new_enable_languages" != "x$enable_languages"; then
2748 echo The following languages will be built
: ${new_enable_languages}
2749 enable_languages
="$new_enable_languages"
2753 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2756 # Handle --disable-<component> generically.
2757 for dir
in $configdirs $build_configdirs $target_configdirs ; do
2758 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2759 if eval test x\
${enable_${dirname}} "=" xno
; then
2760 noconfigdirs
="$noconfigdirs $dir"
2764 # Check for Boehm's garbage collector
2765 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2766 if test "${enable_objc_gc+set}" = set; then
2767 enableval
="$enable_objc_gc"
2768 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2769 *,objc
,*:*:yes:*target-boehm-gc
*)
2770 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2776 # Make sure we only build Boehm's garbage collector if required.
2777 case ,${enable_languages},:${enable_objc_gc} in
2779 # Keep target-boehm-gc if requested for Objective-C.
2782 # Otherwise remove target-boehm-gc depending on target-libjava.
2783 if echo " ${noconfigdirs} " |
grep "target-libjava" >/dev
/null
2>&1; then
2784 noconfigdirs
="$noconfigdirs target-boehm-gc"
2789 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2790 # $build_configdirs and $target_configdirs.
2791 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2794 for dir
in .
$skipdirs $noconfigdirs ; do
2795 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2796 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2797 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2798 if test -r $srcdir/$dirname/configure
; then
2799 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2802 notsupp
="$notsupp $dir"
2806 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2807 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2808 if test -r $srcdir/$dirname/configure
; then
2809 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2812 notsupp
="$notsupp $dir"
2816 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2817 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2818 if test -r $srcdir/$dirname/configure
; then
2819 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2822 notsupp
="$notsupp $dir"
2828 # Sometimes the tools are distributed with libiberty but with no other
2829 # libraries. In that case, we don't want to build target-libiberty.
2830 # Don't let libgcc imply libiberty either.
2831 if test -n "${target_configdirs}" ; then
2834 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2835 if test "$i" = "libgcc"; then
2836 libgcc
=target-libgcc
2837 elif test "$i" != "libiberty" ; then
2838 if test -r $srcdir/$i/configure
; then
2844 if test -z "${others}" ; then
2845 target_configdirs
=$libgcc
2849 # Quietly strip out all directories which aren't configurable in this tree.
2850 # This relies on all configurable subdirectories being autoconfiscated, which
2852 build_configdirs_all
="$build_configdirs"
2854 for i
in ${build_configdirs_all} ; do
2855 j
=`echo $i | sed -e s/build-//g`
2856 if test -f ${srcdir}/$j/configure
; then
2857 build_configdirs
="${build_configdirs} $i"
2861 configdirs_all
="$configdirs"
2863 for i
in ${configdirs_all} ; do
2864 if test -f ${srcdir}/$i/configure
; then
2865 configdirs
="${configdirs} $i"
2869 target_configdirs_all
="$target_configdirs"
2871 for i
in ${target_configdirs_all} ; do
2872 j
=`echo $i | sed -e s/target-//g`
2873 if test -f ${srcdir}/$j/configure
; then
2874 target_configdirs
="${target_configdirs} $i"
2878 # Produce a warning message for the subdirs we can't configure.
2879 # This isn't especially interesting in the Cygnus tree, but in the individual
2880 # FSF releases, it's important to let people know when their machine isn't
2881 # supported by the one or two programs in a package.
2883 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2884 # If $appdirs is non-empty, at least one of those directories must still
2885 # be configured, or we error out. (E.g., if the gas release supports a
2886 # specified target in some subdirs but not the gas subdir, we shouldn't
2887 # pretend that all is well.)
2888 if test -n "$appdirs" ; then
2889 for dir
in $appdirs ; do
2890 if test -r $dir/Makefile.
in ; then
2891 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2895 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2901 if test -n "$appdirs" ; then
2902 echo "*** This configuration is not supported by this package." 1>&2
2906 # Okay, some application will build, or we don't care to check. Still
2907 # notify of subdirs not getting built.
2908 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2909 echo " ${notsupp}" 1>&2
2910 echo " (Any other directories should still work fine.)" 1>&2
2920 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2921 if test "${with_build_sysroot+set}" = set; then
2922 withval
="$with_build_sysroot"
2923 if test x
"$withval" != x
; then
2924 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
2927 SYSROOT_CFLAGS_FOR_TARGET
=
2932 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2933 # the named directory are copied to $(tooldir)/sys-include.
2934 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2935 if test x
${is_cross_compiler} = xno
; then
2936 echo 1>&2 '***' --with-headers is only supported when cross compiling
2939 if test x
"${with_headers}" != xyes
; then
2940 case "${exec_prefixoption}" in
2942 *) x
=${exec_prefix} ;;
2944 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2948 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2949 # the name directories are copied to $(tooldir)/lib. Multiple directories
2951 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2952 if test x
${is_cross_compiler} = xno
; then
2953 echo 1>&2 '***' --with-libs is only supported when cross compiling
2956 if test x
"${with_libs}" != xyes
; then
2957 # Copy the libraries in reverse order, so that files in the first named
2958 # library override files in subsequent libraries.
2959 case "${exec_prefixoption}" in
2961 *) x
=${exec_prefix} ;;
2963 for l
in ${with_libs}; do
2964 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2969 # Set with_gnu_as and with_gnu_ld as appropriate.
2971 # This is done by determining whether or not the appropriate directory
2972 # is available, and by checking whether or not specific configurations
2973 # have requested that this magic not happen.
2975 # The command line options always override the explicit settings in
2976 # configure.in, and the settings in configure.in override this magic.
2978 # If the default for a toolchain is to use GNU as and ld, and you don't
2979 # want to do that, then you should use the --without-gnu-as and
2980 # --without-gnu-ld options for the configure script.
2982 if test x
${use_gnu_as} = x
&&
2983 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2985 extra_host_args
="$extra_host_args --with-gnu-as"
2988 if test x
${use_gnu_ld} = x
&&
2989 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2991 extra_host_args
="$extra_host_args --with-gnu-ld"
2994 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2995 # can detect this case.
2997 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2999 extra_host_args
="$extra_host_args --with-newlib"
3002 # Handle ${copy_dirs}
3003 set fnord
${copy_dirs}
3005 while test $# != 0 ; do
3006 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
3009 echo Copying
$1 to
$2
3011 # Use the install script to create the directory and all required
3012 # parent directories.
3013 if test -d $2 ; then
3017 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
3020 # Copy the directory, assuming we have tar.
3021 # FIXME: Should we use B in the second tar? Not all systems support it.
3022 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
3024 # It is the responsibility of the user to correctly adjust all
3025 # symlinks. If somebody can figure out how to handle them correctly
3026 # here, feel free to add the code.
3033 # Determine a target-dependent exec_prefix that the installed
3034 # gcc will search in. Keep this list sorted by triplet, with
3035 # the *-*-osname triplets last.
3039 md_exec_prefix
=/gnu
/lib
/gcc-lib
3041 i3456786-pc-msdosdjgpp
*)
3042 md_exec_prefix
=/dev
/env
/DJDIR
/bin
3044 i3456786-
*-sco3.2v5
*)
3045 if test $with_gnu_as = yes; then
3046 md_exec_prefix
=/usr
/gnu
/bin
3048 md_exec_prefix
=/usr
/ccs
/bin
/elf
3053 powerpc-
*-chorusos* | \
3054 powerpc
*-*-eabi* | \
3055 powerpc
*-*-sysv* | \
3056 powerpc
*-*-kaos* | \
3058 md_exec_prefix
=/usr
/ccs
/bin
3063 md_exec_prefix
=/usr
/ccs
/bin
3078 md_exec_prefix
=/usr
/ccs
/bin
3082 extra_arflags_for_target
=
3083 extra_nmflags_for_target
=
3084 extra_ranlibflags_for_target
=
3085 target_makefile_frag
=/dev
/null
3088 target_makefile_frag
="config/mt-spu"
3091 target_makefile_frag
="config/mt-netware"
3093 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
3094 target_makefile_frag
="config/mt-gnu"
3096 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
3097 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
3098 # commands to handle both 32-bit and 64-bit objects. These flags are
3099 # harmless if we're using GNU nm or ar.
3100 extra_arflags_for_target
=" -X32_64"
3101 extra_nmflags_for_target
=" -B -X32_64"
3104 # ranlib from Darwin requires the -c flag to look at common symbols.
3105 extra_ranlibflags_for_target
=" -c"
3107 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
3108 target_makefile_frag
="config/mt-wince"
3112 alphaieee_frag
=/dev
/null
3115 # This just makes sure to use the -mieee option to build target libs.
3116 # This should probably be set individually by each library.
3117 alphaieee_frag
="config/mt-alphaieee"
3121 # If --enable-target-optspace always use -Os instead of -O2 to build
3122 # the target libraries, similarly if it is not specified, use -Os
3123 # on selected platforms.
3124 ospace_frag
=/dev
/null
3125 case "${enable_target_optspace}:${target}" in
3127 ospace_frag
="config/mt-ospace"
3130 ospace_frag
="config/mt-d30v"
3132 :m32r-
* |
:d10v-
* |
:fr30-
*)
3133 ospace_frag
="config/mt-ospace"
3138 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
3142 # Default to using --with-stabs for certain targets.
3143 if test x
${with_stabs} = x
; then
3147 mips
*-*-* | alpha
*-*-osf*)
3149 extra_host_args
="${extra_host_args} --with-stabs"
3154 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
3155 # them automatically.
3158 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
3162 # Some systems (e.g., one of the i386-aix systems the gas testers are
3163 # using) don't handle "\$" correctly, so don't use it here.
3164 tooldir
='${exec_prefix}'/${target_alias}
3165 build_tooldir
=${tooldir}
3167 # Create a .gdbinit file which runs the one in srcdir
3168 # and tells GDB to look there for source files.
3170 if test -r ${srcdir}/.gdbinit
; then
3173 *) cat > .
/.gdbinit
<<EOF
3177 source ${srcdir}/.gdbinit
3183 # Make sure that the compiler is able to generate an executable. If it
3184 # can't, we are probably in trouble. We don't care whether we can run the
3185 # executable--we might be using a cross compiler--we only care whether it
3186 # can be created. At this point the main configure script has set CC.
3188 echo "int main () { return 0; }" > conftest.c
3189 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3190 if test $?
= 0 ; then
3191 if test -s conftest ||
test -s conftest.exe
; then
3197 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3198 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3205 # The Solaris /usr/ucb/cc compiler does not appear to work.
3207 sparc-sun-solaris2
*)
3208 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
3209 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3211 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
3212 if test -d /opt
/cygnus
/bin
; then
3213 if test "$could_use" = "" ; then
3214 could_use
="/opt/cygnus/bin"
3216 could_use
="$could_use or /opt/cygnus/bin"
3219 if test "$could_use" = "" ; then
3220 echo "Warning: compilation may fail because you're using"
3221 echo "/usr/ucb/cc. You should change your PATH or CC "
3222 echo "variable and rerun configure."
3224 echo "Warning: compilation may fail because you're using"
3225 echo "/usr/ucb/cc, when you should use the C compiler from"
3226 echo "$could_use. You should change your"
3227 echo "PATH or CC variable and rerun configure."
3234 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
3235 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
3236 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
3239 # Record target_configdirs and the configure arguments for target and
3240 # build configuration in Makefile.
3241 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3242 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3244 # Determine whether gdb needs tk/tcl or not.
3245 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3246 # and in that case we want gdb to be built without tk. Ugh!
3247 # In fact I believe gdb is the *only* package directly dependent on tk,
3248 # so we should be able to put the 'maybe's in unconditionally and
3249 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3250 # 100% sure that that's safe though.
3252 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3253 case "$enable_gdbtk" in
3257 GDB_TK
="${gdb_tk}" ;;
3259 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3260 # distro. Eventually someone will fix this and move Insight, nee
3261 # gdbtk to a separate directory.
3262 if test -d ${srcdir}/gdb
/gdbtk
; then
3269 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3270 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3272 # Strip out unwanted targets.
3274 # While at that, we remove Makefiles if we were started for recursive
3275 # configuration, so that the top-level Makefile reconfigures them,
3276 # like we used to do when configure itself was recursive.
3278 # Loop over modules. $extrasub must be used with care, limiting as
3279 # much as possible the usage of range addresses. That's because autoconf
3280 # splits the sed script to overcome limits in the number of commands,
3281 # and relying on carefully-timed sed passes may turn out to be very hard
3282 # to maintain later. In this particular case, you just have to be careful
3283 # not to nest @if/@endif pairs, because configure will not warn you at all.
3285 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3286 if test "${enable_bootstrap+set}" = set; then
3287 enableval
="$enable_bootstrap"
3290 enable_bootstrap
=default
3294 # Issue errors and warnings for invalid/strange bootstrap combinations.
3295 case "$configdirs" in
3296 *gcc
*) have_compiler
=yes ;;
3297 *) have_compiler
=no
;;
3300 case "$have_compiler:$host:$target:$enable_bootstrap" in
3303 # Default behavior. Enable bootstrap if we have a compiler
3304 # and we are in a native configuration.
3305 yes:$build:$build:default
)
3306 enable_bootstrap
=yes ;;
3309 enable_bootstrap
=no
;;
3311 # We have a compiler and we are in a native configuration, bootstrap is ok
3312 yes:$build:$build:yes)
3315 # Other configurations, but we have a compiler. Assume the user knows
3318 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3321 # No compiler: if they passed --enable-bootstrap explicitly, fail
3323 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3325 # Fail if wrong command line
3327 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3331 # Adjust the toplevel makefile according to whether bootstrap was selected.
3332 case "$enable_bootstrap" in
3334 bootstrap_suffix
=bootstrap
;;
3336 bootstrap_suffix
=no-bootstrap
;;
3339 for module
in ${build_configdirs} ; do
3340 if test -z "${no_recursion}" \
3341 && test -f ${build_subdir}/${module}/Makefile
; then
3342 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3343 rm -f ${build_subdir}/${module}/Makefile
3346 /^@if build-$module\$/d
3347 /^@endif build-$module\$/d
3348 /^@if build-$module-$bootstrap_suffix\$/d
3349 /^@endif build-$module-$bootstrap_suffix\$/d"
3351 for module
in ${configdirs} ; do
3352 if test -z "${no_recursion}"; then
3353 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
3354 if test -f ${file}; then
3355 echo 1>&2 "*** removing ${file} to force reconfigure"
3362 /^@endif $module\$/d
3363 /^@if $module-$bootstrap_suffix\$/d
3364 /^@endif $module-$bootstrap_suffix\$/d"
3366 for module
in ${target_configdirs} ; do
3367 if test -z "${no_recursion}" \
3368 && test -f ${target_subdir}/${module}/Makefile
; then
3369 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3370 rm -f ${target_subdir}/${module}/Makefile
3373 /^@if target-$module\$/d
3374 /^@endif target-$module\$/d
3375 /^@if target-$module-$bootstrap_suffix\$/d
3376 /^@endif target-$module-$bootstrap_suffix\$/d"
3380 /^@if /,/^@endif /d"
3382 # Create the serialization dependencies. This uses a temporary file.
3384 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3385 if test "${enable_serial_configure+set}" = set; then
3386 enableval
="$enable_serial_configure"
3391 case ${enable_serial_configure} in
3393 enable_serial_build_configure
=yes
3394 enable_serial_host_configure
=yes
3395 enable_serial_target_configure
=yes
3399 # These force 'configure's to be done one at a time, to avoid problems
3400 # with contention over a shared config.cache.
3402 echo '# serdep.tmp' > serdep.tmp
3404 test "x${enable_serial_build_configure}" = xyes
&&
3405 for item
in ${build_configdirs} ; do
3408 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3413 test "x${enable_serial_host_configure}" = xyes
&&
3414 for item
in ${configdirs} ; do
3417 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3422 test "x${enable_serial_target_configure}" = xyes
&&
3423 for item
in ${target_configdirs} ; do
3426 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3430 serialization_dependencies
=serdep.tmp
3433 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3434 # target and nonopt. These are the ones we might not want to pass
3435 # down to subconfigures. Also strip program-prefix, program-suffix,
3436 # and program-transform-name, so that we can pass down a consistent
3437 # program-transform-name. If autoconf has put single quotes around
3438 # any of these arguments (because they contain shell metacharacters)
3439 # then this will fail; in practice this only happens for
3440 # --program-transform-name, so be sure to override --program-transform-name
3441 # at the end of the argument list.
3442 # These will be expanded by make, so quote '$'.
3443 cat <<\EOF_SED
> conftestsed
3445 s
/ --c[a-z-
]*[= ][^
]*//g
3446 s
/ --sr[a-z-
]*[= ][^
]*//g
3447 s
/ --ho[a-z-
]*[= ][^
]*//g
3448 s
/ --bu[a-z-
]*[= ][^
]*//g
3449 s
/ --t[a-z-
]*[= ][^
]*//g
3450 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3451 s
/ -cache-file[= ][^
]*//g
3452 s
/ -srcdir[= ][^
]*//g
3453 s
/ -host[= ][^
]*//g
3454 s
/ -build[= ][^
]*//g
3455 s
/ -target[= ][^
]*//g
3456 s
/ -program-prefix[= ][^
]*//g
3457 s
/ -program-suffix[= ][^
]*//g
3458 s
/ -program-transform-name[= ][^
]*//g
3463 sed -f conftestsed <<EOF_SED > conftestsed.out
3464 ${ac_configure_args}
3466 baseargs=`cat conftestsed.out`
3467 rm -f conftestsed conftestsed.out
3469 # Add in --program-transform-name, after --program-prefix and
3470 # --program-suffix have been applied to it. Autoconf has already
3471 # doubled dollar signs and backslashes in program_transform_name; we want
3472 # the backslashes un-doubled, and then the entire thing wrapped in single
3473 # quotes, because this will be expanded first by make and then by the shell.
3474 # Also, because we want to override the logic in subdir configure scripts to
3475 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3476 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3477 ${program_transform_name}
3479 gcc_transform_name=`cat conftestsed.out`
3480 rm -f conftestsed.out
3481 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3483 # For the build-side libraries, we just need to pretend we're native
,
3484 # and not use the same cache file. Multilibs are neither needed nor
3486 build_configargs
="--cache-file=../config.cache ${baseargs}"
3488 # For host modules, accept cache file option, or specification as blank.
3489 case "${cache_file}" in
3491 cache_file_option
="" ;;
3492 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3493 cache_file_option
="--cache-file=${cache_file}" ;;
3495 cache_file_option
="--cache-file=../${cache_file}" ;;
3498 # Host dirs don't like to share a cache file either, horribly enough.
3499 # This seems to be due to autoconf 2.5x stupidity.
3500 host_configargs
="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
3502 target_configargs
=${baseargs}
3504 # Passing a --with-cross-host argument lets the target libraries know
3505 # whether they are being built with a cross-compiler or being built
3506 # native. However, it would be better to use other mechanisms to make the
3507 # sorts of decisions they want to make on this basis. Please consider
3508 # this option to be deprecated. FIXME.
3509 if test x
${is_cross_compiler} = xyes
; then
3510 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3513 # Default to --enable-multilib.
3514 if test x
${enable_multilib} = x
; then
3515 target_configargs
="--enable-multilib ${target_configargs}"
3518 # Pass --with-newlib if appropriate. Note that target_configdirs has
3519 # changed from the earlier setting of with_newlib.
3520 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3521 target_configargs
="--with-newlib ${target_configargs}"
3524 # Different target subdirs use different values of certain variables
3525 # (notably CXX). Worse, multilibs use *lots* of different values.
3526 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3527 # it doesn't automatically accept command-line overrides of them.
3528 # This means it's not safe for target subdirs to share a cache file,
3529 # which is disgusting, but there you have it. Hopefully this can be
3530 # fixed in future. It's still worthwhile to use a cache file for each
3531 # directory. I think.
3533 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3534 # We need to pass --target, as newer autoconf's requires consistency
3535 # for target_alias and gcc doesn't manage it consistently.
3536 target_configargs
="--cache-file=./config.cache ${target_configargs}"
3539 case " $target_configdirs " in
3541 case " $target_configargs " in
3542 *" --with-newlib "*)
3545 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' ;;
3548 # If we're not building GCC, don't discard standard headers.
3549 if test -d ${srcdir}/gcc
; then
3550 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3552 if test "${build}" != "${host}"; then
3553 # On Canadian crosses, CC_FOR_TARGET will have already been set
3554 # by `configure', so we won't have an opportunity to add -Bgcc/
3555 # to it. This is right: we don't want to search that directory
3556 # for binaries, but we want the header files in there, so add
3558 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3560 # Someone might think of using the pre-installed headers on
3561 # Canadian crosses, in case the installed compiler is not fully
3562 # compatible with the compiler being built. In this case, it
3563 # would be better to flag an error than risking having
3564 # incompatible object files being constructed. We can't
3565 # guarantee that an error will be flagged, but let's hope the
3566 # compiler will do it, when presented with incompatible header
3571 case "${target}-${is_cross_compiler}" in
3572 i
[3456789]86-*-linux*-no)
3573 # Here host == target, so we don't need to build gcc,
3574 # so we don't want to discard standard headers.
3575 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3578 # If we're building newlib, use its generic headers last, but search
3579 # for any libc-related directories first (so make it the last -B
3581 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3590 # Can't be handled as Cygwin above since Mingw does not use newlib.
3591 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
3594 # Allow the user to override the flags for
3595 # our build compiler if desired.
3596 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3598 # On Canadian crosses, we'll be searching the right directories for
3599 # the previously-installed cross compiler, so don't bother to add
3600 # flags for directories within the install tree of the compiler
3601 # being built; programs in there won't even run.
3602 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3603 # Search for pre-installed headers if nothing else fits.
3604 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3607 if test "x
${use_gnu_ld}" = x &&
3608 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3609 # Arrange for us to find uninstalled linker scripts.
3610 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3613 # Search for other target-specific linker scripts and such.
3616 if test -d ${srcdir}/libgloss/m32c; then
3617 # This is for crt0.o
3618 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3619 # This is for r8c.ld
3620 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3621 # This is for libnosys.a
3622 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3627 # Makefile fragments.
3628 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3630 eval fragval=\$$frag
3631 if test $fragval != /dev/null; then
3632 eval $frag=${srcdir}/$fragval
3640 # Miscellanea: directories, flags, etc.
3648 # Build module lists & subconfigure args.
3652 # Host module lists & subconfigure args.
3656 # Target module lists & subconfigure args.
3664 # Generate default definitions for YACC, M4, LEX and other programs that run
3665 # on the build machine. These are used if the Makefile can't locate these
3666 # programs in objdir.
3667 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3669 for ac_prog in 'bison -y' byacc yacc
3671 # Extract the first word of "$ac_prog", so it can be a program name with args.
3672 set dummy $ac_prog; ac_word=$2
3673 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3674 echo "configure
:3675: checking
for $ac_word" >&5
3675 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3676 echo $ac_n "(cached
) $ac_c" 1>&6
3678 if test -n "$YACC"; then
3679 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3683 for ac_dir in $ac_dummy; do
3684 test -z "$ac_dir" && ac_dir=.
3685 if test -f $ac_dir/$ac_word; then
3686 ac_cv_prog_YACC="$ac_prog"
3693 YACC="$ac_cv_prog_YACC"
3694 if test -n "$YACC"; then
3695 echo "$ac_t""$YACC" 1>&6
3697 echo "$ac_t""no
" 1>&6
3700 test -n "$YACC" && break
3702 test -n "$YACC" || YACC="$MISSING bison
-y"
3704 case " $build_configdirs " in
3705 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3706 *" byacc
"*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3709 for ac_prog in bison
3711 # Extract the first word of "$ac_prog", so it can be a program name with args.
3712 set dummy $ac_prog; ac_word=$2
3713 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3714 echo "configure
:3715: checking
for $ac_word" >&5
3715 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3716 echo $ac_n "(cached
) $ac_c" 1>&6
3718 if test -n "$BISON"; then
3719 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3723 for ac_dir in $ac_dummy; do
3724 test -z "$ac_dir" && ac_dir=.
3725 if test -f $ac_dir/$ac_word; then
3726 ac_cv_prog_BISON="$ac_prog"
3733 BISON="$ac_cv_prog_BISON"
3734 if test -n "$BISON"; then
3735 echo "$ac_t""$BISON" 1>&6
3737 echo "$ac_t""no
" 1>&6
3740 test -n "$BISON" && break
3742 test -n "$BISON" || BISON="$MISSING bison
"
3744 case " $build_configdirs " in
3745 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3748 for ac_prog in gm4 gnum4 m4
3750 # Extract the first word of "$ac_prog", so it can be a program name with args.
3751 set dummy $ac_prog; ac_word=$2
3752 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3753 echo "configure
:3754: checking
for $ac_word" >&5
3754 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3755 echo $ac_n "(cached
) $ac_c" 1>&6
3757 if test -n "$M4"; then
3758 ac_cv_prog_M4="$M4" # Let the user override the test.
3760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3762 for ac_dir in $ac_dummy; do
3763 test -z "$ac_dir" && ac_dir=.
3764 if test -f $ac_dir/$ac_word; then
3765 ac_cv_prog_M4="$ac_prog"
3773 if test -n "$M4"; then
3774 echo "$ac_t""$M4" 1>&6
3776 echo "$ac_t""no
" 1>&6
3779 test -n "$M4" && break
3781 test -n "$M4" || M4="$MISSING m4"
3783 case " $build_configdirs " in
3784 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3787 for ac_prog in flex lex
3789 # Extract the first word of "$ac_prog", so it can be a program name with args.
3790 set dummy $ac_prog; ac_word=$2
3791 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3792 echo "configure
:3793: checking
for $ac_word" >&5
3793 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3794 echo $ac_n "(cached
) $ac_c" 1>&6
3796 if test -n "$LEX"; then
3797 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3801 for ac_dir in $ac_dummy; do
3802 test -z "$ac_dir" && ac_dir=.
3803 if test -f $ac_dir/$ac_word; then
3804 ac_cv_prog_LEX="$ac_prog"
3811 LEX="$ac_cv_prog_LEX"
3812 if test -n "$LEX"; then
3813 echo "$ac_t""$LEX" 1>&6
3815 echo "$ac_t""no
" 1>&6
3818 test -n "$LEX" && break
3820 test -n "$LEX" || LEX="$MISSING flex
"
3822 case " $build_configdirs " in
3823 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3824 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3829 # Extract the first word of "$ac_prog", so it can be a program name with args.
3830 set dummy $ac_prog; 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_FLEX'+set}'`\" = set"; then
3834 echo $ac_n "(cached
) $ac_c" 1>&6
3836 if test -n "$FLEX"; then
3837 ac_cv_prog_FLEX="$FLEX" # 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_FLEX="$ac_prog"
3851 FLEX="$ac_cv_prog_FLEX"
3852 if test -n "$FLEX"; then
3853 echo "$ac_t""$FLEX" 1>&6
3855 echo "$ac_t""no
" 1>&6
3858 test -n "$FLEX" && break
3860 test -n "$FLEX" || FLEX="$MISSING flex
"
3862 case " $build_configdirs " in
3863 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3866 for ac_prog in makeinfo
3868 # Extract the first word of "$ac_prog", so it can be a program name with args.
3869 set dummy $ac_prog; ac_word=$2
3870 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3871 echo "configure
:3872: checking
for $ac_word" >&5
3872 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3873 echo $ac_n "(cached
) $ac_c" 1>&6
3875 if test -n "$MAKEINFO"; then
3876 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3880 for ac_dir in $ac_dummy; do
3881 test -z "$ac_dir" && ac_dir=.
3882 if test -f $ac_dir/$ac_word; then
3883 ac_cv_prog_MAKEINFO="$ac_prog"
3890 MAKEINFO="$ac_cv_prog_MAKEINFO"
3891 if test -n "$MAKEINFO"; then
3892 echo "$ac_t""$MAKEINFO" 1>&6
3894 echo "$ac_t""no
" 1>&6
3897 test -n "$MAKEINFO" && break
3899 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
3901 case " $build_configdirs " in
3902 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3905 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3906 # higher, else we use the "missing
" dummy.
3907 if ${MAKEINFO} --version \
3908 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3911 MAKEINFO="$MISSING makeinfo
"
3917 # FIXME: expect and dejagnu may become build tools?
3919 for ac_prog in expect
3921 # Extract the first word of "$ac_prog", so it can be a program name with args.
3922 set dummy $ac_prog; ac_word=$2
3923 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3924 echo "configure
:3925: checking
for $ac_word" >&5
3925 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3926 echo $ac_n "(cached
) $ac_c" 1>&6
3928 if test -n "$EXPECT"; then
3929 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3933 for ac_dir in $ac_dummy; do
3934 test -z "$ac_dir" && ac_dir=.
3935 if test -f $ac_dir/$ac_word; then
3936 ac_cv_prog_EXPECT="$ac_prog"
3943 EXPECT="$ac_cv_prog_EXPECT"
3944 if test -n "$EXPECT"; then
3945 echo "$ac_t""$EXPECT" 1>&6
3947 echo "$ac_t""no
" 1>&6
3950 test -n "$EXPECT" && break
3952 test -n "$EXPECT" || EXPECT="expect
"
3954 case " $configdirs " in
3956 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3960 for ac_prog in runtest
3962 # Extract the first word of "$ac_prog", so it can be a program name with args.
3963 set dummy $ac_prog; ac_word=$2
3964 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3965 echo "configure
:3966: checking
for $ac_word" >&5
3966 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3967 echo $ac_n "(cached
) $ac_c" 1>&6
3969 if test -n "$RUNTEST"; then
3970 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3974 for ac_dir in $ac_dummy; do
3975 test -z "$ac_dir" && ac_dir=.
3976 if test -f $ac_dir/$ac_word; then
3977 ac_cv_prog_RUNTEST="$ac_prog"
3984 RUNTEST="$ac_cv_prog_RUNTEST"
3985 if test -n "$RUNTEST"; then
3986 echo "$ac_t""$RUNTEST" 1>&6
3988 echo "$ac_t""no
" 1>&6
3991 test -n "$RUNTEST" && break
3993 test -n "$RUNTEST" || RUNTEST="runtest
"
3995 case " $configdirs " in
3997 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
4004 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
4005 ncn_target_tool_prefix=
4006 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
4008 for ncn_progname in ar; do
4009 if test -n "$ncn_tool_prefix"; then
4010 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4011 set dummy ${ncn_tool_prefix}${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_AR'+set}'`\" = set"; then
4015 echo $ac_n "(cached
) $ac_c" 1>&6
4017 if test -n "$AR"; then
4018 ac_cv_prog_AR="$AR" # 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_AR="${ncn_tool_prefix}${ncn_progname}"
4033 if test -n "$AR"; then
4034 echo "$ac_t""$AR" 1>&6
4036 echo "$ac_t""no
" 1>&6
4040 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
4041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4042 set dummy ${ncn_progname}; ac_word=$2
4043 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4044 echo "configure
:4045: checking
for $ac_word" >&5
4045 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
4046 echo $ac_n "(cached
) $ac_c" 1>&6
4048 if test -n "$AR"; then
4049 ac_cv_prog_AR="$AR" # Let the user override the test.
4051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4053 for ac_dir in $ac_dummy; do
4054 test -z "$ac_dir" && ac_dir=.
4055 if test -f $ac_dir/$ac_word; then
4056 ac_cv_prog_AR="${ncn_progname}"
4064 if test -n "$AR"; then
4065 echo "$ac_t""$AR" 1>&6
4067 echo "$ac_t""no
" 1>&6
4071 test -n "$ac_cv_prog_AR" && break
4074 if test -z "$ac_cv_prog_AR" ; then
4076 if test $build = $host ; then
4079 AR="${ncn_tool_prefix}$2"
4083 for ncn_progname in as; do
4084 if test -n "$ncn_tool_prefix"; then
4085 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4086 set dummy ${ncn_tool_prefix}${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_AS'+set}'`\" = set"; then
4090 echo $ac_n "(cached
) $ac_c" 1>&6
4092 if test -n "$AS"; then
4093 ac_cv_prog_AS="$AS" # 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_AS="${ncn_tool_prefix}${ncn_progname}"
4108 if test -n "$AS"; then
4109 echo "$ac_t""$AS" 1>&6
4111 echo "$ac_t""no
" 1>&6
4115 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
4116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4117 set dummy ${ncn_progname}; ac_word=$2
4118 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4119 echo "configure
:4120: checking
for $ac_word" >&5
4120 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
4121 echo $ac_n "(cached
) $ac_c" 1>&6
4123 if test -n "$AS"; then
4124 ac_cv_prog_AS="$AS" # Let the user override the test.
4126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4128 for ac_dir in $ac_dummy; do
4129 test -z "$ac_dir" && ac_dir=.
4130 if test -f $ac_dir/$ac_word; then
4131 ac_cv_prog_AS="${ncn_progname}"
4139 if test -n "$AS"; then
4140 echo "$ac_t""$AS" 1>&6
4142 echo "$ac_t""no
" 1>&6
4146 test -n "$ac_cv_prog_AS" && break
4149 if test -z "$ac_cv_prog_AS" ; then
4151 if test $build = $host ; then
4154 AS="${ncn_tool_prefix}$2"
4158 for ncn_progname in dlltool; do
4159 if test -n "$ncn_tool_prefix"; then
4160 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4161 set dummy ${ncn_tool_prefix}${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_DLLTOOL'+set}'`\" = set"; then
4165 echo $ac_n "(cached
) $ac_c" 1>&6
4167 if test -n "$DLLTOOL"; then
4168 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
4182 DLLTOOL="$ac_cv_prog_DLLTOOL"
4183 if test -n "$DLLTOOL"; then
4184 echo "$ac_t""$DLLTOOL" 1>&6
4186 echo "$ac_t""no
" 1>&6
4190 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
4191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4192 set dummy ${ncn_progname}; ac_word=$2
4193 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4194 echo "configure
:4195: checking
for $ac_word" >&5
4195 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4196 echo $ac_n "(cached
) $ac_c" 1>&6
4198 if test -n "$DLLTOOL"; then
4199 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4203 for ac_dir in $ac_dummy; do
4204 test -z "$ac_dir" && ac_dir=.
4205 if test -f $ac_dir/$ac_word; then
4206 ac_cv_prog_DLLTOOL="${ncn_progname}"
4213 DLLTOOL="$ac_cv_prog_DLLTOOL"
4214 if test -n "$DLLTOOL"; then
4215 echo "$ac_t""$DLLTOOL" 1>&6
4217 echo "$ac_t""no
" 1>&6
4221 test -n "$ac_cv_prog_DLLTOOL" && break
4224 if test -z "$ac_cv_prog_DLLTOOL" ; then
4226 if test $build = $host ; then
4229 DLLTOOL="${ncn_tool_prefix}$2"
4233 for ncn_progname in ld; do
4234 if test -n "$ncn_tool_prefix"; then
4235 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4236 set dummy ${ncn_tool_prefix}${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_LD'+set}'`\" = set"; then
4240 echo $ac_n "(cached
) $ac_c" 1>&6
4242 if test -n "$LD"; then
4243 ac_cv_prog_LD="$LD" # 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_LD="${ncn_tool_prefix}${ncn_progname}"
4258 if test -n "$LD"; then
4259 echo "$ac_t""$LD" 1>&6
4261 echo "$ac_t""no
" 1>&6
4265 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4267 set dummy ${ncn_progname}; ac_word=$2
4268 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4269 echo "configure
:4270: checking
for $ac_word" >&5
4270 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4271 echo $ac_n "(cached
) $ac_c" 1>&6
4273 if test -n "$LD"; then
4274 ac_cv_prog_LD="$LD" # Let the user override the test.
4276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4278 for ac_dir in $ac_dummy; do
4279 test -z "$ac_dir" && ac_dir=.
4280 if test -f $ac_dir/$ac_word; then
4281 ac_cv_prog_LD="${ncn_progname}"
4289 if test -n "$LD"; then
4290 echo "$ac_t""$LD" 1>&6
4292 echo "$ac_t""no
" 1>&6
4296 test -n "$ac_cv_prog_LD" && break
4299 if test -z "$ac_cv_prog_LD" ; then
4301 if test $build = $host ; then
4304 LD="${ncn_tool_prefix}$2"
4308 for ncn_progname in lipo; do
4309 if test -n "$ncn_tool_prefix"; then
4310 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4311 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4312 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4313 echo "configure
:4314: checking
for $ac_word" >&5
4314 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4315 echo $ac_n "(cached
) $ac_c" 1>&6
4317 if test -n "$LIPO"; then
4318 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4322 for ac_dir in $ac_dummy; do
4323 test -z "$ac_dir" && ac_dir=.
4324 if test -f $ac_dir/$ac_word; then
4325 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4332 LIPO="$ac_cv_prog_LIPO"
4333 if test -n "$LIPO"; then
4334 echo "$ac_t""$LIPO" 1>&6
4336 echo "$ac_t""no
" 1>&6
4340 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4342 set dummy ${ncn_progname}; ac_word=$2
4343 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4344 echo "configure
:4345: checking
for $ac_word" >&5
4345 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4346 echo $ac_n "(cached
) $ac_c" 1>&6
4348 if test -n "$LIPO"; then
4349 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4353 for ac_dir in $ac_dummy; do
4354 test -z "$ac_dir" && ac_dir=.
4355 if test -f $ac_dir/$ac_word; then
4356 ac_cv_prog_LIPO="${ncn_progname}"
4363 LIPO="$ac_cv_prog_LIPO"
4364 if test -n "$LIPO"; then
4365 echo "$ac_t""$LIPO" 1>&6
4367 echo "$ac_t""no
" 1>&6
4371 test -n "$ac_cv_prog_LIPO" && break
4374 if test -z "$ac_cv_prog_LIPO" ; then
4376 if test $build = $host ; then
4379 LIPO="${ncn_tool_prefix}$2"
4383 for ncn_progname in nm; do
4384 if test -n "$ncn_tool_prefix"; then
4385 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4386 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4387 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4388 echo "configure
:4389: checking
for $ac_word" >&5
4389 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4390 echo $ac_n "(cached
) $ac_c" 1>&6
4392 if test -n "$NM"; then
4393 ac_cv_prog_NM="$NM" # Let the user override the test.
4395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4397 for ac_dir in $ac_dummy; do
4398 test -z "$ac_dir" && ac_dir=.
4399 if test -f $ac_dir/$ac_word; then
4400 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4408 if test -n "$NM"; then
4409 echo "$ac_t""$NM" 1>&6
4411 echo "$ac_t""no
" 1>&6
4415 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4417 set dummy ${ncn_progname}; ac_word=$2
4418 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4419 echo "configure
:4420: checking
for $ac_word" >&5
4420 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4421 echo $ac_n "(cached
) $ac_c" 1>&6
4423 if test -n "$NM"; then
4424 ac_cv_prog_NM="$NM" # Let the user override the test.
4426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4428 for ac_dir in $ac_dummy; do
4429 test -z "$ac_dir" && ac_dir=.
4430 if test -f $ac_dir/$ac_word; then
4431 ac_cv_prog_NM="${ncn_progname}"
4439 if test -n "$NM"; then
4440 echo "$ac_t""$NM" 1>&6
4442 echo "$ac_t""no
" 1>&6
4446 test -n "$ac_cv_prog_NM" && break
4449 if test -z "$ac_cv_prog_NM" ; then
4451 if test $build = $host ; then
4454 NM="${ncn_tool_prefix}$2"
4458 for ncn_progname in ranlib; do
4459 if test -n "$ncn_tool_prefix"; then
4460 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4461 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4462 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4463 echo "configure
:4464: checking
for $ac_word" >&5
4464 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4465 echo $ac_n "(cached
) $ac_c" 1>&6
4467 if test -n "$RANLIB"; then
4468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4472 for ac_dir in $ac_dummy; do
4473 test -z "$ac_dir" && ac_dir=.
4474 if test -f $ac_dir/$ac_word; then
4475 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4482 RANLIB="$ac_cv_prog_RANLIB"
4483 if test -n "$RANLIB"; then
4484 echo "$ac_t""$RANLIB" 1>&6
4486 echo "$ac_t""no
" 1>&6
4490 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4492 set dummy ${ncn_progname}; ac_word=$2
4493 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4494 echo "configure
:4495: checking
for $ac_word" >&5
4495 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4496 echo $ac_n "(cached
) $ac_c" 1>&6
4498 if test -n "$RANLIB"; then
4499 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4503 for ac_dir in $ac_dummy; do
4504 test -z "$ac_dir" && ac_dir=.
4505 if test -f $ac_dir/$ac_word; then
4506 ac_cv_prog_RANLIB="${ncn_progname}"
4513 RANLIB="$ac_cv_prog_RANLIB"
4514 if test -n "$RANLIB"; then
4515 echo "$ac_t""$RANLIB" 1>&6
4517 echo "$ac_t""no
" 1>&6
4521 test -n "$ac_cv_prog_RANLIB" && break
4524 if test -z "$ac_cv_prog_RANLIB" ; then
4528 for ncn_progname in strip; do
4529 if test -n "$ncn_tool_prefix"; then
4530 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4531 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4532 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4533 echo "configure
:4534: checking
for $ac_word" >&5
4534 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4535 echo $ac_n "(cached
) $ac_c" 1>&6
4537 if test -n "$STRIP"; then
4538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4542 for ac_dir in $ac_dummy; do
4543 test -z "$ac_dir" && ac_dir=.
4544 if test -f $ac_dir/$ac_word; then
4545 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4552 STRIP="$ac_cv_prog_STRIP"
4553 if test -n "$STRIP"; then
4554 echo "$ac_t""$STRIP" 1>&6
4556 echo "$ac_t""no
" 1>&6
4560 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4562 set dummy ${ncn_progname}; ac_word=$2
4563 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4564 echo "configure
:4565: checking
for $ac_word" >&5
4565 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4566 echo $ac_n "(cached
) $ac_c" 1>&6
4568 if test -n "$STRIP"; then
4569 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4573 for ac_dir in $ac_dummy; do
4574 test -z "$ac_dir" && ac_dir=.
4575 if test -f $ac_dir/$ac_word; then
4576 ac_cv_prog_STRIP="${ncn_progname}"
4583 STRIP="$ac_cv_prog_STRIP"
4584 if test -n "$STRIP"; then
4585 echo "$ac_t""$STRIP" 1>&6
4587 echo "$ac_t""no
" 1>&6
4591 test -n "$ac_cv_prog_STRIP" && break
4594 if test -z "$ac_cv_prog_STRIP" ; then
4598 for ncn_progname in windres; do
4599 if test -n "$ncn_tool_prefix"; then
4600 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4601 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4602 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4603 echo "configure
:4604: checking
for $ac_word" >&5
4604 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4605 echo $ac_n "(cached
) $ac_c" 1>&6
4607 if test -n "$WINDRES"; then
4608 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4612 for ac_dir in $ac_dummy; do
4613 test -z "$ac_dir" && ac_dir=.
4614 if test -f $ac_dir/$ac_word; then
4615 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4622 WINDRES="$ac_cv_prog_WINDRES"
4623 if test -n "$WINDRES"; then
4624 echo "$ac_t""$WINDRES" 1>&6
4626 echo "$ac_t""no
" 1>&6
4630 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4632 set dummy ${ncn_progname}; ac_word=$2
4633 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4634 echo "configure
:4635: checking
for $ac_word" >&5
4635 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4636 echo $ac_n "(cached
) $ac_c" 1>&6
4638 if test -n "$WINDRES"; then
4639 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4643 for ac_dir in $ac_dummy; do
4644 test -z "$ac_dir" && ac_dir=.
4645 if test -f $ac_dir/$ac_word; then
4646 ac_cv_prog_WINDRES="${ncn_progname}"
4653 WINDRES="$ac_cv_prog_WINDRES"
4654 if test -n "$WINDRES"; then
4655 echo "$ac_t""$WINDRES" 1>&6
4657 echo "$ac_t""no
" 1>&6
4661 test -n "$ac_cv_prog_WINDRES" && break
4664 if test -z "$ac_cv_prog_WINDRES" ; then
4666 if test $build = $host ; then
4669 WINDRES="${ncn_tool_prefix}$2"
4673 for ncn_progname in objcopy; do
4674 if test -n "$ncn_tool_prefix"; then
4675 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4676 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4677 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4678 echo "configure
:4679: checking
for $ac_word" >&5
4679 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4680 echo $ac_n "(cached
) $ac_c" 1>&6
4682 if test -n "$OBJCOPY"; then
4683 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4687 for ac_dir in $ac_dummy; do
4688 test -z "$ac_dir" && ac_dir=.
4689 if test -f $ac_dir/$ac_word; then
4690 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4697 OBJCOPY="$ac_cv_prog_OBJCOPY"
4698 if test -n "$OBJCOPY"; then
4699 echo "$ac_t""$OBJCOPY" 1>&6
4701 echo "$ac_t""no
" 1>&6
4705 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4707 set dummy ${ncn_progname}; ac_word=$2
4708 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4709 echo "configure
:4710: checking
for $ac_word" >&5
4710 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4711 echo $ac_n "(cached
) $ac_c" 1>&6
4713 if test -n "$OBJCOPY"; then
4714 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4718 for ac_dir in $ac_dummy; do
4719 test -z "$ac_dir" && ac_dir=.
4720 if test -f $ac_dir/$ac_word; then
4721 ac_cv_prog_OBJCOPY="${ncn_progname}"
4728 OBJCOPY="$ac_cv_prog_OBJCOPY"
4729 if test -n "$OBJCOPY"; then
4730 echo "$ac_t""$OBJCOPY" 1>&6
4732 echo "$ac_t""no
" 1>&6
4736 test -n "$ac_cv_prog_OBJCOPY" && break
4739 if test -z "$ac_cv_prog_OBJCOPY" ; then
4741 if test $build = $host ; then
4744 OBJCOPY="${ncn_tool_prefix}$2"
4748 for ncn_progname in objdump; do
4749 if test -n "$ncn_tool_prefix"; then
4750 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4751 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4752 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4753 echo "configure
:4754: checking
for $ac_word" >&5
4754 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4755 echo $ac_n "(cached
) $ac_c" 1>&6
4757 if test -n "$OBJDUMP"; then
4758 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4762 for ac_dir in $ac_dummy; do
4763 test -z "$ac_dir" && ac_dir=.
4764 if test -f $ac_dir/$ac_word; then
4765 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4772 OBJDUMP="$ac_cv_prog_OBJDUMP"
4773 if test -n "$OBJDUMP"; then
4774 echo "$ac_t""$OBJDUMP" 1>&6
4776 echo "$ac_t""no
" 1>&6
4780 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4782 set dummy ${ncn_progname}; ac_word=$2
4783 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4784 echo "configure
:4785: checking
for $ac_word" >&5
4785 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4786 echo $ac_n "(cached
) $ac_c" 1>&6
4788 if test -n "$OBJDUMP"; then
4789 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4793 for ac_dir in $ac_dummy; do
4794 test -z "$ac_dir" && ac_dir=.
4795 if test -f $ac_dir/$ac_word; then
4796 ac_cv_prog_OBJDUMP="${ncn_progname}"
4803 OBJDUMP="$ac_cv_prog_OBJDUMP"
4804 if test -n "$OBJDUMP"; then
4805 echo "$ac_t""$OBJDUMP" 1>&6
4807 echo "$ac_t""no
" 1>&6
4811 test -n "$ac_cv_prog_OBJDUMP" && break
4814 if test -z "$ac_cv_prog_OBJDUMP" ; then
4816 if test $build = $host ; then
4819 OBJDUMP="${ncn_tool_prefix}$2"
4830 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4831 if test "${with_build_time_tools+set}" = set; then
4832 withval="$with_build_time_tools"
4836 with_build_time_tools=
4837 echo "configure
: warning
: argument to
--with-build-time-tools must be an absolute path
" 1>&2
4841 with_build_time_tools=
4845 if test -n "$with_build_time_tools"; then
4846 for ncn_progname in cc gcc; do
4847 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4848 echo "configure
:4849: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4849 if test -x $with_build_time_tools/${ncn_progname}; then
4850 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4851 echo "$ac_t""yes" 1>&6
4854 echo "$ac_t""no
" 1>&6
4859 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4860 for ncn_progname in cc gcc; do
4861 if test -n "$ncn_target_tool_prefix"; then
4862 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4863 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4864 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4865 echo "configure
:4866: checking
for $ac_word" >&5
4866 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4867 echo $ac_n "(cached
) $ac_c" 1>&6
4869 if test -n "$CC_FOR_TARGET"; then
4870 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4874 for ac_dir in $ac_dummy; do
4875 test -z "$ac_dir" && ac_dir=.
4876 if test -f $ac_dir/$ac_word; then
4877 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4884 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4885 if test -n "$CC_FOR_TARGET"; then
4886 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4888 echo "$ac_t""no
" 1>&6
4892 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4894 set dummy ${ncn_progname}; ac_word=$2
4895 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4896 echo "configure
:4897: checking
for $ac_word" >&5
4897 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4898 echo $ac_n "(cached
) $ac_c" 1>&6
4900 if test -n "$CC_FOR_TARGET"; then
4901 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4905 for ac_dir in $ac_dummy; do
4906 test -z "$ac_dir" && ac_dir=.
4907 if test -f $ac_dir/$ac_word; then
4908 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4915 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4916 if test -n "$CC_FOR_TARGET"; then
4917 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4919 echo "$ac_t""no
" 1>&6
4923 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4927 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4929 if test $build = $target ; then
4932 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4936 if test -n "$with_build_time_tools"; then
4937 for ncn_progname in c++ g++ cxx gxx; do
4938 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4939 echo "configure
:4940: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4940 if test -x $with_build_time_tools/${ncn_progname}; then
4941 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4942 echo "$ac_t""yes" 1>&6
4945 echo "$ac_t""no
" 1>&6
4950 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4951 for ncn_progname in c++ g++ cxx gxx; do
4952 if test -n "$ncn_target_tool_prefix"; then
4953 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4954 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4955 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4956 echo "configure
:4957: checking
for $ac_word" >&5
4957 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4958 echo $ac_n "(cached
) $ac_c" 1>&6
4960 if test -n "$CXX_FOR_TARGET"; then
4961 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4965 for ac_dir in $ac_dummy; do
4966 test -z "$ac_dir" && ac_dir=.
4967 if test -f $ac_dir/$ac_word; then
4968 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4975 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4976 if test -n "$CXX_FOR_TARGET"; then
4977 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4979 echo "$ac_t""no
" 1>&6
4983 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4985 set dummy ${ncn_progname}; ac_word=$2
4986 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4987 echo "configure
:4988: checking
for $ac_word" >&5
4988 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4989 echo $ac_n "(cached
) $ac_c" 1>&6
4991 if test -n "$CXX_FOR_TARGET"; then
4992 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4996 for ac_dir in $ac_dummy; do
4997 test -z "$ac_dir" && ac_dir=.
4998 if test -f $ac_dir/$ac_word; then
4999 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5006 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
5007 if test -n "$CXX_FOR_TARGET"; then
5008 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
5010 echo "$ac_t""no
" 1>&6
5014 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
5018 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
5019 set dummy c++ g++ cxx gxx
5020 if test $build = $target ; then
5023 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
5027 if test -n "$with_build_time_tools"; then
5028 for ncn_progname in gcc; do
5029 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
5030 echo "configure
:5031: checking
for ${ncn_progname} in $with_build_time_tools" >&5
5031 if test -x $with_build_time_tools/${ncn_progname}; then
5032 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5033 echo "$ac_t""yes" 1>&6
5036 echo "$ac_t""no
" 1>&6
5041 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
5042 for ncn_progname in gcc; do
5043 if test -n "$ncn_target_tool_prefix"; then
5044 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5045 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5046 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5047 echo "configure
:5048: checking
for $ac_word" >&5
5048 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
5049 echo $ac_n "(cached
) $ac_c" 1>&6
5051 if test -n "$GCC_FOR_TARGET"; then
5052 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
5054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5056 for ac_dir in $ac_dummy; do
5057 test -z "$ac_dir" && ac_dir=.
5058 if test -f $ac_dir/$ac_word; then
5059 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5066 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
5067 if test -n "$GCC_FOR_TARGET"; then
5068 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
5070 echo "$ac_t""no
" 1>&6
5074 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
5075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5076 set dummy ${ncn_progname}; ac_word=$2
5077 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5078 echo "configure
:5079: checking
for $ac_word" >&5
5079 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
5080 echo $ac_n "(cached
) $ac_c" 1>&6
5082 if test -n "$GCC_FOR_TARGET"; then
5083 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
5085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5087 for ac_dir in $ac_dummy; do
5088 test -z "$ac_dir" && ac_dir=.
5089 if test -f $ac_dir/$ac_word; then
5090 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5097 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
5098 if test -n "$GCC_FOR_TARGET"; then
5099 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
5101 echo "$ac_t""no
" 1>&6
5105 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
5109 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
5110 GCC_FOR_TARGET="${CC_FOR_TARGET}"
5113 if test -n "$with_build_time_tools"; then
5114 for ncn_progname in gcj; do
5115 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
5116 echo "configure
:5117: checking
for ${ncn_progname} in $with_build_time_tools" >&5
5117 if test -x $with_build_time_tools/${ncn_progname}; then
5118 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5119 echo "$ac_t""yes" 1>&6
5122 echo "$ac_t""no
" 1>&6
5127 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
5128 for ncn_progname in gcj; do
5129 if test -n "$ncn_target_tool_prefix"; then
5130 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5131 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5132 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5133 echo "configure
:5134: checking
for $ac_word" >&5
5134 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
5135 echo $ac_n "(cached
) $ac_c" 1>&6
5137 if test -n "$GCJ_FOR_TARGET"; then
5138 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
5140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5142 for ac_dir in $ac_dummy; do
5143 test -z "$ac_dir" && ac_dir=.
5144 if test -f $ac_dir/$ac_word; then
5145 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5152 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5153 if test -n "$GCJ_FOR_TARGET"; then
5154 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
5156 echo "$ac_t""no
" 1>&6
5160 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
5161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5162 set dummy ${ncn_progname}; ac_word=$2
5163 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5164 echo "configure
:5165: checking
for $ac_word" >&5
5165 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
5166 echo $ac_n "(cached
) $ac_c" 1>&6
5168 if test -n "$GCJ_FOR_TARGET"; then
5169 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
5171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5173 for ac_dir in $ac_dummy; do
5174 test -z "$ac_dir" && ac_dir=.
5175 if test -f $ac_dir/$ac_word; then
5176 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5183 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5184 if test -n "$GCJ_FOR_TARGET"; then
5185 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
5187 echo "$ac_t""no
" 1>&6
5191 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
5195 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
5197 if test $build = $target ; then
5200 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
5204 if test -n "$with_build_time_tools"; then
5205 for ncn_progname in gfortran; do
5206 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
5207 echo "configure
:5208: checking
for ${ncn_progname} in $with_build_time_tools" >&5
5208 if test -x $with_build_time_tools/${ncn_progname}; then
5209 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5210 echo "$ac_t""yes" 1>&6
5213 echo "$ac_t""no
" 1>&6
5218 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
5219 for ncn_progname in gfortran; do
5220 if test -n "$ncn_target_tool_prefix"; then
5221 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5222 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5223 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5224 echo "configure
:5225: checking
for $ac_word" >&5
5225 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5226 echo $ac_n "(cached
) $ac_c" 1>&6
5228 if test -n "$GFORTRAN_FOR_TARGET"; then
5229 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5233 for ac_dir in $ac_dummy; do
5234 test -z "$ac_dir" && ac_dir=.
5235 if test -f $ac_dir/$ac_word; then
5236 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5243 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5244 if test -n "$GFORTRAN_FOR_TARGET"; then
5245 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5247 echo "$ac_t""no
" 1>&6
5251 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5253 set dummy ${ncn_progname}; ac_word=$2
5254 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5255 echo "configure
:5256: checking
for $ac_word" >&5
5256 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5257 echo $ac_n "(cached
) $ac_c" 1>&6
5259 if test -n "$GFORTRAN_FOR_TARGET"; then
5260 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5264 for ac_dir in $ac_dummy; do
5265 test -z "$ac_dir" && ac_dir=.
5266 if test -f $ac_dir/$ac_word; then
5267 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5274 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5275 if test -n "$GFORTRAN_FOR_TARGET"; then
5276 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5278 echo "$ac_t""no
" 1>&6
5282 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5286 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5288 if test $build = $target ; then
5289 GFORTRAN_FOR_TARGET="$2"
5291 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5297 # The user is always right.
5298 if test "${PATH_SEPARATOR+set}" != set; then
5299 echo "#! /bin/sh" >conf$$.sh
5300 echo "exit 0" >>conf$$.sh
5302 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5312 if test "x$exec_prefix" = xNONE
; then
5313 if test "x$prefix" = xNONE
; then
5314 gcc_cv_tool_prefix
=$ac_default_prefix
5316 gcc_cv_tool_prefix
=$prefix
5319 gcc_cv_tool_prefix
=$exec_prefix
5322 # If there is no compiler in the tree, use the PATH only. In any
5323 # case, if there is no compiler in the tree nobody should use
5324 # AS_FOR_TARGET and LD_FOR_TARGET.
5325 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
5326 gcc_version
=`cat $srcdir/gcc/BASE-VER`
5327 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5328 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5329 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5330 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5331 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5332 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5337 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
5338 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5343 cat > conftest.c
<< \EOF
5348 if ($GCC_FOR_TARGET -E conftest.c |
grep gcc_yay
) > /dev
/null
2>&1; then
5349 have_gcc_for_target
=yes
5351 GCC_FOR_TARGET
=${ncn_target_tool_prefix}gcc
5352 have_gcc_for_target
=no
5359 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5360 if test -n "$with_build_time_tools"; then
5361 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5362 echo "configure:5363: checking for ar in $with_build_time_tools" >&5
5363 if test -x $with_build_time_tools/ar; then
5364 AR_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ar
5365 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5366 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5368 echo "$ac_t""no" 1>&6
5370 elif test $build != $host && test $have_gcc_for_target = yes; then
5371 AR_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ar`
5372 test $AR_FOR_TARGET=ar && AR_FOR_TARGET
=
5373 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5376 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5377 # Extract the first word of "ar", so it can be a program name with args.
5378 set dummy
ar; ac_word
=$2
5379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5380 echo "configure:5381: checking for $ac_word" >&5
5381 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5382 echo $ac_n "(cached) $ac_c" 1>&6
5384 case "$AR_FOR_TARGET" in
5386 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a path.
5389 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5392 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5393 ac_dummy
="$gcc_cv_tool_dirs"
5394 for ac_dir
in $ac_dummy; do
5395 test -z "$ac_dir" && ac_dir
=.
5396 if test -f $ac_dir/$ac_word; then
5397 ac_cv_path_AR_FOR_TARGET
="$ac_dir/$ac_word"
5405 AR_FOR_TARGET
="$ac_cv_path_AR_FOR_TARGET"
5406 if test -n "$AR_FOR_TARGET"; then
5407 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5409 echo "$ac_t""no" 1>&6
5413 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5414 if test -n "$with_build_time_tools"; then
5415 for ncn_progname
in ar; do
5416 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5417 echo "configure:5418: checking for ${ncn_progname} in $with_build_time_tools" >&5
5418 if test -x $with_build_time_tools/${ncn_progname}; then
5419 ac_cv_prog_AR_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5420 echo "$ac_t""yes" 1>&6
5423 echo "$ac_t""no" 1>&6
5428 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5429 for ncn_progname
in ar; do
5430 if test -n "$ncn_target_tool_prefix"; then
5431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5432 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5434 echo "configure:5435: checking for $ac_word" >&5
5435 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5438 if test -n "$AR_FOR_TARGET"; then
5439 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5441 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5443 for ac_dir
in $ac_dummy; do
5444 test -z "$ac_dir" && ac_dir
=.
5445 if test -f $ac_dir/$ac_word; then
5446 ac_cv_prog_AR_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5453 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5454 if test -n "$AR_FOR_TARGET"; then
5455 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5457 echo "$ac_t""no" 1>&6
5461 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5463 set dummy
${ncn_progname}; ac_word
=$2
5464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5465 echo "configure:5466: checking for $ac_word" >&5
5466 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5467 echo $ac_n "(cached) $ac_c" 1>&6
5469 if test -n "$AR_FOR_TARGET"; then
5470 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5472 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5474 for ac_dir
in $ac_dummy; do
5475 test -z "$ac_dir" && ac_dir
=.
5476 if test -f $ac_dir/$ac_word; then
5477 ac_cv_prog_AR_FOR_TARGET
="${ncn_progname}"
5484 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5485 if test -n "$AR_FOR_TARGET"; then
5486 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5488 echo "$ac_t""no" 1>&6
5492 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5496 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5498 if test $build = $target ; then
5501 AR_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5506 AR_FOR_TARGET
=$ac_cv_path_AR_FOR_TARGET
5512 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5513 if test -n "$with_build_time_tools"; then
5514 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5515 echo "configure:5516: checking for as in $with_build_time_tools" >&5
5516 if test -x $with_build_time_tools/as
; then
5517 AS_FOR_TARGET
=`cd $with_build_time_tools && pwd`/as
5518 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5519 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5521 echo "$ac_t""no" 1>&6
5523 elif test $build != $host && test $have_gcc_for_target = yes; then
5524 AS_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=as`
5525 test $AS_FOR_TARGET=as
&& AS_FOR_TARGET
=
5526 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5529 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5530 # Extract the first word of "as", so it can be a program name with args.
5531 set dummy as
; ac_word
=$2
5532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5533 echo "configure:5534: checking for $ac_word" >&5
5534 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5537 case "$AS_FOR_TARGET" in
5539 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a path.
5542 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5545 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5546 ac_dummy
="$gcc_cv_tool_dirs"
5547 for ac_dir
in $ac_dummy; do
5548 test -z "$ac_dir" && ac_dir
=.
5549 if test -f $ac_dir/$ac_word; then
5550 ac_cv_path_AS_FOR_TARGET
="$ac_dir/$ac_word"
5558 AS_FOR_TARGET
="$ac_cv_path_AS_FOR_TARGET"
5559 if test -n "$AS_FOR_TARGET"; then
5560 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5562 echo "$ac_t""no" 1>&6
5566 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5567 if test -n "$with_build_time_tools"; then
5568 for ncn_progname
in as
; do
5569 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5570 echo "configure:5571: checking for ${ncn_progname} in $with_build_time_tools" >&5
5571 if test -x $with_build_time_tools/${ncn_progname}; then
5572 ac_cv_prog_AS_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5573 echo "$ac_t""yes" 1>&6
5576 echo "$ac_t""no" 1>&6
5581 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5582 for ncn_progname
in as
; do
5583 if test -n "$ncn_target_tool_prefix"; then
5584 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5585 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5587 echo "configure:5588: checking for $ac_word" >&5
5588 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5591 if test -n "$AS_FOR_TARGET"; then
5592 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5594 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5596 for ac_dir
in $ac_dummy; do
5597 test -z "$ac_dir" && ac_dir
=.
5598 if test -f $ac_dir/$ac_word; then
5599 ac_cv_prog_AS_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5606 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5607 if test -n "$AS_FOR_TARGET"; then
5608 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5610 echo "$ac_t""no" 1>&6
5614 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5616 set dummy
${ncn_progname}; ac_word
=$2
5617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5618 echo "configure:5619: checking for $ac_word" >&5
5619 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5620 echo $ac_n "(cached) $ac_c" 1>&6
5622 if test -n "$AS_FOR_TARGET"; then
5623 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5625 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5627 for ac_dir
in $ac_dummy; do
5628 test -z "$ac_dir" && ac_dir
=.
5629 if test -f $ac_dir/$ac_word; then
5630 ac_cv_prog_AS_FOR_TARGET
="${ncn_progname}"
5637 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5638 if test -n "$AS_FOR_TARGET"; then
5639 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5641 echo "$ac_t""no" 1>&6
5645 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5649 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5651 if test $build = $target ; then
5654 AS_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5659 AS_FOR_TARGET
=$ac_cv_path_AS_FOR_TARGET
5665 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5666 if test -n "$with_build_time_tools"; then
5667 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5668 echo "configure:5669: checking for dlltool in $with_build_time_tools" >&5
5669 if test -x $with_build_time_tools/dlltool
; then
5670 DLLTOOL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/dlltool
5671 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5672 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5674 echo "$ac_t""no" 1>&6
5676 elif test $build != $host && test $have_gcc_for_target = yes; then
5677 DLLTOOL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5678 test $DLLTOOL_FOR_TARGET=dlltool
&& DLLTOOL_FOR_TARGET
=
5679 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5682 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5683 # Extract the first word of "dlltool", so it can be a program name with args.
5684 set dummy dlltool
; ac_word
=$2
5685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5686 echo "configure:5687: checking for $ac_word" >&5
5687 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5688 echo $ac_n "(cached) $ac_c" 1>&6
5690 case "$DLLTOOL_FOR_TARGET" in
5692 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5695 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5698 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5699 ac_dummy
="$gcc_cv_tool_dirs"
5700 for ac_dir
in $ac_dummy; do
5701 test -z "$ac_dir" && ac_dir
=.
5702 if test -f $ac_dir/$ac_word; then
5703 ac_cv_path_DLLTOOL_FOR_TARGET
="$ac_dir/$ac_word"
5711 DLLTOOL_FOR_TARGET
="$ac_cv_path_DLLTOOL_FOR_TARGET"
5712 if test -n "$DLLTOOL_FOR_TARGET"; then
5713 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5715 echo "$ac_t""no" 1>&6
5719 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5720 if test -n "$with_build_time_tools"; then
5721 for ncn_progname
in dlltool
; do
5722 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5723 echo "configure:5724: checking for ${ncn_progname} in $with_build_time_tools" >&5
5724 if test -x $with_build_time_tools/${ncn_progname}; then
5725 ac_cv_prog_DLLTOOL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5726 echo "$ac_t""yes" 1>&6
5729 echo "$ac_t""no" 1>&6
5734 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5735 for ncn_progname
in dlltool
; do
5736 if test -n "$ncn_target_tool_prefix"; then
5737 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5738 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5740 echo "configure:5741: checking for $ac_word" >&5
5741 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5742 echo $ac_n "(cached) $ac_c" 1>&6
5744 if test -n "$DLLTOOL_FOR_TARGET"; then
5745 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5747 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5749 for ac_dir
in $ac_dummy; do
5750 test -z "$ac_dir" && ac_dir
=.
5751 if test -f $ac_dir/$ac_word; then
5752 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5759 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5760 if test -n "$DLLTOOL_FOR_TARGET"; then
5761 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5763 echo "$ac_t""no" 1>&6
5767 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5769 set dummy
${ncn_progname}; ac_word
=$2
5770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5771 echo "configure:5772: checking for $ac_word" >&5
5772 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5773 echo $ac_n "(cached) $ac_c" 1>&6
5775 if test -n "$DLLTOOL_FOR_TARGET"; then
5776 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5778 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5780 for ac_dir
in $ac_dummy; do
5781 test -z "$ac_dir" && ac_dir
=.
5782 if test -f $ac_dir/$ac_word; then
5783 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_progname}"
5790 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5791 if test -n "$DLLTOOL_FOR_TARGET"; then
5792 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5794 echo "$ac_t""no" 1>&6
5798 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5802 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5804 if test $build = $target ; then
5805 DLLTOOL_FOR_TARGET
="$2"
5807 DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5812 DLLTOOL_FOR_TARGET
=$ac_cv_path_DLLTOOL_FOR_TARGET
5818 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5819 if test -n "$with_build_time_tools"; then
5820 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5821 echo "configure:5822: checking for ld in $with_build_time_tools" >&5
5822 if test -x $with_build_time_tools/ld
; then
5823 LD_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ld
5824 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5825 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5827 echo "$ac_t""no" 1>&6
5829 elif test $build != $host && test $have_gcc_for_target = yes; then
5830 LD_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ld`
5831 test $LD_FOR_TARGET=ld
&& LD_FOR_TARGET
=
5832 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5835 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5836 # Extract the first word of "ld", so it can be a program name with args.
5837 set dummy ld
; ac_word
=$2
5838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5839 echo "configure:5840: checking for $ac_word" >&5
5840 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5841 echo $ac_n "(cached) $ac_c" 1>&6
5843 case "$LD_FOR_TARGET" in
5845 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a path.
5848 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5851 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5852 ac_dummy
="$gcc_cv_tool_dirs"
5853 for ac_dir
in $ac_dummy; do
5854 test -z "$ac_dir" && ac_dir
=.
5855 if test -f $ac_dir/$ac_word; then
5856 ac_cv_path_LD_FOR_TARGET
="$ac_dir/$ac_word"
5864 LD_FOR_TARGET
="$ac_cv_path_LD_FOR_TARGET"
5865 if test -n "$LD_FOR_TARGET"; then
5866 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5868 echo "$ac_t""no" 1>&6
5872 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5873 if test -n "$with_build_time_tools"; then
5874 for ncn_progname
in ld
; do
5875 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5876 echo "configure:5877: checking for ${ncn_progname} in $with_build_time_tools" >&5
5877 if test -x $with_build_time_tools/${ncn_progname}; then
5878 ac_cv_prog_LD_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5879 echo "$ac_t""yes" 1>&6
5882 echo "$ac_t""no" 1>&6
5887 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5888 for ncn_progname
in ld
; do
5889 if test -n "$ncn_target_tool_prefix"; then
5890 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5891 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5893 echo "configure:5894: checking for $ac_word" >&5
5894 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5895 echo $ac_n "(cached) $ac_c" 1>&6
5897 if test -n "$LD_FOR_TARGET"; then
5898 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5900 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5902 for ac_dir
in $ac_dummy; do
5903 test -z "$ac_dir" && ac_dir
=.
5904 if test -f $ac_dir/$ac_word; then
5905 ac_cv_prog_LD_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5912 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5913 if test -n "$LD_FOR_TARGET"; then
5914 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5916 echo "$ac_t""no" 1>&6
5920 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5922 set dummy
${ncn_progname}; ac_word
=$2
5923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5924 echo "configure:5925: checking for $ac_word" >&5
5925 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5926 echo $ac_n "(cached) $ac_c" 1>&6
5928 if test -n "$LD_FOR_TARGET"; then
5929 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5931 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5933 for ac_dir
in $ac_dummy; do
5934 test -z "$ac_dir" && ac_dir
=.
5935 if test -f $ac_dir/$ac_word; then
5936 ac_cv_prog_LD_FOR_TARGET
="${ncn_progname}"
5943 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5944 if test -n "$LD_FOR_TARGET"; then
5945 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5947 echo "$ac_t""no" 1>&6
5951 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5955 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5957 if test $build = $target ; then
5960 LD_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5965 LD_FOR_TARGET
=$ac_cv_path_LD_FOR_TARGET
5971 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5972 if test -n "$with_build_time_tools"; then
5973 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5974 echo "configure:5975: checking for lipo in $with_build_time_tools" >&5
5975 if test -x $with_build_time_tools/lipo
; then
5976 LIPO_FOR_TARGET
=`cd $with_build_time_tools && pwd`/lipo
5977 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5978 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5980 echo "$ac_t""no" 1>&6
5982 elif test $build != $host && test $have_gcc_for_target = yes; then
5983 LIPO_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=lipo`
5984 test $LIPO_FOR_TARGET=lipo
&& LIPO_FOR_TARGET
=
5985 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5988 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5989 # Extract the first word of "lipo", so it can be a program name with args.
5990 set dummy lipo
; ac_word
=$2
5991 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5992 echo "configure:5993: checking for $ac_word" >&5
5993 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5994 echo $ac_n "(cached) $ac_c" 1>&6
5996 case "$LIPO_FOR_TARGET" in
5998 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a path.
6001 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
6004 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6005 ac_dummy
="$gcc_cv_tool_dirs"
6006 for ac_dir
in $ac_dummy; do
6007 test -z "$ac_dir" && ac_dir
=.
6008 if test -f $ac_dir/$ac_word; then
6009 ac_cv_path_LIPO_FOR_TARGET
="$ac_dir/$ac_word"
6017 LIPO_FOR_TARGET
="$ac_cv_path_LIPO_FOR_TARGET"
6018 if test -n "$LIPO_FOR_TARGET"; then
6019 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
6021 echo "$ac_t""no" 1>&6
6025 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
6026 if test -n "$with_build_time_tools"; then
6027 for ncn_progname
in lipo
; do
6028 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6029 echo "configure:6030: checking for ${ncn_progname} in $with_build_time_tools" >&5
6030 if test -x $with_build_time_tools/${ncn_progname}; then
6031 ac_cv_prog_LIPO_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6032 echo "$ac_t""yes" 1>&6
6035 echo "$ac_t""no" 1>&6
6040 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
6041 for ncn_progname
in lipo
; do
6042 if test -n "$ncn_target_tool_prefix"; then
6043 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6044 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6046 echo "configure:6047: checking for $ac_word" >&5
6047 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
6048 echo $ac_n "(cached) $ac_c" 1>&6
6050 if test -n "$LIPO_FOR_TARGET"; then
6051 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
6053 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6055 for ac_dir
in $ac_dummy; do
6056 test -z "$ac_dir" && ac_dir
=.
6057 if test -f $ac_dir/$ac_word; then
6058 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6065 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
6066 if test -n "$LIPO_FOR_TARGET"; then
6067 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
6069 echo "$ac_t""no" 1>&6
6073 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
6074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6075 set dummy
${ncn_progname}; ac_word
=$2
6076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6077 echo "configure:6078: checking for $ac_word" >&5
6078 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
6079 echo $ac_n "(cached) $ac_c" 1>&6
6081 if test -n "$LIPO_FOR_TARGET"; then
6082 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
6084 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6086 for ac_dir
in $ac_dummy; do
6087 test -z "$ac_dir" && ac_dir
=.
6088 if test -f $ac_dir/$ac_word; then
6089 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_progname}"
6096 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
6097 if test -n "$LIPO_FOR_TARGET"; then
6098 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
6100 echo "$ac_t""no" 1>&6
6104 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
6108 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
6110 if test $build = $target ; then
6111 LIPO_FOR_TARGET
="$2"
6113 LIPO_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6118 LIPO_FOR_TARGET
=$ac_cv_path_LIPO_FOR_TARGET
6124 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6125 if test -n "$with_build_time_tools"; then
6126 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
6127 echo "configure:6128: checking for nm in $with_build_time_tools" >&5
6128 if test -x $with_build_time_tools/nm
; then
6129 NM_FOR_TARGET
=`cd $with_build_time_tools && pwd`/nm
6130 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
6131 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
6133 echo "$ac_t""no" 1>&6
6135 elif test $build != $host && test $have_gcc_for_target = yes; then
6136 NM_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=nm`
6137 test $NM_FOR_TARGET=nm
&& NM_FOR_TARGET
=
6138 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
6141 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6142 # Extract the first word of "nm", so it can be a program name with args.
6143 set dummy nm
; ac_word
=$2
6144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6145 echo "configure:6146: checking for $ac_word" >&5
6146 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
6147 echo $ac_n "(cached) $ac_c" 1>&6
6149 case "$NM_FOR_TARGET" in
6151 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a path.
6154 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a dos path.
6157 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6158 ac_dummy
="$gcc_cv_tool_dirs"
6159 for ac_dir
in $ac_dummy; do
6160 test -z "$ac_dir" && ac_dir
=.
6161 if test -f $ac_dir/$ac_word; then
6162 ac_cv_path_NM_FOR_TARGET
="$ac_dir/$ac_word"
6170 NM_FOR_TARGET
="$ac_cv_path_NM_FOR_TARGET"
6171 if test -n "$NM_FOR_TARGET"; then
6172 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6174 echo "$ac_t""no" 1>&6
6178 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6179 if test -n "$with_build_time_tools"; then
6180 for ncn_progname
in nm
; do
6181 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6182 echo "configure:6183: checking for ${ncn_progname} in $with_build_time_tools" >&5
6183 if test -x $with_build_time_tools/${ncn_progname}; then
6184 ac_cv_prog_NM_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6185 echo "$ac_t""yes" 1>&6
6188 echo "$ac_t""no" 1>&6
6193 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
6194 for ncn_progname
in nm
; do
6195 if test -n "$ncn_target_tool_prefix"; then
6196 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6197 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6199 echo "configure:6200: checking for $ac_word" >&5
6200 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6203 if test -n "$NM_FOR_TARGET"; then
6204 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
6206 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6208 for ac_dir
in $ac_dummy; do
6209 test -z "$ac_dir" && ac_dir
=.
6210 if test -f $ac_dir/$ac_word; then
6211 ac_cv_prog_NM_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6218 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
6219 if test -n "$NM_FOR_TARGET"; then
6220 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6222 echo "$ac_t""no" 1>&6
6226 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
6227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6228 set dummy
${ncn_progname}; ac_word
=$2
6229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6230 echo "configure:6231: checking for $ac_word" >&5
6231 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6234 if test -n "$NM_FOR_TARGET"; then
6235 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
6237 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6239 for ac_dir
in $ac_dummy; do
6240 test -z "$ac_dir" && ac_dir
=.
6241 if test -f $ac_dir/$ac_word; then
6242 ac_cv_prog_NM_FOR_TARGET
="${ncn_progname}"
6249 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
6250 if test -n "$NM_FOR_TARGET"; then
6251 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6253 echo "$ac_t""no" 1>&6
6257 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6261 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6263 if test $build = $target ; then
6266 NM_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6271 NM_FOR_TARGET
=$ac_cv_path_NM_FOR_TARGET
6277 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6278 if test -n "$with_build_time_tools"; then
6279 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6280 echo "configure:6281: checking for objdump in $with_build_time_tools" >&5
6281 if test -x $with_build_time_tools/objdump
; then
6282 OBJDUMP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/objdump
6283 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6284 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6286 echo "$ac_t""no" 1>&6
6288 elif test $build != $host && test $have_gcc_for_target = yes; then
6289 OBJDUMP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=objdump`
6290 test $OBJDUMP_FOR_TARGET=objdump
&& OBJDUMP_FOR_TARGET
=
6291 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6294 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6295 # Extract the first word of "objdump", so it can be a program name with args.
6296 set dummy objdump
; ac_word
=$2
6297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6298 echo "configure:6299: checking for $ac_word" >&5
6299 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6302 case "$OBJDUMP_FOR_TARGET" in
6304 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6307 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6310 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6311 ac_dummy
="$gcc_cv_tool_dirs"
6312 for ac_dir
in $ac_dummy; do
6313 test -z "$ac_dir" && ac_dir
=.
6314 if test -f $ac_dir/$ac_word; then
6315 ac_cv_path_OBJDUMP_FOR_TARGET
="$ac_dir/$ac_word"
6323 OBJDUMP_FOR_TARGET
="$ac_cv_path_OBJDUMP_FOR_TARGET"
6324 if test -n "$OBJDUMP_FOR_TARGET"; then
6325 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6327 echo "$ac_t""no" 1>&6
6331 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6332 if test -n "$with_build_time_tools"; then
6333 for ncn_progname
in objdump
; do
6334 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6335 echo "configure:6336: checking for ${ncn_progname} in $with_build_time_tools" >&5
6336 if test -x $with_build_time_tools/${ncn_progname}; then
6337 ac_cv_prog_OBJDUMP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6338 echo "$ac_t""yes" 1>&6
6341 echo "$ac_t""no" 1>&6
6346 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6347 for ncn_progname
in objdump
; do
6348 if test -n "$ncn_target_tool_prefix"; then
6349 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6350 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6352 echo "configure:6353: checking for $ac_word" >&5
6353 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6356 if test -n "$OBJDUMP_FOR_TARGET"; then
6357 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6359 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6361 for ac_dir
in $ac_dummy; do
6362 test -z "$ac_dir" && ac_dir
=.
6363 if test -f $ac_dir/$ac_word; then
6364 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6371 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6372 if test -n "$OBJDUMP_FOR_TARGET"; then
6373 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6375 echo "$ac_t""no" 1>&6
6379 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6381 set dummy
${ncn_progname}; ac_word
=$2
6382 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6383 echo "configure:6384: checking for $ac_word" >&5
6384 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6385 echo $ac_n "(cached) $ac_c" 1>&6
6387 if test -n "$OBJDUMP_FOR_TARGET"; then
6388 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6390 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6392 for ac_dir
in $ac_dummy; do
6393 test -z "$ac_dir" && ac_dir
=.
6394 if test -f $ac_dir/$ac_word; then
6395 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_progname}"
6402 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6403 if test -n "$OBJDUMP_FOR_TARGET"; then
6404 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6406 echo "$ac_t""no" 1>&6
6410 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6414 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6416 if test $build = $target ; then
6417 OBJDUMP_FOR_TARGET
="$2"
6419 OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6424 OBJDUMP_FOR_TARGET
=$ac_cv_path_OBJDUMP_FOR_TARGET
6430 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6431 if test -n "$with_build_time_tools"; then
6432 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6433 echo "configure:6434: checking for ranlib in $with_build_time_tools" >&5
6434 if test -x $with_build_time_tools/ranlib
; then
6435 RANLIB_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ranlib
6436 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6437 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6439 echo "$ac_t""no" 1>&6
6441 elif test $build != $host && test $have_gcc_for_target = yes; then
6442 RANLIB_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6443 test $RANLIB_FOR_TARGET=ranlib
&& RANLIB_FOR_TARGET
=
6444 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6447 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6448 # Extract the first word of "ranlib", so it can be a program name with args.
6449 set dummy ranlib
; ac_word
=$2
6450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6451 echo "configure:6452: checking for $ac_word" >&5
6452 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6453 echo $ac_n "(cached) $ac_c" 1>&6
6455 case "$RANLIB_FOR_TARGET" in
6457 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6460 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6463 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6464 ac_dummy
="$gcc_cv_tool_dirs"
6465 for ac_dir
in $ac_dummy; do
6466 test -z "$ac_dir" && ac_dir
=.
6467 if test -f $ac_dir/$ac_word; then
6468 ac_cv_path_RANLIB_FOR_TARGET
="$ac_dir/$ac_word"
6476 RANLIB_FOR_TARGET
="$ac_cv_path_RANLIB_FOR_TARGET"
6477 if test -n "$RANLIB_FOR_TARGET"; then
6478 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6480 echo "$ac_t""no" 1>&6
6484 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6485 if test -n "$with_build_time_tools"; then
6486 for ncn_progname
in ranlib
; do
6487 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6488 echo "configure:6489: checking for ${ncn_progname} in $with_build_time_tools" >&5
6489 if test -x $with_build_time_tools/${ncn_progname}; then
6490 ac_cv_prog_RANLIB_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6491 echo "$ac_t""yes" 1>&6
6494 echo "$ac_t""no" 1>&6
6499 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6500 for ncn_progname
in ranlib
; do
6501 if test -n "$ncn_target_tool_prefix"; then
6502 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6503 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6504 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6505 echo "configure:6506: checking for $ac_word" >&5
6506 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6507 echo $ac_n "(cached) $ac_c" 1>&6
6509 if test -n "$RANLIB_FOR_TARGET"; then
6510 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6512 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6514 for ac_dir
in $ac_dummy; do
6515 test -z "$ac_dir" && ac_dir
=.
6516 if test -f $ac_dir/$ac_word; then
6517 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6524 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6525 if test -n "$RANLIB_FOR_TARGET"; then
6526 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6528 echo "$ac_t""no" 1>&6
6532 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6534 set dummy
${ncn_progname}; ac_word
=$2
6535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6536 echo "configure:6537: checking for $ac_word" >&5
6537 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6538 echo $ac_n "(cached) $ac_c" 1>&6
6540 if test -n "$RANLIB_FOR_TARGET"; then
6541 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6543 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6545 for ac_dir
in $ac_dummy; do
6546 test -z "$ac_dir" && ac_dir
=.
6547 if test -f $ac_dir/$ac_word; then
6548 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_progname}"
6555 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6556 if test -n "$RANLIB_FOR_TARGET"; then
6557 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6559 echo "$ac_t""no" 1>&6
6563 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6567 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6569 if test $build = $target ; then
6570 RANLIB_FOR_TARGET
="$2"
6572 RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6577 RANLIB_FOR_TARGET
=$ac_cv_path_RANLIB_FOR_TARGET
6583 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6584 if test -n "$with_build_time_tools"; then
6585 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6586 echo "configure:6587: checking for strip in $with_build_time_tools" >&5
6587 if test -x $with_build_time_tools/strip
; then
6588 STRIP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/strip
6589 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6590 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6592 echo "$ac_t""no" 1>&6
6594 elif test $build != $host && test $have_gcc_for_target = yes; then
6595 STRIP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=strip`
6596 test $STRIP_FOR_TARGET=strip
&& STRIP_FOR_TARGET
=
6597 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6600 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6601 # Extract the first word of "strip", so it can be a program name with args.
6602 set dummy strip
; ac_word
=$2
6603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6604 echo "configure:6605: checking for $ac_word" >&5
6605 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6606 echo $ac_n "(cached) $ac_c" 1>&6
6608 case "$STRIP_FOR_TARGET" in
6610 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6613 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6616 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6617 ac_dummy
="$gcc_cv_tool_dirs"
6618 for ac_dir
in $ac_dummy; do
6619 test -z "$ac_dir" && ac_dir
=.
6620 if test -f $ac_dir/$ac_word; then
6621 ac_cv_path_STRIP_FOR_TARGET
="$ac_dir/$ac_word"
6629 STRIP_FOR_TARGET
="$ac_cv_path_STRIP_FOR_TARGET"
6630 if test -n "$STRIP_FOR_TARGET"; then
6631 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6633 echo "$ac_t""no" 1>&6
6637 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6638 if test -n "$with_build_time_tools"; then
6639 for ncn_progname
in strip
; do
6640 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6641 echo "configure:6642: checking for ${ncn_progname} in $with_build_time_tools" >&5
6642 if test -x $with_build_time_tools/${ncn_progname}; then
6643 ac_cv_prog_STRIP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6644 echo "$ac_t""yes" 1>&6
6647 echo "$ac_t""no" 1>&6
6652 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6653 for ncn_progname
in strip
; do
6654 if test -n "$ncn_target_tool_prefix"; then
6655 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6656 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6658 echo "configure:6659: checking for $ac_word" >&5
6659 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6660 echo $ac_n "(cached) $ac_c" 1>&6
6662 if test -n "$STRIP_FOR_TARGET"; then
6663 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6665 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6667 for ac_dir
in $ac_dummy; do
6668 test -z "$ac_dir" && ac_dir
=.
6669 if test -f $ac_dir/$ac_word; then
6670 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6677 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6678 if test -n "$STRIP_FOR_TARGET"; then
6679 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6681 echo "$ac_t""no" 1>&6
6685 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6687 set dummy
${ncn_progname}; ac_word
=$2
6688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6689 echo "configure:6690: checking for $ac_word" >&5
6690 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6691 echo $ac_n "(cached) $ac_c" 1>&6
6693 if test -n "$STRIP_FOR_TARGET"; then
6694 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6696 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6698 for ac_dir
in $ac_dummy; do
6699 test -z "$ac_dir" && ac_dir
=.
6700 if test -f $ac_dir/$ac_word; then
6701 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_progname}"
6708 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6709 if test -n "$STRIP_FOR_TARGET"; then
6710 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6712 echo "$ac_t""no" 1>&6
6716 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6720 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6722 if test $build = $target ; then
6723 STRIP_FOR_TARGET
="$2"
6725 STRIP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6730 STRIP_FOR_TARGET
=$ac_cv_path_STRIP_FOR_TARGET
6736 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6737 if test -n "$with_build_time_tools"; then
6738 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6739 echo "configure:6740: checking for windres in $with_build_time_tools" >&5
6740 if test -x $with_build_time_tools/windres
; then
6741 WINDRES_FOR_TARGET
=`cd $with_build_time_tools && pwd`/windres
6742 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6743 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6745 echo "$ac_t""no" 1>&6
6747 elif test $build != $host && test $have_gcc_for_target = yes; then
6748 WINDRES_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=windres`
6749 test $WINDRES_FOR_TARGET=windres
&& WINDRES_FOR_TARGET
=
6750 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6753 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6754 # Extract the first word of "windres", so it can be a program name with args.
6755 set dummy windres
; ac_word
=$2
6756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6757 echo "configure:6758: checking for $ac_word" >&5
6758 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6759 echo $ac_n "(cached) $ac_c" 1>&6
6761 case "$WINDRES_FOR_TARGET" in
6763 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6766 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6769 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6770 ac_dummy
="$gcc_cv_tool_dirs"
6771 for ac_dir
in $ac_dummy; do
6772 test -z "$ac_dir" && ac_dir
=.
6773 if test -f $ac_dir/$ac_word; then
6774 ac_cv_path_WINDRES_FOR_TARGET
="$ac_dir/$ac_word"
6782 WINDRES_FOR_TARGET
="$ac_cv_path_WINDRES_FOR_TARGET"
6783 if test -n "$WINDRES_FOR_TARGET"; then
6784 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6786 echo "$ac_t""no" 1>&6
6790 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6791 if test -n "$with_build_time_tools"; then
6792 for ncn_progname
in windres
; do
6793 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6794 echo "configure:6795: checking for ${ncn_progname} in $with_build_time_tools" >&5
6795 if test -x $with_build_time_tools/${ncn_progname}; then
6796 ac_cv_prog_WINDRES_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6797 echo "$ac_t""yes" 1>&6
6800 echo "$ac_t""no" 1>&6
6805 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6806 for ncn_progname
in windres
; do
6807 if test -n "$ncn_target_tool_prefix"; then
6808 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6809 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6811 echo "configure:6812: checking for $ac_word" >&5
6812 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6813 echo $ac_n "(cached) $ac_c" 1>&6
6815 if test -n "$WINDRES_FOR_TARGET"; then
6816 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6818 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6820 for ac_dir
in $ac_dummy; do
6821 test -z "$ac_dir" && ac_dir
=.
6822 if test -f $ac_dir/$ac_word; then
6823 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6830 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6831 if test -n "$WINDRES_FOR_TARGET"; then
6832 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6834 echo "$ac_t""no" 1>&6
6838 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6840 set dummy
${ncn_progname}; ac_word
=$2
6841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6842 echo "configure:6843: checking for $ac_word" >&5
6843 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6844 echo $ac_n "(cached) $ac_c" 1>&6
6846 if test -n "$WINDRES_FOR_TARGET"; then
6847 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6849 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6851 for ac_dir
in $ac_dummy; do
6852 test -z "$ac_dir" && ac_dir
=.
6853 if test -f $ac_dir/$ac_word; then
6854 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_progname}"
6861 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6862 if test -n "$WINDRES_FOR_TARGET"; then
6863 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6865 echo "$ac_t""no" 1>&6
6869 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6873 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6875 if test $build = $target ; then
6876 WINDRES_FOR_TARGET
="$2"
6878 WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6883 WINDRES_FOR_TARGET
=$ac_cv_path_WINDRES_FOR_TARGET
6887 RAW_CXX_FOR_TARGET
="$CXX_FOR_TARGET"
6889 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6890 echo "configure:6891: checking where to find the target ar" >&5
6891 if test "x${build}" != "x${host}" ; then
6892 if expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6893 # We already found the complete path
6894 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6896 # Canadian cross, just use what we found
6897 echo "$ac_t""pre-installed" 1>&6
6901 case " ${configdirs} " in
6906 if test $ok = yes; then
6907 # An in-tree tool is available and we can use it
6908 AR_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ar'
6909 echo "$ac_t""just compiled" 1>&6
6910 elif expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6911 # We already found the complete path
6912 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6913 elif test "x$target" = "x$host"; then
6914 # We can use an host tool
6915 AR_FOR_TARGET
='$(AR)'
6916 echo "$ac_t""host tool" 1>&6
6918 # We need a cross tool
6919 echo "$ac_t""pre-installed" 1>&6
6923 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6924 echo "configure:6925: checking where to find the target as" >&5
6925 if test "x${build}" != "x${host}" ; then
6926 if expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6927 # We already found the complete path
6928 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6930 # Canadian cross, just use what we found
6931 echo "$ac_t""pre-installed" 1>&6
6935 case " ${configdirs} " in
6940 if test $ok = yes; then
6941 # An in-tree tool is available and we can use it
6942 AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gas/as-new'
6943 echo "$ac_t""just compiled" 1>&6
6944 elif expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6945 # We already found the complete path
6946 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6947 elif test "x$target" = "x$host"; then
6948 # We can use an host tool
6949 AS_FOR_TARGET
='$(AS)'
6950 echo "$ac_t""host tool" 1>&6
6952 # We need a cross tool
6953 echo "$ac_t""pre-installed" 1>&6
6957 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6958 echo "configure:6959: checking where to find the target cc" >&5
6959 if test "x${build}" != "x${host}" ; then
6960 if expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6961 # We already found the complete path
6962 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6964 # Canadian cross, just use what we found
6965 echo "$ac_t""pre-installed" 1>&6
6969 case " ${configdirs} " in
6974 if test $ok = yes; then
6975 # An in-tree tool is available and we can use it
6976 CC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6977 echo "$ac_t""just compiled" 1>&6
6978 elif expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6979 # We already found the complete path
6980 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6981 elif test "x$target" = "x$host"; then
6982 # We can use an host tool
6983 CC_FOR_TARGET
='$(CC)'
6984 echo "$ac_t""host tool" 1>&6
6986 # We need a cross tool
6987 echo "$ac_t""pre-installed" 1>&6
6991 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6992 echo "configure:6993: checking where to find the target c++" >&5
6993 if test "x${build}" != "x${host}" ; then
6994 if expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6995 # We already found the complete path
6996 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6998 # Canadian cross, just use what we found
6999 echo "$ac_t""pre-installed" 1>&6
7003 case " ${configdirs} " in
7007 case ,${enable_languages}, in
7011 if test $ok = yes; then
7012 # An in-tree tool is available and we can use it
7013 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'
7014 echo "$ac_t""just compiled" 1>&6
7015 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
7016 # We already found the complete path
7017 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
7018 elif test "x$target" = "x$host"; then
7019 # We can use an host tool
7020 CXX_FOR_TARGET
='$(CXX)'
7021 echo "$ac_t""host tool" 1>&6
7023 # We need a cross tool
7024 echo "$ac_t""pre-installed" 1>&6
7028 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
7029 echo "configure:7030: checking where to find the target c++ for libstdc++" >&5
7030 if test "x${build}" != "x${host}" ; then
7031 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
7032 # We already found the complete path
7033 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
7035 # Canadian cross, just use what we found
7036 echo "$ac_t""pre-installed" 1>&6
7040 case " ${configdirs} " in
7044 case ,${enable_languages}, in
7048 if test $ok = yes; then
7049 # An in-tree tool is available and we can use it
7050 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'
7051 echo "$ac_t""just compiled" 1>&6
7052 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
7053 # We already found the complete path
7054 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
7055 elif test "x$target" = "x$host"; then
7056 # We can use an host tool
7057 RAW_CXX_FOR_TARGET
='$(CXX)'
7058 echo "$ac_t""host tool" 1>&6
7060 # We need a cross tool
7061 echo "$ac_t""pre-installed" 1>&6
7065 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
7066 echo "configure:7067: checking where to find the target dlltool" >&5
7067 if test "x${build}" != "x${host}" ; then
7068 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
7069 # We already found the complete path
7070 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
7072 # Canadian cross, just use what we found
7073 echo "$ac_t""pre-installed" 1>&6
7077 case " ${configdirs} " in
7082 if test $ok = yes; then
7083 # An in-tree tool is available and we can use it
7084 DLLTOOL_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/dlltool'
7085 echo "$ac_t""just compiled" 1>&6
7086 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
7087 # We already found the complete path
7088 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
7089 elif test "x$target" = "x$host"; then
7090 # We can use an host tool
7091 DLLTOOL_FOR_TARGET
='$(DLLTOOL)'
7092 echo "$ac_t""host tool" 1>&6
7094 # We need a cross tool
7095 echo "$ac_t""pre-installed" 1>&6
7099 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
7100 echo "configure:7101: checking where to find the target gcc" >&5
7101 if test "x${build}" != "x${host}" ; then
7102 if expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
7103 # We already found the complete path
7104 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
7106 # Canadian cross, just use what we found
7107 echo "$ac_t""pre-installed" 1>&6
7111 case " ${configdirs} " in
7116 if test $ok = yes; then
7117 # An in-tree tool is available and we can use it
7118 GCC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
7119 echo "$ac_t""just compiled" 1>&6
7120 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
7121 # We already found the complete path
7122 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
7123 elif test "x$target" = "x$host"; then
7124 # We can use an host tool
7125 GCC_FOR_TARGET
='$()'
7126 echo "$ac_t""host tool" 1>&6
7128 # We need a cross tool
7129 echo "$ac_t""pre-installed" 1>&6
7133 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
7134 echo "configure:7135: checking where to find the target gcj" >&5
7135 if test "x${build}" != "x${host}" ; then
7136 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
7137 # We already found the complete path
7138 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
7140 # Canadian cross, just use what we found
7141 echo "$ac_t""pre-installed" 1>&6
7145 case " ${configdirs} " in
7149 case ,${enable_languages}, in
7153 if test $ok = yes; then
7154 # An in-tree tool is available and we can use it
7155 GCJ_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
7156 echo "$ac_t""just compiled" 1>&6
7157 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
7158 # We already found the complete path
7159 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
7160 elif test "x$target" = "x$host"; then
7161 # We can use an host tool
7162 GCJ_FOR_TARGET
='$(GCJ)'
7163 echo "$ac_t""host tool" 1>&6
7165 # We need a cross tool
7166 echo "$ac_t""pre-installed" 1>&6
7170 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
7171 echo "configure:7172: checking where to find the target gfortran" >&5
7172 if test "x${build}" != "x${host}" ; then
7173 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
7174 # We already found the complete path
7175 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7177 # Canadian cross, just use what we found
7178 echo "$ac_t""pre-installed" 1>&6
7182 case " ${configdirs} " in
7186 case ,${enable_languages}, in
7190 if test $ok = yes; then
7191 # An in-tree tool is available and we can use it
7192 GFORTRAN_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
7193 echo "$ac_t""just compiled" 1>&6
7194 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
7195 # We already found the complete path
7196 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7197 elif test "x$target" = "x$host"; then
7198 # We can use an host tool
7199 GFORTRAN_FOR_TARGET
='$(GFORTRAN)'
7200 echo "$ac_t""host tool" 1>&6
7202 # We need a cross tool
7203 echo "$ac_t""pre-installed" 1>&6
7207 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
7208 echo "configure:7209: checking where to find the target ld" >&5
7209 if test "x${build}" != "x${host}" ; then
7210 if expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
7211 # We already found the complete path
7212 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7214 # Canadian cross, just use what we found
7215 echo "$ac_t""pre-installed" 1>&6
7219 case " ${configdirs} " in
7224 if test $ok = yes; then
7225 # An in-tree tool is available and we can use it
7226 LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/ld/ld-new'
7227 echo "$ac_t""just compiled" 1>&6
7228 elif expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
7229 # We already found the complete path
7230 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7231 elif test "x$target" = "x$host"; then
7232 # We can use an host tool
7233 LD_FOR_TARGET
='$(LD)'
7234 echo "$ac_t""host tool" 1>&6
7236 # We need a cross tool
7237 echo "$ac_t""pre-installed" 1>&6
7241 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
7242 echo "configure:7243: checking where to find the target lipo" >&5
7243 if test "x${build}" != "x${host}" ; then
7244 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
7245 # We already found the complete path
7246 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7248 # Canadian cross, just use what we found
7249 echo "$ac_t""pre-installed" 1>&6
7252 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
7253 # We already found the complete path
7254 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7255 elif test "x$target" = "x$host"; then
7256 # We can use an host tool
7257 LIPO_FOR_TARGET
='$(LIPO)'
7258 echo "$ac_t""host tool" 1>&6
7260 # We need a cross tool
7261 echo "$ac_t""pre-installed" 1>&6
7265 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
7266 echo "configure:7267: checking where to find the target nm" >&5
7267 if test "x${build}" != "x${host}" ; then
7268 if expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7269 # We already found the complete path
7270 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7272 # Canadian cross, just use what we found
7273 echo "$ac_t""pre-installed" 1>&6
7277 case " ${configdirs} " in
7282 if test $ok = yes; then
7283 # An in-tree tool is available and we can use it
7284 NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7285 echo "$ac_t""just compiled" 1>&6
7286 elif expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7287 # We already found the complete path
7288 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7289 elif test "x$target" = "x$host"; then
7290 # We can use an host tool
7291 NM_FOR_TARGET
='$(NM)'
7292 echo "$ac_t""host tool" 1>&6
7294 # We need a cross tool
7295 echo "$ac_t""pre-installed" 1>&6
7299 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7300 echo "configure:7301: checking where to find the target objdump" >&5
7301 if test "x${build}" != "x${host}" ; then
7302 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7303 # We already found the complete path
7304 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7306 # Canadian cross, just use what we found
7307 echo "$ac_t""pre-installed" 1>&6
7311 case " ${configdirs} " in
7316 if test $ok = yes; then
7317 # An in-tree tool is available and we can use it
7318 OBJDUMP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/objdump'
7319 echo "$ac_t""just compiled" 1>&6
7320 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7321 # We already found the complete path
7322 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7323 elif test "x$target" = "x$host"; then
7324 # We can use an host tool
7325 OBJDUMP_FOR_TARGET
='$(OBJDUMP)'
7326 echo "$ac_t""host tool" 1>&6
7328 # We need a cross tool
7329 echo "$ac_t""pre-installed" 1>&6
7333 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7334 echo "configure:7335: checking where to find the target ranlib" >&5
7335 if test "x${build}" != "x${host}" ; then
7336 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7337 # We already found the complete path
7338 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7340 # Canadian cross, just use what we found
7341 echo "$ac_t""pre-installed" 1>&6
7345 case " ${configdirs} " in
7350 if test $ok = yes; then
7351 # An in-tree tool is available and we can use it
7352 RANLIB_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7353 echo "$ac_t""just compiled" 1>&6
7354 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7355 # We already found the complete path
7356 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7357 elif test "x$target" = "x$host"; then
7358 # We can use an host tool
7359 RANLIB_FOR_TARGET
='$(RANLIB)'
7360 echo "$ac_t""host tool" 1>&6
7362 # We need a cross tool
7363 echo "$ac_t""pre-installed" 1>&6
7367 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7368 echo "configure:7369: checking where to find the target strip" >&5
7369 if test "x${build}" != "x${host}" ; then
7370 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7371 # We already found the complete path
7372 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7374 # Canadian cross, just use what we found
7375 echo "$ac_t""pre-installed" 1>&6
7379 case " ${configdirs} " in
7384 if test $ok = yes; then
7385 # An in-tree tool is available and we can use it
7386 STRIP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/strip'
7387 echo "$ac_t""just compiled" 1>&6
7388 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7389 # We already found the complete path
7390 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7391 elif test "x$target" = "x$host"; then
7392 # We can use an host tool
7393 STRIP_FOR_TARGET
='$(STRIP)'
7394 echo "$ac_t""host tool" 1>&6
7396 # We need a cross tool
7397 echo "$ac_t""pre-installed" 1>&6
7401 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7402 echo "configure:7403: checking where to find the target windres" >&5
7403 if test "x${build}" != "x${host}" ; then
7404 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7405 # We already found the complete path
7406 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7408 # Canadian cross, just use what we found
7409 echo "$ac_t""pre-installed" 1>&6
7413 case " ${configdirs} " in
7418 if test $ok = yes; then
7419 # An in-tree tool is available and we can use it
7420 WINDRES_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/windres'
7421 echo "$ac_t""just compiled" 1>&6
7422 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7423 # We already found the complete path
7424 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7425 elif test "x$target" = "x$host"; then
7426 # We can use an host tool
7427 WINDRES_FOR_TARGET
='$(WINDRES)'
7428 echo "$ac_t""host tool" 1>&6
7430 # We need a cross tool
7431 echo "$ac_t""pre-installed" 1>&6
7439 # Certain tools may need extra flags.
7440 AR_FOR_TARGET
=${AR_FOR_TARGET}${extra_arflags_for_target}
7441 RANLIB_FOR_TARGET
=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7442 NM_FOR_TARGET
=${NM_FOR_TARGET}${extra_nmflags_for_target}
7444 # When building target libraries, except in a Canadian cross, we use
7445 # the same toolchain as the compiler we just built.
7446 COMPILER_AS_FOR_TARGET
='$(AS_FOR_TARGET)'
7447 COMPILER_LD_FOR_TARGET
='$(LD_FOR_TARGET)'
7448 COMPILER_NM_FOR_TARGET
='$(NM_FOR_TARGET)'
7449 if test $host = $build; then
7450 case " $configdirs " in
7452 COMPILER_AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/as'
7453 COMPILER_LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7454 COMPILER_NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7463 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7464 echo "configure:7465: checking whether to enable maintainer-specific portions of Makefiles" >&5
7465 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7466 if test "${enable_maintainer_mode+set}" = set; then
7467 enableval
="$enable_maintainer_mode"
7468 USE_MAINTAINER_MODE
=$enableval
7470 USE_MAINTAINER_MODE
=no
7473 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7476 if test "$USE_MAINTAINER_MODE" = yes; then
7477 MAINTAINER_MODE_TRUE
=
7478 MAINTAINER_MODE_FALSE
='#'
7480 MAINTAINER_MODE_TRUE
='#'
7481 MAINTAINER_MODE_FALSE
=
7483 MAINT
=$MAINTAINER_MODE_TRUE
7485 # ---------------------
7486 # GCC bootstrap support
7487 # ---------------------
7489 # Stage specific cflags for build.
7494 yes) stage1_cflags
="-g -Wa,-J" ;;
7495 *) stage1_cflags
="-g -J" ;;
7499 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7500 if test "$GCC" = yes; then
7501 saved_CFLAGS
="$CFLAGS"
7503 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
7504 CFLAGS
="$CFLAGS -fkeep-inline-functions"
7505 echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
7506 echo "configure:7507: checking whether -fkeep-inline-functions is supported" >&5
7507 cat > conftest.
$ac_ext <<EOF
7508 #line 7509 "configure"
7509 #include "confdefs.h"
7515 if { (eval echo configure
:7516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7517 echo "$ac_t""yes" 1>&6; stage1_cflags
="$stage1_cflags -fkeep-inline-functions"
7519 echo "configure: failed program was:" >&5
7520 cat conftest.
$ac_ext >&5
7522 echo "$ac_t""no" 1>&6
7526 CFLAGS
="$saved_CFLAGS"
7531 # Enable --enable-checking in stage1 of the compiler.
7532 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
7533 if test "${enable_stage1_checking+set}" = set; then
7534 enableval
="$enable_stage1_checking"
7535 stage1_checking
=--enable-checking=${enable_stage1_checking}
7537 if test "x$enable_checking" = xno
; then
7538 stage1_checking
=--enable-checking
7540 stage1_checking
=--enable-checking${enable_checking+=}$enable_checking
7546 # Enable -Werror in bootstrap stage2 and later.
7547 # Check whether --enable-werror or --disable-werror was given.
7548 if test "${enable_werror+set}" = set; then
7549 enableval
="$enable_werror"
7552 if test -d ${srcdir}/gcc
&& test x
"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental
; then
7559 case ${enable_werror} in
7560 yes) stage2_werror_flag
="--enable-werror-always" ;;
7561 *) stage2_werror_flag
="" ;;
7565 # Flags needed to enable html installing and building
7566 # Check whether --with-datarootdir or --without-datarootdir was given.
7567 if test "${with_datarootdir+set}" = set; then
7568 withval
="$with_datarootdir"
7569 datarootdir
="\${prefix}/${withval}"
7571 datarootdir
="\${prefix}/share"
7575 # Check whether --with-docdir or --without-docdir was given.
7576 if test "${with_docdir+set}" = set; then
7577 withval
="$with_docdir"
7578 docdir
="\${prefix}/${withval}"
7580 docdir
="\${datarootdir}/doc"
7584 # Check whether --with-htmldir or --without-htmldir was given.
7585 if test "${with_htmldir+set}" = set; then
7586 withval
="$with_htmldir"
7587 htmldir
="\${prefix}/${withval}"
7589 htmldir
="\${docdir}"
7598 cat > confcache
<<\EOF
7599 # This file is a shell script that caches the results of configure
7600 # tests run on this system so they can be shared between configure
7601 # scripts and configure runs. It is not useful on other systems.
7602 # If it contains results you don't want to keep, you may remove or edit it.
7604 # By default, configure uses ./config.cache as the cache file,
7605 # creating it if it does not exist already. You can give configure
7606 # the --cache-file=FILE option to use a different cache file; that is
7607 # what configure does when it calls configure scripts in
7608 # subdirectories, so they share the cache.
7609 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7610 # config.status only pays attention to the cache file if you give it the
7611 # --recheck option to rerun configure.
7614 # The following way of writing the cache mishandles newlines in values,
7615 # but we know of no workaround that is simple, portable, and efficient.
7616 # So, don't put newlines in cache variables' values.
7617 # Ultrix sh set writes to stderr and can't be redirected directly,
7618 # and sets the high bit in the cache file unless we assign to the vars.
7620 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7622 # `set' does not quote correctly, so add quotes (double-quote substitution
7623 # turns \\\\ into \\, and sed turns \\ into \).
7625 -e "s/'/'\\\\''/g" \
7626 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7629 # `set' quotes correctly as required by POSIX, so do not add quotes.
7630 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7633 if cmp -s $cache_file confcache
; then
7636 if test -w $cache_file; then
7637 echo "updating cache $cache_file"
7638 cat confcache
> $cache_file
7640 echo "not updating unwritable cache $cache_file"
7645 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7647 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7648 # Let make expand exec_prefix.
7649 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7651 # Any assignment to VPATH causes Sun make to only execute
7652 # the first set of double-colon rules, so remove it if not needed.
7653 # If there is a colon in the path, we need to keep it.
7654 if test "x$srcdir" = x.
; then
7655 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7658 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7660 # Transform confdefs.h into DEFS.
7661 # Protect against shell expansion while executing Makefile rules.
7662 # Protect against Makefile macro expansion.
7663 cat > conftest.defs
<<\EOF
7664 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7665 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7670 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
7674 # Without the "./", some shells look in PATH for config.status.
7675 : ${CONFIG_STATUS=./config.status}
7677 echo creating $CONFIG_STATUS
7678 rm -f $CONFIG_STATUS
7679 cat > $CONFIG_STATUS <<EOF
7681 # Generated automatically by configure.
7682 # Run this file to recreate the current configuration.
7683 # This directory was configured as follows,
7684 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
7686 # $0 $ac_configure_args
7688 # Compiler output produced by configure, useful for debugging
7689 # configure, is in ./config.log if it exists.
7691 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7694 case "\$ac_option" in
7695 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7696 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7697 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7698 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7699 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7701 -help | --help | --hel | --he | --h)
7702 echo "\$ac_cs_usage"; exit 0 ;;
7703 *) echo "\$ac_cs_usage"; exit 1 ;;
7707 ac_given_srcdir=$srcdir
7708 ac_given_INSTALL="$INSTALL"
7710 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7712 cat >> $CONFIG_STATUS <<EOF
7714 # Protect against being on the right side of a sed subst in config.status.
7715 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7716 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7720 s%@CFLAGS@%$CFLAGS%g
7721 s%@CPPFLAGS@%$CPPFLAGS%g
7722 s%@CXXFLAGS@%$CXXFLAGS%g
7723 s%@FFLAGS@%$FFLAGS%g
7725 s%@LDFLAGS@%$LDFLAGS%g
7727 s%@exec_prefix@%$exec_prefix%g
7728 s%@prefix@%$prefix%g
7729 s%@program_transform_name@%$program_transform_name%g
7730 s%@bindir@%$bindir%g
7731 s%@sbindir@%$sbindir%g
7732 s%@libexecdir@%$libexecdir%g
7733 s%@datadir@%$datadir%g
7734 s%@sysconfdir@%$sysconfdir%g
7735 s%@sharedstatedir@%$sharedstatedir%g
7736 s%@localstatedir@%$localstatedir%g
7737 s%@libdir@%$libdir%g
7738 s%@includedir@%$includedir%g
7739 s%@oldincludedir@%$oldincludedir%g
7740 s%@infodir@%$infodir%g
7741 s%@mandir@%$mandir%g
7743 s%@host_alias@%$host_alias%g
7744 s%@host_cpu@%$host_cpu%g
7745 s%@host_vendor@%$host_vendor%g
7746 s%@host_os@%$host_os%g
7747 s%@target@%$target%g
7748 s%@target_alias@%$target_alias%g
7749 s%@target_cpu@%$target_cpu%g
7750 s%@target_vendor@%$target_vendor%g
7751 s%@target_os@%$target_os%g
7753 s%@build_alias@%$build_alias%g
7754 s%@build_cpu@%$build_cpu%g
7755 s%@build_vendor@%$build_vendor%g
7756 s%@build_os@%$build_os%g
7757 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7758 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7759 s%@INSTALL_DATA@%$INSTALL_DATA%g
7762 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7763 s%@build_libsubdir@%$build_libsubdir%g
7764 s%@build_subdir@%$build_subdir%g
7765 s%@host_subdir@%$host_subdir%g
7766 s%@target_subdir@%$target_subdir%g
7768 s%@GNATBIND@%$GNATBIND%g
7769 s%@GNATMAKE@%$GNATMAKE%g
7770 s%@do_compare@%$do_compare%g
7771 s%@gmplibs@%$gmplibs%g
7772 s%@gmpinc@%$gmpinc%g
7773 s%@stage1_languages@%$stage1_languages%g
7774 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7775 /@serialization_dependencies@/r $serialization_dependencies
7776 s%@serialization_dependencies@%%g
7777 /@host_makefile_frag@/r $host_makefile_frag
7778 s%@host_makefile_frag@%%g
7779 /@target_makefile_frag@/r $target_makefile_frag
7780 s%@target_makefile_frag@%%g
7781 /@alphaieee_frag@/r $alphaieee_frag
7782 s%@alphaieee_frag@%%g
7783 /@ospace_frag@/r $ospace_frag
7785 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7786 s%@tooldir@%$tooldir%g
7787 s%@build_tooldir@%$build_tooldir%g
7788 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7789 s%@GDB_TK@%$GDB_TK%g
7790 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7791 s%@build_configargs@%$build_configargs%g
7792 s%@build_configdirs@%$build_configdirs%g
7793 s%@host_configargs@%$host_configargs%g
7794 s%@configdirs@%$configdirs%g
7795 s%@target_configargs@%$target_configargs%g
7796 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7797 s%@config_shell@%$config_shell%g
7803 s%@MAKEINFO@%$MAKEINFO%g
7804 s%@EXPECT@%$EXPECT%g
7805 s%@RUNTEST@%$RUNTEST%g
7808 s%@DLLTOOL@%$DLLTOOL%g
7812 s%@RANLIB@%$RANLIB%g
7814 s%@WINDRES@%$WINDRES%g
7815 s%@OBJCOPY@%$OBJCOPY%g
7816 s%@OBJDUMP@%$OBJDUMP%g
7818 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7819 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7820 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7821 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7822 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7823 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7824 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7825 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7826 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7827 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7828 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7829 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7830 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7831 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7832 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7833 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7834 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7835 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7836 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7837 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7838 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7839 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7840 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7842 s%@stage1_cflags@%$stage1_cflags%g
7843 s%@stage1_checking@%$stage1_checking%g
7844 s%@stage2_werror_flag@%$stage2_werror_flag%g
7845 s%@datarootdir@%$datarootdir%g
7846 s%@docdir@%$docdir%g
7847 s%@htmldir@%$htmldir%g
7852 cat >> $CONFIG_STATUS <<\EOF
7854 # Split the substitutions into bite-sized pieces for seds with
7855 # small command number limits, like on Digital OSF/1 and HP-UX.
7856 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7857 ac_file=1 # Number of current file.
7858 ac_beg=1 # First line for current file.
7859 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7862 while $ac_more_lines; do
7863 if test $ac_beg -gt 1; then
7864 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7866 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7868 if test ! -s conftest.s$ac_file; then
7870 rm -f conftest.s$ac_file
7872 if test -z "$ac_sed_cmds"; then
7873 ac_sed_cmds="sed -f conftest.s$ac_file"
7875 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7877 ac_file=`expr $ac_file + 1`
7879 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7882 if test -z "$ac_sed_cmds"; then
7887 cat >> $CONFIG_STATUS <<EOF
7889 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7891 cat >> $CONFIG_STATUS <<\EOF
7892 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7893 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7895 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
7896 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
7897 *) ac_file_in="${ac_file}.in" ;;
7900 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7902 # Remove last slash and all that follows it. Not all systems have dirname.
7903 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7904 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7905 # The file is in a subdirectory.
7906 test ! -d "$ac_dir" && mkdir "$ac_dir"
7907 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
7908 # A "../" for each directory in $ac_dir_suffix.
7909 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
7911 ac_dir_suffix= ac_dots=
7914 case "$ac_given_srcdir" in
7916 if test -z "$ac_dots"; then top_srcdir=.
7917 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
7918 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7920 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7921 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7924 case "$ac_given_INSTALL" in
7925 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7926 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7929 echo creating "$ac_file"
7931 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
7933 *Makefile*) ac_comsub="1i\\
7934 # $configure_input" ;;
7938 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7940 s%@configure_input@%$configure_input%g
7941 s%@srcdir@%$srcdir%g
7942 s%@top_srcdir@%$top_srcdir%g
7943 s%@INSTALL@%$INSTALL%g
7944 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7949 cat >> $CONFIG_STATUS <<EOF
7952 cat >> $CONFIG_STATUS <<\EOF
7956 chmod +x $CONFIG_STATUS
7957 rm -fr confdefs* $ac_clean_files
7958 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1