3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-libada Builds libada directory"
17 --enable-libssp Builds libssp directory"
19 --with-mpfr-dir=PATH Specify source directory for MPFR library"
21 --with-mpfr=PATH Specify directory for installed MPFR library"
23 --with-gmp-dir=PATH Specify source directory for GMP library"
25 --with-gmp=PATH Specify directory for installed GMP library"
27 --with-build-sysroot=sysroot
28 use sysroot as the system root during the build"
30 --enable-bootstrap[=lean] Enable bootstrapping [no]"
32 --enable-serial-[{host,target,build}-]configure
33 Force sequential configuration of
34 sub-packages for the host, target or build
35 machine, or all sub-packages"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 --enable-werror enable -Werror in bootstrap stage2 and later"
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
46 cache_file
=.
/config.cache
55 program_transform_name
=s
,x
,x
,
63 bindir
='${exec_prefix}/bin'
64 sbindir
='${exec_prefix}/sbin'
65 libexecdir
='${exec_prefix}/libexec'
66 datadir
='${prefix}/share'
67 sysconfdir
='${prefix}/etc'
68 sharedstatedir
='${prefix}/com'
69 localstatedir
='${prefix}/var'
70 libdir
='${exec_prefix}/lib'
71 includedir
='${prefix}/include'
72 oldincludedir
='/usr/include'
73 infodir
='${prefix}/info'
74 mandir
='${prefix}/man'
76 # Initialize some other variables.
79 SHELL
=${CONFIG_SHELL-/bin/sh}
80 # Maximum number of lines to put in a shell here document.
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
95 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 # Accept the important Cygnus configure options, so we can diagnose typos.
103 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
105 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
106 bindir
="$ac_optarg" ;;
108 -build |
--build |
--buil |
--bui |
--bu)
110 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
111 build
="$ac_optarg" ;;
113 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
114 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
115 ac_prev
=cache_file
;;
116 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
117 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
118 cache_file
="$ac_optarg" ;;
120 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
122 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
124 datadir
="$ac_optarg" ;;
126 -disable-* |
--disable-*)
127 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
135 -enable-* |
--enable-*)
136 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
148 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
149 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
150 |
--exec |
--exe |
--ex)
151 ac_prev
=exec_prefix
;;
152 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
153 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
154 |
--exec=* |
--exe=* |
--ex=*)
155 exec_prefix
="$ac_optarg" ;;
157 -gas |
--gas |
--ga |
--g)
158 # Obsolete; use --with-gas.
161 -help |
--help |
--hel |
--he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host |
--host |
--hos |
--ho)
218 -host=* |
--host=* |
--hos=* |
--ho=*)
221 -includedir |
--includedir |
--includedi |
--included |
--include \
222 |
--includ |
--inclu |
--incl |
--inc)
223 ac_prev
=includedir
;;
224 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
225 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
226 includedir
="$ac_optarg" ;;
228 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
230 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
231 infodir
="$ac_optarg" ;;
233 -libdir |
--libdir |
--libdi |
--libd)
235 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
236 libdir
="$ac_optarg" ;;
238 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
239 |
--libexe |
--libex |
--libe)
240 ac_prev
=libexecdir
;;
241 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
242 |
--libexe=* |
--libex=* |
--libe=*)
243 libexecdir
="$ac_optarg" ;;
245 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
246 |
--localstate |
--localstat |
--localsta |
--localst \
247 |
--locals |
--local |
--loca |
--loc |
--lo)
248 ac_prev
=localstatedir
;;
249 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
250 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
251 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
252 localstatedir
="$ac_optarg" ;;
254 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
256 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
257 mandir
="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
267 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
268 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
271 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
272 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
273 |
--oldin |
--oldi |
--old |
--ol |
--o)
274 ac_prev
=oldincludedir
;;
275 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
276 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
277 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
278 oldincludedir
="$ac_optarg" ;;
280 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
282 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
283 prefix
="$ac_optarg" ;;
285 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
286 |
--program-pre |
--program-pr |
--program-p)
287 ac_prev
=program_prefix
;;
288 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
289 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
290 program_prefix
="$ac_optarg" ;;
292 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
293 |
--program-suf |
--program-su |
--program-s)
294 ac_prev
=program_suffix
;;
295 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
296 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
297 program_suffix
="$ac_optarg" ;;
299 -program-transform-name |
--program-transform-name \
300 |
--program-transform-nam |
--program-transform-na \
301 |
--program-transform-n |
--program-transform- \
302 |
--program-transform |
--program-transfor \
303 |
--program-transfo |
--program-transf \
304 |
--program-trans |
--program-tran \
305 |
--progr-tra |
--program-tr |
--program-t)
306 ac_prev
=program_transform_name
;;
307 -program-transform-name=* |
--program-transform-name=* \
308 |
--program-transform-nam=* |
--program-transform-na=* \
309 |
--program-transform-n=* |
--program-transform-=* \
310 |
--program-transform=* |
--program-transfor=* \
311 |
--program-transfo=* |
--program-transf=* \
312 |
--program-trans=* |
--program-tran=* \
313 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
314 program_transform_name
="$ac_optarg" ;;
316 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
317 |
-silent |
--silent |
--silen |
--sile |
--sil)
320 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
322 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
324 sbindir
="$ac_optarg" ;;
326 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
327 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
328 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
330 ac_prev
=sharedstatedir
;;
331 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
332 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
333 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
335 sharedstatedir
="$ac_optarg" ;;
337 -site |
--site |
--sit)
339 -site=* |
--site=* |
--sit=*)
342 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
344 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
345 srcdir
="$ac_optarg" ;;
347 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
348 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
349 ac_prev
=sysconfdir
;;
350 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
351 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
352 sysconfdir
="$ac_optarg" ;;
354 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
356 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
357 target
="$ac_optarg" ;;
359 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
362 -version |
--version |
--versio |
--versi |
--vers)
363 echo "configure generated by autoconf version 2.13"
367 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package
=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}='$ac_optarg'" ;;
379 -without-* |
--without-*)
380 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package
=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
389 # Obsolete; use --with-x.
392 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
393 |
--x-incl |
--x-inc |
--x-in |
--x-i)
394 ac_prev
=x_includes
;;
395 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
396 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
397 x_includes
="$ac_optarg" ;;
399 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
400 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
401 ac_prev
=x_libraries
;;
402 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
403 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
404 x_libraries
="$ac_optarg" ;;
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 if test "x$nonopt" != xNONE
; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428 # File descriptor usage:
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
454 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
455 |
--no-cr |
--no-c) ;;
456 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
457 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
458 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
465 # Only set these to C if already set. These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
472 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest
* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
481 ac_unique_file
=move-if-change
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485 ac_srcdir_defaulted
=yes
486 # Try the directory containing this script, then its parent.
488 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
491 if test ! -r $srcdir/$ac_unique_file; then
495 ac_srcdir_defaulted
=no
497 if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE
; then
509 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
511 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 for ac_site_file
in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
525 echo "creating cache $cache_file"
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp
='$CPP $CPPFLAGS'
532 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling
=$ac_cv_prog_cc_cross
538 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
547 ac_n
= ac_c
='\c' ac_t
=
553 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
554 if test -f $ac_dir/install-sh
; then
556 ac_install_sh
="$ac_aux_dir/install-sh -c"
558 elif test -f $ac_dir/install.sh
; then
560 ac_install_sh
="$ac_aux_dir/install.sh -c"
564 if test -z "$ac_aux_dir"; then
565 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
567 ac_config_guess
=$ac_aux_dir/config.guess
568 ac_config_sub
=$ac_aux_dir/config.sub
569 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
572 # Do some error checking and defaulting for the host and target type.
574 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
577 # 1. You are not allowed to specify --host, --target, and nonopt at the
579 # 2. Host defaults to nonopt.
580 # 3. If nonopt is not specified, then host defaults to the current host,
581 # as determined by config.guess.
582 # 4. Target and build default to nonopt.
583 # 5. If nonopt is not specified, then target and build default to host.
585 # The aliases save the names the user supplied, while $host etc.
586 # will get canonicalized.
587 case $host---$target---$nonopt in
588 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
589 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
593 # Make sure we can run config.sub.
594 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
595 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
598 echo $ac_n "checking host system type""... $ac_c" 1>&6
599 echo "configure:600: checking host system type" >&5
602 case "$host_alias" in
606 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
607 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
609 *) host_alias
=$nonopt ;;
613 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
614 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
615 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
616 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
617 echo "$ac_t""$host" 1>&6
619 echo $ac_n "checking target system type""... $ac_c" 1>&6
620 echo "configure:621: checking target system type" >&5
623 case "$target_alias" in
626 NONE
) target_alias
=$host_alias ;;
627 *) target_alias
=$nonopt ;;
631 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
632 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
633 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
634 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
635 echo "$ac_t""$target" 1>&6
637 echo $ac_n "checking build system type""... $ac_c" 1>&6
638 echo "configure:639: checking build system type" >&5
641 case "$build_alias" in
644 NONE
) build_alias
=$host_alias ;;
645 *) build_alias
=$nonopt ;;
649 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
650 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653 echo "$ac_t""$build" 1>&6
655 test "$host_alias" != "$target_alias" &&
656 test "$program_prefix$program_suffix$program_transform_name" = \
658 program_prefix
=${target_alias}-
660 if test "$program_transform_name" = s
,x
,x
,; then
661 program_transform_name
=
663 # Double any \ or $. echo might interpret backslashes.
664 cat <<\EOF_SED
> conftestsed
665 s
,\\,\\\\,g
; s
,\$
,$$
,g
667 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
670 test "$program_prefix" != NONE
&&
671 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
672 # Use a double $ so make ignores it.
673 test "$program_suffix" != NONE
&&
674 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
676 # sed with no file args requires a program.
677 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
680 # Get 'install' or 'install-sh' and its variants.
681 # Find a good install program. We prefer a C program (faster),
682 # so one script is as good as another. But avoid the broken or
683 # incompatible versions:
684 # SysV /etc/install, /usr/sbin/install
685 # SunOS /usr/etc/install
688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
691 # ./install, which can be erroneously created by make from ./install.sh.
692 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
693 echo "configure:694: checking for a BSD compatible install" >&5
694 if test -z "$INSTALL"; then
695 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
699 for ac_dir
in $PATH; do
700 # Account for people who put trailing slashes in PATH elements.
702 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
704 # OSF1 and SCO ODT 3.0 have their own names for install.
705 # Don't use installbsd from OSF since it installs stuff as root
707 for ac_prog
in ginstall scoinst
install; do
708 if test -f $ac_dir/$ac_prog; then
709 if test $ac_prog = install &&
710 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
711 # AIX install. It has an incompatible calling convention.
714 ac_cv_path_install
="$ac_dir/$ac_prog -c"
725 if test "${ac_cv_path_install+set}" = set; then
726 INSTALL
="$ac_cv_path_install"
728 # As a last resort, use the slow shell script. We don't cache a
729 # path for INSTALL within a source directory, because that will
730 # break other packages using the cache if that directory is
731 # removed, or if the path is relative.
732 INSTALL
="$ac_install_sh"
735 echo "$ac_t""$INSTALL" 1>&6
737 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
738 # It thinks the first close brace ends the variable substitution.
739 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
741 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
743 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
745 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
746 echo "configure:747: checking whether ln works" >&5
747 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
752 if ln conftestdata_f conftestdata_t
2>/dev
/null
758 rm -f conftestdata_f conftestdata_t
761 if test $acx_cv_prog_LN = no
; then
763 echo "$ac_t""no, using $LN" 1>&6
766 echo "$ac_t""yes" 1>&6
769 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
770 echo "configure:771: checking whether ln -s works" >&5
771 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
772 echo $ac_n "(cached) $ac_c" 1>&6
775 if ln -s X conftestdata
2>/dev
/null
778 ac_cv_prog_LN_S
="ln -s"
783 LN_S
="$ac_cv_prog_LN_S"
784 if test "$ac_cv_prog_LN_S" = "ln -s"; then
785 echo "$ac_t""yes" 1>&6
787 echo "$ac_t""no" 1>&6
791 ### we might need to use some other shell than /bin/sh for running subshells
792 ### If we are on Windows, search for the shell. This will permit people
793 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
794 ### without also having to set CONFIG_SHELL. This code will work when
795 ### using bash, which sets OSTYPE.
798 if test x
${CONFIG_SHELL} = x
; then
799 if test ! -f /bin
/sh
; then
800 if test x
${SHELL} != x
&& test -f ${SHELL} ; then
801 CONFIG_SHELL
=${SHELL}
804 for prog
in sh sh.exe bash bash.exe
; do
805 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
807 test -z "$dir" && dir
=.
808 if test -f $dir/$prog; then
809 CONFIG_SHELL
=$dir/$prog
815 test -n "${CONFIG_SHELL}" && break
823 config_shell
=${CONFIG_SHELL-/bin/sh}
826 # if PWD already has a value, it is probably wrong.
827 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
829 # Export original configure arguments for use by sub-configures. These
830 # will be expanded by make, so quote '$'.
832 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
835 TOPLEVEL_CONFIGURE_ARGUMENTS
=`cat conftestsed.out`
836 rm -f conftestsed.out
839 moveifchange
=${srcdir}/move-if-change
841 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
843 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
845 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
846 INSTALL
="${srcpwd}/install-sh -c"
849 # Set srcdir to "." if that's what it is.
850 # This is important for multilib support.
852 if test "${pwd}" = "${srcpwd}" ; then
860 ### To add a new directory to the tree, first choose whether it is a target
861 ### or a host dependent tool. Then put it into the appropriate list
862 ### (library or tools, host or target), doing a dependency sort.
864 # Subdirs will be configured in the order listed in build_configdirs,
865 # configdirs, or target_configdirs; see the serialization section below.
867 # Dependency sorting is only needed when *configuration* must be done in
868 # a particular order. In all cases a dependency should be specified in
869 # the Makefile, whether or not it's implicitly specified here.
871 # Double entries in build_configdirs, configdirs, or target_configdirs may
872 # cause circular dependencies and break everything horribly.
874 # these library is used by various programs built for the build
877 build_libs
="build-libiberty"
879 # these tools are built for the build environment
880 build_tools
="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
882 # these libraries are used by various programs built for the host environment
884 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp"
886 # these tools are built for the host environment
887 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
888 # know that we are building the simulator.
889 # binutils, gas and ld appear in that order because it makes sense to run
890 # "make check" in that particular order.
891 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"
893 # libgcj represents the runtime libraries only used by gcj.
894 libgcj
="target-libffi \
900 # these libraries are built for the target environment, and are built after
901 # the host libraries and the host tools (which may be a cross compiler)
903 target_libraries
="target-libiberty \
906 target-libstdc++-v3 \
914 # these tools are built using the target libraries, and are intended to
915 # run only in the target environment
917 # note: any program that *uses* libraries that are in the "target_libraries"
918 # list belongs in this list. those programs are also very likely
919 # candidates for the "native_only" list which follows
921 target_tools
="target-examples target-groff target-gperf target-rda"
923 ################################################################################
925 ## All tools belong in one of the four categories, and are assigned above
926 ## We assign ${configdirs} this way to remove all embedded newlines. This
927 ## is important because configure will choke if they ever get through.
928 ## ${configdirs} is directories we build using the host tools.
929 ## ${target_configdirs} is directories we build using the target tools.
930 configdirs
=`echo ${host_libs} ${host_tools}`
931 target_configdirs
=`echo ${target_libraries} ${target_tools}`
932 build_configdirs
=`echo ${build_libs} ${build_tools}`
934 ################################################################################
936 srcname
="gnu development package"
938 # This gets set non-empty for some net releases of packages.
941 # Define is_cross_compiler to save on calls to 'test'.
943 if test x
"${host}" = x
"${target}" ; then
946 is_cross_compiler
=yes
949 # Find the build and target subdir names.
950 case ${build_alias} in
951 "") build_noncanonical
=${build} ;;
952 *) build_noncanonical
=${build_alias} ;;
955 case ${host_alias} in
956 "") host_noncanonical
=${build_noncanonical} ;;
957 *) host_noncanonical
=${host_alias} ;;
960 case ${target_alias} in
961 "") target_noncanonical
=${host_noncanonical} ;;
962 *) target_noncanonical
=${target_alias} ;;
965 # Prefix 'build-' so this never conflicts with target_subdir.
966 build_subdir
="build-${build_noncanonical}"
967 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
968 if ( test $srcdir = .
&& test -d gcc
) \
969 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
970 host_subdir
="host-${host_noncanonical}"
975 target_subdir
=${target_noncanonical}
978 # Skipdirs are removed silently.
980 # Noconfigdirs are removed loudly.
984 # Make sure we don't let GNU ld be added if we didn't want it.
985 if test x
$with_gnu_ld = xno
; then
987 noconfigdirs
="$noconfigdirs ld"
991 # Make sure we don't let GNU as be added if we didn't want it.
992 if test x
$with_gnu_as = xno
; then
994 noconfigdirs
="$noconfigdirs gas"
997 # some tools are so dependent upon X11 that if we're not building with X,
998 # it's not even worth trying to configure, much less build, that tool.
1001 yes |
"") ;; # the default value for this tree is that X11 is available
1003 skipdirs
="${skipdirs} tk itcl libgui"
1004 # We won't be able to build gdbtk without X.
1007 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1010 # Some tools are only suitable for building in a "native" situation.
1011 # Remove these if host!=target.
1012 native_only
="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1014 # Similarly, some are only suitable for cross toolchains.
1015 # Remove these if host=target.
1016 cross_only
="target-libgloss target-newlib target-opcodes"
1018 case $is_cross_compiler in
1019 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1020 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1023 # If both --with-headers and --with-libs are specified, default to
1025 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
1026 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
1027 if test x
"${with_newlib}" = x
; then
1032 # Recognize --with-newlib/--without-newlib.
1033 case ${with_newlib} in
1034 no
) skipdirs
="${skipdirs} target-newlib" ;;
1035 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1038 # Configure extra directories which are host specific
1042 configdirs
="$configdirs libtermcap" ;;
1045 # A target can indicate whether a language isn't supported for some reason.
1046 # Only spaces may be used in this macro; not newlines or tabs.
1047 unsupported_languages
=
1049 # Remove more programs from consideration, based on the host or
1050 # target this usually means that a port of the program doesn't
1055 noconfigdirs
="$noconfigdirs byacc"
1057 i
[3456789]86-*-vsta)
1058 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1060 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1061 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1063 i
[3456789]86-*-mingw32*)
1064 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1065 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1067 i
[3456789]86-*-beos*)
1068 noconfigdirs
="$noconfigdirs tk itcl libgui gdb"
1071 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1074 noconfigdirs
="$noconfigdirs rcs"
1077 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1080 noconfigdirs
="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1085 # Check whether --enable-libada or --disable-libada was given.
1086 if test "${enable_libada+set}" = set; then
1087 enableval
="$enable_libada"
1088 ENABLE_LIBADA
=$enableval
1093 if test "${ENABLE_LIBADA}" != "yes" ; then
1094 noconfigdirs
="$noconfigdirs target-libada"
1095 noconfigdirs
="$noconfigdirs gnattools"
1098 # Check whether --enable-libssp or --disable-libssp was given.
1099 if test "${enable_libssp+set}" = set; then
1100 enableval
="$enable_libssp"
1101 ENABLE_LIBSSP
=$enableval
1106 if test "${ENABLE_LIBSSP}" != "yes" ; then
1107 noconfigdirs
="$noconfigdirs target-libssp"
1110 # Save it here so that, even in case of --enable-libgcj, if the Java
1111 # front-end isn't enabled, we still get libgcj disabled.
1112 libgcj_saved
=$libgcj
1113 case $enable_libgcj in
1115 # If we reset it here, it won't get added to noconfigdirs in the
1116 # target-specific build rules, so it will be forcibly enabled
1117 # (unless the Java language itself isn't enabled).
1121 # Make sure we get it printed in the list of not supported target libs.
1122 noconfigdirs
="$noconfigdirs ${libgcj}"
1127 # Allow --disable-libmudflap to exclude target-libmudflap
1128 case $enable_libmudflap in
1132 noconfigdirs
="$noconfigdirs target-libmudflap"
1136 *-*-linux*-gnu |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1137 # Enable libmudflap by default in GNU and friends.
1140 # Enable libmudflap by default in FreeBSD.
1143 # Disable it by default everywhere else.
1144 noconfigdirs
="$noconfigdirs target-libmudflap"
1152 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1155 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1156 noconfigdirs
="$noconfigdirs sim target-rda"
1159 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
1160 noconfigdirs
="$noconfigdirs sim target-rda"
1161 noconfigdirs
="$noconfigdirs ${libgcj}"
1163 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1164 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1167 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1168 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1169 && test -f /usr
/local
/include
/gmp.h
; then
1173 # Skip some stuff that's unsupported on some FreeBSD configurations.
1178 noconfigdirs
="$noconfigdirs ${libgcj}"
1183 # Remove unsupported stuff on all kaOS configurations.
1184 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1185 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1186 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1187 noconfigdirs
="$noconfigdirs target-libgloss"
1190 # Skip some stuff on all NetBSD configurations.
1191 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1193 # Skip some stuff that's unsupported on some NetBSD configurations.
1195 i
*86-*-netbsdelf*) ;;
1196 arm
*-*-netbsdelf*) ;;
1198 noconfigdirs
="$noconfigdirs ${libgcj}"
1203 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1206 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1208 # The tpf target doesn't support gdb yet.
1210 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1213 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1216 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1219 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1222 # ld works, but does not support shared libraries.
1223 # newlib is not 64 bit ready. I'm not sure about fileutils.
1224 # gas doesn't generate exception information.
1225 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1228 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1231 # newlib is not 64 bit ready
1232 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1235 # newlib is not 64 bit ready
1236 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1239 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1242 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1244 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1245 noconfigdirs
="$noconfigdirs ${libgcj}"
1246 noconfigdirs
="$noconfigdirs target-examples"
1247 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1248 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
1249 noconfigdirs
="$noconfigdirs expect dejagnu"
1250 # the C++ libraries don't build on top of CE's C libraries
1251 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1252 noconfigdirs
="$noconfigdirs target-newlib"
1254 *-*-cygwin*) ;; # keep gdb and readline
1255 *) noconfigdirs
="$noconfigdirs gdb readline"
1260 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1264 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1265 noconfigdirs
="$noconfigdirs ${libgcj}"
1267 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
1268 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1271 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1274 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1277 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1280 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1283 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1286 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1289 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1292 noconfigdirs
="$noconfigdirs target-libgloss gdb"
1293 if x
${is_cross_compiler} != xno
; then
1294 target_configdirs
="${target_configdirs} target-bsp target-cygmon"
1297 c4x-
*-* | tic4x-
*-*)
1298 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1300 c54x
*-*-* | tic54x-
*-*)
1301 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1303 cris-
*-* | crisv32-
*-*)
1304 unsupported_languages
="$unsupported_languages java"
1307 unsupported_languages
="$unsupported_languages fortran"
1308 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
1310 unsupported_languages
="$unsupported_languages fortran"
1311 noconfigdirs
="$noconfigdirs target-boehm-gc";;
1313 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
1315 unsupported_languages
="$unsupported_languages fortran"
1316 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1320 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1323 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1326 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1329 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1332 noconfigdirs
="$noconfigdirs ${libgcj}"
1335 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1338 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1340 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
1342 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1343 # In this case, it's because the hppa64-linux target is for
1344 # the kernel only at this point and has no libc, and thus no
1345 # headers, crt*.o, etc., all of which are needed by these.
1346 noconfigdirs
="$noconfigdirs target-zlib"
1348 parisc
*-*-linux* | hppa
*-*-linux*)
1352 hppa
*-*-openbsd* | \
1354 noconfigdirs
="$noconfigdirs ${libgcj}"
1357 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1358 # build on HP-UX 10.20.
1359 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1362 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1365 # No gdb support yet.
1366 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
1369 # No gdb or ld support yet.
1370 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1374 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1375 noconfigdirs
="$noconfigdirs ${libgcj}"
1377 i
[3456789]86-*-linux*)
1378 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1379 # not build java stuff by default.
1382 noconfigdirs
="$noconfigdirs ${libgcj}";;
1385 # This section makes it possible to build newlib natively on linux.
1386 # If we are using a cross compiler then don't configure newlib.
1387 if test x
${is_cross_compiler} != xno
; then
1388 noconfigdirs
="$noconfigdirs target-newlib"
1390 noconfigdirs
="$noconfigdirs target-libgloss"
1391 # If we are not using a cross compiler, do configure newlib.
1392 # Note however, that newlib will only be configured in this situation
1393 # if the --with-newlib option has been given, because otherwise
1394 # 'target-newlib' will appear in skipdirs.
1396 i
[3456789]86-*-mingw32*)
1397 target_configdirs
="$target_configdirs target-mingw"
1398 noconfigdirs
="$noconfigdirs expect target-libgloss ${libgcj}"
1400 # Can't build gdb for mingw32 if not native.
1402 i
[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1403 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1408 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1409 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1410 # always build newlib if winsup directory is present.
1411 if test -d "$srcdir/winsup"; then
1412 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1413 elif test -d "$srcdir/newlib"; then
1414 echo "Warning: winsup is missing so newlib can't be built."
1417 # Can't build gdb for Cygwin if not native.
1419 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1420 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1424 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
1425 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
1428 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1430 i
[3456789]86-*-sco3.2v5
*)
1431 # The linker does not yet know about weak symbols in COFF,
1432 # and is not configured to handle mixed ELF and COFF.
1433 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1435 i
[3456789]86-*-sco*)
1436 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1438 i
[3456789]86-*-solaris2*)
1439 noconfigdirs
="$noconfigdirs target-libgloss"
1441 i
[3456789]86-*-sysv4*)
1442 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1444 i
[3456789]86-*-beos*)
1445 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1448 noconfigdirs
="$noconfigdirs ${libgcj}"
1450 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1451 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1454 noconfigdirs
="$noconfigdirs ${libgcj}"
1457 noconfigdirs
="$noconfigdirs ${libgcj}"
1460 # The EPOC C++ environment does not support exceptions or rtti,
1461 # and so building libstdc++-v3 tends not to always work.
1462 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1465 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1466 unsupported_languages
="$unsupported_languages fortran java"
1469 noconfigdirs
="$noconfigdirs ${libgcj}"
1472 noconfigdirs
="$noconfigdirs ${libgcj}"
1475 noconfigdirs
="$noconfigdirs sim"
1478 # copied from rs6000-*-* entry
1479 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1481 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1482 target_configdirs
="$target_configdirs target-winsup"
1483 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1484 # always build newlib.
1485 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1487 # This is temporary until we can link against shared libraries
1488 powerpcle-
*-solaris*)
1489 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1492 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1495 noconfigdirs
="$noconfigdirs ${libgcj}"
1497 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
1500 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1503 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1506 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1509 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1512 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1515 # Linking libjava exceeds command-line length limits on at least
1516 # IRIX 6.2, but not on IRIX 6.5.
1517 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1518 # <oldham@codesourcery.com>
1519 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1522 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1525 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1528 noconfigdirs
="$noconfigdirs gprof ${libgcj}" # same as generic mips
1531 noconfigdirs
="$noconfigdirs target-newlib ${libgcj}"
1534 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1537 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1540 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1544 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1545 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1546 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1547 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1549 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1552 noconfigdirs
="$noconfigdirs ${libgcj}"
1555 noconfigdirs
="$noconfigdirs ${libgcj}"
1558 noconfigdirs
="$noconfigdirs ${libgcj}"
1561 noconfigdirs
="$noconfigdirs ${libgcj}"
1562 if test x
${is_cross_compiler} != xno
; then
1563 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1568 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
1569 noconfigdirs
="$noconfigdirs ${libgcj}"
1571 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1574 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1577 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1580 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1583 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1586 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1589 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1592 noconfigdirs
="$noconfigdirs ${libgcj}"
1595 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1597 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1598 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1601 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1604 noconfigdirs
="$noconfigdirs ${libgcj}"
1608 # If we aren't building newlib, then don't build libgloss, since libgloss
1609 # depends upon some newlib header files.
1610 case "${noconfigdirs}" in
1611 *target-libgloss
*) ;;
1612 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1615 # Work in distributions that contain no compiler tools, like Autoconf.
1617 host_makefile_frag
=/dev
/null
1618 if test -d ${srcdir}/config
; then
1621 # Avoid "too much defining" errors from HPUX compiler.
1622 tentative_cc
="cc -Wp,-H256000"
1623 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1624 # If it's HP/UX ar, this should be harmless.
1628 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1631 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1632 # chokes on bfd, the compiler won't let you assign integers to enums, and
1633 # other problems. Defining CC to gcc is a questionable way to say "don't use
1634 # the apollo compiler" (the preferred version of GCC could be called cc,
1635 # or whatever), but I'm not sure leaving CC as cc is any better...
1636 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1637 # Used to have BISON=yacc.
1641 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1644 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1645 tentative_cc
="cc -Xa"
1646 host_makefile_frag
="config/mh-cxux"
1648 m88k-motorola-sysv
*)
1651 tentative_cc
="cc -Wf,-XNg1000"
1652 host_makefile_frag
="config/mh-decstation"
1655 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1656 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1657 host_makefile_frag
="config/mh-necv4"
1660 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1661 # environment. Also bump switch table size so that cp-parse will
1662 # compile. Bump string length limit so linker builds.
1663 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1666 host_makefile_frag
="config/mh-sysv4"
1669 # This is for a MIPS running RISC/os 4.52C.
1671 # This is needed for GDB, but needs to be in the top-level make because
1672 # if a library is compiled with the bsd headers and gets linked with the
1673 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1674 # a different size).
1675 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1676 # known except to select the sysv environment. Could we use /proc instead?
1677 # These "sysv environments" and "bsd environments" often end up being a pain.
1679 # This is not part of CFLAGS because perhaps not all C compilers have this
1681 tentative_cc
="cc -systype sysv"
1686 i
[3456789]86-*-sysv5*)
1687 host_makefile_frag
="config/mh-sysv5"
1689 i
[3456789]86-*-dgux*)
1690 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1691 host_makefile_frag
="config/mh-dgux386"
1693 i
[3456789]86-ncr-sysv4.3
*)
1694 # The MetaWare compiler will generate a copyright message unless you
1695 # turn it off by adding the -Hnocopyr flag.
1696 tentative_cc
="cc -Hnocopyr"
1698 i
[3456789]86-ncr-sysv4*)
1699 # for an NCR 3000 (i486/SVR4) system.
1700 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1701 # This compiler not only emits obnoxious copyright messages every time
1702 # you run it, but it chokes and dies on a whole bunch of GNU source
1703 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1704 tentative_cc
="/usr/ccs/ATT/cc"
1705 host_makefile_frag
="config/mh-ncr3000"
1707 i
[3456789]86-*-sco3.2v5
*)
1709 i
[3456789]86-*-sco*)
1710 # The native C compiler botches some simple uses of const. Unfortunately,
1711 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1712 tentative_cc
="cc -Dconst="
1713 host_makefile_frag
="config/mh-sco"
1715 i
[3456789]86-*-udk*)
1716 host_makefile_frag
="config/mh-sysv5"
1718 i
[3456789]86-*-solaris2*)
1719 host_makefile_frag
="config/mh-sysv4"
1721 i
[3456789]86-*-msdosdjgpp*)
1722 host_makefile_frag
="config/mh-djgpp"
1725 host_makefile_frag
="config/mh-cygwin"
1730 host_makefile_frag
="config/mh-interix"
1733 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1737 host_makefile_frag
="config/mh-solaris"
1740 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1741 # without overflowing the jump tables (-J says to use a 32 bit table)
1742 tentative_cc
="cc -J"
1745 tentative_cc
="cc -Wp,-H256000"
1748 tentative_cc
="cc -Wp,-H256000"
1751 # /bin/cc is less than useful for our purposes. Always use GCC
1752 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1753 host_makefile_frag
="config/mh-lynxrs6k"
1756 host_makefile_frag
="config/mh-ppc-darwin"
1759 # /bin/cc is less than useful for our purposes. Always use GCC
1760 tentative_cc
="/bin/gcc"
1763 host_makefile_frag
="config/mh-sysv4"
1765 # This is placed last to prevent interfering with the cases above.
1767 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1768 host_makefile_frag
="config/mh-x86omitfp"
1773 # If we aren't going to be using gcc, see if we can extract a definition
1774 # of CC from the fragment.
1775 # Actually, use the 'pre-extracted' version above.
1776 if test -z "${CC}" && test "${build}" = "${host}" ; then
1777 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1779 for dir
in $PATH; do
1780 test -z "$dir" && dir
=.
1781 if test -f $dir/gcc
; then
1787 if test -z "${found}" && test -n "${tentative_cc}" ; then
1792 if test "${build}" != "${host}" ; then
1793 # If we are doing a Canadian Cross, in which the host and build systems
1794 # are not the same, we set reasonable default values for the tools.
1796 CC
=${CC-${host_alias}-gcc}
1797 CFLAGS
=${CFLAGS-"-g -O2"}
1798 CXX
=${CXX-${host_alias}-c++}
1799 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1800 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1801 BUILD_PREFIX
=${build_alias}-
1802 BUILD_PREFIX_1
=${build_alias}-
1805 # Set reasonable default values for some tools even if not Canadian.
1806 # Of course, these are different reasonable default values, originally
1807 # specified directly in the Makefile.
1808 # We don't export, so that autoconf can do its job.
1809 # Note that all these settings are above the fragment inclusion point
1810 # in Makefile.in, so can still be overridden by fragments.
1811 # This is all going to change when we autoconfiscate...
1813 CC_FOR_BUILD
="\$(CC)"
1815 BUILD_PREFIX_1
=loser-
1817 # Extract the first word of "gcc", so it can be a program name with args.
1818 set dummy gcc
; ac_word
=$2
1819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1820 echo "configure:1821: checking for $ac_word" >&5
1821 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC
="$CC" # Let the user override the test.
1827 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1829 for ac_dir
in $ac_dummy; do
1830 test -z "$ac_dir" && ac_dir
=.
1831 if test -f $ac_dir/$ac_word; then
1840 if test -n "$CC"; then
1841 echo "$ac_t""$CC" 1>&6
1843 echo "$ac_t""no" 1>&6
1846 if test -z "$CC"; then
1847 # Extract the first word of "cc", so it can be a program name with args.
1848 set dummy cc
; ac_word
=$2
1849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1850 echo "configure:1851: checking for $ac_word" >&5
1851 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1854 if test -n "$CC"; then
1855 ac_cv_prog_CC
="$CC" # Let the user override the test.
1857 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1860 for ac_dir
in $ac_dummy; do
1861 test -z "$ac_dir" && ac_dir
=.
1862 if test -f $ac_dir/$ac_word; then
1863 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1864 ac_prog_rejected
=yes
1872 if test $ac_prog_rejected = yes; then
1873 # We found a bogon in the path, so make sure we never use it.
1874 set dummy
$ac_cv_prog_CC
1876 if test $# -gt 0; then
1877 # We chose a different compiler from the bogus one.
1878 # However, it has the same basename, so the bogon will be chosen
1879 # first if we set CC to just the basename; use the full file name.
1881 set dummy
"$ac_dir/$ac_word" "$@"
1889 if test -n "$CC"; then
1890 echo "$ac_t""$CC" 1>&6
1892 echo "$ac_t""no" 1>&6
1895 if test -z "$CC"; then
1896 case "`uname -s`" in
1898 # Extract the first word of "cl", so it can be a program name with args.
1899 set dummy cl
; ac_word
=$2
1900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1901 echo "configure:1902: checking for $ac_word" >&5
1902 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 if test -n "$CC"; then
1906 ac_cv_prog_CC
="$CC" # Let the user override the test.
1908 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1910 for ac_dir
in $ac_dummy; do
1911 test -z "$ac_dir" && ac_dir
=.
1912 if test -f $ac_dir/$ac_word; then
1921 if test -n "$CC"; then
1922 echo "$ac_t""$CC" 1>&6
1924 echo "$ac_t""no" 1>&6
1929 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1932 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1933 echo "configure:1934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1937 ac_cpp
='$CPP $CPPFLAGS'
1938 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1939 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1940 cross_compiling
=$ac_cv_prog_cc_cross
1942 cat > conftest.
$ac_ext << EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1949 if { (eval echo configure
:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1950 ac_cv_prog_cc_works
=yes
1951 # If we can't run a trivial program, we are probably using a cross compiler.
1952 if (.
/conftest
; exit) 2>/dev
/null
; then
1953 ac_cv_prog_cc_cross
=no
1955 ac_cv_prog_cc_cross
=yes
1958 echo "configure: failed program was:" >&5
1959 cat conftest.
$ac_ext >&5
1960 ac_cv_prog_cc_works
=no
1964 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1965 ac_cpp
='$CPP $CPPFLAGS'
1966 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1967 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1968 cross_compiling
=$ac_cv_prog_cc_cross
1970 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1971 if test $ac_cv_prog_cc_works = no
; then
1972 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1974 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1975 echo "configure:1976: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1976 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1977 cross_compiling
=$ac_cv_prog_cc_cross
1979 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1980 echo "configure:1981: checking whether we are using GNU C" >&5
1981 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1982 echo $ac_n "(cached) $ac_c" 1>&6
1984 cat > conftest.c
<<EOF
1989 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1996 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1998 if test $ac_cv_prog_gcc = yes; then
2004 ac_test_CFLAGS
="${CFLAGS+set}"
2005 ac_save_CFLAGS
="$CFLAGS"
2007 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2008 echo "configure:2009: checking whether ${CC-cc} accepts -g" >&5
2009 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2012 echo 'void f(){}' > conftest.c
2013 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2022 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2023 if test "$ac_test_CFLAGS" = set; then
2024 CFLAGS
="$ac_save_CFLAGS"
2025 elif test $ac_cv_prog_cc_g = yes; then
2026 if test "$GCC" = yes; then
2032 if test "$GCC" = yes; then
2040 # We must set the default linker to the linker used by gcc for the correct
2041 # operation of libtool. If LD is not defined and we are using gcc, try to
2042 # set the LD default to the ld used by gcc.
2043 if test -z "$LD"; then
2044 if test "$GCC" = yes; then
2047 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2049 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2051 case $gcc_prog_ld in
2052 # Accept absolute paths.
2053 [\\/]* |
[A-Za-z
]:[\\/]*)
2054 LD
="$gcc_prog_ld" ;;
2060 CFLAGS
=${CFLAGS-"-g"}
2061 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2064 if test $host != $build; then
2065 ac_tool_prefix
=${host_alias}-
2072 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2073 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2075 echo "configure:2076: checking for $ac_word" >&5
2076 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2079 if test -n "$GNATBIND"; then
2080 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2082 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2084 for ac_dir
in $ac_dummy; do
2085 test -z "$ac_dir" && ac_dir
=.
2086 if test -f $ac_dir/$ac_word; then
2087 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2094 GNATBIND
="$ac_cv_prog_GNATBIND"
2095 if test -n "$GNATBIND"; then
2096 echo "$ac_t""$GNATBIND" 1>&6
2098 echo "$ac_t""no" 1>&6
2102 if test -z "$ac_cv_prog_GNATBIND"; then
2103 if test -n "$ac_tool_prefix"; then
2104 # Extract the first word of "gnatbind", so it can be a program name with args.
2105 set dummy gnatbind
; ac_word
=$2
2106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2107 echo "configure:2108: checking for $ac_word" >&5
2108 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2111 if test -n "$GNATBIND"; then
2112 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2114 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2116 for ac_dir
in $ac_dummy; do
2117 test -z "$ac_dir" && ac_dir
=.
2118 if test -f $ac_dir/$ac_word; then
2119 ac_cv_prog_GNATBIND
="gnatbind"
2124 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2127 GNATBIND
="$ac_cv_prog_GNATBIND"
2128 if test -n "$GNATBIND"; then
2129 echo "$ac_t""$GNATBIND" 1>&6
2131 echo "$ac_t""no" 1>&6
2139 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2140 echo "configure:2141: checking whether compiler driver understands Ada" >&5
2141 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat >conftest.adb
<<EOF
2145 procedure conftest is begin null; end conftest;
2147 acx_cv_cc_gcc_supports_ada
=no
2148 # There is a bug in old released versions of GCC which causes the
2149 # driver to exit successfully when the appropriate language module
2150 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2151 # Therefore we must check for the error message as well as an
2152 # unsuccessful exit.
2153 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2154 # given a .adb file, but produce no object file. So we must check
2155 # if an object file was really produced to guard against this.
2156 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2157 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2158 acx_cv_cc_gcc_supports_ada
=yes
2163 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2165 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2171 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2172 echo "configure:2173: checking how to compare bootstrapped objects" >&5
2173 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2178 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2179 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2180 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2183 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2186 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2187 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2190 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2197 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2198 do_compare
="$gcc_cv_prog_cmp_skip"
2202 # Check for GMP and MPFR
2206 # Specify a location for mpfr
2207 # check for this first so it ends up on the link line before gmp.
2208 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2209 if test "${with_mpfr_dir+set}" = set; then
2210 withval
="$with_mpfr_dir"
2215 if test "x$with_mpfr_dir" != x
; then
2216 gmpinc
="-I$with_mpfr_dir"
2217 gmplibs
="$with_mpfr_dir/libmpfr.a"
2222 # Check whether --with-mpfr or --without-mpfr was given.
2223 if test "${with_mpfr+set}" = set; then
2224 withval
="$with_mpfr"
2229 if test "x$with_mpfr" != x
; then
2230 gmplibs
="-L$with_mpfr/lib $gmplibs"
2231 gmpinc
="-I$with_mpfr/include"
2234 # Specify a location for gmp
2235 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2236 if test "${with_gmp_dir+set}" = set; then
2237 withval
="$with_gmp_dir"
2242 if test "x$with_gmp_dir" != x
; then
2243 gmpinc
="$gmpinc -I$with_gmp_dir"
2244 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2245 gmplibs
="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2246 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2247 gmplibs
="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2249 # One of the later tests will catch the error if neither library is present.
2251 gmplibs
="$gmplibs -lgmp"
2254 # Check whether --with-gmp or --without-gmp was given.
2255 if test "${with_gmp+set}" = set; then
2261 if test "x$with_gmp" != x
; then
2262 gmplibs
="-L$with_gmp/lib $gmplibs"
2263 gmpinc
="-I$with_gmp/include $gmpinc"
2266 saved_CFLAGS
="$CFLAGS"
2267 CFLAGS
="$CFLAGS $gmpinc"
2268 # Check GMP actually works
2269 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2270 echo "configure:2271: checking for correct version of gmp.h" >&5
2271 cat > conftest.
$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2277 #if __GNU_MP_VERSION < 3
2283 if { (eval echo configure
:2284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2285 echo "$ac_t""yes" 1>&6
2287 echo "configure: failed program was:" >&5
2288 cat conftest.
$ac_ext >&5
2290 echo "$ac_t""no" 1>&6; have_gmp
=no
2294 if test x
"$have_gmp" = xyes
; then
2295 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2296 echo "configure:2297: checking for MPFR" >&5
2299 LIBS
="$LIBS $gmplibs"
2300 cat > conftest.
$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2306 mpfr_t n; mpfr_init(n);
2309 if { (eval echo configure
:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2311 echo "$ac_t""yes" 1>&6
2313 echo "configure: failed program was:" >&5
2314 cat conftest.
$ac_ext >&5
2316 echo "$ac_t""no" 1>&6; have_gmp
=no
2320 CFLAGS
="$saved_CFLAGS"
2323 # Flags needed for both GMP and/or MPFR
2327 # By default, C is the only stage 1 language.
2331 # Figure out what language subdirectories are present.
2332 # Look if the user specified --enable-languages="..."; if not, use
2333 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2335 # NB: embedded tabs in this IF block -- do not untabify
2336 if test -d ${srcdir}/gcc
; then
2337 if test x
"${enable_languages+set}" != xset
; then
2338 if test x
"${LANGUAGES+set}" = xset
; then
2339 enable_languages
="${LANGUAGES}"
2340 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2342 enable_languages
=all
2345 if test x
"${enable_languages}" = x ||
2346 test x
"${enable_languages}" = xyes
;
2348 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2352 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2354 # 'f95' is the old name for the 'fortran' language. We issue a warning
2355 # and make the substitution.
2356 case ,${enable_languages}, in
2358 echo configure.
in: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
2359 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2363 # First scan to see if an enabled language requires some other language.
2364 # We assume that a given config-lang.in will list all the language
2365 # front ends it requires, even if some are required indirectly.
2366 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2367 case ${lang_frag} in
2369 # The odd quoting in the next line works around
2370 # an apparent bug in bash 1.12 on linux.
2371 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2373 # From the config-lang.in, get $language, $lang_requires
2377 for other
in ${lang_requires} ; do
2378 case ,${enable_languages}, in
2382 echo " \`$other' language required by \`$language'; enabling" 1>&2
2383 enable_languages
="${enable_languages},${other}"
2391 new_enable_languages
=c
2392 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2393 potential_languages
=c
2395 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2396 case ${lang_frag} in
2398 # The odd quoting in the next line works around
2399 # an apparent bug in bash 1.12 on linux.
2400 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2402 # From the config-lang.in, get $language, $target_libs,
2403 # $lang_dirs, $boot_language, and $build_by_default
2411 potential_languages
="${potential_languages},${language}"
2412 # This is quite sensitive to the ordering of the case statement arms.
2413 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2415 echo "${lang_frag} doesn't set \$language." 1>&2
2419 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2422 *,${language},*:*:*:*)
2423 # Language was explicitly selected; include it.
2427 # 'all' was selected, but this is not a default language
2428 # so do not include it.
2432 # 'all' was selected and this is a default language; include it.
2440 # Disable languages that need GMP if it isn't available.
2441 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2442 *,${language},*:no
:yes)
2443 # Specifically requested language; tell them.
2444 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2452 # Disable a language that is unsupported by the target.
2453 case " $unsupported_languages " in
2459 case $add_this_lang in
2461 # Remove language-dependent dirs.
2462 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2465 new_enable_languages
="$new_enable_languages,$language"
2466 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2467 case ${boot_language} in
2469 # Add to (comma-separated) list of stage 1 languages.
2470 stage1_languages
="${stage1_languages},${language}"
2479 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2480 if test "x$missing_languages" != x
; then
2481 { echo "configure: error:
2482 The following requested languages could not be built: ${missing_languages}
2483 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2486 if test "x$new_enable_languages" != "x$enable_languages"; then
2487 echo The following languages will be built
: ${new_enable_languages}
2489 enable_languages
="$new_enable_languages"
2490 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2493 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2494 # $build_configdirs and $target_configdirs.
2495 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2498 for dir
in .
$skipdirs $noconfigdirs ; do
2499 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2500 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2501 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2502 if test -r $srcdir/$dirname/configure
; then
2503 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2506 notsupp
="$notsupp $dir"
2510 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2511 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2512 if test -r $srcdir/$dirname/configure
; then
2513 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2516 notsupp
="$notsupp $dir"
2520 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2521 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2522 if test -r $srcdir/$dirname/configure
; then
2523 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2526 notsupp
="$notsupp $dir"
2532 # Sometimes the tools are distributed with libiberty but with no other
2533 # libraries. In that case, we don't want to build target-libiberty.
2534 if test -n "${target_configdirs}" ; then
2536 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2537 if test "$i" != "libiberty" ; then
2538 if test -r $srcdir/$i/configure
; then
2544 if test -z "${others}" ; then
2549 # Quietly strip out all directories which aren't configurable in this tree.
2550 # This relies on all configurable subdirectories being autoconfiscated, which
2552 build_configdirs_all
="$build_configdirs"
2554 for i
in ${build_configdirs_all} ; do
2555 j
=`echo $i | sed -e s/build-//g`
2556 if test -f ${srcdir}/$j/configure
; then
2557 build_configdirs
="${build_configdirs} $i"
2561 configdirs_all
="$configdirs"
2563 for i
in ${configdirs_all} ; do
2564 if test -f ${srcdir}/$i/configure
; then
2565 configdirs
="${configdirs} $i"
2569 target_configdirs_all
="$target_configdirs"
2571 for i
in ${target_configdirs_all} ; do
2572 j
=`echo $i | sed -e s/target-//g`
2573 if test -f ${srcdir}/$j/configure
; then
2574 target_configdirs
="${target_configdirs} $i"
2578 # Produce a warning message for the subdirs we can't configure.
2579 # This isn't especially interesting in the Cygnus tree, but in the individual
2580 # FSF releases, it's important to let people know when their machine isn't
2581 # supported by the one or two programs in a package.
2583 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2584 # If $appdirs is non-empty, at least one of those directories must still
2585 # be configured, or we error out. (E.g., if the gas release supports a
2586 # specified target in some subdirs but not the gas subdir, we shouldn't
2587 # pretend that all is well.)
2588 if test -n "$appdirs" ; then
2589 for dir
in $appdirs ; do
2590 if test -r $dir/Makefile.
in ; then
2591 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2595 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2601 if test -n "$appdirs" ; then
2602 echo "*** This configuration is not supported by this package." 1>&2
2606 # Okay, some application will build, or we don't care to check. Still
2607 # notify of subdirs not getting built.
2608 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2609 echo " ${notsupp}" 1>&2
2610 echo " (Any other directories should still work fine.)" 1>&2
2620 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2621 if test "${with_build_sysroot+set}" = set; then
2622 withval
="$with_build_sysroot"
2623 if test x
"$withval" != x
; then
2624 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
2627 SYSROOT_CFLAGS_FOR_TARGET
=
2632 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2633 # the named directory are copied to $(tooldir)/sys-include.
2634 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2635 if test x
${is_cross_compiler} = xno
; then
2636 echo 1>&2 '***' --with-headers is only supported when cross compiling
2639 if test x
"${with_headers}" != xyes
; then
2640 case "${exec_prefixoption}" in
2642 *) x
=${exec_prefix} ;;
2644 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2648 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2649 # the name directories are copied to $(tooldir)/lib. Multiple directories
2651 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2652 if test x
${is_cross_compiler} = xno
; then
2653 echo 1>&2 '***' --with-libs is only supported when cross compiling
2656 if test x
"${with_libs}" != xyes
; then
2657 # Copy the libraries in reverse order, so that files in the first named
2658 # library override files in subsequent libraries.
2659 case "${exec_prefixoption}" in
2661 *) x
=${exec_prefix} ;;
2663 for l
in ${with_libs}; do
2664 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2669 # Handle ${copy_dirs}
2670 set fnord
${copy_dirs}
2672 while test $# != 0 ; do
2673 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2676 echo Copying
$1 to
$2
2678 # Use the install script to create the directory and all required
2679 # parent directories.
2680 if test -d $2 ; then
2684 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2687 # Copy the directory, assuming we have tar.
2688 # FIXME: Should we use B in the second tar? Not all systems support it.
2689 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2691 # It is the responsibility of the user to correctly adjust all
2692 # symlinks. If somebody can figure out how to handle them correctly
2693 # here, feel free to add the code.
2700 extra_arflags_for_target
=
2701 extra_nmflags_for_target
=
2702 extra_ranlibflags_for_target
=
2703 target_makefile_frag
=/dev
/null
2706 target_makefile_frag
="config/mt-netware"
2708 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2709 target_makefile_frag
="config/mt-gnu"
2711 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2712 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2713 # commands to handle both 32-bit and 64-bit objects. These flags are
2714 # harmless if we're using GNU nm or ar.
2715 extra_arflags_for_target
=" -X32_64"
2716 extra_nmflags_for_target
=" -B -X32_64"
2719 # ranlib from Darwin requires the -c flag to look at common symbols.
2720 extra_ranlibflags_for_target
=" -c"
2722 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2723 target_makefile_frag
="config/mt-wince"
2727 alphaieee_frag
=/dev
/null
2730 # This just makes sure to use the -mieee option to build target libs.
2731 # This should probably be set individually by each library.
2732 alphaieee_frag
="config/mt-alphaieee"
2736 # If --enable-target-optspace always use -Os instead of -O2 to build
2737 # the target libraries, similarly if it is not specified, use -Os
2738 # on selected platforms.
2739 ospace_frag
=/dev
/null
2740 case "${enable_target_optspace}:${target}" in
2742 ospace_frag
="config/mt-ospace"
2745 ospace_frag
="config/mt-d30v"
2747 :m32r-
* |
:d10v-
* |
:fr30-
*)
2748 ospace_frag
="config/mt-ospace"
2753 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2757 # Set with_gnu_as and with_gnu_ld as appropriate.
2759 # This is done by determining whether or not the appropriate directory
2760 # is available, and by checking whether or not specific configurations
2761 # have requested that this magic not happen.
2763 # The command line options always override the explicit settings in
2764 # configure.in, and the settings in configure.in override this magic.
2766 # If the default for a toolchain is to use GNU as and ld, and you don't
2767 # want to do that, then you should use the --without-gnu-as and
2768 # --without-gnu-ld options for the configure script.
2770 if test x
${use_gnu_as} = x
&&
2771 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2773 extra_host_args
="$extra_host_args --with-gnu-as"
2776 if test x
${use_gnu_ld} = x
&&
2777 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2779 extra_host_args
="$extra_host_args --with-gnu-ld"
2782 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2783 # can detect this case.
2785 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2787 extra_host_args
="$extra_host_args --with-newlib"
2790 # Default to using --with-stabs for certain targets.
2791 if test x
${with_stabs} = x
; then
2795 mips
*-*-* | alpha
*-*-osf*)
2797 extra_host_args
="${extra_host_args} --with-stabs"
2802 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2803 # them automatically.
2806 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2810 # Some systems (e.g., one of the i386-aix systems the gas testers are
2811 # using) don't handle "\$" correctly, so don't use it here.
2812 tooldir
='${exec_prefix}'/${target_alias}
2813 build_tooldir
=${tooldir}
2815 # Generate default definitions for YACC, M4, LEX and other programs that run
2816 # on the build machine. These are used if the Makefile can't locate these
2817 # programs in objdir.
2818 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2819 for ac_prog
in bison
2821 # Extract the first word of "$ac_prog", so it can be a program name with args.
2822 set dummy
$ac_prog; ac_word
=$2
2823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2824 echo "configure:2825: checking for $ac_word" >&5
2825 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 if test -n "$CONFIGURED_BISON"; then
2829 ac_cv_prog_CONFIGURED_BISON
="$CONFIGURED_BISON" # Let the user override the test.
2831 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2833 for ac_dir
in $ac_dummy; do
2834 test -z "$ac_dir" && ac_dir
=.
2835 if test -f $ac_dir/$ac_word; then
2836 ac_cv_prog_CONFIGURED_BISON
="$ac_prog"
2843 CONFIGURED_BISON
="$ac_cv_prog_CONFIGURED_BISON"
2844 if test -n "$CONFIGURED_BISON"; then
2845 echo "$ac_t""$CONFIGURED_BISON" 1>&6
2847 echo "$ac_t""no" 1>&6
2850 test -n "$CONFIGURED_BISON" && break
2852 test -n "$CONFIGURED_BISON" || CONFIGURED_BISON
="$MISSING bison"
2854 for ac_prog
in 'bison -y' byacc
yacc
2856 # Extract the first word of "$ac_prog", so it can be a program name with args.
2857 set dummy
$ac_prog; ac_word
=$2
2858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2859 echo "configure:2860: checking for $ac_word" >&5
2860 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 if test -n "$CONFIGURED_YACC"; then
2864 ac_cv_prog_CONFIGURED_YACC
="$CONFIGURED_YACC" # Let the user override the test.
2866 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2868 for ac_dir
in $ac_dummy; do
2869 test -z "$ac_dir" && ac_dir
=.
2870 if test -f $ac_dir/$ac_word; then
2871 ac_cv_prog_CONFIGURED_YACC
="$ac_prog"
2878 CONFIGURED_YACC
="$ac_cv_prog_CONFIGURED_YACC"
2879 if test -n "$CONFIGURED_YACC"; then
2880 echo "$ac_t""$CONFIGURED_YACC" 1>&6
2882 echo "$ac_t""no" 1>&6
2885 test -n "$CONFIGURED_YACC" && break
2887 test -n "$CONFIGURED_YACC" || CONFIGURED_YACC
="$MISSING bison -y"
2889 for ac_prog
in gm4 gnum4
m4
2891 # Extract the first word of "$ac_prog", so it can be a program name with args.
2892 set dummy
$ac_prog; ac_word
=$2
2893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2894 echo "configure:2895: checking for $ac_word" >&5
2895 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 if test -n "$CONFIGURED_M4"; then
2899 ac_cv_prog_CONFIGURED_M4
="$CONFIGURED_M4" # Let the user override the test.
2901 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2903 for ac_dir
in $ac_dummy; do
2904 test -z "$ac_dir" && ac_dir
=.
2905 if test -f $ac_dir/$ac_word; then
2906 ac_cv_prog_CONFIGURED_M4
="$ac_prog"
2913 CONFIGURED_M4
="$ac_cv_prog_CONFIGURED_M4"
2914 if test -n "$CONFIGURED_M4"; then
2915 echo "$ac_t""$CONFIGURED_M4" 1>&6
2917 echo "$ac_t""no" 1>&6
2920 test -n "$CONFIGURED_M4" && break
2922 test -n "$CONFIGURED_M4" || CONFIGURED_M4
="$MISSING m4"
2926 # Extract the first word of "$ac_prog", so it can be a program name with args.
2927 set dummy
$ac_prog; ac_word
=$2
2928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2929 echo "configure:2930: checking for $ac_word" >&5
2930 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2933 if test -n "$CONFIGURED_FLEX"; then
2934 ac_cv_prog_CONFIGURED_FLEX
="$CONFIGURED_FLEX" # Let the user override the test.
2936 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2938 for ac_dir
in $ac_dummy; do
2939 test -z "$ac_dir" && ac_dir
=.
2940 if test -f $ac_dir/$ac_word; then
2941 ac_cv_prog_CONFIGURED_FLEX
="$ac_prog"
2948 CONFIGURED_FLEX
="$ac_cv_prog_CONFIGURED_FLEX"
2949 if test -n "$CONFIGURED_FLEX"; then
2950 echo "$ac_t""$CONFIGURED_FLEX" 1>&6
2952 echo "$ac_t""no" 1>&6
2955 test -n "$CONFIGURED_FLEX" && break
2957 test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX
="$MISSING flex"
2959 for ac_prog
in flex
lex
2961 # Extract the first word of "$ac_prog", so it can be a program name with args.
2962 set dummy
$ac_prog; ac_word
=$2
2963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2964 echo "configure:2965: checking for $ac_word" >&5
2965 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
2966 echo $ac_n "(cached) $ac_c" 1>&6
2968 if test -n "$CONFIGURED_LEX"; then
2969 ac_cv_prog_CONFIGURED_LEX
="$CONFIGURED_LEX" # Let the user override the test.
2971 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2973 for ac_dir
in $ac_dummy; do
2974 test -z "$ac_dir" && ac_dir
=.
2975 if test -f $ac_dir/$ac_word; then
2976 ac_cv_prog_CONFIGURED_LEX
="$ac_prog"
2983 CONFIGURED_LEX
="$ac_cv_prog_CONFIGURED_LEX"
2984 if test -n "$CONFIGURED_LEX"; then
2985 echo "$ac_t""$CONFIGURED_LEX" 1>&6
2987 echo "$ac_t""no" 1>&6
2990 test -n "$CONFIGURED_LEX" && break
2992 test -n "$CONFIGURED_LEX" || CONFIGURED_LEX
="$MISSING flex"
2994 for ac_prog
in makeinfo
2996 # Extract the first word of "$ac_prog", so it can be a program name with args.
2997 set dummy
$ac_prog; ac_word
=$2
2998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2999 echo "configure:3000: checking for $ac_word" >&5
3000 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
3001 echo $ac_n "(cached) $ac_c" 1>&6
3003 if test -n "$CONFIGURED_MAKEINFO"; then
3004 ac_cv_prog_CONFIGURED_MAKEINFO
="$CONFIGURED_MAKEINFO" # Let the user override the test.
3006 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3008 for ac_dir
in $ac_dummy; do
3009 test -z "$ac_dir" && ac_dir
=.
3010 if test -f $ac_dir/$ac_word; then
3011 ac_cv_prog_CONFIGURED_MAKEINFO
="$ac_prog"
3018 CONFIGURED_MAKEINFO
="$ac_cv_prog_CONFIGURED_MAKEINFO"
3019 if test -n "$CONFIGURED_MAKEINFO"; then
3020 echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6
3022 echo "$ac_t""no" 1>&6
3025 test -n "$CONFIGURED_MAKEINFO" && break
3027 test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO
="$MISSING makeinfo"
3030 # Create a .gdbinit file which runs the one in srcdir
3031 # and tells GDB to look there for source files.
3033 if test -r ${srcdir}/.gdbinit
; then
3036 *) cat > .
/.gdbinit
<<EOF
3040 source ${srcdir}/.gdbinit
3046 # Make sure that the compiler is able to generate an executable. If it
3047 # can't, we are probably in trouble. We don't care whether we can run the
3048 # executable--we might be using a cross compiler--we only care whether it
3049 # can be created. At this point the main configure script has set CC.
3051 echo "int main () { return 0; }" > conftest.c
3052 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
3053 if test $?
= 0 ; then
3054 if test -s conftest ||
test -s conftest.exe
; then
3060 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
3061 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
3068 # The Solaris /usr/ucb/cc compiler does not appear to work.
3070 sparc-sun-solaris2
*)
3071 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
3072 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
3074 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
3075 if test -d /opt
/cygnus
/bin
; then
3076 if test "$could_use" = "" ; then
3077 could_use
="/opt/cygnus/bin"
3079 could_use
="$could_use or /opt/cygnus/bin"
3082 if test "$could_use" = "" ; then
3083 echo "Warning: compilation may fail because you're using"
3084 echo "/usr/ucb/cc. You should change your PATH or CC "
3085 echo "variable and rerun configure."
3087 echo "Warning: compilation may fail because you're using"
3088 echo "/usr/ucb/cc, when you should use the C compiler from"
3089 echo "$could_use. You should change your"
3090 echo "PATH or CC variable and rerun configure."
3097 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
3098 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
3099 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
3102 # Record target_configdirs and the configure arguments for target and
3103 # build configuration in Makefile.
3104 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3105 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3107 # Determine whether gdb needs tk/tcl or not.
3108 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3109 # and in that case we want gdb to be built without tk. Ugh!
3110 # In fact I believe gdb is the *only* package directly dependent on tk,
3111 # so we should be able to put the 'maybe's in unconditionally and
3112 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3113 # 100% sure that that's safe though.
3115 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
3116 case "$enable_gdbtk" in
3120 GDB_TK
="${gdb_tk}" ;;
3122 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3123 # distro. Eventually someone will fix this and move Insight, nee
3124 # gdbtk to a separate directory.
3125 if test -d ${srcdir}/gdb
/gdbtk
; then
3133 # Strip out unwanted targets.
3135 # While at that, we remove Makefiles if we were started for recursive
3136 # configuration, so that the top-level Makefile reconfigures them,
3137 # like we used to do when configure itself was recursive.
3139 # Loop over modules. $extrasub must be used with care, limiting as
3140 # much as possible the usage of range addresses. That's because autoconf
3141 # splits the sed script to overcome limits in the number of commands,
3142 # and relying on carefully-timed sed passes may turn out to be very hard
3143 # to maintain later. In this particular case, you just have to be careful
3144 # not to nest @if/@endif pairs, because configure will not warn you at all.
3146 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3147 if test "${enable_bootstrap+set}" = set; then
3148 enableval
="$enable_bootstrap"
3151 enable_bootstrap
=default
3155 # Issue errors and warnings for invalid/strange bootstrap combinations.
3156 case "$configdirs" in
3157 *gcc
*) have_compiler
=yes ;;
3158 *) have_compiler
=no
;;
3161 case "$have_compiler:$host:$target:$enable_bootstrap" in
3164 # Default behavior. (We'll) enable bootstrap if we have a compiler
3165 # and we are in a native configuration.
3166 yes:$build:$build:default
)
3167 # This will become 'yes'
3168 enable_bootstrap
=no
;;
3171 enable_bootstrap
=no
;;
3173 # We have a compiler and we are in a native configuration, bootstrap is ok
3174 yes:$build:$build:yes |
yes:$build:$build:lean
)
3177 # Other configurations, but we have a compiler. Assume the user knows
3179 yes:*:*:yes |
yes:*:*:lean
)
3180 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3183 # No compiler: if they passed --enable-bootstrap explicitly, fail
3184 no
:*:*:yes | no
:*:*:lean
)
3185 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3187 # Fail if wrong command line
3189 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3193 # Adjust the toplevel makefile according to whether bootstrap was selected.
3194 case "$enable_bootstrap" in
3197 bootstrap_suffix
=bootstrap
;;
3200 bootstrap_suffix
=bootstrap
;;
3202 bootstrap_suffix
=no-bootstrap
;;
3206 for module
in ${build_configdirs} ; do
3207 if test -z "${no_recursion}" \
3208 && test -f ${build_subdir}/${module}/Makefile
; then
3209 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3210 rm -f ${build_subdir}/${module}/Makefile
3213 /^@if build-$module\$/d
3214 /^@endif build-$module\$/d
3215 /^@if build-$module-$bootstrap_suffix\$/d
3216 /^@endif build-$module-$bootstrap_suffix\$/d"
3218 for module
in ${configdirs} ; do
3219 if test -z "${no_recursion}" \
3220 && test -f ${module}/Makefile
; then
3221 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3222 rm -f ${module}/Makefile
3226 /^@endif $module\$/d
3227 /^@if $module-$bootstrap_suffix\$/d
3228 /^@endif $module-$bootstrap_suffix\$/d"
3230 for module
in ${target_configdirs} ; do
3231 if test -z "${no_recursion}" \
3232 && test -f ${target_subdir}/${module}/Makefile
; then
3233 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3234 rm -f ${target_subdir}/${module}/Makefile
3237 /^@if target-$module\$/d
3238 /^@endif target-$module\$/d
3239 /^@if target-$module-$bootstrap_suffix\$/d
3240 /^@endif target-$module-$bootstrap_suffix\$/d"
3244 /^@if /,/^@endif /d"
3246 # Create the serialization dependencies. This uses a temporary file.
3248 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3249 if test "${enable_serial_configure+set}" = set; then
3250 enableval
="$enable_serial_configure"
3255 case ${enable_serial_configure} in
3257 enable_serial_build_configure
=yes
3258 enable_serial_host_configure
=yes
3259 enable_serial_target_configure
=yes
3263 # These force 'configure's to be done one at a time, to avoid problems
3264 # with contention over a shared config.cache.
3266 echo '# serdep.tmp' > serdep.tmp
3268 test "x${enable_serial_build_configure}" = xyes
&&
3269 for item
in ${build_configdirs} ; do
3272 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3277 test "x${enable_serial_host_configure}" = xyes
&&
3278 for item
in ${configdirs} ; do
3281 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3286 test "x${enable_serial_target_configure}" = xyes
&&
3287 for item
in ${target_configdirs} ; do
3290 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3294 serialization_dependencies
=serdep.tmp
3297 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3298 # target and nonopt. These are the ones we might not want to pass
3299 # down to subconfigures. Also strip program-prefix, program-suffix,
3300 # and program-transform-name, so that we can pass down a consistent
3301 # program-transform-name. If autoconf has put single quotes around
3302 # any of these arguments (because they contain shell metacharacters)
3303 # then this will fail; in practice this only happens for
3304 # --program-transform-name, so be sure to override --program-transform-name
3305 # at the end of the argument list.
3306 # These will be expanded by make, so quote '$'.
3307 cat <<\EOF_SED
> conftestsed
3309 s
/ --c[a-z-
]*[= ][^
]*//g
3310 s
/ --sr[a-z-
]*[= ][^
]*//g
3311 s
/ --ho[a-z-
]*[= ][^
]*//g
3312 s
/ --bu[a-z-
]*[= ][^
]*//g
3313 s
/ --t[a-z-
]*[= ][^
]*//g
3314 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3315 s
/ -cache-file[= ][^
]*//g
3316 s
/ -srcdir[= ][^
]*//g
3317 s
/ -host[= ][^
]*//g
3318 s
/ -build[= ][^
]*//g
3319 s
/ -target[= ][^
]*//g
3320 s
/ -program-prefix[= ][^
]*//g
3321 s
/ -program-suffix[= ][^
]*//g
3322 s
/ -program-transform-name[= ][^
]*//g
3327 sed -f conftestsed <<EOF_SED > conftestsed.out
3328 ${ac_configure_args}
3330 baseargs=`cat conftestsed.out`
3331 rm -f conftestsed conftestsed.out
3333 # Add in --program-transform-name, after --program-prefix and
3334 # --program-suffix have been applied to it. Autoconf has already
3335 # doubled dollar signs and backslashes in program_transform_name; we want
3336 # the backslashes un-doubled, and then the entire thing wrapped in single
3337 # quotes, because this will be expanded first by make and then by the shell.
3338 # Also, because we want to override the logic in subdir configure scripts to
3339 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3340 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3341 ${program_transform_name}
3343 gcc_transform_name=`cat conftestsed.out`
3344 rm -f conftestsed.out
3345 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3347 # For the build-side libraries, we just need to pretend we're native
,
3348 # and not use the same cache file. Multilibs are neither needed nor
3350 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3352 # For host modules, accept cache file option, or specification as blank.
3353 case "${cache_file}" in
3355 cache_file_option
="" ;;
3356 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3357 cache_file_option
="--cache-file=${cache_file}" ;;
3359 cache_file_option
="--cache-file=../${cache_file}" ;;
3362 # Host dirs don't like to share a cache file either, horribly enough.
3363 # This seems to be due to autoconf 2.5x stupidity.
3364 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3366 target_configargs
=${baseargs}
3368 # Passing a --with-cross-host argument lets the target libraries know
3369 # whether they are being built with a cross-compiler or being built
3370 # native. However, it would be better to use other mechanisms to make the
3371 # sorts of decisions they want to make on this basis. Please consider
3372 # this option to be deprecated. FIXME.
3373 if test x
${is_cross_compiler} = xyes
; then
3374 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3377 # Default to --enable-multilib.
3378 if test x
${enable_multilib} = x
; then
3379 target_configargs
="--enable-multilib ${target_configargs}"
3382 # Pass --with-newlib if appropriate. Note that target_configdirs has
3383 # changed from the earlier setting of with_newlib.
3384 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3385 target_configargs
="--with-newlib ${target_configargs}"
3388 # Different target subdirs use different values of certain variables
3389 # (notably CXX). Worse, multilibs use *lots* of different values.
3390 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3391 # it doesn't automatically accept command-line overrides of them.
3392 # This means it's not safe for target subdirs to share a cache file,
3393 # which is disgusting, but there you have it. Hopefully this can be
3394 # fixed in future. It's still worthwhile to use a cache file for each
3395 # directory. I think.
3397 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3398 # We need to pass --target, as newer autoconf's requires consistency
3399 # for target_alias and gcc doesn't manage it consistently.
3400 target_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3403 case " $target_configdirs " in
3405 case " $target_configargs " in
3406 *" --with-newlib "*)
3409 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' ;;
3412 # If we're not building GCC, don't discard standard headers.
3413 if test -d ${srcdir}/gcc
; then
3414 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3416 if test "${build}" != "${host}"; then
3417 # On Canadian crosses, CC_FOR_TARGET will have already been set
3418 # by `configure', so we won't have an opportunity to add -Bgcc/
3419 # to it. This is right: we don't want to search that directory
3420 # for binaries, but we want the header files in there, so add
3422 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3424 # Someone might think of using the pre-installed headers on
3425 # Canadian crosses, in case the installed compiler is not fully
3426 # compatible with the compiler being built. In this case, it
3427 # would be better to flag an error than risking having
3428 # incompatible object files being constructed. We can't
3429 # guarantee that an error will be flagged, but let's hope the
3430 # compiler will do it, when presented with incompatible header
3435 case "${target}-${is_cross_compiler}" in
3436 i
[3456789]86-*-linux*-no)
3437 # Here host == target, so we don't need to build gcc,
3438 # so we don't want to discard standard headers.
3439 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3442 # If we're building newlib, use its generic headers last, but search
3443 # for any libc-related directories first (so make it the last -B
3445 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3453 # Allow the user to override the flags for
3454 # our build compiler if desired.
3455 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3457 # On Canadian crosses, we'll be searching the right directories for
3458 # the previously-installed cross compiler, so don't bother to add
3459 # flags for directories within the install tree of the compiler
3460 # being built; programs in there won't even run.
3461 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3462 # Search for pre-installed headers if nothing else fits.
3463 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3466 if test "x
${use_gnu_ld}" = x &&
3467 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3468 # Arrange for us to find uninstalled linker scripts.
3469 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3472 # Makefile fragments.
3473 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3475 eval fragval=\$$frag
3476 if test $fragval != /dev/null; then
3477 eval $frag=${srcdir}/$fragval
3485 # Miscellanea: directories, flags, etc.
3493 # Build module lists & subconfigure args.
3497 # Host module lists & subconfigure args.
3501 # Target module lists & subconfigure args.
3511 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3512 ncn_target_tool_prefix=
3513 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3515 for ncn_progname in ar; do
3516 if test -n "$ncn_tool_prefix"; then
3517 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3518 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3519 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3520 echo "configure
:3521: checking
for $ac_word" >&5
3521 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3522 echo $ac_n "(cached
) $ac_c" 1>&6
3524 if test -n "$AR"; then
3525 ac_cv_prog_AR="$AR" # Let the user override the test.
3527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3529 for ac_dir in $ac_dummy; do
3530 test -z "$ac_dir" && ac_dir=.
3531 if test -f $ac_dir/$ac_word; then
3532 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3540 if test -n "$AR"; then
3541 echo "$ac_t""$AR" 1>&6
3543 echo "$ac_t""no
" 1>&6
3547 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3549 set dummy ${ncn_progname}; ac_word=$2
3550 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3551 echo "configure
:3552: checking
for $ac_word" >&5
3552 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3553 echo $ac_n "(cached
) $ac_c" 1>&6
3555 if test -n "$AR"; then
3556 ac_cv_prog_AR="$AR" # Let the user override the test.
3558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3560 for ac_dir in $ac_dummy; do
3561 test -z "$ac_dir" && ac_dir=.
3562 if test -f $ac_dir/$ac_word; then
3563 ac_cv_prog_AR="${ncn_progname}"
3571 if test -n "$AR"; then
3572 echo "$ac_t""$AR" 1>&6
3574 echo "$ac_t""no
" 1>&6
3578 test -n "$ac_cv_prog_AR" && break
3581 if test -z "$ac_cv_prog_AR" ; then
3583 if test $build = $host ; then
3586 AR="${ncn_tool_prefix}$2"
3590 for ncn_progname in as; do
3591 if test -n "$ncn_tool_prefix"; then
3592 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3593 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3594 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3595 echo "configure
:3596: checking
for $ac_word" >&5
3596 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3597 echo $ac_n "(cached
) $ac_c" 1>&6
3599 if test -n "$AS"; then
3600 ac_cv_prog_AS="$AS" # Let the user override the test.
3602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3604 for ac_dir in $ac_dummy; do
3605 test -z "$ac_dir" && ac_dir=.
3606 if test -f $ac_dir/$ac_word; then
3607 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3615 if test -n "$AS"; then
3616 echo "$ac_t""$AS" 1>&6
3618 echo "$ac_t""no
" 1>&6
3622 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3624 set dummy ${ncn_progname}; ac_word=$2
3625 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3626 echo "configure
:3627: checking
for $ac_word" >&5
3627 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3628 echo $ac_n "(cached
) $ac_c" 1>&6
3630 if test -n "$AS"; then
3631 ac_cv_prog_AS="$AS" # Let the user override the test.
3633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3635 for ac_dir in $ac_dummy; do
3636 test -z "$ac_dir" && ac_dir=.
3637 if test -f $ac_dir/$ac_word; then
3638 ac_cv_prog_AS="${ncn_progname}"
3646 if test -n "$AS"; then
3647 echo "$ac_t""$AS" 1>&6
3649 echo "$ac_t""no
" 1>&6
3653 test -n "$ac_cv_prog_AS" && break
3656 if test -z "$ac_cv_prog_AS" ; then
3658 if test $build = $host ; then
3661 AS="${ncn_tool_prefix}$2"
3665 for ncn_progname in dlltool; do
3666 if test -n "$ncn_tool_prefix"; then
3667 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3668 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3669 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3670 echo "configure
:3671: checking
for $ac_word" >&5
3671 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3672 echo $ac_n "(cached
) $ac_c" 1>&6
3674 if test -n "$DLLTOOL"; then
3675 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3679 for ac_dir in $ac_dummy; do
3680 test -z "$ac_dir" && ac_dir=.
3681 if test -f $ac_dir/$ac_word; then
3682 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3689 DLLTOOL="$ac_cv_prog_DLLTOOL"
3690 if test -n "$DLLTOOL"; then
3691 echo "$ac_t""$DLLTOOL" 1>&6
3693 echo "$ac_t""no
" 1>&6
3697 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3699 set dummy ${ncn_progname}; ac_word=$2
3700 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3701 echo "configure
:3702: checking
for $ac_word" >&5
3702 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3703 echo $ac_n "(cached
) $ac_c" 1>&6
3705 if test -n "$DLLTOOL"; then
3706 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3710 for ac_dir in $ac_dummy; do
3711 test -z "$ac_dir" && ac_dir=.
3712 if test -f $ac_dir/$ac_word; then
3713 ac_cv_prog_DLLTOOL="${ncn_progname}"
3720 DLLTOOL="$ac_cv_prog_DLLTOOL"
3721 if test -n "$DLLTOOL"; then
3722 echo "$ac_t""$DLLTOOL" 1>&6
3724 echo "$ac_t""no
" 1>&6
3728 test -n "$ac_cv_prog_DLLTOOL" && break
3731 if test -z "$ac_cv_prog_DLLTOOL" ; then
3733 if test $build = $host ; then
3736 DLLTOOL="${ncn_tool_prefix}$2"
3740 for ncn_progname in ld; do
3741 if test -n "$ncn_tool_prefix"; then
3742 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3743 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3744 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3745 echo "configure
:3746: checking
for $ac_word" >&5
3746 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3747 echo $ac_n "(cached
) $ac_c" 1>&6
3749 if test -n "$LD"; then
3750 ac_cv_prog_LD="$LD" # 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_LD="${ncn_tool_prefix}${ncn_progname}"
3765 if test -n "$LD"; then
3766 echo "$ac_t""$LD" 1>&6
3768 echo "$ac_t""no
" 1>&6
3772 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
3773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3774 set dummy ${ncn_progname}; ac_word=$2
3775 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3776 echo "configure
:3777: checking
for $ac_word" >&5
3777 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3778 echo $ac_n "(cached
) $ac_c" 1>&6
3780 if test -n "$LD"; then
3781 ac_cv_prog_LD="$LD" # Let the user override the test.
3783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3785 for ac_dir in $ac_dummy; do
3786 test -z "$ac_dir" && ac_dir=.
3787 if test -f $ac_dir/$ac_word; then
3788 ac_cv_prog_LD="${ncn_progname}"
3796 if test -n "$LD"; then
3797 echo "$ac_t""$LD" 1>&6
3799 echo "$ac_t""no
" 1>&6
3803 test -n "$ac_cv_prog_LD" && break
3806 if test -z "$ac_cv_prog_LD" ; then
3808 if test $build = $host ; then
3811 LD="${ncn_tool_prefix}$2"
3815 for ncn_progname in nm; do
3816 if test -n "$ncn_tool_prefix"; then
3817 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3818 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3819 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3820 echo "configure
:3821: checking
for $ac_word" >&5
3821 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3822 echo $ac_n "(cached
) $ac_c" 1>&6
3824 if test -n "$NM"; then
3825 ac_cv_prog_NM="$NM" # Let the user override the test.
3827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3829 for ac_dir in $ac_dummy; do
3830 test -z "$ac_dir" && ac_dir=.
3831 if test -f $ac_dir/$ac_word; then
3832 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
3840 if test -n "$NM"; then
3841 echo "$ac_t""$NM" 1>&6
3843 echo "$ac_t""no
" 1>&6
3847 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
3848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3849 set dummy ${ncn_progname}; ac_word=$2
3850 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3851 echo "configure
:3852: checking
for $ac_word" >&5
3852 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3853 echo $ac_n "(cached
) $ac_c" 1>&6
3855 if test -n "$NM"; then
3856 ac_cv_prog_NM="$NM" # Let the user override the test.
3858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3860 for ac_dir in $ac_dummy; do
3861 test -z "$ac_dir" && ac_dir=.
3862 if test -f $ac_dir/$ac_word; then
3863 ac_cv_prog_NM="${ncn_progname}"
3871 if test -n "$NM"; then
3872 echo "$ac_t""$NM" 1>&6
3874 echo "$ac_t""no
" 1>&6
3878 test -n "$ac_cv_prog_NM" && break
3881 if test -z "$ac_cv_prog_NM" ; then
3883 if test $build = $host ; then
3886 NM="${ncn_tool_prefix}$2"
3890 for ncn_progname in ranlib; do
3891 if test -n "$ncn_tool_prefix"; then
3892 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3893 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3894 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3895 echo "configure
:3896: checking
for $ac_word" >&5
3896 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3897 echo $ac_n "(cached
) $ac_c" 1>&6
3899 if test -n "$RANLIB"; then
3900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3904 for ac_dir in $ac_dummy; do
3905 test -z "$ac_dir" && ac_dir=.
3906 if test -f $ac_dir/$ac_word; then
3907 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
3914 RANLIB="$ac_cv_prog_RANLIB"
3915 if test -n "$RANLIB"; then
3916 echo "$ac_t""$RANLIB" 1>&6
3918 echo "$ac_t""no
" 1>&6
3922 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
3923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3924 set dummy ${ncn_progname}; ac_word=$2
3925 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3926 echo "configure
:3927: checking
for $ac_word" >&5
3927 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3928 echo $ac_n "(cached
) $ac_c" 1>&6
3930 if test -n "$RANLIB"; then
3931 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3935 for ac_dir in $ac_dummy; do
3936 test -z "$ac_dir" && ac_dir=.
3937 if test -f $ac_dir/$ac_word; then
3938 ac_cv_prog_RANLIB="${ncn_progname}"
3945 RANLIB="$ac_cv_prog_RANLIB"
3946 if test -n "$RANLIB"; then
3947 echo "$ac_t""$RANLIB" 1>&6
3949 echo "$ac_t""no
" 1>&6
3953 test -n "$ac_cv_prog_RANLIB" && break
3956 if test -z "$ac_cv_prog_RANLIB" ; then
3960 for ncn_progname in windres; do
3961 if test -n "$ncn_tool_prefix"; then
3962 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3963 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3964 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3965 echo "configure
:3966: checking
for $ac_word" >&5
3966 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3967 echo $ac_n "(cached
) $ac_c" 1>&6
3969 if test -n "$WINDRES"; then
3970 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3974 for ac_dir in $ac_dummy; do
3975 test -z "$ac_dir" && ac_dir=.
3976 if test -f $ac_dir/$ac_word; then
3977 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
3984 WINDRES="$ac_cv_prog_WINDRES"
3985 if test -n "$WINDRES"; then
3986 echo "$ac_t""$WINDRES" 1>&6
3988 echo "$ac_t""no
" 1>&6
3992 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
3993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3994 set dummy ${ncn_progname}; ac_word=$2
3995 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3996 echo "configure
:3997: checking
for $ac_word" >&5
3997 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3998 echo $ac_n "(cached
) $ac_c" 1>&6
4000 if test -n "$WINDRES"; then
4001 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4005 for ac_dir in $ac_dummy; do
4006 test -z "$ac_dir" && ac_dir=.
4007 if test -f $ac_dir/$ac_word; then
4008 ac_cv_prog_WINDRES="${ncn_progname}"
4015 WINDRES="$ac_cv_prog_WINDRES"
4016 if test -n "$WINDRES"; then
4017 echo "$ac_t""$WINDRES" 1>&6
4019 echo "$ac_t""no
" 1>&6
4023 test -n "$ac_cv_prog_WINDRES" && break
4026 if test -z "$ac_cv_prog_WINDRES" ; then
4028 if test $build = $host ; then
4031 WINDRES="${ncn_tool_prefix}$2"
4035 for ncn_progname in objcopy; do
4036 if test -n "$ncn_tool_prefix"; then
4037 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4038 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4039 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4040 echo "configure
:4041: checking
for $ac_word" >&5
4041 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4042 echo $ac_n "(cached
) $ac_c" 1>&6
4044 if test -n "$OBJCOPY"; then
4045 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4049 for ac_dir in $ac_dummy; do
4050 test -z "$ac_dir" && ac_dir=.
4051 if test -f $ac_dir/$ac_word; then
4052 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4059 OBJCOPY="$ac_cv_prog_OBJCOPY"
4060 if test -n "$OBJCOPY"; then
4061 echo "$ac_t""$OBJCOPY" 1>&6
4063 echo "$ac_t""no
" 1>&6
4067 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4069 set dummy ${ncn_progname}; ac_word=$2
4070 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4071 echo "configure
:4072: checking
for $ac_word" >&5
4072 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4073 echo $ac_n "(cached
) $ac_c" 1>&6
4075 if test -n "$OBJCOPY"; then
4076 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4080 for ac_dir in $ac_dummy; do
4081 test -z "$ac_dir" && ac_dir=.
4082 if test -f $ac_dir/$ac_word; then
4083 ac_cv_prog_OBJCOPY="${ncn_progname}"
4090 OBJCOPY="$ac_cv_prog_OBJCOPY"
4091 if test -n "$OBJCOPY"; then
4092 echo "$ac_t""$OBJCOPY" 1>&6
4094 echo "$ac_t""no
" 1>&6
4098 test -n "$ac_cv_prog_OBJCOPY" && break
4101 if test -z "$ac_cv_prog_OBJCOPY" ; then
4103 if test $build = $host ; then
4106 OBJCOPY="${ncn_tool_prefix}$2"
4110 for ncn_progname in objdump; do
4111 if test -n "$ncn_tool_prefix"; then
4112 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4113 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4114 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4115 echo "configure
:4116: checking
for $ac_word" >&5
4116 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4117 echo $ac_n "(cached
) $ac_c" 1>&6
4119 if test -n "$OBJDUMP"; then
4120 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4124 for ac_dir in $ac_dummy; do
4125 test -z "$ac_dir" && ac_dir=.
4126 if test -f $ac_dir/$ac_word; then
4127 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4134 OBJDUMP="$ac_cv_prog_OBJDUMP"
4135 if test -n "$OBJDUMP"; then
4136 echo "$ac_t""$OBJDUMP" 1>&6
4138 echo "$ac_t""no
" 1>&6
4142 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4144 set dummy ${ncn_progname}; ac_word=$2
4145 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4146 echo "configure
:4147: checking
for $ac_word" >&5
4147 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4148 echo $ac_n "(cached
) $ac_c" 1>&6
4150 if test -n "$OBJDUMP"; then
4151 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4155 for ac_dir in $ac_dummy; do
4156 test -z "$ac_dir" && ac_dir=.
4157 if test -f $ac_dir/$ac_word; then
4158 ac_cv_prog_OBJDUMP="${ncn_progname}"
4165 OBJDUMP="$ac_cv_prog_OBJDUMP"
4166 if test -n "$OBJDUMP"; then
4167 echo "$ac_t""$OBJDUMP" 1>&6
4169 echo "$ac_t""no
" 1>&6
4173 test -n "$ac_cv_prog_OBJDUMP" && break
4176 if test -z "$ac_cv_prog_OBJDUMP" ; then
4178 if test $build = $host ; then
4181 OBJDUMP="${ncn_tool_prefix}$2"
4191 # Target tools. Do the tests using the names they may have passed in
4192 # the environment, then move it to CONFIGURED_*_FOR_TARGET.
4193 for ncn_progname in ar; do
4194 if test -n "$ncn_target_tool_prefix"; then
4195 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4196 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4197 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4198 echo "configure
:4199: checking
for $ac_word" >&5
4199 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4200 echo $ac_n "(cached
) $ac_c" 1>&6
4202 if test -n "$AR_FOR_TARGET"; then
4203 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4207 for ac_dir in $ac_dummy; do
4208 test -z "$ac_dir" && ac_dir=.
4209 if test -f $ac_dir/$ac_word; then
4210 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4217 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4218 if test -n "$AR_FOR_TARGET"; then
4219 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4221 echo "$ac_t""no
" 1>&6
4225 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
4226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4227 set dummy ${ncn_progname}; ac_word=$2
4228 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4229 echo "configure
:4230: checking
for $ac_word" >&5
4230 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
4231 echo $ac_n "(cached
) $ac_c" 1>&6
4233 if test -n "$AR_FOR_TARGET"; then
4234 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4238 for ac_dir in $ac_dummy; do
4239 test -z "$ac_dir" && ac_dir=.
4240 if test -f $ac_dir/$ac_word; then
4241 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
4248 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
4249 if test -n "$AR_FOR_TARGET"; then
4250 echo "$ac_t""$AR_FOR_TARGET" 1>&6
4252 echo "$ac_t""no
" 1>&6
4256 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
4259 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
4261 if test $build = $target ; then
4264 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
4268 for ncn_progname in as; do
4269 if test -n "$ncn_target_tool_prefix"; then
4270 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4271 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4272 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4273 echo "configure
:4274: checking
for $ac_word" >&5
4274 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4275 echo $ac_n "(cached
) $ac_c" 1>&6
4277 if test -n "$AS_FOR_TARGET"; then
4278 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4282 for ac_dir in $ac_dummy; do
4283 test -z "$ac_dir" && ac_dir=.
4284 if test -f $ac_dir/$ac_word; then
4285 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4292 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4293 if test -n "$AS_FOR_TARGET"; then
4294 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4296 echo "$ac_t""no
" 1>&6
4300 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
4301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4302 set dummy ${ncn_progname}; ac_word=$2
4303 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4304 echo "configure
:4305: checking
for $ac_word" >&5
4305 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
4306 echo $ac_n "(cached
) $ac_c" 1>&6
4308 if test -n "$AS_FOR_TARGET"; then
4309 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4313 for ac_dir in $ac_dummy; do
4314 test -z "$ac_dir" && ac_dir=.
4315 if test -f $ac_dir/$ac_word; then
4316 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
4323 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
4324 if test -n "$AS_FOR_TARGET"; then
4325 echo "$ac_t""$AS_FOR_TARGET" 1>&6
4327 echo "$ac_t""no
" 1>&6
4331 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
4334 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
4336 if test $build = $target ; then
4339 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4343 for ncn_progname in cc gcc; do
4344 if test -n "$ncn_target_tool_prefix"; then
4345 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4346 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4347 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4348 echo "configure
:4349: checking
for $ac_word" >&5
4349 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4350 echo $ac_n "(cached
) $ac_c" 1>&6
4352 if test -n "$CC_FOR_TARGET"; then
4353 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4357 for ac_dir in $ac_dummy; do
4358 test -z "$ac_dir" && ac_dir=.
4359 if test -f $ac_dir/$ac_word; then
4360 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4367 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4368 if test -n "$CC_FOR_TARGET"; then
4369 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4371 echo "$ac_t""no
" 1>&6
4375 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4377 set dummy ${ncn_progname}; ac_word=$2
4378 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4379 echo "configure
:4380: checking
for $ac_word" >&5
4380 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4381 echo $ac_n "(cached
) $ac_c" 1>&6
4383 if test -n "$CC_FOR_TARGET"; then
4384 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4388 for ac_dir in $ac_dummy; do
4389 test -z "$ac_dir" && ac_dir=.
4390 if test -f $ac_dir/$ac_word; then
4391 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4398 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4399 if test -n "$CC_FOR_TARGET"; then
4400 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4402 echo "$ac_t""no
" 1>&6
4406 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4409 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4411 if test $build = $target ; then
4414 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4418 for ncn_progname in c++ g++ cxx gxx; do
4419 if test -n "$ncn_target_tool_prefix"; then
4420 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4421 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4422 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4423 echo "configure
:4424: checking
for $ac_word" >&5
4424 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4425 echo $ac_n "(cached
) $ac_c" 1>&6
4427 if test -n "$CXX_FOR_TARGET"; then
4428 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4432 for ac_dir in $ac_dummy; do
4433 test -z "$ac_dir" && ac_dir=.
4434 if test -f $ac_dir/$ac_word; then
4435 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4442 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4443 if test -n "$CXX_FOR_TARGET"; then
4444 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4446 echo "$ac_t""no
" 1>&6
4450 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4452 set dummy ${ncn_progname}; ac_word=$2
4453 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4454 echo "configure
:4455: checking
for $ac_word" >&5
4455 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4456 echo $ac_n "(cached
) $ac_c" 1>&6
4458 if test -n "$CXX_FOR_TARGET"; then
4459 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4463 for ac_dir in $ac_dummy; do
4464 test -z "$ac_dir" && ac_dir=.
4465 if test -f $ac_dir/$ac_word; then
4466 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4473 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4474 if test -n "$CXX_FOR_TARGET"; then
4475 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4477 echo "$ac_t""no
" 1>&6
4481 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4484 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4485 set dummy c++ g++ cxx gxx
4486 if test $build = $target ; then
4489 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4493 for ncn_progname in dlltool; do
4494 if test -n "$ncn_target_tool_prefix"; then
4495 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4496 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4497 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4498 echo "configure
:4499: checking
for $ac_word" >&5
4499 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4500 echo $ac_n "(cached
) $ac_c" 1>&6
4502 if test -n "$DLLTOOL_FOR_TARGET"; then
4503 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4507 for ac_dir in $ac_dummy; do
4508 test -z "$ac_dir" && ac_dir=.
4509 if test -f $ac_dir/$ac_word; then
4510 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4517 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4518 if test -n "$DLLTOOL_FOR_TARGET"; then
4519 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4521 echo "$ac_t""no
" 1>&6
4525 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
4526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4527 set dummy ${ncn_progname}; ac_word=$2
4528 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4529 echo "configure
:4530: checking
for $ac_word" >&5
4530 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4531 echo $ac_n "(cached
) $ac_c" 1>&6
4533 if test -n "$DLLTOOL_FOR_TARGET"; then
4534 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4538 for ac_dir in $ac_dummy; do
4539 test -z "$ac_dir" && ac_dir=.
4540 if test -f $ac_dir/$ac_word; then
4541 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
4548 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
4549 if test -n "$DLLTOOL_FOR_TARGET"; then
4550 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
4552 echo "$ac_t""no
" 1>&6
4556 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
4559 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
4561 if test $build = $target ; then
4562 DLLTOOL_FOR_TARGET="$2"
4564 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
4568 for ncn_progname in gcc; do
4569 if test -n "$ncn_target_tool_prefix"; then
4570 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4571 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4572 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4573 echo "configure
:4574: checking
for $ac_word" >&5
4574 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4575 echo $ac_n "(cached
) $ac_c" 1>&6
4577 if test -n "$GCC_FOR_TARGET"; then
4578 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4582 for ac_dir in $ac_dummy; do
4583 test -z "$ac_dir" && ac_dir=.
4584 if test -f $ac_dir/$ac_word; then
4585 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4592 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4593 if test -n "$GCC_FOR_TARGET"; then
4594 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4596 echo "$ac_t""no
" 1>&6
4600 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4602 set dummy ${ncn_progname}; ac_word=$2
4603 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4604 echo "configure
:4605: checking
for $ac_word" >&5
4605 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4606 echo $ac_n "(cached
) $ac_c" 1>&6
4608 if test -n "$GCC_FOR_TARGET"; then
4609 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4613 for ac_dir in $ac_dummy; do
4614 test -z "$ac_dir" && ac_dir=.
4615 if test -f $ac_dir/$ac_word; then
4616 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4623 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4624 if test -n "$GCC_FOR_TARGET"; then
4625 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4627 echo "$ac_t""no
" 1>&6
4631 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4634 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4635 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4638 for ncn_progname in gcj; do
4639 if test -n "$ncn_target_tool_prefix"; then
4640 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4641 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4642 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4643 echo "configure
:4644: checking
for $ac_word" >&5
4644 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4645 echo $ac_n "(cached
) $ac_c" 1>&6
4647 if test -n "$GCJ_FOR_TARGET"; then
4648 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4652 for ac_dir in $ac_dummy; do
4653 test -z "$ac_dir" && ac_dir=.
4654 if test -f $ac_dir/$ac_word; then
4655 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4662 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4663 if test -n "$GCJ_FOR_TARGET"; then
4664 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4666 echo "$ac_t""no
" 1>&6
4670 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4672 set dummy ${ncn_progname}; ac_word=$2
4673 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4674 echo "configure
:4675: checking
for $ac_word" >&5
4675 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4676 echo $ac_n "(cached
) $ac_c" 1>&6
4678 if test -n "$GCJ_FOR_TARGET"; then
4679 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4683 for ac_dir in $ac_dummy; do
4684 test -z "$ac_dir" && ac_dir=.
4685 if test -f $ac_dir/$ac_word; then
4686 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4693 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4694 if test -n "$GCJ_FOR_TARGET"; then
4695 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4697 echo "$ac_t""no
" 1>&6
4701 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4704 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4706 if test $build = $target ; then
4709 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4713 for ncn_progname in gfortran; do
4714 if test -n "$ncn_target_tool_prefix"; then
4715 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4716 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4717 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4718 echo "configure
:4719: checking
for $ac_word" >&5
4719 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4720 echo $ac_n "(cached
) $ac_c" 1>&6
4722 if test -n "$GFORTRAN_FOR_TARGET"; then
4723 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4727 for ac_dir in $ac_dummy; do
4728 test -z "$ac_dir" && ac_dir=.
4729 if test -f $ac_dir/$ac_word; then
4730 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4737 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4738 if test -n "$GFORTRAN_FOR_TARGET"; then
4739 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4741 echo "$ac_t""no
" 1>&6
4745 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4746 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4747 set dummy ${ncn_progname}; ac_word=$2
4748 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4749 echo "configure
:4750: checking
for $ac_word" >&5
4750 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4751 echo $ac_n "(cached
) $ac_c" 1>&6
4753 if test -n "$GFORTRAN_FOR_TARGET"; then
4754 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4758 for ac_dir in $ac_dummy; do
4759 test -z "$ac_dir" && ac_dir=.
4760 if test -f $ac_dir/$ac_word; then
4761 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
4768 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4769 if test -n "$GFORTRAN_FOR_TARGET"; then
4770 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4772 echo "$ac_t""no
" 1>&6
4776 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
4779 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
4781 if test $build = $target ; then
4782 GFORTRAN_FOR_TARGET="$2"
4784 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
4788 for ncn_progname in ld; do
4789 if test -n "$ncn_target_tool_prefix"; then
4790 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4791 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4792 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4793 echo "configure
:4794: checking
for $ac_word" >&5
4794 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4795 echo $ac_n "(cached
) $ac_c" 1>&6
4797 if test -n "$LD_FOR_TARGET"; then
4798 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4802 for ac_dir in $ac_dummy; do
4803 test -z "$ac_dir" && ac_dir=.
4804 if test -f $ac_dir/$ac_word; then
4805 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4812 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4813 if test -n "$LD_FOR_TARGET"; then
4814 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4816 echo "$ac_t""no
" 1>&6
4820 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
4821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4822 set dummy ${ncn_progname}; ac_word=$2
4823 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4824 echo "configure
:4825: checking
for $ac_word" >&5
4825 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
4826 echo $ac_n "(cached
) $ac_c" 1>&6
4828 if test -n "$LD_FOR_TARGET"; then
4829 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
4831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4833 for ac_dir in $ac_dummy; do
4834 test -z "$ac_dir" && ac_dir=.
4835 if test -f $ac_dir/$ac_word; then
4836 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
4843 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
4844 if test -n "$LD_FOR_TARGET"; then
4845 echo "$ac_t""$LD_FOR_TARGET" 1>&6
4847 echo "$ac_t""no
" 1>&6
4851 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
4854 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
4856 if test $build = $target ; then
4859 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
4863 for ncn_progname in lipo; do
4864 if test -n "$ncn_target_tool_prefix"; then
4865 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4866 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4867 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4868 echo "configure
:4869: checking
for $ac_word" >&5
4869 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
4870 echo $ac_n "(cached
) $ac_c" 1>&6
4872 if test -n "$LIPO_FOR_TARGET"; then
4873 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
4875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4877 for ac_dir in $ac_dummy; do
4878 test -z "$ac_dir" && ac_dir=.
4879 if test -f $ac_dir/$ac_word; then
4880 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4887 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
4888 if test -n "$LIPO_FOR_TARGET"; then
4889 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
4891 echo "$ac_t""no
" 1>&6
4895 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
4896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4897 set dummy ${ncn_progname}; ac_word=$2
4898 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4899 echo "configure
:4900: checking
for $ac_word" >&5
4900 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
4901 echo $ac_n "(cached
) $ac_c" 1>&6
4903 if test -n "$LIPO_FOR_TARGET"; then
4904 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
4906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4908 for ac_dir in $ac_dummy; do
4909 test -z "$ac_dir" && ac_dir=.
4910 if test -f $ac_dir/$ac_word; then
4911 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
4918 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
4919 if test -n "$LIPO_FOR_TARGET"; then
4920 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
4922 echo "$ac_t""no
" 1>&6
4926 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
4929 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
4931 if test $build = $target ; then
4932 LIPO_FOR_TARGET="$2"
4934 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
4938 for ncn_progname in nm; do
4939 if test -n "$ncn_target_tool_prefix"; then
4940 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4941 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4942 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4943 echo "configure
:4944: checking
for $ac_word" >&5
4944 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
4945 echo $ac_n "(cached
) $ac_c" 1>&6
4947 if test -n "$NM_FOR_TARGET"; then
4948 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
4950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4952 for ac_dir in $ac_dummy; do
4953 test -z "$ac_dir" && ac_dir=.
4954 if test -f $ac_dir/$ac_word; then
4955 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4962 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
4963 if test -n "$NM_FOR_TARGET"; then
4964 echo "$ac_t""$NM_FOR_TARGET" 1>&6
4966 echo "$ac_t""no
" 1>&6
4970 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
4971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4972 set dummy ${ncn_progname}; ac_word=$2
4973 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4974 echo "configure
:4975: checking
for $ac_word" >&5
4975 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
4976 echo $ac_n "(cached
) $ac_c" 1>&6
4978 if test -n "$NM_FOR_TARGET"; then
4979 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
4981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4983 for ac_dir in $ac_dummy; do
4984 test -z "$ac_dir" && ac_dir=.
4985 if test -f $ac_dir/$ac_word; then
4986 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
4993 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
4994 if test -n "$NM_FOR_TARGET"; then
4995 echo "$ac_t""$NM_FOR_TARGET" 1>&6
4997 echo "$ac_t""no
" 1>&6
5001 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5004 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5006 if test $build = $target ; then
5009 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
5013 for ncn_progname in objdump; do
5014 if test -n "$ncn_target_tool_prefix"; then
5015 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5016 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5017 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5018 echo "configure
:5019: checking
for $ac_word" >&5
5019 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5020 echo $ac_n "(cached
) $ac_c" 1>&6
5022 if test -n "$OBJDUMP_FOR_TARGET"; then
5023 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5027 for ac_dir in $ac_dummy; do
5028 test -z "$ac_dir" && ac_dir=.
5029 if test -f $ac_dir/$ac_word; then
5030 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5037 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5038 if test -n "$OBJDUMP_FOR_TARGET"; then
5039 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5041 echo "$ac_t""no
" 1>&6
5045 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
5046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5047 set dummy ${ncn_progname}; ac_word=$2
5048 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5049 echo "configure
:5050: checking
for $ac_word" >&5
5050 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
5051 echo $ac_n "(cached
) $ac_c" 1>&6
5053 if test -n "$OBJDUMP_FOR_TARGET"; then
5054 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
5056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5058 for ac_dir in $ac_dummy; do
5059 test -z "$ac_dir" && ac_dir=.
5060 if test -f $ac_dir/$ac_word; then
5061 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5068 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5069 if test -n "$OBJDUMP_FOR_TARGET"; then
5070 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
5072 echo "$ac_t""no
" 1>&6
5076 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
5079 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
5081 if test $build = $target ; then
5082 OBJDUMP_FOR_TARGET="$2"
5084 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5088 for ncn_progname in ranlib; do
5089 if test -n "$ncn_target_tool_prefix"; then
5090 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5091 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5092 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5093 echo "configure
:5094: checking
for $ac_word" >&5
5094 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5095 echo $ac_n "(cached
) $ac_c" 1>&6
5097 if test -n "$RANLIB_FOR_TARGET"; then
5098 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5102 for ac_dir in $ac_dummy; do
5103 test -z "$ac_dir" && ac_dir=.
5104 if test -f $ac_dir/$ac_word; then
5105 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5112 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5113 if test -n "$RANLIB_FOR_TARGET"; then
5114 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5116 echo "$ac_t""no
" 1>&6
5120 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
5121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5122 set dummy ${ncn_progname}; ac_word=$2
5123 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5124 echo "configure
:5125: checking
for $ac_word" >&5
5125 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
5126 echo $ac_n "(cached
) $ac_c" 1>&6
5128 if test -n "$RANLIB_FOR_TARGET"; then
5129 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
5131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5133 for ac_dir in $ac_dummy; do
5134 test -z "$ac_dir" && ac_dir=.
5135 if test -f $ac_dir/$ac_word; then
5136 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5143 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
5144 if test -n "$RANLIB_FOR_TARGET"; then
5145 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
5147 echo "$ac_t""no
" 1>&6
5151 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
5154 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
5155 RANLIB_FOR_TARGET=":"
5158 for ncn_progname in strip; do
5159 if test -n "$ncn_target_tool_prefix"; then
5160 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5161 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5162 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5163 echo "configure
:5164: checking
for $ac_word" >&5
5164 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5165 echo $ac_n "(cached
) $ac_c" 1>&6
5167 if test -n "$STRIP_FOR_TARGET"; then
5168 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5172 for ac_dir in $ac_dummy; do
5173 test -z "$ac_dir" && ac_dir=.
5174 if test -f $ac_dir/$ac_word; then
5175 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5182 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5183 if test -n "$STRIP_FOR_TARGET"; then
5184 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5186 echo "$ac_t""no
" 1>&6
5190 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
5191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5192 set dummy ${ncn_progname}; ac_word=$2
5193 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5194 echo "configure
:5195: checking
for $ac_word" >&5
5195 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
5196 echo $ac_n "(cached
) $ac_c" 1>&6
5198 if test -n "$STRIP_FOR_TARGET"; then
5199 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
5201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5203 for ac_dir in $ac_dummy; do
5204 test -z "$ac_dir" && ac_dir=.
5205 if test -f $ac_dir/$ac_word; then
5206 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
5214 if test -n "$STRIP_FOR_TARGET"; then
5215 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
5217 echo "$ac_t""no
" 1>&6
5221 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
5224 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
5226 if test $build = $target ; then
5227 STRIP_FOR_TARGET="$2"
5229 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
5233 for ncn_progname in windres; do
5234 if test -n "$ncn_target_tool_prefix"; then
5235 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5236 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5237 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5238 echo "configure
:5239: checking
for $ac_word" >&5
5239 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5240 echo $ac_n "(cached
) $ac_c" 1>&6
5242 if test -n "$WINDRES_FOR_TARGET"; then
5243 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5247 for ac_dir in $ac_dummy; do
5248 test -z "$ac_dir" && ac_dir=.
5249 if test -f $ac_dir/$ac_word; then
5250 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5257 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5258 if test -n "$WINDRES_FOR_TARGET"; then
5259 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5261 echo "$ac_t""no
" 1>&6
5265 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
5266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5267 set dummy ${ncn_progname}; ac_word=$2
5268 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5269 echo "configure
:5270: checking
for $ac_word" >&5
5270 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
5271 echo $ac_n "(cached
) $ac_c" 1>&6
5273 if test -n "$WINDRES_FOR_TARGET"; then
5274 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
5276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5278 for ac_dir in $ac_dummy; do
5279 test -z "$ac_dir" && ac_dir=.
5280 if test -f $ac_dir/$ac_word; then
5281 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5288 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
5289 if test -n "$WINDRES_FOR_TARGET"; then
5290 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
5292 echo "$ac_t""no
" 1>&6
5296 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
5299 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
5301 if test $build = $target ; then
5302 WINDRES_FOR_TARGET="$2"
5304 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
5309 CONFIGURED_AR_FOR_TARGET="$AR_FOR_TARGET"
5310 CONFIGURED_AS_FOR_TARGET="$AS_FOR_TARGET"
5311 CONFIGURED_CC_FOR_TARGET="$CC_FOR_TARGET"
5312 CONFIGURED_CXX_FOR_TARGET="$CXX_FOR_TARGET"
5313 CONFIGURED_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET"
5314 CONFIGURED_GCC_FOR_TARGET="$GCC_FOR_TARGET"
5315 CONFIGURED_GCJ_FOR_TARGET="$GCJ_FOR_TARGET"
5316 CONFIGURED_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET"
5317 CONFIGURED_LD_FOR_TARGET="$LD_FOR_TARGET"
5318 CONFIGURED_LIPO_FOR_TARGET="$LIPO_FOR_TARGET"
5319 CONFIGURED_NM_FOR_TARGET="$NM_FOR_TARGET"
5320 CONFIGURED_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET"
5321 CONFIGURED_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET"
5322 CONFIGURED_STRIP_FOR_TARGET="$STRIP_FOR_TARGET"
5323 CONFIGURED_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET"
5327 # Fix up target tools.
5328 if test "x
${build}" = "x
${host}" ; then
5329 # In this case, the newly built tools can and should be used,
5330 # so we override the results of the autoconf tests.
5331 # This should really only happen when the tools are actually being built,
5332 # but that's a further refinement. The new build scheme, where
5333 # tools are built into a structure paralleling where they're installed,
5334 # should also eliminate all of this cleanly.
5335 AR_FOR_TARGET="\$
(USUAL_AR_FOR_TARGET
)"
5336 AS_FOR_TARGET="\$
(USUAL_AS_FOR_TARGET
)"
5337 CC_FOR_TARGET="\$
(USUAL_CC_FOR_TARGET
)"
5338 CXX_FOR_TARGET="\$
(USUAL_CXX_FOR_TARGET
)"
5339 RAW_CXX_FOR_TARGET="\$
(USUAL_RAW_CXX_FOR_TARGET
)"
5340 DLLTOOL_FOR_TARGET="\$
(USUAL_DLLTOOL_FOR_TARGET
)"
5341 GCC_FOR_TARGET="\$
(USUAL_GCC_FOR_TARGET
)"
5342 GCJ_FOR_TARGET="\$
(USUAL_GCJ_FOR_TARGET
)"
5343 GFORTRAN_FOR_TARGET="\$
(USUAL_GFORTRAN_FOR_TARGET
)"
5344 LD_FOR_TARGET="\$
(USUAL_LD_FOR_TARGET
)"
5345 LIPO_FOR_TARGET="\$
(USUAL_LIPO_FOR_TARGET
)"
5346 NM_FOR_TARGET="\$
(USUAL_NM_FOR_TARGET
)"
5347 OBJDUMP_FOR_TARGET="\$
(USUAL_OBJDUMP_FOR_TARGET
)"
5348 RANLIB_FOR_TARGET="\$
(USUAL_RANLIB_FOR_TARGET
)"
5349 STRIP_FOR_TARGET="\$
(USUAL_STRIP_FOR_TARGET
)"
5350 WINDRES_FOR_TARGET="\$
(USUAL_WINDRES_FOR_TARGET
)"
5352 # Just use the ones we found.
5353 AR_FOR_TARGET="\$
(CONFIGURED_AR_FOR_TARGET
)"
5354 AS_FOR_TARGET="\$
(CONFIGURED_AS_FOR_TARGET
)"
5355 CC_FOR_TARGET="\$
(CONFIGURED_CC_FOR_TARGET
)"
5356 CXX_FOR_TARGET="\$
(CONFIGURED_CXX_FOR_TARGET
)"
5357 RAW_CXX_FOR_TARGET="\$
(CONFIGURED_CXX_FOR_TARGET
)"
5358 DLLTOOL_FOR_TARGET="\$
(CONFIGURED_DLLTOOL_FOR_TARGET
)"
5359 GCC_FOR_TARGET="\$
(CONFIGURED_GCC_FOR_TARGET
)"
5360 GCJ_FOR_TARGET="\$
(CONFIGURED_GCJ_FOR_TARGET
)"
5361 GFORTRAN_FOR_TARGET="\$
(CONFIGURED_GFORTRAN_FOR_TARGET
)"
5362 LD_FOR_TARGET="\$
(CONFIGURED_LD_FOR_TARGET
)"
5363 LIPO_FOR_TARGET="\$
(CONFIGURED_LIPO_FOR_TARGET
)"
5364 NM_FOR_TARGET="\$
(CONFIGURED_NM_FOR_TARGET
)"
5365 OBJDUMP_FOR_TARGET="\$
(CONFIGURED_OBJDUMP_FOR_TARGET
)"
5366 RANLIB_FOR_TARGET="\$
(CONFIGURED_RANLIB_FOR_TARGET
)"
5367 STRIP_FOR_TARGET="\$
(CONFIGURED_STRIP_FOR_TARGET
)"
5368 WINDRES_FOR_TARGET="\$
(CONFIGURED_WINDRES_FOR_TARGET
)"
5373 # Certain tools may need extra flags.
5374 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
5375 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
5376 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
5378 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
5379 echo "configure
:5380: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
5380 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5381 if test "${enable_maintainer_mode+set}" = set; then
5382 enableval="$enable_maintainer_mode"
5383 USE_MAINTAINER_MODE=$enableval
5385 USE_MAINTAINER_MODE=no
5388 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
5391 if test "$USE_MAINTAINER_MODE" = yes; then
5392 MAINTAINER_MODE_TRUE=
5393 MAINTAINER_MODE_FALSE='#'
5395 MAINTAINER_MODE_TRUE='#'
5396 MAINTAINER_MODE_FALSE=
5398 MAINT=$MAINTAINER_MODE_TRUE
5400 # ---------------------
5401 # GCC bootstrap support
5402 # ---------------------
5404 # Stage specific cflags for build.
5409 yes) stage1_cflags="-g -Wa,-J" ;;
5410 *) stage1_cflags="-g -J" ;;
5413 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
5414 # sources; use -no-cpp-precomp to get to GNU cpp.
5415 # Apple's GCC has bugs in designated initializer handling, so disable
5417 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
5422 # It makes debugging easier if we create as symlinks the stage directories
5423 # gcc for stageN-gcc and stagePREV-gcc for stage(N-1). In case this is not
5424 # possible, however, we can resort to mv.
5425 echo $ac_n "checking
if symbolic links between directories work
""...
$ac_c" 1>&6
5426 echo "configure
:5427: checking
if symbolic links between directories work
" >&5
5427 if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
5428 echo $ac_n "(cached
) $ac_c" 1>&6
5430 if test "${LN_S}" = "ln -s" \
5431 && mkdir confdir.s1 \
5432 && ln -s confdir.s1 confdir.s2 \
5433 && echo timestamp1 > confdir.s1/conftest.1 \
5434 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
5435 && echo timestamp2 > confdir.s2/conftest.2 \
5436 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
5437 && rm -f confdir.s2; then
5438 gcc_cv_prog_ln_s_dir=yes
5440 gcc_cv_prog_ln_s_dir=no
5442 rm -rf confdir.s1 confdir.s2
5445 echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
5447 case ${gcc_cv_prog_ln_s_dir} in
5449 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
5450 UNDO_LINK_TO_DIR='rm -f $$1' ;;
5452 CREATE_LINK_TO_DIR='mv $$1 $$2'
5453 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
5458 # Enable -Werror in bootstrap stage2 and later.
5459 # Change the default to "no
" on release branches.
5460 # Check whether --enable-werror or --disable-werror was given.
5461 if test "${enable_werror+set}" = set; then
5462 enableval="$enable_werror"
5468 case ${enable_werror} in
5469 yes) stage2_werror_flag="--enable-werror-always" ;;
5470 *) stage2_werror_flag="" ;;
5475 cat > confcache <<\EOF
5476 # This file is a shell script that caches the results of configure
5477 # tests run on this system so they can be shared between configure
5478 # scripts and configure runs. It is not useful on other systems.
5479 # If it contains results you don't want to keep, you may remove or edit it.
5481 # By default, configure uses ./config.cache as the cache file,
5482 # creating it if it does not exist already. You can give configure
5483 # the --cache-file=FILE option to use a different cache file; that is
5484 # what configure does when it calls configure scripts in
5485 # subdirectories, so they share the cache.
5486 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5487 # config.status only pays attention to the cache file if you give it the
5488 # --recheck option to rerun configure.
5491 # The following way of writing the cache mishandles newlines in values,
5492 # but we know of no workaround that is simple, portable, and efficient.
5493 # So, don't put newlines in cache variables' values.
5494 # Ultrix sh set writes to stderr and can't be redirected directly,
5495 # and sets the high bit in the cache file unless we assign to the vars.
5497 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5499 # `set' does not quote correctly, so add quotes (double-quote substitution
5500 # turns \\\\ into \\, and sed turns \\ into \).
5502 -e "s
/'/'\\\\''/g
" \
5503 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
5506 # `set' quotes correctly as required by POSIX, so do not add quotes.
5507 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5510 if cmp -s $cache_file confcache; then
5513 if test -w $cache_file; then
5514 echo "updating cache
$cache_file"
5515 cat confcache > $cache_file
5517 echo "not updating unwritable cache
$cache_file"
5522 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5524 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
5525 # Let make expand exec_prefix.
5526 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
5528 # Any assignment to VPATH causes Sun make to only execute
5529 # the first set of double-colon rules, so remove it if not needed.
5530 # If there is a colon in the path, we need to keep it.
5531 if test "x
$srcdir" = x.; then
5532 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5535 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5537 # Transform confdefs.h into DEFS.
5538 # Protect against shell expansion while executing Makefile rules.
5539 # Protect against Makefile macro expansion.
5540 cat > conftest.defs <<\EOF
5541 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
5542 s%[ `~#$^&*(){}\\|;'"<>?
]%\\&%g
5547 DEFS
=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
5551 # Without the "./", some shells look in PATH for config.status.
5552 : ${CONFIG_STATUS=./config.status}
5554 echo creating
$CONFIG_STATUS
5555 rm -f $CONFIG_STATUS
5556 cat > $CONFIG_STATUS <<EOF
5558 # Generated automatically by configure.
5559 # Run this file to recreate the current configuration.
5560 # This directory was configured as follows,
5561 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5563 # $0 $ac_configure_args
5565 # Compiler output produced by configure, useful for debugging
5566 # configure, is in ./config.log if it exists.
5568 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5571 case "\$ac_option" in
5572 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5573 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5574 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5575 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5576 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5578 -help | --help | --hel | --he | --h)
5579 echo "\$ac_cs_usage"; exit 0 ;;
5580 *) echo "\$ac_cs_usage"; exit 1 ;;
5584 ac_given_srcdir=$srcdir
5585 ac_given_INSTALL="$INSTALL"
5587 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5589 cat >> $CONFIG_STATUS <<EOF
5591 # Protect against being on the right side of a sed subst in config.status.
5592 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5593 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5597 s%@CFLAGS@%$CFLAGS%g
5598 s%@CPPFLAGS@%$CPPFLAGS%g
5599 s%@CXXFLAGS@%$CXXFLAGS%g
5600 s%@FFLAGS@%$FFLAGS%g
5602 s%@LDFLAGS@%$LDFLAGS%g
5604 s%@exec_prefix@%$exec_prefix%g
5605 s%@prefix@%$prefix%g
5606 s%@program_transform_name@%$program_transform_name%g
5607 s%@bindir@%$bindir%g
5608 s%@sbindir@%$sbindir%g
5609 s%@libexecdir@%$libexecdir%g
5610 s%@datadir@%$datadir%g
5611 s%@sysconfdir@%$sysconfdir%g
5612 s%@sharedstatedir@%$sharedstatedir%g
5613 s%@localstatedir@%$localstatedir%g
5614 s%@libdir@%$libdir%g
5615 s%@includedir@%$includedir%g
5616 s%@oldincludedir@%$oldincludedir%g
5617 s%@infodir@%$infodir%g
5618 s%@mandir@%$mandir%g
5620 s%@host_alias@%$host_alias%g
5621 s%@host_cpu@%$host_cpu%g
5622 s%@host_vendor@%$host_vendor%g
5623 s%@host_os@%$host_os%g
5624 s%@target@%$target%g
5625 s%@target_alias@%$target_alias%g
5626 s%@target_cpu@%$target_cpu%g
5627 s%@target_vendor@%$target_vendor%g
5628 s%@target_os@%$target_os%g
5630 s%@build_alias@%$build_alias%g
5631 s%@build_cpu@%$build_cpu%g
5632 s%@build_vendor@%$build_vendor%g
5633 s%@build_os@%$build_os%g
5634 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5635 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5636 s%@INSTALL_DATA@%$INSTALL_DATA%g
5639 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
5640 s%@build_subdir@%$build_subdir%g
5641 s%@host_subdir@%$host_subdir%g
5642 s%@target_subdir@%$target_subdir%g
5644 s%@GNATBIND@%$GNATBIND%g
5645 s%@do_compare@%$do_compare%g
5646 s%@gmplibs@%$gmplibs%g
5647 s%@gmpinc@%$gmpinc%g
5648 s%@stage1_languages@%$stage1_languages%g
5649 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
5650 s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g
5651 s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g
5652 s%@CONFIGURED_M4@%$CONFIGURED_M4%g
5653 s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g
5654 s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g
5655 s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g
5656 s%@bootstrap_lean@%$bootstrap_lean%g
5657 /@serialization_dependencies@/r $serialization_dependencies
5658 s%@serialization_dependencies@%%g
5659 /@host_makefile_frag@/r $host_makefile_frag
5660 s%@host_makefile_frag@%%g
5661 /@target_makefile_frag@/r $target_makefile_frag
5662 s%@target_makefile_frag@%%g
5663 /@alphaieee_frag@/r $alphaieee_frag
5664 s%@alphaieee_frag@%%g
5665 /@ospace_frag@/r $ospace_frag
5667 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
5668 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
5669 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
5670 s%@tooldir@%$tooldir%g
5671 s%@build_tooldir@%$build_tooldir%g
5672 s%@GDB_TK@%$GDB_TK%g
5673 s%@build_configargs@%$build_configargs%g
5674 s%@build_configdirs@%$build_configdirs%g
5675 s%@host_configargs@%$host_configargs%g
5676 s%@configdirs@%$configdirs%g
5677 s%@target_configargs@%$target_configargs%g
5678 s%@target_configdirs@%$target_configdirs%g
5679 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5680 s%@config_shell@%$config_shell%g
5683 s%@DLLTOOL@%$DLLTOOL%g
5686 s%@RANLIB@%$RANLIB%g
5687 s%@WINDRES@%$WINDRES%g
5688 s%@OBJCOPY@%$OBJCOPY%g
5689 s%@OBJDUMP@%$OBJDUMP%g
5691 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
5692 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
5693 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
5694 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
5695 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
5696 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
5697 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
5698 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
5699 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
5700 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
5701 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
5702 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5703 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
5704 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
5705 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
5706 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
5707 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
5708 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
5709 s%@CONFIGURED_CC_FOR_TARGET@%$CONFIGURED_CC_FOR_TARGET%g
5710 s%@CONFIGURED_CXX_FOR_TARGET@%$CONFIGURED_CXX_FOR_TARGET%g
5711 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
5712 s%@CONFIGURED_GCC_FOR_TARGET@%$CONFIGURED_GCC_FOR_TARGET%g
5713 s%@CONFIGURED_GCJ_FOR_TARGET@%$CONFIGURED_GCJ_FOR_TARGET%g
5714 s%@CONFIGURED_GFORTRAN_FOR_TARGET@%$CONFIGURED_GFORTRAN_FOR_TARGET%g
5715 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
5716 s%@CONFIGURED_LIPO_FOR_TARGET@%$CONFIGURED_LIPO_FOR_TARGET%g
5717 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
5718 s%@CONFIGURED_OBJDUMP_FOR_TARGET@%$CONFIGURED_OBJDUMP_FOR_TARGET%g
5719 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
5720 s%@CONFIGURED_STRIP_FOR_TARGET@%$CONFIGURED_STRIP_FOR_TARGET%g
5721 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
5722 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
5723 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
5724 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5725 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5727 s%@stage1_cflags@%$stage1_cflags%g
5728 s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
5729 s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
5730 s%@stage2_werror_flag@%$stage2_werror_flag%g
5735 cat >> $CONFIG_STATUS <<\EOF
5737 # Split the substitutions into bite-sized pieces for seds with
5738 # small command number limits, like on Digital OSF/1 and HP-UX.
5739 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5740 ac_file
=1 # Number of current file.
5741 ac_beg
=1 # First line for current file.
5742 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5745 while $ac_more_lines; do
5746 if test $ac_beg -gt 1; then
5747 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5749 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5751 if test ! -s conftest.s
$ac_file; then
5753 rm -f conftest.s
$ac_file
5755 if test -z "$ac_sed_cmds"; then
5756 ac_sed_cmds
="sed -f conftest.s$ac_file"
5758 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5760 ac_file
=`expr $ac_file + 1`
5762 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5765 if test -z "$ac_sed_cmds"; then
5770 cat >> $CONFIG_STATUS <<EOF
5772 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5774 cat >> $CONFIG_STATUS <<\EOF
5775 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5776 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5778 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5779 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5780 *) ac_file_in
="${ac_file}.in" ;;
5783 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5785 # Remove last slash and all that follows it. Not all systems have dirname.
5786 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5787 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5788 # The file is in a subdirectory.
5789 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5790 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5791 # A "../" for each directory in $ac_dir_suffix.
5792 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5794 ac_dir_suffix
= ac_dots
=
5797 case "$ac_given_srcdir" in
5799 if test -z "$ac_dots"; then top_srcdir
=.
5800 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5801 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5803 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5804 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5807 case "$ac_given_INSTALL" in
5808 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5809 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5812 echo creating
"$ac_file"
5814 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5816 *Makefile
*) ac_comsub
="1i\\
5817 # $configure_input" ;;
5821 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5823 s%@configure_input@%$configure_input%g
5824 s%@srcdir@%$srcdir%g
5825 s%@top_srcdir@%$top_srcdir%g
5826 s%@INSTALL@%$INSTALL%g
5827 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5832 cat >> $CONFIG_STATUS <<EOF
5835 cat >> $CONFIG_STATUS <<\EOF
5839 chmod +x
$CONFIG_STATUS
5840 rm -fr confdefs
* $ac_clean_files
5841 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1