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 TOPLEVEL_CONFIGURE_ARGUMENTS 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 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 extra_mpfr_configure_flags extra_mpc_gmp_configure_flags extra_mpc_mpfr_configure_flags stage1_ldflags stage1_libs poststage1_ldflags poststage1_libs ppllibs pplinc clooglibs clooginc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR 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 compare_exclusions LIBOBJS LTLIBOBJS'
276 ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
279 # Initialize some variables set by options.
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
291 program_transform_name=s,x,x,
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329 # Accept the important Cygnus configure options, so we can diagnose typos.
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
351 cache_file=config.cache ;;
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357 datadir=$ac_optarg ;;
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
379 eval "enable_$ac_feature='$ac_optarg'" ;;
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
394 -help | --help | --hel | --he | -h)
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
418 -libdir | --libdir | --libdi | --libd)
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
445 # Obsolete; use --without-fp.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
509 sbindir=$ac_optarg ;;
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
520 sharedstatedir=$ac_optarg ;;
522 -site | --site | --sit)
524 -site=* | --site=* | --sit=*)
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
547 -version | --version | --versio | --versi | --vers | -V)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 eval "with_$ac_package='$ac_optarg'" ;;
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
573 # Obsolete; use --with-x.
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
616 if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
625 eval ac_val=$`echo $ac_var`
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
637 eval ac_val=$`echo $ac_var`
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
666 test "$silent" = yes && exec 6>/dev/null
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
686 if test ! -r $srcdir/$ac_unique_file; then
690 ac_srcdir_defaulted=no
692 if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
719 ac_env_CC_set=${CC+set}
721 ac_cv_env_CC_set=${CC+set}
722 ac_cv_env_CC_value=$CC
723 ac_env_CFLAGS_set=${CFLAGS+set}
724 ac_env_CFLAGS_value=$CFLAGS
725 ac_cv_env_CFLAGS_set=${CFLAGS+set}
726 ac_cv_env_CFLAGS_value=$CFLAGS
727 ac_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_env_LDFLAGS_value=$LDFLAGS
729 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730 ac_cv_env_LDFLAGS_value=$LDFLAGS
731 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_env_CPPFLAGS_value=$CPPFLAGS
733 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735 ac_env_CXX_set=${CXX+set}
736 ac_env_CXX_value=$CXX
737 ac_cv_env_CXX_set=${CXX+set}
738 ac_cv_env_CXX_value=$CXX
739 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740 ac_env_CXXFLAGS_value=$CXXFLAGS
741 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
743 ac_env_AR_set=${AR+set}
745 ac_cv_env_AR_set=${AR+set}
746 ac_cv_env_AR_value=$AR
747 ac_env_AS_set=${AS+set}
749 ac_cv_env_AS_set=${AS+set}
750 ac_cv_env_AS_value=$AS
751 ac_env_DLLTOOL_set=${DLLTOOL+set}
752 ac_env_DLLTOOL_value=$DLLTOOL
753 ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754 ac_cv_env_DLLTOOL_value=$DLLTOOL
755 ac_env_LD_set=${LD+set}
757 ac_cv_env_LD_set=${LD+set}
758 ac_cv_env_LD_value=$LD
759 ac_env_LIPO_set=${LIPO+set}
760 ac_env_LIPO_value=$LIPO
761 ac_cv_env_LIPO_set=${LIPO+set}
762 ac_cv_env_LIPO_value=$LIPO
763 ac_env_NM_set=${NM+set}
765 ac_cv_env_NM_set=${NM+set}
766 ac_cv_env_NM_value=$NM
767 ac_env_RANLIB_set=${RANLIB+set}
768 ac_env_RANLIB_value=$RANLIB
769 ac_cv_env_RANLIB_set=${RANLIB+set}
770 ac_cv_env_RANLIB_value=$RANLIB
771 ac_env_STRIP_set=${STRIP+set}
772 ac_env_STRIP_value=$STRIP
773 ac_cv_env_STRIP_set=${STRIP+set}
774 ac_cv_env_STRIP_value=$STRIP
775 ac_env_WINDRES_set=${WINDRES+set}
776 ac_env_WINDRES_value=$WINDRES
777 ac_cv_env_WINDRES_set=${WINDRES+set}
778 ac_cv_env_WINDRES_value=$WINDRES
779 ac_env_WINDMC_set=${WINDMC+set}
780 ac_env_WINDMC_value=$WINDMC
781 ac_cv_env_WINDMC_set=${WINDMC+set}
782 ac_cv_env_WINDMC_value=$WINDMC
783 ac_env_OBJCOPY_set=${OBJCOPY+set}
784 ac_env_OBJCOPY_value=$OBJCOPY
785 ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786 ac_cv_env_OBJCOPY_value=$OBJCOPY
787 ac_env_OBJDUMP_set=${OBJDUMP+set}
788 ac_env_OBJDUMP_value=$OBJDUMP
789 ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790 ac_cv_env_OBJDUMP_value=$OBJDUMP
791 ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792 ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793 ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794 ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795 ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796 ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797 ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798 ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799 ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800 ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801 ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802 ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803 ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804 ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805 ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806 ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807 ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808 ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809 ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810 ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811 ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812 ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813 ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814 ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815 ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816 ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817 ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818 ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819 ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820 ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821 ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822 ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823 ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824 ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825 ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826 ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827 ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828 ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829 ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830 ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831 ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832 ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833 ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834 ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835 ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836 ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837 ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838 ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839 ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840 ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841 ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842 ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843 ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844 ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845 ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846 ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847 ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848 ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849 ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850 ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
851 ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852 ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853 ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854 ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
857 # Report the --help message.
859 if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
863 \`configure' configures this package to adapt to many kinds of systems.
865 Usage: $0 [OPTION]... [VAR=VALUE]...
867 To assign environment variables (e.g., CC, CFLAGS...), specify them as
868 VAR=VALUE. See below for descriptions of some of the useful variables.
870 Defaults for the options are specified in brackets.
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
886 Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
892 By default, \`make install' will install all the files in
893 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895 for instance \`--prefix=\$HOME'.
897 For better control, use the options below.
899 Fine tuning of the installation directories:
900 --bindir=DIR user executables [EPREFIX/bin]
901 --sbindir=DIR system admin executables [EPREFIX/sbin]
902 --libexecdir=DIR program executables [EPREFIX/libexec]
903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
904 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
905 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
906 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
907 --libdir=DIR object code libraries [EPREFIX/lib]
908 --includedir=DIR C header files [PREFIX/include]
909 --oldincludedir=DIR C header files for non-gcc [/usr/include]
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
928 if test -n "$ac_init_help"; then
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
935 --enable-gold use gold instead of ld
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
938 --enable-build-with-cxx build with C++ compiler instead of C compiler
939 --disable-ppl-version-check disable check for PPL version
940 --disable-cloog-version-check disable check for CLooG version
941 --enable-stage1-languages[=all] choose additional languages to build during
942 stage1. Mostly useful for compiler development.
943 --enable-objc-gc enable use of Boehm's garbage collector with the
944 GNU Objective-C runtime
945 --enable-bootstrap enable bootstrapping [yes if native build]
946 --enable-serial-[{host,target,build}-]configure
947 force sequential configuration of
948 sub-packages for the host, target or build
949 machine, or all sub-packages
950 --enable-maintainer-mode enable make rules and dependencies not useful
951 (and sometimes confusing) to the casual installer
952 --enable-stage1-checking[=all] choose additional checking for stage1
954 --enable-werror enable -Werror in bootstrap stage2 and later
957 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
958 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
959 --with-build-libsubdir=DIR Directory where to find libraries for build system
960 --with-mpc=PATH specify prefix directory for installed MPC package.
961 Equivalent to --with-mpc-include=PATH/include
962 plus --with-mpc-lib=PATH/lib
963 --with-mpc-include=PATH
964 specify directory for installed MPC include files
965 --with-mpc-lib=PATH specify directory for the installed MPC library
966 --with-mpfr-dir=PATH this option has been REMOVED
967 --with-mpfr=PATH specify prefix directory for installed MPFR package.
968 Equivalent to --with-mpfr-include=PATH/include
969 plus --with-mpfr-lib=PATH/lib
970 --with-mpfr-include=PATH
971 specify directory for installed MPFR include files
972 --with-mpfr-lib=PATH specify directory for the installed MPFR library
973 --with-gmp-dir=PATH this option has been REMOVED
974 --with-gmp=PATH specify prefix directory for the installed GMP package.
975 Equivalent to --with-gmp-include=PATH/include
976 plus --with-gmp-lib=PATH/lib
977 --with-gmp-include=PATH specify directory for installed GMP include files
978 --with-gmp-lib=PATH specify directory for the installed GMP library
979 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
980 when linking with PPL
981 --with-stage1-ldflags=FLAGS Linker flags for stage1
982 -with-stage1-libs=LIBS Libraries for stage1
983 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
984 --with-boot-libs=LIBS Libraries for stage2 and later
985 --with-ppl=PATH Specify prefix directory for the installed PPL package
986 Equivalent to --with-ppl-include=PATH/include
987 plus --with-ppl-lib=PATH/lib
988 --with-ppl-include=PATH Specify directory for installed PPL include files
989 --with-ppl-lib=PATH Specify the directory for the installed PPL library
990 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
991 Equivalent to --with-cloog-include=PATH/include
992 plus --with-cloog-lib=PATH/lib
993 --with-cloog-include=PATH Specify directory for installed CLooG include files
994 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
995 --with-build-sysroot=SYSROOT
996 use sysroot as the system root during the build
997 --with-debug-prefix-map='A=B C=D ...'
998 map A to B, C to D ... in debug information
999 --with-build-time-tools=PATH
1000 use given path to find target tools during the build
1001 --with-datarootdir use datarootdir as the data root directory.
1002 --with-docdir install documentation in this directory.
1003 --with-pdfdir install pdf in this directory.
1004 --with-htmldir install html in this directory.
1006 Some influential environment variables:
1007 CC C compiler command
1008 CFLAGS C compiler flags
1009 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1010 nonstandard directory <lib dir>
1011 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1012 headers in a nonstandard directory <include dir>
1013 CXX C++ compiler command
1014 CXXFLAGS C++ compiler flags
1017 DLLTOOL DLLTOOL for the host
1019 LIPO LIPO for the host
1021 RANLIB RANLIB for the host
1022 STRIP STRIP for the host
1023 WINDRES WINDRES for the host
1024 WINDMC WINDMC for the host
1025 OBJCOPY OBJCOPY for the host
1026 OBJDUMP OBJDUMP for the host
1036 GFORTRAN for the target
1042 DLLTOOL for the target
1050 OBJDUMP for the target
1052 RANLIB for the target
1054 STRIP for the target
1056 WINDRES for the target
1058 WINDMC for the target
1060 Use these variables to override the choices made by `configure' or to help
1061 it to find libraries and programs with nonstandard names/locations.
1066 if test "$ac_init_help" = "recursive"; then
1067 # If there are subdirs, report their specific --help.
1069 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070 test -d $ac_dir || continue
1073 if test "$ac_dir" != .; then
1074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075 # A "../" for each directory in $ac_dir_suffix.
1076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1078 ac_dir_suffix= ac_top_builddir=
1082 .) # No --srcdir option. We are building in place.
1084 if test -z "$ac_top_builddir"; then
1087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1089 [\\/]* | ?:[\\/]* ) # Absolute path.
1090 ac_srcdir=$srcdir$ac_dir_suffix;
1091 ac_top_srcdir=$srcdir ;;
1093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097 # Do not use `cd foo && pwd` to compute absolute paths, because
1098 # the directories may not exist.
1100 .) ac_abs_builddir="$ac_dir";;
1103 .) ac_abs_builddir=`pwd`;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1108 case $ac_abs_builddir in
1109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1111 case ${ac_top_builddir}. in
1112 .) ac_abs_top_builddir=$ac_abs_builddir;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1117 case $ac_abs_builddir in
1118 .) ac_abs_srcdir=$ac_srcdir;;
1121 .) ac_abs_srcdir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1126 case $ac_abs_builddir in
1127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1129 case $ac_top_srcdir in
1130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137 # Check for guested configure; otherwise get Cygnus style configure.
1138 if test -f $ac_srcdir/configure.gnu; then
1140 $SHELL $ac_srcdir/configure.gnu --help=recursive
1141 elif test -f $ac_srcdir/configure; then
1143 $SHELL $ac_srcdir/configure --help=recursive
1144 elif test -f $ac_srcdir/configure.ac ||
1145 test -f $ac_srcdir/configure.in; then
1147 $ac_configure --help
1149 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155 test -n "$ac_init_help" && exit 0
1156 if $ac_init_version; then
1159 Copyright (C) 2003 Free Software Foundation, Inc.
1160 This configure script is free software; the Free Software Foundation
1161 gives unlimited permission to copy, distribute and modify it.
1167 This file contains any messages produced by compilers while
1168 running configure, to aid debugging if configure makes a mistake.
1170 It was created by $as_me, which was
1171 generated by GNU Autoconf 2.59. Invocation command line was
1182 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1183 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1184 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1185 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1186 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1188 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1189 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1191 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1192 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1193 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1194 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1195 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1196 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1197 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 test -z "$as_dir" && as_dir=.
1206 echo "PATH: $as_dir"
1221 # Keep a trace of the command line.
1222 # Strip out --no-create and --no-recursion so they do not pile up.
1223 # Strip out --silent because we don't want to record it for future runs.
1224 # Also quote any args containing shell meta-characters.
1225 # Make two passes to allow for proper duplicate-argument suppression.
1230 ac_must_keep_next=false
1236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1244 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1246 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247 if test $ac_must_keep_next = true; then
1248 ac_must_keep_next=false # Got value, back to normal.
1251 *=* | --config-cache | -C | -disable-* | --disable-* \
1252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254 | -with-* | --with-* | -without-* | --without-* | --x)
1255 case "$ac_configure_args0 " in
1256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1259 -* ) ac_must_keep_next=true ;;
1262 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263 # Get rid of the leading space.
1269 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1272 # When interrupted or exit'd, cleanup temporary files, and complete
1273 # config.log. We remove comments because anyway the quotes in there
1274 # would cause problems or look ugly.
1275 # WARNING: Be sure not to use single quotes in there, as some shells,
1276 # such as our DU 5.0 friend, will then `close' the trap.
1277 trap 'exit_status=$?
1278 # Save into config.log some information that might help in debugging.
1283 ## ---------------- ##
1284 ## Cache variables. ##
1285 ## ---------------- ##
1288 # The following way of writing the cache mishandles newlines in values,
1291 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1294 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306 ## ----------------- ##
1307 ## Output variables. ##
1308 ## ----------------- ##
1311 for ac_var in $ac_subst_vars
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1318 if test -n "$ac_subst_files"; then
1325 for ac_var in $ac_subst_files
1327 eval ac_val=$`echo $ac_var`
1328 echo "$ac_var='"'"'$ac_val'"'"'"
1333 if test -s confdefs.h; then
1340 sed "/^$/d" confdefs.h | sort
1343 test "$ac_signal" != 0 &&
1344 echo "$as_me: caught signal $ac_signal"
1345 echo "$as_me: exit $exit_status"
1347 rm -f core *.core &&
1348 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1351 for ac_signal in 1 2 13 15; do
1352 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1357 rm -rf conftest* confdefs.h
1358 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1361 # Predefined preprocessor variables.
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_NAME "$PACKAGE_NAME"
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_STRING "$PACKAGE_STRING"
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 # Let the site file select an alternate cache file if it wants to.
1389 # Prefer explicitly selected file to automatically selected ones.
1390 if test -z "$CONFIG_SITE"; then
1391 if test "x$prefix" != xNONE; then
1392 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1394 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397 for ac_site_file in $CONFIG_SITE; do
1398 if test -r "$ac_site_file"; then
1399 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1400 echo "$as_me: loading site script $ac_site_file" >&6;}
1401 sed 's/^/| /' "$ac_site_file" >&5
1406 if test -r "$cache_file"; then
1407 # Some versions of bash will fail to source /dev/null (special
1408 # files actually), so we avoid doing that.
1409 if test -f "$cache_file"; then
1410 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1411 echo "$as_me: loading cache $cache_file" >&6;}
1413 [\\/]* | ?:[\\/]* ) . $cache_file;;
1414 *) . ./$cache_file;;
1418 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1419 echo "$as_me: creating cache $cache_file" >&6;}
1423 # Check that the precious variables saved in the cache have kept the same
1425 ac_cache_corrupted=false
1426 for ac_var in `(set) 2>&1 |
1427 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429 eval ac_new_set=\$ac_env_${ac_var}_set
1430 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431 eval ac_new_val="\$ac_env_${ac_var}_value"
1432 case $ac_old_set,$ac_new_set in
1434 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1435 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1443 if test "x$ac_old_val" != "x$ac_new_val"; then
1444 # differences in whitespace do not lead to failure.
1445 ac_old_val_w=`echo x $ac_old_val`
1446 ac_new_val_w=`echo x $ac_new_val`
1447 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1448 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1449 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1450 ac_cache_corrupted=:
1452 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1453 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1454 eval $ac_var=\$ac_old_val
1456 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1457 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1458 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1459 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475 if $ac_cache_corrupted; then
1476 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1477 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1478 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482 { (exit 1); exit 1; }; }
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516 # if PWD already has a value, it is probably wrong.
1517 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1519 # Export original configure arguments for use by sub-configures.
1520 # Quote arguments with shell meta charatcers.
1521 TOPLEVEL_CONFIGURE_ARGUMENTS=
1522 set -- "$progname" "$@"
1526 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1527 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1528 # if the argument is of the form -foo=baz, quote the baz part only
1529 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1532 # Add the quoted argument to the list.
1533 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1535 if test "$silent" = yes; then
1536 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1538 # Remove the initial space we just introduced and, as these will be
1539 # expanded by make, quote '$'.
1540 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1543 # Find the build, host, and target systems.
1545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546 if test -f $ac_dir/install-sh; then
1548 ac_install_sh="$ac_aux_dir/install-sh -c"
1550 elif test -f $ac_dir/install.sh; then
1552 ac_install_sh="$ac_aux_dir/install.sh -c"
1554 elif test -f $ac_dir/shtool; then
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1560 if test -z "$ac_aux_dir"; then
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563 { (exit 1); exit 1; }; }
1565 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1569 # Make sure we can run config.sub.
1570 $ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1575 echo "$as_me:$LINENO: checking build system type" >&5
1576 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577 if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 ac_cv_build_alias=$build_alias
1581 test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583 test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1593 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594 echo "${ECHO_T}$ac_cv_build" >&6
1596 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601 case ${build_alias} in
1602 "") build_noncanonical=${build} ;;
1603 *) build_noncanonical=${build_alias} ;;
1608 case ${host_alias} in
1609 "") host_noncanonical=${build_noncanonical} ;;
1610 *) host_noncanonical=${host_alias} ;;
1615 case ${target_alias} in
1616 "") target_noncanonical=${host_noncanonical} ;;
1617 *) target_noncanonical=${target_alias} ;;
1623 test "$host_noncanonical" = "$target_noncanonical" &&
1624 test "$program_prefix$program_suffix$program_transform_name" = \
1626 program_transform_name=s,y,y,
1628 echo "$as_me:$LINENO: checking host system type" >&5
1629 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1630 if test "${ac_cv_host+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1633 ac_cv_host_alias=$host_alias
1634 test -z "$ac_cv_host_alias" &&
1635 ac_cv_host_alias=$ac_cv_build_alias
1636 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1638 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1642 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1643 echo "${ECHO_T}$ac_cv_host" >&6
1645 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650 echo "$as_me:$LINENO: checking target system type" >&5
1651 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1652 if test "${ac_cv_target+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 ac_cv_target_alias=$target_alias
1656 test "x$ac_cv_target_alias" = "x" &&
1657 ac_cv_target_alias=$ac_cv_host_alias
1658 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1660 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1661 { (exit 1); exit 1; }; }
1664 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1665 echo "${ECHO_T}$ac_cv_target" >&6
1666 target=$ac_cv_target
1667 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672 # The aliases save the names the user supplied, while $host etc.
1673 # will get canonicalized.
1674 test -n "$target_alias" &&
1675 test "$program_prefix$program_suffix$program_transform_name" = \
1677 program_prefix=${target_alias}-
1678 test "$program_prefix" != NONE &&
1679 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1680 # Use a double $ so make ignores it.
1681 test "$program_suffix" != NONE &&
1682 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1683 # Double any \ or $. echo might interpret backslashes.
1684 # By default was `s,x,x', remove it if useless.
1685 cat <<\_ACEOF >conftest.sed
1686 s/[\\$]/&&/g;s/;s,x,x,$//
1688 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1693 # Get 'install' or 'install-sh' and its variants.
1694 # Find a good install program. We prefer a C program (faster),
1695 # so one script is as good as another. But avoid the broken or
1696 # incompatible versions:
1697 # SysV /etc/install, /usr/sbin/install
1698 # SunOS /usr/etc/install
1699 # IRIX /sbin/install
1701 # AmigaOS /C/install, which installs bootblocks on floppy discs
1702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1705 # OS/2's system install, which has a completely different semantic
1706 # ./install, which can be erroneously created by make from ./install.sh.
1707 # Reject install programs that cannot install multiple files.
1708 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1709 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1710 if test -z "$INSTALL"; then
1711 if test "${ac_cv_path_install+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 test -z "$as_dir" && as_dir=.
1719 # Account for people who put trailing slashes in PATH elements.
1721 ./ | .// | /cC/* | \
1722 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1723 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1726 # OSF1 and SCO ODT 3.0 have their own names for install.
1727 # Don't use installbsd from OSF since it installs stuff as root
1729 for ac_prog in ginstall scoinst install; do
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1732 if test $ac_prog = install &&
1733 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1734 # AIX install. It has an incompatible calling convention.
1736 elif test $ac_prog = install &&
1737 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738 # program-specific install script used by HP pwplus--don't use.
1741 rm -rf conftest.one conftest.two conftest.dir
1742 echo one > conftest.one
1743 echo two > conftest.two
1745 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1746 test -s conftest.one && test -s conftest.two &&
1747 test -s conftest.dir/conftest.one &&
1748 test -s conftest.dir/conftest.two
1750 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1761 rm -rf conftest.one conftest.two conftest.dir
1764 if test "${ac_cv_path_install+set}" = set; then
1765 INSTALL=$ac_cv_path_install
1767 # As a last resort, use the slow shell script. Don't cache a
1768 # value for INSTALL within a source directory, because that will
1769 # break other packages using the cache if that directory is
1770 # removed, or if the value is a relative name.
1771 INSTALL=$ac_install_sh
1774 echo "$as_me:$LINENO: result: $INSTALL" >&5
1775 echo "${ECHO_T}$INSTALL" >&6
1777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1778 # It thinks the first close brace ends the variable substitution.
1779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1785 echo "$as_me:$LINENO: checking whether ln works" >&5
1786 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1787 if test "${acx_cv_prog_LN+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 rm -f conftestdata_t
1791 echo >conftestdata_f
1792 if ln conftestdata_f conftestdata_t 2>/dev/null
1798 rm -f conftestdata_f conftestdata_t
1801 if test $acx_cv_prog_LN = no; then
1803 echo "$as_me:$LINENO: result: no, using $LN" >&5
1804 echo "${ECHO_T}no, using $LN" >&6
1806 LN="$acx_cv_prog_LN"
1807 echo "$as_me:$LINENO: result: yes" >&5
1808 echo "${ECHO_T}yes" >&6
1811 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1812 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1814 if test "$LN_S" = "ln -s"; then
1815 echo "$as_me:$LINENO: result: yes" >&5
1816 echo "${ECHO_T}yes" >&6
1818 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1819 echo "${ECHO_T}no, using $LN_S" >&6
1823 ### we might need to use some other shell than /bin/sh for running subshells
1824 ### If we are on Windows, search for the shell. This will permit people
1825 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1826 ### without also having to set CONFIG_SHELL. This code will work when
1827 ### using bash, which sets OSTYPE.
1830 if test x${CONFIG_SHELL} = x ; then
1831 if test ! -f /bin/sh ; then
1832 if test x${SHELL} != x && test -f ${SHELL} ; then
1833 CONFIG_SHELL=${SHELL}
1836 for prog in sh sh.exe bash bash.exe; do
1837 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1838 for dir in $PATH; do
1839 test -z "$dir" && dir=.
1840 if test -f $dir/$prog; then
1841 CONFIG_SHELL=$dir/$prog
1847 test -n "${CONFIG_SHELL}" && break
1855 config_shell=${CONFIG_SHELL-/bin/sh}
1857 moveifchange=${srcdir}/move-if-change
1859 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1861 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1863 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1864 INSTALL="${srcpwd}/install-sh -c"
1867 # Set srcdir to "." if that's what it is.
1868 # This is important for multilib support.
1870 if test "${pwd}" = "${srcpwd}" ; then
1878 ### To add a new directory to the tree, first choose whether it is a target
1879 ### or a host dependent tool. Then put it into the appropriate list
1880 ### (library or tools, host or target), doing a dependency sort.
1882 # Subdirs will be configured in the order listed in build_configdirs,
1883 # configdirs, or target_configdirs; see the serialization section below.
1885 # Dependency sorting is only needed when *configuration* must be done in
1886 # a particular order. In all cases a dependency should be specified in
1887 # the Makefile, whether or not it's implicitly specified here.
1889 # Double entries in build_configdirs, configdirs, or target_configdirs may
1890 # cause circular dependencies and break everything horribly.
1892 # these library is used by various programs built for the build
1895 build_libs="build-libiberty"
1897 # these tools are built for the build environment
1898 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1900 # these libraries are used by various programs built for the host environment
1902 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
1904 # these tools are built for the host environment
1905 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1906 # know that we are building the simulator.
1907 # binutils, gas and ld appear in that order because it makes sense to run
1908 # "make check" in that particular order.
1909 # If --enable-gold is used, "gold" will replace "ld".
1910 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen 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"
1912 # libgcj represents the runtime libraries only used by gcj.
1913 libgcj="target-libffi \
1918 # these libraries are built for the target environment, and are built after
1919 # the host libraries and the host tools (which may be a cross compiler)
1921 target_libraries="target-libgcc \
1926 target-libstdc++-v3 \
1929 target-libgfortran \
1935 # these tools are built using the target libraries, and are intended to
1936 # run only in the target environment
1938 # note: any program that *uses* libraries that are in the "target_libraries"
1939 # list belongs in this list. those programs are also very likely
1940 # candidates for the "native_only" list which follows
1942 target_tools="target-examples target-groff target-gperf target-rda"
1944 ################################################################################
1946 ## All tools belong in one of the four categories, and are assigned above
1947 ## We assign ${configdirs} this way to remove all embedded newlines. This
1948 ## is important because configure will choke if they ever get through.
1949 ## ${configdirs} is directories we build using the host tools.
1950 ## ${target_configdirs} is directories we build using the target tools.
1951 configdirs=`echo ${host_libs} ${host_tools}`
1952 target_configdirs=`echo ${target_libraries} ${target_tools}`
1953 build_configdirs=`echo ${build_libs} ${build_tools}`
1957 ################################################################################
1959 srcname="gnu development package"
1961 # This gets set non-empty for some net releases of packages.
1964 # Define is_cross_compiler to save on calls to 'test'.
1966 if test x"${host}" = x"${target}" ; then
1967 is_cross_compiler=no
1969 is_cross_compiler=yes
1972 # Find the build and target subdir names.
1974 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1975 # have matching libraries, they should use host libraries: Makefile.tpl
1976 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1977 # However, they still use the build modules, because the corresponding
1978 # host modules (e.g. bison) are only built for the host when bootstrap
1980 # - build_subdir is where we find build modules, and never changes.
1981 # - build_libsubdir is where we find build libraries, and can be overridden.
1983 # Prefix 'build-' so this never conflicts with target_subdir.
1984 build_subdir="build-${build_noncanonical}"
1986 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1987 if test "${with_build_libsubdir+set}" = set; then
1988 withval="$with_build_libsubdir"
1989 build_libsubdir="$withval"
1991 build_libsubdir="$build_subdir"
1993 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1994 if ( test $srcdir = . && test -d gcc ) \
1995 || test -d $srcdir/../host-${host_noncanonical}; then
1996 host_subdir="host-${host_noncanonical}"
2001 target_subdir=${target_noncanonical}
2004 # Skipdirs are removed silently.
2006 # Noconfigdirs are removed loudly.
2010 # Make sure we don't let GNU ld be added if we didn't want it.
2011 if test x$with_gnu_ld = xno ; then
2013 noconfigdirs="$noconfigdirs ld gold"
2017 # Make sure we don't let GNU as be added if we didn't want it.
2018 if test x$with_gnu_as = xno ; then
2020 noconfigdirs="$noconfigdirs gas"
2023 # some tools are so dependent upon X11 that if we're not building with X,
2024 # it's not even worth trying to configure, much less build, that tool.
2027 yes | "") ;; # the default value for this tree is that X11 is available
2029 skipdirs="${skipdirs} tk itcl libgui"
2030 # We won't be able to build gdbtk without X.
2033 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2036 # Some tools are only suitable for building in a "native" situation.
2037 # Remove these if host!=target.
2038 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"
2040 # Similarly, some are only suitable for cross toolchains.
2041 # Remove these if host=target.
2042 cross_only="target-libgloss target-newlib target-opcodes"
2044 case $is_cross_compiler in
2045 no) skipdirs="${skipdirs} ${cross_only}" ;;
2046 yes) skipdirs="${skipdirs} ${native_only}" ;;
2049 # If both --with-headers and --with-libs are specified, default to
2051 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2052 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2053 if test x"${with_newlib}" = x ; then
2058 # Recognize --with-newlib/--without-newlib.
2059 case ${with_newlib} in
2060 no) skipdirs="${skipdirs} target-newlib" ;;
2061 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2064 # Handle --enable-gold.
2066 # Check whether --enable-gold or --disable-gold was given.
2067 if test "${enable_gold+set}" = set; then
2068 enableval="$enable_gold"
2069 ENABLE_GOLD=$enableval
2073 if test "${ENABLE_GOLD}" = "yes"; then
2074 # Check for ELF target.
2077 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2078 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2079 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2081 *-*-linux*aout* | *-*-linux*oldld*)
2089 if test "$is_elf" = "yes"; then
2090 # Check for target supported by gold.
2092 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2093 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2099 # Configure extra directories which are host specific
2103 configdirs="$configdirs libtermcap" ;;
2106 # A target can indicate whether a language isn't supported for some reason.
2107 # Only spaces may be used in this macro; not newlines or tabs.
2108 unsupported_languages=
2110 # Remove more programs from consideration, based on the host or
2111 # target this usually means that a port of the program doesn't
2116 noconfigdirs="$noconfigdirs byacc"
2118 i[3456789]86-*-vsta)
2119 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2121 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2122 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2125 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2127 i[3456789]86-*-mingw32*)
2128 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2129 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2131 i[3456789]86-*-beos*)
2132 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2135 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2138 noconfigdirs="$noconfigdirs rcs"
2141 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2144 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2149 # Check whether --enable-libada or --disable-libada was given.
2150 if test "${enable_libada+set}" = set; then
2151 enableval="$enable_libada"
2152 ENABLE_LIBADA=$enableval
2156 if test "${ENABLE_LIBADA}" != "yes" ; then
2157 noconfigdirs="$noconfigdirs gnattools"
2160 # Check whether --enable-libssp or --disable-libssp was given.
2161 if test "${enable_libssp+set}" = set; then
2162 enableval="$enable_libssp"
2163 ENABLE_LIBSSP=$enableval
2168 # Save it here so that, even in case of --enable-libgcj, if the Java
2169 # front-end isn't enabled, we still get libgcj disabled.
2170 libgcj_saved=$libgcj
2171 case $enable_libgcj in
2173 # If we reset it here, it won't get added to noconfigdirs in the
2174 # target-specific build rules, so it will be forcibly enabled
2175 # (unless the Java language itself isn't enabled).
2179 # Make sure we get it printed in the list of not supported target libs.
2180 noconfigdirs="$noconfigdirs ${libgcj}"
2185 # Disable libmudflap on some systems.
2186 if test x$enable_libmudflap = x ; then
2188 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2189 # Enable libmudflap by default in GNU and friends.
2192 # Enable libmudflap by default in FreeBSD.
2195 # Disable it by default everywhere else.
2196 noconfigdirs="$noconfigdirs target-libmudflap"
2201 # Disable libgomp on non POSIX hosted systems.
2202 if test x$enable_libgomp = x ; then
2203 # Enable libgomp by default on hosted POSIX systems.
2205 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2207 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2209 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2211 *-*-darwin* | *-*-aix*)
2214 noconfigdirs="$noconfigdirs target-libgomp"
2219 # Default libgloss CPU subdirectory.
2220 libgloss_dir="$target_cpu"
2224 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2227 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2228 noconfigdirs="$noconfigdirs sim target-rda"
2230 i[3456789]86-*-darwin*)
2231 noconfigdirs="$noconfigdirs ld gprof"
2232 noconfigdirs="$noconfigdirs sim target-rda"
2234 x86_64-*-darwin[912]*)
2235 noconfigdirs="$noconfigdirs ld gas gprof"
2236 noconfigdirs="$noconfigdirs sim target-rda"
2239 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2240 noconfigdirs="$noconfigdirs sim target-rda"
2241 noconfigdirs="$noconfigdirs ${libgcj}"
2243 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2244 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2247 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2248 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2249 && test -f /usr/local/include/gmp.h; then
2253 # Skip some stuff that's unsupported on some FreeBSD configurations.
2258 noconfigdirs="$noconfigdirs ${libgcj}"
2263 # Remove unsupported stuff on all kaOS configurations.
2264 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2265 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2266 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2267 noconfigdirs="$noconfigdirs target-libgloss"
2270 # Skip some stuff on all NetBSD configurations.
2271 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2273 # Skip some stuff that's unsupported on some NetBSD configurations.
2275 i*86-*-netbsdelf*) ;;
2276 arm*-*-netbsdelf*) ;;
2278 noconfigdirs="$noconfigdirs ${libgcj}"
2283 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2286 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2288 # The tpf target doesn't support gdb yet.
2290 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2293 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2296 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2299 # ld works, but does not support shared libraries.
2300 # newlib is not 64 bit ready. I'm not sure about fileutils.
2301 # gas doesn't generate exception information.
2302 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2305 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2308 # newlib is not 64 bit ready
2309 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2312 # newlib is not 64 bit ready
2313 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2316 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2319 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2321 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2322 noconfigdirs="$noconfigdirs ${libgcj}"
2323 noconfigdirs="$noconfigdirs target-examples"
2324 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2325 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2326 noconfigdirs="$noconfigdirs expect dejagnu"
2327 # the C++ libraries don't build on top of CE's C libraries
2328 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2329 noconfigdirs="$noconfigdirs target-newlib"
2331 *-*-cygwin*) ;; # keep gdb and readline
2332 *) noconfigdirs="$noconfigdirs gdb readline"
2338 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2342 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2343 noconfigdirs="$noconfigdirs ${libgcj}"
2346 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2347 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2350 arm*-*-linux-gnueabi)
2351 noconfigdirs="$noconfigdirs target-qthreads"
2352 case ${with_newlib} in
2353 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2358 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2362 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2365 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2368 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2371 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2374 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2377 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
2380 noconfigdirs="$noconfigdirs gdb"
2381 if test x${is_cross_compiler} != xno ; then
2382 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2385 c4x-*-* | tic4x-*-*)
2386 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2388 c54x*-*-* | tic54x-*-*)
2389 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2392 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2394 cris-*-* | crisv32-*-*)
2395 unsupported_languages="$unsupported_languages java"
2398 unsupported_languages="$unsupported_languages fortran"
2399 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2401 noconfigdirs="$noconfigdirs target-boehm-gc";;
2403 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2405 unsupported_languages="$unsupported_languages fortran"
2406 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2411 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2414 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2417 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2419 ep9312-*-elf | ep9312-*-coff)
2423 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2426 noconfigdirs="$noconfigdirs ${libgcj}"
2429 noconfigdirs="$noconfigdirs ${libgcj}"
2430 noconfigdirs="$noconfigdirs gprof"
2433 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2436 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2438 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2440 hppa*64*-*-linux* | parisc*64*-*-linux*)
2441 # In this case, it's because the hppa64-linux target is for
2442 # the kernel only at this point and has no libc, and thus no
2443 # headers, crt*.o, etc., all of which are needed by these.
2444 noconfigdirs="$noconfigdirs target-zlib"
2446 parisc*-*-linux* | hppa*-*-linux*)
2450 hppa*-*-openbsd* | \
2452 noconfigdirs="$noconfigdirs ${libgcj}"
2455 noconfigdirs="$noconfigdirs ld shellutils"
2461 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2462 # build on HP-UX 10.20.
2463 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2466 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2469 # No gdb support yet.
2470 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2473 # No gdb or ld support yet.
2474 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2477 # No gdb or ld support yet.
2478 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2482 i[3456789]86-*-coff | i[3456789]86-*-elf)
2483 noconfigdirs="$noconfigdirs ${libgcj}"
2486 i[3456789]86-*-linux*)
2487 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2488 # not build java stuff by default.
2491 noconfigdirs="$noconfigdirs ${libgcj}";;
2494 # This section makes it possible to build newlib natively on linux.
2495 # If we are using a cross compiler then don't configure newlib.
2496 if test x${is_cross_compiler} != xno ; then
2497 noconfigdirs="$noconfigdirs target-newlib"
2499 noconfigdirs="$noconfigdirs target-libgloss"
2500 # If we are not using a cross compiler, do configure newlib.
2501 # Note however, that newlib will only be configured in this situation
2502 # if the --with-newlib option has been given, because otherwise
2503 # 'target-newlib' will appear in skipdirs.
2505 i[3456789]86-*-mingw32*)
2506 target_configdirs="$target_configdirs target-winsup"
2507 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2510 target_configdirs="$target_configdirs target-winsup"
2511 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2514 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2515 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
2516 # always build newlib if winsup directory is present.
2517 if test -d "$srcdir/winsup/cygwin"; then
2518 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2519 elif test -d "$srcdir/newlib"; then
2520 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2523 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2524 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2527 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2529 i[3456789]86-*-sco3.2v5*)
2530 # The linker does not yet know about weak symbols in COFF,
2531 # and is not configured to handle mixed ELF and COFF.
2532 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2534 i[3456789]86-*-sco*)
2535 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2537 i[3456789]86-*-solaris2*)
2538 noconfigdirs="$noconfigdirs target-libgloss"
2540 i[3456789]86-*-sysv4*)
2541 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2543 i[3456789]86-*-beos*)
2544 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2546 i[3456789]86-*-rdos*)
2547 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2550 noconfigdirs="$noconfigdirs ${libgcj}"
2552 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2553 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2554 libgloss_dir=m68hc11
2557 noconfigdirs="$noconfigdirs ${libgcj}"
2560 noconfigdirs="$noconfigdirs ${libgcj}"
2562 m68*-*-* | fido-*-*)
2566 # The EPOC C++ environment does not support exceptions or rtti,
2567 # and so building libstdc++-v3 tends not to always work.
2568 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2571 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2572 unsupported_languages="$unsupported_languages fortran java"
2575 noconfigdirs="$noconfigdirs ${libgcj}"
2578 noconfigdirs="$noconfigdirs ${libgcj}"
2581 noconfigdirs="$noconfigdirs sim"
2584 # copied from rs6000-*-* entry
2585 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
2587 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2588 target_configdirs="$target_configdirs target-winsup"
2589 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2590 # always build newlib.
2591 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2593 # This is temporary until we can link against shared libraries
2594 powerpcle-*-solaris*)
2595 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2599 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2602 noconfigdirs="$noconfigdirs ${libgcj}"
2605 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2609 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2612 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
2615 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2618 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2621 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2624 skipdirs="$skipdirs target-libiberty"
2625 noconfigdirs="$noconfigdirs ${libgcj}"
2626 if test x$with_newlib = xyes; then
2627 noconfigdirs="$noconfigdirs gprof"
2632 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2635 # Linking libjava exceeds command-line length limits on at least
2636 # IRIX 6.2, but not on IRIX 6.5.
2637 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2638 # <oldham@codesourcery.com>
2639 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2642 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2645 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2648 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2652 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2656 i[3456789]86-*-vsta) ;; # don't add gprof back in
2657 i[3456789]86-*-go32*) ;; # don't add gprof back in
2658 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2659 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2663 noconfigdirs="$noconfigdirs ${libgcj}" ;;
2665 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
2668 sparclet-*-aout* | sparc86x-*-*)
2672 noconfigdirs="$noconfigdirs ${libgcj}"
2675 noconfigdirs="$noconfigdirs ${libgcj}"
2679 noconfigdirs="$noconfigdirs ${libgcj}"
2683 noconfigdirs="$noconfigdirs ${libgcj}"
2684 if test x${is_cross_compiler} != xno ; then
2685 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2690 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2691 noconfigdirs="$noconfigdirs ${libgcj}"
2693 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2696 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2699 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2702 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2705 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2708 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2711 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2714 noconfigdirs="$noconfigdirs ${libgcj}"
2717 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2719 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2723 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2726 noconfigdirs="$noconfigdirs ${libgcj}"
2730 # If we aren't building newlib, then don't build libgloss, since libgloss
2731 # depends upon some newlib header files.
2732 case "${noconfigdirs}" in
2733 *target-libgloss*) ;;
2734 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2737 # Work in distributions that contain no compiler tools, like Autoconf.
2739 host_makefile_frag=/dev/null
2740 if test -d ${srcdir}/config ; then
2743 # Avoid "too much defining" errors from HPUX compiler.
2744 tentative_cc="cc -Wp,-H256000"
2745 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2746 # If it's HP/UX ar, this should be harmless.
2750 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2753 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2754 # chokes on bfd, the compiler won't let you assign integers to enums, and
2755 # other problems. Defining CC to gcc is a questionable way to say "don't use
2756 # the apollo compiler" (the preferred version of GCC could be called cc,
2757 # or whatever), but I'm not sure leaving CC as cc is any better...
2758 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2759 # Used to have BISON=yacc.
2763 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2766 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2767 tentative_cc="cc -Xa"
2768 host_makefile_frag="config/mh-cxux"
2770 m88k-motorola-sysv*)
2773 tentative_cc="cc -Wf,-XNg1000"
2774 host_makefile_frag="config/mh-decstation"
2777 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2778 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2779 host_makefile_frag="config/mh-necv4"
2782 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2783 # environment. Also bump switch table size so that cp-parse will
2784 # compile. Bump string length limit so linker builds.
2785 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2788 host_makefile_frag="config/mh-sysv4"
2791 # This is for a MIPS running RISC/os 4.52C.
2793 # This is needed for GDB, but needs to be in the top-level make because
2794 # if a library is compiled with the bsd headers and gets linked with the
2795 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2796 # a different size).
2797 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2798 # known except to select the sysv environment. Could we use /proc instead?
2799 # These "sysv environments" and "bsd environments" often end up being a pain.
2801 # This is not part of CFLAGS because perhaps not all C compilers have this
2803 tentative_cc="cc -systype sysv"
2808 i[3456789]86-*-sysv5*)
2809 host_makefile_frag="config/mh-sysv5"
2811 i[3456789]86-*-dgux*)
2812 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2813 host_makefile_frag="config/mh-dgux386"
2815 i[3456789]86-ncr-sysv4.3*)
2816 # The MetaWare compiler will generate a copyright message unless you
2817 # turn it off by adding the -Hnocopyr flag.
2818 tentative_cc="cc -Hnocopyr"
2820 i[3456789]86-ncr-sysv4*)
2821 # for an NCR 3000 (i486/SVR4) system.
2822 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2823 # This compiler not only emits obnoxious copyright messages every time
2824 # you run it, but it chokes and dies on a whole bunch of GNU source
2825 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2826 tentative_cc="/usr/ccs/ATT/cc"
2827 host_makefile_frag="config/mh-ncr3000"
2829 i[3456789]86-*-sco3.2v5*)
2831 i[3456789]86-*-sco*)
2832 # The native C compiler botches some simple uses of const. Unfortunately,
2833 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2834 tentative_cc="cc -Dconst="
2835 host_makefile_frag="config/mh-sco"
2837 i[3456789]86-*-udk*)
2838 host_makefile_frag="config/mh-sysv5"
2840 i[3456789]86-*-solaris2*)
2841 host_makefile_frag="config/mh-sysv4"
2843 i[3456789]86-*-msdosdjgpp*)
2844 host_makefile_frag="config/mh-djgpp"
2848 echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2849 echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2850 echo a >cygwin-cat-check
2851 if test `cat cygwin-cat-check` == a ; then
2853 echo "$as_me:$LINENO: result: yes" >&5
2854 echo "${ECHO_T}yes" >&6
2857 echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6
2859 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2860 Please either mount the build directory in binary mode or run the following
2861 commands before running any configure script:
2865 echo "$as_me: error: The cat command does not ignore carriage return characters.
2866 Please either mount the build directory in binary mode or run the following
2867 commands before running any configure script:
2871 { (exit 1); exit 1; }; }
2874 host_makefile_frag="config/mh-cygwin"
2877 host_makefile_frag="config/mh-mingw"
2880 host_makefile_frag="config/mh-interix"
2883 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2887 host_makefile_frag="config/mh-solaris"
2890 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2891 # without overflowing the jump tables (-J says to use a 32 bit table)
2892 tentative_cc="cc -J"
2895 tentative_cc="cc -Wp,-H256000"
2896 host_makefile_frag="config/mh-pa-hpux10"
2898 hppa*-hp-hpux* | hppa*-*-hiux*)
2899 tentative_cc="cc -Wp,-H256000"
2900 host_makefile_frag="config/mh-pa"
2903 host_makefile_frag="config/mh-pa"
2905 *-hp-hpux* | *-*-hiux*)
2906 tentative_cc="cc -Wp,-H256000"
2909 # /bin/cc is less than useful for our purposes. Always use GCC
2910 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2911 host_makefile_frag="config/mh-lynxrs6k"
2914 host_makefile_frag="config/mh-ppc-darwin"
2917 host_makefile_frag="config/mh-ppc-aix"
2920 host_makefile_frag="config/mh-ppc-aix"
2923 # /bin/cc is less than useful for our purposes. Always use GCC
2924 tentative_cc="/bin/gcc"
2927 host_makefile_frag="config/mh-sysv4"
2929 # This is placed last to prevent interfering with the cases above.
2931 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2932 host_makefile_frag="config/mh-x86omitfp"
2937 # If we aren't going to be using gcc, see if we can extract a definition
2938 # of CC from the fragment.
2939 # Actually, use the 'pre-extracted' version above.
2940 if test -z "${CC}" && test "${build}" = "${host}" ; then
2941 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2943 for dir in $PATH; do
2944 test -z "$dir" && dir=.
2945 if test -f $dir/gcc; then
2951 if test -z "${found}" && test -n "${tentative_cc}" ; then
2956 if test "${build}" != "${host}" ; then
2957 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2958 AS_FOR_BUILD=${AS_FOR_BUILD-as}
2959 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2960 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2961 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2962 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2963 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2964 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2965 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2966 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2967 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2968 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2970 AR_FOR_BUILD="\$(AR)"
2971 AS_FOR_BUILD="\$(AS)"
2972 CC_FOR_BUILD="\$(CC)"
2973 CXX_FOR_BUILD="\$(CXX)"
2974 GCJ_FOR_BUILD="\$(GCJ)"
2975 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2976 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2977 LD_FOR_BUILD="\$(LD)"
2978 NM_FOR_BUILD="\$(NM)"
2979 RANLIB_FOR_BUILD="\$(RANLIB)"
2980 WINDRES_FOR_BUILD="\$(WINDRES)"
2981 WINDMC_FOR_BUILD="\$(WINDMC)"
2985 ac_cpp='$CPP $CPPFLAGS'
2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989 if test -n "$ac_tool_prefix"; then
2990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2991 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2992 echo "$as_me:$LINENO: checking for $ac_word" >&5
2993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2994 if test "${ac_cv_prog_CC+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC="$CC" # Let the user override the test.
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 if test -n "$CC"; then
3018 echo "$as_me:$LINENO: result: $CC" >&5
3019 echo "${ECHO_T}$CC" >&6
3021 echo "$as_me:$LINENO: result: no" >&5
3022 echo "${ECHO_T}no" >&6
3026 if test -z "$ac_cv_prog_CC"; then
3028 # Extract the first word of "gcc", so it can be a program name with args.
3029 set dummy gcc; ac_word=$2
3030 echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 if test -n "$ac_ct_CC"; then
3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_ac_ct_CC="gcc"
3046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3055 if test -n "$ac_ct_CC"; then
3056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3057 echo "${ECHO_T}$ac_ct_CC" >&6
3059 echo "$as_me:$LINENO: result: no" >&5
3060 echo "${ECHO_T}no" >&6
3068 if test -z "$CC"; then
3069 if test -n "$ac_tool_prefix"; then
3070 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3071 set dummy ${ac_tool_prefix}cc; ac_word=$2
3072 echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3074 if test "${ac_cv_prog_CC+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_prog_CC="${ac_tool_prefix}cc"
3088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 if test -n "$CC"; then
3098 echo "$as_me:$LINENO: result: $CC" >&5
3099 echo "${ECHO_T}$CC" >&6
3101 echo "$as_me:$LINENO: result: no" >&5
3102 echo "${ECHO_T}no" >&6
3106 if test -z "$ac_cv_prog_CC"; then
3108 # Extract the first word of "cc", so it can be a program name with args.
3109 set dummy cc; ac_word=$2
3110 echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3112 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 if test -n "$ac_ct_CC"; then
3116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_ac_ct_CC="cc"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3135 if test -n "$ac_ct_CC"; then
3136 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3137 echo "${ECHO_T}$ac_ct_CC" >&6
3139 echo "$as_me:$LINENO: result: no" >&5
3140 echo "${ECHO_T}no" >&6
3149 if test -z "$CC"; then
3150 # Extract the first word of "cc", so it can be a program name with args.
3151 set dummy cc; ac_word=$2
3152 echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3154 if test "${ac_cv_prog_CC+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3169 ac_prog_rejected=yes
3173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 if test $ac_prog_rejected = yes; then
3180 # We found a bogon in the path, so make sure we never use it.
3181 set dummy $ac_cv_prog_CC
3183 if test $# != 0; then
3184 # We chose a different compiler from the bogus one.
3185 # However, it has the same basename, so the bogon will be chosen
3186 # first if we set CC to just the basename; use the full file name.
3188 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3194 if test -n "$CC"; then
3195 echo "$as_me:$LINENO: result: $CC" >&5
3196 echo "${ECHO_T}$CC" >&6
3198 echo "$as_me:$LINENO: result: no" >&5
3199 echo "${ECHO_T}no" >&6
3203 if test -z "$CC"; then
3204 if test -n "$ac_tool_prefix"; then
3207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3209 echo "$as_me:$LINENO: checking for $ac_word" >&5
3210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3211 if test "${ac_cv_prog_CC+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 if test -n "$CC"; then
3215 ac_cv_prog_CC="$CC" # Let the user override the test.
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 if test -n "$CC"; then
3235 echo "$as_me:$LINENO: result: $CC" >&5
3236 echo "${ECHO_T}$CC" >&6
3238 echo "$as_me:$LINENO: result: no" >&5
3239 echo "${ECHO_T}no" >&6
3242 test -n "$CC" && break
3245 if test -z "$CC"; then
3249 # Extract the first word of "$ac_prog", so it can be a program name with args.
3250 set dummy $ac_prog; ac_word=$2
3251 echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 if test -n "$ac_ct_CC"; then
3257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_ac_ct_CC="$ac_prog"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3276 if test -n "$ac_ct_CC"; then
3277 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3278 echo "${ECHO_T}$ac_ct_CC" >&6
3280 echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3284 test -n "$ac_ct_CC" && break
3293 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3294 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3296 See \`config.log' for more details." >&5
3297 echo "$as_me: error: no acceptable C compiler found in \$PATH
3298 See \`config.log' for more details." >&2;}
3299 { (exit 1); exit 1; }; }; }
3301 # Provide some information about the compiler.
3302 echo "$as_me:$LINENO:" \
3303 "checking for C compiler version" >&5
3304 ac_compiler=`set X $ac_compile; echo $2`
3305 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3306 (eval $ac_compiler --version </dev/null >&5) 2>&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }
3310 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3311 (eval $ac_compiler -v </dev/null >&5) 2>&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }
3315 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3316 (eval $ac_compiler -V </dev/null >&5) 2>&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }
3321 cat >conftest.$ac_ext <<_ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3336 ac_clean_files_save=$ac_clean_files
3337 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3338 # Try to create an executable without -o first, disregard a.out.
3339 # It will help us diagnose broken compilers, and finding out an intuition
3341 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3342 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3343 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3344 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3345 (eval $ac_link_default) 2>&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; then
3349 # Find the output, starting from the most likely. This scheme is
3350 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3353 # Be careful to initialize this variable, since it used to be cached.
3354 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3356 # b.out is created by i960 compilers.
3357 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3359 test -f "$ac_file" || continue
3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3364 # This is the source file.
3367 # We found the default executable, but exeext='' is most
3371 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372 # FIXME: I believe we export ac_cv_exeext for Libtool,
3373 # but it would be cool to find out if it's true. Does anybody
3374 # maintain Libtool? --akim.
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3385 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3386 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3388 See \`config.log' for more details." >&5
3389 echo "$as_me: error: C compiler cannot create executables
3390 See \`config.log' for more details." >&2;}
3391 { (exit 77); exit 77; }; }; }
3394 ac_exeext=$ac_cv_exeext
3395 echo "$as_me:$LINENO: result: $ac_file" >&5
3396 echo "${ECHO_T}$ac_file" >&6
3398 # Check the compiler produces executables we can run. If not, either
3399 # the compiler is broken, or we cross compile.
3400 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3401 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3402 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3403 # If not cross compiling, check that we can run a simple program.
3404 if test "$cross_compiling" != yes; then
3405 if { ac_try='./$ac_file'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3413 if test "$cross_compiling" = maybe; then
3416 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3417 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3419 If you meant to cross compile, use \`--host'.
3420 See \`config.log' for more details." >&5
3421 echo "$as_me: error: cannot run C compiled programs.
3422 If you meant to cross compile, use \`--host'.
3423 See \`config.log' for more details." >&2;}
3424 { (exit 1); exit 1; }; }; }
3428 echo "$as_me:$LINENO: result: yes" >&5
3429 echo "${ECHO_T}yes" >&6
3431 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3432 ac_clean_files=$ac_clean_files_save
3433 # Check the compiler produces executables we can run. If not, either
3434 # the compiler is broken, or we cross compile.
3435 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3436 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3437 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3438 echo "${ECHO_T}$cross_compiling" >&6
3440 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3441 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3443 (eval $ac_link) 2>&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; then
3447 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3448 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3449 # work properly (i.e., refer to `conftest.exe'), while it won't with
3451 for ac_file in conftest.exe conftest conftest.*; do
3452 test -f "$ac_file" || continue
3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3462 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3463 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3465 See \`config.log' for more details." >&5
3466 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3467 See \`config.log' for more details." >&2;}
3468 { (exit 1); exit 1; }; }; }
3471 rm -f conftest$ac_cv_exeext
3472 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3473 echo "${ECHO_T}$ac_cv_exeext" >&6
3475 rm -f conftest.$ac_ext
3476 EXEEXT=$ac_cv_exeext
3478 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3479 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3480 if test "${ac_cv_objext+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 cat >conftest.$ac_ext <<_ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3498 rm -f conftest.o conftest.obj
3499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; then
3504 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3507 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3515 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3516 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3518 See \`config.log' for more details." >&5
3519 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3520 See \`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }; }
3524 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3526 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3527 echo "${ECHO_T}$ac_cv_objext" >&6
3528 OBJEXT=$ac_cv_objext
3530 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3531 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3532 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 cat >conftest.$ac_ext <<_ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3553 rm -f conftest.$ac_objext
3554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555 (eval $ac_compile) 2>conftest.er1
3557 grep -v '^ *+' conftest.er1 >conftest.err
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } &&
3562 { ac_try='test -z "$ac_c_werror_flag"
3563 || test ! -s conftest.err'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; } &&
3569 { ac_try='test -s conftest.$ac_objext'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; }; then
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3586 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3587 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3588 GCC=`test $ac_compiler_gnu = yes && echo yes`
3589 ac_test_CFLAGS=${CFLAGS+set}
3590 ac_save_CFLAGS=$CFLAGS
3592 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3593 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3594 if test "${ac_cv_prog_cc_g+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 cat >conftest.$ac_ext <<_ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3612 rm -f conftest.$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>conftest.er1
3616 grep -v '^ *+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -z "$ac_c_werror_flag"
3622 || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3643 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3645 if test "$ac_test_CFLAGS" = set; then
3646 CFLAGS=$ac_save_CFLAGS
3647 elif test $ac_cv_prog_cc_g = yes; then
3648 if test "$GCC" = yes; then
3654 if test "$GCC" = yes; then
3660 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3661 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3662 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 ac_cv_prog_cc_stdc=no
3667 cat >conftest.$ac_ext <<_ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3675 #include <sys/types.h>
3676 #include <sys/stat.h>
3677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3678 struct buf { int x; };
3679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3680 static char *e (p, i)
3686 static char *f (char * (*g) (char **, int), char **p, ...)
3691 s = g (p, va_arg (v,int));
3696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3697 function prototypes and stuff, but not '\xHH' hex character constants.
3698 These don't provoke an error unfortunately, instead are silently treated
3699 as 'x'. The following induces an error, until -std1 is added to get
3700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3701 array size at least. It's necessary to write '\x00'==0 to get something
3702 that's true only with -std1. */
3703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3705 int test (int i, double x);
3706 struct s1 {int (*f) (int a);};
3707 struct s2 {int (*f) (double a);};
3708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3714 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3719 # Don't try gcc -ansi; that turns off useful extensions and
3720 # breaks some systems' header files.
3721 # AIX -qlanglvl=ansi
3722 # Ultrix and OSF/1 -std1
3723 # HP-UX 10.20 and later -Ae
3724 # HP-UX older versions -Aa -D_HPUX_SOURCE
3725 # SVR4 -Xc -D__EXTENSIONS__
3726 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3728 CC="$ac_save_CC $ac_arg"
3729 rm -f conftest.$ac_objext
3730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3731 (eval $ac_compile) 2>conftest.er1
3733 grep -v '^ *+' conftest.er1 >conftest.err
3735 cat conftest.err >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } &&
3738 { ac_try='test -z "$ac_c_werror_flag"
3739 || test ! -s conftest.err'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; } &&
3745 { ac_try='test -s conftest.$ac_objext'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 ac_cv_prog_cc_stdc=$ac_arg
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3758 rm -f conftest.err conftest.$ac_objext
3760 rm -f conftest.$ac_ext conftest.$ac_objext
3765 case "x$ac_cv_prog_cc_stdc" in
3767 echo "$as_me:$LINENO: result: none needed" >&5
3768 echo "${ECHO_T}none needed" >&6 ;;
3770 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3771 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3772 CC="$CC $ac_cv_prog_cc_stdc" ;;
3775 # Some people use a C++ compiler to compile C. Since we use `exit',
3776 # in C++ we need to declare it. In case someone uses the same compiler
3777 # for both compiling C and C++ we need to have the C++ compiler decide
3778 # the declaration of exit, since it's the most demanding environment.
3779 cat >conftest.$ac_ext <<_ACEOF
3784 rm -f conftest.$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3788 grep -v '^ *+' conftest.er1 >conftest.err
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -z "$ac_c_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 for ac_declaration in \
3808 'extern "C" void std::exit (int) throw (); using std::exit;' \
3809 'extern "C" void std::exit (int); using std::exit;' \
3810 'extern "C" void exit (int) throw ();' \
3811 'extern "C" void exit (int);' \
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>conftest.er1
3834 grep -v '^ *+' conftest.er1 >conftest.err
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_c_werror_flag"
3840 || test ! -s conftest.err'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; } &&
3846 { ac_try='test -s conftest.$ac_objext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3860 cat >conftest.$ac_ext <<_ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3875 rm -f conftest.$ac_objext
3876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3877 (eval $ac_compile) 2>conftest.er1
3879 grep -v '^ *+' conftest.er1 >conftest.err
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
3884 { ac_try='test -z "$ac_c_werror_flag"
3885 || test ! -s conftest.err'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; } &&
3891 { ac_try='test -s conftest.$ac_objext'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3906 if test -n "$ac_declaration"; then
3907 echo '#ifdef __cplusplus' >>confdefs.h
3908 echo $ac_declaration >>confdefs.h
3909 echo '#endif' >>confdefs.h
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3919 ac_cpp='$CPP $CPPFLAGS'
3920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925 ac_cpp='$CXXCPP $CPPFLAGS'
3926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3929 if test -n "$ac_tool_prefix"; then
3930 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3934 echo "$as_me:$LINENO: checking for $ac_word" >&5
3935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3936 if test "${ac_cv_prog_CXX+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 if test -n "$CXX"; then
3940 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 if test -n "$CXX"; then
3960 echo "$as_me:$LINENO: result: $CXX" >&5
3961 echo "${ECHO_T}$CXX" >&6
3963 echo "$as_me:$LINENO: result: no" >&5
3964 echo "${ECHO_T}no" >&6
3967 test -n "$CXX" && break
3970 if test -z "$CXX"; then
3972 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3974 # Extract the first word of "$ac_prog", so it can be a program name with args.
3975 set dummy $ac_prog; ac_word=$2
3976 echo "$as_me:$LINENO: checking for $ac_word" >&5
3977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3978 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 if test -n "$ac_ct_CXX"; then
3982 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3991 ac_cv_prog_ac_ct_CXX="$ac_prog"
3992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4001 if test -n "$ac_ct_CXX"; then
4002 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4003 echo "${ECHO_T}$ac_ct_CXX" >&6
4005 echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4009 test -n "$ac_ct_CXX" && break
4011 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4017 # Provide some information about the compiler.
4018 echo "$as_me:$LINENO:" \
4019 "checking for C++ compiler version" >&5
4020 ac_compiler=`set X $ac_compile; echo $2`
4021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4022 (eval $ac_compiler --version </dev/null >&5) 2>&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }
4026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4027 (eval $ac_compiler -v </dev/null >&5) 2>&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }
4031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4032 (eval $ac_compiler -V </dev/null >&5) 2>&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }
4037 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4038 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4039 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 cat >conftest.$ac_ext <<_ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4060 rm -f conftest.$ac_objext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062 (eval $ac_compile) 2>conftest.er1
4064 grep -v '^ *+' conftest.er1 >conftest.err
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_cxx_werror_flag"
4070 || test ! -s conftest.err'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest.$ac_objext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4084 echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4093 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4094 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4095 GXX=`test $ac_compiler_gnu = yes && echo yes`
4096 ac_test_CXXFLAGS=${CXXFLAGS+set}
4097 ac_save_CXXFLAGS=$CXXFLAGS
4099 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4100 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4101 if test "${ac_cv_prog_cxx_g+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 cat >conftest.$ac_ext <<_ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4119 rm -f conftest.$ac_objext
4120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4121 (eval $ac_compile) 2>conftest.er1
4123 grep -v '^ *+' conftest.er1 >conftest.err
4125 cat conftest.err >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -z "$ac_cxx_werror_flag"
4129 || test ! -s conftest.err'
4130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; }; then
4141 ac_cv_prog_cxx_g=yes
4143 echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4150 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4151 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4152 if test "$ac_test_CXXFLAGS" = set; then
4153 CXXFLAGS=$ac_save_CXXFLAGS
4154 elif test $ac_cv_prog_cxx_g = yes; then
4155 if test "$GXX" = yes; then
4161 if test "$GXX" = yes; then
4167 for ac_declaration in \
4169 'extern "C" void std::exit (int) throw (); using std::exit;' \
4170 'extern "C" void std::exit (int); using std::exit;' \
4171 'extern "C" void exit (int) throw ();' \
4172 'extern "C" void exit (int);' \
4175 cat >conftest.$ac_ext <<_ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4191 rm -f conftest.$ac_objext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193 (eval $ac_compile) 2>conftest.er1
4195 grep -v '^ *+' conftest.er1 >conftest.err
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } &&
4200 { ac_try='test -z "$ac_cxx_werror_flag"
4201 || test ! -s conftest.err'
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4221 cat >conftest.$ac_ext <<_ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4236 rm -f conftest.$ac_objext
4237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4238 (eval $ac_compile) 2>conftest.er1
4240 grep -v '^ *+' conftest.er1 >conftest.err
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } &&
4245 { ac_try='test -z "$ac_cxx_werror_flag"
4246 || test ! -s conftest.err'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; } &&
4252 { ac_try='test -s conftest.$ac_objext'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; }; then
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4267 if test -n "$ac_declaration"; then
4268 echo '#ifdef __cplusplus' >>confdefs.h
4269 echo $ac_declaration >>confdefs.h
4270 echo '#endif' >>confdefs.h
4274 ac_cpp='$CPP $CPPFLAGS'
4275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280 # We must set the default linker to the linker used by gcc for the correct
4281 # operation of libtool. If LD is not defined and we are using gcc, try to
4282 # set the LD default to the ld used by gcc.
4283 if test -z "$LD"; then
4284 if test "$GCC" = yes; then
4287 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4289 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4291 case $gcc_prog_ld in
4292 # Accept absolute paths.
4293 [\\/]* | [A-Za-z]:[\\/]*)
4294 LD="$gcc_prog_ld" ;;
4302 if test -n "$ac_tool_prefix"; then
4303 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4304 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4305 echo "$as_me:$LINENO: checking for $ac_word" >&5
4306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4307 if test "${ac_cv_prog_GNATBIND+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 if test -n "$GNATBIND"; then
4311 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 GNATBIND=$ac_cv_prog_GNATBIND
4330 if test -n "$GNATBIND"; then
4331 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4332 echo "${ECHO_T}$GNATBIND" >&6
4334 echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6
4339 if test -z "$ac_cv_prog_GNATBIND"; then
4340 ac_ct_GNATBIND=$GNATBIND
4341 # Extract the first word of "gnatbind", so it can be a program name with args.
4342 set dummy gnatbind; ac_word=$2
4343 echo "$as_me:$LINENO: checking for $ac_word" >&5
4344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4345 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 if test -n "$ac_ct_GNATBIND"; then
4349 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4358 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4368 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4369 if test -n "$ac_ct_GNATBIND"; then
4370 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4371 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4373 echo "$as_me:$LINENO: result: no" >&5
4374 echo "${ECHO_T}no" >&6
4377 GNATBIND=$ac_ct_GNATBIND
4379 GNATBIND="$ac_cv_prog_GNATBIND"
4382 if test -n "$ac_tool_prefix"; then
4383 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4384 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4385 echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4387 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 if test -n "$GNATMAKE"; then
4391 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 GNATMAKE=$ac_cv_prog_GNATMAKE
4410 if test -n "$GNATMAKE"; then
4411 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4412 echo "${ECHO_T}$GNATMAKE" >&6
4414 echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6
4419 if test -z "$ac_cv_prog_GNATMAKE"; then
4420 ac_ct_GNATMAKE=$GNATMAKE
4421 # Extract the first word of "gnatmake", so it can be a program name with args.
4422 set dummy gnatmake; ac_word=$2
4423 echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4425 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 if test -n "$ac_ct_GNATMAKE"; then
4429 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4448 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4449 if test -n "$ac_ct_GNATMAKE"; then
4450 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4451 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4453 echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6
4457 GNATMAKE=$ac_ct_GNATMAKE
4459 GNATMAKE="$ac_cv_prog_GNATMAKE"
4462 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4463 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4464 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 cat >conftest.adb <<EOF
4468 procedure conftest is begin null; end conftest;
4470 acx_cv_cc_gcc_supports_ada=no
4471 # There is a bug in old released versions of GCC which causes the
4472 # driver to exit successfully when the appropriate language module
4473 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4474 # Therefore we must check for the error message as well as an
4475 # unsuccessful exit.
4476 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4477 # given a .adb file, but produce no object file. So we must check
4478 # if an object file was really produced to guard against this.
4479 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4480 if test x"$errors" = x && test -f conftest.$ac_objext; then
4481 acx_cv_cc_gcc_supports_ada=yes
4485 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4486 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4488 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4494 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4495 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4496 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4502 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4503 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4506 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4509 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4510 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4513 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4519 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4520 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4521 do_compare="$gcc_cv_prog_cmp_skip"
4525 # See if we are building gcc with C++.
4526 # Check whether --enable-build-with-cxx or --disable-build-with-cxx was given.
4527 if test "${enable_build_with_cxx+set}" = set; then
4528 enableval="$enable_build_with_cxx"
4529 ENABLE_BUILD_WITH_CXX=$enableval
4531 ENABLE_BUILD_WITH_CXX=no
4534 # Check for GMP, MPFR and MPC
4535 gmplibs="-lmpfr -lgmp"
4542 # Specify a location for mpc
4543 # check for this first so it ends up on the link line before mpfr.
4545 # Check whether --with-mpc or --without-mpc was given.
4546 if test "${with_mpc+set}" = set; then
4551 # Check whether --with-mpc_include or --without-mpc_include was given.
4552 if test "${with_mpc_include+set}" = set; then
4553 withval="$with_mpc_include"
4557 # Check whether --with-mpc_lib or --without-mpc_lib was given.
4558 if test "${with_mpc_lib+set}" = set; then
4559 withval="$with_mpc_lib"
4563 if test "x$with_mpc" != x; then
4564 mpclibs="-L$with_mpc/lib -lmpc"
4565 mpcinc="-I$with_mpc/include $mpcinc"
4567 if test "x$with_mpc_include" != x; then
4568 mpcinc="-I$with_mpc_include $mpcinc"
4570 if test "x$with_mpc_lib" != x; then
4571 mpclibs="-L$with_mpc_lib -lmpc"
4573 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
4574 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
4575 mpcinc='-I$$s/mpc/src '"$mpcinc"
4576 # Do not test the mpc version. Assume that it is sufficient, since
4577 # it is in the source tree, and the library has not been built yet
4578 # but it would be included on the link line in the version check below
4579 # hence making the test fail.
4583 # Specify a location for mpfr
4584 # check for this first so it ends up on the link line before gmp.
4586 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4587 if test "${with_mpfr_dir+set}" = set; then
4588 withval="$with_mpfr_dir"
4589 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4590 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4591 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4592 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4593 { (exit 1); exit 1; }; }
4597 # Check whether --with-mpfr or --without-mpfr was given.
4598 if test "${with_mpfr+set}" = set; then
4599 withval="$with_mpfr"
4603 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4604 if test "${with_mpfr_include+set}" = set; then
4605 withval="$with_mpfr_include"
4609 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4610 if test "${with_mpfr_lib+set}" = set; then
4611 withval="$with_mpfr_lib"
4615 if test "x$with_mpfr" != x; then
4616 gmplibs="-L$with_mpfr/lib $gmplibs"
4617 gmpinc="-I$with_mpfr/include"
4619 if test "x$with_mpfr_include" != x; then
4620 gmpinc="-I$with_mpfr_include"
4622 if test "x$with_mpfr_lib" != x; then
4623 gmplibs="-L$with_mpfr_lib $gmplibs"
4625 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4626 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4627 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4628 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
4629 # Do not test the mpfr version. Assume that it is sufficient, since
4630 # it is in the source tree, and the library has not been built yet
4631 # but it would be included on the link line in the version check below
4632 # hence making the test fail.
4636 # Specify a location for gmp
4638 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4639 if test "${with_gmp_dir+set}" = set; then
4640 withval="$with_gmp_dir"
4641 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4642 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4643 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4644 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4645 { (exit 1); exit 1; }; }
4649 # Check whether --with-gmp or --without-gmp was given.
4650 if test "${with_gmp+set}" = set; then
4655 # Check whether --with-gmp_include or --without-gmp_include was given.
4656 if test "${with_gmp_include+set}" = set; then
4657 withval="$with_gmp_include"
4661 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4662 if test "${with_gmp_lib+set}" = set; then
4663 withval="$with_gmp_lib"
4668 if test "x$with_gmp" != x; then
4669 gmplibs="-L$with_gmp/lib $gmplibs"
4670 gmpinc="-I$with_gmp/include $gmpinc"
4672 if test "x$with_gmp_include" != x; then
4673 gmpinc="-I$with_gmp_include $gmpinc"
4675 if test "x$with_gmp_lib" != x; then
4676 gmplibs="-L$with_gmp_lib $gmplibs"
4678 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4679 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4680 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4681 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
4682 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
4683 # Do not test the gmp version. Assume that it is sufficient, since
4684 # it is in the source tree, and the library has not been built yet
4685 # but it would be included on the link line in the version check below
4686 # hence making the test fail.
4690 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4692 saved_CFLAGS="$CFLAGS"
4693 CFLAGS="$CFLAGS $gmpinc"
4694 # Check GMP actually works
4695 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4696 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4698 cat >conftest.$ac_ext <<_ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4709 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
4717 rm -f conftest.$ac_objext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719 (eval $ac_compile) 2>conftest.er1
4721 grep -v '^ *+' conftest.er1 >conftest.err
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 echo "$as_me:$LINENO: result: yes" >&5
4740 echo "${ECHO_T}yes" >&6
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4745 echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6; have_gmp=no
4748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4750 # If we have GMP, check the MPFR version.
4751 if test x"$have_gmp" = xyes; then
4752 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4753 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4754 cat >conftest.$ac_ext <<_ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4766 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4774 rm -f conftest.$ac_objext
4775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4776 (eval $ac_compile) 2>conftest.er1
4778 grep -v '^ *+' conftest.er1 >conftest.err
4780 cat conftest.err >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } &&
4783 { ac_try='test -z "$ac_c_werror_flag"
4784 || test ! -s conftest.err'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; } &&
4790 { ac_try='test -s conftest.$ac_objext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 cat >conftest.$ac_ext <<_ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4808 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4816 rm -f conftest.$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>conftest.er1
4820 grep -v '^ *+' conftest.er1 >conftest.err
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -z "$ac_c_werror_flag"
4826 || test ! -s conftest.err'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; } &&
4832 { ac_try='test -s conftest.$ac_objext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 echo "$as_me:$LINENO: result: yes" >&5
4839 echo "${ECHO_T}yes" >&6
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4844 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4845 echo "${ECHO_T}buggy but acceptable" >&6
4847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; have_gmp=no
4855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4858 # Check for the MPC header version.
4859 if test x"$have_mpc" != xyes ; then
4860 CFLAGS="$CFLAGS $mpcinc"
4861 echo "$as_me:$LINENO: checking for the correct version of mpc.h" >&5
4862 echo $ECHO_N "checking for the correct version of mpc.h... $ECHO_C" >&6
4863 cat >conftest.$ac_ext <<_ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4874 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
4882 rm -f conftest.$ac_objext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4886 grep -v '^ *+' conftest.er1 >conftest.err
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 echo "$as_me:$LINENO: result: yes" >&5
4905 echo "${ECHO_T}yes" >&6; have_mpc=maybe
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4910 echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
4913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4916 # Now check the MPFR library.
4917 if test x"$have_gmp" = xyes; then
4919 LIBS="$LIBS $gmplibs"
4920 echo "$as_me:$LINENO: checking for the correct version of the gmp/mpfr libraries" >&5
4921 echo $ECHO_N "checking for the correct version of the gmp/mpfr libraries... $ECHO_C" >&6
4922 cat >conftest.$ac_ext <<_ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4939 mpfr_atan2 (n, n, x, GMP_RNDN);
4940 mpfr_erfc (n, x, GMP_RNDN);
4941 mpfr_subnormalize (x, t, GMP_RNDN);
4947 rm -f conftest.$ac_objext conftest$ac_exeext
4948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4949 (eval $ac_link) 2>conftest.er1
4951 grep -v '^ *+' conftest.er1 >conftest.err
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -z "$ac_c_werror_flag"
4957 || test ! -s conftest.err'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; } &&
4963 { ac_try='test -s conftest$ac_exeext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4969 echo "$as_me:$LINENO: result: yes" >&5
4970 echo "${ECHO_T}yes" >&6
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4975 echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6; have_gmp=no
4978 rm -f conftest.err conftest.$ac_objext \
4979 conftest$ac_exeext conftest.$ac_ext
4983 if test x"$have_mpc" = xmaybe; then
4985 LIBS="$LIBS $mpclibs $gmplibs"
4986 echo "$as_me:$LINENO: checking for the correct version of the mpc library" >&5
4987 echo $ECHO_N "checking for the correct version of the mpc library... $ECHO_C" >&6
4988 cat >conftest.$ac_ext <<_ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
5001 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
5002 mpc_sin (n, n, MPC_RNDNN);
5003 mpc_cos (n, n, MPC_RNDNN);
5004 mpc_tan (n, n, MPC_RNDNN);
5005 mpc_sinh (n, n, MPC_RNDNN);
5006 mpc_cosh (n, n, MPC_RNDNN);
5007 mpc_tanh (n, n, MPC_RNDNN);
5008 mpc_exp (n, n, MPC_RNDNN);
5009 mpc_log (n, n, MPC_RNDNN);
5010 mpc_sqrt (n, n, MPC_RNDNN);
5011 mpc_proj (n, n, MPC_RNDNN);
5012 mpc_neg (n, n, MPC_RNDNN);
5013 mpc_sqr (n, n, MPC_RNDNN);
5020 rm -f conftest.$ac_objext conftest$ac_exeext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5022 (eval $ac_link) 2>conftest.er1
5024 grep -v '^ *+' conftest.er1 >conftest.err
5026 cat conftest.err >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try='test -z "$ac_c_werror_flag"
5030 || test ! -s conftest.err'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; } &&
5036 { ac_try='test -s conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 echo "$as_me:$LINENO: result: yes" >&5
5043 echo "${ECHO_T}yes" >&6; have_mpc=yes
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5048 echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
5051 rm -f conftest.err conftest.$ac_objext \
5052 conftest$ac_exeext conftest.$ac_ext
5056 CFLAGS="$saved_CFLAGS"
5058 if test x$have_gmp != xyes; then
5059 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
5060 Try the --with-gmp and/or --with-mpfr options to specify their locations.
5061 Copies of these libraries' source code can be found at their respective
5062 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5063 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5064 If you obtained GMP and/or MPFR from a vendor distribution package, make
5065 sure that you have installed both the libraries and the header files.
5066 They may be located in separate packages." >&5
5067 echo "$as_me: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
5068 Try the --with-gmp and/or --with-mpfr options to specify their locations.
5069 Copies of these libraries' source code can be found at their respective
5070 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5071 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5072 If you obtained GMP and/or MPFR from a vendor distribution package, make
5073 sure that you have installed both the libraries and the header files.
5074 They may be located in separate packages." >&2;}
5075 { (exit 1); exit 1; }; }
5079 if test x$have_mpc != xyes ; then
5084 gmpinc="$mpcinc $gmpinc"
5085 gmplibs="$mpclibs $gmplibs"
5087 # Flags needed for both GMP, MPFR and/or MPC.
5094 # Allow host libstdc++ to be specified for static linking with PPL.
5096 # Check whether --with-host-libstdcxx or --without-host-libstdcxx was given.
5097 if test "${with_host_libstdcxx+set}" = set; then
5098 withval="$with_host_libstdcxx"
5102 case $with_host_libstdcxx in
5104 { { echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
5105 echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
5106 { (exit 1); exit 1; }; }
5110 # Linker flags to use for stage1 or when not boostrapping.
5112 # Check whether --with-stage1-ldflags or --without-stage1-ldflags was given.
5113 if test "${with_stage1_ldflags+set}" = set; then
5114 withval="$with_stage1_ldflags"
5115 if test "$withval" = "no" -o "$withval" = "yes"; then
5118 stage1_ldflags=$withval
5125 # Libraries to use for stage1 or when not bootstrapping.
5127 # Check whether --with-stage1-libs or --without-stage1-libs was given.
5128 if test "${with_stage1_libs+set}" = set; then
5129 withval="$with_stage1_libs"
5130 if test "$withval" = "no" -o "$withval" = "yes"; then
5133 stage1_libs=$withval
5136 stage1_libs=$with_host_libstdcxx
5140 # Linker flags to use for stage2 and later builds.
5142 # Check whether --with-boot-ldflags or --without-boot-ldflags was given.
5143 if test "${with_boot_ldflags+set}" = set; then
5144 withval="$with_boot_ldflags"
5145 if test "$withval" = "no" -o "$withval" = "yes"; then
5148 poststage1_ldflags=$withval
5151 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5152 poststage1_ldflags=-static-libstdc++
5159 # Libraries to use for stage2 and later builds. This defaults to the
5160 # argument passed to --with-host-libstdcxx.
5162 # Check whether --with-boot-libs or --without-boot-libs was given.
5163 if test "${with_boot_libs+set}" = set; then
5164 withval="$with_boot_libs"
5165 if test "$withval" = "no" -o "$withval" = "yes"; then
5168 poststage1_libs=$withval
5171 poststage1_libs=$with_host_libstdcxx
5177 ppl_minor_version=10
5178 ppllibs=" -lppl_c -lppl -lgmpxx"
5182 # Check whether --with-ppl or --without-ppl was given.
5183 if test "${with_ppl+set}" = set; then
5190 # Check whether --with-ppl_include or --without-ppl_include was given.
5191 if test "${with_ppl_include+set}" = set; then
5192 withval="$with_ppl_include"
5196 # Check whether --with-ppl_lib or --without-ppl_lib was given.
5197 if test "${with_ppl_lib+set}" = set; then
5198 withval="$with_ppl_lib"
5207 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5208 pplinc="-I$with_ppl/include $pplinc"
5209 LIBS="$ppllibs $LIBS"
5212 if test "x$with_ppl_include" != x; then
5213 pplinc="-I$with_ppl_include $pplinc"
5215 if test "x$with_ppl_lib" != x; then
5216 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5217 LIBS="$ppllibs $LIBS"
5219 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5220 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
5221 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5222 LIBS="$ppllibs $LIBS"
5225 # Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
5226 if test "${enable_ppl_version_check+set}" = set; then
5227 enableval="$enable_ppl_version_check"
5228 ENABLE_PPL_CHECK=$enableval
5230 ENABLE_PPL_CHECK=yes
5233 if test "${ENABLE_PPL_CHECK}" = "yes"; then
5234 saved_CFLAGS="$CFLAGS"
5235 CFLAGS="$CFLAGS $pplinc $gmpinc"
5236 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5237 echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
5238 cat >conftest.$ac_ext <<_ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5249 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5257 rm -f conftest.$ac_objext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259 (eval $ac_compile) 2>conftest.er1
5261 grep -v '^ *+' conftest.er1 >conftest.err
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -z "$ac_c_werror_flag"
5267 || test ! -s conftest.err'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; } &&
5273 { ac_try='test -s conftest.$ac_objext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 echo "$as_me:$LINENO: result: yes" >&5
5280 echo "${ECHO_T}yes" >&6
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
5288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289 CFLAGS="$saved_CFLAGS"
5292 # Flags needed for PPL
5298 clooglibs=" -lcloog "
5299 clooginc=" -DCLOOG_PPL_BACKEND "
5302 # Check whether --with-cloog or --without-cloog was given.
5303 if test "${with_cloog+set}" = set; then
5304 withval="$with_cloog"
5310 # Check whether --with-cloog_include or --without-cloog_include was given.
5311 if test "${with_cloog_include+set}" = set; then
5312 withval="$with_cloog_include"
5316 # Check whether --with-cloog_lib or --without-cloog_lib was given.
5317 if test "${with_cloog_lib+set}" = set; then
5318 withval="$with_cloog_lib"
5328 clooglibs="-L$with_cloog/lib -lcloog"
5329 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5330 LIBS="$clooglibs $LIBS"
5333 if test "x$with_cloog_include" != x; then
5334 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5336 if test "x$with_cloog_lib" != x; then
5337 clooglibs="-L$with_cloog_lib -lcloog"
5338 LIBS="$clooglibs $LIBS"
5340 if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5341 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5342 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5343 LIBS="$clooglibs $LIBS"
5346 # Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
5347 if test "${enable_cloog_version_check+set}" = set; then
5348 enableval="$enable_cloog_version_check"
5349 ENABLE_CLOOG_CHECK=$enableval
5351 ENABLE_CLOOG_CHECK=yes
5354 if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5355 saved_CFLAGS="$CFLAGS"
5356 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5357 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
5358 echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
5359 cat >conftest.$ac_ext <<_ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 #include "cloog/cloog.h"
5370 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5378 rm -f conftest.$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>conftest.er1
5382 grep -v '^ *+' conftest.er1 >conftest.err
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -z "$ac_c_werror_flag"
5388 || test ! -s conftest.err'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; } &&
5394 { ac_try='test -s conftest.$ac_objext'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5400 echo "$as_me:$LINENO: result: yes" >&5
5401 echo "${ECHO_T}yes" >&6
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5406 echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5410 CFLAGS="$saved_CFLAGS"
5413 # Flags needed for CLOOG
5418 # By default, C is the only stage 1 language.
5419 stage1_languages=,c,
5421 # Target libraries that we bootstrap.
5422 bootstrap_target_libs=,target-libgcc,
5424 # Figure out what language subdirectories are present.
5425 # Look if the user specified --enable-languages="..."; if not, use
5426 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5428 # NB: embedded tabs in this IF block -- do not untabify
5429 if test -d ${srcdir}/gcc; then
5430 if test x"${enable_languages+set}" != xset; then
5431 if test x"${LANGUAGES+set}" = xset; then
5432 enable_languages="${LANGUAGES}"
5433 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5435 enable_languages=all
5438 if test x"${enable_languages}" = x ||
5439 test x"${enable_languages}" = xyes;
5441 echo configure.in: --enable-languages needs at least one language argument 1>&2
5445 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5447 # 'f95' is the old name for the 'fortran' language. We issue a warning
5448 # and make the substitution.
5449 case ,${enable_languages}, in
5451 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5452 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5456 # First scan to see if an enabled language requires some other language.
5457 # We assume that a given config-lang.in will list all the language
5458 # front ends it requires, even if some are required indirectly.
5459 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5460 case ${lang_frag} in
5462 # The odd quoting in the next line works around
5463 # an apparent bug in bash 1.12 on linux.
5464 ${srcdir}/gcc/[*]/config-lang.in) ;;
5466 # From the config-lang.in, get $language, $lang_requires
5470 for other in ${lang_requires} ; do
5471 case ,${enable_languages}, in
5475 echo " \`$other' language required by \`$language'; enabling" 1>&2
5476 enable_languages="${enable_languages},${other}"
5484 new_enable_languages=,c,
5485 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
5486 potential_languages=,c,
5488 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5489 case ${lang_frag} in
5491 # The odd quoting in the next line works around
5492 # an apparent bug in bash 1.12 on linux.
5493 ${srcdir}/gcc/[*]/config-lang.in) ;;
5495 # From the config-lang.in, get $language, $target_libs,
5496 # $lang_dirs, $boot_language, and $build_by_default
5502 build_by_default=yes
5504 if test x${language} = x; then
5505 echo "${lang_frag} doesn't set \$language." 1>&2
5509 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5513 case ,${enable_languages}, in
5515 # Language was explicitly selected; include it.
5519 # 'all' was selected, select it if it is a default language
5520 add_this_lang=${build_by_default}
5527 # Disable languages that need other directories if these aren't available.
5528 for i in $subdir_requires; do
5529 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5530 case ,${enable_languages}, in
5532 # Specifically requested language; tell them.
5533 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5534 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5535 { (exit 1); exit 1; }; }
5539 add_this_lang=unsupported
5544 # Disable Ada if no preexisting GNAT is available.
5545 case ,${enable_languages},:${language}:${have_gnat} in
5546 *,${language},*:ada:no)
5547 # Specifically requested language; tell them.
5548 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5549 echo "$as_me: error: GNAT is required to build $language" >&2;}
5550 { (exit 1); exit 1; }; }
5554 add_this_lang=unsupported
5558 # Disable a language that is unsupported by the target.
5559 case " $unsupported_languages " in
5561 add_this_lang=unsupported
5565 case $add_this_lang in
5567 # Remove language-dependent dirs.
5568 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5571 # Remove language-dependent dirs; still show language as supported.
5572 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5573 potential_languages="${potential_languages}${language},"
5576 new_enable_languages="${new_enable_languages}${language},"
5577 potential_languages="${potential_languages}${language},"
5578 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5579 case ${boot_language} in
5581 # Add to (comma-separated) list of stage 1 languages.
5582 stage1_languages="${stage1_languages}${language},"
5583 # We need to bootstrap any supporting libraries.
5584 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
5593 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
5594 if test "${enable_stage1_languages+set}" = set; then
5595 enableval="$enable_stage1_languages"
5596 case ,${enable_stage1_languages}, in
5598 # Set it to something that will have no effect in the loop below
5599 enable_stage1_languages=c ;;
5601 enable_stage1_languages=`echo $new_enable_languages | \
5602 sed -e "s/^,//" -e "s/,$//" ` ;;
5604 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5605 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5608 # Add "good" languages from enable_stage1_languages to stage1_languages,
5609 # while "bad" languages go in missing_languages. Leave no duplicates.
5610 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5611 case $potential_languages in
5613 case $stage1_languages in
5615 *) stage1_languages="$stage1_languages$i," ;;
5618 case $missing_languages in
5620 *) missing_languages="$missing_languages$i," ;;
5626 # Remove leading/trailing commas that were added for simplicity
5627 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
5628 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
5629 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5630 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5632 if test "x$missing_languages" != x; then
5633 { { echo "$as_me:$LINENO: error:
5634 The following requested languages could not be built: ${missing_languages}
5635 Supported languages are: ${potential_languages}" >&5
5636 echo "$as_me: error:
5637 The following requested languages could not be built: ${missing_languages}
5638 Supported languages are: ${potential_languages}" >&2;}
5639 { (exit 1); exit 1; }; }
5641 if test "x$new_enable_languages" != "x$enable_languages"; then
5642 echo The following languages will be built: ${new_enable_languages}
5643 enable_languages="$new_enable_languages"
5647 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5650 # Handle --disable-<component> generically.
5651 for dir in $configdirs $build_configdirs $target_configdirs ; do
5652 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5653 varname=`echo $dirname | sed -e s/+/_/g`
5654 if eval test x\${enable_${varname}} "=" xno ; then
5655 noconfigdirs="$noconfigdirs $dir"
5659 # Check for Boehm's garbage collector
5660 # Check whether --enable-objc-gc or --disable-objc-gc was given.
5661 if test "${enable_objc_gc+set}" = set; then
5662 enableval="$enable_objc_gc"
5663 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5664 *,objc,*:*:yes:*target-boehm-gc*)
5665 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5666 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5667 { (exit 1); exit 1; }; }
5672 # Make sure we only build Boehm's garbage collector if required.
5673 case ,${enable_languages},:${enable_objc_gc} in
5675 # Keep target-boehm-gc if requested for Objective-C.
5678 # Otherwise remove target-boehm-gc depending on target-libjava.
5679 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5680 noconfigdirs="$noconfigdirs target-boehm-gc"
5685 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5686 # $build_configdirs and $target_configdirs.
5687 # If we have the source for $noconfigdirs entries, add them to $notsupp.
5690 for dir in . $skipdirs $noconfigdirs ; do
5691 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5692 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5693 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5694 if test -r $srcdir/$dirname/configure ; then
5695 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5698 notsupp="$notsupp $dir"
5702 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5703 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5704 if test -r $srcdir/$dirname/configure ; then
5705 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5708 notsupp="$notsupp $dir"
5712 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5713 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5714 if test -r $srcdir/$dirname/configure ; then
5715 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5718 notsupp="$notsupp $dir"
5724 # Sometimes the tools are distributed with libiberty but with no other
5725 # libraries. In that case, we don't want to build target-libiberty.
5726 # Don't let libgcc imply libiberty either.
5727 if test -n "${target_configdirs}" ; then
5730 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5731 if test "$i" = "libgcc"; then
5732 libgcc=target-libgcc
5733 elif test "$i" != "libiberty" ; then
5734 if test -r $srcdir/$i/configure ; then
5740 if test -z "${others}" ; then
5741 target_configdirs=$libgcc
5745 # Quietly strip out all directories which aren't configurable in this tree.
5746 # This relies on all configurable subdirectories being autoconfiscated, which
5748 build_configdirs_all="$build_configdirs"
5750 for i in ${build_configdirs_all} ; do
5751 j=`echo $i | sed -e s/build-//g`
5752 if test -f ${srcdir}/$j/configure ; then
5753 build_configdirs="${build_configdirs} $i"
5757 configdirs_all="$configdirs"
5759 for i in ${configdirs_all} ; do
5760 if test -f ${srcdir}/$i/configure ; then
5761 configdirs="${configdirs} $i"
5765 target_configdirs_all="$target_configdirs"
5767 for i in ${target_configdirs_all} ; do
5768 j=`echo $i | sed -e s/target-//g`
5769 if test -f ${srcdir}/$j/configure ; then
5770 target_configdirs="${target_configdirs} $i"
5774 # Produce a warning message for the subdirs we can't configure.
5775 # This isn't especially interesting in the Cygnus tree, but in the individual
5776 # FSF releases, it's important to let people know when their machine isn't
5777 # supported by the one or two programs in a package.
5779 if test -n "${notsupp}" && test -z "${norecursion}" ; then
5780 # If $appdirs is non-empty, at least one of those directories must still
5781 # be configured, or we error out. (E.g., if the gas release supports a
5782 # specified target in some subdirs but not the gas subdir, we shouldn't
5783 # pretend that all is well.)
5784 if test -n "$appdirs" ; then
5785 for dir in $appdirs ; do
5786 if test -r $dir/Makefile.in ; then
5787 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5791 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5797 if test -n "$appdirs" ; then
5798 echo "*** This configuration is not supported by this package." 1>&2
5802 # Okay, some application will build, or we don't care to check. Still
5803 # notify of subdirs not getting built.
5804 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5805 echo " ${notsupp}" 1>&2
5806 echo " (Any other directories should still work fine.)" 1>&2
5814 # To find our prefix, in gcc_cv_tool_prefix.
5816 # The user is always right.
5817 if test "${PATH_SEPARATOR+set}" != set; then
5818 echo "#! /bin/sh" >conf$$.sh
5819 echo "exit 0" >>conf$$.sh
5821 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5831 if test "x$exec_prefix" = xNONE; then
5832 if test "x$prefix" = xNONE; then
5833 gcc_cv_tool_prefix=$ac_default_prefix
5835 gcc_cv_tool_prefix=$prefix
5838 gcc_cv_tool_prefix=$exec_prefix
5841 # If there is no compiler in the tree, use the PATH only. In any
5842 # case, if there is no compiler in the tree nobody should use
5843 # AS_FOR_TARGET and LD_FOR_TARGET.
5844 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5845 gcc_version=`cat $srcdir/gcc/BASE-VER`
5846 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5847 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5848 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5849 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5850 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5851 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5856 if test x$build = x$target && test -n "$md_exec_prefix"; then
5857 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5865 # Check whether --with-build-sysroot or --without-build-sysroot was given.
5866 if test "${with_build_sysroot+set}" = set; then
5867 withval="$with_build_sysroot"
5868 if test x"$withval" != x ; then
5869 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5872 SYSROOT_CFLAGS_FOR_TARGET=
5877 # Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5878 if test "${with_debug_prefix_map+set}" = set; then
5879 withval="$with_debug_prefix_map"
5880 if test x"$withval" != x; then
5881 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5882 for debug_map in $withval; do
5883 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5887 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5891 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5892 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5893 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5894 # We want to ensure that TARGET libraries (which we know are built with
5895 # gcc) are built with "-O2 -g", so include those options when setting
5896 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5897 if test "x$CFLAGS_FOR_TARGET" = x; then
5898 CFLAGS_FOR_TARGET=$CFLAGS
5901 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5904 *" -g "* | *" -g3 "*) ;;
5905 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5910 if test "x$CXXFLAGS_FOR_TARGET" = x; then
5911 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5912 case " $CXXFLAGS " in
5914 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5916 case " $CXXFLAGS " in
5917 *" -g "* | *" -g3 "*) ;;
5918 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5923 # Handle --with-headers=XXX. If the value is not "yes", the contents of
5924 # the named directory are copied to $(tooldir)/sys-include.
5925 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5926 if test x${is_cross_compiler} = xno ; then
5927 echo 1>&2 '***' --with-headers is only supported when cross compiling
5930 if test x"${with_headers}" != xyes ; then
5931 x=${gcc_cv_tool_prefix}
5932 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5936 # Handle --with-libs=XXX. If the value is not "yes", the contents of
5937 # the name directories are copied to $(tooldir)/lib. Multiple directories
5939 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5940 if test x${is_cross_compiler} = xno ; then
5941 echo 1>&2 '***' --with-libs is only supported when cross compiling
5944 if test x"${with_libs}" != xyes ; then
5945 # Copy the libraries in reverse order, so that files in the first named
5946 # library override files in subsequent libraries.
5947 x=${gcc_cv_tool_prefix}
5948 for l in ${with_libs}; do
5949 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5954 # Set with_gnu_as and with_gnu_ld as appropriate.
5956 # This is done by determining whether or not the appropriate directory
5957 # is available, and by checking whether or not specific configurations
5958 # have requested that this magic not happen.
5960 # The command line options always override the explicit settings in
5961 # configure.in, and the settings in configure.in override this magic.
5963 # If the default for a toolchain is to use GNU as and ld, and you don't
5964 # want to do that, then you should use the --without-gnu-as and
5965 # --without-gnu-ld options for the configure script.
5967 if test x${use_gnu_as} = x &&
5968 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5970 extra_host_args="$extra_host_args --with-gnu-as"
5973 if test x${use_gnu_ld} = x &&
5974 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
5976 extra_host_args="$extra_host_args --with-gnu-ld"
5979 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5980 # can detect this case.
5982 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5984 extra_host_args="$extra_host_args --with-newlib"
5987 # Handle ${copy_dirs}
5988 set fnord ${copy_dirs}
5990 while test $# != 0 ; do
5991 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5994 echo Copying $1 to $2
5996 # Use the install script to create the directory and all required
5997 # parent directories.
5998 if test -d $2 ; then
6002 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6005 # Copy the directory, assuming we have tar.
6006 # FIXME: Should we use B in the second tar? Not all systems support it.
6007 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6009 # It is the responsibility of the user to correctly adjust all
6010 # symlinks. If somebody can figure out how to handle them correctly
6011 # here, feel free to add the code.
6018 # Determine a target-dependent exec_prefix that the installed
6019 # gcc will search in. Keep this list sorted by triplet, with
6020 # the *-*-osname triplets last.
6024 md_exec_prefix=/gnu/lib/gcc-lib
6026 i[34567]86-pc-msdosdjgpp*)
6027 md_exec_prefix=/dev/env/DJDIR/bin
6029 i[34567]86-*-sco3.2v5*)
6030 if test $with_gnu_as = yes; then
6031 md_exec_prefix=/usr/gnu/bin
6033 md_exec_prefix=/usr/ccs/bin/elf
6038 powerpc-*-chorusos* | \
6039 powerpc*-*-eabi* | \
6040 powerpc*-*-sysv* | \
6041 powerpc*-*-kaos* | \
6043 md_exec_prefix=/usr/ccs/bin
6048 md_exec_prefix=/usr/ccs/bin
6063 md_exec_prefix=/usr/ccs/bin
6067 extra_arflags_for_target=
6068 extra_nmflags_for_target=
6069 extra_ranlibflags_for_target=
6070 target_makefile_frag=/dev/null
6073 target_makefile_frag="config/mt-mep"
6076 target_makefile_frag="config/mt-spu"
6079 target_makefile_frag="config/mt-sde"
6081 mipsisa*-*-elfoabi*)
6082 target_makefile_frag="config/mt-mips-elfoabi"
6084 mips*-*-*linux* | mips*-*-gnu*)
6085 target_makefile_frag="config/mt-mips-gnu"
6088 target_makefile_frag="config/mt-netware"
6090 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6091 target_makefile_frag="config/mt-gnu"
6093 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6094 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6095 # commands to handle both 32-bit and 64-bit objects. These flags are
6096 # harmless if we're using GNU nm or ar.
6097 extra_arflags_for_target=" -X32_64"
6098 extra_nmflags_for_target=" -B -X32_64"
6101 # ranlib from Darwin requires the -c flag to look at common symbols.
6102 extra_ranlibflags_for_target=" -c"
6104 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6105 target_makefile_frag="config/mt-wince"
6109 alphaieee_frag=/dev/null
6112 # This just makes sure to use the -mieee option to build target libs.
6113 # This should probably be set individually by each library.
6114 alphaieee_frag="config/mt-alphaieee"
6118 # If --enable-target-optspace always use -Os instead of -O2 to build
6119 # the target libraries, similarly if it is not specified, use -Os
6120 # on selected platforms.
6121 ospace_frag=/dev/null
6122 case "${enable_target_optspace}:${target}" in
6124 ospace_frag="config/mt-ospace"
6127 ospace_frag="config/mt-d30v"
6129 :m32r-* | :d10v-* | :fr30-*)
6130 ospace_frag="config/mt-ospace"
6135 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6139 # Default to using --with-stabs for certain targets.
6140 if test x${with_stabs} = x ; then
6144 mips*-*-* | alpha*-*-osf*)
6146 extra_host_args="${extra_host_args} --with-stabs"
6151 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6152 # them automatically.
6155 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6159 # Some systems (e.g., one of the i386-aix systems the gas testers are
6160 # using) don't handle "\$" correctly, so don't use it here.
6161 tooldir='${exec_prefix}'/${target_noncanonical}
6162 build_tooldir=${tooldir}
6164 # Create a .gdbinit file which runs the one in srcdir
6165 # and tells GDB to look there for source files.
6167 if test -r ${srcdir}/.gdbinit ; then
6170 *) cat > ./.gdbinit <<EOF
6174 source ${srcdir}/.gdbinit
6180 # Make sure that the compiler is able to generate an executable. If it
6181 # can't, we are probably in trouble. We don't care whether we can run the
6182 # executable--we might be using a cross compiler--we only care whether it
6183 # can be created. At this point the main configure script has set CC.
6185 echo "int main () { return 0; }" > conftest.c
6186 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6187 if test $? = 0 ; then
6188 if test -s conftest || test -s conftest.exe ; then
6194 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6195 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6202 # The Solaris /usr/ucb/cc compiler does not appear to work.
6204 sparc-sun-solaris2*)
6205 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6206 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6208 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6209 if test -d /opt/cygnus/bin ; then
6210 if test "$could_use" = "" ; then
6211 could_use="/opt/cygnus/bin"
6213 could_use="$could_use or /opt/cygnus/bin"
6216 if test "$could_use" = "" ; then
6217 echo "Warning: compilation may fail because you're using"
6218 echo "/usr/ucb/cc. You should change your PATH or CC "
6219 echo "variable and rerun configure."
6221 echo "Warning: compilation may fail because you're using"
6222 echo "/usr/ucb/cc, when you should use the C compiler from"
6223 echo "$could_use. You should change your"
6224 echo "PATH or CC variable and rerun configure."
6230 # Decide which environment variable is used to find dynamic libraries.
6232 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6233 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6234 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6235 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6238 # On systems where the dynamic library environment variable is PATH,
6239 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6240 # built executables to PATH.
6241 if test "$RPATH_ENVVAR" = PATH; then
6242 GCC_SHLIB_SUBDIR=/shlib
6247 # Record target_configdirs and the configure arguments for target and
6248 # build configuration in Makefile.
6249 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6250 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6252 # Determine whether gdb needs tk/tcl or not.
6253 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6254 # and in that case we want gdb to be built without tk. Ugh!
6255 # In fact I believe gdb is the *only* package directly dependent on tk,
6256 # so we should be able to put the 'maybe's in unconditionally and
6257 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6258 # 100% sure that that's safe though.
6260 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6261 case "$enable_gdbtk" in
6265 GDB_TK="${gdb_tk}" ;;
6267 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6268 # distro. Eventually someone will fix this and move Insight, nee
6269 # gdbtk to a separate directory.
6270 if test -d ${srcdir}/gdb/gdbtk ; then
6277 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6278 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6280 # Strip out unwanted targets.
6282 # While at that, we remove Makefiles if we were started for recursive
6283 # configuration, so that the top-level Makefile reconfigures them,
6284 # like we used to do when configure itself was recursive.
6286 # Loop over modules. $extrasub must be used with care, limiting as
6287 # much as possible the usage of range addresses. That's because autoconf
6288 # splits the sed script to overcome limits in the number of commands,
6289 # and relying on carefully-timed sed passes may turn out to be very hard
6290 # to maintain later. In this particular case, you just have to be careful
6291 # not to nest @if/@endif pairs, because configure will not warn you at all.
6293 # Check whether --enable-bootstrap or --disable-bootstrap was given.
6294 if test "${enable_bootstrap+set}" = set; then
6295 enableval="$enable_bootstrap"
6298 enable_bootstrap=default
6301 # Issue errors and warnings for invalid/strange bootstrap combinations.
6302 case "$configdirs" in
6303 *gcc*) have_compiler=yes ;;
6304 *) have_compiler=no ;;
6307 case "$have_compiler:$host:$target:$enable_bootstrap" in
6310 # Default behavior. Enable bootstrap if we have a compiler
6311 # and we are in a native configuration.
6312 yes:$build:$build:default)
6313 enable_bootstrap=yes ;;
6316 enable_bootstrap=no ;;
6318 # We have a compiler and we are in a native configuration, bootstrap is ok
6319 yes:$build:$build:yes)
6322 # Other configurations, but we have a compiler. Assume the user knows
6325 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
6326 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6329 # No compiler: if they passed --enable-bootstrap explicitly, fail
6331 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
6332 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
6333 { (exit 1); exit 1; }; } ;;
6335 # Fail if wrong command line
6337 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
6338 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
6339 { (exit 1); exit 1; }; }
6343 # Adjust the toplevel makefile according to whether bootstrap was selected.
6344 case "$enable_bootstrap" in
6346 bootstrap_suffix=bootstrap ;;
6348 bootstrap_suffix=no-bootstrap ;;
6351 for module in ${build_configdirs} ; do
6352 if test -z "${no_recursion}" \
6353 && test -f ${build_subdir}/${module}/Makefile; then
6354 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6355 rm -f ${build_subdir}/${module}/Makefile
6358 /^@if build-$module\$/d
6359 /^@endif build-$module\$/d
6360 /^@if build-$module-$bootstrap_suffix\$/d
6361 /^@endif build-$module-$bootstrap_suffix\$/d"
6363 for module in ${configdirs} ; do
6364 if test -z "${no_recursion}"; then
6365 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6366 if test -f ${file}; then
6367 echo 1>&2 "*** removing ${file} to force reconfigure"
6374 /^@endif $module\$/d
6375 /^@if $module-$bootstrap_suffix\$/d
6376 /^@endif $module-$bootstrap_suffix\$/d"
6378 for module in ${target_configdirs} ; do
6379 if test -z "${no_recursion}" \
6380 && test -f ${target_subdir}/${module}/Makefile; then
6381 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6382 rm -f ${target_subdir}/${module}/Makefile
6385 # We only bootstrap target libraries listed in bootstrap_target_libs.
6386 case $bootstrap_target_libs in
6387 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6388 *) target_bootstrap_suffix=no-bootstrap ;;
6392 /^@if target-$module\$/d
6393 /^@endif target-$module\$/d
6394 /^@if target-$module-$target_bootstrap_suffix\$/d
6395 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6399 /^@if /,/^@endif /d"
6401 # Create the serialization dependencies. This uses a temporary file.
6403 # Check whether --enable-serial-configure or --disable-serial-configure was given.
6404 if test "${enable_serial_configure+set}" = set; then
6405 enableval="$enable_serial_configure"
6409 case ${enable_serial_configure} in
6411 enable_serial_build_configure=yes
6412 enable_serial_host_configure=yes
6413 enable_serial_target_configure=yes
6417 # These force 'configure's to be done one at a time, to avoid problems
6418 # with contention over a shared config.cache.
6420 echo '# serdep.tmp' > serdep.tmp
6422 test "x${enable_serial_build_configure}" = xyes &&
6423 for item in ${build_configdirs} ; do
6426 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6431 test "x${enable_serial_host_configure}" = xyes &&
6432 for item in ${configdirs} ; do
6435 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6440 test "x${enable_serial_target_configure}" = xyes &&
6441 for item in ${target_configdirs} ; do
6444 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6448 serialization_dependencies=serdep.tmp
6451 # Base args. Strip norecursion, cache-file, srcdir, host, build,
6452 # target, nonopt, and variable assignments. These are the ones we
6453 # might not want to pass down to subconfigures. Also strip
6454 # program-prefix, program-suffix, and program-transform-name, so that
6455 # we can pass down a consistent program-transform-name.
6459 eval "set -- $ac_configure_args"
6462 if test X"$skip_next" = X"yes"; then
6466 if test X"$keep_next" = X"yes"; then
6469 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6471 baseargs="$baseargs '$ac_arg'"
6476 # Handle separated arguments. Based on the logic generated by
6479 *=* | --config-cache | -C | -disable-* | --disable-* \
6480 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6481 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6482 | -with-* | --with-* | -without-* | --without-* | --x)
6508 -program-prefix* | \
6509 -program-suffix* | \
6510 -program-transform-name* )
6511 skip_next=$separate_arg
6515 # An option. Add it.
6518 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6520 baseargs="$baseargs '$ac_arg'"
6521 keep_next=$separate_arg
6524 # Either a variable assignment, or a nonopt (triplet). Don't
6525 # pass it down; let the Makefile handle this.
6530 # Remove the initial space we just introduced and, as these will be
6531 # expanded by make, quote '$'.
6532 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
6534 # Add in --program-transform-name, after --program-prefix and
6535 # --program-suffix have been applied to it. Autoconf has already
6536 # doubled dollar signs and backslashes in program_transform_name; we want
6537 # the backslashes un-doubled, and then the entire thing wrapped in single
6538 # quotes, because this will be expanded first by make and then by the shell.
6539 # Also, because we want to override the logic in subdir configure scripts to
6540 # choose program_transform_name, replace any s,x,x, with s,y,y,.
6541 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6542 ${program_transform_name}
6544 gcc_transform_name=`cat conftestsed.out`
6545 rm -f conftestsed.out
6546 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
6547 if test "$silent" = yes; then
6548 baseargs="$baseargs --silent"
6550 baseargs="$baseargs --disable-option-checking"
6552 # For the build-side libraries, we just need to pretend we're native,
6553 # and not use the same cache file. Multilibs are neither needed nor
6555 build_configargs="--cache-file=../config.cache ${baseargs}"
6557 # For host modules, accept cache file option, or specification as blank.
6558 case "${cache_file}" in
6560 cache_file_option="" ;;
6561 /* | [A-Za-z]:[\\/]* ) # absolute path
6562 cache_file_option="--cache-file=${cache_file}" ;;
6564 cache_file_option="--cache-file=../${cache_file}" ;;
6567 # Host dirs don't like to share a cache file either, horribly enough.
6568 # This seems to be due to autoconf 2.5x stupidity.
6569 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
6571 target_configargs=${baseargs}
6573 # Passing a --with-cross-host argument lets the target libraries know
6574 # whether they are being built with a cross-compiler or being built
6575 # native. However, it would be better to use other mechanisms to make the
6576 # sorts of decisions they want to make on this basis. Please consider
6577 # this option to be deprecated. FIXME.
6578 if test x${is_cross_compiler} = xyes ; then
6579 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
6582 # Default to --enable-multilib.
6583 if test x${enable_multilib} = x ; then
6584 target_configargs="--enable-multilib ${target_configargs}"
6587 # Pass --with-newlib if appropriate. Note that target_configdirs has
6588 # changed from the earlier setting of with_newlib.
6589 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6590 target_configargs="--with-newlib ${target_configargs}"
6593 # Different target subdirs use different values of certain variables
6594 # (notably CXX). Worse, multilibs use *lots* of different values.
6595 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6596 # it doesn't automatically accept command-line overrides of them.
6597 # This means it's not safe for target subdirs to share a cache file,
6598 # which is disgusting, but there you have it. Hopefully this can be
6599 # fixed in future. It's still worthwhile to use a cache file for each
6600 # directory. I think.
6602 # Pass the appropriate --build, --host, --target and --cache-file arguments.
6603 # We need to pass --target, as newer autoconf's requires consistency
6604 # for target_alias and gcc doesn't manage it consistently.
6605 target_configargs="--cache-file=./config.cache ${target_configargs}"
6608 case " $target_configdirs " in
6610 case " $target_configargs " in
6611 *" --with-newlib "*)
6614 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' ;;
6617 # If we're not building GCC, don't discard standard headers.
6618 if test -d ${srcdir}/gcc; then
6619 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6621 if test "${build}" != "${host}"; then
6622 # On Canadian crosses, CC_FOR_TARGET will have already been set
6623 # by `configure', so we won't have an opportunity to add -Bgcc/
6624 # to it. This is right: we don't want to search that directory
6625 # for binaries, but we want the header files in there, so add
6627 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
6629 # Someone might think of using the pre-installed headers on
6630 # Canadian crosses, in case the installed compiler is not fully
6631 # compatible with the compiler being built. In this case, it
6632 # would be better to flag an error than risking having
6633 # incompatible object files being constructed. We can't
6634 # guarantee that an error will be flagged, but let's hope the
6635 # compiler will do it, when presented with incompatible header
6640 case "${target}-${is_cross_compiler}" in
6641 i[3456789]86-*-linux*-no)
6642 # Here host == target, so we don't need to build gcc,
6643 # so we don't want to discard standard headers.
6644 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6647 # If we're building newlib, use its generic headers last, but search
6648 # for any libc-related directories first (so make it the last -B
6650 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6652 # If we're building libgloss, find the startup file, simulator library
6653 # and linker script.
6654 case " $target_configdirs " in
6656 # Look for startup file, simulator library and maybe linker script.
6657 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6658 # Look for libnosys.a in case the target needs it.
6659 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6660 # Most targets have the linker script in the source directory.
6661 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6672 # Can't be handled as Cygwin above since Mingw does not use newlib.
6673 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' ;;
6676 # Allow the user to override the flags for
6677 # our build compiler if desired.
6678 if test x"${build}" = x"${host}" ; then
6679 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6680 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6681 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6684 # On Canadian crosses, we'll be searching the right directories for
6685 # the previously-installed cross compiler, so don't bother to add
6686 # flags for directories within the install tree of the compiler
6687 # being built; programs in there won't even run.
6688 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6689 # Search for pre-installed headers if nothing else fits.
6690 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6693 if test "x${use_gnu_ld}" = x &&
6694 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6695 # Arrange for us to find uninstalled linker scripts.
6696 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6699 # Search for other target-specific linker scripts and such.
6702 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6706 # Makefile fragments.
6707 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6709 eval fragval=\$$frag
6710 if test $fragval != /dev/null; then
6711 eval $frag=${srcdir}/$fragval
6719 # Miscellanea: directories, flags, etc.
6728 # Build module lists & subconfigure args.
6732 # Host module lists & subconfigure args.
6736 # Target module lists & subconfigure args.
6758 # Generate default definitions for YACC, M4, LEX and other programs that run
6759 # on the build machine. These are used if the Makefile can't locate these
6760 # programs in objdir.
6761 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6763 for ac_prog in 'bison -y' byacc yacc
6765 # Extract the first word of "$ac_prog", so it can be a program name with args.
6766 set dummy $ac_prog; ac_word=$2
6767 echo "$as_me:$LINENO: checking for $ac_word" >&5
6768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6769 if test "${ac_cv_prog_YACC+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 if test -n "$YACC"; then
6773 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_YACC="$ac_prog"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 YACC=$ac_cv_prog_YACC
6792 if test -n "$YACC"; then
6793 echo "$as_me:$LINENO: result: $YACC" >&5
6794 echo "${ECHO_T}$YACC" >&6
6796 echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6
6800 test -n "$YACC" && break
6802 test -n "$YACC" || YACC="$MISSING bison -y"
6804 case " $build_configdirs " in
6805 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6806 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6809 for ac_prog in bison
6811 # Extract the first word of "$ac_prog", so it can be a program name with args.
6812 set dummy $ac_prog; ac_word=$2
6813 echo "$as_me:$LINENO: checking for $ac_word" >&5
6814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6815 if test "${ac_cv_prog_BISON+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 if test -n "$BISON"; then
6819 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_BISON="$ac_prog"
6829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 BISON=$ac_cv_prog_BISON
6838 if test -n "$BISON"; then
6839 echo "$as_me:$LINENO: result: $BISON" >&5
6840 echo "${ECHO_T}$BISON" >&6
6842 echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6
6846 test -n "$BISON" && break
6848 test -n "$BISON" || BISON="$MISSING bison"
6850 case " $build_configdirs " in
6851 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6854 for ac_prog in gm4 gnum4 m4
6856 # Extract the first word of "$ac_prog", so it can be a program name with args.
6857 set dummy $ac_prog; ac_word=$2
6858 echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6860 if test "${ac_cv_prog_M4+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 if test -n "$M4"; then
6864 ac_cv_prog_M4="$M4" # Let the user override the test.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873 ac_cv_prog_M4="$ac_prog"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 if test -n "$M4"; then
6884 echo "$as_me:$LINENO: result: $M4" >&5
6885 echo "${ECHO_T}$M4" >&6
6887 echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6
6891 test -n "$M4" && break
6893 test -n "$M4" || M4="$MISSING m4"
6895 case " $build_configdirs " in
6896 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6899 for ac_prog in flex lex
6901 # Extract the first word of "$ac_prog", so it can be a program name with args.
6902 set dummy $ac_prog; ac_word=$2
6903 echo "$as_me:$LINENO: checking for $ac_word" >&5
6904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6905 if test "${ac_cv_prog_LEX+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 if test -n "$LEX"; then
6909 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_LEX="$ac_prog"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 if test -n "$LEX"; then
6929 echo "$as_me:$LINENO: result: $LEX" >&5
6930 echo "${ECHO_T}$LEX" >&6
6932 echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6
6936 test -n "$LEX" && break
6938 test -n "$LEX" || LEX="$MISSING flex"
6940 case " $build_configdirs " in
6941 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6942 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6947 # Extract the first word of "$ac_prog", so it can be a program name with args.
6948 set dummy $ac_prog; ac_word=$2
6949 echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6951 if test "${ac_cv_prog_FLEX+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 if test -n "$FLEX"; then
6955 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964 ac_cv_prog_FLEX="$ac_prog"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 FLEX=$ac_cv_prog_FLEX
6974 if test -n "$FLEX"; then
6975 echo "$as_me:$LINENO: result: $FLEX" >&5
6976 echo "${ECHO_T}$FLEX" >&6
6978 echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6
6982 test -n "$FLEX" && break
6984 test -n "$FLEX" || FLEX="$MISSING flex"
6986 case " $build_configdirs " in
6987 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6990 for ac_prog in makeinfo
6992 # Extract the first word of "$ac_prog", so it can be a program name with args.
6993 set dummy $ac_prog; ac_word=$2
6994 echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6996 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 if test -n "$MAKEINFO"; then
7000 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_MAKEINFO="$ac_prog"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 MAKEINFO=$ac_cv_prog_MAKEINFO
7019 if test -n "$MAKEINFO"; then
7020 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7021 echo "${ECHO_T}$MAKEINFO" >&6
7023 echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6
7027 test -n "$MAKEINFO" && break
7029 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7031 case " $build_configdirs " in
7032 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7035 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7036 # higher, else we use the "missing" dummy.
7037 if ${MAKEINFO} --version \
7038 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7041 MAKEINFO="$MISSING makeinfo"
7047 # FIXME: expect and dejagnu may become build tools?
7049 for ac_prog in expect
7051 # Extract the first word of "$ac_prog", so it can be a program name with args.
7052 set dummy $ac_prog; ac_word=$2
7053 echo "$as_me:$LINENO: checking for $ac_word" >&5
7054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7055 if test "${ac_cv_prog_EXPECT+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 if test -n "$EXPECT"; then
7059 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7068 ac_cv_prog_EXPECT="$ac_prog"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 EXPECT=$ac_cv_prog_EXPECT
7078 if test -n "$EXPECT"; then
7079 echo "$as_me:$LINENO: result: $EXPECT" >&5
7080 echo "${ECHO_T}$EXPECT" >&6
7082 echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6
7086 test -n "$EXPECT" && break
7088 test -n "$EXPECT" || EXPECT="expect"
7090 case " $configdirs " in
7092 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7096 for ac_prog in runtest
7098 # Extract the first word of "$ac_prog", so it can be a program name with args.
7099 set dummy $ac_prog; ac_word=$2
7100 echo "$as_me:$LINENO: checking for $ac_word" >&5
7101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7102 if test "${ac_cv_prog_RUNTEST+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 if test -n "$RUNTEST"; then
7106 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_RUNTEST="$ac_prog"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 RUNTEST=$ac_cv_prog_RUNTEST
7125 if test -n "$RUNTEST"; then
7126 echo "$as_me:$LINENO: result: $RUNTEST" >&5
7127 echo "${ECHO_T}$RUNTEST" >&6
7129 echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6
7133 test -n "$RUNTEST" && break
7135 test -n "$RUNTEST" || RUNTEST="runtest"
7137 case " $configdirs " in
7139 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7146 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7147 ncn_target_tool_prefix=
7148 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7152 if test -n "$AR"; then
7154 elif test -n "$ac_cv_prog_AR"; then
7158 if test -n "$ac_cv_prog_AR"; then
7159 for ncn_progname in ar; do
7160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7161 set dummy ${ncn_progname}; ac_word=$2
7162 echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7164 if test "${ac_cv_prog_AR+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 if test -n "$AR"; then
7168 ac_cv_prog_AR="$AR" # Let the user override the test.
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_AR="${ncn_progname}"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 if test -n "$AR"; then
7188 echo "$as_me:$LINENO: result: $AR" >&5
7189 echo "${ECHO_T}$AR" >&6
7191 echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7198 for ncn_progname in ar; do
7199 if test -n "$ncn_tool_prefix"; then
7200 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7201 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7202 echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7204 if test "${ac_cv_prog_AR+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 if test -n "$AR"; then
7208 ac_cv_prog_AR="$AR" # Let the user override the test.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 if test -n "$AR"; then
7228 echo "$as_me:$LINENO: result: $AR" >&5
7229 echo "${ECHO_T}$AR" >&6
7231 echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6
7236 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7238 set dummy ${ncn_progname}; ac_word=$2
7239 echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7241 if test "${ac_cv_prog_AR+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 if test -n "$AR"; then
7245 ac_cv_prog_AR="$AR" # Let the user override the test.
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254 ac_cv_prog_AR="${ncn_progname}"
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 if test -n "$AR"; then
7265 echo "$as_me:$LINENO: result: $AR" >&5
7266 echo "${ECHO_T}$AR" >&6
7268 echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7273 test -n "$ac_cv_prog_AR" && break
7276 if test -z "$ac_cv_prog_AR" ; then
7278 if test $build = $host ; then
7281 AR="${ncn_tool_prefix}$2"
7287 if test -n "$AS"; then
7289 elif test -n "$ac_cv_prog_AS"; then
7293 if test -n "$ac_cv_prog_AS"; then
7294 for ncn_progname in as; do
7295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7296 set dummy ${ncn_progname}; ac_word=$2
7297 echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7299 if test "${ac_cv_prog_AS+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 if test -n "$AS"; then
7303 ac_cv_prog_AS="$AS" # Let the user override the test.
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7312 ac_cv_prog_AS="${ncn_progname}"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 if test -n "$AS"; then
7323 echo "$as_me:$LINENO: result: $AS" >&5
7324 echo "${ECHO_T}$AS" >&6
7326 echo "$as_me:$LINENO: result: no" >&5
7327 echo "${ECHO_T}no" >&6
7333 for ncn_progname in as; do
7334 if test -n "$ncn_tool_prefix"; then
7335 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7336 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7337 echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7339 if test "${ac_cv_prog_AS+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 if test -n "$AS"; then
7343 ac_cv_prog_AS="$AS" # Let the user override the test.
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7352 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 if test -n "$AS"; then
7363 echo "$as_me:$LINENO: result: $AS" >&5
7364 echo "${ECHO_T}$AS" >&6
7366 echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6
7371 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7373 set dummy ${ncn_progname}; ac_word=$2
7374 echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7376 if test "${ac_cv_prog_AS+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 if test -n "$AS"; then
7380 ac_cv_prog_AS="$AS" # Let the user override the test.
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7389 ac_cv_prog_AS="${ncn_progname}"
7390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 if test -n "$AS"; then
7400 echo "$as_me:$LINENO: result: $AS" >&5
7401 echo "${ECHO_T}$AS" >&6
7403 echo "$as_me:$LINENO: result: no" >&5
7404 echo "${ECHO_T}no" >&6
7408 test -n "$ac_cv_prog_AS" && break
7411 if test -z "$ac_cv_prog_AS" ; then
7413 if test $build = $host ; then
7416 AS="${ncn_tool_prefix}$2"
7422 if test -n "$DLLTOOL"; then
7423 ac_cv_prog_DLLTOOL=$DLLTOOL
7424 elif test -n "$ac_cv_prog_DLLTOOL"; then
7425 DLLTOOL=$ac_cv_prog_DLLTOOL
7428 if test -n "$ac_cv_prog_DLLTOOL"; then
7429 for ncn_progname in dlltool; do
7430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7431 set dummy ${ncn_progname}; ac_word=$2
7432 echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7434 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 if test -n "$DLLTOOL"; then
7438 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447 ac_cv_prog_DLLTOOL="${ncn_progname}"
7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 DLLTOOL=$ac_cv_prog_DLLTOOL
7457 if test -n "$DLLTOOL"; then
7458 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7459 echo "${ECHO_T}$DLLTOOL" >&6
7461 echo "$as_me:$LINENO: result: no" >&5
7462 echo "${ECHO_T}no" >&6
7468 for ncn_progname in dlltool; do
7469 if test -n "$ncn_tool_prefix"; then
7470 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7471 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7472 echo "$as_me:$LINENO: checking for $ac_word" >&5
7473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7474 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 if test -n "$DLLTOOL"; then
7478 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 DLLTOOL=$ac_cv_prog_DLLTOOL
7497 if test -n "$DLLTOOL"; then
7498 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7499 echo "${ECHO_T}$DLLTOOL" >&6
7501 echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7506 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7508 set dummy ${ncn_progname}; ac_word=$2
7509 echo "$as_me:$LINENO: checking for $ac_word" >&5
7510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7511 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 if test -n "$DLLTOOL"; then
7515 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_DLLTOOL="${ncn_progname}"
7525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 DLLTOOL=$ac_cv_prog_DLLTOOL
7534 if test -n "$DLLTOOL"; then
7535 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7536 echo "${ECHO_T}$DLLTOOL" >&6
7538 echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6
7543 test -n "$ac_cv_prog_DLLTOOL" && break
7546 if test -z "$ac_cv_prog_DLLTOOL" ; then
7548 if test $build = $host ; then
7551 DLLTOOL="${ncn_tool_prefix}$2"
7557 if test -n "$LD"; then
7559 elif test -n "$ac_cv_prog_LD"; then
7563 if test -n "$ac_cv_prog_LD"; then
7564 for ncn_progname in ld; do
7565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7566 set dummy ${ncn_progname}; ac_word=$2
7567 echo "$as_me:$LINENO: checking for $ac_word" >&5
7568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7569 if test "${ac_cv_prog_LD+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 if test -n "$LD"; then
7573 ac_cv_prog_LD="$LD" # Let the user override the test.
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_LD="${ncn_progname}"
7583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 if test -n "$LD"; then
7593 echo "$as_me:$LINENO: result: $LD" >&5
7594 echo "${ECHO_T}$LD" >&6
7596 echo "$as_me:$LINENO: result: no" >&5
7597 echo "${ECHO_T}no" >&6
7603 for ncn_progname in ld; do
7604 if test -n "$ncn_tool_prefix"; then
7605 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7606 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7607 echo "$as_me:$LINENO: checking for $ac_word" >&5
7608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7609 if test "${ac_cv_prog_LD+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 if test -n "$LD"; then
7613 ac_cv_prog_LD="$LD" # Let the user override the test.
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7622 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 if test -n "$LD"; then
7633 echo "$as_me:$LINENO: result: $LD" >&5
7634 echo "${ECHO_T}$LD" >&6
7636 echo "$as_me:$LINENO: result: no" >&5
7637 echo "${ECHO_T}no" >&6
7641 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7643 set dummy ${ncn_progname}; ac_word=$2
7644 echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7646 if test "${ac_cv_prog_LD+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 if test -n "$LD"; then
7650 ac_cv_prog_LD="$LD" # Let the user override the test.
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_prog_LD="${ncn_progname}"
7660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 if test -n "$LD"; then
7670 echo "$as_me:$LINENO: result: $LD" >&5
7671 echo "${ECHO_T}$LD" >&6
7673 echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6
7678 test -n "$ac_cv_prog_LD" && break
7681 if test -z "$ac_cv_prog_LD" ; then
7683 if test $build = $host ; then
7686 LD="${ncn_tool_prefix}$2"
7692 if test -n "$LIPO"; then
7693 ac_cv_prog_LIPO=$LIPO
7694 elif test -n "$ac_cv_prog_LIPO"; then
7695 LIPO=$ac_cv_prog_LIPO
7698 if test -n "$ac_cv_prog_LIPO"; then
7699 for ncn_progname in lipo; do
7700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7701 set dummy ${ncn_progname}; ac_word=$2
7702 echo "$as_me:$LINENO: checking for $ac_word" >&5
7703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7704 if test "${ac_cv_prog_LIPO+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 if test -n "$LIPO"; then
7708 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717 ac_cv_prog_LIPO="${ncn_progname}"
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 LIPO=$ac_cv_prog_LIPO
7727 if test -n "$LIPO"; then
7728 echo "$as_me:$LINENO: result: $LIPO" >&5
7729 echo "${ECHO_T}$LIPO" >&6
7731 echo "$as_me:$LINENO: result: no" >&5
7732 echo "${ECHO_T}no" >&6
7738 for ncn_progname in lipo; do
7739 if test -n "$ncn_tool_prefix"; then
7740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7741 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7742 echo "$as_me:$LINENO: checking for $ac_word" >&5
7743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7744 if test "${ac_cv_prog_LIPO+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 if test -n "$LIPO"; then
7748 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7766 LIPO=$ac_cv_prog_LIPO
7767 if test -n "$LIPO"; then
7768 echo "$as_me:$LINENO: result: $LIPO" >&5
7769 echo "${ECHO_T}$LIPO" >&6
7771 echo "$as_me:$LINENO: result: no" >&5
7772 echo "${ECHO_T}no" >&6
7776 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7778 set dummy ${ncn_progname}; ac_word=$2
7779 echo "$as_me:$LINENO: checking for $ac_word" >&5
7780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7781 if test "${ac_cv_prog_LIPO+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 if test -n "$LIPO"; then
7785 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794 ac_cv_prog_LIPO="${ncn_progname}"
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 LIPO=$ac_cv_prog_LIPO
7804 if test -n "$LIPO"; then
7805 echo "$as_me:$LINENO: result: $LIPO" >&5
7806 echo "${ECHO_T}$LIPO" >&6
7808 echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6
7813 test -n "$ac_cv_prog_LIPO" && break
7816 if test -z "$ac_cv_prog_LIPO" ; then
7818 if test $build = $host ; then
7821 LIPO="${ncn_tool_prefix}$2"
7827 if test -n "$NM"; then
7829 elif test -n "$ac_cv_prog_NM"; then
7833 if test -n "$ac_cv_prog_NM"; then
7834 for ncn_progname in nm; do
7835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7836 set dummy ${ncn_progname}; ac_word=$2
7837 echo "$as_me:$LINENO: checking for $ac_word" >&5
7838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7839 if test "${ac_cv_prog_NM+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 if test -n "$NM"; then
7843 ac_cv_prog_NM="$NM" # Let the user override the test.
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852 ac_cv_prog_NM="${ncn_progname}"
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 if test -n "$NM"; then
7863 echo "$as_me:$LINENO: result: $NM" >&5
7864 echo "${ECHO_T}$NM" >&6
7866 echo "$as_me:$LINENO: result: no" >&5
7867 echo "${ECHO_T}no" >&6
7873 for ncn_progname in nm; do
7874 if test -n "$ncn_tool_prefix"; then
7875 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7876 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7877 echo "$as_me:$LINENO: checking for $ac_word" >&5
7878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7879 if test "${ac_cv_prog_NM+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 if test -n "$NM"; then
7883 ac_cv_prog_NM="$NM" # Let the user override the test.
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 if test -n "$NM"; then
7903 echo "$as_me:$LINENO: result: $NM" >&5
7904 echo "${ECHO_T}$NM" >&6
7906 echo "$as_me:$LINENO: result: no" >&5
7907 echo "${ECHO_T}no" >&6
7911 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7913 set dummy ${ncn_progname}; ac_word=$2
7914 echo "$as_me:$LINENO: checking for $ac_word" >&5
7915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7916 if test "${ac_cv_prog_NM+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 if test -n "$NM"; then
7920 ac_cv_prog_NM="$NM" # Let the user override the test.
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_NM="${ncn_progname}"
7930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 if test -n "$NM"; then
7940 echo "$as_me:$LINENO: result: $NM" >&5
7941 echo "${ECHO_T}$NM" >&6
7943 echo "$as_me:$LINENO: result: no" >&5
7944 echo "${ECHO_T}no" >&6
7948 test -n "$ac_cv_prog_NM" && break
7951 if test -z "$ac_cv_prog_NM" ; then
7953 if test $build = $host ; then
7956 NM="${ncn_tool_prefix}$2"
7962 if test -n "$RANLIB"; then
7963 ac_cv_prog_RANLIB=$RANLIB
7964 elif test -n "$ac_cv_prog_RANLIB"; then
7965 RANLIB=$ac_cv_prog_RANLIB
7968 if test -n "$ac_cv_prog_RANLIB"; then
7969 for ncn_progname in ranlib; do
7970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7971 set dummy ${ncn_progname}; ac_word=$2
7972 echo "$as_me:$LINENO: checking for $ac_word" >&5
7973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7974 if test "${ac_cv_prog_RANLIB+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 if test -n "$RANLIB"; then
7978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987 ac_cv_prog_RANLIB="${ncn_progname}"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 RANLIB=$ac_cv_prog_RANLIB
7997 if test -n "$RANLIB"; then
7998 echo "$as_me:$LINENO: result: $RANLIB" >&5
7999 echo "${ECHO_T}$RANLIB" >&6
8001 echo "$as_me:$LINENO: result: no" >&5
8002 echo "${ECHO_T}no" >&6
8008 for ncn_progname in ranlib; do
8009 if test -n "$ncn_tool_prefix"; then
8010 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8011 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8012 echo "$as_me:$LINENO: checking for $ac_word" >&5
8013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8014 if test "${ac_cv_prog_RANLIB+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 if test -n "$RANLIB"; then
8018 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8027 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 RANLIB=$ac_cv_prog_RANLIB
8037 if test -n "$RANLIB"; then
8038 echo "$as_me:$LINENO: result: $RANLIB" >&5
8039 echo "${ECHO_T}$RANLIB" >&6
8041 echo "$as_me:$LINENO: result: no" >&5
8042 echo "${ECHO_T}no" >&6
8046 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8048 set dummy ${ncn_progname}; ac_word=$2
8049 echo "$as_me:$LINENO: checking for $ac_word" >&5
8050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8051 if test "${ac_cv_prog_RANLIB+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 if test -n "$RANLIB"; then
8055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064 ac_cv_prog_RANLIB="${ncn_progname}"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 RANLIB=$ac_cv_prog_RANLIB
8074 if test -n "$RANLIB"; then
8075 echo "$as_me:$LINENO: result: $RANLIB" >&5
8076 echo "${ECHO_T}$RANLIB" >&6
8078 echo "$as_me:$LINENO: result: no" >&5
8079 echo "${ECHO_T}no" >&6
8083 test -n "$ac_cv_prog_RANLIB" && break
8086 if test -z "$ac_cv_prog_RANLIB" ; then
8092 if test -n "$STRIP"; then
8093 ac_cv_prog_STRIP=$STRIP
8094 elif test -n "$ac_cv_prog_STRIP"; then
8095 STRIP=$ac_cv_prog_STRIP
8098 if test -n "$ac_cv_prog_STRIP"; then
8099 for ncn_progname in strip; do
8100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8101 set dummy ${ncn_progname}; ac_word=$2
8102 echo "$as_me:$LINENO: checking for $ac_word" >&5
8103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8104 if test "${ac_cv_prog_STRIP+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 if test -n "$STRIP"; then
8108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8117 ac_cv_prog_STRIP="${ncn_progname}"
8118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 STRIP=$ac_cv_prog_STRIP
8127 if test -n "$STRIP"; then
8128 echo "$as_me:$LINENO: result: $STRIP" >&5
8129 echo "${ECHO_T}$STRIP" >&6
8131 echo "$as_me:$LINENO: result: no" >&5
8132 echo "${ECHO_T}no" >&6
8138 for ncn_progname in strip; do
8139 if test -n "$ncn_tool_prefix"; then
8140 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8141 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8142 echo "$as_me:$LINENO: checking for $ac_word" >&5
8143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8144 if test "${ac_cv_prog_STRIP+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 if test -n "$STRIP"; then
8148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8157 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 STRIP=$ac_cv_prog_STRIP
8167 if test -n "$STRIP"; then
8168 echo "$as_me:$LINENO: result: $STRIP" >&5
8169 echo "${ECHO_T}$STRIP" >&6
8171 echo "$as_me:$LINENO: result: no" >&5
8172 echo "${ECHO_T}no" >&6
8176 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8178 set dummy ${ncn_progname}; ac_word=$2
8179 echo "$as_me:$LINENO: checking for $ac_word" >&5
8180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8181 if test "${ac_cv_prog_STRIP+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 if test -n "$STRIP"; then
8185 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8194 ac_cv_prog_STRIP="${ncn_progname}"
8195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 STRIP=$ac_cv_prog_STRIP
8204 if test -n "$STRIP"; then
8205 echo "$as_me:$LINENO: result: $STRIP" >&5
8206 echo "${ECHO_T}$STRIP" >&6
8208 echo "$as_me:$LINENO: result: no" >&5
8209 echo "${ECHO_T}no" >&6
8213 test -n "$ac_cv_prog_STRIP" && break
8216 if test -z "$ac_cv_prog_STRIP" ; then
8222 if test -n "$WINDRES"; then
8223 ac_cv_prog_WINDRES=$WINDRES
8224 elif test -n "$ac_cv_prog_WINDRES"; then
8225 WINDRES=$ac_cv_prog_WINDRES
8228 if test -n "$ac_cv_prog_WINDRES"; then
8229 for ncn_progname in windres; do
8230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8231 set dummy ${ncn_progname}; ac_word=$2
8232 echo "$as_me:$LINENO: checking for $ac_word" >&5
8233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8234 if test "${ac_cv_prog_WINDRES+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 if test -n "$WINDRES"; then
8238 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8247 ac_cv_prog_WINDRES="${ncn_progname}"
8248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8256 WINDRES=$ac_cv_prog_WINDRES
8257 if test -n "$WINDRES"; then
8258 echo "$as_me:$LINENO: result: $WINDRES" >&5
8259 echo "${ECHO_T}$WINDRES" >&6
8261 echo "$as_me:$LINENO: result: no" >&5
8262 echo "${ECHO_T}no" >&6
8268 for ncn_progname in windres; do
8269 if test -n "$ncn_tool_prefix"; then
8270 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8271 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8272 echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8274 if test "${ac_cv_prog_WINDRES+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 if test -n "$WINDRES"; then
8278 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 WINDRES=$ac_cv_prog_WINDRES
8297 if test -n "$WINDRES"; then
8298 echo "$as_me:$LINENO: result: $WINDRES" >&5
8299 echo "${ECHO_T}$WINDRES" >&6
8301 echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6
8306 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8308 set dummy ${ncn_progname}; ac_word=$2
8309 echo "$as_me:$LINENO: checking for $ac_word" >&5
8310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8311 if test "${ac_cv_prog_WINDRES+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 if test -n "$WINDRES"; then
8315 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324 ac_cv_prog_WINDRES="${ncn_progname}"
8325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 WINDRES=$ac_cv_prog_WINDRES
8334 if test -n "$WINDRES"; then
8335 echo "$as_me:$LINENO: result: $WINDRES" >&5
8336 echo "${ECHO_T}$WINDRES" >&6
8338 echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6
8343 test -n "$ac_cv_prog_WINDRES" && break
8346 if test -z "$ac_cv_prog_WINDRES" ; then
8348 if test $build = $host ; then
8351 WINDRES="${ncn_tool_prefix}$2"
8357 if test -n "$WINDMC"; then
8358 ac_cv_prog_WINDMC=$WINDMC
8359 elif test -n "$ac_cv_prog_WINDMC"; then
8360 WINDMC=$ac_cv_prog_WINDMC
8363 if test -n "$ac_cv_prog_WINDMC"; then
8364 for ncn_progname in windmc; do
8365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8366 set dummy ${ncn_progname}; ac_word=$2
8367 echo "$as_me:$LINENO: checking for $ac_word" >&5
8368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8369 if test "${ac_cv_prog_WINDMC+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 if test -n "$WINDMC"; then
8373 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 test -z "$as_dir" && as_dir=.
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8382 ac_cv_prog_WINDMC="${ncn_progname}"
8383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 WINDMC=$ac_cv_prog_WINDMC
8392 if test -n "$WINDMC"; then
8393 echo "$as_me:$LINENO: result: $WINDMC" >&5
8394 echo "${ECHO_T}$WINDMC" >&6
8396 echo "$as_me:$LINENO: result: no" >&5
8397 echo "${ECHO_T}no" >&6
8403 for ncn_progname in windmc; do
8404 if test -n "$ncn_tool_prefix"; then
8405 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8406 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8407 echo "$as_me:$LINENO: checking for $ac_word" >&5
8408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8409 if test "${ac_cv_prog_WINDMC+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 if test -n "$WINDMC"; then
8413 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 WINDMC=$ac_cv_prog_WINDMC
8432 if test -n "$WINDMC"; then
8433 echo "$as_me:$LINENO: result: $WINDMC" >&5
8434 echo "${ECHO_T}$WINDMC" >&6
8436 echo "$as_me:$LINENO: result: no" >&5
8437 echo "${ECHO_T}no" >&6
8441 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8443 set dummy ${ncn_progname}; ac_word=$2
8444 echo "$as_me:$LINENO: checking for $ac_word" >&5
8445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8446 if test "${ac_cv_prog_WINDMC+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 if test -n "$WINDMC"; then
8450 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8459 ac_cv_prog_WINDMC="${ncn_progname}"
8460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 WINDMC=$ac_cv_prog_WINDMC
8469 if test -n "$WINDMC"; then
8470 echo "$as_me:$LINENO: result: $WINDMC" >&5
8471 echo "${ECHO_T}$WINDMC" >&6
8473 echo "$as_me:$LINENO: result: no" >&5
8474 echo "${ECHO_T}no" >&6
8478 test -n "$ac_cv_prog_WINDMC" && break
8481 if test -z "$ac_cv_prog_WINDMC" ; then
8483 if test $build = $host ; then
8486 WINDMC="${ncn_tool_prefix}$2"
8492 if test -n "$OBJCOPY"; then
8493 ac_cv_prog_OBJCOPY=$OBJCOPY
8494 elif test -n "$ac_cv_prog_OBJCOPY"; then
8495 OBJCOPY=$ac_cv_prog_OBJCOPY
8498 if test -n "$ac_cv_prog_OBJCOPY"; then
8499 for ncn_progname in objcopy; do
8500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8501 set dummy ${ncn_progname}; ac_word=$2
8502 echo "$as_me:$LINENO: checking for $ac_word" >&5
8503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8504 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 if test -n "$OBJCOPY"; then
8508 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8517 ac_cv_prog_OBJCOPY="${ncn_progname}"
8518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 OBJCOPY=$ac_cv_prog_OBJCOPY
8527 if test -n "$OBJCOPY"; then
8528 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8529 echo "${ECHO_T}$OBJCOPY" >&6
8531 echo "$as_me:$LINENO: result: no" >&5
8532 echo "${ECHO_T}no" >&6
8538 for ncn_progname in objcopy; do
8539 if test -n "$ncn_tool_prefix"; then
8540 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8541 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8542 echo "$as_me:$LINENO: checking for $ac_word" >&5
8543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8544 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 if test -n "$OBJCOPY"; then
8548 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8557 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 OBJCOPY=$ac_cv_prog_OBJCOPY
8567 if test -n "$OBJCOPY"; then
8568 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8569 echo "${ECHO_T}$OBJCOPY" >&6
8571 echo "$as_me:$LINENO: result: no" >&5
8572 echo "${ECHO_T}no" >&6
8576 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8578 set dummy ${ncn_progname}; ac_word=$2
8579 echo "$as_me:$LINENO: checking for $ac_word" >&5
8580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8581 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 if test -n "$OBJCOPY"; then
8585 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8594 ac_cv_prog_OBJCOPY="${ncn_progname}"
8595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 OBJCOPY=$ac_cv_prog_OBJCOPY
8604 if test -n "$OBJCOPY"; then
8605 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8606 echo "${ECHO_T}$OBJCOPY" >&6
8608 echo "$as_me:$LINENO: result: no" >&5
8609 echo "${ECHO_T}no" >&6
8613 test -n "$ac_cv_prog_OBJCOPY" && break
8616 if test -z "$ac_cv_prog_OBJCOPY" ; then
8618 if test $build = $host ; then
8621 OBJCOPY="${ncn_tool_prefix}$2"
8627 if test -n "$OBJDUMP"; then
8628 ac_cv_prog_OBJDUMP=$OBJDUMP
8629 elif test -n "$ac_cv_prog_OBJDUMP"; then
8630 OBJDUMP=$ac_cv_prog_OBJDUMP
8633 if test -n "$ac_cv_prog_OBJDUMP"; then
8634 for ncn_progname in objdump; do
8635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8636 set dummy ${ncn_progname}; ac_word=$2
8637 echo "$as_me:$LINENO: checking for $ac_word" >&5
8638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8639 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 if test -n "$OBJDUMP"; then
8643 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 test -z "$as_dir" && as_dir=.
8650 for ac_exec_ext in '' $ac_executable_extensions; do
8651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8652 ac_cv_prog_OBJDUMP="${ncn_progname}"
8653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8661 OBJDUMP=$ac_cv_prog_OBJDUMP
8662 if test -n "$OBJDUMP"; then
8663 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8664 echo "${ECHO_T}$OBJDUMP" >&6
8666 echo "$as_me:$LINENO: result: no" >&5
8667 echo "${ECHO_T}no" >&6
8673 for ncn_progname in objdump; do
8674 if test -n "$ncn_tool_prefix"; then
8675 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8676 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8677 echo "$as_me:$LINENO: checking for $ac_word" >&5
8678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8679 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8682 if test -n "$OBJDUMP"; then
8683 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8692 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8701 OBJDUMP=$ac_cv_prog_OBJDUMP
8702 if test -n "$OBJDUMP"; then
8703 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8704 echo "${ECHO_T}$OBJDUMP" >&6
8706 echo "$as_me:$LINENO: result: no" >&5
8707 echo "${ECHO_T}no" >&6
8711 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8713 set dummy ${ncn_progname}; ac_word=$2
8714 echo "$as_me:$LINENO: checking for $ac_word" >&5
8715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8716 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 if test -n "$OBJDUMP"; then
8720 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8729 ac_cv_prog_OBJDUMP="${ncn_progname}"
8730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 OBJDUMP=$ac_cv_prog_OBJDUMP
8739 if test -n "$OBJDUMP"; then
8740 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8741 echo "${ECHO_T}$OBJDUMP" >&6
8743 echo "$as_me:$LINENO: result: no" >&5
8744 echo "${ECHO_T}no" >&6
8748 test -n "$ac_cv_prog_OBJDUMP" && break
8751 if test -z "$ac_cv_prog_OBJDUMP" ; then
8753 if test $build = $host ; then
8756 OBJDUMP="${ncn_tool_prefix}$2"
8767 # Check whether --with-build-time-tools or --without-build-time-tools was given.
8768 if test "${with_build_time_tools+set}" = set; then
8769 withval="$with_build_time_tools"
8773 with_build_time_tools=
8774 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8775 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8779 with_build_time_tools=
8784 if test -n "$CC_FOR_TARGET"; then
8785 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8786 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8787 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8790 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8791 for ncn_progname in cc gcc; do
8792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8793 set dummy ${ncn_progname}; ac_word=$2
8794 echo "$as_me:$LINENO: checking for $ac_word" >&5
8795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8796 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 if test -n "$CC_FOR_TARGET"; then
8800 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8809 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8819 if test -n "$CC_FOR_TARGET"; then
8820 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8821 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8823 echo "$as_me:$LINENO: result: no" >&5
8824 echo "${ECHO_T}no" >&6
8830 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8831 for ncn_progname in cc gcc; do
8832 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8833 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8834 if test -x $with_build_time_tools/${ncn_progname}; then
8835 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8836 echo "$as_me:$LINENO: result: yes" >&5
8837 echo "${ECHO_T}yes" >&6
8840 echo "$as_me:$LINENO: result: no" >&5
8841 echo "${ECHO_T}no" >&6
8846 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8847 for ncn_progname in cc gcc; do
8848 if test -n "$ncn_target_tool_prefix"; then
8849 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8850 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8851 echo "$as_me:$LINENO: checking for $ac_word" >&5
8852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8853 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 if test -n "$CC_FOR_TARGET"; then
8857 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8866 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8876 if test -n "$CC_FOR_TARGET"; then
8877 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8878 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8880 echo "$as_me:$LINENO: result: no" >&5
8881 echo "${ECHO_T}no" >&6
8885 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8887 set dummy ${ncn_progname}; ac_word=$2
8888 echo "$as_me:$LINENO: checking for $ac_word" >&5
8889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8890 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 if test -n "$CC_FOR_TARGET"; then
8894 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900 test -z "$as_dir" && as_dir=.
8901 for ac_exec_ext in '' $ac_executable_extensions; do
8902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8903 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8913 if test -n "$CC_FOR_TARGET"; then
8914 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8915 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8917 echo "$as_me:$LINENO: result: no" >&5
8918 echo "${ECHO_T}no" >&6
8922 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8926 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8928 if test $build = $target ; then
8931 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8934 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
8939 if test -n "$CXX_FOR_TARGET"; then
8940 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8941 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8942 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8945 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8946 for ncn_progname in c++ g++ cxx gxx; do
8947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8948 set dummy ${ncn_progname}; ac_word=$2
8949 echo "$as_me:$LINENO: checking for $ac_word" >&5
8950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8951 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 if test -n "$CXX_FOR_TARGET"; then
8955 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961 test -z "$as_dir" && as_dir=.
8962 for ac_exec_ext in '' $ac_executable_extensions; do
8963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8964 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8974 if test -n "$CXX_FOR_TARGET"; then
8975 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8976 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8978 echo "$as_me:$LINENO: result: no" >&5
8979 echo "${ECHO_T}no" >&6
8985 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8986 for ncn_progname in c++ g++ cxx gxx; do
8987 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8988 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8989 if test -x $with_build_time_tools/${ncn_progname}; then
8990 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8991 echo "$as_me:$LINENO: result: yes" >&5
8992 echo "${ECHO_T}yes" >&6
8995 echo "$as_me:$LINENO: result: no" >&5
8996 echo "${ECHO_T}no" >&6
9001 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9002 for ncn_progname in c++ g++ cxx gxx; do
9003 if test -n "$ncn_target_tool_prefix"; then
9004 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9005 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9006 echo "$as_me:$LINENO: checking for $ac_word" >&5
9007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9008 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 if test -n "$CXX_FOR_TARGET"; then
9012 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 test -z "$as_dir" && as_dir=.
9019 for ac_exec_ext in '' $ac_executable_extensions; do
9020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9021 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9031 if test -n "$CXX_FOR_TARGET"; then
9032 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
9033 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
9035 echo "$as_me:$LINENO: result: no" >&5
9036 echo "${ECHO_T}no" >&6
9040 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9042 set dummy ${ncn_progname}; ac_word=$2
9043 echo "$as_me:$LINENO: checking for $ac_word" >&5
9044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9045 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 if test -n "$CXX_FOR_TARGET"; then
9049 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055 test -z "$as_dir" && as_dir=.
9056 for ac_exec_ext in '' $ac_executable_extensions; do
9057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9058 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9067 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9068 if test -n "$CXX_FOR_TARGET"; then
9069 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
9070 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
9072 echo "$as_me:$LINENO: result: no" >&5
9073 echo "${ECHO_T}no" >&6
9077 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9081 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9082 set dummy c++ g++ cxx gxx
9083 if test $build = $target ; then
9086 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9089 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9094 if test -n "$GCC_FOR_TARGET"; then
9095 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9096 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9097 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9100 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9101 for ncn_progname in gcc; do
9102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9103 set dummy ${ncn_progname}; ac_word=$2
9104 echo "$as_me:$LINENO: checking for $ac_word" >&5
9105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9106 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 if test -n "$GCC_FOR_TARGET"; then
9110 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 test -z "$as_dir" && as_dir=.
9117 for ac_exec_ext in '' $ac_executable_extensions; do
9118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9119 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9129 if test -n "$GCC_FOR_TARGET"; then
9130 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9131 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
9133 echo "$as_me:$LINENO: result: no" >&5
9134 echo "${ECHO_T}no" >&6
9140 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9141 for ncn_progname in gcc; do
9142 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9143 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9144 if test -x $with_build_time_tools/${ncn_progname}; then
9145 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9146 echo "$as_me:$LINENO: result: yes" >&5
9147 echo "${ECHO_T}yes" >&6
9150 echo "$as_me:$LINENO: result: no" >&5
9151 echo "${ECHO_T}no" >&6
9156 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9157 for ncn_progname in gcc; do
9158 if test -n "$ncn_target_tool_prefix"; then
9159 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9160 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9161 echo "$as_me:$LINENO: checking for $ac_word" >&5
9162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9163 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 if test -n "$GCC_FOR_TARGET"; then
9167 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9176 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9185 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9186 if test -n "$GCC_FOR_TARGET"; then
9187 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9188 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
9190 echo "$as_me:$LINENO: result: no" >&5
9191 echo "${ECHO_T}no" >&6
9195 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9197 set dummy ${ncn_progname}; ac_word=$2
9198 echo "$as_me:$LINENO: checking for $ac_word" >&5
9199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9200 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 if test -n "$GCC_FOR_TARGET"; then
9204 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9213 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9222 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9223 if test -n "$GCC_FOR_TARGET"; then
9224 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9225 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
9227 echo "$as_me:$LINENO: result: no" >&5
9228 echo "${ECHO_T}no" >&6
9232 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9236 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9237 GCC_FOR_TARGET="${CC_FOR_TARGET}"
9239 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
9244 if test -n "$GCJ_FOR_TARGET"; then
9245 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9246 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9247 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9250 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9251 for ncn_progname in gcj; do
9252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9253 set dummy ${ncn_progname}; ac_word=$2
9254 echo "$as_me:$LINENO: checking for $ac_word" >&5
9255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9256 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 if test -n "$GCJ_FOR_TARGET"; then
9260 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9269 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9278 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9279 if test -n "$GCJ_FOR_TARGET"; then
9280 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9281 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9283 echo "$as_me:$LINENO: result: no" >&5
9284 echo "${ECHO_T}no" >&6
9290 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
9291 for ncn_progname in gcj; do
9292 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9293 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9294 if test -x $with_build_time_tools/${ncn_progname}; then
9295 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9296 echo "$as_me:$LINENO: result: yes" >&5
9297 echo "${ECHO_T}yes" >&6
9300 echo "$as_me:$LINENO: result: no" >&5
9301 echo "${ECHO_T}no" >&6
9306 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9307 for ncn_progname in gcj; do
9308 if test -n "$ncn_target_tool_prefix"; then
9309 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9310 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9311 echo "$as_me:$LINENO: checking for $ac_word" >&5
9312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9313 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 if test -n "$GCJ_FOR_TARGET"; then
9317 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9323 test -z "$as_dir" && as_dir=.
9324 for ac_exec_ext in '' $ac_executable_extensions; do
9325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9326 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9335 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9336 if test -n "$GCJ_FOR_TARGET"; then
9337 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9338 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9340 echo "$as_me:$LINENO: result: no" >&5
9341 echo "${ECHO_T}no" >&6
9345 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9347 set dummy ${ncn_progname}; ac_word=$2
9348 echo "$as_me:$LINENO: checking for $ac_word" >&5
9349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9350 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 if test -n "$GCJ_FOR_TARGET"; then
9354 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9360 test -z "$as_dir" && as_dir=.
9361 for ac_exec_ext in '' $ac_executable_extensions; do
9362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9363 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9372 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9373 if test -n "$GCJ_FOR_TARGET"; then
9374 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9375 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
9377 echo "$as_me:$LINENO: result: no" >&5
9378 echo "${ECHO_T}no" >&6
9382 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9386 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9388 if test $build = $target ; then
9391 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9394 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9399 if test -n "$GFORTRAN_FOR_TARGET"; then
9400 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9401 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9402 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9405 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9406 for ncn_progname in gfortran; do
9407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9408 set dummy ${ncn_progname}; ac_word=$2
9409 echo "$as_me:$LINENO: checking for $ac_word" >&5
9410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9411 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 if test -n "$GFORTRAN_FOR_TARGET"; then
9415 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421 test -z "$as_dir" && as_dir=.
9422 for ac_exec_ext in '' $ac_executable_extensions; do
9423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9424 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9433 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9434 if test -n "$GFORTRAN_FOR_TARGET"; then
9435 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9436 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9438 echo "$as_me:$LINENO: result: no" >&5
9439 echo "${ECHO_T}no" >&6
9445 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
9446 for ncn_progname in gfortran; do
9447 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9448 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9449 if test -x $with_build_time_tools/${ncn_progname}; then
9450 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9451 echo "$as_me:$LINENO: result: yes" >&5
9452 echo "${ECHO_T}yes" >&6
9455 echo "$as_me:$LINENO: result: no" >&5
9456 echo "${ECHO_T}no" >&6
9461 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9462 for ncn_progname in gfortran; do
9463 if test -n "$ncn_target_tool_prefix"; then
9464 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9465 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9466 echo "$as_me:$LINENO: checking for $ac_word" >&5
9467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9468 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 if test -n "$GFORTRAN_FOR_TARGET"; then
9472 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478 test -z "$as_dir" && as_dir=.
9479 for ac_exec_ext in '' $ac_executable_extensions; do
9480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9481 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9490 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9491 if test -n "$GFORTRAN_FOR_TARGET"; then
9492 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9493 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9495 echo "$as_me:$LINENO: result: no" >&5
9496 echo "${ECHO_T}no" >&6
9500 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9502 set dummy ${ncn_progname}; ac_word=$2
9503 echo "$as_me:$LINENO: checking for $ac_word" >&5
9504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9505 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 if test -n "$GFORTRAN_FOR_TARGET"; then
9509 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515 test -z "$as_dir" && as_dir=.
9516 for ac_exec_ext in '' $ac_executable_extensions; do
9517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9518 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9528 if test -n "$GFORTRAN_FOR_TARGET"; then
9529 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9530 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
9532 echo "$as_me:$LINENO: result: no" >&5
9533 echo "${ECHO_T}no" >&6
9537 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9541 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9543 if test $build = $target ; then
9544 GFORTRAN_FOR_TARGET="$2"
9546 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9549 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
9554 cat > conftest.c << \EOF
9559 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9560 have_gcc_for_target=yes
9562 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9563 have_gcc_for_target=no
9570 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9571 if test -n "$with_build_time_tools"; then
9572 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9573 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
9574 if test -x $with_build_time_tools/ar; then
9575 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9576 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9577 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9578 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
9580 echo "$as_me:$LINENO: result: no" >&5
9581 echo "${ECHO_T}no" >&6
9583 elif test $build != $host && test $have_gcc_for_target = yes; then
9584 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
9585 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9586 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9589 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9590 # Extract the first word of "ar", so it can be a program name with args.
9591 set dummy ar; ac_word=$2
9592 echo "$as_me:$LINENO: checking for $ac_word" >&5
9593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9594 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9597 case $AR_FOR_TARGET in
9599 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603 for as_dir in $gcc_cv_tool_dirs
9606 test -z "$as_dir" && as_dir=.
9607 for ac_exec_ext in '' $ac_executable_extensions; do
9608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9609 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9619 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9621 if test -n "$AR_FOR_TARGET"; then
9622 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9623 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9625 echo "$as_me:$LINENO: result: no" >&5
9626 echo "${ECHO_T}no" >&6
9630 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9633 if test -n "$AR_FOR_TARGET"; then
9634 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9635 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9636 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9639 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9640 for ncn_progname in ar; do
9641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9642 set dummy ${ncn_progname}; ac_word=$2
9643 echo "$as_me:$LINENO: checking for $ac_word" >&5
9644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9645 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 if test -n "$AR_FOR_TARGET"; then
9649 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 test -z "$as_dir" && as_dir=.
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9658 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9667 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9668 if test -n "$AR_FOR_TARGET"; then
9669 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9670 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9672 echo "$as_me:$LINENO: result: no" >&5
9673 echo "${ECHO_T}no" >&6
9679 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
9680 for ncn_progname in ar; do
9681 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9682 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9683 if test -x $with_build_time_tools/${ncn_progname}; then
9684 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9685 echo "$as_me:$LINENO: result: yes" >&5
9686 echo "${ECHO_T}yes" >&6
9689 echo "$as_me:$LINENO: result: no" >&5
9690 echo "${ECHO_T}no" >&6
9695 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9696 for ncn_progname in ar; do
9697 if test -n "$ncn_target_tool_prefix"; then
9698 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9699 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9700 echo "$as_me:$LINENO: checking for $ac_word" >&5
9701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9702 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 if test -n "$AR_FOR_TARGET"; then
9706 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9712 test -z "$as_dir" && as_dir=.
9713 for ac_exec_ext in '' $ac_executable_extensions; do
9714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9715 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9724 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9725 if test -n "$AR_FOR_TARGET"; then
9726 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9727 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9729 echo "$as_me:$LINENO: result: no" >&5
9730 echo "${ECHO_T}no" >&6
9734 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9736 set dummy ${ncn_progname}; ac_word=$2
9737 echo "$as_me:$LINENO: checking for $ac_word" >&5
9738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9739 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 if test -n "$AR_FOR_TARGET"; then
9743 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9752 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9761 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9762 if test -n "$AR_FOR_TARGET"; then
9763 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9764 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9766 echo "$as_me:$LINENO: result: no" >&5
9767 echo "${ECHO_T}no" >&6
9771 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9775 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9777 if test $build = $target ; then
9780 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
9783 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
9787 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9793 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9794 if test -n "$with_build_time_tools"; then
9795 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9796 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
9797 if test -x $with_build_time_tools/as; then
9798 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9799 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9800 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9801 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
9803 echo "$as_me:$LINENO: result: no" >&5
9804 echo "${ECHO_T}no" >&6
9806 elif test $build != $host && test $have_gcc_for_target = yes; then
9807 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
9808 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9809 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9812 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9813 # Extract the first word of "as", so it can be a program name with args.
9814 set dummy as; ac_word=$2
9815 echo "$as_me:$LINENO: checking for $ac_word" >&5
9816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9817 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 case $AS_FOR_TARGET in
9822 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826 for as_dir in $gcc_cv_tool_dirs
9829 test -z "$as_dir" && as_dir=.
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9832 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9842 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9844 if test -n "$AS_FOR_TARGET"; then
9845 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9846 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9848 echo "$as_me:$LINENO: result: no" >&5
9849 echo "${ECHO_T}no" >&6
9853 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9856 if test -n "$AS_FOR_TARGET"; then
9857 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9858 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9859 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9862 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9863 for ncn_progname in as; do
9864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9865 set dummy ${ncn_progname}; ac_word=$2
9866 echo "$as_me:$LINENO: checking for $ac_word" >&5
9867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9868 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 if test -n "$AS_FOR_TARGET"; then
9872 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9881 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9890 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9891 if test -n "$AS_FOR_TARGET"; then
9892 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9893 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9895 echo "$as_me:$LINENO: result: no" >&5
9896 echo "${ECHO_T}no" >&6
9902 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9903 for ncn_progname in as; do
9904 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9905 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9906 if test -x $with_build_time_tools/${ncn_progname}; then
9907 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9908 echo "$as_me:$LINENO: result: yes" >&5
9909 echo "${ECHO_T}yes" >&6
9912 echo "$as_me:$LINENO: result: no" >&5
9913 echo "${ECHO_T}no" >&6
9918 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9919 for ncn_progname in as; do
9920 if test -n "$ncn_target_tool_prefix"; then
9921 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9922 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9923 echo "$as_me:$LINENO: checking for $ac_word" >&5
9924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9925 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 if test -n "$AS_FOR_TARGET"; then
9929 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9935 test -z "$as_dir" && as_dir=.
9936 for ac_exec_ext in '' $ac_executable_extensions; do
9937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9938 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9947 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9948 if test -n "$AS_FOR_TARGET"; then
9949 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9950 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9952 echo "$as_me:$LINENO: result: no" >&5
9953 echo "${ECHO_T}no" >&6
9957 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9959 set dummy ${ncn_progname}; ac_word=$2
9960 echo "$as_me:$LINENO: checking for $ac_word" >&5
9961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9962 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 if test -n "$AS_FOR_TARGET"; then
9966 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 test -z "$as_dir" && as_dir=.
9973 for ac_exec_ext in '' $ac_executable_extensions; do
9974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9975 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9984 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9985 if test -n "$AS_FOR_TARGET"; then
9986 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9987 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9989 echo "$as_me:$LINENO: result: no" >&5
9990 echo "${ECHO_T}no" >&6
9994 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9998 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10000 if test $build = $target ; then
10003 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10006 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
10010 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10016 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10017 if test -n "$with_build_time_tools"; then
10018 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
10019 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
10020 if test -x $with_build_time_tools/dlltool; then
10021 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10022 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10023 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10024 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
10026 echo "$as_me:$LINENO: result: no" >&5
10027 echo "${ECHO_T}no" >&6
10029 elif test $build != $host && test $have_gcc_for_target = yes; then
10030 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
10031 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10032 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10035 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10036 # Extract the first word of "dlltool", so it can be a program name with args.
10037 set dummy dlltool; ac_word=$2
10038 echo "$as_me:$LINENO: checking for $ac_word" >&5
10039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10040 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 case $DLLTOOL_FOR_TARGET in
10045 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049 for as_dir in $gcc_cv_tool_dirs
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10055 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10065 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10067 if test -n "$DLLTOOL_FOR_TARGET"; then
10068 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10069 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
10071 echo "$as_me:$LINENO: result: no" >&5
10072 echo "${ECHO_T}no" >&6
10076 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10079 if test -n "$DLLTOOL_FOR_TARGET"; then
10080 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10081 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10082 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10085 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10086 for ncn_progname in dlltool; do
10087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10088 set dummy ${ncn_progname}; ac_word=$2
10089 echo "$as_me:$LINENO: checking for $ac_word" >&5
10090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10091 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 if test -n "$DLLTOOL_FOR_TARGET"; then
10095 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10113 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10114 if test -n "$DLLTOOL_FOR_TARGET"; then
10115 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10116 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
10118 echo "$as_me:$LINENO: result: no" >&5
10119 echo "${ECHO_T}no" >&6
10125 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
10126 for ncn_progname in dlltool; do
10127 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10128 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10129 if test -x $with_build_time_tools/${ncn_progname}; then
10130 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10131 echo "$as_me:$LINENO: result: yes" >&5
10132 echo "${ECHO_T}yes" >&6
10135 echo "$as_me:$LINENO: result: no" >&5
10136 echo "${ECHO_T}no" >&6
10141 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10142 for ncn_progname in dlltool; do
10143 if test -n "$ncn_target_tool_prefix"; then
10144 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10145 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10146 echo "$as_me:$LINENO: checking for $ac_word" >&5
10147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10148 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 if test -n "$DLLTOOL_FOR_TARGET"; then
10152 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155 for as_dir in $PATH
10158 test -z "$as_dir" && as_dir=.
10159 for ac_exec_ext in '' $ac_executable_extensions; do
10160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10161 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10170 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10171 if test -n "$DLLTOOL_FOR_TARGET"; then
10172 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10173 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
10175 echo "$as_me:$LINENO: result: no" >&5
10176 echo "${ECHO_T}no" >&6
10180 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10182 set dummy ${ncn_progname}; ac_word=$2
10183 echo "$as_me:$LINENO: checking for $ac_word" >&5
10184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10185 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 if test -n "$DLLTOOL_FOR_TARGET"; then
10189 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192 for as_dir in $PATH
10195 test -z "$as_dir" && as_dir=.
10196 for ac_exec_ext in '' $ac_executable_extensions; do
10197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10198 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10207 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10208 if test -n "$DLLTOOL_FOR_TARGET"; then
10209 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10210 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
10212 echo "$as_me:$LINENO: result: no" >&5
10213 echo "${ECHO_T}no" >&6
10217 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10221 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10223 if test $build = $target ; then
10224 DLLTOOL_FOR_TARGET="$2"
10226 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10229 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
10233 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10239 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10240 if test -n "$with_build_time_tools"; then
10241 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
10242 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
10243 if test -x $with_build_time_tools/ld; then
10244 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10245 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10246 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
10247 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
10249 echo "$as_me:$LINENO: result: no" >&5
10250 echo "${ECHO_T}no" >&6
10252 elif test $build != $host && test $have_gcc_for_target = yes; then
10253 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
10254 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10255 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10258 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10259 # Extract the first word of "ld", so it can be a program name with args.
10260 set dummy ld; ac_word=$2
10261 echo "$as_me:$LINENO: checking for $ac_word" >&5
10262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10263 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10266 case $LD_FOR_TARGET in
10268 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10272 for as_dir in $gcc_cv_tool_dirs
10275 test -z "$as_dir" && as_dir=.
10276 for ac_exec_ext in '' $ac_executable_extensions; do
10277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10278 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10288 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10290 if test -n "$LD_FOR_TARGET"; then
10291 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10292 echo "${ECHO_T}$LD_FOR_TARGET" >&6
10294 echo "$as_me:$LINENO: result: no" >&5
10295 echo "${ECHO_T}no" >&6
10299 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10302 if test -n "$LD_FOR_TARGET"; then
10303 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10304 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10305 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10308 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10309 for ncn_progname in ld; do
10310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10311 set dummy ${ncn_progname}; ac_word=$2
10312 echo "$as_me:$LINENO: checking for $ac_word" >&5
10313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10314 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10317 if test -n "$LD_FOR_TARGET"; then
10318 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321 for as_dir in $PATH
10324 test -z "$as_dir" && as_dir=.
10325 for ac_exec_ext in '' $ac_executable_extensions; do
10326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10327 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10336 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10337 if test -n "$LD_FOR_TARGET"; then
10338 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10339 echo "${ECHO_T}$LD_FOR_TARGET" >&6
10341 echo "$as_me:$LINENO: result: no" >&5
10342 echo "${ECHO_T}no" >&6
10348 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
10349 for ncn_progname in ld; do
10350 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10351 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10352 if test -x $with_build_time_tools/${ncn_progname}; then
10353 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10354 echo "$as_me:$LINENO: result: yes" >&5
10355 echo "${ECHO_T}yes" >&6
10358 echo "$as_me:$LINENO: result: no" >&5
10359 echo "${ECHO_T}no" >&6
10364 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10365 for ncn_progname in ld; do
10366 if test -n "$ncn_target_tool_prefix"; then
10367 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10368 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10369 echo "$as_me:$LINENO: checking for $ac_word" >&5
10370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10371 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 if test -n "$LD_FOR_TARGET"; then
10375 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378 for as_dir in $PATH
10381 test -z "$as_dir" && as_dir=.
10382 for ac_exec_ext in '' $ac_executable_extensions; do
10383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10384 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10393 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10394 if test -n "$LD_FOR_TARGET"; then
10395 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10396 echo "${ECHO_T}$LD_FOR_TARGET" >&6
10398 echo "$as_me:$LINENO: result: no" >&5
10399 echo "${ECHO_T}no" >&6
10403 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10405 set dummy ${ncn_progname}; ac_word=$2
10406 echo "$as_me:$LINENO: checking for $ac_word" >&5
10407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10408 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 if test -n "$LD_FOR_TARGET"; then
10412 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in $PATH
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10421 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10430 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10431 if test -n "$LD_FOR_TARGET"; then
10432 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10433 echo "${ECHO_T}$LD_FOR_TARGET" >&6
10435 echo "$as_me:$LINENO: result: no" >&5
10436 echo "${ECHO_T}no" >&6
10440 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10444 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10446 if test $build = $target ; then
10449 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10452 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
10456 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10462 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10463 if test -n "$with_build_time_tools"; then
10464 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10465 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
10466 if test -x $with_build_time_tools/lipo; then
10467 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10468 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10469 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10470 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
10472 echo "$as_me:$LINENO: result: no" >&5
10473 echo "${ECHO_T}no" >&6
10475 elif test $build != $host && test $have_gcc_for_target = yes; then
10476 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
10477 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10478 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10481 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10482 # Extract the first word of "lipo", so it can be a program name with args.
10483 set dummy lipo; ac_word=$2
10484 echo "$as_me:$LINENO: checking for $ac_word" >&5
10485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10486 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 case $LIPO_FOR_TARGET in
10491 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495 for as_dir in $gcc_cv_tool_dirs
10498 test -z "$as_dir" && as_dir=.
10499 for ac_exec_ext in '' $ac_executable_extensions; do
10500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10501 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10513 if test -n "$LIPO_FOR_TARGET"; then
10514 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10515 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10517 echo "$as_me:$LINENO: result: no" >&5
10518 echo "${ECHO_T}no" >&6
10522 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10525 if test -n "$LIPO_FOR_TARGET"; then
10526 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10527 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10528 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10531 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10532 for ncn_progname in lipo; do
10533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10534 set dummy ${ncn_progname}; ac_word=$2
10535 echo "$as_me:$LINENO: checking for $ac_word" >&5
10536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10537 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 if test -n "$LIPO_FOR_TARGET"; then
10541 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10559 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10560 if test -n "$LIPO_FOR_TARGET"; then
10561 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10562 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10564 echo "$as_me:$LINENO: result: no" >&5
10565 echo "${ECHO_T}no" >&6
10571 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
10572 for ncn_progname in lipo; do
10573 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10574 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10575 if test -x $with_build_time_tools/${ncn_progname}; then
10576 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10577 echo "$as_me:$LINENO: result: yes" >&5
10578 echo "${ECHO_T}yes" >&6
10581 echo "$as_me:$LINENO: result: no" >&5
10582 echo "${ECHO_T}no" >&6
10587 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10588 for ncn_progname in lipo; do
10589 if test -n "$ncn_target_tool_prefix"; then
10590 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10591 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10592 echo "$as_me:$LINENO: checking for $ac_word" >&5
10593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10594 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10597 if test -n "$LIPO_FOR_TARGET"; then
10598 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601 for as_dir in $PATH
10604 test -z "$as_dir" && as_dir=.
10605 for ac_exec_ext in '' $ac_executable_extensions; do
10606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10607 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10616 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10617 if test -n "$LIPO_FOR_TARGET"; then
10618 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10619 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10621 echo "$as_me:$LINENO: result: no" >&5
10622 echo "${ECHO_T}no" >&6
10626 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10628 set dummy ${ncn_progname}; ac_word=$2
10629 echo "$as_me:$LINENO: checking for $ac_word" >&5
10630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10631 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 if test -n "$LIPO_FOR_TARGET"; then
10635 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638 for as_dir in $PATH
10641 test -z "$as_dir" && as_dir=.
10642 for ac_exec_ext in '' $ac_executable_extensions; do
10643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10644 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10653 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10654 if test -n "$LIPO_FOR_TARGET"; then
10655 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10656 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
10658 echo "$as_me:$LINENO: result: no" >&5
10659 echo "${ECHO_T}no" >&6
10663 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10667 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10669 if test $build = $target ; then
10670 LIPO_FOR_TARGET="$2"
10672 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10675 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
10679 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10685 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10686 if test -n "$with_build_time_tools"; then
10687 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10688 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
10689 if test -x $with_build_time_tools/nm; then
10690 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10691 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10692 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10693 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
10695 echo "$as_me:$LINENO: result: no" >&5
10696 echo "${ECHO_T}no" >&6
10698 elif test $build != $host && test $have_gcc_for_target = yes; then
10699 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10700 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10701 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10704 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10705 # Extract the first word of "nm", so it can be a program name with args.
10706 set dummy nm; ac_word=$2
10707 echo "$as_me:$LINENO: checking for $ac_word" >&5
10708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10709 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 case $NM_FOR_TARGET in
10714 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718 for as_dir in $gcc_cv_tool_dirs
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10724 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10734 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10736 if test -n "$NM_FOR_TARGET"; then
10737 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10738 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10740 echo "$as_me:$LINENO: result: no" >&5
10741 echo "${ECHO_T}no" >&6
10745 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10748 if test -n "$NM_FOR_TARGET"; then
10749 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10750 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10751 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10754 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10755 for ncn_progname in nm; do
10756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10757 set dummy ${ncn_progname}; ac_word=$2
10758 echo "$as_me:$LINENO: checking for $ac_word" >&5
10759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10760 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 if test -n "$NM_FOR_TARGET"; then
10764 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767 for as_dir in $PATH
10770 test -z "$as_dir" && as_dir=.
10771 for ac_exec_ext in '' $ac_executable_extensions; do
10772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10773 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10782 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10783 if test -n "$NM_FOR_TARGET"; then
10784 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10785 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10787 echo "$as_me:$LINENO: result: no" >&5
10788 echo "${ECHO_T}no" >&6
10794 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
10795 for ncn_progname in nm; do
10796 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10797 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10798 if test -x $with_build_time_tools/${ncn_progname}; then
10799 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10800 echo "$as_me:$LINENO: result: yes" >&5
10801 echo "${ECHO_T}yes" >&6
10804 echo "$as_me:$LINENO: result: no" >&5
10805 echo "${ECHO_T}no" >&6
10810 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10811 for ncn_progname in nm; do
10812 if test -n "$ncn_target_tool_prefix"; then
10813 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10814 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10815 echo "$as_me:$LINENO: checking for $ac_word" >&5
10816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10817 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 if test -n "$NM_FOR_TARGET"; then
10821 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824 for as_dir in $PATH
10827 test -z "$as_dir" && as_dir=.
10828 for ac_exec_ext in '' $ac_executable_extensions; do
10829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10830 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10839 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10840 if test -n "$NM_FOR_TARGET"; then
10841 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10842 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10844 echo "$as_me:$LINENO: result: no" >&5
10845 echo "${ECHO_T}no" >&6
10849 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10851 set dummy ${ncn_progname}; ac_word=$2
10852 echo "$as_me:$LINENO: checking for $ac_word" >&5
10853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10854 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 if test -n "$NM_FOR_TARGET"; then
10858 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861 for as_dir in $PATH
10864 test -z "$as_dir" && as_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
10866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10867 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10876 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10877 if test -n "$NM_FOR_TARGET"; then
10878 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10879 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10881 echo "$as_me:$LINENO: result: no" >&5
10882 echo "${ECHO_T}no" >&6
10886 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10890 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10892 if test $build = $target ; then
10895 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10898 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
10902 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10908 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10909 if test -n "$with_build_time_tools"; then
10910 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10911 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
10912 if test -x $with_build_time_tools/objdump; then
10913 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10914 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10915 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10916 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
10918 echo "$as_me:$LINENO: result: no" >&5
10919 echo "${ECHO_T}no" >&6
10921 elif test $build != $host && test $have_gcc_for_target = yes; then
10922 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10923 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10924 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10927 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10928 # Extract the first word of "objdump", so it can be a program name with args.
10929 set dummy objdump; ac_word=$2
10930 echo "$as_me:$LINENO: checking for $ac_word" >&5
10931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10932 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 case $OBJDUMP_FOR_TARGET in
10937 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $gcc_cv_tool_dirs
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10957 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10959 if test -n "$OBJDUMP_FOR_TARGET"; then
10960 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10961 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10963 echo "$as_me:$LINENO: result: no" >&5
10964 echo "${ECHO_T}no" >&6
10968 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10971 if test -n "$OBJDUMP_FOR_TARGET"; then
10972 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10973 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10974 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10977 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10978 for ncn_progname in objdump; do
10979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10980 set dummy ${ncn_progname}; ac_word=$2
10981 echo "$as_me:$LINENO: checking for $ac_word" >&5
10982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10983 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 if test -n "$OBJDUMP_FOR_TARGET"; then
10987 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990 for as_dir in $PATH
10993 test -z "$as_dir" && as_dir=.
10994 for ac_exec_ext in '' $ac_executable_extensions; do
10995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10996 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11005 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11006 if test -n "$OBJDUMP_FOR_TARGET"; then
11007 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11008 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
11010 echo "$as_me:$LINENO: result: no" >&5
11011 echo "${ECHO_T}no" >&6
11017 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11018 for ncn_progname in objdump; do
11019 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11020 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11021 if test -x $with_build_time_tools/${ncn_progname}; then
11022 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11023 echo "$as_me:$LINENO: result: yes" >&5
11024 echo "${ECHO_T}yes" >&6
11027 echo "$as_me:$LINENO: result: no" >&5
11028 echo "${ECHO_T}no" >&6
11033 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11034 for ncn_progname in objdump; do
11035 if test -n "$ncn_target_tool_prefix"; then
11036 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11037 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11038 echo "$as_me:$LINENO: checking for $ac_word" >&5
11039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11040 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 if test -n "$OBJDUMP_FOR_TARGET"; then
11044 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047 for as_dir in $PATH
11050 test -z "$as_dir" && as_dir=.
11051 for ac_exec_ext in '' $ac_executable_extensions; do
11052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11053 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11062 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11063 if test -n "$OBJDUMP_FOR_TARGET"; then
11064 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11065 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
11067 echo "$as_me:$LINENO: result: no" >&5
11068 echo "${ECHO_T}no" >&6
11072 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11074 set dummy ${ncn_progname}; ac_word=$2
11075 echo "$as_me:$LINENO: checking for $ac_word" >&5
11076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11077 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11080 if test -n "$OBJDUMP_FOR_TARGET"; then
11081 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11087 test -z "$as_dir" && as_dir=.
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11090 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11099 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11100 if test -n "$OBJDUMP_FOR_TARGET"; then
11101 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11102 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
11104 echo "$as_me:$LINENO: result: no" >&5
11105 echo "${ECHO_T}no" >&6
11109 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11113 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11115 if test $build = $target ; then
11116 OBJDUMP_FOR_TARGET="$2"
11118 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11121 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
11125 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11131 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11132 if test -n "$with_build_time_tools"; then
11133 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
11134 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
11135 if test -x $with_build_time_tools/ranlib; then
11136 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11137 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11138 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11139 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
11141 echo "$as_me:$LINENO: result: no" >&5
11142 echo "${ECHO_T}no" >&6
11144 elif test $build != $host && test $have_gcc_for_target = yes; then
11145 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
11146 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11147 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11150 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11151 # Extract the first word of "ranlib", so it can be a program name with args.
11152 set dummy ranlib; ac_word=$2
11153 echo "$as_me:$LINENO: checking for $ac_word" >&5
11154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11155 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 case $RANLIB_FOR_TARGET in
11160 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $gcc_cv_tool_dirs
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11170 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11180 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11182 if test -n "$RANLIB_FOR_TARGET"; then
11183 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11184 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
11186 echo "$as_me:$LINENO: result: no" >&5
11187 echo "${ECHO_T}no" >&6
11191 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11194 if test -n "$RANLIB_FOR_TARGET"; then
11195 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11196 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11197 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11200 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11201 for ncn_progname in ranlib; do
11202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11203 set dummy ${ncn_progname}; ac_word=$2
11204 echo "$as_me:$LINENO: checking for $ac_word" >&5
11205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11206 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 if test -n "$RANLIB_FOR_TARGET"; then
11210 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11213 for as_dir in $PATH
11216 test -z "$as_dir" && as_dir=.
11217 for ac_exec_ext in '' $ac_executable_extensions; do
11218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11219 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11228 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11229 if test -n "$RANLIB_FOR_TARGET"; then
11230 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11231 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
11233 echo "$as_me:$LINENO: result: no" >&5
11234 echo "${ECHO_T}no" >&6
11240 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
11241 for ncn_progname in ranlib; do
11242 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11243 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11244 if test -x $with_build_time_tools/${ncn_progname}; then
11245 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11246 echo "$as_me:$LINENO: result: yes" >&5
11247 echo "${ECHO_T}yes" >&6
11250 echo "$as_me:$LINENO: result: no" >&5
11251 echo "${ECHO_T}no" >&6
11256 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11257 for ncn_progname in ranlib; do
11258 if test -n "$ncn_target_tool_prefix"; then
11259 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11260 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11261 echo "$as_me:$LINENO: checking for $ac_word" >&5
11262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11263 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 if test -n "$RANLIB_FOR_TARGET"; then
11267 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11285 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11286 if test -n "$RANLIB_FOR_TARGET"; then
11287 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11288 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
11290 echo "$as_me:$LINENO: result: no" >&5
11291 echo "${ECHO_T}no" >&6
11295 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11297 set dummy ${ncn_progname}; ac_word=$2
11298 echo "$as_me:$LINENO: checking for $ac_word" >&5
11299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11300 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 if test -n "$RANLIB_FOR_TARGET"; then
11304 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307 for as_dir in $PATH
11310 test -z "$as_dir" && as_dir=.
11311 for ac_exec_ext in '' $ac_executable_extensions; do
11312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11313 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11322 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11323 if test -n "$RANLIB_FOR_TARGET"; then
11324 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11325 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
11327 echo "$as_me:$LINENO: result: no" >&5
11328 echo "${ECHO_T}no" >&6
11332 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11336 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11338 if test $build = $target ; then
11339 RANLIB_FOR_TARGET="$2"
11341 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
11344 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
11348 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11354 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11355 if test -n "$with_build_time_tools"; then
11356 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
11357 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
11358 if test -x $with_build_time_tools/strip; then
11359 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11360 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11361 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11362 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
11364 echo "$as_me:$LINENO: result: no" >&5
11365 echo "${ECHO_T}no" >&6
11367 elif test $build != $host && test $have_gcc_for_target = yes; then
11368 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
11369 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11370 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11373 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11374 # Extract the first word of "strip", so it can be a program name with args.
11375 set dummy strip; ac_word=$2
11376 echo "$as_me:$LINENO: checking for $ac_word" >&5
11377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11378 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 case $STRIP_FOR_TARGET in
11383 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11387 for as_dir in $gcc_cv_tool_dirs
11390 test -z "$as_dir" && as_dir=.
11391 for ac_exec_ext in '' $ac_executable_extensions; do
11392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11393 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11403 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11405 if test -n "$STRIP_FOR_TARGET"; then
11406 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11407 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11409 echo "$as_me:$LINENO: result: no" >&5
11410 echo "${ECHO_T}no" >&6
11414 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11417 if test -n "$STRIP_FOR_TARGET"; then
11418 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11419 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11420 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11423 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11424 for ncn_progname in strip; do
11425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11426 set dummy ${ncn_progname}; ac_word=$2
11427 echo "$as_me:$LINENO: checking for $ac_word" >&5
11428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11429 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 if test -n "$STRIP_FOR_TARGET"; then
11433 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
11441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11442 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11451 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11452 if test -n "$STRIP_FOR_TARGET"; then
11453 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11454 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11456 echo "$as_me:$LINENO: result: no" >&5
11457 echo "${ECHO_T}no" >&6
11463 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11464 for ncn_progname in strip; do
11465 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11466 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11467 if test -x $with_build_time_tools/${ncn_progname}; then
11468 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11469 echo "$as_me:$LINENO: result: yes" >&5
11470 echo "${ECHO_T}yes" >&6
11473 echo "$as_me:$LINENO: result: no" >&5
11474 echo "${ECHO_T}no" >&6
11479 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11480 for ncn_progname in strip; do
11481 if test -n "$ncn_target_tool_prefix"; then
11482 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11483 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11484 echo "$as_me:$LINENO: checking for $ac_word" >&5
11485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11486 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 if test -n "$STRIP_FOR_TARGET"; then
11490 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493 for as_dir in $PATH
11496 test -z "$as_dir" && as_dir=.
11497 for ac_exec_ext in '' $ac_executable_extensions; do
11498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11499 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11508 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11509 if test -n "$STRIP_FOR_TARGET"; then
11510 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11511 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11513 echo "$as_me:$LINENO: result: no" >&5
11514 echo "${ECHO_T}no" >&6
11518 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11520 set dummy ${ncn_progname}; ac_word=$2
11521 echo "$as_me:$LINENO: checking for $ac_word" >&5
11522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11523 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11526 if test -n "$STRIP_FOR_TARGET"; then
11527 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $PATH
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11536 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11545 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11546 if test -n "$STRIP_FOR_TARGET"; then
11547 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11548 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
11550 echo "$as_me:$LINENO: result: no" >&5
11551 echo "${ECHO_T}no" >&6
11555 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11559 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11561 if test $build = $target ; then
11562 STRIP_FOR_TARGET="$2"
11564 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11567 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
11571 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11577 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11578 if test -n "$with_build_time_tools"; then
11579 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11580 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
11581 if test -x $with_build_time_tools/windres; then
11582 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11583 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11584 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11585 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
11587 echo "$as_me:$LINENO: result: no" >&5
11588 echo "${ECHO_T}no" >&6
11590 elif test $build != $host && test $have_gcc_for_target = yes; then
11591 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
11592 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11593 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11596 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11597 # Extract the first word of "windres", so it can be a program name with args.
11598 set dummy windres; ac_word=$2
11599 echo "$as_me:$LINENO: checking for $ac_word" >&5
11600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11601 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 case $WINDRES_FOR_TARGET in
11606 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610 for as_dir in $gcc_cv_tool_dirs
11613 test -z "$as_dir" && as_dir=.
11614 for ac_exec_ext in '' $ac_executable_extensions; do
11615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11616 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11626 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11628 if test -n "$WINDRES_FOR_TARGET"; then
11629 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11630 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11632 echo "$as_me:$LINENO: result: no" >&5
11633 echo "${ECHO_T}no" >&6
11637 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11640 if test -n "$WINDRES_FOR_TARGET"; then
11641 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11642 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11643 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11646 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11647 for ncn_progname in windres; do
11648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11649 set dummy ${ncn_progname}; ac_word=$2
11650 echo "$as_me:$LINENO: checking for $ac_word" >&5
11651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11652 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 if test -n "$WINDRES_FOR_TARGET"; then
11656 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11659 for as_dir in $PATH
11662 test -z "$as_dir" && as_dir=.
11663 for ac_exec_ext in '' $ac_executable_extensions; do
11664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11665 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11674 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11675 if test -n "$WINDRES_FOR_TARGET"; then
11676 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11677 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11679 echo "$as_me:$LINENO: result: no" >&5
11680 echo "${ECHO_T}no" >&6
11686 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
11687 for ncn_progname in windres; do
11688 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11689 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11690 if test -x $with_build_time_tools/${ncn_progname}; then
11691 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11692 echo "$as_me:$LINENO: result: yes" >&5
11693 echo "${ECHO_T}yes" >&6
11696 echo "$as_me:$LINENO: result: no" >&5
11697 echo "${ECHO_T}no" >&6
11702 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11703 for ncn_progname in windres; do
11704 if test -n "$ncn_target_tool_prefix"; then
11705 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11706 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11707 echo "$as_me:$LINENO: checking for $ac_word" >&5
11708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11709 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 if test -n "$WINDRES_FOR_TARGET"; then
11713 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11722 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11731 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11732 if test -n "$WINDRES_FOR_TARGET"; then
11733 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11734 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11736 echo "$as_me:$LINENO: result: no" >&5
11737 echo "${ECHO_T}no" >&6
11741 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11743 set dummy ${ncn_progname}; ac_word=$2
11744 echo "$as_me:$LINENO: checking for $ac_word" >&5
11745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11746 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11749 if test -n "$WINDRES_FOR_TARGET"; then
11750 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in $PATH
11756 test -z "$as_dir" && as_dir=.
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11759 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11768 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11769 if test -n "$WINDRES_FOR_TARGET"; then
11770 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11771 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11773 echo "$as_me:$LINENO: result: no" >&5
11774 echo "${ECHO_T}no" >&6
11778 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11782 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11784 if test $build = $target ; then
11785 WINDRES_FOR_TARGET="$2"
11787 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
11790 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
11794 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11800 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11801 if test -n "$with_build_time_tools"; then
11802 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11803 echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11804 if test -x $with_build_time_tools/windmc; then
11805 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11806 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11807 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11808 echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11810 echo "$as_me:$LINENO: result: no" >&5
11811 echo "${ECHO_T}no" >&6
11813 elif test $build != $host && test $have_gcc_for_target = yes; then
11814 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11815 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11816 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11819 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11820 # Extract the first word of "windmc", so it can be a program name with args.
11821 set dummy windmc; ac_word=$2
11822 echo "$as_me:$LINENO: checking for $ac_word" >&5
11823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11824 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 case $WINDMC_FOR_TARGET in
11829 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833 for as_dir in $gcc_cv_tool_dirs
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11849 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11851 if test -n "$WINDMC_FOR_TARGET"; then
11852 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11853 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11855 echo "$as_me:$LINENO: result: no" >&5
11856 echo "${ECHO_T}no" >&6
11860 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11863 if test -n "$WINDMC_FOR_TARGET"; then
11864 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11865 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11866 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11869 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11870 for ncn_progname in windmc; do
11871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11872 set dummy ${ncn_progname}; ac_word=$2
11873 echo "$as_me:$LINENO: checking for $ac_word" >&5
11874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11875 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 if test -n "$WINDMC_FOR_TARGET"; then
11879 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11882 for as_dir in $PATH
11885 test -z "$as_dir" && as_dir=.
11886 for ac_exec_ext in '' $ac_executable_extensions; do
11887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11888 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11897 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11898 if test -n "$WINDMC_FOR_TARGET"; then
11899 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11900 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11902 echo "$as_me:$LINENO: result: no" >&5
11903 echo "${ECHO_T}no" >&6
11909 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11910 for ncn_progname in windmc; do
11911 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11912 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11913 if test -x $with_build_time_tools/${ncn_progname}; then
11914 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11915 echo "$as_me:$LINENO: result: yes" >&5
11916 echo "${ECHO_T}yes" >&6
11919 echo "$as_me:$LINENO: result: no" >&5
11920 echo "${ECHO_T}no" >&6
11925 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11926 for ncn_progname in windmc; do
11927 if test -n "$ncn_target_tool_prefix"; then
11928 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11929 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11930 echo "$as_me:$LINENO: checking for $ac_word" >&5
11931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11932 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 if test -n "$WINDMC_FOR_TARGET"; then
11936 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11939 for as_dir in $PATH
11942 test -z "$as_dir" && as_dir=.
11943 for ac_exec_ext in '' $ac_executable_extensions; do
11944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11945 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11955 if test -n "$WINDMC_FOR_TARGET"; then
11956 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11957 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11959 echo "$as_me:$LINENO: result: no" >&5
11960 echo "${ECHO_T}no" >&6
11964 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11966 set dummy ${ncn_progname}; ac_word=$2
11967 echo "$as_me:$LINENO: checking for $ac_word" >&5
11968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11969 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11972 if test -n "$WINDMC_FOR_TARGET"; then
11973 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976 for as_dir in $PATH
11979 test -z "$as_dir" && as_dir=.
11980 for ac_exec_ext in '' $ac_executable_extensions; do
11981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11982 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11991 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11992 if test -n "$WINDMC_FOR_TARGET"; then
11993 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11994 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11996 echo "$as_me:$LINENO: result: no" >&5
11997 echo "${ECHO_T}no" >&6
12001 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12005 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12007 if test $build = $target ; then
12008 WINDMC_FOR_TARGET="$2"
12010 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12013 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12017 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12021 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12023 echo "$as_me:$LINENO: checking where to find the target ar" >&5
12024 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
12025 if test "x${build}" != "x${host}" ; then
12026 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12027 # We already found the complete path
12028 ac_dir=`dirname $AR_FOR_TARGET`
12029 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12030 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12032 # Canadian cross, just use what we found
12033 echo "$as_me:$LINENO: result: pre-installed" >&5
12034 echo "${ECHO_T}pre-installed" >&6
12038 case " ${configdirs} " in
12043 if test $ok = yes; then
12044 # An in-tree tool is available and we can use it
12045 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
12046 echo "$as_me:$LINENO: result: just compiled" >&5
12047 echo "${ECHO_T}just compiled" >&6
12048 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12049 # We already found the complete path
12050 ac_dir=`dirname $AR_FOR_TARGET`
12051 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12052 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12053 elif test "x$target" = "x$host"; then
12054 # We can use an host tool
12055 AR_FOR_TARGET='$(AR)'
12056 echo "$as_me:$LINENO: result: host tool" >&5
12057 echo "${ECHO_T}host tool" >&6
12059 # We need a cross tool
12060 echo "$as_me:$LINENO: result: pre-installed" >&5
12061 echo "${ECHO_T}pre-installed" >&6
12065 echo "$as_me:$LINENO: checking where to find the target as" >&5
12066 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
12067 if test "x${build}" != "x${host}" ; then
12068 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12069 # We already found the complete path
12070 ac_dir=`dirname $AS_FOR_TARGET`
12071 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12072 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12074 # Canadian cross, just use what we found
12075 echo "$as_me:$LINENO: result: pre-installed" >&5
12076 echo "${ECHO_T}pre-installed" >&6
12080 case " ${configdirs} " in
12085 if test $ok = yes; then
12086 # An in-tree tool is available and we can use it
12087 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
12088 echo "$as_me:$LINENO: result: just compiled" >&5
12089 echo "${ECHO_T}just compiled" >&6
12090 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12091 # We already found the complete path
12092 ac_dir=`dirname $AS_FOR_TARGET`
12093 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12094 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12095 elif test "x$target" = "x$host"; then
12096 # We can use an host tool
12097 AS_FOR_TARGET='$(AS)'
12098 echo "$as_me:$LINENO: result: host tool" >&5
12099 echo "${ECHO_T}host tool" >&6
12101 # We need a cross tool
12102 echo "$as_me:$LINENO: result: pre-installed" >&5
12103 echo "${ECHO_T}pre-installed" >&6
12107 echo "$as_me:$LINENO: checking where to find the target cc" >&5
12108 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
12109 if test "x${build}" != "x${host}" ; then
12110 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12111 # We already found the complete path
12112 ac_dir=`dirname $CC_FOR_TARGET`
12113 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12114 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12116 # Canadian cross, just use what we found
12117 echo "$as_me:$LINENO: result: pre-installed" >&5
12118 echo "${ECHO_T}pre-installed" >&6
12122 case " ${configdirs} " in
12127 if test $ok = yes; then
12128 # An in-tree tool is available and we can use it
12129 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12130 echo "$as_me:$LINENO: result: just compiled" >&5
12131 echo "${ECHO_T}just compiled" >&6
12132 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12133 # We already found the complete path
12134 ac_dir=`dirname $CC_FOR_TARGET`
12135 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12136 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12137 elif test "x$target" = "x$host"; then
12138 # We can use an host tool
12139 CC_FOR_TARGET='$(CC)'
12140 echo "$as_me:$LINENO: result: host tool" >&5
12141 echo "${ECHO_T}host tool" >&6
12143 # We need a cross tool
12144 echo "$as_me:$LINENO: result: pre-installed" >&5
12145 echo "${ECHO_T}pre-installed" >&6
12149 echo "$as_me:$LINENO: checking where to find the target c++" >&5
12150 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
12151 if test "x${build}" != "x${host}" ; then
12152 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12153 # We already found the complete path
12154 ac_dir=`dirname $CXX_FOR_TARGET`
12155 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12156 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12158 # Canadian cross, just use what we found
12159 echo "$as_me:$LINENO: result: pre-installed" >&5
12160 echo "${ECHO_T}pre-installed" >&6
12164 case " ${configdirs} " in
12168 case ,${enable_languages}, in
12172 if test $ok = yes; then
12173 # An in-tree tool is available and we can use it
12174 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'
12175 echo "$as_me:$LINENO: result: just compiled" >&5
12176 echo "${ECHO_T}just compiled" >&6
12177 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12178 # We already found the complete path
12179 ac_dir=`dirname $CXX_FOR_TARGET`
12180 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12181 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12182 elif test "x$target" = "x$host"; then
12183 # We can use an host tool
12184 CXX_FOR_TARGET='$(CXX)'
12185 echo "$as_me:$LINENO: result: host tool" >&5
12186 echo "${ECHO_T}host tool" >&6
12188 # We need a cross tool
12189 echo "$as_me:$LINENO: result: pre-installed" >&5
12190 echo "${ECHO_T}pre-installed" >&6
12194 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
12195 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
12196 if test "x${build}" != "x${host}" ; then
12197 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12198 # We already found the complete path
12199 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12200 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12201 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12203 # Canadian cross, just use what we found
12204 echo "$as_me:$LINENO: result: pre-installed" >&5
12205 echo "${ECHO_T}pre-installed" >&6
12209 case " ${configdirs} " in
12213 case ,${enable_languages}, in
12217 if test $ok = yes; then
12218 # An in-tree tool is available and we can use it
12219 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'
12220 echo "$as_me:$LINENO: result: just compiled" >&5
12221 echo "${ECHO_T}just compiled" >&6
12222 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12223 # We already found the complete path
12224 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12225 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12226 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12227 elif test "x$target" = "x$host"; then
12228 # We can use an host tool
12229 RAW_CXX_FOR_TARGET='$(CXX)'
12230 echo "$as_me:$LINENO: result: host tool" >&5
12231 echo "${ECHO_T}host tool" >&6
12233 # We need a cross tool
12234 echo "$as_me:$LINENO: result: pre-installed" >&5
12235 echo "${ECHO_T}pre-installed" >&6
12239 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
12240 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
12241 if test "x${build}" != "x${host}" ; then
12242 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12243 # We already found the complete path
12244 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12245 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12246 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12248 # Canadian cross, just use what we found
12249 echo "$as_me:$LINENO: result: pre-installed" >&5
12250 echo "${ECHO_T}pre-installed" >&6
12254 case " ${configdirs} " in
12259 if test $ok = yes; then
12260 # An in-tree tool is available and we can use it
12261 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
12262 echo "$as_me:$LINENO: result: just compiled" >&5
12263 echo "${ECHO_T}just compiled" >&6
12264 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12265 # We already found the complete path
12266 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12267 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12268 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12269 elif test "x$target" = "x$host"; then
12270 # We can use an host tool
12271 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
12272 echo "$as_me:$LINENO: result: host tool" >&5
12273 echo "${ECHO_T}host tool" >&6
12275 # We need a cross tool
12276 echo "$as_me:$LINENO: result: pre-installed" >&5
12277 echo "${ECHO_T}pre-installed" >&6
12281 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
12282 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
12283 if test "x${build}" != "x${host}" ; then
12284 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12285 # We already found the complete path
12286 ac_dir=`dirname $GCC_FOR_TARGET`
12287 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12288 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12290 # Canadian cross, just use what we found
12291 echo "$as_me:$LINENO: result: pre-installed" >&5
12292 echo "${ECHO_T}pre-installed" >&6
12296 case " ${configdirs} " in
12301 if test $ok = yes; then
12302 # An in-tree tool is available and we can use it
12303 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12304 echo "$as_me:$LINENO: result: just compiled" >&5
12305 echo "${ECHO_T}just compiled" >&6
12306 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12307 # We already found the complete path
12308 ac_dir=`dirname $GCC_FOR_TARGET`
12309 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12310 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12311 elif test "x$target" = "x$host"; then
12312 # We can use an host tool
12313 GCC_FOR_TARGET='$()'
12314 echo "$as_me:$LINENO: result: host tool" >&5
12315 echo "${ECHO_T}host tool" >&6
12317 # We need a cross tool
12318 echo "$as_me:$LINENO: result: pre-installed" >&5
12319 echo "${ECHO_T}pre-installed" >&6
12323 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
12324 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
12325 if test "x${build}" != "x${host}" ; then
12326 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12327 # We already found the complete path
12328 ac_dir=`dirname $GCJ_FOR_TARGET`
12329 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12330 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12332 # Canadian cross, just use what we found
12333 echo "$as_me:$LINENO: result: pre-installed" >&5
12334 echo "${ECHO_T}pre-installed" >&6
12338 case " ${configdirs} " in
12342 case ,${enable_languages}, in
12346 if test $ok = yes; then
12347 # An in-tree tool is available and we can use it
12348 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
12349 echo "$as_me:$LINENO: result: just compiled" >&5
12350 echo "${ECHO_T}just compiled" >&6
12351 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12352 # We already found the complete path
12353 ac_dir=`dirname $GCJ_FOR_TARGET`
12354 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12355 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12356 elif test "x$target" = "x$host"; then
12357 # We can use an host tool
12358 GCJ_FOR_TARGET='$(GCJ)'
12359 echo "$as_me:$LINENO: result: host tool" >&5
12360 echo "${ECHO_T}host tool" >&6
12362 # We need a cross tool
12363 echo "$as_me:$LINENO: result: pre-installed" >&5
12364 echo "${ECHO_T}pre-installed" >&6
12368 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12369 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
12370 if test "x${build}" != "x${host}" ; then
12371 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12372 # We already found the complete path
12373 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12374 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12375 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12377 # Canadian cross, just use what we found
12378 echo "$as_me:$LINENO: result: pre-installed" >&5
12379 echo "${ECHO_T}pre-installed" >&6
12383 case " ${configdirs} " in
12387 case ,${enable_languages}, in
12391 if test $ok = yes; then
12392 # An in-tree tool is available and we can use it
12393 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
12394 echo "$as_me:$LINENO: result: just compiled" >&5
12395 echo "${ECHO_T}just compiled" >&6
12396 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12397 # We already found the complete path
12398 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12399 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12400 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12401 elif test "x$target" = "x$host"; then
12402 # We can use an host tool
12403 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
12404 echo "$as_me:$LINENO: result: host tool" >&5
12405 echo "${ECHO_T}host tool" >&6
12407 # We need a cross tool
12408 echo "$as_me:$LINENO: result: pre-installed" >&5
12409 echo "${ECHO_T}pre-installed" >&6
12413 echo "$as_me:$LINENO: checking where to find the target ld" >&5
12414 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
12415 if test "x${build}" != "x${host}" ; then
12416 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12417 # We already found the complete path
12418 ac_dir=`dirname $LD_FOR_TARGET`
12419 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12420 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12422 # Canadian cross, just use what we found
12423 echo "$as_me:$LINENO: result: pre-installed" >&5
12424 echo "${ECHO_T}pre-installed" >&6
12428 case " ${configdirs} " in
12433 if test $ok = yes; then
12434 # An in-tree tool is available and we can use it
12435 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
12436 echo "$as_me:$LINENO: result: just compiled" >&5
12437 echo "${ECHO_T}just compiled" >&6
12438 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12439 # We already found the complete path
12440 ac_dir=`dirname $LD_FOR_TARGET`
12441 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12442 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12443 elif test "x$target" = "x$host"; then
12444 # We can use an host tool
12445 LD_FOR_TARGET='$(LD)'
12446 echo "$as_me:$LINENO: result: host tool" >&5
12447 echo "${ECHO_T}host tool" >&6
12449 # We need a cross tool
12450 echo "$as_me:$LINENO: result: pre-installed" >&5
12451 echo "${ECHO_T}pre-installed" >&6
12455 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12456 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
12457 if test "x${build}" != "x${host}" ; then
12458 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12459 # We already found the complete path
12460 ac_dir=`dirname $LIPO_FOR_TARGET`
12461 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12462 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12464 # Canadian cross, just use what we found
12465 echo "$as_me:$LINENO: result: pre-installed" >&5
12466 echo "${ECHO_T}pre-installed" >&6
12469 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12470 # We already found the complete path
12471 ac_dir=`dirname $LIPO_FOR_TARGET`
12472 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12473 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12474 elif test "x$target" = "x$host"; then
12475 # We can use an host tool
12476 LIPO_FOR_TARGET='$(LIPO)'
12477 echo "$as_me:$LINENO: result: host tool" >&5
12478 echo "${ECHO_T}host tool" >&6
12480 # We need a cross tool
12481 echo "$as_me:$LINENO: result: pre-installed" >&5
12482 echo "${ECHO_T}pre-installed" >&6
12486 echo "$as_me:$LINENO: checking where to find the target nm" >&5
12487 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
12488 if test "x${build}" != "x${host}" ; then
12489 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12490 # We already found the complete path
12491 ac_dir=`dirname $NM_FOR_TARGET`
12492 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12493 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12495 # Canadian cross, just use what we found
12496 echo "$as_me:$LINENO: result: pre-installed" >&5
12497 echo "${ECHO_T}pre-installed" >&6
12501 case " ${configdirs} " in
12506 if test $ok = yes; then
12507 # An in-tree tool is available and we can use it
12508 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
12509 echo "$as_me:$LINENO: result: just compiled" >&5
12510 echo "${ECHO_T}just compiled" >&6
12511 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12512 # We already found the complete path
12513 ac_dir=`dirname $NM_FOR_TARGET`
12514 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12515 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12516 elif test "x$target" = "x$host"; then
12517 # We can use an host tool
12518 NM_FOR_TARGET='$(NM)'
12519 echo "$as_me:$LINENO: result: host tool" >&5
12520 echo "${ECHO_T}host tool" >&6
12522 # We need a cross tool
12523 echo "$as_me:$LINENO: result: pre-installed" >&5
12524 echo "${ECHO_T}pre-installed" >&6
12528 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12529 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
12530 if test "x${build}" != "x${host}" ; then
12531 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12532 # We already found the complete path
12533 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12534 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12535 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12537 # Canadian cross, just use what we found
12538 echo "$as_me:$LINENO: result: pre-installed" >&5
12539 echo "${ECHO_T}pre-installed" >&6
12543 case " ${configdirs} " in
12548 if test $ok = yes; then
12549 # An in-tree tool is available and we can use it
12550 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
12551 echo "$as_me:$LINENO: result: just compiled" >&5
12552 echo "${ECHO_T}just compiled" >&6
12553 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12554 # We already found the complete path
12555 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12556 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12557 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12558 elif test "x$target" = "x$host"; then
12559 # We can use an host tool
12560 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
12561 echo "$as_me:$LINENO: result: host tool" >&5
12562 echo "${ECHO_T}host tool" >&6
12564 # We need a cross tool
12565 echo "$as_me:$LINENO: result: pre-installed" >&5
12566 echo "${ECHO_T}pre-installed" >&6
12570 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12571 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
12572 if test "x${build}" != "x${host}" ; then
12573 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12574 # We already found the complete path
12575 ac_dir=`dirname $RANLIB_FOR_TARGET`
12576 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12577 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12579 # Canadian cross, just use what we found
12580 echo "$as_me:$LINENO: result: pre-installed" >&5
12581 echo "${ECHO_T}pre-installed" >&6
12585 case " ${configdirs} " in
12590 if test $ok = yes; then
12591 # An in-tree tool is available and we can use it
12592 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
12593 echo "$as_me:$LINENO: result: just compiled" >&5
12594 echo "${ECHO_T}just compiled" >&6
12595 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12596 # We already found the complete path
12597 ac_dir=`dirname $RANLIB_FOR_TARGET`
12598 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12599 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12600 elif test "x$target" = "x$host"; then
12601 # We can use an host tool
12602 RANLIB_FOR_TARGET='$(RANLIB)'
12603 echo "$as_me:$LINENO: result: host tool" >&5
12604 echo "${ECHO_T}host tool" >&6
12606 # We need a cross tool
12607 echo "$as_me:$LINENO: result: pre-installed" >&5
12608 echo "${ECHO_T}pre-installed" >&6
12612 echo "$as_me:$LINENO: checking where to find the target strip" >&5
12613 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
12614 if test "x${build}" != "x${host}" ; then
12615 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12616 # We already found the complete path
12617 ac_dir=`dirname $STRIP_FOR_TARGET`
12618 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12619 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12621 # Canadian cross, just use what we found
12622 echo "$as_me:$LINENO: result: pre-installed" >&5
12623 echo "${ECHO_T}pre-installed" >&6
12627 case " ${configdirs} " in
12632 if test $ok = yes; then
12633 # An in-tree tool is available and we can use it
12634 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
12635 echo "$as_me:$LINENO: result: just compiled" >&5
12636 echo "${ECHO_T}just compiled" >&6
12637 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12638 # We already found the complete path
12639 ac_dir=`dirname $STRIP_FOR_TARGET`
12640 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12641 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12642 elif test "x$target" = "x$host"; then
12643 # We can use an host tool
12644 STRIP_FOR_TARGET='$(STRIP)'
12645 echo "$as_me:$LINENO: result: host tool" >&5
12646 echo "${ECHO_T}host tool" >&6
12648 # We need a cross tool
12649 echo "$as_me:$LINENO: result: pre-installed" >&5
12650 echo "${ECHO_T}pre-installed" >&6
12654 echo "$as_me:$LINENO: checking where to find the target windres" >&5
12655 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
12656 if test "x${build}" != "x${host}" ; then
12657 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12658 # We already found the complete path
12659 ac_dir=`dirname $WINDRES_FOR_TARGET`
12660 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12661 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12663 # Canadian cross, just use what we found
12664 echo "$as_me:$LINENO: result: pre-installed" >&5
12665 echo "${ECHO_T}pre-installed" >&6
12669 case " ${configdirs} " in
12674 if test $ok = yes; then
12675 # An in-tree tool is available and we can use it
12676 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
12677 echo "$as_me:$LINENO: result: just compiled" >&5
12678 echo "${ECHO_T}just compiled" >&6
12679 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12680 # We already found the complete path
12681 ac_dir=`dirname $WINDRES_FOR_TARGET`
12682 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12683 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12684 elif test "x$target" = "x$host"; then
12685 # We can use an host tool
12686 WINDRES_FOR_TARGET='$(WINDRES)'
12687 echo "$as_me:$LINENO: result: host tool" >&5
12688 echo "${ECHO_T}host tool" >&6
12690 # We need a cross tool
12691 echo "$as_me:$LINENO: result: pre-installed" >&5
12692 echo "${ECHO_T}pre-installed" >&6
12696 echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12697 echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12698 if test "x${build}" != "x${host}" ; then
12699 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12700 # We already found the complete path
12701 ac_dir=`dirname $WINDMC_FOR_TARGET`
12702 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12703 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12705 # Canadian cross, just use what we found
12706 echo "$as_me:$LINENO: result: pre-installed" >&5
12707 echo "${ECHO_T}pre-installed" >&6
12711 case " ${configdirs} " in
12716 if test $ok = yes; then
12717 # An in-tree tool is available and we can use it
12718 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12719 echo "$as_me:$LINENO: result: just compiled" >&5
12720 echo "${ECHO_T}just compiled" >&6
12721 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12722 # We already found the complete path
12723 ac_dir=`dirname $WINDMC_FOR_TARGET`
12724 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12725 echo "${ECHO_T}pre-installed in $ac_dir" >&6
12726 elif test "x$target" = "x$host"; then
12727 # We can use an host tool
12728 WINDMC_FOR_TARGET='$(WINDMC)'
12729 echo "$as_me:$LINENO: result: host tool" >&5
12730 echo "${ECHO_T}host tool" >&6
12732 # We need a cross tool
12733 echo "$as_me:$LINENO: result: pre-installed" >&5
12734 echo "${ECHO_T}pre-installed" >&6
12742 # Certain tools may need extra flags.
12743 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12744 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12745 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12747 # When building target libraries, except in a Canadian cross, we use
12748 # the same toolchain as the compiler we just built.
12749 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12750 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12751 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12752 if test $host = $build; then
12753 case " $configdirs " in
12755 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12756 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12757 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12766 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12767 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12768 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12769 if test "${enable_maintainer_mode+set}" = set; then
12770 enableval="$enable_maintainer_mode"
12771 USE_MAINTAINER_MODE=$enableval
12773 USE_MAINTAINER_MODE=no
12775 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12776 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12779 if test "$USE_MAINTAINER_MODE" = yes; then
12780 MAINTAINER_MODE_TRUE=
12781 MAINTAINER_MODE_FALSE='#'
12783 MAINTAINER_MODE_TRUE='#'
12784 MAINTAINER_MODE_FALSE=
12786 MAINT=$MAINTAINER_MODE_TRUE
12788 # ---------------------
12789 # GCC bootstrap support
12790 # ---------------------
12792 # Stage specific cflags for build.
12797 yes) stage1_cflags="-g -Wa,-J" ;;
12798 *) stage1_cflags="-g -J" ;;
12802 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12803 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
12804 saved_CFLAGS="$CFLAGS"
12806 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12807 CFLAGS="$CFLAGS -fkeep-inline-functions"
12808 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12809 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12810 cat >conftest.$ac_ext <<_ACEOF
12813 cat confdefs.h >>conftest.$ac_ext
12814 cat >>conftest.$ac_ext <<_ACEOF
12815 /* end confdefs.h. */
12817 #if (__GNUC__ < 3) \
12818 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12819 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12820 #error http://gcc.gnu.org/PR29382
12831 rm -f conftest.$ac_objext
12832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12833 (eval $ac_compile) 2>conftest.er1
12835 grep -v '^ *+' conftest.er1 >conftest.err
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
12840 { ac_try='test -z "$ac_c_werror_flag"
12841 || test ! -s conftest.err'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest.$ac_objext'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; }; then
12853 echo "$as_me:$LINENO: result: yes" >&5
12854 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12856 echo "$as_me: failed program was:" >&5
12857 sed 's/^/| /' conftest.$ac_ext >&5
12859 echo "$as_me:$LINENO: result: no" >&5
12860 echo "${ECHO_T}no" >&6
12862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12864 CFLAGS="$saved_CFLAGS"
12869 # Enable --enable-checking in stage1 of the compiler.
12870 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12871 if test "${enable_stage1_checking+set}" = set; then
12872 enableval="$enable_stage1_checking"
12873 stage1_checking=--enable-checking=${enable_stage1_checking}
12875 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
12876 stage1_checking=--enable-checking=yes,types
12878 stage1_checking=--enable-checking=$enable_checking,types
12883 # Enable -Werror in bootstrap stage2 and later.
12884 # Check whether --enable-werror or --disable-werror was given.
12885 if test "${enable_werror+set}" = set; then
12886 enableval="$enable_werror"
12889 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12895 case ${enable_werror} in
12896 yes) stage2_werror_flag="--enable-werror-always" ;;
12897 *) stage2_werror_flag="" ;;
12901 # Flags needed to enable html installing and building
12903 # Check whether --with-datarootdir or --without-datarootdir was given.
12904 if test "${with_datarootdir+set}" = set; then
12905 withval="$with_datarootdir"
12906 datarootdir="\${prefix}/${withval}"
12908 datarootdir="\${prefix}/share"
12912 # Check whether --with-docdir or --without-docdir was given.
12913 if test "${with_docdir+set}" = set; then
12914 withval="$with_docdir"
12915 docdir="\${prefix}/${withval}"
12917 docdir="\${datarootdir}/doc"
12921 # Check whether --with-pdfdir or --without-pdfdir was given.
12922 if test "${with_pdfdir+set}" = set; then
12923 withval="$with_pdfdir"
12924 pdfdir="\${prefix}/${withval}"
12926 pdfdir="\${docdir}"
12930 # Check whether --with-htmldir or --without-htmldir was given.
12931 if test "${with_htmldir+set}" = set; then
12932 withval="$with_htmldir"
12933 htmldir="\${prefix}/${withval}"
12935 htmldir="\${docdir}"
12943 # Specify what files to not compare during bootstrap.
12945 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
12947 hppa*64*-*-hpux*) ;;
12948 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
12952 ac_config_files="$ac_config_files Makefile"
12953 cat >confcache <<\_ACEOF
12954 # This file is a shell script that caches the results of configure
12955 # tests run on this system so they can be shared between configure
12956 # scripts and configure runs, see configure's option --config-cache.
12957 # It is not useful on other systems. If it contains results you don't
12958 # want to keep, you may remove or edit it.
12960 # config.status only pays attention to the cache file if you give it
12961 # the --recheck option to rerun configure.
12963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12965 # following values.
12969 # The following way of writing the cache mishandles newlines in values,
12970 # but we know of no workaround that is simple, portable, and efficient.
12971 # So, don't put newlines in cache variables' values.
12972 # Ultrix sh set writes to stderr and can't be redirected directly,
12973 # and sets the high bit in the cache file unless we assign to the vars.
12976 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12978 # `set' does not quote correctly, so add quotes (double-quote
12979 # substitution turns \\\\ into \\, and sed turns \\ into \).
12982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12985 # `set' quotes correctly as required by POSIX, so do not add quotes.
12987 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12996 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12998 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12999 if test -w $cache_file; then
13000 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13001 cat confcache >$cache_file
13003 echo "not updating unwritable cache $cache_file"
13008 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13009 # Let make expand exec_prefix.
13010 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13012 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13013 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13014 # trailing colons and then remove the whole line if VPATH becomes empty
13015 # (actually we leave an empty line to preserve line numbers).
13016 if test "x$srcdir" = x.; then
13017 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13018 s/:*\$(srcdir):*/:/;
13019 s/:*\${srcdir}:*/:/;
13021 s/^\([^=]*=[ ]*\):*/\1/;
13027 # Transform confdefs.h into DEFS.
13028 # Protect against shell expansion while executing Makefile rules.
13029 # Protect against Makefile macro expansion.
13031 # If the first sed substitution is executed (which looks for macros that
13032 # take arguments), then we branch to the quote section. Otherwise,
13033 # look for a macro that doesn't take arguments.
13034 cat >confdef2opt.sed <<\_ACEOF
13037 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
13039 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
13043 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
13049 # We use echo to avoid assuming a particular line-breaking character.
13050 # The extra dot is to prevent the shell from consuming trailing
13051 # line-breaks from the sub-command output. A line-break within
13052 # single-quotes doesn't work because, if this script is created in a
13053 # platform that uses two characters for line-breaks (e.g., DOS), tr
13055 ac_LF_and_DOT=`echo; echo .`
13056 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
13057 rm -f confdef2opt.sed
13062 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13063 # 1. Remove the extension, and $U if already installed.
13064 ac_i=`echo "$ac_i" |
13065 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13067 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13068 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13070 LIBOBJS=$ac_libobjs
13072 LTLIBOBJS=$ac_ltlibobjs
13076 : ${CONFIG_STATUS=./config.status}
13077 ac_clean_files_save=$ac_clean_files
13078 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13079 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13080 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13081 cat >$CONFIG_STATUS <<_ACEOF
13083 # Generated by $as_me.
13084 # Run this file to recreate the current configuration.
13085 # Compiler output produced by configure, useful for debugging
13086 # configure, is in config.log if it exists.
13089 ac_cs_recheck=false
13091 SHELL=\${CONFIG_SHELL-$SHELL}
13094 cat >>$CONFIG_STATUS <<\_ACEOF
13095 ## --------------------- ##
13096 ## M4sh Initialization. ##
13097 ## --------------------- ##
13099 # Be Bourne compatible
13100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13103 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13104 # is contrary to our usage. Disable this feature.
13105 alias -g '${1+"$@"}'='"$@"'
13106 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13109 DUALCASE=1; export DUALCASE # for MKS sh
13111 # Support unset when possible.
13112 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13119 # Work around bugs in pre-3.0 UWIN ksh.
13120 $as_unset ENV MAIL MAILPATH
13127 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13128 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13129 LC_TELEPHONE LC_TIME
13131 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13132 eval $as_var=C; export $as_var
13138 # Required to use basename.
13139 if expr a : '\(a\)' >/dev/null 2>&1; then
13145 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13146 as_basename=basename
13152 # Name of the executable.
13153 as_me=`$as_basename "$0" ||
13154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13155 X"$0" : 'X\(//\)$' \| \
13156 X"$0" : 'X\(/\)$' \| \
13157 . : '\(.\)' 2>/dev/null ||
13159 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13160 /^X\/\(\/\/\)$/{ s//\1/; q; }
13161 /^X\/\(\/\).*/{ s//\1/; q; }
13165 # PATH needs CR, and LINENO needs CR and PATH.
13166 # Avoid depending upon Character Ranges.
13167 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13168 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13169 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13170 as_cr_digits='0123456789'
13171 as_cr_alnum=$as_cr_Letters$as_cr_digits
13173 # The user is always right.
13174 if test "${PATH_SEPARATOR+set}" != set; then
13175 echo "#! /bin/sh" >conf$$.sh
13176 echo "exit 0" >>conf$$.sh
13178 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13187 as_lineno_1=$LINENO
13188 as_lineno_2=$LINENO
13189 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13190 test "x$as_lineno_1" != "x$as_lineno_2" &&
13191 test "x$as_lineno_3" = "x$as_lineno_2" || {
13192 # Find who we are. Look in the path if we contain no path at all
13195 *[\\/]* ) as_myself=$0 ;;
13196 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197 for as_dir in $PATH
13200 test -z "$as_dir" && as_dir=.
13201 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13206 # We did not find ourselves, most probably we were run as `sh COMMAND'
13207 # in which case we are not to be found in the path.
13208 if test "x$as_myself" = x; then
13211 if test ! -f "$as_myself"; then
13212 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13213 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13214 { (exit 1); exit 1; }; }
13216 case $CONFIG_SHELL in
13218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13219 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13222 test -z "$as_dir" && as_dir=.
13223 for as_base in sh bash ksh sh5; do
13226 if ("$as_dir/$as_base" -c '
13227 as_lineno_1=$LINENO
13228 as_lineno_2=$LINENO
13229 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13230 test "x$as_lineno_1" != "x$as_lineno_2" &&
13231 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13232 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13233 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13234 CONFIG_SHELL=$as_dir/$as_base
13235 export CONFIG_SHELL
13236 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13244 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13245 # uniformly replaced by the line number. The first 'sed' inserts a
13246 # line-number line before each line; the second 'sed' does the real
13247 # work. The second script uses 'N' to pair each line-number line
13248 # with the numbered line, and appends trailing '-' during
13249 # substitution so that $LINENO is not a special case at line end.
13250 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13251 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13252 sed '=' <$as_myself |
13257 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13260 s,^['$as_cr_digits']*\n,,
13261 ' >$as_me.lineno &&
13262 chmod +x $as_me.lineno ||
13263 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13264 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13265 { (exit 1); exit 1; }; }
13267 # Don't try to exec as it changes $[0], causing all sort of problems
13268 # (the dirname of $[0] is not the place where we might find the
13269 # original and so on. Autoconf is especially sensible to this).
13271 # Exit status is that of the last command.
13276 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13277 *c*,-n*) ECHO_N= ECHO_C='
13279 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13280 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13283 if expr a : '\(a\)' >/dev/null 2>&1; then
13289 rm -f conf$$ conf$$.exe conf$$.file
13291 if ln -s conf$$.file conf$$ 2>/dev/null; then
13292 # We could just check for DJGPP; but this test a) works b) is more generic
13293 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13294 if test -f conf$$.exe; then
13295 # Don't use ln at all; we don't have any links
13300 elif ln conf$$.file conf$$ 2>/dev/null; then
13305 rm -f conf$$ conf$$.exe conf$$.file
13307 if mkdir -p . 2>/dev/null; then
13310 test -d ./-p && rmdir ./-p
13314 as_executable_p="test -f"
13316 # Sed expression to map a string onto a valid CPP name.
13317 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13319 # Sed expression to map a string onto a valid variable name.
13320 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13324 # We need space, tab and new line, in precisely that order.
13334 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13335 # report actual input values of CONFIG_FILES etc. instead of their
13336 # values after options handling. Logging --version etc. is OK.
13340 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13341 ## Running $as_me. ##
13346 This file was extended by $as_me, which was
13347 generated by GNU Autoconf 2.59. Invocation command line was
13349 CONFIG_FILES = $CONFIG_FILES
13350 CONFIG_HEADERS = $CONFIG_HEADERS
13351 CONFIG_LINKS = $CONFIG_LINKS
13352 CONFIG_COMMANDS = $CONFIG_COMMANDS
13356 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13360 # Files that config.status was made for.
13361 if test -n "$ac_config_files"; then
13362 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13365 if test -n "$ac_config_headers"; then
13366 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13369 if test -n "$ac_config_links"; then
13370 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13373 if test -n "$ac_config_commands"; then
13374 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13377 cat >>$CONFIG_STATUS <<\_ACEOF
13380 \`$as_me' instantiates files from templates according to the
13381 current configuration.
13383 Usage: $0 [OPTIONS] [FILE]...
13385 -h, --help print this help, then exit
13386 -V, --version print version number, then exit
13387 -q, --quiet do not print progress messages
13388 -d, --debug don't remove temporary files
13389 --recheck update $as_me by reconfiguring in the same conditions
13390 --file=FILE[:TEMPLATE]
13391 instantiate the configuration file FILE
13393 Configuration files:
13396 Report bugs to <bug-autoconf@gnu.org>."
13399 cat >>$CONFIG_STATUS <<_ACEOF
13402 configured by $0, generated by GNU Autoconf 2.59,
13403 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13405 Copyright (C) 2003 Free Software Foundation, Inc.
13406 This config.status script is free software; the Free Software Foundation
13407 gives unlimited permission to copy, distribute and modify it."
13412 cat >>$CONFIG_STATUS <<\_ACEOF
13413 # If no file are specified by the user, then we need to provide default
13414 # value. By we need to know if files were specified by the user.
13420 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13421 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13429 *) # This is not an option, so the user has probably given explicit
13432 ac_need_defaults=false;;
13436 # Handling of the options.
13438 cat >>$CONFIG_STATUS <<\_ACEOF
13439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13441 --version | --vers* | -V )
13442 echo "$ac_cs_version"; exit 0 ;;
13444 # Conflict between --help and --header
13445 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13446 Try \`$0 --help' for more information." >&5
13447 echo "$as_me: error: ambiguous option: $1
13448 Try \`$0 --help' for more information." >&2;}
13449 { (exit 1); exit 1; }; };;
13450 --help | --hel | -h )
13451 echo "$ac_cs_usage"; exit 0 ;;
13452 --debug | --d* | -d )
13454 --file | --fil | --fi | --f )
13456 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13457 ac_need_defaults=false;;
13458 --header | --heade | --head | --hea )
13460 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13461 ac_need_defaults=false;;
13462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13463 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13466 # This is an error.
13467 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13468 Try \`$0 --help' for more information." >&5
13469 echo "$as_me: error: unrecognized option: $1
13470 Try \`$0 --help' for more information." >&2;}
13471 { (exit 1); exit 1; }; } ;;
13473 *) ac_config_targets="$ac_config_targets $1" ;;
13479 ac_configure_extra_args=
13481 if $ac_cs_silent; then
13483 ac_configure_extra_args="$ac_configure_extra_args --silent"
13487 cat >>$CONFIG_STATUS <<_ACEOF
13488 if \$ac_cs_recheck; then
13489 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13490 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13499 cat >>$CONFIG_STATUS <<\_ACEOF
13500 for ac_config_target in $ac_config_targets
13502 case "$ac_config_target" in
13503 # Handling of arguments.
13504 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13505 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13506 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13507 { (exit 1); exit 1; }; };;
13511 # If the user did not use the arguments to specify the items to instantiate,
13512 # then the envvar interface is used. Set only those that are not.
13513 # We use the long form for the default assignment because of an extremely
13514 # bizarre bug on SunOS 4.1.3.
13515 if $ac_need_defaults; then
13516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13519 # Have a temporary directory for convenience. Make it in the build tree
13520 # simply because there is no reason to put it here, and in addition,
13521 # creating and moving files from /tmp can sometimes cause problems.
13522 # Create a temporary directory, and hook for its removal unless debugging.
13525 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13526 trap '{ (exit 1); exit 1; }' 1 2 13 15
13529 # Create a (secure) tmp directory for tmp files.
13532 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13533 test -n "$tmp" && test -d "$tmp"
13536 tmp=./confstat$$-$RANDOM
13537 (umask 077 && mkdir $tmp)
13540 echo "$me: cannot create a temporary directory in ." >&2
13541 { (exit 1); exit 1; }
13546 cat >>$CONFIG_STATUS <<_ACEOF
13549 # CONFIG_FILES section.
13552 # No need to generate the scripts if there are no CONFIG_FILES.
13553 # This happens for instance when ./config.status config.h
13554 if test -n "\$CONFIG_FILES"; then
13555 # Protect against being on the right side of a sed subst in config.status.
13556 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13557 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13558 s,@SHELL@,$SHELL,;t t
13559 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13560 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13561 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13562 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13563 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13564 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13565 s,@exec_prefix@,$exec_prefix,;t t
13566 s,@prefix@,$prefix,;t t
13567 s,@program_transform_name@,$program_transform_name,;t t
13568 s,@bindir@,$bindir,;t t
13569 s,@sbindir@,$sbindir,;t t
13570 s,@libexecdir@,$libexecdir,;t t
13571 s,@datadir@,$datadir,;t t
13572 s,@sysconfdir@,$sysconfdir,;t t
13573 s,@sharedstatedir@,$sharedstatedir,;t t
13574 s,@localstatedir@,$localstatedir,;t t
13575 s,@libdir@,$libdir,;t t
13576 s,@includedir@,$includedir,;t t
13577 s,@oldincludedir@,$oldincludedir,;t t
13578 s,@infodir@,$infodir,;t t
13579 s,@mandir@,$mandir,;t t
13580 s,@build_alias@,$build_alias,;t t
13581 s,@host_alias@,$host_alias,;t t
13582 s,@target_alias@,$target_alias,;t t
13583 s,@DEFS@,$DEFS,;t t
13584 s,@ECHO_C@,$ECHO_C,;t t
13585 s,@ECHO_N@,$ECHO_N,;t t
13586 s,@ECHO_T@,$ECHO_T,;t t
13587 s,@LIBS@,$LIBS,;t t
13588 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
13589 s,@build@,$build,;t t
13590 s,@build_cpu@,$build_cpu,;t t
13591 s,@build_vendor@,$build_vendor,;t t
13592 s,@build_os@,$build_os,;t t
13593 s,@build_noncanonical@,$build_noncanonical,;t t
13594 s,@host_noncanonical@,$host_noncanonical,;t t
13595 s,@target_noncanonical@,$target_noncanonical,;t t
13596 s,@host@,$host,;t t
13597 s,@host_cpu@,$host_cpu,;t t
13598 s,@host_vendor@,$host_vendor,;t t
13599 s,@host_os@,$host_os,;t t
13600 s,@target@,$target,;t t
13601 s,@target_cpu@,$target_cpu,;t t
13602 s,@target_vendor@,$target_vendor,;t t
13603 s,@target_os@,$target_os,;t t
13604 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13605 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13606 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13608 s,@LN_S@,$LN_S,;t t
13609 s,@build_libsubdir@,$build_libsubdir,;t t
13610 s,@build_subdir@,$build_subdir,;t t
13611 s,@host_subdir@,$host_subdir,;t t
13612 s,@target_subdir@,$target_subdir,;t t
13614 s,@CFLAGS@,$CFLAGS,;t t
13615 s,@LDFLAGS@,$LDFLAGS,;t t
13616 s,@CPPFLAGS@,$CPPFLAGS,;t t
13617 s,@ac_ct_CC@,$ac_ct_CC,;t t
13618 s,@EXEEXT@,$EXEEXT,;t t
13619 s,@OBJEXT@,$OBJEXT,;t t
13621 s,@CXXFLAGS@,$CXXFLAGS,;t t
13622 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13623 s,@GNATBIND@,$GNATBIND,;t t
13624 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13625 s,@GNATMAKE@,$GNATMAKE,;t t
13626 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
13627 s,@do_compare@,$do_compare,;t t
13628 s,@gmplibs@,$gmplibs,;t t
13629 s,@gmpinc@,$gmpinc,;t t
13630 s,@extra_mpfr_configure_flags@,$extra_mpfr_configure_flags,;t t
13631 s,@extra_mpc_gmp_configure_flags@,$extra_mpc_gmp_configure_flags,;t t
13632 s,@extra_mpc_mpfr_configure_flags@,$extra_mpc_mpfr_configure_flags,;t t
13633 s,@stage1_ldflags@,$stage1_ldflags,;t t
13634 s,@stage1_libs@,$stage1_libs,;t t
13635 s,@poststage1_ldflags@,$poststage1_ldflags,;t t
13636 s,@poststage1_libs@,$poststage1_libs,;t t
13637 s,@ppllibs@,$ppllibs,;t t
13638 s,@pplinc@,$pplinc,;t t
13639 s,@clooglibs@,$clooglibs,;t t
13640 s,@clooginc@,$clooginc,;t t
13641 s,@stage1_languages@,$stage1_languages,;t t
13642 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
13643 s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
13644 s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13645 s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
13646 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
13647 s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
13648 s,@tooldir@,$tooldir,;t t
13649 s,@build_tooldir@,$build_tooldir,;t t
13650 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13651 s,@GDB_TK@,$GDB_TK,;t t
13652 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13653 s,@build_configargs@,$build_configargs,;t t
13654 s,@build_configdirs@,$build_configdirs,;t t
13655 s,@host_configargs@,$host_configargs,;t t
13656 s,@configdirs@,$configdirs,;t t
13657 s,@target_configargs@,$target_configargs,;t t
13658 s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13659 s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
13660 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13661 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13662 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13663 s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13664 s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13665 s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13666 s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13667 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13668 s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13669 s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13670 s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13671 s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13672 s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
13673 s,@config_shell@,$config_shell,;t t
13674 s,@YACC@,$YACC,;t t
13675 s,@BISON@,$BISON,;t t
13678 s,@FLEX@,$FLEX,;t t
13679 s,@MAKEINFO@,$MAKEINFO,;t t
13680 s,@EXPECT@,$EXPECT,;t t
13681 s,@RUNTEST@,$RUNTEST,;t t
13684 s,@DLLTOOL@,$DLLTOOL,;t t
13686 s,@LIPO@,$LIPO,;t t
13688 s,@RANLIB@,$RANLIB,;t t
13689 s,@STRIP@,$STRIP,;t t
13690 s,@WINDRES@,$WINDRES,;t t
13691 s,@WINDMC@,$WINDMC,;t t
13692 s,@OBJCOPY@,$OBJCOPY,;t t
13693 s,@OBJDUMP@,$OBJDUMP,;t t
13694 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13695 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13696 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13697 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13698 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13699 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13700 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13701 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13702 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13703 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13704 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13705 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13706 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13707 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13708 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
13709 s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
13710 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13711 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13712 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13713 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13714 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13715 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13716 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13717 s,@MAINT@,$MAINT,;t t
13718 s,@stage1_cflags@,$stage1_cflags,;t t
13719 s,@stage1_checking@,$stage1_checking,;t t
13720 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13721 s,@datarootdir@,$datarootdir,;t t
13722 s,@docdir@,$docdir,;t t
13723 s,@pdfdir@,$pdfdir,;t t
13724 s,@htmldir@,$htmldir,;t t
13725 s,@compare_exclusions@,$compare_exclusions,;t t
13726 s,@LIBOBJS@,$LIBOBJS,;t t
13727 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13728 /@serialization_dependencies@/r $serialization_dependencies
13729 s,@serialization_dependencies@,,;t t
13730 /@host_makefile_frag@/r $host_makefile_frag
13731 s,@host_makefile_frag@,,;t t
13732 /@target_makefile_frag@/r $target_makefile_frag
13733 s,@target_makefile_frag@,,;t t
13734 /@alphaieee_frag@/r $alphaieee_frag
13735 s,@alphaieee_frag@,,;t t
13736 /@ospace_frag@/r $ospace_frag
13737 s,@ospace_frag@,,;t t
13742 cat >>$CONFIG_STATUS <<\_ACEOF
13743 # Split the substitutions into bite-sized pieces for seds with
13744 # small command number limits, like on Digital OSF/1 and HP-UX.
13745 ac_max_sed_lines=48
13746 ac_sed_frag=1 # Number of current file.
13747 ac_beg=1 # First line for current file.
13748 ac_end=$ac_max_sed_lines # Line after last line for current file.
13751 while $ac_more_lines; do
13752 if test $ac_beg -gt 1; then
13753 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13755 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13757 if test ! -s $tmp/subs.frag; then
13758 ac_more_lines=false
13760 # The purpose of the label and of the branching condition is to
13761 # speed up the sed processing (if there are no `@' at all, there
13762 # is no need to browse any of the substitutions).
13763 # These are the two extra sed commands mentioned above.
13765 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13766 if test -z "$ac_sed_cmds"; then
13767 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13769 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13771 ac_sed_frag=`expr $ac_sed_frag + 1`
13773 ac_end=`expr $ac_end + $ac_max_sed_lines`
13776 if test -z "$ac_sed_cmds"; then
13779 fi # test -n "$CONFIG_FILES"
13782 cat >>$CONFIG_STATUS <<\_ACEOF
13783 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13784 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13786 - | *:- | *:-:* ) # input from stdin
13788 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13789 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13790 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13791 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13792 * ) ac_file_in=$ac_file.in ;;
13795 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13796 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13797 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13798 X"$ac_file" : 'X\(//\)[^/]' \| \
13799 X"$ac_file" : 'X\(//\)$' \| \
13800 X"$ac_file" : 'X\(/\)' \| \
13801 . : '\(.\)' 2>/dev/null ||
13803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13805 /^X\(\/\/\)$/{ s//\1/; q; }
13806 /^X\(\/\).*/{ s//\1/; q; }
13808 { if $as_mkdir_p; then
13813 while test ! -d "$as_dir"; do
13814 as_dirs="$as_dir $as_dirs"
13815 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13817 X"$as_dir" : 'X\(//\)[^/]' \| \
13818 X"$as_dir" : 'X\(//\)$' \| \
13819 X"$as_dir" : 'X\(/\)' \| \
13820 . : '\(.\)' 2>/dev/null ||
13822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13824 /^X\(\/\/\)$/{ s//\1/; q; }
13825 /^X\(\/\).*/{ s//\1/; q; }
13828 test ! -n "$as_dirs" || mkdir $as_dirs
13829 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13830 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13831 { (exit 1); exit 1; }; }; }
13835 if test "$ac_dir" != .; then
13836 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13837 # A "../" for each directory in $ac_dir_suffix.
13838 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13840 ac_dir_suffix= ac_top_builddir=
13844 .) # No --srcdir option. We are building in place.
13846 if test -z "$ac_top_builddir"; then
13849 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13851 [\\/]* | ?:[\\/]* ) # Absolute path.
13852 ac_srcdir=$srcdir$ac_dir_suffix;
13853 ac_top_srcdir=$srcdir ;;
13854 *) # Relative path.
13855 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13856 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13859 # Do not use `cd foo && pwd` to compute absolute paths, because
13860 # the directories may not exist.
13862 .) ac_abs_builddir="$ac_dir";;
13865 .) ac_abs_builddir=`pwd`;;
13866 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13867 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13870 case $ac_abs_builddir in
13871 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13873 case ${ac_top_builddir}. in
13874 .) ac_abs_top_builddir=$ac_abs_builddir;;
13875 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13876 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13879 case $ac_abs_builddir in
13880 .) ac_abs_srcdir=$ac_srcdir;;
13883 .) ac_abs_srcdir=$ac_abs_builddir;;
13884 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13885 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13888 case $ac_abs_builddir in
13889 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13891 case $ac_top_srcdir in
13892 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13893 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13894 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13900 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13901 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13904 if test x"$ac_file" != x-; then
13905 { echo "$as_me:$LINENO: creating $ac_file" >&5
13906 echo "$as_me: creating $ac_file" >&6;}
13909 # Let's still pretend it is `configure' which instantiates (i.e., don't
13910 # use $as_me), people would be surprised to read:
13911 # /* config.h. Generated by config.status. */
13912 if test x"$ac_file" = x-; then
13915 configure_input="$ac_file. "
13917 configure_input=$configure_input"Generated from `echo $ac_file_in |
13918 sed 's,.*/,,'` by configure."
13920 # First look for the input files in the build tree, otherwise in the
13922 ac_file_inputs=`IFS=:
13923 for f in $ac_file_in; do
13925 -) echo $tmp/stdin ;;
13927 # Absolute (can't be DOS-style, as IFS=:)
13928 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13929 echo "$as_me: error: cannot find input file: $f" >&2;}
13930 { (exit 1); exit 1; }; }
13933 if test -f "$f"; then
13936 elif test -f "$srcdir/$f"; then
13941 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13942 echo "$as_me: error: cannot find input file: $f" >&2;}
13943 { (exit 1); exit 1; }; }
13946 done` || { (exit 1); exit 1; }
13948 cat >>$CONFIG_STATUS <<_ACEOF
13952 cat >>$CONFIG_STATUS <<\_ACEOF
13954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13955 s,@configure_input@,$configure_input,;t t
13956 s,@srcdir@,$ac_srcdir,;t t
13957 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13958 s,@top_srcdir@,$ac_top_srcdir,;t t
13959 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13960 s,@builddir@,$ac_builddir,;t t
13961 s,@abs_builddir@,$ac_abs_builddir,;t t
13962 s,@top_builddir@,$ac_top_builddir,;t t
13963 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13964 s,@INSTALL@,$ac_INSTALL,;t t
13965 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13967 if test x"$ac_file" != x-; then
13968 mv $tmp/out $ac_file
13977 cat >>$CONFIG_STATUS <<\_ACEOF
13979 { (exit 0); exit 0; }
13981 chmod +x $CONFIG_STATUS
13982 ac_clean_files=$ac_clean_files_save
13985 # configure is writing to config.log, and then calls config.status.
13986 # config.status does its own redirection, appending to config.log.
13987 # Unfortunately, on DOS this fails, as config.log is still kept open
13988 # by configure, so config.status won't be able to write to it; its
13989 # output is simply discarded. So we exec the FD to /dev/null,
13990 # effectively closing config.log, so it can be properly (re)opened and
13991 # appended to by config.status. When coming back to configure, we
13992 # need to make the FD available again.
13993 if test "$no_create" != yes; then
13995 ac_config_status_args=
13996 test "$silent" = yes &&
13997 ac_config_status_args="$ac_config_status_args --quiet"
13999 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14001 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14002 # would make configure fail if this is the last instruction.
14003 $ac_cs_success || { (exit 1); exit 1; }