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 Specify source directory for MPFR library"
23 --with-mpfr=PATH Specify directory for installed MPFR library"
25 --with-gmp-dir=PATH Specify source directory for GMP library"
27 --with-gmp=PATH Specify directory for installed GMP library"
29 --enable-objc-gc enable the use of Boehm's garbage collector with
30 the GNU Objective-C runtime."
32 --with-build-sysroot=sysroot
33 use sysroot as the system root during the build"
35 --enable-bootstrap Enable bootstrapping [yes if native build]"
37 --enable-serial-[{host,target,build}-]configure
38 Force sequential configuration of
39 sub-packages for the host, target or build
40 machine, or all sub-packages"
42 --with-build-time-tools=path
43 use given path to find target tools during the build"
45 --enable-maintainer-mode enable make rules and dependencies not useful
46 (and sometimes confusing) to the casual installer"
48 --enable-werror enable -Werror in bootstrap stage2 and later"
50 --with-datarootdir Use datarootdir as the data root directory."
52 --with-docdir Install documentation in this directory."
54 --with-htmldir Install html in this directory."
56 # Initialize some variables set by options.
57 # The variables have the same names as the options, with
58 # dashes changed to underlines.
60 cache_file
=.
/config.cache
69 program_transform_name
=s
,x
,x
,
77 bindir
='${exec_prefix}/bin'
78 sbindir
='${exec_prefix}/sbin'
79 libexecdir
='${exec_prefix}/libexec'
80 datadir
='${prefix}/share'
81 sysconfdir
='${prefix}/etc'
82 sharedstatedir
='${prefix}/com'
83 localstatedir
='${prefix}/var'
84 libdir
='${exec_prefix}/lib'
85 includedir
='${prefix}/include'
86 oldincludedir
='/usr/include'
87 infodir
='${prefix}/info'
88 mandir
='${prefix}/man'
90 # Initialize some other variables.
93 SHELL
=${CONFIG_SHELL-/bin/sh}
94 # Maximum number of lines to put in a shell here document.
101 # If the previous option needs an argument, assign it.
102 if test -n "$ac_prev"; then
103 eval "$ac_prev=\$ac_option"
109 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 # Accept the important Cygnus configure options, so we can diagnose typos.
117 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
119 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
120 bindir
="$ac_optarg" ;;
122 -build |
--build |
--buil |
--bui |
--bu)
124 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
125 build
="$ac_optarg" ;;
127 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
128 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
129 ac_prev
=cache_file
;;
130 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
131 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
132 cache_file
="$ac_optarg" ;;
134 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
136 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
138 datadir
="$ac_optarg" ;;
140 -disable-* |
--disable-*)
141 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}=no" ;;
149 -enable-* |
--enable-*)
150 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}='$ac_optarg'" ;;
162 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
163 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
164 |
--exec |
--exe |
--ex)
165 ac_prev
=exec_prefix
;;
166 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
167 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
168 |
--exec=* |
--exe=* |
--ex=*)
169 exec_prefix
="$ac_optarg" ;;
171 -gas |
--gas |
--ga |
--g)
172 # Obsolete; use --with-gas.
175 -help |
--help |
--hel |
--he)
176 # Omit some internal or obsolete options to make the list less imposing.
177 # This message is too long to be a string in the A/UX 3.1 sh.
179 Usage: configure [options] [host]
180 Options: [defaults in brackets after descriptions]
182 --cache-file=FILE cache test results in FILE
183 --help print this message
184 --no-create do not create output files
185 --quiet, --silent do not print \`checking...' messages
186 --version print the version of autoconf that created configure
187 Directory and file names:
188 --prefix=PREFIX install architecture-independent files in PREFIX
190 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
192 --bindir=DIR user executables in DIR [EPREFIX/bin]
193 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
194 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
195 --datadir=DIR read-only architecture-independent data in DIR
197 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
198 --sharedstatedir=DIR modifiable architecture-independent data in DIR
200 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
201 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
202 --includedir=DIR C header files in DIR [PREFIX/include]
203 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
204 --infodir=DIR info documentation in DIR [PREFIX/info]
205 --mandir=DIR man documentation in DIR [PREFIX/man]
206 --srcdir=DIR find the sources in DIR [configure dir or ..]
207 --program-prefix=PREFIX prepend PREFIX to installed program names
208 --program-suffix=SUFFIX append SUFFIX to installed program names
209 --program-transform-name=PROGRAM
210 run sed PROGRAM on installed program names
214 --build=BUILD configure for building on BUILD [BUILD=HOST]
215 --host=HOST configure for HOST [guessed]
216 --target=TARGET configure for TARGET [TARGET=HOST]
217 Features and packages:
218 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
219 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
220 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
221 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
222 --x-includes=DIR X include files are in DIR
223 --x-libraries=DIR X library files are in DIR
225 if test -n "$ac_help"; then
226 echo "--enable and --with options recognized:$ac_help"
230 -host |
--host |
--hos |
--ho)
232 -host=* |
--host=* |
--hos=* |
--ho=*)
235 -includedir |
--includedir |
--includedi |
--included |
--include \
236 |
--includ |
--inclu |
--incl |
--inc)
237 ac_prev
=includedir
;;
238 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
239 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
240 includedir
="$ac_optarg" ;;
242 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
244 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
245 infodir
="$ac_optarg" ;;
247 -libdir |
--libdir |
--libdi |
--libd)
249 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
250 libdir
="$ac_optarg" ;;
252 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
253 |
--libexe |
--libex |
--libe)
254 ac_prev
=libexecdir
;;
255 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
256 |
--libexe=* |
--libex=* |
--libe=*)
257 libexecdir
="$ac_optarg" ;;
259 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
260 |
--localstate |
--localstat |
--localsta |
--localst \
261 |
--locals |
--local |
--loca |
--loc |
--lo)
262 ac_prev
=localstatedir
;;
263 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
264 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
265 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
266 localstatedir
="$ac_optarg" ;;
268 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
270 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
271 mandir
="$ac_optarg" ;;
274 # Obsolete; use --without-fp.
277 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
281 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
282 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
285 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
286 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
287 |
--oldin |
--oldi |
--old |
--ol |
--o)
288 ac_prev
=oldincludedir
;;
289 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
290 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
291 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
292 oldincludedir
="$ac_optarg" ;;
294 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
296 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
297 prefix
="$ac_optarg" ;;
299 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
300 |
--program-pre |
--program-pr |
--program-p)
301 ac_prev
=program_prefix
;;
302 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
303 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
304 program_prefix
="$ac_optarg" ;;
306 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
307 |
--program-suf |
--program-su |
--program-s)
308 ac_prev
=program_suffix
;;
309 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
310 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
311 program_suffix
="$ac_optarg" ;;
313 -program-transform-name |
--program-transform-name \
314 |
--program-transform-nam |
--program-transform-na \
315 |
--program-transform-n |
--program-transform- \
316 |
--program-transform |
--program-transfor \
317 |
--program-transfo |
--program-transf \
318 |
--program-trans |
--program-tran \
319 |
--progr-tra |
--program-tr |
--program-t)
320 ac_prev
=program_transform_name
;;
321 -program-transform-name=* |
--program-transform-name=* \
322 |
--program-transform-nam=* |
--program-transform-na=* \
323 |
--program-transform-n=* |
--program-transform-=* \
324 |
--program-transform=* |
--program-transfor=* \
325 |
--program-transfo=* |
--program-transf=* \
326 |
--program-trans=* |
--program-tran=* \
327 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
328 program_transform_name
="$ac_optarg" ;;
330 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
331 |
-silent |
--silent |
--silen |
--sile |
--sil)
334 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
336 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
338 sbindir
="$ac_optarg" ;;
340 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
341 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
342 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
344 ac_prev
=sharedstatedir
;;
345 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
346 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
347 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
349 sharedstatedir
="$ac_optarg" ;;
351 -site |
--site |
--sit)
353 -site=* |
--site=* |
--sit=*)
356 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
358 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
359 srcdir
="$ac_optarg" ;;
361 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
362 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
363 ac_prev
=sysconfdir
;;
364 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
365 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
366 sysconfdir
="$ac_optarg" ;;
368 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
370 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
371 target
="$ac_optarg" ;;
373 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
376 -version |
--version |
--versio |
--versi |
--vers)
377 echo "configure generated by autoconf version 2.13"
381 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package
=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}='$ac_optarg'" ;;
393 -without-* |
--without-*)
394 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package
=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}=no" ;;
403 # Obsolete; use --with-x.
406 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
407 |
--x-incl |
--x-inc |
--x-in |
--x-i)
408 ac_prev
=x_includes
;;
409 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
410 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
411 x_includes
="$ac_optarg" ;;
413 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
414 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
415 ac_prev
=x_libraries
;;
416 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
417 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
418 x_libraries
="$ac_optarg" ;;
420 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
424 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
425 echo "configure: warning: $ac_option: invalid host type" 1>&2
427 if test "x$nonopt" != xNONE
; then
428 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
436 if test -n "$ac_prev"; then
437 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
442 # File descriptor usage:
445 # 2 errors and warnings
446 # 3 some systems may open it to /dev/tty
447 # 4 used on the Kubota Titan
448 # 6 checking for... messages and results
449 # 5 compiler messages saved in config.log
450 if test "$silent" = yes; then
458 This file contains any messages produced by compilers while
459 running configure, to aid debugging if configure makes a mistake.
462 # Strip out --no-create and --no-recursion so they do not pile up.
463 # Also quote any args containing shell metacharacters.
468 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
469 |
--no-cr |
--no-c) ;;
470 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
471 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
472 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
473 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
474 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
479 # Only set these to C if already set. These must not be set unconditionally
480 # because not all systems understand e.g. LANG=C (notably SCO).
481 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
482 # Non-C LC_CTYPE values break the ctype check.
483 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
484 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
485 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
486 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
489 rm -rf conftest
* confdefs.h
490 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
493 # A filename unique to this package, relative to the directory that
494 # configure is in, which we can look for to find out if srcdir is correct.
495 ac_unique_file
=move-if-change
497 # Find the source files, if location was not specified.
498 if test -z "$srcdir"; then
499 ac_srcdir_defaulted
=yes
500 # Try the directory containing this script, then its parent.
502 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
503 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
505 if test ! -r $srcdir/$ac_unique_file; then
509 ac_srcdir_defaulted
=no
511 if test ! -r $srcdir/$ac_unique_file; then
512 if test "$ac_srcdir_defaulted" = yes; then
513 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
515 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
518 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
520 # Prefer explicitly selected file to automatically selected ones.
521 if test -z "$CONFIG_SITE"; then
522 if test "x$prefix" != xNONE
; then
523 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
525 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
528 for ac_site_file
in $CONFIG_SITE; do
529 if test -r "$ac_site_file"; then
530 echo "loading site script $ac_site_file"
535 if test -r "$cache_file"; then
536 echo "loading cache $cache_file"
539 echo "creating cache $cache_file"
544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
545 ac_cpp
='$CPP $CPPFLAGS'
546 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
547 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
548 cross_compiling
=$ac_cv_prog_cc_cross
552 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
553 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
561 ac_n
= ac_c
='\c' ac_t
=
567 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
568 if test -f $ac_dir/install-sh
; then
570 ac_install_sh
="$ac_aux_dir/install-sh -c"
572 elif test -f $ac_dir/install.sh
; then
574 ac_install_sh
="$ac_aux_dir/install.sh -c"
578 if test -z "$ac_aux_dir"; then
579 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
581 ac_config_guess
=$ac_aux_dir/config.guess
582 ac_config_sub
=$ac_aux_dir/config.sub
583 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
586 # Do some error checking and defaulting for the host and target type.
588 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
591 # 1. You are not allowed to specify --host, --target, and nonopt at the
593 # 2. Host defaults to nonopt.
594 # 3. If nonopt is not specified, then host defaults to the current host,
595 # as determined by config.guess.
596 # 4. Target and build default to nonopt.
597 # 5. If nonopt is not specified, then target and build default to host.
599 # The aliases save the names the user supplied, while $host etc.
600 # will get canonicalized.
601 case $host---$target---$nonopt in
602 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
603 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
607 # Make sure we can run config.sub.
608 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
609 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
612 echo $ac_n "checking host system type""... $ac_c" 1>&6
613 echo "configure:614: checking host system type" >&5
616 case "$host_alias" in
620 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
621 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
623 *) host_alias
=$nonopt ;;
627 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
628 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
629 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
630 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
631 echo "$ac_t""$host" 1>&6
633 echo $ac_n "checking target system type""... $ac_c" 1>&6
634 echo "configure:635: checking target system type" >&5
637 case "$target_alias" in
640 NONE
) target_alias
=$host_alias ;;
641 *) target_alias
=$nonopt ;;
645 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
646 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
647 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
648 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
649 echo "$ac_t""$target" 1>&6
651 echo $ac_n "checking build system type""... $ac_c" 1>&6
652 echo "configure:653: checking build system type" >&5
655 case "$build_alias" in
658 NONE
) build_alias
=$host_alias ;;
659 *) build_alias
=$nonopt ;;
663 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
664 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
667 echo "$ac_t""$build" 1>&6
669 test "$host_alias" != "$target_alias" &&
670 test "$program_prefix$program_suffix$program_transform_name" = \
672 program_prefix
=${target_alias}-
674 if test "$program_transform_name" = s
,x
,x
,; then
675 program_transform_name
=
677 # Double any \ or $. echo might interpret backslashes.
678 cat <<\EOF_SED
> conftestsed
679 s
,\\,\\\\,g
; s
,\$
,$$
,g
681 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
684 test "$program_prefix" != NONE
&&
685 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
686 # Use a double $ so make ignores it.
687 test "$program_suffix" != NONE
&&
688 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
690 # sed with no file args requires a program.
691 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
694 # Get 'install' or 'install-sh' and its variants.
695 # Find a good install program. We prefer a C program (faster),
696 # so one script is as good as another. But avoid the broken or
697 # incompatible versions:
698 # SysV /etc/install, /usr/sbin/install
699 # SunOS /usr/etc/install
702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
705 # ./install, which can be erroneously created by make from ./install.sh.
706 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
707 echo "configure:708: checking for a BSD compatible install" >&5
708 if test -z "$INSTALL"; then
709 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
710 echo $ac_n "(cached) $ac_c" 1>&6
712 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
713 for ac_dir
in $PATH; do
714 # Account for people who put trailing slashes in PATH elements.
716 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
718 # OSF1 and SCO ODT 3.0 have their own names for install.
719 # Don't use installbsd from OSF since it installs stuff as root
721 for ac_prog
in ginstall scoinst
install; do
722 if test -f $ac_dir/$ac_prog; then
723 if test $ac_prog = install &&
724 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
725 # AIX install. It has an incompatible calling convention.
728 ac_cv_path_install
="$ac_dir/$ac_prog -c"
739 if test "${ac_cv_path_install+set}" = set; then
740 INSTALL
="$ac_cv_path_install"
742 # As a last resort, use the slow shell script. We don't cache a
743 # path for INSTALL within a source directory, because that will
744 # break other packages using the cache if that directory is
745 # removed, or if the path is relative.
746 INSTALL
="$ac_install_sh"
749 echo "$ac_t""$INSTALL" 1>&6
751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
752 # It thinks the first close brace ends the variable substitution.
753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
757 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
759 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
760 echo "configure:761: checking whether ln works" >&5
761 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
766 if ln conftestdata_f conftestdata_t
2>/dev
/null
772 rm -f conftestdata_f conftestdata_t
775 if test $acx_cv_prog_LN = no
; then
777 echo "$ac_t""no, using $LN" 1>&6
780 echo "$ac_t""yes" 1>&6
783 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
784 echo "configure:785: checking whether ln -s works" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
789 if ln -s X conftestdata
2>/dev
/null
792 ac_cv_prog_LN_S
="ln -s"
797 LN_S
="$ac_cv_prog_LN_S"
798 if test "$ac_cv_prog_LN_S" = "ln -s"; then
799 echo "$ac_t""yes" 1>&6
801 echo "$ac_t""no" 1>&6
805 ### we might need to use some other shell than /bin/sh for running subshells
806 ### If we are on Windows, search for the shell. This will permit people
807 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
808 ### without also having to set CONFIG_SHELL. This code will work when
809 ### using bash, which sets OSTYPE.
812 if test x
${CONFIG_SHELL} = x
; then
813 if test ! -f /bin
/sh
; then
814 if test x
${SHELL} != x
&& test -f ${SHELL} ; then
815 CONFIG_SHELL
=${SHELL}
818 for prog
in sh sh.exe bash bash.exe
; do
819 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
821 test -z "$dir" && dir
=.
822 if test -f $dir/$prog; then
823 CONFIG_SHELL
=$dir/$prog
829 test -n "${CONFIG_SHELL}" && break
837 config_shell
=${CONFIG_SHELL-/bin/sh}
840 # if PWD already has a value, it is probably wrong.
841 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
843 # Export original configure arguments for use by sub-configures. These
844 # will be expanded by make, so quote '$'.
846 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
849 TOPLEVEL_CONFIGURE_ARGUMENTS
=`cat conftestsed.out`
850 rm -f conftestsed.out
853 moveifchange
=${srcdir}/move-if-change
855 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
857 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
859 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
860 INSTALL
="${srcpwd}/install-sh -c"
863 # Set srcdir to "." if that's what it is.
864 # This is important for multilib support.
866 if test "${pwd}" = "${srcpwd}" ; then
874 ### To add a new directory to the tree, first choose whether it is a target
875 ### or a host dependent tool. Then put it into the appropriate list
876 ### (library or tools, host or target), doing a dependency sort.
878 # Subdirs will be configured in the order listed in build_configdirs,
879 # configdirs, or target_configdirs; see the serialization section below.
881 # Dependency sorting is only needed when *configuration* must be done in
882 # a particular order. In all cases a dependency should be specified in
883 # the Makefile, whether or not it's implicitly specified here.
885 # Double entries in build_configdirs, configdirs, or target_configdirs may
886 # cause circular dependencies and break everything horribly.
888 # these library is used by various programs built for the build
891 build_libs
="build-libiberty"
893 # these tools are built for the build environment
894 build_tools
="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
896 # these libraries are used by various programs built for the host environment
898 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
900 # these tools are built for the host environment
901 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
902 # know that we are building the simulator.
903 # binutils, gas and ld appear in that order because it makes sense to run
904 # "make check" in that particular order.
905 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"
907 # libgcj represents the runtime libraries only used by gcj.
908 libgcj
="target-libffi \
913 # these libraries are built for the target environment, and are built after
914 # the host libraries and the host tools (which may be a cross compiler)
916 target_libraries
="target-libiberty \
919 target-libstdc++-v3 \
929 # these tools are built using the target libraries, and are intended to
930 # run only in the target environment
932 # note: any program that *uses* libraries that are in the "target_libraries"
933 # list belongs in this list. those programs are also very likely
934 # candidates for the "native_only" list which follows
936 target_tools
="target-examples target-groff target-gperf target-rda"
938 ################################################################################
940 ## All tools belong in one of the four categories, and are assigned above
941 ## We assign ${configdirs} this way to remove all embedded newlines. This
942 ## is important because configure will choke if they ever get through.
943 ## ${configdirs} is directories we build using the host tools.
944 ## ${target_configdirs} is directories we build using the target tools.
945 configdirs
=`echo ${host_libs} ${host_tools}`
946 target_configdirs
=`echo ${target_libraries} ${target_tools}`
947 build_configdirs
=`echo ${build_libs} ${build_tools}`
949 ################################################################################
951 srcname
="gnu development package"
953 # This gets set non-empty for some net releases of packages.
956 # Define is_cross_compiler to save on calls to 'test'.
958 if test x
"${host}" = x
"${target}" ; then
961 is_cross_compiler
=yes
964 # Find the build and target subdir names.
965 case ${build_alias} in
966 "") build_noncanonical
=${build} ;;
967 *) build_noncanonical
=${build_alias} ;;
970 case ${host_alias} in
971 "") host_noncanonical
=${build_noncanonical} ;;
972 *) host_noncanonical
=${host_alias} ;;
975 case ${target_alias} in
976 "") target_noncanonical
=${host_noncanonical} ;;
977 *) target_noncanonical
=${target_alias} ;;
981 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
982 # have matching libraries, they should use host libraries: Makefile.tpl
983 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
984 # However, they still use the build modules, because the corresponding
985 # host modules (e.g. bison) are only built for the host when bootstrap
987 # - build_subdir is where we find build modules, and never changes.
988 # - build_libsubdir is where we find build libraries, and can be overridden.
990 # Prefix 'build-' so this never conflicts with target_subdir.
991 build_subdir
="build-${build_noncanonical}"
992 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
993 if test "${with_build_libsubdir+set}" = set; then
994 withval
="$with_build_libsubdir"
995 build_libsubdir
="$withval"
997 build_libsubdir
="$build_subdir"
1000 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1001 if ( test $srcdir = .
&& test -d gcc
) \
1002 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
1003 host_subdir
="host-${host_noncanonical}"
1008 target_subdir
=${target_noncanonical}
1011 # Skipdirs are removed silently.
1013 # Noconfigdirs are removed loudly.
1017 # Make sure we don't let GNU ld be added if we didn't want it.
1018 if test x
$with_gnu_ld = xno
; then
1020 noconfigdirs
="$noconfigdirs ld"
1024 # Make sure we don't let GNU as be added if we didn't want it.
1025 if test x
$with_gnu_as = xno
; then
1027 noconfigdirs
="$noconfigdirs gas"
1030 # some tools are so dependent upon X11 that if we're not building with X,
1031 # it's not even worth trying to configure, much less build, that tool.
1034 yes |
"") ;; # the default value for this tree is that X11 is available
1036 skipdirs
="${skipdirs} tk itcl libgui"
1037 # We won't be able to build gdbtk without X.
1040 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1043 # Some tools are only suitable for building in a "native" situation.
1044 # Remove these if host!=target.
1045 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"
1047 # Similarly, some are only suitable for cross toolchains.
1048 # Remove these if host=target.
1049 cross_only
="target-libgloss target-newlib target-opcodes"
1051 case $is_cross_compiler in
1052 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1053 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1056 # If both --with-headers and --with-libs are specified, default to
1058 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
1059 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
1060 if test x
"${with_newlib}" = x
; then
1065 # Recognize --with-newlib/--without-newlib.
1066 case ${with_newlib} in
1067 no
) skipdirs
="${skipdirs} target-newlib" ;;
1068 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1071 # Configure extra directories which are host specific
1075 configdirs
="$configdirs libtermcap" ;;
1078 # A target can indicate whether a language isn't supported for some reason.
1079 # Only spaces may be used in this macro; not newlines or tabs.
1080 unsupported_languages
=
1082 # Remove more programs from consideration, based on the host or
1083 # target this usually means that a port of the program doesn't
1088 noconfigdirs
="$noconfigdirs byacc"
1090 i
[3456789]86-*-vsta)
1091 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1093 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1094 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1096 i
[3456789]86-*-mingw32*)
1097 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1098 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1100 i
[3456789]86-*-beos*)
1101 noconfigdirs
="$noconfigdirs tk itcl libgui gdb"
1104 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1107 noconfigdirs
="$noconfigdirs rcs"
1110 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1113 noconfigdirs
="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1118 # Check whether --enable-libada or --disable-libada was given.
1119 if test "${enable_libada+set}" = set; then
1120 enableval
="$enable_libada"
1121 ENABLE_LIBADA
=$enableval
1126 if test "${ENABLE_LIBADA}" != "yes" ; then
1127 noconfigdirs
="$noconfigdirs gnattools"
1130 # Check whether --enable-libssp or --disable-libssp was given.
1131 if test "${enable_libssp+set}" = set; then
1132 enableval
="$enable_libssp"
1133 ENABLE_LIBSSP
=$enableval
1139 # Save it here so that, even in case of --enable-libgcj, if the Java
1140 # front-end isn't enabled, we still get libgcj disabled.
1141 libgcj_saved
=$libgcj
1142 case $enable_libgcj in
1144 # If we reset it here, it won't get added to noconfigdirs in the
1145 # target-specific build rules, so it will be forcibly enabled
1146 # (unless the Java language itself isn't enabled).
1150 # Make sure we get it printed in the list of not supported target libs.
1151 noconfigdirs
="$noconfigdirs ${libgcj}"
1156 # Disable libmudflap on some systems.
1157 if test x
$enable_libmudflap = x
; then
1159 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1160 # Enable libmudflap by default in GNU and friends.
1163 # Enable libmudflap by default in FreeBSD.
1166 # Disable it by default everywhere else.
1167 noconfigdirs
="$noconfigdirs target-libmudflap"
1172 # Disable libgomp on non POSIX hosted systems.
1173 if test x
$enable_libgomp = x
; then
1174 # Enable libgomp by default on hosted POSIX systems.
1176 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1178 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd*)
1180 *-*-solaris2* |
*-*-sysv4* |
*-*-irix6* |
*-*-osf* |
*-*-hpux11*)
1182 *-*-darwin* |
*-*-aix*)
1185 noconfigdirs
="$noconfigdirs target-libgomp"
1193 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1196 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1197 noconfigdirs
="$noconfigdirs sim target-rda"
1200 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
1201 noconfigdirs
="$noconfigdirs sim target-rda"
1202 noconfigdirs
="$noconfigdirs ${libgcj}"
1204 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1205 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1208 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1209 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1210 && test -f /usr
/local
/include
/gmp.h
; then
1214 # Skip some stuff that's unsupported on some FreeBSD configurations.
1219 noconfigdirs
="$noconfigdirs ${libgcj}"
1224 # Remove unsupported stuff on all kaOS configurations.
1225 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1226 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1227 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1228 noconfigdirs
="$noconfigdirs target-libgloss"
1231 # Skip some stuff on all NetBSD configurations.
1232 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1234 # Skip some stuff that's unsupported on some NetBSD configurations.
1236 i
*86-*-netbsdelf*) ;;
1237 arm
*-*-netbsdelf*) ;;
1239 noconfigdirs
="$noconfigdirs ${libgcj}"
1244 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1247 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1249 # The tpf target doesn't support gdb yet.
1251 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1254 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1257 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1260 # ld works, but does not support shared libraries.
1261 # newlib is not 64 bit ready. I'm not sure about fileutils.
1262 # gas doesn't generate exception information.
1263 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1266 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1269 # newlib is not 64 bit ready
1270 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1273 # newlib is not 64 bit ready
1274 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1277 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1280 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1282 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1283 noconfigdirs
="$noconfigdirs ${libgcj}"
1284 noconfigdirs
="$noconfigdirs target-examples"
1285 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1286 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
1287 noconfigdirs
="$noconfigdirs expect dejagnu"
1288 # the C++ libraries don't build on top of CE's C libraries
1289 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1290 noconfigdirs
="$noconfigdirs target-newlib"
1292 *-*-cygwin*) ;; # keep gdb and readline
1293 *) noconfigdirs
="$noconfigdirs gdb readline"
1298 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1302 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1303 noconfigdirs
="$noconfigdirs ${libgcj}"
1305 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
1306 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1308 arm
*-*-linux-gnueabi)
1309 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1310 noconfigdirs
="$noconfigdirs target-libjava target-libobjc"
1313 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1316 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1319 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1322 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1325 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1328 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1331 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1334 noconfigdirs
="$noconfigdirs gdb"
1335 if test x
${is_cross_compiler} != xno
; then
1336 target_configdirs
="${target_configdirs} target-bsp target-cygmon"
1339 c4x-
*-* | tic4x-
*-*)
1340 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1342 c54x
*-*-* | tic54x-
*-*)
1343 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1345 cris-
*-* | crisv32-
*-*)
1346 unsupported_languages
="$unsupported_languages java"
1349 unsupported_languages
="$unsupported_languages fortran"
1350 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
1352 unsupported_languages
="$unsupported_languages fortran"
1353 noconfigdirs
="$noconfigdirs target-boehm-gc";;
1355 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
1357 unsupported_languages
="$unsupported_languages fortran"
1358 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1362 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1365 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1368 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1371 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1374 noconfigdirs
="$noconfigdirs ${libgcj}"
1377 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1380 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1382 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
1384 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1385 # In this case, it's because the hppa64-linux target is for
1386 # the kernel only at this point and has no libc, and thus no
1387 # headers, crt*.o, etc., all of which are needed by these.
1388 noconfigdirs
="$noconfigdirs target-zlib"
1390 parisc
*-*-linux* | hppa
*-*-linux*)
1394 hppa
*-*-openbsd* | \
1396 noconfigdirs
="$noconfigdirs ${libgcj}"
1399 noconfigdirs
="$noconfigdirs ld shellutils"
1402 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1403 # build on HP-UX 10.20.
1404 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1407 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1410 # No gdb support yet.
1411 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
1414 # No gdb or ld support yet.
1415 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1419 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1420 noconfigdirs
="$noconfigdirs ${libgcj}"
1422 i
[3456789]86-*-linux*)
1423 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1424 # not build java stuff by default.
1427 noconfigdirs
="$noconfigdirs ${libgcj}";;
1430 # This section makes it possible to build newlib natively on linux.
1431 # If we are using a cross compiler then don't configure newlib.
1432 if test x
${is_cross_compiler} != xno
; then
1433 noconfigdirs
="$noconfigdirs target-newlib"
1435 noconfigdirs
="$noconfigdirs target-libgloss"
1436 # If we are not using a cross compiler, do configure newlib.
1437 # Note however, that newlib will only be configured in this situation
1438 # if the --with-newlib option has been given, because otherwise
1439 # 'target-newlib' will appear in skipdirs.
1441 i
[3456789]86-*-mingw32*)
1442 target_configdirs
="$target_configdirs target-winsup"
1443 noconfigdirs
="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1446 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1447 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1448 # always build newlib if winsup directory is present.
1449 if test -d "$srcdir/winsup/cygwin"; then
1450 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1451 elif test -d "$srcdir/newlib"; then
1452 echo "Warning: winsup/cygwin is missing so newlib can't be built."
1455 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
1456 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
1459 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1461 i
[3456789]86-*-sco3.2v5
*)
1462 # The linker does not yet know about weak symbols in COFF,
1463 # and is not configured to handle mixed ELF and COFF.
1464 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1466 i
[3456789]86-*-sco*)
1467 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1469 i
[3456789]86-*-solaris2*)
1470 noconfigdirs
="$noconfigdirs target-libgloss"
1472 i
[3456789]86-*-sysv4*)
1473 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1475 i
[3456789]86-*-beos*)
1476 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1478 i
[3456789]86-*-rdos*)
1479 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1482 noconfigdirs
="$noconfigdirs ${libgcj}"
1484 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1485 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1488 noconfigdirs
="$noconfigdirs ${libgcj}"
1491 noconfigdirs
="$noconfigdirs ${libgcj}"
1494 # The EPOC C++ environment does not support exceptions or rtti,
1495 # and so building libstdc++-v3 tends not to always work.
1496 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1499 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1500 unsupported_languages
="$unsupported_languages fortran java"
1503 noconfigdirs
="$noconfigdirs ${libgcj}"
1506 noconfigdirs
="$noconfigdirs ${libgcj}"
1509 noconfigdirs
="$noconfigdirs sim"
1512 # copied from rs6000-*-* entry
1513 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1515 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1516 target_configdirs
="$target_configdirs target-winsup"
1517 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1518 # always build newlib.
1519 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1521 # This is temporary until we can link against shared libraries
1522 powerpcle-
*-solaris*)
1523 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1526 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1529 noconfigdirs
="$noconfigdirs ${libgcj}"
1531 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
1534 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1537 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1540 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1543 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1546 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1549 # Linking libjava exceeds command-line length limits on at least
1550 # IRIX 6.2, but not on IRIX 6.5.
1551 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1552 # <oldham@codesourcery.com>
1553 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1556 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1559 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1562 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1565 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1568 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1572 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1573 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1574 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1575 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1577 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1580 noconfigdirs
="$noconfigdirs ${libgcj}"
1583 noconfigdirs
="$noconfigdirs ${libgcj}"
1586 noconfigdirs
="$noconfigdirs ${libgcj}"
1589 noconfigdirs
="$noconfigdirs ${libgcj}"
1590 if test x
${is_cross_compiler} != xno
; then
1591 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1596 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
1597 noconfigdirs
="$noconfigdirs ${libgcj}"
1599 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1602 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1605 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1608 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1611 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1614 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1617 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1620 noconfigdirs
="$noconfigdirs ${libgcj}"
1623 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1625 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1626 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1629 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1632 noconfigdirs
="$noconfigdirs ${libgcj}"
1636 # If we aren't building newlib, then don't build libgloss, since libgloss
1637 # depends upon some newlib header files.
1638 case "${noconfigdirs}" in
1639 *target-libgloss
*) ;;
1640 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1643 # Work in distributions that contain no compiler tools, like Autoconf.
1645 host_makefile_frag
=/dev
/null
1646 if test -d ${srcdir}/config
; then
1649 # Avoid "too much defining" errors from HPUX compiler.
1650 tentative_cc
="cc -Wp,-H256000"
1651 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1652 # If it's HP/UX ar, this should be harmless.
1656 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1659 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1660 # chokes on bfd, the compiler won't let you assign integers to enums, and
1661 # other problems. Defining CC to gcc is a questionable way to say "don't use
1662 # the apollo compiler" (the preferred version of GCC could be called cc,
1663 # or whatever), but I'm not sure leaving CC as cc is any better...
1664 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1665 # Used to have BISON=yacc.
1669 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1672 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1673 tentative_cc
="cc -Xa"
1674 host_makefile_frag
="config/mh-cxux"
1676 m88k-motorola-sysv
*)
1679 tentative_cc
="cc -Wf,-XNg1000"
1680 host_makefile_frag
="config/mh-decstation"
1683 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1684 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1685 host_makefile_frag
="config/mh-necv4"
1688 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1689 # environment. Also bump switch table size so that cp-parse will
1690 # compile. Bump string length limit so linker builds.
1691 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1694 host_makefile_frag
="config/mh-sysv4"
1697 # This is for a MIPS running RISC/os 4.52C.
1699 # This is needed for GDB, but needs to be in the top-level make because
1700 # if a library is compiled with the bsd headers and gets linked with the
1701 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1702 # a different size).
1703 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1704 # known except to select the sysv environment. Could we use /proc instead?
1705 # These "sysv environments" and "bsd environments" often end up being a pain.
1707 # This is not part of CFLAGS because perhaps not all C compilers have this
1709 tentative_cc
="cc -systype sysv"
1714 i
[3456789]86-*-sysv5*)
1715 host_makefile_frag
="config/mh-sysv5"
1717 i
[3456789]86-*-dgux*)
1718 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1719 host_makefile_frag
="config/mh-dgux386"
1721 i
[3456789]86-ncr-sysv4.3
*)
1722 # The MetaWare compiler will generate a copyright message unless you
1723 # turn it off by adding the -Hnocopyr flag.
1724 tentative_cc
="cc -Hnocopyr"
1726 i
[3456789]86-ncr-sysv4*)
1727 # for an NCR 3000 (i486/SVR4) system.
1728 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1729 # This compiler not only emits obnoxious copyright messages every time
1730 # you run it, but it chokes and dies on a whole bunch of GNU source
1731 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1732 tentative_cc
="/usr/ccs/ATT/cc"
1733 host_makefile_frag
="config/mh-ncr3000"
1735 i
[3456789]86-*-sco3.2v5
*)
1737 i
[3456789]86-*-sco*)
1738 # The native C compiler botches some simple uses of const. Unfortunately,
1739 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1740 tentative_cc
="cc -Dconst="
1741 host_makefile_frag
="config/mh-sco"
1743 i
[3456789]86-*-udk*)
1744 host_makefile_frag
="config/mh-sysv5"
1746 i
[3456789]86-*-solaris2*)
1747 host_makefile_frag
="config/mh-sysv4"
1749 i
[3456789]86-*-msdosdjgpp*)
1750 host_makefile_frag
="config/mh-djgpp"
1753 host_makefile_frag
="config/mh-cygwin"
1758 host_makefile_frag
="config/mh-interix"
1761 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1765 host_makefile_frag
="config/mh-solaris"
1768 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1769 # without overflowing the jump tables (-J says to use a 32 bit table)
1770 tentative_cc
="cc -J"
1773 tentative_cc
="cc -Wp,-H256000"
1776 tentative_cc
="cc -Wp,-H256000"
1779 # /bin/cc is less than useful for our purposes. Always use GCC
1780 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1781 host_makefile_frag
="config/mh-lynxrs6k"
1784 host_makefile_frag
="config/mh-ppc-darwin"
1787 host_makefile_frag
="config/mh-ppc-aix"
1790 host_makefile_frag
="config/mh-ppc-aix"
1793 # /bin/cc is less than useful for our purposes. Always use GCC
1794 tentative_cc
="/bin/gcc"
1797 host_makefile_frag
="config/mh-sysv4"
1799 # This is placed last to prevent interfering with the cases above.
1801 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1802 host_makefile_frag
="config/mh-x86omitfp"
1807 # If we aren't going to be using gcc, see if we can extract a definition
1808 # of CC from the fragment.
1809 # Actually, use the 'pre-extracted' version above.
1810 if test -z "${CC}" && test "${build}" = "${host}" ; then
1811 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1813 for dir
in $PATH; do
1814 test -z "$dir" && dir
=.
1815 if test -f $dir/gcc
; then
1821 if test -z "${found}" && test -n "${tentative_cc}" ; then
1826 if test "${build}" != "${host}" ; then
1827 # If we are doing a Canadian Cross, in which the host and build systems
1828 # are not the same, we set reasonable default values for the tools.
1830 CC
=${CC-${host_alias}-gcc}
1831 CFLAGS
=${CFLAGS-"-g -O2"}
1832 CXX
=${CXX-${host_alias}-c++}
1833 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1834 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1837 # Set reasonable default values for some tools even if not Canadian.
1838 # Of course, these are different reasonable default values, originally
1839 # specified directly in the Makefile.
1840 # We don't export, so that autoconf can do its job.
1841 # Note that all these settings are above the fragment inclusion point
1842 # in Makefile.in, so can still be overridden by fragments.
1843 # This is all going to change when we autoconfiscate...
1845 CC_FOR_BUILD
="\$(CC)"
1846 # Extract the first word of "gcc", so it can be a program name with args.
1847 set dummy gcc
; ac_word
=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC
="$CC" # Let the user override the test.
1856 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1858 for ac_dir
in $ac_dummy; do
1859 test -z "$ac_dir" && ac_dir
=.
1860 if test -f $ac_dir/$ac_word; then
1869 if test -n "$CC"; then
1870 echo "$ac_t""$CC" 1>&6
1872 echo "$ac_t""no" 1>&6
1875 if test -z "$CC"; then
1876 # Extract the first word of "cc", so it can be a program name with args.
1877 set dummy cc
; ac_word
=$2
1878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1879 echo "configure:1880: checking for $ac_word" >&5
1880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC
="$CC" # Let the user override the test.
1886 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1889 for ac_dir
in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir
=.
1891 if test -f $ac_dir/$ac_word; then
1892 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1893 ac_prog_rejected
=yes
1901 if test $ac_prog_rejected = yes; then
1902 # We found a bogon in the path, so make sure we never use it.
1903 set dummy
$ac_cv_prog_CC
1905 if test $# -gt 0; then
1906 # We chose a different compiler from the bogus one.
1907 # However, it has the same basename, so the bogon will be chosen
1908 # first if we set CC to just the basename; use the full file name.
1910 set dummy
"$ac_dir/$ac_word" "$@"
1918 if test -n "$CC"; then
1919 echo "$ac_t""$CC" 1>&6
1921 echo "$ac_t""no" 1>&6
1924 if test -z "$CC"; then
1925 case "`uname -s`" in
1927 # Extract the first word of "cl", so it can be a program name with args.
1928 set dummy cl
; ac_word
=$2
1929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1930 echo "configure:1931: checking for $ac_word" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC
="$CC" # Let the user override the test.
1937 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1939 for ac_dir
in $ac_dummy; do
1940 test -z "$ac_dir" && ac_dir
=.
1941 if test -f $ac_dir/$ac_word; then
1950 if test -n "$CC"; then
1951 echo "$ac_t""$CC" 1>&6
1953 echo "$ac_t""no" 1>&6
1958 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1962 echo "configure:1963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1966 ac_cpp
='$CPP $CPPFLAGS'
1967 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1968 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1969 cross_compiling
=$ac_cv_prog_cc_cross
1971 cat > conftest.
$ac_ext << EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1978 if { (eval echo configure
:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1979 ac_cv_prog_cc_works
=yes
1980 # If we can't run a trivial program, we are probably using a cross compiler.
1981 if (.
/conftest
; exit) 2>/dev
/null
; then
1982 ac_cv_prog_cc_cross
=no
1984 ac_cv_prog_cc_cross
=yes
1987 echo "configure: failed program was:" >&5
1988 cat conftest.
$ac_ext >&5
1989 ac_cv_prog_cc_works
=no
1993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1994 ac_cpp
='$CPP $CPPFLAGS'
1995 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1996 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1997 cross_compiling
=$ac_cv_prog_cc_cross
1999 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2000 if test $ac_cv_prog_cc_works = no
; then
2001 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2003 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2004 echo "configure:2005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2005 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2006 cross_compiling
=$ac_cv_prog_cc_cross
2008 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2009 echo "configure:2010: checking whether we are using GNU C" >&5
2010 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 cat > conftest.c
<<EOF
2018 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2025 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2027 if test $ac_cv_prog_gcc = yes; then
2033 ac_test_CFLAGS
="${CFLAGS+set}"
2034 ac_save_CFLAGS
="$CFLAGS"
2036 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether ${CC-cc} accepts -g" >&5
2038 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 echo 'void f(){}' > conftest.c
2042 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2051 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2052 if test "$ac_test_CFLAGS" = set; then
2053 CFLAGS
="$ac_save_CFLAGS"
2054 elif test $ac_cv_prog_cc_g = yes; then
2055 if test "$GCC" = yes; then
2061 if test "$GCC" = yes; then
2069 # We must set the default linker to the linker used by gcc for the correct
2070 # operation of libtool. If LD is not defined and we are using gcc, try to
2071 # set the LD default to the ld used by gcc.
2072 if test -z "$LD"; then
2073 if test "$GCC" = yes; then
2076 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2078 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2080 case $gcc_prog_ld in
2081 # Accept absolute paths.
2082 [\\/]* |
[A-Za-z
]:[\\/]*)
2083 LD
="$gcc_prog_ld" ;;
2089 CFLAGS
=${CFLAGS-"-g"}
2090 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2093 if test $host != $build; then
2094 ac_tool_prefix
=${host_alias}-
2101 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2102 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2104 echo "configure:2105: checking for $ac_word" >&5
2105 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 if test -n "$GNATBIND"; then
2109 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2111 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2113 for ac_dir
in $ac_dummy; do
2114 test -z "$ac_dir" && ac_dir
=.
2115 if test -f $ac_dir/$ac_word; then
2116 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2123 GNATBIND
="$ac_cv_prog_GNATBIND"
2124 if test -n "$GNATBIND"; then
2125 echo "$ac_t""$GNATBIND" 1>&6
2127 echo "$ac_t""no" 1>&6
2131 if test -z "$ac_cv_prog_GNATBIND"; then
2132 if test -n "$ac_tool_prefix"; then
2133 # Extract the first word of "gnatbind", so it can be a program name with args.
2134 set dummy gnatbind
; ac_word
=$2
2135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2136 echo "configure:2137: checking for $ac_word" >&5
2137 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 if test -n "$GNATBIND"; then
2141 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2143 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2145 for ac_dir
in $ac_dummy; do
2146 test -z "$ac_dir" && ac_dir
=.
2147 if test -f $ac_dir/$ac_word; then
2148 ac_cv_prog_GNATBIND
="gnatbind"
2153 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2156 GNATBIND
="$ac_cv_prog_GNATBIND"
2157 if test -n "$GNATBIND"; then
2158 echo "$ac_t""$GNATBIND" 1>&6
2160 echo "$ac_t""no" 1>&6
2168 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2169 echo "configure:2170: checking whether compiler driver understands Ada" >&5
2170 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 cat >conftest.adb
<<EOF
2174 procedure conftest is begin null; end conftest;
2176 acx_cv_cc_gcc_supports_ada
=no
2177 # There is a bug in old released versions of GCC which causes the
2178 # driver to exit successfully when the appropriate language module
2179 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2180 # Therefore we must check for the error message as well as an
2181 # unsuccessful exit.
2182 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2183 # given a .adb file, but produce no object file. So we must check
2184 # if an object file was really produced to guard against this.
2185 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2186 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2187 acx_cv_cc_gcc_supports_ada
=yes
2192 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2194 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2200 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2201 echo "configure:2202: checking how to compare bootstrapped objects" >&5
2202 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2207 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2208 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2209 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2212 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2215 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2216 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2219 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2226 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2227 do_compare
="$gcc_cv_prog_cmp_skip"
2231 # Check for GMP and MPFR
2235 # Specify a location for mpfr
2236 # check for this first so it ends up on the link line before gmp.
2237 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2238 if test "${with_mpfr_dir+set}" = set; then
2239 withval
="$with_mpfr_dir"
2244 if test "x$with_mpfr_dir" != x
; then
2245 gmpinc
="-I$with_mpfr_dir"
2246 if test -f "$with_mpfr_dir/.libs/libmpfr.a"; then
2247 gmplibs
="$with_mpfr_dir/.libs/libmpfr.a"
2248 elif test -f "$with_mpfr_dir/_libs/libmpfr.a"; then
2249 gmplibs
="$with_mpfr_dir/_libs/libmpfr.a"
2251 gmplibs
="$with_mpfr_dir/libmpfr.a"
2257 # Check whether --with-mpfr or --without-mpfr was given.
2258 if test "${with_mpfr+set}" = set; then
2259 withval
="$with_mpfr"
2264 if test "x$with_mpfr" != x
; then
2265 gmplibs
="-L$with_mpfr/lib $gmplibs"
2266 gmpinc
="-I$with_mpfr/include"
2269 # Specify a location for gmp
2270 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2271 if test "${with_gmp_dir+set}" = set; then
2272 withval
="$with_gmp_dir"
2277 if test "x$with_gmp_dir" != x
; then
2278 gmpinc
="$gmpinc -I$with_gmp_dir"
2279 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2280 gmplibs
="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2281 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2282 gmplibs
="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2284 # One of the later tests will catch the error if neither library is present.
2286 gmplibs
="$gmplibs -lgmp"
2289 # Check whether --with-gmp or --without-gmp was given.
2290 if test "${with_gmp+set}" = set; then
2296 if test "x$with_gmp" != x
; then
2297 gmplibs
="-L$with_gmp/lib $gmplibs"
2298 gmpinc
="-I$with_gmp/include $gmpinc"
2301 saved_CFLAGS
="$CFLAGS"
2302 CFLAGS
="$CFLAGS $gmpinc"
2303 # Check GMP actually works
2304 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2305 echo "configure:2306: checking for correct version of gmp.h" >&5
2306 cat > conftest.
$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2312 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
2318 if { (eval echo configure
:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2320 echo "$ac_t""yes" 1>&6
2322 echo "configure: failed program was:" >&5
2323 cat conftest.
$ac_ext >&5
2325 echo "$ac_t""no" 1>&6; have_gmp
=no
2329 if test x
"$have_gmp" = xyes
; then
2331 LIBS
="$LIBS $gmplibs"
2332 echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
2333 echo "configure:2334: checking for correct version of mpfr.h" >&5
2334 cat > conftest.
$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2341 #if MPFR_VERSION_MAJOR < 2 || (MPFR_VERSION_MAJOR == 2 && MPFR_VERSION_MINOR < 2)
2344 mpfr_t n; mpfr_init(n);
2348 if { (eval echo configure
:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2350 echo "$ac_t""yes" 1>&6
2352 echo "configure: failed program was:" >&5
2353 cat conftest.
$ac_ext >&5
2355 echo "$ac_t""no" 1>&6; have_gmp
=no
2360 CFLAGS
="$saved_CFLAGS"
2362 if test -d ${srcdir}/gcc
&& test x
$have_gmp != xyes
; then
2363 { echo "configure: error: Building GCC requires GMP 4.1+ and MPFR 2.2+.
2364 Try the --with-gmp and/or --with-mpfr options to specify their locations.
2365 Copies of these libraries' source code can be found at their respective
2366 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
2367 See also http://gcc.gnu.org/install/prerequisites.html for additional info." 1>&2; exit 1; }
2370 # Flags needed for both GMP and/or MPFR
2374 # By default, C is the only stage 1 language.
2378 # Figure out what language subdirectories are present.
2379 # Look if the user specified --enable-languages="..."; if not, use
2380 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2382 # NB: embedded tabs in this IF block -- do not untabify
2383 if test -d ${srcdir}/gcc
; then
2384 if test x
"${enable_languages+set}" != xset
; then
2385 if test x
"${LANGUAGES+set}" = xset
; then
2386 enable_languages
="${LANGUAGES}"
2387 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2389 enable_languages
=all
2392 if test x
"${enable_languages}" = x ||
2393 test x
"${enable_languages}" = xyes
;
2395 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2399 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2401 # 'f95' is the old name for the 'fortran' language. We issue a warning
2402 # and make the substitution.
2403 case ,${enable_languages}, in
2405 echo configure.
in: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
2406 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2410 # First scan to see if an enabled language requires some other language.
2411 # We assume that a given config-lang.in will list all the language
2412 # front ends it requires, even if some are required indirectly.
2413 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2414 case ${lang_frag} in
2416 # The odd quoting in the next line works around
2417 # an apparent bug in bash 1.12 on linux.
2418 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2420 # From the config-lang.in, get $language, $lang_requires
2424 for other
in ${lang_requires} ; do
2425 case ,${enable_languages}, in
2429 echo " \`$other' language required by \`$language'; enabling" 1>&2
2430 enable_languages
="${enable_languages},${other}"
2438 new_enable_languages
=c
2439 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2440 potential_languages
=c
2442 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2443 case ${lang_frag} in
2445 # The odd quoting in the next line works around
2446 # an apparent bug in bash 1.12 on linux.
2447 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2449 # From the config-lang.in, get $language, $target_libs,
2450 # $lang_dirs, $boot_language, and $build_by_default
2458 potential_languages
="${potential_languages},${language}"
2459 # This is quite sensitive to the ordering of the case statement arms.
2460 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2462 echo "${lang_frag} doesn't set \$language." 1>&2
2466 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2469 *,${language},*:*:*:*)
2470 # Language was explicitly selected; include it.
2474 # 'all' was selected, but this is not a default language
2475 # so do not include it.
2479 # 'all' was selected and this is a default language; include it.
2487 # Disable languages that need other directories if these aren't available.
2488 for i
in $subdir_requires; do
2489 test -f "$srcdir/gcc/$i/config-lang.in" && continue
2490 case ,${enable_languages}, in
2492 # Specifically requested language; tell them.
2493 { echo "configure: error: The gcc/$i directory contains parts of $language but is missing" 1>&2; exit 1; }
2502 # Disable a language that is unsupported by the target.
2503 case " $unsupported_languages " in
2509 case $add_this_lang in
2511 # Remove language-dependent dirs.
2512 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2515 new_enable_languages
="$new_enable_languages,$language"
2516 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2517 case ${boot_language} in
2519 # Add to (comma-separated) list of stage 1 languages.
2520 stage1_languages
="${stage1_languages},${language}"
2529 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2530 if test "x$missing_languages" != x
; then
2531 { echo "configure: error:
2532 The following requested languages could not be built: ${missing_languages}
2533 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2536 if test "x$new_enable_languages" != "x$enable_languages"; then
2537 echo The following languages will be built
: ${new_enable_languages}
2539 enable_languages
="$new_enable_languages"
2540 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2543 # Handle --disable-<component> generically.
2544 for dir
in $configdirs $build_configdirs $target_configdirs ; do
2545 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2546 if eval test x\
${enable_${dirname}} "=" xno
; then
2547 noconfigdirs
="$noconfigdirs $dir"
2551 # Check for Boehm's garbage collector
2552 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2553 if test "${enable_objc_gc+set}" = set; then
2554 enableval
="$enable_objc_gc"
2555 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
2556 *,objc
,*:*:yes:*target-boehm-gc
*)
2557 { echo "configure: error: Boehm's garbage collector was requested yet not supported in this configuration" 1>&2; exit 1; }
2563 # Make sure we only build Boehm's garbage collector if required.
2564 case ,${enable_languages},:${enable_objc_gc} in
2566 # Keep target-boehm-gc if requested for Objective-C.
2569 # Otherwise remove target-boehm-gc depending on target-libjava.
2570 if echo " ${noconfigdirs} " |
grep "target-libjava" >/dev
/null
2>&1; then
2571 noconfigdirs
="$noconfigdirs target-boehm-gc"
2576 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2577 # $build_configdirs and $target_configdirs.
2578 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2581 for dir
in .
$skipdirs $noconfigdirs ; do
2582 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2583 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2584 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2585 if test -r $srcdir/$dirname/configure
; then
2586 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2589 notsupp
="$notsupp $dir"
2593 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2594 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2595 if test -r $srcdir/$dirname/configure
; then
2596 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2599 notsupp
="$notsupp $dir"
2603 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2604 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2605 if test -r $srcdir/$dirname/configure
; then
2606 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2609 notsupp
="$notsupp $dir"
2615 # Sometimes the tools are distributed with libiberty but with no other
2616 # libraries. In that case, we don't want to build target-libiberty.
2617 if test -n "${target_configdirs}" ; then
2619 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2620 if test "$i" != "libiberty" ; then
2621 if test -r $srcdir/$i/configure
; then
2627 if test -z "${others}" ; then
2632 # Quietly strip out all directories which aren't configurable in this tree.
2633 # This relies on all configurable subdirectories being autoconfiscated, which
2635 build_configdirs_all
="$build_configdirs"
2637 for i
in ${build_configdirs_all} ; do
2638 j
=`echo $i | sed -e s/build-//g`
2639 if test -f ${srcdir}/$j/configure
; then
2640 build_configdirs
="${build_configdirs} $i"
2644 configdirs_all
="$configdirs"
2646 for i
in ${configdirs_all} ; do
2647 if test -f ${srcdir}/$i/configure
; then
2648 configdirs
="${configdirs} $i"
2652 target_configdirs_all
="$target_configdirs"
2654 for i
in ${target_configdirs_all} ; do
2655 j
=`echo $i | sed -e s/target-//g`
2656 if test -f ${srcdir}/$j/configure
; then
2657 target_configdirs
="${target_configdirs} $i"
2661 # Produce a warning message for the subdirs we can't configure.
2662 # This isn't especially interesting in the Cygnus tree, but in the individual
2663 # FSF releases, it's important to let people know when their machine isn't
2664 # supported by the one or two programs in a package.
2666 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2667 # If $appdirs is non-empty, at least one of those directories must still
2668 # be configured, or we error out. (E.g., if the gas release supports a
2669 # specified target in some subdirs but not the gas subdir, we shouldn't
2670 # pretend that all is well.)
2671 if test -n "$appdirs" ; then
2672 for dir
in $appdirs ; do
2673 if test -r $dir/Makefile.
in ; then
2674 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2678 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2684 if test -n "$appdirs" ; then
2685 echo "*** This configuration is not supported by this package." 1>&2
2689 # Okay, some application will build, or we don't care to check. Still
2690 # notify of subdirs not getting built.
2691 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2692 echo " ${notsupp}" 1>&2
2693 echo " (Any other directories should still work fine.)" 1>&2
2703 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2704 if test "${with_build_sysroot+set}" = set; then
2705 withval
="$with_build_sysroot"
2706 if test x
"$withval" != x
; then
2707 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
2710 SYSROOT_CFLAGS_FOR_TARGET
=
2715 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2716 # the named directory are copied to $(tooldir)/sys-include.
2717 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2718 if test x
${is_cross_compiler} = xno
; then
2719 echo 1>&2 '***' --with-headers is only supported when cross compiling
2722 if test x
"${with_headers}" != xyes
; then
2723 case "${exec_prefixoption}" in
2725 *) x
=${exec_prefix} ;;
2727 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2731 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2732 # the name directories are copied to $(tooldir)/lib. Multiple directories
2734 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2735 if test x
${is_cross_compiler} = xno
; then
2736 echo 1>&2 '***' --with-libs is only supported when cross compiling
2739 if test x
"${with_libs}" != xyes
; then
2740 # Copy the libraries in reverse order, so that files in the first named
2741 # library override files in subsequent libraries.
2742 case "${exec_prefixoption}" in
2744 *) x
=${exec_prefix} ;;
2746 for l
in ${with_libs}; do
2747 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2752 # Set with_gnu_as and with_gnu_ld as appropriate.
2754 # This is done by determining whether or not the appropriate directory
2755 # is available, and by checking whether or not specific configurations
2756 # have requested that this magic not happen.
2758 # The command line options always override the explicit settings in
2759 # configure.in, and the settings in configure.in override this magic.
2761 # If the default for a toolchain is to use GNU as and ld, and you don't
2762 # want to do that, then you should use the --without-gnu-as and
2763 # --without-gnu-ld options for the configure script.
2765 if test x
${use_gnu_as} = x
&&
2766 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2768 extra_host_args
="$extra_host_args --with-gnu-as"
2771 if test x
${use_gnu_ld} = x
&&
2772 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2774 extra_host_args
="$extra_host_args --with-gnu-ld"
2777 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2778 # can detect this case.
2780 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2782 extra_host_args
="$extra_host_args --with-newlib"
2785 # Handle ${copy_dirs}
2786 set fnord
${copy_dirs}
2788 while test $# != 0 ; do
2789 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2792 echo Copying
$1 to
$2
2794 # Use the install script to create the directory and all required
2795 # parent directories.
2796 if test -d $2 ; then
2800 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2803 # Copy the directory, assuming we have tar.
2804 # FIXME: Should we use B in the second tar? Not all systems support it.
2805 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2807 # It is the responsibility of the user to correctly adjust all
2808 # symlinks. If somebody can figure out how to handle them correctly
2809 # here, feel free to add the code.
2816 # Determine a target-dependent exec_prefix that the installed
2817 # gcc will search in. Keep this list sorted by triplet, with
2818 # the *-*-osname triplets last.
2822 md_exec_prefix
=/gnu
/lib
/gcc-lib
2824 i3456786-pc-msdosdjgpp
*)
2825 md_exec_prefix
=/dev
/env
/DJDIR
/bin
2827 i3456786-
*-sco3.2v5
*)
2828 if test $with_gnu_as = yes; then
2829 md_exec_prefix
=/usr
/gnu
/bin
2831 md_exec_prefix
=/usr
/ccs
/bin
/elf
2836 powerpc-
*-chorusos* | \
2837 powerpc
*-*-eabi* | \
2838 powerpc
*-*-sysv* | \
2839 powerpc
*-*-kaos* | \
2841 md_exec_prefix
=/usr
/ccs
/bin
2846 md_exec_prefix
=/usr
/ccs
/bin
2861 md_exec_prefix
=/usr
/ccs
/bin
2865 extra_arflags_for_target
=
2866 extra_nmflags_for_target
=
2867 extra_ranlibflags_for_target
=
2868 target_makefile_frag
=/dev
/null
2871 target_makefile_frag
="config/mt-netware"
2873 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2874 target_makefile_frag
="config/mt-gnu"
2876 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2877 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2878 # commands to handle both 32-bit and 64-bit objects. These flags are
2879 # harmless if we're using GNU nm or ar.
2880 extra_arflags_for_target
=" -X32_64"
2881 extra_nmflags_for_target
=" -B -X32_64"
2884 # ranlib from Darwin requires the -c flag to look at common symbols.
2885 extra_ranlibflags_for_target
=" -c"
2887 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2888 target_makefile_frag
="config/mt-wince"
2892 alphaieee_frag
=/dev
/null
2895 # This just makes sure to use the -mieee option to build target libs.
2896 # This should probably be set individually by each library.
2897 alphaieee_frag
="config/mt-alphaieee"
2901 # If --enable-target-optspace always use -Os instead of -O2 to build
2902 # the target libraries, similarly if it is not specified, use -Os
2903 # on selected platforms.
2904 ospace_frag
=/dev
/null
2905 case "${enable_target_optspace}:${target}" in
2907 ospace_frag
="config/mt-ospace"
2910 ospace_frag
="config/mt-d30v"
2912 :m32r-
* |
:d10v-
* |
:fr30-
*)
2913 ospace_frag
="config/mt-ospace"
2918 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2922 # Default to using --with-stabs for certain targets.
2923 if test x
${with_stabs} = x
; then
2927 mips
*-*-* | alpha
*-*-osf*)
2929 extra_host_args
="${extra_host_args} --with-stabs"
2934 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2935 # them automatically.
2938 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2942 # Some systems (e.g., one of the i386-aix systems the gas testers are
2943 # using) don't handle "\$" correctly, so don't use it here.
2944 tooldir
='${exec_prefix}'/${target_alias}
2945 build_tooldir
=${tooldir}
2947 # Create a .gdbinit file which runs the one in srcdir
2948 # and tells GDB to look there for source files.
2950 if test -r ${srcdir}/.gdbinit
; then
2953 *) cat > .
/.gdbinit
<<EOF
2957 source ${srcdir}/.gdbinit
2963 # Make sure that the compiler is able to generate an executable. If it
2964 # can't, we are probably in trouble. We don't care whether we can run the
2965 # executable--we might be using a cross compiler--we only care whether it
2966 # can be created. At this point the main configure script has set CC.
2968 echo "int main () { return 0; }" > conftest.c
2969 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2970 if test $?
= 0 ; then
2971 if test -s conftest ||
test -s conftest.exe
; then
2977 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2978 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2985 # The Solaris /usr/ucb/cc compiler does not appear to work.
2987 sparc-sun-solaris2
*)
2988 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
2989 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2991 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
2992 if test -d /opt
/cygnus
/bin
; then
2993 if test "$could_use" = "" ; then
2994 could_use
="/opt/cygnus/bin"
2996 could_use
="$could_use or /opt/cygnus/bin"
2999 if test "$could_use" = "" ; then
3000 echo "Warning: compilation may fail because you're using"
3001 echo "/usr/ucb/cc. You should change your PATH or CC "
3002 echo "variable and rerun configure."
3004 echo "Warning: compilation may fail because you're using"
3005 echo "/usr/ucb/cc, when you should use the C compiler from"
3006 echo "$could_use. You should change your"
3007 echo "PATH or CC variable and rerun configure."
3014 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
3015 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
3016 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
3019 # Record target_configdirs and the configure arguments for target and
3020 # build configuration in Makefile.
3021 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3022 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3024 # Determine whether gdb needs tk/tcl or not.
3025 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3026 # and in that case we want gdb to be built without tk. Ugh!
3027 # In fact I believe gdb is the *only* package directly dependent on tk,
3028 # so we should be able to put the 'maybe's in unconditionally and
3029 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3030 # 100% sure that that's safe though.
3032 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3033 case "$enable_gdbtk" in
3037 GDB_TK
="${gdb_tk}" ;;
3039 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3040 # distro. Eventually someone will fix this and move Insight, nee
3041 # gdbtk to a separate directory.
3042 if test -d ${srcdir}/gdb
/gdbtk
; then
3049 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3050 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3052 # Strip out unwanted targets.
3054 # While at that, we remove Makefiles if we were started for recursive
3055 # configuration, so that the top-level Makefile reconfigures them,
3056 # like we used to do when configure itself was recursive.
3058 # Loop over modules. $extrasub must be used with care, limiting as
3059 # much as possible the usage of range addresses. That's because autoconf
3060 # splits the sed script to overcome limits in the number of commands,
3061 # and relying on carefully-timed sed passes may turn out to be very hard
3062 # to maintain later. In this particular case, you just have to be careful
3063 # not to nest @if/@endif pairs, because configure will not warn you at all.
3065 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3066 if test "${enable_bootstrap+set}" = set; then
3067 enableval
="$enable_bootstrap"
3070 enable_bootstrap
=default
3074 # Issue errors and warnings for invalid/strange bootstrap combinations.
3075 case "$configdirs" in
3076 *gcc
*) have_compiler
=yes ;;
3077 *) have_compiler
=no
;;
3080 case "$have_compiler:$host:$target:$enable_bootstrap" in
3083 # Default behavior. Enable bootstrap if we have a compiler
3084 # and we are in a native configuration.
3085 yes:$build:$build:default
)
3086 enable_bootstrap
=yes ;;
3089 enable_bootstrap
=no
;;
3091 # We have a compiler and we are in a native configuration, bootstrap is ok
3092 yes:$build:$build:yes)
3095 # Other configurations, but we have a compiler. Assume the user knows
3098 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3101 # No compiler: if they passed --enable-bootstrap explicitly, fail
3103 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3105 # Fail if wrong command line
3107 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3111 # Adjust the toplevel makefile according to whether bootstrap was selected.
3112 case "$enable_bootstrap" in
3114 bootstrap_suffix
=bootstrap
;;
3116 bootstrap_suffix
=no-bootstrap
;;
3119 for module
in ${build_configdirs} ; do
3120 if test -z "${no_recursion}" \
3121 && test -f ${build_subdir}/${module}/Makefile
; then
3122 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3123 rm -f ${build_subdir}/${module}/Makefile
3126 /^@if build-$module\$/d
3127 /^@endif build-$module\$/d
3128 /^@if build-$module-$bootstrap_suffix\$/d
3129 /^@endif build-$module-$bootstrap_suffix\$/d"
3131 for module
in ${configdirs} ; do
3132 if test -z "${no_recursion}"; then
3133 for file in stage
*-${module}/Makefile
${module}/Makefile
; do
3134 if test -f ${file}; then
3135 echo 1>&2 "*** removing ${file} to force reconfigure"
3142 /^@endif $module\$/d
3143 /^@if $module-$bootstrap_suffix\$/d
3144 /^@endif $module-$bootstrap_suffix\$/d"
3146 for module
in ${target_configdirs} ; do
3147 if test -z "${no_recursion}" \
3148 && test -f ${target_subdir}/${module}/Makefile
; then
3149 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3150 rm -f ${target_subdir}/${module}/Makefile
3153 /^@if target-$module\$/d
3154 /^@endif target-$module\$/d
3155 /^@if target-$module-$bootstrap_suffix\$/d
3156 /^@endif target-$module-$bootstrap_suffix\$/d"
3160 /^@if /,/^@endif /d"
3162 # Create the serialization dependencies. This uses a temporary file.
3164 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3165 if test "${enable_serial_configure+set}" = set; then
3166 enableval
="$enable_serial_configure"
3171 case ${enable_serial_configure} in
3173 enable_serial_build_configure
=yes
3174 enable_serial_host_configure
=yes
3175 enable_serial_target_configure
=yes
3179 # These force 'configure's to be done one at a time, to avoid problems
3180 # with contention over a shared config.cache.
3182 echo '# serdep.tmp' > serdep.tmp
3184 test "x${enable_serial_build_configure}" = xyes
&&
3185 for item
in ${build_configdirs} ; do
3188 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3193 test "x${enable_serial_host_configure}" = xyes
&&
3194 for item
in ${configdirs} ; do
3197 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3202 test "x${enable_serial_target_configure}" = xyes
&&
3203 for item
in ${target_configdirs} ; do
3206 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3210 serialization_dependencies
=serdep.tmp
3213 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3214 # target and nonopt. These are the ones we might not want to pass
3215 # down to subconfigures. Also strip program-prefix, program-suffix,
3216 # and program-transform-name, so that we can pass down a consistent
3217 # program-transform-name. If autoconf has put single quotes around
3218 # any of these arguments (because they contain shell metacharacters)
3219 # then this will fail; in practice this only happens for
3220 # --program-transform-name, so be sure to override --program-transform-name
3221 # at the end of the argument list.
3222 # These will be expanded by make, so quote '$'.
3223 cat <<\EOF_SED
> conftestsed
3225 s
/ --c[a-z-
]*[= ][^
]*//g
3226 s
/ --sr[a-z-
]*[= ][^
]*//g
3227 s
/ --ho[a-z-
]*[= ][^
]*//g
3228 s
/ --bu[a-z-
]*[= ][^
]*//g
3229 s
/ --t[a-z-
]*[= ][^
]*//g
3230 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3231 s
/ -cache-file[= ][^
]*//g
3232 s
/ -srcdir[= ][^
]*//g
3233 s
/ -host[= ][^
]*//g
3234 s
/ -build[= ][^
]*//g
3235 s
/ -target[= ][^
]*//g
3236 s
/ -program-prefix[= ][^
]*//g
3237 s
/ -program-suffix[= ][^
]*//g
3238 s
/ -program-transform-name[= ][^
]*//g
3243 sed -f conftestsed <<EOF_SED > conftestsed.out
3244 ${ac_configure_args}
3246 baseargs=`cat conftestsed.out`
3247 rm -f conftestsed conftestsed.out
3249 # Add in --program-transform-name, after --program-prefix and
3250 # --program-suffix have been applied to it. Autoconf has already
3251 # doubled dollar signs and backslashes in program_transform_name; we want
3252 # the backslashes un-doubled, and then the entire thing wrapped in single
3253 # quotes, because this will be expanded first by make and then by the shell.
3254 # Also, because we want to override the logic in subdir configure scripts to
3255 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3256 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3257 ${program_transform_name}
3259 gcc_transform_name=`cat conftestsed.out`
3260 rm -f conftestsed.out
3261 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3263 # For the build-side libraries, we just need to pretend we're native
,
3264 # and not use the same cache file. Multilibs are neither needed nor
3266 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3268 # For host modules, accept cache file option, or specification as blank.
3269 case "${cache_file}" in
3271 cache_file_option
="" ;;
3272 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3273 cache_file_option
="--cache-file=${cache_file}" ;;
3275 cache_file_option
="--cache-file=../${cache_file}" ;;
3278 # Host dirs don't like to share a cache file either, horribly enough.
3279 # This seems to be due to autoconf 2.5x stupidity.
3280 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3282 target_configargs
=${baseargs}
3284 # Passing a --with-cross-host argument lets the target libraries know
3285 # whether they are being built with a cross-compiler or being built
3286 # native. However, it would be better to use other mechanisms to make the
3287 # sorts of decisions they want to make on this basis. Please consider
3288 # this option to be deprecated. FIXME.
3289 if test x
${is_cross_compiler} = xyes
; then
3290 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3293 # Default to --enable-multilib.
3294 if test x
${enable_multilib} = x
; then
3295 target_configargs
="--enable-multilib ${target_configargs}"
3298 # Pass --with-newlib if appropriate. Note that target_configdirs has
3299 # changed from the earlier setting of with_newlib.
3300 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3301 target_configargs
="--with-newlib ${target_configargs}"
3304 # Different target subdirs use different values of certain variables
3305 # (notably CXX). Worse, multilibs use *lots* of different values.
3306 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3307 # it doesn't automatically accept command-line overrides of them.
3308 # This means it's not safe for target subdirs to share a cache file,
3309 # which is disgusting, but there you have it. Hopefully this can be
3310 # fixed in future. It's still worthwhile to use a cache file for each
3311 # directory. I think.
3313 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3314 # We need to pass --target, as newer autoconf's requires consistency
3315 # for target_alias and gcc doesn't manage it consistently.
3316 target_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3319 case " $target_configdirs " in
3321 case " $target_configargs " in
3322 *" --with-newlib "*)
3325 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' ;;
3328 # If we're not building GCC, don't discard standard headers.
3329 if test -d ${srcdir}/gcc
; then
3330 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3332 if test "${build}" != "${host}"; then
3333 # On Canadian crosses, CC_FOR_TARGET will have already been set
3334 # by `configure', so we won't have an opportunity to add -Bgcc/
3335 # to it. This is right: we don't want to search that directory
3336 # for binaries, but we want the header files in there, so add
3338 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3340 # Someone might think of using the pre-installed headers on
3341 # Canadian crosses, in case the installed compiler is not fully
3342 # compatible with the compiler being built. In this case, it
3343 # would be better to flag an error than risking having
3344 # incompatible object files being constructed. We can't
3345 # guarantee that an error will be flagged, but let's hope the
3346 # compiler will do it, when presented with incompatible header
3351 case "${target}-${is_cross_compiler}" in
3352 i
[3456789]86-*-linux*-no)
3353 # Here host == target, so we don't need to build gcc,
3354 # so we don't want to discard standard headers.
3355 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3358 # If we're building newlib, use its generic headers last, but search
3359 # for any libc-related directories first (so make it the last -B
3361 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3370 # Can't be handled as Cygwin above since Mingw does not use newlib.
3371 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' ;;
3374 # Allow the user to override the flags for
3375 # our build compiler if desired.
3376 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3378 # On Canadian crosses, we'll be searching the right directories for
3379 # the previously-installed cross compiler, so don't bother to add
3380 # flags for directories within the install tree of the compiler
3381 # being built; programs in there won't even run.
3382 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3383 # Search for pre-installed headers if nothing else fits.
3384 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3387 if test "x
${use_gnu_ld}" = x &&
3388 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3389 # Arrange for us to find uninstalled linker scripts.
3390 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3393 # Search for other target-specific linker scripts and such.
3396 if test -d ${srcdir}/libgloss/m32c; then
3397 # This is for crt0.o
3398 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3399 # This is for r8c.ld
3400 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
3401 # This is for libnosys.a
3402 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
3407 # Makefile fragments.
3408 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3410 eval fragval=\$$frag
3411 if test $fragval != /dev/null; then
3412 eval $frag=${srcdir}/$fragval
3420 # Miscellanea: directories, flags, etc.
3428 # Build module lists & subconfigure args.
3432 # Host module lists & subconfigure args.
3436 # Target module lists & subconfigure args.
3444 # Generate default definitions for YACC, M4, LEX and other programs that run
3445 # on the build machine. These are used if the Makefile can't locate these
3446 # programs in objdir.
3447 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3449 for ac_prog in 'bison -y' byacc yacc
3451 # Extract the first word of "$ac_prog", so it can be a program name with args.
3452 set dummy $ac_prog; ac_word=$2
3453 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3454 echo "configure
:3455: checking
for $ac_word" >&5
3455 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3456 echo $ac_n "(cached
) $ac_c" 1>&6
3458 if test -n "$YACC"; then
3459 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3463 for ac_dir in $ac_dummy; do
3464 test -z "$ac_dir" && ac_dir=.
3465 if test -f $ac_dir/$ac_word; then
3466 ac_cv_prog_YACC="$ac_prog"
3473 YACC="$ac_cv_prog_YACC"
3474 if test -n "$YACC"; then
3475 echo "$ac_t""$YACC" 1>&6
3477 echo "$ac_t""no
" 1>&6
3480 test -n "$YACC" && break
3482 test -n "$YACC" || YACC="$MISSING bison
-y"
3484 case " $build_configdirs " in
3485 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3486 *" byacc
"*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3489 for ac_prog in bison
3491 # Extract the first word of "$ac_prog", so it can be a program name with args.
3492 set dummy $ac_prog; ac_word=$2
3493 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3494 echo "configure
:3495: checking
for $ac_word" >&5
3495 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3496 echo $ac_n "(cached
) $ac_c" 1>&6
3498 if test -n "$BISON"; then
3499 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3503 for ac_dir in $ac_dummy; do
3504 test -z "$ac_dir" && ac_dir=.
3505 if test -f $ac_dir/$ac_word; then
3506 ac_cv_prog_BISON="$ac_prog"
3513 BISON="$ac_cv_prog_BISON"
3514 if test -n "$BISON"; then
3515 echo "$ac_t""$BISON" 1>&6
3517 echo "$ac_t""no
" 1>&6
3520 test -n "$BISON" && break
3522 test -n "$BISON" || BISON="$MISSING bison
"
3524 case " $build_configdirs " in
3525 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3528 for ac_prog in gm4 gnum4 m4
3530 # Extract the first word of "$ac_prog", so it can be a program name with args.
3531 set dummy $ac_prog; ac_word=$2
3532 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3533 echo "configure
:3534: checking
for $ac_word" >&5
3534 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3535 echo $ac_n "(cached
) $ac_c" 1>&6
3537 if test -n "$M4"; then
3538 ac_cv_prog_M4="$M4" # Let the user override the test.
3540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3542 for ac_dir in $ac_dummy; do
3543 test -z "$ac_dir" && ac_dir=.
3544 if test -f $ac_dir/$ac_word; then
3545 ac_cv_prog_M4="$ac_prog"
3553 if test -n "$M4"; then
3554 echo "$ac_t""$M4" 1>&6
3556 echo "$ac_t""no
" 1>&6
3559 test -n "$M4" && break
3561 test -n "$M4" || M4="$MISSING m4"
3563 case " $build_configdirs " in
3564 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3567 for ac_prog in flex lex
3569 # Extract the first word of "$ac_prog", so it can be a program name with args.
3570 set dummy $ac_prog; ac_word=$2
3571 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3572 echo "configure
:3573: checking
for $ac_word" >&5
3573 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3574 echo $ac_n "(cached
) $ac_c" 1>&6
3576 if test -n "$LEX"; then
3577 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3581 for ac_dir in $ac_dummy; do
3582 test -z "$ac_dir" && ac_dir=.
3583 if test -f $ac_dir/$ac_word; then
3584 ac_cv_prog_LEX="$ac_prog"
3591 LEX="$ac_cv_prog_LEX"
3592 if test -n "$LEX"; then
3593 echo "$ac_t""$LEX" 1>&6
3595 echo "$ac_t""no
" 1>&6
3598 test -n "$LEX" && break
3600 test -n "$LEX" || LEX="$MISSING flex
"
3602 case " $build_configdirs " in
3603 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3604 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3609 # Extract the first word of "$ac_prog", so it can be a program name with args.
3610 set dummy $ac_prog; ac_word=$2
3611 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3612 echo "configure
:3613: checking
for $ac_word" >&5
3613 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3614 echo $ac_n "(cached
) $ac_c" 1>&6
3616 if test -n "$FLEX"; then
3617 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3621 for ac_dir in $ac_dummy; do
3622 test -z "$ac_dir" && ac_dir=.
3623 if test -f $ac_dir/$ac_word; then
3624 ac_cv_prog_FLEX="$ac_prog"
3631 FLEX="$ac_cv_prog_FLEX"
3632 if test -n "$FLEX"; then
3633 echo "$ac_t""$FLEX" 1>&6
3635 echo "$ac_t""no
" 1>&6
3638 test -n "$FLEX" && break
3640 test -n "$FLEX" || FLEX="$MISSING flex
"
3642 case " $build_configdirs " in
3643 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3646 for ac_prog in makeinfo
3648 # Extract the first word of "$ac_prog", so it can be a program name with args.
3649 set dummy $ac_prog; ac_word=$2
3650 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3651 echo "configure
:3652: checking
for $ac_word" >&5
3652 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3653 echo $ac_n "(cached
) $ac_c" 1>&6
3655 if test -n "$MAKEINFO"; then
3656 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3660 for ac_dir in $ac_dummy; do
3661 test -z "$ac_dir" && ac_dir=.
3662 if test -f $ac_dir/$ac_word; then
3663 ac_cv_prog_MAKEINFO="$ac_prog"
3670 MAKEINFO="$ac_cv_prog_MAKEINFO"
3671 if test -n "$MAKEINFO"; then
3672 echo "$ac_t""$MAKEINFO" 1>&6
3674 echo "$ac_t""no
" 1>&6
3677 test -n "$MAKEINFO" && break
3679 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
3681 case " $build_configdirs " in
3682 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3685 # For an installed makeinfo, we require it to be from texinfo 4.4 or
3686 # higher, else we use the "missing
" dummy.
3687 if ${MAKEINFO} --version \
3688 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
3691 MAKEINFO="$MISSING makeinfo
"
3697 # FIXME: expect and dejagnu may become build tools?
3699 for ac_prog in expect
3701 # Extract the first word of "$ac_prog", so it can be a program name with args.
3702 set dummy $ac_prog; ac_word=$2
3703 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3704 echo "configure
:3705: checking
for $ac_word" >&5
3705 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3706 echo $ac_n "(cached
) $ac_c" 1>&6
3708 if test -n "$EXPECT"; then
3709 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3713 for ac_dir in $ac_dummy; do
3714 test -z "$ac_dir" && ac_dir=.
3715 if test -f $ac_dir/$ac_word; then
3716 ac_cv_prog_EXPECT="$ac_prog"
3723 EXPECT="$ac_cv_prog_EXPECT"
3724 if test -n "$EXPECT"; then
3725 echo "$ac_t""$EXPECT" 1>&6
3727 echo "$ac_t""no
" 1>&6
3730 test -n "$EXPECT" && break
3732 test -n "$EXPECT" || EXPECT="expect
"
3734 case " $configdirs " in
3736 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3740 for ac_prog in runtest
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy $ac_prog; ac_word=$2
3744 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3745 echo "configure
:3746: checking
for $ac_word" >&5
3746 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3747 echo $ac_n "(cached
) $ac_c" 1>&6
3749 if test -n "$RUNTEST"; then
3750 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3754 for ac_dir in $ac_dummy; do
3755 test -z "$ac_dir" && ac_dir=.
3756 if test -f $ac_dir/$ac_word; then
3757 ac_cv_prog_RUNTEST="$ac_prog"
3764 RUNTEST="$ac_cv_prog_RUNTEST"
3765 if test -n "$RUNTEST"; then
3766 echo "$ac_t""$RUNTEST" 1>&6
3768 echo "$ac_t""no
" 1>&6
3771 test -n "$RUNTEST" && break
3773 test -n "$RUNTEST" || RUNTEST="runtest
"
3775 case " $configdirs " in
3777 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
3784 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3785 ncn_target_tool_prefix=
3786 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3788 for ncn_progname in ar; do
3789 if test -n "$ncn_tool_prefix"; then
3790 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3791 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3792 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3793 echo "configure
:3794: checking
for $ac_word" >&5
3794 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3795 echo $ac_n "(cached
) $ac_c" 1>&6
3797 if test -n "$AR"; then
3798 ac_cv_prog_AR="$AR" # Let the user override the test.
3800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3802 for ac_dir in $ac_dummy; do
3803 test -z "$ac_dir" && ac_dir=.
3804 if test -f $ac_dir/$ac_word; then
3805 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3813 if test -n "$AR"; then
3814 echo "$ac_t""$AR" 1>&6
3816 echo "$ac_t""no
" 1>&6
3820 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3822 set dummy ${ncn_progname}; ac_word=$2
3823 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3824 echo "configure
:3825: checking
for $ac_word" >&5
3825 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3826 echo $ac_n "(cached
) $ac_c" 1>&6
3828 if test -n "$AR"; then
3829 ac_cv_prog_AR="$AR" # Let the user override the test.
3831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3833 for ac_dir in $ac_dummy; do
3834 test -z "$ac_dir" && ac_dir=.
3835 if test -f $ac_dir/$ac_word; then
3836 ac_cv_prog_AR="${ncn_progname}"
3844 if test -n "$AR"; then
3845 echo "$ac_t""$AR" 1>&6
3847 echo "$ac_t""no
" 1>&6
3851 test -n "$ac_cv_prog_AR" && break
3854 if test -z "$ac_cv_prog_AR" ; then
3856 if test $build = $host ; then
3859 AR="${ncn_tool_prefix}$2"
3863 for ncn_progname in as; do
3864 if test -n "$ncn_tool_prefix"; then
3865 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3866 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3867 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3868 echo "configure
:3869: checking
for $ac_word" >&5
3869 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3870 echo $ac_n "(cached
) $ac_c" 1>&6
3872 if test -n "$AS"; then
3873 ac_cv_prog_AS="$AS" # Let the user override the test.
3875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3877 for ac_dir in $ac_dummy; do
3878 test -z "$ac_dir" && ac_dir=.
3879 if test -f $ac_dir/$ac_word; then
3880 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3888 if test -n "$AS"; then
3889 echo "$ac_t""$AS" 1>&6
3891 echo "$ac_t""no
" 1>&6
3895 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3897 set dummy ${ncn_progname}; ac_word=$2
3898 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3899 echo "configure
:3900: checking
for $ac_word" >&5
3900 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3901 echo $ac_n "(cached
) $ac_c" 1>&6
3903 if test -n "$AS"; then
3904 ac_cv_prog_AS="$AS" # Let the user override the test.
3906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3908 for ac_dir in $ac_dummy; do
3909 test -z "$ac_dir" && ac_dir=.
3910 if test -f $ac_dir/$ac_word; then
3911 ac_cv_prog_AS="${ncn_progname}"
3919 if test -n "$AS"; then
3920 echo "$ac_t""$AS" 1>&6
3922 echo "$ac_t""no
" 1>&6
3926 test -n "$ac_cv_prog_AS" && break
3929 if test -z "$ac_cv_prog_AS" ; then
3931 if test $build = $host ; then
3934 AS="${ncn_tool_prefix}$2"
3938 for ncn_progname in dlltool; do
3939 if test -n "$ncn_tool_prefix"; then
3940 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3941 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3942 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3943 echo "configure
:3944: checking
for $ac_word" >&5
3944 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3945 echo $ac_n "(cached
) $ac_c" 1>&6
3947 if test -n "$DLLTOOL"; then
3948 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3952 for ac_dir in $ac_dummy; do
3953 test -z "$ac_dir" && ac_dir=.
3954 if test -f $ac_dir/$ac_word; then
3955 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3962 DLLTOOL="$ac_cv_prog_DLLTOOL"
3963 if test -n "$DLLTOOL"; then
3964 echo "$ac_t""$DLLTOOL" 1>&6
3966 echo "$ac_t""no
" 1>&6
3970 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3972 set dummy ${ncn_progname}; ac_word=$2
3973 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3974 echo "configure
:3975: checking
for $ac_word" >&5
3975 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3976 echo $ac_n "(cached
) $ac_c" 1>&6
3978 if test -n "$DLLTOOL"; then
3979 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3983 for ac_dir in $ac_dummy; do
3984 test -z "$ac_dir" && ac_dir=.
3985 if test -f $ac_dir/$ac_word; then
3986 ac_cv_prog_DLLTOOL="${ncn_progname}"
3993 DLLTOOL="$ac_cv_prog_DLLTOOL"
3994 if test -n "$DLLTOOL"; then
3995 echo "$ac_t""$DLLTOOL" 1>&6
3997 echo "$ac_t""no
" 1>&6
4001 test -n "$ac_cv_prog_DLLTOOL" && break
4004 if test -z "$ac_cv_prog_DLLTOOL" ; then
4006 if test $build = $host ; then
4009 DLLTOOL="${ncn_tool_prefix}$2"
4013 for ncn_progname in ld; do
4014 if test -n "$ncn_tool_prefix"; then
4015 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4016 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4017 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4018 echo "configure
:4019: checking
for $ac_word" >&5
4019 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4020 echo $ac_n "(cached
) $ac_c" 1>&6
4022 if test -n "$LD"; then
4023 ac_cv_prog_LD="$LD" # Let the user override the test.
4025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4027 for ac_dir in $ac_dummy; do
4028 test -z "$ac_dir" && ac_dir=.
4029 if test -f $ac_dir/$ac_word; then
4030 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
4038 if test -n "$LD"; then
4039 echo "$ac_t""$LD" 1>&6
4041 echo "$ac_t""no
" 1>&6
4045 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
4046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4047 set dummy ${ncn_progname}; ac_word=$2
4048 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4049 echo "configure
:4050: checking
for $ac_word" >&5
4050 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
4051 echo $ac_n "(cached
) $ac_c" 1>&6
4053 if test -n "$LD"; then
4054 ac_cv_prog_LD="$LD" # Let the user override the test.
4056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4058 for ac_dir in $ac_dummy; do
4059 test -z "$ac_dir" && ac_dir=.
4060 if test -f $ac_dir/$ac_word; then
4061 ac_cv_prog_LD="${ncn_progname}"
4069 if test -n "$LD"; then
4070 echo "$ac_t""$LD" 1>&6
4072 echo "$ac_t""no
" 1>&6
4076 test -n "$ac_cv_prog_LD" && break
4079 if test -z "$ac_cv_prog_LD" ; then
4081 if test $build = $host ; then
4084 LD="${ncn_tool_prefix}$2"
4088 for ncn_progname in lipo; do
4089 if test -n "$ncn_tool_prefix"; then
4090 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4091 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4092 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4093 echo "configure
:4094: checking
for $ac_word" >&5
4094 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4095 echo $ac_n "(cached
) $ac_c" 1>&6
4097 if test -n "$LIPO"; then
4098 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4102 for ac_dir in $ac_dummy; do
4103 test -z "$ac_dir" && ac_dir=.
4104 if test -f $ac_dir/$ac_word; then
4105 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4112 LIPO="$ac_cv_prog_LIPO"
4113 if test -n "$LIPO"; then
4114 echo "$ac_t""$LIPO" 1>&6
4116 echo "$ac_t""no
" 1>&6
4120 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4122 set dummy ${ncn_progname}; ac_word=$2
4123 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4124 echo "configure
:4125: checking
for $ac_word" >&5
4125 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4126 echo $ac_n "(cached
) $ac_c" 1>&6
4128 if test -n "$LIPO"; then
4129 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4133 for ac_dir in $ac_dummy; do
4134 test -z "$ac_dir" && ac_dir=.
4135 if test -f $ac_dir/$ac_word; then
4136 ac_cv_prog_LIPO="${ncn_progname}"
4143 LIPO="$ac_cv_prog_LIPO"
4144 if test -n "$LIPO"; then
4145 echo "$ac_t""$LIPO" 1>&6
4147 echo "$ac_t""no
" 1>&6
4151 test -n "$ac_cv_prog_LIPO" && break
4154 if test -z "$ac_cv_prog_LIPO" ; then
4156 if test $build = $host ; then
4159 LIPO="${ncn_tool_prefix}$2"
4163 for ncn_progname in nm; do
4164 if test -n "$ncn_tool_prefix"; then
4165 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4166 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4167 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4168 echo "configure
:4169: checking
for $ac_word" >&5
4169 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4170 echo $ac_n "(cached
) $ac_c" 1>&6
4172 if test -n "$NM"; then
4173 ac_cv_prog_NM="$NM" # Let the user override the test.
4175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4177 for ac_dir in $ac_dummy; do
4178 test -z "$ac_dir" && ac_dir=.
4179 if test -f $ac_dir/$ac_word; then
4180 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4188 if test -n "$NM"; then
4189 echo "$ac_t""$NM" 1>&6
4191 echo "$ac_t""no
" 1>&6
4195 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4197 set dummy ${ncn_progname}; ac_word=$2
4198 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4199 echo "configure
:4200: checking
for $ac_word" >&5
4200 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4201 echo $ac_n "(cached
) $ac_c" 1>&6
4203 if test -n "$NM"; then
4204 ac_cv_prog_NM="$NM" # Let the user override the test.
4206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4208 for ac_dir in $ac_dummy; do
4209 test -z "$ac_dir" && ac_dir=.
4210 if test -f $ac_dir/$ac_word; then
4211 ac_cv_prog_NM="${ncn_progname}"
4219 if test -n "$NM"; then
4220 echo "$ac_t""$NM" 1>&6
4222 echo "$ac_t""no
" 1>&6
4226 test -n "$ac_cv_prog_NM" && break
4229 if test -z "$ac_cv_prog_NM" ; then
4231 if test $build = $host ; then
4234 NM="${ncn_tool_prefix}$2"
4238 for ncn_progname in ranlib; do
4239 if test -n "$ncn_tool_prefix"; then
4240 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4241 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4242 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4243 echo "configure
:4244: checking
for $ac_word" >&5
4244 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4245 echo $ac_n "(cached
) $ac_c" 1>&6
4247 if test -n "$RANLIB"; then
4248 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4252 for ac_dir in $ac_dummy; do
4253 test -z "$ac_dir" && ac_dir=.
4254 if test -f $ac_dir/$ac_word; then
4255 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4262 RANLIB="$ac_cv_prog_RANLIB"
4263 if test -n "$RANLIB"; then
4264 echo "$ac_t""$RANLIB" 1>&6
4266 echo "$ac_t""no
" 1>&6
4270 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4272 set dummy ${ncn_progname}; ac_word=$2
4273 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4274 echo "configure
:4275: checking
for $ac_word" >&5
4275 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4276 echo $ac_n "(cached
) $ac_c" 1>&6
4278 if test -n "$RANLIB"; then
4279 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4283 for ac_dir in $ac_dummy; do
4284 test -z "$ac_dir" && ac_dir=.
4285 if test -f $ac_dir/$ac_word; then
4286 ac_cv_prog_RANLIB="${ncn_progname}"
4293 RANLIB="$ac_cv_prog_RANLIB"
4294 if test -n "$RANLIB"; then
4295 echo "$ac_t""$RANLIB" 1>&6
4297 echo "$ac_t""no
" 1>&6
4301 test -n "$ac_cv_prog_RANLIB" && break
4304 if test -z "$ac_cv_prog_RANLIB" ; then
4308 for ncn_progname in strip; do
4309 if test -n "$ncn_tool_prefix"; then
4310 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4311 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4312 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4313 echo "configure
:4314: checking
for $ac_word" >&5
4314 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4315 echo $ac_n "(cached
) $ac_c" 1>&6
4317 if test -n "$STRIP"; then
4318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4322 for ac_dir in $ac_dummy; do
4323 test -z "$ac_dir" && ac_dir=.
4324 if test -f $ac_dir/$ac_word; then
4325 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4332 STRIP="$ac_cv_prog_STRIP"
4333 if test -n "$STRIP"; then
4334 echo "$ac_t""$STRIP" 1>&6
4336 echo "$ac_t""no
" 1>&6
4340 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4342 set dummy ${ncn_progname}; ac_word=$2
4343 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4344 echo "configure
:4345: checking
for $ac_word" >&5
4345 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4346 echo $ac_n "(cached
) $ac_c" 1>&6
4348 if test -n "$STRIP"; then
4349 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4353 for ac_dir in $ac_dummy; do
4354 test -z "$ac_dir" && ac_dir=.
4355 if test -f $ac_dir/$ac_word; then
4356 ac_cv_prog_STRIP="${ncn_progname}"
4363 STRIP="$ac_cv_prog_STRIP"
4364 if test -n "$STRIP"; then
4365 echo "$ac_t""$STRIP" 1>&6
4367 echo "$ac_t""no
" 1>&6
4371 test -n "$ac_cv_prog_STRIP" && break
4374 if test -z "$ac_cv_prog_STRIP" ; then
4378 for ncn_progname in windres; do
4379 if test -n "$ncn_tool_prefix"; then
4380 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4381 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4382 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4383 echo "configure
:4384: checking
for $ac_word" >&5
4384 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4385 echo $ac_n "(cached
) $ac_c" 1>&6
4387 if test -n "$WINDRES"; then
4388 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4392 for ac_dir in $ac_dummy; do
4393 test -z "$ac_dir" && ac_dir=.
4394 if test -f $ac_dir/$ac_word; then
4395 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4402 WINDRES="$ac_cv_prog_WINDRES"
4403 if test -n "$WINDRES"; then
4404 echo "$ac_t""$WINDRES" 1>&6
4406 echo "$ac_t""no
" 1>&6
4410 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4412 set dummy ${ncn_progname}; ac_word=$2
4413 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4414 echo "configure
:4415: checking
for $ac_word" >&5
4415 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4416 echo $ac_n "(cached
) $ac_c" 1>&6
4418 if test -n "$WINDRES"; then
4419 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4423 for ac_dir in $ac_dummy; do
4424 test -z "$ac_dir" && ac_dir=.
4425 if test -f $ac_dir/$ac_word; then
4426 ac_cv_prog_WINDRES="${ncn_progname}"
4433 WINDRES="$ac_cv_prog_WINDRES"
4434 if test -n "$WINDRES"; then
4435 echo "$ac_t""$WINDRES" 1>&6
4437 echo "$ac_t""no
" 1>&6
4441 test -n "$ac_cv_prog_WINDRES" && break
4444 if test -z "$ac_cv_prog_WINDRES" ; then
4446 if test $build = $host ; then
4449 WINDRES="${ncn_tool_prefix}$2"
4453 for ncn_progname in objcopy; do
4454 if test -n "$ncn_tool_prefix"; then
4455 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4456 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4457 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4458 echo "configure
:4459: checking
for $ac_word" >&5
4459 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4460 echo $ac_n "(cached
) $ac_c" 1>&6
4462 if test -n "$OBJCOPY"; then
4463 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4467 for ac_dir in $ac_dummy; do
4468 test -z "$ac_dir" && ac_dir=.
4469 if test -f $ac_dir/$ac_word; then
4470 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4477 OBJCOPY="$ac_cv_prog_OBJCOPY"
4478 if test -n "$OBJCOPY"; then
4479 echo "$ac_t""$OBJCOPY" 1>&6
4481 echo "$ac_t""no
" 1>&6
4485 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4487 set dummy ${ncn_progname}; ac_word=$2
4488 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4489 echo "configure
:4490: checking
for $ac_word" >&5
4490 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4491 echo $ac_n "(cached
) $ac_c" 1>&6
4493 if test -n "$OBJCOPY"; then
4494 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4498 for ac_dir in $ac_dummy; do
4499 test -z "$ac_dir" && ac_dir=.
4500 if test -f $ac_dir/$ac_word; then
4501 ac_cv_prog_OBJCOPY="${ncn_progname}"
4508 OBJCOPY="$ac_cv_prog_OBJCOPY"
4509 if test -n "$OBJCOPY"; then
4510 echo "$ac_t""$OBJCOPY" 1>&6
4512 echo "$ac_t""no
" 1>&6
4516 test -n "$ac_cv_prog_OBJCOPY" && break
4519 if test -z "$ac_cv_prog_OBJCOPY" ; then
4521 if test $build = $host ; then
4524 OBJCOPY="${ncn_tool_prefix}$2"
4528 for ncn_progname in objdump; do
4529 if test -n "$ncn_tool_prefix"; then
4530 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4531 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4532 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4533 echo "configure
:4534: checking
for $ac_word" >&5
4534 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4535 echo $ac_n "(cached
) $ac_c" 1>&6
4537 if test -n "$OBJDUMP"; then
4538 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4542 for ac_dir in $ac_dummy; do
4543 test -z "$ac_dir" && ac_dir=.
4544 if test -f $ac_dir/$ac_word; then
4545 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4552 OBJDUMP="$ac_cv_prog_OBJDUMP"
4553 if test -n "$OBJDUMP"; then
4554 echo "$ac_t""$OBJDUMP" 1>&6
4556 echo "$ac_t""no
" 1>&6
4560 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4562 set dummy ${ncn_progname}; ac_word=$2
4563 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4564 echo "configure
:4565: checking
for $ac_word" >&5
4565 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4566 echo $ac_n "(cached
) $ac_c" 1>&6
4568 if test -n "$OBJDUMP"; then
4569 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4573 for ac_dir in $ac_dummy; do
4574 test -z "$ac_dir" && ac_dir=.
4575 if test -f $ac_dir/$ac_word; then
4576 ac_cv_prog_OBJDUMP="${ncn_progname}"
4583 OBJDUMP="$ac_cv_prog_OBJDUMP"
4584 if test -n "$OBJDUMP"; then
4585 echo "$ac_t""$OBJDUMP" 1>&6
4587 echo "$ac_t""no
" 1>&6
4591 test -n "$ac_cv_prog_OBJDUMP" && break
4594 if test -z "$ac_cv_prog_OBJDUMP" ; then
4596 if test $build = $host ; then
4599 OBJDUMP="${ncn_tool_prefix}$2"
4610 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4611 if test "${with_build_time_tools+set}" = set; then
4612 withval="$with_build_time_tools"
4616 with_build_time_tools=
4617 echo "configure
: warning
: argument to
--with-build-time-tools must be an absolute path
" 1>&2
4621 with_build_time_tools=
4625 if test -n "$with_build_time_tools"; then
4626 for ncn_progname in cc gcc; do
4627 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4628 echo "configure
:4629: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4629 if test -x $with_build_time_tools/${ncn_progname}; then
4630 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4631 echo "$ac_t""yes" 1>&6
4634 echo "$ac_t""no
" 1>&6
4639 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4640 for ncn_progname in cc gcc; do
4641 if test -n "$ncn_target_tool_prefix"; then
4642 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4643 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4644 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4645 echo "configure
:4646: checking
for $ac_word" >&5
4646 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4647 echo $ac_n "(cached
) $ac_c" 1>&6
4649 if test -n "$CC_FOR_TARGET"; then
4650 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4654 for ac_dir in $ac_dummy; do
4655 test -z "$ac_dir" && ac_dir=.
4656 if test -f $ac_dir/$ac_word; then
4657 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4664 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4665 if test -n "$CC_FOR_TARGET"; then
4666 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4668 echo "$ac_t""no
" 1>&6
4672 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4674 set dummy ${ncn_progname}; ac_word=$2
4675 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4676 echo "configure
:4677: checking
for $ac_word" >&5
4677 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4678 echo $ac_n "(cached
) $ac_c" 1>&6
4680 if test -n "$CC_FOR_TARGET"; then
4681 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4685 for ac_dir in $ac_dummy; do
4686 test -z "$ac_dir" && ac_dir=.
4687 if test -f $ac_dir/$ac_word; then
4688 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4695 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4696 if test -n "$CC_FOR_TARGET"; then
4697 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4699 echo "$ac_t""no
" 1>&6
4703 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4707 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4709 if test $build = $target ; then
4712 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4716 if test -n "$with_build_time_tools"; then
4717 for ncn_progname in c++ g++ cxx gxx; do
4718 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4719 echo "configure
:4720: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4720 if test -x $with_build_time_tools/${ncn_progname}; then
4721 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4722 echo "$ac_t""yes" 1>&6
4725 echo "$ac_t""no
" 1>&6
4730 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4731 for ncn_progname in c++ g++ cxx gxx; do
4732 if test -n "$ncn_target_tool_prefix"; then
4733 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4734 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4735 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4736 echo "configure
:4737: checking
for $ac_word" >&5
4737 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4738 echo $ac_n "(cached
) $ac_c" 1>&6
4740 if test -n "$CXX_FOR_TARGET"; then
4741 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4745 for ac_dir in $ac_dummy; do
4746 test -z "$ac_dir" && ac_dir=.
4747 if test -f $ac_dir/$ac_word; then
4748 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4755 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4756 if test -n "$CXX_FOR_TARGET"; then
4757 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4759 echo "$ac_t""no
" 1>&6
4763 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4765 set dummy ${ncn_progname}; ac_word=$2
4766 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4767 echo "configure
:4768: checking
for $ac_word" >&5
4768 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4769 echo $ac_n "(cached
) $ac_c" 1>&6
4771 if test -n "$CXX_FOR_TARGET"; then
4772 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4776 for ac_dir in $ac_dummy; do
4777 test -z "$ac_dir" && ac_dir=.
4778 if test -f $ac_dir/$ac_word; then
4779 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4786 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4787 if test -n "$CXX_FOR_TARGET"; then
4788 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4790 echo "$ac_t""no
" 1>&6
4794 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4798 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4799 set dummy c++ g++ cxx gxx
4800 if test $build = $target ; then
4803 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4807 if test -n "$with_build_time_tools"; then
4808 for ncn_progname in gcc; do
4809 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4810 echo "configure
:4811: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4811 if test -x $with_build_time_tools/${ncn_progname}; then
4812 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4813 echo "$ac_t""yes" 1>&6
4816 echo "$ac_t""no
" 1>&6
4821 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4822 for ncn_progname in gcc; do
4823 if test -n "$ncn_target_tool_prefix"; then
4824 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4825 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4826 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4827 echo "configure
:4828: checking
for $ac_word" >&5
4828 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4829 echo $ac_n "(cached
) $ac_c" 1>&6
4831 if test -n "$GCC_FOR_TARGET"; then
4832 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4836 for ac_dir in $ac_dummy; do
4837 test -z "$ac_dir" && ac_dir=.
4838 if test -f $ac_dir/$ac_word; then
4839 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4846 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4847 if test -n "$GCC_FOR_TARGET"; then
4848 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4850 echo "$ac_t""no
" 1>&6
4854 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4856 set dummy ${ncn_progname}; ac_word=$2
4857 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4858 echo "configure
:4859: checking
for $ac_word" >&5
4859 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4860 echo $ac_n "(cached
) $ac_c" 1>&6
4862 if test -n "$GCC_FOR_TARGET"; then
4863 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4867 for ac_dir in $ac_dummy; do
4868 test -z "$ac_dir" && ac_dir=.
4869 if test -f $ac_dir/$ac_word; then
4870 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4877 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4878 if test -n "$GCC_FOR_TARGET"; then
4879 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4881 echo "$ac_t""no
" 1>&6
4885 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4889 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4890 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4893 if test -n "$with_build_time_tools"; then
4894 for ncn_progname in gcj; do
4895 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4896 echo "configure
:4897: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4897 if test -x $with_build_time_tools/${ncn_progname}; then
4898 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4899 echo "$ac_t""yes" 1>&6
4902 echo "$ac_t""no
" 1>&6
4907 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4908 for ncn_progname in gcj; do
4909 if test -n "$ncn_target_tool_prefix"; then
4910 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4911 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4912 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4913 echo "configure
:4914: checking
for $ac_word" >&5
4914 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4915 echo $ac_n "(cached
) $ac_c" 1>&6
4917 if test -n "$GCJ_FOR_TARGET"; then
4918 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4922 for ac_dir in $ac_dummy; do
4923 test -z "$ac_dir" && ac_dir=.
4924 if test -f $ac_dir/$ac_word; then
4925 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4932 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4933 if test -n "$GCJ_FOR_TARGET"; then
4934 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4936 echo "$ac_t""no
" 1>&6
4940 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4942 set dummy ${ncn_progname}; ac_word=$2
4943 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4944 echo "configure
:4945: checking
for $ac_word" >&5
4945 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4946 echo $ac_n "(cached
) $ac_c" 1>&6
4948 if test -n "$GCJ_FOR_TARGET"; then
4949 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4953 for ac_dir in $ac_dummy; do
4954 test -z "$ac_dir" && ac_dir=.
4955 if test -f $ac_dir/$ac_word; then
4956 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4963 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4964 if test -n "$GCJ_FOR_TARGET"; then
4965 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4967 echo "$ac_t""no
" 1>&6
4971 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4975 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4977 if test $build = $target ; then
4980 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4984 if test -n "$with_build_time_tools"; then
4985 for ncn_progname in gfortran; do
4986 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4987 echo "configure
:4988: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4988 if test -x $with_build_time_tools/${ncn_progname}; then
4989 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4990 echo "$ac_t""yes" 1>&6
4993 echo "$ac_t""no
" 1>&6
4998 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
4999 for ncn_progname in gfortran; do
5000 if test -n "$ncn_target_tool_prefix"; then
5001 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5002 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5003 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5004 echo "configure
:5005: checking
for $ac_word" >&5
5005 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5006 echo $ac_n "(cached
) $ac_c" 1>&6
5008 if test -n "$GFORTRAN_FOR_TARGET"; then
5009 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5013 for ac_dir in $ac_dummy; do
5014 test -z "$ac_dir" && ac_dir=.
5015 if test -f $ac_dir/$ac_word; then
5016 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5023 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5024 if test -n "$GFORTRAN_FOR_TARGET"; then
5025 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5027 echo "$ac_t""no
" 1>&6
5031 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
5032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5033 set dummy ${ncn_progname}; ac_word=$2
5034 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5035 echo "configure
:5036: checking
for $ac_word" >&5
5036 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
5037 echo $ac_n "(cached
) $ac_c" 1>&6
5039 if test -n "$GFORTRAN_FOR_TARGET"; then
5040 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
5042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5044 for ac_dir in $ac_dummy; do
5045 test -z "$ac_dir" && ac_dir=.
5046 if test -f $ac_dir/$ac_word; then
5047 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5054 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5055 if test -n "$GFORTRAN_FOR_TARGET"; then
5056 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5058 echo "$ac_t""no
" 1>&6
5062 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5066 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5068 if test $build = $target ; then
5069 GFORTRAN_FOR_TARGET="$2"
5071 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5077 # The user is always right.
5078 if test "${PATH_SEPARATOR+set}" != set; then
5079 echo "#! /bin/sh" >conf$$.sh
5080 echo "exit 0" >>conf$$.sh
5082 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5092 if test "x$exec_prefix" = xNONE
; then
5093 if test "x$prefix" = xNONE
; then
5094 gcc_cv_tool_prefix
=$ac_default_prefix
5096 gcc_cv_tool_prefix
=$prefix
5099 gcc_cv_tool_prefix
=$exec_prefix
5102 # If there is no compiler in the tree, use the PATH only. In any
5103 # case, if there is no compiler in the tree nobody should use
5104 # AS_FOR_TARGET and LD_FOR_TARGET.
5105 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
5106 gcc_version
=`cat $srcdir/gcc/BASE-VER`
5107 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5108 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5109 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5110 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5111 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5112 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5117 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
5118 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5123 cat > conftest.c
<< \EOF
5128 if ($GCC_FOR_TARGET -E conftest.c |
grep gcc_yay
) > /dev
/null
2>&1; then
5129 have_gcc_for_target
=yes
5131 GCC_FOR_TARGET
=${ncn_target_tool_prefix}gcc
5132 have_gcc_for_target
=no
5139 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5140 if test -n "$with_build_time_tools"; then
5141 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5142 echo "configure:5143: checking for ar in $with_build_time_tools" >&5
5143 if test -x $with_build_time_tools/ar; then
5144 AR_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ar
5145 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5146 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5148 echo "$ac_t""no" 1>&6
5150 elif test $build != $host && test $have_gcc_for_target = yes; then
5151 AR_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ar`
5152 test $AR_FOR_TARGET=ar && AR_FOR_TARGET
=
5153 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5156 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5157 # Extract the first word of "ar", so it can be a program name with args.
5158 set dummy
ar; ac_word
=$2
5159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5160 echo "configure:5161: checking for $ac_word" >&5
5161 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5162 echo $ac_n "(cached) $ac_c" 1>&6
5164 case "$AR_FOR_TARGET" in
5166 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a path.
5169 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5172 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5173 ac_dummy
="$gcc_cv_tool_dirs"
5174 for ac_dir
in $ac_dummy; do
5175 test -z "$ac_dir" && ac_dir
=.
5176 if test -f $ac_dir/$ac_word; then
5177 ac_cv_path_AR_FOR_TARGET
="$ac_dir/$ac_word"
5185 AR_FOR_TARGET
="$ac_cv_path_AR_FOR_TARGET"
5186 if test -n "$AR_FOR_TARGET"; then
5187 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5189 echo "$ac_t""no" 1>&6
5193 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5194 if test -n "$with_build_time_tools"; then
5195 for ncn_progname
in ar; do
5196 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5197 echo "configure:5198: checking for ${ncn_progname} in $with_build_time_tools" >&5
5198 if test -x $with_build_time_tools/${ncn_progname}; then
5199 ac_cv_prog_AR_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5200 echo "$ac_t""yes" 1>&6
5203 echo "$ac_t""no" 1>&6
5208 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5209 for ncn_progname
in ar; do
5210 if test -n "$ncn_target_tool_prefix"; then
5211 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5212 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5214 echo "configure:5215: checking for $ac_word" >&5
5215 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5218 if test -n "$AR_FOR_TARGET"; then
5219 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5221 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5223 for ac_dir
in $ac_dummy; do
5224 test -z "$ac_dir" && ac_dir
=.
5225 if test -f $ac_dir/$ac_word; then
5226 ac_cv_prog_AR_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5233 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5234 if test -n "$AR_FOR_TARGET"; then
5235 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5237 echo "$ac_t""no" 1>&6
5241 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5243 set dummy
${ncn_progname}; ac_word
=$2
5244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5245 echo "configure:5246: checking for $ac_word" >&5
5246 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5247 echo $ac_n "(cached) $ac_c" 1>&6
5249 if test -n "$AR_FOR_TARGET"; then
5250 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5252 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5254 for ac_dir
in $ac_dummy; do
5255 test -z "$ac_dir" && ac_dir
=.
5256 if test -f $ac_dir/$ac_word; then
5257 ac_cv_prog_AR_FOR_TARGET
="${ncn_progname}"
5264 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5265 if test -n "$AR_FOR_TARGET"; then
5266 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5268 echo "$ac_t""no" 1>&6
5272 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5276 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5278 if test $build = $target ; then
5281 AR_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5286 AR_FOR_TARGET
=$ac_cv_path_AR_FOR_TARGET
5292 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5293 if test -n "$with_build_time_tools"; then
5294 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5295 echo "configure:5296: checking for as in $with_build_time_tools" >&5
5296 if test -x $with_build_time_tools/as
; then
5297 AS_FOR_TARGET
=`cd $with_build_time_tools && pwd`/as
5298 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5299 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5301 echo "$ac_t""no" 1>&6
5303 elif test $build != $host && test $have_gcc_for_target = yes; then
5304 AS_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=as`
5305 test $AS_FOR_TARGET=as
&& AS_FOR_TARGET
=
5306 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5309 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5310 # Extract the first word of "as", so it can be a program name with args.
5311 set dummy as
; ac_word
=$2
5312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5313 echo "configure:5314: checking for $ac_word" >&5
5314 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5317 case "$AS_FOR_TARGET" in
5319 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a path.
5322 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5325 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5326 ac_dummy
="$gcc_cv_tool_dirs"
5327 for ac_dir
in $ac_dummy; do
5328 test -z "$ac_dir" && ac_dir
=.
5329 if test -f $ac_dir/$ac_word; then
5330 ac_cv_path_AS_FOR_TARGET
="$ac_dir/$ac_word"
5338 AS_FOR_TARGET
="$ac_cv_path_AS_FOR_TARGET"
5339 if test -n "$AS_FOR_TARGET"; then
5340 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5342 echo "$ac_t""no" 1>&6
5346 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5347 if test -n "$with_build_time_tools"; then
5348 for ncn_progname
in as
; do
5349 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5350 echo "configure:5351: checking for ${ncn_progname} in $with_build_time_tools" >&5
5351 if test -x $with_build_time_tools/${ncn_progname}; then
5352 ac_cv_prog_AS_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5353 echo "$ac_t""yes" 1>&6
5356 echo "$ac_t""no" 1>&6
5361 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5362 for ncn_progname
in as
; do
5363 if test -n "$ncn_target_tool_prefix"; then
5364 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5365 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5367 echo "configure:5368: checking for $ac_word" >&5
5368 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5371 if test -n "$AS_FOR_TARGET"; then
5372 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5374 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5376 for ac_dir
in $ac_dummy; do
5377 test -z "$ac_dir" && ac_dir
=.
5378 if test -f $ac_dir/$ac_word; then
5379 ac_cv_prog_AS_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5386 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5387 if test -n "$AS_FOR_TARGET"; then
5388 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5390 echo "$ac_t""no" 1>&6
5394 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5396 set dummy
${ncn_progname}; ac_word
=$2
5397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5398 echo "configure:5399: checking for $ac_word" >&5
5399 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5400 echo $ac_n "(cached) $ac_c" 1>&6
5402 if test -n "$AS_FOR_TARGET"; then
5403 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5405 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5407 for ac_dir
in $ac_dummy; do
5408 test -z "$ac_dir" && ac_dir
=.
5409 if test -f $ac_dir/$ac_word; then
5410 ac_cv_prog_AS_FOR_TARGET
="${ncn_progname}"
5417 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5418 if test -n "$AS_FOR_TARGET"; then
5419 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5421 echo "$ac_t""no" 1>&6
5425 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5429 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5431 if test $build = $target ; then
5434 AS_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5439 AS_FOR_TARGET
=$ac_cv_path_AS_FOR_TARGET
5445 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5446 if test -n "$with_build_time_tools"; then
5447 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5448 echo "configure:5449: checking for dlltool in $with_build_time_tools" >&5
5449 if test -x $with_build_time_tools/dlltool
; then
5450 DLLTOOL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/dlltool
5451 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5452 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5454 echo "$ac_t""no" 1>&6
5456 elif test $build != $host && test $have_gcc_for_target = yes; then
5457 DLLTOOL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5458 test $DLLTOOL_FOR_TARGET=dlltool
&& DLLTOOL_FOR_TARGET
=
5459 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5462 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5463 # Extract the first word of "dlltool", so it can be a program name with args.
5464 set dummy dlltool
; ac_word
=$2
5465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5466 echo "configure:5467: checking for $ac_word" >&5
5467 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5468 echo $ac_n "(cached) $ac_c" 1>&6
5470 case "$DLLTOOL_FOR_TARGET" in
5472 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5475 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5478 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5479 ac_dummy
="$gcc_cv_tool_dirs"
5480 for ac_dir
in $ac_dummy; do
5481 test -z "$ac_dir" && ac_dir
=.
5482 if test -f $ac_dir/$ac_word; then
5483 ac_cv_path_DLLTOOL_FOR_TARGET
="$ac_dir/$ac_word"
5491 DLLTOOL_FOR_TARGET
="$ac_cv_path_DLLTOOL_FOR_TARGET"
5492 if test -n "$DLLTOOL_FOR_TARGET"; then
5493 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5495 echo "$ac_t""no" 1>&6
5499 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5500 if test -n "$with_build_time_tools"; then
5501 for ncn_progname
in dlltool
; do
5502 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5503 echo "configure:5504: checking for ${ncn_progname} in $with_build_time_tools" >&5
5504 if test -x $with_build_time_tools/${ncn_progname}; then
5505 ac_cv_prog_DLLTOOL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5506 echo "$ac_t""yes" 1>&6
5509 echo "$ac_t""no" 1>&6
5514 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5515 for ncn_progname
in dlltool
; do
5516 if test -n "$ncn_target_tool_prefix"; then
5517 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5518 set dummy
${ncn_target_tool_prefix}${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_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5522 echo $ac_n "(cached) $ac_c" 1>&6
5524 if test -n "$DLLTOOL_FOR_TARGET"; then
5525 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_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_DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5539 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5540 if test -n "$DLLTOOL_FOR_TARGET"; then
5541 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5543 echo "$ac_t""no" 1>&6
5547 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5549 set dummy
${ncn_progname}; ac_word
=$2
5550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5551 echo "configure:5552: checking for $ac_word" >&5
5552 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5553 echo $ac_n "(cached) $ac_c" 1>&6
5555 if test -n "$DLLTOOL_FOR_TARGET"; then
5556 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5558 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5560 for ac_dir
in $ac_dummy; do
5561 test -z "$ac_dir" && ac_dir
=.
5562 if test -f $ac_dir/$ac_word; then
5563 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_progname}"
5570 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5571 if test -n "$DLLTOOL_FOR_TARGET"; then
5572 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5574 echo "$ac_t""no" 1>&6
5578 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5582 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5584 if test $build = $target ; then
5585 DLLTOOL_FOR_TARGET
="$2"
5587 DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5592 DLLTOOL_FOR_TARGET
=$ac_cv_path_DLLTOOL_FOR_TARGET
5598 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5599 if test -n "$with_build_time_tools"; then
5600 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5601 echo "configure:5602: checking for ld in $with_build_time_tools" >&5
5602 if test -x $with_build_time_tools/ld
; then
5603 LD_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ld
5604 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5605 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5607 echo "$ac_t""no" 1>&6
5609 elif test $build != $host && test $have_gcc_for_target = yes; then
5610 LD_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ld`
5611 test $LD_FOR_TARGET=ld
&& LD_FOR_TARGET
=
5612 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5615 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5616 # Extract the first word of "ld", so it can be a program name with args.
5617 set dummy ld
; ac_word
=$2
5618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5619 echo "configure:5620: checking for $ac_word" >&5
5620 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5621 echo $ac_n "(cached) $ac_c" 1>&6
5623 case "$LD_FOR_TARGET" in
5625 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a path.
5628 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5631 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5632 ac_dummy
="$gcc_cv_tool_dirs"
5633 for ac_dir
in $ac_dummy; do
5634 test -z "$ac_dir" && ac_dir
=.
5635 if test -f $ac_dir/$ac_word; then
5636 ac_cv_path_LD_FOR_TARGET
="$ac_dir/$ac_word"
5644 LD_FOR_TARGET
="$ac_cv_path_LD_FOR_TARGET"
5645 if test -n "$LD_FOR_TARGET"; then
5646 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5648 echo "$ac_t""no" 1>&6
5652 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5653 if test -n "$with_build_time_tools"; then
5654 for ncn_progname
in ld
; do
5655 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5656 echo "configure:5657: checking for ${ncn_progname} in $with_build_time_tools" >&5
5657 if test -x $with_build_time_tools/${ncn_progname}; then
5658 ac_cv_prog_LD_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5659 echo "$ac_t""yes" 1>&6
5662 echo "$ac_t""no" 1>&6
5667 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5668 for ncn_progname
in ld
; do
5669 if test -n "$ncn_target_tool_prefix"; then
5670 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5671 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5673 echo "configure:5674: checking for $ac_word" >&5
5674 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5675 echo $ac_n "(cached) $ac_c" 1>&6
5677 if test -n "$LD_FOR_TARGET"; then
5678 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5680 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5682 for ac_dir
in $ac_dummy; do
5683 test -z "$ac_dir" && ac_dir
=.
5684 if test -f $ac_dir/$ac_word; then
5685 ac_cv_prog_LD_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5692 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5693 if test -n "$LD_FOR_TARGET"; then
5694 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5696 echo "$ac_t""no" 1>&6
5700 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5702 set dummy
${ncn_progname}; ac_word
=$2
5703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5704 echo "configure:5705: checking for $ac_word" >&5
5705 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5706 echo $ac_n "(cached) $ac_c" 1>&6
5708 if test -n "$LD_FOR_TARGET"; then
5709 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5711 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5713 for ac_dir
in $ac_dummy; do
5714 test -z "$ac_dir" && ac_dir
=.
5715 if test -f $ac_dir/$ac_word; then
5716 ac_cv_prog_LD_FOR_TARGET
="${ncn_progname}"
5723 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5724 if test -n "$LD_FOR_TARGET"; then
5725 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5727 echo "$ac_t""no" 1>&6
5731 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5735 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5737 if test $build = $target ; then
5740 LD_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5745 LD_FOR_TARGET
=$ac_cv_path_LD_FOR_TARGET
5751 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5752 if test -n "$with_build_time_tools"; then
5753 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5754 echo "configure:5755: checking for lipo in $with_build_time_tools" >&5
5755 if test -x $with_build_time_tools/lipo
; then
5756 LIPO_FOR_TARGET
=`cd $with_build_time_tools && pwd`/lipo
5757 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5758 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5760 echo "$ac_t""no" 1>&6
5762 elif test $build != $host && test $have_gcc_for_target = yes; then
5763 LIPO_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=lipo`
5764 test $LIPO_FOR_TARGET=lipo
&& LIPO_FOR_TARGET
=
5765 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5768 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5769 # Extract the first word of "lipo", so it can be a program name with args.
5770 set dummy lipo
; ac_word
=$2
5771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5772 echo "configure:5773: checking for $ac_word" >&5
5773 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5774 echo $ac_n "(cached) $ac_c" 1>&6
5776 case "$LIPO_FOR_TARGET" in
5778 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5781 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5784 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5785 ac_dummy
="$gcc_cv_tool_dirs"
5786 for ac_dir
in $ac_dummy; do
5787 test -z "$ac_dir" && ac_dir
=.
5788 if test -f $ac_dir/$ac_word; then
5789 ac_cv_path_LIPO_FOR_TARGET
="$ac_dir/$ac_word"
5797 LIPO_FOR_TARGET
="$ac_cv_path_LIPO_FOR_TARGET"
5798 if test -n "$LIPO_FOR_TARGET"; then
5799 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5801 echo "$ac_t""no" 1>&6
5805 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5806 if test -n "$with_build_time_tools"; then
5807 for ncn_progname
in lipo
; do
5808 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5809 echo "configure:5810: checking for ${ncn_progname} in $with_build_time_tools" >&5
5810 if test -x $with_build_time_tools/${ncn_progname}; then
5811 ac_cv_prog_LIPO_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5812 echo "$ac_t""yes" 1>&6
5815 echo "$ac_t""no" 1>&6
5820 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5821 for ncn_progname
in lipo
; do
5822 if test -n "$ncn_target_tool_prefix"; then
5823 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5824 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5826 echo "configure:5827: checking for $ac_word" >&5
5827 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5828 echo $ac_n "(cached) $ac_c" 1>&6
5830 if test -n "$LIPO_FOR_TARGET"; then
5831 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5833 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5835 for ac_dir
in $ac_dummy; do
5836 test -z "$ac_dir" && ac_dir
=.
5837 if test -f $ac_dir/$ac_word; then
5838 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5845 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5846 if test -n "$LIPO_FOR_TARGET"; then
5847 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5849 echo "$ac_t""no" 1>&6
5853 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5855 set dummy
${ncn_progname}; ac_word
=$2
5856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5857 echo "configure:5858: checking for $ac_word" >&5
5858 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5859 echo $ac_n "(cached) $ac_c" 1>&6
5861 if test -n "$LIPO_FOR_TARGET"; then
5862 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5864 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5866 for ac_dir
in $ac_dummy; do
5867 test -z "$ac_dir" && ac_dir
=.
5868 if test -f $ac_dir/$ac_word; then
5869 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_progname}"
5876 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5877 if test -n "$LIPO_FOR_TARGET"; then
5878 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5880 echo "$ac_t""no" 1>&6
5884 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5888 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5890 if test $build = $target ; then
5891 LIPO_FOR_TARGET
="$2"
5893 LIPO_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5898 LIPO_FOR_TARGET
=$ac_cv_path_LIPO_FOR_TARGET
5904 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5905 if test -n "$with_build_time_tools"; then
5906 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5907 echo "configure:5908: checking for nm in $with_build_time_tools" >&5
5908 if test -x $with_build_time_tools/nm
; then
5909 NM_FOR_TARGET
=`cd $with_build_time_tools && pwd`/nm
5910 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5911 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5913 echo "$ac_t""no" 1>&6
5915 elif test $build != $host && test $have_gcc_for_target = yes; then
5916 NM_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=nm`
5917 test $NM_FOR_TARGET=nm
&& NM_FOR_TARGET
=
5918 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5921 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5922 # Extract the first word of "nm", so it can be a program name with args.
5923 set dummy nm
; ac_word
=$2
5924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5925 echo "configure:5926: checking for $ac_word" >&5
5926 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5929 case "$NM_FOR_TARGET" in
5931 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a path.
5934 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5937 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5938 ac_dummy
="$gcc_cv_tool_dirs"
5939 for ac_dir
in $ac_dummy; do
5940 test -z "$ac_dir" && ac_dir
=.
5941 if test -f $ac_dir/$ac_word; then
5942 ac_cv_path_NM_FOR_TARGET
="$ac_dir/$ac_word"
5950 NM_FOR_TARGET
="$ac_cv_path_NM_FOR_TARGET"
5951 if test -n "$NM_FOR_TARGET"; then
5952 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5954 echo "$ac_t""no" 1>&6
5958 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5959 if test -n "$with_build_time_tools"; then
5960 for ncn_progname
in nm
; do
5961 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5962 echo "configure:5963: checking for ${ncn_progname} in $with_build_time_tools" >&5
5963 if test -x $with_build_time_tools/${ncn_progname}; then
5964 ac_cv_prog_NM_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5965 echo "$ac_t""yes" 1>&6
5968 echo "$ac_t""no" 1>&6
5973 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5974 for ncn_progname
in nm
; do
5975 if test -n "$ncn_target_tool_prefix"; then
5976 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5977 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5979 echo "configure:5980: checking for $ac_word" >&5
5980 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5981 echo $ac_n "(cached) $ac_c" 1>&6
5983 if test -n "$NM_FOR_TARGET"; then
5984 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
5986 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5988 for ac_dir
in $ac_dummy; do
5989 test -z "$ac_dir" && ac_dir
=.
5990 if test -f $ac_dir/$ac_word; then
5991 ac_cv_prog_NM_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5998 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
5999 if test -n "$NM_FOR_TARGET"; then
6000 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6002 echo "$ac_t""no" 1>&6
6006 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
6007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6008 set dummy
${ncn_progname}; ac_word
=$2
6009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6010 echo "configure:6011: checking for $ac_word" >&5
6011 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
6012 echo $ac_n "(cached) $ac_c" 1>&6
6014 if test -n "$NM_FOR_TARGET"; then
6015 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
6017 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6019 for ac_dir
in $ac_dummy; do
6020 test -z "$ac_dir" && ac_dir
=.
6021 if test -f $ac_dir/$ac_word; then
6022 ac_cv_prog_NM_FOR_TARGET
="${ncn_progname}"
6029 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
6030 if test -n "$NM_FOR_TARGET"; then
6031 echo "$ac_t""$NM_FOR_TARGET" 1>&6
6033 echo "$ac_t""no" 1>&6
6037 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
6041 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
6043 if test $build = $target ; then
6046 NM_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6051 NM_FOR_TARGET
=$ac_cv_path_NM_FOR_TARGET
6057 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6058 if test -n "$with_build_time_tools"; then
6059 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6060 echo "configure:6061: checking for objdump in $with_build_time_tools" >&5
6061 if test -x $with_build_time_tools/objdump
; then
6062 OBJDUMP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/objdump
6063 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6064 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6066 echo "$ac_t""no" 1>&6
6068 elif test $build != $host && test $have_gcc_for_target = yes; then
6069 OBJDUMP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=objdump`
6070 test $OBJDUMP_FOR_TARGET=objdump
&& OBJDUMP_FOR_TARGET
=
6071 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6074 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6075 # Extract the first word of "objdump", so it can be a program name with args.
6076 set dummy objdump
; ac_word
=$2
6077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6078 echo "configure:6079: checking for $ac_word" >&5
6079 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6080 echo $ac_n "(cached) $ac_c" 1>&6
6082 case "$OBJDUMP_FOR_TARGET" in
6084 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6087 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6090 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6091 ac_dummy
="$gcc_cv_tool_dirs"
6092 for ac_dir
in $ac_dummy; do
6093 test -z "$ac_dir" && ac_dir
=.
6094 if test -f $ac_dir/$ac_word; then
6095 ac_cv_path_OBJDUMP_FOR_TARGET
="$ac_dir/$ac_word"
6103 OBJDUMP_FOR_TARGET
="$ac_cv_path_OBJDUMP_FOR_TARGET"
6104 if test -n "$OBJDUMP_FOR_TARGET"; then
6105 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6107 echo "$ac_t""no" 1>&6
6111 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6112 if test -n "$with_build_time_tools"; then
6113 for ncn_progname
in objdump
; do
6114 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6115 echo "configure:6116: checking for ${ncn_progname} in $with_build_time_tools" >&5
6116 if test -x $with_build_time_tools/${ncn_progname}; then
6117 ac_cv_prog_OBJDUMP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6118 echo "$ac_t""yes" 1>&6
6121 echo "$ac_t""no" 1>&6
6126 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6127 for ncn_progname
in objdump
; do
6128 if test -n "$ncn_target_tool_prefix"; then
6129 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6130 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6132 echo "configure:6133: checking for $ac_word" >&5
6133 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6134 echo $ac_n "(cached) $ac_c" 1>&6
6136 if test -n "$OBJDUMP_FOR_TARGET"; then
6137 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6139 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6141 for ac_dir
in $ac_dummy; do
6142 test -z "$ac_dir" && ac_dir
=.
6143 if test -f $ac_dir/$ac_word; then
6144 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6151 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6152 if test -n "$OBJDUMP_FOR_TARGET"; then
6153 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6155 echo "$ac_t""no" 1>&6
6159 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6161 set dummy
${ncn_progname}; ac_word
=$2
6162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6163 echo "configure:6164: checking for $ac_word" >&5
6164 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6165 echo $ac_n "(cached) $ac_c" 1>&6
6167 if test -n "$OBJDUMP_FOR_TARGET"; then
6168 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6170 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6172 for ac_dir
in $ac_dummy; do
6173 test -z "$ac_dir" && ac_dir
=.
6174 if test -f $ac_dir/$ac_word; then
6175 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_progname}"
6182 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6183 if test -n "$OBJDUMP_FOR_TARGET"; then
6184 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6186 echo "$ac_t""no" 1>&6
6190 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6194 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6196 if test $build = $target ; then
6197 OBJDUMP_FOR_TARGET
="$2"
6199 OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6204 OBJDUMP_FOR_TARGET
=$ac_cv_path_OBJDUMP_FOR_TARGET
6210 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6211 if test -n "$with_build_time_tools"; then
6212 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6213 echo "configure:6214: checking for ranlib in $with_build_time_tools" >&5
6214 if test -x $with_build_time_tools/ranlib
; then
6215 RANLIB_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ranlib
6216 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6217 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6219 echo "$ac_t""no" 1>&6
6221 elif test $build != $host && test $have_gcc_for_target = yes; then
6222 RANLIB_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6223 test $RANLIB_FOR_TARGET=ranlib
&& RANLIB_FOR_TARGET
=
6224 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6227 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6228 # Extract the first word of "ranlib", so it can be a program name with args.
6229 set dummy ranlib
; ac_word
=$2
6230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6231 echo "configure:6232: checking for $ac_word" >&5
6232 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6233 echo $ac_n "(cached) $ac_c" 1>&6
6235 case "$RANLIB_FOR_TARGET" in
6237 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6240 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6243 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6244 ac_dummy
="$gcc_cv_tool_dirs"
6245 for ac_dir
in $ac_dummy; do
6246 test -z "$ac_dir" && ac_dir
=.
6247 if test -f $ac_dir/$ac_word; then
6248 ac_cv_path_RANLIB_FOR_TARGET
="$ac_dir/$ac_word"
6256 RANLIB_FOR_TARGET
="$ac_cv_path_RANLIB_FOR_TARGET"
6257 if test -n "$RANLIB_FOR_TARGET"; then
6258 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6260 echo "$ac_t""no" 1>&6
6264 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6265 if test -n "$with_build_time_tools"; then
6266 for ncn_progname
in ranlib
; do
6267 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6268 echo "configure:6269: checking for ${ncn_progname} in $with_build_time_tools" >&5
6269 if test -x $with_build_time_tools/${ncn_progname}; then
6270 ac_cv_prog_RANLIB_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6271 echo "$ac_t""yes" 1>&6
6274 echo "$ac_t""no" 1>&6
6279 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6280 for ncn_progname
in ranlib
; do
6281 if test -n "$ncn_target_tool_prefix"; then
6282 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6283 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6285 echo "configure:6286: checking for $ac_word" >&5
6286 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6287 echo $ac_n "(cached) $ac_c" 1>&6
6289 if test -n "$RANLIB_FOR_TARGET"; then
6290 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6292 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6294 for ac_dir
in $ac_dummy; do
6295 test -z "$ac_dir" && ac_dir
=.
6296 if test -f $ac_dir/$ac_word; then
6297 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6304 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6305 if test -n "$RANLIB_FOR_TARGET"; then
6306 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6308 echo "$ac_t""no" 1>&6
6312 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6314 set dummy
${ncn_progname}; ac_word
=$2
6315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6316 echo "configure:6317: checking for $ac_word" >&5
6317 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6318 echo $ac_n "(cached) $ac_c" 1>&6
6320 if test -n "$RANLIB_FOR_TARGET"; then
6321 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6323 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6325 for ac_dir
in $ac_dummy; do
6326 test -z "$ac_dir" && ac_dir
=.
6327 if test -f $ac_dir/$ac_word; then
6328 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_progname}"
6335 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6336 if test -n "$RANLIB_FOR_TARGET"; then
6337 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6339 echo "$ac_t""no" 1>&6
6343 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6347 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6349 if test $build = $target ; then
6350 RANLIB_FOR_TARGET
="$2"
6352 RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6357 RANLIB_FOR_TARGET
=$ac_cv_path_RANLIB_FOR_TARGET
6363 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6364 if test -n "$with_build_time_tools"; then
6365 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6366 echo "configure:6367: checking for strip in $with_build_time_tools" >&5
6367 if test -x $with_build_time_tools/strip
; then
6368 STRIP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/strip
6369 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6370 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6372 echo "$ac_t""no" 1>&6
6374 elif test $build != $host && test $have_gcc_for_target = yes; then
6375 STRIP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=strip`
6376 test $STRIP_FOR_TARGET=strip
&& STRIP_FOR_TARGET
=
6377 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6380 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6381 # Extract the first word of "strip", so it can be a program name with args.
6382 set dummy strip
; ac_word
=$2
6383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6384 echo "configure:6385: checking for $ac_word" >&5
6385 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6386 echo $ac_n "(cached) $ac_c" 1>&6
6388 case "$STRIP_FOR_TARGET" in
6390 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6393 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6396 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6397 ac_dummy
="$gcc_cv_tool_dirs"
6398 for ac_dir
in $ac_dummy; do
6399 test -z "$ac_dir" && ac_dir
=.
6400 if test -f $ac_dir/$ac_word; then
6401 ac_cv_path_STRIP_FOR_TARGET
="$ac_dir/$ac_word"
6409 STRIP_FOR_TARGET
="$ac_cv_path_STRIP_FOR_TARGET"
6410 if test -n "$STRIP_FOR_TARGET"; then
6411 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6413 echo "$ac_t""no" 1>&6
6417 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6418 if test -n "$with_build_time_tools"; then
6419 for ncn_progname
in strip
; do
6420 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6421 echo "configure:6422: checking for ${ncn_progname} in $with_build_time_tools" >&5
6422 if test -x $with_build_time_tools/${ncn_progname}; then
6423 ac_cv_prog_STRIP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6424 echo "$ac_t""yes" 1>&6
6427 echo "$ac_t""no" 1>&6
6432 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6433 for ncn_progname
in strip
; do
6434 if test -n "$ncn_target_tool_prefix"; then
6435 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6436 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6438 echo "configure:6439: checking for $ac_word" >&5
6439 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6440 echo $ac_n "(cached) $ac_c" 1>&6
6442 if test -n "$STRIP_FOR_TARGET"; then
6443 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6445 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6447 for ac_dir
in $ac_dummy; do
6448 test -z "$ac_dir" && ac_dir
=.
6449 if test -f $ac_dir/$ac_word; then
6450 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6457 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6458 if test -n "$STRIP_FOR_TARGET"; then
6459 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6461 echo "$ac_t""no" 1>&6
6465 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6467 set dummy
${ncn_progname}; ac_word
=$2
6468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6469 echo "configure:6470: checking for $ac_word" >&5
6470 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6471 echo $ac_n "(cached) $ac_c" 1>&6
6473 if test -n "$STRIP_FOR_TARGET"; then
6474 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6476 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6478 for ac_dir
in $ac_dummy; do
6479 test -z "$ac_dir" && ac_dir
=.
6480 if test -f $ac_dir/$ac_word; then
6481 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_progname}"
6488 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6489 if test -n "$STRIP_FOR_TARGET"; then
6490 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6492 echo "$ac_t""no" 1>&6
6496 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6500 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6502 if test $build = $target ; then
6503 STRIP_FOR_TARGET
="$2"
6505 STRIP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6510 STRIP_FOR_TARGET
=$ac_cv_path_STRIP_FOR_TARGET
6516 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6517 if test -n "$with_build_time_tools"; then
6518 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6519 echo "configure:6520: checking for windres in $with_build_time_tools" >&5
6520 if test -x $with_build_time_tools/windres
; then
6521 WINDRES_FOR_TARGET
=`cd $with_build_time_tools && pwd`/windres
6522 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6523 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6525 echo "$ac_t""no" 1>&6
6527 elif test $build != $host && test $have_gcc_for_target = yes; then
6528 WINDRES_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=windres`
6529 test $WINDRES_FOR_TARGET=windres
&& WINDRES_FOR_TARGET
=
6530 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6533 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6534 # Extract the first word of "windres", so it can be a program name with args.
6535 set dummy windres
; ac_word
=$2
6536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6537 echo "configure:6538: checking for $ac_word" >&5
6538 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6539 echo $ac_n "(cached) $ac_c" 1>&6
6541 case "$WINDRES_FOR_TARGET" in
6543 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6546 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6549 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6550 ac_dummy
="$gcc_cv_tool_dirs"
6551 for ac_dir
in $ac_dummy; do
6552 test -z "$ac_dir" && ac_dir
=.
6553 if test -f $ac_dir/$ac_word; then
6554 ac_cv_path_WINDRES_FOR_TARGET
="$ac_dir/$ac_word"
6562 WINDRES_FOR_TARGET
="$ac_cv_path_WINDRES_FOR_TARGET"
6563 if test -n "$WINDRES_FOR_TARGET"; then
6564 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6566 echo "$ac_t""no" 1>&6
6570 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6571 if test -n "$with_build_time_tools"; then
6572 for ncn_progname
in windres
; do
6573 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6574 echo "configure:6575: checking for ${ncn_progname} in $with_build_time_tools" >&5
6575 if test -x $with_build_time_tools/${ncn_progname}; then
6576 ac_cv_prog_WINDRES_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6577 echo "$ac_t""yes" 1>&6
6580 echo "$ac_t""no" 1>&6
6585 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6586 for ncn_progname
in windres
; do
6587 if test -n "$ncn_target_tool_prefix"; then
6588 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6589 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6591 echo "configure:6592: checking for $ac_word" >&5
6592 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6593 echo $ac_n "(cached) $ac_c" 1>&6
6595 if test -n "$WINDRES_FOR_TARGET"; then
6596 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6598 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6600 for ac_dir
in $ac_dummy; do
6601 test -z "$ac_dir" && ac_dir
=.
6602 if test -f $ac_dir/$ac_word; then
6603 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6610 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6611 if test -n "$WINDRES_FOR_TARGET"; then
6612 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6614 echo "$ac_t""no" 1>&6
6618 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6620 set dummy
${ncn_progname}; ac_word
=$2
6621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6622 echo "configure:6623: checking for $ac_word" >&5
6623 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6624 echo $ac_n "(cached) $ac_c" 1>&6
6626 if test -n "$WINDRES_FOR_TARGET"; then
6627 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6629 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6631 for ac_dir
in $ac_dummy; do
6632 test -z "$ac_dir" && ac_dir
=.
6633 if test -f $ac_dir/$ac_word; then
6634 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_progname}"
6641 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6642 if test -n "$WINDRES_FOR_TARGET"; then
6643 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6645 echo "$ac_t""no" 1>&6
6649 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6653 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6655 if test $build = $target ; then
6656 WINDRES_FOR_TARGET
="$2"
6658 WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6663 WINDRES_FOR_TARGET
=$ac_cv_path_WINDRES_FOR_TARGET
6667 RAW_CXX_FOR_TARGET
="$CXX_FOR_TARGET"
6669 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6670 echo "configure:6671: checking where to find the target ar" >&5
6671 if test "x${build}" != "x${host}" ; then
6672 if expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6673 # We already found the complete path
6674 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6676 # Canadian cross, just use what we found
6677 echo "$ac_t""pre-installed" 1>&6
6681 case " ${configdirs} " in
6686 if test $ok = yes; then
6687 # An in-tree tool is available and we can use it
6688 AR_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ar'
6689 echo "$ac_t""just compiled" 1>&6
6690 elif expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6691 # We already found the complete path
6692 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6693 elif test "x$target" = "x$host"; then
6694 # We can use an host tool
6695 AR_FOR_TARGET
='$(AR)'
6696 echo "$ac_t""host tool" 1>&6
6698 # We need a cross tool
6699 echo "$ac_t""pre-installed" 1>&6
6702 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6703 echo "configure:6704: checking where to find the target as" >&5
6704 if test "x${build}" != "x${host}" ; then
6705 if expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6706 # We already found the complete path
6707 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6709 # Canadian cross, just use what we found
6710 echo "$ac_t""pre-installed" 1>&6
6714 case " ${configdirs} " in
6719 if test $ok = yes; then
6720 # An in-tree tool is available and we can use it
6721 AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gas/as-new'
6722 echo "$ac_t""just compiled" 1>&6
6723 elif expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6724 # We already found the complete path
6725 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6726 elif test "x$target" = "x$host"; then
6727 # We can use an host tool
6728 AS_FOR_TARGET
='$(AS)'
6729 echo "$ac_t""host tool" 1>&6
6731 # We need a cross tool
6732 echo "$ac_t""pre-installed" 1>&6
6735 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6736 echo "configure:6737: checking where to find the target cc" >&5
6737 if test "x${build}" != "x${host}" ; then
6738 if expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6739 # We already found the complete path
6740 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6742 # Canadian cross, just use what we found
6743 echo "$ac_t""pre-installed" 1>&6
6747 case " ${configdirs} " in
6752 if test $ok = yes; then
6753 # An in-tree tool is available and we can use it
6754 CC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6755 echo "$ac_t""just compiled" 1>&6
6756 elif expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6757 # We already found the complete path
6758 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6759 elif test "x$target" = "x$host"; then
6760 # We can use an host tool
6761 CC_FOR_TARGET
='$(CC)'
6762 echo "$ac_t""host tool" 1>&6
6764 # We need a cross tool
6765 echo "$ac_t""pre-installed" 1>&6
6768 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6769 echo "configure:6770: checking where to find the target c++" >&5
6770 if test "x${build}" != "x${host}" ; then
6771 if expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6772 # We already found the complete path
6773 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6775 # Canadian cross, just use what we found
6776 echo "$ac_t""pre-installed" 1>&6
6780 case " ${configdirs} " in
6784 case ,${enable_languages}, in
6788 if test $ok = yes; then
6789 # An in-tree tool is available and we can use it
6790 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'
6791 echo "$ac_t""just compiled" 1>&6
6792 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6793 # We already found the complete path
6794 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6795 elif test "x$target" = "x$host"; then
6796 # We can use an host tool
6797 CXX_FOR_TARGET
='$(CXX)'
6798 echo "$ac_t""host tool" 1>&6
6800 # We need a cross tool
6801 echo "$ac_t""pre-installed" 1>&6
6804 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6805 echo "configure:6806: checking where to find the target c++ for libstdc++" >&5
6806 if test "x${build}" != "x${host}" ; then
6807 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6808 # We already found the complete path
6809 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6811 # Canadian cross, just use what we found
6812 echo "$ac_t""pre-installed" 1>&6
6816 case " ${configdirs} " in
6820 case ,${enable_languages}, in
6824 if test $ok = yes; then
6825 # An in-tree tool is available and we can use it
6826 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'
6827 echo "$ac_t""just compiled" 1>&6
6828 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6829 # We already found the complete path
6830 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6831 elif test "x$target" = "x$host"; then
6832 # We can use an host tool
6833 RAW_CXX_FOR_TARGET
='$(CXX)'
6834 echo "$ac_t""host tool" 1>&6
6836 # We need a cross tool
6837 echo "$ac_t""pre-installed" 1>&6
6840 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6841 echo "configure:6842: checking where to find the target dlltool" >&5
6842 if test "x${build}" != "x${host}" ; then
6843 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6844 # We already found the complete path
6845 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6847 # Canadian cross, just use what we found
6848 echo "$ac_t""pre-installed" 1>&6
6852 case " ${configdirs} " in
6857 if test $ok = yes; then
6858 # An in-tree tool is available and we can use it
6859 DLLTOOL_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6860 echo "$ac_t""just compiled" 1>&6
6861 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6862 # We already found the complete path
6863 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6864 elif test "x$target" = "x$host"; then
6865 # We can use an host tool
6866 DLLTOOL_FOR_TARGET
='$(DLLTOOL)'
6867 echo "$ac_t""host tool" 1>&6
6869 # We need a cross tool
6870 echo "$ac_t""pre-installed" 1>&6
6873 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6874 echo "configure:6875: checking where to find the target gcc" >&5
6875 if test "x${build}" != "x${host}" ; then
6876 if expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6877 # We already found the complete path
6878 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6880 # Canadian cross, just use what we found
6881 echo "$ac_t""pre-installed" 1>&6
6885 case " ${configdirs} " in
6890 if test $ok = yes; then
6891 # An in-tree tool is available and we can use it
6892 GCC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6893 echo "$ac_t""just compiled" 1>&6
6894 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6895 # We already found the complete path
6896 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6897 elif test "x$target" = "x$host"; then
6898 # We can use an host tool
6899 GCC_FOR_TARGET
='$()'
6900 echo "$ac_t""host tool" 1>&6
6902 # We need a cross tool
6903 echo "$ac_t""pre-installed" 1>&6
6906 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6907 echo "configure:6908: checking where to find the target gcj" >&5
6908 if test "x${build}" != "x${host}" ; then
6909 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6910 # We already found the complete path
6911 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6913 # Canadian cross, just use what we found
6914 echo "$ac_t""pre-installed" 1>&6
6918 case " ${configdirs} " in
6922 case ,${enable_languages}, in
6926 if test $ok = yes; then
6927 # An in-tree tool is available and we can use it
6928 GCJ_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6929 echo "$ac_t""just compiled" 1>&6
6930 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6931 # We already found the complete path
6932 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6933 elif test "x$target" = "x$host"; then
6934 # We can use an host tool
6935 GCJ_FOR_TARGET
='$(GCJ)'
6936 echo "$ac_t""host tool" 1>&6
6938 # We need a cross tool
6939 echo "$ac_t""pre-installed" 1>&6
6942 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6943 echo "configure:6944: checking where to find the target gfortran" >&5
6944 if test "x${build}" != "x${host}" ; then
6945 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
6946 # We already found the complete path
6947 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6949 # Canadian cross, just use what we found
6950 echo "$ac_t""pre-installed" 1>&6
6954 case " ${configdirs} " in
6958 case ,${enable_languages}, in
6962 if test $ok = yes; then
6963 # An in-tree tool is available and we can use it
6964 GFORTRAN_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6965 echo "$ac_t""just compiled" 1>&6
6966 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
6967 # We already found the complete path
6968 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6969 elif test "x$target" = "x$host"; then
6970 # We can use an host tool
6971 GFORTRAN_FOR_TARGET
='$(GFORTRAN)'
6972 echo "$ac_t""host tool" 1>&6
6974 # We need a cross tool
6975 echo "$ac_t""pre-installed" 1>&6
6978 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
6979 echo "configure:6980: checking where to find the target ld" >&5
6980 if test "x${build}" != "x${host}" ; then
6981 if expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
6982 # We already found the complete path
6983 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6985 # Canadian cross, just use what we found
6986 echo "$ac_t""pre-installed" 1>&6
6990 case " ${configdirs} " in
6995 if test $ok = yes; then
6996 # An in-tree tool is available and we can use it
6997 LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/ld/ld-new'
6998 echo "$ac_t""just compiled" 1>&6
6999 elif expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
7000 # We already found the complete path
7001 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
7002 elif test "x$target" = "x$host"; then
7003 # We can use an host tool
7004 LD_FOR_TARGET
='$(LD)'
7005 echo "$ac_t""host tool" 1>&6
7007 # We need a cross tool
7008 echo "$ac_t""pre-installed" 1>&6
7011 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
7012 echo "configure:7013: checking where to find the target lipo" >&5
7013 if test "x${build}" != "x${host}" ; then
7014 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
7015 # We already found the complete path
7016 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7018 # Canadian cross, just use what we found
7019 echo "$ac_t""pre-installed" 1>&6
7022 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
7023 # We already found the complete path
7024 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
7025 elif test "x$target" = "x$host"; then
7026 # We can use an host tool
7027 LIPO_FOR_TARGET
='$(LIPO)'
7028 echo "$ac_t""host tool" 1>&6
7030 # We need a cross tool
7031 echo "$ac_t""pre-installed" 1>&6
7034 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
7035 echo "configure:7036: checking where to find the target nm" >&5
7036 if test "x${build}" != "x${host}" ; then
7037 if expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7038 # We already found the complete path
7039 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7041 # Canadian cross, just use what we found
7042 echo "$ac_t""pre-installed" 1>&6
7046 case " ${configdirs} " in
7051 if test $ok = yes; then
7052 # An in-tree tool is available and we can use it
7053 NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7054 echo "$ac_t""just compiled" 1>&6
7055 elif expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7056 # We already found the complete path
7057 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7058 elif test "x$target" = "x$host"; then
7059 # We can use an host tool
7060 NM_FOR_TARGET
='$(NM)'
7061 echo "$ac_t""host tool" 1>&6
7063 # We need a cross tool
7064 echo "$ac_t""pre-installed" 1>&6
7067 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7068 echo "configure:7069: checking where to find the target objdump" >&5
7069 if test "x${build}" != "x${host}" ; then
7070 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7071 # We already found the complete path
7072 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7074 # Canadian cross, just use what we found
7075 echo "$ac_t""pre-installed" 1>&6
7079 case " ${configdirs} " in
7084 if test $ok = yes; then
7085 # An in-tree tool is available and we can use it
7086 OBJDUMP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/objdump'
7087 echo "$ac_t""just compiled" 1>&6
7088 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7089 # We already found the complete path
7090 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7091 elif test "x$target" = "x$host"; then
7092 # We can use an host tool
7093 OBJDUMP_FOR_TARGET
='$(OBJDUMP)'
7094 echo "$ac_t""host tool" 1>&6
7096 # We need a cross tool
7097 echo "$ac_t""pre-installed" 1>&6
7100 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7101 echo "configure:7102: checking where to find the target ranlib" >&5
7102 if test "x${build}" != "x${host}" ; then
7103 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7104 # We already found the complete path
7105 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7107 # Canadian cross, just use what we found
7108 echo "$ac_t""pre-installed" 1>&6
7112 case " ${configdirs} " in
7117 if test $ok = yes; then
7118 # An in-tree tool is available and we can use it
7119 RANLIB_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7120 echo "$ac_t""just compiled" 1>&6
7121 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7122 # We already found the complete path
7123 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7124 elif test "x$target" = "x$host"; then
7125 # We can use an host tool
7126 RANLIB_FOR_TARGET
='$(RANLIB)'
7127 echo "$ac_t""host tool" 1>&6
7129 # We need a cross tool
7130 echo "$ac_t""pre-installed" 1>&6
7133 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7134 echo "configure:7135: checking where to find the target strip" >&5
7135 if test "x${build}" != "x${host}" ; then
7136 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7137 # We already found the complete path
7138 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7140 # Canadian cross, just use what we found
7141 echo "$ac_t""pre-installed" 1>&6
7145 case " ${configdirs} " in
7150 if test $ok = yes; then
7151 # An in-tree tool is available and we can use it
7152 STRIP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/strip'
7153 echo "$ac_t""just compiled" 1>&6
7154 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7155 # We already found the complete path
7156 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7157 elif test "x$target" = "x$host"; then
7158 # We can use an host tool
7159 STRIP_FOR_TARGET
='$(STRIP)'
7160 echo "$ac_t""host tool" 1>&6
7162 # We need a cross tool
7163 echo "$ac_t""pre-installed" 1>&6
7166 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7167 echo "configure:7168: checking where to find the target windres" >&5
7168 if test "x${build}" != "x${host}" ; then
7169 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7170 # We already found the complete path
7171 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7173 # Canadian cross, just use what we found
7174 echo "$ac_t""pre-installed" 1>&6
7178 case " ${configdirs} " in
7183 if test $ok = yes; then
7184 # An in-tree tool is available and we can use it
7185 WINDRES_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/windres'
7186 echo "$ac_t""just compiled" 1>&6
7187 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7188 # We already found the complete path
7189 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7190 elif test "x$target" = "x$host"; then
7191 # We can use an host tool
7192 WINDRES_FOR_TARGET
='$(WINDRES)'
7193 echo "$ac_t""host tool" 1>&6
7195 # We need a cross tool
7196 echo "$ac_t""pre-installed" 1>&6
7203 # Certain tools may need extra flags.
7204 AR_FOR_TARGET
=${AR_FOR_TARGET}${extra_arflags_for_target}
7205 RANLIB_FOR_TARGET
=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7206 NM_FOR_TARGET
=${NM_FOR_TARGET}${extra_nmflags_for_target}
7208 # When building target libraries, except in a Canadian cross, we use
7209 # the same toolchain as the compiler we just built.
7210 COMPILER_AS_FOR_TARGET
='$(AS_FOR_TARGET)'
7211 COMPILER_LD_FOR_TARGET
='$(LD_FOR_TARGET)'
7212 COMPILER_NM_FOR_TARGET
='$(NM_FOR_TARGET)'
7213 if test $host = $build; then
7214 case " $configdirs " in
7216 COMPILER_AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/as'
7217 COMPILER_LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7218 COMPILER_NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7227 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7228 echo "configure:7229: checking whether to enable maintainer-specific portions of Makefiles" >&5
7229 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7230 if test "${enable_maintainer_mode+set}" = set; then
7231 enableval
="$enable_maintainer_mode"
7232 USE_MAINTAINER_MODE
=$enableval
7234 USE_MAINTAINER_MODE
=no
7237 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7240 if test "$USE_MAINTAINER_MODE" = yes; then
7241 MAINTAINER_MODE_TRUE
=
7242 MAINTAINER_MODE_FALSE
='#'
7244 MAINTAINER_MODE_TRUE
='#'
7245 MAINTAINER_MODE_FALSE
=
7247 MAINT
=$MAINTAINER_MODE_TRUE
7249 # ---------------------
7250 # GCC bootstrap support
7251 # ---------------------
7253 # Stage specific cflags for build.
7258 yes) stage1_cflags
="-g -Wa,-J" ;;
7259 *) stage1_cflags
="-g -J" ;;
7262 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7263 # sources; use -no-cpp-precomp to get to GNU cpp.
7264 # Apple's GCC has bugs in designated initializer handling, so disable
7266 stage1_cflags
="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7270 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7271 if test "$GCC" = yes; then
7272 saved_CFLAGS
="$CFLAGS"
7274 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
7275 CFLAGS
="$CFLAGS -fkeep-inline-functions"
7276 echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
7277 echo "configure:7278: checking whether -fkeep-inline-functions is supported" >&5
7278 cat > conftest.
$ac_ext <<EOF
7279 #line 7280 "configure"
7280 #include "confdefs.h"
7286 if { (eval echo configure
:7287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7288 echo "$ac_t""yes" 1>&6; stage1_cflags
="$stage1_cflags -fkeep-inline-functions"
7290 echo "configure: failed program was:" >&5
7291 cat conftest.
$ac_ext >&5
7293 echo "$ac_t""no" 1>&6
7297 CFLAGS
="$saved_CFLAGS"
7302 # Enable -Werror in bootstrap stage2 and later.
7303 # Change the default to "no" on release branches.
7304 # Check whether --enable-werror or --disable-werror was given.
7305 if test "${enable_werror+set}" = set; then
7306 enableval
="$enable_werror"
7312 case ${enable_werror} in
7313 yes) stage2_werror_flag
="--enable-werror-always" ;;
7314 *) stage2_werror_flag
="" ;;
7318 # Flags needed to enable html installing and building
7319 # Check whether --with-datarootdir or --without-datarootdir was given.
7320 if test "${with_datarootdir+set}" = set; then
7321 withval
="$with_datarootdir"
7322 datarootdir
="\${prefix}/${withval}"
7324 datarootdir
="\${prefix}/share"
7328 # Check whether --with-docdir or --without-docdir was given.
7329 if test "${with_docdir+set}" = set; then
7330 withval
="$with_docdir"
7331 docdir
="\${prefix}/${withval}"
7333 docdir
="\${datarootdir}/doc"
7337 # Check whether --with-htmldir or --without-htmldir was given.
7338 if test "${with_htmldir+set}" = set; then
7339 withval
="$with_htmldir"
7340 htmldir
="\${prefix}/${withval}"
7342 htmldir
="\${docdir}"
7351 cat > confcache
<<\EOF
7352 # This file is a shell script that caches the results of configure
7353 # tests run on this system so they can be shared between configure
7354 # scripts and configure runs. It is not useful on other systems.
7355 # If it contains results you don't want to keep, you may remove or edit it.
7357 # By default, configure uses ./config.cache as the cache file,
7358 # creating it if it does not exist already. You can give configure
7359 # the --cache-file=FILE option to use a different cache file; that is
7360 # what configure does when it calls configure scripts in
7361 # subdirectories, so they share the cache.
7362 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7363 # config.status only pays attention to the cache file if you give it the
7364 # --recheck option to rerun configure.
7367 # The following way of writing the cache mishandles newlines in values,
7368 # but we know of no workaround that is simple, portable, and efficient.
7369 # So, don't put newlines in cache variables' values.
7370 # Ultrix sh set writes to stderr and can't be redirected directly,
7371 # and sets the high bit in the cache file unless we assign to the vars.
7373 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7375 # `set' does not quote correctly, so add quotes (double-quote substitution
7376 # turns \\\\ into \\, and sed turns \\ into \).
7378 -e "s/'/'\\\\''/g" \
7379 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7382 # `set' quotes correctly as required by POSIX, so do not add quotes.
7383 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7386 if cmp -s $cache_file confcache
; then
7389 if test -w $cache_file; then
7390 echo "updating cache $cache_file"
7391 cat confcache
> $cache_file
7393 echo "not updating unwritable cache $cache_file"
7398 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7400 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7401 # Let make expand exec_prefix.
7402 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7404 # Any assignment to VPATH causes Sun make to only execute
7405 # the first set of double-colon rules, so remove it if not needed.
7406 # If there is a colon in the path, we need to keep it.
7407 if test "x$srcdir" = x.
; then
7408 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7411 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7413 # Transform confdefs.h into DEFS.
7414 # Protect against shell expansion while executing Makefile rules.
7415 # Protect against Makefile macro expansion.
7416 cat > conftest.defs
<<\EOF
7417 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7418 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7423 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
7427 # Without the "./", some shells look in PATH for config.status.
7428 : ${CONFIG_STATUS=./config.status}
7430 echo creating $CONFIG_STATUS
7431 rm -f $CONFIG_STATUS
7432 cat > $CONFIG_STATUS <<EOF
7434 # Generated automatically by configure.
7435 # Run this file to recreate the current configuration.
7436 # This directory was configured as follows,
7437 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
7439 # $0 $ac_configure_args
7441 # Compiler output produced by configure, useful for debugging
7442 # configure, is in ./config.log if it exists.
7444 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7447 case "\$ac_option" in
7448 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7449 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7450 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7451 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7452 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7454 -help | --help | --hel | --he | --h)
7455 echo "\$ac_cs_usage"; exit 0 ;;
7456 *) echo "\$ac_cs_usage"; exit 1 ;;
7460 ac_given_srcdir=$srcdir
7461 ac_given_INSTALL="$INSTALL"
7463 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7465 cat >> $CONFIG_STATUS <<EOF
7467 # Protect against being on the right side of a sed subst in config.status.
7468 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7469 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7473 s%@CFLAGS@%$CFLAGS%g
7474 s%@CPPFLAGS@%$CPPFLAGS%g
7475 s%@CXXFLAGS@%$CXXFLAGS%g
7476 s%@FFLAGS@%$FFLAGS%g
7478 s%@LDFLAGS@%$LDFLAGS%g
7480 s%@exec_prefix@%$exec_prefix%g
7481 s%@prefix@%$prefix%g
7482 s%@program_transform_name@%$program_transform_name%g
7483 s%@bindir@%$bindir%g
7484 s%@sbindir@%$sbindir%g
7485 s%@libexecdir@%$libexecdir%g
7486 s%@datadir@%$datadir%g
7487 s%@sysconfdir@%$sysconfdir%g
7488 s%@sharedstatedir@%$sharedstatedir%g
7489 s%@localstatedir@%$localstatedir%g
7490 s%@libdir@%$libdir%g
7491 s%@includedir@%$includedir%g
7492 s%@oldincludedir@%$oldincludedir%g
7493 s%@infodir@%$infodir%g
7494 s%@mandir@%$mandir%g
7496 s%@host_alias@%$host_alias%g
7497 s%@host_cpu@%$host_cpu%g
7498 s%@host_vendor@%$host_vendor%g
7499 s%@host_os@%$host_os%g
7500 s%@target@%$target%g
7501 s%@target_alias@%$target_alias%g
7502 s%@target_cpu@%$target_cpu%g
7503 s%@target_vendor@%$target_vendor%g
7504 s%@target_os@%$target_os%g
7506 s%@build_alias@%$build_alias%g
7507 s%@build_cpu@%$build_cpu%g
7508 s%@build_vendor@%$build_vendor%g
7509 s%@build_os@%$build_os%g
7510 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7511 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7512 s%@INSTALL_DATA@%$INSTALL_DATA%g
7515 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7516 s%@build_libsubdir@%$build_libsubdir%g
7517 s%@build_subdir@%$build_subdir%g
7518 s%@host_subdir@%$host_subdir%g
7519 s%@target_subdir@%$target_subdir%g
7521 s%@GNATBIND@%$GNATBIND%g
7522 s%@do_compare@%$do_compare%g
7523 s%@gmplibs@%$gmplibs%g
7524 s%@gmpinc@%$gmpinc%g
7525 s%@stage1_languages@%$stage1_languages%g
7526 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7527 /@serialization_dependencies@/r $serialization_dependencies
7528 s%@serialization_dependencies@%%g
7529 /@host_makefile_frag@/r $host_makefile_frag
7530 s%@host_makefile_frag@%%g
7531 /@target_makefile_frag@/r $target_makefile_frag
7532 s%@target_makefile_frag@%%g
7533 /@alphaieee_frag@/r $alphaieee_frag
7534 s%@alphaieee_frag@%%g
7535 /@ospace_frag@/r $ospace_frag
7537 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7538 s%@tooldir@%$tooldir%g
7539 s%@build_tooldir@%$build_tooldir%g
7540 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7541 s%@GDB_TK@%$GDB_TK%g
7542 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7543 s%@build_configargs@%$build_configargs%g
7544 s%@build_configdirs@%$build_configdirs%g
7545 s%@host_configargs@%$host_configargs%g
7546 s%@configdirs@%$configdirs%g
7547 s%@target_configargs@%$target_configargs%g
7548 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7549 s%@config_shell@%$config_shell%g
7555 s%@MAKEINFO@%$MAKEINFO%g
7556 s%@EXPECT@%$EXPECT%g
7557 s%@RUNTEST@%$RUNTEST%g
7560 s%@DLLTOOL@%$DLLTOOL%g
7564 s%@RANLIB@%$RANLIB%g
7566 s%@WINDRES@%$WINDRES%g
7567 s%@OBJCOPY@%$OBJCOPY%g
7568 s%@OBJDUMP@%$OBJDUMP%g
7570 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7571 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7572 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7573 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7574 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7575 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7576 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7577 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7578 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7579 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7580 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7581 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7582 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7583 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7584 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7585 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7586 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7587 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7588 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7589 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7590 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7591 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7592 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7594 s%@stage1_cflags@%$stage1_cflags%g
7595 s%@stage2_werror_flag@%$stage2_werror_flag%g
7596 s%@datarootdir@%$datarootdir%g
7597 s%@docdir@%$docdir%g
7598 s%@htmldir@%$htmldir%g
7603 cat >> $CONFIG_STATUS <<\EOF
7605 # Split the substitutions into bite-sized pieces for seds with
7606 # small command number limits, like on Digital OSF/1 and HP-UX.
7607 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7608 ac_file=1 # Number of current file.
7609 ac_beg=1 # First line for current file.
7610 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7613 while $ac_more_lines; do
7614 if test $ac_beg -gt 1; then
7615 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7617 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7619 if test ! -s conftest.s$ac_file; then
7621 rm -f conftest.s$ac_file
7623 if test -z "$ac_sed_cmds"; then
7624 ac_sed_cmds="sed -f conftest.s$ac_file"
7626 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7628 ac_file=`expr $ac_file + 1`
7630 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7633 if test -z "$ac_sed_cmds"; then
7638 cat >> $CONFIG_STATUS <<EOF
7640 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7642 cat >> $CONFIG_STATUS <<\EOF
7643 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7644 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7646 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
7647 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
7648 *) ac_file_in="${ac_file}.in" ;;
7651 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7653 # Remove last slash and all that follows it. Not all systems have dirname.
7654 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7655 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7656 # The file is in a subdirectory.
7657 test ! -d "$ac_dir" && mkdir "$ac_dir"
7658 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
7659 # A "../" for each directory in $ac_dir_suffix.
7660 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
7662 ac_dir_suffix= ac_dots=
7665 case "$ac_given_srcdir" in
7667 if test -z "$ac_dots"; then top_srcdir=.
7668 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
7669 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7671 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7672 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7675 case "$ac_given_INSTALL" in
7676 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7677 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7680 echo creating "$ac_file"
7682 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
7684 *Makefile*) ac_comsub="1i\\
7685 # $configure_input" ;;
7689 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7691 s%@configure_input@%$configure_input%g
7692 s%@srcdir@%$srcdir%g
7693 s%@top_srcdir@%$top_srcdir%g
7694 s%@INSTALL@%$INSTALL%g
7695 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7700 cat >> $CONFIG_STATUS <<EOF
7703 cat >> $CONFIG_STATUS <<\EOF
7707 chmod +x $CONFIG_STATUS
7708 rm -fr confdefs* $ac_clean_files
7709 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1