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 --without-libbanshee Don't build with libbanshee"
17 --enable-libada Builds libada directory"
19 --with-gmp-dir=PATH Specify source directory for GMP library"
21 --with-gmp=PATH Specify directory for installed GMP library"
23 --enable-serial-[{host,target,build}-]configure
24 Force sequential configuration of
25 sub-packages for the host, target or build
26 machine, or all sub-packages"
28 --enable-maintainer-mode enable make rules and dependencies not useful
29 (and sometimes confusing) to the casual installer"
31 --enable-werror enable -Werror in bootstrap stage2 and later"
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file
=.
/config.cache
46 program_transform_name
=s
,x
,x
,
54 bindir
='${exec_prefix}/bin'
55 sbindir
='${exec_prefix}/sbin'
56 libexecdir
='${exec_prefix}/libexec'
57 datadir
='${prefix}/share'
58 sysconfdir
='${prefix}/etc'
59 sharedstatedir
='${prefix}/com'
60 localstatedir
='${prefix}/var'
61 libdir
='${exec_prefix}/lib'
62 includedir
='${prefix}/include'
63 oldincludedir
='/usr/include'
64 infodir
='${prefix}/info'
65 mandir
='${prefix}/man'
67 # Initialize some other variables.
70 SHELL
=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
78 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option"
86 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 # Accept the important Cygnus configure options, so we can diagnose typos.
94 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
96 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
97 bindir
="$ac_optarg" ;;
99 -build |
--build |
--buil |
--bui |
--bu)
101 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
102 build
="$ac_optarg" ;;
104 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
105 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
106 ac_prev
=cache_file
;;
107 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
108 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
109 cache_file
="$ac_optarg" ;;
111 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
113 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
115 datadir
="$ac_optarg" ;;
117 -disable-* |
--disable-*)
118 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;;
126 -enable-* |
--enable-*)
127 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
137 eval "enable_${ac_feature}='$ac_optarg'" ;;
139 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
140 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
141 |
--exec |
--exe |
--ex)
142 ac_prev
=exec_prefix
;;
143 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
144 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
145 |
--exec=* |
--exe=* |
--ex=*)
146 exec_prefix
="$ac_optarg" ;;
148 -gas |
--gas |
--ga |
--g)
149 # Obsolete; use --with-gas.
152 -help |
--help |
--hel |
--he)
153 # Omit some internal or obsolete options to make the list less imposing.
154 # This message is too long to be a string in the A/UX 3.1 sh.
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --version print the version of autoconf that created configure
164 Directory and file names:
165 --prefix=PREFIX install architecture-independent files in PREFIX
167 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 --bindir=DIR user executables in DIR [EPREFIX/bin]
170 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
171 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
172 --datadir=DIR read-only architecture-independent data in DIR
174 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
175 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
178 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
179 --includedir=DIR C header files in DIR [PREFIX/include]
180 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
181 --infodir=DIR info documentation in DIR [PREFIX/info]
182 --mandir=DIR man documentation in DIR [PREFIX/man]
183 --srcdir=DIR find the sources in DIR [configure dir or ..]
184 --program-prefix=PREFIX prepend PREFIX to installed program names
185 --program-suffix=SUFFIX append SUFFIX to installed program names
186 --program-transform-name=PROGRAM
187 run sed PROGRAM on installed program names
191 --build=BUILD configure for building on BUILD [BUILD=HOST]
192 --host=HOST configure for HOST [guessed]
193 --target=TARGET configure for TARGET [TARGET=HOST]
194 Features and packages:
195 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
196 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
197 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
198 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
199 --x-includes=DIR X include files are in DIR
200 --x-libraries=DIR X library files are in DIR
202 if test -n "$ac_help"; then
203 echo "--enable and --with options recognized:$ac_help"
207 -host |
--host |
--hos |
--ho)
209 -host=* |
--host=* |
--hos=* |
--ho=*)
212 -includedir |
--includedir |
--includedi |
--included |
--include \
213 |
--includ |
--inclu |
--incl |
--inc)
214 ac_prev
=includedir
;;
215 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
216 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
217 includedir
="$ac_optarg" ;;
219 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
221 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
222 infodir
="$ac_optarg" ;;
224 -libdir |
--libdir |
--libdi |
--libd)
226 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
227 libdir
="$ac_optarg" ;;
229 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
230 |
--libexe |
--libex |
--libe)
231 ac_prev
=libexecdir
;;
232 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
233 |
--libexe=* |
--libex=* |
--libe=*)
234 libexecdir
="$ac_optarg" ;;
236 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
237 |
--localstate |
--localstat |
--localsta |
--localst \
238 |
--locals |
--local |
--loca |
--loc |
--lo)
239 ac_prev
=localstatedir
;;
240 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
241 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
242 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
243 localstatedir
="$ac_optarg" ;;
245 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
247 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
248 mandir
="$ac_optarg" ;;
251 # Obsolete; use --without-fp.
254 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
258 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
259 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
262 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
263 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
264 |
--oldin |
--oldi |
--old |
--ol |
--o)
265 ac_prev
=oldincludedir
;;
266 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
267 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
268 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
269 oldincludedir
="$ac_optarg" ;;
271 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
273 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
274 prefix
="$ac_optarg" ;;
276 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
277 |
--program-pre |
--program-pr |
--program-p)
278 ac_prev
=program_prefix
;;
279 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
280 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
281 program_prefix
="$ac_optarg" ;;
283 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
284 |
--program-suf |
--program-su |
--program-s)
285 ac_prev
=program_suffix
;;
286 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
287 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
288 program_suffix
="$ac_optarg" ;;
290 -program-transform-name |
--program-transform-name \
291 |
--program-transform-nam |
--program-transform-na \
292 |
--program-transform-n |
--program-transform- \
293 |
--program-transform |
--program-transfor \
294 |
--program-transfo |
--program-transf \
295 |
--program-trans |
--program-tran \
296 |
--progr-tra |
--program-tr |
--program-t)
297 ac_prev
=program_transform_name
;;
298 -program-transform-name=* |
--program-transform-name=* \
299 |
--program-transform-nam=* |
--program-transform-na=* \
300 |
--program-transform-n=* |
--program-transform-=* \
301 |
--program-transform=* |
--program-transfor=* \
302 |
--program-transfo=* |
--program-transf=* \
303 |
--program-trans=* |
--program-tran=* \
304 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
305 program_transform_name
="$ac_optarg" ;;
307 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
308 |
-silent |
--silent |
--silen |
--sile |
--sil)
311 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
313 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
315 sbindir
="$ac_optarg" ;;
317 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
318 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
319 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
321 ac_prev
=sharedstatedir
;;
322 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
323 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
324 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
326 sharedstatedir
="$ac_optarg" ;;
328 -site |
--site |
--sit)
330 -site=* |
--site=* |
--sit=*)
333 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
335 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
336 srcdir
="$ac_optarg" ;;
338 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
339 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
340 ac_prev
=sysconfdir
;;
341 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
342 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
343 sysconfdir
="$ac_optarg" ;;
345 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
347 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
348 target
="$ac_optarg" ;;
350 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
353 -version |
--version |
--versio |
--versi |
--vers)
354 echo "configure generated by autoconf version 2.13"
358 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 ac_package
=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}='$ac_optarg'" ;;
370 -without-* |
--without-*)
371 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package
=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}=no" ;;
380 # Obsolete; use --with-x.
383 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
384 |
--x-incl |
--x-inc |
--x-in |
--x-i)
385 ac_prev
=x_includes
;;
386 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
387 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
388 x_includes
="$ac_optarg" ;;
390 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
391 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
392 ac_prev
=x_libraries
;;
393 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
394 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
395 x_libraries
="$ac_optarg" ;;
397 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402 echo "configure: warning: $ac_option: invalid host type" 1>&2
404 if test "x$nonopt" != xNONE
; then
405 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 if test -n "$ac_prev"; then
414 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419 # File descriptor usage:
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
445 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
446 |
--no-cr |
--no-c) ;;
447 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
448 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
449 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
451 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
456 # Only set these to C if already set. These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
461 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
463 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest
* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file
=move-if-change
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476 ac_srcdir_defaulted
=yes
477 # Try the directory containing this script, then its parent.
479 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
482 if test ! -r $srcdir/$ac_unique_file; then
486 ac_srcdir_defaulted
=no
488 if test ! -r $srcdir/$ac_unique_file; then
489 if test "$ac_srcdir_defaulted" = yes; then
490 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499 if test "x$prefix" != xNONE
; then
500 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
502 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505 for ac_site_file
in $CONFIG_SITE; do
506 if test -r "$ac_site_file"; then
507 echo "loading site script $ac_site_file"
512 if test -r "$cache_file"; then
513 echo "loading cache $cache_file"
516 echo "creating cache $cache_file"
521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522 ac_cpp
='$CPP $CPPFLAGS'
523 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 cross_compiling
=$ac_cv_prog_cc_cross
529 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
530 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
531 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
538 ac_n
= ac_c
='\c' ac_t
=
544 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
545 if test -f $ac_dir/install-sh
; then
547 ac_install_sh
="$ac_aux_dir/install-sh -c"
549 elif test -f $ac_dir/install.sh
; then
551 ac_install_sh
="$ac_aux_dir/install.sh -c"
555 if test -z "$ac_aux_dir"; then
556 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
558 ac_config_guess
=$ac_aux_dir/config.guess
559 ac_config_sub
=$ac_aux_dir/config.sub
560 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
563 # Do some error checking and defaulting for the host and target type.
565 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
568 # 1. You are not allowed to specify --host, --target, and nonopt at the
570 # 2. Host defaults to nonopt.
571 # 3. If nonopt is not specified, then host defaults to the current host,
572 # as determined by config.guess.
573 # 4. Target and build default to nonopt.
574 # 5. If nonopt is not specified, then target and build default to host.
576 # The aliases save the names the user supplied, while $host etc.
577 # will get canonicalized.
578 case $host---$target---$nonopt in
579 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
580 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
584 # Make sure we can run config.sub.
585 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
586 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
589 echo $ac_n "checking host system type""... $ac_c" 1>&6
590 echo "configure:591: checking host system type" >&5
593 case "$host_alias" in
597 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
598 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
600 *) host_alias
=$nonopt ;;
604 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
605 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
606 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
607 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
608 echo "$ac_t""$host" 1>&6
610 echo $ac_n "checking target system type""... $ac_c" 1>&6
611 echo "configure:612: checking target system type" >&5
614 case "$target_alias" in
617 NONE
) target_alias
=$host_alias ;;
618 *) target_alias
=$nonopt ;;
622 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
623 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
624 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
625 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
626 echo "$ac_t""$target" 1>&6
628 echo $ac_n "checking build system type""... $ac_c" 1>&6
629 echo "configure:630: checking build system type" >&5
632 case "$build_alias" in
635 NONE
) build_alias
=$host_alias ;;
636 *) build_alias
=$nonopt ;;
640 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
641 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644 echo "$ac_t""$build" 1>&6
646 test "$host_alias" != "$target_alias" &&
647 test "$program_prefix$program_suffix$program_transform_name" = \
649 program_prefix
=${target_alias}-
651 if test "$program_transform_name" = s
,x
,x
,; then
652 program_transform_name
=
654 # Double any \ or $. echo might interpret backslashes.
655 cat <<\EOF_SED
> conftestsed
656 s
,\\,\\\\,g
; s
,\$
,$$
,g
658 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
661 test "$program_prefix" != NONE
&&
662 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
663 # Use a double $ so make ignores it.
664 test "$program_suffix" != NONE
&&
665 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
667 # sed with no file args requires a program.
668 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
671 # Get 'install' or 'install-sh' and its variants.
672 # Find a good install program. We prefer a C program (faster),
673 # so one script is as good as another. But avoid the broken or
674 # incompatible versions:
675 # SysV /etc/install, /usr/sbin/install
676 # SunOS /usr/etc/install
679 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
680 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
681 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
682 # ./install, which can be erroneously created by make from ./install.sh.
683 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
684 echo "configure:685: checking for a BSD compatible install" >&5
685 if test -z "$INSTALL"; then
686 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
687 echo $ac_n "(cached) $ac_c" 1>&6
689 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
690 for ac_dir
in $PATH; do
691 # Account for people who put trailing slashes in PATH elements.
693 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
695 # OSF1 and SCO ODT 3.0 have their own names for install.
696 # Don't use installbsd from OSF since it installs stuff as root
698 for ac_prog
in ginstall scoinst
install; do
699 if test -f $ac_dir/$ac_prog; then
700 if test $ac_prog = install &&
701 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
702 # AIX install. It has an incompatible calling convention.
705 ac_cv_path_install
="$ac_dir/$ac_prog -c"
716 if test "${ac_cv_path_install+set}" = set; then
717 INSTALL
="$ac_cv_path_install"
719 # As a last resort, use the slow shell script. We don't cache a
720 # path for INSTALL within a source directory, because that will
721 # break other packages using the cache if that directory is
722 # removed, or if the path is relative.
723 INSTALL
="$ac_install_sh"
726 echo "$ac_t""$INSTALL" 1>&6
728 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
729 # It thinks the first close brace ends the variable substitution.
730 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
732 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
734 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
737 # Autoconf M4 include file defining utility macros for complex Canadian
746 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
748 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
751 # NCN_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
752 # Like AC_CHECK_TOOL, but tries a prefix of the target, not the host.
753 # Code is pretty much lifted from autoconf2.53.
758 # NCN_STRICT_CHECK_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
759 # Like AC_CHECK_TOOL, but requires the prefix if build!=host.
764 # NCN_STRICT_CHECK_TARGET_TOOL(variable, prog-to-check-for,[value-if-not-found],[path])
765 # Like NCN_CHECK_TARGET_TOOL, but requires the prefix if build!=target.
770 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
771 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
772 # For now, using this also overrides header checks to use only the
773 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
774 # bit harder from here).
775 # Eventually autoconf will default to checking headers with the compiler
776 # instead, and we'll have to do this differently.
781 # We require the gnatbind program, and a compiler driver that
782 # understands Ada. We use the user's CC setting, already found.
784 # Sets the shell variable have_gnat to yes or no as appropriate, and
785 # substitutes GNATBIND.
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 # Set srcdir to "." if that's what it is.
842 # This is important for multilib support.
844 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
845 if test "${pwd}" = "${srcpwd}" ; then
852 # Define the trigger file to make sure configure will re-run whenever
853 # the gcc version number changes.
854 if test "${with_gcc_version_trigger+set}" = set ; then
855 gcc_version_trigger
="$with_gcc_version_trigger"
856 gcc_version
=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
858 # If gcc's sources are available, define the trigger file.
859 if test -f ${topsrcdir}/gcc
/version.c
; then
860 gcc_version_trigger
=${topsrcdir}/gcc
/version.c
861 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
862 case "$ac_configure_args" in
863 *--with-gcc-version-trigger=$gcc_version_trigger* )
866 # Add to all subconfigure arguments: build, host, and target.
867 ac_configure_args
="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
873 ### To add a new directory to the tree, first choose whether it is a target
874 ### or a host dependent tool. Then put it into the appropriate list
875 ### (library or tools, host or target), doing a dependency sort.
877 # Subdirs will be configured in the order listed in build_configdirs,
878 # configdirs, or target_configdirs; see the serialization section below.
880 # Dependency sorting is only needed when *configuration* must be done in
881 # a particular order. In all cases a dependency should be specified in
882 # the Makefile, whether or not it's implicitly specified here.
884 # Double entries in build_configdirs, configdirs, or target_configdirs may
885 # cause circular dependencies and break everything horribly.
887 # these libraries are used by various programs built for the host environment
889 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib libbanshee"
891 # these tools are built for the host environment
892 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
893 # know that we are building the simulator.
894 # binutils, gas and ld appear in that order because it makes sense to run
895 # "make check" in that particular order.
896 host_tools
="texinfo byacc flex bison binutils gas ld 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"
898 # libgcj represents the runtime libraries only used by gcj.
899 libgcj
="target-libffi \
905 # these libraries are built for the target environment, and are built after
906 # the host libraries and the host tools (which may be a cross compiler)
908 target_libraries
="target-libiberty \
911 target-libstdc++-v3 \
919 # these tools are built using the target libraries, and are intended to
920 # run only in the target environment
922 # note: any program that *uses* libraries that are in the "target_libraries"
923 # list belongs in this list. those programs are also very likely
924 # candidates for the "native_only" list which follows
926 target_tools
="target-examples target-groff target-gperf target-rda"
928 ################################################################################
930 ## All tools belong in one of the four categories, and are assigned above
931 ## We assign ${configdirs} this way to remove all embedded newlines. This
932 ## is important because configure will choke if they ever get through.
933 ## ${configdirs} is directories we build using the host tools.
934 ## ${target_configdirs} is directories we build using the target tools.
936 configdirs
=`echo ${host_libs} ${host_tools}`
937 target_configdirs
=`echo ${target_libraries} ${target_tools}`
939 # Only make build modules if build != host.
940 # This should be done more generally, but at the moment it doesn't matter.
941 if test ${host_alias} != ${build_alias} ; then
942 # This is the only build module.
943 build_modules
=libiberty
949 ################################################################################
951 srcname
="gnu development package"
953 # This gets set non-empty for some net releases of packages.
956 # Define is_cross_compiler to save on calls to 'test'.
958 if test x
"${host}" = x
"${target}" ; then
961 is_cross_compiler
=yes
964 # Find the build and target subdir names.
965 case ${build_alias} in
966 "") build_noncanonical
=${build} ;;
967 *) build_noncanonical
=${build_alias} ;;
970 case ${host_alias} in
971 "") host_noncanonical
=${build_noncanonical} ;;
972 *) host_noncanonical
=${host_alias} ;;
975 case ${target_alias} in
976 "") target_noncanonical
=${host_noncanonical} ;;
977 *) target_noncanonical
=${target_alias} ;;
980 # Prefix 'build-' so this never conflicts with target_subdir.
981 build_subdir
="build-${build_noncanonical}"
982 # Not really a subdirectory, but here for completeness.
985 target_subdir
=${target_noncanonical}
988 # Skipdirs are removed silently.
990 # Noconfigdirs are removed loudly.
994 # Make sure we don't let GNU ld be added if we didn't want it.
995 if test x
$with_gnu_ld = xno
; then
997 noconfigdirs
="$noconfigdirs ld"
1001 # Make sure we don't let GNU as be added if we didn't want it.
1002 if test x
$with_gnu_as = xno
; then
1004 noconfigdirs
="$noconfigdirs gas"
1007 # some tools are so dependent upon X11 that if we're not building with X,
1008 # it's not even worth trying to configure, much less build, that tool.
1011 yes |
"") ;; # the default value for this tree is that X11 is available
1013 skipdirs
="${skipdirs} tk tix itcl libgui"
1014 # We won't be able to build gdbtk without X.
1017 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1020 # Some tools are only suitable for building in a "native" situation.
1021 # Remove these if host!=target.
1022 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"
1024 # Similarly, some are only suitable for cross toolchains.
1025 # Remove these if host=target.
1026 cross_only
="target-libgloss target-newlib target-opcodes"
1028 case $is_cross_compiler in
1029 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1030 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1033 # If both --with-headers and --with-libs are specified, default to
1035 if test x
"${with_headers}" != x
&& test x
"${with_headers} != xno \
1036 && test x"${with_libs}" != x && test x"${with_libs} != xno
; then
1037 if test x
"${with_newlib}" = x
; then
1042 # Recognize --with-newlib/--without-newlib.
1043 case ${with_newlib} in
1044 no
) skipdirs
="${skipdirs} target-newlib" ;;
1045 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1048 # Configure extra directories which are host specific
1052 configdirs
="$configdirs libtermcap" ;;
1055 # Remove more programs from consideration, based on the host or
1056 # target this usually means that a port of the program doesn't
1061 noconfigdirs
="$noconfigdirs byacc"
1063 i
[3456789]86-*-vsta)
1064 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext"
1066 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1067 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi"
1069 i
[3456789]86-*-mingw32*)
1070 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv"
1071 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1073 i
[3456789]86-*-beos*)
1074 noconfigdirs
="$noconfigdirs tk itcl tix libgui gdb"
1077 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1080 noconfigdirs
="$noconfigdirs rcs"
1083 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv"
1086 noconfigdirs
="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
1089 noconfigdirs
="$noconfigdirs tk itcl tix libgui"
1093 # Check whether --with-libbanshee or --without-libbanshee was given.
1094 if test "${with_libbanshee+set}" = set; then
1095 withval
="$with_libbanshee"
1099 case ${with_libbanshee} in
1101 noconfigdirs
="$noconfigdirs libbanshee" ;;
1106 { echo "configure: error: --with-libbanshee can only be empty, "yes" or "no
" (empty defaults to "yes"." 1>&2; exit 1; }
1109 # Check whether --enable-libada or --disable-libada was given.
1110 if test "${enable_libada+set}" = set; then
1111 enableval
="$enable_libada"
1112 ENABLE_LIBADA
=$enableval
1117 if test "${ENABLE_LIBADA}" != "yes" ; then
1118 noconfigdirs
="$noconfigdirs target-libada"
1121 # Save it here so that, even in case of --enable-libgcj, if the Java
1122 # front-end isn't enabled, we still get libgcj disabled.
1123 libgcj_saved
=$libgcj
1124 case $enable_libgcj in
1126 # If we reset it here, it won't get added to noconfigdirs in the
1127 # target-specific build rules, so it will be forcibly enabled
1128 # (unless the Java language itself isn't enabled).
1132 # Make sure we get it printed in the list of not supported target libs.
1133 noconfigdirs
="$noconfigdirs ${libgcj}"
1138 # Allow --disable-libmudflap to exclude target-libmudflap
1139 case $enable_libmudflap in
1141 # By default it's enabled
1144 noconfigdirs
="$noconfigdirs target-libmudflap"
1151 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1154 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1155 noconfigdirs
="$noconfigdirs target-libobjc"
1158 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1159 noconfigdirs
="$noconfigdirs target-libobjc ${libgcj}"
1161 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1162 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1164 *-*-freebsd* |
*-*-kfreebsd*-gnu)
1165 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1166 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1167 && test -f /usr
/local
/include
/gmp.h
; then
1171 # Skip some stuff that's unsupported on some FreeBSD configurations.
1176 noconfigdirs
="$noconfigdirs ${libgcj}"
1181 # Remove unsupported stuff on all kaOS configurations.
1182 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-libf2c target-librx"
1183 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1184 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1185 noconfigdirs
="$noconfigdirs target-libgloss"
1188 # Skip some stuff on all NetBSD configurations.
1189 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1191 # Skip some stuff that's unsupported on some NetBSD configurations.
1193 i
*86-*-netbsdelf*) ;;
1194 arm
*-*-netbsdelf*) ;;
1196 noconfigdirs
="$noconfigdirs ${libgcj}"
1201 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
1204 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1206 h8300
*-*-* | h8500-
*-*)
1207 noconfigdirs
="$noconfigdirs target-libf2c"
1213 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1216 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
1219 # ld works, but does not support shared libraries.
1220 # newlib is not 64 bit ready. I'm not sure about fileutils.
1221 # gas doesn't generate exception information.
1222 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1225 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1228 # newlib is not 64 bit ready
1229 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1232 # newlib is not 64 bit ready
1233 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1236 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1239 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1241 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1242 noconfigdirs
="$noconfigdirs ${libgcj}"
1243 noconfigdirs
="$noconfigdirs target-examples"
1244 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1245 noconfigdirs
="$noconfigdirs tcl tix tk itcl libgui sim"
1246 noconfigdirs
="$noconfigdirs expect dejagnu"
1247 # the C++ libraries don't build on top of CE's C libraries
1248 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1249 noconfigdirs
="$noconfigdirs target-newlib"
1251 *-*-cygwin*) ;; # keep gdb and readline
1252 *) noconfigdirs
="$noconfigdirs gdb readline"
1257 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1259 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1260 noconfigdirs
="$noconfigdirs ${libgcj}"
1262 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf*)
1263 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1266 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1269 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1272 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1275 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1278 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1281 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1284 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1287 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1289 c4x-
*-* | tic4x-
*-*)
1290 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1292 c54x
*-*-* | tic54x-
*-*)
1293 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1296 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1299 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1302 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1305 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1308 noconfigdirs
="$noconfigdirs ${libgcj}"
1311 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj} target-libf2c"
1314 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} target-libf2c"
1316 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1317 # In this case, it's because the hppa64-linux target is for
1318 # the kernel only at this point and has no libc, and thus no
1319 # headers, crt*.o, etc., all of which are needed by these.
1320 noconfigdirs
="$noconfigdirs target-zlib"
1323 parisc
*-*-linux* | hppa
*-*-linux* | \
1325 hppa
*-*-openbsd* | \
1327 noconfigdirs
="$noconfigdirs ${libgcj}"
1328 # Do configure ld/binutils/gas for this case.
1331 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1332 # build on HP-UX 10.20.
1333 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1336 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1339 # No gdb support yet.
1340 noconfigdirs
="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1343 # No gdb or ld support yet.
1344 noconfigdirs
="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
1346 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1347 noconfigdirs
="$noconfigdirs ${libgcj}"
1349 i
[3456789]86-*-linux*)
1350 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1351 # not build java stuff by default.
1354 noconfigdirs
="$noconfigdirs ${libgcj}";;
1357 # This section makes it possible to build newlib natively on linux.
1358 # If we are using a cross compiler then don't configure newlib.
1359 if test x
${is_cross_compiler} != xno
; then
1360 noconfigdirs
="$noconfigdirs target-newlib"
1362 noconfigdirs
="$noconfigdirs target-libgloss"
1363 # If we are not using a cross compiler, do configure newlib.
1364 # Note however, that newlib will only be configured in this situation
1365 # if the --with-newlib option has been given, because otherwise
1366 # 'target-newlib' will appear in skipdirs.
1368 i
[3456789]86-*-mingw32*)
1369 target_configdirs
="$target_configdirs target-mingw"
1370 noconfigdirs
="$noconfigdirs expect target-libgloss ${libgcj}"
1372 # Can't build gdb for mingw32 if not native.
1374 i
[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1375 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl tix gnuserv"
1380 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1381 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1382 # always build newlib.
1383 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1385 # Can't build gdb for Cygwin if not native.
1387 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1388 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv"
1393 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1395 i
[3456789]86-*-sco3.2v5
*)
1396 # The linker does not yet know about weak symbols in COFF,
1397 # and is not configured to handle mixed ELF and COFF.
1398 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1400 i
[3456789]86-*-sco*)
1401 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1403 i
[3456789]86-*-solaris2*)
1404 noconfigdirs
="$noconfigdirs target-libgloss"
1406 i
[3456789]86-*-sysv4*)
1407 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1409 i
[3456789]86-*-beos*)
1410 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1413 noconfigdirs
="$noconfigdirs ${libgcj}"
1415 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1416 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1419 noconfigdirs
="$noconfigdirs ${libgcj}"
1422 noconfigdirs
="$noconfigdirs ${libgcj}"
1425 # The EPOC C++ environment does not support exceptions or rtti,
1426 # and so building libstdc++-v3 tends not to always work.
1427 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1430 noconfigdirs
="$noconfigdirs ${libgcj} gdb libgloss"
1433 noconfigdirs
="$noconfigdirs ${libgcj}"
1436 noconfigdirs
="$noconfigdirs ${libgcj}"
1439 # copied from rs6000-*-* entry
1440 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1442 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1443 target_configdirs
="$target_configdirs target-winsup"
1444 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}"
1445 # always build newlib.
1446 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1448 # This is temporary until we can link against shared libraries
1449 powerpcle-
*-solaris*)
1450 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}"
1453 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1456 noconfigdirs
="$noconfigdirs ${libgcj}"
1459 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1462 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1465 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1468 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1471 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1474 # Linking libjava exceeds command-line length limits on at least
1475 # IRIX 6.2, but not on IRIX 6.5.
1476 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1477 # <oldham@codesourcery.com>
1478 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1481 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1484 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1487 noconfigdirs
="$noconfigdirs gprof ${libgcj}" # same as generic mips
1490 noconfigdirs
="$noconfigdirs target-newlib ${libgcj}"
1493 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1496 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1499 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1503 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1504 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1505 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1506 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1508 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1511 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1514 noconfigdirs
="$noconfigdirs ${libgcj}"
1517 noconfigdirs
="$noconfigdirs ${libgcj}"
1520 noconfigdirs
="$noconfigdirs ${libgcj}"
1523 noconfigdirs
="$noconfigdirs ${libgcj}"
1524 if test x
${is_cross_compiler} != xno
; then
1525 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1530 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1533 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1536 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1539 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1542 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1545 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1548 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1551 noconfigdirs
="$noconfigdirs ${libgcj}"
1554 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1557 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1560 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1563 noconfigdirs
="$noconfigdirs ${libgcj}"
1567 # If we aren't building newlib, then don't build libgloss, since libgloss
1568 # depends upon some newlib header files.
1569 case "${noconfigdirs}" in
1570 *target-libgloss
*) ;;
1571 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1574 # Work in distributions that contain no compiler tools, like Autoconf.
1576 host_makefile_frag
=/dev
/null
1577 if test -d ${srcdir}/config
; then
1580 # Avoid "too much defining" errors from HPUX compiler.
1581 tentative_cc
="cc -Wp,-H256000"
1582 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1583 # If it's HP/UX ar, this should be harmless.
1587 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1590 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1591 # chokes on bfd, the compiler won't let you assign integers to enums, and
1592 # other problems. Defining CC to gcc is a questionable way to say "don't use
1593 # the apollo compiler" (the preferred version of GCC could be called cc,
1594 # or whatever), but I'm not sure leaving CC as cc is any better...
1595 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1596 # Used to have BISON=yacc.
1600 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1603 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1604 tentative_cc
="cc -Xa"
1605 host_makefile_frag
="config/mh-cxux"
1607 m88k-motorola-sysv
*)
1610 tentative_cc
="cc -Wf,-XNg1000"
1611 host_makefile_frag
="config/mh-decstation"
1614 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1615 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1616 host_makefile_frag
="config/mh-necv4"
1619 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1620 # environment. Also bump switch table size so that cp-parse will
1621 # compile. Bump string length limit so linker builds.
1622 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1625 host_makefile_frag
="config/mh-sysv4"
1628 # This is for a MIPS running RISC/os 4.52C.
1630 # This is needed for GDB, but needs to be in the top-level make because
1631 # if a library is compiled with the bsd headers and gets linked with the
1632 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1633 # a different size).
1634 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1635 # known except to select the sysv environment. Could we use /proc instead?
1636 # These "sysv environments" and "bsd environments" often end up being a pain.
1638 # This is not part of CFLAGS because perhaps not all C compilers have this
1640 tentative_cc
="cc -systype sysv"
1645 i
[3456789]86-*-sysv5*)
1646 host_makefile_frag
="config/mh-sysv5"
1648 i
[3456789]86-*-dgux*)
1649 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1650 host_makefile_frag
="config/mh-dgux386"
1652 i
[3456789]86-ncr-sysv4.3
*)
1653 # The MetaWare compiler will generate a copyright message unless you
1654 # turn it off by adding the -Hnocopyr flag.
1655 tentative_cc
="cc -Hnocopyr"
1657 i
[3456789]86-ncr-sysv4*)
1658 # for an NCR 3000 (i486/SVR4) system.
1659 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1660 # This compiler not only emits obnoxious copyright messages every time
1661 # you run it, but it chokes and dies on a whole bunch of GNU source
1662 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1663 tentative_cc
="/usr/ccs/ATT/cc"
1664 host_makefile_frag
="config/mh-ncr3000"
1666 i
[3456789]86-*-sco3.2v5
*)
1668 i
[3456789]86-*-sco*)
1669 # The native C compiler botches some simple uses of const. Unfortunately,
1670 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1671 tentative_cc
="cc -Dconst="
1672 host_makefile_frag
="config/mh-sco"
1674 i
[3456789]86-*-udk*)
1675 host_makefile_frag
="config/mh-sysv5"
1677 i
[3456789]86-*-solaris2*)
1678 host_makefile_frag
="config/mh-sysv4"
1680 i
[3456789]86-*-msdosdjgpp*)
1681 host_makefile_frag
="config/mh-djgpp"
1684 host_makefile_frag
="config/mh-cygwin"
1687 host_makefile_frag
="config/mh-mingw32"
1690 host_makefile_frag
="config/mh-interix"
1693 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1697 host_makefile_frag
="config/mh-solaris"
1700 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1701 # without overflowing the jump tables (-J says to use a 32 bit table)
1702 tentative_cc
="cc -J"
1705 tentative_cc
="cc -Wp,-H256000"
1708 tentative_cc
="cc -Wp,-H256000"
1711 # /bin/cc is less than useful for our purposes. Always use GCC
1712 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1713 host_makefile_frag
="config/mh-lynxrs6k"
1716 # /bin/cc is less than useful for our purposes. Always use GCC
1717 tentative_cc
="/bin/gcc"
1720 host_makefile_frag
="config/mh-sysv4"
1725 # If we aren't going to be using gcc, see if we can extract a definition
1726 # of CC from the fragment.
1727 # Actually, use the 'pre-extracted' version above.
1728 if test -z "${CC}" && test "${build}" = "${host}" ; then
1729 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1731 for dir
in $PATH; do
1732 test -z "$dir" && dir
=.
1733 if test -f $dir/gcc
; then
1739 if test -z "${found}" && test -n "${tentative_cc}" ; then
1744 if test "${build}" != "${host}" ; then
1745 # If we are doing a Canadian Cross, in which the host and build systems
1746 # are not the same, we set reasonable default values for the tools.
1748 BISON
=${BISON-bison}
1749 CC
=${CC-${host_alias}-gcc}
1750 CFLAGS
=${CFLAGS-"-g -O2"}
1751 CXX
=${CXX-${host_alias}-c++}
1752 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1753 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1754 CC_FOR_TARGET
=${CC_FOR_TARGET-${target_alias}-gcc}
1755 CXX_FOR_TARGET
=${CXX_FOR_TARGET-${target_alias}-c++}
1756 GCJ_FOR_TARGET
=${GCJ_FOR_TARGET-${target_alias}-gcj}
1757 GCC_FOR_TARGET
=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
1758 BUILD_PREFIX
=${build_alias}-
1759 BUILD_PREFIX_1
=${build_alias}-
1760 MAKEINFO
=${MAKEINFO-makeinfo}
1762 if test -z "${YACC}" ; then
1763 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1764 for dir
in $PATH; do
1765 test -z "$dir" && dir
=.
1766 if test -f $dir/bison
; then
1770 if test -f $dir/byacc
; then
1774 if test -f $dir/yacc; then
1780 if test -z "${YACC}" ; then
1785 if test -z "${LEX}" ; then
1786 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1787 for dir
in $PATH; do
1788 test -z "$dir" && dir
=.
1789 if test -f $dir/flex
; then
1793 if test -f $dir/lex; then
1803 # Set reasonable default values for some tools even if not Canadian.
1804 # Of course, these are different reasonable default values, originally
1805 # specified directly in the Makefile.
1806 # We don't export, so that autoconf can do its job.
1807 # Note that all these settings are above the fragment inclusion point
1808 # in Makefile.in, so can still be overridden by fragments.
1809 # This is all going to change when we autoconfiscate...
1811 BISON
="\$(USUAL_BISON)"
1812 CC_FOR_BUILD
="\$(CC)"
1813 GCC_FOR_TARGET
="\$(USUAL_GCC_FOR_TARGET)"
1815 BUILD_PREFIX_1
=loser-
1816 MAKEINFO
="\$(USUAL_MAKEINFO)"
1818 YACC
="\$(USUAL_YACC)"
1820 # If CC is still not set, try to get gcc.
1822 if test -z "${CC}" ; then
1823 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1824 for dir
in $PATH; do
1825 test -z "$dir" && dir
=.
1826 if test -f $dir/gcc
; then
1829 echo 'void f(){}' > conftest.c
1830 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1831 CFLAGS
=${CFLAGS-"-g -O2"}
1832 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1834 CFLAGS
=${CFLAGS-"-O2"}
1835 CXXFLAGS
=${CXXFLAGS-"-O2"}
1844 # Determine if we are using gcc.
1845 cat > conftest.c
<<EOF
1850 if ${CC} -E conftest.c |
grep yes >/dev
/null
2>&1; then
1854 if test -z "${CFLAGS}"; then
1855 # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
1856 # is set to a version of gcc.
1857 if test "$cc_prog_is_gcc" = yes; then
1858 echo 'void f(){}' > conftest.c
1859 if test -z "`${CC} -g -c conftest.c 2>&1`"; then
1860 CFLAGS
=${CFLAGS-"-g -O2"}
1861 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1863 CFLAGS
=${CFLAGS-"-O2"}
1864 CXXFLAGS
=${CXXFLAGS-"-O2"}
1871 # We must set the default linker to the linker used by gcc for the correct
1872 # operation of libtool. If LD is not defined and we are using gcc, try to
1873 # set the LD default to the ld used by gcc.
1874 if test -z "$LD"; then
1875 if test "$cc_prog_is_gcc" = yes; then
1878 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
1880 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
1882 case $gcc_prog_ld in
1883 # Accept absolute paths.
1884 [\\/]* |
[A-Za-z
]:[\\/]*)
1885 LD
="$gcc_prog_ld" ;;
1891 CFLAGS
=${CFLAGS-"-g"}
1892 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1895 if test $host != $build; then
1896 ac_tool_prefix
=${host_alias}-
1901 # Extract the first word of "gcc", so it can be a program name with args.
1902 set dummy gcc
; ac_word
=$2
1903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1904 echo "configure:1905: checking for $ac_word" >&5
1905 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 if test -n "$CC"; then
1909 ac_cv_prog_CC
="$CC" # Let the user override the test.
1911 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1913 for ac_dir
in $ac_dummy; do
1914 test -z "$ac_dir" && ac_dir
=.
1915 if test -f $ac_dir/$ac_word; then
1924 if test -n "$CC"; then
1925 echo "$ac_t""$CC" 1>&6
1927 echo "$ac_t""no" 1>&6
1930 if test -z "$CC"; then
1931 # Extract the first word of "cc", so it can be a program name with args.
1932 set dummy cc
; ac_word
=$2
1933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1934 echo "configure:1935: checking for $ac_word" >&5
1935 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
1938 if test -n "$CC"; then
1939 ac_cv_prog_CC
="$CC" # Let the user override the test.
1941 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1944 for ac_dir
in $ac_dummy; do
1945 test -z "$ac_dir" && ac_dir
=.
1946 if test -f $ac_dir/$ac_word; then
1947 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1948 ac_prog_rejected
=yes
1956 if test $ac_prog_rejected = yes; then
1957 # We found a bogon in the path, so make sure we never use it.
1958 set dummy
$ac_cv_prog_CC
1960 if test $# -gt 0; then
1961 # We chose a different compiler from the bogus one.
1962 # However, it has the same basename, so the bogon will be chosen
1963 # first if we set CC to just the basename; use the full file name.
1965 set dummy
"$ac_dir/$ac_word" "$@"
1973 if test -n "$CC"; then
1974 echo "$ac_t""$CC" 1>&6
1976 echo "$ac_t""no" 1>&6
1979 if test -z "$CC"; then
1980 case "`uname -s`" in
1982 # Extract the first word of "cl", so it can be a program name with args.
1983 set dummy cl
; ac_word
=$2
1984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1985 echo "configure:1986: checking for $ac_word" >&5
1986 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC
="$CC" # Let the user override the test.
1992 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1994 for ac_dir
in $ac_dummy; do
1995 test -z "$ac_dir" && ac_dir
=.
1996 if test -f $ac_dir/$ac_word; then
2005 if test -n "$CC"; then
2006 echo "$ac_t""$CC" 1>&6
2008 echo "$ac_t""no" 1>&6
2013 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2016 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2017 echo "configure:2018: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2021 ac_cpp
='$CPP $CPPFLAGS'
2022 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2023 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2024 cross_compiling
=$ac_cv_prog_cc_cross
2026 cat > conftest.
$ac_ext << EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2033 if { (eval echo configure
:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2034 ac_cv_prog_cc_works
=yes
2035 # If we can't run a trivial program, we are probably using a cross compiler.
2036 if (.
/conftest
; exit) 2>/dev
/null
; then
2037 ac_cv_prog_cc_cross
=no
2039 ac_cv_prog_cc_cross
=yes
2042 echo "configure: failed program was:" >&5
2043 cat conftest.
$ac_ext >&5
2044 ac_cv_prog_cc_works
=no
2048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2049 ac_cpp
='$CPP $CPPFLAGS'
2050 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2051 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2052 cross_compiling
=$ac_cv_prog_cc_cross
2054 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2055 if test $ac_cv_prog_cc_works = no
; then
2056 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2058 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2059 echo "configure:2060: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2060 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2061 cross_compiling
=$ac_cv_prog_cc_cross
2063 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2064 echo "configure:2065: checking whether we are using GNU C" >&5
2065 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2068 cat > conftest.c
<<EOF
2073 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2080 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2082 if test $ac_cv_prog_gcc = yes; then
2088 ac_test_CFLAGS
="${CFLAGS+set}"
2089 ac_save_CFLAGS
="$CFLAGS"
2091 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2092 echo "configure:2093: checking whether ${CC-cc} accepts -g" >&5
2093 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 echo 'void f(){}' > conftest.c
2097 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2106 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2107 if test "$ac_test_CFLAGS" = set; then
2108 CFLAGS
="$ac_save_CFLAGS"
2109 elif test $ac_cv_prog_cc_g = yes; then
2110 if test "$GCC" = yes; then
2116 if test "$GCC" = yes; then
2125 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2126 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2128 echo "configure:2129: checking for $ac_word" >&5
2129 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2130 echo $ac_n "(cached) $ac_c" 1>&6
2132 if test -n "$GNATBIND"; then
2133 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2135 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2137 for ac_dir
in $ac_dummy; do
2138 test -z "$ac_dir" && ac_dir
=.
2139 if test -f $ac_dir/$ac_word; then
2140 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2147 GNATBIND
="$ac_cv_prog_GNATBIND"
2148 if test -n "$GNATBIND"; then
2149 echo "$ac_t""$GNATBIND" 1>&6
2151 echo "$ac_t""no" 1>&6
2155 if test -z "$ac_cv_prog_GNATBIND"; then
2156 if test -n "$ac_tool_prefix"; then
2157 # Extract the first word of "gnatbind", so it can be a program name with args.
2158 set dummy gnatbind
; ac_word
=$2
2159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2160 echo "configure:2161: checking for $ac_word" >&5
2161 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 if test -n "$GNATBIND"; then
2165 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2167 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2169 for ac_dir
in $ac_dummy; do
2170 test -z "$ac_dir" && ac_dir
=.
2171 if test -f $ac_dir/$ac_word; then
2172 ac_cv_prog_GNATBIND
="gnatbind"
2177 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2180 GNATBIND
="$ac_cv_prog_GNATBIND"
2181 if test -n "$GNATBIND"; then
2182 echo "$ac_t""$GNATBIND" 1>&6
2184 echo "$ac_t""no" 1>&6
2192 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2193 echo "configure:2194: checking whether compiler driver understands Ada" >&5
2194 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2197 cat >conftest.adb
<<EOF
2198 procedure conftest is begin null; end conftest;
2200 acx_cv_cc_gcc_supports_ada
=no
2201 # There is a bug in old released versions of GCC which causes the
2202 # driver to exit successfully when the appropriate language module
2203 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2204 # Therefore we must check for the error message as well as an
2205 # unsuccessful exit.
2206 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2207 # given a .adb file, but produce no object file. So we must check
2208 # if an object file was really produced to guard against this.
2209 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2210 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2211 acx_cv_cc_gcc_supports_ada
=yes
2217 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2219 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2225 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2226 echo "configure:2227: checking how to compare bootstrapped objects" >&5
2227 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2232 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2233 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2234 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2237 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2240 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2241 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2244 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2251 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2252 do_compare
="$gcc_cv_prog_cmp_skip"
2260 # Specify a location for gmp
2261 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2262 if test "${with_gmp_dir+set}" = set; then
2263 withval
="$with_gmp_dir"
2268 if test "x$with_gmp_dir" != x
&& test -f "$with_gmp_dir/gmp.h"; then
2269 gmpinc
="-I$with_gmp_dir"
2270 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2271 gmplibs
="$with_gmp_dir/.libs/libgmp.a"
2272 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2273 gmplibs
="$with_gmp_dir/_libs/libgmp.a"
2275 # One of the later tests will catch the error if neither library is present.
2278 # Check whether --with-gmp or --without-gmp was given.
2279 if test "${with_gmp+set}" = set; then
2285 if test "x$with_gmp" != x
&& test -d "$with_gmp"; then
2286 gmplibs
="-L$with_gmp/lib -lgmp"
2287 gmpinc
="-I$with_gmp/include"
2290 # Use system gmp if nothing else specified
2291 if test "x$gmplibs" = x
; then
2295 saved_CFLAGS
="$CFLAGS"
2296 CFLAGS
="$CFLAGS $gmpinc"
2297 # Check GMP actually works
2298 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2299 echo "configure:2300: checking for correct version of gmp.h" >&5
2300 cat > conftest.
$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2306 #if __GNU_MP_VERSION < 3
2312 if { (eval echo configure
:2313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2314 echo "$ac_t""yes" 1>&6
2316 echo "configure: failed program was:" >&5
2317 cat conftest.
$ac_ext >&5
2319 echo "$ac_t""no" 1>&6; have_gmp
=no
2323 if test x
"$have_gmp" = xyes
; then
2324 echo $ac_n "checking for mpf_init in -lgmp""... $ac_c" 1>&6
2325 echo "configure:2326: checking for mpf_init in -lgmp" >&5
2328 LIBS
="$LIBS $gmplibs"
2329 cat > conftest.
$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2334 mpf_t n; mpf_init(n);
2337 if { (eval echo configure
:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2339 echo "$ac_t""yes" 1>&6
2341 echo "configure: failed program was:" >&5
2342 cat conftest.
$ac_ext >&5
2344 echo "$ac_t""no" 1>&6; have_gmp
=no
2348 CFLAGS
="$saved_CFLAGS"
2354 # By default, C is the only stage 1 language.
2358 # Figure out what language subdirectories are present.
2359 # Look if the user specified --enable-languages="..."; if not, use
2360 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2362 # NB: embedded tabs in this IF block -- do not untabify
2363 if test -d ${srcdir}/gcc
; then
2364 if test x
"${enable_languages+set}" != xset
; then
2365 if test x
"${LANGUAGES+set}" = xset
; then
2366 enable_languages
="${LANGUAGES}"
2367 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2369 enable_languages
=all
2372 if test x
"${enable_languages}" = x ||
2373 test x
"${enable_languages}" = xyes
;
2375 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2379 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2381 # First scan to see if an enabled language requires some other language.
2382 # We assume that a given config-lang.in will list all the language
2383 # front ends it requires, even if some are required indirectly.
2384 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2385 case ${lang_frag} in
2387 # The odd quoting in the next line works around
2388 # an apparent bug in bash 1.12 on linux.
2389 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2391 # From the config-lang.in, get $language, $lang_requires
2395 for other
in ${lang_requires} ; do
2396 case ,${enable_languages}, in
2400 echo " \`$other' language required by \`$language'; enabling" 1>&2
2401 enable_languages
="${enable_languages},${other}"
2409 new_enable_languages
=c
2410 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2412 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2413 case ${lang_frag} in
2415 # The odd quoting in the next line works around
2416 # an apparent bug in bash 1.12 on linux.
2417 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2419 # From the config-lang.in, get $language, $target_libs,
2420 # $lang_dirs, $boot_language, and $build_by_default
2428 # This is quite sensitive to the ordering of the case statement arms.
2429 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2431 echo "${lang_frag} doesn't set \$language." 1>&2
2435 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2438 *,${language},*:*:*:*)
2439 # Language was explicitly selected; include it.
2443 # 'all' was selected, but this is not a default language
2444 # so do not include it.
2448 # 'all' was selected and this is a default language; include it.
2456 # Disable language that need GMP if it isn't available.
2457 if test x
"$need_gmp" = xyes
&& test x
"$have_gmp" = xno
; then
2461 case $add_this_lang in
2463 # Remove language-dependent dirs.
2464 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2467 new_enable_languages
="$new_enable_languages,$language"
2468 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2469 case ${boot_language} in
2471 # Add to (comma-separated) list of stage 1 languages.
2472 stage1_languages
="${stage1_languages},${language}"
2481 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2482 if test "x$missing_languages" != x
; then
2483 { echo "configure: error:
2484 The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; }
2487 if test "x$new_enable_languages" != "x$enable_languages"; then
2488 echo The following languages will be built
: ${new_enable_languages}
2490 enable_languages
="$new_enable_languages"
2491 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2494 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
2495 # $target_configdirs.
2496 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2499 for dir
in .
$skipdirs $noconfigdirs ; do
2500 dirname=`echo $dir | sed -e s/target-//g`
2501 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2502 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2503 if test -r $srcdir/$dirname/configure
; then
2504 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2507 notsupp
="$notsupp $dir"
2511 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2512 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2513 if test -r $srcdir/$dirname/configure
; then
2514 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2517 notsupp
="$notsupp $dir"
2523 # Sometimes the tools are distributed with libiberty but with no other
2524 # libraries. In that case, we don't want to build target-libiberty.
2525 if test -n "${target_configdirs}" ; then
2527 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2528 if test "$i" != "libiberty" ; then
2529 if test -r $srcdir/$i/configure
; then
2535 if test -z "${others}" ; then
2540 # Quietly strip out all directories which aren't configurable in this tree.
2541 # This relies on all configurable subdirectories being autoconfiscated, which
2543 configdirs_all
="$configdirs"
2545 for i
in ${configdirs_all} ; do
2546 if test -f ${srcdir}/$i/configure
; then
2547 configdirs
="${configdirs} $i"
2550 target_configdirs_all
="$target_configdirs"
2552 for i
in ${target_configdirs_all} ; do
2553 j
=`echo $i | sed -e s/target-//g`
2554 if test -f ${srcdir}/$j/configure
; then
2555 target_configdirs
="${target_configdirs} $i"
2559 # Produce a warning message for the subdirs we can't configure.
2560 # This isn't especially interesting in the Cygnus tree, but in the individual
2561 # FSF releases, it's important to let people know when their machine isn't
2562 # supported by the one or two programs in a package.
2564 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2565 # If $appdirs is non-empty, at least one of those directories must still
2566 # be configured, or we error out. (E.g., if the gas release supports a
2567 # specified target in some subdirs but not the gas subdir, we shouldn't
2568 # pretend that all is well.)
2569 if test -n "$appdirs" ; then
2570 for dir
in $appdirs ; do
2571 if test -r $dir/Makefile.
in ; then
2572 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2576 if echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2582 if test -n "$appdirs" ; then
2583 echo "*** This configuration is not supported by this package." 1>&2
2587 # Okay, some application will build, or we don't care to check. Still
2588 # notify of subdirs not getting built.
2589 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2590 echo " ${notsupp}" 1>&2
2591 echo " (Any other directories should still work fine.)" 1>&2
2601 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2602 # the named directory are copied to $(tooldir)/sys-include.
2603 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2604 if test x
${is_cross_compiler} = xno
; then
2605 echo 1>&2 '***' --with-headers is only supported when cross compiling
2608 if test x
"${with_headers}" != xyes
; then
2609 case "${exec_prefixoption}" in
2611 *) x
=${exec_prefix} ;;
2613 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2617 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2618 # the name directories are copied to $(tooldir)/lib. Multiple directories
2620 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2621 if test x
${is_cross_compiler} = xno
; then
2622 echo 1>&2 '***' --with-libs is only supported when cross compiling
2625 if test x
"${with_libs}" != xyes
; then
2626 # Copy the libraries in reverse order, so that files in the first named
2627 # library override files in subsequent libraries.
2628 case "${exec_prefixoption}" in
2630 *) x
=${exec_prefix} ;;
2632 for l
in ${with_libs}; do
2633 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2638 # Handle ${copy_dirs}
2639 set fnord
${copy_dirs}
2641 while test $# != 0 ; do
2642 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2645 echo Copying
$1 to
$2
2647 # Use the install script to create the directory and all required
2648 # parent directories.
2649 if test -d $2 ; then
2653 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2656 # Copy the directory, assuming we have tar.
2657 # FIXME: Should we use B in the second tar? Not all systems support it.
2658 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2660 # It is the responsibility of the user to correctly adjust all
2661 # symlinks. If somebody can figure out how to handle them correctly
2662 # here, feel free to add the code.
2669 extra_arflags_for_target
=
2670 extra_nmflags_for_target
=
2671 extra_ranlibflags_for_target
=
2672 target_makefile_frag
=/dev
/null
2674 i
[3456789]86-*-netware*)
2675 target_makefile_frag
="config/mt-netware"
2678 target_makefile_frag
="config/mt-netware"
2681 target_makefile_frag
="config/mt-linux"
2683 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2684 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2685 # commands to handle both 32-bit and 64-bit objects. These flags are
2686 # harmless if we're using GNU nm or ar.
2687 extra_arflags_for_target
=" -X32_64"
2688 extra_nmflags_for_target
=" -B -X32_64"
2691 # ranlib from Darwin requires the -c flag to look at common symbols.
2692 extra_ranlibflags_for_target
=" -c"
2694 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2695 target_makefile_frag
="config/mt-wince"
2699 alphaieee_frag
=/dev
/null
2702 # This just makes sure to use the -mieee option to build target libs.
2703 # This should probably be set individually by each library.
2704 alphaieee_frag
="config/mt-alphaieee"
2708 # If --enable-target-optspace always use -Os instead of -O2 to build
2709 # the target libraries, similarly if it is not specified, use -Os
2710 # on selected platforms.
2711 ospace_frag
=/dev
/null
2712 case "${enable_target_optspace}:${target}" in
2714 ospace_frag
="config/mt-ospace"
2717 ospace_frag
="config/mt-d30v"
2719 :m32r-
* |
:d10v-
* |
:fr30-
*)
2720 ospace_frag
="config/mt-ospace"
2725 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2729 # Set with_gnu_as and with_gnu_ld as appropriate.
2731 # This is done by determining whether or not the appropriate directory
2732 # is available, and by checking whether or not specific configurations
2733 # have requested that this magic not happen.
2735 # The command line options always override the explicit settings in
2736 # configure.in, and the settings in configure.in override this magic.
2738 # If the default for a toolchain is to use GNU as and ld, and you don't
2739 # want to do that, then you should use the --without-gnu-as and
2740 # --without-gnu-ld options for the configure script.
2742 if test x
${use_gnu_as} = x
&&
2743 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2745 extra_host_args
="$extra_host_args --with-gnu-as"
2748 if test x
${use_gnu_ld} = x
&&
2749 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2751 extra_host_args
="$extra_host_args --with-gnu-ld"
2754 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2755 # can detect this case.
2757 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2759 extra_host_args
="$extra_host_args --with-newlib"
2762 if test x
${with_libbanshee} = xyes
&& echo " ${configdirs} " |
grep " libbanshee " >/dev
/null
2>&1; then
2763 extra_host_args
="$extra_host_args --with-libbanshee"
2766 # Default to using --with-stabs for certain targets.
2767 if test x
${with_stabs} = x
; then
2771 mips
*-*-* | alpha
*-*-osf*)
2773 extra_host_args
="${extra_host_args} --with-stabs"
2778 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2779 # them automatically.
2782 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2786 # Some systems (e.g., one of the i386-aix systems the gas testers are
2787 # using) don't handle "\$" correctly, so don't use it here.
2788 tooldir
='${exec_prefix}'/${target_alias}
2789 build_tooldir
=${tooldir}
2791 # Generate default definitions for YACC, M4, LEX. These are used if the
2792 # Makefile can't locate these programs in objdir.
2793 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2794 for ac_prog
in 'bison -y' byacc
yacc
2796 # Extract the first word of "$ac_prog", so it can be a program name with args.
2797 set dummy
$ac_prog; ac_word
=$2
2798 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2799 echo "configure:2800: checking for $ac_word" >&5
2800 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_YACC'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 if test -n "$DEFAULT_YACC"; then
2804 ac_cv_prog_DEFAULT_YACC
="$DEFAULT_YACC" # Let the user override the test.
2806 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2808 for ac_dir
in $ac_dummy; do
2809 test -z "$ac_dir" && ac_dir
=.
2810 if test -f $ac_dir/$ac_word; then
2811 ac_cv_prog_DEFAULT_YACC
="$ac_prog"
2818 DEFAULT_YACC
="$ac_cv_prog_DEFAULT_YACC"
2819 if test -n "$DEFAULT_YACC"; then
2820 echo "$ac_t""$DEFAULT_YACC" 1>&6
2822 echo "$ac_t""no" 1>&6
2825 test -n "$DEFAULT_YACC" && break
2827 test -n "$DEFAULT_YACC" || DEFAULT_YACC
="$MISSING bison"
2829 for ac_prog
in gm4 gnum4
m4
2831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2832 set dummy
$ac_prog; ac_word
=$2
2833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2834 echo "configure:2835: checking for $ac_word" >&5
2835 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_M4'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 if test -n "$DEFAULT_M4"; then
2839 ac_cv_prog_DEFAULT_M4
="$DEFAULT_M4" # Let the user override the test.
2841 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2843 for ac_dir
in $ac_dummy; do
2844 test -z "$ac_dir" && ac_dir
=.
2845 if test -f $ac_dir/$ac_word; then
2846 ac_cv_prog_DEFAULT_M4
="$ac_prog"
2853 DEFAULT_M4
="$ac_cv_prog_DEFAULT_M4"
2854 if test -n "$DEFAULT_M4"; then
2855 echo "$ac_t""$DEFAULT_M4" 1>&6
2857 echo "$ac_t""no" 1>&6
2860 test -n "$DEFAULT_M4" && break
2862 test -n "$DEFAULT_M4" || DEFAULT_M4
="$MISSING m4"
2864 for ac_prog
in flex
lex
2866 # Extract the first word of "$ac_prog", so it can be a program name with args.
2867 set dummy
$ac_prog; ac_word
=$2
2868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2869 echo "configure:2870: checking for $ac_word" >&5
2870 if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_LEX'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 if test -n "$DEFAULT_LEX"; then
2874 ac_cv_prog_DEFAULT_LEX
="$DEFAULT_LEX" # Let the user override the test.
2876 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2878 for ac_dir
in $ac_dummy; do
2879 test -z "$ac_dir" && ac_dir
=.
2880 if test -f $ac_dir/$ac_word; then
2881 ac_cv_prog_DEFAULT_LEX
="$ac_prog"
2888 DEFAULT_LEX
="$ac_cv_prog_DEFAULT_LEX"
2889 if test -n "$DEFAULT_LEX"; then
2890 echo "$ac_t""$DEFAULT_LEX" 1>&6
2892 echo "$ac_t""no" 1>&6
2895 test -n "$DEFAULT_LEX" && break
2897 test -n "$DEFAULT_LEX" || DEFAULT_LEX
="$MISSING flex"
2900 # Create a .gdbinit file which runs the one in srcdir
2901 # and tells GDB to look there for source files.
2903 if test -r ${srcdir}/.gdbinit
; then
2906 *) cat > .
/.gdbinit
<<EOF
2910 source ${srcdir}/.gdbinit
2916 # Make sure that the compiler is able to generate an executable. If it
2917 # can't, we are probably in trouble. We don't care whether we can run the
2918 # executable--we might be using a cross compiler--we only care whether it
2919 # can be created. At this point the main configure script has set CC.
2921 echo "int main () { return 0; }" > conftest.c
2922 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2923 if test $?
= 0 ; then
2924 if test -s conftest ||
test -s conftest.exe
; then
2930 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2931 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2938 # The Solaris /usr/ucb/cc compiler does not appear to work.
2940 sparc-sun-solaris2
*)
2941 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
2942 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2944 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
2945 if test -d /opt
/cygnus
/bin
; then
2946 if test "$could_use" = "" ; then
2947 could_use
="/opt/cygnus/bin"
2949 could_use
="$could_use or /opt/cygnus/bin"
2952 if test "$could_use" = "" ; then
2953 echo "Warning: compilation may fail because you're using"
2954 echo "/usr/ucb/cc. You should change your PATH or CC "
2955 echo "variable and rerun configure."
2957 echo "Warning: compilation may fail because you're using"
2958 echo "/usr/ucb/cc, when you should use the C compiler from"
2959 echo "$could_use. You should change your"
2960 echo "PATH or CC variable and rerun configure."
2966 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
2967 # binutils tools will find libbfd.so.
2968 case "${enable_shared}" in
2969 no |
"") SET_LIB_PATH
= ;;
2970 *) SET_LIB_PATH
="\$(REALLY_SET_LIB_PATH)" ;;
2974 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
2975 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
2978 # Record target_configdirs and the configure arguments for target and
2979 # build configuration in Makefile.
2980 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2982 # This is the final value for target_configdirs. configdirs already
2983 # has its final value, as does build_modules. It's time to create some
2984 # lists of valid targets.
2987 configure_build_modules
=
2988 for module
in ${build_modules} ; do
2989 all_build_modules
=all-build-
${module}
2990 configure_build_modules
=configure-build-
${module}
2993 # Determine whether gdb needs tk/tcl or not.
2994 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2995 # and in that case we want gdb to be built without tk. Ugh!
2996 # In fact I believe gdb is the *only* package directly dependent on tk,
2997 # so we should be able to put the 'maybe's in unconditionally and
2998 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2999 # 100% sure that that's safe though.
3001 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui"
3002 case "$enable_gdbtk" in
3006 GDB_TK
="${gdb_tk}" ;;
3008 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3009 # distro. Eventually someone will fix this and move Insight, nee
3010 # gdbtk to a separate directory.
3011 if test -d ${srcdir}/gdb
/gdbtk
; then
3019 # Create the 'maybe dependencies'. This uses a temporary file.
3021 # While at that, we remove Makefiles if we were started for recursive
3022 # configuration, so that the top-level Makefile reconfigures them,
3023 # like we used to do when configure itself was recursive.
3025 echo '# maybedep.tmp' > maybedep.tmp
3027 # Make-targets which may need maybe dependencies.
3028 mts
="configure all install check clean distclean dvi info install-info"
3029 mts
="${mts} installcheck mostlyclean maintainer-clean TAGS"
3031 # Loop over modules and make-targets.
3032 for module
in ${build_modules} ; do
3033 if test -z "${no_recursion}" \
3034 && test -f ${build_subdir}/${module}/Makefile
; then
3035 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3036 rm -f ${build_subdir}/${module}/Makefile
3038 for mt
in ${mts} ; do
3040 install) ;; # No installing build modules.
3041 *) echo "maybe-${mt}-build-${module}: ${mt}-build-${module}" >> maybedep.tmp
;;
3045 for module
in ${configdirs} ; do
3046 if test -z "${no_recursion}" \
3047 && test -f ${module}/Makefile
; then
3048 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3049 rm -f ${module}/Makefile
3051 for mt
in ${mts} ; do
3052 echo "maybe-${mt}-${module}: ${mt}-${module}" >> maybedep.tmp
3055 for module
in ${target_configdirs} ; do
3056 if test -z "${no_recursion}" \
3057 && test -f ${target_subdir}/${module}/Makefile
; then
3058 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3059 rm -f ${target_subdir}/${module}/Makefile
3061 for mt
in ${mts} ; do
3062 echo "maybe-${mt}-target-${module}: ${mt}-target-${module}" >> maybedep.tmp
3065 maybe_dependencies
=maybedep.tmp
3068 # Create the serialization dependencies. This uses a temporary file.
3070 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3071 if test "${enable_serial_configure+set}" = set; then
3072 enableval
="$enable_serial_configure"
3077 case ${enable_serial_configure} in
3079 enable_serial_build_configure
=yes
3080 enable_serial_host_configure
=yes
3081 enable_serial_target_configure
=yes
3085 # These force 'configure's to be done one at a time, to avoid problems
3086 # with contention over a shared config.cache.
3088 echo '# serdep.tmp' > serdep.tmp
3090 test "x${enable_serial_build_configure}" = xyes
&&
3091 for item
in ${build_configdirs} ; do
3094 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3099 test "x${enable_serial_host_configure}" = xyes
&&
3100 for item
in ${configdirs} ; do
3103 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3108 test "x${enable_serial_target_configure}" = xyes
&&
3109 for item
in ${target_configdirs} ; do
3112 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3116 serialization_dependencies
=serdep.tmp
3119 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3120 # target and nonopt. These are the ones we might not want to pass
3121 # down to subconfigures. Also strip program-prefix, program-suffix,
3122 # and program-transform-name, so that we can pass down a consistent
3123 # program-transform-name. If autoconf has put single quotes around
3124 # any of these arguments (because they contain shell metacharacters)
3125 # then this will fail; in practice this only happens for
3126 # --program-transform-name, so be sure to override --program-transform-name
3127 # at the end of the argument list.
3128 # These will be expanded by make, so quote '$'.
3129 cat <<\EOF_SED
> conftestsed
3131 s
/ --c[a-z-
]*[= ][^
]*//g
3132 s
/ --sr[a-z-
]*[= ][^
]*//g
3133 s
/ --ho[a-z-
]*[= ][^
]*//g
3134 s
/ --bu[a-z-
]*[= ][^
]*//g
3135 s
/ --t[a-z-
]*[= ][^
]*//g
3136 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3137 s
/ -cache-file[= ][^
]*//g
3138 s
/ -srcdir[= ][^
]*//g
3139 s
/ -host[= ][^
]*//g
3140 s
/ -build[= ][^
]*//g
3141 s
/ -target[= ][^
]*//g
3142 s
/ -program-prefix[= ][^
]*//g
3143 s
/ -program-suffix[= ][^
]*//g
3144 s
/ -program-transform-name[= ][^
]*//g
3149 sed -f conftestsed <<EOF_SED > conftestsed.out
3150 ${ac_configure_args}
3152 baseargs=`cat conftestsed.out`
3153 rm -f conftestsed conftestsed.out
3155 # Add in --program-transform-name, after --program-prefix and
3156 # --program-suffix have been applied to it. Autoconf has already
3157 # doubled dollar signs and backslashes in program_transform_name; we want
3158 # the backslashes un-doubled, and then the entire thing wrapped in single
3159 # quotes, because this will be expanded first by make and then by the shell.
3160 # Also, because we want to override the logic in subdir configure scripts to
3161 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3162 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3163 ${program_transform_name}
3165 gcc_transform_name=`cat conftestsed.out`
3166 rm -f conftestsed.out
3167 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3169 # For the build-side libraries, we just need to pretend we're native
,
3170 # and not use the same cache file. Multilibs are neither needed nor
3172 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
3174 # For host modules, accept cache file option, or specification as blank.
3175 case "${cache_file}" in
3177 cache_file_option
="" ;;
3178 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3179 cache_file_option
="--cache-file=${cache_file}" ;;
3181 cache_file_option
="--cache-file=../${cache_file}" ;;
3184 # Host dirs don't like to share a cache file either, horribly enough.
3185 # This seems to be due to autoconf 2.5x stupidity.
3186 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3188 target_configargs
=${baseargs}
3190 # Passing a --with-cross-host argument lets the target libraries know
3191 # whether they are being built with a cross-compiler or being built
3192 # native. However, it would be better to use other mechanisms to make the
3193 # sorts of decisions they want to make on this basis. Please consider
3194 # this option to be deprecated. FIXME.
3195 if test x
${is_cross_compiler} = xyes
; then
3196 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3199 # Default to --enable-multilib.
3200 if test x
${enable_multilib} = x
; then
3201 target_configargs
="--enable-multilib ${target_configargs}"
3204 # Pass --with-newlib if appropriate. Note that target_configdirs has
3205 # changed from the earlier setting of with_newlib.
3206 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3207 target_configargs
="--with-newlib ${target_configargs}"
3210 # Different target subdirs use different values of certain variables
3211 # (notably CXX). Worse, multilibs use *lots* of different values.
3212 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3213 # it doesn't automatically accept command-line overrides of them.
3214 # This means it's not safe for target subdirs to share a cache file,
3215 # which is disgusting, but there you have it. Hopefully this can be
3216 # fixed in future. It's still worthwhile to use a cache file for each
3217 # directory. I think.
3219 # Pass the appropriate --host, --build, and --cache-file arguments.
3220 target_configargs
="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
3222 # provide a proper gxx_include_dir.
3223 # Note, if you change the default, make sure to fix both here and in
3224 # the gcc and libstdc++-v3 subdirectories.
3225 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
3226 case "${with_gxx_include_dir}" in
3228 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
3231 case "${enable_version_specific_runtime_libs}" in
3232 yes) gxx_include_dir
='${libsubdir}/include/c++' ;;
3234 .
${srcdir}/config.
if
3235 gxx_include_dir
='${prefix}/include/'${libstdcxx_incdir} ;;
3237 *) gxx_include_dir
=${with_gxx_include_dir} ;;
3241 case " $target_configdirs " in
3243 case " $target_configargs " in
3244 *" --with-newlib "*)
3247 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' ;;
3250 # If we're not building GCC, don't discard standard headers.
3251 if test -d ${srcdir}/gcc
; then
3252 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3254 if test "${build}" != "${host}"; then
3255 # On Canadian crosses, CC_FOR_TARGET will have already been set
3256 # by `configure', so we won't have an opportunity to add -Bgcc/
3257 # to it. This is right: we don't want to search that directory
3258 # for binaries, but we want the header files in there, so add
3260 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
3262 # Someone might think of using the pre-installed headers on
3263 # Canadian crosses, in case the installed compiler is not fully
3264 # compatible with the compiler being built. In this case, it
3265 # would be better to flag an error than risking having
3266 # incompatible object files being constructed. We can't
3267 # guarantee that an error will be flagged, but let's hope the
3268 # compiler will do it, when presented with incompatible header
3273 case "${target}-${is_cross_compiler}" in
3274 i
[3456789]86-*-linux*-no)
3275 # Here host == target, so we don't need to build gcc,
3276 # so we don't want to discard standard headers.
3277 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3280 # If we're building newlib, use its generic headers last, but search
3281 # for any libc-related directories first (so make it the last -B
3283 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3291 # Allow the user to override the flags for
3292 # our build compiler if desired.
3293 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3295 # On Canadian crosses, we'll be searching the right directories for
3296 # the previously-installed cross compiler, so don't bother to add
3297 # flags for directories within the install tree of the compiler
3298 # being built; programs in there won't even run.
3299 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3300 # Search for pre-installed headers if nothing else fits.
3301 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3304 if test "x
${use_gnu_ld}" = x &&
3305 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3306 # Arrange for us to find uninstalled linker scripts.
3307 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
3310 if test "x
${CC_FOR_TARGET+set}" = xset; then
3312 elif test -d ${srcdir}/gcc; then
3313 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
3314 elif test "$host" = "$target"; then
3315 CC_FOR_TARGET='$(CC)'
3317 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
3319 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3321 if test "x
${GCJ_FOR_TARGET+set}" = xset; then
3323 elif test -d ${srcdir}/gcc; then
3324 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
3325 elif test "$host" = "$target"; then
3326 GCJ_FOR_TARGET='gcj'
3328 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
3330 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3332 if test "x
${GFORTRAN_FOR_TARGET+set}" = xset; then
3334 elif test -d ${srcdir}/gcc; then
3335 GFORTRAN_FOR_TARGET='$$r/gcc/gfortran -B$$r/gcc/'
3336 elif test "$host" = "$target"; then
3337 GFORTRAN_FOR_TARGET='gfortran'
3339 GFORTRAN_FOR_TARGET=`echo gfortran | sed -e 's/x/x/' ${program_transform_name}`
3341 case $GFORTRAN_FOR_TARGET in
3342 *' $(FLAGS_FOR_TARGET)') ;;
3343 *) GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;;
3346 # Don't use libstdc++-v3's flags to configure/build itself.
3347 libstdcxx_flags='`test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3348 raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3350 if test "x
${CXX_FOR_TARGET+set}" = xset; then
3351 if test "x
${RAW_CXX_FOR_TARGET+set}" != xset; then
3352 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3354 elif test -d ${srcdir}/gcc; then
3355 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3356 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3357 # default whereas gcc does not.
3358 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3360 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
3361 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3362 elif test "$host" = "$target"; then
3363 CXX_FOR_TARGET='$(CXX)'
3364 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3366 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
3367 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3369 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3370 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3372 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3373 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3375 # We want to defer the evaluation of `cmd`s and shell variables in
3376 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3377 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3378 # quotes, but we still have to duplicate `$'s so that shell variables
3379 # can be expanded by the nested make as shell variables, not as make
3381 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3382 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3384 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
3385 CC_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${CC_FOR_TARGET}"
3386 GCJ_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${GCJ_FOR_TARGET}"
3387 GFORTRAN_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${GFORTRAN_FOR_TARGET}"
3388 CXX_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${qCXX_FOR_TARGET}"
3389 RAW_CXX_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${qRAW_CXX_FOR_TARGET}"
3390 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$
(STAGE_CC_WRAPPER
) ${qqCXX_FOR_TARGET}"
3391 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$
(STAGE_CC_WRAPPER
) ${qqRAW_CXX_FOR_TARGET}"
3393 # Makefile fragments.
3394 host_makefile_frag=${srcdir}/${host_makefile_frag}
3395 target_makefile_frag=${srcdir}/${target_makefile_frag}
3396 alphaieee_frag=${srcdir}/${alphaieee_frag}
3397 ospace_frag=${srcdir}/${ospace_frag}
3403 # Miscellanea: directories, flags, etc.
3416 # Build module lists & subconfigure args.
3421 # Host module lists & subconfigure args.
3425 # Target module lists & subconfigure args.
3439 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3440 ncn_target_tool_prefix=
3441 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3443 if test -n "$ncn_tool_prefix"; then
3444 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3445 set dummy ${ncn_tool_prefix}ar; ac_word=$2
3446 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3447 echo "configure
:3448: checking
for $ac_word" >&5
3448 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3449 echo $ac_n "(cached
) $ac_c" 1>&6
3451 if test -n "$AR"; then
3452 ac_cv_prog_AR="$AR" # Let the user override the test.
3454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3456 for ac_dir in $ac_dummy; do
3457 test -z "$ac_dir" && ac_dir=.
3458 if test -f $ac_dir/$ac_word; then
3459 ac_cv_prog_AR="${ncn_tool_prefix}ar"
3467 if test -n "$AR"; then
3468 echo "$ac_t""$AR" 1>&6
3470 echo "$ac_t""no
" 1>&6
3474 if test -z "$ac_cv_prog_AR" ; then
3475 if test $build = $host ; then
3477 # Extract the first word of "ar", so it can be a program name with args.
3478 set dummy ar; ac_word=$2
3479 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3480 echo "configure
:3481: checking
for $ac_word" >&5
3481 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
3482 echo $ac_n "(cached
) $ac_c" 1>&6
3484 if test -n "$ncn_cv_AR"; then
3485 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
3487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3489 for ac_dir in $ac_dummy; do
3490 test -z "$ac_dir" && ac_dir=.
3491 if test -f $ac_dir/$ac_word; then
3492 ac_cv_prog_ncn_cv_AR="ar"
3497 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3500 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3501 if test -n "$ncn_cv_AR"; then
3502 echo "$ac_t""$ncn_cv_AR" 1>&6
3504 echo "$ac_t""no
" 1>&6
3509 AR="${ncn_tool_prefix}ar"
3515 if test -n "$ncn_tool_prefix"; then
3516 # Extract the first word of "${ncn_tool_prefix}as
", so it can be a program name with args.
3517 set dummy ${ncn_tool_prefix}as; ac_word=$2
3518 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3519 echo "configure
:3520: checking
for $ac_word" >&5
3520 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3521 echo $ac_n "(cached
) $ac_c" 1>&6
3523 if test -n "$AS"; then
3524 ac_cv_prog_AS="$AS" # Let the user override the test.
3526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3528 for ac_dir in $ac_dummy; do
3529 test -z "$ac_dir" && ac_dir=.
3530 if test -f $ac_dir/$ac_word; then
3531 ac_cv_prog_AS="${ncn_tool_prefix}as
"
3539 if test -n "$AS"; then
3540 echo "$ac_t""$AS" 1>&6
3542 echo "$ac_t""no
" 1>&6
3546 if test -z "$ac_cv_prog_AS" ; then
3547 if test $build = $host ; then
3549 # Extract the first word of "as
", so it can be a program name with args.
3550 set dummy as; ac_word=$2
3551 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3552 echo "configure
:3553: checking
for $ac_word" >&5
3553 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
3554 echo $ac_n "(cached
) $ac_c" 1>&6
3556 if test -n "$ncn_cv_AS"; then
3557 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
3559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3561 for ac_dir in $ac_dummy; do
3562 test -z "$ac_dir" && ac_dir=.
3563 if test -f $ac_dir/$ac_word; then
3564 ac_cv_prog_ncn_cv_AS="as
"
3569 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as
"
3572 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3573 if test -n "$ncn_cv_AS"; then
3574 echo "$ac_t""$ncn_cv_AS" 1>&6
3576 echo "$ac_t""no
" 1>&6
3581 AS="${ncn_tool_prefix}as
"
3587 if test -n "$ncn_tool_prefix"; then
3588 # Extract the first word of "${ncn_tool_prefix}dlltool
", so it can be a program name with args.
3589 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3590 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3591 echo "configure
:3592: checking
for $ac_word" >&5
3592 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3593 echo $ac_n "(cached
) $ac_c" 1>&6
3595 if test -n "$DLLTOOL"; then
3596 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3600 for ac_dir in $ac_dummy; do
3601 test -z "$ac_dir" && ac_dir=.
3602 if test -f $ac_dir/$ac_word; then
3603 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool
"
3610 DLLTOOL="$ac_cv_prog_DLLTOOL"
3611 if test -n "$DLLTOOL"; then
3612 echo "$ac_t""$DLLTOOL" 1>&6
3614 echo "$ac_t""no
" 1>&6
3618 if test -z "$ac_cv_prog_DLLTOOL" ; then
3619 if test $build = $host ; then
3620 ncn_cv_DLLTOOL=$DLLTOOL
3621 # Extract the first word of "dlltool
", so it can be a program name with args.
3622 set dummy dlltool; ac_word=$2
3623 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3624 echo "configure
:3625: checking
for $ac_word" >&5
3625 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3626 echo $ac_n "(cached
) $ac_c" 1>&6
3628 if test -n "$ncn_cv_DLLTOOL"; then
3629 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
3631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3633 for ac_dir in $ac_dummy; do
3634 test -z "$ac_dir" && ac_dir=.
3635 if test -f $ac_dir/$ac_word; then
3636 ac_cv_prog_ncn_cv_DLLTOOL="dlltool
"
3641 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool
"
3644 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3645 if test -n "$ncn_cv_DLLTOOL"; then
3646 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3648 echo "$ac_t""no
" 1>&6
3651 DLLTOOL=$ncn_cv_DLLTOOL
3653 DLLTOOL="${ncn_tool_prefix}dlltool
"
3656 DLLTOOL="$ac_cv_prog_DLLTOOL"
3659 if test -n "$ncn_tool_prefix"; then
3660 # Extract the first word of "${ncn_tool_prefix}ld
", so it can be a program name with args.
3661 set dummy ${ncn_tool_prefix}ld; ac_word=$2
3662 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3663 echo "configure
:3664: checking
for $ac_word" >&5
3664 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3665 echo $ac_n "(cached
) $ac_c" 1>&6
3667 if test -n "$LD"; then
3668 ac_cv_prog_LD="$LD" # Let the user override the test.
3670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3672 for ac_dir in $ac_dummy; do
3673 test -z "$ac_dir" && ac_dir=.
3674 if test -f $ac_dir/$ac_word; then
3675 ac_cv_prog_LD="${ncn_tool_prefix}ld
"
3683 if test -n "$LD"; then
3684 echo "$ac_t""$LD" 1>&6
3686 echo "$ac_t""no
" 1>&6
3690 if test -z "$ac_cv_prog_LD" ; then
3691 if test $build = $host ; then
3693 # Extract the first word of "ld
", so it can be a program name with args.
3694 set dummy ld; ac_word=$2
3695 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3696 echo "configure
:3697: checking
for $ac_word" >&5
3697 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3698 echo $ac_n "(cached
) $ac_c" 1>&6
3700 if test -n "$ncn_cv_LD"; then
3701 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3705 for ac_dir in $ac_dummy; do
3706 test -z "$ac_dir" && ac_dir=.
3707 if test -f $ac_dir/$ac_word; then
3708 ac_cv_prog_ncn_cv_LD="ld
"
3713 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld
"
3716 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3717 if test -n "$ncn_cv_LD"; then
3718 echo "$ac_t""$ncn_cv_LD" 1>&6
3720 echo "$ac_t""no
" 1>&6
3725 LD="${ncn_tool_prefix}ld
"
3731 if test -n "$ncn_tool_prefix"; then
3732 # Extract the first word of "${ncn_tool_prefix}nm
", so it can be a program name with args.
3733 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3734 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3735 echo "configure
:3736: checking
for $ac_word" >&5
3736 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3737 echo $ac_n "(cached
) $ac_c" 1>&6
3739 if test -n "$NM"; then
3740 ac_cv_prog_NM="$NM" # Let the user override the test.
3742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3744 for ac_dir in $ac_dummy; do
3745 test -z "$ac_dir" && ac_dir=.
3746 if test -f $ac_dir/$ac_word; then
3747 ac_cv_prog_NM="${ncn_tool_prefix}nm
"
3755 if test -n "$NM"; then
3756 echo "$ac_t""$NM" 1>&6
3758 echo "$ac_t""no
" 1>&6
3762 if test -z "$ac_cv_prog_NM" ; then
3763 if test $build = $host ; then
3765 # Extract the first word of "nm
", so it can be a program name with args.
3766 set dummy nm; ac_word=$2
3767 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3768 echo "configure
:3769: checking
for $ac_word" >&5
3769 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3770 echo $ac_n "(cached
) $ac_c" 1>&6
3772 if test -n "$ncn_cv_NM"; then
3773 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3777 for ac_dir in $ac_dummy; do
3778 test -z "$ac_dir" && ac_dir=.
3779 if test -f $ac_dir/$ac_word; then
3780 ac_cv_prog_ncn_cv_NM="nm
"
3785 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm
"
3788 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3789 if test -n "$ncn_cv_NM"; then
3790 echo "$ac_t""$ncn_cv_NM" 1>&6
3792 echo "$ac_t""no
" 1>&6
3797 NM="${ncn_tool_prefix}nm
"
3803 if test -n "$ncn_tool_prefix"; then
3804 # Extract the first word of "${ncn_tool_prefix}ranlib
", so it can be a program name with args.
3805 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3806 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3807 echo "configure
:3808: checking
for $ac_word" >&5
3808 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3809 echo $ac_n "(cached
) $ac_c" 1>&6
3811 if test -n "$RANLIB"; then
3812 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3816 for ac_dir in $ac_dummy; do
3817 test -z "$ac_dir" && ac_dir=.
3818 if test -f $ac_dir/$ac_word; then
3819 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib
"
3826 RANLIB="$ac_cv_prog_RANLIB"
3827 if test -n "$RANLIB"; then
3828 echo "$ac_t""$RANLIB" 1>&6
3830 echo "$ac_t""no
" 1>&6
3834 if test -z "$ac_cv_prog_RANLIB" ; then
3835 if test $build = $host ; then
3836 ncn_cv_RANLIB=$RANLIB
3837 # Extract the first word of "ranlib
", so it can be a program name with args.
3838 set dummy ranlib; ac_word=$2
3839 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3840 echo "configure
:3841: checking
for $ac_word" >&5
3841 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3842 echo $ac_n "(cached
) $ac_c" 1>&6
3844 if test -n "$ncn_cv_RANLIB"; then
3845 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3849 for ac_dir in $ac_dummy; do
3850 test -z "$ac_dir" && ac_dir=.
3851 if test -f $ac_dir/$ac_word; then
3852 ac_cv_prog_ncn_cv_RANLIB="ranlib
"
3857 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3860 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3861 if test -n "$ncn_cv_RANLIB"; then
3862 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3864 echo "$ac_t""no
" 1>&6
3867 RANLIB=$ncn_cv_RANLIB
3872 RANLIB="$ac_cv_prog_RANLIB"
3875 if test -n "$ncn_tool_prefix"; then
3876 # Extract the first word of "${ncn_tool_prefix}windres
", so it can be a program name with args.
3877 set dummy ${ncn_tool_prefix}windres; ac_word=$2
3878 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3879 echo "configure
:3880: checking
for $ac_word" >&5
3880 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3881 echo $ac_n "(cached
) $ac_c" 1>&6
3883 if test -n "$WINDRES"; then
3884 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3888 for ac_dir in $ac_dummy; do
3889 test -z "$ac_dir" && ac_dir=.
3890 if test -f $ac_dir/$ac_word; then
3891 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres
"
3898 WINDRES="$ac_cv_prog_WINDRES"
3899 if test -n "$WINDRES"; then
3900 echo "$ac_t""$WINDRES" 1>&6
3902 echo "$ac_t""no
" 1>&6
3906 if test -z "$ac_cv_prog_WINDRES" ; then
3907 if test $build = $host ; then
3908 ncn_cv_WINDRES=$WINDRES
3909 # Extract the first word of "windres
", so it can be a program name with args.
3910 set dummy windres; ac_word=$2
3911 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3912 echo "configure
:3913: checking
for $ac_word" >&5
3913 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
3914 echo $ac_n "(cached
) $ac_c" 1>&6
3916 if test -n "$ncn_cv_WINDRES"; then
3917 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
3919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3921 for ac_dir in $ac_dummy; do
3922 test -z "$ac_dir" && ac_dir=.
3923 if test -f $ac_dir/$ac_word; then
3924 ac_cv_prog_ncn_cv_WINDRES="windres
"
3929 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres
"
3932 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
3933 if test -n "$ncn_cv_WINDRES"; then
3934 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
3936 echo "$ac_t""no
" 1>&6
3939 WINDRES=$ncn_cv_WINDRES
3941 WINDRES="${ncn_tool_prefix}windres
"
3944 WINDRES="$ac_cv_prog_WINDRES"
3947 if test -n "$ncn_tool_prefix"; then
3948 # Extract the first word of "${ncn_tool_prefix}objcopy
", so it can be a program name with args.
3949 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
3950 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3951 echo "configure
:3952: checking
for $ac_word" >&5
3952 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
3953 echo $ac_n "(cached
) $ac_c" 1>&6
3955 if test -n "$OBJCOPY"; then
3956 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3960 for ac_dir in $ac_dummy; do
3961 test -z "$ac_dir" && ac_dir=.
3962 if test -f $ac_dir/$ac_word; then
3963 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy
"
3970 OBJCOPY="$ac_cv_prog_OBJCOPY"
3971 if test -n "$OBJCOPY"; then
3972 echo "$ac_t""$OBJCOPY" 1>&6
3974 echo "$ac_t""no
" 1>&6
3978 if test -z "$ac_cv_prog_OBJCOPY" ; then
3979 if test $build = $host ; then
3980 ncn_cv_OBJCOPY=$OBJCOPY
3981 # Extract the first word of "objcopy
", so it can be a program name with args.
3982 set dummy objcopy; ac_word=$2
3983 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3984 echo "configure
:3985: checking
for $ac_word" >&5
3985 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
3986 echo $ac_n "(cached
) $ac_c" 1>&6
3988 if test -n "$ncn_cv_OBJCOPY"; then
3989 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
3991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3993 for ac_dir in $ac_dummy; do
3994 test -z "$ac_dir" && ac_dir=.
3995 if test -f $ac_dir/$ac_word; then
3996 ac_cv_prog_ncn_cv_OBJCOPY="objcopy
"
4001 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy
"
4004 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
4005 if test -n "$ncn_cv_OBJCOPY"; then
4006 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
4008 echo "$ac_t""no
" 1>&6
4011 OBJCOPY=$ncn_cv_OBJCOPY
4013 OBJCOPY="${ncn_tool_prefix}objcopy
"
4016 OBJCOPY="$ac_cv_prog_OBJCOPY"
4019 if test -n "$ncn_tool_prefix"; then
4020 # Extract the first word of "${ncn_tool_prefix}objdump
", so it can be a program name with args.
4021 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
4022 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4023 echo "configure
:4024: checking
for $ac_word" >&5
4024 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4025 echo $ac_n "(cached
) $ac_c" 1>&6
4027 if test -n "$OBJDUMP"; then
4028 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4032 for ac_dir in $ac_dummy; do
4033 test -z "$ac_dir" && ac_dir=.
4034 if test -f $ac_dir/$ac_word; then
4035 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump
"
4042 OBJDUMP="$ac_cv_prog_OBJDUMP"
4043 if test -n "$OBJDUMP"; then
4044 echo "$ac_t""$OBJDUMP" 1>&6
4046 echo "$ac_t""no
" 1>&6
4050 if test -z "$ac_cv_prog_OBJDUMP" ; then
4051 if test $build = $host ; then
4052 ncn_cv_OBJDUMP=$OBJDUMP
4053 # Extract the first word of "objdump
", so it can be a program name with args.
4054 set dummy objdump; ac_word=$2
4055 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4056 echo "configure
:4057: checking
for $ac_word" >&5
4057 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
4058 echo $ac_n "(cached
) $ac_c" 1>&6
4060 if test -n "$ncn_cv_OBJDUMP"; then
4061 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
4063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4065 for ac_dir in $ac_dummy; do
4066 test -z "$ac_dir" && ac_dir=.
4067 if test -f $ac_dir/$ac_word; then
4068 ac_cv_prog_ncn_cv_OBJDUMP="objdump
"
4073 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump
"
4076 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
4077 if test -n "$ncn_cv_OBJDUMP"; then
4078 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
4080 echo "$ac_t""no
" 1>&6
4083 OBJDUMP=$ncn_cv_OBJDUMP
4085 OBJDUMP="${ncn_tool_prefix}objdump
"
4088 OBJDUMP="$ac_cv_prog_OBJDUMP"
4101 if test -n "$ncn_target_tool_prefix"; then
4102 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
4103 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
4104 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4105 echo "configure
:4106: checking
for $ac_word" >&5
4106 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4107 echo $ac_n "(cached
) $ac_c" 1>&6
4109 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4110 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4114 for ac_dir in $ac_dummy; do
4115 test -z "$ac_dir" && ac_dir=.
4116 if test -f $ac_dir/$ac_word; then
4117 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4124 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4125 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4126 echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6
4128 echo "$ac_t""no
" 1>&6
4132 if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then
4133 if test $build = $target ; then
4134 ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET
4135 # Extract the first word of "ar", so it can be a program name with args.
4136 set dummy ar; ac_word=$2
4137 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4138 echo "configure
:4139: checking
for $ac_word" >&5
4139 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4140 echo $ac_n "(cached
) $ac_c" 1>&6
4142 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4143 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4147 for ac_dir in $ac_dummy; do
4148 test -z "$ac_dir" && ac_dir=.
4149 if test -f $ac_dir/$ac_word; then
4150 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4155 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4158 ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET"
4159 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4160 echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6
4162 echo "$ac_t""no
" 1>&6
4165 CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET
4167 CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4170 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4173 if test -n "$ncn_target_tool_prefix"; then
4174 # Extract the first word of "${ncn_target_tool_prefix}as
", so it can be a program name with args.
4175 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
4176 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4177 echo "configure
:4178: checking
for $ac_word" >&5
4178 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4179 echo $ac_n "(cached
) $ac_c" 1>&6
4181 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4182 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4186 for ac_dir in $ac_dummy; do
4187 test -z "$ac_dir" && ac_dir=.
4188 if test -f $ac_dir/$ac_word; then
4189 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as
"
4196 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4197 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4198 echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6
4200 echo "$ac_t""no
" 1>&6
4204 if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then
4205 if test $build = $target ; then
4206 ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET
4207 # Extract the first word of "as
", so it can be a program name with args.
4208 set dummy as; ac_word=$2
4209 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4210 echo "configure
:4211: checking
for $ac_word" >&5
4211 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4212 echo $ac_n "(cached
) $ac_c" 1>&6
4214 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4215 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4219 for ac_dir in $ac_dummy; do
4220 test -z "$ac_dir" && ac_dir=.
4221 if test -f $ac_dir/$ac_word; then
4222 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as
"
4227 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as
"
4230 ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET"
4231 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4232 echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6
4234 echo "$ac_t""no
" 1>&6
4237 CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET
4239 CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as
"
4242 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4245 if test -n "$ncn_target_tool_prefix"; then
4246 # Extract the first word of "${ncn_target_tool_prefix}dlltool
", so it can be a program name with args.
4247 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4248 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4249 echo "configure
:4250: checking
for $ac_word" >&5
4250 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4251 echo $ac_n "(cached
) $ac_c" 1>&6
4253 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4254 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4258 for ac_dir in $ac_dummy; do
4259 test -z "$ac_dir" && ac_dir=.
4260 if test -f $ac_dir/$ac_word; then
4261 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool
"
4268 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4269 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4270 echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4272 echo "$ac_t""no
" 1>&6
4276 if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then
4277 if test $build = $target ; then
4278 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET
4279 # Extract the first word of "dlltool
", so it can be a program name with args.
4280 set dummy dlltool; ac_word=$2
4281 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4282 echo "configure
:4283: checking
for $ac_word" >&5
4283 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4284 echo $ac_n "(cached
) $ac_c" 1>&6
4286 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4287 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4291 for ac_dir in $ac_dummy; do
4292 test -z "$ac_dir" && ac_dir=.
4293 if test -f $ac_dir/$ac_word; then
4294 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool
"
4299 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool
"
4302 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"
4303 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4304 echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4306 echo "$ac_t""no
" 1>&6
4309 CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET
4311 CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool
"
4314 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4317 if test -n "$ncn_target_tool_prefix"; then
4318 # Extract the first word of "${ncn_target_tool_prefix}ld
", so it can be a program name with args.
4319 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4320 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4321 echo "configure
:4322: checking
for $ac_word" >&5
4322 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4323 echo $ac_n "(cached
) $ac_c" 1>&6
4325 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4326 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4330 for ac_dir in $ac_dummy; do
4331 test -z "$ac_dir" && ac_dir=.
4332 if test -f $ac_dir/$ac_word; then
4333 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld
"
4340 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4341 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4342 echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6
4344 echo "$ac_t""no
" 1>&6
4348 if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then
4349 if test $build = $target ; then
4350 ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET
4351 # Extract the first word of "ld
", so it can be a program name with args.
4352 set dummy ld; ac_word=$2
4353 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4354 echo "configure
:4355: checking
for $ac_word" >&5
4355 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4356 echo $ac_n "(cached
) $ac_c" 1>&6
4358 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4359 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4363 for ac_dir in $ac_dummy; do
4364 test -z "$ac_dir" && ac_dir=.
4365 if test -f $ac_dir/$ac_word; then
4366 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld
"
4371 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld
"
4374 ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET"
4375 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4376 echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6
4378 echo "$ac_t""no
" 1>&6
4381 CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET
4383 CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld
"
4386 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4389 if test -n "$ncn_target_tool_prefix"; then
4390 # Extract the first word of "${ncn_target_tool_prefix}nm
", so it can be a program name with args.
4391 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4392 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4393 echo "configure
:4394: checking
for $ac_word" >&5
4394 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4395 echo $ac_n "(cached
) $ac_c" 1>&6
4397 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4398 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4402 for ac_dir in $ac_dummy; do
4403 test -z "$ac_dir" && ac_dir=.
4404 if test -f $ac_dir/$ac_word; then
4405 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm
"
4412 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4413 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4414 echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6
4416 echo "$ac_t""no
" 1>&6
4420 if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then
4421 if test $build = $target ; then
4422 ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET
4423 # Extract the first word of "nm
", so it can be a program name with args.
4424 set dummy nm; ac_word=$2
4425 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4426 echo "configure
:4427: checking
for $ac_word" >&5
4427 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4428 echo $ac_n "(cached
) $ac_c" 1>&6
4430 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4431 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4435 for ac_dir in $ac_dummy; do
4436 test -z "$ac_dir" && ac_dir=.
4437 if test -f $ac_dir/$ac_word; then
4438 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm
"
4443 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm
"
4446 ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET"
4447 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4448 echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6
4450 echo "$ac_t""no
" 1>&6
4453 CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET
4455 CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm
"
4458 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4461 if test -n "$ncn_target_tool_prefix"; then
4462 # Extract the first word of "${ncn_target_tool_prefix}ranlib
", so it can be a program name with args.
4463 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4464 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4465 echo "configure
:4466: checking
for $ac_word" >&5
4466 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4467 echo $ac_n "(cached
) $ac_c" 1>&6
4469 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4470 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4474 for ac_dir in $ac_dummy; do
4475 test -z "$ac_dir" && ac_dir=.
4476 if test -f $ac_dir/$ac_word; then
4477 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib
"
4484 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4485 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4486 echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4488 echo "$ac_t""no
" 1>&6
4492 if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then
4493 if test $build = $target ; then
4494 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET
4495 # Extract the first word of "ranlib
", so it can be a program name with args.
4496 set dummy ranlib; 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_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4500 echo $ac_n "(cached
) $ac_c" 1>&6
4502 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4503 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_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_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib
"
4515 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":"
4518 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"
4519 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4520 echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4522 echo "$ac_t""no
" 1>&6
4525 CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET
4527 CONFIGURED_RANLIB_FOR_TARGET=":"
4530 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4533 if test -n "$ncn_target_tool_prefix"; then
4534 # Extract the first word of "${ncn_target_tool_prefix}windres
", so it can be a program name with args.
4535 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4536 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4537 echo "configure
:4538: checking
for $ac_word" >&5
4538 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4539 echo $ac_n "(cached
) $ac_c" 1>&6
4541 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4542 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4546 for ac_dir in $ac_dummy; do
4547 test -z "$ac_dir" && ac_dir=.
4548 if test -f $ac_dir/$ac_word; then
4549 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres
"
4556 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4557 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4558 echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4560 echo "$ac_t""no
" 1>&6
4564 if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then
4565 if test $build = $target ; then
4566 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET
4567 # Extract the first word of "windres
", so it can be a program name with args.
4568 set dummy windres; ac_word=$2
4569 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4570 echo "configure
:4571: checking
for $ac_word" >&5
4571 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4572 echo $ac_n "(cached
) $ac_c" 1>&6
4574 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4575 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4579 for ac_dir in $ac_dummy; do
4580 test -z "$ac_dir" && ac_dir=.
4581 if test -f $ac_dir/$ac_word; then
4582 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres
"
4587 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres
"
4590 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"
4591 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4592 echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4594 echo "$ac_t""no
" 1>&6
4597 CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET
4599 CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres
"
4602 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4616 # Fix up target tools.
4617 if test "x
${build}" = "x
${host}" ; then
4618 # In this case, the newly built tools can and should be used,
4619 # so we override the results of the autoconf tests.
4620 # This should really only happen when the tools are actually being built,
4621 # but that's a further refinement. The new build scheme, where
4622 # tools are built into a structure paralleling where they're installed,
4623 # should also eliminate all of this cleanly.
4624 AR_FOR_TARGET="\$
(USUAL_AR_FOR_TARGET
)"
4625 AS_FOR_TARGET="\$
(USUAL_AS_FOR_TARGET
)"
4626 DLLTOOL_FOR_TARGET="\$
(USUAL_DLLTOOL_FOR_TARGET
)"
4627 LD_FOR_TARGET="\$
(USUAL_LD_FOR_TARGET
)"
4628 NM_FOR_TARGET="\$
(USUAL_NM_FOR_TARGET
)"
4629 RANLIB_FOR_TARGET="\$
(USUAL_RANLIB_FOR_TARGET
)"
4630 WINDRES_FOR_TARGET="\$
(USUAL_WINDRES_FOR_TARGET
)"
4632 # Just use the ones we found.
4633 AR_FOR_TARGET="\$
(CONFIGURED_AR_FOR_TARGET
)"
4634 AS_FOR_TARGET="\$
(CONFIGURED_AS_FOR_TARGET
)"
4635 DLLTOOL_FOR_TARGET="\$
(CONFIGURED_DLLTOOL_FOR_TARGET
)"
4636 LD_FOR_TARGET="\$
(CONFIGURED_LD_FOR_TARGET
)"
4637 NM_FOR_TARGET="\$
(CONFIGURED_NM_FOR_TARGET
)"
4638 RANLIB_FOR_TARGET="\$
(CONFIGURED_RANLIB_FOR_TARGET
)"
4639 WINDRES_FOR_TARGET="\$
(CONFIGURED_WINDRES_FOR_TARGET
)"
4649 # Certain tools may need extra flags.
4650 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4651 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4652 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4654 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
4655 echo "configure
:4656: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
4656 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4657 if test "${enable_maintainer_mode+set}" = set; then
4658 enableval="$enable_maintainer_mode"
4659 USE_MAINTAINER_MODE=$enableval
4661 USE_MAINTAINER_MODE=no
4664 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4667 if test "$USE_MAINTAINER_MODE" = yes; then
4668 MAINTAINER_MODE_TRUE=
4669 MAINTAINER_MODE_FALSE='#'
4671 MAINTAINER_MODE_TRUE='#'
4672 MAINTAINER_MODE_FALSE=
4674 MAINT=$MAINTAINER_MODE_TRUE
4676 # ---------------------
4677 # GCC bootstrap support
4678 # ---------------------
4680 # Stage specific cflags for build.
4685 yes) stage1_cflags="-g -Wa,-J" ;;
4686 *) stage1_cflags="-g -J" ;;
4689 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
4690 # sources; use -no-cpp-precomp to get to GNU cpp.
4691 # Apple's GCC has bugs in designated initializer handling, so disable
4693 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
4698 # Enable -Werror in bootstrap stage2 and later.
4699 # Change the default to "no
" on release branches.
4700 # Check whether --enable-werror or --disable-werror was given.
4701 if test "${enable_werror+set}" = set; then
4702 enableval="$enable_werror"
4708 case ${enable_werror} in
4709 yes) stage2_werror_flag="--enable-werror-always" ;;
4710 *) stage2_werror_flag="" ;;
4715 cat > confcache <<\EOF
4716 # This file is a shell script that caches the results of configure
4717 # tests run on this system so they can be shared between configure
4718 # scripts and configure runs. It is not useful on other systems.
4719 # If it contains results you don't want to keep, you may remove or edit it.
4721 # By default, configure uses ./config.cache as the cache file,
4722 # creating it if it does not exist already. You can give configure
4723 # the --cache-file=FILE option to use a different cache file; that is
4724 # what configure does when it calls configure scripts in
4725 # subdirectories, so they share the cache.
4726 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4727 # config.status only pays attention to the cache file if you give it the
4728 # --recheck option to rerun configure.
4731 # The following way of writing the cache mishandles newlines in values,
4732 # but we know of no workaround that is simple, portable, and efficient.
4733 # So, don't put newlines in cache variables' values.
4734 # Ultrix sh set writes to stderr and can't be redirected directly,
4735 # and sets the high bit in the cache file unless we assign to the vars.
4737 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4739 # `set' does not quote correctly, so add quotes (double-quote substitution
4740 # turns \\\\ into \\, and sed turns \\ into \).
4742 -e "s
/'/'\\\\''/g
" \
4743 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
4746 # `set' quotes correctly as required by POSIX, so do not add quotes.
4747 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4750 if cmp -s $cache_file confcache; then
4753 if test -w $cache_file; then
4754 echo "updating cache
$cache_file"
4755 cat confcache > $cache_file
4757 echo "not updating unwritable cache
$cache_file"
4762 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4764 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
4765 # Let make expand exec_prefix.
4766 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
4768 # Any assignment to VPATH causes Sun make to only execute
4769 # the first set of double-colon rules, so remove it if not needed.
4770 # If there is a colon in the path, we need to keep it.
4771 if test "x
$srcdir" = x.; then
4772 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4775 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4777 # Transform confdefs.h into DEFS.
4778 # Protect against shell expansion while executing Makefile rules.
4779 # Protect against Makefile macro expansion.
4781 # If the first sed substitution is executed (which looks for macros that
4782 # take arguments), then we branch to the quote section. Otherwise,
4783 # look for a macro that doesn't take arguments.
4784 cat >confdef2opt.sed <<\_ACEOF
4787 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4789 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4793 s,[ `~#$^&*(){}\\|;'"<>?
],\\&,g
4799 # We use echo to avoid assuming a particular line-breaking character.
4800 # The extra dot is to prevent the shell from consuming trailing
4801 # line-breaks from the sub-command output. A line-break within
4802 # single-quotes doesn't work because, if this script is created in a
4803 # platform that uses two characters for line-breaks (e.g., DOS), tr
4805 ac_LF_and_DOT
=`echo; echo .`
4806 DEFS
=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4807 rm -f confdef2opt.
sed
4810 # Without the "./", some shells look in PATH for config.status.
4811 : ${CONFIG_STATUS=./config.status}
4813 echo creating
$CONFIG_STATUS
4814 rm -f $CONFIG_STATUS
4815 cat > $CONFIG_STATUS <<EOF
4817 # Generated automatically by configure.
4818 # Run this file to recreate the current configuration.
4819 # This directory was configured as follows,
4820 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4822 # $0 $ac_configure_args
4824 # Compiler output produced by configure, useful for debugging
4825 # configure, is in ./config.log if it exists.
4827 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4830 case "\$ac_option" in
4831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4832 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4833 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4834 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4835 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4837 -help | --help | --hel | --he | --h)
4838 echo "\$ac_cs_usage"; exit 0 ;;
4839 *) echo "\$ac_cs_usage"; exit 1 ;;
4843 ac_given_srcdir=$srcdir
4844 ac_given_INSTALL="$INSTALL"
4846 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4848 cat >> $CONFIG_STATUS <<EOF
4850 # Protect against being on the right side of a sed subst in config.status.
4851 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4852 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4856 s%@CFLAGS@%$CFLAGS%g
4857 s%@CPPFLAGS@%$CPPFLAGS%g
4858 s%@CXXFLAGS@%$CXXFLAGS%g
4859 s%@FFLAGS@%$FFLAGS%g
4861 s%@LDFLAGS@%$LDFLAGS%g
4863 s%@exec_prefix@%$exec_prefix%g
4864 s%@prefix@%$prefix%g
4865 s%@program_transform_name@%$program_transform_name%g
4866 s%@bindir@%$bindir%g
4867 s%@sbindir@%$sbindir%g
4868 s%@libexecdir@%$libexecdir%g
4869 s%@datadir@%$datadir%g
4870 s%@sysconfdir@%$sysconfdir%g
4871 s%@sharedstatedir@%$sharedstatedir%g
4872 s%@localstatedir@%$localstatedir%g
4873 s%@libdir@%$libdir%g
4874 s%@includedir@%$includedir%g
4875 s%@oldincludedir@%$oldincludedir%g
4876 s%@infodir@%$infodir%g
4877 s%@mandir@%$mandir%g
4879 s%@host_alias@%$host_alias%g
4880 s%@host_cpu@%$host_cpu%g
4881 s%@host_vendor@%$host_vendor%g
4882 s%@host_os@%$host_os%g
4883 s%@target@%$target%g
4884 s%@target_alias@%$target_alias%g
4885 s%@target_cpu@%$target_cpu%g
4886 s%@target_vendor@%$target_vendor%g
4887 s%@target_os@%$target_os%g
4889 s%@build_alias@%$build_alias%g
4890 s%@build_cpu@%$build_cpu%g
4891 s%@build_vendor@%$build_vendor%g
4892 s%@build_os@%$build_os%g
4893 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4894 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4895 s%@INSTALL_DATA@%$INSTALL_DATA%g
4896 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
4897 s%@build_subdir@%$build_subdir%g
4898 s%@host_subdir@%$host_subdir%g
4899 s%@target_subdir@%$target_subdir%g
4901 s%@GNATBIND@%$GNATBIND%g
4902 s%@do_compare@%$do_compare%g
4903 s%@gmplibs@%$gmplibs%g
4904 s%@gmpinc@%$gmpinc%g
4905 s%@stage1_languages@%$stage1_languages%g
4906 s%@DEFAULT_YACC@%$DEFAULT_YACC%g
4907 s%@DEFAULT_M4@%$DEFAULT_M4%g
4908 s%@DEFAULT_LEX@%$DEFAULT_LEX%g
4909 /@maybe_dependencies@/r $maybe_dependencies
4910 s%@maybe_dependencies@%%g
4911 /@serialization_dependencies@/r $serialization_dependencies
4912 s%@serialization_dependencies@%%g
4913 /@host_makefile_frag@/r $host_makefile_frag
4914 s%@host_makefile_frag@%%g
4915 /@target_makefile_frag@/r $target_makefile_frag
4916 s%@target_makefile_frag@%%g
4917 /@alphaieee_frag@/r $alphaieee_frag
4918 s%@alphaieee_frag@%%g
4919 /@ospace_frag@/r $ospace_frag
4921 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
4922 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
4923 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
4924 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
4925 s%@gcc_version_trigger@%$gcc_version_trigger%g
4926 s%@gcc_version@%$gcc_version%g
4927 s%@tooldir@%$tooldir%g
4928 s%@build_tooldir@%$build_tooldir%g
4929 s%@GDB_TK@%$GDB_TK%g
4930 s%@gxx_include_dir@%$gxx_include_dir%g
4931 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
4932 s%@build_configargs@%$build_configargs%g
4933 s%@configure_build_modules@%$configure_build_modules%g
4934 s%@all_build_modules@%$all_build_modules%g
4935 s%@host_configargs@%$host_configargs%g
4936 s%@configdirs@%$configdirs%g
4937 s%@target_configargs@%$target_configargs%g
4938 s%@target_configdirs@%$target_configdirs%g
4940 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
4942 s%@MAKEINFO@%$MAKEINFO%g
4944 s%@config_shell@%$config_shell%g
4946 s%@ncn_cv_AR@%$ncn_cv_AR%g
4948 s%@ncn_cv_AS@%$ncn_cv_AS%g
4949 s%@DLLTOOL@%$DLLTOOL%g
4950 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
4952 s%@ncn_cv_LD@%$ncn_cv_LD%g
4954 s%@ncn_cv_NM@%$ncn_cv_NM%g
4955 s%@RANLIB@%$RANLIB%g
4956 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
4957 s%@WINDRES@%$WINDRES%g
4958 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
4959 s%@OBJCOPY@%$OBJCOPY%g
4960 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
4961 s%@OBJDUMP@%$OBJDUMP%g
4962 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
4964 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
4965 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
4966 s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g
4967 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
4968 s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g
4969 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
4970 s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g
4971 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
4972 s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g
4973 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
4974 s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g
4975 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
4976 s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g
4977 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
4978 s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g
4979 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
4980 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
4981 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
4982 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
4983 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
4984 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
4985 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
4986 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4987 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
4988 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
4989 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
4990 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
4991 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
4992 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
4993 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
4994 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
4995 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4996 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4998 s%@stage1_cflags@%$stage1_cflags%g
4999 s%@stage2_werror_flag@%$stage2_werror_flag%g
5004 cat >> $CONFIG_STATUS <<\EOF
5006 # Split the substitutions into bite-sized pieces for seds with
5007 # small command number limits, like on Digital OSF/1 and HP-UX.
5008 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5009 ac_file
=1 # Number of current file.
5010 ac_beg
=1 # First line for current file.
5011 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5014 while $ac_more_lines; do
5015 if test $ac_beg -gt 1; then
5016 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5018 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5020 if test ! -s conftest.s
$ac_file; then
5022 rm -f conftest.s
$ac_file
5024 if test -z "$ac_sed_cmds"; then
5025 ac_sed_cmds
="sed -f conftest.s$ac_file"
5027 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5029 ac_file
=`expr $ac_file + 1`
5031 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5034 if test -z "$ac_sed_cmds"; then
5039 cat >> $CONFIG_STATUS <<EOF
5041 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5043 cat >> $CONFIG_STATUS <<\EOF
5044 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5045 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5047 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5048 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5049 *) ac_file_in
="${ac_file}.in" ;;
5052 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5054 # Remove last slash and all that follows it. Not all systems have dirname.
5055 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5056 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5057 # The file is in a subdirectory.
5058 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5059 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5060 # A "../" for each directory in $ac_dir_suffix.
5061 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5063 ac_dir_suffix
= ac_dots
=
5066 case "$ac_given_srcdir" in
5068 if test -z "$ac_dots"; then top_srcdir
=.
5069 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5070 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5072 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5073 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5076 case "$ac_given_INSTALL" in
5077 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5078 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5081 echo creating
"$ac_file"
5083 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5085 *Makefile
*) ac_comsub
="1i\\
5086 # $configure_input" ;;
5090 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5092 s%@configure_input@%$configure_input%g
5093 s%@srcdir@%$srcdir%g
5094 s%@top_srcdir@%$top_srcdir%g
5095 s%@INSTALL@%$INSTALL%g
5096 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5101 cat >> $CONFIG_STATUS <<EOF
5104 cat >> $CONFIG_STATUS <<\EOF
5108 chmod +x
$CONFIG_STATUS
5109 rm -fr confdefs
* $ac_clean_files
5110 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1