2007-06-29 H.J. Lu <hongjiu.lu@intel.com>
[binutils.git] / configure
blob5023f000636002484cc4da0351bc14cdb0cabdd8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="move-if-change"
275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
276 ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
316 ac_prev=
317 for ac_option
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
330 case $ac_option in
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335 bindir=$ac_optarg ;;
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file=$ac_optarg ;;
349 --config-cache | -C)
350 cache_file=config.cache ;;
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
356 datadir=$ac_optarg ;;
358 -disable-* | --disable-*)
359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
367 -enable-* | --enable-*)
368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
387 exec_prefix=$ac_optarg ;;
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
410 includedir=$ac_optarg ;;
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
420 libdir=$ac_optarg ;;
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir=$ac_optarg ;;
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436 localstatedir=$ac_optarg ;;
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441 mandir=$ac_optarg ;;
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
449 no_create=yes ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462 oldincludedir=$ac_optarg ;;
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467 prefix=$ac_optarg ;;
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474 program_prefix=$ac_optarg ;;
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481 program_suffix=$ac_optarg ;;
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
498 program_transform_name=$ac_optarg ;;
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
508 sbindir=$ac_optarg ;;
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
519 sharedstatedir=$ac_optarg ;;
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
524 site=$ac_optarg ;;
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529 srcdir=$ac_optarg ;;
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536 sysconfdir=$ac_optarg ;;
538 -target | --target | --targe | --targ | --tar | --ta | --t)
539 ac_prev=target_alias ;;
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target_alias=$ac_optarg ;;
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
549 -with-* | --with-*)
550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
562 -without-* | --without-*)
563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580 x_includes=$ac_optarg ;;
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587 x_libraries=$ac_optarg ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
612 esac
613 done
615 if test -n "$ac_prev"; then
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630 done
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
641 esac
642 done
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665 test "$silent" = yes && exec 6>/dev/null
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678 echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
688 else
689 ac_srcdir_defaulted=no
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_CXX_set=${CXX+set}
733 ac_env_CXX_value=$CXX
734 ac_cv_env_CXX_set=${CXX+set}
735 ac_cv_env_CXX_value=$CXX
736 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737 ac_env_CXXFLAGS_value=$CXXFLAGS
738 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740 ac_env_AR_set=${AR+set}
741 ac_env_AR_value=$AR
742 ac_cv_env_AR_set=${AR+set}
743 ac_cv_env_AR_value=$AR
744 ac_env_AS_set=${AS+set}
745 ac_env_AS_value=$AS
746 ac_cv_env_AS_set=${AS+set}
747 ac_cv_env_AS_value=$AS
748 ac_env_DLLTOOL_set=${DLLTOOL+set}
749 ac_env_DLLTOOL_value=$DLLTOOL
750 ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751 ac_cv_env_DLLTOOL_value=$DLLTOOL
752 ac_env_LD_set=${LD+set}
753 ac_env_LD_value=$LD
754 ac_cv_env_LD_set=${LD+set}
755 ac_cv_env_LD_value=$LD
756 ac_env_LIPO_set=${LIPO+set}
757 ac_env_LIPO_value=$LIPO
758 ac_cv_env_LIPO_set=${LIPO+set}
759 ac_cv_env_LIPO_value=$LIPO
760 ac_env_NM_set=${NM+set}
761 ac_env_NM_value=$NM
762 ac_cv_env_NM_set=${NM+set}
763 ac_cv_env_NM_value=$NM
764 ac_env_RANLIB_set=${RANLIB+set}
765 ac_env_RANLIB_value=$RANLIB
766 ac_cv_env_RANLIB_set=${RANLIB+set}
767 ac_cv_env_RANLIB_value=$RANLIB
768 ac_env_STRIP_set=${STRIP+set}
769 ac_env_STRIP_value=$STRIP
770 ac_cv_env_STRIP_set=${STRIP+set}
771 ac_cv_env_STRIP_value=$STRIP
772 ac_env_WINDRES_set=${WINDRES+set}
773 ac_env_WINDRES_value=$WINDRES
774 ac_cv_env_WINDRES_set=${WINDRES+set}
775 ac_cv_env_WINDRES_value=$WINDRES
776 ac_env_OBJCOPY_set=${OBJCOPY+set}
777 ac_env_OBJCOPY_value=$OBJCOPY
778 ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
779 ac_cv_env_OBJCOPY_value=$OBJCOPY
780 ac_env_OBJDUMP_set=${OBJDUMP+set}
781 ac_env_OBJDUMP_value=$OBJDUMP
782 ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
783 ac_cv_env_OBJDUMP_value=$OBJDUMP
784 ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
785 ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
786 ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
787 ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
788 ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
789 ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
790 ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
791 ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
792 ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
793 ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
794 ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
795 ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
796 ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
797 ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
798 ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
799 ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
800 ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
801 ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
802 ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
803 ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
804 ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
805 ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
806 ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
807 ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
808 ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
809 ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
810 ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
811 ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
812 ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
813 ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
814 ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
815 ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
816 ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
817 ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
818 ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
819 ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
820 ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
821 ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
822 ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
823 ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
824 ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
825 ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
826 ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
827 ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
828 ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
829 ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
830 ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
831 ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
832 ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
833 ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
834 ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
835 ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
836 ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
837 ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
838 ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
839 ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
840 ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
841 ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
842 ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
843 ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846 # Report the --help message.
848 if test "$ac_init_help" = "long"; then
849 # Omit some internal or obsolete options to make the list less imposing.
850 # This message is too long to be a string in the A/UX 3.1 sh.
851 cat <<_ACEOF
852 \`configure' configures this package to adapt to many kinds of systems.
854 Usage: $0 [OPTION]... [VAR=VALUE]...
856 To assign environment variables (e.g., CC, CFLAGS...), specify them as
857 VAR=VALUE. See below for descriptions of some of the useful variables.
859 Defaults for the options are specified in brackets.
861 Configuration:
862 -h, --help display this help and exit
863 --help=short display options specific to this package
864 --help=recursive display the short help of all the included packages
865 -V, --version display version information and exit
866 -q, --quiet, --silent do not print \`checking...' messages
867 --cache-file=FILE cache test results in FILE [disabled]
868 -C, --config-cache alias for \`--cache-file=config.cache'
869 -n, --no-create do not create output files
870 --srcdir=DIR find the sources in DIR [configure dir or \`..']
872 _ACEOF
874 cat <<_ACEOF
875 Installation directories:
876 --prefix=PREFIX install architecture-independent files in PREFIX
877 [$ac_default_prefix]
878 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
879 [PREFIX]
881 By default, \`make install' will install all the files in
882 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
883 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
884 for instance \`--prefix=\$HOME'.
886 For better control, use the options below.
888 Fine tuning of the installation directories:
889 --bindir=DIR user executables [EPREFIX/bin]
890 --sbindir=DIR system admin executables [EPREFIX/sbin]
891 --libexecdir=DIR program executables [EPREFIX/libexec]
892 --datadir=DIR read-only architecture-independent data [PREFIX/share]
893 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
894 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
895 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
896 --libdir=DIR object code libraries [EPREFIX/lib]
897 --includedir=DIR C header files [PREFIX/include]
898 --oldincludedir=DIR C header files for non-gcc [/usr/include]
899 --infodir=DIR info documentation [PREFIX/info]
900 --mandir=DIR man documentation [PREFIX/man]
901 _ACEOF
903 cat <<\_ACEOF
905 Program names:
906 --program-prefix=PREFIX prepend PREFIX to installed program names
907 --program-suffix=SUFFIX append SUFFIX to installed program names
908 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
910 System types:
911 --build=BUILD configure for building on BUILD [guessed]
912 --host=HOST cross-compile to build programs to run on HOST [BUILD]
913 --target=TARGET configure for building compilers for TARGET [HOST]
914 _ACEOF
917 if test -n "$ac_init_help"; then
919 cat <<\_ACEOF
921 Optional Features:
922 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
923 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
924 --enable-libada Builds libada directory
925 --enable-libssp Builds libssp directory
926 --enable-stage1-languages=all choose additional languages to build during
927 stage1. Mostly useful for compiler development.
928 --enable-objc-gc enable the use of Boehm's garbage collector with
929 the GNU Objective-C runtime.
930 --enable-bootstrap Enable bootstrapping yes if native build
931 --enable-serial-{host,target,build}-configure
932 Force sequential configuration of
933 sub-packages for the host, target or build
934 machine, or all sub-packages
935 --enable-maintainer-mode enable make rules and dependencies not useful
936 (and sometimes confusing) to the casual installer
937 --enable-stage1-checking=all choose additional checking for stage1
938 of the compiler.
939 --enable-werror enable -Werror in bootstrap stage2 and later
941 Optional Packages:
942 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
943 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
944 --with-build-libsubdir=DIR Directory where to find libraries for build system
945 --with-mpfr-dir=PATH This option has been REMOVED
946 --with-mpfr=PATH Specify prefix directory for installed MPFR package
947 Equivalent to --with-mpfr-include=PATH/include
948 plus --with-mpfr-lib=PATH/lib
949 --with-mpfr-include=PATH
950 Specify directory for installed MPFR include files
951 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
952 --with-gmp-dir=PATH This option has been REMOVED
953 --with-gmp=PATH Specify prefix directory for the installed GMP package
954 Equivalent to --with-gmp-include=PATH/include
955 plus --with-gmp-lib=PATH/lib
956 --with-gmp-include=PATH Specify directory for installed GMP include files
957 --with-gmp-lib=PATH Specify the directory for the installed GMP library
958 --with-build-sysroot=sysroot
959 use sysroot as the system root during the build
960 --with-build-time-tools=path
961 use given path to find target tools during the build
962 --with-datarootdir Use datarootdir as the data root directory.
963 --with-docdir Install documentation in this directory.
964 --with-pdfdir Install pdf in this directory.
965 --with-htmldir Install html in this directory.
967 Some influential environment variables:
968 CC C compiler command
969 CFLAGS C compiler flags
970 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
971 nonstandard directory <lib dir>
972 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
973 headers in a nonstandard directory <include dir>
974 CXX C++ compiler command
975 CXXFLAGS C++ compiler flags
976 AR AR for the host
977 AS AS for the host
978 DLLTOOL DLLTOOL for the host
979 LD LD for the host
980 LIPO LIPO for the host
981 NM NM for the host
982 RANLIB RANLIB for the host
983 STRIP STRIP for the host
984 WINDRES WINDRES for the host
985 OBJCOPY OBJCOPY for the host
986 OBJDUMP OBJDUMP for the host
987 CC_FOR_TARGET
988 CC for the target
989 CXX_FOR_TARGET
990 CXX for the target
991 GCC_FOR_TARGET
992 GCC for the target
993 GCJ_FOR_TARGET
994 GCJ for the target
995 GFORTRAN_FOR_TARGET
996 GFORTRAN for the target
997 AR_FOR_TARGET
998 AR for the target
999 AS_FOR_TARGET
1000 AS for the target
1001 DLLTOOL_FOR_TARGET
1002 DLLTOOL for the target
1003 LD_FOR_TARGET
1004 LD for the target
1005 LIPO_FOR_TARGET
1006 LIPO for the target
1007 NM_FOR_TARGET
1008 NM for the target
1009 OBJDUMP_FOR_TARGET
1010 OBJDUMP for the target
1011 RANLIB_FOR_TARGET
1012 RANLIB for the target
1013 STRIP_FOR_TARGET
1014 STRIP for the target
1015 WINDRES_FOR_TARGET
1016 WINDRES for the target
1018 Use these variables to override the choices made by `configure' or to help
1019 it to find libraries and programs with nonstandard names/locations.
1021 _ACEOF
1024 if test "$ac_init_help" = "recursive"; then
1025 # If there are subdirs, report their specific --help.
1026 ac_popdir=`pwd`
1027 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1028 test -d $ac_dir || continue
1029 ac_builddir=.
1031 if test "$ac_dir" != .; then
1032 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1033 # A "../" for each directory in $ac_dir_suffix.
1034 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1035 else
1036 ac_dir_suffix= ac_top_builddir=
1039 case $srcdir in
1040 .) # No --srcdir option. We are building in place.
1041 ac_srcdir=.
1042 if test -z "$ac_top_builddir"; then
1043 ac_top_srcdir=.
1044 else
1045 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1046 fi ;;
1047 [\\/]* | ?:[\\/]* ) # Absolute path.
1048 ac_srcdir=$srcdir$ac_dir_suffix;
1049 ac_top_srcdir=$srcdir ;;
1050 *) # Relative path.
1051 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1052 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1053 esac
1055 # Do not use `cd foo && pwd` to compute absolute paths, because
1056 # the directories may not exist.
1057 case `pwd` in
1058 .) ac_abs_builddir="$ac_dir";;
1060 case "$ac_dir" in
1061 .) ac_abs_builddir=`pwd`;;
1062 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1063 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1064 esac;;
1065 esac
1066 case $ac_abs_builddir in
1067 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1069 case ${ac_top_builddir}. in
1070 .) ac_abs_top_builddir=$ac_abs_builddir;;
1071 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1072 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1073 esac;;
1074 esac
1075 case $ac_abs_builddir in
1076 .) ac_abs_srcdir=$ac_srcdir;;
1078 case $ac_srcdir in
1079 .) ac_abs_srcdir=$ac_abs_builddir;;
1080 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1081 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1082 esac;;
1083 esac
1084 case $ac_abs_builddir in
1085 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1087 case $ac_top_srcdir in
1088 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1089 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1090 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1091 esac;;
1092 esac
1094 cd $ac_dir
1095 # Check for guested configure; otherwise get Cygnus style configure.
1096 if test -f $ac_srcdir/configure.gnu; then
1097 echo
1098 $SHELL $ac_srcdir/configure.gnu --help=recursive
1099 elif test -f $ac_srcdir/configure; then
1100 echo
1101 $SHELL $ac_srcdir/configure --help=recursive
1102 elif test -f $ac_srcdir/configure.ac ||
1103 test -f $ac_srcdir/configure.in; then
1104 echo
1105 $ac_configure --help
1106 else
1107 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1109 cd $ac_popdir
1110 done
1113 test -n "$ac_init_help" && exit 0
1114 if $ac_init_version; then
1115 cat <<\_ACEOF
1117 Copyright (C) 2003 Free Software Foundation, Inc.
1118 This configure script is free software; the Free Software Foundation
1119 gives unlimited permission to copy, distribute and modify it.
1120 _ACEOF
1121 exit 0
1123 exec 5>config.log
1124 cat >&5 <<_ACEOF
1125 This file contains any messages produced by compilers while
1126 running configure, to aid debugging if configure makes a mistake.
1128 It was created by $as_me, which was
1129 generated by GNU Autoconf 2.59. Invocation command line was
1131 $ $0 $@
1133 _ACEOF
1135 cat <<_ASUNAME
1136 ## --------- ##
1137 ## Platform. ##
1138 ## --------- ##
1140 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1141 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1142 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1143 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1144 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1146 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1147 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1149 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1150 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1151 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1152 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1153 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1154 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1155 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1157 _ASUNAME
1159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1160 for as_dir in $PATH
1162 IFS=$as_save_IFS
1163 test -z "$as_dir" && as_dir=.
1164 echo "PATH: $as_dir"
1165 done
1167 } >&5
1169 cat >&5 <<_ACEOF
1172 ## ----------- ##
1173 ## Core tests. ##
1174 ## ----------- ##
1176 _ACEOF
1179 # Keep a trace of the command line.
1180 # Strip out --no-create and --no-recursion so they do not pile up.
1181 # Strip out --silent because we don't want to record it for future runs.
1182 # Also quote any args containing shell meta-characters.
1183 # Make two passes to allow for proper duplicate-argument suppression.
1184 ac_configure_args=
1185 ac_configure_args0=
1186 ac_configure_args1=
1187 ac_sep=
1188 ac_must_keep_next=false
1189 for ac_pass in 1 2
1191 for ac_arg
1193 case $ac_arg in
1194 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196 | -silent | --silent | --silen | --sile | --sil)
1197 continue ;;
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 esac
1201 case $ac_pass in
1202 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1204 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1205 if test $ac_must_keep_next = true; then
1206 ac_must_keep_next=false # Got value, back to normal.
1207 else
1208 case $ac_arg in
1209 *=* | --config-cache | -C | -disable-* | --disable-* \
1210 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1211 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1212 | -with-* | --with-* | -without-* | --without-* | --x)
1213 case "$ac_configure_args0 " in
1214 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1215 esac
1217 -* ) ac_must_keep_next=true ;;
1218 esac
1220 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1221 # Get rid of the leading space.
1222 ac_sep=" "
1224 esac
1225 done
1226 done
1227 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1228 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1230 # When interrupted or exit'd, cleanup temporary files, and complete
1231 # config.log. We remove comments because anyway the quotes in there
1232 # would cause problems or look ugly.
1233 # WARNING: Be sure not to use single quotes in there, as some shells,
1234 # such as our DU 5.0 friend, will then `close' the trap.
1235 trap 'exit_status=$?
1236 # Save into config.log some information that might help in debugging.
1238 echo
1240 cat <<\_ASBOX
1241 ## ---------------- ##
1242 ## Cache variables. ##
1243 ## ---------------- ##
1244 _ASBOX
1245 echo
1246 # The following way of writing the cache mishandles newlines in values,
1248 (set) 2>&1 |
1249 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1250 *ac_space=\ *)
1251 sed -n \
1252 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1256 sed -n \
1257 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1259 esac;
1261 echo
1263 cat <<\_ASBOX
1264 ## ----------------- ##
1265 ## Output variables. ##
1266 ## ----------------- ##
1267 _ASBOX
1268 echo
1269 for ac_var in $ac_subst_vars
1271 eval ac_val=$`echo $ac_var`
1272 echo "$ac_var='"'"'$ac_val'"'"'"
1273 done | sort
1274 echo
1276 if test -n "$ac_subst_files"; then
1277 cat <<\_ASBOX
1278 ## ------------- ##
1279 ## Output files. ##
1280 ## ------------- ##
1281 _ASBOX
1282 echo
1283 for ac_var in $ac_subst_files
1285 eval ac_val=$`echo $ac_var`
1286 echo "$ac_var='"'"'$ac_val'"'"'"
1287 done | sort
1288 echo
1291 if test -s confdefs.h; then
1292 cat <<\_ASBOX
1293 ## ----------- ##
1294 ## confdefs.h. ##
1295 ## ----------- ##
1296 _ASBOX
1297 echo
1298 sed "/^$/d" confdefs.h | sort
1299 echo
1301 test "$ac_signal" != 0 &&
1302 echo "$as_me: caught signal $ac_signal"
1303 echo "$as_me: exit $exit_status"
1304 } >&5
1305 rm -f core *.core &&
1306 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1307 exit $exit_status
1309 for ac_signal in 1 2 13 15; do
1310 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1311 done
1312 ac_signal=0
1314 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1315 rm -rf conftest* confdefs.h
1316 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1317 echo >confdefs.h
1319 # Predefined preprocessor variables.
1321 cat >>confdefs.h <<_ACEOF
1322 #define PACKAGE_NAME "$PACKAGE_NAME"
1323 _ACEOF
1326 cat >>confdefs.h <<_ACEOF
1327 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1328 _ACEOF
1331 cat >>confdefs.h <<_ACEOF
1332 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1333 _ACEOF
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_STRING "$PACKAGE_STRING"
1338 _ACEOF
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1343 _ACEOF
1346 # Let the site file select an alternate cache file if it wants to.
1347 # Prefer explicitly selected file to automatically selected ones.
1348 if test -z "$CONFIG_SITE"; then
1349 if test "x$prefix" != xNONE; then
1350 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1351 else
1352 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1355 for ac_site_file in $CONFIG_SITE; do
1356 if test -r "$ac_site_file"; then
1357 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1358 echo "$as_me: loading site script $ac_site_file" >&6;}
1359 sed 's/^/| /' "$ac_site_file" >&5
1360 . "$ac_site_file"
1362 done
1364 if test -r "$cache_file"; then
1365 # Some versions of bash will fail to source /dev/null (special
1366 # files actually), so we avoid doing that.
1367 if test -f "$cache_file"; then
1368 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1369 echo "$as_me: loading cache $cache_file" >&6;}
1370 case $cache_file in
1371 [\\/]* | ?:[\\/]* ) . $cache_file;;
1372 *) . ./$cache_file;;
1373 esac
1375 else
1376 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1377 echo "$as_me: creating cache $cache_file" >&6;}
1378 >$cache_file
1381 # Check that the precious variables saved in the cache have kept the same
1382 # value.
1383 ac_cache_corrupted=false
1384 for ac_var in `(set) 2>&1 |
1385 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1386 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1387 eval ac_new_set=\$ac_env_${ac_var}_set
1388 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1389 eval ac_new_val="\$ac_env_${ac_var}_value"
1390 case $ac_old_set,$ac_new_set in
1391 set,)
1392 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1393 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1394 ac_cache_corrupted=: ;;
1395 ,set)
1396 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1397 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1398 ac_cache_corrupted=: ;;
1399 ,);;
1401 if test "x$ac_old_val" != "x$ac_new_val"; then
1402 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1403 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1404 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1405 echo "$as_me: former value: $ac_old_val" >&2;}
1406 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1407 echo "$as_me: current value: $ac_new_val" >&2;}
1408 ac_cache_corrupted=:
1409 fi;;
1410 esac
1411 # Pass precious variables to config.status.
1412 if test "$ac_new_set" = set; then
1413 case $ac_new_val in
1414 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1415 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1416 *) ac_arg=$ac_var=$ac_new_val ;;
1417 esac
1418 case " $ac_configure_args " in
1419 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1420 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1421 esac
1423 done
1424 if $ac_cache_corrupted; then
1425 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1426 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1427 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1428 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1429 { (exit 1); exit 1; }; }
1432 ac_ext=c
1433 ac_cpp='$CPP $CPPFLAGS'
1434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458 # Find the build, host, and target systems.
1459 ac_aux_dir=
1460 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1461 if test -f $ac_dir/install-sh; then
1462 ac_aux_dir=$ac_dir
1463 ac_install_sh="$ac_aux_dir/install-sh -c"
1464 break
1465 elif test -f $ac_dir/install.sh; then
1466 ac_aux_dir=$ac_dir
1467 ac_install_sh="$ac_aux_dir/install.sh -c"
1468 break
1469 elif test -f $ac_dir/shtool; then
1470 ac_aux_dir=$ac_dir
1471 ac_install_sh="$ac_aux_dir/shtool install -c"
1472 break
1474 done
1475 if test -z "$ac_aux_dir"; then
1476 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1477 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1478 { (exit 1); exit 1; }; }
1480 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1481 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1482 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1484 # Make sure we can run config.sub.
1485 $ac_config_sub sun4 >/dev/null 2>&1 ||
1486 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1487 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1488 { (exit 1); exit 1; }; }
1490 echo "$as_me:$LINENO: checking build system type" >&5
1491 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1492 if test "${ac_cv_build+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495 ac_cv_build_alias=$build_alias
1496 test -z "$ac_cv_build_alias" &&
1497 ac_cv_build_alias=`$ac_config_guess`
1498 test -z "$ac_cv_build_alias" &&
1499 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1500 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1501 { (exit 1); exit 1; }; }
1502 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1503 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1504 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1505 { (exit 1); exit 1; }; }
1508 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1509 echo "${ECHO_T}$ac_cv_build" >&6
1510 build=$ac_cv_build
1511 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1512 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1513 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1516 case ${build_alias} in
1517 "") build_noncanonical=${build} ;;
1518 *) build_noncanonical=${build_alias} ;;
1519 esac
1523 case ${host_alias} in
1524 "") host_noncanonical=${build_noncanonical} ;;
1525 *) host_noncanonical=${host_alias} ;;
1526 esac
1530 case ${target_alias} in
1531 "") target_noncanonical=${host_noncanonical} ;;
1532 *) target_noncanonical=${target_alias} ;;
1533 esac
1538 test "$host_noncanonical" = "$target_noncanonical" &&
1539 test "$program_prefix$program_suffix$program_transform_name" = \
1540 NONENONEs,x,x, &&
1541 program_transform_name=s,y,y,
1543 echo "$as_me:$LINENO: checking host system type" >&5
1544 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1545 if test "${ac_cv_host+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 ac_cv_host_alias=$host_alias
1549 test -z "$ac_cv_host_alias" &&
1550 ac_cv_host_alias=$ac_cv_build_alias
1551 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1552 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1553 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1554 { (exit 1); exit 1; }; }
1557 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1558 echo "${ECHO_T}$ac_cv_host" >&6
1559 host=$ac_cv_host
1560 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565 echo "$as_me:$LINENO: checking target system type" >&5
1566 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1567 if test "${ac_cv_target+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570 ac_cv_target_alias=$target_alias
1571 test "x$ac_cv_target_alias" = "x" &&
1572 ac_cv_target_alias=$ac_cv_host_alias
1573 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1574 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1575 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1576 { (exit 1); exit 1; }; }
1579 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1580 echo "${ECHO_T}$ac_cv_target" >&6
1581 target=$ac_cv_target
1582 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587 # The aliases save the names the user supplied, while $host etc.
1588 # will get canonicalized.
1589 test -n "$target_alias" &&
1590 test "$program_prefix$program_suffix$program_transform_name" = \
1591 NONENONEs,x,x, &&
1592 program_prefix=${target_alias}-
1593 test "$program_prefix" != NONE &&
1594 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1595 # Use a double $ so make ignores it.
1596 test "$program_suffix" != NONE &&
1597 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1598 # Double any \ or $. echo might interpret backslashes.
1599 # By default was `s,x,x', remove it if useless.
1600 cat <<\_ACEOF >conftest.sed
1601 s/[\\$]/&&/g;s/;s,x,x,$//
1602 _ACEOF
1603 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1604 rm conftest.sed
1608 # Get 'install' or 'install-sh' and its variants.
1609 # Find a good install program. We prefer a C program (faster),
1610 # so one script is as good as another. But avoid the broken or
1611 # incompatible versions:
1612 # SysV /etc/install, /usr/sbin/install
1613 # SunOS /usr/etc/install
1614 # IRIX /sbin/install
1615 # AIX /bin/install
1616 # AmigaOS /C/install, which installs bootblocks on floppy discs
1617 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1618 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1619 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1620 # OS/2's system install, which has a completely different semantic
1621 # ./install, which can be erroneously created by make from ./install.sh.
1622 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1623 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1624 if test -z "$INSTALL"; then
1625 if test "${ac_cv_path_install+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1631 IFS=$as_save_IFS
1632 test -z "$as_dir" && as_dir=.
1633 # Account for people who put trailing slashes in PATH elements.
1634 case $as_dir/ in
1635 ./ | .// | /cC/* | \
1636 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1637 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1638 /usr/ucb/* ) ;;
1640 # OSF1 and SCO ODT 3.0 have their own names for install.
1641 # Don't use installbsd from OSF since it installs stuff as root
1642 # by default.
1643 for ac_prog in ginstall scoinst install; do
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1646 if test $ac_prog = install &&
1647 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1648 # AIX install. It has an incompatible calling convention.
1650 elif test $ac_prog = install &&
1651 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1652 # program-specific install script used by HP pwplus--don't use.
1654 else
1655 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1656 break 3
1659 done
1660 done
1662 esac
1663 done
1667 if test "${ac_cv_path_install+set}" = set; then
1668 INSTALL=$ac_cv_path_install
1669 else
1670 # As a last resort, use the slow shell script. We don't cache a
1671 # path for INSTALL within a source directory, because that will
1672 # break other packages using the cache if that directory is
1673 # removed, or if the path is relative.
1674 INSTALL=$ac_install_sh
1677 echo "$as_me:$LINENO: result: $INSTALL" >&5
1678 echo "${ECHO_T}$INSTALL" >&6
1680 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1681 # It thinks the first close brace ends the variable substitution.
1682 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1684 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1686 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1688 echo "$as_me:$LINENO: checking whether ln works" >&5
1689 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1690 if test "${acx_cv_prog_LN+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693 rm -f conftestdata_t
1694 echo >conftestdata_f
1695 if ln conftestdata_f conftestdata_t 2>/dev/null
1696 then
1697 acx_cv_prog_LN=ln
1698 else
1699 acx_cv_prog_LN=no
1701 rm -f conftestdata_f conftestdata_t
1704 if test $acx_cv_prog_LN = no; then
1705 LN="cp"
1706 echo "$as_me:$LINENO: result: no, using $LN" >&5
1707 echo "${ECHO_T}no, using $LN" >&6
1708 else
1709 LN="$acx_cv_prog_LN"
1710 echo "$as_me:$LINENO: result: yes" >&5
1711 echo "${ECHO_T}yes" >&6
1714 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1715 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1716 LN_S=$as_ln_s
1717 if test "$LN_S" = "ln -s"; then
1718 echo "$as_me:$LINENO: result: yes" >&5
1719 echo "${ECHO_T}yes" >&6
1720 else
1721 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1722 echo "${ECHO_T}no, using $LN_S" >&6
1726 ### we might need to use some other shell than /bin/sh for running subshells
1727 ### If we are on Windows, search for the shell. This will permit people
1728 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1729 ### without also having to set CONFIG_SHELL. This code will work when
1730 ### using bash, which sets OSTYPE.
1731 case "${OSTYPE}" in
1732 *win32*)
1733 if test x${CONFIG_SHELL} = x ; then
1734 if test ! -f /bin/sh ; then
1735 if test x${SHELL} != x && test -f ${SHELL} ; then
1736 CONFIG_SHELL=${SHELL}
1737 export CONFIG_SHELL
1738 else
1739 for prog in sh sh.exe bash bash.exe; do
1740 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1741 for dir in $PATH; do
1742 test -z "$dir" && dir=.
1743 if test -f $dir/$prog; then
1744 CONFIG_SHELL=$dir/$prog
1745 export CONFIG_SHELL
1746 break
1748 done
1749 IFS="$save_ifs"
1750 test -n "${CONFIG_SHELL}" && break
1751 done
1756 esac
1758 config_shell=${CONFIG_SHELL-/bin/sh}
1760 progname=$0
1761 # if PWD already has a value, it is probably wrong.
1762 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1764 # Export original configure arguments for use by sub-configures.
1765 # Quote arguments with shell meta charatcers.
1766 TOPLEVEL_CONFIGURE_ARGUMENTS=
1767 set -- "$progname" "$@"
1768 for ac_arg
1770 case "$ac_arg" in
1771 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1772 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1773 # if the argument is of the form -foo=baz, quote the baz part only
1774 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1775 *) ;;
1776 esac
1777 # Add the quoted argument to the list.
1778 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1779 done
1780 # Remove the initial space we just introduced and, as these will be
1781 # expanded by make, quote '$'.
1782 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1785 moveifchange=${srcdir}/move-if-change
1787 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1789 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1790 # a relative path.
1791 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1792 INSTALL="${srcpwd}/install-sh -c"
1795 # Set srcdir to "." if that's what it is.
1796 # This is important for multilib support.
1797 pwd=`${PWDCMD-pwd}`
1798 if test "${pwd}" = "${srcpwd}" ; then
1799 srcdir=.
1802 topsrcdir=$srcpwd
1804 extra_host_args=
1806 ### To add a new directory to the tree, first choose whether it is a target
1807 ### or a host dependent tool. Then put it into the appropriate list
1808 ### (library or tools, host or target), doing a dependency sort.
1810 # Subdirs will be configured in the order listed in build_configdirs,
1811 # configdirs, or target_configdirs; see the serialization section below.
1813 # Dependency sorting is only needed when *configuration* must be done in
1814 # a particular order. In all cases a dependency should be specified in
1815 # the Makefile, whether or not it's implicitly specified here.
1817 # Double entries in build_configdirs, configdirs, or target_configdirs may
1818 # cause circular dependencies and break everything horribly.
1820 # these library is used by various programs built for the build
1821 # environment
1823 build_libs="build-libiberty"
1825 # these tools are built for the build environment
1826 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1828 # these libraries are used by various programs built for the host environment
1830 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1832 # these tools are built for the host environment
1833 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1834 # know that we are building the simulator.
1835 # binutils, gas and ld appear in that order because it makes sense to run
1836 # "make check" in that particular order.
1837 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
1839 # libgcj represents the runtime libraries only used by gcj.
1840 libgcj="target-libffi \
1841 target-zlib \
1842 target-qthreads \
1843 target-libjava"
1845 # these libraries are built for the target environment, and are built after
1846 # the host libraries and the host tools (which may be a cross compiler)
1848 target_libraries="target-libgcc \
1849 target-libiberty \
1850 target-libgloss \
1851 target-newlib \
1852 target-libstdc++-v3 \
1853 target-libmudflap \
1854 target-libssp \
1855 target-libgfortran \
1856 target-boehm-gc \
1857 ${libgcj} \
1858 target-libobjc \
1859 target-libada \
1860 target-libgomp"
1862 # these tools are built using the target libraries, and are intended to
1863 # run only in the target environment
1865 # note: any program that *uses* libraries that are in the "target_libraries"
1866 # list belongs in this list. those programs are also very likely
1867 # candidates for the "native_only" list which follows
1869 target_tools="target-examples target-groff target-gperf target-rda"
1871 ################################################################################
1873 ## All tools belong in one of the four categories, and are assigned above
1874 ## We assign ${configdirs} this way to remove all embedded newlines. This
1875 ## is important because configure will choke if they ever get through.
1876 ## ${configdirs} is directories we build using the host tools.
1877 ## ${target_configdirs} is directories we build using the target tools.
1878 configdirs=`echo ${host_libs} ${host_tools}`
1879 target_configdirs=`echo ${target_libraries} ${target_tools}`
1880 build_configdirs=`echo ${build_libs} ${build_tools}`
1882 ################################################################################
1884 srcname="gnu development package"
1886 # This gets set non-empty for some net releases of packages.
1887 appdirs=""
1889 # Define is_cross_compiler to save on calls to 'test'.
1890 is_cross_compiler=
1891 if test x"${host}" = x"${target}" ; then
1892 is_cross_compiler=no
1893 else
1894 is_cross_compiler=yes
1897 # Find the build and target subdir names.
1899 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1900 # have matching libraries, they should use host libraries: Makefile.tpl
1901 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1902 # However, they still use the build modules, because the corresponding
1903 # host modules (e.g. bison) are only built for the host when bootstrap
1904 # finishes. So:
1905 # - build_subdir is where we find build modules, and never changes.
1906 # - build_libsubdir is where we find build libraries, and can be overridden.
1908 # Prefix 'build-' so this never conflicts with target_subdir.
1909 build_subdir="build-${build_noncanonical}"
1911 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1912 if test "${with_build_libsubdir+set}" = set; then
1913 withval="$with_build_libsubdir"
1914 build_libsubdir="$withval"
1915 else
1916 build_libsubdir="$build_subdir"
1918 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1919 if ( test $srcdir = . && test -d gcc ) \
1920 || test -d $srcdir/../host-${host_noncanonical}; then
1921 host_subdir="host-${host_noncanonical}"
1922 else
1923 host_subdir=.
1925 # No prefix.
1926 target_subdir=${target_noncanonical}
1929 # Skipdirs are removed silently.
1930 skipdirs=
1931 # Noconfigdirs are removed loudly.
1932 noconfigdirs=""
1934 use_gnu_ld=
1935 # Make sure we don't let GNU ld be added if we didn't want it.
1936 if test x$with_gnu_ld = xno ; then
1937 use_gnu_ld=no
1938 noconfigdirs="$noconfigdirs ld"
1941 use_gnu_as=
1942 # Make sure we don't let GNU as be added if we didn't want it.
1943 if test x$with_gnu_as = xno ; then
1944 use_gnu_as=no
1945 noconfigdirs="$noconfigdirs gas"
1948 # some tools are so dependent upon X11 that if we're not building with X,
1949 # it's not even worth trying to configure, much less build, that tool.
1951 case ${with_x} in
1952 yes | "") ;; # the default value for this tree is that X11 is available
1954 skipdirs="${skipdirs} tk itcl libgui"
1955 # We won't be able to build gdbtk without X.
1956 enable_gdbtk=no
1958 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1959 esac
1961 # Some tools are only suitable for building in a "native" situation.
1962 # Remove these if host!=target.
1963 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1965 # Similarly, some are only suitable for cross toolchains.
1966 # Remove these if host=target.
1967 cross_only="target-libgloss target-newlib target-opcodes"
1969 case $is_cross_compiler in
1970 no) skipdirs="${skipdirs} ${cross_only}" ;;
1971 yes) skipdirs="${skipdirs} ${native_only}" ;;
1972 esac
1974 # If both --with-headers and --with-libs are specified, default to
1975 # --without-newlib.
1976 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1977 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1978 if test x"${with_newlib}" = x ; then
1979 with_newlib=no
1983 # Recognize --with-newlib/--without-newlib.
1984 case ${with_newlib} in
1985 no) skipdirs="${skipdirs} target-newlib" ;;
1986 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1987 esac
1989 # Configure extra directories which are host specific
1991 case "${host}" in
1992 *-cygwin*)
1993 configdirs="$configdirs libtermcap" ;;
1994 esac
1996 # A target can indicate whether a language isn't supported for some reason.
1997 # Only spaces may be used in this macro; not newlines or tabs.
1998 unsupported_languages=
2000 # Remove more programs from consideration, based on the host or
2001 # target this usually means that a port of the program doesn't
2002 # exist yet.
2004 case "${host}" in
2005 hppa*64*-*-*)
2006 noconfigdirs="$noconfigdirs byacc"
2008 i[3456789]86-*-vsta)
2009 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2011 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2012 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2014 x86_64-*-mingw*)
2015 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2017 i[3456789]86-*-mingw32*)
2018 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2019 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2021 i[3456789]86-*-beos*)
2022 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2024 *-*-cygwin*)
2025 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2027 *-*-netbsd*)
2028 noconfigdirs="$noconfigdirs rcs"
2030 ppc*-*-pe)
2031 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2033 powerpc-*-beos*)
2034 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2036 esac
2039 # Check whether --enable-libada or --disable-libada was given.
2040 if test "${enable_libada+set}" = set; then
2041 enableval="$enable_libada"
2042 ENABLE_LIBADA=$enableval
2043 else
2044 ENABLE_LIBADA=yes
2046 if test "${ENABLE_LIBADA}" != "yes" ; then
2047 noconfigdirs="$noconfigdirs gnattools"
2050 # Check whether --enable-libssp or --disable-libssp was given.
2051 if test "${enable_libssp+set}" = set; then
2052 enableval="$enable_libssp"
2053 ENABLE_LIBSSP=$enableval
2054 else
2055 ENABLE_LIBSSP=yes
2058 # Save it here so that, even in case of --enable-libgcj, if the Java
2059 # front-end isn't enabled, we still get libgcj disabled.
2060 libgcj_saved=$libgcj
2061 case $enable_libgcj in
2062 yes)
2063 # If we reset it here, it won't get added to noconfigdirs in the
2064 # target-specific build rules, so it will be forcibly enabled
2065 # (unless the Java language itself isn't enabled).
2066 libgcj=
2069 # Make sure we get it printed in the list of not supported target libs.
2070 noconfigdirs="$noconfigdirs ${libgcj}"
2072 esac
2075 # Disable libmudflap on some systems.
2076 if test x$enable_libmudflap = x ; then
2077 case "${target}" in
2078 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc* | *-*-uclinux*)
2079 # Enable libmudflap by default in GNU and friends.
2081 *-*-freebsd*)
2082 # Enable libmudflap by default in FreeBSD.
2085 # Disable it by default everywhere else.
2086 noconfigdirs="$noconfigdirs target-libmudflap"
2088 esac
2091 # Disable libgomp on non POSIX hosted systems.
2092 if test x$enable_libgomp = x ; then
2093 # Enable libgomp by default on hosted POSIX systems.
2094 case "${target}" in
2095 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2097 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2099 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2101 *-*-darwin* | *-*-aix*)
2104 noconfigdirs="$noconfigdirs target-libgomp"
2106 esac
2110 case "${target}" in
2111 *-*-chorusos)
2112 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2114 powerpc-*-darwin* | i[3456789]86-*-darwin*)
2115 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
2116 noconfigdirs="$noconfigdirs sim target-rda"
2118 *-*-darwin*)
2119 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2120 noconfigdirs="$noconfigdirs sim target-rda"
2121 noconfigdirs="$noconfigdirs ${libgcj}"
2123 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2124 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2126 *-*-freebsd*)
2127 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2128 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2129 && test -f /usr/local/include/gmp.h; then
2130 with_gmp=/usr/local
2133 # Skip some stuff that's unsupported on some FreeBSD configurations.
2134 case "${target}" in
2135 i*86-*-*) ;;
2136 alpha*-*-*) ;;
2138 noconfigdirs="$noconfigdirs ${libgcj}"
2140 esac
2142 *-*-kaos*)
2143 # Remove unsupported stuff on all kaOS configurations.
2144 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2145 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2146 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2147 noconfigdirs="$noconfigdirs target-libgloss"
2149 *-*-netbsd*)
2150 # Skip some stuff on all NetBSD configurations.
2151 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2153 # Skip some stuff that's unsupported on some NetBSD configurations.
2154 case "${target}" in
2155 i*86-*-netbsdelf*) ;;
2156 arm*-*-netbsdelf*) ;;
2158 noconfigdirs="$noconfigdirs ${libgcj}"
2160 esac
2162 *-*-netware*)
2163 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2165 *-*-rtems*)
2166 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2168 # The tpf target doesn't support gdb yet.
2169 *-*-tpf*)
2170 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2172 *-*-uclinux*)
2173 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2175 *-*-vxworks*)
2176 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2178 alpha*-dec-osf*)
2179 # ld works, but does not support shared libraries.
2180 # newlib is not 64 bit ready. I'm not sure about fileutils.
2181 # gas doesn't generate exception information.
2182 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2184 alpha*-*-*vms*)
2185 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2187 alpha*-*-linux*)
2188 # newlib is not 64 bit ready
2189 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2191 alpha*-*-*)
2192 # newlib is not 64 bit ready
2193 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2195 am33_2.0-*-linux*)
2196 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2198 sh-*-linux*)
2199 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2201 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2202 noconfigdirs="$noconfigdirs ${libgcj}"
2203 noconfigdirs="$noconfigdirs target-examples"
2204 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2205 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2206 noconfigdirs="$noconfigdirs expect dejagnu"
2207 # the C++ libraries don't build on top of CE's C libraries
2208 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2209 noconfigdirs="$noconfigdirs target-newlib"
2210 case "${host}" in
2211 *-*-cygwin*) ;; # keep gdb and readline
2212 *) noconfigdirs="$noconfigdirs gdb readline"
2214 esac
2216 arc-*-*)
2217 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2219 arm-semi-aof )
2221 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2222 noconfigdirs="$noconfigdirs ${libgcj}"
2224 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2225 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2227 arm*-*-linux-gnueabi)
2228 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2229 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2230 case ${with_newlib} in
2231 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2232 esac
2234 arm*-*-symbianelf*)
2235 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2237 arm-*-pe*)
2238 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2240 thumb-*-coff)
2241 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2243 thumb-*-elf)
2244 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2246 thumb-*-pe)
2247 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2249 arm-*-riscix*)
2250 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2252 avr-*-*)
2253 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2255 bfin-*-*)
2256 noconfigdirs="$noconfigdirs gdb"
2257 if test x${is_cross_compiler} != xno ; then
2258 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2261 c4x-*-* | tic4x-*-*)
2262 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2264 c54x*-*-* | tic54x-*-*)
2265 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2267 cris-*-* | crisv32-*-*)
2268 unsupported_languages="$unsupported_languages java"
2269 case "${target}" in
2270 *-*-aout)
2271 unsupported_languages="$unsupported_languages fortran"
2272 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2273 *-*-elf)
2274 unsupported_languages="$unsupported_languages fortran"
2275 noconfigdirs="$noconfigdirs target-boehm-gc";;
2276 *-*-linux*)
2277 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2279 unsupported_languages="$unsupported_languages fortran"
2280 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2281 esac
2283 crx-*-*)
2284 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2286 d10v-*-*)
2287 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2289 d30v-*-*)
2290 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2292 fr30-*-elf*)
2293 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2295 frv-*-*)
2296 noconfigdirs="$noconfigdirs ${libgcj}"
2298 h8300*-*-*)
2299 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2301 h8500-*-*)
2302 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2304 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2306 hppa*64*-*-linux* | parisc*64*-*-linux*)
2307 # In this case, it's because the hppa64-linux target is for
2308 # the kernel only at this point and has no libc, and thus no
2309 # headers, crt*.o, etc., all of which are needed by these.
2310 noconfigdirs="$noconfigdirs target-zlib"
2312 parisc*-*-linux* | hppa*-*-linux*)
2314 hppa*-*-*elf* | \
2315 hppa*-*-lites* | \
2316 hppa*-*-openbsd* | \
2317 hppa*64*-*-*)
2318 noconfigdirs="$noconfigdirs ${libgcj}"
2320 hppa*-hp-hpux11*)
2321 noconfigdirs="$noconfigdirs ld shellutils"
2323 hppa*-*-*)
2324 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2325 # build on HP-UX 10.20.
2326 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2328 i960-*-*)
2329 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2331 ia64*-*-elf*)
2332 # No gdb support yet.
2333 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2335 ia64*-**-hpux*)
2336 # No gdb or ld support yet.
2337 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2339 i370-*-opened*)
2341 i[3456789]86-*-coff | i[3456789]86-*-elf)
2342 noconfigdirs="$noconfigdirs ${libgcj}"
2344 i[3456789]86-*-linux*)
2345 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2346 # not build java stuff by default.
2347 case "${target}" in
2348 *-*-*libc1*)
2349 noconfigdirs="$noconfigdirs ${libgcj}";;
2350 esac
2352 # This section makes it possible to build newlib natively on linux.
2353 # If we are using a cross compiler then don't configure newlib.
2354 if test x${is_cross_compiler} != xno ; then
2355 noconfigdirs="$noconfigdirs target-newlib"
2357 noconfigdirs="$noconfigdirs target-libgloss"
2358 # If we are not using a cross compiler, do configure newlib.
2359 # Note however, that newlib will only be configured in this situation
2360 # if the --with-newlib option has been given, because otherwise
2361 # 'target-newlib' will appear in skipdirs.
2363 i[3456789]86-*-mingw32*)
2364 target_configdirs="$target_configdirs target-winsup"
2365 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2367 x86_64-*-mingw*)
2368 target_configdirs="$target_configdirs target-winsup"
2369 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2371 *-*-cygwin*)
2372 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2373 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2374 # always build newlib if winsup directory is present.
2375 if test -d "$srcdir/winsup/cygwin"; then
2376 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2377 elif test -d "$srcdir/newlib"; then
2378 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2381 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2382 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2384 i[3456789]86-*-pe)
2385 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2387 i[3456789]86-*-sco3.2v5*)
2388 # The linker does not yet know about weak symbols in COFF,
2389 # and is not configured to handle mixed ELF and COFF.
2390 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2392 i[3456789]86-*-sco*)
2393 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2395 i[3456789]86-*-solaris2*)
2396 noconfigdirs="$noconfigdirs target-libgloss"
2398 i[3456789]86-*-sysv4*)
2399 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2401 i[3456789]86-*-beos*)
2402 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2404 i[3456789]86-*-rdos*)
2405 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2407 m32r-*-*)
2408 noconfigdirs="$noconfigdirs ${libgcj}"
2410 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2411 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2413 m68k-*-elf*)
2414 noconfigdirs="$noconfigdirs ${libgcj}"
2416 m68k-*-coff*)
2417 noconfigdirs="$noconfigdirs ${libgcj}"
2419 mcore-*-pe*)
2420 # The EPOC C++ environment does not support exceptions or rtti,
2421 # and so building libstdc++-v3 tends not to always work.
2422 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2424 mmix-*-*)
2425 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2426 unsupported_languages="$unsupported_languages fortran java"
2428 mn10200-*-*)
2429 noconfigdirs="$noconfigdirs ${libgcj}"
2431 mn10300-*-*)
2432 noconfigdirs="$noconfigdirs ${libgcj}"
2434 mt-*-*)
2435 noconfigdirs="$noconfigdirs sim"
2437 powerpc-*-aix*)
2438 # copied from rs6000-*-* entry
2439 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2441 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2442 target_configdirs="$target_configdirs target-winsup"
2443 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2444 # always build newlib.
2445 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2447 # This is temporary until we can link against shared libraries
2448 powerpcle-*-solaris*)
2449 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2451 powerpc-*-beos*)
2452 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2454 powerpc-*-eabi)
2455 noconfigdirs="$noconfigdirs ${libgcj}"
2457 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2459 rs6000-*-lynxos*)
2460 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2462 rs6000-*-aix*)
2463 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2465 rs6000-*-*)
2466 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2468 m68k-apollo-*)
2469 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2471 mips*-*-irix5*)
2472 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2474 mips*-*-irix6*)
2475 # Linking libjava exceeds command-line length limits on at least
2476 # IRIX 6.2, but not on IRIX 6.5.
2477 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2478 # <oldham@codesourcery.com>
2479 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2481 mips*-*-bsd*)
2482 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2484 mips64*-*-linux*)
2485 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2487 mips*-*-linux*)
2488 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2490 mips*-*-*)
2491 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2493 romp-*-*)
2494 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2496 sh-*-* | sh64-*-*)
2497 case "${host}" in
2498 i[3456789]86-*-vsta) ;; # don't add gprof back in
2499 i[3456789]86-*-go32*) ;; # don't add gprof back in
2500 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2501 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2502 esac
2503 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2505 sparc-*-elf*)
2506 noconfigdirs="$noconfigdirs ${libgcj}"
2508 sparc64-*-elf*)
2509 noconfigdirs="$noconfigdirs ${libgcj}"
2511 sparclite-*-*)
2512 noconfigdirs="$noconfigdirs ${libgcj}"
2514 sparc-*-sunos4*)
2515 noconfigdirs="$noconfigdirs ${libgcj}"
2516 if test x${is_cross_compiler} != xno ; then
2517 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2518 else
2519 use_gnu_ld=no
2522 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2523 noconfigdirs="$noconfigdirs ${libgcj}"
2525 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2527 spu-*-*)
2528 skipdirs="target-libssp"
2530 v810-*-*)
2531 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2533 v850-*-*)
2534 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2536 v850e-*-*)
2537 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2539 v850ea-*-*)
2540 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2542 vax-*-vms)
2543 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2545 vax-*-*)
2546 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2548 xtensa-*-*)
2549 noconfigdirs="$noconfigdirs ${libgcj}"
2551 ip2k-*-*)
2552 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2554 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2557 *-*-lynxos*)
2558 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2560 *-*-*)
2561 noconfigdirs="$noconfigdirs ${libgcj}"
2563 esac
2565 # If we aren't building newlib, then don't build libgloss, since libgloss
2566 # depends upon some newlib header files.
2567 case "${noconfigdirs}" in
2568 *target-libgloss*) ;;
2569 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2570 esac
2572 # Work in distributions that contain no compiler tools, like Autoconf.
2573 tentative_cc=""
2574 host_makefile_frag=/dev/null
2575 if test -d ${srcdir}/config ; then
2576 case "${host}" in
2577 m68k-hp-hpux*)
2578 # Avoid "too much defining" errors from HPUX compiler.
2579 tentative_cc="cc -Wp,-H256000"
2580 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2581 # If it's HP/UX ar, this should be harmless.
2582 RANLIB="ar ts"
2584 m68k-apollo-sysv*)
2585 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2587 m68k-apollo-bsd*)
2588 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2589 # chokes on bfd, the compiler won't let you assign integers to enums, and
2590 # other problems. Defining CC to gcc is a questionable way to say "don't use
2591 # the apollo compiler" (the preferred version of GCC could be called cc,
2592 # or whatever), but I'm not sure leaving CC as cc is any better...
2593 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2594 # Used to have BISON=yacc.
2595 tentative_cc=gcc
2597 m88k-dg-dgux*)
2598 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2600 m88k-harris-cxux*)
2601 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2602 tentative_cc="cc -Xa"
2603 host_makefile_frag="config/mh-cxux"
2605 m88k-motorola-sysv*)
2607 mips*-dec-ultrix*)
2608 tentative_cc="cc -Wf,-XNg1000"
2609 host_makefile_frag="config/mh-decstation"
2611 mips*-nec-sysv4*)
2612 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2613 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2614 host_makefile_frag="config/mh-necv4"
2616 mips*-sgi-irix4*)
2617 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2618 # environment. Also bump switch table size so that cp-parse will
2619 # compile. Bump string length limit so linker builds.
2620 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2622 mips*-*-sysv4*)
2623 host_makefile_frag="config/mh-sysv4"
2625 mips*-*-sysv*)
2626 # This is for a MIPS running RISC/os 4.52C.
2628 # This is needed for GDB, but needs to be in the top-level make because
2629 # if a library is compiled with the bsd headers and gets linked with the
2630 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2631 # a different size).
2632 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2633 # known except to select the sysv environment. Could we use /proc instead?
2634 # These "sysv environments" and "bsd environments" often end up being a pain.
2636 # This is not part of CFLAGS because perhaps not all C compilers have this
2637 # option.
2638 tentative_cc="cc -systype sysv"
2640 i370-ibm-opened*)
2641 tentative_cc="c89"
2643 i[3456789]86-*-sysv5*)
2644 host_makefile_frag="config/mh-sysv5"
2646 i[3456789]86-*-dgux*)
2647 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2648 host_makefile_frag="config/mh-dgux386"
2650 i[3456789]86-ncr-sysv4.3*)
2651 # The MetaWare compiler will generate a copyright message unless you
2652 # turn it off by adding the -Hnocopyr flag.
2653 tentative_cc="cc -Hnocopyr"
2655 i[3456789]86-ncr-sysv4*)
2656 # for an NCR 3000 (i486/SVR4) system.
2657 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2658 # This compiler not only emits obnoxious copyright messages every time
2659 # you run it, but it chokes and dies on a whole bunch of GNU source
2660 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2661 tentative_cc="/usr/ccs/ATT/cc"
2662 host_makefile_frag="config/mh-ncr3000"
2664 i[3456789]86-*-sco3.2v5*)
2666 i[3456789]86-*-sco*)
2667 # The native C compiler botches some simple uses of const. Unfortunately,
2668 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2669 tentative_cc="cc -Dconst="
2670 host_makefile_frag="config/mh-sco"
2672 i[3456789]86-*-udk*)
2673 host_makefile_frag="config/mh-sysv5"
2675 i[3456789]86-*-solaris2*)
2676 host_makefile_frag="config/mh-sysv4"
2678 i[3456789]86-*-msdosdjgpp*)
2679 host_makefile_frag="config/mh-djgpp"
2681 *-cygwin*)
2682 host_makefile_frag="config/mh-cygwin"
2684 *-mingw32*)
2686 *-mingw64*)
2688 *-interix*)
2689 host_makefile_frag="config/mh-interix"
2691 vax-*-ultrix2*)
2692 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2693 tentative_cc=gcc
2695 *-*-solaris2*)
2696 host_makefile_frag="config/mh-solaris"
2698 m68k-sun-sunos*)
2699 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2700 # without overflowing the jump tables (-J says to use a 32 bit table)
2701 tentative_cc="cc -J"
2703 *-hp-hpux*)
2704 tentative_cc="cc -Wp,-H256000"
2706 *-*-hiux*)
2707 tentative_cc="cc -Wp,-H256000"
2709 rs6000-*-lynxos*)
2710 # /bin/cc is less than useful for our purposes. Always use GCC
2711 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2712 host_makefile_frag="config/mh-lynxrs6k"
2714 powerpc-*-darwin*)
2715 host_makefile_frag="config/mh-ppc-darwin"
2717 powerpc-*-aix*)
2718 host_makefile_frag="config/mh-ppc-aix"
2720 rs6000-*-aix*)
2721 host_makefile_frag="config/mh-ppc-aix"
2723 *-*-lynxos*)
2724 # /bin/cc is less than useful for our purposes. Always use GCC
2725 tentative_cc="/bin/gcc"
2727 *-*-sysv4*)
2728 host_makefile_frag="config/mh-sysv4"
2730 # This is placed last to prevent interfering with the cases above.
2731 i[3456789]86-*-*)
2732 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2733 host_makefile_frag="config/mh-x86omitfp"
2735 esac
2738 # If we aren't going to be using gcc, see if we can extract a definition
2739 # of CC from the fragment.
2740 # Actually, use the 'pre-extracted' version above.
2741 if test -z "${CC}" && test "${build}" = "${host}" ; then
2742 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2743 found=
2744 for dir in $PATH; do
2745 test -z "$dir" && dir=.
2746 if test -f $dir/gcc; then
2747 found=yes
2748 break
2750 done
2751 IFS="$save_ifs"
2752 if test -z "${found}" && test -n "${tentative_cc}" ; then
2753 CC=$tentative_cc
2757 if test "${build}" != "${host}" ; then
2758 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2759 else
2760 CC_FOR_BUILD="\$(CC)"
2763 ac_ext=c
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768 if test -n "$ac_tool_prefix"; then
2769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2771 echo "$as_me:$LINENO: checking for $ac_word" >&5
2772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773 if test "${ac_cv_prog_CC+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2790 done
2791 done
2795 CC=$ac_cv_prog_CC
2796 if test -n "$CC"; then
2797 echo "$as_me:$LINENO: result: $CC" >&5
2798 echo "${ECHO_T}$CC" >&6
2799 else
2800 echo "$as_me:$LINENO: result: no" >&5
2801 echo "${ECHO_T}no" >&6
2805 if test -z "$ac_cv_prog_CC"; then
2806 ac_ct_CC=$CC
2807 # Extract the first word of "gcc", so it can be a program name with args.
2808 set dummy gcc; ac_word=$2
2809 echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 else
2814 if test -n "$ac_ct_CC"; then
2815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_prog_ac_ct_CC="gcc"
2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2828 done
2829 done
2833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2834 if test -n "$ac_ct_CC"; then
2835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2836 echo "${ECHO_T}$ac_ct_CC" >&6
2837 else
2838 echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6
2842 CC=$ac_ct_CC
2843 else
2844 CC="$ac_cv_prog_CC"
2847 if test -z "$CC"; then
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2850 set dummy ${ac_tool_prefix}cc; ac_word=$2
2851 echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853 if test "${ac_cv_prog_CC+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CC="${ac_tool_prefix}cc"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2870 done
2871 done
2875 CC=$ac_cv_prog_CC
2876 if test -n "$CC"; then
2877 echo "$as_me:$LINENO: result: $CC" >&5
2878 echo "${ECHO_T}$CC" >&6
2879 else
2880 echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6
2885 if test -z "$ac_cv_prog_CC"; then
2886 ac_ct_CC=$CC
2887 # Extract the first word of "cc", so it can be a program name with args.
2888 set dummy cc; ac_word=$2
2889 echo "$as_me:$LINENO: checking for $ac_word" >&5
2890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894 if test -n "$ac_ct_CC"; then
2895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_ac_ct_CC="cc"
2905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2908 done
2909 done
2913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2914 if test -n "$ac_ct_CC"; then
2915 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2916 echo "${ECHO_T}$ac_ct_CC" >&6
2917 else
2918 echo "$as_me:$LINENO: result: no" >&5
2919 echo "${ECHO_T}no" >&6
2922 CC=$ac_ct_CC
2923 else
2924 CC="$ac_cv_prog_CC"
2928 if test -z "$CC"; then
2929 # Extract the first word of "cc", so it can be a program name with args.
2930 set dummy cc; ac_word=$2
2931 echo "$as_me:$LINENO: checking for $ac_word" >&5
2932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2933 if test "${ac_cv_prog_CC+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 ac_prog_rejected=no
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2948 ac_prog_rejected=yes
2949 continue
2951 ac_cv_prog_CC="cc"
2952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2955 done
2956 done
2958 if test $ac_prog_rejected = yes; then
2959 # We found a bogon in the path, so make sure we never use it.
2960 set dummy $ac_cv_prog_CC
2961 shift
2962 if test $# != 0; then
2963 # We chose a different compiler from the bogus one.
2964 # However, it has the same basename, so the bogon will be chosen
2965 # first if we set CC to just the basename; use the full file name.
2966 shift
2967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2972 CC=$ac_cv_prog_CC
2973 if test -n "$CC"; then
2974 echo "$as_me:$LINENO: result: $CC" >&5
2975 echo "${ECHO_T}$CC" >&6
2976 else
2977 echo "$as_me:$LINENO: result: no" >&5
2978 echo "${ECHO_T}no" >&6
2982 if test -z "$CC"; then
2983 if test -n "$ac_tool_prefix"; then
2984 for ac_prog in cl
2986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2988 echo "$as_me:$LINENO: checking for $ac_word" >&5
2989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2990 if test "${ac_cv_prog_CC+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3007 done
3008 done
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014 echo "$as_me:$LINENO: result: $CC" >&5
3015 echo "${ECHO_T}$CC" >&6
3016 else
3017 echo "$as_me:$LINENO: result: no" >&5
3018 echo "${ECHO_T}no" >&6
3021 test -n "$CC" && break
3022 done
3024 if test -z "$CC"; then
3025 ac_ct_CC=$CC
3026 for ac_prog in cl
3028 # Extract the first word of "$ac_prog", so it can be a program name with args.
3029 set dummy $ac_prog; ac_word=$2
3030 echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035 if test -n "$ac_ct_CC"; then
3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_ac_ct_CC="$ac_prog"
3046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3049 done
3050 done
3054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3055 if test -n "$ac_ct_CC"; then
3056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3057 echo "${ECHO_T}$ac_ct_CC" >&6
3058 else
3059 echo "$as_me:$LINENO: result: no" >&5
3060 echo "${ECHO_T}no" >&6
3063 test -n "$ac_ct_CC" && break
3064 done
3066 CC=$ac_ct_CC
3072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3073 See \`config.log' for more details." >&5
3074 echo "$as_me: error: no acceptable C compiler found in \$PATH
3075 See \`config.log' for more details." >&2;}
3076 { (exit 1); exit 1; }; }
3078 # Provide some information about the compiler.
3079 echo "$as_me:$LINENO:" \
3080 "checking for C compiler version" >&5
3081 ac_compiler=`set X $ac_compile; echo $2`
3082 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3083 (eval $ac_compiler --version </dev/null >&5) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }
3087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3088 (eval $ac_compiler -v </dev/null >&5) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }
3092 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3093 (eval $ac_compiler -V </dev/null >&5) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }
3098 cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h. */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3106 main ()
3110 return 0;
3112 _ACEOF
3113 ac_clean_files_save=$ac_clean_files
3114 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3115 # Try to create an executable without -o first, disregard a.out.
3116 # It will help us diagnose broken compilers, and finding out an intuition
3117 # of exeext.
3118 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3119 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3120 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3121 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3122 (eval $ac_link_default) 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; then
3126 # Find the output, starting from the most likely. This scheme is
3127 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3128 # resort.
3130 # Be careful to initialize this variable, since it used to be cached.
3131 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3132 ac_cv_exeext=
3133 # b.out is created by i960 compilers.
3134 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3136 test -f "$ac_file" || continue
3137 case $ac_file in
3138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3140 conftest.$ac_ext )
3141 # This is the source file.
3143 [ab].out )
3144 # We found the default executable, but exeext='' is most
3145 # certainly right.
3146 break;;
3147 *.* )
3148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3149 # FIXME: I believe we export ac_cv_exeext for Libtool,
3150 # but it would be cool to find out if it's true. Does anybody
3151 # maintain Libtool? --akim.
3152 export ac_cv_exeext
3153 break;;
3155 break;;
3156 esac
3157 done
3158 else
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3163 See \`config.log' for more details." >&5
3164 echo "$as_me: error: C compiler cannot create executables
3165 See \`config.log' for more details." >&2;}
3166 { (exit 77); exit 77; }; }
3169 ac_exeext=$ac_cv_exeext
3170 echo "$as_me:$LINENO: result: $ac_file" >&5
3171 echo "${ECHO_T}$ac_file" >&6
3173 # Check the compiler produces executables we can run. If not, either
3174 # the compiler is broken, or we cross compile.
3175 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3176 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3177 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3178 # If not cross compiling, check that we can run a simple program.
3179 if test "$cross_compiling" != yes; then
3180 if { ac_try='./$ac_file'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 (eval $ac_try) 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 cross_compiling=no
3187 else
3188 if test "$cross_compiling" = maybe; then
3189 cross_compiling=yes
3190 else
3191 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3192 If you meant to cross compile, use \`--host'.
3193 See \`config.log' for more details." >&5
3194 echo "$as_me: error: cannot run C compiled programs.
3195 If you meant to cross compile, use \`--host'.
3196 See \`config.log' for more details." >&2;}
3197 { (exit 1); exit 1; }; }
3201 echo "$as_me:$LINENO: result: yes" >&5
3202 echo "${ECHO_T}yes" >&6
3204 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3205 ac_clean_files=$ac_clean_files_save
3206 # Check the compiler produces executables we can run. If not, either
3207 # the compiler is broken, or we cross compile.
3208 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3209 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3210 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3211 echo "${ECHO_T}$cross_compiling" >&6
3213 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3214 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3216 (eval $ac_link) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; then
3220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3222 # work properly (i.e., refer to `conftest.exe'), while it won't with
3223 # `rm'.
3224 for ac_file in conftest.exe conftest conftest.*; do
3225 test -f "$ac_file" || continue
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229 export ac_cv_exeext
3230 break;;
3231 * ) break;;
3232 esac
3233 done
3234 else
3235 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details." >&5
3237 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3238 See \`config.log' for more details." >&2;}
3239 { (exit 1); exit 1; }; }
3242 rm -f conftest$ac_cv_exeext
3243 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3244 echo "${ECHO_T}$ac_cv_exeext" >&6
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3248 ac_exeext=$EXEEXT
3249 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3250 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3251 if test "${ac_cv_objext+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h. */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3262 main ()
3266 return 0;
3268 _ACEOF
3269 rm -f conftest.o conftest.obj
3270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271 (eval $ac_compile) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; then
3275 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3276 case $ac_file in
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3279 break;;
3280 esac
3281 done
3282 else
3283 echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3286 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3287 See \`config.log' for more details." >&5
3288 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3289 See \`config.log' for more details." >&2;}
3290 { (exit 1); exit 1; }; }
3293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3295 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3296 echo "${ECHO_T}$ac_cv_objext" >&6
3297 OBJEXT=$ac_cv_objext
3298 ac_objext=$OBJEXT
3299 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3300 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3301 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304 cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h. */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3312 main ()
3314 #ifndef __GNUC__
3315 choke me
3316 #endif
3319 return 0;
3321 _ACEOF
3322 rm -f conftest.$ac_objext
3323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324 (eval $ac_compile) 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag"
3332 || test ! -s conftest.err'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 (eval $ac_try) 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; } &&
3338 { ac_try='test -s conftest.$ac_objext'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 (eval $ac_try) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; }; then
3344 ac_compiler_gnu=yes
3345 else
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 ac_compiler_gnu=no
3351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3355 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3356 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3357 GCC=`test $ac_compiler_gnu = yes && echo yes`
3358 ac_test_CFLAGS=${CFLAGS+set}
3359 ac_save_CFLAGS=$CFLAGS
3360 CFLAGS="-g"
3361 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3362 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3363 if test "${ac_cv_prog_cc_g+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3374 main ()
3378 return 0;
3380 _ACEOF
3381 rm -f conftest.$ac_objext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383 (eval $ac_compile) 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 (eval $ac_try) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest.$ac_objext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 ac_cv_prog_cc_g=yes
3404 else
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 ac_cv_prog_cc_g=no
3410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3412 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3413 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3414 if test "$ac_test_CFLAGS" = set; then
3415 CFLAGS=$ac_save_CFLAGS
3416 elif test $ac_cv_prog_cc_g = yes; then
3417 if test "$GCC" = yes; then
3418 CFLAGS="-g -O2"
3419 else
3420 CFLAGS="-g"
3422 else
3423 if test "$GCC" = yes; then
3424 CFLAGS="-O2"
3425 else
3426 CFLAGS=
3429 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3430 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3431 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 else
3434 ac_cv_prog_cc_stdc=no
3435 ac_save_CC=$CC
3436 cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h. */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #include <stdarg.h>
3443 #include <stdio.h>
3444 #include <sys/types.h>
3445 #include <sys/stat.h>
3446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3447 struct buf { int x; };
3448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3449 static char *e (p, i)
3450 char **p;
3451 int i;
3453 return p[i];
3455 static char *f (char * (*g) (char **, int), char **p, ...)
3457 char *s;
3458 va_list v;
3459 va_start (v,p);
3460 s = g (p, va_arg (v,int));
3461 va_end (v);
3462 return s;
3465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3466 function prototypes and stuff, but not '\xHH' hex character constants.
3467 These don't provoke an error unfortunately, instead are silently treated
3468 as 'x'. The following induces an error, until -std1 is added to get
3469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3470 array size at least. It's necessary to write '\x00'==0 to get something
3471 that's true only with -std1. */
3472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3474 int test (int i, double x);
3475 struct s1 {int (*f) (int a);};
3476 struct s2 {int (*f) (double a);};
3477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3478 int argc;
3479 char **argv;
3481 main ()
3483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3485 return 0;
3487 _ACEOF
3488 # Don't try gcc -ansi; that turns off useful extensions and
3489 # breaks some systems' header files.
3490 # AIX -qlanglvl=ansi
3491 # Ultrix and OSF/1 -std1
3492 # HP-UX 10.20 and later -Ae
3493 # HP-UX older versions -Aa -D_HPUX_SOURCE
3494 # SVR4 -Xc -D__EXTENSIONS__
3495 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3497 CC="$ac_save_CC $ac_arg"
3498 rm -f conftest.$ac_objext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>conftest.er1
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -z "$ac_c_werror_flag"
3508 || test ! -s conftest.err'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; } &&
3514 { ac_try='test -s conftest.$ac_objext'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 ac_cv_prog_cc_stdc=$ac_arg
3521 break
3522 else
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3527 rm -f conftest.err conftest.$ac_objext
3528 done
3529 rm -f conftest.$ac_ext conftest.$ac_objext
3530 CC=$ac_save_CC
3534 case "x$ac_cv_prog_cc_stdc" in
3535 x|xno)
3536 echo "$as_me:$LINENO: result: none needed" >&5
3537 echo "${ECHO_T}none needed" >&6 ;;
3539 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3540 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3541 CC="$CC $ac_cv_prog_cc_stdc" ;;
3542 esac
3544 # Some people use a C++ compiler to compile C. Since we use `exit',
3545 # in C++ we need to declare it. In case someone uses the same compiler
3546 # for both compiling C and C++ we need to have the C++ compiler decide
3547 # the declaration of exit, since it's the most demanding environment.
3548 cat >conftest.$ac_ext <<_ACEOF
3549 #ifndef __cplusplus
3550 choke me
3551 #endif
3552 _ACEOF
3553 rm -f conftest.$ac_objext
3554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555 (eval $ac_compile) 2>conftest.er1
3556 ac_status=$?
3557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } &&
3562 { ac_try='test -z "$ac_c_werror_flag"
3563 || test ! -s conftest.err'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 (eval $ac_try) 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; } &&
3569 { ac_try='test -s conftest.$ac_objext'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; }; then
3575 for ac_declaration in \
3576 '' \
3577 'extern "C" void std::exit (int) throw (); using std::exit;' \
3578 'extern "C" void std::exit (int); using std::exit;' \
3579 'extern "C" void exit (int) throw ();' \
3580 'extern "C" void exit (int);' \
3581 'void exit (int);'
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 $ac_declaration
3590 #include <stdlib.h>
3592 main ()
3594 exit (42);
3596 return 0;
3598 _ACEOF
3599 rm -f conftest.$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601 (eval $ac_compile) 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try='test -z "$ac_c_werror_flag"
3609 || test ! -s conftest.err'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; } &&
3615 { ac_try='test -s conftest.$ac_objext'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; }; then
3622 else
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3626 continue
3628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3629 cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h. */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3635 $ac_declaration
3637 main ()
3639 exit (42);
3641 return 0;
3643 _ACEOF
3644 rm -f conftest.$ac_objext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646 (eval $ac_compile) 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try='test -z "$ac_c_werror_flag"
3654 || test ! -s conftest.err'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 (eval $ac_try) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; } &&
3660 { ac_try='test -s conftest.$ac_objext'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; }; then
3666 break
3667 else
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3673 done
3674 rm -f conftest*
3675 if test -n "$ac_declaration"; then
3676 echo '#ifdef __cplusplus' >>confdefs.h
3677 echo $ac_declaration >>confdefs.h
3678 echo '#endif' >>confdefs.h
3681 else
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687 ac_ext=c
3688 ac_cpp='$CPP $CPPFLAGS'
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3693 ac_ext=cc
3694 ac_cpp='$CXXCPP $CPPFLAGS'
3695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3698 if test -n "$ac_tool_prefix"; then
3699 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3703 echo "$as_me:$LINENO: checking for $ac_word" >&5
3704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705 if test "${ac_cv_prog_CXX+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708 if test -n "$CXX"; then
3709 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3722 done
3723 done
3727 CXX=$ac_cv_prog_CXX
3728 if test -n "$CXX"; then
3729 echo "$as_me:$LINENO: result: $CXX" >&5
3730 echo "${ECHO_T}$CXX" >&6
3731 else
3732 echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6
3736 test -n "$CXX" && break
3737 done
3739 if test -z "$CXX"; then
3740 ac_ct_CXX=$CXX
3741 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 if test -n "$ac_ct_CXX"; then
3751 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_ac_ct_CXX="$ac_prog"
3761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3769 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3770 if test -n "$ac_ct_CXX"; then
3771 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3772 echo "${ECHO_T}$ac_ct_CXX" >&6
3773 else
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3778 test -n "$ac_ct_CXX" && break
3779 done
3780 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3782 CXX=$ac_ct_CXX
3786 # Provide some information about the compiler.
3787 echo "$as_me:$LINENO:" \
3788 "checking for C++ compiler version" >&5
3789 ac_compiler=`set X $ac_compile; echo $2`
3790 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3791 (eval $ac_compiler --version </dev/null >&5) 2>&5
3792 ac_status=$?
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }
3795 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3796 (eval $ac_compiler -v </dev/null >&5) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }
3800 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3801 (eval $ac_compiler -V </dev/null >&5) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }
3806 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3807 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3808 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3819 main ()
3821 #ifndef __GNUC__
3822 choke me
3823 #endif
3826 return 0;
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_cxx_werror_flag"
3839 || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 ac_compiler_gnu=yes
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3856 ac_compiler_gnu=no
3858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3862 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3863 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3864 GXX=`test $ac_compiler_gnu = yes && echo yes`
3865 ac_test_CXXFLAGS=${CXXFLAGS+set}
3866 ac_save_CXXFLAGS=$CXXFLAGS
3867 CXXFLAGS="-g"
3868 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3869 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3870 if test "${ac_cv_prog_cxx_g+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873 cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h. */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3881 main ()
3885 return 0;
3887 _ACEOF
3888 rm -f conftest.$ac_objext
3889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3890 (eval $ac_compile) 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } &&
3897 { ac_try='test -z "$ac_cxx_werror_flag"
3898 || test ! -s conftest.err'
3899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900 (eval $ac_try) 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; } &&
3904 { ac_try='test -s conftest.$ac_objext'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 (eval $ac_try) 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_cv_prog_cxx_g=yes
3911 else
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_cv_prog_cxx_g=no
3917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3919 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3920 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3921 if test "$ac_test_CXXFLAGS" = set; then
3922 CXXFLAGS=$ac_save_CXXFLAGS
3923 elif test $ac_cv_prog_cxx_g = yes; then
3924 if test "$GXX" = yes; then
3925 CXXFLAGS="-g -O2"
3926 else
3927 CXXFLAGS="-g"
3929 else
3930 if test "$GXX" = yes; then
3931 CXXFLAGS="-O2"
3932 else
3933 CXXFLAGS=
3936 for ac_declaration in \
3937 '' \
3938 'extern "C" void std::exit (int) throw (); using std::exit;' \
3939 'extern "C" void std::exit (int); using std::exit;' \
3940 'extern "C" void exit (int) throw ();' \
3941 'extern "C" void exit (int);' \
3942 'void exit (int);'
3944 cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h. */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 $ac_declaration
3951 #include <stdlib.h>
3953 main ()
3955 exit (42);
3957 return 0;
3959 _ACEOF
3960 rm -f conftest.$ac_objext
3961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962 (eval $ac_compile) 2>conftest.er1
3963 ac_status=$?
3964 grep -v '^ *+' conftest.er1 >conftest.err
3965 rm -f conftest.er1
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } &&
3969 { ac_try='test -z "$ac_cxx_werror_flag"
3970 || test ! -s conftest.err'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; } &&
3976 { ac_try='test -s conftest.$ac_objext'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3987 continue
3989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3990 cat >conftest.$ac_ext <<_ACEOF
3991 /* confdefs.h. */
3992 _ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3996 $ac_declaration
3998 main ()
4000 exit (42);
4002 return 0;
4004 _ACEOF
4005 rm -f conftest.$ac_objext
4006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4007 (eval $ac_compile) 2>conftest.er1
4008 ac_status=$?
4009 grep -v '^ *+' conftest.er1 >conftest.err
4010 rm -f conftest.er1
4011 cat conftest.err >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } &&
4014 { ac_try='test -z "$ac_cxx_werror_flag"
4015 || test ! -s conftest.err'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4017 (eval $ac_try) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; } &&
4021 { ac_try='test -s conftest.$ac_objext'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 (eval $ac_try) 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; }; then
4027 break
4028 else
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4034 done
4035 rm -f conftest*
4036 if test -n "$ac_declaration"; then
4037 echo '#ifdef __cplusplus' >>confdefs.h
4038 echo $ac_declaration >>confdefs.h
4039 echo '#endif' >>confdefs.h
4042 ac_ext=c
4043 ac_cpp='$CPP $CPPFLAGS'
4044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049 # We must set the default linker to the linker used by gcc for the correct
4050 # operation of libtool. If LD is not defined and we are using gcc, try to
4051 # set the LD default to the ld used by gcc.
4052 if test -z "$LD"; then
4053 if test "$GCC" = yes; then
4054 case $build in
4055 *-*-mingw*)
4056 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4058 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4059 esac
4060 case $gcc_prog_ld in
4061 # Accept absolute paths.
4062 [\\/]* | [A-Za-z]:[\\/]*)
4063 LD="$gcc_prog_ld" ;;
4064 esac
4071 if test -n "$ac_tool_prefix"; then
4072 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4073 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4074 echo "$as_me:$LINENO: checking for $ac_word" >&5
4075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4076 if test "${ac_cv_prog_GNATBIND+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079 if test -n "$GNATBIND"; then
4080 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4081 else
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 break 2
4093 done
4094 done
4098 GNATBIND=$ac_cv_prog_GNATBIND
4099 if test -n "$GNATBIND"; then
4100 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4101 echo "${ECHO_T}$GNATBIND" >&6
4102 else
4103 echo "$as_me:$LINENO: result: no" >&5
4104 echo "${ECHO_T}no" >&6
4108 if test -z "$ac_cv_prog_GNATBIND"; then
4109 ac_ct_GNATBIND=$GNATBIND
4110 # Extract the first word of "gnatbind", so it can be a program name with args.
4111 set dummy gnatbind; ac_word=$2
4112 echo "$as_me:$LINENO: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117 if test -n "$ac_ct_GNATBIND"; then
4118 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 break 2
4131 done
4132 done
4134 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4137 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4138 if test -n "$ac_ct_GNATBIND"; then
4139 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4140 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4141 else
4142 echo "$as_me:$LINENO: result: no" >&5
4143 echo "${ECHO_T}no" >&6
4146 GNATBIND=$ac_ct_GNATBIND
4147 else
4148 GNATBIND="$ac_cv_prog_GNATBIND"
4151 if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4153 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4154 echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159 if test -n "$GNATMAKE"; then
4160 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4173 done
4174 done
4178 GNATMAKE=$ac_cv_prog_GNATMAKE
4179 if test -n "$GNATMAKE"; then
4180 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4181 echo "${ECHO_T}$GNATMAKE" >&6
4182 else
4183 echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4188 if test -z "$ac_cv_prog_GNATMAKE"; then
4189 ac_ct_GNATMAKE=$GNATMAKE
4190 # Extract the first word of "gnatmake", so it can be a program name with args.
4191 set dummy gnatmake; ac_word=$2
4192 echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4194 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 if test -n "$ac_ct_GNATMAKE"; then
4198 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 break 2
4211 done
4212 done
4214 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4217 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4218 if test -n "$ac_ct_GNATMAKE"; then
4219 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4220 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4221 else
4222 echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6
4226 GNATMAKE=$ac_ct_GNATMAKE
4227 else
4228 GNATMAKE="$ac_cv_prog_GNATMAKE"
4231 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4232 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4233 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 else
4236 cat >conftest.adb <<EOF
4237 procedure conftest is begin null; end conftest;
4239 acx_cv_cc_gcc_supports_ada=no
4240 # There is a bug in old released versions of GCC which causes the
4241 # driver to exit successfully when the appropriate language module
4242 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4243 # Therefore we must check for the error message as well as an
4244 # unsuccessful exit.
4245 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4246 # given a .adb file, but produce no object file. So we must check
4247 # if an object file was really produced to guard against this.
4248 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4249 if test x"$errors" = x && test -f conftest.$ac_objext; then
4250 acx_cv_cc_gcc_supports_ada=yes
4252 rm -f conftest.*
4254 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4255 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4257 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4258 have_gnat=yes
4259 else
4260 have_gnat=no
4263 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4264 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4265 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 echo abfoo >t1
4269 echo cdfoo >t2
4270 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4271 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4272 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4274 else
4275 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4278 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4279 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4281 else
4282 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4285 rm t1 t2
4288 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4289 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4290 do_compare="$gcc_cv_prog_cmp_skip"
4294 # Check for GMP and MPFR
4295 gmplibs="-lmpfr -lgmp"
4296 gmpinc=
4297 have_gmp=no
4299 # Specify a location for mpfr
4300 # check for this first so it ends up on the link line before gmp.
4302 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4303 if test "${with_mpfr_dir+set}" = set; then
4304 withval="$with_mpfr_dir"
4305 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4306 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4307 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4308 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4309 { (exit 1); exit 1; }; }
4313 # Check whether --with-mpfr or --without-mpfr was given.
4314 if test "${with_mpfr+set}" = set; then
4315 withval="$with_mpfr"
4319 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4320 if test "${with_mpfr_include+set}" = set; then
4321 withval="$with_mpfr_include"
4325 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4326 if test "${with_mpfr_lib+set}" = set; then
4327 withval="$with_mpfr_lib"
4331 if test "x$with_mpfr" != x; then
4332 gmplibs="-L$with_mpfr/lib $gmplibs"
4333 gmpinc="-I$with_mpfr/include"
4335 if test "x$with_mpfr_include" != x; then
4336 gmpinc="-I$with_mpfr_include"
4338 if test "x$with_mpfr_lib" != x; then
4339 gmplibs="-L$with_mpfr_lib $gmplibs"
4341 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4342 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4343 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4344 # Do not test the mpfr version. Assume that it is sufficient, since
4345 # it is in the source tree, and the library has not been built yet
4346 # but it would be included on the link line in the version check below
4347 # hence making the test fail.
4348 have_gmp=yes
4351 # Specify a location for gmp
4353 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4354 if test "${with_gmp_dir+set}" = set; then
4355 withval="$with_gmp_dir"
4356 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4357 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4358 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4359 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4360 { (exit 1); exit 1; }; }
4364 # Check whether --with-gmp or --without-gmp was given.
4365 if test "${with_gmp+set}" = set; then
4366 withval="$with_gmp"
4370 # Check whether --with-gmp_include or --without-gmp_include was given.
4371 if test "${with_gmp_include+set}" = set; then
4372 withval="$with_gmp_include"
4376 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4377 if test "${with_gmp_lib+set}" = set; then
4378 withval="$with_gmp_lib"
4383 if test "x$with_gmp" != x; then
4384 gmplibs="-L$with_gmp/lib $gmplibs"
4385 gmpinc="-I$with_gmp/include $gmpinc"
4387 if test "x$with_gmp_include" != x; then
4388 gmpinc="-I$with_gmp_include $gmpinc"
4390 if test "x$with_gmp_lib" != x; then
4391 gmplibs="-L$with_gmp_lib $gmplibs"
4393 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4394 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4395 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4396 # Do not test the gmp version. Assume that it is sufficient, since
4397 # it is in the source tree, and the library has not been built yet
4398 # but it would be included on the link line in the version check below
4399 # hence making the test fail.
4400 have_gmp=yes
4403 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4404 have_gmp=yes
4405 saved_CFLAGS="$CFLAGS"
4406 CFLAGS="$CFLAGS $gmpinc"
4407 # Check GMP actually works
4408 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4409 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4411 cat >conftest.$ac_ext <<_ACEOF
4412 /* confdefs.h. */
4413 _ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4417 #include "gmp.h"
4419 main ()
4422 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4423 choke me
4424 #endif
4427 return 0;
4429 _ACEOF
4430 rm -f conftest.$ac_objext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>conftest.er1
4433 ac_status=$?
4434 grep -v '^ *+' conftest.er1 >conftest.err
4435 rm -f conftest.er1
4436 cat conftest.err >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 echo "$as_me:$LINENO: result: yes" >&5
4453 echo "${ECHO_T}yes" >&6
4454 else
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4458 echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6; have_gmp=no
4461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4463 if test x"$have_gmp" = xyes; then
4464 saved_LIBS="$LIBS"
4465 LIBS="$LIBS $gmplibs"
4466 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4467 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4468 cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h. */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 #include <gmp.h>
4475 #include <mpfr.h>
4477 main ()
4480 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4481 choke me
4482 #endif
4483 mpfr_t n;
4484 mpfr_t x;
4485 int t;
4486 mpfr_init (n);
4487 mpfr_init (x);
4488 mpfr_atan2 (n, n, x, GMP_RNDN);
4489 mpfr_erfc (n, x, GMP_RNDN);
4490 mpfr_subnormalize (x, t, GMP_RNDN);
4493 return 0;
4495 _ACEOF
4496 rm -f conftest.$ac_objext conftest$ac_exeext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498 (eval $ac_link) 2>conftest.er1
4499 ac_status=$?
4500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try='test -z "$ac_c_werror_flag"
4506 || test ! -s conftest.err'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 (eval $ac_try) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h. */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 #include <gmp.h>
4525 #include <mpfr.h>
4527 main ()
4530 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4531 choke me
4532 #endif
4533 mpfr_t n; mpfr_init(n);
4536 return 0;
4538 _ACEOF
4539 rm -f conftest.$ac_objext conftest$ac_exeext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4541 (eval $ac_link) 2>conftest.er1
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag"
4549 || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest$ac_exeext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 echo "$as_me:$LINENO: result: yes" >&5
4562 echo "${ECHO_T}yes" >&6
4563 else
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4568 echo "${ECHO_T}buggy but acceptable" >&6
4570 rm -f conftest.err conftest.$ac_objext \
4571 conftest$ac_exeext conftest.$ac_ext
4572 else
4573 echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4576 echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6; have_gmp=no
4579 rm -f conftest.err conftest.$ac_objext \
4580 conftest$ac_exeext conftest.$ac_ext
4581 LIBS="$saved_LIBS"
4583 CFLAGS="$saved_CFLAGS"
4585 if test x$have_gmp != xyes; then
4586 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4587 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4588 Copies of these libraries' source code can be found at their respective
4589 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4590 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4591 If you obtained GMP and/or MPFR from a vendor distribution package, make
4592 sure that you have installed both the libraries and the header files.
4593 They may be located in separate packages." >&5
4594 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4595 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4596 Copies of these libraries' source code can be found at their respective
4597 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4598 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4599 If you obtained GMP and/or MPFR from a vendor distribution package, make
4600 sure that you have installed both the libraries and the header files.
4601 They may be located in separate packages." >&2;}
4602 { (exit 1); exit 1; }; }
4606 # Flags needed for both GMP and/or MPFR
4610 # By default, C is the only stage 1 language.
4611 stage1_languages=,c,
4613 # Figure out what language subdirectories are present.
4614 # Look if the user specified --enable-languages="..."; if not, use
4615 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4616 # go away some day.
4617 # NB: embedded tabs in this IF block -- do not untabify
4618 if test -d ${srcdir}/gcc; then
4619 if test x"${enable_languages+set}" != xset; then
4620 if test x"${LANGUAGES+set}" = xset; then
4621 enable_languages="${LANGUAGES}"
4622 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4623 else
4624 enable_languages=all
4626 else
4627 if test x"${enable_languages}" = x ||
4628 test x"${enable_languages}" = xyes;
4629 then
4630 echo configure.in: --enable-languages needs at least one language argument 1>&2
4631 exit 1
4634 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4636 # 'f95' is the old name for the 'fortran' language. We issue a warning
4637 # and make the substitution.
4638 case ,${enable_languages}, in
4639 *,f95,*)
4640 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4641 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4643 esac
4645 # First scan to see if an enabled language requires some other language.
4646 # We assume that a given config-lang.in will list all the language
4647 # front ends it requires, even if some are required indirectly.
4648 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4649 case ${lang_frag} in
4650 ..) ;;
4651 # The odd quoting in the next line works around
4652 # an apparent bug in bash 1.12 on linux.
4653 ${srcdir}/gcc/[*]/config-lang.in) ;;
4655 # From the config-lang.in, get $language, $lang_requires
4656 language=
4657 lang_requires=
4658 . ${lang_frag}
4659 for other in ${lang_requires} ; do
4660 case ,${enable_languages}, in
4661 *,$other,*) ;;
4662 *,all,*) ;;
4663 *,$language,*)
4664 echo " \`$other' language required by \`$language'; enabling" 1>&2
4665 enable_languages="${enable_languages},${other}"
4667 esac
4668 done
4670 esac
4671 done
4673 new_enable_languages=,c,
4674 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4675 potential_languages=,c,
4677 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4678 case ${lang_frag} in
4679 ..) ;;
4680 # The odd quoting in the next line works around
4681 # an apparent bug in bash 1.12 on linux.
4682 ${srcdir}/gcc/[*]/config-lang.in) ;;
4684 # From the config-lang.in, get $language, $target_libs,
4685 # $lang_dirs, $boot_language, and $build_by_default
4686 language=
4687 target_libs=
4688 lang_dirs=
4689 subdir_requires=
4690 boot_language=no
4691 build_by_default=yes
4692 . ${lang_frag}
4693 if test x${language} = x; then
4694 echo "${lang_frag} doesn't set \$language." 1>&2
4695 exit 1
4698 case ,${enable_languages}, in
4699 *,${language},*)
4700 # Language was explicitly selected; include it.
4701 add_this_lang=yes
4703 *,all,*)
4704 # 'all' was selected, select it if it is a default language
4705 add_this_lang=${build_by_default}
4708 add_this_lang=no
4710 esac
4712 # Disable languages that need other directories if these aren't available.
4713 for i in $subdir_requires; do
4714 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4715 case ,${enable_languages}, in
4716 *,${language},*)
4717 # Specifically requested language; tell them.
4718 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4719 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4720 { (exit 1); exit 1; }; }
4723 # Silently disable.
4724 add_this_lang=unsupported
4726 esac
4727 done
4729 # Disable Ada if no preexisting GNAT is available.
4730 case ,${enable_languages},:${language}:${have_gnat} in
4731 *,${language},*:ada:no)
4732 # Specifically requested language; tell them.
4733 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4734 echo "$as_me: error: GNAT is required to build $language" >&2;}
4735 { (exit 1); exit 1; }; }
4737 *:ada:no)
4738 # Silently disable.
4739 add_this_lang=unsupported
4741 esac
4743 # Disable a language that is unsupported by the target.
4744 case " $unsupported_languages " in
4745 *" $language "*)
4746 add_this_lang=unsupported
4748 esac
4750 case $add_this_lang in
4751 unsupported)
4752 # Remove language-dependent dirs.
4753 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4756 # Remove language-dependent dirs; still show language as supported.
4757 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4758 potential_languages="${potential_languages}${language},"
4760 yes)
4761 new_enable_languages="${new_enable_languages}${language},"
4762 potential_languages="${potential_languages}${language},"
4763 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4764 case ${boot_language} in
4765 yes)
4766 # Add to (comma-separated) list of stage 1 languages.
4767 stage1_languages="${stage1_languages}${language},"
4769 esac
4771 esac
4773 esac
4774 done
4776 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4777 if test "${enable_stage1_languages+set}" = set; then
4778 enableval="$enable_stage1_languages"
4779 case ,${enable_stage1_languages}, in
4780 ,no,|,,)
4781 # Set it to something that will have no effect in the loop below
4782 enable_stage1_languages=c ;;
4783 ,yes,)
4784 enable_stage1_languages=`echo $new_enable_languages | \
4785 sed -e "s/^,//" -e "s/,$//" ` ;;
4786 *,all,*)
4787 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4788 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4789 esac
4791 # Add "good" languages from enable_stage1_languages to stage1_languages,
4792 # while "bad" languages go in missing_languages. Leave no duplicates.
4793 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4794 case $potential_languages in
4795 *,$i,*)
4796 case $stage1_languages in
4797 *,$i,*) ;;
4798 *) stage1_languages="$stage1_languages$i," ;;
4799 esac ;;
4801 case $missing_languages in
4802 *,$i,*) ;;
4803 *) missing_languages="$missing_languages$i," ;;
4804 esac ;;
4805 esac
4806 done
4809 # Remove leading/trailing commas that were added for simplicity
4810 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4811 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4812 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4813 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4815 if test "x$missing_languages" != x; then
4816 { { echo "$as_me:$LINENO: error:
4817 The following requested languages could not be built: ${missing_languages}
4818 Supported languages are: ${potential_languages}" >&5
4819 echo "$as_me: error:
4820 The following requested languages could not be built: ${missing_languages}
4821 Supported languages are: ${potential_languages}" >&2;}
4822 { (exit 1); exit 1; }; }
4824 if test "x$new_enable_languages" != "x$enable_languages"; then
4825 echo The following languages will be built: ${new_enable_languages}
4826 enable_languages="$new_enable_languages"
4830 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
4833 # Handle --disable-<component> generically.
4834 for dir in $configdirs $build_configdirs $target_configdirs ; do
4835 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4836 if eval test x\${enable_${dirname}} "=" xno ; then
4837 noconfigdirs="$noconfigdirs $dir"
4839 done
4841 # Check for Boehm's garbage collector
4842 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4843 if test "${enable_objc_gc+set}" = set; then
4844 enableval="$enable_objc_gc"
4845 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4846 *,objc,*:*:yes:*target-boehm-gc*)
4847 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4848 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4849 { (exit 1); exit 1; }; }
4851 esac
4854 # Make sure we only build Boehm's garbage collector if required.
4855 case ,${enable_languages},:${enable_objc_gc} in
4856 *,objc,*:yes)
4857 # Keep target-boehm-gc if requested for Objective-C.
4860 # Otherwise remove target-boehm-gc depending on target-libjava.
4861 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4862 noconfigdirs="$noconfigdirs target-boehm-gc"
4865 esac
4867 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4868 # $build_configdirs and $target_configdirs.
4869 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4871 notsupp=""
4872 for dir in . $skipdirs $noconfigdirs ; do
4873 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4874 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4875 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4876 if test -r $srcdir/$dirname/configure ; then
4877 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4878 true
4879 else
4880 notsupp="$notsupp $dir"
4884 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4885 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4886 if test -r $srcdir/$dirname/configure ; then
4887 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4888 true
4889 else
4890 notsupp="$notsupp $dir"
4894 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4895 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4896 if test -r $srcdir/$dirname/configure ; then
4897 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4898 true
4899 else
4900 notsupp="$notsupp $dir"
4904 done
4906 # Sometimes the tools are distributed with libiberty but with no other
4907 # libraries. In that case, we don't want to build target-libiberty.
4908 # Don't let libgcc imply libiberty either.
4909 if test -n "${target_configdirs}" ; then
4910 libgcc=
4911 others=
4912 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4913 if test "$i" = "libgcc"; then
4914 libgcc=target-libgcc
4915 elif test "$i" != "libiberty" ; then
4916 if test -r $srcdir/$i/configure ; then
4917 others=yes;
4918 break;
4921 done
4922 if test -z "${others}" ; then
4923 target_configdirs=$libgcc
4927 # Quietly strip out all directories which aren't configurable in this tree.
4928 # This relies on all configurable subdirectories being autoconfiscated, which
4929 # is now the case.
4930 build_configdirs_all="$build_configdirs"
4931 build_configdirs=
4932 for i in ${build_configdirs_all} ; do
4933 j=`echo $i | sed -e s/build-//g`
4934 if test -f ${srcdir}/$j/configure ; then
4935 build_configdirs="${build_configdirs} $i"
4937 done
4939 configdirs_all="$configdirs"
4940 configdirs=
4941 for i in ${configdirs_all} ; do
4942 if test -f ${srcdir}/$i/configure ; then
4943 configdirs="${configdirs} $i"
4945 done
4947 target_configdirs_all="$target_configdirs"
4948 target_configdirs=
4949 for i in ${target_configdirs_all} ; do
4950 j=`echo $i | sed -e s/target-//g`
4951 if test -f ${srcdir}/$j/configure ; then
4952 target_configdirs="${target_configdirs} $i"
4954 done
4956 # Produce a warning message for the subdirs we can't configure.
4957 # This isn't especially interesting in the Cygnus tree, but in the individual
4958 # FSF releases, it's important to let people know when their machine isn't
4959 # supported by the one or two programs in a package.
4961 if test -n "${notsupp}" && test -z "${norecursion}" ; then
4962 # If $appdirs is non-empty, at least one of those directories must still
4963 # be configured, or we error out. (E.g., if the gas release supports a
4964 # specified target in some subdirs but not the gas subdir, we shouldn't
4965 # pretend that all is well.)
4966 if test -n "$appdirs" ; then
4967 for dir in $appdirs ; do
4968 if test -r $dir/Makefile.in ; then
4969 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4970 appdirs=""
4971 break
4973 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
4974 appdirs=""
4975 break
4978 done
4979 if test -n "$appdirs" ; then
4980 echo "*** This configuration is not supported by this package." 1>&2
4981 exit 1
4984 # Okay, some application will build, or we don't care to check. Still
4985 # notify of subdirs not getting built.
4986 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4987 echo " ${notsupp}" 1>&2
4988 echo " (Any other directories should still work fine.)" 1>&2
4991 case "$host" in
4992 *msdosdjgpp*)
4993 enable_gdbtk=no ;;
4994 esac
4996 # To find our prefix, in gcc_cv_tool_prefix.
4998 # The user is always right.
4999 if test "${PATH_SEPARATOR+set}" != set; then
5000 echo "#! /bin/sh" >conf$$.sh
5001 echo "exit 0" >>conf$$.sh
5002 chmod +x conf$$.sh
5003 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5004 PATH_SEPARATOR=';'
5005 else
5006 PATH_SEPARATOR=:
5008 rm -f conf$$.sh
5013 if test "x$exec_prefix" = xNONE; then
5014 if test "x$prefix" = xNONE; then
5015 gcc_cv_tool_prefix=$ac_default_prefix
5016 else
5017 gcc_cv_tool_prefix=$prefix
5019 else
5020 gcc_cv_tool_prefix=$exec_prefix
5023 # If there is no compiler in the tree, use the PATH only. In any
5024 # case, if there is no compiler in the tree nobody should use
5025 # AS_FOR_TARGET and LD_FOR_TARGET.
5026 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5027 gcc_version=`cat $srcdir/gcc/BASE-VER`
5028 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5029 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5030 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5031 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5032 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5033 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5034 else
5035 gcc_cv_tool_dirs=
5038 if test x$build = x$target && test -n "$md_exec_prefix"; then
5039 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5044 copy_dirs=
5047 # Check whether --with-build-sysroot or --without-build-sysroot was given.
5048 if test "${with_build_sysroot+set}" = set; then
5049 withval="$with_build_sysroot"
5050 if test x"$withval" != x ; then
5051 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5053 else
5054 SYSROOT_CFLAGS_FOR_TARGET=
5058 # Handle --with-headers=XXX. If the value is not "yes", the contents of
5059 # the named directory are copied to $(tooldir)/sys-include.
5060 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5061 if test x${is_cross_compiler} = xno ; then
5062 echo 1>&2 '***' --with-headers is only supported when cross compiling
5063 exit 1
5065 if test x"${with_headers}" != xyes ; then
5066 x=${gcc_cv_tool_prefix}
5067 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5071 # Handle --with-libs=XXX. If the value is not "yes", the contents of
5072 # the name directories are copied to $(tooldir)/lib. Multiple directories
5073 # are permitted.
5074 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5075 if test x${is_cross_compiler} = xno ; then
5076 echo 1>&2 '***' --with-libs is only supported when cross compiling
5077 exit 1
5079 if test x"${with_libs}" != xyes ; then
5080 # Copy the libraries in reverse order, so that files in the first named
5081 # library override files in subsequent libraries.
5082 x=${gcc_cv_tool_prefix}
5083 for l in ${with_libs}; do
5084 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5085 done
5089 # Set with_gnu_as and with_gnu_ld as appropriate.
5091 # This is done by determining whether or not the appropriate directory
5092 # is available, and by checking whether or not specific configurations
5093 # have requested that this magic not happen.
5095 # The command line options always override the explicit settings in
5096 # configure.in, and the settings in configure.in override this magic.
5098 # If the default for a toolchain is to use GNU as and ld, and you don't
5099 # want to do that, then you should use the --without-gnu-as and
5100 # --without-gnu-ld options for the configure script.
5102 if test x${use_gnu_as} = x &&
5103 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5104 with_gnu_as=yes
5105 extra_host_args="$extra_host_args --with-gnu-as"
5108 if test x${use_gnu_ld} = x &&
5109 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5110 with_gnu_ld=yes
5111 extra_host_args="$extra_host_args --with-gnu-ld"
5114 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5115 # can detect this case.
5117 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5118 with_newlib=yes
5119 extra_host_args="$extra_host_args --with-newlib"
5122 # Handle ${copy_dirs}
5123 set fnord ${copy_dirs}
5124 shift
5125 while test $# != 0 ; do
5126 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5128 else
5129 echo Copying $1 to $2
5131 # Use the install script to create the directory and all required
5132 # parent directories.
5133 if test -d $2 ; then
5135 else
5136 echo >config.temp
5137 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5140 # Copy the directory, assuming we have tar.
5141 # FIXME: Should we use B in the second tar? Not all systems support it.
5142 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5144 # It is the responsibility of the user to correctly adjust all
5145 # symlinks. If somebody can figure out how to handle them correctly
5146 # here, feel free to add the code.
5148 echo $1 > $2/COPIED
5150 shift; shift
5151 done
5153 # Determine a target-dependent exec_prefix that the installed
5154 # gcc will search in. Keep this list sorted by triplet, with
5155 # the *-*-osname triplets last.
5156 md_exec_prefix=
5157 case "${target}" in
5158 alpha*-*-*vms*)
5159 md_exec_prefix=/gnu/lib/gcc-lib
5161 i3456786-pc-msdosdjgpp*)
5162 md_exec_prefix=/dev/env/DJDIR/bin
5164 i3456786-*-sco3.2v5*)
5165 if test $with_gnu_as = yes; then
5166 md_exec_prefix=/usr/gnu/bin
5167 else
5168 md_exec_prefix=/usr/ccs/bin/elf
5172 mn10300-*-* | \
5173 powerpc-*-chorusos* | \
5174 powerpc*-*-eabi* | \
5175 powerpc*-*-sysv* | \
5176 powerpc*-*-kaos* | \
5177 s390x-ibm-tpf*)
5178 md_exec_prefix=/usr/ccs/bin
5180 sparc64-*-elf*)
5182 v850*-*-*)
5183 md_exec_prefix=/usr/ccs/bin
5185 xtensa-*-elf*)
5188 *-*-beos* | \
5189 *-*-elf* | \
5190 *-*-hpux* | \
5191 *-*-netware* | \
5192 *-*-nto-qnx* | \
5193 *-*-rtems* | \
5194 *-*-solaris2* | \
5195 *-*-sysv45* | \
5196 *-*-vxworks* | \
5197 *-wrs-windiss)
5198 md_exec_prefix=/usr/ccs/bin
5200 esac
5202 extra_arflags_for_target=
5203 extra_nmflags_for_target=
5204 extra_ranlibflags_for_target=
5205 target_makefile_frag=/dev/null
5206 case "${target}" in
5207 mep*-*-*)
5208 target_makefile_frag="config/mt-mep"
5210 spu-*-*)
5211 target_makefile_frag="config/mt-spu"
5213 *-*-netware*)
5214 target_makefile_frag="config/mt-netware"
5216 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5217 target_makefile_frag="config/mt-gnu"
5219 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5220 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5221 # commands to handle both 32-bit and 64-bit objects. These flags are
5222 # harmless if we're using GNU nm or ar.
5223 extra_arflags_for_target=" -X32_64"
5224 extra_nmflags_for_target=" -B -X32_64"
5226 *-*-darwin*)
5227 # ranlib from Darwin requires the -c flag to look at common symbols.
5228 extra_ranlibflags_for_target=" -c"
5230 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5231 target_makefile_frag="config/mt-wince"
5233 esac
5235 alphaieee_frag=/dev/null
5236 case $target in
5237 alpha*-*-*)
5238 # This just makes sure to use the -mieee option to build target libs.
5239 # This should probably be set individually by each library.
5240 alphaieee_frag="config/mt-alphaieee"
5242 esac
5244 # If --enable-target-optspace always use -Os instead of -O2 to build
5245 # the target libraries, similarly if it is not specified, use -Os
5246 # on selected platforms.
5247 ospace_frag=/dev/null
5248 case "${enable_target_optspace}:${target}" in
5249 yes:*)
5250 ospace_frag="config/mt-ospace"
5252 :d30v-*)
5253 ospace_frag="config/mt-d30v"
5255 :m32r-* | :d10v-* | :fr30-*)
5256 ospace_frag="config/mt-ospace"
5258 no:* | :*)
5261 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5263 esac
5265 # Default to using --with-stabs for certain targets.
5266 if test x${with_stabs} = x ; then
5267 case "${target}" in
5268 mips*-*-irix[56]*)
5270 mips*-*-* | alpha*-*-osf*)
5271 with_stabs=yes;
5272 extra_host_args="${extra_host_args} --with-stabs"
5274 esac
5277 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5278 # them automatically.
5279 case "${host}" in
5280 hppa*64*-*-hpux11*)
5281 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5283 esac
5285 # Some systems (e.g., one of the i386-aix systems the gas testers are
5286 # using) don't handle "\$" correctly, so don't use it here.
5287 tooldir='${exec_prefix}'/${target_noncanonical}
5288 build_tooldir=${tooldir}
5290 # Create a .gdbinit file which runs the one in srcdir
5291 # and tells GDB to look there for source files.
5293 if test -r ${srcdir}/.gdbinit ; then
5294 case ${srcdir} in
5295 .) ;;
5296 *) cat > ./.gdbinit <<EOF
5297 # ${NO_EDIT}
5298 dir ${srcdir}
5299 dir .
5300 source ${srcdir}/.gdbinit
5303 esac
5306 # Make sure that the compiler is able to generate an executable. If it
5307 # can't, we are probably in trouble. We don't care whether we can run the
5308 # executable--we might be using a cross compiler--we only care whether it
5309 # can be created. At this point the main configure script has set CC.
5310 we_are_ok=no
5311 echo "int main () { return 0; }" > conftest.c
5312 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5313 if test $? = 0 ; then
5314 if test -s conftest || test -s conftest.exe ; then
5315 we_are_ok=yes
5318 case $we_are_ok in
5320 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5321 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5322 rm -f conftest*
5323 exit 1
5325 esac
5326 rm -f conftest*
5328 # The Solaris /usr/ucb/cc compiler does not appear to work.
5329 case "${host}" in
5330 sparc-sun-solaris2*)
5331 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5332 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5333 could_use=
5334 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5335 if test -d /opt/cygnus/bin ; then
5336 if test "$could_use" = "" ; then
5337 could_use="/opt/cygnus/bin"
5338 else
5339 could_use="$could_use or /opt/cygnus/bin"
5342 if test "$could_use" = "" ; then
5343 echo "Warning: compilation may fail because you're using"
5344 echo "/usr/ucb/cc. You should change your PATH or CC "
5345 echo "variable and rerun configure."
5346 else
5347 echo "Warning: compilation may fail because you're using"
5348 echo "/usr/ucb/cc, when you should use the C compiler from"
5349 echo "$could_use. You should change your"
5350 echo "PATH or CC variable and rerun configure."
5354 esac
5356 case "${host}" in
5357 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5358 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5359 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5360 esac
5362 # Record target_configdirs and the configure arguments for target and
5363 # build configuration in Makefile.
5364 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5365 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5367 # Determine whether gdb needs tk/tcl or not.
5368 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5369 # and in that case we want gdb to be built without tk. Ugh!
5370 # In fact I believe gdb is the *only* package directly dependent on tk,
5371 # so we should be able to put the 'maybe's in unconditionally and
5372 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
5373 # 100% sure that that's safe though.
5375 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5376 case "$enable_gdbtk" in
5378 GDB_TK="" ;;
5379 yes)
5380 GDB_TK="${gdb_tk}" ;;
5382 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5383 # distro. Eventually someone will fix this and move Insight, nee
5384 # gdbtk to a separate directory.
5385 if test -d ${srcdir}/gdb/gdbtk ; then
5386 GDB_TK="${gdb_tk}"
5387 else
5388 GDB_TK=""
5391 esac
5392 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5393 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5395 # Strip out unwanted targets.
5397 # While at that, we remove Makefiles if we were started for recursive
5398 # configuration, so that the top-level Makefile reconfigures them,
5399 # like we used to do when configure itself was recursive.
5401 # Loop over modules. $extrasub must be used with care, limiting as
5402 # much as possible the usage of range addresses. That's because autoconf
5403 # splits the sed script to overcome limits in the number of commands,
5404 # and relying on carefully-timed sed passes may turn out to be very hard
5405 # to maintain later. In this particular case, you just have to be careful
5406 # not to nest @if/@endif pairs, because configure will not warn you at all.
5408 # Check whether --enable-bootstrap or --disable-bootstrap was given.
5409 if test "${enable_bootstrap+set}" = set; then
5410 enableval="$enable_bootstrap"
5412 else
5413 enable_bootstrap=default
5416 # Issue errors and warnings for invalid/strange bootstrap combinations.
5417 case "$configdirs" in
5418 *gcc*) have_compiler=yes ;;
5419 *) have_compiler=no ;;
5420 esac
5422 case "$have_compiler:$host:$target:$enable_bootstrap" in
5423 *:*:*:no) ;;
5425 # Default behavior. Enable bootstrap if we have a compiler
5426 # and we are in a native configuration.
5427 yes:$build:$build:default)
5428 enable_bootstrap=yes ;;
5430 *:*:*:default)
5431 enable_bootstrap=no ;;
5433 # We have a compiler and we are in a native configuration, bootstrap is ok
5434 yes:$build:$build:yes)
5437 # Other configurations, but we have a compiler. Assume the user knows
5438 # what he's doing.
5439 yes:*:*:yes)
5440 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5441 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5444 # No compiler: if they passed --enable-bootstrap explicitly, fail
5445 no:*:*:yes)
5446 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5447 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5448 { (exit 1); exit 1; }; } ;;
5450 # Fail if wrong command line
5452 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5453 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5454 { (exit 1); exit 1; }; }
5456 esac
5458 # Adjust the toplevel makefile according to whether bootstrap was selected.
5459 case "$enable_bootstrap" in
5460 yes)
5461 bootstrap_suffix=bootstrap ;;
5463 bootstrap_suffix=no-bootstrap ;;
5464 esac
5466 for module in ${build_configdirs} ; do
5467 if test -z "${no_recursion}" \
5468 && test -f ${build_subdir}/${module}/Makefile; then
5469 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5470 rm -f ${build_subdir}/${module}/Makefile
5472 extrasub="$extrasub
5473 /^@if build-$module\$/d
5474 /^@endif build-$module\$/d
5475 /^@if build-$module-$bootstrap_suffix\$/d
5476 /^@endif build-$module-$bootstrap_suffix\$/d"
5477 done
5478 for module in ${configdirs} ; do
5479 if test -z "${no_recursion}"; then
5480 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5481 if test -f ${file}; then
5482 echo 1>&2 "*** removing ${file} to force reconfigure"
5483 rm -f ${file}
5485 done
5487 extrasub="$extrasub
5488 /^@if $module\$/d
5489 /^@endif $module\$/d
5490 /^@if $module-$bootstrap_suffix\$/d
5491 /^@endif $module-$bootstrap_suffix\$/d"
5492 done
5493 for module in ${target_configdirs} ; do
5494 if test -z "${no_recursion}" \
5495 && test -f ${target_subdir}/${module}/Makefile; then
5496 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5497 rm -f ${target_subdir}/${module}/Makefile
5499 extrasub="$extrasub
5500 /^@if target-$module\$/d
5501 /^@endif target-$module\$/d
5502 /^@if target-$module-$bootstrap_suffix\$/d
5503 /^@endif target-$module-$bootstrap_suffix\$/d"
5504 done
5506 extrasub="$extrasub
5507 /^@if /,/^@endif /d"
5509 # Create the serialization dependencies. This uses a temporary file.
5511 # Check whether --enable-serial-configure or --disable-serial-configure was given.
5512 if test "${enable_serial_configure+set}" = set; then
5513 enableval="$enable_serial_configure"
5517 case ${enable_serial_configure} in
5518 yes)
5519 enable_serial_build_configure=yes
5520 enable_serial_host_configure=yes
5521 enable_serial_target_configure=yes
5523 esac
5525 # These force 'configure's to be done one at a time, to avoid problems
5526 # with contention over a shared config.cache.
5527 rm -f serdep.tmp
5528 echo '# serdep.tmp' > serdep.tmp
5529 olditem=
5530 test "x${enable_serial_build_configure}" = xyes &&
5531 for item in ${build_configdirs} ; do
5532 case ${olditem} in
5533 "") ;;
5534 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
5535 esac
5536 olditem=${item}
5537 done
5538 olditem=
5539 test "x${enable_serial_host_configure}" = xyes &&
5540 for item in ${configdirs} ; do
5541 case ${olditem} in
5542 "") ;;
5543 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
5544 esac
5545 olditem=${item}
5546 done
5547 olditem=
5548 test "x${enable_serial_target_configure}" = xyes &&
5549 for item in ${target_configdirs} ; do
5550 case ${olditem} in
5551 "") ;;
5552 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
5553 esac
5554 olditem=${item}
5555 done
5556 serialization_dependencies=serdep.tmp
5559 # Base args. Strip norecursion, cache-file, srcdir, host, build,
5560 # target, nonopt, and variable assignments. These are the ones we
5561 # might not want to pass down to subconfigures. Also strip
5562 # program-prefix, program-suffix, and program-transform-name, so that
5563 # we can pass down a consistent program-transform-name.
5564 baseargs=
5565 keep_next=no
5566 skip_next=no
5567 eval "set -- $ac_configure_args"
5568 for ac_arg
5570 if test X"$skip_next" = X"yes"; then
5571 skip_next=no
5572 continue
5574 if test X"$keep_next" = X"yes"; then
5575 case $ac_arg in
5576 *\'*)
5577 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5578 esac
5579 baseargs="$baseargs '$ac_arg'"
5580 keep_next=no
5581 continue
5584 # Handle separated arguments. Based on the logic generated by
5585 # autoconf 2.59.
5586 case $ac_arg in
5587 *=* | --config-cache | -C | -disable-* | --disable-* \
5588 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5589 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5590 | -with-* | --with-* | -without-* | --without-* | --x)
5591 separate_arg=no
5594 separate_arg=yes
5597 separate_arg=no
5599 esac
5601 case "$ac_arg" in
5602 --no*)
5603 continue
5605 --c* | \
5606 --sr* | \
5607 --ho* | \
5608 --bu* | \
5609 --t* | \
5610 --program-* | \
5611 -cache_file* | \
5612 -srcdir* | \
5613 -host* | \
5614 -build* | \
5615 -target* | \
5616 -program-prefix* | \
5617 -program-suffix* | \
5618 -program-transform-name* )
5619 skip_next=$separate_arg
5620 continue
5623 # An option. Add it.
5624 case $ac_arg in
5625 *\'*)
5626 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5627 esac
5628 baseargs="$baseargs '$ac_arg'"
5629 keep_next=$separate_arg
5632 # Either a variable assignment, or a nonopt (triplet). Don't
5633 # pass it down; let the Makefile handle this.
5634 continue
5636 esac
5637 done
5638 # Remove the initial space we just introduced and, as these will be
5639 # expanded by make, quote '$'.
5640 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5642 # Add in --program-transform-name, after --program-prefix and
5643 # --program-suffix have been applied to it. Autoconf has already
5644 # doubled dollar signs and backslashes in program_transform_name; we want
5645 # the backslashes un-doubled, and then the entire thing wrapped in single
5646 # quotes, because this will be expanded first by make and then by the shell.
5647 # Also, because we want to override the logic in subdir configure scripts to
5648 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5649 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5650 ${program_transform_name}
5651 EOF_SED
5652 gcc_transform_name=`cat conftestsed.out`
5653 rm -f conftestsed.out
5654 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5656 # For the build-side libraries, we just need to pretend we're native,
5657 # and not use the same cache file. Multilibs are neither needed nor
5658 # desired.
5659 build_configargs="--cache-file=../config.cache ${baseargs}"
5661 # For host modules, accept cache file option, or specification as blank.
5662 case "${cache_file}" in
5663 "") # empty
5664 cache_file_option="" ;;
5665 /* | [A-Za-z]:[\\/]* ) # absolute path
5666 cache_file_option="--cache-file=${cache_file}" ;;
5667 *) # relative path
5668 cache_file_option="--cache-file=../${cache_file}" ;;
5669 esac
5671 # Host dirs don't like to share a cache file either, horribly enough.
5672 # This seems to be due to autoconf 2.5x stupidity.
5673 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5675 target_configargs=${baseargs}
5677 # Passing a --with-cross-host argument lets the target libraries know
5678 # whether they are being built with a cross-compiler or being built
5679 # native. However, it would be better to use other mechanisms to make the
5680 # sorts of decisions they want to make on this basis. Please consider
5681 # this option to be deprecated. FIXME.
5682 if test x${is_cross_compiler} = xyes ; then
5683 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5686 # Default to --enable-multilib.
5687 if test x${enable_multilib} = x ; then
5688 target_configargs="--enable-multilib ${target_configargs}"
5691 # Pass --with-newlib if appropriate. Note that target_configdirs has
5692 # changed from the earlier setting of with_newlib.
5693 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5694 target_configargs="--with-newlib ${target_configargs}"
5697 # Different target subdirs use different values of certain variables
5698 # (notably CXX). Worse, multilibs use *lots* of different values.
5699 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5700 # it doesn't automatically accept command-line overrides of them.
5701 # This means it's not safe for target subdirs to share a cache file,
5702 # which is disgusting, but there you have it. Hopefully this can be
5703 # fixed in future. It's still worthwhile to use a cache file for each
5704 # directory. I think.
5706 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5707 # We need to pass --target, as newer autoconf's requires consistency
5708 # for target_alias and gcc doesn't manage it consistently.
5709 target_configargs="--cache-file=./config.cache ${target_configargs}"
5711 FLAGS_FOR_TARGET=
5712 case " $target_configdirs " in
5713 *" newlib "*)
5714 case " $target_configargs " in
5715 *" --with-newlib "*)
5716 case "$target" in
5717 *-cygwin*)
5718 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' ;;
5719 esac
5721 # If we're not building GCC, don't discard standard headers.
5722 if test -d ${srcdir}/gcc; then
5723 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5725 if test "${build}" != "${host}"; then
5726 # On Canadian crosses, CC_FOR_TARGET will have already been set
5727 # by `configure', so we won't have an opportunity to add -Bgcc/
5728 # to it. This is right: we don't want to search that directory
5729 # for binaries, but we want the header files in there, so add
5730 # them explicitly.
5731 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5733 # Someone might think of using the pre-installed headers on
5734 # Canadian crosses, in case the installed compiler is not fully
5735 # compatible with the compiler being built. In this case, it
5736 # would be better to flag an error than risking having
5737 # incompatible object files being constructed. We can't
5738 # guarantee that an error will be flagged, but let's hope the
5739 # compiler will do it, when presented with incompatible header
5740 # files.
5744 case "${target}-${is_cross_compiler}" in
5745 i[3456789]86-*-linux*-no)
5746 # Here host == target, so we don't need to build gcc,
5747 # so we don't want to discard standard headers.
5748 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5751 # If we're building newlib, use its generic headers last, but search
5752 # for any libc-related directories first (so make it the last -B
5753 # switch).
5754 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5756 esac
5758 esac
5760 esac
5761 case "$target" in
5762 *-mingw*)
5763 # Can't be handled as Cygwin above since Mingw does not use newlib.
5764 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
5765 esac
5767 # Allow the user to override the flags for
5768 # our build compiler if desired.
5769 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5771 # On Canadian crosses, we'll be searching the right directories for
5772 # the previously-installed cross compiler, so don't bother to add
5773 # flags for directories within the install tree of the compiler
5774 # being built; programs in there won't even run.
5775 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5776 # Search for pre-installed headers if nothing else fits.
5777 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
5780 if test "x${use_gnu_ld}" = x &&
5781 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5782 # Arrange for us to find uninstalled linker scripts.
5783 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
5786 # Search for other target-specific linker scripts and such.
5787 case "${target}" in
5788 m32c-*-* )
5789 if test -d ${srcdir}/libgloss/m32c; then
5790 # This is for crt0.o
5791 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5792 # This is for r8c.ld
5793 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5794 # This is for libnosys.a
5795 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5798 mep*)
5799 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5801 esac
5803 # Makefile fragments.
5804 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5806 eval fragval=\$$frag
5807 if test $fragval != /dev/null; then
5808 eval $frag=${srcdir}/$fragval
5810 done
5816 # Miscellanea: directories, flags, etc.
5824 # Build module lists & subconfigure args.
5828 # Host module lists & subconfigure args.
5832 # Target module lists & subconfigure args.
5836 # Build tools.
5840 # Generate default definitions for YACC, M4, LEX and other programs that run
5841 # on the build machine. These are used if the Makefile can't locate these
5842 # programs in objdir.
5843 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5845 for ac_prog in 'bison -y' byacc yacc
5847 # Extract the first word of "$ac_prog", so it can be a program name with args.
5848 set dummy $ac_prog; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_YACC+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854 if test -n "$YACC"; then
5855 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_YACC="$ac_prog"
5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5868 done
5869 done
5873 YACC=$ac_cv_prog_YACC
5874 if test -n "$YACC"; then
5875 echo "$as_me:$LINENO: result: $YACC" >&5
5876 echo "${ECHO_T}$YACC" >&6
5877 else
5878 echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5882 test -n "$YACC" && break
5883 done
5884 test -n "$YACC" || YACC="$MISSING bison -y"
5886 case " $build_configdirs " in
5887 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5888 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5889 esac
5891 for ac_prog in bison
5893 # Extract the first word of "$ac_prog", so it can be a program name with args.
5894 set dummy $ac_prog; ac_word=$2
5895 echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5897 if test "${ac_cv_prog_BISON+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 if test -n "$BISON"; then
5901 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910 ac_cv_prog_BISON="$ac_prog"
5911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5914 done
5915 done
5919 BISON=$ac_cv_prog_BISON
5920 if test -n "$BISON"; then
5921 echo "$as_me:$LINENO: result: $BISON" >&5
5922 echo "${ECHO_T}$BISON" >&6
5923 else
5924 echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6
5928 test -n "$BISON" && break
5929 done
5930 test -n "$BISON" || BISON="$MISSING bison"
5932 case " $build_configdirs " in
5933 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5934 esac
5936 for ac_prog in gm4 gnum4 m4
5938 # Extract the first word of "$ac_prog", so it can be a program name with args.
5939 set dummy $ac_prog; ac_word=$2
5940 echo "$as_me:$LINENO: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942 if test "${ac_cv_prog_M4+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945 if test -n "$M4"; then
5946 ac_cv_prog_M4="$M4" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955 ac_cv_prog_M4="$ac_prog"
5956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 break 2
5959 done
5960 done
5964 M4=$ac_cv_prog_M4
5965 if test -n "$M4"; then
5966 echo "$as_me:$LINENO: result: $M4" >&5
5967 echo "${ECHO_T}$M4" >&6
5968 else
5969 echo "$as_me:$LINENO: result: no" >&5
5970 echo "${ECHO_T}no" >&6
5973 test -n "$M4" && break
5974 done
5975 test -n "$M4" || M4="$MISSING m4"
5977 case " $build_configdirs " in
5978 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5979 esac
5981 for ac_prog in flex lex
5983 # Extract the first word of "$ac_prog", so it can be a program name with args.
5984 set dummy $ac_prog; ac_word=$2
5985 echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5987 if test "${ac_cv_prog_LEX+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990 if test -n "$LEX"; then
5991 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000 ac_cv_prog_LEX="$ac_prog"
6001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6004 done
6005 done
6009 LEX=$ac_cv_prog_LEX
6010 if test -n "$LEX"; then
6011 echo "$as_me:$LINENO: result: $LEX" >&5
6012 echo "${ECHO_T}$LEX" >&6
6013 else
6014 echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6018 test -n "$LEX" && break
6019 done
6020 test -n "$LEX" || LEX="$MISSING flex"
6022 case " $build_configdirs " in
6023 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6024 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6025 esac
6027 for ac_prog in flex
6029 # Extract the first word of "$ac_prog", so it can be a program name with args.
6030 set dummy $ac_prog; ac_word=$2
6031 echo "$as_me:$LINENO: checking for $ac_word" >&5
6032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033 if test "${ac_cv_prog_FLEX+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036 if test -n "$FLEX"; then
6037 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046 ac_cv_prog_FLEX="$ac_prog"
6047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6050 done
6051 done
6055 FLEX=$ac_cv_prog_FLEX
6056 if test -n "$FLEX"; then
6057 echo "$as_me:$LINENO: result: $FLEX" >&5
6058 echo "${ECHO_T}$FLEX" >&6
6059 else
6060 echo "$as_me:$LINENO: result: no" >&5
6061 echo "${ECHO_T}no" >&6
6064 test -n "$FLEX" && break
6065 done
6066 test -n "$FLEX" || FLEX="$MISSING flex"
6068 case " $build_configdirs " in
6069 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6070 esac
6072 for ac_prog in makeinfo
6074 # Extract the first word of "$ac_prog", so it can be a program name with args.
6075 set dummy $ac_prog; ac_word=$2
6076 echo "$as_me:$LINENO: checking for $ac_word" >&5
6077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6078 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081 if test -n "$MAKEINFO"; then
6082 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6087 IFS=$as_save_IFS
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091 ac_cv_prog_MAKEINFO="$ac_prog"
6092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 break 2
6095 done
6096 done
6100 MAKEINFO=$ac_cv_prog_MAKEINFO
6101 if test -n "$MAKEINFO"; then
6102 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6103 echo "${ECHO_T}$MAKEINFO" >&6
6104 else
6105 echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6
6109 test -n "$MAKEINFO" && break
6110 done
6111 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6113 case " $build_configdirs " in
6114 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6117 # For an installed makeinfo, we require it to be from texinfo 4.4 or
6118 # higher, else we use the "missing" dummy.
6119 if ${MAKEINFO} --version \
6120 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
6122 else
6123 MAKEINFO="$MISSING makeinfo"
6127 esac
6129 # FIXME: expect and dejagnu may become build tools?
6131 for ac_prog in expect
6133 # Extract the first word of "$ac_prog", so it can be a program name with args.
6134 set dummy $ac_prog; ac_word=$2
6135 echo "$as_me:$LINENO: checking for $ac_word" >&5
6136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6137 if test "${ac_cv_prog_EXPECT+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140 if test -n "$EXPECT"; then
6141 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6142 else
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150 ac_cv_prog_EXPECT="$ac_prog"
6151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 break 2
6154 done
6155 done
6159 EXPECT=$ac_cv_prog_EXPECT
6160 if test -n "$EXPECT"; then
6161 echo "$as_me:$LINENO: result: $EXPECT" >&5
6162 echo "${ECHO_T}$EXPECT" >&6
6163 else
6164 echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6
6168 test -n "$EXPECT" && break
6169 done
6170 test -n "$EXPECT" || EXPECT="expect"
6172 case " $configdirs " in
6173 *" expect "*)
6174 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6176 esac
6178 for ac_prog in runtest
6180 # Extract the first word of "$ac_prog", so it can be a program name with args.
6181 set dummy $ac_prog; ac_word=$2
6182 echo "$as_me:$LINENO: checking for $ac_word" >&5
6183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6184 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187 if test -n "$RUNTEST"; then
6188 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6197 ac_cv_prog_RUNTEST="$ac_prog"
6198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 break 2
6201 done
6202 done
6206 RUNTEST=$ac_cv_prog_RUNTEST
6207 if test -n "$RUNTEST"; then
6208 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6209 echo "${ECHO_T}$RUNTEST" >&6
6210 else
6211 echo "$as_me:$LINENO: result: no" >&5
6212 echo "${ECHO_T}no" >&6
6215 test -n "$RUNTEST" && break
6216 done
6217 test -n "$RUNTEST" || RUNTEST="runtest"
6219 case " $configdirs " in
6220 *" dejagnu "*)
6221 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6223 esac
6226 # Host tools.
6227 ncn_tool_prefix=
6228 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6229 ncn_target_tool_prefix=
6230 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6234 if test -n "$AR"; then
6235 ac_cv_prog_AR=$AR
6236 elif test -n "$ac_cv_prog_AR"; then
6237 AR=$ac_cv_prog_AR
6240 if test -n "$ac_cv_prog_AR"; then
6241 for ncn_progname in ar; do
6242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6243 set dummy ${ncn_progname}; ac_word=$2
6244 echo "$as_me:$LINENO: checking for $ac_word" >&5
6245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6246 if test "${ac_cv_prog_AR+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249 if test -n "$AR"; then
6250 ac_cv_prog_AR="$AR" # Let the user override the test.
6251 else
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_AR="${ncn_progname}"
6260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6263 done
6264 done
6268 AR=$ac_cv_prog_AR
6269 if test -n "$AR"; then
6270 echo "$as_me:$LINENO: result: $AR" >&5
6271 echo "${ECHO_T}$AR" >&6
6272 else
6273 echo "$as_me:$LINENO: result: no" >&5
6274 echo "${ECHO_T}no" >&6
6277 done
6280 for ncn_progname in ar; do
6281 if test -n "$ncn_tool_prefix"; then
6282 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6283 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6284 echo "$as_me:$LINENO: checking for $ac_word" >&5
6285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6286 if test "${ac_cv_prog_AR+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289 if test -n "$AR"; then
6290 ac_cv_prog_AR="$AR" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6303 done
6304 done
6308 AR=$ac_cv_prog_AR
6309 if test -n "$AR"; then
6310 echo "$as_me:$LINENO: result: $AR" >&5
6311 echo "${ECHO_T}$AR" >&6
6312 else
6313 echo "$as_me:$LINENO: result: no" >&5
6314 echo "${ECHO_T}no" >&6
6318 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6320 set dummy ${ncn_progname}; ac_word=$2
6321 echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6323 if test "${ac_cv_prog_AR+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326 if test -n "$AR"; then
6327 ac_cv_prog_AR="$AR" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_AR="${ncn_progname}"
6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6340 done
6341 done
6345 AR=$ac_cv_prog_AR
6346 if test -n "$AR"; then
6347 echo "$as_me:$LINENO: result: $AR" >&5
6348 echo "${ECHO_T}$AR" >&6
6349 else
6350 echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6
6355 test -n "$ac_cv_prog_AR" && break
6356 done
6358 if test -z "$ac_cv_prog_AR" ; then
6359 set dummy ar
6360 if test $build = $host ; then
6361 AR="$2"
6362 else
6363 AR="${ncn_tool_prefix}$2"
6369 if test -n "$AS"; then
6370 ac_cv_prog_AS=$AS
6371 elif test -n "$ac_cv_prog_AS"; then
6372 AS=$ac_cv_prog_AS
6375 if test -n "$ac_cv_prog_AS"; then
6376 for ncn_progname in as; do
6377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6378 set dummy ${ncn_progname}; ac_word=$2
6379 echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6381 if test "${ac_cv_prog_AS+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384 if test -n "$AS"; then
6385 ac_cv_prog_AS="$AS" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_AS="${ncn_progname}"
6395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6398 done
6399 done
6403 AS=$ac_cv_prog_AS
6404 if test -n "$AS"; then
6405 echo "$as_me:$LINENO: result: $AS" >&5
6406 echo "${ECHO_T}$AS" >&6
6407 else
6408 echo "$as_me:$LINENO: result: no" >&5
6409 echo "${ECHO_T}no" >&6
6412 done
6415 for ncn_progname in as; do
6416 if test -n "$ncn_tool_prefix"; then
6417 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6418 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6419 echo "$as_me:$LINENO: checking for $ac_word" >&5
6420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6421 if test "${ac_cv_prog_AS+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 else
6424 if test -n "$AS"; then
6425 ac_cv_prog_AS="$AS" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6434 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6438 done
6439 done
6443 AS=$ac_cv_prog_AS
6444 if test -n "$AS"; then
6445 echo "$as_me:$LINENO: result: $AS" >&5
6446 echo "${ECHO_T}$AS" >&6
6447 else
6448 echo "$as_me:$LINENO: result: no" >&5
6449 echo "${ECHO_T}no" >&6
6453 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6455 set dummy ${ncn_progname}; ac_word=$2
6456 echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6458 if test "${ac_cv_prog_AS+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461 if test -n "$AS"; then
6462 ac_cv_prog_AS="$AS" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471 ac_cv_prog_AS="${ncn_progname}"
6472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6475 done
6476 done
6480 AS=$ac_cv_prog_AS
6481 if test -n "$AS"; then
6482 echo "$as_me:$LINENO: result: $AS" >&5
6483 echo "${ECHO_T}$AS" >&6
6484 else
6485 echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6
6490 test -n "$ac_cv_prog_AS" && break
6491 done
6493 if test -z "$ac_cv_prog_AS" ; then
6494 set dummy as
6495 if test $build = $host ; then
6496 AS="$2"
6497 else
6498 AS="${ncn_tool_prefix}$2"
6504 if test -n "$DLLTOOL"; then
6505 ac_cv_prog_DLLTOOL=$DLLTOOL
6506 elif test -n "$ac_cv_prog_DLLTOOL"; then
6507 DLLTOOL=$ac_cv_prog_DLLTOOL
6510 if test -n "$ac_cv_prog_DLLTOOL"; then
6511 for ncn_progname in dlltool; do
6512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6513 set dummy ${ncn_progname}; ac_word=$2
6514 echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6516 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 else
6519 if test -n "$DLLTOOL"; then
6520 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6525 IFS=$as_save_IFS
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6529 ac_cv_prog_DLLTOOL="${ncn_progname}"
6530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 break 2
6533 done
6534 done
6538 DLLTOOL=$ac_cv_prog_DLLTOOL
6539 if test -n "$DLLTOOL"; then
6540 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6541 echo "${ECHO_T}$DLLTOOL" >&6
6542 else
6543 echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6
6547 done
6550 for ncn_progname in dlltool; do
6551 if test -n "$ncn_tool_prefix"; then
6552 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6553 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6554 echo "$as_me:$LINENO: checking for $ac_word" >&5
6555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6556 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559 if test -n "$DLLTOOL"; then
6560 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6561 else
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6569 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 break 2
6573 done
6574 done
6578 DLLTOOL=$ac_cv_prog_DLLTOOL
6579 if test -n "$DLLTOOL"; then
6580 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6581 echo "${ECHO_T}$DLLTOOL" >&6
6582 else
6583 echo "$as_me:$LINENO: result: no" >&5
6584 echo "${ECHO_T}no" >&6
6588 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6590 set dummy ${ncn_progname}; ac_word=$2
6591 echo "$as_me:$LINENO: checking for $ac_word" >&5
6592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6593 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596 if test -n "$DLLTOOL"; then
6597 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6598 else
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_DLLTOOL="${ncn_progname}"
6607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6610 done
6611 done
6615 DLLTOOL=$ac_cv_prog_DLLTOOL
6616 if test -n "$DLLTOOL"; then
6617 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6618 echo "${ECHO_T}$DLLTOOL" >&6
6619 else
6620 echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6
6625 test -n "$ac_cv_prog_DLLTOOL" && break
6626 done
6628 if test -z "$ac_cv_prog_DLLTOOL" ; then
6629 set dummy dlltool
6630 if test $build = $host ; then
6631 DLLTOOL="$2"
6632 else
6633 DLLTOOL="${ncn_tool_prefix}$2"
6639 if test -n "$LD"; then
6640 ac_cv_prog_LD=$LD
6641 elif test -n "$ac_cv_prog_LD"; then
6642 LD=$ac_cv_prog_LD
6645 if test -n "$ac_cv_prog_LD"; then
6646 for ncn_progname in ld; do
6647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6648 set dummy ${ncn_progname}; ac_word=$2
6649 echo "$as_me:$LINENO: checking for $ac_word" >&5
6650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6651 if test "${ac_cv_prog_LD+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654 if test -n "$LD"; then
6655 ac_cv_prog_LD="$LD" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664 ac_cv_prog_LD="${ncn_progname}"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6668 done
6669 done
6673 LD=$ac_cv_prog_LD
6674 if test -n "$LD"; then
6675 echo "$as_me:$LINENO: result: $LD" >&5
6676 echo "${ECHO_T}$LD" >&6
6677 else
6678 echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6
6682 done
6685 for ncn_progname in ld; do
6686 if test -n "$ncn_tool_prefix"; then
6687 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6688 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6689 echo "$as_me:$LINENO: checking for $ac_word" >&5
6690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6691 if test "${ac_cv_prog_LD+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694 if test -n "$LD"; then
6695 ac_cv_prog_LD="$LD" # Let the user override the test.
6696 else
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6708 done
6709 done
6713 LD=$ac_cv_prog_LD
6714 if test -n "$LD"; then
6715 echo "$as_me:$LINENO: result: $LD" >&5
6716 echo "${ECHO_T}$LD" >&6
6717 else
6718 echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6
6723 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6725 set dummy ${ncn_progname}; ac_word=$2
6726 echo "$as_me:$LINENO: checking for $ac_word" >&5
6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6728 if test "${ac_cv_prog_LD+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 else
6731 if test -n "$LD"; then
6732 ac_cv_prog_LD="$LD" # Let the user override the test.
6733 else
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 for as_dir in $PATH
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741 ac_cv_prog_LD="${ncn_progname}"
6742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6745 done
6746 done
6750 LD=$ac_cv_prog_LD
6751 if test -n "$LD"; then
6752 echo "$as_me:$LINENO: result: $LD" >&5
6753 echo "${ECHO_T}$LD" >&6
6754 else
6755 echo "$as_me:$LINENO: result: no" >&5
6756 echo "${ECHO_T}no" >&6
6760 test -n "$ac_cv_prog_LD" && break
6761 done
6763 if test -z "$ac_cv_prog_LD" ; then
6764 set dummy ld
6765 if test $build = $host ; then
6766 LD="$2"
6767 else
6768 LD="${ncn_tool_prefix}$2"
6774 if test -n "$LIPO"; then
6775 ac_cv_prog_LIPO=$LIPO
6776 elif test -n "$ac_cv_prog_LIPO"; then
6777 LIPO=$ac_cv_prog_LIPO
6780 if test -n "$ac_cv_prog_LIPO"; then
6781 for ncn_progname in lipo; do
6782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6783 set dummy ${ncn_progname}; ac_word=$2
6784 echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6786 if test "${ac_cv_prog_LIPO+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789 if test -n "$LIPO"; then
6790 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799 ac_cv_prog_LIPO="${ncn_progname}"
6800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6803 done
6804 done
6808 LIPO=$ac_cv_prog_LIPO
6809 if test -n "$LIPO"; then
6810 echo "$as_me:$LINENO: result: $LIPO" >&5
6811 echo "${ECHO_T}$LIPO" >&6
6812 else
6813 echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6
6817 done
6820 for ncn_progname in lipo; do
6821 if test -n "$ncn_tool_prefix"; then
6822 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6823 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6824 echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6826 if test "${ac_cv_prog_LIPO+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829 if test -n "$LIPO"; then
6830 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6843 done
6844 done
6848 LIPO=$ac_cv_prog_LIPO
6849 if test -n "$LIPO"; then
6850 echo "$as_me:$LINENO: result: $LIPO" >&5
6851 echo "${ECHO_T}$LIPO" >&6
6852 else
6853 echo "$as_me:$LINENO: result: no" >&5
6854 echo "${ECHO_T}no" >&6
6858 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6860 set dummy ${ncn_progname}; ac_word=$2
6861 echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6863 if test "${ac_cv_prog_LIPO+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866 if test -n "$LIPO"; then
6867 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876 ac_cv_prog_LIPO="${ncn_progname}"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6880 done
6881 done
6885 LIPO=$ac_cv_prog_LIPO
6886 if test -n "$LIPO"; then
6887 echo "$as_me:$LINENO: result: $LIPO" >&5
6888 echo "${ECHO_T}$LIPO" >&6
6889 else
6890 echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6
6895 test -n "$ac_cv_prog_LIPO" && break
6896 done
6898 if test -z "$ac_cv_prog_LIPO" ; then
6899 set dummy lipo
6900 if test $build = $host ; then
6901 LIPO="$2"
6902 else
6903 LIPO="${ncn_tool_prefix}$2"
6909 if test -n "$NM"; then
6910 ac_cv_prog_NM=$NM
6911 elif test -n "$ac_cv_prog_NM"; then
6912 NM=$ac_cv_prog_NM
6915 if test -n "$ac_cv_prog_NM"; then
6916 for ncn_progname in nm; do
6917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6918 set dummy ${ncn_progname}; ac_word=$2
6919 echo "$as_me:$LINENO: checking for $ac_word" >&5
6920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6921 if test "${ac_cv_prog_NM+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 if test -n "$NM"; then
6925 ac_cv_prog_NM="$NM" # Let the user override the test.
6926 else
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6934 ac_cv_prog_NM="${ncn_progname}"
6935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6938 done
6939 done
6943 NM=$ac_cv_prog_NM
6944 if test -n "$NM"; then
6945 echo "$as_me:$LINENO: result: $NM" >&5
6946 echo "${ECHO_T}$NM" >&6
6947 else
6948 echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6
6952 done
6955 for ncn_progname in nm; do
6956 if test -n "$ncn_tool_prefix"; then
6957 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6958 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6959 echo "$as_me:$LINENO: checking for $ac_word" >&5
6960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6961 if test "${ac_cv_prog_NM+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964 if test -n "$NM"; then
6965 ac_cv_prog_NM="$NM" # Let the user override the test.
6966 else
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6974 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
6975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6978 done
6979 done
6983 NM=$ac_cv_prog_NM
6984 if test -n "$NM"; then
6985 echo "$as_me:$LINENO: result: $NM" >&5
6986 echo "${ECHO_T}$NM" >&6
6987 else
6988 echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6
6993 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6995 set dummy ${ncn_progname}; ac_word=$2
6996 echo "$as_me:$LINENO: checking for $ac_word" >&5
6997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6998 if test "${ac_cv_prog_NM+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001 if test -n "$NM"; then
7002 ac_cv_prog_NM="$NM" # Let the user override the test.
7003 else
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011 ac_cv_prog_NM="${ncn_progname}"
7012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7015 done
7016 done
7020 NM=$ac_cv_prog_NM
7021 if test -n "$NM"; then
7022 echo "$as_me:$LINENO: result: $NM" >&5
7023 echo "${ECHO_T}$NM" >&6
7024 else
7025 echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6
7030 test -n "$ac_cv_prog_NM" && break
7031 done
7033 if test -z "$ac_cv_prog_NM" ; then
7034 set dummy nm
7035 if test $build = $host ; then
7036 NM="$2"
7037 else
7038 NM="${ncn_tool_prefix}$2"
7044 if test -n "$RANLIB"; then
7045 ac_cv_prog_RANLIB=$RANLIB
7046 elif test -n "$ac_cv_prog_RANLIB"; then
7047 RANLIB=$ac_cv_prog_RANLIB
7050 if test -n "$ac_cv_prog_RANLIB"; then
7051 for ncn_progname in ranlib; do
7052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7053 set dummy ${ncn_progname}; ac_word=$2
7054 echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7056 if test "${ac_cv_prog_RANLIB+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059 if test -n "$RANLIB"; then
7060 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069 ac_cv_prog_RANLIB="${ncn_progname}"
7070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 break 2
7073 done
7074 done
7078 RANLIB=$ac_cv_prog_RANLIB
7079 if test -n "$RANLIB"; then
7080 echo "$as_me:$LINENO: result: $RANLIB" >&5
7081 echo "${ECHO_T}$RANLIB" >&6
7082 else
7083 echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6
7087 done
7090 for ncn_progname in ranlib; do
7091 if test -n "$ncn_tool_prefix"; then
7092 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7093 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7094 echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7096 if test "${ac_cv_prog_RANLIB+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 else
7099 if test -n "$RANLIB"; then
7100 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 break 2
7113 done
7114 done
7118 RANLIB=$ac_cv_prog_RANLIB
7119 if test -n "$RANLIB"; then
7120 echo "$as_me:$LINENO: result: $RANLIB" >&5
7121 echo "${ECHO_T}$RANLIB" >&6
7122 else
7123 echo "$as_me:$LINENO: result: no" >&5
7124 echo "${ECHO_T}no" >&6
7128 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7130 set dummy ${ncn_progname}; ac_word=$2
7131 echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133 if test "${ac_cv_prog_RANLIB+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136 if test -n "$RANLIB"; then
7137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_RANLIB="${ncn_progname}"
7147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7150 done
7151 done
7155 RANLIB=$ac_cv_prog_RANLIB
7156 if test -n "$RANLIB"; then
7157 echo "$as_me:$LINENO: result: $RANLIB" >&5
7158 echo "${ECHO_T}$RANLIB" >&6
7159 else
7160 echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6
7165 test -n "$ac_cv_prog_RANLIB" && break
7166 done
7168 if test -z "$ac_cv_prog_RANLIB" ; then
7169 RANLIB=":"
7174 if test -n "$STRIP"; then
7175 ac_cv_prog_STRIP=$STRIP
7176 elif test -n "$ac_cv_prog_STRIP"; then
7177 STRIP=$ac_cv_prog_STRIP
7180 if test -n "$ac_cv_prog_STRIP"; then
7181 for ncn_progname in strip; do
7182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7183 set dummy ${ncn_progname}; ac_word=$2
7184 echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7186 if test "${ac_cv_prog_STRIP+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else
7189 if test -n "$STRIP"; then
7190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7191 else
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7195 IFS=$as_save_IFS
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199 ac_cv_prog_STRIP="${ncn_progname}"
7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 break 2
7203 done
7204 done
7208 STRIP=$ac_cv_prog_STRIP
7209 if test -n "$STRIP"; then
7210 echo "$as_me:$LINENO: result: $STRIP" >&5
7211 echo "${ECHO_T}$STRIP" >&6
7212 else
7213 echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6
7217 done
7220 for ncn_progname in strip; do
7221 if test -n "$ncn_tool_prefix"; then
7222 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7223 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7224 echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7226 if test "${ac_cv_prog_STRIP+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 if test -n "$STRIP"; then
7230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7243 done
7244 done
7248 STRIP=$ac_cv_prog_STRIP
7249 if test -n "$STRIP"; then
7250 echo "$as_me:$LINENO: result: $STRIP" >&5
7251 echo "${ECHO_T}$STRIP" >&6
7252 else
7253 echo "$as_me:$LINENO: result: no" >&5
7254 echo "${ECHO_T}no" >&6
7258 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7260 set dummy ${ncn_progname}; ac_word=$2
7261 echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7263 if test "${ac_cv_prog_STRIP+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266 if test -n "$STRIP"; then
7267 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_STRIP="${ncn_progname}"
7277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 break 2
7280 done
7281 done
7285 STRIP=$ac_cv_prog_STRIP
7286 if test -n "$STRIP"; then
7287 echo "$as_me:$LINENO: result: $STRIP" >&5
7288 echo "${ECHO_T}$STRIP" >&6
7289 else
7290 echo "$as_me:$LINENO: result: no" >&5
7291 echo "${ECHO_T}no" >&6
7295 test -n "$ac_cv_prog_STRIP" && break
7296 done
7298 if test -z "$ac_cv_prog_STRIP" ; then
7299 STRIP=":"
7304 if test -n "$WINDRES"; then
7305 ac_cv_prog_WINDRES=$WINDRES
7306 elif test -n "$ac_cv_prog_WINDRES"; then
7307 WINDRES=$ac_cv_prog_WINDRES
7310 if test -n "$ac_cv_prog_WINDRES"; then
7311 for ncn_progname in windres; do
7312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7313 set dummy ${ncn_progname}; ac_word=$2
7314 echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7316 if test "${ac_cv_prog_WINDRES+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319 if test -n "$WINDRES"; then
7320 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7321 else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_WINDRES="${ncn_progname}"
7330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 break 2
7333 done
7334 done
7338 WINDRES=$ac_cv_prog_WINDRES
7339 if test -n "$WINDRES"; then
7340 echo "$as_me:$LINENO: result: $WINDRES" >&5
7341 echo "${ECHO_T}$WINDRES" >&6
7342 else
7343 echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6
7347 done
7350 for ncn_progname in windres; do
7351 if test -n "$ncn_tool_prefix"; then
7352 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7353 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7354 echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7356 if test "${ac_cv_prog_WINDRES+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359 if test -n "$WINDRES"; then
7360 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7373 done
7374 done
7378 WINDRES=$ac_cv_prog_WINDRES
7379 if test -n "$WINDRES"; then
7380 echo "$as_me:$LINENO: result: $WINDRES" >&5
7381 echo "${ECHO_T}$WINDRES" >&6
7382 else
7383 echo "$as_me:$LINENO: result: no" >&5
7384 echo "${ECHO_T}no" >&6
7388 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7390 set dummy ${ncn_progname}; ac_word=$2
7391 echo "$as_me:$LINENO: checking for $ac_word" >&5
7392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7393 if test "${ac_cv_prog_WINDRES+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7396 if test -n "$WINDRES"; then
7397 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7398 else
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406 ac_cv_prog_WINDRES="${ncn_progname}"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7410 done
7411 done
7415 WINDRES=$ac_cv_prog_WINDRES
7416 if test -n "$WINDRES"; then
7417 echo "$as_me:$LINENO: result: $WINDRES" >&5
7418 echo "${ECHO_T}$WINDRES" >&6
7419 else
7420 echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6
7425 test -n "$ac_cv_prog_WINDRES" && break
7426 done
7428 if test -z "$ac_cv_prog_WINDRES" ; then
7429 set dummy windres
7430 if test $build = $host ; then
7431 WINDRES="$2"
7432 else
7433 WINDRES="${ncn_tool_prefix}$2"
7439 if test -n "$OBJCOPY"; then
7440 ac_cv_prog_OBJCOPY=$OBJCOPY
7441 elif test -n "$ac_cv_prog_OBJCOPY"; then
7442 OBJCOPY=$ac_cv_prog_OBJCOPY
7445 if test -n "$ac_cv_prog_OBJCOPY"; then
7446 for ncn_progname in objcopy; do
7447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7448 set dummy ${ncn_progname}; ac_word=$2
7449 echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7451 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454 if test -n "$OBJCOPY"; then
7455 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464 ac_cv_prog_OBJCOPY="${ncn_progname}"
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7468 done
7469 done
7473 OBJCOPY=$ac_cv_prog_OBJCOPY
7474 if test -n "$OBJCOPY"; then
7475 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7476 echo "${ECHO_T}$OBJCOPY" >&6
7477 else
7478 echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6
7482 done
7485 for ncn_progname in objcopy; do
7486 if test -n "$ncn_tool_prefix"; then
7487 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7488 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7489 echo "$as_me:$LINENO: checking for $ac_word" >&5
7490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7491 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 else
7494 if test -n "$OBJCOPY"; then
7495 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7508 done
7509 done
7513 OBJCOPY=$ac_cv_prog_OBJCOPY
7514 if test -n "$OBJCOPY"; then
7515 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7516 echo "${ECHO_T}$OBJCOPY" >&6
7517 else
7518 echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6
7523 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7525 set dummy ${ncn_progname}; ac_word=$2
7526 echo "$as_me:$LINENO: checking for $ac_word" >&5
7527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7528 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7531 if test -n "$OBJCOPY"; then
7532 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7533 else
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541 ac_cv_prog_OBJCOPY="${ncn_progname}"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7545 done
7546 done
7550 OBJCOPY=$ac_cv_prog_OBJCOPY
7551 if test -n "$OBJCOPY"; then
7552 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7553 echo "${ECHO_T}$OBJCOPY" >&6
7554 else
7555 echo "$as_me:$LINENO: result: no" >&5
7556 echo "${ECHO_T}no" >&6
7560 test -n "$ac_cv_prog_OBJCOPY" && break
7561 done
7563 if test -z "$ac_cv_prog_OBJCOPY" ; then
7564 set dummy objcopy
7565 if test $build = $host ; then
7566 OBJCOPY="$2"
7567 else
7568 OBJCOPY="${ncn_tool_prefix}$2"
7574 if test -n "$OBJDUMP"; then
7575 ac_cv_prog_OBJDUMP=$OBJDUMP
7576 elif test -n "$ac_cv_prog_OBJDUMP"; then
7577 OBJDUMP=$ac_cv_prog_OBJDUMP
7580 if test -n "$ac_cv_prog_OBJDUMP"; then
7581 for ncn_progname in objdump; do
7582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7583 set dummy ${ncn_progname}; ac_word=$2
7584 echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7586 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 if test -n "$OBJDUMP"; then
7590 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7591 else
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 ac_cv_prog_OBJDUMP="${ncn_progname}"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7603 done
7604 done
7608 OBJDUMP=$ac_cv_prog_OBJDUMP
7609 if test -n "$OBJDUMP"; then
7610 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7611 echo "${ECHO_T}$OBJDUMP" >&6
7612 else
7613 echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6
7617 done
7620 for ncn_progname in objdump; do
7621 if test -n "$ncn_tool_prefix"; then
7622 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7623 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7624 echo "$as_me:$LINENO: checking for $ac_word" >&5
7625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7626 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629 if test -n "$OBJDUMP"; then
7630 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7631 else
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7639 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 break 2
7643 done
7644 done
7648 OBJDUMP=$ac_cv_prog_OBJDUMP
7649 if test -n "$OBJDUMP"; then
7650 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7651 echo "${ECHO_T}$OBJDUMP" >&6
7652 else
7653 echo "$as_me:$LINENO: result: no" >&5
7654 echo "${ECHO_T}no" >&6
7658 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7660 set dummy ${ncn_progname}; ac_word=$2
7661 echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7663 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666 if test -n "$OBJDUMP"; then
7667 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_OBJDUMP="${ncn_progname}"
7677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7680 done
7681 done
7685 OBJDUMP=$ac_cv_prog_OBJDUMP
7686 if test -n "$OBJDUMP"; then
7687 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7688 echo "${ECHO_T}$OBJDUMP" >&6
7689 else
7690 echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6
7695 test -n "$ac_cv_prog_OBJDUMP" && break
7696 done
7698 if test -z "$ac_cv_prog_OBJDUMP" ; then
7699 set dummy objdump
7700 if test $build = $host ; then
7701 OBJDUMP="$2"
7702 else
7703 OBJDUMP="${ncn_tool_prefix}$2"
7713 # Target tools.
7715 # Check whether --with-build-time-tools or --without-build-time-tools was given.
7716 if test "${with_build_time_tools+set}" = set; then
7717 withval="$with_build_time_tools"
7718 case x"$withval" in
7719 x/*) ;;
7721 with_build_time_tools=
7722 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7723 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
7725 esac
7726 else
7727 with_build_time_tools=
7732 if test -n "$CC_FOR_TARGET"; then
7733 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7734 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7735 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7738 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7739 for ncn_progname in cc gcc; do
7740 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7741 set dummy ${ncn_progname}; ac_word=$2
7742 echo "$as_me:$LINENO: checking for $ac_word" >&5
7743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7744 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747 if test -n "$CC_FOR_TARGET"; then
7748 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7761 done
7762 done
7766 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7767 if test -n "$CC_FOR_TARGET"; then
7768 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7769 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7770 else
7771 echo "$as_me:$LINENO: result: no" >&5
7772 echo "${ECHO_T}no" >&6
7775 done
7778 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
7779 for ncn_progname in cc gcc; do
7780 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7781 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7782 if test -x $with_build_time_tools/${ncn_progname}; then
7783 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7784 echo "$as_me:$LINENO: result: yes" >&5
7785 echo "${ECHO_T}yes" >&6
7786 break
7787 else
7788 echo "$as_me:$LINENO: result: no" >&5
7789 echo "${ECHO_T}no" >&6
7791 done
7794 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7795 for ncn_progname in cc gcc; do
7796 if test -n "$ncn_target_tool_prefix"; then
7797 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7798 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7799 echo "$as_me:$LINENO: checking for $ac_word" >&5
7800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7801 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804 if test -n "$CC_FOR_TARGET"; then
7805 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7818 done
7819 done
7823 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7824 if test -n "$CC_FOR_TARGET"; then
7825 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7826 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7827 else
7828 echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6
7833 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7835 set dummy ${ncn_progname}; ac_word=$2
7836 echo "$as_me:$LINENO: checking for $ac_word" >&5
7837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7838 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841 if test -n "$CC_FOR_TARGET"; then
7842 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7843 else
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 break 2
7855 done
7856 done
7860 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7861 if test -n "$CC_FOR_TARGET"; then
7862 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7863 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7864 else
7865 echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6
7870 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
7871 done
7874 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
7875 set dummy cc gcc
7876 if test $build = $target ; then
7877 CC_FOR_TARGET="$2"
7878 else
7879 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
7885 if test -n "$CXX_FOR_TARGET"; then
7886 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
7887 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
7888 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7891 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
7892 for ncn_progname in c++ g++ cxx gxx; do
7893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7894 set dummy ${ncn_progname}; ac_word=$2
7895 echo "$as_me:$LINENO: checking for $ac_word" >&5
7896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7897 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900 if test -n "$CXX_FOR_TARGET"; then
7901 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 break 2
7914 done
7915 done
7919 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7920 if test -n "$CXX_FOR_TARGET"; then
7921 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7922 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7923 else
7924 echo "$as_me:$LINENO: result: no" >&5
7925 echo "${ECHO_T}no" >&6
7928 done
7931 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
7932 for ncn_progname in c++ g++ cxx gxx; do
7933 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7934 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7935 if test -x $with_build_time_tools/${ncn_progname}; then
7936 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7937 echo "$as_me:$LINENO: result: yes" >&5
7938 echo "${ECHO_T}yes" >&6
7939 break
7940 else
7941 echo "$as_me:$LINENO: result: no" >&5
7942 echo "${ECHO_T}no" >&6
7944 done
7947 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
7948 for ncn_progname in c++ g++ cxx gxx; do
7949 if test -n "$ncn_target_tool_prefix"; then
7950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7951 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7952 echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7954 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957 if test -n "$CXX_FOR_TARGET"; then
7958 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7971 done
7972 done
7976 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7977 if test -n "$CXX_FOR_TARGET"; then
7978 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7979 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7980 else
7981 echo "$as_me:$LINENO: result: no" >&5
7982 echo "${ECHO_T}no" >&6
7986 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
7987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7988 set dummy ${ncn_progname}; ac_word=$2
7989 echo "$as_me:$LINENO: checking for $ac_word" >&5
7990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7991 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994 if test -n "$CXX_FOR_TARGET"; then
7995 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8004 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8008 done
8009 done
8013 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8014 if test -n "$CXX_FOR_TARGET"; then
8015 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8016 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8017 else
8018 echo "$as_me:$LINENO: result: no" >&5
8019 echo "${ECHO_T}no" >&6
8023 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8024 done
8027 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8028 set dummy c++ g++ cxx gxx
8029 if test $build = $target ; then
8030 CXX_FOR_TARGET="$2"
8031 else
8032 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8038 if test -n "$GCC_FOR_TARGET"; then
8039 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8040 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8041 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8044 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8045 for ncn_progname in gcc; do
8046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8047 set dummy ${ncn_progname}; ac_word=$2
8048 echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8050 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053 if test -n "$GCC_FOR_TARGET"; then
8054 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8055 else
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 break 2
8067 done
8068 done
8072 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8073 if test -n "$GCC_FOR_TARGET"; then
8074 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8075 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8076 else
8077 echo "$as_me:$LINENO: result: no" >&5
8078 echo "${ECHO_T}no" >&6
8081 done
8084 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8085 for ncn_progname in gcc; do
8086 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8087 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8088 if test -x $with_build_time_tools/${ncn_progname}; then
8089 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8090 echo "$as_me:$LINENO: result: yes" >&5
8091 echo "${ECHO_T}yes" >&6
8092 break
8093 else
8094 echo "$as_me:$LINENO: result: no" >&5
8095 echo "${ECHO_T}no" >&6
8097 done
8100 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8101 for ncn_progname in gcc; do
8102 if test -n "$ncn_target_tool_prefix"; then
8103 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8104 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8105 echo "$as_me:$LINENO: checking for $ac_word" >&5
8106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8107 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 else
8110 if test -n "$GCC_FOR_TARGET"; then
8111 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8112 else
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8120 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 break 2
8124 done
8125 done
8129 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8130 if test -n "$GCC_FOR_TARGET"; then
8131 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8132 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8133 else
8134 echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6
8139 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8141 set dummy ${ncn_progname}; ac_word=$2
8142 echo "$as_me:$LINENO: checking for $ac_word" >&5
8143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8144 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147 if test -n "$GCC_FOR_TARGET"; then
8148 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8149 else
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8157 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 break 2
8161 done
8162 done
8166 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8167 if test -n "$GCC_FOR_TARGET"; then
8168 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8169 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8170 else
8171 echo "$as_me:$LINENO: result: no" >&5
8172 echo "${ECHO_T}no" >&6
8176 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8177 done
8180 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8181 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8186 if test -n "$GCJ_FOR_TARGET"; then
8187 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8188 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8189 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8192 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8193 for ncn_progname in gcj; do
8194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8195 set dummy ${ncn_progname}; ac_word=$2
8196 echo "$as_me:$LINENO: checking for $ac_word" >&5
8197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8198 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 else
8201 if test -n "$GCJ_FOR_TARGET"; then
8202 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8203 else
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8211 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8215 done
8216 done
8220 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8221 if test -n "$GCJ_FOR_TARGET"; then
8222 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8223 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8224 else
8225 echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6
8229 done
8232 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8233 for ncn_progname in gcj; do
8234 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8235 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8236 if test -x $with_build_time_tools/${ncn_progname}; then
8237 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8238 echo "$as_me:$LINENO: result: yes" >&5
8239 echo "${ECHO_T}yes" >&6
8240 break
8241 else
8242 echo "$as_me:$LINENO: result: no" >&5
8243 echo "${ECHO_T}no" >&6
8245 done
8248 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8249 for ncn_progname in gcj; do
8250 if test -n "$ncn_target_tool_prefix"; then
8251 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8252 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8253 echo "$as_me:$LINENO: checking for $ac_word" >&5
8254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8255 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 else
8258 if test -n "$GCJ_FOR_TARGET"; then
8259 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8260 else
8261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262 for as_dir in $PATH
8264 IFS=$as_save_IFS
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8268 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 break 2
8272 done
8273 done
8277 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8278 if test -n "$GCJ_FOR_TARGET"; then
8279 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8280 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8281 else
8282 echo "$as_me:$LINENO: result: no" >&5
8283 echo "${ECHO_T}no" >&6
8287 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8289 set dummy ${ncn_progname}; ac_word=$2
8290 echo "$as_me:$LINENO: checking for $ac_word" >&5
8291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8292 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295 if test -n "$GCJ_FOR_TARGET"; then
8296 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8297 else
8298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 for as_dir in $PATH
8301 IFS=$as_save_IFS
8302 test -z "$as_dir" && as_dir=.
8303 for ac_exec_ext in '' $ac_executable_extensions; do
8304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8305 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 break 2
8309 done
8310 done
8314 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8315 if test -n "$GCJ_FOR_TARGET"; then
8316 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8317 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8318 else
8319 echo "$as_me:$LINENO: result: no" >&5
8320 echo "${ECHO_T}no" >&6
8324 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8325 done
8328 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8329 set dummy gcj
8330 if test $build = $target ; then
8331 GCJ_FOR_TARGET="$2"
8332 else
8333 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8339 if test -n "$GFORTRAN_FOR_TARGET"; then
8340 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8341 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8342 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8345 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8346 for ncn_progname in gfortran; do
8347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8348 set dummy ${ncn_progname}; ac_word=$2
8349 echo "$as_me:$LINENO: checking for $ac_word" >&5
8350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8351 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354 if test -n "$GFORTRAN_FOR_TARGET"; then
8355 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8356 else
8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 for as_dir in $PATH
8360 IFS=$as_save_IFS
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8364 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 break 2
8368 done
8369 done
8373 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8374 if test -n "$GFORTRAN_FOR_TARGET"; then
8375 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8376 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8377 else
8378 echo "$as_me:$LINENO: result: no" >&5
8379 echo "${ECHO_T}no" >&6
8382 done
8385 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
8386 for ncn_progname in gfortran; do
8387 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8388 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8389 if test -x $with_build_time_tools/${ncn_progname}; then
8390 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8391 echo "$as_me:$LINENO: result: yes" >&5
8392 echo "${ECHO_T}yes" >&6
8393 break
8394 else
8395 echo "$as_me:$LINENO: result: no" >&5
8396 echo "${ECHO_T}no" >&6
8398 done
8401 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8402 for ncn_progname in gfortran; do
8403 if test -n "$ncn_target_tool_prefix"; then
8404 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8405 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8406 echo "$as_me:$LINENO: checking for $ac_word" >&5
8407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8408 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411 if test -n "$GFORTRAN_FOR_TARGET"; then
8412 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8413 else
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8421 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 break 2
8425 done
8426 done
8430 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8431 if test -n "$GFORTRAN_FOR_TARGET"; then
8432 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8433 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8434 else
8435 echo "$as_me:$LINENO: result: no" >&5
8436 echo "${ECHO_T}no" >&6
8440 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8442 set dummy ${ncn_progname}; ac_word=$2
8443 echo "$as_me:$LINENO: checking for $ac_word" >&5
8444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8445 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 if test -n "$GFORTRAN_FOR_TARGET"; then
8449 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8450 else
8451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 for as_dir in $PATH
8454 IFS=$as_save_IFS
8455 test -z "$as_dir" && as_dir=.
8456 for ac_exec_ext in '' $ac_executable_extensions; do
8457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8458 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8460 break 2
8462 done
8463 done
8467 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8468 if test -n "$GFORTRAN_FOR_TARGET"; then
8469 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8470 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8471 else
8472 echo "$as_me:$LINENO: result: no" >&5
8473 echo "${ECHO_T}no" >&6
8477 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8478 done
8481 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8482 set dummy gfortran
8483 if test $build = $target ; then
8484 GFORTRAN_FOR_TARGET="$2"
8485 else
8486 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8492 cat > conftest.c << \EOF
8493 #ifdef __GNUC__
8494 gcc_yay;
8495 #endif
8497 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8498 have_gcc_for_target=yes
8499 else
8500 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8501 have_gcc_for_target=no
8503 rm conftest.c
8508 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8509 if test -n "$with_build_time_tools"; then
8510 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8511 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
8512 if test -x $with_build_time_tools/ar; then
8513 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8514 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8515 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8516 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
8517 else
8518 echo "$as_me:$LINENO: result: no" >&5
8519 echo "${ECHO_T}no" >&6
8521 elif test $build != $host && test $have_gcc_for_target = yes; then
8522 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8523 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
8524 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8527 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8528 # Extract the first word of "ar", so it can be a program name with args.
8529 set dummy ar; ac_word=$2
8530 echo "$as_me:$LINENO: checking for $ac_word" >&5
8531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8532 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535 case $AR_FOR_TARGET in
8536 [\\/]* | ?:[\\/]*)
8537 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $gcc_cv_tool_dirs
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 break 2
8551 done
8552 done
8555 esac
8557 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8559 if test -n "$AR_FOR_TARGET"; then
8560 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8561 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8562 else
8563 echo "$as_me:$LINENO: result: no" >&5
8564 echo "${ECHO_T}no" >&6
8568 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8571 if test -n "$AR_FOR_TARGET"; then
8572 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8573 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8574 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8577 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8578 for ncn_progname in ar; do
8579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8580 set dummy ${ncn_progname}; ac_word=$2
8581 echo "$as_me:$LINENO: checking for $ac_word" >&5
8582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8583 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586 if test -n "$AR_FOR_TARGET"; then
8587 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8588 else
8589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590 for as_dir in $PATH
8592 IFS=$as_save_IFS
8593 test -z "$as_dir" && as_dir=.
8594 for ac_exec_ext in '' $ac_executable_extensions; do
8595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8596 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8598 break 2
8600 done
8601 done
8605 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8606 if test -n "$AR_FOR_TARGET"; then
8607 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8608 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8609 else
8610 echo "$as_me:$LINENO: result: no" >&5
8611 echo "${ECHO_T}no" >&6
8614 done
8617 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
8618 for ncn_progname in ar; do
8619 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8620 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8621 if test -x $with_build_time_tools/${ncn_progname}; then
8622 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8623 echo "$as_me:$LINENO: result: yes" >&5
8624 echo "${ECHO_T}yes" >&6
8625 break
8626 else
8627 echo "$as_me:$LINENO: result: no" >&5
8628 echo "${ECHO_T}no" >&6
8630 done
8633 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8634 for ncn_progname in ar; do
8635 if test -n "$ncn_target_tool_prefix"; then
8636 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8637 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8638 echo "$as_me:$LINENO: checking for $ac_word" >&5
8639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8640 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643 if test -n "$AR_FOR_TARGET"; then
8644 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8645 else
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 break 2
8657 done
8658 done
8662 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8663 if test -n "$AR_FOR_TARGET"; then
8664 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8665 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8666 else
8667 echo "$as_me:$LINENO: result: no" >&5
8668 echo "${ECHO_T}no" >&6
8672 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8674 set dummy ${ncn_progname}; ac_word=$2
8675 echo "$as_me:$LINENO: checking for $ac_word" >&5
8676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8677 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680 if test -n "$AR_FOR_TARGET"; then
8681 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8694 done
8695 done
8699 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8700 if test -n "$AR_FOR_TARGET"; then
8701 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8702 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8703 else
8704 echo "$as_me:$LINENO: result: no" >&5
8705 echo "${ECHO_T}no" >&6
8709 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8710 done
8713 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8714 set dummy ar
8715 if test $build = $target ; then
8716 AR_FOR_TARGET="$2"
8717 else
8718 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
8722 else
8723 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8729 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8730 if test -n "$with_build_time_tools"; then
8731 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8732 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
8733 if test -x $with_build_time_tools/as; then
8734 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8735 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8736 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8737 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
8738 else
8739 echo "$as_me:$LINENO: result: no" >&5
8740 echo "${ECHO_T}no" >&6
8742 elif test $build != $host && test $have_gcc_for_target = yes; then
8743 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
8744 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
8745 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
8748 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8749 # Extract the first word of "as", so it can be a program name with args.
8750 set dummy as; ac_word=$2
8751 echo "$as_me:$LINENO: checking for $ac_word" >&5
8752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8753 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756 case $AS_FOR_TARGET in
8757 [\\/]* | ?:[\\/]*)
8758 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $gcc_cv_tool_dirs
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8768 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 break 2
8772 done
8773 done
8776 esac
8778 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8780 if test -n "$AS_FOR_TARGET"; then
8781 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8782 echo "${ECHO_T}$AS_FOR_TARGET" >&6
8783 else
8784 echo "$as_me:$LINENO: result: no" >&5
8785 echo "${ECHO_T}no" >&6
8789 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8792 if test -n "$AS_FOR_TARGET"; then
8793 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8794 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8795 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8798 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8799 for ncn_progname in as; do
8800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8801 set dummy ${ncn_progname}; ac_word=$2
8802 echo "$as_me:$LINENO: checking for $ac_word" >&5
8803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8804 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 else
8807 if test -n "$AS_FOR_TARGET"; then
8808 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8809 else
8810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811 for as_dir in $PATH
8813 IFS=$as_save_IFS
8814 test -z "$as_dir" && as_dir=.
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8817 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8819 break 2
8821 done
8822 done
8826 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8827 if test -n "$AS_FOR_TARGET"; then
8828 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8829 echo "${ECHO_T}$AS_FOR_TARGET" >&6
8830 else
8831 echo "$as_me:$LINENO: result: no" >&5
8832 echo "${ECHO_T}no" >&6
8835 done
8838 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
8839 for ncn_progname in as; do
8840 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8841 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8842 if test -x $with_build_time_tools/${ncn_progname}; then
8843 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8844 echo "$as_me:$LINENO: result: yes" >&5
8845 echo "${ECHO_T}yes" >&6
8846 break
8847 else
8848 echo "$as_me:$LINENO: result: no" >&5
8849 echo "${ECHO_T}no" >&6
8851 done
8854 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
8855 for ncn_progname in as; do
8856 if test -n "$ncn_target_tool_prefix"; then
8857 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8858 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8859 echo "$as_me:$LINENO: checking for $ac_word" >&5
8860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8861 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8864 if test -n "$AS_FOR_TARGET"; then
8865 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8866 else
8867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868 for as_dir in $PATH
8870 IFS=$as_save_IFS
8871 test -z "$as_dir" && as_dir=.
8872 for ac_exec_ext in '' $ac_executable_extensions; do
8873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8874 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8876 break 2
8878 done
8879 done
8883 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8884 if test -n "$AS_FOR_TARGET"; then
8885 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8886 echo "${ECHO_T}$AS_FOR_TARGET" >&6
8887 else
8888 echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6
8893 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
8894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8895 set dummy ${ncn_progname}; ac_word=$2
8896 echo "$as_me:$LINENO: checking for $ac_word" >&5
8897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8898 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901 if test -n "$AS_FOR_TARGET"; then
8902 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8903 else
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905 for as_dir in $PATH
8907 IFS=$as_save_IFS
8908 test -z "$as_dir" && as_dir=.
8909 for ac_exec_ext in '' $ac_executable_extensions; do
8910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8911 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8913 break 2
8915 done
8916 done
8920 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8921 if test -n "$AS_FOR_TARGET"; then
8922 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8923 echo "${ECHO_T}$AS_FOR_TARGET" >&6
8924 else
8925 echo "$as_me:$LINENO: result: no" >&5
8926 echo "${ECHO_T}no" >&6
8930 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
8931 done
8934 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
8935 set dummy as
8936 if test $build = $target ; then
8937 AS_FOR_TARGET="$2"
8938 else
8939 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
8943 else
8944 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8950 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
8951 if test -n "$with_build_time_tools"; then
8952 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
8953 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
8954 if test -x $with_build_time_tools/dlltool; then
8955 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
8956 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
8957 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
8958 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
8959 else
8960 echo "$as_me:$LINENO: result: no" >&5
8961 echo "${ECHO_T}no" >&6
8963 elif test $build != $host && test $have_gcc_for_target = yes; then
8964 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
8965 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
8966 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
8969 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8970 # Extract the first word of "dlltool", so it can be a program name with args.
8971 set dummy dlltool; ac_word=$2
8972 echo "$as_me:$LINENO: checking for $ac_word" >&5
8973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8974 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977 case $DLLTOOL_FOR_TARGET in
8978 [\\/]* | ?:[\\/]*)
8979 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
8982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983 for as_dir in $gcc_cv_tool_dirs
8985 IFS=$as_save_IFS
8986 test -z "$as_dir" && as_dir=.
8987 for ac_exec_ext in '' $ac_executable_extensions; do
8988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8989 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8991 break 2
8993 done
8994 done
8997 esac
8999 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9001 if test -n "$DLLTOOL_FOR_TARGET"; then
9002 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9003 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9004 else
9005 echo "$as_me:$LINENO: result: no" >&5
9006 echo "${ECHO_T}no" >&6
9010 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9013 if test -n "$DLLTOOL_FOR_TARGET"; then
9014 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9015 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9016 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9019 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9020 for ncn_progname in dlltool; do
9021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9022 set dummy ${ncn_progname}; ac_word=$2
9023 echo "$as_me:$LINENO: checking for $ac_word" >&5
9024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9025 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028 if test -n "$DLLTOOL_FOR_TARGET"; then
9029 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9030 else
9031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032 for as_dir in $PATH
9034 IFS=$as_save_IFS
9035 test -z "$as_dir" && as_dir=.
9036 for ac_exec_ext in '' $ac_executable_extensions; do
9037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9038 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9040 break 2
9042 done
9043 done
9047 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9048 if test -n "$DLLTOOL_FOR_TARGET"; then
9049 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9050 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9051 else
9052 echo "$as_me:$LINENO: result: no" >&5
9053 echo "${ECHO_T}no" >&6
9056 done
9059 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9060 for ncn_progname in dlltool; do
9061 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9062 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9063 if test -x $with_build_time_tools/${ncn_progname}; then
9064 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9065 echo "$as_me:$LINENO: result: yes" >&5
9066 echo "${ECHO_T}yes" >&6
9067 break
9068 else
9069 echo "$as_me:$LINENO: result: no" >&5
9070 echo "${ECHO_T}no" >&6
9072 done
9075 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9076 for ncn_progname in dlltool; do
9077 if test -n "$ncn_target_tool_prefix"; then
9078 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9079 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9080 echo "$as_me:$LINENO: checking for $ac_word" >&5
9081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9082 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085 if test -n "$DLLTOOL_FOR_TARGET"; then
9086 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9087 else
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089 for as_dir in $PATH
9091 IFS=$as_save_IFS
9092 test -z "$as_dir" && as_dir=.
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9097 break 2
9099 done
9100 done
9104 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9105 if test -n "$DLLTOOL_FOR_TARGET"; then
9106 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9107 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9108 else
9109 echo "$as_me:$LINENO: result: no" >&5
9110 echo "${ECHO_T}no" >&6
9114 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9116 set dummy ${ncn_progname}; ac_word=$2
9117 echo "$as_me:$LINENO: checking for $ac_word" >&5
9118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9119 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122 if test -n "$DLLTOOL_FOR_TARGET"; then
9123 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9124 else
9125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 for as_dir in $PATH
9128 IFS=$as_save_IFS
9129 test -z "$as_dir" && as_dir=.
9130 for ac_exec_ext in '' $ac_executable_extensions; do
9131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9132 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 break 2
9136 done
9137 done
9141 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9142 if test -n "$DLLTOOL_FOR_TARGET"; then
9143 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9144 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9145 else
9146 echo "$as_me:$LINENO: result: no" >&5
9147 echo "${ECHO_T}no" >&6
9151 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9152 done
9155 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9156 set dummy dlltool
9157 if test $build = $target ; then
9158 DLLTOOL_FOR_TARGET="$2"
9159 else
9160 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9164 else
9165 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9171 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9172 if test -n "$with_build_time_tools"; then
9173 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9174 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
9175 if test -x $with_build_time_tools/ld; then
9176 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9177 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9178 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9179 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
9180 else
9181 echo "$as_me:$LINENO: result: no" >&5
9182 echo "${ECHO_T}no" >&6
9184 elif test $build != $host && test $have_gcc_for_target = yes; then
9185 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9186 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
9187 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9190 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9191 # Extract the first word of "ld", so it can be a program name with args.
9192 set dummy ld; ac_word=$2
9193 echo "$as_me:$LINENO: checking for $ac_word" >&5
9194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9195 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 else
9198 case $LD_FOR_TARGET in
9199 [\\/]* | ?:[\\/]*)
9200 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204 for as_dir in $gcc_cv_tool_dirs
9206 IFS=$as_save_IFS
9207 test -z "$as_dir" && as_dir=.
9208 for ac_exec_ext in '' $ac_executable_extensions; do
9209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9210 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9212 break 2
9214 done
9215 done
9218 esac
9220 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9222 if test -n "$LD_FOR_TARGET"; then
9223 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9224 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9225 else
9226 echo "$as_me:$LINENO: result: no" >&5
9227 echo "${ECHO_T}no" >&6
9231 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9234 if test -n "$LD_FOR_TARGET"; then
9235 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9236 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9237 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9240 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9241 for ncn_progname in ld; do
9242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9243 set dummy ${ncn_progname}; ac_word=$2
9244 echo "$as_me:$LINENO: checking for $ac_word" >&5
9245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9246 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 else
9249 if test -n "$LD_FOR_TARGET"; then
9250 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9251 else
9252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253 for as_dir in $PATH
9255 IFS=$as_save_IFS
9256 test -z "$as_dir" && as_dir=.
9257 for ac_exec_ext in '' $ac_executable_extensions; do
9258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9259 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9261 break 2
9263 done
9264 done
9268 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9269 if test -n "$LD_FOR_TARGET"; then
9270 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9271 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9272 else
9273 echo "$as_me:$LINENO: result: no" >&5
9274 echo "${ECHO_T}no" >&6
9277 done
9280 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9281 for ncn_progname in ld; do
9282 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9283 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9284 if test -x $with_build_time_tools/${ncn_progname}; then
9285 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9286 echo "$as_me:$LINENO: result: yes" >&5
9287 echo "${ECHO_T}yes" >&6
9288 break
9289 else
9290 echo "$as_me:$LINENO: result: no" >&5
9291 echo "${ECHO_T}no" >&6
9293 done
9296 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9297 for ncn_progname in ld; do
9298 if test -n "$ncn_target_tool_prefix"; then
9299 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9300 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9301 echo "$as_me:$LINENO: checking for $ac_word" >&5
9302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9303 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 else
9306 if test -n "$LD_FOR_TARGET"; then
9307 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9308 else
9309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9310 for as_dir in $PATH
9312 IFS=$as_save_IFS
9313 test -z "$as_dir" && as_dir=.
9314 for ac_exec_ext in '' $ac_executable_extensions; do
9315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9316 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9318 break 2
9320 done
9321 done
9325 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9326 if test -n "$LD_FOR_TARGET"; then
9327 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9328 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9329 else
9330 echo "$as_me:$LINENO: result: no" >&5
9331 echo "${ECHO_T}no" >&6
9335 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9337 set dummy ${ncn_progname}; ac_word=$2
9338 echo "$as_me:$LINENO: checking for $ac_word" >&5
9339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9340 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343 if test -n "$LD_FOR_TARGET"; then
9344 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9345 else
9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 for as_dir in $PATH
9349 IFS=$as_save_IFS
9350 test -z "$as_dir" && as_dir=.
9351 for ac_exec_ext in '' $ac_executable_extensions; do
9352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9353 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9355 break 2
9357 done
9358 done
9362 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9363 if test -n "$LD_FOR_TARGET"; then
9364 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9365 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9366 else
9367 echo "$as_me:$LINENO: result: no" >&5
9368 echo "${ECHO_T}no" >&6
9372 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9373 done
9376 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9377 set dummy ld
9378 if test $build = $target ; then
9379 LD_FOR_TARGET="$2"
9380 else
9381 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9385 else
9386 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9392 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9393 if test -n "$with_build_time_tools"; then
9394 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9395 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
9396 if test -x $with_build_time_tools/lipo; then
9397 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9398 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9399 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9400 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
9401 else
9402 echo "$as_me:$LINENO: result: no" >&5
9403 echo "${ECHO_T}no" >&6
9405 elif test $build != $host && test $have_gcc_for_target = yes; then
9406 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9407 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
9408 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9411 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9412 # Extract the first word of "lipo", so it can be a program name with args.
9413 set dummy lipo; ac_word=$2
9414 echo "$as_me:$LINENO: checking for $ac_word" >&5
9415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9416 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419 case $LIPO_FOR_TARGET in
9420 [\\/]* | ?:[\\/]*)
9421 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425 for as_dir in $gcc_cv_tool_dirs
9427 IFS=$as_save_IFS
9428 test -z "$as_dir" && as_dir=.
9429 for ac_exec_ext in '' $ac_executable_extensions; do
9430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9431 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9433 break 2
9435 done
9436 done
9439 esac
9441 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9443 if test -n "$LIPO_FOR_TARGET"; then
9444 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9445 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9446 else
9447 echo "$as_me:$LINENO: result: no" >&5
9448 echo "${ECHO_T}no" >&6
9452 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9455 if test -n "$LIPO_FOR_TARGET"; then
9456 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9457 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9458 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9461 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9462 for ncn_progname in lipo; do
9463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9464 set dummy ${ncn_progname}; ac_word=$2
9465 echo "$as_me:$LINENO: checking for $ac_word" >&5
9466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9467 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 else
9470 if test -n "$LIPO_FOR_TARGET"; then
9471 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9472 else
9473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474 for as_dir in $PATH
9476 IFS=$as_save_IFS
9477 test -z "$as_dir" && as_dir=.
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9480 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9482 break 2
9484 done
9485 done
9489 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9490 if test -n "$LIPO_FOR_TARGET"; then
9491 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9492 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9493 else
9494 echo "$as_me:$LINENO: result: no" >&5
9495 echo "${ECHO_T}no" >&6
9498 done
9501 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
9502 for ncn_progname in lipo; do
9503 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9504 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9505 if test -x $with_build_time_tools/${ncn_progname}; then
9506 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9507 echo "$as_me:$LINENO: result: yes" >&5
9508 echo "${ECHO_T}yes" >&6
9509 break
9510 else
9511 echo "$as_me:$LINENO: result: no" >&5
9512 echo "${ECHO_T}no" >&6
9514 done
9517 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9518 for ncn_progname in lipo; do
9519 if test -n "$ncn_target_tool_prefix"; then
9520 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9521 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9522 echo "$as_me:$LINENO: checking for $ac_word" >&5
9523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9524 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 else
9527 if test -n "$LIPO_FOR_TARGET"; then
9528 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9529 else
9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531 for as_dir in $PATH
9533 IFS=$as_save_IFS
9534 test -z "$as_dir" && as_dir=.
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9537 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9539 break 2
9541 done
9542 done
9546 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9547 if test -n "$LIPO_FOR_TARGET"; then
9548 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9549 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9550 else
9551 echo "$as_me:$LINENO: result: no" >&5
9552 echo "${ECHO_T}no" >&6
9556 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9558 set dummy ${ncn_progname}; ac_word=$2
9559 echo "$as_me:$LINENO: checking for $ac_word" >&5
9560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9561 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564 if test -n "$LIPO_FOR_TARGET"; then
9565 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9566 else
9567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568 for as_dir in $PATH
9570 IFS=$as_save_IFS
9571 test -z "$as_dir" && as_dir=.
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9574 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9576 break 2
9578 done
9579 done
9583 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9584 if test -n "$LIPO_FOR_TARGET"; then
9585 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9586 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9587 else
9588 echo "$as_me:$LINENO: result: no" >&5
9589 echo "${ECHO_T}no" >&6
9593 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9594 done
9597 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9598 set dummy lipo
9599 if test $build = $target ; then
9600 LIPO_FOR_TARGET="$2"
9601 else
9602 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9606 else
9607 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9613 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9614 if test -n "$with_build_time_tools"; then
9615 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9616 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
9617 if test -x $with_build_time_tools/nm; then
9618 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9619 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9620 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9621 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
9622 else
9623 echo "$as_me:$LINENO: result: no" >&5
9624 echo "${ECHO_T}no" >&6
9626 elif test $build != $host && test $have_gcc_for_target = yes; then
9627 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
9628 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
9629 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9632 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9633 # Extract the first word of "nm", so it can be a program name with args.
9634 set dummy nm; ac_word=$2
9635 echo "$as_me:$LINENO: checking for $ac_word" >&5
9636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9637 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640 case $NM_FOR_TARGET in
9641 [\\/]* | ?:[\\/]*)
9642 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646 for as_dir in $gcc_cv_tool_dirs
9648 IFS=$as_save_IFS
9649 test -z "$as_dir" && as_dir=.
9650 for ac_exec_ext in '' $ac_executable_extensions; do
9651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9652 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9654 break 2
9656 done
9657 done
9660 esac
9662 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9664 if test -n "$NM_FOR_TARGET"; then
9665 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9666 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9667 else
9668 echo "$as_me:$LINENO: result: no" >&5
9669 echo "${ECHO_T}no" >&6
9673 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9676 if test -n "$NM_FOR_TARGET"; then
9677 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9678 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9679 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9682 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9683 for ncn_progname in nm; do
9684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9685 set dummy ${ncn_progname}; ac_word=$2
9686 echo "$as_me:$LINENO: checking for $ac_word" >&5
9687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9688 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691 if test -n "$NM_FOR_TARGET"; then
9692 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9693 else
9694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695 for as_dir in $PATH
9697 IFS=$as_save_IFS
9698 test -z "$as_dir" && as_dir=.
9699 for ac_exec_ext in '' $ac_executable_extensions; do
9700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9701 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 break 2
9705 done
9706 done
9710 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9711 if test -n "$NM_FOR_TARGET"; then
9712 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9713 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9714 else
9715 echo "$as_me:$LINENO: result: no" >&5
9716 echo "${ECHO_T}no" >&6
9719 done
9722 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
9723 for ncn_progname in nm; do
9724 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9725 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9726 if test -x $with_build_time_tools/${ncn_progname}; then
9727 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9728 echo "$as_me:$LINENO: result: yes" >&5
9729 echo "${ECHO_T}yes" >&6
9730 break
9731 else
9732 echo "$as_me:$LINENO: result: no" >&5
9733 echo "${ECHO_T}no" >&6
9735 done
9738 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9739 for ncn_progname in nm; do
9740 if test -n "$ncn_target_tool_prefix"; then
9741 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9742 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9743 echo "$as_me:$LINENO: checking for $ac_word" >&5
9744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9745 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748 if test -n "$NM_FOR_TARGET"; then
9749 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9750 else
9751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 for as_dir in $PATH
9754 IFS=$as_save_IFS
9755 test -z "$as_dir" && as_dir=.
9756 for ac_exec_ext in '' $ac_executable_extensions; do
9757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9758 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9760 break 2
9762 done
9763 done
9767 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9768 if test -n "$NM_FOR_TARGET"; then
9769 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9770 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9771 else
9772 echo "$as_me:$LINENO: result: no" >&5
9773 echo "${ECHO_T}no" >&6
9777 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9779 set dummy ${ncn_progname}; ac_word=$2
9780 echo "$as_me:$LINENO: checking for $ac_word" >&5
9781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9782 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785 if test -n "$NM_FOR_TARGET"; then
9786 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9787 else
9788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 for as_dir in $PATH
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
9793 for ac_exec_ext in '' $ac_executable_extensions; do
9794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9795 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 break 2
9799 done
9800 done
9804 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9805 if test -n "$NM_FOR_TARGET"; then
9806 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9807 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9808 else
9809 echo "$as_me:$LINENO: result: no" >&5
9810 echo "${ECHO_T}no" >&6
9814 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
9815 done
9818 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
9819 set dummy nm
9820 if test $build = $target ; then
9821 NM_FOR_TARGET="$2"
9822 else
9823 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
9827 else
9828 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9834 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9835 if test -n "$with_build_time_tools"; then
9836 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
9837 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
9838 if test -x $with_build_time_tools/objdump; then
9839 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
9840 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9841 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
9842 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
9843 else
9844 echo "$as_me:$LINENO: result: no" >&5
9845 echo "${ECHO_T}no" >&6
9847 elif test $build != $host && test $have_gcc_for_target = yes; then
9848 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
9849 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
9850 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9853 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9854 # Extract the first word of "objdump", so it can be a program name with args.
9855 set dummy objdump; ac_word=$2
9856 echo "$as_me:$LINENO: checking for $ac_word" >&5
9857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9858 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861 case $OBJDUMP_FOR_TARGET in
9862 [\\/]* | ?:[\\/]*)
9863 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
9866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867 for as_dir in $gcc_cv_tool_dirs
9869 IFS=$as_save_IFS
9870 test -z "$as_dir" && as_dir=.
9871 for ac_exec_ext in '' $ac_executable_extensions; do
9872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9873 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9875 break 2
9877 done
9878 done
9881 esac
9883 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
9885 if test -n "$OBJDUMP_FOR_TARGET"; then
9886 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9887 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
9888 else
9889 echo "$as_me:$LINENO: result: no" >&5
9890 echo "${ECHO_T}no" >&6
9894 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9897 if test -n "$OBJDUMP_FOR_TARGET"; then
9898 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
9899 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9900 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
9903 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9904 for ncn_progname in objdump; do
9905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9906 set dummy ${ncn_progname}; ac_word=$2
9907 echo "$as_me:$LINENO: checking for $ac_word" >&5
9908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9909 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 else
9912 if test -n "$OBJDUMP_FOR_TARGET"; then
9913 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
9914 else
9915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916 for as_dir in $PATH
9918 IFS=$as_save_IFS
9919 test -z "$as_dir" && as_dir=.
9920 for ac_exec_ext in '' $ac_executable_extensions; do
9921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9922 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
9923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 break 2
9926 done
9927 done
9931 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
9932 if test -n "$OBJDUMP_FOR_TARGET"; then
9933 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9934 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
9935 else
9936 echo "$as_me:$LINENO: result: no" >&5
9937 echo "${ECHO_T}no" >&6
9940 done
9943 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
9944 for ncn_progname in objdump; do
9945 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9946 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9947 if test -x $with_build_time_tools/${ncn_progname}; then
9948 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9949 echo "$as_me:$LINENO: result: yes" >&5
9950 echo "${ECHO_T}yes" >&6
9951 break
9952 else
9953 echo "$as_me:$LINENO: result: no" >&5
9954 echo "${ECHO_T}no" >&6
9956 done
9959 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
9960 for ncn_progname in objdump; do
9961 if test -n "$ncn_target_tool_prefix"; then
9962 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9963 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9964 echo "$as_me:$LINENO: checking for $ac_word" >&5
9965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9966 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969 if test -n "$OBJDUMP_FOR_TARGET"; then
9970 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
9971 else
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973 for as_dir in $PATH
9975 IFS=$as_save_IFS
9976 test -z "$as_dir" && as_dir=.
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9979 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9981 break 2
9983 done
9984 done
9988 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
9989 if test -n "$OBJDUMP_FOR_TARGET"; then
9990 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
9991 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
9992 else
9993 echo "$as_me:$LINENO: result: no" >&5
9994 echo "${ECHO_T}no" >&6
9998 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
9999 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10000 set dummy ${ncn_progname}; ac_word=$2
10001 echo "$as_me:$LINENO: checking for $ac_word" >&5
10002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10003 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 else
10006 if test -n "$OBJDUMP_FOR_TARGET"; then
10007 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10008 else
10009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010 for as_dir in $PATH
10012 IFS=$as_save_IFS
10013 test -z "$as_dir" && as_dir=.
10014 for ac_exec_ext in '' $ac_executable_extensions; do
10015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10016 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10018 break 2
10020 done
10021 done
10025 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10026 if test -n "$OBJDUMP_FOR_TARGET"; then
10027 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10028 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10029 else
10030 echo "$as_me:$LINENO: result: no" >&5
10031 echo "${ECHO_T}no" >&6
10035 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10036 done
10039 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10040 set dummy objdump
10041 if test $build = $target ; then
10042 OBJDUMP_FOR_TARGET="$2"
10043 else
10044 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10048 else
10049 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10055 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10056 if test -n "$with_build_time_tools"; then
10057 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10058 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
10059 if test -x $with_build_time_tools/ranlib; then
10060 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10061 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10062 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10063 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
10064 else
10065 echo "$as_me:$LINENO: result: no" >&5
10066 echo "${ECHO_T}no" >&6
10068 elif test $build != $host && test $have_gcc_for_target = yes; then
10069 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10070 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
10071 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10074 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10075 # Extract the first word of "ranlib", so it can be a program name with args.
10076 set dummy ranlib; ac_word=$2
10077 echo "$as_me:$LINENO: checking for $ac_word" >&5
10078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10079 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082 case $RANLIB_FOR_TARGET in
10083 [\\/]* | ?:[\\/]*)
10084 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088 for as_dir in $gcc_cv_tool_dirs
10090 IFS=$as_save_IFS
10091 test -z "$as_dir" && as_dir=.
10092 for ac_exec_ext in '' $ac_executable_extensions; do
10093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10094 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10096 break 2
10098 done
10099 done
10102 esac
10104 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10106 if test -n "$RANLIB_FOR_TARGET"; then
10107 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10108 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10109 else
10110 echo "$as_me:$LINENO: result: no" >&5
10111 echo "${ECHO_T}no" >&6
10115 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10118 if test -n "$RANLIB_FOR_TARGET"; then
10119 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10120 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10121 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10124 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10125 for ncn_progname in ranlib; do
10126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10127 set dummy ${ncn_progname}; ac_word=$2
10128 echo "$as_me:$LINENO: checking for $ac_word" >&5
10129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10130 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133 if test -n "$RANLIB_FOR_TARGET"; then
10134 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10135 else
10136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137 for as_dir in $PATH
10139 IFS=$as_save_IFS
10140 test -z "$as_dir" && as_dir=.
10141 for ac_exec_ext in '' $ac_executable_extensions; do
10142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10143 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10145 break 2
10147 done
10148 done
10152 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10153 if test -n "$RANLIB_FOR_TARGET"; then
10154 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10155 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10156 else
10157 echo "$as_me:$LINENO: result: no" >&5
10158 echo "${ECHO_T}no" >&6
10161 done
10164 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10165 for ncn_progname in ranlib; do
10166 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10167 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10168 if test -x $with_build_time_tools/${ncn_progname}; then
10169 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10170 echo "$as_me:$LINENO: result: yes" >&5
10171 echo "${ECHO_T}yes" >&6
10172 break
10173 else
10174 echo "$as_me:$LINENO: result: no" >&5
10175 echo "${ECHO_T}no" >&6
10177 done
10180 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10181 for ncn_progname in ranlib; do
10182 if test -n "$ncn_target_tool_prefix"; then
10183 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10184 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10185 echo "$as_me:$LINENO: checking for $ac_word" >&5
10186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10187 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190 if test -n "$RANLIB_FOR_TARGET"; then
10191 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10192 else
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10202 break 2
10204 done
10205 done
10209 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10210 if test -n "$RANLIB_FOR_TARGET"; then
10211 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10212 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10213 else
10214 echo "$as_me:$LINENO: result: no" >&5
10215 echo "${ECHO_T}no" >&6
10219 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10221 set dummy ${ncn_progname}; ac_word=$2
10222 echo "$as_me:$LINENO: checking for $ac_word" >&5
10223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10224 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 else
10227 if test -n "$RANLIB_FOR_TARGET"; then
10228 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10229 else
10230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231 for as_dir in $PATH
10233 IFS=$as_save_IFS
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
10236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10241 done
10242 done
10246 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10247 if test -n "$RANLIB_FOR_TARGET"; then
10248 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10249 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10250 else
10251 echo "$as_me:$LINENO: result: no" >&5
10252 echo "${ECHO_T}no" >&6
10256 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10257 done
10260 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10261 set dummy ranlib
10262 if test $build = $target ; then
10263 RANLIB_FOR_TARGET="$2"
10264 else
10265 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10269 else
10270 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10276 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10277 if test -n "$with_build_time_tools"; then
10278 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10279 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
10280 if test -x $with_build_time_tools/strip; then
10281 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10282 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10283 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10284 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
10285 else
10286 echo "$as_me:$LINENO: result: no" >&5
10287 echo "${ECHO_T}no" >&6
10289 elif test $build != $host && test $have_gcc_for_target = yes; then
10290 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10291 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
10292 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10295 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10296 # Extract the first word of "strip", so it can be a program name with args.
10297 set dummy strip; ac_word=$2
10298 echo "$as_me:$LINENO: checking for $ac_word" >&5
10299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10300 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303 case $STRIP_FOR_TARGET in
10304 [\\/]* | ?:[\\/]*)
10305 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309 for as_dir in $gcc_cv_tool_dirs
10311 IFS=$as_save_IFS
10312 test -z "$as_dir" && as_dir=.
10313 for ac_exec_ext in '' $ac_executable_extensions; do
10314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10315 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10317 break 2
10319 done
10320 done
10323 esac
10325 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10327 if test -n "$STRIP_FOR_TARGET"; then
10328 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10329 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10330 else
10331 echo "$as_me:$LINENO: result: no" >&5
10332 echo "${ECHO_T}no" >&6
10336 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10339 if test -n "$STRIP_FOR_TARGET"; then
10340 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10341 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10342 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10345 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10346 for ncn_progname in strip; do
10347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10348 set dummy ${ncn_progname}; ac_word=$2
10349 echo "$as_me:$LINENO: checking for $ac_word" >&5
10350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10351 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354 if test -n "$STRIP_FOR_TARGET"; then
10355 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10356 else
10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10360 IFS=$as_save_IFS
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
10363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10366 break 2
10368 done
10369 done
10373 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10374 if test -n "$STRIP_FOR_TARGET"; then
10375 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10376 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10377 else
10378 echo "$as_me:$LINENO: result: no" >&5
10379 echo "${ECHO_T}no" >&6
10382 done
10385 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10386 for ncn_progname in strip; do
10387 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10388 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10389 if test -x $with_build_time_tools/${ncn_progname}; then
10390 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10391 echo "$as_me:$LINENO: result: yes" >&5
10392 echo "${ECHO_T}yes" >&6
10393 break
10394 else
10395 echo "$as_me:$LINENO: result: no" >&5
10396 echo "${ECHO_T}no" >&6
10398 done
10401 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10402 for ncn_progname in strip; do
10403 if test -n "$ncn_target_tool_prefix"; then
10404 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10405 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10406 echo "$as_me:$LINENO: checking for $ac_word" >&5
10407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10408 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411 if test -n "$STRIP_FOR_TARGET"; then
10412 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10413 else
10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in $PATH
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10421 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 break 2
10425 done
10426 done
10430 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10431 if test -n "$STRIP_FOR_TARGET"; then
10432 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10433 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10434 else
10435 echo "$as_me:$LINENO: result: no" >&5
10436 echo "${ECHO_T}no" >&6
10440 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10442 set dummy ${ncn_progname}; ac_word=$2
10443 echo "$as_me:$LINENO: checking for $ac_word" >&5
10444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10445 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448 if test -n "$STRIP_FOR_TARGET"; then
10449 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10450 else
10451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452 for as_dir in $PATH
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
10456 for ac_exec_ext in '' $ac_executable_extensions; do
10457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10458 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10460 break 2
10462 done
10463 done
10467 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10468 if test -n "$STRIP_FOR_TARGET"; then
10469 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10470 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10471 else
10472 echo "$as_me:$LINENO: result: no" >&5
10473 echo "${ECHO_T}no" >&6
10477 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10478 done
10481 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10482 set dummy strip
10483 if test $build = $target ; then
10484 STRIP_FOR_TARGET="$2"
10485 else
10486 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10490 else
10491 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10497 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10498 if test -n "$with_build_time_tools"; then
10499 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10500 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
10501 if test -x $with_build_time_tools/windres; then
10502 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10503 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10504 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10505 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
10506 else
10507 echo "$as_me:$LINENO: result: no" >&5
10508 echo "${ECHO_T}no" >&6
10510 elif test $build != $host && test $have_gcc_for_target = yes; then
10511 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10512 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
10513 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10516 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10517 # Extract the first word of "windres", so it can be a program name with args.
10518 set dummy windres; ac_word=$2
10519 echo "$as_me:$LINENO: checking for $ac_word" >&5
10520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10521 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 else
10524 case $WINDRES_FOR_TARGET in
10525 [\\/]* | ?:[\\/]*)
10526 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530 for as_dir in $gcc_cv_tool_dirs
10532 IFS=$as_save_IFS
10533 test -z "$as_dir" && as_dir=.
10534 for ac_exec_ext in '' $ac_executable_extensions; do
10535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10536 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10538 break 2
10540 done
10541 done
10544 esac
10546 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10548 if test -n "$WINDRES_FOR_TARGET"; then
10549 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10550 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10551 else
10552 echo "$as_me:$LINENO: result: no" >&5
10553 echo "${ECHO_T}no" >&6
10557 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10560 if test -n "$WINDRES_FOR_TARGET"; then
10561 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10562 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10563 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10566 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10567 for ncn_progname in windres; do
10568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10569 set dummy ${ncn_progname}; ac_word=$2
10570 echo "$as_me:$LINENO: checking for $ac_word" >&5
10571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10572 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575 if test -n "$WINDRES_FOR_TARGET"; then
10576 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10577 else
10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579 for as_dir in $PATH
10581 IFS=$as_save_IFS
10582 test -z "$as_dir" && as_dir=.
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10585 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10587 break 2
10589 done
10590 done
10594 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10595 if test -n "$WINDRES_FOR_TARGET"; then
10596 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10597 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10598 else
10599 echo "$as_me:$LINENO: result: no" >&5
10600 echo "${ECHO_T}no" >&6
10603 done
10606 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
10607 for ncn_progname in windres; do
10608 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10609 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10610 if test -x $with_build_time_tools/${ncn_progname}; then
10611 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10612 echo "$as_me:$LINENO: result: yes" >&5
10613 echo "${ECHO_T}yes" >&6
10614 break
10615 else
10616 echo "$as_me:$LINENO: result: no" >&5
10617 echo "${ECHO_T}no" >&6
10619 done
10622 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10623 for ncn_progname in windres; do
10624 if test -n "$ncn_target_tool_prefix"; then
10625 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10626 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10627 echo "$as_me:$LINENO: checking for $ac_word" >&5
10628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10629 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 else
10632 if test -n "$WINDRES_FOR_TARGET"; then
10633 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10634 else
10635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10636 for as_dir in $PATH
10638 IFS=$as_save_IFS
10639 test -z "$as_dir" && as_dir=.
10640 for ac_exec_ext in '' $ac_executable_extensions; do
10641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10642 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10644 break 2
10646 done
10647 done
10651 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10652 if test -n "$WINDRES_FOR_TARGET"; then
10653 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10654 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10655 else
10656 echo "$as_me:$LINENO: result: no" >&5
10657 echo "${ECHO_T}no" >&6
10661 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10663 set dummy ${ncn_progname}; ac_word=$2
10664 echo "$as_me:$LINENO: checking for $ac_word" >&5
10665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10666 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 if test -n "$WINDRES_FOR_TARGET"; then
10670 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10671 else
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673 for as_dir in $PATH
10675 IFS=$as_save_IFS
10676 test -z "$as_dir" && as_dir=.
10677 for ac_exec_ext in '' $ac_executable_extensions; do
10678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10679 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10681 break 2
10683 done
10684 done
10688 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10689 if test -n "$WINDRES_FOR_TARGET"; then
10690 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10691 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10692 else
10693 echo "$as_me:$LINENO: result: no" >&5
10694 echo "${ECHO_T}no" >&6
10698 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10699 done
10702 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10703 set dummy windres
10704 if test $build = $target ; then
10705 WINDRES_FOR_TARGET="$2"
10706 else
10707 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
10711 else
10712 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10716 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
10718 echo "$as_me:$LINENO: checking where to find the target ar" >&5
10719 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
10720 if test "x${build}" != "x${host}" ; then
10721 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
10722 # We already found the complete path
10723 ac_dir=`dirname $AR_FOR_TARGET`
10724 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10725 echo "${ECHO_T}pre-installed in $ac_dir" >&6
10726 else
10727 # Canadian cross, just use what we found
10728 echo "$as_me:$LINENO: result: pre-installed" >&5
10729 echo "${ECHO_T}pre-installed" >&6
10731 else
10732 ok=yes
10733 case " ${configdirs} " in
10734 *" binutils "*) ;;
10735 *) ok=no ;;
10736 esac
10738 if test $ok = yes; then
10739 # An in-tree tool is available and we can use it
10740 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
10741 echo "$as_me:$LINENO: result: just compiled" >&5
10742 echo "${ECHO_T}just compiled" >&6
10743 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
10744 # We already found the complete path
10745 ac_dir=`dirname $AR_FOR_TARGET`
10746 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10747 echo "${ECHO_T}pre-installed in $ac_dir" >&6
10748 elif test "x$target" = "x$host"; then
10749 # We can use an host tool
10750 AR_FOR_TARGET='$(AR)'
10751 echo "$as_me:$LINENO: result: host tool" >&5
10752 echo "${ECHO_T}host tool" >&6
10753 else
10754 # We need a cross tool
10755 echo "$as_me:$LINENO: result: pre-installed" >&5
10756 echo "${ECHO_T}pre-installed" >&6
10760 echo "$as_me:$LINENO: checking where to find the target as" >&5
10761 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
10762 if test "x${build}" != "x${host}" ; then
10763 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
10764 # We already found the complete path
10765 ac_dir=`dirname $AS_FOR_TARGET`
10766 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10767 echo "${ECHO_T}pre-installed in $ac_dir" >&6
10768 else
10769 # Canadian cross, just use what we found
10770 echo "$as_me:$LINENO: result: pre-installed" >&5
10771 echo "${ECHO_T}pre-installed" >&6
10773 else
10774 ok=yes
10775 case " ${configdirs} " in
10776 *" gas "*) ;;
10777 *) ok=no ;;
10778 esac
10780 if test $ok = yes; then
10781 # An in-tree tool is available and we can use it
10782 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
10783 echo "$as_me:$LINENO: result: just compiled" >&5
10784 echo "${ECHO_T}just compiled" >&6
10785 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
10786 # We already found the complete path
10787 ac_dir=`dirname $AS_FOR_TARGET`
10788 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10789 echo "${ECHO_T}pre-installed in $ac_dir" >&6
10790 elif test "x$target" = "x$host"; then
10791 # We can use an host tool
10792 AS_FOR_TARGET='$(AS)'
10793 echo "$as_me:$LINENO: result: host tool" >&5
10794 echo "${ECHO_T}host tool" >&6
10795 else
10796 # We need a cross tool
10797 echo "$as_me:$LINENO: result: pre-installed" >&5
10798 echo "${ECHO_T}pre-installed" >&6
10802 echo "$as_me:$LINENO: checking where to find the target cc" >&5
10803 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
10804 if test "x${build}" != "x${host}" ; then
10805 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
10806 # We already found the complete path
10807 ac_dir=`dirname $CC_FOR_TARGET`
10808 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10809 echo "${ECHO_T}pre-installed in $ac_dir" >&6
10810 else
10811 # Canadian cross, just use what we found
10812 echo "$as_me:$LINENO: result: pre-installed" >&5
10813 echo "${ECHO_T}pre-installed" >&6
10815 else
10816 ok=yes
10817 case " ${configdirs} " in
10818 *" gcc "*) ;;
10819 *) ok=no ;;
10820 esac
10822 if test $ok = yes; then
10823 # An in-tree tool is available and we can use it
10824 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
10825 echo "$as_me:$LINENO: result: just compiled" >&5
10826 echo "${ECHO_T}just compiled" >&6
10827 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
10828 # We already found the complete path
10829 ac_dir=`dirname $CC_FOR_TARGET`
10830 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10831 echo "${ECHO_T}pre-installed in $ac_dir" >&6
10832 elif test "x$target" = "x$host"; then
10833 # We can use an host tool
10834 CC_FOR_TARGET='$(CC)'
10835 echo "$as_me:$LINENO: result: host tool" >&5
10836 echo "${ECHO_T}host tool" >&6
10837 else
10838 # We need a cross tool
10839 echo "$as_me:$LINENO: result: pre-installed" >&5
10840 echo "${ECHO_T}pre-installed" >&6
10844 echo "$as_me:$LINENO: checking where to find the target c++" >&5
10845 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
10846 if test "x${build}" != "x${host}" ; then
10847 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
10848 # We already found the complete path
10849 ac_dir=`dirname $CXX_FOR_TARGET`
10850 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10851 echo "${ECHO_T}pre-installed in $ac_dir" >&6
10852 else
10853 # Canadian cross, just use what we found
10854 echo "$as_me:$LINENO: result: pre-installed" >&5
10855 echo "${ECHO_T}pre-installed" >&6
10857 else
10858 ok=yes
10859 case " ${configdirs} " in
10860 *" gcc "*) ;;
10861 *) ok=no ;;
10862 esac
10863 case ,${enable_languages}, in
10864 *,c++,*) ;;
10865 *) ok=no ;;
10866 esac
10867 if test $ok = yes; then
10868 # An in-tree tool is available and we can use it
10869 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
10870 echo "$as_me:$LINENO: result: just compiled" >&5
10871 echo "${ECHO_T}just compiled" >&6
10872 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
10873 # We already found the complete path
10874 ac_dir=`dirname $CXX_FOR_TARGET`
10875 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10876 echo "${ECHO_T}pre-installed in $ac_dir" >&6
10877 elif test "x$target" = "x$host"; then
10878 # We can use an host tool
10879 CXX_FOR_TARGET='$(CXX)'
10880 echo "$as_me:$LINENO: result: host tool" >&5
10881 echo "${ECHO_T}host tool" >&6
10882 else
10883 # We need a cross tool
10884 echo "$as_me:$LINENO: result: pre-installed" >&5
10885 echo "${ECHO_T}pre-installed" >&6
10889 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
10890 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
10891 if test "x${build}" != "x${host}" ; then
10892 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
10893 # We already found the complete path
10894 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
10895 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10896 echo "${ECHO_T}pre-installed in $ac_dir" >&6
10897 else
10898 # Canadian cross, just use what we found
10899 echo "$as_me:$LINENO: result: pre-installed" >&5
10900 echo "${ECHO_T}pre-installed" >&6
10902 else
10903 ok=yes
10904 case " ${configdirs} " in
10905 *" gcc "*) ;;
10906 *) ok=no ;;
10907 esac
10908 case ,${enable_languages}, in
10909 *,c++,*) ;;
10910 *) ok=no ;;
10911 esac
10912 if test $ok = yes; then
10913 # An in-tree tool is available and we can use it
10914 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
10915 echo "$as_me:$LINENO: result: just compiled" >&5
10916 echo "${ECHO_T}just compiled" >&6
10917 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
10918 # We already found the complete path
10919 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
10920 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10921 echo "${ECHO_T}pre-installed in $ac_dir" >&6
10922 elif test "x$target" = "x$host"; then
10923 # We can use an host tool
10924 RAW_CXX_FOR_TARGET='$(CXX)'
10925 echo "$as_me:$LINENO: result: host tool" >&5
10926 echo "${ECHO_T}host tool" >&6
10927 else
10928 # We need a cross tool
10929 echo "$as_me:$LINENO: result: pre-installed" >&5
10930 echo "${ECHO_T}pre-installed" >&6
10934 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
10935 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
10936 if test "x${build}" != "x${host}" ; then
10937 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
10938 # We already found the complete path
10939 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
10940 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10941 echo "${ECHO_T}pre-installed in $ac_dir" >&6
10942 else
10943 # Canadian cross, just use what we found
10944 echo "$as_me:$LINENO: result: pre-installed" >&5
10945 echo "${ECHO_T}pre-installed" >&6
10947 else
10948 ok=yes
10949 case " ${configdirs} " in
10950 *" binutils "*) ;;
10951 *) ok=no ;;
10952 esac
10954 if test $ok = yes; then
10955 # An in-tree tool is available and we can use it
10956 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
10957 echo "$as_me:$LINENO: result: just compiled" >&5
10958 echo "${ECHO_T}just compiled" >&6
10959 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
10960 # We already found the complete path
10961 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
10962 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10963 echo "${ECHO_T}pre-installed in $ac_dir" >&6
10964 elif test "x$target" = "x$host"; then
10965 # We can use an host tool
10966 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
10967 echo "$as_me:$LINENO: result: host tool" >&5
10968 echo "${ECHO_T}host tool" >&6
10969 else
10970 # We need a cross tool
10971 echo "$as_me:$LINENO: result: pre-installed" >&5
10972 echo "${ECHO_T}pre-installed" >&6
10976 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
10977 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
10978 if test "x${build}" != "x${host}" ; then
10979 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
10980 # We already found the complete path
10981 ac_dir=`dirname $GCC_FOR_TARGET`
10982 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
10983 echo "${ECHO_T}pre-installed in $ac_dir" >&6
10984 else
10985 # Canadian cross, just use what we found
10986 echo "$as_me:$LINENO: result: pre-installed" >&5
10987 echo "${ECHO_T}pre-installed" >&6
10989 else
10990 ok=yes
10991 case " ${configdirs} " in
10992 *" gcc "*) ;;
10993 *) ok=no ;;
10994 esac
10996 if test $ok = yes; then
10997 # An in-tree tool is available and we can use it
10998 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
10999 echo "$as_me:$LINENO: result: just compiled" >&5
11000 echo "${ECHO_T}just compiled" >&6
11001 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11002 # We already found the complete path
11003 ac_dir=`dirname $GCC_FOR_TARGET`
11004 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11005 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11006 elif test "x$target" = "x$host"; then
11007 # We can use an host tool
11008 GCC_FOR_TARGET='$()'
11009 echo "$as_me:$LINENO: result: host tool" >&5
11010 echo "${ECHO_T}host tool" >&6
11011 else
11012 # We need a cross tool
11013 echo "$as_me:$LINENO: result: pre-installed" >&5
11014 echo "${ECHO_T}pre-installed" >&6
11018 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11019 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
11020 if test "x${build}" != "x${host}" ; then
11021 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11022 # We already found the complete path
11023 ac_dir=`dirname $GCJ_FOR_TARGET`
11024 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11025 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11026 else
11027 # Canadian cross, just use what we found
11028 echo "$as_me:$LINENO: result: pre-installed" >&5
11029 echo "${ECHO_T}pre-installed" >&6
11031 else
11032 ok=yes
11033 case " ${configdirs} " in
11034 *" gcc "*) ;;
11035 *) ok=no ;;
11036 esac
11037 case ,${enable_languages}, in
11038 *,java,*) ;;
11039 *) ok=no ;;
11040 esac
11041 if test $ok = yes; then
11042 # An in-tree tool is available and we can use it
11043 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11044 echo "$as_me:$LINENO: result: just compiled" >&5
11045 echo "${ECHO_T}just compiled" >&6
11046 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11047 # We already found the complete path
11048 ac_dir=`dirname $GCJ_FOR_TARGET`
11049 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11050 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11051 elif test "x$target" = "x$host"; then
11052 # We can use an host tool
11053 GCJ_FOR_TARGET='$(GCJ)'
11054 echo "$as_me:$LINENO: result: host tool" >&5
11055 echo "${ECHO_T}host tool" >&6
11056 else
11057 # We need a cross tool
11058 echo "$as_me:$LINENO: result: pre-installed" >&5
11059 echo "${ECHO_T}pre-installed" >&6
11063 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11064 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
11065 if test "x${build}" != "x${host}" ; then
11066 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11067 # We already found the complete path
11068 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11069 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11070 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11071 else
11072 # Canadian cross, just use what we found
11073 echo "$as_me:$LINENO: result: pre-installed" >&5
11074 echo "${ECHO_T}pre-installed" >&6
11076 else
11077 ok=yes
11078 case " ${configdirs} " in
11079 *" gcc "*) ;;
11080 *) ok=no ;;
11081 esac
11082 case ,${enable_languages}, in
11083 *,fortran,*) ;;
11084 *) ok=no ;;
11085 esac
11086 if test $ok = yes; then
11087 # An in-tree tool is available and we can use it
11088 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
11089 echo "$as_me:$LINENO: result: just compiled" >&5
11090 echo "${ECHO_T}just compiled" >&6
11091 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11092 # We already found the complete path
11093 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11094 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11095 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11096 elif test "x$target" = "x$host"; then
11097 # We can use an host tool
11098 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
11099 echo "$as_me:$LINENO: result: host tool" >&5
11100 echo "${ECHO_T}host tool" >&6
11101 else
11102 # We need a cross tool
11103 echo "$as_me:$LINENO: result: pre-installed" >&5
11104 echo "${ECHO_T}pre-installed" >&6
11108 echo "$as_me:$LINENO: checking where to find the target ld" >&5
11109 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
11110 if test "x${build}" != "x${host}" ; then
11111 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11112 # We already found the complete path
11113 ac_dir=`dirname $LD_FOR_TARGET`
11114 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11115 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11116 else
11117 # Canadian cross, just use what we found
11118 echo "$as_me:$LINENO: result: pre-installed" >&5
11119 echo "${ECHO_T}pre-installed" >&6
11121 else
11122 ok=yes
11123 case " ${configdirs} " in
11124 *" ld "*) ;;
11125 *) ok=no ;;
11126 esac
11128 if test $ok = yes; then
11129 # An in-tree tool is available and we can use it
11130 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
11131 echo "$as_me:$LINENO: result: just compiled" >&5
11132 echo "${ECHO_T}just compiled" >&6
11133 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11134 # We already found the complete path
11135 ac_dir=`dirname $LD_FOR_TARGET`
11136 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11137 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11138 elif test "x$target" = "x$host"; then
11139 # We can use an host tool
11140 LD_FOR_TARGET='$(LD)'
11141 echo "$as_me:$LINENO: result: host tool" >&5
11142 echo "${ECHO_T}host tool" >&6
11143 else
11144 # We need a cross tool
11145 echo "$as_me:$LINENO: result: pre-installed" >&5
11146 echo "${ECHO_T}pre-installed" >&6
11150 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11151 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
11152 if test "x${build}" != "x${host}" ; then
11153 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11154 # We already found the complete path
11155 ac_dir=`dirname $LIPO_FOR_TARGET`
11156 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11157 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11158 else
11159 # Canadian cross, just use what we found
11160 echo "$as_me:$LINENO: result: pre-installed" >&5
11161 echo "${ECHO_T}pre-installed" >&6
11163 else
11164 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11165 # We already found the complete path
11166 ac_dir=`dirname $LIPO_FOR_TARGET`
11167 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11168 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11169 elif test "x$target" = "x$host"; then
11170 # We can use an host tool
11171 LIPO_FOR_TARGET='$(LIPO)'
11172 echo "$as_me:$LINENO: result: host tool" >&5
11173 echo "${ECHO_T}host tool" >&6
11174 else
11175 # We need a cross tool
11176 echo "$as_me:$LINENO: result: pre-installed" >&5
11177 echo "${ECHO_T}pre-installed" >&6
11181 echo "$as_me:$LINENO: checking where to find the target nm" >&5
11182 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
11183 if test "x${build}" != "x${host}" ; then
11184 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11185 # We already found the complete path
11186 ac_dir=`dirname $NM_FOR_TARGET`
11187 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11188 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11189 else
11190 # Canadian cross, just use what we found
11191 echo "$as_me:$LINENO: result: pre-installed" >&5
11192 echo "${ECHO_T}pre-installed" >&6
11194 else
11195 ok=yes
11196 case " ${configdirs} " in
11197 *" binutils "*) ;;
11198 *) ok=no ;;
11199 esac
11201 if test $ok = yes; then
11202 # An in-tree tool is available and we can use it
11203 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
11204 echo "$as_me:$LINENO: result: just compiled" >&5
11205 echo "${ECHO_T}just compiled" >&6
11206 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11207 # We already found the complete path
11208 ac_dir=`dirname $NM_FOR_TARGET`
11209 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11210 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11211 elif test "x$target" = "x$host"; then
11212 # We can use an host tool
11213 NM_FOR_TARGET='$(NM)'
11214 echo "$as_me:$LINENO: result: host tool" >&5
11215 echo "${ECHO_T}host tool" >&6
11216 else
11217 # We need a cross tool
11218 echo "$as_me:$LINENO: result: pre-installed" >&5
11219 echo "${ECHO_T}pre-installed" >&6
11223 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11224 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
11225 if test "x${build}" != "x${host}" ; then
11226 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11227 # We already found the complete path
11228 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11229 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11230 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11231 else
11232 # Canadian cross, just use what we found
11233 echo "$as_me:$LINENO: result: pre-installed" >&5
11234 echo "${ECHO_T}pre-installed" >&6
11236 else
11237 ok=yes
11238 case " ${configdirs} " in
11239 *" binutils "*) ;;
11240 *) ok=no ;;
11241 esac
11243 if test $ok = yes; then
11244 # An in-tree tool is available and we can use it
11245 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
11246 echo "$as_me:$LINENO: result: just compiled" >&5
11247 echo "${ECHO_T}just compiled" >&6
11248 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11249 # We already found the complete path
11250 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11251 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11252 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11253 elif test "x$target" = "x$host"; then
11254 # We can use an host tool
11255 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
11256 echo "$as_me:$LINENO: result: host tool" >&5
11257 echo "${ECHO_T}host tool" >&6
11258 else
11259 # We need a cross tool
11260 echo "$as_me:$LINENO: result: pre-installed" >&5
11261 echo "${ECHO_T}pre-installed" >&6
11265 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11266 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
11267 if test "x${build}" != "x${host}" ; then
11268 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11269 # We already found the complete path
11270 ac_dir=`dirname $RANLIB_FOR_TARGET`
11271 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11272 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11273 else
11274 # Canadian cross, just use what we found
11275 echo "$as_me:$LINENO: result: pre-installed" >&5
11276 echo "${ECHO_T}pre-installed" >&6
11278 else
11279 ok=yes
11280 case " ${configdirs} " in
11281 *" binutils "*) ;;
11282 *) ok=no ;;
11283 esac
11285 if test $ok = yes; then
11286 # An in-tree tool is available and we can use it
11287 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
11288 echo "$as_me:$LINENO: result: just compiled" >&5
11289 echo "${ECHO_T}just compiled" >&6
11290 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11291 # We already found the complete path
11292 ac_dir=`dirname $RANLIB_FOR_TARGET`
11293 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11294 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11295 elif test "x$target" = "x$host"; then
11296 # We can use an host tool
11297 RANLIB_FOR_TARGET='$(RANLIB)'
11298 echo "$as_me:$LINENO: result: host tool" >&5
11299 echo "${ECHO_T}host tool" >&6
11300 else
11301 # We need a cross tool
11302 echo "$as_me:$LINENO: result: pre-installed" >&5
11303 echo "${ECHO_T}pre-installed" >&6
11307 echo "$as_me:$LINENO: checking where to find the target strip" >&5
11308 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
11309 if test "x${build}" != "x${host}" ; then
11310 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11311 # We already found the complete path
11312 ac_dir=`dirname $STRIP_FOR_TARGET`
11313 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11314 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11315 else
11316 # Canadian cross, just use what we found
11317 echo "$as_me:$LINENO: result: pre-installed" >&5
11318 echo "${ECHO_T}pre-installed" >&6
11320 else
11321 ok=yes
11322 case " ${configdirs} " in
11323 *" binutils "*) ;;
11324 *) ok=no ;;
11325 esac
11327 if test $ok = yes; then
11328 # An in-tree tool is available and we can use it
11329 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
11330 echo "$as_me:$LINENO: result: just compiled" >&5
11331 echo "${ECHO_T}just compiled" >&6
11332 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11333 # We already found the complete path
11334 ac_dir=`dirname $STRIP_FOR_TARGET`
11335 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11336 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11337 elif test "x$target" = "x$host"; then
11338 # We can use an host tool
11339 STRIP_FOR_TARGET='$(STRIP)'
11340 echo "$as_me:$LINENO: result: host tool" >&5
11341 echo "${ECHO_T}host tool" >&6
11342 else
11343 # We need a cross tool
11344 echo "$as_me:$LINENO: result: pre-installed" >&5
11345 echo "${ECHO_T}pre-installed" >&6
11349 echo "$as_me:$LINENO: checking where to find the target windres" >&5
11350 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
11351 if test "x${build}" != "x${host}" ; then
11352 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11353 # We already found the complete path
11354 ac_dir=`dirname $WINDRES_FOR_TARGET`
11355 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11356 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11357 else
11358 # Canadian cross, just use what we found
11359 echo "$as_me:$LINENO: result: pre-installed" >&5
11360 echo "${ECHO_T}pre-installed" >&6
11362 else
11363 ok=yes
11364 case " ${configdirs} " in
11365 *" binutils "*) ;;
11366 *) ok=no ;;
11367 esac
11369 if test $ok = yes; then
11370 # An in-tree tool is available and we can use it
11371 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
11372 echo "$as_me:$LINENO: result: just compiled" >&5
11373 echo "${ECHO_T}just compiled" >&6
11374 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11375 # We already found the complete path
11376 ac_dir=`dirname $WINDRES_FOR_TARGET`
11377 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11378 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11379 elif test "x$target" = "x$host"; then
11380 # We can use an host tool
11381 WINDRES_FOR_TARGET='$(WINDRES)'
11382 echo "$as_me:$LINENO: result: host tool" >&5
11383 echo "${ECHO_T}host tool" >&6
11384 else
11385 # We need a cross tool
11386 echo "$as_me:$LINENO: result: pre-installed" >&5
11387 echo "${ECHO_T}pre-installed" >&6
11395 # Certain tools may need extra flags.
11396 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11397 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11398 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11400 # When building target libraries, except in a Canadian cross, we use
11401 # the same toolchain as the compiler we just built.
11402 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11403 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11404 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11405 if test $host = $build; then
11406 case " $configdirs " in
11407 *" gcc "*)
11408 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11409 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11410 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11412 esac
11419 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11420 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11421 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11422 if test "${enable_maintainer_mode+set}" = set; then
11423 enableval="$enable_maintainer_mode"
11424 USE_MAINTAINER_MODE=$enableval
11425 else
11426 USE_MAINTAINER_MODE=no
11428 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11429 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11432 if test "$USE_MAINTAINER_MODE" = yes; then
11433 MAINTAINER_MODE_TRUE=
11434 MAINTAINER_MODE_FALSE='#'
11435 else
11436 MAINTAINER_MODE_TRUE='#'
11437 MAINTAINER_MODE_FALSE=
11439 MAINT=$MAINTAINER_MODE_TRUE
11441 # ---------------------
11442 # GCC bootstrap support
11443 # ---------------------
11445 # Stage specific cflags for build.
11446 stage1_cflags="-g"
11447 case $build in
11448 vax-*-*)
11449 case ${GCC} in
11450 yes) stage1_cflags="-g -Wa,-J" ;;
11451 *) stage1_cflags="-g -J" ;;
11452 esac ;;
11453 esac
11455 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11456 if test "$GCC" = yes; then
11457 saved_CFLAGS="$CFLAGS"
11459 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11460 CFLAGS="$CFLAGS -fkeep-inline-functions"
11461 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11462 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11463 cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h. */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11470 #if (__GNUC__ < 3) \
11471 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11472 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11473 #error http://gcc.gnu.org/PR29382
11474 #endif
11477 main ()
11481 return 0;
11483 _ACEOF
11484 rm -f conftest.$ac_objext
11485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11486 (eval $ac_compile) 2>conftest.er1
11487 ac_status=$?
11488 grep -v '^ *+' conftest.er1 >conftest.err
11489 rm -f conftest.er1
11490 cat conftest.err >&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } &&
11493 { ac_try='test -z "$ac_c_werror_flag"
11494 || test ! -s conftest.err'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; } &&
11500 { ac_try='test -s conftest.$ac_objext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 echo "$as_me:$LINENO: result: yes" >&5
11507 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
11508 else
11509 echo "$as_me: failed program was:" >&5
11510 sed 's/^/| /' conftest.$ac_ext >&5
11512 echo "$as_me:$LINENO: result: no" >&5
11513 echo "${ECHO_T}no" >&6
11515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11517 CFLAGS="$saved_CFLAGS"
11522 # Enable --enable-checking in stage1 of the compiler.
11523 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
11524 if test "${enable_stage1_checking+set}" = set; then
11525 enableval="$enable_stage1_checking"
11526 stage1_checking=--enable-checking=${enable_stage1_checking}
11527 else
11528 if test "x$enable_checking" = xno; then
11529 stage1_checking=--enable-checking
11530 else
11531 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
11536 # Enable -Werror in bootstrap stage2 and later.
11537 # Check whether --enable-werror or --disable-werror was given.
11538 if test "${enable_werror+set}" = set; then
11539 enableval="$enable_werror"
11541 else
11542 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
11543 enable_werror=yes
11544 else
11545 enable_werror=no
11548 case ${enable_werror} in
11549 yes) stage2_werror_flag="--enable-werror-always" ;;
11550 *) stage2_werror_flag="" ;;
11551 esac
11554 # Flags needed to enable html installing and building
11556 # Check whether --with-datarootdir or --without-datarootdir was given.
11557 if test "${with_datarootdir+set}" = set; then
11558 withval="$with_datarootdir"
11559 datarootdir="\${prefix}/${withval}"
11560 else
11561 datarootdir="\${prefix}/share"
11565 # Check whether --with-docdir or --without-docdir was given.
11566 if test "${with_docdir+set}" = set; then
11567 withval="$with_docdir"
11568 docdir="\${prefix}/${withval}"
11569 else
11570 docdir="\${datarootdir}/doc"
11574 # Check whether --with-pdfdir or --without-pdfdir was given.
11575 if test "${with_pdfdir+set}" = set; then
11576 withval="$with_pdfdir"
11577 pdfdir="\${prefix}/${withval}"
11578 else
11579 pdfdir="\${docdir}"
11583 # Check whether --with-htmldir or --without-htmldir was given.
11584 if test "${with_htmldir+set}" = set; then
11585 withval="$with_htmldir"
11586 htmldir="\${prefix}/${withval}"
11587 else
11588 htmldir="\${docdir}"
11596 ac_config_files="$ac_config_files Makefile"
11597 cat >confcache <<\_ACEOF
11598 # This file is a shell script that caches the results of configure
11599 # tests run on this system so they can be shared between configure
11600 # scripts and configure runs, see configure's option --config-cache.
11601 # It is not useful on other systems. If it contains results you don't
11602 # want to keep, you may remove or edit it.
11604 # config.status only pays attention to the cache file if you give it
11605 # the --recheck option to rerun configure.
11607 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11608 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11609 # following values.
11611 _ACEOF
11613 # The following way of writing the cache mishandles newlines in values,
11614 # but we know of no workaround that is simple, portable, and efficient.
11615 # So, don't put newlines in cache variables' values.
11616 # Ultrix sh set writes to stderr and can't be redirected directly,
11617 # and sets the high bit in the cache file unless we assign to the vars.
11619 (set) 2>&1 |
11620 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11621 *ac_space=\ *)
11622 # `set' does not quote correctly, so add quotes (double-quote
11623 # substitution turns \\\\ into \\, and sed turns \\ into \).
11624 sed -n \
11625 "s/'/'\\\\''/g;
11626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11629 # `set' quotes correctly as required by POSIX, so do not add quotes.
11630 sed -n \
11631 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11633 esac;
11635 sed '
11636 t clear
11637 : clear
11638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11639 t end
11640 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11641 : end' >>confcache
11642 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11643 if test -w $cache_file; then
11644 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11645 cat confcache >$cache_file
11646 else
11647 echo "not updating unwritable cache $cache_file"
11650 rm -f confcache
11652 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11653 # Let make expand exec_prefix.
11654 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11656 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11657 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11658 # trailing colons and then remove the whole line if VPATH becomes empty
11659 # (actually we leave an empty line to preserve line numbers).
11660 if test "x$srcdir" = x.; then
11661 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11662 s/:*\$(srcdir):*/:/;
11663 s/:*\${srcdir}:*/:/;
11664 s/:*@srcdir@:*/:/;
11665 s/^\([^=]*=[ ]*\):*/\1/;
11666 s/:*$//;
11667 s/^[^=]*=[ ]*$//;
11671 # Transform confdefs.h into DEFS.
11672 # Protect against shell expansion while executing Makefile rules.
11673 # Protect against Makefile macro expansion.
11675 # If the first sed substitution is executed (which looks for macros that
11676 # take arguments), then we branch to the quote section. Otherwise,
11677 # look for a macro that doesn't take arguments.
11678 cat >confdef2opt.sed <<\_ACEOF
11679 t clear
11680 : clear
11681 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
11682 t quote
11683 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
11684 t quote
11686 : quote
11687 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
11688 s,\[,\\&,g
11689 s,\],\\&,g
11690 s,\$,$$,g
11692 _ACEOF
11693 # We use echo to avoid assuming a particular line-breaking character.
11694 # The extra dot is to prevent the shell from consuming trailing
11695 # line-breaks from the sub-command output. A line-break within
11696 # single-quotes doesn't work because, if this script is created in a
11697 # platform that uses two characters for line-breaks (e.g., DOS), tr
11698 # would break.
11699 ac_LF_and_DOT=`echo; echo .`
11700 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11701 rm -f confdef2opt.sed
11704 ac_libobjs=
11705 ac_ltlibobjs=
11706 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11707 # 1. Remove the extension, and $U if already installed.
11708 ac_i=`echo "$ac_i" |
11709 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11710 # 2. Add them.
11711 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11712 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11713 done
11714 LIBOBJS=$ac_libobjs
11716 LTLIBOBJS=$ac_ltlibobjs
11720 : ${CONFIG_STATUS=./config.status}
11721 ac_clean_files_save=$ac_clean_files
11722 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11723 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11724 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11725 cat >$CONFIG_STATUS <<_ACEOF
11726 #! $SHELL
11727 # Generated by $as_me.
11728 # Run this file to recreate the current configuration.
11729 # Compiler output produced by configure, useful for debugging
11730 # configure, is in config.log if it exists.
11732 debug=false
11733 ac_cs_recheck=false
11734 ac_cs_silent=false
11735 SHELL=\${CONFIG_SHELL-$SHELL}
11736 _ACEOF
11738 cat >>$CONFIG_STATUS <<\_ACEOF
11739 ## --------------------- ##
11740 ## M4sh Initialization. ##
11741 ## --------------------- ##
11743 # Be Bourne compatible
11744 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11745 emulate sh
11746 NULLCMD=:
11747 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11748 # is contrary to our usage. Disable this feature.
11749 alias -g '${1+"$@"}'='"$@"'
11750 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11751 set -o posix
11753 DUALCASE=1; export DUALCASE # for MKS sh
11755 # Support unset when possible.
11756 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11757 as_unset=unset
11758 else
11759 as_unset=false
11763 # Work around bugs in pre-3.0 UWIN ksh.
11764 $as_unset ENV MAIL MAILPATH
11765 PS1='$ '
11766 PS2='> '
11767 PS4='+ '
11769 # NLS nuisances.
11770 for as_var in \
11771 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11772 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11773 LC_TELEPHONE LC_TIME
11775 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11776 eval $as_var=C; export $as_var
11777 else
11778 $as_unset $as_var
11780 done
11782 # Required to use basename.
11783 if expr a : '\(a\)' >/dev/null 2>&1; then
11784 as_expr=expr
11785 else
11786 as_expr=false
11789 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11790 as_basename=basename
11791 else
11792 as_basename=false
11796 # Name of the executable.
11797 as_me=`$as_basename "$0" ||
11798 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11799 X"$0" : 'X\(//\)$' \| \
11800 X"$0" : 'X\(/\)$' \| \
11801 . : '\(.\)' 2>/dev/null ||
11802 echo X/"$0" |
11803 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11804 /^X\/\(\/\/\)$/{ s//\1/; q; }
11805 /^X\/\(\/\).*/{ s//\1/; q; }
11806 s/.*/./; q'`
11809 # PATH needs CR, and LINENO needs CR and PATH.
11810 # Avoid depending upon Character Ranges.
11811 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11812 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11813 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11814 as_cr_digits='0123456789'
11815 as_cr_alnum=$as_cr_Letters$as_cr_digits
11817 # The user is always right.
11818 if test "${PATH_SEPARATOR+set}" != set; then
11819 echo "#! /bin/sh" >conf$$.sh
11820 echo "exit 0" >>conf$$.sh
11821 chmod +x conf$$.sh
11822 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11823 PATH_SEPARATOR=';'
11824 else
11825 PATH_SEPARATOR=:
11827 rm -f conf$$.sh
11831 as_lineno_1=$LINENO
11832 as_lineno_2=$LINENO
11833 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11834 test "x$as_lineno_1" != "x$as_lineno_2" &&
11835 test "x$as_lineno_3" = "x$as_lineno_2" || {
11836 # Find who we are. Look in the path if we contain no path at all
11837 # relative or not.
11838 case $0 in
11839 *[\\/]* ) as_myself=$0 ;;
11840 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $PATH
11843 IFS=$as_save_IFS
11844 test -z "$as_dir" && as_dir=.
11845 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11846 done
11849 esac
11850 # We did not find ourselves, most probably we were run as `sh COMMAND'
11851 # in which case we are not to be found in the path.
11852 if test "x$as_myself" = x; then
11853 as_myself=$0
11855 if test ! -f "$as_myself"; then
11856 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11857 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11858 { (exit 1); exit 1; }; }
11860 case $CONFIG_SHELL in
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
11867 for as_base in sh bash ksh sh5; do
11868 case $as_dir in
11870 if ("$as_dir/$as_base" -c '
11871 as_lineno_1=$LINENO
11872 as_lineno_2=$LINENO
11873 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11874 test "x$as_lineno_1" != "x$as_lineno_2" &&
11875 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11876 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11877 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11878 CONFIG_SHELL=$as_dir/$as_base
11879 export CONFIG_SHELL
11880 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11881 fi;;
11882 esac
11883 done
11884 done
11886 esac
11888 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11889 # uniformly replaced by the line number. The first 'sed' inserts a
11890 # line-number line before each line; the second 'sed' does the real
11891 # work. The second script uses 'N' to pair each line-number line
11892 # with the numbered line, and appends trailing '-' during
11893 # substitution so that $LINENO is not a special case at line end.
11894 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11895 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11896 sed '=' <$as_myself |
11897 sed '
11899 s,$,-,
11900 : loop
11901 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11902 t loop
11903 s,-$,,
11904 s,^['$as_cr_digits']*\n,,
11905 ' >$as_me.lineno &&
11906 chmod +x $as_me.lineno ||
11907 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11908 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11909 { (exit 1); exit 1; }; }
11911 # Don't try to exec as it changes $[0], causing all sort of problems
11912 # (the dirname of $[0] is not the place where we might find the
11913 # original and so on. Autoconf is especially sensible to this).
11914 . ./$as_me.lineno
11915 # Exit status is that of the last command.
11916 exit
11920 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11921 *c*,-n*) ECHO_N= ECHO_C='
11922 ' ECHO_T=' ' ;;
11923 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11924 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11925 esac
11927 if expr a : '\(a\)' >/dev/null 2>&1; then
11928 as_expr=expr
11929 else
11930 as_expr=false
11933 rm -f conf$$ conf$$.exe conf$$.file
11934 echo >conf$$.file
11935 if ln -s conf$$.file conf$$ 2>/dev/null; then
11936 # We could just check for DJGPP; but this test a) works b) is more generic
11937 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11938 if test -f conf$$.exe; then
11939 # Don't use ln at all; we don't have any links
11940 as_ln_s='cp -p'
11941 else
11942 as_ln_s='ln -s'
11944 elif ln conf$$.file conf$$ 2>/dev/null; then
11945 as_ln_s=ln
11946 else
11947 as_ln_s='cp -p'
11949 rm -f conf$$ conf$$.exe conf$$.file
11951 if mkdir -p . 2>/dev/null; then
11952 as_mkdir_p=:
11953 else
11954 test -d ./-p && rmdir ./-p
11955 as_mkdir_p=false
11958 as_executable_p="test -f"
11960 # Sed expression to map a string onto a valid CPP name.
11961 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11963 # Sed expression to map a string onto a valid variable name.
11964 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11967 # IFS
11968 # We need space, tab and new line, in precisely that order.
11969 as_nl='
11971 IFS=" $as_nl"
11973 # CDPATH.
11974 $as_unset CDPATH
11976 exec 6>&1
11978 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11979 # report actual input values of CONFIG_FILES etc. instead of their
11980 # values after options handling. Logging --version etc. is OK.
11981 exec 5>>config.log
11983 echo
11984 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11985 ## Running $as_me. ##
11986 _ASBOX
11987 } >&5
11988 cat >&5 <<_CSEOF
11990 This file was extended by $as_me, which was
11991 generated by GNU Autoconf 2.59. Invocation command line was
11993 CONFIG_FILES = $CONFIG_FILES
11994 CONFIG_HEADERS = $CONFIG_HEADERS
11995 CONFIG_LINKS = $CONFIG_LINKS
11996 CONFIG_COMMANDS = $CONFIG_COMMANDS
11997 $ $0 $@
11999 _CSEOF
12000 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12001 echo >&5
12002 _ACEOF
12004 # Files that config.status was made for.
12005 if test -n "$ac_config_files"; then
12006 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12009 if test -n "$ac_config_headers"; then
12010 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12013 if test -n "$ac_config_links"; then
12014 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12017 if test -n "$ac_config_commands"; then
12018 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12021 cat >>$CONFIG_STATUS <<\_ACEOF
12023 ac_cs_usage="\
12024 \`$as_me' instantiates files from templates according to the
12025 current configuration.
12027 Usage: $0 [OPTIONS] [FILE]...
12029 -h, --help print this help, then exit
12030 -V, --version print version number, then exit
12031 -q, --quiet do not print progress messages
12032 -d, --debug don't remove temporary files
12033 --recheck update $as_me by reconfiguring in the same conditions
12034 --file=FILE[:TEMPLATE]
12035 instantiate the configuration file FILE
12037 Configuration files:
12038 $config_files
12040 Report bugs to <bug-autoconf@gnu.org>."
12041 _ACEOF
12043 cat >>$CONFIG_STATUS <<_ACEOF
12044 ac_cs_version="\\
12045 config.status
12046 configured by $0, generated by GNU Autoconf 2.59,
12047 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12049 Copyright (C) 2003 Free Software Foundation, Inc.
12050 This config.status script is free software; the Free Software Foundation
12051 gives unlimited permission to copy, distribute and modify it."
12052 srcdir=$srcdir
12053 INSTALL="$INSTALL"
12054 _ACEOF
12056 cat >>$CONFIG_STATUS <<\_ACEOF
12057 # If no file are specified by the user, then we need to provide default
12058 # value. By we need to know if files were specified by the user.
12059 ac_need_defaults=:
12060 while test $# != 0
12062 case $1 in
12063 --*=*)
12064 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12065 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12066 ac_shift=:
12069 ac_option=$1
12070 ac_optarg=$2
12071 ac_shift=shift
12073 *) # This is not an option, so the user has probably given explicit
12074 # arguments.
12075 ac_option=$1
12076 ac_need_defaults=false;;
12077 esac
12079 case $ac_option in
12080 # Handling of the options.
12081 _ACEOF
12082 cat >>$CONFIG_STATUS <<\_ACEOF
12083 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12084 ac_cs_recheck=: ;;
12085 --version | --vers* | -V )
12086 echo "$ac_cs_version"; exit 0 ;;
12087 --he | --h)
12088 # Conflict between --help and --header
12089 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12090 Try \`$0 --help' for more information." >&5
12091 echo "$as_me: error: ambiguous option: $1
12092 Try \`$0 --help' for more information." >&2;}
12093 { (exit 1); exit 1; }; };;
12094 --help | --hel | -h )
12095 echo "$ac_cs_usage"; exit 0 ;;
12096 --debug | --d* | -d )
12097 debug=: ;;
12098 --file | --fil | --fi | --f )
12099 $ac_shift
12100 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12101 ac_need_defaults=false;;
12102 --header | --heade | --head | --hea )
12103 $ac_shift
12104 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12105 ac_need_defaults=false;;
12106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12107 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12108 ac_cs_silent=: ;;
12110 # This is an error.
12111 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12112 Try \`$0 --help' for more information." >&5
12113 echo "$as_me: error: unrecognized option: $1
12114 Try \`$0 --help' for more information." >&2;}
12115 { (exit 1); exit 1; }; } ;;
12117 *) ac_config_targets="$ac_config_targets $1" ;;
12119 esac
12120 shift
12121 done
12123 ac_configure_extra_args=
12125 if $ac_cs_silent; then
12126 exec 6>/dev/null
12127 ac_configure_extra_args="$ac_configure_extra_args --silent"
12130 _ACEOF
12131 cat >>$CONFIG_STATUS <<_ACEOF
12132 if \$ac_cs_recheck; then
12133 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12134 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12137 _ACEOF
12143 cat >>$CONFIG_STATUS <<\_ACEOF
12144 for ac_config_target in $ac_config_targets
12146 case "$ac_config_target" in
12147 # Handling of arguments.
12148 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12149 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12150 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12151 { (exit 1); exit 1; }; };;
12152 esac
12153 done
12155 # If the user did not use the arguments to specify the items to instantiate,
12156 # then the envvar interface is used. Set only those that are not.
12157 # We use the long form for the default assignment because of an extremely
12158 # bizarre bug on SunOS 4.1.3.
12159 if $ac_need_defaults; then
12160 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12163 # Have a temporary directory for convenience. Make it in the build tree
12164 # simply because there is no reason to put it here, and in addition,
12165 # creating and moving files from /tmp can sometimes cause problems.
12166 # Create a temporary directory, and hook for its removal unless debugging.
12167 $debug ||
12169 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12170 trap '{ (exit 1); exit 1; }' 1 2 13 15
12173 # Create a (secure) tmp directory for tmp files.
12176 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12177 test -n "$tmp" && test -d "$tmp"
12178 } ||
12180 tmp=./confstat$$-$RANDOM
12181 (umask 077 && mkdir $tmp)
12182 } ||
12184 echo "$me: cannot create a temporary directory in ." >&2
12185 { (exit 1); exit 1; }
12188 _ACEOF
12190 cat >>$CONFIG_STATUS <<_ACEOF
12193 # CONFIG_FILES section.
12196 # No need to generate the scripts if there are no CONFIG_FILES.
12197 # This happens for instance when ./config.status config.h
12198 if test -n "\$CONFIG_FILES"; then
12199 # Protect against being on the right side of a sed subst in config.status.
12200 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12201 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12202 s,@SHELL@,$SHELL,;t t
12203 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12204 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12205 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12206 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12207 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12208 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12209 s,@exec_prefix@,$exec_prefix,;t t
12210 s,@prefix@,$prefix,;t t
12211 s,@program_transform_name@,$program_transform_name,;t t
12212 s,@bindir@,$bindir,;t t
12213 s,@sbindir@,$sbindir,;t t
12214 s,@libexecdir@,$libexecdir,;t t
12215 s,@datadir@,$datadir,;t t
12216 s,@sysconfdir@,$sysconfdir,;t t
12217 s,@sharedstatedir@,$sharedstatedir,;t t
12218 s,@localstatedir@,$localstatedir,;t t
12219 s,@libdir@,$libdir,;t t
12220 s,@includedir@,$includedir,;t t
12221 s,@oldincludedir@,$oldincludedir,;t t
12222 s,@infodir@,$infodir,;t t
12223 s,@mandir@,$mandir,;t t
12224 s,@build_alias@,$build_alias,;t t
12225 s,@host_alias@,$host_alias,;t t
12226 s,@target_alias@,$target_alias,;t t
12227 s,@DEFS@,$DEFS,;t t
12228 s,@ECHO_C@,$ECHO_C,;t t
12229 s,@ECHO_N@,$ECHO_N,;t t
12230 s,@ECHO_T@,$ECHO_T,;t t
12231 s,@LIBS@,$LIBS,;t t
12232 s,@build@,$build,;t t
12233 s,@build_cpu@,$build_cpu,;t t
12234 s,@build_vendor@,$build_vendor,;t t
12235 s,@build_os@,$build_os,;t t
12236 s,@build_noncanonical@,$build_noncanonical,;t t
12237 s,@host_noncanonical@,$host_noncanonical,;t t
12238 s,@target_noncanonical@,$target_noncanonical,;t t
12239 s,@host@,$host,;t t
12240 s,@host_cpu@,$host_cpu,;t t
12241 s,@host_vendor@,$host_vendor,;t t
12242 s,@host_os@,$host_os,;t t
12243 s,@target@,$target,;t t
12244 s,@target_cpu@,$target_cpu,;t t
12245 s,@target_vendor@,$target_vendor,;t t
12246 s,@target_os@,$target_os,;t t
12247 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12248 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12249 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12250 s,@LN@,$LN,;t t
12251 s,@LN_S@,$LN_S,;t t
12252 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12253 s,@build_libsubdir@,$build_libsubdir,;t t
12254 s,@build_subdir@,$build_subdir,;t t
12255 s,@host_subdir@,$host_subdir,;t t
12256 s,@target_subdir@,$target_subdir,;t t
12257 s,@CC@,$CC,;t t
12258 s,@CFLAGS@,$CFLAGS,;t t
12259 s,@LDFLAGS@,$LDFLAGS,;t t
12260 s,@CPPFLAGS@,$CPPFLAGS,;t t
12261 s,@ac_ct_CC@,$ac_ct_CC,;t t
12262 s,@EXEEXT@,$EXEEXT,;t t
12263 s,@OBJEXT@,$OBJEXT,;t t
12264 s,@CXX@,$CXX,;t t
12265 s,@CXXFLAGS@,$CXXFLAGS,;t t
12266 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12267 s,@GNATBIND@,$GNATBIND,;t t
12268 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12269 s,@GNATMAKE@,$GNATMAKE,;t t
12270 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12271 s,@do_compare@,$do_compare,;t t
12272 s,@gmplibs@,$gmplibs,;t t
12273 s,@gmpinc@,$gmpinc,;t t
12274 s,@stage1_languages@,$stage1_languages,;t t
12275 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12276 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12277 s,@tooldir@,$tooldir,;t t
12278 s,@build_tooldir@,$build_tooldir,;t t
12279 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12280 s,@GDB_TK@,$GDB_TK,;t t
12281 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12282 s,@build_configargs@,$build_configargs,;t t
12283 s,@build_configdirs@,$build_configdirs,;t t
12284 s,@host_configargs@,$host_configargs,;t t
12285 s,@configdirs@,$configdirs,;t t
12286 s,@target_configargs@,$target_configargs,;t t
12287 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12288 s,@config_shell@,$config_shell,;t t
12289 s,@YACC@,$YACC,;t t
12290 s,@BISON@,$BISON,;t t
12291 s,@M4@,$M4,;t t
12292 s,@LEX@,$LEX,;t t
12293 s,@FLEX@,$FLEX,;t t
12294 s,@MAKEINFO@,$MAKEINFO,;t t
12295 s,@EXPECT@,$EXPECT,;t t
12296 s,@RUNTEST@,$RUNTEST,;t t
12297 s,@AR@,$AR,;t t
12298 s,@AS@,$AS,;t t
12299 s,@DLLTOOL@,$DLLTOOL,;t t
12300 s,@LD@,$LD,;t t
12301 s,@LIPO@,$LIPO,;t t
12302 s,@NM@,$NM,;t t
12303 s,@RANLIB@,$RANLIB,;t t
12304 s,@STRIP@,$STRIP,;t t
12305 s,@WINDRES@,$WINDRES,;t t
12306 s,@OBJCOPY@,$OBJCOPY,;t t
12307 s,@OBJDUMP@,$OBJDUMP,;t t
12308 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12309 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12310 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12311 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12312 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12313 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12314 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12315 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12316 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12317 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12318 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12319 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12320 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12321 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12322 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12323 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
12324 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12325 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12326 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12327 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12328 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12329 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12330 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12331 s,@MAINT@,$MAINT,;t t
12332 s,@stage1_cflags@,$stage1_cflags,;t t
12333 s,@stage1_checking@,$stage1_checking,;t t
12334 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12335 s,@datarootdir@,$datarootdir,;t t
12336 s,@docdir@,$docdir,;t t
12337 s,@pdfdir@,$pdfdir,;t t
12338 s,@htmldir@,$htmldir,;t t
12339 s,@LIBOBJS@,$LIBOBJS,;t t
12340 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12341 /@serialization_dependencies@/r $serialization_dependencies
12342 s,@serialization_dependencies@,,;t t
12343 /@host_makefile_frag@/r $host_makefile_frag
12344 s,@host_makefile_frag@,,;t t
12345 /@target_makefile_frag@/r $target_makefile_frag
12346 s,@target_makefile_frag@,,;t t
12347 /@alphaieee_frag@/r $alphaieee_frag
12348 s,@alphaieee_frag@,,;t t
12349 /@ospace_frag@/r $ospace_frag
12350 s,@ospace_frag@,,;t t
12351 CEOF
12353 _ACEOF
12355 cat >>$CONFIG_STATUS <<\_ACEOF
12356 # Split the substitutions into bite-sized pieces for seds with
12357 # small command number limits, like on Digital OSF/1 and HP-UX.
12358 ac_max_sed_lines=48
12359 ac_sed_frag=1 # Number of current file.
12360 ac_beg=1 # First line for current file.
12361 ac_end=$ac_max_sed_lines # Line after last line for current file.
12362 ac_more_lines=:
12363 ac_sed_cmds=
12364 while $ac_more_lines; do
12365 if test $ac_beg -gt 1; then
12366 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12367 else
12368 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12370 if test ! -s $tmp/subs.frag; then
12371 ac_more_lines=false
12372 else
12373 # The purpose of the label and of the branching condition is to
12374 # speed up the sed processing (if there are no `@' at all, there
12375 # is no need to browse any of the substitutions).
12376 # These are the two extra sed commands mentioned above.
12377 (echo ':t
12378 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12379 if test -z "$ac_sed_cmds"; then
12380 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12381 else
12382 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12384 ac_sed_frag=`expr $ac_sed_frag + 1`
12385 ac_beg=$ac_end
12386 ac_end=`expr $ac_end + $ac_max_sed_lines`
12388 done
12389 if test -z "$ac_sed_cmds"; then
12390 ac_sed_cmds=cat
12392 fi # test -n "$CONFIG_FILES"
12394 _ACEOF
12395 cat >>$CONFIG_STATUS <<\_ACEOF
12396 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12397 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12398 case $ac_file in
12399 - | *:- | *:-:* ) # input from stdin
12400 cat >$tmp/stdin
12401 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12402 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12403 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12404 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12405 * ) ac_file_in=$ac_file.in ;;
12406 esac
12408 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12409 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12410 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12411 X"$ac_file" : 'X\(//\)[^/]' \| \
12412 X"$ac_file" : 'X\(//\)$' \| \
12413 X"$ac_file" : 'X\(/\)' \| \
12414 . : '\(.\)' 2>/dev/null ||
12415 echo X"$ac_file" |
12416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12417 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12418 /^X\(\/\/\)$/{ s//\1/; q; }
12419 /^X\(\/\).*/{ s//\1/; q; }
12420 s/.*/./; q'`
12421 { if $as_mkdir_p; then
12422 mkdir -p "$ac_dir"
12423 else
12424 as_dir="$ac_dir"
12425 as_dirs=
12426 while test ! -d "$as_dir"; do
12427 as_dirs="$as_dir $as_dirs"
12428 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12429 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12430 X"$as_dir" : 'X\(//\)[^/]' \| \
12431 X"$as_dir" : 'X\(//\)$' \| \
12432 X"$as_dir" : 'X\(/\)' \| \
12433 . : '\(.\)' 2>/dev/null ||
12434 echo X"$as_dir" |
12435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12436 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12437 /^X\(\/\/\)$/{ s//\1/; q; }
12438 /^X\(\/\).*/{ s//\1/; q; }
12439 s/.*/./; q'`
12440 done
12441 test ! -n "$as_dirs" || mkdir $as_dirs
12442 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12443 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12444 { (exit 1); exit 1; }; }; }
12446 ac_builddir=.
12448 if test "$ac_dir" != .; then
12449 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12450 # A "../" for each directory in $ac_dir_suffix.
12451 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12452 else
12453 ac_dir_suffix= ac_top_builddir=
12456 case $srcdir in
12457 .) # No --srcdir option. We are building in place.
12458 ac_srcdir=.
12459 if test -z "$ac_top_builddir"; then
12460 ac_top_srcdir=.
12461 else
12462 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12463 fi ;;
12464 [\\/]* | ?:[\\/]* ) # Absolute path.
12465 ac_srcdir=$srcdir$ac_dir_suffix;
12466 ac_top_srcdir=$srcdir ;;
12467 *) # Relative path.
12468 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12469 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12470 esac
12472 # Do not use `cd foo && pwd` to compute absolute paths, because
12473 # the directories may not exist.
12474 case `pwd` in
12475 .) ac_abs_builddir="$ac_dir";;
12477 case "$ac_dir" in
12478 .) ac_abs_builddir=`pwd`;;
12479 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12480 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12481 esac;;
12482 esac
12483 case $ac_abs_builddir in
12484 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12486 case ${ac_top_builddir}. in
12487 .) ac_abs_top_builddir=$ac_abs_builddir;;
12488 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12489 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12490 esac;;
12491 esac
12492 case $ac_abs_builddir in
12493 .) ac_abs_srcdir=$ac_srcdir;;
12495 case $ac_srcdir in
12496 .) ac_abs_srcdir=$ac_abs_builddir;;
12497 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12498 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12499 esac;;
12500 esac
12501 case $ac_abs_builddir in
12502 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12504 case $ac_top_srcdir in
12505 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12506 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12507 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12508 esac;;
12509 esac
12512 case $INSTALL in
12513 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12514 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12515 esac
12517 if test x"$ac_file" != x-; then
12518 { echo "$as_me:$LINENO: creating $ac_file" >&5
12519 echo "$as_me: creating $ac_file" >&6;}
12520 rm -f "$ac_file"
12522 # Let's still pretend it is `configure' which instantiates (i.e., don't
12523 # use $as_me), people would be surprised to read:
12524 # /* config.h. Generated by config.status. */
12525 if test x"$ac_file" = x-; then
12526 configure_input=
12527 else
12528 configure_input="$ac_file. "
12530 configure_input=$configure_input"Generated from `echo $ac_file_in |
12531 sed 's,.*/,,'` by configure."
12533 # First look for the input files in the build tree, otherwise in the
12534 # src tree.
12535 ac_file_inputs=`IFS=:
12536 for f in $ac_file_in; do
12537 case $f in
12538 -) echo $tmp/stdin ;;
12539 [\\/$]*)
12540 # Absolute (can't be DOS-style, as IFS=:)
12541 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12542 echo "$as_me: error: cannot find input file: $f" >&2;}
12543 { (exit 1); exit 1; }; }
12544 echo "$f";;
12545 *) # Relative
12546 if test -f "$f"; then
12547 # Build tree
12548 echo "$f"
12549 elif test -f "$srcdir/$f"; then
12550 # Source tree
12551 echo "$srcdir/$f"
12552 else
12553 # /dev/null tree
12554 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12555 echo "$as_me: error: cannot find input file: $f" >&2;}
12556 { (exit 1); exit 1; }; }
12557 fi;;
12558 esac
12559 done` || { (exit 1); exit 1; }
12560 _ACEOF
12561 cat >>$CONFIG_STATUS <<_ACEOF
12562 sed "$ac_vpsub
12563 $extrasub
12564 _ACEOF
12565 cat >>$CONFIG_STATUS <<\_ACEOF
12567 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12568 s,@configure_input@,$configure_input,;t t
12569 s,@srcdir@,$ac_srcdir,;t t
12570 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12571 s,@top_srcdir@,$ac_top_srcdir,;t t
12572 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12573 s,@builddir@,$ac_builddir,;t t
12574 s,@abs_builddir@,$ac_abs_builddir,;t t
12575 s,@top_builddir@,$ac_top_builddir,;t t
12576 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12577 s,@INSTALL@,$ac_INSTALL,;t t
12578 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12579 rm -f $tmp/stdin
12580 if test x"$ac_file" != x-; then
12581 mv $tmp/out $ac_file
12582 else
12583 cat $tmp/out
12584 rm -f $tmp/out
12587 done
12588 _ACEOF
12590 cat >>$CONFIG_STATUS <<\_ACEOF
12592 { (exit 0); exit 0; }
12593 _ACEOF
12594 chmod +x $CONFIG_STATUS
12595 ac_clean_files=$ac_clean_files_save
12598 # configure is writing to config.log, and then calls config.status.
12599 # config.status does its own redirection, appending to config.log.
12600 # Unfortunately, on DOS this fails, as config.log is still kept open
12601 # by configure, so config.status won't be able to write to it; its
12602 # output is simply discarded. So we exec the FD to /dev/null,
12603 # effectively closing config.log, so it can be properly (re)opened and
12604 # appended to by config.status. When coming back to configure, we
12605 # need to make the FD available again.
12606 if test "$no_create" != yes; then
12607 ac_cs_success=:
12608 ac_config_status_args=
12609 test "$silent" = yes &&
12610 ac_config_status_args="$ac_config_status_args --quiet"
12611 exec 5>/dev/null
12612 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12613 exec 5>>config.log
12614 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12615 # would make configure fail if this is the last instruction.
12616 $ac_cs_success || { (exit 1); exit 1; }