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-objc-gc enable the use of Boehm's garbage collector with
43 the GNU Objective-C runtime."
45 --with-build-sysroot=sysroot
46 use sysroot as the system root during the build"
48 --enable-bootstrap Enable bootstrapping [yes if native build]"
50 --enable-serial-[{host,target,build}-]configure
51 Force sequential configuration of
52 sub-packages for the host, target or build
53 machine, or all sub-packages"
55 --with-build-time-tools=path
56 use given path to find target tools during the build"
58 --enable-maintainer-mode enable make rules and dependencies not useful
59 (and sometimes confusing) to the casual installer"
61 --enable-stage1-checking[=all] choose additional checking for stage1
64 --enable-werror enable -Werror in bootstrap stage2 and later"
66 --with-datarootdir Use datarootdir as the data root directory."
68 --with-docdir Install documentation in this directory."
70 --with-htmldir Install html in this directory."
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
76 cache_file
=.
/config.cache
85 program_transform_name
=s
,x
,x
,
93 bindir
='${exec_prefix}/bin'
94 sbindir
='${exec_prefix}/sbin'
95 libexecdir
='${exec_prefix}/libexec'
96 datadir
='${prefix}/share'
97 sysconfdir
='${prefix}/etc'
98 sharedstatedir
='${prefix}/com'
99 localstatedir
='${prefix}/var'
100 libdir
='${exec_prefix}/lib'
101 includedir
='${prefix}/include'
102 oldincludedir
='/usr/include'
103 infodir
='${prefix}/info'
104 mandir
='${prefix}/man'
106 # Initialize some other variables.
109 SHELL
=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
125 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 # Accept the important Cygnus configure options, so we can diagnose typos.
133 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
135 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
136 bindir
="$ac_optarg" ;;
138 -build |
--build |
--buil |
--bui |
--bu)
140 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
141 build
="$ac_optarg" ;;
143 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
144 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
145 ac_prev
=cache_file
;;
146 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
147 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
148 cache_file
="$ac_optarg" ;;
150 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
152 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
154 datadir
="$ac_optarg" ;;
156 -disable-* |
--disable-*)
157 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* |
--enable-*)
166 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
179 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
180 |
--exec |
--exe |
--ex)
181 ac_prev
=exec_prefix
;;
182 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
183 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
184 |
--exec=* |
--exe=* |
--ex=*)
185 exec_prefix
="$ac_optarg" ;;
187 -gas |
--gas |
--ga |
--g)
188 # Obsolete; use --with-gas.
191 -help |
--help |
--hel |
--he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
246 -host |
--host |
--hos |
--ho)
248 -host=* |
--host=* |
--hos=* |
--ho=*)
251 -includedir |
--includedir |
--includedi |
--included |
--include \
252 |
--includ |
--inclu |
--incl |
--inc)
253 ac_prev
=includedir
;;
254 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
255 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
256 includedir
="$ac_optarg" ;;
258 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
260 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
261 infodir
="$ac_optarg" ;;
263 -libdir |
--libdir |
--libdi |
--libd)
265 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
266 libdir
="$ac_optarg" ;;
268 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
269 |
--libexe |
--libex |
--libe)
270 ac_prev
=libexecdir
;;
271 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
272 |
--libexe=* |
--libex=* |
--libe=*)
273 libexecdir
="$ac_optarg" ;;
275 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
276 |
--localstate |
--localstat |
--localsta |
--localst \
277 |
--locals |
--local |
--loca |
--loc |
--lo)
278 ac_prev
=localstatedir
;;
279 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
280 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
281 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
282 localstatedir
="$ac_optarg" ;;
284 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
286 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
287 mandir
="$ac_optarg" ;;
290 # Obsolete; use --without-fp.
293 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
297 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
298 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
301 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
302 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
303 |
--oldin |
--oldi |
--old |
--ol |
--o)
304 ac_prev
=oldincludedir
;;
305 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
306 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
307 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
308 oldincludedir
="$ac_optarg" ;;
310 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
312 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
313 prefix
="$ac_optarg" ;;
315 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
316 |
--program-pre |
--program-pr |
--program-p)
317 ac_prev
=program_prefix
;;
318 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
319 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
320 program_prefix
="$ac_optarg" ;;
322 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
323 |
--program-suf |
--program-su |
--program-s)
324 ac_prev
=program_suffix
;;
325 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
326 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
327 program_suffix
="$ac_optarg" ;;
329 -program-transform-name |
--program-transform-name \
330 |
--program-transform-nam |
--program-transform-na \
331 |
--program-transform-n |
--program-transform- \
332 |
--program-transform |
--program-transfor \
333 |
--program-transfo |
--program-transf \
334 |
--program-trans |
--program-tran \
335 |
--progr-tra |
--program-tr |
--program-t)
336 ac_prev
=program_transform_name
;;
337 -program-transform-name=* |
--program-transform-name=* \
338 |
--program-transform-nam=* |
--program-transform-na=* \
339 |
--program-transform-n=* |
--program-transform-=* \
340 |
--program-transform=* |
--program-transfor=* \
341 |
--program-transfo=* |
--program-transf=* \
342 |
--program-trans=* |
--program-tran=* \
343 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
344 program_transform_name
="$ac_optarg" ;;
346 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
347 |
-silent |
--silent |
--silen |
--sile |
--sil)
350 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
352 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
354 sbindir
="$ac_optarg" ;;
356 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
357 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
358 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
360 ac_prev
=sharedstatedir
;;
361 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
362 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
363 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
365 sharedstatedir
="$ac_optarg" ;;
367 -site |
--site |
--sit)
369 -site=* |
--site=* |
--sit=*)
372 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
374 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
375 srcdir
="$ac_optarg" ;;
377 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
378 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
379 ac_prev
=sysconfdir
;;
380 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
381 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
382 sysconfdir
="$ac_optarg" ;;
384 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
386 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
387 target
="$ac_optarg" ;;
389 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
392 -version |
--version |
--versio |
--versi |
--vers)
393 echo "configure generated by autoconf version 2.13"
397 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package
=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* |
--without-*)
410 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package
=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
419 # Obsolete; use --with-x.
422 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
423 |
--x-incl |
--x-inc |
--x-in |
--x-i)
424 ac_prev
=x_includes
;;
425 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
426 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
427 x_includes
="$ac_optarg" ;;
429 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
430 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
431 ac_prev
=x_libraries
;;
432 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
433 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
434 x_libraries
="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE
; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c) ;;
486 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
487 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
488 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest
* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file
=move-if-change
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted
=yes
516 # Try the directory containing this script, then its parent.
518 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
521 if test ! -r $srcdir/$ac_unique_file; then
525 ac_srcdir_defaulted
=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE
; then
539 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
541 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file
in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
555 echo "creating cache $cache_file"
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp
='$CPP $CPPFLAGS'
562 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling
=$ac_cv_prog_cc_cross
568 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
577 ac_n
= ac_c
='\c' ac_t
=
583 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
584 if test -f $ac_dir/install-sh
; then
586 ac_install_sh
="$ac_aux_dir/install-sh -c"
588 elif test -f $ac_dir/install.sh
; then
590 ac_install_sh
="$ac_aux_dir/install.sh -c"
594 if test -z "$ac_aux_dir"; then
595 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
597 ac_config_guess
=$ac_aux_dir/config.guess
598 ac_config_sub
=$ac_aux_dir/config.sub
599 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
602 # Do some error checking and defaulting for the host and target type.
604 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
607 # 1. You are not allowed to specify --host, --target, and nonopt at the
609 # 2. Host defaults to nonopt.
610 # 3. If nonopt is not specified, then host defaults to the current host,
611 # as determined by config.guess.
612 # 4. Target and build default to nonopt.
613 # 5. If nonopt is not specified, then target and build default to host.
615 # The aliases save the names the user supplied, while $host etc.
616 # will get canonicalized.
617 case $host---$target---$nonopt in
618 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
619 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
623 # Make sure we can run config.sub.
624 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
625 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
628 echo $ac_n "checking host system type""... $ac_c" 1>&6
629 echo "configure:630: checking host system type" >&5
632 case "$host_alias" in
636 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
637 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
639 *) host_alias
=$nonopt ;;
643 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
644 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
645 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
646 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
647 echo "$ac_t""$host" 1>&6
649 echo $ac_n "checking target system type""... $ac_c" 1>&6
650 echo "configure:651: checking target system type" >&5
653 case "$target_alias" in
656 NONE
) target_alias
=$host_alias ;;
657 *) target_alias
=$nonopt ;;
661 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
662 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
663 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
664 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
665 echo "$ac_t""$target" 1>&6
667 echo $ac_n "checking build system type""... $ac_c" 1>&6
668 echo "configure:669: checking build system type" >&5
671 case "$build_alias" in
674 NONE
) build_alias
=$host_alias ;;
675 *) build_alias
=$nonopt ;;
679 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
680 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$build" 1>&6
685 test "$host_alias" != "$target_alias" &&
686 test "$program_prefix$program_suffix$program_transform_name" = \
688 program_prefix
=${target_alias}-
690 if test "$program_transform_name" = s
,x
,x
,; then
691 program_transform_name
=
693 # Double any \ or $. echo might interpret backslashes.
694 cat <<\EOF_SED
> conftestsed
695 s
,\\,\\\\,g
; s
,\$
,$$
,g
697 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
700 test "$program_prefix" != NONE
&&
701 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
702 # Use a double $ so make ignores it.
703 test "$program_suffix" != NONE
&&
704 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
706 # sed with no file args requires a program.
707 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
710 # Get 'install' or 'install-sh' and its variants.
711 # Find a good install program. We prefer a C program (faster),
712 # so one script is as good as another. But avoid the broken or
713 # incompatible versions:
714 # SysV /etc/install, /usr/sbin/install
715 # SunOS /usr/etc/install
718 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
719 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
720 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
721 # ./install, which can be erroneously created by make from ./install.sh.
722 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
723 echo "configure:724: checking for a BSD compatible install" >&5
724 if test -z "$INSTALL"; then
725 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
729 for ac_dir
in $PATH; do
730 # Account for people who put trailing slashes in PATH elements.
732 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
734 # OSF1 and SCO ODT 3.0 have their own names for install.
735 # Don't use installbsd from OSF since it installs stuff as root
737 for ac_prog
in ginstall scoinst
install; do
738 if test -f $ac_dir/$ac_prog; then
739 if test $ac_prog = install &&
740 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
741 # AIX install. It has an incompatible calling convention.
744 ac_cv_path_install
="$ac_dir/$ac_prog -c"
755 if test "${ac_cv_path_install+set}" = set; then
756 INSTALL
="$ac_cv_path_install"
758 # As a last resort, use the slow shell script. We don't cache a
759 # path for INSTALL within a source directory, because that will
760 # break other packages using the cache if that directory is
761 # removed, or if the path is relative.
762 INSTALL
="$ac_install_sh"
765 echo "$ac_t""$INSTALL" 1>&6
767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
768 # It thinks the first close brace ends the variable substitution.
769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
773 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
775 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
776 echo "configure:777: checking whether ln works" >&5
777 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
782 if ln conftestdata_f conftestdata_t
2>/dev
/null
788 rm -f conftestdata_f conftestdata_t
791 if test $acx_cv_prog_LN = no
; then
793 echo "$ac_t""no, using $LN" 1>&6
796 echo "$ac_t""yes" 1>&6
799 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
800 echo "configure:801: checking whether ln -s works" >&5
801 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
805 if ln -s X conftestdata
2>/dev
/null
808 ac_cv_prog_LN_S
="ln -s"
813 LN_S
="$ac_cv_prog_LN_S"
814 if test "$ac_cv_prog_LN_S" = "ln -s"; then
815 echo "$ac_t""yes" 1>&6
817 echo "$ac_t""no" 1>&6
821 ### we might need to use some other shell than /bin/sh for running subshells
822 ### If we are on Windows, search for the shell. This will permit people
823 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
824 ### without also having to set CONFIG_SHELL. This code will work when
825 ### using bash, which sets OSTYPE.
828 if test x
${CONFIG_SHELL} = x
; then
829 if test ! -f /bin
/sh
; then
830 if test x
${SHELL} != x
&& test -f ${SHELL} ; then
831 CONFIG_SHELL
=${SHELL}
834 for prog
in sh sh.exe bash bash.exe
; do
835 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
837 test -z "$dir" && dir
=.
838 if test -f $dir/$prog; then
839 CONFIG_SHELL
=$dir/$prog
845 test -n "${CONFIG_SHELL}" && break
853 config_shell
=${CONFIG_SHELL-/bin/sh}
856 # if PWD already has a value, it is probably wrong.
857 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
859 # Export original configure arguments for use by sub-configures. These
860 # will be expanded by make, so quote '$'.
862 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
865 TOPLEVEL_CONFIGURE_ARGUMENTS
=`cat conftestsed.out`
866 rm -f conftestsed.out
869 moveifchange
=${srcdir}/move-if-change
871 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
873 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
875 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
876 INSTALL
="${srcpwd}/install-sh -c"
879 # Set srcdir to "." if that's what it is.
880 # This is important for multilib support.
882 if test "${pwd}" = "${srcpwd}" ; then
890 ### To add a new directory to the tree, first choose whether it is a target
891 ### or a host dependent tool. Then put it into the appropriate list
892 ### (library or tools, host or target), doing a dependency sort.
894 # Subdirs will be configured in the order listed in build_configdirs,
895 # configdirs, or target_configdirs; see the serialization section below.
897 # Dependency sorting is only needed when *configuration* must be done in
898 # a particular order. In all cases a dependency should be specified in
899 # the Makefile, whether or not it's implicitly specified here.
901 # Double entries in build_configdirs, configdirs, or target_configdirs may
902 # cause circular dependencies and break everything horribly.
904 # these library is used by various programs built for the build
907 build_libs
="build-libiberty"
909 # these tools are built for the build environment
910 build_tools
="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
912 # these libraries are used by various programs built for the host environment
914 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
916 # these tools are built for the host environment
917 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
918 # know that we are building the simulator.
919 # binutils, gas and ld appear in that order because it makes sense to run
920 # "make check" in that particular order.
921 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"
923 # libgcj represents the runtime libraries only used by gcj.
924 libgcj
="target-libffi \
929 # these libraries are built for the target environment, and are built after
930 # the host libraries and the host tools (which may be a cross compiler)
932 target_libraries
="target-libiberty \
935 target-libstdc++-v3 \
945 # these tools are built using the target libraries, and are intended to
946 # run only in the target environment
948 # note: any program that *uses* libraries that are in the "target_libraries"
949 # list belongs in this list. those programs are also very likely
950 # candidates for the "native_only" list which follows
952 target_tools
="target-examples target-groff target-gperf target-rda"
954 ################################################################################
956 ## All tools belong in one of the four categories, and are assigned above
957 ## We assign ${configdirs} this way to remove all embedded newlines. This
958 ## is important because configure will choke if they ever get through.
959 ## ${configdirs} is directories we build using the host tools.
960 ## ${target_configdirs} is directories we build using the target tools.
961 configdirs
=`echo ${host_libs} ${host_tools}`
962 target_configdirs
=`echo ${target_libraries} ${target_tools}`
963 build_configdirs
=`echo ${build_libs} ${build_tools}`
965 ################################################################################
967 srcname
="gnu development package"
969 # This gets set non-empty for some net releases of packages.
972 # Define is_cross_compiler to save on calls to 'test'.
974 if test x
"${host}" = x
"${target}" ; then
977 is_cross_compiler
=yes
980 # Find the build and target subdir names.
981 case ${build_alias} in
982 "") build_noncanonical
=${build} ;;
983 *) build_noncanonical
=${build_alias} ;;
986 case ${host_alias} in
987 "") host_noncanonical
=${build_noncanonical} ;;
988 *) host_noncanonical
=${host_alias} ;;
991 case ${target_alias} in
992 "") target_noncanonical
=${host_noncanonical} ;;
993 *) target_noncanonical
=${target_alias} ;;
997 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
998 # have matching libraries, they should use host libraries: Makefile.tpl
999 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1000 # However, they still use the build modules, because the corresponding
1001 # host modules (e.g. bison) are only built for the host when bootstrap
1003 # - build_subdir is where we find build modules, and never changes.
1004 # - build_libsubdir is where we find build libraries, and can be overridden.
1006 # Prefix 'build-' so this never conflicts with target_subdir.
1007 build_subdir
="build-${build_noncanonical}"
1008 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1009 if test "${with_build_libsubdir+set}" = set; then
1010 withval
="$with_build_libsubdir"
1011 build_libsubdir
="$withval"
1013 build_libsubdir
="$build_subdir"
1016 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1017 if ( test $srcdir = .
&& test -d gcc
) \
1018 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
1019 host_subdir
="host-${host_noncanonical}"
1024 target_subdir
=${target_noncanonical}
1027 # Skipdirs are removed silently.
1029 # Noconfigdirs are removed loudly.
1033 # Make sure we don't let GNU ld be added if we didn't want it.
1034 if test x
$with_gnu_ld = xno
; then
1036 noconfigdirs
="$noconfigdirs ld"
1040 # Make sure we don't let GNU as be added if we didn't want it.
1041 if test x
$with_gnu_as = xno
; then
1043 noconfigdirs
="$noconfigdirs gas"
1046 # some tools are so dependent upon X11 that if we're not building with X,
1047 # it's not even worth trying to configure, much less build, that tool.
1050 yes |
"") ;; # the default value for this tree is that X11 is available
1052 skipdirs
="${skipdirs} tk itcl libgui"
1053 # We won't be able to build gdbtk without X.
1056 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1059 # Some tools are only suitable for building in a "native" situation.
1060 # Remove these if host!=target.
1061 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"
1063 # Similarly, some are only suitable for cross toolchains.
1064 # Remove these if host=target.
1065 cross_only
="target-libgloss target-newlib target-opcodes"
1067 case $is_cross_compiler in
1068 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1069 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1072 # If both --with-headers and --with-libs are specified, default to
1074 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
1075 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
1076 if test x
"${with_newlib}" = x
; then
1081 # Recognize --with-newlib/--without-newlib.
1082 case ${with_newlib} in
1083 no
) skipdirs
="${skipdirs} target-newlib" ;;
1084 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1087 # Configure extra directories which are host specific
1091 configdirs
="$configdirs libtermcap" ;;
1094 # A target can indicate whether a language isn't supported for some reason.
1095 # Only spaces may be used in this macro; not newlines or tabs.
1096 unsupported_languages
=
1098 # Remove more programs from consideration, based on the host or
1099 # target this usually means that a port of the program doesn't
1104 noconfigdirs
="$noconfigdirs byacc"
1106 i
[3456789]86-*-vsta)
1107 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1109 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1110 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1112 i
[3456789]86-*-mingw32*)
1113 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1114 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1116 i
[3456789]86-*-beos*)
1117 noconfigdirs
="$noconfigdirs tk itcl libgui gdb"
1120 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1123 noconfigdirs
="$noconfigdirs rcs"
1126 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1129 noconfigdirs
="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1134 # Check whether --enable-libada or --disable-libada was given.
1135 if test "${enable_libada+set}" = set; then
1136 enableval
="$enable_libada"
1137 ENABLE_LIBADA
=$enableval
1142 if test "${ENABLE_LIBADA}" != "yes" ; then
1143 noconfigdirs
="$noconfigdirs gnattools"
1146 # Check whether --enable-libssp or --disable-libssp was given.
1147 if test "${enable_libssp+set}" = set; then
1148 enableval
="$enable_libssp"
1149 ENABLE_LIBSSP
=$enableval
1155 # Save it here so that, even in case of --enable-libgcj, if the Java
1156 # front-end isn't enabled, we still get libgcj disabled.
1157 libgcj_saved
=$libgcj
1158 case $enable_libgcj in
1160 # If we reset it here, it won't get added to noconfigdirs in the
1161 # target-specific build rules, so it will be forcibly enabled
1162 # (unless the Java language itself isn't enabled).
1166 # Make sure we get it printed in the list of not supported target libs.
1167 noconfigdirs
="$noconfigdirs ${libgcj}"
1172 # Disable libmudflap on some systems.
1173 if test x
$enable_libmudflap = x
; then
1175 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1176 # Enable libmudflap by default in GNU and friends.
1179 # Enable libmudflap by default in FreeBSD.
1182 # Disable it by default everywhere else.
1183 noconfigdirs
="$noconfigdirs target-libmudflap"
1188 # Disable libgomp on non POSIX hosted systems.
1189 if test x
$enable_libgomp = x
; then
1190 # Enable libgomp by default on hosted POSIX systems.
1192 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1194 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd*)
1196 *-*-solaris2* |
*-*-sysv4* |
*-*-irix6* |
*-*-osf* |
*-*-hpux11*)
1198 *-*-darwin* |
*-*-aix*)
1201 noconfigdirs
="$noconfigdirs target-libgomp"
1209 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1211 # APPLE LOCAL begin ARM darwin target
1213 noconfigdirs
="$noconfigdirs target-libgomp target-libobjc"
1214 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libssp"
1216 noconfigdirs
="$noconfigdirs target-boehm-gc target-libffi"
1217 noconfigdirs
="$noconfigdirs target-libjava"
1218 noconfigdirs
="$noconfigdirs target-libmudflap target-zlib"
1221 # APPLE LOCAL end ARM darwin target
1222 powerpc-
*-darwin* | i
[3456789]86-*-darwin*)
1223 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1224 noconfigdirs
="$noconfigdirs sim target-rda"
1226 noconfigdirs
="$noconfigdirs target-boehm-gc target-libffi"
1227 noconfigdirs
="$noconfigdirs target-libjava"
1228 noconfigdirs
="$noconfigdirs target-libmudflap target-libobjc"
1229 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-zlib"
1233 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
1234 noconfigdirs
="$noconfigdirs sim target-rda"
1235 noconfigdirs
="$noconfigdirs ${libgcj}"
1237 noconfigdirs
="$noconfigdirs target-boehm-gc target-libffi"
1238 noconfigdirs
="$noconfigdirs target-libjava"
1239 noconfigdirs
="$noconfigdirs target-libmudflap target-libobjc"
1240 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-zlib"
1243 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1244 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1247 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1248 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1249 && test -f /usr
/local
/include
/gmp.h
; then
1253 # Skip some stuff that's unsupported on some FreeBSD configurations.
1258 noconfigdirs
="$noconfigdirs ${libgcj}"
1263 # Remove unsupported stuff on all kaOS configurations.
1264 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1265 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1266 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1267 noconfigdirs
="$noconfigdirs target-libgloss"
1270 # Skip some stuff on all NetBSD configurations.
1271 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1273 # Skip some stuff that's unsupported on some NetBSD configurations.
1275 i
*86-*-netbsdelf*) ;;
1276 arm
*-*-netbsdelf*) ;;
1278 noconfigdirs
="$noconfigdirs ${libgcj}"
1283 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1286 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1288 # The tpf target doesn't support gdb yet.
1290 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1293 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1296 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1299 # ld works, but does not support shared libraries.
1300 # newlib is not 64 bit ready. I'm not sure about fileutils.
1301 # gas doesn't generate exception information.
1302 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1305 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1308 # newlib is not 64 bit ready
1309 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1312 # newlib is not 64 bit ready
1313 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1316 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1319 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1321 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1322 noconfigdirs
="$noconfigdirs ${libgcj}"
1323 noconfigdirs
="$noconfigdirs target-examples"
1324 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1325 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
1326 noconfigdirs
="$noconfigdirs expect dejagnu"
1327 # the C++ libraries don't build on top of CE's C libraries
1328 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1329 noconfigdirs
="$noconfigdirs target-newlib"
1331 *-*-cygwin*) ;; # keep gdb and readline
1332 *) noconfigdirs
="$noconfigdirs gdb readline"
1337 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1341 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1342 noconfigdirs
="$noconfigdirs ${libgcj}"
1344 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
1345 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1347 arm
*-*-linux-gnueabi)
1348 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1349 noconfigdirs
="$noconfigdirs target-libjava target-libobjc"
1352 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1355 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1358 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1361 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1364 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1367 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1370 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1373 noconfigdirs
="$noconfigdirs gdb"
1374 if test x
${is_cross_compiler} != xno
; then
1375 target_configdirs
="${target_configdirs} target-bsp target-cygmon"
1378 c4x-
*-* | tic4x-
*-*)
1379 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1381 c54x
*-*-* | tic54x-
*-*)
1382 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1384 cris-
*-* | crisv32-
*-*)
1385 unsupported_languages
="$unsupported_languages java"
1388 unsupported_languages
="$unsupported_languages fortran"
1389 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
1391 unsupported_languages
="$unsupported_languages fortran"
1392 noconfigdirs
="$noconfigdirs target-boehm-gc";;
1394 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
1396 unsupported_languages
="$unsupported_languages fortran"
1397 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1401 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1404 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1407 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1410 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1413 noconfigdirs
="$noconfigdirs ${libgcj}"
1416 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1419 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1421 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
1423 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1424 # In this case, it's because the hppa64-linux target is for
1425 # the kernel only at this point and has no libc, and thus no
1426 # headers, crt*.o, etc., all of which are needed by these.
1427 noconfigdirs
="$noconfigdirs target-zlib"
1429 parisc
*-*-linux* | hppa
*-*-linux*)
1433 hppa
*-*-openbsd* | \
1435 noconfigdirs
="$noconfigdirs ${libgcj}"
1438 noconfigdirs
="$noconfigdirs ld shellutils"
1441 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1442 # build on HP-UX 10.20.
1443 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1446 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1449 # No gdb support yet.
1450 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
1453 # No gdb or ld support yet.
1454 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1458 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1459 noconfigdirs
="$noconfigdirs ${libgcj}"
1461 i
[3456789]86-*-linux*)
1462 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1463 # not build java stuff by default.
1466 noconfigdirs
="$noconfigdirs ${libgcj}";;
1469 # This section makes it possible to build newlib natively on linux.
1470 # If we are using a cross compiler then don't configure newlib.
1471 if test x
${is_cross_compiler} != xno
; then
1472 noconfigdirs
="$noconfigdirs target-newlib"
1474 noconfigdirs
="$noconfigdirs target-libgloss"
1475 # If we are not using a cross compiler, do configure newlib.
1476 # Note however, that newlib will only be configured in this situation
1477 # if the --with-newlib option has been given, because otherwise
1478 # 'target-newlib' will appear in skipdirs.
1480 i
[3456789]86-*-mingw32*)
1481 target_configdirs
="$target_configdirs target-winsup"
1482 noconfigdirs
="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1485 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1486 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1487 # always build newlib if winsup directory is present.
1488 if test -d "$srcdir/winsup/cygwin"; then
1489 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1490 elif test -d "$srcdir/newlib"; then
1491 echo "Warning: winsup/cygwin is missing so newlib can't be built."
1494 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
1495 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
1498 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1500 i
[3456789]86-*-sco3.2v5
*)
1501 # The linker does not yet know about weak symbols in COFF,
1502 # and is not configured to handle mixed ELF and COFF.
1503 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1505 i
[3456789]86-*-sco*)
1506 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1508 i
[3456789]86-*-solaris2*)
1509 noconfigdirs
="$noconfigdirs target-libgloss"
1511 i
[3456789]86-*-sysv4*)
1512 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1514 i
[3456789]86-*-beos*)
1515 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1517 i
[3456789]86-*-rdos*)
1518 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1521 noconfigdirs
="$noconfigdirs ${libgcj}"
1523 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1524 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1527 noconfigdirs
="$noconfigdirs ${libgcj}"
1530 noconfigdirs
="$noconfigdirs ${libgcj}"
1533 # The EPOC C++ environment does not support exceptions or rtti,
1534 # and so building libstdc++-v3 tends not to always work.
1535 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1538 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1539 unsupported_languages
="$unsupported_languages fortran java"
1542 noconfigdirs
="$noconfigdirs ${libgcj}"
1545 noconfigdirs
="$noconfigdirs ${libgcj}"
1548 noconfigdirs
="$noconfigdirs sim"
1551 # copied from rs6000-*-* entry
1552 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1554 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1555 target_configdirs
="$target_configdirs target-winsup"
1556 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1557 # always build newlib.
1558 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1560 # This is temporary until we can link against shared libraries
1561 powerpcle-
*-solaris*)
1562 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1565 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1568 noconfigdirs
="$noconfigdirs ${libgcj}"
1570 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
1573 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1576 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1579 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1582 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1585 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1588 # Linking libjava exceeds command-line length limits on at least
1589 # IRIX 6.2, but not on IRIX 6.5.
1590 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1591 # <oldham@codesourcery.com>
1592 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1595 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1598 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1601 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1604 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1607 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1611 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1612 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1613 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1614 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1616 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1619 noconfigdirs
="$noconfigdirs ${libgcj}"
1622 noconfigdirs
="$noconfigdirs ${libgcj}"
1625 noconfigdirs
="$noconfigdirs ${libgcj}"
1628 noconfigdirs
="$noconfigdirs ${libgcj}"
1629 if test x
${is_cross_compiler} != xno
; then
1630 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1635 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
1636 noconfigdirs
="$noconfigdirs ${libgcj}"
1638 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1641 skipdirs
="target-libiberty target-libssp"
1643 # LLVM LOCAL begin - TCE target
1645 skipdirs
="target-libssp target-libstdc++-v3"
1647 # LLVM LOCAL end - TCE target
1649 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1652 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1655 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1658 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1661 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1664 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1667 noconfigdirs
="$noconfigdirs ${libgcj}"
1670 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1672 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1673 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1676 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1679 noconfigdirs
="$noconfigdirs ${libgcj}"
1683 # If we aren't building newlib, then don't build libgloss, since libgloss
1684 # depends upon some newlib header files.
1685 case "${noconfigdirs}" in
1686 *target-libgloss
*) ;;
1687 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1690 # Work in distributions that contain no compiler tools, like Autoconf.
1692 host_makefile_frag
=/dev
/null
1693 if test -d ${srcdir}/config
; then
1696 # Avoid "too much defining" errors from HPUX compiler.
1697 tentative_cc
="cc -Wp,-H256000"
1698 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1699 # If it's HP/UX ar, this should be harmless.
1703 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1706 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1707 # chokes on bfd, the compiler won't let you assign integers to enums, and
1708 # other problems. Defining CC to gcc is a questionable way to say "don't use
1709 # the apollo compiler" (the preferred version of GCC could be called cc,
1710 # or whatever), but I'm not sure leaving CC as cc is any better...
1711 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1712 # Used to have BISON=yacc.
1716 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1719 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1720 tentative_cc
="cc -Xa"
1721 host_makefile_frag
="config/mh-cxux"
1723 m88k-motorola-sysv
*)
1726 tentative_cc
="cc -Wf,-XNg1000"
1727 host_makefile_frag
="config/mh-decstation"
1730 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1731 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1732 host_makefile_frag
="config/mh-necv4"
1735 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1736 # environment. Also bump switch table size so that cp-parse will
1737 # compile. Bump string length limit so linker builds.
1738 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1741 host_makefile_frag
="config/mh-sysv4"
1744 # This is for a MIPS running RISC/os 4.52C.
1746 # This is needed for GDB, but needs to be in the top-level make because
1747 # if a library is compiled with the bsd headers and gets linked with the
1748 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1749 # a different size).
1750 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1751 # known except to select the sysv environment. Could we use /proc instead?
1752 # These "sysv environments" and "bsd environments" often end up being a pain.
1754 # This is not part of CFLAGS because perhaps not all C compilers have this
1756 tentative_cc
="cc -systype sysv"
1761 i
[3456789]86-*-sysv5*)
1762 host_makefile_frag
="config/mh-sysv5"
1764 i
[3456789]86-*-dgux*)
1765 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1766 host_makefile_frag
="config/mh-dgux386"
1768 i
[3456789]86-ncr-sysv4.3
*)
1769 # The MetaWare compiler will generate a copyright message unless you
1770 # turn it off by adding the -Hnocopyr flag.
1771 tentative_cc
="cc -Hnocopyr"
1773 i
[3456789]86-ncr-sysv4*)
1774 # for an NCR 3000 (i486/SVR4) system.
1775 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1776 # This compiler not only emits obnoxious copyright messages every time
1777 # you run it, but it chokes and dies on a whole bunch of GNU source
1778 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1779 tentative_cc
="/usr/ccs/ATT/cc"
1780 host_makefile_frag
="config/mh-ncr3000"
1782 i
[3456789]86-*-sco3.2v5
*)
1784 i
[3456789]86-*-sco*)
1785 # The native C compiler botches some simple uses of const. Unfortunately,
1786 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1787 tentative_cc
="cc -Dconst="
1788 host_makefile_frag
="config/mh-sco"
1790 i
[3456789]86-*-udk*)
1791 host_makefile_frag
="config/mh-sysv5"
1793 i
[3456789]86-*-solaris2*)
1794 host_makefile_frag
="config/mh-sysv4"
1796 i
[3456789]86-*-msdosdjgpp*)
1797 host_makefile_frag
="config/mh-djgpp"
1800 host_makefile_frag
="config/mh-cygwin"
1805 host_makefile_frag
="config/mh-interix"
1808 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1812 host_makefile_frag
="config/mh-solaris"
1815 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1816 # without overflowing the jump tables (-J says to use a 32 bit table)
1817 tentative_cc
="cc -J"
1820 tentative_cc
="cc -Wp,-H256000"
1823 tentative_cc
="cc -Wp,-H256000"
1826 # /bin/cc is less than useful for our purposes. Always use GCC
1827 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1828 host_makefile_frag
="config/mh-lynxrs6k"
1831 host_makefile_frag
="config/mh-ppc-darwin"
1833 # APPLE LOCAL begin dynamic-no-pic
1834 i
[3456789]86-*-darwin*)
1835 host_makefile_frag
="config/mh-x86-darwin"
1836 # gcc can default to x86_64 code generation, avoid that
1837 if test "${build}" = "${host}"; then
1839 CXX
="${CXX-g++} -m32"
1842 # APPLE LOCAL end dynamic-no-pic
1844 host_makefile_frag
="config/mh-ppc-aix"
1847 host_makefile_frag
="config/mh-ppc-aix"
1850 # /bin/cc is less than useful for our purposes. Always use GCC
1851 tentative_cc
="/bin/gcc"
1854 host_makefile_frag
="config/mh-sysv4"
1858 host_makefile_frag
="config/mh-x86-darwin"
1861 # This is placed last to prevent interfering with the cases above.
1863 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1864 host_makefile_frag
="config/mh-x86omitfp"
1869 # If we aren't going to be using gcc, see if we can extract a definition
1870 # of CC from the fragment.
1871 # Actually, use the 'pre-extracted' version above.
1872 if test -z "${CC}" && test "${build}" = "${host}" ; then
1873 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1875 for dir
in $PATH; do
1876 test -z "$dir" && dir
=.
1877 if test -f $dir/gcc
; then
1883 if test -z "${found}" && test -n "${tentative_cc}" ; then
1888 if test "${build}" != "${host}" ; then
1889 # If we are doing a Canadian Cross, in which the host and build systems
1890 # are not the same, we set reasonable default values for the tools.
1892 CC
=${CC-${host_alias}-gcc}
1893 CFLAGS
=${CFLAGS-"-g -O2"}
1894 CXX
=${CXX-${host_alias}-c++}
1895 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1896 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1899 # Set reasonable default values for some tools even if not Canadian.
1900 # Of course, these are different reasonable default values, originally
1901 # specified directly in the Makefile.
1902 # We don't export, so that autoconf can do its job.
1903 # Note that all these settings are above the fragment inclusion point
1904 # in Makefile.in, so can still be overridden by fragments.
1905 # This is all going to change when we autoconfiscate...
1907 CC_FOR_BUILD
="\$(CC)"
1908 # Extract the first word of "gcc", so it can be a program name with args.
1909 set dummy gcc
; 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
=":"
1920 for ac_dir
in $ac_dummy; do
1921 test -z "$ac_dir" && ac_dir
=.
1922 if test -f $ac_dir/$ac_word; then
1931 if test -n "$CC"; then
1932 echo "$ac_t""$CC" 1>&6
1934 echo "$ac_t""no" 1>&6
1937 if test -z "$CC"; then
1938 # Extract the first word of "cc", so it can be a program name with args.
1939 set dummy cc
; ac_word
=$2
1940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1941 echo "configure:1942: checking for $ac_word" >&5
1942 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC
="$CC" # Let the user override the test.
1948 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1951 for ac_dir
in $ac_dummy; do
1952 test -z "$ac_dir" && ac_dir
=.
1953 if test -f $ac_dir/$ac_word; then
1954 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1955 ac_prog_rejected
=yes
1963 if test $ac_prog_rejected = yes; then
1964 # We found a bogon in the path, so make sure we never use it.
1965 set dummy
$ac_cv_prog_CC
1967 if test $# -gt 0; then
1968 # We chose a different compiler from the bogus one.
1969 # However, it has the same basename, so the bogon will be chosen
1970 # first if we set CC to just the basename; use the full file name.
1972 set dummy
"$ac_dir/$ac_word" "$@"
1980 if test -n "$CC"; then
1981 echo "$ac_t""$CC" 1>&6
1983 echo "$ac_t""no" 1>&6
1986 if test -z "$CC"; then
1987 case "`uname -s`" in
1989 # Extract the first word of "cl", so it can be a program name with args.
1990 set dummy cl
; ac_word
=$2
1991 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1992 echo "configure:1993: checking for $ac_word" >&5
1993 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC
="$CC" # Let the user override the test.
1999 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2001 for ac_dir
in $ac_dummy; do
2002 test -z "$ac_dir" && ac_dir
=.
2003 if test -f $ac_dir/$ac_word; then
2012 if test -n "$CC"; then
2013 echo "$ac_t""$CC" 1>&6
2015 echo "$ac_t""no" 1>&6
2020 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2023 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2024 echo "configure:2025: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2028 ac_cpp
='$CPP $CPPFLAGS'
2029 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2030 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2031 cross_compiling
=$ac_cv_prog_cc_cross
2033 cat > conftest.
$ac_ext << EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2040 if { (eval echo configure
:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2041 ac_cv_prog_cc_works
=yes
2042 # If we can't run a trivial program, we are probably using a cross compiler.
2043 if (.
/conftest
; exit) 2>/dev
/null
; then
2044 ac_cv_prog_cc_cross
=no
2046 ac_cv_prog_cc_cross
=yes
2049 echo "configure: failed program was:" >&5
2050 cat conftest.
$ac_ext >&5
2051 ac_cv_prog_cc_works
=no
2055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2056 ac_cpp
='$CPP $CPPFLAGS'
2057 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2058 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2059 cross_compiling
=$ac_cv_prog_cc_cross
2061 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2062 if test $ac_cv_prog_cc_works = no
; then
2063 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2065 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2066 echo "configure:2067: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2067 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2068 cross_compiling
=$ac_cv_prog_cc_cross
2070 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2071 echo "configure:2072: checking whether we are using GNU C" >&5
2072 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 cat > conftest.c
<<EOF
2080 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2087 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2089 if test $ac_cv_prog_gcc = yes; then
2095 ac_test_CFLAGS
="${CFLAGS+set}"
2096 ac_save_CFLAGS
="$CFLAGS"
2098 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2099 echo "configure:2100: checking whether ${CC-cc} accepts -g" >&5
2100 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2103 echo 'void f(){}' > conftest.c
2104 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2113 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2114 if test "$ac_test_CFLAGS" = set; then
2115 CFLAGS
="$ac_save_CFLAGS"
2116 elif test $ac_cv_prog_cc_g = yes; then
2117 if test "$GCC" = yes; then
2123 if test "$GCC" = yes; then
2131 # We must set the default linker to the linker used by gcc for the correct
2132 # operation of libtool. If LD is not defined and we are using gcc, try to
2133 # set the LD default to the ld used by gcc.
2134 if test -z "$LD"; then
2135 if test "$GCC" = yes; then
2138 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2140 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2142 case $gcc_prog_ld in
2143 # Accept absolute paths.
2144 [\\/]* |
[A-Za-z
]:[\\/]*)
2145 LD
="$gcc_prog_ld" ;;
2151 CFLAGS
=${CFLAGS-"-g"}
2152 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2155 if test $host != $build; then
2156 ac_tool_prefix
=${host_alias}-
2163 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2164 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2166 echo "configure:2167: checking for $ac_word" >&5
2167 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2170 if test -n "$GNATBIND"; then
2171 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2173 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2175 for ac_dir
in $ac_dummy; do
2176 test -z "$ac_dir" && ac_dir
=.
2177 if test -f $ac_dir/$ac_word; then
2178 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2185 GNATBIND
="$ac_cv_prog_GNATBIND"
2186 if test -n "$GNATBIND"; then
2187 echo "$ac_t""$GNATBIND" 1>&6
2189 echo "$ac_t""no" 1>&6
2193 if test -z "$ac_cv_prog_GNATBIND"; then
2194 if test -n "$ac_tool_prefix"; then
2195 # Extract the first word of "gnatbind", so it can be a program name with args.
2196 set dummy gnatbind
; ac_word
=$2
2197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2198 echo "configure:2199: checking for $ac_word" >&5
2199 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2202 if test -n "$GNATBIND"; then
2203 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2205 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2207 for ac_dir
in $ac_dummy; do
2208 test -z "$ac_dir" && ac_dir
=.
2209 if test -f $ac_dir/$ac_word; then
2210 ac_cv_prog_GNATBIND
="gnatbind"
2215 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2218 GNATBIND
="$ac_cv_prog_GNATBIND"
2219 if test -n "$GNATBIND"; then
2220 echo "$ac_t""$GNATBIND" 1>&6
2222 echo "$ac_t""no" 1>&6
2230 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2231 echo "configure:2232: checking whether compiler driver understands Ada" >&5
2232 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2235 cat >conftest.adb
<<EOF
2236 procedure conftest is begin null; end conftest;
2238 acx_cv_cc_gcc_supports_ada
=no
2239 # There is a bug in old released versions of GCC which causes the
2240 # driver to exit successfully when the appropriate language module
2241 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2242 # Therefore we must check for the error message as well as an
2243 # unsuccessful exit.
2244 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2245 # given a .adb file, but produce no object file. So we must check
2246 # if an object file was really produced to guard against this.
2247 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2248 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2249 acx_cv_cc_gcc_supports_ada
=yes
2254 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2256 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2262 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2263 echo "configure:2264: checking how to compare bootstrapped objects" >&5
2264 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2269 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2270 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2271 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2274 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2277 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2278 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2281 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2288 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2289 do_compare
="$gcc_cv_prog_cmp_skip"
2293 # Check for GMP and MPFR
2297 # Specify a location for mpfr
2298 # check for this first so it ends up on the link line before gmp.
2299 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2300 if test "${with_mpfr_dir+set}" = set; then
2301 withval
="$with_mpfr_dir"
2302 { echo "configure: error: The --with-mpfr-dir=PATH option has been removed.
2303 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" 1>&2; exit 1; }
2307 # Check whether --with-mpfr or --without-mpfr was given.
2308 if test "${with_mpfr+set}" = set; then
2309 withval
="$with_mpfr"
2313 # Check whether --with-mpfr_include or --without-mpfr_include was given.
2314 if test "${with_mpfr_include+set}" = set; then
2315 withval
="$with_mpfr_include"
2319 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
2320 if test "${with_mpfr_lib+set}" = set; then
2321 withval
="$with_mpfr_lib"
2326 if test "x$with_mpfr" != x
; then
2327 gmplibs
="-L$with_mpfr/lib $gmplibs"
2328 gmpinc
="-I$with_mpfr/include"
2330 if test "x$with_mpfr_include" != x
; then
2331 gmpinc
="-I$with_mpfr_include"
2333 if test "x$with_mpfr_lib" != x
; then
2334 gmplibs
="-L$with_mpfr_lib $gmplibs"
2337 # Specify a location for gmp
2338 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2339 if test "${with_gmp_dir+set}" = set; then
2340 withval
="$with_gmp_dir"
2341 { echo "configure: error: The --with-gmp-dir=PATH option has been removed.
2342 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" 1>&2; exit 1; }
2346 gmplibs
="$gmplibs -lgmp"
2348 # Check whether --with-gmp or --without-gmp was given.
2349 if test "${with_gmp+set}" = set; then
2354 # Check whether --with-gmp_include or --without-gmp_include was given.
2355 if test "${with_gmp_include+set}" = set; then
2356 withval
="$with_gmp_include"
2360 # Check whether --with-gmp_lib or --without-gmp_lib was given.
2361 if test "${with_gmp_lib+set}" = set; then
2362 withval
="$with_gmp_lib"
2368 if test "x$with_gmp" != x
; then
2369 gmplibs
="-L$with_gmp/lib $gmplibs"
2370 gmpinc
="-I$with_gmp/include $gmpinc"
2372 if test "x$with_gmp_include" != x
; then
2373 gmpinc
="-I$with_gmp_include $gmpinc"
2375 if test "x$with_gmp_lib" != x
; then
2376 gmplibs
="-L$with_gmp_lib $gmplibs"
2379 saved_CFLAGS
="$CFLAGS"
2380 CFLAGS
="$CFLAGS $gmpinc"
2381 # Check GMP actually works
2382 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2383 echo "configure:2384: checking for correct version of gmp.h" >&5
2384 cat > conftest.
$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2390 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
2396 if { (eval echo configure
:2397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2398 echo "$ac_t""yes" 1>&6
2400 echo "configure: failed program was:" >&5
2401 cat conftest.
$ac_ext >&5
2403 echo "$ac_t""no" 1>&6; have_gmp
=no
2407 if test x
"$have_gmp" = xyes
; then
2408 echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
2409 echo "configure:2410: checking for correct version of mpfr.h" >&5
2410 cat > conftest.
$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2417 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
2423 if { (eval echo configure
:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2425 echo "$ac_t""yes" 1>&6
2427 echo "configure: failed program was:" >&5
2428 cat conftest.
$ac_ext >&5
2430 echo "$ac_t""buggy version of MPFR detected" 1>&6
2435 LIBS
="$LIBS $gmplibs"
2436 echo $ac_n "checking for any version of mpfr.h""... $ac_c" 1>&6
2437 echo "configure:2438: checking for any version of mpfr.h" >&5
2438 cat > conftest.
$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2444 mpfr_t n; mpfr_init(n);
2447 if { (eval echo configure
:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2449 echo "$ac_t""yes" 1>&6
2451 echo "configure: failed program was:" >&5
2452 cat conftest.
$ac_ext >&5
2454 echo "$ac_t""no" 1>&6; have_gmp
=no
2459 CFLAGS
="$saved_CFLAGS"
2461 # Flags needed for both GMP and/or MPFR
2465 # By default, C is the only stage 1 language.
2469 # Figure out what language subdirectories are present.
2470 # Look if the user specified --enable-languages="..."; if not, use
2471 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2473 # NB: embedded tabs in this IF block -- do not untabify
2474 if test -d ${srcdir}/gcc
; then
2475 if test x
"${enable_languages+set}" != xset
; then
2476 if test x
"${LANGUAGES+set}" = xset
; then
2477 enable_languages
="${LANGUAGES}"
2478 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2480 enable_languages
=all
2483 if test x
"${enable_languages}" = x ||
2484 test x
"${enable_languages}" = xyes
;
2486 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2490 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2492 # 'f95' is the old name for the 'fortran' language. We issue a warning
2493 # and make the substitution.
2494 case ,${enable_languages}, in
2496 echo configure.
in: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
2497 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2501 # First scan to see if an enabled language requires some other language.
2502 # We assume that a given config-lang.in will list all the language
2503 # front ends it requires, even if some are required indirectly.
2504 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2505 case ${lang_frag} in
2507 # The odd quoting in the next line works around
2508 # an apparent bug in bash 1.12 on linux.
2509 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2511 # From the config-lang.in, get $language, $lang_requires
2515 for other
in ${lang_requires} ; do
2516 case ,${enable_languages}, in
2520 echo " \`$other' language required by \`$language'; enabling" 1>&2
2521 enable_languages
="${enable_languages},${other}"
2529 new_enable_languages
=c
2530 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2531 potential_languages
=c
2533 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2534 case ${lang_frag} in
2536 # The odd quoting in the next line works around
2537 # an apparent bug in bash 1.12 on linux.
2538 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2540 # From the config-lang.in, get $language, $target_libs,
2541 # $lang_dirs, $boot_language, and $build_by_default
2550 potential_languages
="${potential_languages},${language}"
2551 # This is quite sensitive to the ordering of the case statement arms.
2552 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2554 echo "${lang_frag} doesn't set \$language." 1>&2
2558 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2561 *,${language},*:*:*:*)
2562 # Language was explicitly selected; include it.
2566 # 'all' was selected, but this is not a default language
2567 # so do not include it.
2571 # 'all' was selected and this is a default language; include it.
2579 # Disable languages that need other directories if these aren't available.
2580 for i
in $subdir_requires; do
2581 test -f "$srcdir/gcc/$i/config-lang.in" && continue
2582 case ,${enable_languages}, in
2584 # Specifically requested language; tell them.
2585 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2594 # Disable languages that need GMP if it isn't available.
2595 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2596 *,${language},*:no
:yes)
2597 # Specifically requested language; tell them.
2598 { echo "configure: error: GMP 4.1 and MPFR 2.2.1 or newer versions required by $language" 1>&2; exit 1; }
2606 # Disable a language that is unsupported by the target.
2607 case " $unsupported_languages " in
2613 case $add_this_lang in
2615 # Remove language-dependent dirs.
2616 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2619 new_enable_languages
="$new_enable_languages,$language"
2620 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2621 case ${boot_language} in
2623 # Add to (comma-separated) list of stage 1 languages.
2624 stage1_languages
="${stage1_languages},${language}"
2633 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2634 if test "x$missing_languages" != x
; then
2635 { echo "configure: error:
2636 The following requested languages could not be built: ${missing_languages}
2637 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2640 if test "x$new_enable_languages" != "x$enable_languages"; then
2641 echo The following languages will be built
: ${new_enable_languages}
2643 enable_languages
="$new_enable_languages"
2644 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2647 # Handle --disable-<component> generically.
2648 for dir
in $configdirs $build_configdirs $target_configdirs ; do
2649 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2650 if eval test x\
${enable_${dirname}} "=" xno
; then
2651 noconfigdirs
="$noconfigdirs $dir"
2655 # Check for Boehm's garbage collector
2656 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2657 if test "${enable_objc_gc+set}" = set; then
2658 enableval
="$enable_objc_gc"
2659 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2660 *,objc
,*:*:yes:*target-boehm-gc
*)
2661 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2667 # Make sure we only build Boehm's garbage collector if required.
2668 case ,${enable_languages},:${enable_objc_gc} in
2670 # Keep target-boehm-gc if requested for Objective-C.
2673 # Otherwise remove target-boehm-gc depending on target-libjava.
2674 if echo " ${noconfigdirs} " |
grep "target-libjava" >/dev
/null
2>&1; then
2675 noconfigdirs
="$noconfigdirs target-boehm-gc"
2680 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2681 # $build_configdirs and $target_configdirs.
2682 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2685 for dir
in .
$skipdirs $noconfigdirs ; do
2686 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2687 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2688 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2689 if test -r $srcdir/$dirname/configure
; then
2690 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2693 notsupp
="$notsupp $dir"
2697 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2698 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2699 if test -r $srcdir/$dirname/configure
; then
2700 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2703 notsupp
="$notsupp $dir"
2707 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2708 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2709 if test -r $srcdir/$dirname/configure
; then
2710 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2713 notsupp
="$notsupp $dir"
2719 # Sometimes the tools are distributed with libiberty but with no other
2720 # libraries. In that case, we don't want to build target-libiberty.
2721 if test -n "${target_configdirs}" ; then
2723 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2724 if test "$i" != "libiberty" ; then
2725 if test -r $srcdir/$i/configure
; then
2731 if test -z "${others}" ; then
2736 # Quietly strip out all directories which aren't configurable in this tree.
2737 # This relies on all configurable subdirectories being autoconfiscated, which
2739 build_configdirs_all
="$build_configdirs"
2741 for i
in ${build_configdirs_all} ; do
2742 j
=`echo $i | sed -e s/build-//g`
2743 if test -f ${srcdir}/$j/configure
; then
2744 build_configdirs
="${build_configdirs} $i"
2748 configdirs_all
="$configdirs"
2750 for i
in ${configdirs_all} ; do
2751 if test -f ${srcdir}/$i/configure
; then
2752 configdirs
="${configdirs} $i"
2756 target_configdirs_all
="$target_configdirs"
2758 for i
in ${target_configdirs_all} ; do
2759 j
=`echo $i | sed -e s/target-//g`
2760 if test -f ${srcdir}/$j/configure
; then
2761 target_configdirs
="${target_configdirs} $i"
2765 # Produce a warning message for the subdirs we can't configure.
2766 # This isn't especially interesting in the Cygnus tree, but in the individual
2767 # FSF releases, it's important to let people know when their machine isn't
2768 # supported by the one or two programs in a package.
2770 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2771 # If $appdirs is non-empty, at least one of those directories must still
2772 # be configured, or we error out. (E.g., if the gas release supports a
2773 # specified target in some subdirs but not the gas subdir, we shouldn't
2774 # pretend that all is well.)
2775 if test -n "$appdirs" ; then
2776 for dir
in $appdirs ; do
2777 if test -r $dir/Makefile.
in ; then
2778 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2782 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2788 if test -n "$appdirs" ; then
2789 echo "*** This configuration is not supported by this package." 1>&2
2793 # Okay, some application will build, or we don't care to check. Still
2794 # notify of subdirs not getting built.
2795 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2796 echo " ${notsupp}" 1>&2
2797 echo " (Any other directories should still work fine.)" 1>&2
2807 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2808 if test "${with_build_sysroot+set}" = set; then
2809 withval
="$with_build_sysroot"
2810 if test x
"$withval" != x
; then
2811 # LLVM LOCAL begin Keep original --sysroot usage for non-Darwin targets.
2813 # APPLE LOCAL 7852964 Use -isysroot instead of --sysroot.
2814 *-*-darwin*) SYSROOT_CFLAGS_FOR_TARGET
="-isysroot $withval" ;;
2815 *) SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval" ;;
2817 # LLVM LOCAL end Keep original --sysroot usage for non-Darwin targets.
2820 SYSROOT_CFLAGS_FOR_TARGET
=
2825 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2826 # the named directory are copied to $(tooldir)/sys-include.
2827 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2828 if test x
${is_cross_compiler} = xno
; then
2829 echo 1>&2 '***' --with-headers is only supported when cross compiling
2832 if test x
"${with_headers}" != xyes
; then
2833 case "${exec_prefixoption}" in
2835 *) x
=${exec_prefix} ;;
2837 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2841 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2842 # the name directories are copied to $(tooldir)/lib. Multiple directories
2844 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2845 if test x
${is_cross_compiler} = xno
; then
2846 echo 1>&2 '***' --with-libs is only supported when cross compiling
2849 if test x
"${with_libs}" != xyes
; then
2850 # Copy the libraries in reverse order, so that files in the first named
2851 # library override files in subsequent libraries.
2852 case "${exec_prefixoption}" in
2854 *) x
=${exec_prefix} ;;
2856 for l
in ${with_libs}; do
2857 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2862 # Set with_gnu_as and with_gnu_ld as appropriate.
2864 # This is done by determining whether or not the appropriate directory
2865 # is available, and by checking whether or not specific configurations
2866 # have requested that this magic not happen.
2868 # The command line options always override the explicit settings in
2869 # configure.in, and the settings in configure.in override this magic.
2871 # If the default for a toolchain is to use GNU as and ld, and you don't
2872 # want to do that, then you should use the --without-gnu-as and
2873 # --without-gnu-ld options for the configure script.
2875 if test x
${use_gnu_as} = x
&&
2876 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2878 extra_host_args
="$extra_host_args --with-gnu-as"
2881 if test x
${use_gnu_ld} = x
&&
2882 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2884 extra_host_args
="$extra_host_args --with-gnu-ld"
2887 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2888 # can detect this case.
2890 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2892 extra_host_args
="$extra_host_args --with-newlib"
2895 # Handle ${copy_dirs}
2896 set fnord
${copy_dirs}
2898 while test $# != 0 ; do
2899 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2902 echo Copying
$1 to
$2
2904 # Use the install script to create the directory and all required
2905 # parent directories.
2906 if test -d $2 ; then
2910 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2913 # Copy the directory, assuming we have tar.
2914 # FIXME: Should we use B in the second tar? Not all systems support it.
2915 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2917 # It is the responsibility of the user to correctly adjust all
2918 # symlinks. If somebody can figure out how to handle them correctly
2919 # here, feel free to add the code.
2926 # Determine a target-dependent exec_prefix that the installed
2927 # gcc will search in. Keep this list sorted by triplet, with
2928 # the *-*-osname triplets last.
2932 md_exec_prefix
=/gnu
/lib
/gcc-lib
2934 i3456786-pc-msdosdjgpp
*)
2935 md_exec_prefix
=/dev
/env
/DJDIR
/bin
2937 i3456786-
*-sco3.2v5
*)
2938 if test $with_gnu_as = yes; then
2939 md_exec_prefix
=/usr
/gnu
/bin
2941 md_exec_prefix
=/usr
/ccs
/bin
/elf
2946 powerpc-
*-chorusos* | \
2947 powerpc
*-*-eabi* | \
2948 powerpc
*-*-sysv* | \
2949 powerpc
*-*-kaos* | \
2951 md_exec_prefix
=/usr
/ccs
/bin
2956 md_exec_prefix
=/usr
/ccs
/bin
2971 md_exec_prefix
=/usr
/ccs
/bin
2975 extra_arflags_for_target
=
2976 extra_nmflags_for_target
=
2977 extra_ranlibflags_for_target
=
2978 target_makefile_frag
=/dev
/null
2981 target_makefile_frag
="config/mt-netware"
2983 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2984 target_makefile_frag
="config/mt-gnu"
2986 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2987 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2988 # commands to handle both 32-bit and 64-bit objects. These flags are
2989 # harmless if we're using GNU nm or ar.
2990 extra_arflags_for_target
=" -X32_64"
2991 extra_nmflags_for_target
=" -B -X32_64"
2994 # ranlib from Darwin requires the -c flag to look at common symbols.
2995 extra_ranlibflags_for_target
=" -c"
2997 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2998 target_makefile_frag
="config/mt-wince"
3002 alphaieee_frag
=/dev
/null
3005 # This just makes sure to use the -mieee option to build target libs.
3006 # This should probably be set individually by each library.
3007 alphaieee_frag
="config/mt-alphaieee"
3011 # If --enable-target-optspace always use -Os instead of -O2 to build
3012 # the target libraries, similarly if it is not specified, use -Os
3013 # on selected platforms.
3014 ospace_frag
=/dev
/null
3015 case "${enable_target_optspace}:${target}" in
3017 ospace_frag
="config/mt-ospace"
3020 ospace_frag
="config/mt-d30v"
3022 :m32r-
* |
:d10v-
* |
:fr30-
*)
3023 ospace_frag
="config/mt-ospace"
3028 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
3032 # Default to using --with-stabs for certain targets.
3033 if test x
${with_stabs} = x
; then
3037 mips
*-*-* | alpha
*-*-osf*)
3039 extra_host_args
="${extra_host_args} --with-stabs"
3044 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
3045 # them automatically.
3048 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
3052 # Some systems (e.g., one of the i386-aix systems the gas testers are
3053 # using) don't handle "\$" correctly, so don't use it here.
3054 tooldir
='${exec_prefix}'/${target_alias}
3055 build_tooldir
=${tooldir}
3057 # Create a .gdbinit file which runs the one in srcdir
3058 # and tells GDB to look there for source files.
3060 if test -r ${srcdir}/.gdbinit
; then
3063 *) cat > .
/.gdbinit
<<EOF
3067 source ${srcdir}/.gdbinit
3073 # Make sure that the compiler is able to generate an executable. If it
3074 # can't, we are probably in trouble. We don't care whether we can run the
3075 # executable--we might be using a cross compiler--we only care whether it
3076 # can be created. At this point the main configure script has set CC.
3078 echo "int main () { return 0; }" > conftest.c
3079 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3080 if test $?
= 0 ; then
3081 if test -s conftest ||
test -s conftest.exe
; then
3087 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3088 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3095 # The Solaris /usr/ucb/cc compiler does not appear to work.
3097 sparc-sun-solaris2
*)
3098 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
3099 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3101 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
3102 if test -d /opt
/cygnus
/bin
; then
3103 if test "$could_use" = "" ; then
3104 could_use
="/opt/cygnus/bin"
3106 could_use
="$could_use or /opt/cygnus/bin"
3109 if test "$could_use" = "" ; then
3110 echo "Warning: compilation may fail because you're using"
3111 echo "/usr/ucb/cc. You should change your PATH or CC "
3112 echo "variable and rerun configure."
3114 echo "Warning: compilation may fail because you're using"
3115 echo "/usr/ucb/cc, when you should use the C compiler from"
3116 echo "$could_use. You should change your"
3117 echo "PATH or CC variable and rerun configure."
3124 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
3125 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
3126 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
3129 # Record target_configdirs and the configure arguments for target and
3130 # build configuration in Makefile.
3131 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3132 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3134 # Determine whether gdb needs tk/tcl or not.
3135 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3136 # and in that case we want gdb to be built without tk. Ugh!
3137 # In fact I believe gdb is the *only* package directly dependent on tk,
3138 # so we should be able to put the 'maybe's in unconditionally and
3139 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3140 # 100% sure that that's safe though.
3142 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3143 case "$enable_gdbtk" in
3147 GDB_TK
="${gdb_tk}" ;;
3149 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3150 # distro. Eventually someone will fix this and move Insight, nee
3151 # gdbtk to a separate directory.
3152 if test -d ${srcdir}/gdb
/gdbtk
; then
3159 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3160 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3162 # Strip out unwanted targets.
3164 # While at that, we remove Makefiles if we were started for recursive
3165 # configuration, so that the top-level Makefile reconfigures them,
3166 # like we used to do when configure itself was recursive.
3168 # Loop over modules. $extrasub must be used with care, limiting as
3169 # much as possible the usage of range addresses. That's because autoconf
3170 # splits the sed script to overcome limits in the number of commands,
3171 # and relying on carefully-timed sed passes may turn out to be very hard
3172 # to maintain later. In this particular case, you just have to be careful
3173 # not to nest @if/@endif pairs, because configure will not warn you at all.
3175 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3176 if test "${enable_bootstrap+set}" = set; then
3177 enableval
="$enable_bootstrap"
3180 enable_bootstrap
=default
3184 # Issue errors and warnings for invalid/strange bootstrap combinations.
3185 case "$configdirs" in
3186 *gcc
*) have_compiler
=yes ;;
3187 *) have_compiler
=no
;;
3190 case "$have_compiler:$host:$target:$enable_bootstrap" in
3193 # Default behavior. Enable bootstrap if we have a compiler
3194 # and we are in a native configuration.
3195 yes:$build:$build:default
)
3196 enable_bootstrap
=yes ;;
3199 enable_bootstrap
=no
;;
3201 # We have a compiler and we are in a native configuration, bootstrap is ok
3202 yes:$build:$build:yes)
3205 # Other configurations, but we have a compiler. Assume the user knows
3208 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3211 # No compiler: if they passed --enable-bootstrap explicitly, fail
3213 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3215 # Fail if wrong command line
3217 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3221 # Adjust the toplevel makefile according to whether bootstrap was selected.
3222 case "$enable_bootstrap" in
3224 bootstrap_suffix
=bootstrap
;;
3226 bootstrap_suffix
=no-bootstrap
;;
3229 for module
in ${build_configdirs} ; do
3230 if test -z "${no_recursion}" \
3231 && test -f ${build_subdir}/${module}/Makefile
; then
3232 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3233 rm -f ${build_subdir}/${module}/Makefile
3236 /^@if build-$module\$/d
3237 /^@endif build-$module\$/d
3238 /^@if build-$module-$bootstrap_suffix\$/d
3239 /^@endif build-$module-$bootstrap_suffix\$/d"
3241 for module
in ${configdirs} ; do
3242 if test -z "${no_recursion}"; then
3243 for file in stage
*-${module}/Makefile
${module}/Makefile
; do
3244 if test -f ${file}; then
3245 echo 1>&2 "*** removing ${file} to force reconfigure"
3252 /^@endif $module\$/d
3253 /^@if $module-$bootstrap_suffix\$/d
3254 /^@endif $module-$bootstrap_suffix\$/d"
3256 for module
in ${target_configdirs} ; do
3257 if test -z "${no_recursion}" \
3258 && test -f ${target_subdir}/${module}/Makefile
; then
3259 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3260 rm -f ${target_subdir}/${module}/Makefile
3263 /^@if target-$module\$/d
3264 /^@endif target-$module\$/d
3265 /^@if target-$module-$bootstrap_suffix\$/d
3266 /^@endif target-$module-$bootstrap_suffix\$/d"
3270 /^@if /,/^@endif /d"
3272 # Create the serialization dependencies. This uses a temporary file.
3274 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3275 if test "${enable_serial_configure+set}" = set; then
3276 enableval
="$enable_serial_configure"
3281 case ${enable_serial_configure} in
3283 enable_serial_build_configure
=yes
3284 enable_serial_host_configure
=yes
3285 enable_serial_target_configure
=yes
3289 # These force 'configure's to be done one at a time, to avoid problems
3290 # with contention over a shared config.cache.
3292 echo '# serdep.tmp' > serdep.tmp
3294 test "x${enable_serial_build_configure}" = xyes
&&
3295 for item
in ${build_configdirs} ; do
3298 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3303 test "x${enable_serial_host_configure}" = xyes
&&
3304 for item
in ${configdirs} ; do
3307 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3312 test "x${enable_serial_target_configure}" = xyes
&&
3313 for item
in ${target_configdirs} ; do
3316 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3320 serialization_dependencies
=serdep.tmp
3323 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3324 # target and nonopt. These are the ones we might not want to pass
3325 # down to subconfigures. Also strip program-prefix, program-suffix,
3326 # and program-transform-name, so that we can pass down a consistent
3327 # program-transform-name. If autoconf has put single quotes around
3328 # any of these arguments (because they contain shell metacharacters)
3329 # then this will fail; in practice this only happens for
3330 # --program-transform-name, so be sure to override --program-transform-name
3331 # at the end of the argument list.
3332 # These will be expanded by make, so quote '$'.
3333 cat <<\EOF_SED
> conftestsed
3335 s
/ --c[a-z-
]*[= ][^
]*//g
3336 s
/ --sr[a-z-
]*[= ][^
]*//g
3337 s
/ --ho[a-z-
]*[= ][^
]*//g
3338 s
/ --bu[a-z-
]*[= ][^
]*//g
3339 s
/ --t[a-z-
]*[= ][^
]*//g
3340 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3341 s
/ -cache-file[= ][^
]*//g
3342 s
/ -srcdir[= ][^
]*//g
3343 s
/ -host[= ][^
]*//g
3344 s
/ -build[= ][^
]*//g
3345 s
/ -target[= ][^
]*//g
3346 s
/ -program-prefix[= ][^
]*//g
3347 s
/ -program-suffix[= ][^
]*//g
3348 s
/ -program-transform-name[= ][^
]*//g
3353 sed -f conftestsed <<EOF_SED > conftestsed.out
3354 ${ac_configure_args}
3356 baseargs=`cat conftestsed.out`
3357 rm -f conftestsed conftestsed.out
3359 # Add in --program-transform-name, after --program-prefix and
3360 # --program-suffix have been applied to it. Autoconf has already
3361 # doubled dollar signs and backslashes in program_transform_name; we want
3362 # the backslashes un-doubled, and then the entire thing wrapped in single
3363 # quotes, because this will be expanded first by make and then by the shell.
3364 # Also, because we want to override the logic in subdir configure scripts to
3365 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3366 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3367 ${program_transform_name}
3369 gcc_transform_name=`cat conftestsed.out`
3370 rm -f conftestsed.out
3371 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3373 # For the build-side libraries, we just need to pretend we're native
,
3374 # and not use the same cache file. Multilibs are neither needed nor
3376 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3378 # For host modules, accept cache file option, or specification as blank.
3379 case "${cache_file}" in
3381 cache_file_option
="" ;;
3382 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3383 cache_file_option
="--cache-file=${cache_file}" ;;
3385 cache_file_option
="--cache-file=../${cache_file}" ;;
3388 # Host dirs don't like to share a cache file either, horribly enough.
3389 # This seems to be due to autoconf 2.5x stupidity.
3390 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3392 target_configargs
=${baseargs}
3394 # Passing a --with-cross-host argument lets the target libraries know
3395 # whether they are being built with a cross-compiler or being built
3396 # native. However, it would be better to use other mechanisms to make the
3397 # sorts of decisions they want to make on this basis. Please consider
3398 # this option to be deprecated. FIXME.
3399 if test x
${is_cross_compiler} = xyes
; then
3400 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3403 # Default to --enable-multilib.
3404 if test x
${enable_multilib} = x
; then
3405 target_configargs
="--enable-multilib ${target_configargs}"
3408 # Pass --with-newlib if appropriate. Note that target_configdirs has
3409 # changed from the earlier setting of with_newlib.
3410 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3411 target_configargs
="--with-newlib ${target_configargs}"
3414 # Different target subdirs use different values of certain variables
3415 # (notably CXX). Worse, multilibs use *lots* of different values.
3416 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3417 # it doesn't automatically accept command-line overrides of them.
3418 # This means it's not safe for target subdirs to share a cache file,
3419 # which is disgusting, but there you have it. Hopefully this can be
3420 # fixed in future. It's still worthwhile to use a cache file for each
3421 # directory. I think.
3423 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3424 # We need to pass --target, as newer autoconf's requires consistency
3425 # for target_alias and gcc doesn't manage it consistently.
3426 target_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3429 case " $target_configdirs " in
3431 case " $target_configargs " in
3432 *" --with-newlib "*)
3435 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' ;;
3438 # If we're not building GCC, don't discard standard headers.
3439 if test -d ${srcdir}/gcc
; then
3440 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3442 if test "${build}" != "${host}"; then
3443 # On Canadian crosses, CC_FOR_TARGET will have already been set
3444 # by `configure', so we won't have an opportunity to add -Bgcc/
3445 # to it. This is right: we don't want to search that directory
3446 # for binaries, but we want the header files in there, so add
3448 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3450 # Someone might think of using the pre-installed headers on
3451 # Canadian crosses, in case the installed compiler is not fully
3452 # compatible with the compiler being built. In this case, it
3453 # would be better to flag an error than risking having
3454 # incompatible object files being constructed. We can't
3455 # guarantee that an error will be flagged, but let's hope the
3456 # compiler will do it, when presented with incompatible header
3461 case "${target}-${is_cross_compiler}" in
3462 i
[3456789]86-*-linux*-no)
3463 # Here host == target, so we don't need to build gcc,
3464 # so we don't want to discard standard headers.
3465 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3468 # If we're building newlib, use its generic headers last, but search
3469 # for any libc-related directories first (so make it the last -B
3471 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3480 # Can't be handled as Cygwin above since Mingw does not use newlib.
3481 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' ;;
3484 # Allow the user to override the flags for
3485 # our build compiler if desired.
3486 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3488 # On Canadian crosses, we'll be searching the right directories for
3489 # the previously-installed cross compiler, so don't bother to add
3490 # flags for directories within the install tree of the compiler
3491 # being built; programs in there won't even run.
3492 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3493 # Search for pre-installed headers if nothing else fits.
3494 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3497 if test "x
${use_gnu_ld}" = x &&
3498 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3499 # Arrange for us to find uninstalled linker scripts.
3500 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3503 # Search for other target-specific linker scripts and such.
3506 if test -d ${srcdir}/libgloss/m32c; then
3507 # This is for crt0.o
3508 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3509 # This is for r8c.ld
3510 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3511 # This is for libnosys.a
3512 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3517 # Makefile fragments.
3518 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3520 eval fragval=\$$frag
3521 if test $fragval != /dev/null; then
3522 eval $frag=${srcdir}/$fragval
3530 # Miscellanea: directories, flags, etc.
3538 # Build module lists & subconfigure args.
3542 # Host module lists & subconfigure args.
3546 # Target module lists & subconfigure args.
3554 # Generate default definitions for YACC, M4, LEX and other programs that run
3555 # on the build machine. These are used if the Makefile can't locate these
3556 # programs in objdir.
3557 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3559 for ac_prog in 'bison -y' byacc yacc
3561 # Extract the first word of "$ac_prog", so it can be a program name with args.
3562 set dummy $ac_prog; ac_word=$2
3563 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3564 echo "configure
:3565: checking
for $ac_word" >&5
3565 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3566 echo $ac_n "(cached
) $ac_c" 1>&6
3568 if test -n "$YACC"; then
3569 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3573 for ac_dir in $ac_dummy; do
3574 test -z "$ac_dir" && ac_dir=.
3575 if test -f $ac_dir/$ac_word; then
3576 ac_cv_prog_YACC="$ac_prog"
3583 YACC="$ac_cv_prog_YACC"
3584 if test -n "$YACC"; then
3585 echo "$ac_t""$YACC" 1>&6
3587 echo "$ac_t""no
" 1>&6
3590 test -n "$YACC" && break
3592 test -n "$YACC" || YACC="$MISSING bison
-y"
3594 case " $build_configdirs " in
3595 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3596 *" byacc
"*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3599 for ac_prog in bison
3601 # Extract the first word of "$ac_prog", so it can be a program name with args.
3602 set dummy $ac_prog; ac_word=$2
3603 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3604 echo "configure
:3605: checking
for $ac_word" >&5
3605 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3606 echo $ac_n "(cached
) $ac_c" 1>&6
3608 if test -n "$BISON"; then
3609 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3613 for ac_dir in $ac_dummy; do
3614 test -z "$ac_dir" && ac_dir=.
3615 if test -f $ac_dir/$ac_word; then
3616 ac_cv_prog_BISON="$ac_prog"
3623 BISON="$ac_cv_prog_BISON"
3624 if test -n "$BISON"; then
3625 echo "$ac_t""$BISON" 1>&6
3627 echo "$ac_t""no
" 1>&6
3630 test -n "$BISON" && break
3632 test -n "$BISON" || BISON="$MISSING bison
"
3634 case " $build_configdirs " in
3635 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3638 for ac_prog in gm4 gnum4 m4
3640 # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 set dummy $ac_prog; ac_word=$2
3642 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3643 echo "configure
:3644: checking
for $ac_word" >&5
3644 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3645 echo $ac_n "(cached
) $ac_c" 1>&6
3647 if test -n "$M4"; then
3648 ac_cv_prog_M4="$M4" # Let the user override the test.
3650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3652 for ac_dir in $ac_dummy; do
3653 test -z "$ac_dir" && ac_dir=.
3654 if test -f $ac_dir/$ac_word; then
3655 ac_cv_prog_M4="$ac_prog"
3663 if test -n "$M4"; then
3664 echo "$ac_t""$M4" 1>&6
3666 echo "$ac_t""no
" 1>&6
3669 test -n "$M4" && break
3671 test -n "$M4" || M4="$MISSING m4"
3673 case " $build_configdirs " in
3674 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3677 for ac_prog in flex lex
3679 # Extract the first word of "$ac_prog", so it can be a program name with args.
3680 set dummy $ac_prog; ac_word=$2
3681 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3682 echo "configure
:3683: checking
for $ac_word" >&5
3683 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3684 echo $ac_n "(cached
) $ac_c" 1>&6
3686 if test -n "$LEX"; then
3687 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3691 for ac_dir in $ac_dummy; do
3692 test -z "$ac_dir" && ac_dir=.
3693 if test -f $ac_dir/$ac_word; then
3694 ac_cv_prog_LEX="$ac_prog"
3701 LEX="$ac_cv_prog_LEX"
3702 if test -n "$LEX"; then
3703 echo "$ac_t""$LEX" 1>&6
3705 echo "$ac_t""no
" 1>&6
3708 test -n "$LEX" && break
3710 test -n "$LEX" || LEX="$MISSING flex
"
3712 case " $build_configdirs " in
3713 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3714 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3719 # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3722 echo "configure
:3723: checking
for $ac_word" >&5
3723 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3724 echo $ac_n "(cached
) $ac_c" 1>&6
3726 if test -n "$FLEX"; then
3727 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3731 for ac_dir in $ac_dummy; do
3732 test -z "$ac_dir" && ac_dir=.
3733 if test -f $ac_dir/$ac_word; then
3734 ac_cv_prog_FLEX="$ac_prog"
3741 FLEX="$ac_cv_prog_FLEX"
3742 if test -n "$FLEX"; then
3743 echo "$ac_t""$FLEX" 1>&6
3745 echo "$ac_t""no
" 1>&6
3748 test -n "$FLEX" && break
3750 test -n "$FLEX" || FLEX="$MISSING flex
"
3752 case " $build_configdirs " in
3753 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3756 for ac_prog in makeinfo
3758 # Extract the first word of "$ac_prog", so it can be a program name with args.
3759 set dummy $ac_prog; ac_word=$2
3760 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3761 echo "configure
:3762: checking
for $ac_word" >&5
3762 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3763 echo $ac_n "(cached
) $ac_c" 1>&6
3765 if test -n "$MAKEINFO"; then
3766 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3770 for ac_dir in $ac_dummy; do
3771 test -z "$ac_dir" && ac_dir=.
3772 if test -f $ac_dir/$ac_word; then
3773 ac_cv_prog_MAKEINFO="$ac_prog"
3780 MAKEINFO="$ac_cv_prog_MAKEINFO"
3781 if test -n "$MAKEINFO"; then
3782 echo "$ac_t""$MAKEINFO" 1>&6
3784 echo "$ac_t""no
" 1>&6
3787 test -n "$MAKEINFO" && break
3789 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
3791 case " $build_configdirs " in
3792 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3795 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3796 # higher, else we use the "missing
" dummy.
3797 if ${MAKEINFO} --version \
3798 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.([4-9]|[1-9][0-9])|[5-9])' >/dev/null 2>&1; then
3801 MAKEINFO="$MISSING makeinfo
"
3807 # FIXME: expect and dejagnu may become build tools?
3809 for ac_prog in expect
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy $ac_prog; ac_word=$2
3813 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3814 echo "configure
:3815: checking
for $ac_word" >&5
3815 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3816 echo $ac_n "(cached
) $ac_c" 1>&6
3818 if test -n "$EXPECT"; then
3819 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3823 for ac_dir in $ac_dummy; do
3824 test -z "$ac_dir" && ac_dir=.
3825 if test -f $ac_dir/$ac_word; then
3826 ac_cv_prog_EXPECT="$ac_prog"
3833 EXPECT="$ac_cv_prog_EXPECT"
3834 if test -n "$EXPECT"; then
3835 echo "$ac_t""$EXPECT" 1>&6
3837 echo "$ac_t""no
" 1>&6
3840 test -n "$EXPECT" && break
3842 test -n "$EXPECT" || EXPECT="expect
"
3844 case " $configdirs " in
3846 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3850 for ac_prog in runtest
3852 # Extract the first word of "$ac_prog", so it can be a program name with args.
3853 set dummy $ac_prog; ac_word=$2
3854 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3855 echo "configure
:3856: checking
for $ac_word" >&5
3856 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3857 echo $ac_n "(cached
) $ac_c" 1>&6
3859 if test -n "$RUNTEST"; then
3860 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3864 for ac_dir in $ac_dummy; do
3865 test -z "$ac_dir" && ac_dir=.
3866 if test -f $ac_dir/$ac_word; then
3867 ac_cv_prog_RUNTEST="$ac_prog"
3874 RUNTEST="$ac_cv_prog_RUNTEST"
3875 if test -n "$RUNTEST"; then
3876 echo "$ac_t""$RUNTEST" 1>&6
3878 echo "$ac_t""no
" 1>&6
3881 test -n "$RUNTEST" && break
3883 test -n "$RUNTEST" || RUNTEST="runtest
"
3885 case " $configdirs " in
3887 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
3894 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3895 ncn_target_tool_prefix=
3896 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3898 for ncn_progname in ar; do
3899 if test -n "$ncn_tool_prefix"; then
3900 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3901 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3902 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3903 echo "configure
:3904: checking
for $ac_word" >&5
3904 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3905 echo $ac_n "(cached
) $ac_c" 1>&6
3907 if test -n "$AR"; then
3908 ac_cv_prog_AR="$AR" # Let the user override the test.
3910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3912 for ac_dir in $ac_dummy; do
3913 test -z "$ac_dir" && ac_dir=.
3914 if test -f $ac_dir/$ac_word; then
3915 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3923 if test -n "$AR"; then
3924 echo "$ac_t""$AR" 1>&6
3926 echo "$ac_t""no
" 1>&6
3930 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3932 set dummy ${ncn_progname}; ac_word=$2
3933 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3934 echo "configure
:3935: checking
for $ac_word" >&5
3935 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3936 echo $ac_n "(cached
) $ac_c" 1>&6
3938 if test -n "$AR"; then
3939 ac_cv_prog_AR="$AR" # Let the user override the test.
3941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3943 for ac_dir in $ac_dummy; do
3944 test -z "$ac_dir" && ac_dir=.
3945 if test -f $ac_dir/$ac_word; then
3946 ac_cv_prog_AR="${ncn_progname}"
3954 if test -n "$AR"; then
3955 echo "$ac_t""$AR" 1>&6
3957 echo "$ac_t""no
" 1>&6
3961 test -n "$ac_cv_prog_AR" && break
3964 if test -z "$ac_cv_prog_AR" ; then
3966 if test $build = $host ; then
3969 AR="${ncn_tool_prefix}$2"
3973 for ncn_progname in as; do
3974 if test -n "$ncn_tool_prefix"; then
3975 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3976 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3977 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3978 echo "configure
:3979: checking
for $ac_word" >&5
3979 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3980 echo $ac_n "(cached
) $ac_c" 1>&6
3982 if test -n "$AS"; then
3983 ac_cv_prog_AS="$AS" # Let the user override the test.
3985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3987 for ac_dir in $ac_dummy; do
3988 test -z "$ac_dir" && ac_dir=.
3989 if test -f $ac_dir/$ac_word; then
3990 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3998 if test -n "$AS"; then
3999 echo "$ac_t""$AS" 1>&6
4001 echo "$ac_t""no
" 1>&6
4005 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
4006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4007 set dummy ${ncn_progname}; ac_word=$2
4008 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4009 echo "configure
:4010: checking
for $ac_word" >&5
4010 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
4011 echo $ac_n "(cached
) $ac_c" 1>&6
4013 if test -n "$AS"; then
4014 ac_cv_prog_AS="$AS" # Let the user override the test.
4016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4018 for ac_dir in $ac_dummy; do
4019 test -z "$ac_dir" && ac_dir=.
4020 if test -f $ac_dir/$ac_word; then
4021 ac_cv_prog_AS="${ncn_progname}"
4029 if test -n "$AS"; then
4030 echo "$ac_t""$AS" 1>&6
4032 echo "$ac_t""no
" 1>&6
4036 test -n "$ac_cv_prog_AS" && break
4039 if test -z "$ac_cv_prog_AS" ; then
4041 if test $build = $host ; then
4044 AS="${ncn_tool_prefix}$2"
4048 for ncn_progname in dlltool; do
4049 if test -n "$ncn_tool_prefix"; then
4050 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4051 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4052 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4053 echo "configure
:4054: checking
for $ac_word" >&5
4054 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4055 echo $ac_n "(cached
) $ac_c" 1>&6
4057 if test -n "$DLLTOOL"; then
4058 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4062 for ac_dir in $ac_dummy; do
4063 test -z "$ac_dir" && ac_dir=.
4064 if test -f $ac_dir/$ac_word; then
4065 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
4072 DLLTOOL="$ac_cv_prog_DLLTOOL"
4073 if test -n "$DLLTOOL"; then
4074 echo "$ac_t""$DLLTOOL" 1>&6
4076 echo "$ac_t""no
" 1>&6
4080 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
4081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4082 set dummy ${ncn_progname}; ac_word=$2
4083 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4084 echo "configure
:4085: checking
for $ac_word" >&5
4085 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
4086 echo $ac_n "(cached
) $ac_c" 1>&6
4088 if test -n "$DLLTOOL"; then
4089 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4093 for ac_dir in $ac_dummy; do
4094 test -z "$ac_dir" && ac_dir=.
4095 if test -f $ac_dir/$ac_word; then
4096 ac_cv_prog_DLLTOOL="${ncn_progname}"
4103 DLLTOOL="$ac_cv_prog_DLLTOOL"
4104 if test -n "$DLLTOOL"; then
4105 echo "$ac_t""$DLLTOOL" 1>&6
4107 echo "$ac_t""no
" 1>&6
4111 test -n "$ac_cv_prog_DLLTOOL" && break
4114 if test -z "$ac_cv_prog_DLLTOOL" ; then
4116 if test $build = $host ; then
4119 DLLTOOL="${ncn_tool_prefix}$2"
4123 for ncn_progname in ld; do
4124 if test -n "$ncn_tool_prefix"; then
4125 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4126 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4127 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4128 echo "configure
:4129: checking
for $ac_word" >&5
4129 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4130 echo $ac_n "(cached
) $ac_c" 1>&6
4132 if test -n "$LD"; then
4133 ac_cv_prog_LD="$LD" # Let the user override the test.
4135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4137 for ac_dir in $ac_dummy; do
4138 test -z "$ac_dir" && ac_dir=.
4139 if test -f $ac_dir/$ac_word; then
4140 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4148 if test -n "$LD"; then
4149 echo "$ac_t""$LD" 1>&6
4151 echo "$ac_t""no
" 1>&6
4155 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4157 set dummy ${ncn_progname}; ac_word=$2
4158 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4159 echo "configure
:4160: checking
for $ac_word" >&5
4160 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4161 echo $ac_n "(cached
) $ac_c" 1>&6
4163 if test -n "$LD"; then
4164 ac_cv_prog_LD="$LD" # Let the user override the test.
4166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4168 for ac_dir in $ac_dummy; do
4169 test -z "$ac_dir" && ac_dir=.
4170 if test -f $ac_dir/$ac_word; then
4171 ac_cv_prog_LD="${ncn_progname}"
4179 if test -n "$LD"; then
4180 echo "$ac_t""$LD" 1>&6
4182 echo "$ac_t""no
" 1>&6
4186 test -n "$ac_cv_prog_LD" && break
4189 if test -z "$ac_cv_prog_LD" ; then
4191 if test $build = $host ; then
4194 LD="${ncn_tool_prefix}$2"
4198 for ncn_progname in lipo; do
4199 if test -n "$ncn_tool_prefix"; then
4200 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4201 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4202 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4203 echo "configure
:4204: checking
for $ac_word" >&5
4204 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4205 echo $ac_n "(cached
) $ac_c" 1>&6
4207 if test -n "$LIPO"; then
4208 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4212 for ac_dir in $ac_dummy; do
4213 test -z "$ac_dir" && ac_dir=.
4214 if test -f $ac_dir/$ac_word; then
4215 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4222 LIPO="$ac_cv_prog_LIPO"
4223 if test -n "$LIPO"; then
4224 echo "$ac_t""$LIPO" 1>&6
4226 echo "$ac_t""no
" 1>&6
4230 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4232 set dummy ${ncn_progname}; ac_word=$2
4233 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4234 echo "configure
:4235: checking
for $ac_word" >&5
4235 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4236 echo $ac_n "(cached
) $ac_c" 1>&6
4238 if test -n "$LIPO"; then
4239 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4243 for ac_dir in $ac_dummy; do
4244 test -z "$ac_dir" && ac_dir=.
4245 if test -f $ac_dir/$ac_word; then
4246 ac_cv_prog_LIPO="${ncn_progname}"
4253 LIPO="$ac_cv_prog_LIPO"
4254 if test -n "$LIPO"; then
4255 echo "$ac_t""$LIPO" 1>&6
4257 echo "$ac_t""no
" 1>&6
4261 test -n "$ac_cv_prog_LIPO" && break
4264 if test -z "$ac_cv_prog_LIPO" ; then
4266 if test $build = $host ; then
4269 LIPO="${ncn_tool_prefix}$2"
4273 for ncn_progname in nm; do
4274 if test -n "$ncn_tool_prefix"; then
4275 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4276 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4277 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4278 echo "configure
:4279: checking
for $ac_word" >&5
4279 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4280 echo $ac_n "(cached
) $ac_c" 1>&6
4282 if test -n "$NM"; then
4283 ac_cv_prog_NM="$NM" # Let the user override the test.
4285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4287 for ac_dir in $ac_dummy; do
4288 test -z "$ac_dir" && ac_dir=.
4289 if test -f $ac_dir/$ac_word; then
4290 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4298 if test -n "$NM"; then
4299 echo "$ac_t""$NM" 1>&6
4301 echo "$ac_t""no
" 1>&6
4305 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4307 set dummy ${ncn_progname}; ac_word=$2
4308 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4309 echo "configure
:4310: checking
for $ac_word" >&5
4310 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4311 echo $ac_n "(cached
) $ac_c" 1>&6
4313 if test -n "$NM"; then
4314 ac_cv_prog_NM="$NM" # Let the user override the test.
4316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4318 for ac_dir in $ac_dummy; do
4319 test -z "$ac_dir" && ac_dir=.
4320 if test -f $ac_dir/$ac_word; then
4321 ac_cv_prog_NM="${ncn_progname}"
4329 if test -n "$NM"; then
4330 echo "$ac_t""$NM" 1>&6
4332 echo "$ac_t""no
" 1>&6
4336 test -n "$ac_cv_prog_NM" && break
4339 if test -z "$ac_cv_prog_NM" ; then
4341 if test $build = $host ; then
4344 NM="${ncn_tool_prefix}$2"
4348 for ncn_progname in ranlib; do
4349 if test -n "$ncn_tool_prefix"; then
4350 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4351 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4352 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4353 echo "configure
:4354: checking
for $ac_word" >&5
4354 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4355 echo $ac_n "(cached
) $ac_c" 1>&6
4357 if test -n "$RANLIB"; then
4358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4362 for ac_dir in $ac_dummy; do
4363 test -z "$ac_dir" && ac_dir=.
4364 if test -f $ac_dir/$ac_word; then
4365 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4372 RANLIB="$ac_cv_prog_RANLIB"
4373 if test -n "$RANLIB"; then
4374 echo "$ac_t""$RANLIB" 1>&6
4376 echo "$ac_t""no
" 1>&6
4380 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4382 set dummy ${ncn_progname}; ac_word=$2
4383 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4384 echo "configure
:4385: checking
for $ac_word" >&5
4385 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4386 echo $ac_n "(cached
) $ac_c" 1>&6
4388 if test -n "$RANLIB"; then
4389 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4393 for ac_dir in $ac_dummy; do
4394 test -z "$ac_dir" && ac_dir=.
4395 if test -f $ac_dir/$ac_word; then
4396 ac_cv_prog_RANLIB="${ncn_progname}"
4403 RANLIB="$ac_cv_prog_RANLIB"
4404 if test -n "$RANLIB"; then
4405 echo "$ac_t""$RANLIB" 1>&6
4407 echo "$ac_t""no
" 1>&6
4411 test -n "$ac_cv_prog_RANLIB" && break
4414 if test -z "$ac_cv_prog_RANLIB" ; then
4418 for ncn_progname in strip; do
4419 if test -n "$ncn_tool_prefix"; then
4420 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4421 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4422 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4423 echo "configure
:4424: checking
for $ac_word" >&5
4424 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4425 echo $ac_n "(cached
) $ac_c" 1>&6
4427 if test -n "$STRIP"; then
4428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4432 for ac_dir in $ac_dummy; do
4433 test -z "$ac_dir" && ac_dir=.
4434 if test -f $ac_dir/$ac_word; then
4435 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4442 STRIP="$ac_cv_prog_STRIP"
4443 if test -n "$STRIP"; then
4444 echo "$ac_t""$STRIP" 1>&6
4446 echo "$ac_t""no
" 1>&6
4450 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4452 set dummy ${ncn_progname}; ac_word=$2
4453 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4454 echo "configure
:4455: checking
for $ac_word" >&5
4455 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4456 echo $ac_n "(cached
) $ac_c" 1>&6
4458 if test -n "$STRIP"; then
4459 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4463 for ac_dir in $ac_dummy; do
4464 test -z "$ac_dir" && ac_dir=.
4465 if test -f $ac_dir/$ac_word; then
4466 ac_cv_prog_STRIP="${ncn_progname}"
4473 STRIP="$ac_cv_prog_STRIP"
4474 if test -n "$STRIP"; then
4475 echo "$ac_t""$STRIP" 1>&6
4477 echo "$ac_t""no
" 1>&6
4481 test -n "$ac_cv_prog_STRIP" && break
4484 if test -z "$ac_cv_prog_STRIP" ; then
4488 for ncn_progname in windres; do
4489 if test -n "$ncn_tool_prefix"; then
4490 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4491 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4492 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4493 echo "configure
:4494: checking
for $ac_word" >&5
4494 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4495 echo $ac_n "(cached
) $ac_c" 1>&6
4497 if test -n "$WINDRES"; then
4498 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4502 for ac_dir in $ac_dummy; do
4503 test -z "$ac_dir" && ac_dir=.
4504 if test -f $ac_dir/$ac_word; then
4505 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4512 WINDRES="$ac_cv_prog_WINDRES"
4513 if test -n "$WINDRES"; then
4514 echo "$ac_t""$WINDRES" 1>&6
4516 echo "$ac_t""no
" 1>&6
4520 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4522 set dummy ${ncn_progname}; ac_word=$2
4523 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4524 echo "configure
:4525: checking
for $ac_word" >&5
4525 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4526 echo $ac_n "(cached
) $ac_c" 1>&6
4528 if test -n "$WINDRES"; then
4529 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4533 for ac_dir in $ac_dummy; do
4534 test -z "$ac_dir" && ac_dir=.
4535 if test -f $ac_dir/$ac_word; then
4536 ac_cv_prog_WINDRES="${ncn_progname}"
4543 WINDRES="$ac_cv_prog_WINDRES"
4544 if test -n "$WINDRES"; then
4545 echo "$ac_t""$WINDRES" 1>&6
4547 echo "$ac_t""no
" 1>&6
4551 test -n "$ac_cv_prog_WINDRES" && break
4554 if test -z "$ac_cv_prog_WINDRES" ; then
4556 if test $build = $host ; then
4559 WINDRES="${ncn_tool_prefix}$2"
4563 for ncn_progname in objcopy; do
4564 if test -n "$ncn_tool_prefix"; then
4565 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4566 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4567 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4568 echo "configure
:4569: checking
for $ac_word" >&5
4569 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4570 echo $ac_n "(cached
) $ac_c" 1>&6
4572 if test -n "$OBJCOPY"; then
4573 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4577 for ac_dir in $ac_dummy; do
4578 test -z "$ac_dir" && ac_dir=.
4579 if test -f $ac_dir/$ac_word; then
4580 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4587 OBJCOPY="$ac_cv_prog_OBJCOPY"
4588 if test -n "$OBJCOPY"; then
4589 echo "$ac_t""$OBJCOPY" 1>&6
4591 echo "$ac_t""no
" 1>&6
4595 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4597 set dummy ${ncn_progname}; ac_word=$2
4598 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4599 echo "configure
:4600: checking
for $ac_word" >&5
4600 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4601 echo $ac_n "(cached
) $ac_c" 1>&6
4603 if test -n "$OBJCOPY"; then
4604 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4608 for ac_dir in $ac_dummy; do
4609 test -z "$ac_dir" && ac_dir=.
4610 if test -f $ac_dir/$ac_word; then
4611 ac_cv_prog_OBJCOPY="${ncn_progname}"
4618 OBJCOPY="$ac_cv_prog_OBJCOPY"
4619 if test -n "$OBJCOPY"; then
4620 echo "$ac_t""$OBJCOPY" 1>&6
4622 echo "$ac_t""no
" 1>&6
4626 test -n "$ac_cv_prog_OBJCOPY" && break
4629 if test -z "$ac_cv_prog_OBJCOPY" ; then
4631 if test $build = $host ; then
4634 OBJCOPY="${ncn_tool_prefix}$2"
4638 for ncn_progname in objdump; do
4639 if test -n "$ncn_tool_prefix"; then
4640 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4641 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4642 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4643 echo "configure
:4644: checking
for $ac_word" >&5
4644 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4645 echo $ac_n "(cached
) $ac_c" 1>&6
4647 if test -n "$OBJDUMP"; then
4648 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4652 for ac_dir in $ac_dummy; do
4653 test -z "$ac_dir" && ac_dir=.
4654 if test -f $ac_dir/$ac_word; then
4655 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4662 OBJDUMP="$ac_cv_prog_OBJDUMP"
4663 if test -n "$OBJDUMP"; then
4664 echo "$ac_t""$OBJDUMP" 1>&6
4666 echo "$ac_t""no
" 1>&6
4670 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4672 set dummy ${ncn_progname}; ac_word=$2
4673 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4674 echo "configure
:4675: checking
for $ac_word" >&5
4675 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4676 echo $ac_n "(cached
) $ac_c" 1>&6
4678 if test -n "$OBJDUMP"; then
4679 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4683 for ac_dir in $ac_dummy; do
4684 test -z "$ac_dir" && ac_dir=.
4685 if test -f $ac_dir/$ac_word; then
4686 ac_cv_prog_OBJDUMP="${ncn_progname}"
4693 OBJDUMP="$ac_cv_prog_OBJDUMP"
4694 if test -n "$OBJDUMP"; then
4695 echo "$ac_t""$OBJDUMP" 1>&6
4697 echo "$ac_t""no
" 1>&6
4701 test -n "$ac_cv_prog_OBJDUMP" && break
4704 if test -z "$ac_cv_prog_OBJDUMP" ; then
4706 if test $build = $host ; then
4709 OBJDUMP="${ncn_tool_prefix}$2"
4720 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4721 if test "${with_build_time_tools+set}" = set; then
4722 withval="$with_build_time_tools"
4726 with_build_time_tools=
4727 echo "configure
: warning
: argument to
--with-build-time-tools must be an absolute path
" 1>&2
4731 with_build_time_tools=
4735 if test -n "$with_build_time_tools"; then
4736 for ncn_progname in cc gcc; do
4737 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4738 echo "configure
:4739: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4739 if test -x $with_build_time_tools/${ncn_progname}; then
4740 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4741 echo "$ac_t""yes" 1>&6
4744 echo "$ac_t""no
" 1>&6
4749 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4750 for ncn_progname in cc gcc; do
4751 if test -n "$ncn_target_tool_prefix"; then
4752 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4753 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4754 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4755 echo "configure
:4756: checking
for $ac_word" >&5
4756 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4757 echo $ac_n "(cached
) $ac_c" 1>&6
4759 if test -n "$CC_FOR_TARGET"; then
4760 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4764 for ac_dir in $ac_dummy; do
4765 test -z "$ac_dir" && ac_dir=.
4766 if test -f $ac_dir/$ac_word; then
4767 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4774 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4775 if test -n "$CC_FOR_TARGET"; then
4776 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4778 echo "$ac_t""no
" 1>&6
4782 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4783 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4784 set dummy ${ncn_progname}; ac_word=$2
4785 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4786 echo "configure
:4787: checking
for $ac_word" >&5
4787 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4788 echo $ac_n "(cached
) $ac_c" 1>&6
4790 if test -n "$CC_FOR_TARGET"; then
4791 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4795 for ac_dir in $ac_dummy; do
4796 test -z "$ac_dir" && ac_dir=.
4797 if test -f $ac_dir/$ac_word; then
4798 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4805 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4806 if test -n "$CC_FOR_TARGET"; then
4807 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4809 echo "$ac_t""no
" 1>&6
4813 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4817 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4819 if test $build = $target ; then
4822 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4825 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4828 if test -n "$with_build_time_tools"; then
4829 for ncn_progname in c++ g++ cxx gxx; do
4830 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4831 echo "configure
:4832: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4832 if test -x $with_build_time_tools/${ncn_progname}; then
4833 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4834 echo "$ac_t""yes" 1>&6
4837 echo "$ac_t""no
" 1>&6
4842 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4843 for ncn_progname in c++ g++ cxx gxx; do
4844 if test -n "$ncn_target_tool_prefix"; then
4845 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4846 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4847 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4848 echo "configure
:4849: checking
for $ac_word" >&5
4849 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4850 echo $ac_n "(cached
) $ac_c" 1>&6
4852 if test -n "$CXX_FOR_TARGET"; then
4853 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4857 for ac_dir in $ac_dummy; do
4858 test -z "$ac_dir" && ac_dir=.
4859 if test -f $ac_dir/$ac_word; then
4860 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4867 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4868 if test -n "$CXX_FOR_TARGET"; then
4869 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4871 echo "$ac_t""no
" 1>&6
4875 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4877 set dummy ${ncn_progname}; ac_word=$2
4878 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4879 echo "configure
:4880: checking
for $ac_word" >&5
4880 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4881 echo $ac_n "(cached
) $ac_c" 1>&6
4883 if test -n "$CXX_FOR_TARGET"; then
4884 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4888 for ac_dir in $ac_dummy; do
4889 test -z "$ac_dir" && ac_dir=.
4890 if test -f $ac_dir/$ac_word; then
4891 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4898 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4899 if test -n "$CXX_FOR_TARGET"; then
4900 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4902 echo "$ac_t""no
" 1>&6
4906 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4910 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4911 set dummy c++ g++ cxx gxx
4912 if test $build = $target ; then
4915 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4918 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4921 if test -n "$with_build_time_tools"; then
4922 for ncn_progname in gcc; do
4923 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4924 echo "configure
:4925: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4925 if test -x $with_build_time_tools/${ncn_progname}; then
4926 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4927 echo "$ac_t""yes" 1>&6
4930 echo "$ac_t""no
" 1>&6
4935 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4936 for ncn_progname in gcc; do
4937 if test -n "$ncn_target_tool_prefix"; then
4938 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4939 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4940 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4941 echo "configure
:4942: checking
for $ac_word" >&5
4942 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4943 echo $ac_n "(cached
) $ac_c" 1>&6
4945 if test -n "$GCC_FOR_TARGET"; then
4946 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4950 for ac_dir in $ac_dummy; do
4951 test -z "$ac_dir" && ac_dir=.
4952 if test -f $ac_dir/$ac_word; then
4953 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4960 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4961 if test -n "$GCC_FOR_TARGET"; then
4962 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4964 echo "$ac_t""no
" 1>&6
4968 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4970 set dummy ${ncn_progname}; ac_word=$2
4971 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4972 echo "configure
:4973: checking
for $ac_word" >&5
4973 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4974 echo $ac_n "(cached
) $ac_c" 1>&6
4976 if test -n "$GCC_FOR_TARGET"; then
4977 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4981 for ac_dir in $ac_dummy; do
4982 test -z "$ac_dir" && ac_dir=.
4983 if test -f $ac_dir/$ac_word; then
4984 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4991 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4992 if test -n "$GCC_FOR_TARGET"; then
4993 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4995 echo "$ac_t""no
" 1>&6
4999 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
5003 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
5004 GCC_FOR_TARGET="${CC_FOR_TARGET}"
5006 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
5009 if test -n "$with_build_time_tools"; then
5010 for ncn_progname in gcj; do
5011 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
5012 echo "configure
:5013: checking
for ${ncn_progname} in $with_build_time_tools" >&5
5013 if test -x $with_build_time_tools/${ncn_progname}; then
5014 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5015 echo "$ac_t""yes" 1>&6
5018 echo "$ac_t""no
" 1>&6
5023 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
5024 for ncn_progname in gcj; do
5025 if test -n "$ncn_target_tool_prefix"; then
5026 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5027 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5028 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5029 echo "configure
:5030: checking
for $ac_word" >&5
5030 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
5031 echo $ac_n "(cached
) $ac_c" 1>&6
5033 if test -n "$GCJ_FOR_TARGET"; then
5034 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
5036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5038 for ac_dir in $ac_dummy; do
5039 test -z "$ac_dir" && ac_dir=.
5040 if test -f $ac_dir/$ac_word; then
5041 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5048 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5049 if test -n "$GCJ_FOR_TARGET"; then
5050 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
5052 echo "$ac_t""no
" 1>&6
5056 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
5057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5058 set dummy ${ncn_progname}; ac_word=$2
5059 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5060 echo "configure
:5061: checking
for $ac_word" >&5
5061 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
5062 echo $ac_n "(cached
) $ac_c" 1>&6
5064 if test -n "$GCJ_FOR_TARGET"; then
5065 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
5067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5069 for ac_dir in $ac_dummy; do
5070 test -z "$ac_dir" && ac_dir=.
5071 if test -f $ac_dir/$ac_word; then
5072 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5079 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5080 if test -n "$GCJ_FOR_TARGET"; then
5081 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
5083 echo "$ac_t""no
" 1>&6
5087 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
5091 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
5093 if test $build = $target ; then
5096 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
5099 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
5102 if test -n "$with_build_time_tools"; then
5103 for ncn_progname in gfortran; do
5104 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
5105 echo "configure
:5106: checking
for ${ncn_progname} in $with_build_time_tools" >&5
5106 if test -x $with_build_time_tools/${ncn_progname}; then
5107 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5108 echo "$ac_t""yes" 1>&6
5111 echo "$ac_t""no
" 1>&6
5116 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
5117 for ncn_progname in gfortran; do
5118 if test -n "$ncn_target_tool_prefix"; then
5119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5120 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5121 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5122 echo "configure
:5123: checking
for $ac_word" >&5
5123 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5124 echo $ac_n "(cached
) $ac_c" 1>&6
5126 if test -n "$GFORTRAN_FOR_TARGET"; then
5127 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5131 for ac_dir in $ac_dummy; do
5132 test -z "$ac_dir" && ac_dir=.
5133 if test -f $ac_dir/$ac_word; then
5134 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5141 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5142 if test -n "$GFORTRAN_FOR_TARGET"; then
5143 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5145 echo "$ac_t""no
" 1>&6
5149 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5151 set dummy ${ncn_progname}; ac_word=$2
5152 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5153 echo "configure
:5154: checking
for $ac_word" >&5
5154 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5155 echo $ac_n "(cached
) $ac_c" 1>&6
5157 if test -n "$GFORTRAN_FOR_TARGET"; then
5158 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5162 for ac_dir in $ac_dummy; do
5163 test -z "$ac_dir" && ac_dir=.
5164 if test -f $ac_dir/$ac_word; then
5165 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5172 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5173 if test -n "$GFORTRAN_FOR_TARGET"; then
5174 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5176 echo "$ac_t""no
" 1>&6
5180 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5184 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5186 if test $build = $target ; then
5187 GFORTRAN_FOR_TARGET="$2"
5189 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5192 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5197 # The user is always right.
5198 if test "${PATH_SEPARATOR+set}" != set; then
5199 echo "#! /bin/sh" >conf$$.sh
5200 echo "exit 0" >>conf$$.sh
5202 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5212 if test "x$exec_prefix" = xNONE
; then
5213 if test "x$prefix" = xNONE
; then
5214 gcc_cv_tool_prefix
=$ac_default_prefix
5216 gcc_cv_tool_prefix
=$prefix
5219 gcc_cv_tool_prefix
=$exec_prefix
5222 # If there is no compiler in the tree, use the PATH only. In any
5223 # case, if there is no compiler in the tree nobody should use
5224 # AS_FOR_TARGET and LD_FOR_TARGET.
5225 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
5226 gcc_version
=`cat $srcdir/gcc/BASE-VER`
5227 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5228 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5229 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5230 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5231 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5232 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5237 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
5238 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5243 cat > conftest.c
<< \EOF
5248 if ($GCC_FOR_TARGET -E conftest.c |
grep gcc_yay
) > /dev
/null
2>&1; then
5249 have_gcc_for_target
=yes
5251 GCC_FOR_TARGET
=${ncn_target_tool_prefix}gcc
5252 have_gcc_for_target
=no
5259 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5260 if test -n "$with_build_time_tools"; then
5261 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5262 echo "configure:5263: checking for ar in $with_build_time_tools" >&5
5263 if test -x $with_build_time_tools/ar; then
5264 AR_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ar
5265 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5266 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5268 echo "$ac_t""no" 1>&6
5270 elif test $build != $host && test $have_gcc_for_target = yes; then
5271 AR_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ar`
5272 test $AR_FOR_TARGET=ar && AR_FOR_TARGET
=
5273 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5276 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5277 # Extract the first word of "ar", so it can be a program name with args.
5278 set dummy
ar; ac_word
=$2
5279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5280 echo "configure:5281: checking for $ac_word" >&5
5281 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5284 case "$AR_FOR_TARGET" in
5286 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a path.
5289 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5292 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5293 ac_dummy
="$gcc_cv_tool_dirs"
5294 for ac_dir
in $ac_dummy; do
5295 test -z "$ac_dir" && ac_dir
=.
5296 if test -f $ac_dir/$ac_word; then
5297 ac_cv_path_AR_FOR_TARGET
="$ac_dir/$ac_word"
5305 AR_FOR_TARGET
="$ac_cv_path_AR_FOR_TARGET"
5306 if test -n "$AR_FOR_TARGET"; then
5307 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5309 echo "$ac_t""no" 1>&6
5313 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5314 if test -n "$with_build_time_tools"; then
5315 for ncn_progname
in ar; do
5316 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5317 echo "configure:5318: checking for ${ncn_progname} in $with_build_time_tools" >&5
5318 if test -x $with_build_time_tools/${ncn_progname}; then
5319 ac_cv_prog_AR_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5320 echo "$ac_t""yes" 1>&6
5323 echo "$ac_t""no" 1>&6
5328 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5329 for ncn_progname
in ar; do
5330 if test -n "$ncn_target_tool_prefix"; then
5331 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5332 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5334 echo "configure:5335: checking for $ac_word" >&5
5335 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5336 echo $ac_n "(cached) $ac_c" 1>&6
5338 if test -n "$AR_FOR_TARGET"; then
5339 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5341 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5343 for ac_dir
in $ac_dummy; do
5344 test -z "$ac_dir" && ac_dir
=.
5345 if test -f $ac_dir/$ac_word; then
5346 ac_cv_prog_AR_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5353 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5354 if test -n "$AR_FOR_TARGET"; then
5355 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5357 echo "$ac_t""no" 1>&6
5361 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5362 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5363 set dummy
${ncn_progname}; ac_word
=$2
5364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5365 echo "configure:5366: checking for $ac_word" >&5
5366 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 if test -n "$AR_FOR_TARGET"; then
5370 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5372 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5374 for ac_dir
in $ac_dummy; do
5375 test -z "$ac_dir" && ac_dir
=.
5376 if test -f $ac_dir/$ac_word; then
5377 ac_cv_prog_AR_FOR_TARGET
="${ncn_progname}"
5384 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5385 if test -n "$AR_FOR_TARGET"; then
5386 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5388 echo "$ac_t""no" 1>&6
5392 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5396 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5398 if test $build = $target ; then
5401 AR_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5404 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5408 AR_FOR_TARGET
=$ac_cv_path_AR_FOR_TARGET
5414 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5415 if test -n "$with_build_time_tools"; then
5416 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5417 echo "configure:5418: checking for as in $with_build_time_tools" >&5
5418 if test -x $with_build_time_tools/as
; then
5419 AS_FOR_TARGET
=`cd $with_build_time_tools && pwd`/as
5420 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5421 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5423 echo "$ac_t""no" 1>&6
5425 elif test $build != $host && test $have_gcc_for_target = yes; then
5426 AS_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=as`
5427 test $AS_FOR_TARGET=as
&& AS_FOR_TARGET
=
5428 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5431 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5432 # Extract the first word of "as", so it can be a program name with args.
5433 set dummy as
; ac_word
=$2
5434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5435 echo "configure:5436: checking for $ac_word" >&5
5436 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5437 echo $ac_n "(cached) $ac_c" 1>&6
5439 case "$AS_FOR_TARGET" in
5441 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a path.
5444 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5447 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5448 ac_dummy
="$gcc_cv_tool_dirs"
5449 for ac_dir
in $ac_dummy; do
5450 test -z "$ac_dir" && ac_dir
=.
5451 if test -f $ac_dir/$ac_word; then
5452 ac_cv_path_AS_FOR_TARGET
="$ac_dir/$ac_word"
5460 AS_FOR_TARGET
="$ac_cv_path_AS_FOR_TARGET"
5461 if test -n "$AS_FOR_TARGET"; then
5462 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5464 echo "$ac_t""no" 1>&6
5468 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5469 if test -n "$with_build_time_tools"; then
5470 for ncn_progname
in as
; do
5471 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5472 echo "configure:5473: checking for ${ncn_progname} in $with_build_time_tools" >&5
5473 if test -x $with_build_time_tools/${ncn_progname}; then
5474 ac_cv_prog_AS_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5475 echo "$ac_t""yes" 1>&6
5478 echo "$ac_t""no" 1>&6
5483 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5484 for ncn_progname
in as
; do
5485 if test -n "$ncn_target_tool_prefix"; then
5486 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5487 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5489 echo "configure:5490: checking for $ac_word" >&5
5490 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6
5493 if test -n "$AS_FOR_TARGET"; then
5494 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5496 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5498 for ac_dir
in $ac_dummy; do
5499 test -z "$ac_dir" && ac_dir
=.
5500 if test -f $ac_dir/$ac_word; then
5501 ac_cv_prog_AS_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5508 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5509 if test -n "$AS_FOR_TARGET"; then
5510 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5512 echo "$ac_t""no" 1>&6
5516 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5518 set dummy
${ncn_progname}; ac_word
=$2
5519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5520 echo "configure:5521: checking for $ac_word" >&5
5521 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5522 echo $ac_n "(cached) $ac_c" 1>&6
5524 if test -n "$AS_FOR_TARGET"; then
5525 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5527 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5529 for ac_dir
in $ac_dummy; do
5530 test -z "$ac_dir" && ac_dir
=.
5531 if test -f $ac_dir/$ac_word; then
5532 ac_cv_prog_AS_FOR_TARGET
="${ncn_progname}"
5539 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5540 if test -n "$AS_FOR_TARGET"; then
5541 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5543 echo "$ac_t""no" 1>&6
5547 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5551 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5553 if test $build = $target ; then
5556 AS_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5559 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5563 AS_FOR_TARGET
=$ac_cv_path_AS_FOR_TARGET
5569 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5570 if test -n "$with_build_time_tools"; then
5571 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5572 echo "configure:5573: checking for dlltool in $with_build_time_tools" >&5
5573 if test -x $with_build_time_tools/dlltool
; then
5574 DLLTOOL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/dlltool
5575 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5576 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5578 echo "$ac_t""no" 1>&6
5580 elif test $build != $host && test $have_gcc_for_target = yes; then
5581 DLLTOOL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5582 test $DLLTOOL_FOR_TARGET=dlltool
&& DLLTOOL_FOR_TARGET
=
5583 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5586 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5587 # Extract the first word of "dlltool", so it can be a program name with args.
5588 set dummy dlltool
; ac_word
=$2
5589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5590 echo "configure:5591: checking for $ac_word" >&5
5591 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5594 case "$DLLTOOL_FOR_TARGET" in
5596 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5599 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5602 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5603 ac_dummy
="$gcc_cv_tool_dirs"
5604 for ac_dir
in $ac_dummy; do
5605 test -z "$ac_dir" && ac_dir
=.
5606 if test -f $ac_dir/$ac_word; then
5607 ac_cv_path_DLLTOOL_FOR_TARGET
="$ac_dir/$ac_word"
5615 DLLTOOL_FOR_TARGET
="$ac_cv_path_DLLTOOL_FOR_TARGET"
5616 if test -n "$DLLTOOL_FOR_TARGET"; then
5617 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5619 echo "$ac_t""no" 1>&6
5623 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5624 if test -n "$with_build_time_tools"; then
5625 for ncn_progname
in dlltool
; do
5626 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5627 echo "configure:5628: checking for ${ncn_progname} in $with_build_time_tools" >&5
5628 if test -x $with_build_time_tools/${ncn_progname}; then
5629 ac_cv_prog_DLLTOOL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5630 echo "$ac_t""yes" 1>&6
5633 echo "$ac_t""no" 1>&6
5638 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5639 for ncn_progname
in dlltool
; do
5640 if test -n "$ncn_target_tool_prefix"; then
5641 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5642 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5644 echo "configure:5645: checking for $ac_word" >&5
5645 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5646 echo $ac_n "(cached) $ac_c" 1>&6
5648 if test -n "$DLLTOOL_FOR_TARGET"; then
5649 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5651 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5653 for ac_dir
in $ac_dummy; do
5654 test -z "$ac_dir" && ac_dir
=.
5655 if test -f $ac_dir/$ac_word; then
5656 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5663 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5664 if test -n "$DLLTOOL_FOR_TARGET"; then
5665 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5667 echo "$ac_t""no" 1>&6
5671 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5672 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5673 set dummy
${ncn_progname}; ac_word
=$2
5674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5675 echo "configure:5676: checking for $ac_word" >&5
5676 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5677 echo $ac_n "(cached) $ac_c" 1>&6
5679 if test -n "$DLLTOOL_FOR_TARGET"; then
5680 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5682 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5684 for ac_dir
in $ac_dummy; do
5685 test -z "$ac_dir" && ac_dir
=.
5686 if test -f $ac_dir/$ac_word; then
5687 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_progname}"
5694 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5695 if test -n "$DLLTOOL_FOR_TARGET"; then
5696 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5698 echo "$ac_t""no" 1>&6
5702 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5706 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5708 if test $build = $target ; then
5709 DLLTOOL_FOR_TARGET
="$2"
5711 DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5714 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5718 DLLTOOL_FOR_TARGET
=$ac_cv_path_DLLTOOL_FOR_TARGET
5724 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5725 if test -n "$with_build_time_tools"; then
5726 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5727 echo "configure:5728: checking for ld in $with_build_time_tools" >&5
5728 if test -x $with_build_time_tools/ld
; then
5729 LD_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ld
5730 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5731 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5733 echo "$ac_t""no" 1>&6
5735 elif test $build != $host && test $have_gcc_for_target = yes; then
5736 LD_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ld`
5737 test $LD_FOR_TARGET=ld
&& LD_FOR_TARGET
=
5738 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5741 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5742 # Extract the first word of "ld", so it can be a program name with args.
5743 set dummy ld
; ac_word
=$2
5744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5745 echo "configure:5746: checking for $ac_word" >&5
5746 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5747 echo $ac_n "(cached) $ac_c" 1>&6
5749 case "$LD_FOR_TARGET" in
5751 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a path.
5754 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5757 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5758 ac_dummy
="$gcc_cv_tool_dirs"
5759 for ac_dir
in $ac_dummy; do
5760 test -z "$ac_dir" && ac_dir
=.
5761 if test -f $ac_dir/$ac_word; then
5762 ac_cv_path_LD_FOR_TARGET
="$ac_dir/$ac_word"
5770 LD_FOR_TARGET
="$ac_cv_path_LD_FOR_TARGET"
5771 if test -n "$LD_FOR_TARGET"; then
5772 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5774 echo "$ac_t""no" 1>&6
5778 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5779 if test -n "$with_build_time_tools"; then
5780 for ncn_progname
in ld
; do
5781 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5782 echo "configure:5783: checking for ${ncn_progname} in $with_build_time_tools" >&5
5783 if test -x $with_build_time_tools/${ncn_progname}; then
5784 ac_cv_prog_LD_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5785 echo "$ac_t""yes" 1>&6
5788 echo "$ac_t""no" 1>&6
5793 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5794 for ncn_progname
in ld
; do
5795 if test -n "$ncn_target_tool_prefix"; then
5796 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5797 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5798 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5799 echo "configure:5800: checking for $ac_word" >&5
5800 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5801 echo $ac_n "(cached) $ac_c" 1>&6
5803 if test -n "$LD_FOR_TARGET"; then
5804 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5806 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5808 for ac_dir
in $ac_dummy; do
5809 test -z "$ac_dir" && ac_dir
=.
5810 if test -f $ac_dir/$ac_word; then
5811 ac_cv_prog_LD_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5818 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5819 if test -n "$LD_FOR_TARGET"; then
5820 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5822 echo "$ac_t""no" 1>&6
5826 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5828 set dummy
${ncn_progname}; ac_word
=$2
5829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5830 echo "configure:5831: checking for $ac_word" >&5
5831 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5834 if test -n "$LD_FOR_TARGET"; then
5835 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5837 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5839 for ac_dir
in $ac_dummy; do
5840 test -z "$ac_dir" && ac_dir
=.
5841 if test -f $ac_dir/$ac_word; then
5842 ac_cv_prog_LD_FOR_TARGET
="${ncn_progname}"
5849 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5850 if test -n "$LD_FOR_TARGET"; then
5851 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5853 echo "$ac_t""no" 1>&6
5857 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5861 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5863 if test $build = $target ; then
5866 LD_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5869 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5873 LD_FOR_TARGET
=$ac_cv_path_LD_FOR_TARGET
5879 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5880 if test -n "$with_build_time_tools"; then
5881 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5882 echo "configure:5883: checking for lipo in $with_build_time_tools" >&5
5883 if test -x $with_build_time_tools/lipo
; then
5884 LIPO_FOR_TARGET
=`cd $with_build_time_tools && pwd`/lipo
5885 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5886 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5888 echo "$ac_t""no" 1>&6
5890 elif test $build != $host && test $have_gcc_for_target = yes; then
5891 LIPO_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=lipo`
5892 test $LIPO_FOR_TARGET=lipo
&& LIPO_FOR_TARGET
=
5893 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5896 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5897 # Extract the first word of "lipo", so it can be a program name with args.
5898 set dummy lipo
; ac_word
=$2
5899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5900 echo "configure:5901: checking for $ac_word" >&5
5901 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5902 echo $ac_n "(cached) $ac_c" 1>&6
5904 case "$LIPO_FOR_TARGET" in
5906 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5909 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5912 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5913 ac_dummy
="$gcc_cv_tool_dirs"
5914 for ac_dir
in $ac_dummy; do
5915 test -z "$ac_dir" && ac_dir
=.
5916 if test -f $ac_dir/$ac_word; then
5917 ac_cv_path_LIPO_FOR_TARGET
="$ac_dir/$ac_word"
5925 LIPO_FOR_TARGET
="$ac_cv_path_LIPO_FOR_TARGET"
5926 if test -n "$LIPO_FOR_TARGET"; then
5927 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5929 echo "$ac_t""no" 1>&6
5933 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5934 if test -n "$with_build_time_tools"; then
5935 for ncn_progname
in lipo
; do
5936 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5937 echo "configure:5938: checking for ${ncn_progname} in $with_build_time_tools" >&5
5938 if test -x $with_build_time_tools/${ncn_progname}; then
5939 ac_cv_prog_LIPO_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5940 echo "$ac_t""yes" 1>&6
5943 echo "$ac_t""no" 1>&6
5948 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5949 for ncn_progname
in lipo
; do
5950 if test -n "$ncn_target_tool_prefix"; then
5951 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5952 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5954 echo "configure:5955: checking for $ac_word" >&5
5955 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5956 echo $ac_n "(cached) $ac_c" 1>&6
5958 if test -n "$LIPO_FOR_TARGET"; then
5959 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5961 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5963 for ac_dir
in $ac_dummy; do
5964 test -z "$ac_dir" && ac_dir
=.
5965 if test -f $ac_dir/$ac_word; then
5966 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5973 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5974 if test -n "$LIPO_FOR_TARGET"; then
5975 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5977 echo "$ac_t""no" 1>&6
5981 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5983 set dummy
${ncn_progname}; ac_word
=$2
5984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5985 echo "configure:5986: checking for $ac_word" >&5
5986 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5987 echo $ac_n "(cached) $ac_c" 1>&6
5989 if test -n "$LIPO_FOR_TARGET"; then
5990 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5992 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5994 for ac_dir
in $ac_dummy; do
5995 test -z "$ac_dir" && ac_dir
=.
5996 if test -f $ac_dir/$ac_word; then
5997 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_progname}"
6004 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
6005 if test -n "$LIPO_FOR_TARGET"; then
6006 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
6008 echo "$ac_t""no" 1>&6
6012 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
6016 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
6018 if test $build = $target ; then
6019 LIPO_FOR_TARGET
="$2"
6021 LIPO_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6024 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
6028 LIPO_FOR_TARGET
=$ac_cv_path_LIPO_FOR_TARGET
6034 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6035 if test -n "$with_build_time_tools"; then
6036 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
6037 echo "configure:6038: checking for nm in $with_build_time_tools" >&5
6038 if test -x $with_build_time_tools/nm
; then
6039 NM_FOR_TARGET
=`cd $with_build_time_tools && pwd`/nm
6040 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
6041 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
6043 echo "$ac_t""no" 1>&6
6045 elif test $build != $host && test $have_gcc_for_target = yes; then
6046 NM_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=nm`
6047 test $NM_FOR_TARGET=nm
&& NM_FOR_TARGET
=
6048 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
6051 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6052 # Extract the first word of "nm", so it can be a program name with args.
6053 set dummy nm
; ac_word
=$2
6054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6055 echo "configure:6056: checking for $ac_word" >&5
6056 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
6057 echo $ac_n "(cached) $ac_c" 1>&6
6059 case "$NM_FOR_TARGET" in
6061 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a path.
6064 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a dos path.
6067 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6068 ac_dummy
="$gcc_cv_tool_dirs"
6069 for ac_dir
in $ac_dummy; do
6070 test -z "$ac_dir" && ac_dir
=.
6071 if test -f $ac_dir/$ac_word; then
6072 ac_cv_path_NM_FOR_TARGET
="$ac_dir/$ac_word"
6080 NM_FOR_TARGET
="$ac_cv_path_NM_FOR_TARGET"
6081 if test -n "$NM_FOR_TARGET"; then
6082 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6084 echo "$ac_t""no" 1>&6
6088 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
6089 if test -n "$with_build_time_tools"; then
6090 for ncn_progname
in nm
; do
6091 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6092 echo "configure:6093: checking for ${ncn_progname} in $with_build_time_tools" >&5
6093 if test -x $with_build_time_tools/${ncn_progname}; then
6094 ac_cv_prog_NM_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6095 echo "$ac_t""yes" 1>&6
6098 echo "$ac_t""no" 1>&6
6103 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
6104 for ncn_progname
in nm
; do
6105 if test -n "$ncn_target_tool_prefix"; then
6106 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6107 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6109 echo "configure:6110: checking for $ac_word" >&5
6110 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6111 echo $ac_n "(cached) $ac_c" 1>&6
6113 if test -n "$NM_FOR_TARGET"; then
6114 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
6116 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6118 for ac_dir
in $ac_dummy; do
6119 test -z "$ac_dir" && ac_dir
=.
6120 if test -f $ac_dir/$ac_word; then
6121 ac_cv_prog_NM_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6128 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
6129 if test -n "$NM_FOR_TARGET"; then
6130 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6132 echo "$ac_t""no" 1>&6
6136 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
6137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6138 set dummy
${ncn_progname}; ac_word
=$2
6139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6140 echo "configure:6141: checking for $ac_word" >&5
6141 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6142 echo $ac_n "(cached) $ac_c" 1>&6
6144 if test -n "$NM_FOR_TARGET"; then
6145 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
6147 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6149 for ac_dir
in $ac_dummy; do
6150 test -z "$ac_dir" && ac_dir
=.
6151 if test -f $ac_dir/$ac_word; then
6152 ac_cv_prog_NM_FOR_TARGET
="${ncn_progname}"
6159 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
6160 if test -n "$NM_FOR_TARGET"; then
6161 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6163 echo "$ac_t""no" 1>&6
6167 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6171 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6173 if test $build = $target ; then
6176 NM_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6179 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
6183 NM_FOR_TARGET
=$ac_cv_path_NM_FOR_TARGET
6189 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6190 if test -n "$with_build_time_tools"; then
6191 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6192 echo "configure:6193: checking for objdump in $with_build_time_tools" >&5
6193 if test -x $with_build_time_tools/objdump
; then
6194 OBJDUMP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/objdump
6195 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6196 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6198 echo "$ac_t""no" 1>&6
6200 elif test $build != $host && test $have_gcc_for_target = yes; then
6201 OBJDUMP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=objdump`
6202 test $OBJDUMP_FOR_TARGET=objdump
&& OBJDUMP_FOR_TARGET
=
6203 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6206 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6207 # Extract the first word of "objdump", so it can be a program name with args.
6208 set dummy objdump
; ac_word
=$2
6209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6210 echo "configure:6211: checking for $ac_word" >&5
6211 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6212 echo $ac_n "(cached) $ac_c" 1>&6
6214 case "$OBJDUMP_FOR_TARGET" in
6216 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6219 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6222 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6223 ac_dummy
="$gcc_cv_tool_dirs"
6224 for ac_dir
in $ac_dummy; do
6225 test -z "$ac_dir" && ac_dir
=.
6226 if test -f $ac_dir/$ac_word; then
6227 ac_cv_path_OBJDUMP_FOR_TARGET
="$ac_dir/$ac_word"
6235 OBJDUMP_FOR_TARGET
="$ac_cv_path_OBJDUMP_FOR_TARGET"
6236 if test -n "$OBJDUMP_FOR_TARGET"; then
6237 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6239 echo "$ac_t""no" 1>&6
6243 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6244 if test -n "$with_build_time_tools"; then
6245 for ncn_progname
in objdump
; do
6246 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6247 echo "configure:6248: checking for ${ncn_progname} in $with_build_time_tools" >&5
6248 if test -x $with_build_time_tools/${ncn_progname}; then
6249 ac_cv_prog_OBJDUMP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6250 echo "$ac_t""yes" 1>&6
6253 echo "$ac_t""no" 1>&6
6258 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6259 for ncn_progname
in objdump
; do
6260 if test -n "$ncn_target_tool_prefix"; then
6261 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6262 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6264 echo "configure:6265: checking for $ac_word" >&5
6265 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6266 echo $ac_n "(cached) $ac_c" 1>&6
6268 if test -n "$OBJDUMP_FOR_TARGET"; then
6269 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6271 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6273 for ac_dir
in $ac_dummy; do
6274 test -z "$ac_dir" && ac_dir
=.
6275 if test -f $ac_dir/$ac_word; then
6276 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6283 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6284 if test -n "$OBJDUMP_FOR_TARGET"; then
6285 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6287 echo "$ac_t""no" 1>&6
6291 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6293 set dummy
${ncn_progname}; ac_word
=$2
6294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6295 echo "configure:6296: checking for $ac_word" >&5
6296 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6299 if test -n "$OBJDUMP_FOR_TARGET"; then
6300 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6302 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6304 for ac_dir
in $ac_dummy; do
6305 test -z "$ac_dir" && ac_dir
=.
6306 if test -f $ac_dir/$ac_word; then
6307 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_progname}"
6314 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6315 if test -n "$OBJDUMP_FOR_TARGET"; then
6316 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6318 echo "$ac_t""no" 1>&6
6322 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6326 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6328 if test $build = $target ; then
6329 OBJDUMP_FOR_TARGET
="$2"
6331 OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6334 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6338 OBJDUMP_FOR_TARGET
=$ac_cv_path_OBJDUMP_FOR_TARGET
6344 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6345 if test -n "$with_build_time_tools"; then
6346 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6347 echo "configure:6348: checking for ranlib in $with_build_time_tools" >&5
6348 if test -x $with_build_time_tools/ranlib
; then
6349 RANLIB_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ranlib
6350 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6351 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6353 echo "$ac_t""no" 1>&6
6355 elif test $build != $host && test $have_gcc_for_target = yes; then
6356 RANLIB_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6357 test $RANLIB_FOR_TARGET=ranlib
&& RANLIB_FOR_TARGET
=
6358 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6361 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6362 # Extract the first word of "ranlib", so it can be a program name with args.
6363 set dummy ranlib
; ac_word
=$2
6364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6365 echo "configure:6366: checking for $ac_word" >&5
6366 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6
6369 case "$RANLIB_FOR_TARGET" in
6371 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6374 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6377 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6378 ac_dummy
="$gcc_cv_tool_dirs"
6379 for ac_dir
in $ac_dummy; do
6380 test -z "$ac_dir" && ac_dir
=.
6381 if test -f $ac_dir/$ac_word; then
6382 ac_cv_path_RANLIB_FOR_TARGET
="$ac_dir/$ac_word"
6390 RANLIB_FOR_TARGET
="$ac_cv_path_RANLIB_FOR_TARGET"
6391 if test -n "$RANLIB_FOR_TARGET"; then
6392 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6394 echo "$ac_t""no" 1>&6
6398 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6399 if test -n "$with_build_time_tools"; then
6400 for ncn_progname
in ranlib
; do
6401 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6402 echo "configure:6403: checking for ${ncn_progname} in $with_build_time_tools" >&5
6403 if test -x $with_build_time_tools/${ncn_progname}; then
6404 ac_cv_prog_RANLIB_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6405 echo "$ac_t""yes" 1>&6
6408 echo "$ac_t""no" 1>&6
6413 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6414 for ncn_progname
in ranlib
; do
6415 if test -n "$ncn_target_tool_prefix"; then
6416 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6417 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6419 echo "configure:6420: checking for $ac_word" >&5
6420 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6421 echo $ac_n "(cached) $ac_c" 1>&6
6423 if test -n "$RANLIB_FOR_TARGET"; then
6424 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6426 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6428 for ac_dir
in $ac_dummy; do
6429 test -z "$ac_dir" && ac_dir
=.
6430 if test -f $ac_dir/$ac_word; then
6431 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6438 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6439 if test -n "$RANLIB_FOR_TARGET"; then
6440 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6442 echo "$ac_t""no" 1>&6
6446 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6448 set dummy
${ncn_progname}; ac_word
=$2
6449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6450 echo "configure:6451: checking for $ac_word" >&5
6451 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6452 echo $ac_n "(cached) $ac_c" 1>&6
6454 if test -n "$RANLIB_FOR_TARGET"; then
6455 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6457 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6459 for ac_dir
in $ac_dummy; do
6460 test -z "$ac_dir" && ac_dir
=.
6461 if test -f $ac_dir/$ac_word; then
6462 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_progname}"
6469 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6470 if test -n "$RANLIB_FOR_TARGET"; then
6471 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6473 echo "$ac_t""no" 1>&6
6477 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6481 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6483 if test $build = $target ; then
6484 RANLIB_FOR_TARGET
="$2"
6486 RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6489 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6493 RANLIB_FOR_TARGET
=$ac_cv_path_RANLIB_FOR_TARGET
6499 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6500 if test -n "$with_build_time_tools"; then
6501 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6502 echo "configure:6503: checking for strip in $with_build_time_tools" >&5
6503 if test -x $with_build_time_tools/strip
; then
6504 STRIP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/strip
6505 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6506 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6508 echo "$ac_t""no" 1>&6
6510 elif test $build != $host && test $have_gcc_for_target = yes; then
6511 STRIP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=strip`
6512 test $STRIP_FOR_TARGET=strip
&& STRIP_FOR_TARGET
=
6513 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6516 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6517 # Extract the first word of "strip", so it can be a program name with args.
6518 set dummy strip
; ac_word
=$2
6519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6520 echo "configure:6521: checking for $ac_word" >&5
6521 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6522 echo $ac_n "(cached) $ac_c" 1>&6
6524 case "$STRIP_FOR_TARGET" in
6526 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6529 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6532 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6533 ac_dummy
="$gcc_cv_tool_dirs"
6534 for ac_dir
in $ac_dummy; do
6535 test -z "$ac_dir" && ac_dir
=.
6536 if test -f $ac_dir/$ac_word; then
6537 ac_cv_path_STRIP_FOR_TARGET
="$ac_dir/$ac_word"
6545 STRIP_FOR_TARGET
="$ac_cv_path_STRIP_FOR_TARGET"
6546 if test -n "$STRIP_FOR_TARGET"; then
6547 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6549 echo "$ac_t""no" 1>&6
6553 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6554 if test -n "$with_build_time_tools"; then
6555 for ncn_progname
in strip
; do
6556 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6557 echo "configure:6558: checking for ${ncn_progname} in $with_build_time_tools" >&5
6558 if test -x $with_build_time_tools/${ncn_progname}; then
6559 ac_cv_prog_STRIP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6560 echo "$ac_t""yes" 1>&6
6563 echo "$ac_t""no" 1>&6
6568 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6569 for ncn_progname
in strip
; do
6570 if test -n "$ncn_target_tool_prefix"; then
6571 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6572 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6574 echo "configure:6575: checking for $ac_word" >&5
6575 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6578 if test -n "$STRIP_FOR_TARGET"; then
6579 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6581 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6583 for ac_dir
in $ac_dummy; do
6584 test -z "$ac_dir" && ac_dir
=.
6585 if test -f $ac_dir/$ac_word; then
6586 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6593 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6594 if test -n "$STRIP_FOR_TARGET"; then
6595 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6597 echo "$ac_t""no" 1>&6
6601 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6603 set dummy
${ncn_progname}; ac_word
=$2
6604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6605 echo "configure:6606: checking for $ac_word" >&5
6606 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6609 if test -n "$STRIP_FOR_TARGET"; then
6610 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6612 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6614 for ac_dir
in $ac_dummy; do
6615 test -z "$ac_dir" && ac_dir
=.
6616 if test -f $ac_dir/$ac_word; then
6617 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_progname}"
6624 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6625 if test -n "$STRIP_FOR_TARGET"; then
6626 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6628 echo "$ac_t""no" 1>&6
6632 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6636 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6638 if test $build = $target ; then
6639 STRIP_FOR_TARGET
="$2"
6641 STRIP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6644 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6648 STRIP_FOR_TARGET
=$ac_cv_path_STRIP_FOR_TARGET
6654 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6655 if test -n "$with_build_time_tools"; then
6656 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6657 echo "configure:6658: checking for windres in $with_build_time_tools" >&5
6658 if test -x $with_build_time_tools/windres
; then
6659 WINDRES_FOR_TARGET
=`cd $with_build_time_tools && pwd`/windres
6660 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6661 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6663 echo "$ac_t""no" 1>&6
6665 elif test $build != $host && test $have_gcc_for_target = yes; then
6666 WINDRES_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=windres`
6667 test $WINDRES_FOR_TARGET=windres
&& WINDRES_FOR_TARGET
=
6668 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6671 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6672 # Extract the first word of "windres", so it can be a program name with args.
6673 set dummy windres
; ac_word
=$2
6674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6675 echo "configure:6676: checking for $ac_word" >&5
6676 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6677 echo $ac_n "(cached) $ac_c" 1>&6
6679 case "$WINDRES_FOR_TARGET" in
6681 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6684 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6687 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6688 ac_dummy
="$gcc_cv_tool_dirs"
6689 for ac_dir
in $ac_dummy; do
6690 test -z "$ac_dir" && ac_dir
=.
6691 if test -f $ac_dir/$ac_word; then
6692 ac_cv_path_WINDRES_FOR_TARGET
="$ac_dir/$ac_word"
6700 WINDRES_FOR_TARGET
="$ac_cv_path_WINDRES_FOR_TARGET"
6701 if test -n "$WINDRES_FOR_TARGET"; then
6702 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6704 echo "$ac_t""no" 1>&6
6708 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6709 if test -n "$with_build_time_tools"; then
6710 for ncn_progname
in windres
; do
6711 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6712 echo "configure:6713: checking for ${ncn_progname} in $with_build_time_tools" >&5
6713 if test -x $with_build_time_tools/${ncn_progname}; then
6714 ac_cv_prog_WINDRES_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6715 echo "$ac_t""yes" 1>&6
6718 echo "$ac_t""no" 1>&6
6723 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6724 for ncn_progname
in windres
; do
6725 if test -n "$ncn_target_tool_prefix"; then
6726 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6727 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6729 echo "configure:6730: checking for $ac_word" >&5
6730 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6731 echo $ac_n "(cached) $ac_c" 1>&6
6733 if test -n "$WINDRES_FOR_TARGET"; then
6734 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6736 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6738 for ac_dir
in $ac_dummy; do
6739 test -z "$ac_dir" && ac_dir
=.
6740 if test -f $ac_dir/$ac_word; then
6741 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6748 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6749 if test -n "$WINDRES_FOR_TARGET"; then
6750 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6752 echo "$ac_t""no" 1>&6
6756 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6758 set dummy
${ncn_progname}; ac_word
=$2
6759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6760 echo "configure:6761: checking for $ac_word" >&5
6761 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6762 echo $ac_n "(cached) $ac_c" 1>&6
6764 if test -n "$WINDRES_FOR_TARGET"; then
6765 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6767 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6769 for ac_dir
in $ac_dummy; do
6770 test -z "$ac_dir" && ac_dir
=.
6771 if test -f $ac_dir/$ac_word; then
6772 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_progname}"
6779 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6780 if test -n "$WINDRES_FOR_TARGET"; then
6781 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6783 echo "$ac_t""no" 1>&6
6787 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6791 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6793 if test $build = $target ; then
6794 WINDRES_FOR_TARGET
="$2"
6796 WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6799 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6803 WINDRES_FOR_TARGET
=$ac_cv_path_WINDRES_FOR_TARGET
6807 RAW_CXX_FOR_TARGET
="$CXX_FOR_TARGET"
6809 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6810 echo "configure:6811: checking where to find the target ar" >&5
6811 if test "x${build}" != "x${host}" ; then
6812 if expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6813 # We already found the complete path
6814 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6816 # Canadian cross, just use what we found
6817 echo "$ac_t""pre-installed" 1>&6
6821 case " ${configdirs} " in
6826 if test $ok = yes; then
6827 # An in-tree tool is available and we can use it
6828 AR_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ar'
6829 echo "$ac_t""just compiled" 1>&6
6830 elif expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6831 # We already found the complete path
6832 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6833 elif test "x$target" = "x$host"; then
6834 # We can use an host tool
6835 AR_FOR_TARGET
='$(AR)'
6836 echo "$ac_t""host tool" 1>&6
6838 # We need a cross tool
6839 echo "$ac_t""pre-installed" 1>&6
6842 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6843 echo "configure:6844: checking where to find the target as" >&5
6844 if test "x${build}" != "x${host}" ; then
6845 if expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6846 # We already found the complete path
6847 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6849 # Canadian cross, just use what we found
6850 echo "$ac_t""pre-installed" 1>&6
6854 case " ${configdirs} " in
6859 if test $ok = yes; then
6860 # An in-tree tool is available and we can use it
6861 AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gas/as-new'
6862 echo "$ac_t""just compiled" 1>&6
6863 elif expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6864 # We already found the complete path
6865 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6866 elif test "x$target" = "x$host"; then
6867 # We can use an host tool
6868 AS_FOR_TARGET
='$(AS)'
6869 echo "$ac_t""host tool" 1>&6
6871 # We need a cross tool
6872 echo "$ac_t""pre-installed" 1>&6
6875 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6876 echo "configure:6877: checking where to find the target cc" >&5
6877 if test "x${build}" != "x${host}" ; then
6878 if expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6879 # We already found the complete path
6880 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6882 # Canadian cross, just use what we found
6883 echo "$ac_t""pre-installed" 1>&6
6887 case " ${configdirs} " in
6892 if test $ok = yes; then
6893 # An in-tree tool is available and we can use it
6894 CC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6895 echo "$ac_t""just compiled" 1>&6
6896 elif expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6897 # We already found the complete path
6898 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6899 elif test "x$target" = "x$host"; then
6900 # We can use an host tool
6901 CC_FOR_TARGET
='$(CC)'
6902 echo "$ac_t""host tool" 1>&6
6904 # We need a cross tool
6905 echo "$ac_t""pre-installed" 1>&6
6908 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6909 echo "configure:6910: checking where to find the target c++" >&5
6910 if test "x${build}" != "x${host}" ; then
6911 if expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6912 # We already found the complete path
6913 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6915 # Canadian cross, just use what we found
6916 echo "$ac_t""pre-installed" 1>&6
6920 case " ${configdirs} " in
6924 case ,${enable_languages}, in
6928 if test $ok = yes; then
6929 # An in-tree tool is available and we can use it
6930 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'
6931 echo "$ac_t""just compiled" 1>&6
6932 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6933 # We already found the complete path
6934 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6935 elif test "x$target" = "x$host"; then
6936 # We can use an host tool
6937 CXX_FOR_TARGET
='$(CXX)'
6938 echo "$ac_t""host tool" 1>&6
6940 # We need a cross tool
6941 echo "$ac_t""pre-installed" 1>&6
6944 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6945 echo "configure:6946: checking where to find the target c++ for libstdc++" >&5
6946 if test "x${build}" != "x${host}" ; then
6947 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6948 # We already found the complete path
6949 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6951 # Canadian cross, just use what we found
6952 echo "$ac_t""pre-installed" 1>&6
6956 case " ${configdirs} " in
6960 case ,${enable_languages}, in
6964 if test $ok = yes; then
6965 # An in-tree tool is available and we can use it
6966 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'
6967 echo "$ac_t""just compiled" 1>&6
6968 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6969 # We already found the complete path
6970 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6971 elif test "x$target" = "x$host"; then
6972 # We can use an host tool
6973 RAW_CXX_FOR_TARGET
='$(CXX)'
6974 echo "$ac_t""host tool" 1>&6
6976 # We need a cross tool
6977 echo "$ac_t""pre-installed" 1>&6
6980 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6981 echo "configure:6982: checking where to find the target dlltool" >&5
6982 if test "x${build}" != "x${host}" ; then
6983 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6984 # We already found the complete path
6985 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6987 # Canadian cross, just use what we found
6988 echo "$ac_t""pre-installed" 1>&6
6992 case " ${configdirs} " in
6997 if test $ok = yes; then
6998 # An in-tree tool is available and we can use it
6999 DLLTOOL_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/dlltool'
7000 echo "$ac_t""just compiled" 1>&6
7001 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
7002 # We already found the complete path
7003 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
7004 elif test "x$target" = "x$host"; then
7005 # We can use an host tool
7006 DLLTOOL_FOR_TARGET
='$(DLLTOOL)'
7007 echo "$ac_t""host tool" 1>&6
7009 # We need a cross tool
7010 echo "$ac_t""pre-installed" 1>&6
7013 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
7014 echo "configure:7015: checking where to find the target gcc" >&5
7015 if test "x${build}" != "x${host}" ; then
7016 if expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
7017 # We already found the complete path
7018 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
7020 # Canadian cross, just use what we found
7021 echo "$ac_t""pre-installed" 1>&6
7025 case " ${configdirs} " in
7030 if test $ok = yes; then
7031 # An in-tree tool is available and we can use it
7032 GCC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
7033 echo "$ac_t""just compiled" 1>&6
7034 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
7035 # We already found the complete path
7036 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
7037 elif test "x$target" = "x$host"; then
7038 # We can use an host tool
7039 GCC_FOR_TARGET
='$()'
7040 echo "$ac_t""host tool" 1>&6
7042 # We need a cross tool
7043 echo "$ac_t""pre-installed" 1>&6
7046 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
7047 echo "configure:7048: checking where to find the target gcj" >&5
7048 if test "x${build}" != "x${host}" ; then
7049 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
7050 # We already found the complete path
7051 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
7053 # Canadian cross, just use what we found
7054 echo "$ac_t""pre-installed" 1>&6
7058 case " ${configdirs} " in
7062 case ,${enable_languages}, in
7066 if test $ok = yes; then
7067 # An in-tree tool is available and we can use it
7068 GCJ_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
7069 echo "$ac_t""just compiled" 1>&6
7070 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
7071 # We already found the complete path
7072 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
7073 elif test "x$target" = "x$host"; then
7074 # We can use an host tool
7075 GCJ_FOR_TARGET
='$(GCJ)'
7076 echo "$ac_t""host tool" 1>&6
7078 # We need a cross tool
7079 echo "$ac_t""pre-installed" 1>&6
7082 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
7083 echo "configure:7084: checking where to find the target gfortran" >&5
7084 if test "x${build}" != "x${host}" ; then
7085 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
7086 # We already found the complete path
7087 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7089 # Canadian cross, just use what we found
7090 echo "$ac_t""pre-installed" 1>&6
7094 case " ${configdirs} " in
7098 case ,${enable_languages}, in
7102 if test $ok = yes; then
7103 # An in-tree tool is available and we can use it
7104 GFORTRAN_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
7105 echo "$ac_t""just compiled" 1>&6
7106 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
7107 # We already found the complete path
7108 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
7109 elif test "x$target" = "x$host"; then
7110 # We can use an host tool
7111 GFORTRAN_FOR_TARGET
='$(GFORTRAN)'
7112 echo "$ac_t""host tool" 1>&6
7114 # We need a cross tool
7115 echo "$ac_t""pre-installed" 1>&6
7118 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
7119 echo "configure:7120: checking where to find the target ld" >&5
7120 if test "x${build}" != "x${host}" ; then
7121 if expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
7122 # We already found the complete path
7123 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7125 # Canadian cross, just use what we found
7126 echo "$ac_t""pre-installed" 1>&6
7130 case " ${configdirs} " in
7135 if test $ok = yes; then
7136 # An in-tree tool is available and we can use it
7137 LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/ld/ld-new'
7138 echo "$ac_t""just compiled" 1>&6
7139 elif expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
7140 # We already found the complete path
7141 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7142 elif test "x$target" = "x$host"; then
7143 # We can use an host tool
7144 LD_FOR_TARGET
='$(LD)'
7145 echo "$ac_t""host tool" 1>&6
7147 # We need a cross tool
7148 echo "$ac_t""pre-installed" 1>&6
7151 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
7152 echo "configure:7153: checking where to find the target lipo" >&5
7153 if test "x${build}" != "x${host}" ; then
7154 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
7155 # We already found the complete path
7156 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7158 # Canadian cross, just use what we found
7159 echo "$ac_t""pre-installed" 1>&6
7162 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
7163 # We already found the complete path
7164 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7165 elif test "x$target" = "x$host"; then
7166 # We can use an host tool
7167 LIPO_FOR_TARGET
='$(LIPO)'
7168 echo "$ac_t""host tool" 1>&6
7170 # We need a cross tool
7171 echo "$ac_t""pre-installed" 1>&6
7174 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
7175 echo "configure:7176: checking where to find the target nm" >&5
7176 if test "x${build}" != "x${host}" ; then
7177 if expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7178 # We already found the complete path
7179 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7181 # Canadian cross, just use what we found
7182 echo "$ac_t""pre-installed" 1>&6
7186 case " ${configdirs} " in
7191 if test $ok = yes; then
7192 # An in-tree tool is available and we can use it
7193 NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7194 echo "$ac_t""just compiled" 1>&6
7195 elif expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7196 # We already found the complete path
7197 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7198 elif test "x$target" = "x$host"; then
7199 # We can use an host tool
7200 NM_FOR_TARGET
='$(NM)'
7201 echo "$ac_t""host tool" 1>&6
7203 # We need a cross tool
7204 echo "$ac_t""pre-installed" 1>&6
7207 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7208 echo "configure:7209: checking where to find the target objdump" >&5
7209 if test "x${build}" != "x${host}" ; then
7210 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7211 # We already found the complete path
7212 echo "$ac_t""pre-installed in `dirname $OBJDUMP_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 OBJDUMP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/objdump'
7227 echo "$ac_t""just compiled" 1>&6
7228 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7229 # We already found the complete path
7230 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7231 elif test "x$target" = "x$host"; then
7232 # We can use an host tool
7233 OBJDUMP_FOR_TARGET
='$(OBJDUMP)'
7234 echo "$ac_t""host tool" 1>&6
7236 # We need a cross tool
7237 echo "$ac_t""pre-installed" 1>&6
7240 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7241 echo "configure:7242: checking where to find the target ranlib" >&5
7242 if test "x${build}" != "x${host}" ; then
7243 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7244 # We already found the complete path
7245 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7247 # Canadian cross, just use what we found
7248 echo "$ac_t""pre-installed" 1>&6
7252 case " ${configdirs} " in
7257 if test $ok = yes; then
7258 # An in-tree tool is available and we can use it
7259 RANLIB_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7260 echo "$ac_t""just compiled" 1>&6
7261 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7262 # We already found the complete path
7263 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7264 elif test "x$target" = "x$host"; then
7265 # We can use an host tool
7266 RANLIB_FOR_TARGET
='$(RANLIB)'
7267 echo "$ac_t""host tool" 1>&6
7269 # We need a cross tool
7270 echo "$ac_t""pre-installed" 1>&6
7273 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7274 echo "configure:7275: checking where to find the target strip" >&5
7275 if test "x${build}" != "x${host}" ; then
7276 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7277 # We already found the complete path
7278 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7280 # Canadian cross, just use what we found
7281 echo "$ac_t""pre-installed" 1>&6
7285 case " ${configdirs} " in
7290 if test $ok = yes; then
7291 # An in-tree tool is available and we can use it
7292 STRIP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/strip'
7293 echo "$ac_t""just compiled" 1>&6
7294 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7295 # We already found the complete path
7296 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7297 elif test "x$target" = "x$host"; then
7298 # We can use an host tool
7299 STRIP_FOR_TARGET
='$(STRIP)'
7300 echo "$ac_t""host tool" 1>&6
7302 # We need a cross tool
7303 echo "$ac_t""pre-installed" 1>&6
7306 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7307 echo "configure:7308: checking where to find the target windres" >&5
7308 if test "x${build}" != "x${host}" ; then
7309 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7310 # We already found the complete path
7311 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7313 # Canadian cross, just use what we found
7314 echo "$ac_t""pre-installed" 1>&6
7318 case " ${configdirs} " in
7323 if test $ok = yes; then
7324 # An in-tree tool is available and we can use it
7325 WINDRES_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/windres'
7326 echo "$ac_t""just compiled" 1>&6
7327 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7328 # We already found the complete path
7329 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7330 elif test "x$target" = "x$host"; then
7331 # We can use an host tool
7332 WINDRES_FOR_TARGET
='$(WINDRES)'
7333 echo "$ac_t""host tool" 1>&6
7335 # We need a cross tool
7336 echo "$ac_t""pre-installed" 1>&6
7343 # Certain tools may need extra flags.
7344 AR_FOR_TARGET
=${AR_FOR_TARGET}${extra_arflags_for_target}
7345 RANLIB_FOR_TARGET
=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7346 NM_FOR_TARGET
=${NM_FOR_TARGET}${extra_nmflags_for_target}
7348 # When building target libraries, except in a Canadian cross, we use
7349 # the same toolchain as the compiler we just built.
7350 COMPILER_AS_FOR_TARGET
='$(AS_FOR_TARGET)'
7351 COMPILER_LD_FOR_TARGET
='$(LD_FOR_TARGET)'
7352 COMPILER_NM_FOR_TARGET
='$(NM_FOR_TARGET)'
7353 if test $host = $build; then
7354 case " $configdirs " in
7356 COMPILER_AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/as'
7357 COMPILER_LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7358 COMPILER_NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7367 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7368 echo "configure:7369: checking whether to enable maintainer-specific portions of Makefiles" >&5
7369 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7370 if test "${enable_maintainer_mode+set}" = set; then
7371 enableval
="$enable_maintainer_mode"
7372 USE_MAINTAINER_MODE
=$enableval
7374 USE_MAINTAINER_MODE
=no
7377 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7380 if test "$USE_MAINTAINER_MODE" = yes; then
7381 MAINTAINER_MODE_TRUE
=
7382 MAINTAINER_MODE_FALSE
='#'
7384 MAINTAINER_MODE_TRUE
='#'
7385 MAINTAINER_MODE_FALSE
=
7387 MAINT
=$MAINTAINER_MODE_TRUE
7389 # ---------------------
7390 # GCC bootstrap support
7391 # ---------------------
7393 # Stage specific cflags for build.
7398 yes) stage1_cflags
="-g -Wa,-J" ;;
7399 *) stage1_cflags
="-g -J" ;;
7402 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7403 # sources; use -no-cpp-precomp to get to GNU cpp.
7404 # Apple's GCC has bugs in designated initializer handling, so disable
7406 stage1_cflags
="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7410 # LLVM LOCAL begin - LLVM uses inlined functions
7412 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7413 if test "$GCC" = yes; then
7414 saved_CFLAGS
="$CFLAGS"
7416 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
7417 CFLAGS
="$CFLAGS -fkeep-inline-functions"
7418 echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
7419 echo "configure:7420: checking whether -fkeep-inline-functions is supported" >&5
7420 cat > conftest.
$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7424 #if (__GNUC__ < 3) \
7425 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
7426 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
7427 #error http://gcc.gnu.org/PR29382
7434 if { (eval echo configure
:7435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7436 echo "$ac_t""yes" 1>&6; stage1_cflags
="$stage1_cflags -fkeep-inline-functions"
7438 echo "configure: failed program was:" >&5
7439 cat conftest.
$ac_ext >&5
7441 echo "$ac_t""no" 1>&6
7445 CFLAGS
="$saved_CFLAGS"
7448 # LLVM LOCAL end - LLVM uses inlined functions.
7452 # Enable --enable-checking in stage1 of the compiler.
7453 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
7454 if test "${enable_stage1_checking+set}" = set; then
7455 enableval
="$enable_stage1_checking"
7456 stage1_checking
=--enable-checking=${enable_stage1_checking}
7458 if test "x$enable_checking" = xno
; then
7459 # LLVM LOCAL begin - don't enable checking when we meant to disable it
7460 stage1_checking
=--disable-checking
7461 # LLVM LOCAL end - don't enable checking when we meant to disable it
7463 stage1_checking
=--enable-checking${enable_checking+=}$enable_checking
7469 # Enable -Werror in bootstrap stage2 and later.
7470 # Check whether --enable-werror or --disable-werror was given.
7471 if test "${enable_werror+set}" = set; then
7472 enableval
="$enable_werror"
7475 if test -d gcc
&& test x
"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental
; then
7482 case ${enable_werror} in
7483 yes) stage2_werror_flag
="--enable-werror-always" ;;
7484 *) stage2_werror_flag
="" ;;
7488 # Flags needed to enable html installing and building
7489 # Check whether --with-datarootdir or --without-datarootdir was given.
7490 if test "${with_datarootdir+set}" = set; then
7491 withval
="$with_datarootdir"
7492 datarootdir
="\${prefix}/${withval}"
7494 datarootdir
="\${prefix}/share"
7498 # Check whether --with-docdir or --without-docdir was given.
7499 if test "${with_docdir+set}" = set; then
7500 withval
="$with_docdir"
7501 docdir
="\${prefix}/${withval}"
7503 docdir
="\${datarootdir}/doc"
7507 # Check whether --with-htmldir or --without-htmldir was given.
7508 if test "${with_htmldir+set}" = set; then
7509 withval
="$with_htmldir"
7510 htmldir
="\${prefix}/${withval}"
7512 htmldir
="\${docdir}"
7521 cat > confcache
<<\EOF
7522 # This file is a shell script that caches the results of configure
7523 # tests run on this system so they can be shared between configure
7524 # scripts and configure runs. It is not useful on other systems.
7525 # If it contains results you don't want to keep, you may remove or edit it.
7527 # By default, configure uses ./config.cache as the cache file,
7528 # creating it if it does not exist already. You can give configure
7529 # the --cache-file=FILE option to use a different cache file; that is
7530 # what configure does when it calls configure scripts in
7531 # subdirectories, so they share the cache.
7532 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7533 # config.status only pays attention to the cache file if you give it the
7534 # --recheck option to rerun configure.
7537 # The following way of writing the cache mishandles newlines in values,
7538 # but we know of no workaround that is simple, portable, and efficient.
7539 # So, don't put newlines in cache variables' values.
7540 # Ultrix sh set writes to stderr and can't be redirected directly,
7541 # and sets the high bit in the cache file unless we assign to the vars.
7543 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7545 # `set' does not quote correctly, so add quotes (double-quote substitution
7546 # turns \\\\ into \\, and sed turns \\ into \).
7548 -e "s/'/'\\\\''/g" \
7549 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7552 # `set' quotes correctly as required by POSIX, so do not add quotes.
7553 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7556 if cmp -s $cache_file confcache
; then
7559 if test -w $cache_file; then
7560 echo "updating cache $cache_file"
7561 cat confcache
> $cache_file
7563 echo "not updating unwritable cache $cache_file"
7568 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7570 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7571 # Let make expand exec_prefix.
7572 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7574 # Any assignment to VPATH causes Sun make to only execute
7575 # the first set of double-colon rules, so remove it if not needed.
7576 # If there is a colon in the path, we need to keep it.
7577 if test "x$srcdir" = x.
; then
7578 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7581 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7583 # Transform confdefs.h into DEFS.
7584 # Protect against shell expansion while executing Makefile rules.
7585 # Protect against Makefile macro expansion.
7586 cat > conftest.defs
<<\EOF
7587 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7588 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7593 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
7597 # Without the "./", some shells look in PATH for config.status.
7598 : ${CONFIG_STATUS=./config.status}
7600 echo creating $CONFIG_STATUS
7601 rm -f $CONFIG_STATUS
7602 cat > $CONFIG_STATUS <<EOF
7604 # Generated automatically by configure.
7605 # Run this file to recreate the current configuration.
7606 # This directory was configured as follows,
7607 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
7609 # $0 $ac_configure_args
7611 # Compiler output produced by configure, useful for debugging
7612 # configure, is in ./config.log if it exists.
7614 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7617 case "\$ac_option" in
7618 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7619 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7620 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7621 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7622 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7624 -help | --help | --hel | --he | --h)
7625 echo "\$ac_cs_usage"; exit 0 ;;
7626 *) echo "\$ac_cs_usage"; exit 1 ;;
7630 ac_given_srcdir=$srcdir
7631 ac_given_INSTALL="$INSTALL"
7633 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7635 cat >> $CONFIG_STATUS <<EOF
7637 # Protect against being on the right side of a sed subst in config.status.
7638 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7639 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7643 s%@CFLAGS@%$CFLAGS%g
7644 s%@CPPFLAGS@%$CPPFLAGS%g
7645 s%@CXXFLAGS@%$CXXFLAGS%g
7646 s%@FFLAGS@%$FFLAGS%g
7648 s%@LDFLAGS@%$LDFLAGS%g
7650 s%@exec_prefix@%$exec_prefix%g
7651 s%@prefix@%$prefix%g
7652 s%@program_transform_name@%$program_transform_name%g
7653 s%@bindir@%$bindir%g
7654 s%@sbindir@%$sbindir%g
7655 s%@libexecdir@%$libexecdir%g
7656 s%@datadir@%$datadir%g
7657 s%@sysconfdir@%$sysconfdir%g
7658 s%@sharedstatedir@%$sharedstatedir%g
7659 s%@localstatedir@%$localstatedir%g
7660 s%@libdir@%$libdir%g
7661 s%@includedir@%$includedir%g
7662 s%@oldincludedir@%$oldincludedir%g
7663 s%@infodir@%$infodir%g
7664 s%@mandir@%$mandir%g
7666 s%@host_alias@%$host_alias%g
7667 s%@host_cpu@%$host_cpu%g
7668 s%@host_vendor@%$host_vendor%g
7669 s%@host_os@%$host_os%g
7670 s%@target@%$target%g
7671 s%@target_alias@%$target_alias%g
7672 s%@target_cpu@%$target_cpu%g
7673 s%@target_vendor@%$target_vendor%g
7674 s%@target_os@%$target_os%g
7676 s%@build_alias@%$build_alias%g
7677 s%@build_cpu@%$build_cpu%g
7678 s%@build_vendor@%$build_vendor%g
7679 s%@build_os@%$build_os%g
7680 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7681 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7682 s%@INSTALL_DATA@%$INSTALL_DATA%g
7685 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7686 s%@build_libsubdir@%$build_libsubdir%g
7687 s%@build_subdir@%$build_subdir%g
7688 s%@host_subdir@%$host_subdir%g
7689 s%@target_subdir@%$target_subdir%g
7691 s%@GNATBIND@%$GNATBIND%g
7692 s%@do_compare@%$do_compare%g
7693 s%@gmplibs@%$gmplibs%g
7694 s%@gmpinc@%$gmpinc%g
7695 s%@stage1_languages@%$stage1_languages%g
7696 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7697 /@serialization_dependencies@/r $serialization_dependencies
7698 s%@serialization_dependencies@%%g
7699 /@host_makefile_frag@/r $host_makefile_frag
7700 s%@host_makefile_frag@%%g
7701 /@target_makefile_frag@/r $target_makefile_frag
7702 s%@target_makefile_frag@%%g
7703 /@alphaieee_frag@/r $alphaieee_frag
7704 s%@alphaieee_frag@%%g
7705 /@ospace_frag@/r $ospace_frag
7707 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7708 s%@tooldir@%$tooldir%g
7709 s%@build_tooldir@%$build_tooldir%g
7710 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7711 s%@GDB_TK@%$GDB_TK%g
7712 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7713 s%@build_configargs@%$build_configargs%g
7714 s%@build_configdirs@%$build_configdirs%g
7715 s%@host_configargs@%$host_configargs%g
7716 s%@configdirs@%$configdirs%g
7717 s%@target_configargs@%$target_configargs%g
7718 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7719 s%@config_shell@%$config_shell%g
7725 s%@MAKEINFO@%$MAKEINFO%g
7726 s%@EXPECT@%$EXPECT%g
7727 s%@RUNTEST@%$RUNTEST%g
7730 s%@DLLTOOL@%$DLLTOOL%g
7734 s%@RANLIB@%$RANLIB%g
7736 s%@WINDRES@%$WINDRES%g
7737 s%@OBJCOPY@%$OBJCOPY%g
7738 s%@OBJDUMP@%$OBJDUMP%g
7740 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7741 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7742 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7743 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7744 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7745 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7746 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7747 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7748 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7749 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7750 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7751 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7752 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7753 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7754 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7755 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7756 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7757 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7758 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7759 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7760 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7761 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7762 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7764 s%@stage1_cflags@%$stage1_cflags%g
7765 s%@stage1_checking@%$stage1_checking%g
7766 s%@stage2_werror_flag@%$stage2_werror_flag%g
7767 s%@datarootdir@%$datarootdir%g
7768 s%@docdir@%$docdir%g
7769 s%@htmldir@%$htmldir%g
7774 cat >> $CONFIG_STATUS <<\EOF
7776 # Split the substitutions into bite-sized pieces for seds with
7777 # small command number limits, like on Digital OSF/1 and HP-UX.
7778 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7779 ac_file=1 # Number of current file.
7780 ac_beg=1 # First line for current file.
7781 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7784 while $ac_more_lines; do
7785 if test $ac_beg -gt 1; then
7786 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7788 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7790 if test ! -s conftest.s$ac_file; then
7792 rm -f conftest.s$ac_file
7794 if test -z "$ac_sed_cmds"; then
7795 ac_sed_cmds="sed -f conftest.s$ac_file"
7797 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7799 ac_file=`expr $ac_file + 1`
7801 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7804 if test -z "$ac_sed_cmds"; then
7809 cat >> $CONFIG_STATUS <<EOF
7811 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7813 cat >> $CONFIG_STATUS <<\EOF
7814 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7815 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7817 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
7818 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
7819 *) ac_file_in="${ac_file}.in" ;;
7822 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7824 # Remove last slash and all that follows it. Not all systems have dirname.
7825 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7826 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7827 # The file is in a subdirectory.
7828 test ! -d "$ac_dir" && mkdir "$ac_dir"
7829 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
7830 # A "../" for each directory in $ac_dir_suffix.
7831 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
7833 ac_dir_suffix= ac_dots=
7836 case "$ac_given_srcdir" in
7838 if test -z "$ac_dots"; then top_srcdir=.
7839 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
7840 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7842 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7843 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7846 case "$ac_given_INSTALL" in
7847 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7848 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7851 echo creating "$ac_file"
7853 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
7855 *Makefile*) ac_comsub="1i\\
7856 # $configure_input" ;;
7860 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7862 s%@configure_input@%$configure_input%g
7863 s%@srcdir@%$srcdir%g
7864 s%@top_srcdir@%$top_srcdir%g
7865 s%@INSTALL@%$INSTALL%g
7866 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7871 cat >> $CONFIG_STATUS <<EOF
7874 cat >> $CONFIG_STATUS <<\EOF
7878 chmod +x $CONFIG_STATUS
7879 rm -fr confdefs* $ac_clean_files
7880 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1