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
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
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'"
235 # We need space, tab and new line, in precisely that order.
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`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
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.
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 DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP 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 WINDMC_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.
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
290 program_transform_name=s,x,x,
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'
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
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 ;;
350 cache_file=config.cache ;;
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
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'`
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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.
393 -help | --help | --hel | --he | -h)
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)
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
417 -libdir | --libdir | --libdi | --libd)
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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)
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
444 # Obsolete; use --without-fp.
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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)
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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)
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 sbindir=$ac_optarg ;;
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 sharedstatedir=$ac_optarg ;;
521 -site | --site | --sit)
523 -site=* | --site=* | --sit=*)
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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)
546 -version | --version | --versio | --versi | --vers | -V)
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'`
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
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" ;;
572 # Obsolete; use --with-x.
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; }; }
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'"
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}
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`
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
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`
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
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.
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
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 ||
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
685 if test ! -r $srcdir/$ac_unique_file; then
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; }; }
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_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718 ac_env_CC_set=${CC+set}
720 ac_cv_env_CC_set=${CC+set}
721 ac_cv_env_CC_value=$CC
722 ac_env_CFLAGS_set=${CFLAGS+set}
723 ac_env_CFLAGS_value=$CFLAGS
724 ac_cv_env_CFLAGS_set=${CFLAGS+set}
725 ac_cv_env_CFLAGS_value=$CFLAGS
726 ac_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_env_LDFLAGS_value=$LDFLAGS
728 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
729 ac_cv_env_LDFLAGS_value=$LDFLAGS
730 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_env_CPPFLAGS_value=$CPPFLAGS
732 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
733 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
734 ac_env_CXX_set=${CXX+set}
735 ac_env_CXX_value=$CXX
736 ac_cv_env_CXX_set=${CXX+set}
737 ac_cv_env_CXX_value=$CXX
738 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
739 ac_env_CXXFLAGS_value=$CXXFLAGS
740 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
741 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
742 ac_env_AR_set=${AR+set}
744 ac_cv_env_AR_set=${AR+set}
745 ac_cv_env_AR_value=$AR
746 ac_env_AS_set=${AS+set}
748 ac_cv_env_AS_set=${AS+set}
749 ac_cv_env_AS_value=$AS
750 ac_env_DLLTOOL_set=${DLLTOOL+set}
751 ac_env_DLLTOOL_value=$DLLTOOL
752 ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
753 ac_cv_env_DLLTOOL_value=$DLLTOOL
754 ac_env_LD_set=${LD+set}
756 ac_cv_env_LD_set=${LD+set}
757 ac_cv_env_LD_value=$LD
758 ac_env_LIPO_set=${LIPO+set}
759 ac_env_LIPO_value=$LIPO
760 ac_cv_env_LIPO_set=${LIPO+set}
761 ac_cv_env_LIPO_value=$LIPO
762 ac_env_NM_set=${NM+set}
764 ac_cv_env_NM_set=${NM+set}
765 ac_cv_env_NM_value=$NM
766 ac_env_RANLIB_set=${RANLIB+set}
767 ac_env_RANLIB_value=$RANLIB
768 ac_cv_env_RANLIB_set=${RANLIB+set}
769 ac_cv_env_RANLIB_value=$RANLIB
770 ac_env_STRIP_set=${STRIP+set}
771 ac_env_STRIP_value=$STRIP
772 ac_cv_env_STRIP_set=${STRIP+set}
773 ac_cv_env_STRIP_value=$STRIP
774 ac_env_WINDRES_set=${WINDRES+set}
775 ac_env_WINDRES_value=$WINDRES
776 ac_cv_env_WINDRES_set=${WINDRES+set}
777 ac_cv_env_WINDRES_value=$WINDRES
778 ac_env_WINDMC_set=${WINDMC+set}
779 ac_env_WINDMC_value=$WINDMC
780 ac_cv_env_WINDMC_set=${WINDMC+set}
781 ac_cv_env_WINDMC_value=$WINDMC
782 ac_env_OBJCOPY_set=${OBJCOPY+set}
783 ac_env_OBJCOPY_value=$OBJCOPY
784 ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
785 ac_cv_env_OBJCOPY_value=$OBJCOPY
786 ac_env_OBJDUMP_set=${OBJDUMP+set}
787 ac_env_OBJDUMP_value=$OBJDUMP
788 ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
789 ac_cv_env_OBJDUMP_value=$OBJDUMP
790 ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791 ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792 ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
793 ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
794 ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795 ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796 ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
797 ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
798 ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799 ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800 ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
801 ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
802 ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803 ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804 ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
805 ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
806 ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807 ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808 ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
809 ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
810 ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811 ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812 ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
813 ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
814 ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815 ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816 ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
817 ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
818 ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819 ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820 ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
821 ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
822 ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823 ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824 ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
825 ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
826 ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827 ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828 ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
829 ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
830 ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831 ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832 ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
833 ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
834 ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835 ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836 ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
837 ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
838 ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839 ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840 ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
841 ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
842 ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843 ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844 ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
845 ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
846 ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847 ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
848 ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
849 ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
850 ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851 ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
852 ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
853 ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
856 # Report the --help message.
858 if test "$ac_init_help" = "long"; then
859 # Omit some internal or obsolete options to make the list less imposing.
860 # This message is too long to be a string in the A/UX 3.1 sh.
862 \`configure' configures this package to adapt to many kinds of systems.
864 Usage: $0 [OPTION]... [VAR=VALUE]...
866 To assign environment variables (e.g., CC, CFLAGS...), specify them as
867 VAR=VALUE. See below for descriptions of some of the useful variables.
869 Defaults for the options are specified in brackets.
872 -h, --help display this help and exit
873 --help=short display options specific to this package
874 --help=recursive display the short help of all the included packages
875 -V, --version display version information and exit
876 -q, --quiet, --silent do not print \`checking...' messages
877 --cache-file=FILE cache test results in FILE [disabled]
878 -C, --config-cache alias for \`--cache-file=config.cache'
879 -n, --no-create do not create output files
880 --srcdir=DIR find the sources in DIR [configure dir or \`..']
885 Installation directories:
886 --prefix=PREFIX install architecture-independent files in PREFIX
888 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
891 By default, \`make install' will install all the files in
892 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
893 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
894 for instance \`--prefix=\$HOME'.
896 For better control, use the options below.
898 Fine tuning of the installation directories:
899 --bindir=DIR user executables [EPREFIX/bin]
900 --sbindir=DIR system admin executables [EPREFIX/sbin]
901 --libexecdir=DIR program executables [EPREFIX/libexec]
902 --datadir=DIR read-only architecture-independent data [PREFIX/share]
903 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
904 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
905 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
906 --libdir=DIR object code libraries [EPREFIX/lib]
907 --includedir=DIR C header files [PREFIX/include]
908 --oldincludedir=DIR C header files for non-gcc [/usr/include]
909 --infodir=DIR info documentation [PREFIX/info]
910 --mandir=DIR man documentation [PREFIX/man]
916 --program-prefix=PREFIX prepend PREFIX to installed program names
917 --program-suffix=SUFFIX append SUFFIX to installed program names
918 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
921 --build=BUILD configure for building on BUILD [guessed]
922 --host=HOST cross-compile to build programs to run on HOST [BUILD]
923 --target=TARGET configure for building compilers for TARGET [HOST]
927 if test -n "$ac_init_help"; then
932 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
933 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
934 --enable-gold use gold instead of ld
935 --enable-libada build libada directory
936 --enable-libssp build libssp directory
937 --enable-stage1-languages[=all] choose additional languages to build during
938 stage1. Mostly useful for compiler development.
939 --enable-objc-gc enable use of Boehm's garbage collector with the
940 GNU Objective-C runtime
941 --enable-bootstrap enable bootstrapping [yes if native build]
942 --enable-serial-[{host,target,build}-]configure
943 force sequential configuration of
944 sub-packages for the host, target or build
945 machine, or all sub-packages
946 --enable-maintainer-mode enable make rules and dependencies not useful
947 (and sometimes confusing) to the casual installer
948 --enable-stage1-checking[=all] choose additional checking for stage1
950 --enable-werror enable -Werror in bootstrap stage2 and later
953 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
954 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
955 --with-build-libsubdir=DIR Directory where to find libraries for build system
956 --with-mpfr-dir=PATH this option has been REMOVED
957 --with-mpfr=PATH specify prefix directory for installed MPFR package.
958 Equivalent to --with-mpfr-include=PATH/include
959 plus --with-mpfr-lib=PATH/lib
960 --with-mpfr-include=PATH
961 specify directory for installed MPFR include files
962 --with-mpfr-lib=PATH specify directory for the installed MPFR library
963 --with-gmp-dir=PATH this option has been REMOVED
964 --with-gmp=PATH specify prefix directory for the installed GMP package.
965 Equivalent to --with-gmp-include=PATH/include
966 plus --with-gmp-lib=PATH/lib
967 --with-gmp-include=PATH specify directory for installed GMP include files
968 --with-gmp-lib=PATH specify directory for the installed GMP library
969 --with-build-sysroot=SYSROOT
970 use sysroot as the system root during the build
971 --with-debug-prefix-map='A=B C=D ...'
972 map A to B, C to D ... in debug information
973 --with-build-time-tools=PATH
974 use given path to find target tools during the build
975 --with-datarootdir use datarootdir as the data root directory.
976 --with-docdir install documentation in this directory.
977 --with-pdfdir install pdf in this directory.
978 --with-htmldir install html in this directory.
980 Some influential environment variables:
981 CC C compiler command
982 CFLAGS C compiler flags
983 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
984 nonstandard directory <lib dir>
985 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
986 headers in a nonstandard directory <include dir>
987 CXX C++ compiler command
988 CXXFLAGS C++ compiler flags
991 DLLTOOL DLLTOOL for the host
993 LIPO LIPO for the host
995 RANLIB RANLIB for the host
996 STRIP STRIP for the host
997 WINDRES WINDRES for the host
998 WINDMC WINDMC for the host
999 OBJCOPY OBJCOPY for the host
1000 OBJDUMP OBJDUMP for the host
1010 GFORTRAN for the target
1016 DLLTOOL for the target
1024 OBJDUMP for the target
1026 RANLIB for the target
1028 STRIP for the target
1030 WINDRES for the target
1032 WINDMC for the target
1034 Use these variables to override the choices made by `configure' or to help
1035 it to find libraries and programs with nonstandard names/locations.
1040 if test "$ac_init_help" = "recursive"; then
1041 # If there are subdirs, report their specific --help.
1043 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1044 test -d $ac_dir || continue
1047 if test "$ac_dir" != .; then
1048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1049 # A "../" for each directory in $ac_dir_suffix.
1050 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1052 ac_dir_suffix= ac_top_builddir=
1056 .) # No --srcdir option. We are building in place.
1058 if test -z "$ac_top_builddir"; then
1061 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1063 [\\/]* | ?:[\\/]* ) # Absolute path.
1064 ac_srcdir=$srcdir$ac_dir_suffix;
1065 ac_top_srcdir=$srcdir ;;
1067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1071 # Do not use `cd foo && pwd` to compute absolute paths, because
1072 # the directories may not exist.
1074 .) ac_abs_builddir="$ac_dir";;
1077 .) ac_abs_builddir=`pwd`;;
1078 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1079 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1082 case $ac_abs_builddir in
1083 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 case ${ac_top_builddir}. in
1086 .) ac_abs_top_builddir=$ac_abs_builddir;;
1087 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1091 case $ac_abs_builddir in
1092 .) ac_abs_srcdir=$ac_srcdir;;
1095 .) ac_abs_srcdir=$ac_abs_builddir;;
1096 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1097 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1100 case $ac_abs_builddir in
1101 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 case $ac_top_srcdir in
1104 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1105 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1111 # Check for guested configure; otherwise get Cygnus style configure.
1112 if test -f $ac_srcdir/configure.gnu; then
1114 $SHELL $ac_srcdir/configure.gnu --help=recursive
1115 elif test -f $ac_srcdir/configure; then
1117 $SHELL $ac_srcdir/configure --help=recursive
1118 elif test -f $ac_srcdir/configure.ac ||
1119 test -f $ac_srcdir/configure.in; then
1121 $ac_configure --help
1123 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1129 test -n "$ac_init_help" && exit 0
1130 if $ac_init_version; then
1133 Copyright (C) 2003 Free Software Foundation, Inc.
1134 This configure script is free software; the Free Software Foundation
1135 gives unlimited permission to copy, distribute and modify it.
1141 This file contains any messages produced by compilers while
1142 running configure, to aid debugging if configure makes a mistake.
1144 It was created by $as_me, which was
1145 generated by GNU Autoconf 2.59. Invocation command line was
1156 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1157 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1158 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1159 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1160 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1162 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1163 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1165 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1166 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1167 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1168 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1169 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1170 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1171 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179 test -z "$as_dir" && as_dir=.
1180 echo "PATH: $as_dir"
1195 # Keep a trace of the command line.
1196 # Strip out --no-create and --no-recursion so they do not pile up.
1197 # Strip out --silent because we don't want to record it for future runs.
1198 # Also quote any args containing shell meta-characters.
1199 # Make two passes to allow for proper duplicate-argument suppression.
1204 ac_must_keep_next=false
1210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212 | -silent | --silent | --silen | --sile | --sil)
1214 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1215 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1218 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1220 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1221 if test $ac_must_keep_next = true; then
1222 ac_must_keep_next=false # Got value, back to normal.
1225 *=* | --config-cache | -C | -disable-* | --disable-* \
1226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1228 | -with-* | --with-* | -without-* | --without-* | --x)
1229 case "$ac_configure_args0 " in
1230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1233 -* ) ac_must_keep_next=true ;;
1236 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1237 # Get rid of the leading space.
1243 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1244 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1246 # When interrupted or exit'd, cleanup temporary files, and complete
1247 # config.log. We remove comments because anyway the quotes in there
1248 # would cause problems or look ugly.
1249 # WARNING: Be sure not to use single quotes in there, as some shells,
1250 # such as our DU 5.0 friend, will then `close' the trap.
1251 trap 'exit_status=$?
1252 # Save into config.log some information that might help in debugging.
1257 ## ---------------- ##
1258 ## Cache variables. ##
1259 ## ---------------- ##
1262 # The following way of writing the cache mishandles newlines in values,
1265 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1268 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 ## ----------------- ##
1281 ## Output variables. ##
1282 ## ----------------- ##
1285 for ac_var in $ac_subst_vars
1287 eval ac_val=$`echo $ac_var`
1288 echo "$ac_var='"'"'$ac_val'"'"'"
1292 if test -n "$ac_subst_files"; then
1299 for ac_var in $ac_subst_files
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1307 if test -s confdefs.h; then
1314 sed "/^$/d" confdefs.h | sort
1317 test "$ac_signal" != 0 &&
1318 echo "$as_me: caught signal $ac_signal"
1319 echo "$as_me: exit $exit_status"
1321 rm -f core *.core &&
1322 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1325 for ac_signal in 1 2 13 15; do
1326 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1331 rm -rf conftest* confdefs.h
1332 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1335 # Predefined preprocessor variables.
1337 cat >>confdefs.h <<_ACEOF
1338 #define PACKAGE_NAME "$PACKAGE_NAME"
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_STRING "$PACKAGE_STRING"
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362 # Let the site file select an alternate cache file if it wants to.
1363 # Prefer explicitly selected file to automatically selected ones.
1364 if test -z "$CONFIG_SITE"; then
1365 if test "x$prefix" != xNONE; then
1366 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1368 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1371 for ac_site_file in $CONFIG_SITE; do
1372 if test -r "$ac_site_file"; then
1373 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1374 echo "$as_me: loading site script $ac_site_file" >&6;}
1375 sed 's/^/| /' "$ac_site_file" >&5
1380 if test -r "$cache_file"; then
1381 # Some versions of bash will fail to source /dev/null (special
1382 # files actually), so we avoid doing that.
1383 if test -f "$cache_file"; then
1384 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1385 echo "$as_me: loading cache $cache_file" >&6;}
1387 [\\/]* | ?:[\\/]* ) . $cache_file;;
1388 *) . ./$cache_file;;
1392 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1393 echo "$as_me: creating cache $cache_file" >&6;}
1397 # Check that the precious variables saved in the cache have kept the same
1399 ac_cache_corrupted=false
1400 for ac_var in `(set) 2>&1 |
1401 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1403 eval ac_new_set=\$ac_env_${ac_var}_set
1404 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1405 eval ac_new_val="\$ac_env_${ac_var}_value"
1406 case $ac_old_set,$ac_new_set in
1408 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1409 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1410 ac_cache_corrupted=: ;;
1412 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1413 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1414 ac_cache_corrupted=: ;;
1417 if test "x$ac_old_val" != "x$ac_new_val"; then
1418 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1419 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1420 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1421 echo "$as_me: former value: $ac_old_val" >&2;}
1422 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1423 echo "$as_me: current value: $ac_new_val" >&2;}
1424 ac_cache_corrupted=:
1427 # Pass precious variables to config.status.
1428 if test "$ac_new_set" = set; then
1430 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1431 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1432 *) ac_arg=$ac_var=$ac_new_val ;;
1434 case " $ac_configure_args " in
1435 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1436 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1440 if $ac_cache_corrupted; then
1441 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1442 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1443 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1444 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1445 { (exit 1); exit 1; }; }
1449 ac_cpp='$CPP $CPPFLAGS'
1450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1474 # Find the build, host, and target systems.
1476 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1477 if test -f $ac_dir/install-sh; then
1479 ac_install_sh="$ac_aux_dir/install-sh -c"
1481 elif test -f $ac_dir/install.sh; then
1483 ac_install_sh="$ac_aux_dir/install.sh -c"
1485 elif test -f $ac_dir/shtool; then
1487 ac_install_sh="$ac_aux_dir/shtool install -c"
1491 if test -z "$ac_aux_dir"; then
1492 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1493 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1494 { (exit 1); exit 1; }; }
1496 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1497 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1498 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1500 # Make sure we can run config.sub.
1501 $ac_config_sub sun4 >/dev/null 2>&1 ||
1502 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1503 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1504 { (exit 1); exit 1; }; }
1506 echo "$as_me:$LINENO: checking build system type" >&5
1507 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1508 if test "${ac_cv_build+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 ac_cv_build_alias=$build_alias
1512 test -z "$ac_cv_build_alias" &&
1513 ac_cv_build_alias=`$ac_config_guess`
1514 test -z "$ac_cv_build_alias" &&
1515 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1516 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1517 { (exit 1); exit 1; }; }
1518 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1519 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1520 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1521 { (exit 1); exit 1; }; }
1524 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1525 echo "${ECHO_T}$ac_cv_build" >&6
1527 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1528 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1529 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532 case ${build_alias} in
1533 "") build_noncanonical=${build} ;;
1534 *) build_noncanonical=${build_alias} ;;
1539 case ${host_alias} in
1540 "") host_noncanonical=${build_noncanonical} ;;
1541 *) host_noncanonical=${host_alias} ;;
1546 case ${target_alias} in
1547 "") target_noncanonical=${host_noncanonical} ;;
1548 *) target_noncanonical=${target_alias} ;;
1554 test "$host_noncanonical" = "$target_noncanonical" &&
1555 test "$program_prefix$program_suffix$program_transform_name" = \
1557 program_transform_name=s,y,y,
1559 echo "$as_me:$LINENO: checking host system type" >&5
1560 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561 if test "${ac_cv_host+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 ac_cv_host_alias=$host_alias
1565 test -z "$ac_cv_host_alias" &&
1566 ac_cv_host_alias=$ac_cv_build_alias
1567 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1573 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574 echo "${ECHO_T}$ac_cv_host" >&6
1576 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581 echo "$as_me:$LINENO: checking target system type" >&5
1582 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583 if test "${ac_cv_target+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 ac_cv_target_alias=$target_alias
1587 test "x$ac_cv_target_alias" = "x" &&
1588 ac_cv_target_alias=$ac_cv_host_alias
1589 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1595 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596 echo "${ECHO_T}$ac_cv_target" >&6
1597 target=$ac_cv_target
1598 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1603 # The aliases save the names the user supplied, while $host etc.
1604 # will get canonicalized.
1605 test -n "$target_alias" &&
1606 test "$program_prefix$program_suffix$program_transform_name" = \
1608 program_prefix=${target_alias}-
1609 test "$program_prefix" != NONE &&
1610 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1611 # Use a double $ so make ignores it.
1612 test "$program_suffix" != NONE &&
1613 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1614 # Double any \ or $. echo might interpret backslashes.
1615 # By default was `s,x,x', remove it if useless.
1616 cat <<\_ACEOF >conftest.sed
1617 s/[\\$]/&&/g;s/;s,x,x,$//
1619 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1624 # Get 'install' or 'install-sh' and its variants.
1625 # Find a good install program. We prefer a C program (faster),
1626 # so one script is as good as another. But avoid the broken or
1627 # incompatible versions:
1628 # SysV /etc/install, /usr/sbin/install
1629 # SunOS /usr/etc/install
1630 # IRIX /sbin/install
1632 # AmigaOS /C/install, which installs bootblocks on floppy discs
1633 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1634 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1635 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1636 # OS/2's system install, which has a completely different semantic
1637 # ./install, which can be erroneously created by make from ./install.sh.
1638 # Reject install programs that cannot install multiple files.
1639 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1640 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1641 if test -z "$INSTALL"; then
1642 if test "${ac_cv_path_install+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 # Account for people who put trailing slashes in PATH elements.
1652 ./ | .// | /cC/* | \
1653 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1654 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1657 # OSF1 and SCO ODT 3.0 have their own names for install.
1658 # Don't use installbsd from OSF since it installs stuff as root
1660 for ac_prog in ginstall scoinst install; do
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1663 if test $ac_prog = install &&
1664 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # AIX install. It has an incompatible calling convention.
1667 elif test $ac_prog = install &&
1668 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1669 # program-specific install script used by HP pwplus--don't use.
1672 rm -rf conftest.one conftest.two conftest.dir
1673 echo one > conftest.one
1674 echo two > conftest.two
1676 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1677 test -s conftest.one && test -s conftest.two &&
1678 test -s conftest.dir/conftest.one &&
1679 test -s conftest.dir/conftest.two
1681 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1692 rm -rf conftest.one conftest.two conftest.dir
1695 if test "${ac_cv_path_install+set}" = set; then
1696 INSTALL=$ac_cv_path_install
1698 # As a last resort, use the slow shell script. Don't cache a
1699 # value for INSTALL within a source directory, because that will
1700 # break other packages using the cache if that directory is
1701 # removed, or if the value is a relative name.
1702 INSTALL=$ac_install_sh
1705 echo "$as_me:$LINENO: result: $INSTALL" >&5
1706 echo "${ECHO_T}$INSTALL" >&6
1708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1709 # It thinks the first close brace ends the variable substitution.
1710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1716 echo "$as_me:$LINENO: checking whether ln works" >&5
1717 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1718 if test "${acx_cv_prog_LN+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 rm -f conftestdata_t
1722 echo >conftestdata_f
1723 if ln conftestdata_f conftestdata_t 2>/dev/null
1729 rm -f conftestdata_f conftestdata_t
1732 if test $acx_cv_prog_LN = no; then
1734 echo "$as_me:$LINENO: result: no, using $LN" >&5
1735 echo "${ECHO_T}no, using $LN" >&6
1737 LN="$acx_cv_prog_LN"
1738 echo "$as_me:$LINENO: result: yes" >&5
1739 echo "${ECHO_T}yes" >&6
1742 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1743 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1745 if test "$LN_S" = "ln -s"; then
1746 echo "$as_me:$LINENO: result: yes" >&5
1747 echo "${ECHO_T}yes" >&6
1749 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1750 echo "${ECHO_T}no, using $LN_S" >&6
1754 ### we might need to use some other shell than /bin/sh for running subshells
1755 ### If we are on Windows, search for the shell. This will permit people
1756 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1757 ### without also having to set CONFIG_SHELL. This code will work when
1758 ### using bash, which sets OSTYPE.
1761 if test x${CONFIG_SHELL} = x ; then
1762 if test ! -f /bin/sh ; then
1763 if test x${SHELL} != x && test -f ${SHELL} ; then
1764 CONFIG_SHELL=${SHELL}
1767 for prog in sh sh.exe bash bash.exe; do
1768 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1769 for dir in $PATH; do
1770 test -z "$dir" && dir=.
1771 if test -f $dir/$prog; then
1772 CONFIG_SHELL=$dir/$prog
1778 test -n "${CONFIG_SHELL}" && break
1786 config_shell=${CONFIG_SHELL-/bin/sh}
1789 # if PWD already has a value, it is probably wrong.
1790 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1792 # Export original configure arguments for use by sub-configures.
1793 # Quote arguments with shell meta charatcers.
1794 TOPLEVEL_CONFIGURE_ARGUMENTS=
1795 set -- "$progname" "$@"
1799 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1800 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1801 # if the argument is of the form -foo=baz, quote the baz part only
1802 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1805 # Add the quoted argument to the list.
1806 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1808 if test "$silent" = yes; then
1809 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1811 # Remove the initial space we just introduced and, as these will be
1812 # expanded by make, quote '$'.
1813 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1816 moveifchange=${srcdir}/move-if-change
1818 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1820 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1822 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1823 INSTALL="${srcpwd}/install-sh -c"
1826 # Set srcdir to "." if that's what it is.
1827 # This is important for multilib support.
1829 if test "${pwd}" = "${srcpwd}" ; then
1837 ### To add a new directory to the tree, first choose whether it is a target
1838 ### or a host dependent tool. Then put it into the appropriate list
1839 ### (library or tools, host or target), doing a dependency sort.
1841 # Subdirs will be configured in the order listed in build_configdirs,
1842 # configdirs, or target_configdirs; see the serialization section below.
1844 # Dependency sorting is only needed when *configuration* must be done in
1845 # a particular order. In all cases a dependency should be specified in
1846 # the Makefile, whether or not it's implicitly specified here.
1848 # Double entries in build_configdirs, configdirs, or target_configdirs may
1849 # cause circular dependencies and break everything horribly.
1851 # these library is used by various programs built for the build
1854 build_libs="build-libiberty"
1856 # these tools are built for the build environment
1857 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1859 # these libraries are used by various programs built for the host environment
1861 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1863 # these tools are built for the host environment
1864 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1865 # know that we are building the simulator.
1866 # binutils, gas and ld appear in that order because it makes sense to run
1867 # "make check" in that particular order.
1868 # If --enable-gold is used, "gold" will replace "ld".
1869 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"
1871 # libgcj represents the runtime libraries only used by gcj.
1872 libgcj="target-libffi \
1877 # these libraries are built for the target environment, and are built after
1878 # the host libraries and the host tools (which may be a cross compiler)
1880 target_libraries="target-libgcc \
1885 target-libstdc++-v3 \
1888 target-libgfortran \
1894 # these tools are built using the target libraries, and are intended to
1895 # run only in the target environment
1897 # note: any program that *uses* libraries that are in the "target_libraries"
1898 # list belongs in this list. those programs are also very likely
1899 # candidates for the "native_only" list which follows
1901 target_tools="target-examples target-groff target-gperf target-rda"
1903 ################################################################################
1905 ## All tools belong in one of the four categories, and are assigned above
1906 ## We assign ${configdirs} this way to remove all embedded newlines. This
1907 ## is important because configure will choke if they ever get through.
1908 ## ${configdirs} is directories we build using the host tools.
1909 ## ${target_configdirs} is directories we build using the target tools.
1910 configdirs=`echo ${host_libs} ${host_tools}`
1911 target_configdirs=`echo ${target_libraries} ${target_tools}`
1912 build_configdirs=`echo ${build_libs} ${build_tools}`
1916 ################################################################################
1918 srcname="gnu development package"
1920 # This gets set non-empty for some net releases of packages.
1923 # Define is_cross_compiler to save on calls to 'test'.
1925 if test x"${host}" = x"${target}" ; then
1926 is_cross_compiler=no
1928 is_cross_compiler=yes
1931 # Find the build and target subdir names.
1933 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1934 # have matching libraries, they should use host libraries: Makefile.tpl
1935 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1936 # However, they still use the build modules, because the corresponding
1937 # host modules (e.g. bison) are only built for the host when bootstrap
1939 # - build_subdir is where we find build modules, and never changes.
1940 # - build_libsubdir is where we find build libraries, and can be overridden.
1942 # Prefix 'build-' so this never conflicts with target_subdir.
1943 build_subdir="build-${build_noncanonical}"
1945 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1946 if test "${with_build_libsubdir+set}" = set; then
1947 withval="$with_build_libsubdir"
1948 build_libsubdir="$withval"
1950 build_libsubdir="$build_subdir"
1952 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1953 if ( test $srcdir = . && test -d gcc ) \
1954 || test -d $srcdir/../host-${host_noncanonical}; then
1955 host_subdir="host-${host_noncanonical}"
1960 target_subdir=${target_noncanonical}
1963 # Skipdirs are removed silently.
1965 # Noconfigdirs are removed loudly.
1969 # Make sure we don't let GNU ld be added if we didn't want it.
1970 if test x$with_gnu_ld = xno ; then
1972 noconfigdirs="$noconfigdirs ld gold"
1976 # Make sure we don't let GNU as be added if we didn't want it.
1977 if test x$with_gnu_as = xno ; then
1979 noconfigdirs="$noconfigdirs gas"
1982 # some tools are so dependent upon X11 that if we're not building with X,
1983 # it's not even worth trying to configure, much less build, that tool.
1986 yes | "") ;; # the default value for this tree is that X11 is available
1988 skipdirs="${skipdirs} tk itcl libgui"
1989 # We won't be able to build gdbtk without X.
1992 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1995 # Some tools are only suitable for building in a "native" situation.
1996 # Remove these if host!=target.
1997 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"
1999 # Similarly, some are only suitable for cross toolchains.
2000 # Remove these if host=target.
2001 cross_only="target-libgloss target-newlib target-opcodes"
2003 case $is_cross_compiler in
2004 no) skipdirs="${skipdirs} ${cross_only}" ;;
2005 yes) skipdirs="${skipdirs} ${native_only}" ;;
2008 # If both --with-headers and --with-libs are specified, default to
2010 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2011 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2012 if test x"${with_newlib}" = x ; then
2017 # Recognize --with-newlib/--without-newlib.
2018 case ${with_newlib} in
2019 no) skipdirs="${skipdirs} target-newlib" ;;
2020 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2023 # Handle --enable-gold.
2025 # Check whether --enable-gold or --disable-gold was given.
2026 if test "${enable_gold+set}" = set; then
2027 enableval="$enable_gold"
2028 ENABLE_GOLD=$enableval
2032 if test "${ENABLE_GOLD}" = "yes"; then
2033 # Check for ELF target.
2036 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2037 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2038 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2040 *-*-linux*aout* | *-*-linux*oldld*)
2048 if test "$is_elf" = "yes"; then
2049 # Check for target supported by gold.
2051 i?86-*-* | x86_64-*-* | sparc*-*-*)
2052 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2058 # Configure extra directories which are host specific
2062 configdirs="$configdirs libtermcap" ;;
2065 # A target can indicate whether a language isn't supported for some reason.
2066 # Only spaces may be used in this macro; not newlines or tabs.
2067 unsupported_languages=
2069 # Remove more programs from consideration, based on the host or
2070 # target this usually means that a port of the program doesn't
2075 noconfigdirs="$noconfigdirs byacc"
2077 i[3456789]86-*-vsta)
2078 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2080 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2081 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2084 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2086 i[3456789]86-*-mingw32*)
2087 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2088 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2090 i[3456789]86-*-beos*)
2091 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2094 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2097 noconfigdirs="$noconfigdirs rcs"
2100 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2103 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2108 # Check whether --enable-libada or --disable-libada was given.
2109 if test "${enable_libada+set}" = set; then
2110 enableval="$enable_libada"
2111 ENABLE_LIBADA=$enableval
2115 if test "${ENABLE_LIBADA}" != "yes" ; then
2116 noconfigdirs="$noconfigdirs gnattools"
2119 # Check whether --enable-libssp or --disable-libssp was given.
2120 if test "${enable_libssp+set}" = set; then
2121 enableval="$enable_libssp"
2122 ENABLE_LIBSSP=$enableval
2127 # Save it here so that, even in case of --enable-libgcj, if the Java
2128 # front-end isn't enabled, we still get libgcj disabled.
2129 libgcj_saved=$libgcj
2130 case $enable_libgcj in
2132 # If we reset it here, it won't get added to noconfigdirs in the
2133 # target-specific build rules, so it will be forcibly enabled
2134 # (unless the Java language itself isn't enabled).
2138 # Make sure we get it printed in the list of not supported target libs.
2139 noconfigdirs="$noconfigdirs ${libgcj}"
2144 # Disable libmudflap on some systems.
2145 if test x$enable_libmudflap = x ; then
2147 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
2148 # Enable libmudflap by default in GNU and friends.
2151 # Enable libmudflap by default in FreeBSD.
2154 # Disable it by default everywhere else.
2155 noconfigdirs="$noconfigdirs target-libmudflap"
2160 # Disable libgomp on non POSIX hosted systems.
2161 if test x$enable_libgomp = x ; then
2162 # Enable libgomp by default on hosted POSIX systems.
2164 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2166 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2168 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2170 *-*-darwin* | *-*-aix*)
2173 noconfigdirs="$noconfigdirs target-libgomp"
2178 # Default libgloss CPU subdirectory.
2179 libgloss_dir="$target_cpu"
2183 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2185 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
2186 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
2187 noconfigdirs="$noconfigdirs sim target-rda"
2190 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2191 noconfigdirs="$noconfigdirs sim target-rda"
2192 noconfigdirs="$noconfigdirs ${libgcj}"
2194 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2195 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2198 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2199 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2200 && test -f /usr/local/include/gmp.h; then
2204 # Skip some stuff that's unsupported on some FreeBSD configurations.
2209 noconfigdirs="$noconfigdirs ${libgcj}"
2214 # Remove unsupported stuff on all kaOS configurations.
2215 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2216 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2217 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2218 noconfigdirs="$noconfigdirs target-libgloss"
2221 # Skip some stuff on all NetBSD configurations.
2222 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2224 # Skip some stuff that's unsupported on some NetBSD configurations.
2226 i*86-*-netbsdelf*) ;;
2227 arm*-*-netbsdelf*) ;;
2229 noconfigdirs="$noconfigdirs ${libgcj}"
2234 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2237 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2239 # The tpf target doesn't support gdb yet.
2241 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2244 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2247 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2250 # ld works, but does not support shared libraries.
2251 # newlib is not 64 bit ready. I'm not sure about fileutils.
2252 # gas doesn't generate exception information.
2253 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2256 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2259 # newlib is not 64 bit ready
2260 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2263 # newlib is not 64 bit ready
2264 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2267 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2270 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2272 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2273 noconfigdirs="$noconfigdirs ${libgcj}"
2274 noconfigdirs="$noconfigdirs target-examples"
2275 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2276 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2277 noconfigdirs="$noconfigdirs expect dejagnu"
2278 # the C++ libraries don't build on top of CE's C libraries
2279 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2280 noconfigdirs="$noconfigdirs target-newlib"
2282 *-*-cygwin*) ;; # keep gdb and readline
2283 *) noconfigdirs="$noconfigdirs gdb readline"
2289 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2293 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2294 noconfigdirs="$noconfigdirs ${libgcj}"
2297 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2298 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2301 arm*-*-linux-gnueabi)
2302 noconfigdirs="$noconfigdirs target-qthreads"
2303 noconfigdirs="$noconfigdirs target-libobjc"
2304 case ${with_newlib} in
2305 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2310 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2314 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2317 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2320 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2323 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2326 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2329 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2332 noconfigdirs="$noconfigdirs gdb"
2333 if test x${is_cross_compiler} != xno ; then
2334 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2337 c4x-*-* | tic4x-*-*)
2338 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2340 c54x*-*-* | tic54x-*-*)
2341 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2344 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2346 cris-*-* | crisv32-*-*)
2347 unsupported_languages="$unsupported_languages java"
2350 unsupported_languages="$unsupported_languages fortran"
2351 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2353 noconfigdirs="$noconfigdirs target-boehm-gc";;
2355 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2357 unsupported_languages="$unsupported_languages fortran"
2358 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2363 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2366 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2369 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2371 ep9312-*-elf | ep9312-*-coff)
2375 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2378 noconfigdirs="$noconfigdirs ${libgcj}"
2381 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2384 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2386 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2388 hppa*64*-*-linux* | parisc*64*-*-linux*)
2389 # In this case, it's because the hppa64-linux target is for
2390 # the kernel only at this point and has no libc, and thus no
2391 # headers, crt*.o, etc., all of which are needed by these.
2392 noconfigdirs="$noconfigdirs target-zlib"
2394 parisc*-*-linux* | hppa*-*-linux*)
2398 hppa*-*-openbsd* | \
2400 noconfigdirs="$noconfigdirs ${libgcj}"
2403 noconfigdirs="$noconfigdirs ld shellutils"
2409 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2410 # build on HP-UX 10.20.
2411 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2414 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2417 # No gdb support yet.
2418 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2421 # No gdb or ld support yet.
2422 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2426 i[3456789]86-*-coff | i[3456789]86-*-elf)
2427 noconfigdirs="$noconfigdirs ${libgcj}"
2430 i[3456789]86-*-linux*)
2431 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2432 # not build java stuff by default.
2435 noconfigdirs="$noconfigdirs ${libgcj}";;
2438 # This section makes it possible to build newlib natively on linux.
2439 # If we are using a cross compiler then don't configure newlib.
2440 if test x${is_cross_compiler} != xno ; then
2441 noconfigdirs="$noconfigdirs target-newlib"
2443 noconfigdirs="$noconfigdirs target-libgloss"
2444 # If we are not using a cross compiler, do configure newlib.
2445 # Note however, that newlib will only be configured in this situation
2446 # if the --with-newlib option has been given, because otherwise
2447 # 'target-newlib' will appear in skipdirs.
2449 i[3456789]86-*-mingw32*)
2450 target_configdirs="$target_configdirs target-winsup"
2451 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2454 target_configdirs="$target_configdirs target-winsup"
2455 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2458 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2459 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2460 # always build newlib if winsup directory is present.
2461 if test -d "$srcdir/winsup/cygwin"; then
2462 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2463 elif test -d "$srcdir/newlib"; then
2464 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2467 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2468 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2471 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2473 i[3456789]86-*-sco3.2v5*)
2474 # The linker does not yet know about weak symbols in COFF,
2475 # and is not configured to handle mixed ELF and COFF.
2476 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2478 i[3456789]86-*-sco*)
2479 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2481 i[3456789]86-*-solaris2*)
2482 noconfigdirs="$noconfigdirs target-libgloss"
2484 i[3456789]86-*-sysv4*)
2485 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2487 i[3456789]86-*-beos*)
2488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2490 i[3456789]86-*-rdos*)
2491 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2494 noconfigdirs="$noconfigdirs ${libgcj}"
2496 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2497 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2498 libgloss_dir=m68hc11
2501 noconfigdirs="$noconfigdirs ${libgcj}"
2504 noconfigdirs="$noconfigdirs ${libgcj}"
2506 m68*-*-* | fido-*-*)
2510 # The EPOC C++ environment does not support exceptions or rtti,
2511 # and so building libstdc++-v3 tends not to always work.
2512 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2515 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2516 unsupported_languages="$unsupported_languages fortran java"
2519 noconfigdirs="$noconfigdirs ${libgcj}"
2522 noconfigdirs="$noconfigdirs ${libgcj}"
2525 noconfigdirs="$noconfigdirs sim"
2528 # copied from rs6000-*-* entry
2529 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2531 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2532 target_configdirs="$target_configdirs target-winsup"
2533 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2534 # always build newlib.
2535 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2537 # This is temporary until we can link against shared libraries
2538 powerpcle-*-solaris*)
2539 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2543 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2546 noconfigdirs="$noconfigdirs ${libgcj}"
2549 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2553 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2556 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2559 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2562 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2565 skipdirs="$skipdirs target-libiberty"
2566 noconfigdirs="$noconfigdirs ${libgcj}"
2567 if test x$with_newlib = xyes; then
2568 noconfigdirs="$noconfigdirs gprof"
2573 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2576 # Linking libjava exceeds command-line length limits on at least
2577 # IRIX 6.2, but not on IRIX 6.5.
2578 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2579 # <oldham@codesourcery.com>
2580 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2583 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2586 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2589 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2593 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2597 i[3456789]86-*-vsta) ;; # don't add gprof back in
2598 i[3456789]86-*-go32*) ;; # don't add gprof back in
2599 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2600 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2602 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2604 sparclet-*-aout* | sparc86x-*-*)
2608 noconfigdirs="$noconfigdirs ${libgcj}"
2611 noconfigdirs="$noconfigdirs ${libgcj}"
2615 noconfigdirs="$noconfigdirs ${libgcj}"
2619 noconfigdirs="$noconfigdirs ${libgcj}"
2620 if test x${is_cross_compiler} != xno ; then
2621 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2626 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2627 noconfigdirs="$noconfigdirs ${libgcj}"
2629 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2632 skipdirs="target-libssp"
2635 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2638 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2641 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2644 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2647 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2650 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2653 noconfigdirs="$noconfigdirs ${libgcj}"
2656 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2658 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2662 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2665 noconfigdirs="$noconfigdirs ${libgcj}"
2669 # If we aren't building newlib, then don't build libgloss, since libgloss
2670 # depends upon some newlib header files.
2671 case "${noconfigdirs}" in
2672 *target-libgloss*) ;;
2673 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2676 # Work in distributions that contain no compiler tools, like Autoconf.
2678 host_makefile_frag=/dev/null
2679 if test -d ${srcdir}/config ; then
2682 # Avoid "too much defining" errors from HPUX compiler.
2683 tentative_cc="cc -Wp,-H256000"
2684 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2685 # If it's HP/UX ar, this should be harmless.
2689 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2692 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2693 # chokes on bfd, the compiler won't let you assign integers to enums, and
2694 # other problems. Defining CC to gcc is a questionable way to say "don't use
2695 # the apollo compiler" (the preferred version of GCC could be called cc,
2696 # or whatever), but I'm not sure leaving CC as cc is any better...
2697 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2698 # Used to have BISON=yacc.
2702 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2705 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2706 tentative_cc="cc -Xa"
2707 host_makefile_frag="config/mh-cxux"
2709 m88k-motorola-sysv*)
2712 tentative_cc="cc -Wf,-XNg1000"
2713 host_makefile_frag="config/mh-decstation"
2716 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2717 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2718 host_makefile_frag="config/mh-necv4"
2721 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2722 # environment. Also bump switch table size so that cp-parse will
2723 # compile. Bump string length limit so linker builds.
2724 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2727 host_makefile_frag="config/mh-sysv4"
2730 # This is for a MIPS running RISC/os 4.52C.
2732 # This is needed for GDB, but needs to be in the top-level make because
2733 # if a library is compiled with the bsd headers and gets linked with the
2734 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2735 # a different size).
2736 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2737 # known except to select the sysv environment. Could we use /proc instead?
2738 # These "sysv environments" and "bsd environments" often end up being a pain.
2740 # This is not part of CFLAGS because perhaps not all C compilers have this
2742 tentative_cc="cc -systype sysv"
2747 i[3456789]86-*-sysv5*)
2748 host_makefile_frag="config/mh-sysv5"
2750 i[3456789]86-*-dgux*)
2751 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2752 host_makefile_frag="config/mh-dgux386"
2754 i[3456789]86-ncr-sysv4.3*)
2755 # The MetaWare compiler will generate a copyright message unless you
2756 # turn it off by adding the -Hnocopyr flag.
2757 tentative_cc="cc -Hnocopyr"
2759 i[3456789]86-ncr-sysv4*)
2760 # for an NCR 3000 (i486/SVR4) system.
2761 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2762 # This compiler not only emits obnoxious copyright messages every time
2763 # you run it, but it chokes and dies on a whole bunch of GNU source
2764 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2765 tentative_cc="/usr/ccs/ATT/cc"
2766 host_makefile_frag="config/mh-ncr3000"
2768 i[3456789]86-*-sco3.2v5*)
2770 i[3456789]86-*-sco*)
2771 # The native C compiler botches some simple uses of const. Unfortunately,
2772 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2773 tentative_cc="cc -Dconst="
2774 host_makefile_frag="config/mh-sco"
2776 i[3456789]86-*-udk*)
2777 host_makefile_frag="config/mh-sysv5"
2779 i[3456789]86-*-solaris2*)
2780 host_makefile_frag="config/mh-sysv4"
2782 i[3456789]86-*-msdosdjgpp*)
2783 host_makefile_frag="config/mh-djgpp"
2787 echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2788 echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2789 echo a >cygwin-cat-check
2790 if test `cat cygwin-cat-check` == a ; then
2792 echo "$as_me:$LINENO: result: yes" >&5
2793 echo "${ECHO_T}yes" >&6
2796 echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6
2798 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2799 Please either mount the build directory in binary mode or run the following
2800 commands before running any configure script:
2804 echo "$as_me: error: The cat command does not ignore carriage return characters.
2805 Please either mount the build directory in binary mode or run the following
2806 commands before running any configure script:
2810 { (exit 1); exit 1; }; }
2813 host_makefile_frag="config/mh-cygwin"
2816 host_makefile_frag="config/mh-mingw"
2819 host_makefile_frag="config/mh-interix"
2822 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2826 host_makefile_frag="config/mh-solaris"
2829 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2830 # without overflowing the jump tables (-J says to use a 32 bit table)
2831 tentative_cc="cc -J"
2834 tentative_cc="cc -Wp,-H256000"
2837 tentative_cc="cc -Wp,-H256000"
2840 # /bin/cc is less than useful for our purposes. Always use GCC
2841 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2842 host_makefile_frag="config/mh-lynxrs6k"
2845 host_makefile_frag="config/mh-ppc-darwin"
2848 host_makefile_frag="config/mh-ppc-aix"
2851 host_makefile_frag="config/mh-ppc-aix"
2854 # /bin/cc is less than useful for our purposes. Always use GCC
2855 tentative_cc="/bin/gcc"
2858 host_makefile_frag="config/mh-sysv4"
2860 # This is placed last to prevent interfering with the cases above.
2862 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2863 host_makefile_frag="config/mh-x86omitfp"
2868 # If we aren't going to be using gcc, see if we can extract a definition
2869 # of CC from the fragment.
2870 # Actually, use the 'pre-extracted' version above.
2871 if test -z "${CC}" && test "${build}" = "${host}" ; then
2872 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2874 for dir in $PATH; do
2875 test -z "$dir" && dir=.
2876 if test -f $dir/gcc; then
2882 if test -z "${found}" && test -n "${tentative_cc}" ; then
2887 if test "${build}" != "${host}" ; then
2888 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2889 AS_FOR_BUILD=${AS_FOR_BUILD-as}
2890 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2891 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2892 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2893 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2894 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2895 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2896 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2897 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2898 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2899 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2901 AR_FOR_BUILD="\$(AR)"
2902 AS_FOR_BUILD="\$(AS)"
2903 CC_FOR_BUILD="\$(CC)"
2904 CXX_FOR_BUILD="\$(CXX)"
2905 GCJ_FOR_BUILD="\$(GCJ)"
2906 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2907 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2908 LD_FOR_BUILD="\$(LD)"
2909 NM_FOR_BUILD="\$(NM)"
2910 RANLIB_FOR_BUILD="\$(RANLIB)"
2911 WINDRES_FOR_BUILD="\$(WINDRES)"
2912 WINDMC_FOR_BUILD="\$(WINDMC)"
2916 ac_cpp='$CPP $CPPFLAGS'
2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 if test -n "$ac_tool_prefix"; then
2921 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2922 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2923 echo "$as_me:$LINENO: checking for $ac_word" >&5
2924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2925 if test "${ac_cv_prog_CC+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 if test -n "$CC"; then
2949 echo "$as_me:$LINENO: result: $CC" >&5
2950 echo "${ECHO_T}$CC" >&6
2952 echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6
2957 if test -z "$ac_cv_prog_CC"; then
2959 # Extract the first word of "gcc", so it can be a program name with args.
2960 set dummy gcc; ac_word=$2
2961 echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_ac_ct_CC="gcc"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2988 echo "${ECHO_T}$ac_ct_CC" >&6
2990 echo "$as_me:$LINENO: result: no" >&5
2991 echo "${ECHO_T}no" >&6
2999 if test -z "$CC"; then
3000 if test -n "$ac_tool_prefix"; then
3001 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3002 set dummy ${ac_tool_prefix}cc; ac_word=$2
3003 echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_prog_CC+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_CC="${ac_tool_prefix}cc"
3019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 if test -n "$CC"; then
3029 echo "$as_me:$LINENO: result: $CC" >&5
3030 echo "${ECHO_T}$CC" >&6
3032 echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6
3037 if test -z "$ac_cv_prog_CC"; then
3039 # Extract the first word of "cc", so it can be a program name with args.
3040 set dummy cc; ac_word=$2
3041 echo "$as_me:$LINENO: checking for $ac_word" >&5
3042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3043 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 if test -n "$ac_ct_CC"; then
3047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_ac_ct_CC="cc"
3057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3066 if test -n "$ac_ct_CC"; then
3067 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3068 echo "${ECHO_T}$ac_ct_CC" >&6
3070 echo "$as_me:$LINENO: result: no" >&5
3071 echo "${ECHO_T}no" >&6
3080 if test -z "$CC"; then
3081 # Extract the first word of "cc", so it can be a program name with args.
3082 set dummy cc; ac_word=$2
3083 echo "$as_me:$LINENO: checking for $ac_word" >&5
3084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085 if test "${ac_cv_prog_CC+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3100 ac_prog_rejected=yes
3104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 if test $ac_prog_rejected = yes; then
3111 # We found a bogon in the path, so make sure we never use it.
3112 set dummy $ac_cv_prog_CC
3114 if test $# != 0; then
3115 # We chose a different compiler from the bogus one.
3116 # However, it has the same basename, so the bogon will be chosen
3117 # first if we set CC to just the basename; use the full file name.
3119 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3125 if test -n "$CC"; then
3126 echo "$as_me:$LINENO: result: $CC" >&5
3127 echo "${ECHO_T}$CC" >&6
3129 echo "$as_me:$LINENO: result: no" >&5
3130 echo "${ECHO_T}no" >&6
3134 if test -z "$CC"; then
3135 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_CC+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$CC"; then
3166 echo "$as_me:$LINENO: result: $CC" >&5
3167 echo "${ECHO_T}$CC" >&6
3169 echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3173 test -n "$CC" && break
3176 if test -z "$CC"; then
3180 # Extract the first word of "$ac_prog", so it can be a program name with args.
3181 set dummy $ac_prog; ac_word=$2
3182 echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 if test -n "$ac_ct_CC"; then
3188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_ac_ct_CC="$ac_prog"
3198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3207 if test -n "$ac_ct_CC"; then
3208 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3209 echo "${ECHO_T}$ac_ct_CC" >&6
3211 echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6
3215 test -n "$ac_ct_CC" && break
3224 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3225 See \`config.log' for more details." >&5
3226 echo "$as_me: error: no acceptable C compiler found in \$PATH
3227 See \`config.log' for more details." >&2;}
3228 { (exit 1); exit 1; }; }
3230 # Provide some information about the compiler.
3231 echo "$as_me:$LINENO:" \
3232 "checking for C compiler version" >&5
3233 ac_compiler=`set X $ac_compile; echo $2`
3234 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3235 (eval $ac_compiler --version </dev/null >&5) 2>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }
3239 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3240 (eval $ac_compiler -v </dev/null >&5) 2>&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }
3244 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3245 (eval $ac_compiler -V </dev/null >&5) 2>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }
3250 cat >conftest.$ac_ext <<_ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3265 ac_clean_files_save=$ac_clean_files
3266 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3267 # Try to create an executable without -o first, disregard a.out.
3268 # It will help us diagnose broken compilers, and finding out an intuition
3270 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3271 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3272 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3273 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3274 (eval $ac_link_default) 2>&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; then
3278 # Find the output, starting from the most likely. This scheme is
3279 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3282 # Be careful to initialize this variable, since it used to be cached.
3283 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3285 # b.out is created by i960 compilers.
3286 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3288 test -f "$ac_file" || continue
3290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3293 # This is the source file.
3296 # We found the default executable, but exeext='' is most
3300 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3301 # FIXME: I believe we export ac_cv_exeext for Libtool,
3302 # but it would be cool to find out if it's true. Does anybody
3303 # maintain Libtool? --akim.
3311 echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3314 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3315 See \`config.log' for more details." >&5
3316 echo "$as_me: error: C compiler cannot create executables
3317 See \`config.log' for more details." >&2;}
3318 { (exit 77); exit 77; }; }
3321 ac_exeext=$ac_cv_exeext
3322 echo "$as_me:$LINENO: result: $ac_file" >&5
3323 echo "${ECHO_T}$ac_file" >&6
3325 # Check the compiler produces executables we can run. If not, either
3326 # the compiler is broken, or we cross compile.
3327 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3328 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3329 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3330 # If not cross compiling, check that we can run a simple program.
3331 if test "$cross_compiling" != yes; then
3332 if { ac_try='./$ac_file'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3340 if test "$cross_compiling" = maybe; then
3343 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3344 If you meant to cross compile, use \`--host'.
3345 See \`config.log' for more details." >&5
3346 echo "$as_me: error: cannot run C compiled programs.
3347 If you meant to cross compile, use \`--host'.
3348 See \`config.log' for more details." >&2;}
3349 { (exit 1); exit 1; }; }
3353 echo "$as_me:$LINENO: result: yes" >&5
3354 echo "${ECHO_T}yes" >&6
3356 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3357 ac_clean_files=$ac_clean_files_save
3358 # Check the compiler produces executables we can run. If not, either
3359 # the compiler is broken, or we cross compile.
3360 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3361 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3362 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3363 echo "${ECHO_T}$cross_compiling" >&6
3365 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3366 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3368 (eval $ac_link) 2>&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; then
3372 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3373 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3374 # work properly (i.e., refer to `conftest.exe'), while it won't with
3376 for ac_file in conftest.exe conftest conftest.*; do
3377 test -f "$ac_file" || continue
3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3380 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3387 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3388 See \`config.log' for more details." >&5
3389 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3390 See \`config.log' for more details." >&2;}
3391 { (exit 1); exit 1; }; }
3394 rm -f conftest$ac_cv_exeext
3395 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3396 echo "${ECHO_T}$ac_cv_exeext" >&6
3398 rm -f conftest.$ac_ext
3399 EXEEXT=$ac_cv_exeext
3401 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3402 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3403 if test "${ac_cv_objext+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3421 rm -f conftest.o conftest.obj
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423 (eval $ac_compile) 2>&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; then
3427 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3430 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3439 See \`config.log' for more details." >&5
3440 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3441 See \`config.log' for more details." >&2;}
3442 { (exit 1); exit 1; }; }
3445 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3447 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3448 echo "${ECHO_T}$ac_cv_objext" >&6
3449 OBJEXT=$ac_cv_objext
3451 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3452 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3453 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 cat >conftest.$ac_ext <<_ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h. */
3474 rm -f conftest.$ac_objext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>conftest.er1
3478 grep -v '^ *+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -z "$ac_c_werror_flag"
3484 || test ! -s conftest.err'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; } &&
3490 { ac_try='test -s conftest.$ac_objext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3507 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3508 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3509 GCC=`test $ac_compiler_gnu = yes && echo yes`
3510 ac_test_CFLAGS=${CFLAGS+set}
3511 ac_save_CFLAGS=$CFLAGS
3513 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3514 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3515 if test "${ac_cv_prog_cc_g+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3533 rm -f conftest.$ac_objext
3534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535 (eval $ac_compile) 2>conftest.er1
3537 grep -v '^ *+' conftest.er1 >conftest.err
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } &&
3542 { ac_try='test -z "$ac_c_werror_flag"
3543 || test ! -s conftest.err'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3564 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3565 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3566 if test "$ac_test_CFLAGS" = set; then
3567 CFLAGS=$ac_save_CFLAGS
3568 elif test $ac_cv_prog_cc_g = yes; then
3569 if test "$GCC" = yes; then
3575 if test "$GCC" = yes; then
3581 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3582 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3583 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 ac_cv_prog_cc_stdc=no
3588 cat >conftest.$ac_ext <<_ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3596 #include <sys/types.h>
3597 #include <sys/stat.h>
3598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3599 struct buf { int x; };
3600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3601 static char *e (p, i)
3607 static char *f (char * (*g) (char **, int), char **p, ...)
3612 s = g (p, va_arg (v,int));
3617 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3618 function prototypes and stuff, but not '\xHH' hex character constants.
3619 These don't provoke an error unfortunately, instead are silently treated
3620 as 'x'. The following induces an error, until -std1 is added to get
3621 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3622 array size at least. It's necessary to write '\x00'==0 to get something
3623 that's true only with -std1. */
3624 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3626 int test (int i, double x);
3627 struct s1 {int (*f) (int a);};
3628 struct s2 {int (*f) (double a);};
3629 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3635 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3640 # Don't try gcc -ansi; that turns off useful extensions and
3641 # breaks some systems' header files.
3642 # AIX -qlanglvl=ansi
3643 # Ultrix and OSF/1 -std1
3644 # HP-UX 10.20 and later -Ae
3645 # HP-UX older versions -Aa -D_HPUX_SOURCE
3646 # SVR4 -Xc -D__EXTENSIONS__
3647 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3649 CC="$ac_save_CC $ac_arg"
3650 rm -f conftest.$ac_objext
3651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652 (eval $ac_compile) 2>conftest.er1
3654 grep -v '^ *+' conftest.er1 >conftest.err
3656 cat conftest.err >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -z "$ac_c_werror_flag"
3660 || test ! -s conftest.err'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; } &&
3666 { ac_try='test -s conftest.$ac_objext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 ac_cv_prog_cc_stdc=$ac_arg
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3679 rm -f conftest.err conftest.$ac_objext
3681 rm -f conftest.$ac_ext conftest.$ac_objext
3686 case "x$ac_cv_prog_cc_stdc" in
3688 echo "$as_me:$LINENO: result: none needed" >&5
3689 echo "${ECHO_T}none needed" >&6 ;;
3691 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3692 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3693 CC="$CC $ac_cv_prog_cc_stdc" ;;
3696 # Some people use a C++ compiler to compile C. Since we use `exit',
3697 # in C++ we need to declare it. In case someone uses the same compiler
3698 # for both compiling C and C++ we need to have the C++ compiler decide
3699 # the declaration of exit, since it's the most demanding environment.
3700 cat >conftest.$ac_ext <<_ACEOF
3705 rm -f conftest.$ac_objext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707 (eval $ac_compile) 2>conftest.er1
3709 grep -v '^ *+' conftest.er1 >conftest.err
3711 cat conftest.err >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -z "$ac_c_werror_flag"
3715 || test ! -s conftest.err'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } &&
3721 { ac_try='test -s conftest.$ac_objext'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 for ac_declaration in \
3729 'extern "C" void std::exit (int) throw (); using std::exit;' \
3730 'extern "C" void std::exit (int); using std::exit;' \
3731 'extern "C" void exit (int) throw ();' \
3732 'extern "C" void exit (int);' \
3735 cat >conftest.$ac_ext <<_ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3751 rm -f conftest.$ac_objext
3752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753 (eval $ac_compile) 2>conftest.er1
3755 grep -v '^ *+' conftest.er1 >conftest.err
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -z "$ac_c_werror_flag"
3761 || test ! -s conftest.err'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; } &&
3767 { ac_try='test -s conftest.$ac_objext'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; }; then
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3781 cat >conftest.$ac_ext <<_ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3796 rm -f conftest.$ac_objext
3797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3798 (eval $ac_compile) 2>conftest.er1
3800 grep -v '^ *+' conftest.er1 >conftest.err
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } &&
3805 { ac_try='test -z "$ac_c_werror_flag"
3806 || test ! -s conftest.err'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; } &&
3812 { ac_try='test -s conftest.$ac_objext'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; }; then
3820 echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3827 if test -n "$ac_declaration"; then
3828 echo '#ifdef __cplusplus' >>confdefs.h
3829 echo $ac_declaration >>confdefs.h
3830 echo '#endif' >>confdefs.h
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3840 ac_cpp='$CPP $CPPFLAGS'
3841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846 ac_cpp='$CXXCPP $CPPFLAGS'
3847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3850 if test -n "$ac_tool_prefix"; then
3851 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3855 echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3857 if test "${ac_cv_prog_CXX+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 if test -n "$CXX"; then
3861 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 if test -n "$CXX"; then
3881 echo "$as_me:$LINENO: result: $CXX" >&5
3882 echo "${ECHO_T}$CXX" >&6
3884 echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6
3888 test -n "$CXX" && break
3891 if test -z "$CXX"; then
3893 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3895 # Extract the first word of "$ac_prog", so it can be a program name with args.
3896 set dummy $ac_prog; ac_word=$2
3897 echo "$as_me:$LINENO: checking for $ac_word" >&5
3898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3899 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 if test -n "$ac_ct_CXX"; then
3903 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_ac_ct_CXX="$ac_prog"
3913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3922 if test -n "$ac_ct_CXX"; then
3923 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3924 echo "${ECHO_T}$ac_ct_CXX" >&6
3926 echo "$as_me:$LINENO: result: no" >&5
3927 echo "${ECHO_T}no" >&6
3930 test -n "$ac_ct_CXX" && break
3932 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3938 # Provide some information about the compiler.
3939 echo "$as_me:$LINENO:" \
3940 "checking for C++ compiler version" >&5
3941 ac_compiler=`set X $ac_compile; echo $2`
3942 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3943 (eval $ac_compiler --version </dev/null >&5) 2>&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }
3947 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3948 (eval $ac_compiler -v </dev/null >&5) 2>&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }
3952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3953 (eval $ac_compiler -V </dev/null >&5) 2>&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }
3958 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3959 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3960 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 cat >conftest.$ac_ext <<_ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3981 rm -f conftest.$ac_objext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>conftest.er1
3985 grep -v '^ *+' conftest.er1 >conftest.err
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try='test -z "$ac_cxx_werror_flag"
3991 || test ! -s conftest.err'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; } &&
3997 { ac_try='test -s conftest.$ac_objext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4011 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4014 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4015 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4016 GXX=`test $ac_compiler_gnu = yes && echo yes`
4017 ac_test_CXXFLAGS=${CXXFLAGS+set}
4018 ac_save_CXXFLAGS=$CXXFLAGS
4020 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4021 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4022 if test "${ac_cv_prog_cxx_g+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 cat >conftest.$ac_ext <<_ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4040 rm -f conftest.$ac_objext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>conftest.er1
4044 grep -v '^ *+' conftest.er1 >conftest.err
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } &&
4049 { ac_try='test -z "$ac_cxx_werror_flag"
4050 || test ! -s conftest.err'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; } &&
4056 { ac_try='test -s conftest.$ac_objext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 ac_cv_prog_cxx_g=yes
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4071 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4072 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4073 if test "$ac_test_CXXFLAGS" = set; then
4074 CXXFLAGS=$ac_save_CXXFLAGS
4075 elif test $ac_cv_prog_cxx_g = yes; then
4076 if test "$GXX" = yes; then
4082 if test "$GXX" = yes; then
4088 for ac_declaration in \
4090 'extern "C" void std::exit (int) throw (); using std::exit;' \
4091 'extern "C" void std::exit (int); using std::exit;' \
4092 'extern "C" void exit (int) throw ();' \
4093 'extern "C" void exit (int);' \
4096 cat >conftest.$ac_ext <<_ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4112 rm -f conftest.$ac_objext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>conftest.er1
4116 grep -v '^ *+' conftest.er1 >conftest.err
4118 cat conftest.err >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -z "$ac_cxx_werror_flag"
4122 || test ! -s conftest.err'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; } &&
4128 { ac_try='test -s conftest.$ac_objext'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; }; then
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4142 cat >conftest.$ac_ext <<_ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4157 rm -f conftest.$ac_objext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>conftest.er1
4161 grep -v '^ *+' conftest.er1 >conftest.err
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_cxx_werror_flag"
4167 || test ! -s conftest.err'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; } &&
4173 { ac_try='test -s conftest.$ac_objext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4188 if test -n "$ac_declaration"; then
4189 echo '#ifdef __cplusplus' >>confdefs.h
4190 echo $ac_declaration >>confdefs.h
4191 echo '#endif' >>confdefs.h
4195 ac_cpp='$CPP $CPPFLAGS'
4196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 # We must set the default linker to the linker used by gcc for the correct
4202 # operation of libtool. If LD is not defined and we are using gcc, try to
4203 # set the LD default to the ld used by gcc.
4204 if test -z "$LD"; then
4205 if test "$GCC" = yes; then
4208 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4210 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4212 case $gcc_prog_ld in
4213 # Accept absolute paths.
4214 [\\/]* | [A-Za-z]:[\\/]*)
4215 LD="$gcc_prog_ld" ;;
4223 if test -n "$ac_tool_prefix"; then
4224 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4225 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4226 echo "$as_me:$LINENO: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_prog_GNATBIND+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 if test -n "$GNATBIND"; then
4232 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 GNATBIND=$ac_cv_prog_GNATBIND
4251 if test -n "$GNATBIND"; then
4252 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4253 echo "${ECHO_T}$GNATBIND" >&6
4255 echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6
4260 if test -z "$ac_cv_prog_GNATBIND"; then
4261 ac_ct_GNATBIND=$GNATBIND
4262 # Extract the first word of "gnatbind", so it can be a program name with args.
4263 set dummy gnatbind; ac_word=$2
4264 echo "$as_me:$LINENO: checking for $ac_word" >&5
4265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4266 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 if test -n "$ac_ct_GNATBIND"; then
4270 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4289 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4290 if test -n "$ac_ct_GNATBIND"; then
4291 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4292 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4294 echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6
4298 GNATBIND=$ac_ct_GNATBIND
4300 GNATBIND="$ac_cv_prog_GNATBIND"
4303 if test -n "$ac_tool_prefix"; then
4304 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4305 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4306 echo "$as_me:$LINENO: checking for $ac_word" >&5
4307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4308 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 if test -n "$GNATMAKE"; then
4312 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 GNATMAKE=$ac_cv_prog_GNATMAKE
4331 if test -n "$GNATMAKE"; then
4332 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4333 echo "${ECHO_T}$GNATMAKE" >&6
4335 echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6
4340 if test -z "$ac_cv_prog_GNATMAKE"; then
4341 ac_ct_GNATMAKE=$GNATMAKE
4342 # Extract the first word of "gnatmake", so it can be a program name with args.
4343 set dummy gnatmake; ac_word=$2
4344 echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4346 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 if test -n "$ac_ct_GNATMAKE"; then
4350 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4359 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4369 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4370 if test -n "$ac_ct_GNATMAKE"; then
4371 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4372 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4374 echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6
4378 GNATMAKE=$ac_ct_GNATMAKE
4380 GNATMAKE="$ac_cv_prog_GNATMAKE"
4383 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4384 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4385 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 cat >conftest.adb <<EOF
4389 procedure conftest is begin null; end conftest;
4391 acx_cv_cc_gcc_supports_ada=no
4392 # There is a bug in old released versions of GCC which causes the
4393 # driver to exit successfully when the appropriate language module
4394 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4395 # Therefore we must check for the error message as well as an
4396 # unsuccessful exit.
4397 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4398 # given a .adb file, but produce no object file. So we must check
4399 # if an object file was really produced to guard against this.
4400 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4401 if test x"$errors" = x && test -f conftest.$ac_objext; then
4402 acx_cv_cc_gcc_supports_ada=yes
4406 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4407 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4409 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4415 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4416 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4417 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4423 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4424 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4427 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4430 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4431 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4434 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4440 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4441 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4442 do_compare="$gcc_cv_prog_cmp_skip"
4446 # Check for GMP and MPFR
4447 gmplibs="-lmpfr -lgmp"
4451 # Specify a location for mpfr
4452 # check for this first so it ends up on the link line before gmp.
4454 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4455 if test "${with_mpfr_dir+set}" = set; then
4456 withval="$with_mpfr_dir"
4457 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4458 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4459 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4460 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4461 { (exit 1); exit 1; }; }
4465 # Check whether --with-mpfr or --without-mpfr was given.
4466 if test "${with_mpfr+set}" = set; then
4467 withval="$with_mpfr"
4471 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4472 if test "${with_mpfr_include+set}" = set; then
4473 withval="$with_mpfr_include"
4477 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4478 if test "${with_mpfr_lib+set}" = set; then
4479 withval="$with_mpfr_lib"
4483 if test "x$with_mpfr" != x; then
4484 gmplibs="-L$with_mpfr/lib $gmplibs"
4485 gmpinc="-I$with_mpfr/include"
4487 if test "x$with_mpfr_include" != x; then
4488 gmpinc="-I$with_mpfr_include"
4490 if test "x$with_mpfr_lib" != x; then
4491 gmplibs="-L$with_mpfr_lib $gmplibs"
4493 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4494 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4495 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4496 # Do not test the mpfr version. Assume that it is sufficient, since
4497 # it is in the source tree, and the library has not been built yet
4498 # but it would be included on the link line in the version check below
4499 # hence making the test fail.
4503 # Specify a location for gmp
4505 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4506 if test "${with_gmp_dir+set}" = set; then
4507 withval="$with_gmp_dir"
4508 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4509 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4510 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4511 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4512 { (exit 1); exit 1; }; }
4516 # Check whether --with-gmp or --without-gmp was given.
4517 if test "${with_gmp+set}" = set; then
4522 # Check whether --with-gmp_include or --without-gmp_include was given.
4523 if test "${with_gmp_include+set}" = set; then
4524 withval="$with_gmp_include"
4528 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4529 if test "${with_gmp_lib+set}" = set; then
4530 withval="$with_gmp_lib"
4535 if test "x$with_gmp" != x; then
4536 gmplibs="-L$with_gmp/lib $gmplibs"
4537 gmpinc="-I$with_gmp/include $gmpinc"
4539 if test "x$with_gmp_include" != x; then
4540 gmpinc="-I$with_gmp_include $gmpinc"
4542 if test "x$with_gmp_lib" != x; then
4543 gmplibs="-L$with_gmp_lib $gmplibs"
4545 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4546 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4547 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4548 # Do not test the gmp version. Assume that it is sufficient, since
4549 # it is in the source tree, and the library has not been built yet
4550 # but it would be included on the link line in the version check below
4551 # hence making the test fail.
4555 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4557 saved_CFLAGS="$CFLAGS"
4558 CFLAGS="$CFLAGS $gmpinc"
4559 # Check GMP actually works
4560 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4561 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4563 cat >conftest.$ac_ext <<_ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4574 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4582 rm -f conftest.$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>conftest.er1
4586 grep -v '^ *+' conftest.er1 >conftest.err
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -z "$ac_c_werror_flag"
4592 || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest.$ac_objext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 echo "$as_me:$LINENO: result: yes" >&5
4605 echo "${ECHO_T}yes" >&6
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; have_gmp=no
4613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4615 if test x"$have_gmp" = xyes; then
4617 LIBS="$LIBS $gmplibs"
4618 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4619 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4620 cat >conftest.$ac_ext <<_ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h. */
4632 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4640 mpfr_atan2 (n, n, x, GMP_RNDN);
4641 mpfr_erfc (n, x, GMP_RNDN);
4642 mpfr_subnormalize (x, t, GMP_RNDN);
4648 rm -f conftest.$ac_objext conftest$ac_exeext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4650 (eval $ac_link) 2>conftest.er1
4652 grep -v '^ *+' conftest.er1 >conftest.err
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } &&
4657 { ac_try='test -z "$ac_c_werror_flag"
4658 || test ! -s conftest.err'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; } &&
4664 { ac_try='test -s conftest$ac_exeext'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 cat >conftest.$ac_ext <<_ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4682 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4685 mpfr_t n; mpfr_init(n);
4691 rm -f conftest.$ac_objext conftest$ac_exeext
4692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4693 (eval $ac_link) 2>conftest.er1
4695 grep -v '^ *+' conftest.er1 >conftest.err
4697 cat conftest.err >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try='test -z "$ac_c_werror_flag"
4701 || test ! -s conftest.err'
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; } &&
4707 { ac_try='test -s conftest$ac_exeext'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 echo "$as_me:$LINENO: result: yes" >&5
4714 echo "${ECHO_T}yes" >&6
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4719 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4720 echo "${ECHO_T}buggy but acceptable" >&6
4722 rm -f conftest.err conftest.$ac_objext \
4723 conftest$ac_exeext conftest.$ac_ext
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; have_gmp=no
4731 rm -f conftest.err conftest.$ac_objext \
4732 conftest$ac_exeext conftest.$ac_ext
4735 CFLAGS="$saved_CFLAGS"
4737 if test x$have_gmp != xyes; then
4738 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
4739 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4740 Copies of these libraries' source code can be found at their respective
4741 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4742 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4743 If you obtained GMP and/or MPFR from a vendor distribution package, make
4744 sure that you have installed both the libraries and the header files.
4745 They may be located in separate packages." >&5
4746 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
4747 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4748 Copies of these libraries' source code can be found at their respective
4749 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4750 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4751 If you obtained GMP and/or MPFR from a vendor distribution package, make
4752 sure that you have installed both the libraries and the header files.
4753 They may be located in separate packages." >&2;}
4754 { (exit 1); exit 1; }; }
4758 # Flags needed for both GMP and/or MPFR
4762 # By default, C is the only stage 1 language.
4763 stage1_languages=,c,
4765 # Figure out what language subdirectories are present.
4766 # Look if the user specified --enable-languages="..."; if not, use
4767 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4769 # NB: embedded tabs in this IF block -- do not untabify
4770 if test -d ${srcdir}/gcc; then
4771 if test x"${enable_languages+set}" != xset; then
4772 if test x"${LANGUAGES+set}" = xset; then
4773 enable_languages="${LANGUAGES}"
4774 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4776 enable_languages=all
4779 if test x"${enable_languages}" = x ||
4780 test x"${enable_languages}" = xyes;
4782 echo configure.in: --enable-languages needs at least one language argument 1>&2
4786 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4788 # 'f95' is the old name for the 'fortran' language. We issue a warning
4789 # and make the substitution.
4790 case ,${enable_languages}, in
4792 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4793 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4797 # First scan to see if an enabled language requires some other language.
4798 # We assume that a given config-lang.in will list all the language
4799 # front ends it requires, even if some are required indirectly.
4800 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4801 case ${lang_frag} in
4803 # The odd quoting in the next line works around
4804 # an apparent bug in bash 1.12 on linux.
4805 ${srcdir}/gcc/[*]/config-lang.in) ;;
4807 # From the config-lang.in, get $language, $lang_requires
4811 for other in ${lang_requires} ; do
4812 case ,${enable_languages}, in
4816 echo " \`$other' language required by \`$language'; enabling" 1>&2
4817 enable_languages="${enable_languages},${other}"
4825 new_enable_languages=,c,
4826 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4827 potential_languages=,c,
4829 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4830 case ${lang_frag} in
4832 # The odd quoting in the next line works around
4833 # an apparent bug in bash 1.12 on linux.
4834 ${srcdir}/gcc/[*]/config-lang.in) ;;
4836 # From the config-lang.in, get $language, $target_libs,
4837 # $lang_dirs, $boot_language, and $build_by_default
4843 build_by_default=yes
4845 if test x${language} = x; then
4846 echo "${lang_frag} doesn't set \$language." 1>&2
4850 case ,${enable_languages}, in
4852 # Language was explicitly selected; include it.
4856 # 'all' was selected, select it if it is a default language
4857 add_this_lang=${build_by_default}
4864 # Disable languages that need other directories if these aren't available.
4865 for i in $subdir_requires; do
4866 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4867 case ,${enable_languages}, in
4869 # Specifically requested language; tell them.
4870 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4871 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4872 { (exit 1); exit 1; }; }
4876 add_this_lang=unsupported
4881 # Disable Ada if no preexisting GNAT is available.
4882 case ,${enable_languages},:${language}:${have_gnat} in
4883 *,${language},*:ada:no)
4884 # Specifically requested language; tell them.
4885 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4886 echo "$as_me: error: GNAT is required to build $language" >&2;}
4887 { (exit 1); exit 1; }; }
4891 add_this_lang=unsupported
4895 # Disable a language that is unsupported by the target.
4896 case " $unsupported_languages " in
4898 add_this_lang=unsupported
4902 case $add_this_lang in
4904 # Remove language-dependent dirs.
4905 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4908 # Remove language-dependent dirs; still show language as supported.
4909 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4910 potential_languages="${potential_languages}${language},"
4913 new_enable_languages="${new_enable_languages}${language},"
4914 potential_languages="${potential_languages}${language},"
4915 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4916 case ${boot_language} in
4918 # Add to (comma-separated) list of stage 1 languages.
4919 stage1_languages="${stage1_languages}${language},"
4928 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4929 if test "${enable_stage1_languages+set}" = set; then
4930 enableval="$enable_stage1_languages"
4931 case ,${enable_stage1_languages}, in
4933 # Set it to something that will have no effect in the loop below
4934 enable_stage1_languages=c ;;
4936 enable_stage1_languages=`echo $new_enable_languages | \
4937 sed -e "s/^,//" -e "s/,$//" ` ;;
4939 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4940 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4943 # Add "good" languages from enable_stage1_languages to stage1_languages,
4944 # while "bad" languages go in missing_languages. Leave no duplicates.
4945 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4946 case $potential_languages in
4948 case $stage1_languages in
4950 *) stage1_languages="$stage1_languages$i," ;;
4953 case $missing_languages in
4955 *) missing_languages="$missing_languages$i," ;;
4961 # Remove leading/trailing commas that were added for simplicity
4962 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4963 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4964 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4965 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4967 if test "x$missing_languages" != x; then
4968 { { echo "$as_me:$LINENO: error:
4969 The following requested languages could not be built: ${missing_languages}
4970 Supported languages are: ${potential_languages}" >&5
4971 echo "$as_me: error:
4972 The following requested languages could not be built: ${missing_languages}
4973 Supported languages are: ${potential_languages}" >&2;}
4974 { (exit 1); exit 1; }; }
4976 if test "x$new_enable_languages" != "x$enable_languages"; then
4977 echo The following languages will be built: ${new_enable_languages}
4978 enable_languages="$new_enable_languages"
4982 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
4985 # Handle --disable-<component> generically.
4986 for dir in $configdirs $build_configdirs $target_configdirs ; do
4987 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4988 varname=`echo $dirname | sed -e s/+/_/g`
4989 if eval test x\${enable_${varname}} "=" xno ; then
4990 noconfigdirs="$noconfigdirs $dir"
4994 # Check for Boehm's garbage collector
4995 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4996 if test "${enable_objc_gc+set}" = set; then
4997 enableval="$enable_objc_gc"
4998 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4999 *,objc,*:*:yes:*target-boehm-gc*)
5000 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5001 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5002 { (exit 1); exit 1; }; }
5007 # Make sure we only build Boehm's garbage collector if required.
5008 case ,${enable_languages},:${enable_objc_gc} in
5010 # Keep target-boehm-gc if requested for Objective-C.
5013 # Otherwise remove target-boehm-gc depending on target-libjava.
5014 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5015 noconfigdirs="$noconfigdirs target-boehm-gc"
5020 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5021 # $build_configdirs and $target_configdirs.
5022 # If we have the source for $noconfigdirs entries, add them to $notsupp.
5025 for dir in . $skipdirs $noconfigdirs ; do
5026 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5027 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5028 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5029 if test -r $srcdir/$dirname/configure ; then
5030 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5033 notsupp="$notsupp $dir"
5037 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5038 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5039 if test -r $srcdir/$dirname/configure ; then
5040 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5043 notsupp="$notsupp $dir"
5047 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5048 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5049 if test -r $srcdir/$dirname/configure ; then
5050 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5053 notsupp="$notsupp $dir"
5059 # Sometimes the tools are distributed with libiberty but with no other
5060 # libraries. In that case, we don't want to build target-libiberty.
5061 # Don't let libgcc imply libiberty either.
5062 if test -n "${target_configdirs}" ; then
5065 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5066 if test "$i" = "libgcc"; then
5067 libgcc=target-libgcc
5068 elif test "$i" != "libiberty" ; then
5069 if test -r $srcdir/$i/configure ; then
5075 if test -z "${others}" ; then
5076 target_configdirs=$libgcc
5080 # Quietly strip out all directories which aren't configurable in this tree.
5081 # This relies on all configurable subdirectories being autoconfiscated, which
5083 build_configdirs_all="$build_configdirs"
5085 for i in ${build_configdirs_all} ; do
5086 j=`echo $i | sed -e s/build-//g`
5087 if test -f ${srcdir}/$j/configure ; then
5088 build_configdirs="${build_configdirs} $i"
5092 configdirs_all="$configdirs"
5094 for i in ${configdirs_all} ; do
5095 if test -f ${srcdir}/$i/configure ; then
5096 configdirs="${configdirs} $i"
5100 target_configdirs_all="$target_configdirs"
5102 for i in ${target_configdirs_all} ; do
5103 j=`echo $i | sed -e s/target-//g`
5104 if test -f ${srcdir}/$j/configure ; then
5105 target_configdirs="${target_configdirs} $i"
5109 # Produce a warning message for the subdirs we can't configure.
5110 # This isn't especially interesting in the Cygnus tree, but in the individual
5111 # FSF releases, it's important to let people know when their machine isn't
5112 # supported by the one or two programs in a package.
5114 if test -n "${notsupp}" && test -z "${norecursion}" ; then
5115 # If $appdirs is non-empty, at least one of those directories must still
5116 # be configured, or we error out. (E.g., if the gas release supports a
5117 # specified target in some subdirs but not the gas subdir, we shouldn't
5118 # pretend that all is well.)
5119 if test -n "$appdirs" ; then
5120 for dir in $appdirs ; do
5121 if test -r $dir/Makefile.in ; then
5122 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5126 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5132 if test -n "$appdirs" ; then
5133 echo "*** This configuration is not supported by this package." 1>&2
5137 # Okay, some application will build, or we don't care to check. Still
5138 # notify of subdirs not getting built.
5139 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5140 echo " ${notsupp}" 1>&2
5141 echo " (Any other directories should still work fine.)" 1>&2
5149 # To find our prefix, in gcc_cv_tool_prefix.
5151 # The user is always right.
5152 if test "${PATH_SEPARATOR+set}" != set; then
5153 echo "#! /bin/sh" >conf$$.sh
5154 echo "exit 0" >>conf$$.sh
5156 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5166 if test "x$exec_prefix" = xNONE; then
5167 if test "x$prefix" = xNONE; then
5168 gcc_cv_tool_prefix=$ac_default_prefix
5170 gcc_cv_tool_prefix=$prefix
5173 gcc_cv_tool_prefix=$exec_prefix
5176 # If there is no compiler in the tree, use the PATH only. In any
5177 # case, if there is no compiler in the tree nobody should use
5178 # AS_FOR_TARGET and LD_FOR_TARGET.
5179 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5180 gcc_version=`cat $srcdir/gcc/BASE-VER`
5181 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5182 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5183 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5184 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5185 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5186 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5191 if test x$build = x$target && test -n "$md_exec_prefix"; then
5192 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5200 # Check whether --with-build-sysroot or --without-build-sysroot was given.
5201 if test "${with_build_sysroot+set}" = set; then
5202 withval="$with_build_sysroot"
5203 if test x"$withval" != x ; then
5204 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5207 SYSROOT_CFLAGS_FOR_TARGET=
5212 # Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5213 if test "${with_debug_prefix_map+set}" = set; then
5214 withval="$with_debug_prefix_map"
5215 if test x"$withval" != x; then
5216 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5217 for debug_map in $withval; do
5218 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5222 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5226 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5227 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5228 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5229 # We want to ensure that TARGET libraries (which we know are built with
5230 # gcc) are built with "-O2 -g", so include those options when setting
5231 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5232 if test "x$CFLAGS_FOR_TARGET" = x; then
5233 CFLAGS_FOR_TARGET=$CFLAGS
5236 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5239 *" -g "* | *" -g3 "*) ;;
5240 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5245 if test "x$CXXFLAGS_FOR_TARGET" = x; then
5246 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5247 case " $CXXFLAGS " in
5249 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5251 case " $CXXFLAGS " in
5252 *" -g "* | *" -g3 "*) ;;
5253 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5258 # Handle --with-headers=XXX. If the value is not "yes", the contents of
5259 # the named directory are copied to $(tooldir)/sys-include.
5260 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5261 if test x${is_cross_compiler} = xno ; then
5262 echo 1>&2 '***' --with-headers is only supported when cross compiling
5265 if test x"${with_headers}" != xyes ; then
5266 x=${gcc_cv_tool_prefix}
5267 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5271 # Handle --with-libs=XXX. If the value is not "yes", the contents of
5272 # the name directories are copied to $(tooldir)/lib. Multiple directories
5274 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5275 if test x${is_cross_compiler} = xno ; then
5276 echo 1>&2 '***' --with-libs is only supported when cross compiling
5279 if test x"${with_libs}" != xyes ; then
5280 # Copy the libraries in reverse order, so that files in the first named
5281 # library override files in subsequent libraries.
5282 x=${gcc_cv_tool_prefix}
5283 for l in ${with_libs}; do
5284 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5289 # Set with_gnu_as and with_gnu_ld as appropriate.
5291 # This is done by determining whether or not the appropriate directory
5292 # is available, and by checking whether or not specific configurations
5293 # have requested that this magic not happen.
5295 # The command line options always override the explicit settings in
5296 # configure.in, and the settings in configure.in override this magic.
5298 # If the default for a toolchain is to use GNU as and ld, and you don't
5299 # want to do that, then you should use the --without-gnu-as and
5300 # --without-gnu-ld options for the configure script.
5302 if test x${use_gnu_as} = x &&
5303 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5305 extra_host_args="$extra_host_args --with-gnu-as"
5308 if test x${use_gnu_ld} = x &&
5309 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
5311 extra_host_args="$extra_host_args --with-gnu-ld"
5314 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5315 # can detect this case.
5317 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5319 extra_host_args="$extra_host_args --with-newlib"
5322 # Handle ${copy_dirs}
5323 set fnord ${copy_dirs}
5325 while test $# != 0 ; do
5326 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5329 echo Copying $1 to $2
5331 # Use the install script to create the directory and all required
5332 # parent directories.
5333 if test -d $2 ; then
5337 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5340 # Copy the directory, assuming we have tar.
5341 # FIXME: Should we use B in the second tar? Not all systems support it.
5342 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5344 # It is the responsibility of the user to correctly adjust all
5345 # symlinks. If somebody can figure out how to handle them correctly
5346 # here, feel free to add the code.
5353 # Determine a target-dependent exec_prefix that the installed
5354 # gcc will search in. Keep this list sorted by triplet, with
5355 # the *-*-osname triplets last.
5359 md_exec_prefix=/gnu/lib/gcc-lib
5361 i[34567]86-pc-msdosdjgpp*)
5362 md_exec_prefix=/dev/env/DJDIR/bin
5364 i[34567]86-*-sco3.2v5*)
5365 if test $with_gnu_as = yes; then
5366 md_exec_prefix=/usr/gnu/bin
5368 md_exec_prefix=/usr/ccs/bin/elf
5373 powerpc-*-chorusos* | \
5374 powerpc*-*-eabi* | \
5375 powerpc*-*-sysv* | \
5376 powerpc*-*-kaos* | \
5378 md_exec_prefix=/usr/ccs/bin
5383 md_exec_prefix=/usr/ccs/bin
5398 md_exec_prefix=/usr/ccs/bin
5402 extra_arflags_for_target=
5403 extra_nmflags_for_target=
5404 extra_ranlibflags_for_target=
5405 target_makefile_frag=/dev/null
5408 target_makefile_frag="config/mt-mep"
5411 target_makefile_frag="config/mt-spu"
5414 target_makefile_frag="config/mt-sde"
5416 mipsisa*-*-elfoabi*)
5417 target_makefile_frag="config/mt-mips-elfoabi"
5420 target_makefile_frag="config/mt-netware"
5422 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5423 target_makefile_frag="config/mt-gnu"
5425 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5426 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5427 # commands to handle both 32-bit and 64-bit objects. These flags are
5428 # harmless if we're using GNU nm or ar.
5429 extra_arflags_for_target=" -X32_64"
5430 extra_nmflags_for_target=" -B -X32_64"
5433 # ranlib from Darwin requires the -c flag to look at common symbols.
5434 extra_ranlibflags_for_target=" -c"
5436 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5437 target_makefile_frag="config/mt-wince"
5441 alphaieee_frag=/dev/null
5444 # This just makes sure to use the -mieee option to build target libs.
5445 # This should probably be set individually by each library.
5446 alphaieee_frag="config/mt-alphaieee"
5450 # If --enable-target-optspace always use -Os instead of -O2 to build
5451 # the target libraries, similarly if it is not specified, use -Os
5452 # on selected platforms.
5453 ospace_frag=/dev/null
5454 case "${enable_target_optspace}:${target}" in
5456 ospace_frag="config/mt-ospace"
5459 ospace_frag="config/mt-d30v"
5461 :m32r-* | :d10v-* | :fr30-*)
5462 ospace_frag="config/mt-ospace"
5467 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5471 # Default to using --with-stabs for certain targets.
5472 if test x${with_stabs} = x ; then
5476 mips*-*-* | alpha*-*-osf*)
5478 extra_host_args="${extra_host_args} --with-stabs"
5483 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5484 # them automatically.
5487 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5491 # Some systems (e.g., one of the i386-aix systems the gas testers are
5492 # using) don't handle "\$" correctly, so don't use it here.
5493 tooldir='${exec_prefix}'/${target_noncanonical}
5494 build_tooldir=${tooldir}
5496 # Create a .gdbinit file which runs the one in srcdir
5497 # and tells GDB to look there for source files.
5499 if test -r ${srcdir}/.gdbinit ; then
5502 *) cat > ./.gdbinit <<EOF
5506 source ${srcdir}/.gdbinit
5512 # Make sure that the compiler is able to generate an executable. If it
5513 # can't, we are probably in trouble. We don't care whether we can run the
5514 # executable--we might be using a cross compiler--we only care whether it
5515 # can be created. At this point the main configure script has set CC.
5517 echo "int main () { return 0; }" > conftest.c
5518 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5519 if test $? = 0 ; then
5520 if test -s conftest || test -s conftest.exe ; then
5526 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5527 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5534 # The Solaris /usr/ucb/cc compiler does not appear to work.
5536 sparc-sun-solaris2*)
5537 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5538 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5540 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5541 if test -d /opt/cygnus/bin ; then
5542 if test "$could_use" = "" ; then
5543 could_use="/opt/cygnus/bin"
5545 could_use="$could_use or /opt/cygnus/bin"
5548 if test "$could_use" = "" ; then
5549 echo "Warning: compilation may fail because you're using"
5550 echo "/usr/ucb/cc. You should change your PATH or CC "
5551 echo "variable and rerun configure."
5553 echo "Warning: compilation may fail because you're using"
5554 echo "/usr/ucb/cc, when you should use the C compiler from"
5555 echo "$could_use. You should change your"
5556 echo "PATH or CC variable and rerun configure."
5563 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5564 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5565 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5568 # Record target_configdirs and the configure arguments for target and
5569 # build configuration in Makefile.
5570 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5571 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5573 # Determine whether gdb needs tk/tcl or not.
5574 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5575 # and in that case we want gdb to be built without tk. Ugh!
5576 # In fact I believe gdb is the *only* package directly dependent on tk,
5577 # so we should be able to put the 'maybe's in unconditionally and
5578 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
5579 # 100% sure that that's safe though.
5581 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5582 case "$enable_gdbtk" in
5586 GDB_TK="${gdb_tk}" ;;
5588 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5589 # distro. Eventually someone will fix this and move Insight, nee
5590 # gdbtk to a separate directory.
5591 if test -d ${srcdir}/gdb/gdbtk ; then
5598 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5599 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5601 # Strip out unwanted targets.
5603 # While at that, we remove Makefiles if we were started for recursive
5604 # configuration, so that the top-level Makefile reconfigures them,
5605 # like we used to do when configure itself was recursive.
5607 # Loop over modules. $extrasub must be used with care, limiting as
5608 # much as possible the usage of range addresses. That's because autoconf
5609 # splits the sed script to overcome limits in the number of commands,
5610 # and relying on carefully-timed sed passes may turn out to be very hard
5611 # to maintain later. In this particular case, you just have to be careful
5612 # not to nest @if/@endif pairs, because configure will not warn you at all.
5614 # Check whether --enable-bootstrap or --disable-bootstrap was given.
5615 if test "${enable_bootstrap+set}" = set; then
5616 enableval="$enable_bootstrap"
5619 enable_bootstrap=default
5622 # Issue errors and warnings for invalid/strange bootstrap combinations.
5623 case "$configdirs" in
5624 *gcc*) have_compiler=yes ;;
5625 *) have_compiler=no ;;
5628 case "$have_compiler:$host:$target:$enable_bootstrap" in
5631 # Default behavior. Enable bootstrap if we have a compiler
5632 # and we are in a native configuration.
5633 yes:$build:$build:default)
5634 enable_bootstrap=yes ;;
5637 enable_bootstrap=no ;;
5639 # We have a compiler and we are in a native configuration, bootstrap is ok
5640 yes:$build:$build:yes)
5643 # Other configurations, but we have a compiler. Assume the user knows
5646 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5647 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5650 # No compiler: if they passed --enable-bootstrap explicitly, fail
5652 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5653 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5654 { (exit 1); exit 1; }; } ;;
5656 # Fail if wrong command line
5658 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5659 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5660 { (exit 1); exit 1; }; }
5664 # Adjust the toplevel makefile according to whether bootstrap was selected.
5665 case "$enable_bootstrap" in
5667 bootstrap_suffix=bootstrap ;;
5669 bootstrap_suffix=no-bootstrap ;;
5672 for module in ${build_configdirs} ; do
5673 if test -z "${no_recursion}" \
5674 && test -f ${build_subdir}/${module}/Makefile; then
5675 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5676 rm -f ${build_subdir}/${module}/Makefile
5679 /^@if build-$module\$/d
5680 /^@endif build-$module\$/d
5681 /^@if build-$module-$bootstrap_suffix\$/d
5682 /^@endif build-$module-$bootstrap_suffix\$/d"
5684 for module in ${configdirs} ; do
5685 if test -z "${no_recursion}"; then
5686 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5687 if test -f ${file}; then
5688 echo 1>&2 "*** removing ${file} to force reconfigure"
5695 /^@endif $module\$/d
5696 /^@if $module-$bootstrap_suffix\$/d
5697 /^@endif $module-$bootstrap_suffix\$/d"
5699 for module in ${target_configdirs} ; do
5700 if test -z "${no_recursion}" \
5701 && test -f ${target_subdir}/${module}/Makefile; then
5702 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5703 rm -f ${target_subdir}/${module}/Makefile
5706 /^@if target-$module\$/d
5707 /^@endif target-$module\$/d
5708 /^@if target-$module-$bootstrap_suffix\$/d
5709 /^@endif target-$module-$bootstrap_suffix\$/d"
5713 /^@if /,/^@endif /d"
5715 # Create the serialization dependencies. This uses a temporary file.
5717 # Check whether --enable-serial-configure or --disable-serial-configure was given.
5718 if test "${enable_serial_configure+set}" = set; then
5719 enableval="$enable_serial_configure"
5723 case ${enable_serial_configure} in
5725 enable_serial_build_configure=yes
5726 enable_serial_host_configure=yes
5727 enable_serial_target_configure=yes
5731 # These force 'configure's to be done one at a time, to avoid problems
5732 # with contention over a shared config.cache.
5734 echo '# serdep.tmp' > serdep.tmp
5736 test "x${enable_serial_build_configure}" = xyes &&
5737 for item in ${build_configdirs} ; do
5740 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
5745 test "x${enable_serial_host_configure}" = xyes &&
5746 for item in ${configdirs} ; do
5749 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
5754 test "x${enable_serial_target_configure}" = xyes &&
5755 for item in ${target_configdirs} ; do
5758 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
5762 serialization_dependencies=serdep.tmp
5765 # Base args. Strip norecursion, cache-file, srcdir, host, build,
5766 # target, nonopt, and variable assignments. These are the ones we
5767 # might not want to pass down to subconfigures. Also strip
5768 # program-prefix, program-suffix, and program-transform-name, so that
5769 # we can pass down a consistent program-transform-name.
5773 eval "set -- $ac_configure_args"
5776 if test X"$skip_next" = X"yes"; then
5780 if test X"$keep_next" = X"yes"; then
5783 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5785 baseargs="$baseargs '$ac_arg'"
5790 # Handle separated arguments. Based on the logic generated by
5793 *=* | --config-cache | -C | -disable-* | --disable-* \
5794 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5795 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5796 | -with-* | --with-* | -without-* | --without-* | --x)
5822 -program-prefix* | \
5823 -program-suffix* | \
5824 -program-transform-name* )
5825 skip_next=$separate_arg
5829 # An option. Add it.
5832 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5834 baseargs="$baseargs '$ac_arg'"
5835 keep_next=$separate_arg
5838 # Either a variable assignment, or a nonopt (triplet). Don't
5839 # pass it down; let the Makefile handle this.
5844 # Remove the initial space we just introduced and, as these will be
5845 # expanded by make, quote '$'.
5846 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5848 # Add in --program-transform-name, after --program-prefix and
5849 # --program-suffix have been applied to it. Autoconf has already
5850 # doubled dollar signs and backslashes in program_transform_name; we want
5851 # the backslashes un-doubled, and then the entire thing wrapped in single
5852 # quotes, because this will be expanded first by make and then by the shell.
5853 # Also, because we want to override the logic in subdir configure scripts to
5854 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5855 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5856 ${program_transform_name}
5858 gcc_transform_name=`cat conftestsed.out`
5859 rm -f conftestsed.out
5860 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5861 if test "$silent" = yes; then
5862 baseargs="$baseargs --silent"
5865 # For the build-side libraries, we just need to pretend we're native,
5866 # and not use the same cache file. Multilibs are neither needed nor
5868 build_configargs="--cache-file=../config.cache ${baseargs}"
5870 # For host modules, accept cache file option, or specification as blank.
5871 case "${cache_file}" in
5873 cache_file_option="" ;;
5874 /* | [A-Za-z]:[\\/]* ) # absolute path
5875 cache_file_option="--cache-file=${cache_file}" ;;
5877 cache_file_option="--cache-file=../${cache_file}" ;;
5880 # Host dirs don't like to share a cache file either, horribly enough.
5881 # This seems to be due to autoconf 2.5x stupidity.
5882 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5884 target_configargs=${baseargs}
5886 # Passing a --with-cross-host argument lets the target libraries know
5887 # whether they are being built with a cross-compiler or being built
5888 # native. However, it would be better to use other mechanisms to make the
5889 # sorts of decisions they want to make on this basis. Please consider
5890 # this option to be deprecated. FIXME.
5891 if test x${is_cross_compiler} = xyes ; then
5892 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5895 # Default to --enable-multilib.
5896 if test x${enable_multilib} = x ; then
5897 target_configargs="--enable-multilib ${target_configargs}"
5900 # Pass --with-newlib if appropriate. Note that target_configdirs has
5901 # changed from the earlier setting of with_newlib.
5902 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5903 target_configargs="--with-newlib ${target_configargs}"
5906 # Different target subdirs use different values of certain variables
5907 # (notably CXX). Worse, multilibs use *lots* of different values.
5908 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5909 # it doesn't automatically accept command-line overrides of them.
5910 # This means it's not safe for target subdirs to share a cache file,
5911 # which is disgusting, but there you have it. Hopefully this can be
5912 # fixed in future. It's still worthwhile to use a cache file for each
5913 # directory. I think.
5915 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5916 # We need to pass --target, as newer autoconf's requires consistency
5917 # for target_alias and gcc doesn't manage it consistently.
5918 target_configargs="--cache-file=./config.cache ${target_configargs}"
5921 case " $target_configdirs " in
5923 case " $target_configargs " in
5924 *" --with-newlib "*)
5927 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' ;;
5930 # If we're not building GCC, don't discard standard headers.
5931 if test -d ${srcdir}/gcc; then
5932 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5934 if test "${build}" != "${host}"; then
5935 # On Canadian crosses, CC_FOR_TARGET will have already been set
5936 # by `configure', so we won't have an opportunity to add -Bgcc/
5937 # to it. This is right: we don't want to search that directory
5938 # for binaries, but we want the header files in there, so add
5940 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5942 # Someone might think of using the pre-installed headers on
5943 # Canadian crosses, in case the installed compiler is not fully
5944 # compatible with the compiler being built. In this case, it
5945 # would be better to flag an error than risking having
5946 # incompatible object files being constructed. We can't
5947 # guarantee that an error will be flagged, but let's hope the
5948 # compiler will do it, when presented with incompatible header
5953 case "${target}-${is_cross_compiler}" in
5954 i[3456789]86-*-linux*-no)
5955 # Here host == target, so we don't need to build gcc,
5956 # so we don't want to discard standard headers.
5957 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5960 # If we're building newlib, use its generic headers last, but search
5961 # for any libc-related directories first (so make it the last -B
5963 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5965 # If we're building libgloss, find the startup file, simulator library
5966 # and linker script.
5967 case " $target_configdirs " in
5969 # Look for startup file, simulator library and maybe linker script.
5970 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5971 # Look for libnosys.a in case the target needs it.
5972 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5973 # Most targets have the linker script in the source directory.
5974 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5985 # Can't be handled as Cygwin above since Mingw does not use newlib.
5986 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' ;;
5989 # Allow the user to override the flags for
5990 # our build compiler if desired.
5991 if test x"${build}" = x"${host}" ; then
5992 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5993 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
5994 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
5997 # On Canadian crosses, we'll be searching the right directories for
5998 # the previously-installed cross compiler, so don't bother to add
5999 # flags for directories within the install tree of the compiler
6000 # being built; programs in there won't even run.
6001 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6002 # Search for pre-installed headers if nothing else fits.
6003 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6006 if test "x${use_gnu_ld}" = x &&
6007 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6008 # Arrange for us to find uninstalled linker scripts.
6009 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6012 # Search for other target-specific linker scripts and such.
6015 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6019 # Makefile fragments.
6020 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6022 eval fragval=\$$frag
6023 if test $fragval != /dev/null; then
6024 eval $frag=${srcdir}/$fragval
6032 # Miscellanea: directories, flags, etc.
6040 # Build module lists & subconfigure args.
6044 # Host module lists & subconfigure args.
6048 # Target module lists & subconfigure args.
6070 # Generate default definitions for YACC, M4, LEX and other programs that run
6071 # on the build machine. These are used if the Makefile can't locate these
6072 # programs in objdir.
6073 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6075 for ac_prog in 'bison -y' byacc yacc
6077 # Extract the first word of "$ac_prog", so it can be a program name with args.
6078 set dummy $ac_prog; ac_word=$2
6079 echo "$as_me:$LINENO: checking for $ac_word" >&5
6080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6081 if test "${ac_cv_prog_YACC+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 if test -n "$YACC"; then
6085 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094 ac_cv_prog_YACC="$ac_prog"
6095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 YACC=$ac_cv_prog_YACC
6104 if test -n "$YACC"; then
6105 echo "$as_me:$LINENO: result: $YACC" >&5
6106 echo "${ECHO_T}$YACC" >&6
6108 echo "$as_me:$LINENO: result: no" >&5
6109 echo "${ECHO_T}no" >&6
6112 test -n "$YACC" && break
6114 test -n "$YACC" || YACC="$MISSING bison -y"
6116 case " $build_configdirs " in
6117 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6118 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6121 for ac_prog in bison
6123 # Extract the first word of "$ac_prog", so it can be a program name with args.
6124 set dummy $ac_prog; ac_word=$2
6125 echo "$as_me:$LINENO: checking for $ac_word" >&5
6126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6127 if test "${ac_cv_prog_BISON+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 if test -n "$BISON"; then
6131 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6140 ac_cv_prog_BISON="$ac_prog"
6141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 BISON=$ac_cv_prog_BISON
6150 if test -n "$BISON"; then
6151 echo "$as_me:$LINENO: result: $BISON" >&5
6152 echo "${ECHO_T}$BISON" >&6
6154 echo "$as_me:$LINENO: result: no" >&5
6155 echo "${ECHO_T}no" >&6
6158 test -n "$BISON" && break
6160 test -n "$BISON" || BISON="$MISSING bison"
6162 case " $build_configdirs " in
6163 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6166 for ac_prog in gm4 gnum4 m4
6168 # Extract the first word of "$ac_prog", so it can be a program name with args.
6169 set dummy $ac_prog; ac_word=$2
6170 echo "$as_me:$LINENO: checking for $ac_word" >&5
6171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6172 if test "${ac_cv_prog_M4+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 if test -n "$M4"; then
6176 ac_cv_prog_M4="$M4" # Let the user override the test.
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6185 ac_cv_prog_M4="$ac_prog"
6186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 if test -n "$M4"; then
6196 echo "$as_me:$LINENO: result: $M4" >&5
6197 echo "${ECHO_T}$M4" >&6
6199 echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6
6203 test -n "$M4" && break
6205 test -n "$M4" || M4="$MISSING m4"
6207 case " $build_configdirs " in
6208 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6211 for ac_prog in flex lex
6213 # Extract the first word of "$ac_prog", so it can be a program name with args.
6214 set dummy $ac_prog; ac_word=$2
6215 echo "$as_me:$LINENO: checking for $ac_word" >&5
6216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6217 if test "${ac_cv_prog_LEX+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 if test -n "$LEX"; then
6221 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230 ac_cv_prog_LEX="$ac_prog"
6231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 if test -n "$LEX"; then
6241 echo "$as_me:$LINENO: result: $LEX" >&5
6242 echo "${ECHO_T}$LEX" >&6
6244 echo "$as_me:$LINENO: result: no" >&5
6245 echo "${ECHO_T}no" >&6
6248 test -n "$LEX" && break
6250 test -n "$LEX" || LEX="$MISSING flex"
6252 case " $build_configdirs " in
6253 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6254 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6259 # Extract the first word of "$ac_prog", so it can be a program name with args.
6260 set dummy $ac_prog; ac_word=$2
6261 echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6263 if test "${ac_cv_prog_FLEX+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 if test -n "$FLEX"; then
6267 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276 ac_cv_prog_FLEX="$ac_prog"
6277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6285 FLEX=$ac_cv_prog_FLEX
6286 if test -n "$FLEX"; then
6287 echo "$as_me:$LINENO: result: $FLEX" >&5
6288 echo "${ECHO_T}$FLEX" >&6
6290 echo "$as_me:$LINENO: result: no" >&5
6291 echo "${ECHO_T}no" >&6
6294 test -n "$FLEX" && break
6296 test -n "$FLEX" || FLEX="$MISSING flex"
6298 case " $build_configdirs " in
6299 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6302 for ac_prog in makeinfo
6304 # Extract the first word of "$ac_prog", so it can be a program name with args.
6305 set dummy $ac_prog; ac_word=$2
6306 echo "$as_me:$LINENO: checking for $ac_word" >&5
6307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6308 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 if test -n "$MAKEINFO"; then
6312 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321 ac_cv_prog_MAKEINFO="$ac_prog"
6322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 MAKEINFO=$ac_cv_prog_MAKEINFO
6331 if test -n "$MAKEINFO"; then
6332 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6333 echo "${ECHO_T}$MAKEINFO" >&6
6335 echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6
6339 test -n "$MAKEINFO" && break
6341 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6343 case " $build_configdirs " in
6344 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6347 # For an installed makeinfo, we require it to be from texinfo 4.6 or
6348 # higher, else we use the "missing" dummy.
6349 if ${MAKEINFO} --version \
6350 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
6353 MAKEINFO="$MISSING makeinfo"
6359 # FIXME: expect and dejagnu may become build tools?
6361 for ac_prog in expect
6363 # Extract the first word of "$ac_prog", so it can be a program name with args.
6364 set dummy $ac_prog; ac_word=$2
6365 echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6367 if test "${ac_cv_prog_EXPECT+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 if test -n "$EXPECT"; then
6371 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6380 ac_cv_prog_EXPECT="$ac_prog"
6381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 EXPECT=$ac_cv_prog_EXPECT
6390 if test -n "$EXPECT"; then
6391 echo "$as_me:$LINENO: result: $EXPECT" >&5
6392 echo "${ECHO_T}$EXPECT" >&6
6394 echo "$as_me:$LINENO: result: no" >&5
6395 echo "${ECHO_T}no" >&6
6398 test -n "$EXPECT" && break
6400 test -n "$EXPECT" || EXPECT="expect"
6402 case " $configdirs " in
6404 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6408 for ac_prog in runtest
6410 # Extract the first word of "$ac_prog", so it can be a program name with args.
6411 set dummy $ac_prog; ac_word=$2
6412 echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6414 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 if test -n "$RUNTEST"; then
6418 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6427 ac_cv_prog_RUNTEST="$ac_prog"
6428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 RUNTEST=$ac_cv_prog_RUNTEST
6437 if test -n "$RUNTEST"; then
6438 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6439 echo "${ECHO_T}$RUNTEST" >&6
6441 echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6
6445 test -n "$RUNTEST" && break
6447 test -n "$RUNTEST" || RUNTEST="runtest"
6449 case " $configdirs " in
6451 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6458 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6459 ncn_target_tool_prefix=
6460 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6464 if test -n "$AR"; then
6466 elif test -n "$ac_cv_prog_AR"; then
6470 if test -n "$ac_cv_prog_AR"; then
6471 for ncn_progname in ar; do
6472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6473 set dummy ${ncn_progname}; ac_word=$2
6474 echo "$as_me:$LINENO: checking for $ac_word" >&5
6475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6476 if test "${ac_cv_prog_AR+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 if test -n "$AR"; then
6480 ac_cv_prog_AR="$AR" # Let the user override the test.
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6489 ac_cv_prog_AR="${ncn_progname}"
6490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 if test -n "$AR"; then
6500 echo "$as_me:$LINENO: result: $AR" >&5
6501 echo "${ECHO_T}$AR" >&6
6503 echo "$as_me:$LINENO: result: no" >&5
6504 echo "${ECHO_T}no" >&6
6510 for ncn_progname in ar; do
6511 if test -n "$ncn_tool_prefix"; then
6512 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6513 set dummy ${ncn_tool_prefix}${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_AR+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 if test -n "$AR"; then
6520 ac_cv_prog_AR="$AR" # Let the user override the test.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_AR="${ncn_tool_prefix}${ncn_progname}"
6530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 if test -n "$AR"; then
6540 echo "$as_me:$LINENO: result: $AR" >&5
6541 echo "${ECHO_T}$AR" >&6
6543 echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6
6548 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6550 set dummy ${ncn_progname}; ac_word=$2
6551 echo "$as_me:$LINENO: checking for $ac_word" >&5
6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6553 if test "${ac_cv_prog_AR+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 if test -n "$AR"; then
6557 ac_cv_prog_AR="$AR" # Let the user override the test.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_AR="${ncn_progname}"
6567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 if test -n "$AR"; then
6577 echo "$as_me:$LINENO: result: $AR" >&5
6578 echo "${ECHO_T}$AR" >&6
6580 echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6
6585 test -n "$ac_cv_prog_AR" && break
6588 if test -z "$ac_cv_prog_AR" ; then
6590 if test $build = $host ; then
6593 AR="${ncn_tool_prefix}$2"
6599 if test -n "$AS"; then
6601 elif test -n "$ac_cv_prog_AS"; then
6605 if test -n "$ac_cv_prog_AS"; then
6606 for ncn_progname in as; do
6607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6608 set dummy ${ncn_progname}; ac_word=$2
6609 echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6611 if test "${ac_cv_prog_AS+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 if test -n "$AS"; then
6615 ac_cv_prog_AS="$AS" # Let the user override the test.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624 ac_cv_prog_AS="${ncn_progname}"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 if test -n "$AS"; then
6635 echo "$as_me:$LINENO: result: $AS" >&5
6636 echo "${ECHO_T}$AS" >&6
6638 echo "$as_me:$LINENO: result: no" >&5
6639 echo "${ECHO_T}no" >&6
6645 for ncn_progname in as; do
6646 if test -n "$ncn_tool_prefix"; then
6647 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6648 set dummy ${ncn_tool_prefix}${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_AS+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 if test -n "$AS"; then
6655 ac_cv_prog_AS="$AS" # Let the user override the test.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_AS="${ncn_tool_prefix}${ncn_progname}"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 if test -n "$AS"; then
6675 echo "$as_me:$LINENO: result: $AS" >&5
6676 echo "${ECHO_T}$AS" >&6
6678 echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6
6683 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6685 set dummy ${ncn_progname}; ac_word=$2
6686 echo "$as_me:$LINENO: checking for $ac_word" >&5
6687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6688 if test "${ac_cv_prog_AS+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 if test -n "$AS"; then
6692 ac_cv_prog_AS="$AS" # Let the user override the test.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701 ac_cv_prog_AS="${ncn_progname}"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 if test -n "$AS"; then
6712 echo "$as_me:$LINENO: result: $AS" >&5
6713 echo "${ECHO_T}$AS" >&6
6715 echo "$as_me:$LINENO: result: no" >&5
6716 echo "${ECHO_T}no" >&6
6720 test -n "$ac_cv_prog_AS" && break
6723 if test -z "$ac_cv_prog_AS" ; then
6725 if test $build = $host ; then
6728 AS="${ncn_tool_prefix}$2"
6734 if test -n "$DLLTOOL"; then
6735 ac_cv_prog_DLLTOOL=$DLLTOOL
6736 elif test -n "$ac_cv_prog_DLLTOOL"; then
6737 DLLTOOL=$ac_cv_prog_DLLTOOL
6740 if test -n "$ac_cv_prog_DLLTOOL"; then
6741 for ncn_progname in dlltool; do
6742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6743 set dummy ${ncn_progname}; ac_word=$2
6744 echo "$as_me:$LINENO: checking for $ac_word" >&5
6745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6746 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 if test -n "$DLLTOOL"; then
6750 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759 ac_cv_prog_DLLTOOL="${ncn_progname}"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 DLLTOOL=$ac_cv_prog_DLLTOOL
6769 if test -n "$DLLTOOL"; then
6770 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6771 echo "${ECHO_T}$DLLTOOL" >&6
6773 echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6
6780 for ncn_progname in dlltool; do
6781 if test -n "$ncn_tool_prefix"; then
6782 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6783 set dummy ${ncn_tool_prefix}${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_DLLTOOL+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 if test -n "$DLLTOOL"; then
6790 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 DLLTOOL=$ac_cv_prog_DLLTOOL
6809 if test -n "$DLLTOOL"; then
6810 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6811 echo "${ECHO_T}$DLLTOOL" >&6
6813 echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6
6818 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6820 set dummy ${ncn_progname}; ac_word=$2
6821 echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6823 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 if test -n "$DLLTOOL"; then
6827 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836 ac_cv_prog_DLLTOOL="${ncn_progname}"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 DLLTOOL=$ac_cv_prog_DLLTOOL
6846 if test -n "$DLLTOOL"; then
6847 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6848 echo "${ECHO_T}$DLLTOOL" >&6
6850 echo "$as_me:$LINENO: result: no" >&5
6851 echo "${ECHO_T}no" >&6
6855 test -n "$ac_cv_prog_DLLTOOL" && break
6858 if test -z "$ac_cv_prog_DLLTOOL" ; then
6860 if test $build = $host ; then
6863 DLLTOOL="${ncn_tool_prefix}$2"
6869 if test -n "$LD"; then
6871 elif test -n "$ac_cv_prog_LD"; then
6875 if test -n "$ac_cv_prog_LD"; then
6876 for ncn_progname in ld; do
6877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6878 set dummy ${ncn_progname}; ac_word=$2
6879 echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6881 if test "${ac_cv_prog_LD+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 if test -n "$LD"; then
6885 ac_cv_prog_LD="$LD" # Let the user override the test.
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894 ac_cv_prog_LD="${ncn_progname}"
6895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 if test -n "$LD"; then
6905 echo "$as_me:$LINENO: result: $LD" >&5
6906 echo "${ECHO_T}$LD" >&6
6908 echo "$as_me:$LINENO: result: no" >&5
6909 echo "${ECHO_T}no" >&6
6915 for ncn_progname in ld; do
6916 if test -n "$ncn_tool_prefix"; then
6917 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6918 set dummy ${ncn_tool_prefix}${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_LD+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 if test -n "$LD"; then
6925 ac_cv_prog_LD="$LD" # Let the user override the test.
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_LD="${ncn_tool_prefix}${ncn_progname}"
6935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 if test -n "$LD"; then
6945 echo "$as_me:$LINENO: result: $LD" >&5
6946 echo "${ECHO_T}$LD" >&6
6948 echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6
6953 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6955 set dummy ${ncn_progname}; ac_word=$2
6956 echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6958 if test "${ac_cv_prog_LD+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 if test -n "$LD"; then
6962 ac_cv_prog_LD="$LD" # Let the user override the test.
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6971 ac_cv_prog_LD="${ncn_progname}"
6972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 if test -n "$LD"; then
6982 echo "$as_me:$LINENO: result: $LD" >&5
6983 echo "${ECHO_T}$LD" >&6
6985 echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6
6990 test -n "$ac_cv_prog_LD" && break
6993 if test -z "$ac_cv_prog_LD" ; then
6995 if test $build = $host ; then
6998 LD="${ncn_tool_prefix}$2"
7004 if test -n "$LIPO"; then
7005 ac_cv_prog_LIPO=$LIPO
7006 elif test -n "$ac_cv_prog_LIPO"; then
7007 LIPO=$ac_cv_prog_LIPO
7010 if test -n "$ac_cv_prog_LIPO"; then
7011 for ncn_progname in lipo; do
7012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7013 set dummy ${ncn_progname}; ac_word=$2
7014 echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7016 if test "${ac_cv_prog_LIPO+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 if test -n "$LIPO"; then
7020 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029 ac_cv_prog_LIPO="${ncn_progname}"
7030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 LIPO=$ac_cv_prog_LIPO
7039 if test -n "$LIPO"; then
7040 echo "$as_me:$LINENO: result: $LIPO" >&5
7041 echo "${ECHO_T}$LIPO" >&6
7043 echo "$as_me:$LINENO: result: no" >&5
7044 echo "${ECHO_T}no" >&6
7050 for ncn_progname in lipo; do
7051 if test -n "$ncn_tool_prefix"; then
7052 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7053 set dummy ${ncn_tool_prefix}${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_LIPO+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 if test -n "$LIPO"; then
7060 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_LIPO="${ncn_tool_prefix}${ncn_progname}"
7070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 LIPO=$ac_cv_prog_LIPO
7079 if test -n "$LIPO"; then
7080 echo "$as_me:$LINENO: result: $LIPO" >&5
7081 echo "${ECHO_T}$LIPO" >&6
7083 echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6
7088 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7090 set dummy ${ncn_progname}; ac_word=$2
7091 echo "$as_me:$LINENO: checking for $ac_word" >&5
7092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7093 if test "${ac_cv_prog_LIPO+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 if test -n "$LIPO"; then
7097 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106 ac_cv_prog_LIPO="${ncn_progname}"
7107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 LIPO=$ac_cv_prog_LIPO
7116 if test -n "$LIPO"; then
7117 echo "$as_me:$LINENO: result: $LIPO" >&5
7118 echo "${ECHO_T}$LIPO" >&6
7120 echo "$as_me:$LINENO: result: no" >&5
7121 echo "${ECHO_T}no" >&6
7125 test -n "$ac_cv_prog_LIPO" && break
7128 if test -z "$ac_cv_prog_LIPO" ; then
7130 if test $build = $host ; then
7133 LIPO="${ncn_tool_prefix}$2"
7139 if test -n "$NM"; then
7141 elif test -n "$ac_cv_prog_NM"; then
7145 if test -n "$ac_cv_prog_NM"; then
7146 for ncn_progname in nm; do
7147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7148 set dummy ${ncn_progname}; ac_word=$2
7149 echo "$as_me:$LINENO: checking for $ac_word" >&5
7150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7151 if test "${ac_cv_prog_NM+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 if test -n "$NM"; then
7155 ac_cv_prog_NM="$NM" # Let the user override the test.
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164 ac_cv_prog_NM="${ncn_progname}"
7165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 if test -n "$NM"; then
7175 echo "$as_me:$LINENO: result: $NM" >&5
7176 echo "${ECHO_T}$NM" >&6
7178 echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6
7185 for ncn_progname in nm; do
7186 if test -n "$ncn_tool_prefix"; then
7187 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7188 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7189 echo "$as_me:$LINENO: checking for $ac_word" >&5
7190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7191 if test "${ac_cv_prog_NM+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 if test -n "$NM"; then
7195 ac_cv_prog_NM="$NM" # Let the user override the test.
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 if test -n "$NM"; then
7215 echo "$as_me:$LINENO: result: $NM" >&5
7216 echo "${ECHO_T}$NM" >&6
7218 echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6
7223 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7225 set dummy ${ncn_progname}; ac_word=$2
7226 echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7228 if test "${ac_cv_prog_NM+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 if test -n "$NM"; then
7232 ac_cv_prog_NM="$NM" # Let the user override the test.
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_NM="${ncn_progname}"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 if test -n "$NM"; then
7252 echo "$as_me:$LINENO: result: $NM" >&5
7253 echo "${ECHO_T}$NM" >&6
7255 echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6
7260 test -n "$ac_cv_prog_NM" && break
7263 if test -z "$ac_cv_prog_NM" ; then
7265 if test $build = $host ; then
7268 NM="${ncn_tool_prefix}$2"
7274 if test -n "$RANLIB"; then
7275 ac_cv_prog_RANLIB=$RANLIB
7276 elif test -n "$ac_cv_prog_RANLIB"; then
7277 RANLIB=$ac_cv_prog_RANLIB
7280 if test -n "$ac_cv_prog_RANLIB"; then
7281 for ncn_progname in ranlib; do
7282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7283 set dummy ${ncn_progname}; ac_word=$2
7284 echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7286 if test "${ac_cv_prog_RANLIB+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 if test -n "$RANLIB"; then
7290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299 ac_cv_prog_RANLIB="${ncn_progname}"
7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 RANLIB=$ac_cv_prog_RANLIB
7309 if test -n "$RANLIB"; then
7310 echo "$as_me:$LINENO: result: $RANLIB" >&5
7311 echo "${ECHO_T}$RANLIB" >&6
7313 echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6
7320 for ncn_progname in ranlib; do
7321 if test -n "$ncn_tool_prefix"; then
7322 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7323 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7324 echo "$as_me:$LINENO: checking for $ac_word" >&5
7325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7326 if test "${ac_cv_prog_RANLIB+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 if test -n "$RANLIB"; then
7330 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7339 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 RANLIB=$ac_cv_prog_RANLIB
7349 if test -n "$RANLIB"; then
7350 echo "$as_me:$LINENO: result: $RANLIB" >&5
7351 echo "${ECHO_T}$RANLIB" >&6
7353 echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6
7358 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7360 set dummy ${ncn_progname}; ac_word=$2
7361 echo "$as_me:$LINENO: checking for $ac_word" >&5
7362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7363 if test "${ac_cv_prog_RANLIB+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 if test -n "$RANLIB"; then
7367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376 ac_cv_prog_RANLIB="${ncn_progname}"
7377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 RANLIB=$ac_cv_prog_RANLIB
7386 if test -n "$RANLIB"; then
7387 echo "$as_me:$LINENO: result: $RANLIB" >&5
7388 echo "${ECHO_T}$RANLIB" >&6
7390 echo "$as_me:$LINENO: result: no" >&5
7391 echo "${ECHO_T}no" >&6
7395 test -n "$ac_cv_prog_RANLIB" && break
7398 if test -z "$ac_cv_prog_RANLIB" ; then
7404 if test -n "$STRIP"; then
7405 ac_cv_prog_STRIP=$STRIP
7406 elif test -n "$ac_cv_prog_STRIP"; then
7407 STRIP=$ac_cv_prog_STRIP
7410 if test -n "$ac_cv_prog_STRIP"; then
7411 for ncn_progname in strip; do
7412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7413 set dummy ${ncn_progname}; ac_word=$2
7414 echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7416 if test "${ac_cv_prog_STRIP+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 if test -n "$STRIP"; then
7420 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7429 ac_cv_prog_STRIP="${ncn_progname}"
7430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 STRIP=$ac_cv_prog_STRIP
7439 if test -n "$STRIP"; then
7440 echo "$as_me:$LINENO: result: $STRIP" >&5
7441 echo "${ECHO_T}$STRIP" >&6
7443 echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6
7450 for ncn_progname in strip; do
7451 if test -n "$ncn_tool_prefix"; then
7452 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7453 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7454 echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7456 if test "${ac_cv_prog_STRIP+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 if test -n "$STRIP"; then
7460 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7469 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 STRIP=$ac_cv_prog_STRIP
7479 if test -n "$STRIP"; then
7480 echo "$as_me:$LINENO: result: $STRIP" >&5
7481 echo "${ECHO_T}$STRIP" >&6
7483 echo "$as_me:$LINENO: result: no" >&5
7484 echo "${ECHO_T}no" >&6
7488 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7490 set dummy ${ncn_progname}; ac_word=$2
7491 echo "$as_me:$LINENO: checking for $ac_word" >&5
7492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7493 if test "${ac_cv_prog_STRIP+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7496 if test -n "$STRIP"; then
7497 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7506 ac_cv_prog_STRIP="${ncn_progname}"
7507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 STRIP=$ac_cv_prog_STRIP
7516 if test -n "$STRIP"; then
7517 echo "$as_me:$LINENO: result: $STRIP" >&5
7518 echo "${ECHO_T}$STRIP" >&6
7520 echo "$as_me:$LINENO: result: no" >&5
7521 echo "${ECHO_T}no" >&6
7525 test -n "$ac_cv_prog_STRIP" && break
7528 if test -z "$ac_cv_prog_STRIP" ; then
7534 if test -n "$WINDRES"; then
7535 ac_cv_prog_WINDRES=$WINDRES
7536 elif test -n "$ac_cv_prog_WINDRES"; then
7537 WINDRES=$ac_cv_prog_WINDRES
7540 if test -n "$ac_cv_prog_WINDRES"; then
7541 for ncn_progname in windres; do
7542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7543 set dummy ${ncn_progname}; ac_word=$2
7544 echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7546 if test "${ac_cv_prog_WINDRES+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 if test -n "$WINDRES"; then
7550 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_WINDRES="${ncn_progname}"
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 WINDRES=$ac_cv_prog_WINDRES
7569 if test -n "$WINDRES"; then
7570 echo "$as_me:$LINENO: result: $WINDRES" >&5
7571 echo "${ECHO_T}$WINDRES" >&6
7573 echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6
7580 for ncn_progname in windres; do
7581 if test -n "$ncn_tool_prefix"; then
7582 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7583 set dummy ${ncn_tool_prefix}${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_WINDRES+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 if test -n "$WINDRES"; then
7590 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 WINDRES=$ac_cv_prog_WINDRES
7609 if test -n "$WINDRES"; then
7610 echo "$as_me:$LINENO: result: $WINDRES" >&5
7611 echo "${ECHO_T}$WINDRES" >&6
7613 echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6
7618 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7620 set dummy ${ncn_progname}; ac_word=$2
7621 echo "$as_me:$LINENO: checking for $ac_word" >&5
7622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7623 if test "${ac_cv_prog_WINDRES+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 if test -n "$WINDRES"; then
7627 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_WINDRES="${ncn_progname}"
7637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 WINDRES=$ac_cv_prog_WINDRES
7646 if test -n "$WINDRES"; then
7647 echo "$as_me:$LINENO: result: $WINDRES" >&5
7648 echo "${ECHO_T}$WINDRES" >&6
7650 echo "$as_me:$LINENO: result: no" >&5
7651 echo "${ECHO_T}no" >&6
7655 test -n "$ac_cv_prog_WINDRES" && break
7658 if test -z "$ac_cv_prog_WINDRES" ; then
7660 if test $build = $host ; then
7663 WINDRES="${ncn_tool_prefix}$2"
7669 if test -n "$WINDMC"; then
7670 ac_cv_prog_WINDMC=$WINDMC
7671 elif test -n "$ac_cv_prog_WINDMC"; then
7672 WINDMC=$ac_cv_prog_WINDMC
7675 if test -n "$ac_cv_prog_WINDMC"; then
7676 for ncn_progname in windmc; do
7677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7678 set dummy ${ncn_progname}; ac_word=$2
7679 echo "$as_me:$LINENO: checking for $ac_word" >&5
7680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7681 if test "${ac_cv_prog_WINDMC+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 if test -n "$WINDMC"; then
7685 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_WINDMC="${ncn_progname}"
7695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 WINDMC=$ac_cv_prog_WINDMC
7704 if test -n "$WINDMC"; then
7705 echo "$as_me:$LINENO: result: $WINDMC" >&5
7706 echo "${ECHO_T}$WINDMC" >&6
7708 echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6
7715 for ncn_progname in windmc; do
7716 if test -n "$ncn_tool_prefix"; then
7717 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7718 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7719 echo "$as_me:$LINENO: checking for $ac_word" >&5
7720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7721 if test "${ac_cv_prog_WINDMC+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 if test -n "$WINDMC"; then
7725 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 WINDMC=$ac_cv_prog_WINDMC
7744 if test -n "$WINDMC"; then
7745 echo "$as_me:$LINENO: result: $WINDMC" >&5
7746 echo "${ECHO_T}$WINDMC" >&6
7748 echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6
7753 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7755 set dummy ${ncn_progname}; ac_word=$2
7756 echo "$as_me:$LINENO: checking for $ac_word" >&5
7757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7758 if test "${ac_cv_prog_WINDMC+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 if test -n "$WINDMC"; then
7762 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771 ac_cv_prog_WINDMC="${ncn_progname}"
7772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 WINDMC=$ac_cv_prog_WINDMC
7781 if test -n "$WINDMC"; then
7782 echo "$as_me:$LINENO: result: $WINDMC" >&5
7783 echo "${ECHO_T}$WINDMC" >&6
7785 echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6
7790 test -n "$ac_cv_prog_WINDMC" && break
7793 if test -z "$ac_cv_prog_WINDMC" ; then
7795 if test $build = $host ; then
7798 WINDMC="${ncn_tool_prefix}$2"
7804 if test -n "$OBJCOPY"; then
7805 ac_cv_prog_OBJCOPY=$OBJCOPY
7806 elif test -n "$ac_cv_prog_OBJCOPY"; then
7807 OBJCOPY=$ac_cv_prog_OBJCOPY
7810 if test -n "$ac_cv_prog_OBJCOPY"; then
7811 for ncn_progname in objcopy; do
7812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7813 set dummy ${ncn_progname}; ac_word=$2
7814 echo "$as_me:$LINENO: checking for $ac_word" >&5
7815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7816 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 if test -n "$OBJCOPY"; then
7820 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829 ac_cv_prog_OBJCOPY="${ncn_progname}"
7830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 OBJCOPY=$ac_cv_prog_OBJCOPY
7839 if test -n "$OBJCOPY"; then
7840 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7841 echo "${ECHO_T}$OBJCOPY" >&6
7843 echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6
7850 for ncn_progname in objcopy; do
7851 if test -n "$ncn_tool_prefix"; then
7852 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7853 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7854 echo "$as_me:$LINENO: checking for $ac_word" >&5
7855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7856 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 if test -n "$OBJCOPY"; then
7860 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 OBJCOPY=$ac_cv_prog_OBJCOPY
7879 if test -n "$OBJCOPY"; then
7880 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7881 echo "${ECHO_T}$OBJCOPY" >&6
7883 echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6
7888 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7890 set dummy ${ncn_progname}; ac_word=$2
7891 echo "$as_me:$LINENO: checking for $ac_word" >&5
7892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7893 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 if test -n "$OBJCOPY"; then
7897 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_prog_OBJCOPY="${ncn_progname}"
7907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 OBJCOPY=$ac_cv_prog_OBJCOPY
7916 if test -n "$OBJCOPY"; then
7917 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7918 echo "${ECHO_T}$OBJCOPY" >&6
7920 echo "$as_me:$LINENO: result: no" >&5
7921 echo "${ECHO_T}no" >&6
7925 test -n "$ac_cv_prog_OBJCOPY" && break
7928 if test -z "$ac_cv_prog_OBJCOPY" ; then
7930 if test $build = $host ; then
7933 OBJCOPY="${ncn_tool_prefix}$2"
7939 if test -n "$OBJDUMP"; then
7940 ac_cv_prog_OBJDUMP=$OBJDUMP
7941 elif test -n "$ac_cv_prog_OBJDUMP"; then
7942 OBJDUMP=$ac_cv_prog_OBJDUMP
7945 if test -n "$ac_cv_prog_OBJDUMP"; then
7946 for ncn_progname in objdump; do
7947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7948 set dummy ${ncn_progname}; ac_word=$2
7949 echo "$as_me:$LINENO: checking for $ac_word" >&5
7950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7951 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 if test -n "$OBJDUMP"; then
7955 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7964 ac_cv_prog_OBJDUMP="${ncn_progname}"
7965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 OBJDUMP=$ac_cv_prog_OBJDUMP
7974 if test -n "$OBJDUMP"; then
7975 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7976 echo "${ECHO_T}$OBJDUMP" >&6
7978 echo "$as_me:$LINENO: result: no" >&5
7979 echo "${ECHO_T}no" >&6
7985 for ncn_progname in objdump; do
7986 if test -n "$ncn_tool_prefix"; then
7987 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7988 set dummy ${ncn_tool_prefix}${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_OBJDUMP+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 if test -n "$OBJDUMP"; then
7995 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 OBJDUMP=$ac_cv_prog_OBJDUMP
8014 if test -n "$OBJDUMP"; then
8015 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8016 echo "${ECHO_T}$OBJDUMP" >&6
8018 echo "$as_me:$LINENO: result: no" >&5
8019 echo "${ECHO_T}no" >&6
8023 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8025 set dummy ${ncn_progname}; ac_word=$2
8026 echo "$as_me:$LINENO: checking for $ac_word" >&5
8027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8028 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8031 if test -n "$OBJDUMP"; then
8032 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 test -z "$as_dir" && as_dir=.
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8041 ac_cv_prog_OBJDUMP="${ncn_progname}"
8042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 OBJDUMP=$ac_cv_prog_OBJDUMP
8051 if test -n "$OBJDUMP"; then
8052 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8053 echo "${ECHO_T}$OBJDUMP" >&6
8055 echo "$as_me:$LINENO: result: no" >&5
8056 echo "${ECHO_T}no" >&6
8060 test -n "$ac_cv_prog_OBJDUMP" && break
8063 if test -z "$ac_cv_prog_OBJDUMP" ; then
8065 if test $build = $host ; then
8068 OBJDUMP="${ncn_tool_prefix}$2"
8079 # Check whether --with-build-time-tools or --without-build-time-tools was given.
8080 if test "${with_build_time_tools+set}" = set; then
8081 withval="$with_build_time_tools"
8085 with_build_time_tools=
8086 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8087 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8091 with_build_time_tools=
8096 if test -n "$CC_FOR_TARGET"; then
8097 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8098 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8099 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8102 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8103 for ncn_progname in cc gcc; do
8104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8105 set dummy ${ncn_progname}; ac_word=$2
8106 echo "$as_me:$LINENO: checking for $ac_word" >&5
8107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8108 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 if test -n "$CC_FOR_TARGET"; then
8112 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8121 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8131 if test -n "$CC_FOR_TARGET"; then
8132 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8133 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8135 echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6
8142 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8143 for ncn_progname in cc gcc; do
8144 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8145 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8146 if test -x $with_build_time_tools/${ncn_progname}; then
8147 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8148 echo "$as_me:$LINENO: result: yes" >&5
8149 echo "${ECHO_T}yes" >&6
8152 echo "$as_me:$LINENO: result: no" >&5
8153 echo "${ECHO_T}no" >&6
8158 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8159 for ncn_progname in cc gcc; do
8160 if test -n "$ncn_target_tool_prefix"; then
8161 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8162 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8163 echo "$as_me:$LINENO: checking for $ac_word" >&5
8164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8165 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 if test -n "$CC_FOR_TARGET"; then
8169 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8178 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8188 if test -n "$CC_FOR_TARGET"; then
8189 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8190 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8192 echo "$as_me:$LINENO: result: no" >&5
8193 echo "${ECHO_T}no" >&6
8197 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8199 set dummy ${ncn_progname}; ac_word=$2
8200 echo "$as_me:$LINENO: checking for $ac_word" >&5
8201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8202 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 if test -n "$CC_FOR_TARGET"; then
8206 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8215 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8225 if test -n "$CC_FOR_TARGET"; then
8226 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8227 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8229 echo "$as_me:$LINENO: result: no" >&5
8230 echo "${ECHO_T}no" >&6
8234 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8238 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8240 if test $build = $target ; then
8243 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8246 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
8251 if test -n "$CXX_FOR_TARGET"; then
8252 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8253 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8254 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8257 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8258 for ncn_progname in c++ g++ cxx gxx; do
8259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8260 set dummy ${ncn_progname}; ac_word=$2
8261 echo "$as_me:$LINENO: checking for $ac_word" >&5
8262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8263 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 if test -n "$CXX_FOR_TARGET"; then
8267 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8286 if test -n "$CXX_FOR_TARGET"; then
8287 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8288 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8290 echo "$as_me:$LINENO: result: no" >&5
8291 echo "${ECHO_T}no" >&6
8297 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8298 for ncn_progname in c++ g++ cxx gxx; do
8299 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8300 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8301 if test -x $with_build_time_tools/${ncn_progname}; then
8302 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8303 echo "$as_me:$LINENO: result: yes" >&5
8304 echo "${ECHO_T}yes" >&6
8307 echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6
8313 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8314 for ncn_progname in c++ g++ cxx gxx; do
8315 if test -n "$ncn_target_tool_prefix"; then
8316 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8317 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8318 echo "$as_me:$LINENO: checking for $ac_word" >&5
8319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8320 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 if test -n "$CXX_FOR_TARGET"; then
8324 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8343 if test -n "$CXX_FOR_TARGET"; then
8344 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8345 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8347 echo "$as_me:$LINENO: result: no" >&5
8348 echo "${ECHO_T}no" >&6
8352 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8354 set dummy ${ncn_progname}; ac_word=$2
8355 echo "$as_me:$LINENO: checking for $ac_word" >&5
8356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8357 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 if test -n "$CXX_FOR_TARGET"; then
8361 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8380 if test -n "$CXX_FOR_TARGET"; then
8381 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8382 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8384 echo "$as_me:$LINENO: result: no" >&5
8385 echo "${ECHO_T}no" >&6
8389 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8393 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8394 set dummy c++ g++ cxx gxx
8395 if test $build = $target ; then
8398 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8401 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
8406 if test -n "$GCC_FOR_TARGET"; then
8407 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8408 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8409 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8412 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8413 for ncn_progname in gcc; do
8414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8415 set dummy ${ncn_progname}; ac_word=$2
8416 echo "$as_me:$LINENO: checking for $ac_word" >&5
8417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8418 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 if test -n "$GCC_FOR_TARGET"; then
8422 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 test -z "$as_dir" && as_dir=.
8429 for ac_exec_ext in '' $ac_executable_extensions; do
8430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8431 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8440 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8441 if test -n "$GCC_FOR_TARGET"; then
8442 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8443 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8445 echo "$as_me:$LINENO: result: no" >&5
8446 echo "${ECHO_T}no" >&6
8452 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8453 for ncn_progname in gcc; do
8454 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8455 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8456 if test -x $with_build_time_tools/${ncn_progname}; then
8457 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8458 echo "$as_me:$LINENO: result: yes" >&5
8459 echo "${ECHO_T}yes" >&6
8462 echo "$as_me:$LINENO: result: no" >&5
8463 echo "${ECHO_T}no" >&6
8468 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8469 for ncn_progname in gcc; do
8470 if test -n "$ncn_target_tool_prefix"; then
8471 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8472 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8473 echo "$as_me:$LINENO: checking for $ac_word" >&5
8474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8475 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 if test -n "$GCC_FOR_TARGET"; then
8479 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8497 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8498 if test -n "$GCC_FOR_TARGET"; then
8499 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8500 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8502 echo "$as_me:$LINENO: result: no" >&5
8503 echo "${ECHO_T}no" >&6
8507 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8509 set dummy ${ncn_progname}; ac_word=$2
8510 echo "$as_me:$LINENO: checking for $ac_word" >&5
8511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8512 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 if test -n "$GCC_FOR_TARGET"; then
8516 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 test -z "$as_dir" && as_dir=.
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8525 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8535 if test -n "$GCC_FOR_TARGET"; then
8536 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8537 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8539 echo "$as_me:$LINENO: result: no" >&5
8540 echo "${ECHO_T}no" >&6
8544 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8548 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8549 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8551 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
8556 if test -n "$GCJ_FOR_TARGET"; then
8557 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8558 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8559 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8562 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8563 for ncn_progname in gcj; do
8564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8565 set dummy ${ncn_progname}; ac_word=$2
8566 echo "$as_me:$LINENO: checking for $ac_word" >&5
8567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8568 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 if test -n "$GCJ_FOR_TARGET"; then
8572 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8581 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8590 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8591 if test -n "$GCJ_FOR_TARGET"; then
8592 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8593 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8595 echo "$as_me:$LINENO: result: no" >&5
8596 echo "${ECHO_T}no" >&6
8602 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8603 for ncn_progname in gcj; do
8604 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8605 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8606 if test -x $with_build_time_tools/${ncn_progname}; then
8607 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8608 echo "$as_me:$LINENO: result: yes" >&5
8609 echo "${ECHO_T}yes" >&6
8612 echo "$as_me:$LINENO: result: no" >&5
8613 echo "${ECHO_T}no" >&6
8618 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8619 for ncn_progname in gcj; do
8620 if test -n "$ncn_target_tool_prefix"; then
8621 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8622 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8623 echo "$as_me:$LINENO: checking for $ac_word" >&5
8624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8625 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 if test -n "$GCJ_FOR_TARGET"; then
8629 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 test -z "$as_dir" && as_dir=.
8636 for ac_exec_ext in '' $ac_executable_extensions; do
8637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8638 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8648 if test -n "$GCJ_FOR_TARGET"; then
8649 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8650 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8652 echo "$as_me:$LINENO: result: no" >&5
8653 echo "${ECHO_T}no" >&6
8657 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8659 set dummy ${ncn_progname}; ac_word=$2
8660 echo "$as_me:$LINENO: checking for $ac_word" >&5
8661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8662 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 if test -n "$GCJ_FOR_TARGET"; then
8666 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672 test -z "$as_dir" && as_dir=.
8673 for ac_exec_ext in '' $ac_executable_extensions; do
8674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8675 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8684 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8685 if test -n "$GCJ_FOR_TARGET"; then
8686 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8687 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8689 echo "$as_me:$LINENO: result: no" >&5
8690 echo "${ECHO_T}no" >&6
8694 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8698 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8700 if test $build = $target ; then
8703 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8706 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
8711 if test -n "$GFORTRAN_FOR_TARGET"; then
8712 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8713 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8714 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8717 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8718 for ncn_progname in gfortran; do
8719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8720 set dummy ${ncn_progname}; ac_word=$2
8721 echo "$as_me:$LINENO: checking for $ac_word" >&5
8722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8723 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8726 if test -n "$GFORTRAN_FOR_TARGET"; then
8727 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8736 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8746 if test -n "$GFORTRAN_FOR_TARGET"; then
8747 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8748 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8750 echo "$as_me:$LINENO: result: no" >&5
8751 echo "${ECHO_T}no" >&6
8757 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
8758 for ncn_progname in gfortran; do
8759 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8760 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8761 if test -x $with_build_time_tools/${ncn_progname}; then
8762 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8763 echo "$as_me:$LINENO: result: yes" >&5
8764 echo "${ECHO_T}yes" >&6
8767 echo "$as_me:$LINENO: result: no" >&5
8768 echo "${ECHO_T}no" >&6
8773 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8774 for ncn_progname in gfortran; do
8775 if test -n "$ncn_target_tool_prefix"; then
8776 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8777 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8778 echo "$as_me:$LINENO: checking for $ac_word" >&5
8779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8780 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 if test -n "$GFORTRAN_FOR_TARGET"; then
8784 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8793 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8802 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8803 if test -n "$GFORTRAN_FOR_TARGET"; then
8804 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8805 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8807 echo "$as_me:$LINENO: result: no" >&5
8808 echo "${ECHO_T}no" >&6
8812 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8814 set dummy ${ncn_progname}; ac_word=$2
8815 echo "$as_me:$LINENO: checking for $ac_word" >&5
8816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8817 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 if test -n "$GFORTRAN_FOR_TARGET"; then
8821 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8830 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8839 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8840 if test -n "$GFORTRAN_FOR_TARGET"; then
8841 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8842 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8844 echo "$as_me:$LINENO: result: no" >&5
8845 echo "${ECHO_T}no" >&6
8849 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8853 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8855 if test $build = $target ; then
8856 GFORTRAN_FOR_TARGET="$2"
8858 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8861 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
8866 cat > conftest.c << \EOF
8871 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8872 have_gcc_for_target=yes
8874 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8875 have_gcc_for_target=no
8882 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8883 if test -n "$with_build_time_tools"; then
8884 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8885 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
8886 if test -x $with_build_time_tools/ar; then
8887 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8888 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8889 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8890 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
8892 echo "$as_me:$LINENO: result: no" >&5
8893 echo "${ECHO_T}no" >&6
8895 elif test $build != $host && test $have_gcc_for_target = yes; then
8896 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8897 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8898 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8901 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8902 # Extract the first word of "ar", so it can be a program name with args.
8903 set dummy ar; ac_word=$2
8904 echo "$as_me:$LINENO: checking for $ac_word" >&5
8905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8906 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 case $AR_FOR_TARGET in
8911 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915 for as_dir in $gcc_cv_tool_dirs
8918 test -z "$as_dir" && as_dir=.
8919 for ac_exec_ext in '' $ac_executable_extensions; do
8920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8921 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8931 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8933 if test -n "$AR_FOR_TARGET"; then
8934 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8935 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8937 echo "$as_me:$LINENO: result: no" >&5
8938 echo "${ECHO_T}no" >&6
8942 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8945 if test -n "$AR_FOR_TARGET"; then
8946 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8947 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8948 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8951 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8952 for ncn_progname in ar; do
8953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8954 set dummy ${ncn_progname}; ac_word=$2
8955 echo "$as_me:$LINENO: checking for $ac_word" >&5
8956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8957 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 if test -n "$AR_FOR_TARGET"; then
8961 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967 test -z "$as_dir" && as_dir=.
8968 for ac_exec_ext in '' $ac_executable_extensions; do
8969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8970 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8979 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8980 if test -n "$AR_FOR_TARGET"; then
8981 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8982 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8984 echo "$as_me:$LINENO: result: no" >&5
8985 echo "${ECHO_T}no" >&6
8991 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
8992 for ncn_progname in ar; do
8993 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8994 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8995 if test -x $with_build_time_tools/${ncn_progname}; then
8996 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8997 echo "$as_me:$LINENO: result: yes" >&5
8998 echo "${ECHO_T}yes" >&6
9001 echo "$as_me:$LINENO: result: no" >&5
9002 echo "${ECHO_T}no" >&6
9007 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9008 for ncn_progname in ar; do
9009 if test -n "$ncn_target_tool_prefix"; then
9010 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9011 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9012 echo "$as_me:$LINENO: checking for $ac_word" >&5
9013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9014 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9017 if test -n "$AR_FOR_TARGET"; then
9018 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024 test -z "$as_dir" && as_dir=.
9025 for ac_exec_ext in '' $ac_executable_extensions; do
9026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9027 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9036 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9037 if test -n "$AR_FOR_TARGET"; then
9038 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9039 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9041 echo "$as_me:$LINENO: result: no" >&5
9042 echo "${ECHO_T}no" >&6
9046 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9048 set dummy ${ncn_progname}; ac_word=$2
9049 echo "$as_me:$LINENO: checking for $ac_word" >&5
9050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9051 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 if test -n "$AR_FOR_TARGET"; then
9055 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061 test -z "$as_dir" && as_dir=.
9062 for ac_exec_ext in '' $ac_executable_extensions; do
9063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9064 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9073 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9074 if test -n "$AR_FOR_TARGET"; then
9075 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9076 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9078 echo "$as_me:$LINENO: result: no" >&5
9079 echo "${ECHO_T}no" >&6
9083 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9087 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9089 if test $build = $target ; then
9092 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
9095 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
9099 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9105 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9106 if test -n "$with_build_time_tools"; then
9107 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9108 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
9109 if test -x $with_build_time_tools/as; then
9110 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9111 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9112 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9113 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
9115 echo "$as_me:$LINENO: result: no" >&5
9116 echo "${ECHO_T}no" >&6
9118 elif test $build != $host && test $have_gcc_for_target = yes; then
9119 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
9120 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9121 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9124 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9125 # Extract the first word of "as", so it can be a program name with args.
9126 set dummy as; ac_word=$2
9127 echo "$as_me:$LINENO: checking for $ac_word" >&5
9128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9129 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 case $AS_FOR_TARGET in
9134 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9138 for as_dir in $gcc_cv_tool_dirs
9141 test -z "$as_dir" && as_dir=.
9142 for ac_exec_ext in '' $ac_executable_extensions; do
9143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9144 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9154 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9156 if test -n "$AS_FOR_TARGET"; then
9157 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9158 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9160 echo "$as_me:$LINENO: result: no" >&5
9161 echo "${ECHO_T}no" >&6
9165 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9168 if test -n "$AS_FOR_TARGET"; then
9169 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9170 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9171 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9174 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9175 for ncn_progname in as; do
9176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9177 set dummy ${ncn_progname}; ac_word=$2
9178 echo "$as_me:$LINENO: checking for $ac_word" >&5
9179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9180 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 if test -n "$AS_FOR_TARGET"; then
9184 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9190 test -z "$as_dir" && as_dir=.
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9193 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9202 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9203 if test -n "$AS_FOR_TARGET"; then
9204 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9205 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9207 echo "$as_me:$LINENO: result: no" >&5
9208 echo "${ECHO_T}no" >&6
9214 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9215 for ncn_progname in as; do
9216 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9217 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9218 if test -x $with_build_time_tools/${ncn_progname}; then
9219 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9220 echo "$as_me:$LINENO: result: yes" >&5
9221 echo "${ECHO_T}yes" >&6
9224 echo "$as_me:$LINENO: result: no" >&5
9225 echo "${ECHO_T}no" >&6
9230 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9231 for ncn_progname in as; do
9232 if test -n "$ncn_target_tool_prefix"; then
9233 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9234 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9235 echo "$as_me:$LINENO: checking for $ac_word" >&5
9236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9237 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 if test -n "$AS_FOR_TARGET"; then
9241 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247 test -z "$as_dir" && as_dir=.
9248 for ac_exec_ext in '' $ac_executable_extensions; do
9249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9250 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9259 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9260 if test -n "$AS_FOR_TARGET"; then
9261 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9262 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9264 echo "$as_me:$LINENO: result: no" >&5
9265 echo "${ECHO_T}no" >&6
9269 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9271 set dummy ${ncn_progname}; ac_word=$2
9272 echo "$as_me:$LINENO: checking for $ac_word" >&5
9273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9274 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 if test -n "$AS_FOR_TARGET"; then
9278 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9284 test -z "$as_dir" && as_dir=.
9285 for ac_exec_ext in '' $ac_executable_extensions; do
9286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9287 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9296 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9297 if test -n "$AS_FOR_TARGET"; then
9298 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9299 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9301 echo "$as_me:$LINENO: result: no" >&5
9302 echo "${ECHO_T}no" >&6
9306 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9310 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9312 if test $build = $target ; then
9315 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9318 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
9322 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9328 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9329 if test -n "$with_build_time_tools"; then
9330 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9331 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
9332 if test -x $with_build_time_tools/dlltool; then
9333 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9334 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9335 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9336 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
9338 echo "$as_me:$LINENO: result: no" >&5
9339 echo "${ECHO_T}no" >&6
9341 elif test $build != $host && test $have_gcc_for_target = yes; then
9342 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9343 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9344 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9347 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9348 # Extract the first word of "dlltool", so it can be a program name with args.
9349 set dummy dlltool; ac_word=$2
9350 echo "$as_me:$LINENO: checking for $ac_word" >&5
9351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9352 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9355 case $DLLTOOL_FOR_TARGET in
9357 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361 for as_dir in $gcc_cv_tool_dirs
9364 test -z "$as_dir" && as_dir=.
9365 for ac_exec_ext in '' $ac_executable_extensions; do
9366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9367 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9377 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9379 if test -n "$DLLTOOL_FOR_TARGET"; then
9380 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9381 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9383 echo "$as_me:$LINENO: result: no" >&5
9384 echo "${ECHO_T}no" >&6
9388 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9391 if test -n "$DLLTOOL_FOR_TARGET"; then
9392 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9393 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9394 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9397 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9398 for ncn_progname in dlltool; do
9399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9400 set dummy ${ncn_progname}; ac_word=$2
9401 echo "$as_me:$LINENO: checking for $ac_word" >&5
9402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9403 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 if test -n "$DLLTOOL_FOR_TARGET"; then
9407 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9413 test -z "$as_dir" && as_dir=.
9414 for ac_exec_ext in '' $ac_executable_extensions; do
9415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9416 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9425 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9426 if test -n "$DLLTOOL_FOR_TARGET"; then
9427 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9428 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9430 echo "$as_me:$LINENO: result: no" >&5
9431 echo "${ECHO_T}no" >&6
9437 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9438 for ncn_progname in dlltool; do
9439 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9440 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9441 if test -x $with_build_time_tools/${ncn_progname}; then
9442 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9443 echo "$as_me:$LINENO: result: yes" >&5
9444 echo "${ECHO_T}yes" >&6
9447 echo "$as_me:$LINENO: result: no" >&5
9448 echo "${ECHO_T}no" >&6
9453 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9454 for ncn_progname in dlltool; do
9455 if test -n "$ncn_target_tool_prefix"; then
9456 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9457 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9458 echo "$as_me:$LINENO: checking for $ac_word" >&5
9459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9460 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 if test -n "$DLLTOOL_FOR_TARGET"; then
9464 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470 test -z "$as_dir" && as_dir=.
9471 for ac_exec_ext in '' $ac_executable_extensions; do
9472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9473 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9482 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9483 if test -n "$DLLTOOL_FOR_TARGET"; then
9484 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9485 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9487 echo "$as_me:$LINENO: result: no" >&5
9488 echo "${ECHO_T}no" >&6
9492 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9494 set dummy ${ncn_progname}; ac_word=$2
9495 echo "$as_me:$LINENO: checking for $ac_word" >&5
9496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9497 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 if test -n "$DLLTOOL_FOR_TARGET"; then
9501 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9507 test -z "$as_dir" && as_dir=.
9508 for ac_exec_ext in '' $ac_executable_extensions; do
9509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9510 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9519 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9520 if test -n "$DLLTOOL_FOR_TARGET"; then
9521 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9522 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9524 echo "$as_me:$LINENO: result: no" >&5
9525 echo "${ECHO_T}no" >&6
9529 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9533 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9535 if test $build = $target ; then
9536 DLLTOOL_FOR_TARGET="$2"
9538 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9541 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
9545 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9551 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9552 if test -n "$with_build_time_tools"; then
9553 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9554 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
9555 if test -x $with_build_time_tools/ld; then
9556 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9557 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9558 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9559 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
9561 echo "$as_me:$LINENO: result: no" >&5
9562 echo "${ECHO_T}no" >&6
9564 elif test $build != $host && test $have_gcc_for_target = yes; then
9565 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9566 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9567 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9570 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9571 # Extract the first word of "ld", so it can be a program name with args.
9572 set dummy ld; ac_word=$2
9573 echo "$as_me:$LINENO: checking for $ac_word" >&5
9574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9575 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 case $LD_FOR_TARGET in
9580 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 for as_dir in $gcc_cv_tool_dirs
9587 test -z "$as_dir" && as_dir=.
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9590 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9600 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9602 if test -n "$LD_FOR_TARGET"; then
9603 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9604 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9606 echo "$as_me:$LINENO: result: no" >&5
9607 echo "${ECHO_T}no" >&6
9611 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9614 if test -n "$LD_FOR_TARGET"; then
9615 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9616 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9617 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9620 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9621 for ncn_progname in ld; do
9622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9623 set dummy ${ncn_progname}; ac_word=$2
9624 echo "$as_me:$LINENO: checking for $ac_word" >&5
9625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9626 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 if test -n "$LD_FOR_TARGET"; then
9630 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636 test -z "$as_dir" && as_dir=.
9637 for ac_exec_ext in '' $ac_executable_extensions; do
9638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9639 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9648 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9649 if test -n "$LD_FOR_TARGET"; then
9650 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9651 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9653 echo "$as_me:$LINENO: result: no" >&5
9654 echo "${ECHO_T}no" >&6
9660 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9661 for ncn_progname in ld; do
9662 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9663 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9664 if test -x $with_build_time_tools/${ncn_progname}; then
9665 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9666 echo "$as_me:$LINENO: result: yes" >&5
9667 echo "${ECHO_T}yes" >&6
9670 echo "$as_me:$LINENO: result: no" >&5
9671 echo "${ECHO_T}no" >&6
9676 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9677 for ncn_progname in ld; do
9678 if test -n "$ncn_target_tool_prefix"; then
9679 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9680 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9681 echo "$as_me:$LINENO: checking for $ac_word" >&5
9682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9683 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 if test -n "$LD_FOR_TARGET"; then
9687 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693 test -z "$as_dir" && as_dir=.
9694 for ac_exec_ext in '' $ac_executable_extensions; do
9695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9696 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9705 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9706 if test -n "$LD_FOR_TARGET"; then
9707 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9708 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9710 echo "$as_me:$LINENO: result: no" >&5
9711 echo "${ECHO_T}no" >&6
9715 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9717 set dummy ${ncn_progname}; ac_word=$2
9718 echo "$as_me:$LINENO: checking for $ac_word" >&5
9719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9720 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 if test -n "$LD_FOR_TARGET"; then
9724 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730 test -z "$as_dir" && as_dir=.
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9733 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9743 if test -n "$LD_FOR_TARGET"; then
9744 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9745 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9747 echo "$as_me:$LINENO: result: no" >&5
9748 echo "${ECHO_T}no" >&6
9752 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9756 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9758 if test $build = $target ; then
9761 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9764 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
9768 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9774 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9775 if test -n "$with_build_time_tools"; then
9776 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9777 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
9778 if test -x $with_build_time_tools/lipo; then
9779 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9780 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9781 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9782 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
9784 echo "$as_me:$LINENO: result: no" >&5
9785 echo "${ECHO_T}no" >&6
9787 elif test $build != $host && test $have_gcc_for_target = yes; then
9788 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9789 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9790 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9793 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9794 # Extract the first word of "lipo", so it can be a program name with args.
9795 set dummy lipo; ac_word=$2
9796 echo "$as_me:$LINENO: checking for $ac_word" >&5
9797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9798 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 case $LIPO_FOR_TARGET in
9803 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807 for as_dir in $gcc_cv_tool_dirs
9810 test -z "$as_dir" && as_dir=.
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9813 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9825 if test -n "$LIPO_FOR_TARGET"; then
9826 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9827 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9829 echo "$as_me:$LINENO: result: no" >&5
9830 echo "${ECHO_T}no" >&6
9834 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9837 if test -n "$LIPO_FOR_TARGET"; then
9838 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9839 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9840 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9843 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9844 for ncn_progname in lipo; do
9845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9846 set dummy ${ncn_progname}; ac_word=$2
9847 echo "$as_me:$LINENO: checking for $ac_word" >&5
9848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9849 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 if test -n "$LIPO_FOR_TARGET"; then
9853 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859 test -z "$as_dir" && as_dir=.
9860 for ac_exec_ext in '' $ac_executable_extensions; do
9861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9862 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9871 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9872 if test -n "$LIPO_FOR_TARGET"; then
9873 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9874 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9876 echo "$as_me:$LINENO: result: no" >&5
9877 echo "${ECHO_T}no" >&6
9883 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
9884 for ncn_progname in lipo; do
9885 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9886 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9887 if test -x $with_build_time_tools/${ncn_progname}; then
9888 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9889 echo "$as_me:$LINENO: result: yes" >&5
9890 echo "${ECHO_T}yes" >&6
9893 echo "$as_me:$LINENO: result: no" >&5
9894 echo "${ECHO_T}no" >&6
9899 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9900 for ncn_progname in lipo; do
9901 if test -n "$ncn_target_tool_prefix"; then
9902 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9903 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9904 echo "$as_me:$LINENO: checking for $ac_word" >&5
9905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9906 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 if test -n "$LIPO_FOR_TARGET"; then
9910 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9928 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9929 if test -n "$LIPO_FOR_TARGET"; then
9930 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9931 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9933 echo "$as_me:$LINENO: result: no" >&5
9934 echo "${ECHO_T}no" >&6
9938 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9940 set dummy ${ncn_progname}; ac_word=$2
9941 echo "$as_me:$LINENO: checking for $ac_word" >&5
9942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9943 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 if test -n "$LIPO_FOR_TARGET"; then
9947 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 test -z "$as_dir" && as_dir=.
9954 for ac_exec_ext in '' $ac_executable_extensions; do
9955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9956 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9965 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9966 if test -n "$LIPO_FOR_TARGET"; then
9967 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9968 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9970 echo "$as_me:$LINENO: result: no" >&5
9971 echo "${ECHO_T}no" >&6
9975 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9979 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9981 if test $build = $target ; then
9982 LIPO_FOR_TARGET="$2"
9984 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9987 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9991 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9997 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9998 if test -n "$with_build_time_tools"; then
9999 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10000 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
10001 if test -x $with_build_time_tools/nm; then
10002 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10003 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10004 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10005 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
10007 echo "$as_me:$LINENO: result: no" >&5
10008 echo "${ECHO_T}no" >&6
10010 elif test $build != $host && test $have_gcc_for_target = yes; then
10011 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10012 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10013 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10016 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10017 # Extract the first word of "nm", so it can be a program name with args.
10018 set dummy nm; ac_word=$2
10019 echo "$as_me:$LINENO: checking for $ac_word" >&5
10020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10021 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 case $NM_FOR_TARGET in
10026 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030 for as_dir in $gcc_cv_tool_dirs
10033 test -z "$as_dir" && as_dir=.
10034 for ac_exec_ext in '' $ac_executable_extensions; do
10035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10036 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10048 if test -n "$NM_FOR_TARGET"; then
10049 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10050 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10052 echo "$as_me:$LINENO: result: no" >&5
10053 echo "${ECHO_T}no" >&6
10057 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10060 if test -n "$NM_FOR_TARGET"; then
10061 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10062 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10063 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10066 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10067 for ncn_progname in nm; do
10068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10069 set dummy ${ncn_progname}; ac_word=$2
10070 echo "$as_me:$LINENO: checking for $ac_word" >&5
10071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10072 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 if test -n "$NM_FOR_TARGET"; then
10076 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10079 for as_dir in $PATH
10082 test -z "$as_dir" && as_dir=.
10083 for ac_exec_ext in '' $ac_executable_extensions; do
10084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10085 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10094 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10095 if test -n "$NM_FOR_TARGET"; then
10096 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10097 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10099 echo "$as_me:$LINENO: result: no" >&5
10100 echo "${ECHO_T}no" >&6
10106 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
10107 for ncn_progname in nm; do
10108 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10109 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10110 if test -x $with_build_time_tools/${ncn_progname}; then
10111 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10112 echo "$as_me:$LINENO: result: yes" >&5
10113 echo "${ECHO_T}yes" >&6
10116 echo "$as_me:$LINENO: result: no" >&5
10117 echo "${ECHO_T}no" >&6
10122 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10123 for ncn_progname in nm; do
10124 if test -n "$ncn_target_tool_prefix"; then
10125 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10126 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10127 echo "$as_me:$LINENO: checking for $ac_word" >&5
10128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10129 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 if test -n "$NM_FOR_TARGET"; then
10133 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136 for as_dir in $PATH
10139 test -z "$as_dir" && as_dir=.
10140 for ac_exec_ext in '' $ac_executable_extensions; do
10141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10142 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10151 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10152 if test -n "$NM_FOR_TARGET"; then
10153 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10154 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10156 echo "$as_me:$LINENO: result: no" >&5
10157 echo "${ECHO_T}no" >&6
10161 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10163 set dummy ${ncn_progname}; ac_word=$2
10164 echo "$as_me:$LINENO: checking for $ac_word" >&5
10165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10166 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 if test -n "$NM_FOR_TARGET"; then
10170 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10173 for as_dir in $PATH
10176 test -z "$as_dir" && as_dir=.
10177 for ac_exec_ext in '' $ac_executable_extensions; do
10178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10179 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10188 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10189 if test -n "$NM_FOR_TARGET"; then
10190 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10191 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10193 echo "$as_me:$LINENO: result: no" >&5
10194 echo "${ECHO_T}no" >&6
10198 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10202 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10204 if test $build = $target ; then
10207 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10210 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
10214 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10220 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10221 if test -n "$with_build_time_tools"; then
10222 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10223 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
10224 if test -x $with_build_time_tools/objdump; then
10225 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10226 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10227 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10228 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
10230 echo "$as_me:$LINENO: result: no" >&5
10231 echo "${ECHO_T}no" >&6
10233 elif test $build != $host && test $have_gcc_for_target = yes; then
10234 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10235 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10236 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10239 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10240 # Extract the first word of "objdump", so it can be a program name with args.
10241 set dummy objdump; ac_word=$2
10242 echo "$as_me:$LINENO: checking for $ac_word" >&5
10243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10244 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 case $OBJDUMP_FOR_TARGET in
10249 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in $gcc_cv_tool_dirs
10256 test -z "$as_dir" && as_dir=.
10257 for ac_exec_ext in '' $ac_executable_extensions; do
10258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10259 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10269 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10271 if test -n "$OBJDUMP_FOR_TARGET"; then
10272 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10273 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10275 echo "$as_me:$LINENO: result: no" >&5
10276 echo "${ECHO_T}no" >&6
10280 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10283 if test -n "$OBJDUMP_FOR_TARGET"; then
10284 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10285 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10286 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10289 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10290 for ncn_progname in objdump; do
10291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10292 set dummy ${ncn_progname}; ac_word=$2
10293 echo "$as_me:$LINENO: checking for $ac_word" >&5
10294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10295 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 if test -n "$OBJDUMP_FOR_TARGET"; then
10299 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302 for as_dir in $PATH
10305 test -z "$as_dir" && as_dir=.
10306 for ac_exec_ext in '' $ac_executable_extensions; do
10307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10308 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10317 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10318 if test -n "$OBJDUMP_FOR_TARGET"; then
10319 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10320 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10322 echo "$as_me:$LINENO: result: no" >&5
10323 echo "${ECHO_T}no" >&6
10329 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10330 for ncn_progname in objdump; do
10331 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10332 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10333 if test -x $with_build_time_tools/${ncn_progname}; then
10334 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10335 echo "$as_me:$LINENO: result: yes" >&5
10336 echo "${ECHO_T}yes" >&6
10339 echo "$as_me:$LINENO: result: no" >&5
10340 echo "${ECHO_T}no" >&6
10345 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10346 for ncn_progname in objdump; do
10347 if test -n "$ncn_target_tool_prefix"; then
10348 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10349 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10350 echo "$as_me:$LINENO: checking for $ac_word" >&5
10351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10352 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 if test -n "$OBJDUMP_FOR_TARGET"; then
10356 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359 for as_dir in $PATH
10362 test -z "$as_dir" && as_dir=.
10363 for ac_exec_ext in '' $ac_executable_extensions; do
10364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10365 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10375 if test -n "$OBJDUMP_FOR_TARGET"; then
10376 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10377 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10379 echo "$as_me:$LINENO: result: no" >&5
10380 echo "${ECHO_T}no" >&6
10384 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10386 set dummy ${ncn_progname}; ac_word=$2
10387 echo "$as_me:$LINENO: checking for $ac_word" >&5
10388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10389 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 if test -n "$OBJDUMP_FOR_TARGET"; then
10393 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in $PATH
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10402 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10411 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10412 if test -n "$OBJDUMP_FOR_TARGET"; then
10413 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10414 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10416 echo "$as_me:$LINENO: result: no" >&5
10417 echo "${ECHO_T}no" >&6
10421 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10425 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10427 if test $build = $target ; then
10428 OBJDUMP_FOR_TARGET="$2"
10430 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10433 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
10437 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10443 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10444 if test -n "$with_build_time_tools"; then
10445 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10446 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
10447 if test -x $with_build_time_tools/ranlib; then
10448 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10449 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10450 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10451 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
10453 echo "$as_me:$LINENO: result: no" >&5
10454 echo "${ECHO_T}no" >&6
10456 elif test $build != $host && test $have_gcc_for_target = yes; then
10457 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10458 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10459 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10462 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10463 # Extract the first word of "ranlib", so it can be a program name with args.
10464 set dummy ranlib; ac_word=$2
10465 echo "$as_me:$LINENO: checking for $ac_word" >&5
10466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10467 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 case $RANLIB_FOR_TARGET in
10472 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476 for as_dir in $gcc_cv_tool_dirs
10479 test -z "$as_dir" && as_dir=.
10480 for ac_exec_ext in '' $ac_executable_extensions; do
10481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10482 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10494 if test -n "$RANLIB_FOR_TARGET"; then
10495 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10496 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10498 echo "$as_me:$LINENO: result: no" >&5
10499 echo "${ECHO_T}no" >&6
10503 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10506 if test -n "$RANLIB_FOR_TARGET"; then
10507 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10508 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10509 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10512 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10513 for ncn_progname in ranlib; do
10514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10515 set dummy ${ncn_progname}; ac_word=$2
10516 echo "$as_me:$LINENO: checking for $ac_word" >&5
10517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10518 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 if test -n "$RANLIB_FOR_TARGET"; then
10522 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10531 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10541 if test -n "$RANLIB_FOR_TARGET"; then
10542 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10543 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10545 echo "$as_me:$LINENO: result: no" >&5
10546 echo "${ECHO_T}no" >&6
10552 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10553 for ncn_progname in ranlib; do
10554 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10555 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10556 if test -x $with_build_time_tools/${ncn_progname}; then
10557 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10558 echo "$as_me:$LINENO: result: yes" >&5
10559 echo "${ECHO_T}yes" >&6
10562 echo "$as_me:$LINENO: result: no" >&5
10563 echo "${ECHO_T}no" >&6
10568 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10569 for ncn_progname in ranlib; do
10570 if test -n "$ncn_target_tool_prefix"; then
10571 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10572 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10573 echo "$as_me:$LINENO: checking for $ac_word" >&5
10574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10575 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 if test -n "$RANLIB_FOR_TARGET"; then
10579 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10588 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10597 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10598 if test -n "$RANLIB_FOR_TARGET"; then
10599 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10600 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10602 echo "$as_me:$LINENO: result: no" >&5
10603 echo "${ECHO_T}no" >&6
10607 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10609 set dummy ${ncn_progname}; ac_word=$2
10610 echo "$as_me:$LINENO: checking for $ac_word" >&5
10611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10612 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 if test -n "$RANLIB_FOR_TARGET"; then
10616 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619 for as_dir in $PATH
10622 test -z "$as_dir" && as_dir=.
10623 for ac_exec_ext in '' $ac_executable_extensions; do
10624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10625 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10634 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10635 if test -n "$RANLIB_FOR_TARGET"; then
10636 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10637 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10639 echo "$as_me:$LINENO: result: no" >&5
10640 echo "${ECHO_T}no" >&6
10644 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10648 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10650 if test $build = $target ; then
10651 RANLIB_FOR_TARGET="$2"
10653 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10656 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
10660 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10666 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10667 if test -n "$with_build_time_tools"; then
10668 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10669 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
10670 if test -x $with_build_time_tools/strip; then
10671 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10672 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10673 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10674 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
10676 echo "$as_me:$LINENO: result: no" >&5
10677 echo "${ECHO_T}no" >&6
10679 elif test $build != $host && test $have_gcc_for_target = yes; then
10680 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10681 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10682 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10685 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10686 # Extract the first word of "strip", so it can be a program name with args.
10687 set dummy strip; ac_word=$2
10688 echo "$as_me:$LINENO: checking for $ac_word" >&5
10689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10690 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 case $STRIP_FOR_TARGET in
10695 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699 for as_dir in $gcc_cv_tool_dirs
10702 test -z "$as_dir" && as_dir=.
10703 for ac_exec_ext in '' $ac_executable_extensions; do
10704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10705 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10715 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10717 if test -n "$STRIP_FOR_TARGET"; then
10718 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10719 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10721 echo "$as_me:$LINENO: result: no" >&5
10722 echo "${ECHO_T}no" >&6
10726 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10729 if test -n "$STRIP_FOR_TARGET"; then
10730 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10731 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10732 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10735 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10736 for ncn_progname in strip; do
10737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10738 set dummy ${ncn_progname}; ac_word=$2
10739 echo "$as_me:$LINENO: checking for $ac_word" >&5
10740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10741 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 if test -n "$STRIP_FOR_TARGET"; then
10745 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748 for as_dir in $PATH
10751 test -z "$as_dir" && as_dir=.
10752 for ac_exec_ext in '' $ac_executable_extensions; do
10753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10754 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10764 if test -n "$STRIP_FOR_TARGET"; then
10765 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10766 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10768 echo "$as_me:$LINENO: result: no" >&5
10769 echo "${ECHO_T}no" >&6
10775 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10776 for ncn_progname in strip; do
10777 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10778 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10779 if test -x $with_build_time_tools/${ncn_progname}; then
10780 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10781 echo "$as_me:$LINENO: result: yes" >&5
10782 echo "${ECHO_T}yes" >&6
10785 echo "$as_me:$LINENO: result: no" >&5
10786 echo "${ECHO_T}no" >&6
10791 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10792 for ncn_progname in strip; do
10793 if test -n "$ncn_target_tool_prefix"; then
10794 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10795 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10796 echo "$as_me:$LINENO: checking for $ac_word" >&5
10797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10798 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 if test -n "$STRIP_FOR_TARGET"; then
10802 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805 for as_dir in $PATH
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10811 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10820 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10821 if test -n "$STRIP_FOR_TARGET"; then
10822 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10823 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10825 echo "$as_me:$LINENO: result: no" >&5
10826 echo "${ECHO_T}no" >&6
10830 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10832 set dummy ${ncn_progname}; ac_word=$2
10833 echo "$as_me:$LINENO: checking for $ac_word" >&5
10834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10835 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 if test -n "$STRIP_FOR_TARGET"; then
10839 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10842 for as_dir in $PATH
10845 test -z "$as_dir" && as_dir=.
10846 for ac_exec_ext in '' $ac_executable_extensions; do
10847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10848 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10857 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10858 if test -n "$STRIP_FOR_TARGET"; then
10859 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10860 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10862 echo "$as_me:$LINENO: result: no" >&5
10863 echo "${ECHO_T}no" >&6
10867 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10871 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10873 if test $build = $target ; then
10874 STRIP_FOR_TARGET="$2"
10876 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10879 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
10883 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10889 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10890 if test -n "$with_build_time_tools"; then
10891 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10892 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
10893 if test -x $with_build_time_tools/windres; then
10894 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10895 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10896 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10897 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
10899 echo "$as_me:$LINENO: result: no" >&5
10900 echo "${ECHO_T}no" >&6
10902 elif test $build != $host && test $have_gcc_for_target = yes; then
10903 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10904 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10905 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10908 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10909 # Extract the first word of "windres", so it can be a program name with args.
10910 set dummy windres; ac_word=$2
10911 echo "$as_me:$LINENO: checking for $ac_word" >&5
10912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10913 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 case $WINDRES_FOR_TARGET in
10918 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10922 for as_dir in $gcc_cv_tool_dirs
10925 test -z "$as_dir" && as_dir=.
10926 for ac_exec_ext in '' $ac_executable_extensions; do
10927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10928 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10938 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10940 if test -n "$WINDRES_FOR_TARGET"; then
10941 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10942 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10944 echo "$as_me:$LINENO: result: no" >&5
10945 echo "${ECHO_T}no" >&6
10949 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10952 if test -n "$WINDRES_FOR_TARGET"; then
10953 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10954 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10955 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10958 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10959 for ncn_progname in windres; do
10960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10961 set dummy ${ncn_progname}; ac_word=$2
10962 echo "$as_me:$LINENO: checking for $ac_word" >&5
10963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10964 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 if test -n "$WINDRES_FOR_TARGET"; then
10968 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971 for as_dir in $PATH
10974 test -z "$as_dir" && as_dir=.
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10977 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10987 if test -n "$WINDRES_FOR_TARGET"; then
10988 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10989 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10991 echo "$as_me:$LINENO: result: no" >&5
10992 echo "${ECHO_T}no" >&6
10998 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
10999 for ncn_progname in windres; do
11000 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11001 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11002 if test -x $with_build_time_tools/${ncn_progname}; then
11003 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11004 echo "$as_me:$LINENO: result: yes" >&5
11005 echo "${ECHO_T}yes" >&6
11008 echo "$as_me:$LINENO: result: no" >&5
11009 echo "${ECHO_T}no" >&6
11014 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11015 for ncn_progname in windres; do
11016 if test -n "$ncn_target_tool_prefix"; then
11017 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11018 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11019 echo "$as_me:$LINENO: checking for $ac_word" >&5
11020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11021 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11024 if test -n "$WINDRES_FOR_TARGET"; then
11025 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028 for as_dir in $PATH
11031 test -z "$as_dir" && as_dir=.
11032 for ac_exec_ext in '' $ac_executable_extensions; do
11033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11034 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11043 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11044 if test -n "$WINDRES_FOR_TARGET"; then
11045 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11046 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11048 echo "$as_me:$LINENO: result: no" >&5
11049 echo "${ECHO_T}no" >&6
11053 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11055 set dummy ${ncn_progname}; ac_word=$2
11056 echo "$as_me:$LINENO: checking for $ac_word" >&5
11057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11058 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 if test -n "$WINDRES_FOR_TARGET"; then
11062 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $PATH
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11071 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11080 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11081 if test -n "$WINDRES_FOR_TARGET"; then
11082 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11083 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11085 echo "$as_me:$LINENO: result: no" >&5
11086 echo "${ECHO_T}no" >&6
11090 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11094 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11096 if test $build = $target ; then
11097 WINDRES_FOR_TARGET="$2"
11099 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
11102 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
11106 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11112 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11113 if test -n "$with_build_time_tools"; then
11114 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11115 echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11116 if test -x $with_build_time_tools/windmc; then
11117 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11118 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11119 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11120 echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11122 echo "$as_me:$LINENO: result: no" >&5
11123 echo "${ECHO_T}no" >&6
11125 elif test $build != $host && test $have_gcc_for_target = yes; then
11126 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11127 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11128 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11131 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11132 # Extract the first word of "windmc", so it can be a program name with args.
11133 set dummy windmc; ac_word=$2
11134 echo "$as_me:$LINENO: checking for $ac_word" >&5
11135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11136 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 case $WINDMC_FOR_TARGET in
11141 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145 for as_dir in $gcc_cv_tool_dirs
11148 test -z "$as_dir" && as_dir=.
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11151 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11161 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11163 if test -n "$WINDMC_FOR_TARGET"; then
11164 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11165 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11167 echo "$as_me:$LINENO: result: no" >&5
11168 echo "${ECHO_T}no" >&6
11172 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11175 if test -n "$WINDMC_FOR_TARGET"; then
11176 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11177 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11178 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11181 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11182 for ncn_progname in windmc; do
11183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11184 set dummy ${ncn_progname}; ac_word=$2
11185 echo "$as_me:$LINENO: checking for $ac_word" >&5
11186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11187 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 if test -n "$WINDMC_FOR_TARGET"; then
11191 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194 for as_dir in $PATH
11197 test -z "$as_dir" && as_dir=.
11198 for ac_exec_ext in '' $ac_executable_extensions; do
11199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11200 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11209 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11210 if test -n "$WINDMC_FOR_TARGET"; then
11211 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11212 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11214 echo "$as_me:$LINENO: result: no" >&5
11215 echo "${ECHO_T}no" >&6
11221 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11222 for ncn_progname in windmc; do
11223 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11224 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11225 if test -x $with_build_time_tools/${ncn_progname}; then
11226 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11227 echo "$as_me:$LINENO: result: yes" >&5
11228 echo "${ECHO_T}yes" >&6
11231 echo "$as_me:$LINENO: result: no" >&5
11232 echo "${ECHO_T}no" >&6
11237 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11238 for ncn_progname in windmc; do
11239 if test -n "$ncn_target_tool_prefix"; then
11240 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11241 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11242 echo "$as_me:$LINENO: checking for $ac_word" >&5
11243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11244 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 if test -n "$WINDMC_FOR_TARGET"; then
11248 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251 for as_dir in $PATH
11254 test -z "$as_dir" && as_dir=.
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11257 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11266 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11267 if test -n "$WINDMC_FOR_TARGET"; then
11268 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11269 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11271 echo "$as_me:$LINENO: result: no" >&5
11272 echo "${ECHO_T}no" >&6
11276 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11278 set dummy ${ncn_progname}; ac_word=$2
11279 echo "$as_me:$LINENO: checking for $ac_word" >&5
11280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11281 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 if test -n "$WINDMC_FOR_TARGET"; then
11285 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11288 for as_dir in $PATH
11291 test -z "$as_dir" && as_dir=.
11292 for ac_exec_ext in '' $ac_executable_extensions; do
11293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11294 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11303 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11304 if test -n "$WINDMC_FOR_TARGET"; then
11305 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11306 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11308 echo "$as_me:$LINENO: result: no" >&5
11309 echo "${ECHO_T}no" >&6
11313 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11317 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11319 if test $build = $target ; then
11320 WINDMC_FOR_TARGET="$2"
11322 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11325 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11329 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11333 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11335 echo "$as_me:$LINENO: checking where to find the target ar" >&5
11336 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
11337 if test "x${build}" != "x${host}" ; then
11338 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11339 # We already found the complete path
11340 ac_dir=`dirname $AR_FOR_TARGET`
11341 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11342 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11344 # Canadian cross, just use what we found
11345 echo "$as_me:$LINENO: result: pre-installed" >&5
11346 echo "${ECHO_T}pre-installed" >&6
11350 case " ${configdirs} " in
11355 if test $ok = yes; then
11356 # An in-tree tool is available and we can use it
11357 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11358 echo "$as_me:$LINENO: result: just compiled" >&5
11359 echo "${ECHO_T}just compiled" >&6
11360 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11361 # We already found the complete path
11362 ac_dir=`dirname $AR_FOR_TARGET`
11363 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11364 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11365 elif test "x$target" = "x$host"; then
11366 # We can use an host tool
11367 AR_FOR_TARGET='$(AR)'
11368 echo "$as_me:$LINENO: result: host tool" >&5
11369 echo "${ECHO_T}host tool" >&6
11371 # We need a cross tool
11372 echo "$as_me:$LINENO: result: pre-installed" >&5
11373 echo "${ECHO_T}pre-installed" >&6
11377 echo "$as_me:$LINENO: checking where to find the target as" >&5
11378 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
11379 if test "x${build}" != "x${host}" ; then
11380 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11381 # We already found the complete path
11382 ac_dir=`dirname $AS_FOR_TARGET`
11383 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11384 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11386 # Canadian cross, just use what we found
11387 echo "$as_me:$LINENO: result: pre-installed" >&5
11388 echo "${ECHO_T}pre-installed" >&6
11392 case " ${configdirs} " in
11397 if test $ok = yes; then
11398 # An in-tree tool is available and we can use it
11399 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11400 echo "$as_me:$LINENO: result: just compiled" >&5
11401 echo "${ECHO_T}just compiled" >&6
11402 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11403 # We already found the complete path
11404 ac_dir=`dirname $AS_FOR_TARGET`
11405 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11406 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11407 elif test "x$target" = "x$host"; then
11408 # We can use an host tool
11409 AS_FOR_TARGET='$(AS)'
11410 echo "$as_me:$LINENO: result: host tool" >&5
11411 echo "${ECHO_T}host tool" >&6
11413 # We need a cross tool
11414 echo "$as_me:$LINENO: result: pre-installed" >&5
11415 echo "${ECHO_T}pre-installed" >&6
11419 echo "$as_me:$LINENO: checking where to find the target cc" >&5
11420 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
11421 if test "x${build}" != "x${host}" ; then
11422 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11423 # We already found the complete path
11424 ac_dir=`dirname $CC_FOR_TARGET`
11425 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11426 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11428 # Canadian cross, just use what we found
11429 echo "$as_me:$LINENO: result: pre-installed" >&5
11430 echo "${ECHO_T}pre-installed" >&6
11434 case " ${configdirs} " in
11439 if test $ok = yes; then
11440 # An in-tree tool is available and we can use it
11441 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11442 echo "$as_me:$LINENO: result: just compiled" >&5
11443 echo "${ECHO_T}just compiled" >&6
11444 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11445 # We already found the complete path
11446 ac_dir=`dirname $CC_FOR_TARGET`
11447 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11448 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11449 elif test "x$target" = "x$host"; then
11450 # We can use an host tool
11451 CC_FOR_TARGET='$(CC)'
11452 echo "$as_me:$LINENO: result: host tool" >&5
11453 echo "${ECHO_T}host tool" >&6
11455 # We need a cross tool
11456 echo "$as_me:$LINENO: result: pre-installed" >&5
11457 echo "${ECHO_T}pre-installed" >&6
11461 echo "$as_me:$LINENO: checking where to find the target c++" >&5
11462 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
11463 if test "x${build}" != "x${host}" ; then
11464 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11465 # We already found the complete path
11466 ac_dir=`dirname $CXX_FOR_TARGET`
11467 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11468 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11470 # Canadian cross, just use what we found
11471 echo "$as_me:$LINENO: result: pre-installed" >&5
11472 echo "${ECHO_T}pre-installed" >&6
11476 case " ${configdirs} " in
11480 case ,${enable_languages}, in
11484 if test $ok = yes; then
11485 # An in-tree tool is available and we can use it
11486 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'
11487 echo "$as_me:$LINENO: result: just compiled" >&5
11488 echo "${ECHO_T}just compiled" >&6
11489 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11490 # We already found the complete path
11491 ac_dir=`dirname $CXX_FOR_TARGET`
11492 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11493 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11494 elif test "x$target" = "x$host"; then
11495 # We can use an host tool
11496 CXX_FOR_TARGET='$(CXX)'
11497 echo "$as_me:$LINENO: result: host tool" >&5
11498 echo "${ECHO_T}host tool" >&6
11500 # We need a cross tool
11501 echo "$as_me:$LINENO: result: pre-installed" >&5
11502 echo "${ECHO_T}pre-installed" >&6
11506 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11507 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
11508 if test "x${build}" != "x${host}" ; then
11509 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11510 # We already found the complete path
11511 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11512 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11513 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11515 # Canadian cross, just use what we found
11516 echo "$as_me:$LINENO: result: pre-installed" >&5
11517 echo "${ECHO_T}pre-installed" >&6
11521 case " ${configdirs} " in
11525 case ,${enable_languages}, in
11529 if test $ok = yes; then
11530 # An in-tree tool is available and we can use it
11531 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'
11532 echo "$as_me:$LINENO: result: just compiled" >&5
11533 echo "${ECHO_T}just compiled" >&6
11534 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11535 # We already found the complete path
11536 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11537 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11538 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11539 elif test "x$target" = "x$host"; then
11540 # We can use an host tool
11541 RAW_CXX_FOR_TARGET='$(CXX)'
11542 echo "$as_me:$LINENO: result: host tool" >&5
11543 echo "${ECHO_T}host tool" >&6
11545 # We need a cross tool
11546 echo "$as_me:$LINENO: result: pre-installed" >&5
11547 echo "${ECHO_T}pre-installed" >&6
11551 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11552 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
11553 if test "x${build}" != "x${host}" ; then
11554 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11555 # We already found the complete path
11556 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11557 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11558 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11560 # Canadian cross, just use what we found
11561 echo "$as_me:$LINENO: result: pre-installed" >&5
11562 echo "${ECHO_T}pre-installed" >&6
11566 case " ${configdirs} " in
11571 if test $ok = yes; then
11572 # An in-tree tool is available and we can use it
11573 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11574 echo "$as_me:$LINENO: result: just compiled" >&5
11575 echo "${ECHO_T}just compiled" >&6
11576 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11577 # We already found the complete path
11578 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11579 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11580 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11581 elif test "x$target" = "x$host"; then
11582 # We can use an host tool
11583 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11584 echo "$as_me:$LINENO: result: host tool" >&5
11585 echo "${ECHO_T}host tool" >&6
11587 # We need a cross tool
11588 echo "$as_me:$LINENO: result: pre-installed" >&5
11589 echo "${ECHO_T}pre-installed" >&6
11593 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11594 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
11595 if test "x${build}" != "x${host}" ; then
11596 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11597 # We already found the complete path
11598 ac_dir=`dirname $GCC_FOR_TARGET`
11599 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11600 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11602 # Canadian cross, just use what we found
11603 echo "$as_me:$LINENO: result: pre-installed" >&5
11604 echo "${ECHO_T}pre-installed" >&6
11608 case " ${configdirs} " in
11613 if test $ok = yes; then
11614 # An in-tree tool is available and we can use it
11615 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11616 echo "$as_me:$LINENO: result: just compiled" >&5
11617 echo "${ECHO_T}just compiled" >&6
11618 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11619 # We already found the complete path
11620 ac_dir=`dirname $GCC_FOR_TARGET`
11621 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11622 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11623 elif test "x$target" = "x$host"; then
11624 # We can use an host tool
11625 GCC_FOR_TARGET='$()'
11626 echo "$as_me:$LINENO: result: host tool" >&5
11627 echo "${ECHO_T}host tool" >&6
11629 # We need a cross tool
11630 echo "$as_me:$LINENO: result: pre-installed" >&5
11631 echo "${ECHO_T}pre-installed" >&6
11635 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11636 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
11637 if test "x${build}" != "x${host}" ; then
11638 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11639 # We already found the complete path
11640 ac_dir=`dirname $GCJ_FOR_TARGET`
11641 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11642 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11644 # Canadian cross, just use what we found
11645 echo "$as_me:$LINENO: result: pre-installed" >&5
11646 echo "${ECHO_T}pre-installed" >&6
11650 case " ${configdirs} " in
11654 case ,${enable_languages}, in
11658 if test $ok = yes; then
11659 # An in-tree tool is available and we can use it
11660 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11661 echo "$as_me:$LINENO: result: just compiled" >&5
11662 echo "${ECHO_T}just compiled" >&6
11663 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11664 # We already found the complete path
11665 ac_dir=`dirname $GCJ_FOR_TARGET`
11666 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11667 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11668 elif test "x$target" = "x$host"; then
11669 # We can use an host tool
11670 GCJ_FOR_TARGET='$(GCJ)'
11671 echo "$as_me:$LINENO: result: host tool" >&5
11672 echo "${ECHO_T}host tool" >&6
11674 # We need a cross tool
11675 echo "$as_me:$LINENO: result: pre-installed" >&5
11676 echo "${ECHO_T}pre-installed" >&6
11680 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11681 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
11682 if test "x${build}" != "x${host}" ; then
11683 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11684 # We already found the complete path
11685 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11686 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11687 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11689 # Canadian cross, just use what we found
11690 echo "$as_me:$LINENO: result: pre-installed" >&5
11691 echo "${ECHO_T}pre-installed" >&6
11695 case " ${configdirs} " in
11699 case ,${enable_languages}, in
11703 if test $ok = yes; then
11704 # An in-tree tool is available and we can use it
11705 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
11706 echo "$as_me:$LINENO: result: just compiled" >&5
11707 echo "${ECHO_T}just compiled" >&6
11708 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11709 # We already found the complete path
11710 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11711 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11712 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11713 elif test "x$target" = "x$host"; then
11714 # We can use an host tool
11715 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
11716 echo "$as_me:$LINENO: result: host tool" >&5
11717 echo "${ECHO_T}host tool" >&6
11719 # We need a cross tool
11720 echo "$as_me:$LINENO: result: pre-installed" >&5
11721 echo "${ECHO_T}pre-installed" >&6
11725 echo "$as_me:$LINENO: checking where to find the target ld" >&5
11726 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
11727 if test "x${build}" != "x${host}" ; then
11728 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11729 # We already found the complete path
11730 ac_dir=`dirname $LD_FOR_TARGET`
11731 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11732 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11734 # Canadian cross, just use what we found
11735 echo "$as_me:$LINENO: result: pre-installed" >&5
11736 echo "${ECHO_T}pre-installed" >&6
11740 case " ${configdirs} " in
11745 if test $ok = yes; then
11746 # An in-tree tool is available and we can use it
11747 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
11748 echo "$as_me:$LINENO: result: just compiled" >&5
11749 echo "${ECHO_T}just compiled" >&6
11750 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11751 # We already found the complete path
11752 ac_dir=`dirname $LD_FOR_TARGET`
11753 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11754 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11755 elif test "x$target" = "x$host"; then
11756 # We can use an host tool
11757 LD_FOR_TARGET='$(LD)'
11758 echo "$as_me:$LINENO: result: host tool" >&5
11759 echo "${ECHO_T}host tool" >&6
11761 # We need a cross tool
11762 echo "$as_me:$LINENO: result: pre-installed" >&5
11763 echo "${ECHO_T}pre-installed" >&6
11767 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11768 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
11769 if test "x${build}" != "x${host}" ; then
11770 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11771 # We already found the complete path
11772 ac_dir=`dirname $LIPO_FOR_TARGET`
11773 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11774 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11776 # Canadian cross, just use what we found
11777 echo "$as_me:$LINENO: result: pre-installed" >&5
11778 echo "${ECHO_T}pre-installed" >&6
11781 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11782 # We already found the complete path
11783 ac_dir=`dirname $LIPO_FOR_TARGET`
11784 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11785 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11786 elif test "x$target" = "x$host"; then
11787 # We can use an host tool
11788 LIPO_FOR_TARGET='$(LIPO)'
11789 echo "$as_me:$LINENO: result: host tool" >&5
11790 echo "${ECHO_T}host tool" >&6
11792 # We need a cross tool
11793 echo "$as_me:$LINENO: result: pre-installed" >&5
11794 echo "${ECHO_T}pre-installed" >&6
11798 echo "$as_me:$LINENO: checking where to find the target nm" >&5
11799 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
11800 if test "x${build}" != "x${host}" ; then
11801 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11802 # We already found the complete path
11803 ac_dir=`dirname $NM_FOR_TARGET`
11804 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11805 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11807 # Canadian cross, just use what we found
11808 echo "$as_me:$LINENO: result: pre-installed" >&5
11809 echo "${ECHO_T}pre-installed" >&6
11813 case " ${configdirs} " in
11818 if test $ok = yes; then
11819 # An in-tree tool is available and we can use it
11820 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
11821 echo "$as_me:$LINENO: result: just compiled" >&5
11822 echo "${ECHO_T}just compiled" >&6
11823 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11824 # We already found the complete path
11825 ac_dir=`dirname $NM_FOR_TARGET`
11826 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11827 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11828 elif test "x$target" = "x$host"; then
11829 # We can use an host tool
11830 NM_FOR_TARGET='$(NM)'
11831 echo "$as_me:$LINENO: result: host tool" >&5
11832 echo "${ECHO_T}host tool" >&6
11834 # We need a cross tool
11835 echo "$as_me:$LINENO: result: pre-installed" >&5
11836 echo "${ECHO_T}pre-installed" >&6
11840 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11841 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
11842 if test "x${build}" != "x${host}" ; then
11843 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11844 # We already found the complete path
11845 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11846 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11847 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11849 # Canadian cross, just use what we found
11850 echo "$as_me:$LINENO: result: pre-installed" >&5
11851 echo "${ECHO_T}pre-installed" >&6
11855 case " ${configdirs} " in
11860 if test $ok = yes; then
11861 # An in-tree tool is available and we can use it
11862 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
11863 echo "$as_me:$LINENO: result: just compiled" >&5
11864 echo "${ECHO_T}just compiled" >&6
11865 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11866 # We already found the complete path
11867 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11868 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11869 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11870 elif test "x$target" = "x$host"; then
11871 # We can use an host tool
11872 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
11873 echo "$as_me:$LINENO: result: host tool" >&5
11874 echo "${ECHO_T}host tool" >&6
11876 # We need a cross tool
11877 echo "$as_me:$LINENO: result: pre-installed" >&5
11878 echo "${ECHO_T}pre-installed" >&6
11882 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11883 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
11884 if test "x${build}" != "x${host}" ; then
11885 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11886 # We already found the complete path
11887 ac_dir=`dirname $RANLIB_FOR_TARGET`
11888 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11889 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11891 # Canadian cross, just use what we found
11892 echo "$as_me:$LINENO: result: pre-installed" >&5
11893 echo "${ECHO_T}pre-installed" >&6
11897 case " ${configdirs} " in
11902 if test $ok = yes; then
11903 # An in-tree tool is available and we can use it
11904 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
11905 echo "$as_me:$LINENO: result: just compiled" >&5
11906 echo "${ECHO_T}just compiled" >&6
11907 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11908 # We already found the complete path
11909 ac_dir=`dirname $RANLIB_FOR_TARGET`
11910 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11911 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11912 elif test "x$target" = "x$host"; then
11913 # We can use an host tool
11914 RANLIB_FOR_TARGET='$(RANLIB)'
11915 echo "$as_me:$LINENO: result: host tool" >&5
11916 echo "${ECHO_T}host tool" >&6
11918 # We need a cross tool
11919 echo "$as_me:$LINENO: result: pre-installed" >&5
11920 echo "${ECHO_T}pre-installed" >&6
11924 echo "$as_me:$LINENO: checking where to find the target strip" >&5
11925 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
11926 if test "x${build}" != "x${host}" ; then
11927 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11928 # We already found the complete path
11929 ac_dir=`dirname $STRIP_FOR_TARGET`
11930 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11931 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11933 # Canadian cross, just use what we found
11934 echo "$as_me:$LINENO: result: pre-installed" >&5
11935 echo "${ECHO_T}pre-installed" >&6
11939 case " ${configdirs} " in
11944 if test $ok = yes; then
11945 # An in-tree tool is available and we can use it
11946 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
11947 echo "$as_me:$LINENO: result: just compiled" >&5
11948 echo "${ECHO_T}just compiled" >&6
11949 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11950 # We already found the complete path
11951 ac_dir=`dirname $STRIP_FOR_TARGET`
11952 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11953 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11954 elif test "x$target" = "x$host"; then
11955 # We can use an host tool
11956 STRIP_FOR_TARGET='$(STRIP)'
11957 echo "$as_me:$LINENO: result: host tool" >&5
11958 echo "${ECHO_T}host tool" >&6
11960 # We need a cross tool
11961 echo "$as_me:$LINENO: result: pre-installed" >&5
11962 echo "${ECHO_T}pre-installed" >&6
11966 echo "$as_me:$LINENO: checking where to find the target windres" >&5
11967 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
11968 if test "x${build}" != "x${host}" ; then
11969 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11970 # We already found the complete path
11971 ac_dir=`dirname $WINDRES_FOR_TARGET`
11972 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11973 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11975 # Canadian cross, just use what we found
11976 echo "$as_me:$LINENO: result: pre-installed" >&5
11977 echo "${ECHO_T}pre-installed" >&6
11981 case " ${configdirs} " in
11986 if test $ok = yes; then
11987 # An in-tree tool is available and we can use it
11988 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
11989 echo "$as_me:$LINENO: result: just compiled" >&5
11990 echo "${ECHO_T}just compiled" >&6
11991 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11992 # We already found the complete path
11993 ac_dir=`dirname $WINDRES_FOR_TARGET`
11994 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11995 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11996 elif test "x$target" = "x$host"; then
11997 # We can use an host tool
11998 WINDRES_FOR_TARGET='$(WINDRES)'
11999 echo "$as_me:$LINENO: result: host tool" >&5
12000 echo "${ECHO_T}host tool" >&6
12002 # We need a cross tool
12003 echo "$as_me:$LINENO: result: pre-installed" >&5
12004 echo "${ECHO_T}pre-installed" >&6
12008 echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12009 echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12010 if test "x${build}" != "x${host}" ; then
12011 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12012 # We already found the complete path
12013 ac_dir=`dirname $WINDMC_FOR_TARGET`
12014 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12015 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12017 # Canadian cross, just use what we found
12018 echo "$as_me:$LINENO: result: pre-installed" >&5
12019 echo "${ECHO_T}pre-installed" >&6
12023 case " ${configdirs} " in
12028 if test $ok = yes; then
12029 # An in-tree tool is available and we can use it
12030 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12031 echo "$as_me:$LINENO: result: just compiled" >&5
12032 echo "${ECHO_T}just compiled" >&6
12033 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12034 # We already found the complete path
12035 ac_dir=`dirname $WINDMC_FOR_TARGET`
12036 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12037 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12038 elif test "x$target" = "x$host"; then
12039 # We can use an host tool
12040 WINDMC_FOR_TARGET='$(WINDMC)'
12041 echo "$as_me:$LINENO: result: host tool" >&5
12042 echo "${ECHO_T}host tool" >&6
12044 # We need a cross tool
12045 echo "$as_me:$LINENO: result: pre-installed" >&5
12046 echo "${ECHO_T}pre-installed" >&6
12054 # Certain tools may need extra flags.
12055 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12056 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12057 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12059 # When building target libraries, except in a Canadian cross, we use
12060 # the same toolchain as the compiler we just built.
12061 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12062 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12063 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12064 if test $host = $build; then
12065 case " $configdirs " in
12067 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12068 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12069 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12078 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12079 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12080 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12081 if test "${enable_maintainer_mode+set}" = set; then
12082 enableval="$enable_maintainer_mode"
12083 USE_MAINTAINER_MODE=$enableval
12085 USE_MAINTAINER_MODE=no
12087 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12088 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12091 if test "$USE_MAINTAINER_MODE" = yes; then
12092 MAINTAINER_MODE_TRUE=
12093 MAINTAINER_MODE_FALSE='#'
12095 MAINTAINER_MODE_TRUE='#'
12096 MAINTAINER_MODE_FALSE=
12098 MAINT=$MAINTAINER_MODE_TRUE
12100 # ---------------------
12101 # GCC bootstrap support
12102 # ---------------------
12104 # Stage specific cflags for build.
12109 yes) stage1_cflags="-g -Wa,-J" ;;
12110 *) stage1_cflags="-g -J" ;;
12114 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12115 if test "$GCC" = yes; then
12116 saved_CFLAGS="$CFLAGS"
12118 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12119 CFLAGS="$CFLAGS -fkeep-inline-functions"
12120 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12121 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12122 cat >conftest.$ac_ext <<_ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12129 #if (__GNUC__ < 3) \
12130 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12131 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12132 #error http://gcc.gnu.org/PR29382
12143 rm -f conftest.$ac_objext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12145 (eval $ac_compile) 2>conftest.er1
12147 grep -v '^ *+' conftest.er1 >conftest.err
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } &&
12152 { ac_try='test -z "$ac_c_werror_flag"
12153 || test ! -s conftest.err'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try='test -s conftest.$ac_objext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 echo "$as_me:$LINENO: result: yes" >&5
12166 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 echo "$as_me:$LINENO: result: no" >&5
12172 echo "${ECHO_T}no" >&6
12174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12176 CFLAGS="$saved_CFLAGS"
12181 # Enable --enable-checking in stage1 of the compiler.
12182 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12183 if test "${enable_stage1_checking+set}" = set; then
12184 enableval="$enable_stage1_checking"
12185 stage1_checking=--enable-checking=${enable_stage1_checking}
12187 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
12188 stage1_checking=--enable-checking=yes,types
12190 stage1_checking=--enable-checking=$enable_checking,types
12195 # Enable -Werror in bootstrap stage2 and later.
12196 # Check whether --enable-werror or --disable-werror was given.
12197 if test "${enable_werror+set}" = set; then
12198 enableval="$enable_werror"
12201 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12207 case ${enable_werror} in
12208 yes) stage2_werror_flag="--enable-werror-always" ;;
12209 *) stage2_werror_flag="" ;;
12213 # Flags needed to enable html installing and building
12215 # Check whether --with-datarootdir or --without-datarootdir was given.
12216 if test "${with_datarootdir+set}" = set; then
12217 withval="$with_datarootdir"
12218 datarootdir="\${prefix}/${withval}"
12220 datarootdir="\${prefix}/share"
12224 # Check whether --with-docdir or --without-docdir was given.
12225 if test "${with_docdir+set}" = set; then
12226 withval="$with_docdir"
12227 docdir="\${prefix}/${withval}"
12229 docdir="\${datarootdir}/doc"
12233 # Check whether --with-pdfdir or --without-pdfdir was given.
12234 if test "${with_pdfdir+set}" = set; then
12235 withval="$with_pdfdir"
12236 pdfdir="\${prefix}/${withval}"
12238 pdfdir="\${docdir}"
12242 # Check whether --with-htmldir or --without-htmldir was given.
12243 if test "${with_htmldir+set}" = set; then
12244 withval="$with_htmldir"
12245 htmldir="\${prefix}/${withval}"
12247 htmldir="\${docdir}"
12255 ac_config_files="$ac_config_files Makefile"
12256 cat >confcache <<\_ACEOF
12257 # This file is a shell script that caches the results of configure
12258 # tests run on this system so they can be shared between configure
12259 # scripts and configure runs, see configure's option --config-cache.
12260 # It is not useful on other systems. If it contains results you don't
12261 # want to keep, you may remove or edit it.
12263 # config.status only pays attention to the cache file if you give it
12264 # the --recheck option to rerun configure.
12266 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12267 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12268 # following values.
12272 # The following way of writing the cache mishandles newlines in values,
12273 # but we know of no workaround that is simple, portable, and efficient.
12274 # So, don't put newlines in cache variables' values.
12275 # Ultrix sh set writes to stderr and can't be redirected directly,
12276 # and sets the high bit in the cache file unless we assign to the vars.
12279 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12281 # `set' does not quote correctly, so add quotes (double-quote
12282 # substitution turns \\\\ into \\, and sed turns \\ into \).
12285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12288 # `set' quotes correctly as required by POSIX, so do not add quotes.
12290 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12297 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12299 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12301 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12302 if test -w $cache_file; then
12303 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12304 cat confcache >$cache_file
12306 echo "not updating unwritable cache $cache_file"
12311 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12312 # Let make expand exec_prefix.
12313 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12315 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12316 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12317 # trailing colons and then remove the whole line if VPATH becomes empty
12318 # (actually we leave an empty line to preserve line numbers).
12319 if test "x$srcdir" = x.; then
12320 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12321 s/:*\$(srcdir):*/:/;
12322 s/:*\${srcdir}:*/:/;
12324 s/^\([^=]*=[ ]*\):*/\1/;
12330 # Transform confdefs.h into DEFS.
12331 # Protect against shell expansion while executing Makefile rules.
12332 # Protect against Makefile macro expansion.
12334 # If the first sed substitution is executed (which looks for macros that
12335 # take arguments), then we branch to the quote section. Otherwise,
12336 # look for a macro that doesn't take arguments.
12337 cat >confdef2opt.sed <<\_ACEOF
12340 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12342 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12346 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12352 # We use echo to avoid assuming a particular line-breaking character.
12353 # The extra dot is to prevent the shell from consuming trailing
12354 # line-breaks from the sub-command output. A line-break within
12355 # single-quotes doesn't work because, if this script is created in a
12356 # platform that uses two characters for line-breaks (e.g., DOS), tr
12358 ac_LF_and_DOT=`echo; echo .`
12359 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12360 rm -f confdef2opt.sed
12365 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12366 # 1. Remove the extension, and $U if already installed.
12367 ac_i=`echo "$ac_i" |
12368 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12370 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12371 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12373 LIBOBJS=$ac_libobjs
12375 LTLIBOBJS=$ac_ltlibobjs
12379 : ${CONFIG_STATUS=./config.status}
12380 ac_clean_files_save=$ac_clean_files
12381 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12382 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12383 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12384 cat >$CONFIG_STATUS <<_ACEOF
12386 # Generated by $as_me.
12387 # Run this file to recreate the current configuration.
12388 # Compiler output produced by configure, useful for debugging
12389 # configure, is in config.log if it exists.
12392 ac_cs_recheck=false
12394 SHELL=\${CONFIG_SHELL-$SHELL}
12397 cat >>$CONFIG_STATUS <<\_ACEOF
12398 ## --------------------- ##
12399 ## M4sh Initialization. ##
12400 ## --------------------- ##
12402 # Be Bourne compatible
12403 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12406 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12407 # is contrary to our usage. Disable this feature.
12408 alias -g '${1+"$@"}'='"$@"'
12409 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12412 DUALCASE=1; export DUALCASE # for MKS sh
12414 # Support unset when possible.
12415 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12422 # Work around bugs in pre-3.0 UWIN ksh.
12423 $as_unset ENV MAIL MAILPATH
12430 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12431 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12432 LC_TELEPHONE LC_TIME
12434 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12435 eval $as_var=C; export $as_var
12441 # Required to use basename.
12442 if expr a : '\(a\)' >/dev/null 2>&1; then
12448 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12449 as_basename=basename
12455 # Name of the executable.
12456 as_me=`$as_basename "$0" ||
12457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12458 X"$0" : 'X\(//\)$' \| \
12459 X"$0" : 'X\(/\)$' \| \
12460 . : '\(.\)' 2>/dev/null ||
12462 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12463 /^X\/\(\/\/\)$/{ s//\1/; q; }
12464 /^X\/\(\/\).*/{ s//\1/; q; }
12468 # PATH needs CR, and LINENO needs CR and PATH.
12469 # Avoid depending upon Character Ranges.
12470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12473 as_cr_digits='0123456789'
12474 as_cr_alnum=$as_cr_Letters$as_cr_digits
12476 # The user is always right.
12477 if test "${PATH_SEPARATOR+set}" != set; then
12478 echo "#! /bin/sh" >conf$$.sh
12479 echo "exit 0" >>conf$$.sh
12481 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12490 as_lineno_1=$LINENO
12491 as_lineno_2=$LINENO
12492 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12493 test "x$as_lineno_1" != "x$as_lineno_2" &&
12494 test "x$as_lineno_3" = "x$as_lineno_2" || {
12495 # Find who we are. Look in the path if we contain no path at all
12498 *[\\/]* ) as_myself=$0 ;;
12499 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in $PATH
12503 test -z "$as_dir" && as_dir=.
12504 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12509 # We did not find ourselves, most probably we were run as `sh COMMAND'
12510 # in which case we are not to be found in the path.
12511 if test "x$as_myself" = x; then
12514 if test ! -f "$as_myself"; then
12515 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12516 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12517 { (exit 1); exit 1; }; }
12519 case $CONFIG_SHELL in
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12525 test -z "$as_dir" && as_dir=.
12526 for as_base in sh bash ksh sh5; do
12529 if ("$as_dir/$as_base" -c '
12530 as_lineno_1=$LINENO
12531 as_lineno_2=$LINENO
12532 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12533 test "x$as_lineno_1" != "x$as_lineno_2" &&
12534 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12535 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12536 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12537 CONFIG_SHELL=$as_dir/$as_base
12538 export CONFIG_SHELL
12539 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12547 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12548 # uniformly replaced by the line number. The first 'sed' inserts a
12549 # line-number line before each line; the second 'sed' does the real
12550 # work. The second script uses 'N' to pair each line-number line
12551 # with the numbered line, and appends trailing '-' during
12552 # substitution so that $LINENO is not a special case at line end.
12553 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12554 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12555 sed '=' <$as_myself |
12560 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12563 s,^['$as_cr_digits']*\n,,
12564 ' >$as_me.lineno &&
12565 chmod +x $as_me.lineno ||
12566 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12567 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12568 { (exit 1); exit 1; }; }
12570 # Don't try to exec as it changes $[0], causing all sort of problems
12571 # (the dirname of $[0] is not the place where we might find the
12572 # original and so on. Autoconf is especially sensible to this).
12574 # Exit status is that of the last command.
12579 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12580 *c*,-n*) ECHO_N= ECHO_C='
12582 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12583 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12586 if expr a : '\(a\)' >/dev/null 2>&1; then
12592 rm -f conf$$ conf$$.exe conf$$.file
12594 if ln -s conf$$.file conf$$ 2>/dev/null; then
12595 # We could just check for DJGPP; but this test a) works b) is more generic
12596 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12597 if test -f conf$$.exe; then
12598 # Don't use ln at all; we don't have any links
12603 elif ln conf$$.file conf$$ 2>/dev/null; then
12608 rm -f conf$$ conf$$.exe conf$$.file
12610 if mkdir -p . 2>/dev/null; then
12613 test -d ./-p && rmdir ./-p
12617 as_executable_p="test -f"
12619 # Sed expression to map a string onto a valid CPP name.
12620 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12622 # Sed expression to map a string onto a valid variable name.
12623 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12627 # We need space, tab and new line, in precisely that order.
12637 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12638 # report actual input values of CONFIG_FILES etc. instead of their
12639 # values after options handling. Logging --version etc. is OK.
12643 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12644 ## Running $as_me. ##
12649 This file was extended by $as_me, which was
12650 generated by GNU Autoconf 2.59. Invocation command line was
12652 CONFIG_FILES = $CONFIG_FILES
12653 CONFIG_HEADERS = $CONFIG_HEADERS
12654 CONFIG_LINKS = $CONFIG_LINKS
12655 CONFIG_COMMANDS = $CONFIG_COMMANDS
12659 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12663 # Files that config.status was made for.
12664 if test -n "$ac_config_files"; then
12665 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12668 if test -n "$ac_config_headers"; then
12669 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12672 if test -n "$ac_config_links"; then
12673 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12676 if test -n "$ac_config_commands"; then
12677 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12680 cat >>$CONFIG_STATUS <<\_ACEOF
12683 \`$as_me' instantiates files from templates according to the
12684 current configuration.
12686 Usage: $0 [OPTIONS] [FILE]...
12688 -h, --help print this help, then exit
12689 -V, --version print version number, then exit
12690 -q, --quiet do not print progress messages
12691 -d, --debug don't remove temporary files
12692 --recheck update $as_me by reconfiguring in the same conditions
12693 --file=FILE[:TEMPLATE]
12694 instantiate the configuration file FILE
12696 Configuration files:
12699 Report bugs to <bug-autoconf@gnu.org>."
12702 cat >>$CONFIG_STATUS <<_ACEOF
12705 configured by $0, generated by GNU Autoconf 2.59,
12706 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12708 Copyright (C) 2003 Free Software Foundation, Inc.
12709 This config.status script is free software; the Free Software Foundation
12710 gives unlimited permission to copy, distribute and modify it."
12715 cat >>$CONFIG_STATUS <<\_ACEOF
12716 # If no file are specified by the user, then we need to provide default
12717 # value. By we need to know if files were specified by the user.
12723 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12724 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12732 *) # This is not an option, so the user has probably given explicit
12735 ac_need_defaults=false;;
12739 # Handling of the options.
12741 cat >>$CONFIG_STATUS <<\_ACEOF
12742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12744 --version | --vers* | -V )
12745 echo "$ac_cs_version"; exit 0 ;;
12747 # Conflict between --help and --header
12748 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12749 Try \`$0 --help' for more information." >&5
12750 echo "$as_me: error: ambiguous option: $1
12751 Try \`$0 --help' for more information." >&2;}
12752 { (exit 1); exit 1; }; };;
12753 --help | --hel | -h )
12754 echo "$ac_cs_usage"; exit 0 ;;
12755 --debug | --d* | -d )
12757 --file | --fil | --fi | --f )
12759 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12760 ac_need_defaults=false;;
12761 --header | --heade | --head | --hea )
12763 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12764 ac_need_defaults=false;;
12765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12766 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12769 # This is an error.
12770 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12771 Try \`$0 --help' for more information." >&5
12772 echo "$as_me: error: unrecognized option: $1
12773 Try \`$0 --help' for more information." >&2;}
12774 { (exit 1); exit 1; }; } ;;
12776 *) ac_config_targets="$ac_config_targets $1" ;;
12782 ac_configure_extra_args=
12784 if $ac_cs_silent; then
12786 ac_configure_extra_args="$ac_configure_extra_args --silent"
12790 cat >>$CONFIG_STATUS <<_ACEOF
12791 if \$ac_cs_recheck; then
12792 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12793 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12802 cat >>$CONFIG_STATUS <<\_ACEOF
12803 for ac_config_target in $ac_config_targets
12805 case "$ac_config_target" in
12806 # Handling of arguments.
12807 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12808 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12809 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12810 { (exit 1); exit 1; }; };;
12814 # If the user did not use the arguments to specify the items to instantiate,
12815 # then the envvar interface is used. Set only those that are not.
12816 # We use the long form for the default assignment because of an extremely
12817 # bizarre bug on SunOS 4.1.3.
12818 if $ac_need_defaults; then
12819 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12822 # Have a temporary directory for convenience. Make it in the build tree
12823 # simply because there is no reason to put it here, and in addition,
12824 # creating and moving files from /tmp can sometimes cause problems.
12825 # Create a temporary directory, and hook for its removal unless debugging.
12828 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12829 trap '{ (exit 1); exit 1; }' 1 2 13 15
12832 # Create a (secure) tmp directory for tmp files.
12835 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12836 test -n "$tmp" && test -d "$tmp"
12839 tmp=./confstat$$-$RANDOM
12840 (umask 077 && mkdir $tmp)
12843 echo "$me: cannot create a temporary directory in ." >&2
12844 { (exit 1); exit 1; }
12849 cat >>$CONFIG_STATUS <<_ACEOF
12852 # CONFIG_FILES section.
12855 # No need to generate the scripts if there are no CONFIG_FILES.
12856 # This happens for instance when ./config.status config.h
12857 if test -n "\$CONFIG_FILES"; then
12858 # Protect against being on the right side of a sed subst in config.status.
12859 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12860 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12861 s,@SHELL@,$SHELL,;t t
12862 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12863 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12864 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12865 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12866 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12867 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12868 s,@exec_prefix@,$exec_prefix,;t t
12869 s,@prefix@,$prefix,;t t
12870 s,@program_transform_name@,$program_transform_name,;t t
12871 s,@bindir@,$bindir,;t t
12872 s,@sbindir@,$sbindir,;t t
12873 s,@libexecdir@,$libexecdir,;t t
12874 s,@datadir@,$datadir,;t t
12875 s,@sysconfdir@,$sysconfdir,;t t
12876 s,@sharedstatedir@,$sharedstatedir,;t t
12877 s,@localstatedir@,$localstatedir,;t t
12878 s,@libdir@,$libdir,;t t
12879 s,@includedir@,$includedir,;t t
12880 s,@oldincludedir@,$oldincludedir,;t t
12881 s,@infodir@,$infodir,;t t
12882 s,@mandir@,$mandir,;t t
12883 s,@build_alias@,$build_alias,;t t
12884 s,@host_alias@,$host_alias,;t t
12885 s,@target_alias@,$target_alias,;t t
12886 s,@DEFS@,$DEFS,;t t
12887 s,@ECHO_C@,$ECHO_C,;t t
12888 s,@ECHO_N@,$ECHO_N,;t t
12889 s,@ECHO_T@,$ECHO_T,;t t
12890 s,@LIBS@,$LIBS,;t t
12891 s,@build@,$build,;t t
12892 s,@build_cpu@,$build_cpu,;t t
12893 s,@build_vendor@,$build_vendor,;t t
12894 s,@build_os@,$build_os,;t t
12895 s,@build_noncanonical@,$build_noncanonical,;t t
12896 s,@host_noncanonical@,$host_noncanonical,;t t
12897 s,@target_noncanonical@,$target_noncanonical,;t t
12898 s,@host@,$host,;t t
12899 s,@host_cpu@,$host_cpu,;t t
12900 s,@host_vendor@,$host_vendor,;t t
12901 s,@host_os@,$host_os,;t t
12902 s,@target@,$target,;t t
12903 s,@target_cpu@,$target_cpu,;t t
12904 s,@target_vendor@,$target_vendor,;t t
12905 s,@target_os@,$target_os,;t t
12906 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12907 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12908 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12910 s,@LN_S@,$LN_S,;t t
12911 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12912 s,@build_libsubdir@,$build_libsubdir,;t t
12913 s,@build_subdir@,$build_subdir,;t t
12914 s,@host_subdir@,$host_subdir,;t t
12915 s,@target_subdir@,$target_subdir,;t t
12917 s,@CFLAGS@,$CFLAGS,;t t
12918 s,@LDFLAGS@,$LDFLAGS,;t t
12919 s,@CPPFLAGS@,$CPPFLAGS,;t t
12920 s,@ac_ct_CC@,$ac_ct_CC,;t t
12921 s,@EXEEXT@,$EXEEXT,;t t
12922 s,@OBJEXT@,$OBJEXT,;t t
12924 s,@CXXFLAGS@,$CXXFLAGS,;t t
12925 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12926 s,@GNATBIND@,$GNATBIND,;t t
12927 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12928 s,@GNATMAKE@,$GNATMAKE,;t t
12929 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12930 s,@do_compare@,$do_compare,;t t
12931 s,@gmplibs@,$gmplibs,;t t
12932 s,@gmpinc@,$gmpinc,;t t
12933 s,@stage1_languages@,$stage1_languages,;t t
12934 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12935 s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
12936 s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12937 s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
12938 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12939 s,@tooldir@,$tooldir,;t t
12940 s,@build_tooldir@,$build_tooldir,;t t
12941 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12942 s,@GDB_TK@,$GDB_TK,;t t
12943 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12944 s,@build_configargs@,$build_configargs,;t t
12945 s,@build_configdirs@,$build_configdirs,;t t
12946 s,@host_configargs@,$host_configargs,;t t
12947 s,@configdirs@,$configdirs,;t t
12948 s,@target_configargs@,$target_configargs,;t t
12949 s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12950 s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
12951 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12952 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12953 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12954 s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12955 s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12956 s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12957 s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12958 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12959 s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12960 s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12961 s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12962 s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12963 s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
12964 s,@config_shell@,$config_shell,;t t
12965 s,@YACC@,$YACC,;t t
12966 s,@BISON@,$BISON,;t t
12969 s,@FLEX@,$FLEX,;t t
12970 s,@MAKEINFO@,$MAKEINFO,;t t
12971 s,@EXPECT@,$EXPECT,;t t
12972 s,@RUNTEST@,$RUNTEST,;t t
12975 s,@DLLTOOL@,$DLLTOOL,;t t
12977 s,@LIPO@,$LIPO,;t t
12979 s,@RANLIB@,$RANLIB,;t t
12980 s,@STRIP@,$STRIP,;t t
12981 s,@WINDRES@,$WINDRES,;t t
12982 s,@WINDMC@,$WINDMC,;t t
12983 s,@OBJCOPY@,$OBJCOPY,;t t
12984 s,@OBJDUMP@,$OBJDUMP,;t t
12985 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12986 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12987 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12988 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12989 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12990 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12991 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12992 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12993 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12994 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12995 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12996 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12997 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12998 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12999 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
13000 s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
13001 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13002 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13003 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13004 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13005 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13006 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13007 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13008 s,@MAINT@,$MAINT,;t t
13009 s,@stage1_cflags@,$stage1_cflags,;t t
13010 s,@stage1_checking@,$stage1_checking,;t t
13011 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13012 s,@datarootdir@,$datarootdir,;t t
13013 s,@docdir@,$docdir,;t t
13014 s,@pdfdir@,$pdfdir,;t t
13015 s,@htmldir@,$htmldir,;t t
13016 s,@LIBOBJS@,$LIBOBJS,;t t
13017 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13018 /@serialization_dependencies@/r $serialization_dependencies
13019 s,@serialization_dependencies@,,;t t
13020 /@host_makefile_frag@/r $host_makefile_frag
13021 s,@host_makefile_frag@,,;t t
13022 /@target_makefile_frag@/r $target_makefile_frag
13023 s,@target_makefile_frag@,,;t t
13024 /@alphaieee_frag@/r $alphaieee_frag
13025 s,@alphaieee_frag@,,;t t
13026 /@ospace_frag@/r $ospace_frag
13027 s,@ospace_frag@,,;t t
13032 cat >>$CONFIG_STATUS <<\_ACEOF
13033 # Split the substitutions into bite-sized pieces for seds with
13034 # small command number limits, like on Digital OSF/1 and HP-UX.
13035 ac_max_sed_lines=48
13036 ac_sed_frag=1 # Number of current file.
13037 ac_beg=1 # First line for current file.
13038 ac_end=$ac_max_sed_lines # Line after last line for current file.
13041 while $ac_more_lines; do
13042 if test $ac_beg -gt 1; then
13043 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13045 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13047 if test ! -s $tmp/subs.frag; then
13048 ac_more_lines=false
13050 # The purpose of the label and of the branching condition is to
13051 # speed up the sed processing (if there are no `@' at all, there
13052 # is no need to browse any of the substitutions).
13053 # These are the two extra sed commands mentioned above.
13055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13056 if test -z "$ac_sed_cmds"; then
13057 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13059 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13061 ac_sed_frag=`expr $ac_sed_frag + 1`
13063 ac_end=`expr $ac_end + $ac_max_sed_lines`
13066 if test -z "$ac_sed_cmds"; then
13069 fi # test -n "$CONFIG_FILES"
13072 cat >>$CONFIG_STATUS <<\_ACEOF
13073 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13074 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13076 - | *:- | *:-:* ) # input from stdin
13078 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13079 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13080 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13082 * ) ac_file_in=$ac_file.in ;;
13085 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13086 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13087 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13088 X"$ac_file" : 'X\(//\)[^/]' \| \
13089 X"$ac_file" : 'X\(//\)$' \| \
13090 X"$ac_file" : 'X\(/\)' \| \
13091 . : '\(.\)' 2>/dev/null ||
13093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13095 /^X\(\/\/\)$/{ s//\1/; q; }
13096 /^X\(\/\).*/{ s//\1/; q; }
13098 { if $as_mkdir_p; then
13103 while test ! -d "$as_dir"; do
13104 as_dirs="$as_dir $as_dirs"
13105 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13107 X"$as_dir" : 'X\(//\)[^/]' \| \
13108 X"$as_dir" : 'X\(//\)$' \| \
13109 X"$as_dir" : 'X\(/\)' \| \
13110 . : '\(.\)' 2>/dev/null ||
13112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13114 /^X\(\/\/\)$/{ s//\1/; q; }
13115 /^X\(\/\).*/{ s//\1/; q; }
13118 test ! -n "$as_dirs" || mkdir $as_dirs
13119 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13120 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13121 { (exit 1); exit 1; }; }; }
13125 if test "$ac_dir" != .; then
13126 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13127 # A "../" for each directory in $ac_dir_suffix.
13128 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13130 ac_dir_suffix= ac_top_builddir=
13134 .) # No --srcdir option. We are building in place.
13136 if test -z "$ac_top_builddir"; then
13139 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13141 [\\/]* | ?:[\\/]* ) # Absolute path.
13142 ac_srcdir=$srcdir$ac_dir_suffix;
13143 ac_top_srcdir=$srcdir ;;
13144 *) # Relative path.
13145 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13146 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13149 # Do not use `cd foo && pwd` to compute absolute paths, because
13150 # the directories may not exist.
13152 .) ac_abs_builddir="$ac_dir";;
13155 .) ac_abs_builddir=`pwd`;;
13156 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13157 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13160 case $ac_abs_builddir in
13161 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13163 case ${ac_top_builddir}. in
13164 .) ac_abs_top_builddir=$ac_abs_builddir;;
13165 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13166 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13169 case $ac_abs_builddir in
13170 .) ac_abs_srcdir=$ac_srcdir;;
13173 .) ac_abs_srcdir=$ac_abs_builddir;;
13174 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13175 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13178 case $ac_abs_builddir in
13179 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13181 case $ac_top_srcdir in
13182 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13183 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13184 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13190 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13191 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13194 if test x"$ac_file" != x-; then
13195 { echo "$as_me:$LINENO: creating $ac_file" >&5
13196 echo "$as_me: creating $ac_file" >&6;}
13199 # Let's still pretend it is `configure' which instantiates (i.e., don't
13200 # use $as_me), people would be surprised to read:
13201 # /* config.h. Generated by config.status. */
13202 if test x"$ac_file" = x-; then
13205 configure_input="$ac_file. "
13207 configure_input=$configure_input"Generated from `echo $ac_file_in |
13208 sed 's,.*/,,'` by configure."
13210 # First look for the input files in the build tree, otherwise in the
13212 ac_file_inputs=`IFS=:
13213 for f in $ac_file_in; do
13215 -) echo $tmp/stdin ;;
13217 # Absolute (can't be DOS-style, as IFS=:)
13218 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13219 echo "$as_me: error: cannot find input file: $f" >&2;}
13220 { (exit 1); exit 1; }; }
13223 if test -f "$f"; then
13226 elif test -f "$srcdir/$f"; then
13231 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13232 echo "$as_me: error: cannot find input file: $f" >&2;}
13233 { (exit 1); exit 1; }; }
13236 done` || { (exit 1); exit 1; }
13238 cat >>$CONFIG_STATUS <<_ACEOF
13242 cat >>$CONFIG_STATUS <<\_ACEOF
13244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13245 s,@configure_input@,$configure_input,;t t
13246 s,@srcdir@,$ac_srcdir,;t t
13247 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13248 s,@top_srcdir@,$ac_top_srcdir,;t t
13249 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13250 s,@builddir@,$ac_builddir,;t t
13251 s,@abs_builddir@,$ac_abs_builddir,;t t
13252 s,@top_builddir@,$ac_top_builddir,;t t
13253 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13254 s,@INSTALL@,$ac_INSTALL,;t t
13255 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13257 if test x"$ac_file" != x-; then
13258 mv $tmp/out $ac_file
13267 cat >>$CONFIG_STATUS <<\_ACEOF
13269 { (exit 0); exit 0; }
13271 chmod +x $CONFIG_STATUS
13272 ac_clean_files=$ac_clean_files_save
13275 # configure is writing to config.log, and then calls config.status.
13276 # config.status does its own redirection, appending to config.log.
13277 # Unfortunately, on DOS this fails, as config.log is still kept open
13278 # by configure, so config.status won't be able to write to it; its
13279 # output is simply discarded. So we exec the FD to /dev/null,
13280 # effectively closing config.log, so it can be properly (re)opened and
13281 # appended to by config.status. When coming back to configure, we
13282 # need to make the FD available again.
13283 if test "$no_create" != yes; then
13285 ac_config_status_args=
13286 test "$silent" = yes &&
13287 ac_config_status_args="$ac_config_status_args --quiet"
13289 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13291 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13292 # would make configure fail if this is the last instruction.
13293 $ac_cs_success || { (exit 1); exit 1; }