2008-05-04 Doug Kwan <dougkwan@google.com>
[official-gcc.git] / configure
blob279e037c30761b0fbbf3c4ebc2ea062f1f5811cb
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="move-if-change"
580 ac_subst_vars='SHELL
581 PATH_SEPARATOR
582 PACKAGE_NAME
583 PACKAGE_TARNAME
584 PACKAGE_VERSION
585 PACKAGE_STRING
586 PACKAGE_BUGREPORT
587 exec_prefix
588 prefix
589 program_transform_name
590 bindir
591 sbindir
592 libexecdir
593 datarootdir
594 datadir
595 sysconfdir
596 sharedstatedir
597 localstatedir
598 includedir
599 oldincludedir
600 docdir
601 infodir
602 htmldir
603 dvidir
604 pdfdir
605 psdir
606 libdir
607 localedir
608 mandir
609 DEFS
610 ECHO_C
611 ECHO_N
612 ECHO_T
613 LIBS
614 build_alias
615 host_alias
616 target_alias
617 build
618 build_cpu
619 build_vendor
620 build_os
621 build_noncanonical
622 host_noncanonical
623 target_noncanonical
624 host
625 host_cpu
626 host_vendor
627 host_os
628 target
629 target_cpu
630 target_vendor
631 target_os
632 INSTALL_PROGRAM
633 INSTALL_SCRIPT
634 INSTALL_DATA
636 LN_S
637 TOPLEVEL_CONFIGURE_ARGUMENTS
638 build_libsubdir
639 build_subdir
640 host_subdir
641 target_subdir
643 CFLAGS
644 LDFLAGS
645 CPPFLAGS
646 ac_ct_CC
647 EXEEXT
648 OBJEXT
650 CXXFLAGS
651 ac_ct_CXX
652 GNATBIND
653 GNATMAKE
654 do_compare
655 gmplibs
656 gmpinc
657 stage1_languages
658 SYSROOT_CFLAGS_FOR_TARGET
659 DEBUG_PREFIX_CFLAGS_FOR_TARGET
660 CFLAGS_FOR_TARGET
661 CXXFLAGS_FOR_TARGET
662 RPATH_ENVVAR
663 tooldir
664 build_tooldir
665 CONFIGURE_GDB_TK
666 GDB_TK
667 INSTALL_GDB_TK
668 build_configargs
669 build_configdirs
670 host_configargs
671 configdirs
672 target_configargs
673 AR_FOR_BUILD
674 AS_FOR_BUILD
675 CC_FOR_BUILD
676 CFLAGS_FOR_BUILD
677 CXXFLAGS_FOR_BUILD
678 CXX_FOR_BUILD
679 DLLTOOL_FOR_BUILD
680 GCJ_FOR_BUILD
681 GFORTRAN_FOR_BUILD
682 LDFLAGS_FOR_BUILD
683 LD_FOR_BUILD
684 NM_FOR_BUILD
685 RANLIB_FOR_BUILD
686 WINDMC_FOR_BUILD
687 WINDRES_FOR_BUILD
688 config_shell
689 YACC
690 BISON
693 FLEX
694 MAKEINFO
695 EXPECT
696 RUNTEST
699 DLLTOOL
701 LIPO
703 RANLIB
704 STRIP
705 WINDRES
706 WINDMC
707 OBJCOPY
708 OBJDUMP
709 CC_FOR_TARGET
710 CXX_FOR_TARGET
711 GCC_FOR_TARGET
712 GCJ_FOR_TARGET
713 GFORTRAN_FOR_TARGET
714 AR_FOR_TARGET
715 AS_FOR_TARGET
716 DLLTOOL_FOR_TARGET
717 LD_FOR_TARGET
718 LIPO_FOR_TARGET
719 NM_FOR_TARGET
720 OBJDUMP_FOR_TARGET
721 RANLIB_FOR_TARGET
722 STRIP_FOR_TARGET
723 WINDRES_FOR_TARGET
724 WINDMC_FOR_TARGET
725 RAW_CXX_FOR_TARGET
726 FLAGS_FOR_TARGET
727 COMPILER_AS_FOR_TARGET
728 COMPILER_LD_FOR_TARGET
729 COMPILER_NM_FOR_TARGET
730 MAINTAINER_MODE_TRUE
731 MAINTAINER_MODE_FALSE
732 MAINT
733 stage1_cflags
734 stage1_checking
735 stage2_werror_flag
736 LIBOBJS
737 LTLIBOBJS'
738 ac_subst_files='serialization_dependencies
739 host_makefile_frag
740 target_makefile_frag
741 alphaieee_frag
742 ospace_frag'
743 ac_precious_vars='build_alias
744 host_alias
745 target_alias
747 CFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
752 CXXFLAGS
756 DLLTOOL
758 LIPO
760 RANLIB
761 STRIP
762 WINDRES
763 WINDMC
764 OBJCOPY
765 OBJDUMP
766 CC_FOR_TARGET
767 CXX_FOR_TARGET
768 GCC_FOR_TARGET
769 GCJ_FOR_TARGET
770 GFORTRAN_FOR_TARGET
771 AR_FOR_TARGET
772 AS_FOR_TARGET
773 DLLTOOL_FOR_TARGET
774 LD_FOR_TARGET
775 LIPO_FOR_TARGET
776 NM_FOR_TARGET
777 OBJDUMP_FOR_TARGET
778 RANLIB_FOR_TARGET
779 STRIP_FOR_TARGET
780 WINDRES_FOR_TARGET
781 WINDMC_FOR_TARGET'
784 # Initialize some variables set by options.
785 ac_init_help=
786 ac_init_version=false
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
830 ac_prev=
831 ac_dashdash=
832 for ac_option
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
841 case $ac_option in
842 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *) ac_optarg=yes ;;
844 esac
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
850 ac_dashdash=yes ;;
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
869 --config-cache | -C)
870 cache_file=config.cache ;;
872 -datadir | --datadir | --datadi | --datad)
873 ac_prev=datadir ;;
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
884 -disable-* | --disable-*)
885 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
888 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
889 { (exit 1); exit 1; }; }
890 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
891 eval enable_$ac_feature=no ;;
893 -docdir | --docdir | --docdi | --doc | --do)
894 ac_prev=docdir ;;
895 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896 docdir=$ac_optarg ;;
898 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899 ac_prev=dvidir ;;
900 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901 dvidir=$ac_optarg ;;
903 -enable-* | --enable-*)
904 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
907 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
908 { (exit 1); exit 1; }; }
909 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
910 eval enable_$ac_feature=\$ac_optarg ;;
912 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914 | --exec | --exe | --ex)
915 ac_prev=exec_prefix ;;
916 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918 | --exec=* | --exe=* | --ex=*)
919 exec_prefix=$ac_optarg ;;
921 -gas | --gas | --ga | --g)
922 # Obsolete; use --with-gas.
923 with_gas=yes ;;
925 -help | --help | --hel | --he | -h)
926 ac_init_help=long ;;
927 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928 ac_init_help=recursive ;;
929 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930 ac_init_help=short ;;
932 -host | --host | --hos | --ho)
933 ac_prev=host_alias ;;
934 -host=* | --host=* | --hos=* | --ho=*)
935 host_alias=$ac_optarg ;;
937 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938 ac_prev=htmldir ;;
939 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940 | --ht=*)
941 htmldir=$ac_optarg ;;
943 -includedir | --includedir | --includedi | --included | --include \
944 | --includ | --inclu | --incl | --inc)
945 ac_prev=includedir ;;
946 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947 | --includ=* | --inclu=* | --incl=* | --inc=*)
948 includedir=$ac_optarg ;;
950 -infodir | --infodir | --infodi | --infod | --info | --inf)
951 ac_prev=infodir ;;
952 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953 infodir=$ac_optarg ;;
955 -libdir | --libdir | --libdi | --libd)
956 ac_prev=libdir ;;
957 -libdir=* | --libdir=* | --libdi=* | --libd=*)
958 libdir=$ac_optarg ;;
960 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961 | --libexe | --libex | --libe)
962 ac_prev=libexecdir ;;
963 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964 | --libexe=* | --libex=* | --libe=*)
965 libexecdir=$ac_optarg ;;
967 -localedir | --localedir | --localedi | --localed | --locale)
968 ac_prev=localedir ;;
969 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970 localedir=$ac_optarg ;;
972 -localstatedir | --localstatedir | --localstatedi | --localstated \
973 | --localstate | --localstat | --localsta | --localst | --locals)
974 ac_prev=localstatedir ;;
975 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977 localstatedir=$ac_optarg ;;
979 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980 ac_prev=mandir ;;
981 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 mandir=$ac_optarg ;;
984 -nfp | --nfp | --nf)
985 # Obsolete; use --without-fp.
986 with_fp=no ;;
988 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989 | --no-cr | --no-c | -n)
990 no_create=yes ;;
992 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994 no_recursion=yes ;;
996 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998 | --oldin | --oldi | --old | --ol | --o)
999 ac_prev=oldincludedir ;;
1000 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003 oldincludedir=$ac_optarg ;;
1005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006 ac_prev=prefix ;;
1007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008 prefix=$ac_optarg ;;
1010 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011 | --program-pre | --program-pr | --program-p)
1012 ac_prev=program_prefix ;;
1013 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015 program_prefix=$ac_optarg ;;
1017 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018 | --program-suf | --program-su | --program-s)
1019 ac_prev=program_suffix ;;
1020 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022 program_suffix=$ac_optarg ;;
1024 -program-transform-name | --program-transform-name \
1025 | --program-transform-nam | --program-transform-na \
1026 | --program-transform-n | --program-transform- \
1027 | --program-transform | --program-transfor \
1028 | --program-transfo | --program-transf \
1029 | --program-trans | --program-tran \
1030 | --progr-tra | --program-tr | --program-t)
1031 ac_prev=program_transform_name ;;
1032 -program-transform-name=* | --program-transform-name=* \
1033 | --program-transform-nam=* | --program-transform-na=* \
1034 | --program-transform-n=* | --program-transform-=* \
1035 | --program-transform=* | --program-transfor=* \
1036 | --program-transfo=* | --program-transf=* \
1037 | --program-trans=* | --program-tran=* \
1038 | --progr-tra=* | --program-tr=* | --program-t=*)
1039 program_transform_name=$ac_optarg ;;
1041 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042 ac_prev=pdfdir ;;
1043 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044 pdfdir=$ac_optarg ;;
1046 -psdir | --psdir | --psdi | --psd | --ps)
1047 ac_prev=psdir ;;
1048 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049 psdir=$ac_optarg ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 silent=yes ;;
1055 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056 ac_prev=sbindir ;;
1057 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058 | --sbi=* | --sb=*)
1059 sbindir=$ac_optarg ;;
1061 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063 | --sharedst | --shareds | --shared | --share | --shar \
1064 | --sha | --sh)
1065 ac_prev=sharedstatedir ;;
1066 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069 | --sha=* | --sh=*)
1070 sharedstatedir=$ac_optarg ;;
1072 -site | --site | --sit)
1073 ac_prev=site ;;
1074 -site=* | --site=* | --sit=*)
1075 site=$ac_optarg ;;
1077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078 ac_prev=srcdir ;;
1079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080 srcdir=$ac_optarg ;;
1082 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083 | --syscon | --sysco | --sysc | --sys | --sy)
1084 ac_prev=sysconfdir ;;
1085 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087 sysconfdir=$ac_optarg ;;
1089 -target | --target | --targe | --targ | --tar | --ta | --t)
1090 ac_prev=target_alias ;;
1091 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092 target_alias=$ac_optarg ;;
1094 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095 verbose=yes ;;
1097 -version | --version | --versio | --versi | --vers | -V)
1098 ac_init_version=: ;;
1100 -with-* | --with-*)
1101 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1104 { echo "$as_me: error: invalid package name: $ac_package" >&2
1105 { (exit 1); exit 1; }; }
1106 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1107 eval with_$ac_package=\$ac_optarg ;;
1109 -without-* | --without-*)
1110 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113 { echo "$as_me: error: invalid package name: $ac_package" >&2
1114 { (exit 1); exit 1; }; }
1115 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1116 eval with_$ac_package=no ;;
1118 --x)
1119 # Obsolete; use --with-x.
1120 with_x=yes ;;
1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123 | --x-incl | --x-inc | --x-in | --x-i)
1124 ac_prev=x_includes ;;
1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127 x_includes=$ac_optarg ;;
1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131 ac_prev=x_libraries ;;
1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134 x_libraries=$ac_optarg ;;
1136 -*) { echo "$as_me: error: unrecognized option: $ac_option
1137 Try \`$0 --help' for more information." >&2
1138 { (exit 1); exit 1; }; }
1141 *=*)
1142 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1146 { (exit 1); exit 1; }; }
1147 eval $ac_envvar=\$ac_optarg
1148 export $ac_envvar ;;
1151 # FIXME: should be removed in autoconf 3.0.
1152 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1158 esac
1159 done
1161 if test -n "$ac_prev"; then
1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163 { echo "$as_me: error: missing argument to $ac_option" >&2
1164 { (exit 1); exit 1; }; }
1167 # Be sure to have absolute directory names.
1168 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1169 datadir sysconfdir sharedstatedir localstatedir includedir \
1170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1171 libdir localedir mandir
1173 eval ac_val=\$$ac_var
1174 case $ac_val in
1175 [\\/$]* | ?:[\\/]* ) continue;;
1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1177 esac
1178 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1179 { (exit 1); exit 1; }; }
1180 done
1182 # There might be people who depend on the old broken behavior: `$host'
1183 # used to hold the argument of --host etc.
1184 # FIXME: To remove some day.
1185 build=$build_alias
1186 host=$host_alias
1187 target=$target_alias
1189 # FIXME: To remove some day.
1190 if test "x$host_alias" != x; then
1191 if test "x$build_alias" = x; then
1192 cross_compiling=maybe
1193 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1194 If a cross compiler is detected then cross compile mode will be used." >&2
1195 elif test "x$build_alias" != "x$host_alias"; then
1196 cross_compiling=yes
1200 ac_tool_prefix=
1201 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1203 test "$silent" = yes && exec 6>/dev/null
1206 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1207 ac_ls_di=`ls -di .` &&
1208 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1209 { echo "$as_me: error: Working directory cannot be determined" >&2
1210 { (exit 1); exit 1; }; }
1211 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1212 { echo "$as_me: error: pwd does not report name of working directory" >&2
1213 { (exit 1); exit 1; }; }
1216 # Find the source files, if location was not specified.
1217 if test -z "$srcdir"; then
1218 ac_srcdir_defaulted=yes
1219 # Try the directory containing this script, then the parent directory.
1220 ac_confdir=`$as_dirname -- "$0" ||
1221 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1222 X"$0" : 'X\(//\)[^/]' \| \
1223 X"$0" : 'X\(//\)$' \| \
1224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1225 echo X"$0" |
1226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1227 s//\1/
1230 /^X\(\/\/\)[^/].*/{
1231 s//\1/
1234 /^X\(\/\/\)$/{
1235 s//\1/
1238 /^X\(\/\).*/{
1239 s//\1/
1242 s/.*/./; q'`
1243 srcdir=$ac_confdir
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 srcdir=..
1247 else
1248 ac_srcdir_defaulted=no
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1252 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1253 { (exit 1); exit 1; }; }
1255 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1256 ac_abs_confdir=`(
1257 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1258 { (exit 1); exit 1; }; }
1259 pwd)`
1260 # When building in place, set srcdir=.
1261 if test "$ac_abs_confdir" = "$ac_pwd"; then
1262 srcdir=.
1264 # Remove unnecessary trailing slashes from srcdir.
1265 # Double slashes in file names in object file debugging info
1266 # mess up M-x gdb in Emacs.
1267 case $srcdir in
1268 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269 esac
1270 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1272 for ac_var in $ac_precious_vars; do
1273 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1274 eval ac_env_${ac_var}_value=\$${ac_var}
1275 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1277 done
1280 # Report the --help message.
1282 if test "$ac_init_help" = "long"; then
1283 # Omit some internal or obsolete options to make the list less imposing.
1284 # This message is too long to be a string in the A/UX 3.1 sh.
1285 cat <<_ACEOF
1286 \`configure' configures this package to adapt to many kinds of systems.
1288 Usage: $0 [OPTION]... [VAR=VALUE]...
1290 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1291 VAR=VALUE. See below for descriptions of some of the useful variables.
1293 Defaults for the options are specified in brackets.
1295 Configuration:
1296 -h, --help display this help and exit
1297 --help=short display options specific to this package
1298 --help=recursive display the short help of all the included packages
1299 -V, --version display version information and exit
1300 -q, --quiet, --silent do not print \`checking...' messages
1301 --cache-file=FILE cache test results in FILE [disabled]
1302 -C, --config-cache alias for \`--cache-file=config.cache'
1303 -n, --no-create do not create output files
1304 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1306 Installation directories:
1307 --prefix=PREFIX install architecture-independent files in PREFIX
1308 [$ac_default_prefix]
1309 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1310 [PREFIX]
1312 By default, \`make install' will install all the files in
1313 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1314 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1315 for instance \`--prefix=\$HOME'.
1317 For better control, use the options below.
1319 Fine tuning of the installation directories:
1320 --bindir=DIR user executables [EPREFIX/bin]
1321 --sbindir=DIR system admin executables [EPREFIX/sbin]
1322 --libexecdir=DIR program executables [EPREFIX/libexec]
1323 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1324 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1325 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1326 --libdir=DIR object code libraries [EPREFIX/lib]
1327 --includedir=DIR C header files [PREFIX/include]
1328 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1329 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1330 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1331 --infodir=DIR info documentation [DATAROOTDIR/info]
1332 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1333 --mandir=DIR man documentation [DATAROOTDIR/man]
1334 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1335 --htmldir=DIR html documentation [DOCDIR]
1336 --dvidir=DIR dvi documentation [DOCDIR]
1337 --pdfdir=DIR pdf documentation [DOCDIR]
1338 --psdir=DIR ps documentation [DOCDIR]
1339 _ACEOF
1341 cat <<\_ACEOF
1343 Program names:
1344 --program-prefix=PREFIX prepend PREFIX to installed program names
1345 --program-suffix=SUFFIX append SUFFIX to installed program names
1346 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1348 System types:
1349 --build=BUILD configure for building on BUILD [guessed]
1350 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1351 --target=TARGET configure for building compilers for TARGET [HOST]
1352 _ACEOF
1355 if test -n "$ac_init_help"; then
1357 cat <<\_ACEOF
1359 Optional Features:
1360 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1361 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1362 --enable-gold use gold instead of ld
1363 --enable-libada build libada directory
1364 --enable-libssp build libssp directory
1365 --enable-stage1-languages[=all] choose additional languages to build during
1366 stage1. Mostly useful for compiler development.
1367 --enable-objc-gc enable use of Boehm's garbage collector with the
1368 GNU Objective-C runtime
1369 --enable-bootstrap enable bootstrapping [yes if native build]
1370 --enable-serial-[{host,target,build}-]configure
1371 force sequential configuration of
1372 sub-packages for the host, target or build
1373 machine, or all sub-packages
1374 --enable-maintainer-mode enable make rules and dependencies not useful
1375 (and sometimes confusing) to the casual installer
1376 --enable-stage1-checking[=all] choose additional checking for stage1
1377 of the compiler
1378 --enable-werror enable -Werror in bootstrap stage2 and later
1380 Optional Packages:
1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1383 --with-build-libsubdir=DIR Directory where to find libraries for build system
1384 --with-mpfr-dir=PATH this option has been REMOVED
1385 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1386 Equivalent to --with-mpfr-include=PATH/include
1387 plus --with-mpfr-lib=PATH/lib
1388 --with-mpfr-include=PATH
1389 specify directory for installed MPFR include files
1390 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1391 --with-gmp-dir=PATH this option has been REMOVED
1392 --with-gmp=PATH specify prefix directory for the installed GMP package.
1393 Equivalent to --with-gmp-include=PATH/include
1394 plus --with-gmp-lib=PATH/lib
1395 --with-gmp-include=PATH specify directory for installed GMP include files
1396 --with-gmp-lib=PATH specify directory for the installed GMP library
1397 --with-build-sysroot=SYSROOT
1398 use sysroot as the system root during the build
1399 --with-debug-prefix-map='A=B C=D ...'
1400 map A to B, C to D ... in debug information
1401 --with-build-time-tools=PATH
1402 use given path to find target tools during the build
1403 --with-datarootdir use datarootdir as the data root directory.
1404 --with-docdir install documentation in this directory.
1405 --with-pdfdir install pdf in this directory.
1406 --with-htmldir install html in this directory.
1408 Some influential environment variables:
1409 CC C compiler command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1412 nonstandard directory <lib dir>
1413 LIBS libraries to pass to the linker, e.g. -l<library>
1414 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1415 you have headers in a nonstandard directory <include dir>
1416 CXX C++ compiler command
1417 CXXFLAGS C++ compiler flags
1418 AR AR for the host
1419 AS AS for the host
1420 DLLTOOL DLLTOOL for the host
1421 LD LD for the host
1422 LIPO LIPO for the host
1423 NM NM for the host
1424 RANLIB RANLIB for the host
1425 STRIP STRIP for the host
1426 WINDRES WINDRES for the host
1427 WINDMC WINDMC for the host
1428 OBJCOPY OBJCOPY for the host
1429 OBJDUMP OBJDUMP for the host
1430 CC_FOR_TARGET
1431 CC for the target
1432 CXX_FOR_TARGET
1433 CXX for the target
1434 GCC_FOR_TARGET
1435 GCC for the target
1436 GCJ_FOR_TARGET
1437 GCJ for the target
1438 GFORTRAN_FOR_TARGET
1439 GFORTRAN for the target
1440 AR_FOR_TARGET
1441 AR for the target
1442 AS_FOR_TARGET
1443 AS for the target
1444 DLLTOOL_FOR_TARGET
1445 DLLTOOL for the target
1446 LD_FOR_TARGET
1447 LD for the target
1448 LIPO_FOR_TARGET
1449 LIPO for the target
1450 NM_FOR_TARGET
1451 NM for the target
1452 OBJDUMP_FOR_TARGET
1453 OBJDUMP for the target
1454 RANLIB_FOR_TARGET
1455 RANLIB for the target
1456 STRIP_FOR_TARGET
1457 STRIP for the target
1458 WINDRES_FOR_TARGET
1459 WINDRES for the target
1460 WINDMC_FOR_TARGET
1461 WINDMC for the target
1463 Use these variables to override the choices made by `configure' or to help
1464 it to find libraries and programs with nonstandard names/locations.
1466 _ACEOF
1467 ac_status=$?
1470 if test "$ac_init_help" = "recursive"; then
1471 # If there are subdirs, report their specific --help.
1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473 test -d "$ac_dir" || continue
1474 ac_builddir=.
1476 case "$ac_dir" in
1477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485 esac ;;
1486 esac
1487 ac_abs_top_builddir=$ac_pwd
1488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489 # for backward compatibility:
1490 ac_top_builddir=$ac_top_build_prefix
1492 case $srcdir in
1493 .) # We are building in place.
1494 ac_srcdir=.
1495 ac_top_srcdir=$ac_top_builddir_sub
1496 ac_abs_top_srcdir=$ac_pwd ;;
1497 [\\/]* | ?:[\\/]* ) # Absolute name.
1498 ac_srcdir=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir=$srcdir
1500 ac_abs_top_srcdir=$srcdir ;;
1501 *) # Relative name.
1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 esac
1506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508 cd "$ac_dir" || { ac_status=$?; continue; }
1509 # Check for guested configure.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1516 else
1517 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 fi || ac_status=$?
1519 cd "$ac_pwd" || { ac_status=$?; break; }
1520 done
1523 test -n "$ac_init_help" && exit $ac_status
1524 if $ac_init_version; then
1525 cat <<\_ACEOF
1526 configure
1527 generated by GNU Autoconf 2.61
1529 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1530 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1533 _ACEOF
1534 exit
1536 cat >config.log <<_ACEOF
1537 This file contains any messages produced by compilers while
1538 running configure, to aid debugging if configure makes a mistake.
1540 It was created by $as_me, which was
1541 generated by GNU Autoconf 2.61. Invocation command line was
1543 $ $0 $@
1545 _ACEOF
1546 exec 5>>config.log
1548 cat <<_ASUNAME
1549 ## --------- ##
1550 ## Platform. ##
1551 ## --------- ##
1553 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1554 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1555 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1556 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1557 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1559 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1560 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1562 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1563 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1564 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1565 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1566 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1567 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1568 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1570 _ASUNAME
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1575 IFS=$as_save_IFS
1576 test -z "$as_dir" && as_dir=.
1577 echo "PATH: $as_dir"
1578 done
1579 IFS=$as_save_IFS
1581 } >&5
1583 cat >&5 <<_ACEOF
1586 ## ----------- ##
1587 ## Core tests. ##
1588 ## ----------- ##
1590 _ACEOF
1593 # Keep a trace of the command line.
1594 # Strip out --no-create and --no-recursion so they do not pile up.
1595 # Strip out --silent because we don't want to record it for future runs.
1596 # Also quote any args containing shell meta-characters.
1597 # Make two passes to allow for proper duplicate-argument suppression.
1598 ac_configure_args=
1599 ac_configure_args0=
1600 ac_configure_args1=
1601 ac_must_keep_next=false
1602 for ac_pass in 1 2
1604 for ac_arg
1606 case $ac_arg in
1607 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1608 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1609 | -silent | --silent | --silen | --sile | --sil)
1610 continue ;;
1611 *\'*)
1612 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1613 esac
1614 case $ac_pass in
1615 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1617 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1618 if test $ac_must_keep_next = true; then
1619 ac_must_keep_next=false # Got value, back to normal.
1620 else
1621 case $ac_arg in
1622 *=* | --config-cache | -C | -disable-* | --disable-* \
1623 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1624 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1625 | -with-* | --with-* | -without-* | --without-* | --x)
1626 case "$ac_configure_args0 " in
1627 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1628 esac
1630 -* ) ac_must_keep_next=true ;;
1631 esac
1633 ac_configure_args="$ac_configure_args '$ac_arg'"
1635 esac
1636 done
1637 done
1638 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1639 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1641 # When interrupted or exit'd, cleanup temporary files, and complete
1642 # config.log. We remove comments because anyway the quotes in there
1643 # would cause problems or look ugly.
1644 # WARNING: Use '\'' to represent an apostrophe within the trap.
1645 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1646 trap 'exit_status=$?
1647 # Save into config.log some information that might help in debugging.
1649 echo
1651 cat <<\_ASBOX
1652 ## ---------------- ##
1653 ## Cache variables. ##
1654 ## ---------------- ##
1655 _ASBOX
1656 echo
1657 # The following way of writing the cache mishandles newlines in values,
1659 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1660 eval ac_val=\$$ac_var
1661 case $ac_val in #(
1662 *${as_nl}*)
1663 case $ac_var in #(
1664 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1665 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1666 esac
1667 case $ac_var in #(
1668 _ | IFS | as_nl) ;; #(
1669 *) $as_unset $ac_var ;;
1670 esac ;;
1671 esac
1672 done
1673 (set) 2>&1 |
1674 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1675 *${as_nl}ac_space=\ *)
1676 sed -n \
1677 "s/'\''/'\''\\\\'\'''\''/g;
1678 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1679 ;; #(
1681 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1683 esac |
1684 sort
1686 echo
1688 cat <<\_ASBOX
1689 ## ----------------- ##
1690 ## Output variables. ##
1691 ## ----------------- ##
1692 _ASBOX
1693 echo
1694 for ac_var in $ac_subst_vars
1696 eval ac_val=\$$ac_var
1697 case $ac_val in
1698 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1699 esac
1700 echo "$ac_var='\''$ac_val'\''"
1701 done | sort
1702 echo
1704 if test -n "$ac_subst_files"; then
1705 cat <<\_ASBOX
1706 ## ------------------- ##
1707 ## File substitutions. ##
1708 ## ------------------- ##
1709 _ASBOX
1710 echo
1711 for ac_var in $ac_subst_files
1713 eval ac_val=\$$ac_var
1714 case $ac_val in
1715 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1716 esac
1717 echo "$ac_var='\''$ac_val'\''"
1718 done | sort
1719 echo
1722 if test -s confdefs.h; then
1723 cat <<\_ASBOX
1724 ## ----------- ##
1725 ## confdefs.h. ##
1726 ## ----------- ##
1727 _ASBOX
1728 echo
1729 cat confdefs.h
1730 echo
1732 test "$ac_signal" != 0 &&
1733 echo "$as_me: caught signal $ac_signal"
1734 echo "$as_me: exit $exit_status"
1735 } >&5
1736 rm -f core *.core core.conftest.* &&
1737 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1738 exit $exit_status
1740 for ac_signal in 1 2 13 15; do
1741 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1742 done
1743 ac_signal=0
1745 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1746 rm -f -r conftest* confdefs.h
1748 # Predefined preprocessor variables.
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_NAME "$PACKAGE_NAME"
1752 _ACEOF
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1757 _ACEOF
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1762 _ACEOF
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_STRING "$PACKAGE_STRING"
1767 _ACEOF
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1772 _ACEOF
1775 # Let the site file select an alternate cache file if it wants to.
1776 # Prefer explicitly selected file to automatically selected ones.
1777 if test -n "$CONFIG_SITE"; then
1778 set x "$CONFIG_SITE"
1779 elif test "x$prefix" != xNONE; then
1780 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1781 else
1782 set x "$ac_default_prefix/share/config.site" \
1783 "$ac_default_prefix/etc/config.site"
1785 shift
1786 for ac_site_file
1788 if test -r "$ac_site_file"; then
1789 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1790 echo "$as_me: loading site script $ac_site_file" >&6;}
1791 sed 's/^/| /' "$ac_site_file" >&5
1792 . "$ac_site_file"
1794 done
1796 if test -r "$cache_file"; then
1797 # Some versions of bash will fail to source /dev/null (special
1798 # files actually), so we avoid doing that.
1799 if test -f "$cache_file"; then
1800 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1801 echo "$as_me: loading cache $cache_file" >&6;}
1802 case $cache_file in
1803 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1804 *) . "./$cache_file";;
1805 esac
1807 else
1808 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1809 echo "$as_me: creating cache $cache_file" >&6;}
1810 >$cache_file
1813 # Check that the precious variables saved in the cache have kept the same
1814 # value.
1815 ac_cache_corrupted=false
1816 for ac_var in $ac_precious_vars; do
1817 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1818 eval ac_new_set=\$ac_env_${ac_var}_set
1819 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1820 eval ac_new_val=\$ac_env_${ac_var}_value
1821 case $ac_old_set,$ac_new_set in
1822 set,)
1823 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1824 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1825 ac_cache_corrupted=: ;;
1826 ,set)
1827 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1828 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1829 ac_cache_corrupted=: ;;
1830 ,);;
1832 if test "x$ac_old_val" != "x$ac_new_val"; then
1833 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1834 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1835 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1836 echo "$as_me: former value: $ac_old_val" >&2;}
1837 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1838 echo "$as_me: current value: $ac_new_val" >&2;}
1839 ac_cache_corrupted=:
1840 fi;;
1841 esac
1842 # Pass precious variables to config.status.
1843 if test "$ac_new_set" = set; then
1844 case $ac_new_val in
1845 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1846 *) ac_arg=$ac_var=$ac_new_val ;;
1847 esac
1848 case " $ac_configure_args " in
1849 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1850 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1851 esac
1853 done
1854 if $ac_cache_corrupted; then
1855 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1856 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1857 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1858 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1859 { (exit 1); exit 1; }; }
1878 ac_ext=c
1879 ac_cpp='$CPP $CPPFLAGS'
1880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1887 # Find the build, host, and target systems.
1888 ac_aux_dir=
1889 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1890 if test -f "$ac_dir/install-sh"; then
1891 ac_aux_dir=$ac_dir
1892 ac_install_sh="$ac_aux_dir/install-sh -c"
1893 break
1894 elif test -f "$ac_dir/install.sh"; then
1895 ac_aux_dir=$ac_dir
1896 ac_install_sh="$ac_aux_dir/install.sh -c"
1897 break
1898 elif test -f "$ac_dir/shtool"; then
1899 ac_aux_dir=$ac_dir
1900 ac_install_sh="$ac_aux_dir/shtool install -c"
1901 break
1903 done
1904 if test -z "$ac_aux_dir"; then
1905 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1906 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1907 { (exit 1); exit 1; }; }
1910 # These three variables are undocumented and unsupported,
1911 # and are intended to be withdrawn in a future Autoconf release.
1912 # They can cause serious problems if a builder's source tree is in a directory
1913 # whose full name contains unusual characters.
1914 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1915 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1916 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1919 # Make sure we can run config.sub.
1920 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1921 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1922 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1923 { (exit 1); exit 1; }; }
1925 { echo "$as_me:$LINENO: checking build system type" >&5
1926 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1927 if test "${ac_cv_build+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 else
1930 ac_build_alias=$build_alias
1931 test "x$ac_build_alias" = x &&
1932 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1933 test "x$ac_build_alias" = x &&
1934 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1935 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1936 { (exit 1); exit 1; }; }
1937 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1938 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1939 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1940 { (exit 1); exit 1; }; }
1943 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1944 echo "${ECHO_T}$ac_cv_build" >&6; }
1945 case $ac_cv_build in
1946 *-*-*) ;;
1947 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1948 echo "$as_me: error: invalid value of canonical build" >&2;}
1949 { (exit 1); exit 1; }; };;
1950 esac
1951 build=$ac_cv_build
1952 ac_save_IFS=$IFS; IFS='-'
1953 set x $ac_cv_build
1954 shift
1955 build_cpu=$1
1956 build_vendor=$2
1957 shift; shift
1958 # Remember, the first character of IFS is used to create $*,
1959 # except with old shells:
1960 build_os=$*
1961 IFS=$ac_save_IFS
1962 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1965 case ${build_alias} in
1966 "") build_noncanonical=${build} ;;
1967 *) build_noncanonical=${build_alias} ;;
1968 esac
1972 case ${host_alias} in
1973 "") host_noncanonical=${build_noncanonical} ;;
1974 *) host_noncanonical=${host_alias} ;;
1975 esac
1979 case ${target_alias} in
1980 "") target_noncanonical=${host_noncanonical} ;;
1981 *) target_noncanonical=${target_alias} ;;
1982 esac
1987 test "$host_noncanonical" = "$target_noncanonical" &&
1988 test "$program_prefix$program_suffix$program_transform_name" = \
1989 NONENONEs,x,x, &&
1990 program_transform_name=s,y,y,
1992 { echo "$as_me:$LINENO: checking host system type" >&5
1993 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1994 if test "${ac_cv_host+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997 if test "x$host_alias" = x; then
1998 ac_cv_host=$ac_cv_build
1999 else
2000 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2001 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2002 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2003 { (exit 1); exit 1; }; }
2007 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2008 echo "${ECHO_T}$ac_cv_host" >&6; }
2009 case $ac_cv_host in
2010 *-*-*) ;;
2011 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2012 echo "$as_me: error: invalid value of canonical host" >&2;}
2013 { (exit 1); exit 1; }; };;
2014 esac
2015 host=$ac_cv_host
2016 ac_save_IFS=$IFS; IFS='-'
2017 set x $ac_cv_host
2018 shift
2019 host_cpu=$1
2020 host_vendor=$2
2021 shift; shift
2022 # Remember, the first character of IFS is used to create $*,
2023 # except with old shells:
2024 host_os=$*
2025 IFS=$ac_save_IFS
2026 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2029 { echo "$as_me:$LINENO: checking target system type" >&5
2030 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2031 if test "${ac_cv_target+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034 if test "x$target_alias" = x; then
2035 ac_cv_target=$ac_cv_host
2036 else
2037 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2038 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2039 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2040 { (exit 1); exit 1; }; }
2044 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2045 echo "${ECHO_T}$ac_cv_target" >&6; }
2046 case $ac_cv_target in
2047 *-*-*) ;;
2048 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2049 echo "$as_me: error: invalid value of canonical target" >&2;}
2050 { (exit 1); exit 1; }; };;
2051 esac
2052 target=$ac_cv_target
2053 ac_save_IFS=$IFS; IFS='-'
2054 set x $ac_cv_target
2055 shift
2056 target_cpu=$1
2057 target_vendor=$2
2058 shift; shift
2059 # Remember, the first character of IFS is used to create $*,
2060 # except with old shells:
2061 target_os=$*
2062 IFS=$ac_save_IFS
2063 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2066 # The aliases save the names the user supplied, while $host etc.
2067 # will get canonicalized.
2068 test -n "$target_alias" &&
2069 test "$program_prefix$program_suffix$program_transform_name" = \
2070 NONENONEs,x,x, &&
2071 program_prefix=${target_alias}-
2072 test "$program_prefix" != NONE &&
2073 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2074 # Use a double $ so make ignores it.
2075 test "$program_suffix" != NONE &&
2076 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2077 # Double any \ or $. echo might interpret backslashes.
2078 # By default was `s,x,x', remove it if useless.
2079 cat <<\_ACEOF >conftest.sed
2080 s/[\\$]/&&/g;s/;s,x,x,$//
2081 _ACEOF
2082 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2083 rm -f conftest.sed
2087 # Get 'install' or 'install-sh' and its variants.
2088 # Find a good install program. We prefer a C program (faster),
2089 # so one script is as good as another. But avoid the broken or
2090 # incompatible versions:
2091 # SysV /etc/install, /usr/sbin/install
2092 # SunOS /usr/etc/install
2093 # IRIX /sbin/install
2094 # AIX /bin/install
2095 # AmigaOS /C/install, which installs bootblocks on floppy discs
2096 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2097 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2098 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2099 # OS/2's system install, which has a completely different semantic
2100 # ./install, which can be erroneously created by make from ./install.sh.
2101 # Reject install programs that cannot install multiple files.
2102 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2103 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2104 if test -z "$INSTALL"; then
2105 if test "${ac_cv_path_install+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 for as_dir in $PATH
2111 IFS=$as_save_IFS
2112 test -z "$as_dir" && as_dir=.
2113 # Account for people who put trailing slashes in PATH elements.
2114 case $as_dir/ in
2115 ./ | .// | /cC/* | \
2116 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2117 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2118 /usr/ucb/* ) ;;
2120 # OSF1 and SCO ODT 3.0 have their own names for install.
2121 # Don't use installbsd from OSF since it installs stuff as root
2122 # by default.
2123 for ac_prog in ginstall scoinst install; do
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2126 if test $ac_prog = install &&
2127 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2128 # AIX install. It has an incompatible calling convention.
2130 elif test $ac_prog = install &&
2131 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2132 # program-specific install script used by HP pwplus--don't use.
2134 else
2135 rm -rf conftest.one conftest.two conftest.dir
2136 echo one > conftest.one
2137 echo two > conftest.two
2138 mkdir conftest.dir
2139 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2140 test -s conftest.one && test -s conftest.two &&
2141 test -s conftest.dir/conftest.one &&
2142 test -s conftest.dir/conftest.two
2143 then
2144 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2145 break 3
2149 done
2150 done
2152 esac
2153 done
2154 IFS=$as_save_IFS
2156 rm -rf conftest.one conftest.two conftest.dir
2159 if test "${ac_cv_path_install+set}" = set; then
2160 INSTALL=$ac_cv_path_install
2161 else
2162 # As a last resort, use the slow shell script. Don't cache a
2163 # value for INSTALL within a source directory, because that will
2164 # break other packages using the cache if that directory is
2165 # removed, or if the value is a relative name.
2166 INSTALL=$ac_install_sh
2169 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2170 echo "${ECHO_T}$INSTALL" >&6; }
2172 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2173 # It thinks the first close brace ends the variable substitution.
2174 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2176 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2178 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2180 { echo "$as_me:$LINENO: checking whether ln works" >&5
2181 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
2182 if test "${acx_cv_prog_LN+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185 rm -f conftestdata_t
2186 echo >conftestdata_f
2187 if ln conftestdata_f conftestdata_t 2>/dev/null
2188 then
2189 acx_cv_prog_LN=ln
2190 else
2191 acx_cv_prog_LN=no
2193 rm -f conftestdata_f conftestdata_t
2196 if test $acx_cv_prog_LN = no; then
2197 LN="cp"
2198 { echo "$as_me:$LINENO: result: no, using $LN" >&5
2199 echo "${ECHO_T}no, using $LN" >&6; }
2200 else
2201 LN="$acx_cv_prog_LN"
2202 { echo "$as_me:$LINENO: result: yes" >&5
2203 echo "${ECHO_T}yes" >&6; }
2206 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2207 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2208 LN_S=$as_ln_s
2209 if test "$LN_S" = "ln -s"; then
2210 { echo "$as_me:$LINENO: result: yes" >&5
2211 echo "${ECHO_T}yes" >&6; }
2212 else
2213 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2214 echo "${ECHO_T}no, using $LN_S" >&6; }
2218 ### we might need to use some other shell than /bin/sh for running subshells
2219 ### If we are on Windows, search for the shell. This will permit people
2220 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2221 ### without also having to set CONFIG_SHELL. This code will work when
2222 ### using bash, which sets OSTYPE.
2223 case "${OSTYPE}" in
2224 *win32*)
2225 if test x${CONFIG_SHELL} = x ; then
2226 if test ! -f /bin/sh ; then
2227 if test x${SHELL} != x && test -f ${SHELL} ; then
2228 CONFIG_SHELL=${SHELL}
2229 export CONFIG_SHELL
2230 else
2231 for prog in sh sh.exe bash bash.exe; do
2232 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2233 for dir in $PATH; do
2234 test -z "$dir" && dir=.
2235 if test -f $dir/$prog; then
2236 CONFIG_SHELL=$dir/$prog
2237 export CONFIG_SHELL
2238 break
2240 done
2241 IFS="$save_ifs"
2242 test -n "${CONFIG_SHELL}" && break
2243 done
2248 esac
2250 config_shell=${CONFIG_SHELL-/bin/sh}
2252 progname=$0
2253 # if PWD already has a value, it is probably wrong.
2254 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2256 # Export original configure arguments for use by sub-configures.
2257 # Quote arguments with shell meta charatcers.
2258 TOPLEVEL_CONFIGURE_ARGUMENTS=
2259 set -- "$progname" "$@"
2260 for ac_arg
2262 case "$ac_arg" in
2263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2264 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2265 # if the argument is of the form -foo=baz, quote the baz part only
2266 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2267 *) ;;
2268 esac
2269 # Add the quoted argument to the list.
2270 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2271 done
2272 if test "$silent" = yes; then
2273 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2275 # Remove the initial space we just introduced and, as these will be
2276 # expanded by make, quote '$'.
2277 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2280 moveifchange=${srcdir}/move-if-change
2282 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2284 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2285 # a relative path.
2286 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2287 INSTALL="${srcpwd}/install-sh -c"
2290 # Set srcdir to "." if that's what it is.
2291 # This is important for multilib support.
2292 pwd=`${PWDCMD-pwd}`
2293 if test "${pwd}" = "${srcpwd}" ; then
2294 srcdir=.
2297 topsrcdir=$srcpwd
2299 extra_host_args=
2301 ### To add a new directory to the tree, first choose whether it is a target
2302 ### or a host dependent tool. Then put it into the appropriate list
2303 ### (library or tools, host or target), doing a dependency sort.
2305 # Subdirs will be configured in the order listed in build_configdirs,
2306 # configdirs, or target_configdirs; see the serialization section below.
2308 # Dependency sorting is only needed when *configuration* must be done in
2309 # a particular order. In all cases a dependency should be specified in
2310 # the Makefile, whether or not it's implicitly specified here.
2312 # Double entries in build_configdirs, configdirs, or target_configdirs may
2313 # cause circular dependencies and break everything horribly.
2315 # these library is used by various programs built for the build
2316 # environment
2318 build_libs="build-libiberty"
2320 # these tools are built for the build environment
2321 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2323 # these libraries are used by various programs built for the host environment
2325 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
2327 # these tools are built for the host environment
2328 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2329 # know that we are building the simulator.
2330 # binutils, gas and ld appear in that order because it makes sense to run
2331 # "make check" in that particular order.
2332 # If --enable-gold is used, "gold" will replace "ld".
2333 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2335 # libgcj represents the runtime libraries only used by gcj.
2336 libgcj="target-libffi \
2337 target-zlib \
2338 target-qthreads \
2339 target-libjava"
2341 # these libraries are built for the target environment, and are built after
2342 # the host libraries and the host tools (which may be a cross compiler)
2344 target_libraries="target-libgcc \
2345 target-libiberty \
2346 target-libgloss \
2347 target-newlib \
2348 target-libgomp \
2349 target-libstdc++-v3 \
2350 target-libmudflap \
2351 target-libssp \
2352 target-libgfortran \
2353 target-boehm-gc \
2354 ${libgcj} \
2355 target-libobjc \
2356 target-libada"
2358 # these tools are built using the target libraries, and are intended to
2359 # run only in the target environment
2361 # note: any program that *uses* libraries that are in the "target_libraries"
2362 # list belongs in this list. those programs are also very likely
2363 # candidates for the "native_only" list which follows
2365 target_tools="target-examples target-groff target-gperf target-rda"
2367 ################################################################################
2369 ## All tools belong in one of the four categories, and are assigned above
2370 ## We assign ${configdirs} this way to remove all embedded newlines. This
2371 ## is important because configure will choke if they ever get through.
2372 ## ${configdirs} is directories we build using the host tools.
2373 ## ${target_configdirs} is directories we build using the target tools.
2374 configdirs=`echo ${host_libs} ${host_tools}`
2375 target_configdirs=`echo ${target_libraries} ${target_tools}`
2376 build_configdirs=`echo ${build_libs} ${build_tools}`
2380 ################################################################################
2382 srcname="gnu development package"
2384 # This gets set non-empty for some net releases of packages.
2385 appdirs=""
2387 # Define is_cross_compiler to save on calls to 'test'.
2388 is_cross_compiler=
2389 if test x"${host}" = x"${target}" ; then
2390 is_cross_compiler=no
2391 else
2392 is_cross_compiler=yes
2395 # Find the build and target subdir names.
2397 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2398 # have matching libraries, they should use host libraries: Makefile.tpl
2399 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2400 # However, they still use the build modules, because the corresponding
2401 # host modules (e.g. bison) are only built for the host when bootstrap
2402 # finishes. So:
2403 # - build_subdir is where we find build modules, and never changes.
2404 # - build_libsubdir is where we find build libraries, and can be overridden.
2406 # Prefix 'build-' so this never conflicts with target_subdir.
2407 build_subdir="build-${build_noncanonical}"
2409 # Check whether --with-build-libsubdir was given.
2410 if test "${with_build_libsubdir+set}" = set; then
2411 withval=$with_build_libsubdir; build_libsubdir="$withval"
2412 else
2413 build_libsubdir="$build_subdir"
2416 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2417 if ( test $srcdir = . && test -d gcc ) \
2418 || test -d $srcdir/../host-${host_noncanonical}; then
2419 host_subdir="host-${host_noncanonical}"
2420 else
2421 host_subdir=.
2423 # No prefix.
2424 target_subdir=${target_noncanonical}
2427 # Skipdirs are removed silently.
2428 skipdirs=
2429 # Noconfigdirs are removed loudly.
2430 noconfigdirs=""
2432 use_gnu_ld=
2433 # Make sure we don't let GNU ld be added if we didn't want it.
2434 if test x$with_gnu_ld = xno ; then
2435 use_gnu_ld=no
2436 noconfigdirs="$noconfigdirs ld gold"
2439 use_gnu_as=
2440 # Make sure we don't let GNU as be added if we didn't want it.
2441 if test x$with_gnu_as = xno ; then
2442 use_gnu_as=no
2443 noconfigdirs="$noconfigdirs gas"
2446 # some tools are so dependent upon X11 that if we're not building with X,
2447 # it's not even worth trying to configure, much less build, that tool.
2449 case ${with_x} in
2450 yes | "") ;; # the default value for this tree is that X11 is available
2452 skipdirs="${skipdirs} tk itcl libgui"
2453 # We won't be able to build gdbtk without X.
2454 enable_gdbtk=no
2456 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2457 esac
2459 # Some tools are only suitable for building in a "native" situation.
2460 # Remove these if host!=target.
2461 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"
2463 # Similarly, some are only suitable for cross toolchains.
2464 # Remove these if host=target.
2465 cross_only="target-libgloss target-newlib target-opcodes"
2467 case $is_cross_compiler in
2468 no) skipdirs="${skipdirs} ${cross_only}" ;;
2469 yes) skipdirs="${skipdirs} ${native_only}" ;;
2470 esac
2472 # If both --with-headers and --with-libs are specified, default to
2473 # --without-newlib.
2474 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2475 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2476 if test x"${with_newlib}" = x ; then
2477 with_newlib=no
2481 # Recognize --with-newlib/--without-newlib.
2482 case ${with_newlib} in
2483 no) skipdirs="${skipdirs} target-newlib" ;;
2484 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2485 esac
2487 # Handle --enable-gold.
2489 # Check whether --enable-gold was given.
2490 if test "${enable_gold+set}" = set; then
2491 enableval=$enable_gold; ENABLE_GOLD=$enableval
2492 else
2493 ENABLE_GOLD=no
2496 if test "${ENABLE_GOLD}" = "yes"; then
2497 # Check for ELF target.
2498 is_elf=no
2499 case "${target}" in
2500 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2501 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2502 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2503 case "${target}" in
2504 *-*-linux*aout* | *-*-linux*oldld*)
2507 is_elf=yes
2509 esac
2510 esac
2512 if test "$is_elf" = "yes"; then
2513 # Check for target supported by gold.
2514 case "${target}" in
2515 i?86-*-* | x86_64-*-* | sparc*-*-*)
2516 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2518 esac
2522 # Configure extra directories which are host specific
2524 case "${host}" in
2525 *-cygwin*)
2526 configdirs="$configdirs libtermcap" ;;
2527 esac
2529 # A target can indicate whether a language isn't supported for some reason.
2530 # Only spaces may be used in this macro; not newlines or tabs.
2531 unsupported_languages=
2533 # Remove more programs from consideration, based on the host or
2534 # target this usually means that a port of the program doesn't
2535 # exist yet.
2537 case "${host}" in
2538 hppa*64*-*-*)
2539 noconfigdirs="$noconfigdirs byacc"
2541 i[3456789]86-*-vsta)
2542 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2544 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2545 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2547 x86_64-*-mingw*)
2548 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2550 i[3456789]86-*-mingw32*)
2551 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2552 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2554 i[3456789]86-*-beos*)
2555 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2557 *-*-cygwin*)
2558 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2560 *-*-netbsd*)
2561 noconfigdirs="$noconfigdirs rcs"
2563 ppc*-*-pe)
2564 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2566 powerpc-*-beos*)
2567 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2569 esac
2572 # Check whether --enable-libada was given.
2573 if test "${enable_libada+set}" = set; then
2574 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2575 else
2576 ENABLE_LIBADA=yes
2579 if test "${ENABLE_LIBADA}" != "yes" ; then
2580 noconfigdirs="$noconfigdirs gnattools"
2583 # Check whether --enable-libssp was given.
2584 if test "${enable_libssp+set}" = set; then
2585 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2586 else
2587 ENABLE_LIBSSP=yes
2591 # Save it here so that, even in case of --enable-libgcj, if the Java
2592 # front-end isn't enabled, we still get libgcj disabled.
2593 libgcj_saved=$libgcj
2594 case $enable_libgcj in
2595 yes)
2596 # If we reset it here, it won't get added to noconfigdirs in the
2597 # target-specific build rules, so it will be forcibly enabled
2598 # (unless the Java language itself isn't enabled).
2599 libgcj=
2602 # Make sure we get it printed in the list of not supported target libs.
2603 noconfigdirs="$noconfigdirs ${libgcj}"
2605 esac
2608 # Disable libmudflap on some systems.
2609 if test x$enable_libmudflap = x ; then
2610 case "${target}" in
2611 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
2612 # Enable libmudflap by default in GNU and friends.
2614 *-*-freebsd*)
2615 # Enable libmudflap by default in FreeBSD.
2618 # Disable it by default everywhere else.
2619 noconfigdirs="$noconfigdirs target-libmudflap"
2621 esac
2624 # Disable libgomp on non POSIX hosted systems.
2625 if test x$enable_libgomp = x ; then
2626 # Enable libgomp by default on hosted POSIX systems.
2627 case "${target}" in
2628 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2630 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2632 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2634 *-*-darwin* | *-*-aix*)
2637 noconfigdirs="$noconfigdirs target-libgomp"
2639 esac
2642 # Default libgloss CPU subdirectory.
2643 libgloss_dir="$target_cpu"
2645 case "${target}" in
2646 *-*-chorusos)
2647 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2649 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
2650 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
2651 noconfigdirs="$noconfigdirs sim target-rda"
2653 *-*-darwin*)
2654 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2655 noconfigdirs="$noconfigdirs sim target-rda"
2656 noconfigdirs="$noconfigdirs ${libgcj}"
2658 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2659 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2661 *-*-freebsd*)
2662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2663 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2664 && test -f /usr/local/include/gmp.h; then
2665 with_gmp=/usr/local
2668 # Skip some stuff that's unsupported on some FreeBSD configurations.
2669 case "${target}" in
2670 i*86-*-*) ;;
2671 alpha*-*-*) ;;
2673 noconfigdirs="$noconfigdirs ${libgcj}"
2675 esac
2677 *-*-kaos*)
2678 # Remove unsupported stuff on all kaOS configurations.
2679 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2680 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2681 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2682 noconfigdirs="$noconfigdirs target-libgloss"
2684 *-*-netbsd*)
2685 # Skip some stuff on all NetBSD configurations.
2686 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2688 # Skip some stuff that's unsupported on some NetBSD configurations.
2689 case "${target}" in
2690 i*86-*-netbsdelf*) ;;
2691 arm*-*-netbsdelf*) ;;
2693 noconfigdirs="$noconfigdirs ${libgcj}"
2695 esac
2697 *-*-netware*)
2698 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2700 *-*-rtems*)
2701 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2703 # The tpf target doesn't support gdb yet.
2704 *-*-tpf*)
2705 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2707 *-*-uclinux*)
2708 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2710 *-*-vxworks*)
2711 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2713 alpha*-dec-osf*)
2714 # ld works, but does not support shared libraries.
2715 # newlib is not 64 bit ready. I'm not sure about fileutils.
2716 # gas doesn't generate exception information.
2717 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2719 alpha*-*-*vms*)
2720 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2722 alpha*-*-linux*)
2723 # newlib is not 64 bit ready
2724 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2726 alpha*-*-*)
2727 # newlib is not 64 bit ready
2728 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2730 am33_2.0-*-linux*)
2731 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2733 sh-*-linux*)
2734 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2736 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2737 noconfigdirs="$noconfigdirs ${libgcj}"
2738 noconfigdirs="$noconfigdirs target-examples"
2739 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2740 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2741 noconfigdirs="$noconfigdirs expect dejagnu"
2742 # the C++ libraries don't build on top of CE's C libraries
2743 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2744 noconfigdirs="$noconfigdirs target-newlib"
2745 case "${host}" in
2746 *-*-cygwin*) ;; # keep gdb and readline
2747 *) noconfigdirs="$noconfigdirs gdb readline"
2749 esac
2750 libgloss_dir=wince
2752 arc-*-*)
2753 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2755 arm-semi-aof )
2757 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2758 noconfigdirs="$noconfigdirs ${libgcj}"
2759 libgloss_dir=arm
2761 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2762 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2763 libgloss_dir=arm
2765 arm*-*-linux-gnueabi)
2766 noconfigdirs="$noconfigdirs target-qthreads"
2767 noconfigdirs="$noconfigdirs target-libobjc"
2768 case ${with_newlib} in
2769 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2770 esac
2771 libgloss_dir=arm
2773 arm*-*-symbianelf*)
2774 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2775 libgloss_dir=arm
2777 arm-*-pe*)
2778 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2780 thumb-*-coff)
2781 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2783 thumb-*-elf)
2784 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2786 thumb-*-pe)
2787 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2789 arm-*-riscix*)
2790 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2792 avr-*-*)
2793 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
2795 bfin-*-*)
2796 noconfigdirs="$noconfigdirs gdb"
2797 if test x${is_cross_compiler} != xno ; then
2798 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2801 c4x-*-* | tic4x-*-*)
2802 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2804 c54x*-*-* | tic54x-*-*)
2805 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2807 cr16-*-*)
2808 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2810 cris-*-* | crisv32-*-*)
2811 unsupported_languages="$unsupported_languages java"
2812 case "${target}" in
2813 *-*-aout)
2814 unsupported_languages="$unsupported_languages fortran"
2815 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2816 *-*-elf)
2817 noconfigdirs="$noconfigdirs target-boehm-gc";;
2818 *-*-linux*)
2819 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2821 unsupported_languages="$unsupported_languages fortran"
2822 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2823 esac
2824 libgloss_dir=cris
2826 crx-*-*)
2827 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2829 d10v-*-*)
2830 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2832 d30v-*-*)
2833 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2835 ep9312-*-elf | ep9312-*-coff)
2836 libgloss_dir=arm
2838 fr30-*-elf*)
2839 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2841 frv-*-*)
2842 noconfigdirs="$noconfigdirs ${libgcj}"
2844 h8300*-*-*)
2845 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2847 h8500-*-*)
2848 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2850 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2852 hppa*64*-*-linux* | parisc*64*-*-linux*)
2853 # In this case, it's because the hppa64-linux target is for
2854 # the kernel only at this point and has no libc, and thus no
2855 # headers, crt*.o, etc., all of which are needed by these.
2856 noconfigdirs="$noconfigdirs target-zlib"
2858 parisc*-*-linux* | hppa*-*-linux*)
2860 hppa*-*-*elf* | \
2861 hppa*-*-lites* | \
2862 hppa*-*-openbsd* | \
2863 hppa*64*-*-*)
2864 noconfigdirs="$noconfigdirs ${libgcj}"
2866 hppa*-hp-hpux11*)
2867 noconfigdirs="$noconfigdirs ld shellutils"
2869 hppa*-*-pro*)
2870 libgloss_dir=pa
2872 hppa*-*-*)
2873 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2874 # build on HP-UX 10.20.
2875 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2877 i960-*-*)
2878 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2880 ia64*-*-elf*)
2881 # No gdb support yet.
2882 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2884 ia64*-**-hpux*)
2885 # No gdb or ld support yet.
2886 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2888 i370-*-opened*)
2890 i[3456789]86-*-coff | i[3456789]86-*-elf)
2891 noconfigdirs="$noconfigdirs ${libgcj}"
2892 libgloss_dir=i386
2894 i[3456789]86-*-linux*)
2895 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2896 # not build java stuff by default.
2897 case "${target}" in
2898 *-*-*libc1*)
2899 noconfigdirs="$noconfigdirs ${libgcj}";;
2900 esac
2902 # This section makes it possible to build newlib natively on linux.
2903 # If we are using a cross compiler then don't configure newlib.
2904 if test x${is_cross_compiler} != xno ; then
2905 noconfigdirs="$noconfigdirs target-newlib"
2907 noconfigdirs="$noconfigdirs target-libgloss"
2908 # If we are not using a cross compiler, do configure newlib.
2909 # Note however, that newlib will only be configured in this situation
2910 # if the --with-newlib option has been given, because otherwise
2911 # 'target-newlib' will appear in skipdirs.
2913 i[3456789]86-*-mingw32*)
2914 target_configdirs="$target_configdirs target-winsup"
2915 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2917 x86_64-*-mingw*)
2918 target_configdirs="$target_configdirs target-winsup"
2919 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2921 *-*-cygwin*)
2922 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2923 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2924 # always build newlib if winsup directory is present.
2925 if test -d "$srcdir/winsup/cygwin"; then
2926 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2927 elif test -d "$srcdir/newlib"; then
2928 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2931 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2932 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2934 i[3456789]86-*-pe)
2935 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2937 i[3456789]86-*-sco3.2v5*)
2938 # The linker does not yet know about weak symbols in COFF,
2939 # and is not configured to handle mixed ELF and COFF.
2940 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2942 i[3456789]86-*-sco*)
2943 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2945 i[3456789]86-*-solaris2*)
2946 noconfigdirs="$noconfigdirs target-libgloss"
2948 i[3456789]86-*-sysv4*)
2949 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2951 i[3456789]86-*-beos*)
2952 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2954 i[3456789]86-*-rdos*)
2955 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2957 m32r-*-*)
2958 noconfigdirs="$noconfigdirs ${libgcj}"
2960 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2961 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2962 libgloss_dir=m68hc11
2964 m68k-*-elf*)
2965 noconfigdirs="$noconfigdirs ${libgcj}"
2967 m68k-*-coff*)
2968 noconfigdirs="$noconfigdirs ${libgcj}"
2970 m68*-*-* | fido-*-*)
2971 libgloss_dir=m68k
2973 mcore-*-pe*)
2974 # The EPOC C++ environment does not support exceptions or rtti,
2975 # and so building libstdc++-v3 tends not to always work.
2976 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2978 mmix-*-*)
2979 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2980 unsupported_languages="$unsupported_languages fortran java"
2982 mn10200-*-*)
2983 noconfigdirs="$noconfigdirs ${libgcj}"
2985 mn10300-*-*)
2986 noconfigdirs="$noconfigdirs ${libgcj}"
2988 mt-*-*)
2989 noconfigdirs="$noconfigdirs sim"
2991 powerpc-*-aix*)
2992 # copied from rs6000-*-* entry
2993 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2995 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2996 target_configdirs="$target_configdirs target-winsup"
2997 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2998 # always build newlib.
2999 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3001 # This is temporary until we can link against shared libraries
3002 powerpcle-*-solaris*)
3003 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3004 libgloss_dir=rs6000
3006 powerpc-*-beos*)
3007 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3009 powerpc-*-eabi)
3010 noconfigdirs="$noconfigdirs ${libgcj}"
3011 libgloss_dir=rs6000
3013 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3014 libgloss_dir=rs6000
3016 rs6000-*-lynxos*)
3017 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3019 rs6000-*-aix*)
3020 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
3022 rs6000-*-*)
3023 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3025 m68k-apollo-*)
3026 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3028 mips*-sde-elf*)
3029 skipdirs="$skipdirs target-libiberty"
3030 noconfigdirs="$noconfigdirs ${libgcj}"
3031 if test x$with_newlib = xyes; then
3032 noconfigdirs="$noconfigdirs gprof"
3034 libgloss_dir=mips
3036 mips*-*-irix5*)
3037 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3039 mips*-*-irix6*)
3040 # Linking libjava exceeds command-line length limits on at least
3041 # IRIX 6.2, but not on IRIX 6.5.
3042 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3043 # <oldham@codesourcery.com>
3044 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3046 mips*-*-bsd*)
3047 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3049 mips*-*-linux*)
3050 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3052 mips*-*-*)
3053 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3054 libgloss_dir=mips
3056 romp-*-*)
3057 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3059 sh-*-* | sh64-*-*)
3060 case "${host}" in
3061 i[3456789]86-*-vsta) ;; # don't add gprof back in
3062 i[3456789]86-*-go32*) ;; # don't add gprof back in
3063 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3064 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3065 esac
3066 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3068 sparclet-*-aout* | sparc86x-*-*)
3069 libgloss_dir=sparc
3071 sparc-*-elf*)
3072 noconfigdirs="$noconfigdirs ${libgcj}"
3074 sparc64-*-elf*)
3075 noconfigdirs="$noconfigdirs ${libgcj}"
3076 libgloss_dir=sparc
3078 sparclite-*-*)
3079 noconfigdirs="$noconfigdirs ${libgcj}"
3080 libgloss_dir=sparc
3082 sparc-*-sunos4*)
3083 noconfigdirs="$noconfigdirs ${libgcj}"
3084 if test x${is_cross_compiler} != xno ; then
3085 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3086 else
3087 use_gnu_ld=no
3090 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3091 noconfigdirs="$noconfigdirs ${libgcj}"
3093 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3095 spu-*-*)
3096 skipdirs="target-libssp"
3098 v810-*-*)
3099 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3101 v850-*-*)
3102 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3104 v850e-*-*)
3105 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3107 v850ea-*-*)
3108 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3110 vax-*-vms)
3111 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3113 vax-*-*)
3114 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3116 xtensa*-*-*)
3117 noconfigdirs="$noconfigdirs ${libgcj}"
3119 ip2k-*-*)
3120 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3122 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
3123 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3125 *-*-lynxos*)
3126 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3128 *-*-*)
3129 noconfigdirs="$noconfigdirs ${libgcj}"
3131 esac
3133 # If we aren't building newlib, then don't build libgloss, since libgloss
3134 # depends upon some newlib header files.
3135 case "${noconfigdirs}" in
3136 *target-libgloss*) ;;
3137 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3138 esac
3140 # Work in distributions that contain no compiler tools, like Autoconf.
3141 tentative_cc=""
3142 host_makefile_frag=/dev/null
3143 if test -d ${srcdir}/config ; then
3144 case "${host}" in
3145 m68k-hp-hpux*)
3146 # Avoid "too much defining" errors from HPUX compiler.
3147 tentative_cc="cc -Wp,-H256000"
3148 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3149 # If it's HP/UX ar, this should be harmless.
3150 RANLIB="ar ts"
3152 m68k-apollo-sysv*)
3153 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3155 m68k-apollo-bsd*)
3156 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3157 # chokes on bfd, the compiler won't let you assign integers to enums, and
3158 # other problems. Defining CC to gcc is a questionable way to say "don't use
3159 # the apollo compiler" (the preferred version of GCC could be called cc,
3160 # or whatever), but I'm not sure leaving CC as cc is any better...
3161 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3162 # Used to have BISON=yacc.
3163 tentative_cc=gcc
3165 m88k-dg-dgux*)
3166 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3168 m88k-harris-cxux*)
3169 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3170 tentative_cc="cc -Xa"
3171 host_makefile_frag="config/mh-cxux"
3173 m88k-motorola-sysv*)
3175 mips*-dec-ultrix*)
3176 tentative_cc="cc -Wf,-XNg1000"
3177 host_makefile_frag="config/mh-decstation"
3179 mips*-nec-sysv4*)
3180 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3181 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3182 host_makefile_frag="config/mh-necv4"
3184 mips*-sgi-irix4*)
3185 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3186 # environment. Also bump switch table size so that cp-parse will
3187 # compile. Bump string length limit so linker builds.
3188 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3190 mips*-*-sysv4*)
3191 host_makefile_frag="config/mh-sysv4"
3193 mips*-*-sysv*)
3194 # This is for a MIPS running RISC/os 4.52C.
3196 # This is needed for GDB, but needs to be in the top-level make because
3197 # if a library is compiled with the bsd headers and gets linked with the
3198 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3199 # a different size).
3200 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3201 # known except to select the sysv environment. Could we use /proc instead?
3202 # These "sysv environments" and "bsd environments" often end up being a pain.
3204 # This is not part of CFLAGS because perhaps not all C compilers have this
3205 # option.
3206 tentative_cc="cc -systype sysv"
3208 i370-ibm-opened*)
3209 tentative_cc="c89"
3211 i[3456789]86-*-sysv5*)
3212 host_makefile_frag="config/mh-sysv5"
3214 i[3456789]86-*-dgux*)
3215 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3216 host_makefile_frag="config/mh-dgux386"
3218 i[3456789]86-ncr-sysv4.3*)
3219 # The MetaWare compiler will generate a copyright message unless you
3220 # turn it off by adding the -Hnocopyr flag.
3221 tentative_cc="cc -Hnocopyr"
3223 i[3456789]86-ncr-sysv4*)
3224 # for an NCR 3000 (i486/SVR4) system.
3225 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3226 # This compiler not only emits obnoxious copyright messages every time
3227 # you run it, but it chokes and dies on a whole bunch of GNU source
3228 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3229 tentative_cc="/usr/ccs/ATT/cc"
3230 host_makefile_frag="config/mh-ncr3000"
3232 i[3456789]86-*-sco3.2v5*)
3234 i[3456789]86-*-sco*)
3235 # The native C compiler botches some simple uses of const. Unfortunately,
3236 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3237 tentative_cc="cc -Dconst="
3238 host_makefile_frag="config/mh-sco"
3240 i[3456789]86-*-udk*)
3241 host_makefile_frag="config/mh-sysv5"
3243 i[3456789]86-*-solaris2*)
3244 host_makefile_frag="config/mh-sysv4"
3246 i[3456789]86-*-msdosdjgpp*)
3247 host_makefile_frag="config/mh-djgpp"
3249 *-cygwin*)
3251 { echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
3252 echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6; }
3253 echo a >cygwin-cat-check
3254 if test `cat cygwin-cat-check` == a ; then
3255 rm cygwin-cat-check
3256 { echo "$as_me:$LINENO: result: yes" >&5
3257 echo "${ECHO_T}yes" >&6; }
3258 else
3259 rm cygwin-cat-check
3260 { echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6; }
3262 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
3263 Please either mount the build directory in binary mode or run the following
3264 commands before running any configure script:
3265 set -o igncr
3266 export SHELLOPTS
3267 " >&5
3268 echo "$as_me: error: The cat command does not ignore carriage return characters.
3269 Please either mount the build directory in binary mode or run the following
3270 commands before running any configure script:
3271 set -o igncr
3272 export SHELLOPTS
3273 " >&2;}
3274 { (exit 1); exit 1; }; }
3277 host_makefile_frag="config/mh-cygwin"
3279 *-mingw*)
3280 host_makefile_frag="config/mh-mingw"
3282 *-interix*)
3283 host_makefile_frag="config/mh-interix"
3285 vax-*-ultrix2*)
3286 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3287 tentative_cc=gcc
3289 *-*-solaris2*)
3290 host_makefile_frag="config/mh-solaris"
3292 m68k-sun-sunos*)
3293 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3294 # without overflowing the jump tables (-J says to use a 32 bit table)
3295 tentative_cc="cc -J"
3297 *-hp-hpux*)
3298 tentative_cc="cc -Wp,-H256000"
3300 *-*-hiux*)
3301 tentative_cc="cc -Wp,-H256000"
3303 rs6000-*-lynxos*)
3304 # /bin/cc is less than useful for our purposes. Always use GCC
3305 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3306 host_makefile_frag="config/mh-lynxrs6k"
3308 powerpc-*-darwin*)
3309 host_makefile_frag="config/mh-ppc-darwin"
3311 powerpc-*-aix*)
3312 host_makefile_frag="config/mh-ppc-aix"
3314 rs6000-*-aix*)
3315 host_makefile_frag="config/mh-ppc-aix"
3317 *-*-lynxos*)
3318 # /bin/cc is less than useful for our purposes. Always use GCC
3319 tentative_cc="/bin/gcc"
3321 *-*-sysv4*)
3322 host_makefile_frag="config/mh-sysv4"
3324 # This is placed last to prevent interfering with the cases above.
3325 i[3456789]86-*-*)
3326 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3327 host_makefile_frag="config/mh-x86omitfp"
3329 esac
3332 # If we aren't going to be using gcc, see if we can extract a definition
3333 # of CC from the fragment.
3334 # Actually, use the 'pre-extracted' version above.
3335 if test -z "${CC}" && test "${build}" = "${host}" ; then
3336 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3337 found=
3338 for dir in $PATH; do
3339 test -z "$dir" && dir=.
3340 if test -f $dir/gcc; then
3341 found=yes
3342 break
3344 done
3345 IFS="$save_ifs"
3346 if test -z "${found}" && test -n "${tentative_cc}" ; then
3347 CC=$tentative_cc
3351 if test "${build}" != "${host}" ; then
3352 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3353 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3354 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3355 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3356 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3357 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3358 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3359 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3360 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3361 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3362 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3363 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3364 else
3365 AR_FOR_BUILD="\$(AR)"
3366 AS_FOR_BUILD="\$(AS)"
3367 CC_FOR_BUILD="\$(CC)"
3368 CXX_FOR_BUILD="\$(CXX)"
3369 GCJ_FOR_BUILD="\$(GCJ)"
3370 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3371 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3372 LD_FOR_BUILD="\$(LD)"
3373 NM_FOR_BUILD="\$(NM)"
3374 RANLIB_FOR_BUILD="\$(RANLIB)"
3375 WINDRES_FOR_BUILD="\$(WINDRES)"
3376 WINDMC_FOR_BUILD="\$(WINDMC)"
3379 ac_ext=c
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384 if test -n "$ac_tool_prefix"; then
3385 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3386 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3389 if test "${ac_cv_prog_CC+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC="$CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3398 IFS=$as_save_IFS
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 break 2
3406 done
3407 done
3408 IFS=$as_save_IFS
3412 CC=$ac_cv_prog_CC
3413 if test -n "$CC"; then
3414 { echo "$as_me:$LINENO: result: $CC" >&5
3415 echo "${ECHO_T}$CC" >&6; }
3416 else
3417 { echo "$as_me:$LINENO: result: no" >&5
3418 echo "${ECHO_T}no" >&6; }
3423 if test -z "$ac_cv_prog_CC"; then
3424 ac_ct_CC=$CC
3425 # Extract the first word of "gcc", so it can be a program name with args.
3426 set dummy gcc; ac_word=$2
3427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432 if test -n "$ac_ct_CC"; then
3433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3442 ac_cv_prog_ac_ct_CC="gcc"
3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3446 done
3447 done
3448 IFS=$as_save_IFS
3452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3453 if test -n "$ac_ct_CC"; then
3454 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3455 echo "${ECHO_T}$ac_ct_CC" >&6; }
3456 else
3457 { echo "$as_me:$LINENO: result: no" >&5
3458 echo "${ECHO_T}no" >&6; }
3461 if test "x$ac_ct_CC" = x; then
3462 CC=""
3463 else
3464 case $cross_compiling:$ac_tool_warned in
3465 yes:)
3466 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3467 whose name does not start with the host triplet. If you think this
3468 configuration is useful to you, please write to autoconf@gnu.org." >&5
3469 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3470 whose name does not start with the host triplet. If you think this
3471 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3472 ac_tool_warned=yes ;;
3473 esac
3474 CC=$ac_ct_CC
3476 else
3477 CC="$ac_cv_prog_CC"
3480 if test -z "$CC"; then
3481 if test -n "$ac_tool_prefix"; then
3482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3483 set dummy ${ac_tool_prefix}cc; ac_word=$2
3484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3486 if test "${ac_cv_prog_CC+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 else
3489 if test -n "$CC"; then
3490 ac_cv_prog_CC="$CC" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3495 IFS=$as_save_IFS
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3499 ac_cv_prog_CC="${ac_tool_prefix}cc"
3500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 break 2
3503 done
3504 done
3505 IFS=$as_save_IFS
3509 CC=$ac_cv_prog_CC
3510 if test -n "$CC"; then
3511 { echo "$as_me:$LINENO: result: $CC" >&5
3512 echo "${ECHO_T}$CC" >&6; }
3513 else
3514 { echo "$as_me:$LINENO: result: no" >&5
3515 echo "${ECHO_T}no" >&6; }
3521 if test -z "$CC"; then
3522 # Extract the first word of "cc", so it can be a program name with args.
3523 set dummy cc; ac_word=$2
3524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3526 if test "${ac_cv_prog_CC+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529 if test -n "$CC"; then
3530 ac_cv_prog_CC="$CC" # Let the user override the test.
3531 else
3532 ac_prog_rejected=no
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3541 ac_prog_rejected=yes
3542 continue
3544 ac_cv_prog_CC="cc"
3545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 break 2
3548 done
3549 done
3550 IFS=$as_save_IFS
3552 if test $ac_prog_rejected = yes; then
3553 # We found a bogon in the path, so make sure we never use it.
3554 set dummy $ac_cv_prog_CC
3555 shift
3556 if test $# != 0; then
3557 # We chose a different compiler from the bogus one.
3558 # However, it has the same basename, so the bogon will be chosen
3559 # first if we set CC to just the basename; use the full file name.
3560 shift
3561 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3566 CC=$ac_cv_prog_CC
3567 if test -n "$CC"; then
3568 { echo "$as_me:$LINENO: result: $CC" >&5
3569 echo "${ECHO_T}$CC" >&6; }
3570 else
3571 { echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6; }
3577 if test -z "$CC"; then
3578 if test -n "$ac_tool_prefix"; then
3579 for ac_prog in cl.exe
3581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3585 if test "${ac_cv_prog_CC+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588 if test -n "$CC"; then
3589 ac_cv_prog_CC="$CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3602 done
3603 done
3604 IFS=$as_save_IFS
3608 CC=$ac_cv_prog_CC
3609 if test -n "$CC"; then
3610 { echo "$as_me:$LINENO: result: $CC" >&5
3611 echo "${ECHO_T}$CC" >&6; }
3612 else
3613 { echo "$as_me:$LINENO: result: no" >&5
3614 echo "${ECHO_T}no" >&6; }
3618 test -n "$CC" && break
3619 done
3621 if test -z "$CC"; then
3622 ac_ct_CC=$CC
3623 for ac_prog in cl.exe
3625 # Extract the first word of "$ac_prog", so it can be a program name with args.
3626 set dummy $ac_prog; ac_word=$2
3627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632 if test -n "$ac_ct_CC"; then
3633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 ac_cv_prog_ac_ct_CC="$ac_prog"
3643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 break 2
3646 done
3647 done
3648 IFS=$as_save_IFS
3652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3653 if test -n "$ac_ct_CC"; then
3654 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3655 echo "${ECHO_T}$ac_ct_CC" >&6; }
3656 else
3657 { echo "$as_me:$LINENO: result: no" >&5
3658 echo "${ECHO_T}no" >&6; }
3662 test -n "$ac_ct_CC" && break
3663 done
3665 if test "x$ac_ct_CC" = x; then
3666 CC=""
3667 else
3668 case $cross_compiling:$ac_tool_warned in
3669 yes:)
3670 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3671 whose name does not start with the host triplet. If you think this
3672 configuration is useful to you, please write to autoconf@gnu.org." >&5
3673 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3674 whose name does not start with the host triplet. If you think this
3675 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3676 ac_tool_warned=yes ;;
3677 esac
3678 CC=$ac_ct_CC
3685 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3686 See \`config.log' for more details." >&5
3687 echo "$as_me: error: no acceptable C compiler found in \$PATH
3688 See \`config.log' for more details." >&2;}
3689 { (exit 1); exit 1; }; }
3691 # Provide some information about the compiler.
3692 echo "$as_me:$LINENO: checking for C compiler version" >&5
3693 ac_compiler=`set X $ac_compile; echo $2`
3694 { (ac_try="$ac_compiler --version >&5"
3695 case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_compiler --version >&5") 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }
3704 { (ac_try="$ac_compiler -v >&5"
3705 case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3708 esac
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710 (eval "$ac_compiler -v >&5") 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }
3714 { (ac_try="$ac_compiler -V >&5"
3715 case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718 esac
3719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3720 (eval "$ac_compiler -V >&5") 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }
3725 cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h. */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3733 main ()
3737 return 0;
3739 _ACEOF
3740 ac_clean_files_save=$ac_clean_files
3741 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3742 # Try to create an executable without -o first, disregard a.out.
3743 # It will help us diagnose broken compilers, and finding out an intuition
3744 # of exeext.
3745 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3746 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3747 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3749 # List of possible output files, starting from the most likely.
3750 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3751 # only as a last resort. b.out is created by i960 compilers.
3752 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3754 # The IRIX 6 linker writes into existing files which may not be
3755 # executable, retaining their permissions. Remove them first so a
3756 # subsequent execution test works.
3757 ac_rmfiles=
3758 for ac_file in $ac_files
3760 case $ac_file in
3761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3762 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3763 esac
3764 done
3765 rm -f $ac_rmfiles
3767 if { (ac_try="$ac_link_default"
3768 case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771 esac
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_link_default") 2>&5
3774 ac_status=$?
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; then
3777 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3778 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3779 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3780 # so that the user can short-circuit this test for compilers unknown to
3781 # Autoconf.
3782 for ac_file in $ac_files ''
3784 test -f "$ac_file" || continue
3785 case $ac_file in
3786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3788 [ab].out )
3789 # We found the default executable, but exeext='' is most
3790 # certainly right.
3791 break;;
3792 *.* )
3793 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3794 then :; else
3795 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3797 # We set ac_cv_exeext here because the later test for it is not
3798 # safe: cross compilers may not add the suffix if given an `-o'
3799 # argument, so we may need to know it at that point already.
3800 # Even if this section looks crufty: it has the advantage of
3801 # actually working.
3802 break;;
3804 break;;
3805 esac
3806 done
3807 test "$ac_cv_exeext" = no && ac_cv_exeext=
3809 else
3810 ac_file=''
3813 { echo "$as_me:$LINENO: result: $ac_file" >&5
3814 echo "${ECHO_T}$ac_file" >&6; }
3815 if test -z "$ac_file"; then
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3820 See \`config.log' for more details." >&5
3821 echo "$as_me: error: C compiler cannot create executables
3822 See \`config.log' for more details." >&2;}
3823 { (exit 77); exit 77; }; }
3826 ac_exeext=$ac_cv_exeext
3828 # Check that the compiler produces executables we can run. If not, either
3829 # the compiler is broken, or we cross compile.
3830 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3831 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3832 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3833 # If not cross compiling, check that we can run a simple program.
3834 if test "$cross_compiling" != yes; then
3835 if { ac_try='./$ac_file'
3836 { (case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839 esac
3840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3841 (eval "$ac_try") 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 cross_compiling=no
3846 else
3847 if test "$cross_compiling" = maybe; then
3848 cross_compiling=yes
3849 else
3850 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3851 If you meant to cross compile, use \`--host'.
3852 See \`config.log' for more details." >&5
3853 echo "$as_me: error: cannot run C compiled programs.
3854 If you meant to cross compile, use \`--host'.
3855 See \`config.log' for more details." >&2;}
3856 { (exit 1); exit 1; }; }
3860 { echo "$as_me:$LINENO: result: yes" >&5
3861 echo "${ECHO_T}yes" >&6; }
3863 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3864 ac_clean_files=$ac_clean_files_save
3865 # Check that the compiler produces executables we can run. If not, either
3866 # the compiler is broken, or we cross compile.
3867 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3868 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3869 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3870 echo "${ECHO_T}$cross_compiling" >&6; }
3872 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3873 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3874 if { (ac_try="$ac_link"
3875 case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_link") 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; then
3884 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3885 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3886 # work properly (i.e., refer to `conftest.exe'), while it won't with
3887 # `rm'.
3888 for ac_file in conftest.exe conftest conftest.*; do
3889 test -f "$ac_file" || continue
3890 case $ac_file in
3891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3892 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3893 break;;
3894 * ) break;;
3895 esac
3896 done
3897 else
3898 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3899 See \`config.log' for more details." >&5
3900 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3901 See \`config.log' for more details." >&2;}
3902 { (exit 1); exit 1; }; }
3905 rm -f conftest$ac_cv_exeext
3906 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3907 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3909 rm -f conftest.$ac_ext
3910 EXEEXT=$ac_cv_exeext
3911 ac_exeext=$EXEEXT
3912 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3913 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3914 if test "${ac_cv_objext+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h. */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3925 main ()
3929 return 0;
3931 _ACEOF
3932 rm -f conftest.o conftest.obj
3933 if { (ac_try="$ac_compile"
3934 case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_compile") 2>&5
3940 ac_status=$?
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; then
3943 for ac_file in conftest.o conftest.obj conftest.*; do
3944 test -f "$ac_file" || continue;
3945 case $ac_file in
3946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3947 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3948 break;;
3949 esac
3950 done
3951 else
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3956 See \`config.log' for more details." >&5
3957 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3958 See \`config.log' for more details." >&2;}
3959 { (exit 1); exit 1; }; }
3962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3964 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3965 echo "${ECHO_T}$ac_cv_objext" >&6; }
3966 OBJEXT=$ac_cv_objext
3967 ac_objext=$OBJEXT
3968 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973 cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h. */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3981 main ()
3983 #ifndef __GNUC__
3984 choke me
3985 #endif
3988 return 0;
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_compile") 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest.$ac_objext; then
4008 ac_compiler_gnu=yes
4009 else
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4013 ac_compiler_gnu=no
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4020 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4022 GCC=`test $ac_compiler_gnu = yes && echo yes`
4023 ac_test_CFLAGS=${CFLAGS+set}
4024 ac_save_CFLAGS=$CFLAGS
4025 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4026 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4027 if test "${ac_cv_prog_cc_g+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030 ac_save_c_werror_flag=$ac_c_werror_flag
4031 ac_c_werror_flag=yes
4032 ac_cv_prog_cc_g=no
4033 CFLAGS="-g"
4034 cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h. */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4042 main ()
4046 return 0;
4048 _ACEOF
4049 rm -f conftest.$ac_objext
4050 if { (ac_try="$ac_compile"
4051 case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054 esac
4055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056 (eval "$ac_compile") 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } && {
4063 test -z "$ac_c_werror_flag" ||
4064 test ! -s conftest.err
4065 } && test -s conftest.$ac_objext; then
4066 ac_cv_prog_cc_g=yes
4067 else
4068 echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4071 CFLAGS=""
4072 cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h. */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4080 main ()
4084 return 0;
4086 _ACEOF
4087 rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4089 case "(($ac_try" in
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4092 esac
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_compile") 2>conftest.er1
4095 ac_status=$?
4096 grep -v '^ *+' conftest.er1 >conftest.err
4097 rm -f conftest.er1
4098 cat conftest.err >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } && {
4101 test -z "$ac_c_werror_flag" ||
4102 test ! -s conftest.err
4103 } && test -s conftest.$ac_objext; then
4105 else
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 ac_c_werror_flag=$ac_save_c_werror_flag
4110 CFLAGS="-g"
4111 cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h. */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4119 main ()
4123 return 0;
4125 _ACEOF
4126 rm -f conftest.$ac_objext
4127 if { (ac_try="$ac_compile"
4128 case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4131 esac
4132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_compile") 2>conftest.er1
4134 ac_status=$?
4135 grep -v '^ *+' conftest.er1 >conftest.err
4136 rm -f conftest.er1
4137 cat conftest.err >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } && {
4140 test -z "$ac_c_werror_flag" ||
4141 test ! -s conftest.err
4142 } && test -s conftest.$ac_objext; then
4143 ac_cv_prog_cc_g=yes
4144 else
4145 echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_c_werror_flag=$ac_save_c_werror_flag
4160 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4161 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4162 if test "$ac_test_CFLAGS" = set; then
4163 CFLAGS=$ac_save_CFLAGS
4164 elif test $ac_cv_prog_cc_g = yes; then
4165 if test "$GCC" = yes; then
4166 CFLAGS="-g -O2"
4167 else
4168 CFLAGS="-g"
4170 else
4171 if test "$GCC" = yes; then
4172 CFLAGS="-O2"
4173 else
4174 CFLAGS=
4177 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4178 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4179 if test "${ac_cv_prog_cc_c89+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182 ac_cv_prog_cc_c89=no
4183 ac_save_CC=$CC
4184 cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h. */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 #include <stdarg.h>
4191 #include <stdio.h>
4192 #include <sys/types.h>
4193 #include <sys/stat.h>
4194 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4195 struct buf { int x; };
4196 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4197 static char *e (p, i)
4198 char **p;
4199 int i;
4201 return p[i];
4203 static char *f (char * (*g) (char **, int), char **p, ...)
4205 char *s;
4206 va_list v;
4207 va_start (v,p);
4208 s = g (p, va_arg (v,int));
4209 va_end (v);
4210 return s;
4213 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4214 function prototypes and stuff, but not '\xHH' hex character constants.
4215 These don't provoke an error unfortunately, instead are silently treated
4216 as 'x'. The following induces an error, until -std is added to get
4217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4218 array size at least. It's necessary to write '\x00'==0 to get something
4219 that's true only with -std. */
4220 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4222 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4223 inside strings and character constants. */
4224 #define FOO(x) 'x'
4225 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4227 int test (int i, double x);
4228 struct s1 {int (*f) (int a);};
4229 struct s2 {int (*f) (double a);};
4230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4231 int argc;
4232 char **argv;
4234 main ()
4236 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4238 return 0;
4240 _ACEOF
4241 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4244 CC="$ac_save_CC $ac_arg"
4245 rm -f conftest.$ac_objext
4246 if { (ac_try="$ac_compile"
4247 case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250 esac
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_compile") 2>conftest.er1
4253 ac_status=$?
4254 grep -v '^ *+' conftest.er1 >conftest.err
4255 rm -f conftest.er1
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } && {
4259 test -z "$ac_c_werror_flag" ||
4260 test ! -s conftest.err
4261 } && test -s conftest.$ac_objext; then
4262 ac_cv_prog_cc_c89=$ac_arg
4263 else
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4270 rm -f core conftest.err conftest.$ac_objext
4271 test "x$ac_cv_prog_cc_c89" != "xno" && break
4272 done
4273 rm -f conftest.$ac_ext
4274 CC=$ac_save_CC
4277 # AC_CACHE_VAL
4278 case "x$ac_cv_prog_cc_c89" in
4280 { echo "$as_me:$LINENO: result: none needed" >&5
4281 echo "${ECHO_T}none needed" >&6; } ;;
4282 xno)
4283 { echo "$as_me:$LINENO: result: unsupported" >&5
4284 echo "${ECHO_T}unsupported" >&6; } ;;
4286 CC="$CC $ac_cv_prog_cc_c89"
4287 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4288 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4289 esac
4292 ac_ext=c
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298 ac_ext=cpp
4299 ac_cpp='$CXXCPP $CPPFLAGS'
4300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4303 if test -z "$CXX"; then
4304 if test -n "$CCC"; then
4305 CXX=$CCC
4306 else
4307 if test -n "$ac_tool_prefix"; then
4308 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4314 if test "${ac_cv_prog_CXX+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 if test -n "$CXX"; then
4318 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4327 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4331 done
4332 done
4333 IFS=$as_save_IFS
4337 CXX=$ac_cv_prog_CXX
4338 if test -n "$CXX"; then
4339 { echo "$as_me:$LINENO: result: $CXX" >&5
4340 echo "${ECHO_T}$CXX" >&6; }
4341 else
4342 { echo "$as_me:$LINENO: result: no" >&5
4343 echo "${ECHO_T}no" >&6; }
4347 test -n "$CXX" && break
4348 done
4350 if test -z "$CXX"; then
4351 ac_ct_CXX=$CXX
4352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4354 # Extract the first word of "$ac_prog", so it can be a program name with args.
4355 set dummy $ac_prog; ac_word=$2
4356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4358 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 if test -n "$ac_ct_CXX"; then
4362 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_ac_ct_CXX="$ac_prog"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4375 done
4376 done
4377 IFS=$as_save_IFS
4381 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4382 if test -n "$ac_ct_CXX"; then
4383 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4384 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4385 else
4386 { echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6; }
4391 test -n "$ac_ct_CXX" && break
4392 done
4394 if test "x$ac_ct_CXX" = x; then
4395 CXX="g++"
4396 else
4397 case $cross_compiling:$ac_tool_warned in
4398 yes:)
4399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4400 whose name does not start with the host triplet. If you think this
4401 configuration is useful to you, please write to autoconf@gnu.org." >&5
4402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4403 whose name does not start with the host triplet. If you think this
4404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407 CXX=$ac_ct_CXX
4413 # Provide some information about the compiler.
4414 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4415 ac_compiler=`set X $ac_compile; echo $2`
4416 { (ac_try="$ac_compiler --version >&5"
4417 case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4420 esac
4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_compiler --version >&5") 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }
4426 { (ac_try="$ac_compiler -v >&5"
4427 case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4430 esac
4431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4432 (eval "$ac_compiler -v >&5") 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }
4436 { (ac_try="$ac_compiler -V >&5"
4437 case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440 esac
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_compiler -V >&5") 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }
4447 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4448 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4449 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h. */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4460 main ()
4462 #ifndef __GNUC__
4463 choke me
4464 #endif
4467 return 0;
4469 _ACEOF
4470 rm -f conftest.$ac_objext
4471 if { (ac_try="$ac_compile"
4472 case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_compile") 2>conftest.er1
4478 ac_status=$?
4479 grep -v '^ *+' conftest.er1 >conftest.err
4480 rm -f conftest.er1
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } && {
4484 test -z "$ac_cxx_werror_flag" ||
4485 test ! -s conftest.err
4486 } && test -s conftest.$ac_objext; then
4487 ac_compiler_gnu=yes
4488 else
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4492 ac_compiler_gnu=no
4495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4499 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4500 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4501 GXX=`test $ac_compiler_gnu = yes && echo yes`
4502 ac_test_CXXFLAGS=${CXXFLAGS+set}
4503 ac_save_CXXFLAGS=$CXXFLAGS
4504 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4505 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4506 if test "${ac_cv_prog_cxx_g+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4510 ac_cxx_werror_flag=yes
4511 ac_cv_prog_cxx_g=no
4512 CXXFLAGS="-g"
4513 cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h. */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4521 main ()
4525 return 0;
4527 _ACEOF
4528 rm -f conftest.$ac_objext
4529 if { (ac_try="$ac_compile"
4530 case "(($ac_try" in
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4533 esac
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535 (eval "$ac_compile") 2>conftest.er1
4536 ac_status=$?
4537 grep -v '^ *+' conftest.er1 >conftest.err
4538 rm -f conftest.er1
4539 cat conftest.err >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } && {
4542 test -z "$ac_cxx_werror_flag" ||
4543 test ! -s conftest.err
4544 } && test -s conftest.$ac_objext; then
4545 ac_cv_prog_cxx_g=yes
4546 else
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4550 CXXFLAGS=""
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4559 main ()
4563 return 0;
4565 _ACEOF
4566 rm -f conftest.$ac_objext
4567 if { (ac_try="$ac_compile"
4568 case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4571 esac
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_compile") 2>conftest.er1
4574 ac_status=$?
4575 grep -v '^ *+' conftest.er1 >conftest.err
4576 rm -f conftest.er1
4577 cat conftest.err >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } && {
4580 test -z "$ac_cxx_werror_flag" ||
4581 test ! -s conftest.err
4582 } && test -s conftest.$ac_objext; then
4584 else
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4589 CXXFLAGS="-g"
4590 cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h. */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4598 main ()
4602 return 0;
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (ac_try="$ac_compile"
4607 case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4610 esac
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_compile") 2>conftest.er1
4613 ac_status=$?
4614 grep -v '^ *+' conftest.er1 >conftest.err
4615 rm -f conftest.er1
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } && {
4619 test -z "$ac_cxx_werror_flag" ||
4620 test ! -s conftest.err
4621 } && test -s conftest.$ac_objext; then
4622 ac_cv_prog_cxx_g=yes
4623 else
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4640 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4641 if test "$ac_test_CXXFLAGS" = set; then
4642 CXXFLAGS=$ac_save_CXXFLAGS
4643 elif test $ac_cv_prog_cxx_g = yes; then
4644 if test "$GXX" = yes; then
4645 CXXFLAGS="-g -O2"
4646 else
4647 CXXFLAGS="-g"
4649 else
4650 if test "$GXX" = yes; then
4651 CXXFLAGS="-O2"
4652 else
4653 CXXFLAGS=
4656 ac_ext=c
4657 ac_cpp='$CPP $CPPFLAGS'
4658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4663 # We must set the default linker to the linker used by gcc for the correct
4664 # operation of libtool. If LD is not defined and we are using gcc, try to
4665 # set the LD default to the ld used by gcc.
4666 if test -z "$LD"; then
4667 if test "$GCC" = yes; then
4668 case $build in
4669 *-*-mingw*)
4670 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4672 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4673 esac
4674 case $gcc_prog_ld in
4675 # Accept absolute paths.
4676 [\\/]* | [A-Za-z]:[\\/]*)
4677 LD="$gcc_prog_ld" ;;
4678 esac
4685 if test -n "$ac_tool_prefix"; then
4686 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4687 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690 if test "${ac_cv_prog_GNATBIND+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else
4693 if test -n "$GNATBIND"; then
4694 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4703 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4707 done
4708 done
4709 IFS=$as_save_IFS
4713 GNATBIND=$ac_cv_prog_GNATBIND
4714 if test -n "$GNATBIND"; then
4715 { echo "$as_me:$LINENO: result: $GNATBIND" >&5
4716 echo "${ECHO_T}$GNATBIND" >&6; }
4717 else
4718 { echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6; }
4724 if test -z "$ac_cv_prog_GNATBIND"; then
4725 ac_ct_GNATBIND=$GNATBIND
4726 # Extract the first word of "gnatbind", so it can be a program name with args.
4727 set dummy gnatbind; ac_word=$2
4728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4730 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733 if test -n "$ac_ct_GNATBIND"; then
4734 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4735 else
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4747 done
4748 done
4749 IFS=$as_save_IFS
4753 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4754 if test -n "$ac_ct_GNATBIND"; then
4755 { echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4756 echo "${ECHO_T}$ac_ct_GNATBIND" >&6; }
4757 else
4758 { echo "$as_me:$LINENO: result: no" >&5
4759 echo "${ECHO_T}no" >&6; }
4762 if test "x$ac_ct_GNATBIND" = x; then
4763 GNATBIND="no"
4764 else
4765 case $cross_compiling:$ac_tool_warned in
4766 yes:)
4767 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4768 whose name does not start with the host triplet. If you think this
4769 configuration is useful to you, please write to autoconf@gnu.org." >&5
4770 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4771 whose name does not start with the host triplet. If you think this
4772 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4773 ac_tool_warned=yes ;;
4774 esac
4775 GNATBIND=$ac_ct_GNATBIND
4777 else
4778 GNATBIND="$ac_cv_prog_GNATBIND"
4781 if test -n "$ac_tool_prefix"; then
4782 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4783 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4786 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789 if test -n "$GNATMAKE"; then
4790 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4803 done
4804 done
4805 IFS=$as_save_IFS
4809 GNATMAKE=$ac_cv_prog_GNATMAKE
4810 if test -n "$GNATMAKE"; then
4811 { echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4812 echo "${ECHO_T}$GNATMAKE" >&6; }
4813 else
4814 { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4820 if test -z "$ac_cv_prog_GNATMAKE"; then
4821 ac_ct_GNATMAKE=$GNATMAKE
4822 # Extract the first word of "gnatmake", so it can be a program name with args.
4823 set dummy gnatmake; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829 if test -n "$ac_ct_GNATMAKE"; then
4830 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4843 done
4844 done
4845 IFS=$as_save_IFS
4849 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4850 if test -n "$ac_ct_GNATMAKE"; then
4851 { echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4852 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6; }
4853 else
4854 { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4858 if test "x$ac_ct_GNATMAKE" = x; then
4859 GNATMAKE="no"
4860 else
4861 case $cross_compiling:$ac_tool_warned in
4862 yes:)
4863 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4864 whose name does not start with the host triplet. If you think this
4865 configuration is useful to you, please write to autoconf@gnu.org." >&5
4866 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4867 whose name does not start with the host triplet. If you think this
4868 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4869 ac_tool_warned=yes ;;
4870 esac
4871 GNATMAKE=$ac_ct_GNATMAKE
4873 else
4874 GNATMAKE="$ac_cv_prog_GNATMAKE"
4877 { echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4878 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6; }
4879 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882 cat >conftest.adb <<EOF
4883 procedure conftest is begin null; end conftest;
4885 acx_cv_cc_gcc_supports_ada=no
4886 # There is a bug in old released versions of GCC which causes the
4887 # driver to exit successfully when the appropriate language module
4888 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4889 # Therefore we must check for the error message as well as an
4890 # unsuccessful exit.
4891 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4892 # given a .adb file, but produce no object file. So we must check
4893 # if an object file was really produced to guard against this.
4894 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4895 if test x"$errors" = x && test -f conftest.$ac_objext; then
4896 acx_cv_cc_gcc_supports_ada=yes
4898 rm -f conftest.*
4900 { echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4901 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6; }
4903 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4904 have_gnat=yes
4905 else
4906 have_gnat=no
4909 { echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4910 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6; }
4911 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 else
4914 echo abfoo >t1
4915 echo cdfoo >t2
4916 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4917 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4918 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4920 else
4921 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4924 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4925 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4927 else
4928 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4931 rm t1 t2
4934 { echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4935 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6; }
4936 do_compare="$gcc_cv_prog_cmp_skip"
4940 # Check for GMP and MPFR
4941 gmplibs="-lmpfr -lgmp"
4942 gmpinc=
4943 have_gmp=no
4945 # Specify a location for mpfr
4946 # check for this first so it ends up on the link line before gmp.
4948 # Check whether --with-mpfr-dir was given.
4949 if test "${with_mpfr_dir+set}" = set; then
4950 withval=$with_mpfr_dir; { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4951 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4952 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4953 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4954 { (exit 1); exit 1; }; }
4959 # Check whether --with-mpfr was given.
4960 if test "${with_mpfr+set}" = set; then
4961 withval=$with_mpfr;
4965 # Check whether --with-mpfr_include was given.
4966 if test "${with_mpfr_include+set}" = set; then
4967 withval=$with_mpfr_include;
4971 # Check whether --with-mpfr_lib was given.
4972 if test "${with_mpfr_lib+set}" = set; then
4973 withval=$with_mpfr_lib;
4977 if test "x$with_mpfr" != x; then
4978 gmplibs="-L$with_mpfr/lib $gmplibs"
4979 gmpinc="-I$with_mpfr/include"
4981 if test "x$with_mpfr_include" != x; then
4982 gmpinc="-I$with_mpfr_include"
4984 if test "x$with_mpfr_lib" != x; then
4985 gmplibs="-L$with_mpfr_lib $gmplibs"
4987 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4988 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4989 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4990 # Do not test the mpfr version. Assume that it is sufficient, since
4991 # it is in the source tree, and the library has not been built yet
4992 # but it would be included on the link line in the version check below
4993 # hence making the test fail.
4994 have_gmp=yes
4997 # Specify a location for gmp
4999 # Check whether --with-gmp-dir was given.
5000 if test "${with_gmp_dir+set}" = set; then
5001 withval=$with_gmp_dir; { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
5002 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
5003 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
5004 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
5005 { (exit 1); exit 1; }; }
5010 # Check whether --with-gmp was given.
5011 if test "${with_gmp+set}" = set; then
5012 withval=$with_gmp;
5016 # Check whether --with-gmp_include was given.
5017 if test "${with_gmp_include+set}" = set; then
5018 withval=$with_gmp_include;
5022 # Check whether --with-gmp_lib was given.
5023 if test "${with_gmp_lib+set}" = set; then
5024 withval=$with_gmp_lib;
5029 if test "x$with_gmp" != x; then
5030 gmplibs="-L$with_gmp/lib $gmplibs"
5031 gmpinc="-I$with_gmp/include $gmpinc"
5033 if test "x$with_gmp_include" != x; then
5034 gmpinc="-I$with_gmp_include $gmpinc"
5036 if test "x$with_gmp_lib" != x; then
5037 gmplibs="-L$with_gmp_lib $gmplibs"
5039 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5040 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
5041 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5042 # Do not test the gmp version. Assume that it is sufficient, since
5043 # it is in the source tree, and the library has not been built yet
5044 # but it would be included on the link line in the version check below
5045 # hence making the test fail.
5046 have_gmp=yes
5049 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5050 have_gmp=yes
5051 saved_CFLAGS="$CFLAGS"
5052 CFLAGS="$CFLAGS $gmpinc"
5053 # Check GMP actually works
5054 { echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
5055 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6; }
5057 cat >conftest.$ac_ext <<_ACEOF
5058 /* confdefs.h. */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5063 #include "gmp.h"
5065 main ()
5068 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
5069 choke me
5070 #endif
5073 return 0;
5075 _ACEOF
5076 rm -f conftest.$ac_objext
5077 if { (ac_try="$ac_compile"
5078 case "(($ac_try" in
5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5081 esac
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_compile") 2>conftest.er1
5084 ac_status=$?
5085 grep -v '^ *+' conftest.er1 >conftest.err
5086 rm -f conftest.er1
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } && {
5090 test -z "$ac_c_werror_flag" ||
5091 test ! -s conftest.err
5092 } && test -s conftest.$ac_objext; then
5093 { echo "$as_me:$LINENO: result: yes" >&5
5094 echo "${ECHO_T}yes" >&6; }
5095 else
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5099 { echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6; }; have_gmp=no
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 if test x"$have_gmp" = xyes; then
5106 saved_LIBS="$LIBS"
5107 LIBS="$LIBS $gmplibs"
5108 { echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
5109 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6; }
5110 cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h. */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 #include <gmp.h>
5117 #include <mpfr.h>
5119 main ()
5122 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
5123 choke me
5124 #endif
5125 mpfr_t n;
5126 mpfr_t x;
5127 int t;
5128 mpfr_init (n);
5129 mpfr_init (x);
5130 mpfr_atan2 (n, n, x, GMP_RNDN);
5131 mpfr_erfc (n, x, GMP_RNDN);
5132 mpfr_subnormalize (x, t, GMP_RNDN);
5135 return 0;
5137 _ACEOF
5138 rm -f conftest.$ac_objext conftest$ac_exeext
5139 if { (ac_try="$ac_link"
5140 case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_link") 2>conftest.er1
5146 ac_status=$?
5147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest$ac_exeext &&
5155 $as_test_x conftest$ac_exeext; then
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 #include <gmp.h>
5163 #include <mpfr.h>
5165 main ()
5168 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
5169 choke me
5170 #endif
5171 mpfr_t n; mpfr_init(n);
5174 return 0;
5176 _ACEOF
5177 rm -f conftest.$ac_objext conftest$ac_exeext
5178 if { (ac_try="$ac_link"
5179 case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5182 esac
5183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184 (eval "$ac_link") 2>conftest.er1
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } && {
5191 test -z "$ac_c_werror_flag" ||
5192 test ! -s conftest.err
5193 } && test -s conftest$ac_exeext &&
5194 $as_test_x conftest$ac_exeext; then
5195 { echo "$as_me:$LINENO: result: yes" >&5
5196 echo "${ECHO_T}yes" >&6; }
5197 else
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5201 { echo "$as_me:$LINENO: result: buggy but acceptable" >&5
5202 echo "${ECHO_T}buggy but acceptable" >&6; }
5205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5206 conftest$ac_exeext conftest.$ac_ext
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 { echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6; }; have_gmp=no
5215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5216 conftest$ac_exeext conftest.$ac_ext
5217 LIBS="$saved_LIBS"
5219 CFLAGS="$saved_CFLAGS"
5221 if test x$have_gmp != xyes; then
5222 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
5223 Try the --with-gmp and/or --with-mpfr options to specify their locations.
5224 Copies of these libraries' source code can be found at their respective
5225 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5226 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5227 If you obtained GMP and/or MPFR from a vendor distribution package, make
5228 sure that you have installed both the libraries and the header files.
5229 They may be located in separate packages." >&5
5230 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
5231 Try the --with-gmp and/or --with-mpfr options to specify their locations.
5232 Copies of these libraries' source code can be found at their respective
5233 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5234 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5235 If you obtained GMP and/or MPFR from a vendor distribution package, make
5236 sure that you have installed both the libraries and the header files.
5237 They may be located in separate packages." >&2;}
5238 { (exit 1); exit 1; }; }
5242 # Flags needed for both GMP and/or MPFR
5246 # By default, C is the only stage 1 language.
5247 stage1_languages=,c,
5249 # Figure out what language subdirectories are present.
5250 # Look if the user specified --enable-languages="..."; if not, use
5251 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5252 # go away some day.
5253 # NB: embedded tabs in this IF block -- do not untabify
5254 if test -d ${srcdir}/gcc; then
5255 if test x"${enable_languages+set}" != xset; then
5256 if test x"${LANGUAGES+set}" = xset; then
5257 enable_languages="${LANGUAGES}"
5258 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5259 else
5260 enable_languages=all
5262 else
5263 if test x"${enable_languages}" = x ||
5264 test x"${enable_languages}" = xyes;
5265 then
5266 echo configure.in: --enable-languages needs at least one language argument 1>&2
5267 exit 1
5270 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5272 # 'f95' is the old name for the 'fortran' language. We issue a warning
5273 # and make the substitution.
5274 case ,${enable_languages}, in
5275 *,f95,*)
5276 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5277 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5279 esac
5281 # First scan to see if an enabled language requires some other language.
5282 # We assume that a given config-lang.in will list all the language
5283 # front ends it requires, even if some are required indirectly.
5284 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5285 case ${lang_frag} in
5286 ..) ;;
5287 # The odd quoting in the next line works around
5288 # an apparent bug in bash 1.12 on linux.
5289 ${srcdir}/gcc/[*]/config-lang.in) ;;
5291 # From the config-lang.in, get $language, $lang_requires
5292 language=
5293 lang_requires=
5294 . ${lang_frag}
5295 for other in ${lang_requires} ; do
5296 case ,${enable_languages}, in
5297 *,$other,*) ;;
5298 *,all,*) ;;
5299 *,$language,*)
5300 echo " \`$other' language required by \`$language'; enabling" 1>&2
5301 enable_languages="${enable_languages},${other}"
5303 esac
5304 done
5306 esac
5307 done
5309 new_enable_languages=,c,
5310 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
5311 potential_languages=,c,
5313 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5314 case ${lang_frag} in
5315 ..) ;;
5316 # The odd quoting in the next line works around
5317 # an apparent bug in bash 1.12 on linux.
5318 ${srcdir}/gcc/[*]/config-lang.in) ;;
5320 # From the config-lang.in, get $language, $target_libs,
5321 # $lang_dirs, $boot_language, and $build_by_default
5322 language=
5323 target_libs=
5324 lang_dirs=
5325 subdir_requires=
5326 boot_language=no
5327 build_by_default=yes
5328 . ${lang_frag}
5329 if test x${language} = x; then
5330 echo "${lang_frag} doesn't set \$language." 1>&2
5331 exit 1
5334 case ,${enable_languages}, in
5335 *,${language},*)
5336 # Language was explicitly selected; include it.
5337 add_this_lang=yes
5339 *,all,*)
5340 # 'all' was selected, select it if it is a default language
5341 add_this_lang=${build_by_default}
5344 add_this_lang=no
5346 esac
5348 # Disable languages that need other directories if these aren't available.
5349 for i in $subdir_requires; do
5350 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5351 case ,${enable_languages}, in
5352 *,${language},*)
5353 # Specifically requested language; tell them.
5354 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5355 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5356 { (exit 1); exit 1; }; }
5359 # Silently disable.
5360 add_this_lang=unsupported
5362 esac
5363 done
5365 # Disable Ada if no preexisting GNAT is available.
5366 case ,${enable_languages},:${language}:${have_gnat} in
5367 *,${language},*:ada:no)
5368 # Specifically requested language; tell them.
5369 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5370 echo "$as_me: error: GNAT is required to build $language" >&2;}
5371 { (exit 1); exit 1; }; }
5373 *:ada:no)
5374 # Silently disable.
5375 add_this_lang=unsupported
5377 esac
5379 # Disable a language that is unsupported by the target.
5380 case " $unsupported_languages " in
5381 *" $language "*)
5382 add_this_lang=unsupported
5384 esac
5386 case $add_this_lang in
5387 unsupported)
5388 # Remove language-dependent dirs.
5389 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5392 # Remove language-dependent dirs; still show language as supported.
5393 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5394 potential_languages="${potential_languages}${language},"
5396 yes)
5397 new_enable_languages="${new_enable_languages}${language},"
5398 potential_languages="${potential_languages}${language},"
5399 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5400 case ${boot_language} in
5401 yes)
5402 # Add to (comma-separated) list of stage 1 languages.
5403 stage1_languages="${stage1_languages}${language},"
5405 esac
5407 esac
5409 esac
5410 done
5412 # Check whether --enable-stage1-languages was given.
5413 if test "${enable_stage1_languages+set}" = set; then
5414 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
5415 ,no,|,,)
5416 # Set it to something that will have no effect in the loop below
5417 enable_stage1_languages=c ;;
5418 ,yes,)
5419 enable_stage1_languages=`echo $new_enable_languages | \
5420 sed -e "s/^,//" -e "s/,$//" ` ;;
5421 *,all,*)
5422 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5423 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5424 esac
5426 # Add "good" languages from enable_stage1_languages to stage1_languages,
5427 # while "bad" languages go in missing_languages. Leave no duplicates.
5428 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5429 case $potential_languages in
5430 *,$i,*)
5431 case $stage1_languages in
5432 *,$i,*) ;;
5433 *) stage1_languages="$stage1_languages$i," ;;
5434 esac ;;
5436 case $missing_languages in
5437 *,$i,*) ;;
5438 *) missing_languages="$missing_languages$i," ;;
5439 esac ;;
5440 esac
5441 done
5445 # Remove leading/trailing commas that were added for simplicity
5446 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
5447 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
5448 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5449 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5451 if test "x$missing_languages" != x; then
5452 { { echo "$as_me:$LINENO: error:
5453 The following requested languages could not be built: ${missing_languages}
5454 Supported languages are: ${potential_languages}" >&5
5455 echo "$as_me: error:
5456 The following requested languages could not be built: ${missing_languages}
5457 Supported languages are: ${potential_languages}" >&2;}
5458 { (exit 1); exit 1; }; }
5460 if test "x$new_enable_languages" != "x$enable_languages"; then
5461 echo The following languages will be built: ${new_enable_languages}
5462 enable_languages="$new_enable_languages"
5466 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5469 # Handle --disable-<component> generically.
5470 for dir in $configdirs $build_configdirs $target_configdirs ; do
5471 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5472 varname=`echo $dirname | sed -e s/+/_/g`
5473 if eval test x\${enable_${varname}} "=" xno ; then
5474 noconfigdirs="$noconfigdirs $dir"
5476 done
5478 # Check for Boehm's garbage collector
5479 # Check whether --enable-objc-gc was given.
5480 if test "${enable_objc_gc+set}" = set; then
5481 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5482 *,objc,*:*:yes:*target-boehm-gc*)
5483 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5484 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5485 { (exit 1); exit 1; }; }
5487 esac
5491 # Make sure we only build Boehm's garbage collector if required.
5492 case ,${enable_languages},:${enable_objc_gc} in
5493 *,objc,*:yes)
5494 # Keep target-boehm-gc if requested for Objective-C.
5497 # Otherwise remove target-boehm-gc depending on target-libjava.
5498 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5499 noconfigdirs="$noconfigdirs target-boehm-gc"
5502 esac
5504 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5505 # $build_configdirs and $target_configdirs.
5506 # If we have the source for $noconfigdirs entries, add them to $notsupp.
5508 notsupp=""
5509 for dir in . $skipdirs $noconfigdirs ; do
5510 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5511 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5512 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5513 if test -r $srcdir/$dirname/configure ; then
5514 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5515 true
5516 else
5517 notsupp="$notsupp $dir"
5521 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5522 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5523 if test -r $srcdir/$dirname/configure ; then
5524 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5525 true
5526 else
5527 notsupp="$notsupp $dir"
5531 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5532 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5533 if test -r $srcdir/$dirname/configure ; then
5534 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5535 true
5536 else
5537 notsupp="$notsupp $dir"
5541 done
5543 # Sometimes the tools are distributed with libiberty but with no other
5544 # libraries. In that case, we don't want to build target-libiberty.
5545 # Don't let libgcc imply libiberty either.
5546 if test -n "${target_configdirs}" ; then
5547 libgcc=
5548 others=
5549 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5550 if test "$i" = "libgcc"; then
5551 libgcc=target-libgcc
5552 elif test "$i" != "libiberty" ; then
5553 if test -r $srcdir/$i/configure ; then
5554 others=yes;
5555 break;
5558 done
5559 if test -z "${others}" ; then
5560 target_configdirs=$libgcc
5564 # Quietly strip out all directories which aren't configurable in this tree.
5565 # This relies on all configurable subdirectories being autoconfiscated, which
5566 # is now the case.
5567 build_configdirs_all="$build_configdirs"
5568 build_configdirs=
5569 for i in ${build_configdirs_all} ; do
5570 j=`echo $i | sed -e s/build-//g`
5571 if test -f ${srcdir}/$j/configure ; then
5572 build_configdirs="${build_configdirs} $i"
5574 done
5576 configdirs_all="$configdirs"
5577 configdirs=
5578 for i in ${configdirs_all} ; do
5579 if test -f ${srcdir}/$i/configure ; then
5580 configdirs="${configdirs} $i"
5582 done
5584 target_configdirs_all="$target_configdirs"
5585 target_configdirs=
5586 for i in ${target_configdirs_all} ; do
5587 j=`echo $i | sed -e s/target-//g`
5588 if test -f ${srcdir}/$j/configure ; then
5589 target_configdirs="${target_configdirs} $i"
5591 done
5593 # Produce a warning message for the subdirs we can't configure.
5594 # This isn't especially interesting in the Cygnus tree, but in the individual
5595 # FSF releases, it's important to let people know when their machine isn't
5596 # supported by the one or two programs in a package.
5598 if test -n "${notsupp}" && test -z "${norecursion}" ; then
5599 # If $appdirs is non-empty, at least one of those directories must still
5600 # be configured, or we error out. (E.g., if the gas release supports a
5601 # specified target in some subdirs but not the gas subdir, we shouldn't
5602 # pretend that all is well.)
5603 if test -n "$appdirs" ; then
5604 for dir in $appdirs ; do
5605 if test -r $dir/Makefile.in ; then
5606 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5607 appdirs=""
5608 break
5610 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5611 appdirs=""
5612 break
5615 done
5616 if test -n "$appdirs" ; then
5617 echo "*** This configuration is not supported by this package." 1>&2
5618 exit 1
5621 # Okay, some application will build, or we don't care to check. Still
5622 # notify of subdirs not getting built.
5623 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5624 echo " ${notsupp}" 1>&2
5625 echo " (Any other directories should still work fine.)" 1>&2
5628 case "$host" in
5629 *msdosdjgpp*)
5630 enable_gdbtk=no ;;
5631 esac
5633 # To find our prefix, in gcc_cv_tool_prefix.
5635 # The user is always right.
5636 if test "${PATH_SEPARATOR+set}" != set; then
5637 echo "#! /bin/sh" >conf$$.sh
5638 echo "exit 0" >>conf$$.sh
5639 chmod +x conf$$.sh
5640 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5641 PATH_SEPARATOR=';'
5642 else
5643 PATH_SEPARATOR=:
5645 rm -f conf$$.sh
5650 if test "x$exec_prefix" = xNONE; then
5651 if test "x$prefix" = xNONE; then
5652 gcc_cv_tool_prefix=$ac_default_prefix
5653 else
5654 gcc_cv_tool_prefix=$prefix
5656 else
5657 gcc_cv_tool_prefix=$exec_prefix
5660 # If there is no compiler in the tree, use the PATH only. In any
5661 # case, if there is no compiler in the tree nobody should use
5662 # AS_FOR_TARGET and LD_FOR_TARGET.
5663 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5664 gcc_version=`cat $srcdir/gcc/BASE-VER`
5665 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5666 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5667 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5668 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5669 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5670 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5671 else
5672 gcc_cv_tool_dirs=
5675 if test x$build = x$target && test -n "$md_exec_prefix"; then
5676 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5681 copy_dirs=
5684 # Check whether --with-build-sysroot was given.
5685 if test "${with_build_sysroot+set}" = set; then
5686 withval=$with_build_sysroot; if test x"$withval" != x ; then
5687 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5689 else
5690 SYSROOT_CFLAGS_FOR_TARGET=
5696 # Check whether --with-debug-prefix-map was given.
5697 if test "${with_debug_prefix_map+set}" = set; then
5698 withval=$with_debug_prefix_map; if test x"$withval" != x; then
5699 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5700 for debug_map in $withval; do
5701 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5702 done
5704 else
5705 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5710 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5711 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5712 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5713 # We want to ensure that TARGET libraries (which we know are built with
5714 # gcc) are built with "-O2 -g", so include those options when setting
5715 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5716 if test "x$CFLAGS_FOR_TARGET" = x; then
5717 CFLAGS_FOR_TARGET=$CFLAGS
5718 case " $CFLAGS " in
5719 *" -O2 "*) ;;
5720 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5721 esac
5722 case " $CFLAGS " in
5723 *" -g "* | *" -g3 "*) ;;
5724 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5725 esac
5729 if test "x$CXXFLAGS_FOR_TARGET" = x; then
5730 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5731 case " $CXXFLAGS " in
5732 *" -O2 "*) ;;
5733 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5734 esac
5735 case " $CXXFLAGS " in
5736 *" -g "* | *" -g3 "*) ;;
5737 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5738 esac
5742 # Handle --with-headers=XXX. If the value is not "yes", the contents of
5743 # the named directory are copied to $(tooldir)/sys-include.
5744 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5745 if test x${is_cross_compiler} = xno ; then
5746 echo 1>&2 '***' --with-headers is only supported when cross compiling
5747 exit 1
5749 if test x"${with_headers}" != xyes ; then
5750 x=${gcc_cv_tool_prefix}
5751 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5755 # Handle --with-libs=XXX. If the value is not "yes", the contents of
5756 # the name directories are copied to $(tooldir)/lib. Multiple directories
5757 # are permitted.
5758 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5759 if test x${is_cross_compiler} = xno ; then
5760 echo 1>&2 '***' --with-libs is only supported when cross compiling
5761 exit 1
5763 if test x"${with_libs}" != xyes ; then
5764 # Copy the libraries in reverse order, so that files in the first named
5765 # library override files in subsequent libraries.
5766 x=${gcc_cv_tool_prefix}
5767 for l in ${with_libs}; do
5768 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5769 done
5773 # Set with_gnu_as and with_gnu_ld as appropriate.
5775 # This is done by determining whether or not the appropriate directory
5776 # is available, and by checking whether or not specific configurations
5777 # have requested that this magic not happen.
5779 # The command line options always override the explicit settings in
5780 # configure.in, and the settings in configure.in override this magic.
5782 # If the default for a toolchain is to use GNU as and ld, and you don't
5783 # want to do that, then you should use the --without-gnu-as and
5784 # --without-gnu-ld options for the configure script.
5786 if test x${use_gnu_as} = x &&
5787 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5788 with_gnu_as=yes
5789 extra_host_args="$extra_host_args --with-gnu-as"
5792 if test x${use_gnu_ld} = x &&
5793 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
5794 with_gnu_ld=yes
5795 extra_host_args="$extra_host_args --with-gnu-ld"
5798 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5799 # can detect this case.
5801 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5802 with_newlib=yes
5803 extra_host_args="$extra_host_args --with-newlib"
5806 # Handle ${copy_dirs}
5807 set fnord ${copy_dirs}
5808 shift
5809 while test $# != 0 ; do
5810 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5812 else
5813 echo Copying $1 to $2
5815 # Use the install script to create the directory and all required
5816 # parent directories.
5817 if test -d $2 ; then
5819 else
5820 echo >config.temp
5821 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5824 # Copy the directory, assuming we have tar.
5825 # FIXME: Should we use B in the second tar? Not all systems support it.
5826 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5828 # It is the responsibility of the user to correctly adjust all
5829 # symlinks. If somebody can figure out how to handle them correctly
5830 # here, feel free to add the code.
5832 echo $1 > $2/COPIED
5834 shift; shift
5835 done
5837 # Determine a target-dependent exec_prefix that the installed
5838 # gcc will search in. Keep this list sorted by triplet, with
5839 # the *-*-osname triplets last.
5840 md_exec_prefix=
5841 case "${target}" in
5842 alpha*-*-*vms*)
5843 md_exec_prefix=/gnu/lib/gcc-lib
5845 i[34567]86-pc-msdosdjgpp*)
5846 md_exec_prefix=/dev/env/DJDIR/bin
5848 i[34567]86-*-sco3.2v5*)
5849 if test $with_gnu_as = yes; then
5850 md_exec_prefix=/usr/gnu/bin
5851 else
5852 md_exec_prefix=/usr/ccs/bin/elf
5856 mn10300-*-* | \
5857 powerpc-*-chorusos* | \
5858 powerpc*-*-eabi* | \
5859 powerpc*-*-sysv* | \
5860 powerpc*-*-kaos* | \
5861 s390x-ibm-tpf*)
5862 md_exec_prefix=/usr/ccs/bin
5864 sparc64-*-elf*)
5866 v850*-*-*)
5867 md_exec_prefix=/usr/ccs/bin
5869 xtensa*-*-elf*)
5872 *-*-beos* | \
5873 *-*-elf* | \
5874 *-*-hpux* | \
5875 *-*-netware* | \
5876 *-*-nto-qnx* | \
5877 *-*-rtems* | \
5878 *-*-solaris2* | \
5879 *-*-sysv[45]* | \
5880 *-*-vxworks* | \
5881 *-wrs-windiss)
5882 md_exec_prefix=/usr/ccs/bin
5884 esac
5886 extra_arflags_for_target=
5887 extra_nmflags_for_target=
5888 extra_ranlibflags_for_target=
5889 target_makefile_frag=/dev/null
5890 case "${target}" in
5891 mep*-*-*)
5892 target_makefile_frag="config/mt-mep"
5894 spu-*-*)
5895 target_makefile_frag="config/mt-spu"
5897 mips*-sde-elf*)
5898 target_makefile_frag="config/mt-sde"
5900 mipsisa*-*-elfoabi*)
5901 target_makefile_frag="config/mt-mips-elfoabi"
5903 *-*-netware*)
5904 target_makefile_frag="config/mt-netware"
5906 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5907 target_makefile_frag="config/mt-gnu"
5909 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5910 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5911 # commands to handle both 32-bit and 64-bit objects. These flags are
5912 # harmless if we're using GNU nm or ar.
5913 extra_arflags_for_target=" -X32_64"
5914 extra_nmflags_for_target=" -B -X32_64"
5916 *-*-darwin*)
5917 # ranlib from Darwin requires the -c flag to look at common symbols.
5918 extra_ranlibflags_for_target=" -c"
5920 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5921 target_makefile_frag="config/mt-wince"
5923 esac
5925 alphaieee_frag=/dev/null
5926 case $target in
5927 alpha*-*-*)
5928 # This just makes sure to use the -mieee option to build target libs.
5929 # This should probably be set individually by each library.
5930 alphaieee_frag="config/mt-alphaieee"
5932 esac
5934 # If --enable-target-optspace always use -Os instead of -O2 to build
5935 # the target libraries, similarly if it is not specified, use -Os
5936 # on selected platforms.
5937 ospace_frag=/dev/null
5938 case "${enable_target_optspace}:${target}" in
5939 yes:*)
5940 ospace_frag="config/mt-ospace"
5942 :d30v-*)
5943 ospace_frag="config/mt-d30v"
5945 :m32r-* | :d10v-* | :fr30-*)
5946 ospace_frag="config/mt-ospace"
5948 no:* | :*)
5951 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5953 esac
5955 # Default to using --with-stabs for certain targets.
5956 if test x${with_stabs} = x ; then
5957 case "${target}" in
5958 mips*-*-irix[56]*)
5960 mips*-*-* | alpha*-*-osf*)
5961 with_stabs=yes;
5962 extra_host_args="${extra_host_args} --with-stabs"
5964 esac
5967 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5968 # them automatically.
5969 case "${host}" in
5970 hppa*64*-*-hpux11*)
5971 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5973 esac
5975 # Some systems (e.g., one of the i386-aix systems the gas testers are
5976 # using) don't handle "\$" correctly, so don't use it here.
5977 tooldir='${exec_prefix}'/${target_noncanonical}
5978 build_tooldir=${tooldir}
5980 # Create a .gdbinit file which runs the one in srcdir
5981 # and tells GDB to look there for source files.
5983 if test -r ${srcdir}/.gdbinit ; then
5984 case ${srcdir} in
5985 .) ;;
5986 *) cat > ./.gdbinit <<EOF
5987 # ${NO_EDIT}
5988 dir ${srcdir}
5989 dir .
5990 source ${srcdir}/.gdbinit
5993 esac
5996 # Make sure that the compiler is able to generate an executable. If it
5997 # can't, we are probably in trouble. We don't care whether we can run the
5998 # executable--we might be using a cross compiler--we only care whether it
5999 # can be created. At this point the main configure script has set CC.
6000 we_are_ok=no
6001 echo "int main () { return 0; }" > conftest.c
6002 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6003 if test $? = 0 ; then
6004 if test -s conftest || test -s conftest.exe ; then
6005 we_are_ok=yes
6008 case $we_are_ok in
6010 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6011 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6012 rm -f conftest*
6013 exit 1
6015 esac
6016 rm -f conftest*
6018 # The Solaris /usr/ucb/cc compiler does not appear to work.
6019 case "${host}" in
6020 sparc-sun-solaris2*)
6021 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6022 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6023 could_use=
6024 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6025 if test -d /opt/cygnus/bin ; then
6026 if test "$could_use" = "" ; then
6027 could_use="/opt/cygnus/bin"
6028 else
6029 could_use="$could_use or /opt/cygnus/bin"
6032 if test "$could_use" = "" ; then
6033 echo "Warning: compilation may fail because you're using"
6034 echo "/usr/ucb/cc. You should change your PATH or CC "
6035 echo "variable and rerun configure."
6036 else
6037 echo "Warning: compilation may fail because you're using"
6038 echo "/usr/ucb/cc, when you should use the C compiler from"
6039 echo "$could_use. You should change your"
6040 echo "PATH or CC variable and rerun configure."
6044 esac
6046 case "${host}" in
6047 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6048 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6049 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6050 esac
6052 # Record target_configdirs and the configure arguments for target and
6053 # build configuration in Makefile.
6054 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6055 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6057 # Determine whether gdb needs tk/tcl or not.
6058 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6059 # and in that case we want gdb to be built without tk. Ugh!
6060 # In fact I believe gdb is the *only* package directly dependent on tk,
6061 # so we should be able to put the 'maybe's in unconditionally and
6062 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6063 # 100% sure that that's safe though.
6065 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6066 case "$enable_gdbtk" in
6068 GDB_TK="" ;;
6069 yes)
6070 GDB_TK="${gdb_tk}" ;;
6072 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6073 # distro. Eventually someone will fix this and move Insight, nee
6074 # gdbtk to a separate directory.
6075 if test -d ${srcdir}/gdb/gdbtk ; then
6076 GDB_TK="${gdb_tk}"
6077 else
6078 GDB_TK=""
6081 esac
6082 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6083 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6085 # Strip out unwanted targets.
6087 # While at that, we remove Makefiles if we were started for recursive
6088 # configuration, so that the top-level Makefile reconfigures them,
6089 # like we used to do when configure itself was recursive.
6091 # Loop over modules. $extrasub must be used with care, limiting as
6092 # much as possible the usage of range addresses. That's because autoconf
6093 # splits the sed script to overcome limits in the number of commands,
6094 # and relying on carefully-timed sed passes may turn out to be very hard
6095 # to maintain later. In this particular case, you just have to be careful
6096 # not to nest @if/@endif pairs, because configure will not warn you at all.
6098 # Check whether --enable-bootstrap was given.
6099 if test "${enable_bootstrap+set}" = set; then
6100 enableval=$enable_bootstrap;
6101 else
6102 enable_bootstrap=default
6106 # Issue errors and warnings for invalid/strange bootstrap combinations.
6107 case "$configdirs" in
6108 *gcc*) have_compiler=yes ;;
6109 *) have_compiler=no ;;
6110 esac
6112 case "$have_compiler:$host:$target:$enable_bootstrap" in
6113 *:*:*:no) ;;
6115 # Default behavior. Enable bootstrap if we have a compiler
6116 # and we are in a native configuration.
6117 yes:$build:$build:default)
6118 enable_bootstrap=yes ;;
6120 *:*:*:default)
6121 enable_bootstrap=no ;;
6123 # We have a compiler and we are in a native configuration, bootstrap is ok
6124 yes:$build:$build:yes)
6127 # Other configurations, but we have a compiler. Assume the user knows
6128 # what he's doing.
6129 yes:*:*:yes)
6130 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
6131 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6134 # No compiler: if they passed --enable-bootstrap explicitly, fail
6135 no:*:*:yes)
6136 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
6137 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
6138 { (exit 1); exit 1; }; } ;;
6140 # Fail if wrong command line
6142 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
6143 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
6144 { (exit 1); exit 1; }; }
6146 esac
6148 # Adjust the toplevel makefile according to whether bootstrap was selected.
6149 case "$enable_bootstrap" in
6150 yes)
6151 bootstrap_suffix=bootstrap ;;
6153 bootstrap_suffix=no-bootstrap ;;
6154 esac
6156 for module in ${build_configdirs} ; do
6157 if test -z "${no_recursion}" \
6158 && test -f ${build_subdir}/${module}/Makefile; then
6159 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6160 rm -f ${build_subdir}/${module}/Makefile
6162 extrasub="$extrasub
6163 /^@if build-$module\$/d
6164 /^@endif build-$module\$/d
6165 /^@if build-$module-$bootstrap_suffix\$/d
6166 /^@endif build-$module-$bootstrap_suffix\$/d"
6167 done
6168 for module in ${configdirs} ; do
6169 if test -z "${no_recursion}"; then
6170 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6171 if test -f ${file}; then
6172 echo 1>&2 "*** removing ${file} to force reconfigure"
6173 rm -f ${file}
6175 done
6177 extrasub="$extrasub
6178 /^@if $module\$/d
6179 /^@endif $module\$/d
6180 /^@if $module-$bootstrap_suffix\$/d
6181 /^@endif $module-$bootstrap_suffix\$/d"
6182 done
6183 for module in ${target_configdirs} ; do
6184 if test -z "${no_recursion}" \
6185 && test -f ${target_subdir}/${module}/Makefile; then
6186 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6187 rm -f ${target_subdir}/${module}/Makefile
6189 extrasub="$extrasub
6190 /^@if target-$module\$/d
6191 /^@endif target-$module\$/d
6192 /^@if target-$module-$bootstrap_suffix\$/d
6193 /^@endif target-$module-$bootstrap_suffix\$/d"
6194 done
6196 extrasub="$extrasub
6197 /^@if /,/^@endif /d"
6199 # Create the serialization dependencies. This uses a temporary file.
6201 # Check whether --enable-serial-configure was given.
6202 if test "${enable_serial_configure+set}" = set; then
6203 enableval=$enable_serial_configure;
6207 case ${enable_serial_configure} in
6208 yes)
6209 enable_serial_build_configure=yes
6210 enable_serial_host_configure=yes
6211 enable_serial_target_configure=yes
6213 esac
6215 # These force 'configure's to be done one at a time, to avoid problems
6216 # with contention over a shared config.cache.
6217 rm -f serdep.tmp
6218 echo '# serdep.tmp' > serdep.tmp
6219 olditem=
6220 test "x${enable_serial_build_configure}" = xyes &&
6221 for item in ${build_configdirs} ; do
6222 case ${olditem} in
6223 "") ;;
6224 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6225 esac
6226 olditem=${item}
6227 done
6228 olditem=
6229 test "x${enable_serial_host_configure}" = xyes &&
6230 for item in ${configdirs} ; do
6231 case ${olditem} in
6232 "") ;;
6233 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6234 esac
6235 olditem=${item}
6236 done
6237 olditem=
6238 test "x${enable_serial_target_configure}" = xyes &&
6239 for item in ${target_configdirs} ; do
6240 case ${olditem} in
6241 "") ;;
6242 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6243 esac
6244 olditem=${item}
6245 done
6246 serialization_dependencies=serdep.tmp
6249 # Base args. Strip norecursion, cache-file, srcdir, host, build,
6250 # target, nonopt, and variable assignments. These are the ones we
6251 # might not want to pass down to subconfigures. Also strip
6252 # program-prefix, program-suffix, and program-transform-name, so that
6253 # we can pass down a consistent program-transform-name.
6254 baseargs=
6255 keep_next=no
6256 skip_next=no
6257 eval "set -- $ac_configure_args"
6258 for ac_arg
6260 if test X"$skip_next" = X"yes"; then
6261 skip_next=no
6262 continue
6264 if test X"$keep_next" = X"yes"; then
6265 case $ac_arg in
6266 *\'*)
6267 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6268 esac
6269 baseargs="$baseargs '$ac_arg'"
6270 keep_next=no
6271 continue
6274 # Handle separated arguments. Based on the logic generated by
6275 # autoconf 2.59.
6276 case $ac_arg in
6277 *=* | --config-cache | -C | -disable-* | --disable-* \
6278 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6279 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6280 | -with-* | --with-* | -without-* | --without-* | --x)
6281 separate_arg=no
6284 separate_arg=yes
6287 separate_arg=no
6289 esac
6291 case "$ac_arg" in
6292 --no*)
6293 continue
6295 --c* | \
6296 --sr* | \
6297 --ho* | \
6298 --bu* | \
6299 --t* | \
6300 --program-* | \
6301 -cache_file* | \
6302 -srcdir* | \
6303 -host* | \
6304 -build* | \
6305 -target* | \
6306 -program-prefix* | \
6307 -program-suffix* | \
6308 -program-transform-name* )
6309 skip_next=$separate_arg
6310 continue
6313 # An option. Add it.
6314 case $ac_arg in
6315 *\'*)
6316 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6317 esac
6318 baseargs="$baseargs '$ac_arg'"
6319 keep_next=$separate_arg
6322 # Either a variable assignment, or a nonopt (triplet). Don't
6323 # pass it down; let the Makefile handle this.
6324 continue
6326 esac
6327 done
6328 # Remove the initial space we just introduced and, as these will be
6329 # expanded by make, quote '$'.
6330 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
6332 # Add in --program-transform-name, after --program-prefix and
6333 # --program-suffix have been applied to it. Autoconf has already
6334 # doubled dollar signs and backslashes in program_transform_name; we want
6335 # the backslashes un-doubled, and then the entire thing wrapped in single
6336 # quotes, because this will be expanded first by make and then by the shell.
6337 # Also, because we want to override the logic in subdir configure scripts to
6338 # choose program_transform_name, replace any s,x,x, with s,y,y,.
6339 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6340 ${program_transform_name}
6341 EOF_SED
6342 gcc_transform_name=`cat conftestsed.out`
6343 rm -f conftestsed.out
6344 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
6345 if test "$silent" = yes; then
6346 baseargs="$baseargs --silent"
6349 # For the build-side libraries, we just need to pretend we're native,
6350 # and not use the same cache file. Multilibs are neither needed nor
6351 # desired.
6352 build_configargs="--cache-file=../config.cache ${baseargs}"
6354 # For host modules, accept cache file option, or specification as blank.
6355 case "${cache_file}" in
6356 "") # empty
6357 cache_file_option="" ;;
6358 /* | [A-Za-z]:[\\/]* ) # absolute path
6359 cache_file_option="--cache-file=${cache_file}" ;;
6360 *) # relative path
6361 cache_file_option="--cache-file=../${cache_file}" ;;
6362 esac
6364 # Host dirs don't like to share a cache file either, horribly enough.
6365 # This seems to be due to autoconf 2.5x stupidity.
6366 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
6368 target_configargs=${baseargs}
6370 # Passing a --with-cross-host argument lets the target libraries know
6371 # whether they are being built with a cross-compiler or being built
6372 # native. However, it would be better to use other mechanisms to make the
6373 # sorts of decisions they want to make on this basis. Please consider
6374 # this option to be deprecated. FIXME.
6375 if test x${is_cross_compiler} = xyes ; then
6376 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
6379 # Default to --enable-multilib.
6380 if test x${enable_multilib} = x ; then
6381 target_configargs="--enable-multilib ${target_configargs}"
6384 # Pass --with-newlib if appropriate. Note that target_configdirs has
6385 # changed from the earlier setting of with_newlib.
6386 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6387 target_configargs="--with-newlib ${target_configargs}"
6390 # Different target subdirs use different values of certain variables
6391 # (notably CXX). Worse, multilibs use *lots* of different values.
6392 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6393 # it doesn't automatically accept command-line overrides of them.
6394 # This means it's not safe for target subdirs to share a cache file,
6395 # which is disgusting, but there you have it. Hopefully this can be
6396 # fixed in future. It's still worthwhile to use a cache file for each
6397 # directory. I think.
6399 # Pass the appropriate --build, --host, --target and --cache-file arguments.
6400 # We need to pass --target, as newer autoconf's requires consistency
6401 # for target_alias and gcc doesn't manage it consistently.
6402 target_configargs="--cache-file=./config.cache ${target_configargs}"
6404 FLAGS_FOR_TARGET=
6405 case " $target_configdirs " in
6406 *" newlib "*)
6407 case " $target_configargs " in
6408 *" --with-newlib "*)
6409 case "$target" in
6410 *-cygwin*)
6411 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' ;;
6412 esac
6414 # If we're not building GCC, don't discard standard headers.
6415 if test -d ${srcdir}/gcc; then
6416 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6418 if test "${build}" != "${host}"; then
6419 # On Canadian crosses, CC_FOR_TARGET will have already been set
6420 # by `configure', so we won't have an opportunity to add -Bgcc/
6421 # to it. This is right: we don't want to search that directory
6422 # for binaries, but we want the header files in there, so add
6423 # them explicitly.
6424 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
6426 # Someone might think of using the pre-installed headers on
6427 # Canadian crosses, in case the installed compiler is not fully
6428 # compatible with the compiler being built. In this case, it
6429 # would be better to flag an error than risking having
6430 # incompatible object files being constructed. We can't
6431 # guarantee that an error will be flagged, but let's hope the
6432 # compiler will do it, when presented with incompatible header
6433 # files.
6437 case "${target}-${is_cross_compiler}" in
6438 i[3456789]86-*-linux*-no)
6439 # Here host == target, so we don't need to build gcc,
6440 # so we don't want to discard standard headers.
6441 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6444 # If we're building newlib, use its generic headers last, but search
6445 # for any libc-related directories first (so make it the last -B
6446 # switch).
6447 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6449 # If we're building libgloss, find the startup file, simulator library
6450 # and linker script.
6451 case " $target_configdirs " in
6452 *" libgloss "*)
6453 # Look for startup file, simulator library and maybe linker script.
6454 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6455 # Look for libnosys.a in case the target needs it.
6456 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6457 # Most targets have the linker script in the source directory.
6458 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6460 esac
6462 esac
6464 esac
6466 esac
6467 case "$target" in
6468 *-mingw*)
6469 # Can't be handled as Cygwin above since Mingw does not use newlib.
6470 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' ;;
6471 esac
6473 # Allow the user to override the flags for
6474 # our build compiler if desired.
6475 if test x"${build}" = x"${host}" ; then
6476 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6477 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6478 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6481 # On Canadian crosses, we'll be searching the right directories for
6482 # the previously-installed cross compiler, so don't bother to add
6483 # flags for directories within the install tree of the compiler
6484 # being built; programs in there won't even run.
6485 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6486 # Search for pre-installed headers if nothing else fits.
6487 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6490 if test "x${use_gnu_ld}" = x &&
6491 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6492 # Arrange for us to find uninstalled linker scripts.
6493 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6496 # Search for other target-specific linker scripts and such.
6497 case "${target}" in
6498 mep*)
6499 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6501 esac
6503 # Makefile fragments.
6504 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6506 eval fragval=\$$frag
6507 if test $fragval != /dev/null; then
6508 eval $frag=${srcdir}/$fragval
6510 done
6516 # Miscellanea: directories, flags, etc.
6524 # Build module lists & subconfigure args.
6528 # Host module lists & subconfigure args.
6532 # Target module lists & subconfigure args.
6536 # Build tools.
6554 # Generate default definitions for YACC, M4, LEX and other programs that run
6555 # on the build machine. These are used if the Makefile can't locate these
6556 # programs in objdir.
6557 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6559 for ac_prog in 'bison -y' byacc yacc
6561 # Extract the first word of "$ac_prog", so it can be a program name with args.
6562 set dummy $ac_prog; ac_word=$2
6563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6565 if test "${ac_cv_prog_YACC+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568 if test -n "$YACC"; then
6569 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_YACC="$ac_prog"
6579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6582 done
6583 done
6584 IFS=$as_save_IFS
6588 YACC=$ac_cv_prog_YACC
6589 if test -n "$YACC"; then
6590 { echo "$as_me:$LINENO: result: $YACC" >&5
6591 echo "${ECHO_T}$YACC" >&6; }
6592 else
6593 { echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6; }
6598 test -n "$YACC" && break
6599 done
6600 test -n "$YACC" || YACC="$MISSING bison -y"
6602 case " $build_configdirs " in
6603 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6604 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6605 esac
6607 for ac_prog in bison
6609 # Extract the first word of "$ac_prog", so it can be a program name with args.
6610 set dummy $ac_prog; ac_word=$2
6611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6613 if test "${ac_cv_prog_BISON+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616 if test -n "$BISON"; then
6617 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_prog_BISON="$ac_prog"
6627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6630 done
6631 done
6632 IFS=$as_save_IFS
6636 BISON=$ac_cv_prog_BISON
6637 if test -n "$BISON"; then
6638 { echo "$as_me:$LINENO: result: $BISON" >&5
6639 echo "${ECHO_T}$BISON" >&6; }
6640 else
6641 { echo "$as_me:$LINENO: result: no" >&5
6642 echo "${ECHO_T}no" >&6; }
6646 test -n "$BISON" && break
6647 done
6648 test -n "$BISON" || BISON="$MISSING bison"
6650 case " $build_configdirs " in
6651 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6652 esac
6654 for ac_prog in gm4 gnum4 m4
6656 # Extract the first word of "$ac_prog", so it can be a program name with args.
6657 set dummy $ac_prog; ac_word=$2
6658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6660 if test "${ac_cv_prog_M4+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663 if test -n "$M4"; then
6664 ac_cv_prog_M4="$M4" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_prog_M4="$ac_prog"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6677 done
6678 done
6679 IFS=$as_save_IFS
6683 M4=$ac_cv_prog_M4
6684 if test -n "$M4"; then
6685 { echo "$as_me:$LINENO: result: $M4" >&5
6686 echo "${ECHO_T}$M4" >&6; }
6687 else
6688 { echo "$as_me:$LINENO: result: no" >&5
6689 echo "${ECHO_T}no" >&6; }
6693 test -n "$M4" && break
6694 done
6695 test -n "$M4" || M4="$MISSING m4"
6697 case " $build_configdirs " in
6698 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6699 esac
6701 for ac_prog in flex lex
6703 # Extract the first word of "$ac_prog", so it can be a program name with args.
6704 set dummy $ac_prog; ac_word=$2
6705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6707 if test "${ac_cv_prog_LEX+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710 if test -n "$LEX"; then
6711 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6712 else
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_prog_LEX="$ac_prog"
6721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 break 2
6724 done
6725 done
6726 IFS=$as_save_IFS
6730 LEX=$ac_cv_prog_LEX
6731 if test -n "$LEX"; then
6732 { echo "$as_me:$LINENO: result: $LEX" >&5
6733 echo "${ECHO_T}$LEX" >&6; }
6734 else
6735 { echo "$as_me:$LINENO: result: no" >&5
6736 echo "${ECHO_T}no" >&6; }
6740 test -n "$LEX" && break
6741 done
6742 test -n "$LEX" || LEX="$MISSING flex"
6744 case " $build_configdirs " in
6745 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6746 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6747 esac
6749 for ac_prog in flex
6751 # Extract the first word of "$ac_prog", so it can be a program name with args.
6752 set dummy $ac_prog; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_prog_FLEX+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 if test -n "$FLEX"; then
6759 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_prog_FLEX="$ac_prog"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6772 done
6773 done
6774 IFS=$as_save_IFS
6778 FLEX=$ac_cv_prog_FLEX
6779 if test -n "$FLEX"; then
6780 { echo "$as_me:$LINENO: result: $FLEX" >&5
6781 echo "${ECHO_T}$FLEX" >&6; }
6782 else
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6788 test -n "$FLEX" && break
6789 done
6790 test -n "$FLEX" || FLEX="$MISSING flex"
6792 case " $build_configdirs " in
6793 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6794 esac
6796 for ac_prog in makeinfo
6798 # Extract the first word of "$ac_prog", so it can be a program name with args.
6799 set dummy $ac_prog; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805 if test -n "$MAKEINFO"; then
6806 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_MAKEINFO="$ac_prog"
6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6819 done
6820 done
6821 IFS=$as_save_IFS
6825 MAKEINFO=$ac_cv_prog_MAKEINFO
6826 if test -n "$MAKEINFO"; then
6827 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6828 echo "${ECHO_T}$MAKEINFO" >&6; }
6829 else
6830 { echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6; }
6835 test -n "$MAKEINFO" && break
6836 done
6837 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6839 case " $build_configdirs " in
6840 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6843 # For an installed makeinfo, we require it to be from texinfo 4.6 or
6844 # higher, else we use the "missing" dummy.
6845 if ${MAKEINFO} --version \
6846 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
6848 else
6849 MAKEINFO="$MISSING makeinfo"
6853 esac
6855 # FIXME: expect and dejagnu may become build tools?
6857 for ac_prog in expect
6859 # Extract the first word of "$ac_prog", so it can be a program name with args.
6860 set dummy $ac_prog; ac_word=$2
6861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863 if test "${ac_cv_prog_EXPECT+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866 if test -n "$EXPECT"; then
6867 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_EXPECT="$ac_prog"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6880 done
6881 done
6882 IFS=$as_save_IFS
6886 EXPECT=$ac_cv_prog_EXPECT
6887 if test -n "$EXPECT"; then
6888 { echo "$as_me:$LINENO: result: $EXPECT" >&5
6889 echo "${ECHO_T}$EXPECT" >&6; }
6890 else
6891 { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6896 test -n "$EXPECT" && break
6897 done
6898 test -n "$EXPECT" || EXPECT="expect"
6900 case " $configdirs " in
6901 *" expect "*)
6902 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6904 esac
6906 for ac_prog in runtest
6908 # Extract the first word of "$ac_prog", so it can be a program name with args.
6909 set dummy $ac_prog; ac_word=$2
6910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6912 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 else
6915 if test -n "$RUNTEST"; then
6916 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_prog_RUNTEST="$ac_prog"
6926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6929 done
6930 done
6931 IFS=$as_save_IFS
6935 RUNTEST=$ac_cv_prog_RUNTEST
6936 if test -n "$RUNTEST"; then
6937 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
6938 echo "${ECHO_T}$RUNTEST" >&6; }
6939 else
6940 { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6945 test -n "$RUNTEST" && break
6946 done
6947 test -n "$RUNTEST" || RUNTEST="runtest"
6949 case " $configdirs " in
6950 *" dejagnu "*)
6951 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6953 esac
6956 # Host tools.
6957 ncn_tool_prefix=
6958 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6959 ncn_target_tool_prefix=
6960 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6964 if test -n "$AR"; then
6965 ac_cv_prog_AR=$AR
6966 elif test -n "$ac_cv_prog_AR"; then
6967 AR=$ac_cv_prog_AR
6970 if test -n "$ac_cv_prog_AR"; then
6971 for ncn_progname in ar; do
6972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6973 set dummy ${ncn_progname}; ac_word=$2
6974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6976 if test "${ac_cv_prog_AR+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979 if test -n "$AR"; then
6980 ac_cv_prog_AR="$AR" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_prog_AR="${ncn_progname}"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6993 done
6994 done
6995 IFS=$as_save_IFS
6999 AR=$ac_cv_prog_AR
7000 if test -n "$AR"; then
7001 { echo "$as_me:$LINENO: result: $AR" >&5
7002 echo "${ECHO_T}$AR" >&6; }
7003 else
7004 { echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6; }
7009 done
7012 for ncn_progname in ar; do
7013 if test -n "$ncn_tool_prefix"; then
7014 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7015 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7018 if test "${ac_cv_prog_AR+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 else
7021 if test -n "$AR"; then
7022 ac_cv_prog_AR="$AR" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7035 done
7036 done
7037 IFS=$as_save_IFS
7041 AR=$ac_cv_prog_AR
7042 if test -n "$AR"; then
7043 { echo "$as_me:$LINENO: result: $AR" >&5
7044 echo "${ECHO_T}$AR" >&6; }
7045 else
7046 { echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6; }
7052 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7054 set dummy ${ncn_progname}; ac_word=$2
7055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7057 if test "${ac_cv_prog_AR+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060 if test -n "$AR"; then
7061 ac_cv_prog_AR="$AR" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_prog_AR="${ncn_progname}"
7071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7074 done
7075 done
7076 IFS=$as_save_IFS
7080 AR=$ac_cv_prog_AR
7081 if test -n "$AR"; then
7082 { echo "$as_me:$LINENO: result: $AR" >&5
7083 echo "${ECHO_T}$AR" >&6; }
7084 else
7085 { echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6; }
7091 test -n "$ac_cv_prog_AR" && break
7092 done
7094 if test -z "$ac_cv_prog_AR" ; then
7095 set dummy ar
7096 if test $build = $host ; then
7097 AR="$2"
7098 else
7099 AR="${ncn_tool_prefix}$2"
7105 if test -n "$AS"; then
7106 ac_cv_prog_AS=$AS
7107 elif test -n "$ac_cv_prog_AS"; then
7108 AS=$ac_cv_prog_AS
7111 if test -n "$ac_cv_prog_AS"; then
7112 for ncn_progname in as; do
7113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7114 set dummy ${ncn_progname}; ac_word=$2
7115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7117 if test "${ac_cv_prog_AS+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120 if test -n "$AS"; then
7121 ac_cv_prog_AS="$AS" # Let the user override the test.
7122 else
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7130 ac_cv_prog_AS="${ncn_progname}"
7131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 break 2
7134 done
7135 done
7136 IFS=$as_save_IFS
7140 AS=$ac_cv_prog_AS
7141 if test -n "$AS"; then
7142 { echo "$as_me:$LINENO: result: $AS" >&5
7143 echo "${ECHO_T}$AS" >&6; }
7144 else
7145 { echo "$as_me:$LINENO: result: no" >&5
7146 echo "${ECHO_T}no" >&6; }
7150 done
7153 for ncn_progname in as; do
7154 if test -n "$ncn_tool_prefix"; then
7155 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7156 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7159 if test "${ac_cv_prog_AS+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162 if test -n "$AS"; then
7163 ac_cv_prog_AS="$AS" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7172 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 break 2
7176 done
7177 done
7178 IFS=$as_save_IFS
7182 AS=$ac_cv_prog_AS
7183 if test -n "$AS"; then
7184 { echo "$as_me:$LINENO: result: $AS" >&5
7185 echo "${ECHO_T}$AS" >&6; }
7186 else
7187 { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7193 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7195 set dummy ${ncn_progname}; ac_word=$2
7196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7198 if test "${ac_cv_prog_AS+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201 if test -n "$AS"; then
7202 ac_cv_prog_AS="$AS" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_prog_AS="${ncn_progname}"
7212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7215 done
7216 done
7217 IFS=$as_save_IFS
7221 AS=$ac_cv_prog_AS
7222 if test -n "$AS"; then
7223 { echo "$as_me:$LINENO: result: $AS" >&5
7224 echo "${ECHO_T}$AS" >&6; }
7225 else
7226 { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7232 test -n "$ac_cv_prog_AS" && break
7233 done
7235 if test -z "$ac_cv_prog_AS" ; then
7236 set dummy as
7237 if test $build = $host ; then
7238 AS="$2"
7239 else
7240 AS="${ncn_tool_prefix}$2"
7246 if test -n "$DLLTOOL"; then
7247 ac_cv_prog_DLLTOOL=$DLLTOOL
7248 elif test -n "$ac_cv_prog_DLLTOOL"; then
7249 DLLTOOL=$ac_cv_prog_DLLTOOL
7252 if test -n "$ac_cv_prog_DLLTOOL"; then
7253 for ncn_progname in dlltool; do
7254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7255 set dummy ${ncn_progname}; ac_word=$2
7256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7258 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261 if test -n "$DLLTOOL"; then
7262 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7263 else
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7267 IFS=$as_save_IFS
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7271 ac_cv_prog_DLLTOOL="${ncn_progname}"
7272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 break 2
7275 done
7276 done
7277 IFS=$as_save_IFS
7281 DLLTOOL=$ac_cv_prog_DLLTOOL
7282 if test -n "$DLLTOOL"; then
7283 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7284 echo "${ECHO_T}$DLLTOOL" >&6; }
7285 else
7286 { echo "$as_me:$LINENO: result: no" >&5
7287 echo "${ECHO_T}no" >&6; }
7291 done
7294 for ncn_progname in dlltool; do
7295 if test -n "$ncn_tool_prefix"; then
7296 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7297 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303 if test -n "$DLLTOOL"; then
7304 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7305 else
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7309 IFS=$as_save_IFS
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7313 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 break 2
7317 done
7318 done
7319 IFS=$as_save_IFS
7323 DLLTOOL=$ac_cv_prog_DLLTOOL
7324 if test -n "$DLLTOOL"; then
7325 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7326 echo "${ECHO_T}$DLLTOOL" >&6; }
7327 else
7328 { echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6; }
7334 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7336 set dummy ${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_DLLTOOL+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342 if test -n "$DLLTOOL"; then
7343 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_prog_DLLTOOL="${ncn_progname}"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7356 done
7357 done
7358 IFS=$as_save_IFS
7362 DLLTOOL=$ac_cv_prog_DLLTOOL
7363 if test -n "$DLLTOOL"; then
7364 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7365 echo "${ECHO_T}$DLLTOOL" >&6; }
7366 else
7367 { echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6; }
7373 test -n "$ac_cv_prog_DLLTOOL" && break
7374 done
7376 if test -z "$ac_cv_prog_DLLTOOL" ; then
7377 set dummy dlltool
7378 if test $build = $host ; then
7379 DLLTOOL="$2"
7380 else
7381 DLLTOOL="${ncn_tool_prefix}$2"
7387 if test -n "$LD"; then
7388 ac_cv_prog_LD=$LD
7389 elif test -n "$ac_cv_prog_LD"; then
7390 LD=$ac_cv_prog_LD
7393 if test -n "$ac_cv_prog_LD"; then
7394 for ncn_progname in ld; do
7395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7396 set dummy ${ncn_progname}; ac_word=$2
7397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7399 if test "${ac_cv_prog_LD+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 else
7402 if test -n "$LD"; then
7403 ac_cv_prog_LD="$LD" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7412 ac_cv_prog_LD="${ncn_progname}"
7413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7416 done
7417 done
7418 IFS=$as_save_IFS
7422 LD=$ac_cv_prog_LD
7423 if test -n "$LD"; then
7424 { echo "$as_me:$LINENO: result: $LD" >&5
7425 echo "${ECHO_T}$LD" >&6; }
7426 else
7427 { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7432 done
7435 for ncn_progname in ld; do
7436 if test -n "$ncn_tool_prefix"; then
7437 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7438 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441 if test "${ac_cv_prog_LD+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444 if test -n "$LD"; then
7445 ac_cv_prog_LD="$LD" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7454 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 break 2
7458 done
7459 done
7460 IFS=$as_save_IFS
7464 LD=$ac_cv_prog_LD
7465 if test -n "$LD"; then
7466 { echo "$as_me:$LINENO: result: $LD" >&5
7467 echo "${ECHO_T}$LD" >&6; }
7468 else
7469 { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7475 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7477 set dummy ${ncn_progname}; ac_word=$2
7478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7480 if test "${ac_cv_prog_LD+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483 if test -n "$LD"; then
7484 ac_cv_prog_LD="$LD" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_prog_LD="${ncn_progname}"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7497 done
7498 done
7499 IFS=$as_save_IFS
7503 LD=$ac_cv_prog_LD
7504 if test -n "$LD"; then
7505 { echo "$as_me:$LINENO: result: $LD" >&5
7506 echo "${ECHO_T}$LD" >&6; }
7507 else
7508 { echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6; }
7514 test -n "$ac_cv_prog_LD" && break
7515 done
7517 if test -z "$ac_cv_prog_LD" ; then
7518 set dummy ld
7519 if test $build = $host ; then
7520 LD="$2"
7521 else
7522 LD="${ncn_tool_prefix}$2"
7528 if test -n "$LIPO"; then
7529 ac_cv_prog_LIPO=$LIPO
7530 elif test -n "$ac_cv_prog_LIPO"; then
7531 LIPO=$ac_cv_prog_LIPO
7534 if test -n "$ac_cv_prog_LIPO"; then
7535 for ncn_progname in lipo; do
7536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7537 set dummy ${ncn_progname}; ac_word=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_prog_LIPO+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543 if test -n "$LIPO"; then
7544 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7545 else
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7549 IFS=$as_save_IFS
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_prog_LIPO="${ncn_progname}"
7554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 break 2
7557 done
7558 done
7559 IFS=$as_save_IFS
7563 LIPO=$ac_cv_prog_LIPO
7564 if test -n "$LIPO"; then
7565 { echo "$as_me:$LINENO: result: $LIPO" >&5
7566 echo "${ECHO_T}$LIPO" >&6; }
7567 else
7568 { echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6; }
7573 done
7576 for ncn_progname in lipo; do
7577 if test -n "$ncn_tool_prefix"; then
7578 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7579 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582 if test "${ac_cv_prog_LIPO+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585 if test -n "$LIPO"; then
7586 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 break 2
7599 done
7600 done
7601 IFS=$as_save_IFS
7605 LIPO=$ac_cv_prog_LIPO
7606 if test -n "$LIPO"; then
7607 { echo "$as_me:$LINENO: result: $LIPO" >&5
7608 echo "${ECHO_T}$LIPO" >&6; }
7609 else
7610 { echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6; }
7616 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7618 set dummy ${ncn_progname}; ac_word=$2
7619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7621 if test "${ac_cv_prog_LIPO+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624 if test -n "$LIPO"; then
7625 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634 ac_cv_prog_LIPO="${ncn_progname}"
7635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7638 done
7639 done
7640 IFS=$as_save_IFS
7644 LIPO=$ac_cv_prog_LIPO
7645 if test -n "$LIPO"; then
7646 { echo "$as_me:$LINENO: result: $LIPO" >&5
7647 echo "${ECHO_T}$LIPO" >&6; }
7648 else
7649 { echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6; }
7655 test -n "$ac_cv_prog_LIPO" && break
7656 done
7658 if test -z "$ac_cv_prog_LIPO" ; then
7659 set dummy lipo
7660 if test $build = $host ; then
7661 LIPO="$2"
7662 else
7663 LIPO="${ncn_tool_prefix}$2"
7669 if test -n "$NM"; then
7670 ac_cv_prog_NM=$NM
7671 elif test -n "$ac_cv_prog_NM"; then
7672 NM=$ac_cv_prog_NM
7675 if test -n "$ac_cv_prog_NM"; then
7676 for ncn_progname in nm; do
7677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7678 set dummy ${ncn_progname}; ac_word=$2
7679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7681 if test "${ac_cv_prog_NM+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684 if test -n "$NM"; then
7685 ac_cv_prog_NM="$NM" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7694 ac_cv_prog_NM="${ncn_progname}"
7695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 break 2
7698 done
7699 done
7700 IFS=$as_save_IFS
7704 NM=$ac_cv_prog_NM
7705 if test -n "$NM"; then
7706 { echo "$as_me:$LINENO: result: $NM" >&5
7707 echo "${ECHO_T}$NM" >&6; }
7708 else
7709 { echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6; }
7714 done
7717 for ncn_progname in nm; do
7718 if test -n "$ncn_tool_prefix"; then
7719 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7720 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723 if test "${ac_cv_prog_NM+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726 if test -n "$NM"; then
7727 ac_cv_prog_NM="$NM" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7736 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 break 2
7740 done
7741 done
7742 IFS=$as_save_IFS
7746 NM=$ac_cv_prog_NM
7747 if test -n "$NM"; then
7748 { echo "$as_me:$LINENO: result: $NM" >&5
7749 echo "${ECHO_T}$NM" >&6; }
7750 else
7751 { echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6; }
7757 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7758 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7759 set dummy ${ncn_progname}; ac_word=$2
7760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7762 if test "${ac_cv_prog_NM+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765 if test -n "$NM"; then
7766 ac_cv_prog_NM="$NM" # Let the user override the test.
7767 else
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_prog_NM="${ncn_progname}"
7776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7779 done
7780 done
7781 IFS=$as_save_IFS
7785 NM=$ac_cv_prog_NM
7786 if test -n "$NM"; then
7787 { echo "$as_me:$LINENO: result: $NM" >&5
7788 echo "${ECHO_T}$NM" >&6; }
7789 else
7790 { echo "$as_me:$LINENO: result: no" >&5
7791 echo "${ECHO_T}no" >&6; }
7796 test -n "$ac_cv_prog_NM" && break
7797 done
7799 if test -z "$ac_cv_prog_NM" ; then
7800 set dummy nm
7801 if test $build = $host ; then
7802 NM="$2"
7803 else
7804 NM="${ncn_tool_prefix}$2"
7810 if test -n "$RANLIB"; then
7811 ac_cv_prog_RANLIB=$RANLIB
7812 elif test -n "$ac_cv_prog_RANLIB"; then
7813 RANLIB=$ac_cv_prog_RANLIB
7816 if test -n "$ac_cv_prog_RANLIB"; then
7817 for ncn_progname in ranlib; do
7818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7819 set dummy ${ncn_progname}; ac_word=$2
7820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7822 if test "${ac_cv_prog_RANLIB+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825 if test -n "$RANLIB"; then
7826 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7827 else
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 for as_dir in $PATH
7831 IFS=$as_save_IFS
7832 test -z "$as_dir" && as_dir=.
7833 for ac_exec_ext in '' $ac_executable_extensions; do
7834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7835 ac_cv_prog_RANLIB="${ncn_progname}"
7836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 break 2
7839 done
7840 done
7841 IFS=$as_save_IFS
7845 RANLIB=$ac_cv_prog_RANLIB
7846 if test -n "$RANLIB"; then
7847 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7848 echo "${ECHO_T}$RANLIB" >&6; }
7849 else
7850 { echo "$as_me:$LINENO: result: no" >&5
7851 echo "${ECHO_T}no" >&6; }
7855 done
7858 for ncn_progname in ranlib; do
7859 if test -n "$ncn_tool_prefix"; then
7860 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7861 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7864 if test "${ac_cv_prog_RANLIB+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 else
7867 if test -n "$RANLIB"; then
7868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7869 else
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 for as_dir in $PATH
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7877 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7881 done
7882 done
7883 IFS=$as_save_IFS
7887 RANLIB=$ac_cv_prog_RANLIB
7888 if test -n "$RANLIB"; then
7889 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7890 echo "${ECHO_T}$RANLIB" >&6; }
7891 else
7892 { echo "$as_me:$LINENO: result: no" >&5
7893 echo "${ECHO_T}no" >&6; }
7898 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7900 set dummy ${ncn_progname}; ac_word=$2
7901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7903 if test "${ac_cv_prog_RANLIB+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906 if test -n "$RANLIB"; then
7907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_prog_RANLIB="${ncn_progname}"
7917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7920 done
7921 done
7922 IFS=$as_save_IFS
7926 RANLIB=$ac_cv_prog_RANLIB
7927 if test -n "$RANLIB"; then
7928 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7929 echo "${ECHO_T}$RANLIB" >&6; }
7930 else
7931 { echo "$as_me:$LINENO: result: no" >&5
7932 echo "${ECHO_T}no" >&6; }
7937 test -n "$ac_cv_prog_RANLIB" && break
7938 done
7940 if test -z "$ac_cv_prog_RANLIB" ; then
7941 RANLIB=":"
7946 if test -n "$STRIP"; then
7947 ac_cv_prog_STRIP=$STRIP
7948 elif test -n "$ac_cv_prog_STRIP"; then
7949 STRIP=$ac_cv_prog_STRIP
7952 if test -n "$ac_cv_prog_STRIP"; then
7953 for ncn_progname in strip; do
7954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7955 set dummy ${ncn_progname}; ac_word=$2
7956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7958 if test "${ac_cv_prog_STRIP+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7960 else
7961 if test -n "$STRIP"; then
7962 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_STRIP="${ncn_progname}"
7972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7975 done
7976 done
7977 IFS=$as_save_IFS
7981 STRIP=$ac_cv_prog_STRIP
7982 if test -n "$STRIP"; then
7983 { echo "$as_me:$LINENO: result: $STRIP" >&5
7984 echo "${ECHO_T}$STRIP" >&6; }
7985 else
7986 { echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6; }
7991 done
7994 for ncn_progname in strip; do
7995 if test -n "$ncn_tool_prefix"; then
7996 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7997 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8000 if test "${ac_cv_prog_STRIP+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 else
8003 if test -n "$STRIP"; then
8004 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8005 else
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8009 IFS=$as_save_IFS
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8013 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 break 2
8017 done
8018 done
8019 IFS=$as_save_IFS
8023 STRIP=$ac_cv_prog_STRIP
8024 if test -n "$STRIP"; then
8025 { echo "$as_me:$LINENO: result: $STRIP" >&5
8026 echo "${ECHO_T}$STRIP" >&6; }
8027 else
8028 { echo "$as_me:$LINENO: result: no" >&5
8029 echo "${ECHO_T}no" >&6; }
8034 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8035 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8036 set dummy ${ncn_progname}; ac_word=$2
8037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8039 if test "${ac_cv_prog_STRIP+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042 if test -n "$STRIP"; then
8043 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8044 else
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8052 ac_cv_prog_STRIP="${ncn_progname}"
8053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 break 2
8056 done
8057 done
8058 IFS=$as_save_IFS
8062 STRIP=$ac_cv_prog_STRIP
8063 if test -n "$STRIP"; then
8064 { echo "$as_me:$LINENO: result: $STRIP" >&5
8065 echo "${ECHO_T}$STRIP" >&6; }
8066 else
8067 { echo "$as_me:$LINENO: result: no" >&5
8068 echo "${ECHO_T}no" >&6; }
8073 test -n "$ac_cv_prog_STRIP" && break
8074 done
8076 if test -z "$ac_cv_prog_STRIP" ; then
8077 STRIP=":"
8082 if test -n "$WINDRES"; then
8083 ac_cv_prog_WINDRES=$WINDRES
8084 elif test -n "$ac_cv_prog_WINDRES"; then
8085 WINDRES=$ac_cv_prog_WINDRES
8088 if test -n "$ac_cv_prog_WINDRES"; then
8089 for ncn_progname in windres; do
8090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8091 set dummy ${ncn_progname}; ac_word=$2
8092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8094 if test "${ac_cv_prog_WINDRES+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097 if test -n "$WINDRES"; then
8098 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_prog_WINDRES="${ncn_progname}"
8108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8111 done
8112 done
8113 IFS=$as_save_IFS
8117 WINDRES=$ac_cv_prog_WINDRES
8118 if test -n "$WINDRES"; then
8119 { echo "$as_me:$LINENO: result: $WINDRES" >&5
8120 echo "${ECHO_T}$WINDRES" >&6; }
8121 else
8122 { echo "$as_me:$LINENO: result: no" >&5
8123 echo "${ECHO_T}no" >&6; }
8127 done
8130 for ncn_progname in windres; do
8131 if test -n "$ncn_tool_prefix"; then
8132 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8133 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8136 if test "${ac_cv_prog_WINDRES+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139 if test -n "$WINDRES"; then
8140 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8141 else
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8149 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 break 2
8153 done
8154 done
8155 IFS=$as_save_IFS
8159 WINDRES=$ac_cv_prog_WINDRES
8160 if test -n "$WINDRES"; then
8161 { echo "$as_me:$LINENO: result: $WINDRES" >&5
8162 echo "${ECHO_T}$WINDRES" >&6; }
8163 else
8164 { echo "$as_me:$LINENO: result: no" >&5
8165 echo "${ECHO_T}no" >&6; }
8170 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8172 set dummy ${ncn_progname}; ac_word=$2
8173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8175 if test "${ac_cv_prog_WINDRES+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178 if test -n "$WINDRES"; then
8179 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8188 ac_cv_prog_WINDRES="${ncn_progname}"
8189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8192 done
8193 done
8194 IFS=$as_save_IFS
8198 WINDRES=$ac_cv_prog_WINDRES
8199 if test -n "$WINDRES"; then
8200 { echo "$as_me:$LINENO: result: $WINDRES" >&5
8201 echo "${ECHO_T}$WINDRES" >&6; }
8202 else
8203 { echo "$as_me:$LINENO: result: no" >&5
8204 echo "${ECHO_T}no" >&6; }
8209 test -n "$ac_cv_prog_WINDRES" && break
8210 done
8212 if test -z "$ac_cv_prog_WINDRES" ; then
8213 set dummy windres
8214 if test $build = $host ; then
8215 WINDRES="$2"
8216 else
8217 WINDRES="${ncn_tool_prefix}$2"
8223 if test -n "$WINDMC"; then
8224 ac_cv_prog_WINDMC=$WINDMC
8225 elif test -n "$ac_cv_prog_WINDMC"; then
8226 WINDMC=$ac_cv_prog_WINDMC
8229 if test -n "$ac_cv_prog_WINDMC"; then
8230 for ncn_progname in windmc; do
8231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8232 set dummy ${ncn_progname}; ac_word=$2
8233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8235 if test "${ac_cv_prog_WINDMC+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238 if test -n "$WINDMC"; then
8239 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8240 else
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 for as_dir in $PATH
8244 IFS=$as_save_IFS
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8248 ac_cv_prog_WINDMC="${ncn_progname}"
8249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 break 2
8252 done
8253 done
8254 IFS=$as_save_IFS
8258 WINDMC=$ac_cv_prog_WINDMC
8259 if test -n "$WINDMC"; then
8260 { echo "$as_me:$LINENO: result: $WINDMC" >&5
8261 echo "${ECHO_T}$WINDMC" >&6; }
8262 else
8263 { echo "$as_me:$LINENO: result: no" >&5
8264 echo "${ECHO_T}no" >&6; }
8268 done
8271 for ncn_progname in windmc; do
8272 if test -n "$ncn_tool_prefix"; then
8273 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8274 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8277 if test "${ac_cv_prog_WINDMC+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 else
8280 if test -n "$WINDMC"; then
8281 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8282 else
8283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 for as_dir in $PATH
8286 IFS=$as_save_IFS
8287 test -z "$as_dir" && as_dir=.
8288 for ac_exec_ext in '' $ac_executable_extensions; do
8289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8290 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 break 2
8294 done
8295 done
8296 IFS=$as_save_IFS
8300 WINDMC=$ac_cv_prog_WINDMC
8301 if test -n "$WINDMC"; then
8302 { echo "$as_me:$LINENO: result: $WINDMC" >&5
8303 echo "${ECHO_T}$WINDMC" >&6; }
8304 else
8305 { echo "$as_me:$LINENO: result: no" >&5
8306 echo "${ECHO_T}no" >&6; }
8311 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8313 set dummy ${ncn_progname}; ac_word=$2
8314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8316 if test "${ac_cv_prog_WINDMC+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319 if test -n "$WINDMC"; then
8320 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8321 else
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 for as_dir in $PATH
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8329 ac_cv_prog_WINDMC="${ncn_progname}"
8330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8333 done
8334 done
8335 IFS=$as_save_IFS
8339 WINDMC=$ac_cv_prog_WINDMC
8340 if test -n "$WINDMC"; then
8341 { echo "$as_me:$LINENO: result: $WINDMC" >&5
8342 echo "${ECHO_T}$WINDMC" >&6; }
8343 else
8344 { echo "$as_me:$LINENO: result: no" >&5
8345 echo "${ECHO_T}no" >&6; }
8350 test -n "$ac_cv_prog_WINDMC" && break
8351 done
8353 if test -z "$ac_cv_prog_WINDMC" ; then
8354 set dummy windmc
8355 if test $build = $host ; then
8356 WINDMC="$2"
8357 else
8358 WINDMC="${ncn_tool_prefix}$2"
8364 if test -n "$OBJCOPY"; then
8365 ac_cv_prog_OBJCOPY=$OBJCOPY
8366 elif test -n "$ac_cv_prog_OBJCOPY"; then
8367 OBJCOPY=$ac_cv_prog_OBJCOPY
8370 if test -n "$ac_cv_prog_OBJCOPY"; then
8371 for ncn_progname in objcopy; do
8372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8373 set dummy ${ncn_progname}; ac_word=$2
8374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8376 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379 if test -n "$OBJCOPY"; then
8380 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8381 else
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8385 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8389 ac_cv_prog_OBJCOPY="${ncn_progname}"
8390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 break 2
8393 done
8394 done
8395 IFS=$as_save_IFS
8399 OBJCOPY=$ac_cv_prog_OBJCOPY
8400 if test -n "$OBJCOPY"; then
8401 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8402 echo "${ECHO_T}$OBJCOPY" >&6; }
8403 else
8404 { echo "$as_me:$LINENO: result: no" >&5
8405 echo "${ECHO_T}no" >&6; }
8409 done
8412 for ncn_progname in objcopy; do
8413 if test -n "$ncn_tool_prefix"; then
8414 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8415 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8418 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421 if test -n "$OBJCOPY"; then
8422 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8423 else
8424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425 for as_dir in $PATH
8427 IFS=$as_save_IFS
8428 test -z "$as_dir" && as_dir=.
8429 for ac_exec_ext in '' $ac_executable_extensions; do
8430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8431 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 break 2
8435 done
8436 done
8437 IFS=$as_save_IFS
8441 OBJCOPY=$ac_cv_prog_OBJCOPY
8442 if test -n "$OBJCOPY"; then
8443 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8444 echo "${ECHO_T}$OBJCOPY" >&6; }
8445 else
8446 { echo "$as_me:$LINENO: result: no" >&5
8447 echo "${ECHO_T}no" >&6; }
8452 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8454 set dummy ${ncn_progname}; ac_word=$2
8455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8457 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 else
8460 if test -n "$OBJCOPY"; then
8461 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8462 else
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8470 ac_cv_prog_OBJCOPY="${ncn_progname}"
8471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 break 2
8474 done
8475 done
8476 IFS=$as_save_IFS
8480 OBJCOPY=$ac_cv_prog_OBJCOPY
8481 if test -n "$OBJCOPY"; then
8482 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8483 echo "${ECHO_T}$OBJCOPY" >&6; }
8484 else
8485 { echo "$as_me:$LINENO: result: no" >&5
8486 echo "${ECHO_T}no" >&6; }
8491 test -n "$ac_cv_prog_OBJCOPY" && break
8492 done
8494 if test -z "$ac_cv_prog_OBJCOPY" ; then
8495 set dummy objcopy
8496 if test $build = $host ; then
8497 OBJCOPY="$2"
8498 else
8499 OBJCOPY="${ncn_tool_prefix}$2"
8505 if test -n "$OBJDUMP"; then
8506 ac_cv_prog_OBJDUMP=$OBJDUMP
8507 elif test -n "$ac_cv_prog_OBJDUMP"; then
8508 OBJDUMP=$ac_cv_prog_OBJDUMP
8511 if test -n "$ac_cv_prog_OBJDUMP"; then
8512 for ncn_progname in objdump; do
8513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8514 set dummy ${ncn_progname}; ac_word=$2
8515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8517 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520 if test -n "$OBJDUMP"; then
8521 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8522 else
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 for as_dir in $PATH
8526 IFS=$as_save_IFS
8527 test -z "$as_dir" && as_dir=.
8528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8530 ac_cv_prog_OBJDUMP="${ncn_progname}"
8531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8532 break 2
8534 done
8535 done
8536 IFS=$as_save_IFS
8540 OBJDUMP=$ac_cv_prog_OBJDUMP
8541 if test -n "$OBJDUMP"; then
8542 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8543 echo "${ECHO_T}$OBJDUMP" >&6; }
8544 else
8545 { echo "$as_me:$LINENO: result: no" >&5
8546 echo "${ECHO_T}no" >&6; }
8550 done
8553 for ncn_progname in objdump; do
8554 if test -n "$ncn_tool_prefix"; then
8555 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8556 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8559 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562 if test -n "$OBJDUMP"; then
8563 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8564 else
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 for as_dir in $PATH
8568 IFS=$as_save_IFS
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8572 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 break 2
8576 done
8577 done
8578 IFS=$as_save_IFS
8582 OBJDUMP=$ac_cv_prog_OBJDUMP
8583 if test -n "$OBJDUMP"; then
8584 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8585 echo "${ECHO_T}$OBJDUMP" >&6; }
8586 else
8587 { echo "$as_me:$LINENO: result: no" >&5
8588 echo "${ECHO_T}no" >&6; }
8593 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8595 set dummy ${ncn_progname}; ac_word=$2
8596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8598 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 else
8601 if test -n "$OBJDUMP"; then
8602 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8603 else
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8611 ac_cv_prog_OBJDUMP="${ncn_progname}"
8612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 break 2
8615 done
8616 done
8617 IFS=$as_save_IFS
8621 OBJDUMP=$ac_cv_prog_OBJDUMP
8622 if test -n "$OBJDUMP"; then
8623 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8624 echo "${ECHO_T}$OBJDUMP" >&6; }
8625 else
8626 { echo "$as_me:$LINENO: result: no" >&5
8627 echo "${ECHO_T}no" >&6; }
8632 test -n "$ac_cv_prog_OBJDUMP" && break
8633 done
8635 if test -z "$ac_cv_prog_OBJDUMP" ; then
8636 set dummy objdump
8637 if test $build = $host ; then
8638 OBJDUMP="$2"
8639 else
8640 OBJDUMP="${ncn_tool_prefix}$2"
8649 # Target tools.
8651 # Check whether --with-build-time-tools was given.
8652 if test "${with_build_time_tools+set}" = set; then
8653 withval=$with_build_time_tools; case x"$withval" in
8654 x/*) ;;
8656 with_build_time_tools=
8657 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8658 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8660 esac
8661 else
8662 with_build_time_tools=
8668 if test -n "$CC_FOR_TARGET"; then
8669 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8670 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8671 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8674 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8675 for ncn_progname in cc gcc; do
8676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8677 set dummy ${ncn_progname}; ac_word=$2
8678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8680 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8682 else
8683 if test -n "$CC_FOR_TARGET"; then
8684 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8685 else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8689 IFS=$as_save_IFS
8690 test -z "$as_dir" && as_dir=.
8691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8693 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8695 break 2
8697 done
8698 done
8699 IFS=$as_save_IFS
8703 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8704 if test -n "$CC_FOR_TARGET"; then
8705 { echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8706 echo "${ECHO_T}$CC_FOR_TARGET" >&6; }
8707 else
8708 { echo "$as_me:$LINENO: result: no" >&5
8709 echo "${ECHO_T}no" >&6; }
8713 done
8716 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8717 for ncn_progname in cc gcc; do
8718 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8719 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
8720 if test -x $with_build_time_tools/${ncn_progname}; then
8721 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8722 { echo "$as_me:$LINENO: result: yes" >&5
8723 echo "${ECHO_T}yes" >&6; }
8724 break
8725 else
8726 { echo "$as_me:$LINENO: result: no" >&5
8727 echo "${ECHO_T}no" >&6; }
8729 done
8732 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8733 for ncn_progname in cc gcc; do
8734 if test -n "$ncn_target_tool_prefix"; then
8735 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8736 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8739 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742 if test -n "$CC_FOR_TARGET"; then
8743 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8744 else
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8752 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8756 done
8757 done
8758 IFS=$as_save_IFS
8762 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8763 if test -n "$CC_FOR_TARGET"; then
8764 { echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8765 echo "${ECHO_T}$CC_FOR_TARGET" >&6; }
8766 else
8767 { echo "$as_me:$LINENO: result: no" >&5
8768 echo "${ECHO_T}no" >&6; }
8773 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8775 set dummy ${ncn_progname}; ac_word=$2
8776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8778 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781 if test -n "$CC_FOR_TARGET"; then
8782 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8783 else
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785 for as_dir in $PATH
8787 IFS=$as_save_IFS
8788 test -z "$as_dir" && as_dir=.
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8791 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8793 break 2
8795 done
8796 done
8797 IFS=$as_save_IFS
8801 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8802 if test -n "$CC_FOR_TARGET"; then
8803 { echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8804 echo "${ECHO_T}$CC_FOR_TARGET" >&6; }
8805 else
8806 { echo "$as_me:$LINENO: result: no" >&5
8807 echo "${ECHO_T}no" >&6; }
8812 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8813 done
8816 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8817 set dummy cc gcc
8818 if test $build = $target ; then
8819 CC_FOR_TARGET="$2"
8820 else
8821 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8823 else
8824 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
8829 if test -n "$CXX_FOR_TARGET"; then
8830 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8831 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8832 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8835 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8836 for ncn_progname in c++ g++ cxx gxx; do
8837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8838 set dummy ${ncn_progname}; ac_word=$2
8839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8841 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844 if test -n "$CXX_FOR_TARGET"; then
8845 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8846 else
8847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 for as_dir in $PATH
8850 IFS=$as_save_IFS
8851 test -z "$as_dir" && as_dir=.
8852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8854 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8856 break 2
8858 done
8859 done
8860 IFS=$as_save_IFS
8864 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8865 if test -n "$CXX_FOR_TARGET"; then
8866 { echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8867 echo "${ECHO_T}$CXX_FOR_TARGET" >&6; }
8868 else
8869 { echo "$as_me:$LINENO: result: no" >&5
8870 echo "${ECHO_T}no" >&6; }
8874 done
8877 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8878 for ncn_progname in c++ g++ cxx gxx; do
8879 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8880 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
8881 if test -x $with_build_time_tools/${ncn_progname}; then
8882 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8883 { echo "$as_me:$LINENO: result: yes" >&5
8884 echo "${ECHO_T}yes" >&6; }
8885 break
8886 else
8887 { echo "$as_me:$LINENO: result: no" >&5
8888 echo "${ECHO_T}no" >&6; }
8890 done
8893 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8894 for ncn_progname in c++ g++ cxx gxx; do
8895 if test -n "$ncn_target_tool_prefix"; then
8896 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8897 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8900 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903 if test -n "$CXX_FOR_TARGET"; then
8904 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8905 else
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8913 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8915 break 2
8917 done
8918 done
8919 IFS=$as_save_IFS
8923 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8924 if test -n "$CXX_FOR_TARGET"; then
8925 { echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8926 echo "${ECHO_T}$CXX_FOR_TARGET" >&6; }
8927 else
8928 { echo "$as_me:$LINENO: result: no" >&5
8929 echo "${ECHO_T}no" >&6; }
8934 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8936 set dummy ${ncn_progname}; ac_word=$2
8937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8939 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942 if test -n "$CXX_FOR_TARGET"; then
8943 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8944 else
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 for as_dir in $PATH
8948 IFS=$as_save_IFS
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8952 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8954 break 2
8956 done
8957 done
8958 IFS=$as_save_IFS
8962 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8963 if test -n "$CXX_FOR_TARGET"; then
8964 { echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8965 echo "${ECHO_T}$CXX_FOR_TARGET" >&6; }
8966 else
8967 { echo "$as_me:$LINENO: result: no" >&5
8968 echo "${ECHO_T}no" >&6; }
8973 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8974 done
8977 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8978 set dummy c++ g++ cxx gxx
8979 if test $build = $target ; then
8980 CXX_FOR_TARGET="$2"
8981 else
8982 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8984 else
8985 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
8990 if test -n "$GCC_FOR_TARGET"; then
8991 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8992 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8993 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8996 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8997 for ncn_progname in gcc; do
8998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8999 set dummy ${ncn_progname}; ac_word=$2
9000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9002 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005 if test -n "$GCC_FOR_TARGET"; then
9006 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9007 else
9008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009 for as_dir in $PATH
9011 IFS=$as_save_IFS
9012 test -z "$as_dir" && as_dir=.
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9015 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9017 break 2
9019 done
9020 done
9021 IFS=$as_save_IFS
9025 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9026 if test -n "$GCC_FOR_TARGET"; then
9027 { echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9028 echo "${ECHO_T}$GCC_FOR_TARGET" >&6; }
9029 else
9030 { echo "$as_me:$LINENO: result: no" >&5
9031 echo "${ECHO_T}no" >&6; }
9035 done
9038 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9039 for ncn_progname in gcc; do
9040 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9041 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
9042 if test -x $with_build_time_tools/${ncn_progname}; then
9043 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9044 { echo "$as_me:$LINENO: result: yes" >&5
9045 echo "${ECHO_T}yes" >&6; }
9046 break
9047 else
9048 { echo "$as_me:$LINENO: result: no" >&5
9049 echo "${ECHO_T}no" >&6; }
9051 done
9054 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9055 for ncn_progname in gcc; do
9056 if test -n "$ncn_target_tool_prefix"; then
9057 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9058 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9061 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064 if test -n "$GCC_FOR_TARGET"; then
9065 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9066 else
9067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068 for as_dir in $PATH
9070 IFS=$as_save_IFS
9071 test -z "$as_dir" && as_dir=.
9072 for ac_exec_ext in '' $ac_executable_extensions; do
9073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9074 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9076 break 2
9078 done
9079 done
9080 IFS=$as_save_IFS
9084 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9085 if test -n "$GCC_FOR_TARGET"; then
9086 { echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9087 echo "${ECHO_T}$GCC_FOR_TARGET" >&6; }
9088 else
9089 { echo "$as_me:$LINENO: result: no" >&5
9090 echo "${ECHO_T}no" >&6; }
9095 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9097 set dummy ${ncn_progname}; ac_word=$2
9098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9100 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103 if test -n "$GCC_FOR_TARGET"; then
9104 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9105 else
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9109 IFS=$as_save_IFS
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9113 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9115 break 2
9117 done
9118 done
9119 IFS=$as_save_IFS
9123 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9124 if test -n "$GCC_FOR_TARGET"; then
9125 { echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9126 echo "${ECHO_T}$GCC_FOR_TARGET" >&6; }
9127 else
9128 { echo "$as_me:$LINENO: result: no" >&5
9129 echo "${ECHO_T}no" >&6; }
9134 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9135 done
9138 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9139 GCC_FOR_TARGET="${CC_FOR_TARGET}"
9140 else
9141 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
9146 if test -n "$GCJ_FOR_TARGET"; then
9147 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9148 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9149 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9152 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9153 for ncn_progname in gcj; do
9154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9155 set dummy ${ncn_progname}; ac_word=$2
9156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9158 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 if test -n "$GCJ_FOR_TARGET"; then
9162 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9163 else
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9171 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 break 2
9175 done
9176 done
9177 IFS=$as_save_IFS
9181 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9182 if test -n "$GCJ_FOR_TARGET"; then
9183 { echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9184 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6; }
9185 else
9186 { echo "$as_me:$LINENO: result: no" >&5
9187 echo "${ECHO_T}no" >&6; }
9191 done
9194 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
9195 for ncn_progname in gcj; do
9196 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9197 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
9198 if test -x $with_build_time_tools/${ncn_progname}; then
9199 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9200 { echo "$as_me:$LINENO: result: yes" >&5
9201 echo "${ECHO_T}yes" >&6; }
9202 break
9203 else
9204 { echo "$as_me:$LINENO: result: no" >&5
9205 echo "${ECHO_T}no" >&6; }
9207 done
9210 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9211 for ncn_progname in gcj; do
9212 if test -n "$ncn_target_tool_prefix"; then
9213 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9214 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9217 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220 if test -n "$GCJ_FOR_TARGET"; then
9221 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9222 else
9223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9224 for as_dir in $PATH
9226 IFS=$as_save_IFS
9227 test -z "$as_dir" && as_dir=.
9228 for ac_exec_ext in '' $ac_executable_extensions; do
9229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9230 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9232 break 2
9234 done
9235 done
9236 IFS=$as_save_IFS
9240 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9241 if test -n "$GCJ_FOR_TARGET"; then
9242 { echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9243 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6; }
9244 else
9245 { echo "$as_me:$LINENO: result: no" >&5
9246 echo "${ECHO_T}no" >&6; }
9251 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
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
9258 else
9259 if test -n "$GCJ_FOR_TARGET"; then
9260 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9261 else
9262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263 for as_dir in $PATH
9265 IFS=$as_save_IFS
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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
9271 break 2
9273 done
9274 done
9275 IFS=$as_save_IFS
9279 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9280 if test -n "$GCJ_FOR_TARGET"; then
9281 { echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9282 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6; }
9283 else
9284 { echo "$as_me:$LINENO: result: no" >&5
9285 echo "${ECHO_T}no" >&6; }
9290 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9291 done
9294 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9295 set dummy gcj
9296 if test $build = $target ; then
9297 GCJ_FOR_TARGET="$2"
9298 else
9299 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9301 else
9302 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9307 if test -n "$GFORTRAN_FOR_TARGET"; then
9308 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9309 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9310 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9313 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9314 for ncn_progname in gfortran; do
9315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9316 set dummy ${ncn_progname}; ac_word=$2
9317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9319 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 else
9322 if test -n "$GFORTRAN_FOR_TARGET"; then
9323 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9324 else
9325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326 for as_dir in $PATH
9328 IFS=$as_save_IFS
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9332 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 break 2
9336 done
9337 done
9338 IFS=$as_save_IFS
9342 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9343 if test -n "$GFORTRAN_FOR_TARGET"; then
9344 { echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9345 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6; }
9346 else
9347 { echo "$as_me:$LINENO: result: no" >&5
9348 echo "${ECHO_T}no" >&6; }
9352 done
9355 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
9356 for ncn_progname in gfortran; do
9357 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9358 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
9359 if test -x $with_build_time_tools/${ncn_progname}; then
9360 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9361 { echo "$as_me:$LINENO: result: yes" >&5
9362 echo "${ECHO_T}yes" >&6; }
9363 break
9364 else
9365 { echo "$as_me:$LINENO: result: no" >&5
9366 echo "${ECHO_T}no" >&6; }
9368 done
9371 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9372 for ncn_progname in gfortran; do
9373 if test -n "$ncn_target_tool_prefix"; then
9374 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9375 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9378 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 else
9381 if test -n "$GFORTRAN_FOR_TARGET"; then
9382 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9383 else
9384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385 for as_dir in $PATH
9387 IFS=$as_save_IFS
9388 test -z "$as_dir" && as_dir=.
9389 for ac_exec_ext in '' $ac_executable_extensions; do
9390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9391 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9393 break 2
9395 done
9396 done
9397 IFS=$as_save_IFS
9401 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9402 if test -n "$GFORTRAN_FOR_TARGET"; then
9403 { echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9404 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6; }
9405 else
9406 { echo "$as_me:$LINENO: result: no" >&5
9407 echo "${ECHO_T}no" >&6; }
9412 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9414 set dummy ${ncn_progname}; ac_word=$2
9415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9417 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420 if test -n "$GFORTRAN_FOR_TARGET"; then
9421 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9422 else
9423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424 for as_dir in $PATH
9426 IFS=$as_save_IFS
9427 test -z "$as_dir" && as_dir=.
9428 for ac_exec_ext in '' $ac_executable_extensions; do
9429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9430 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9432 break 2
9434 done
9435 done
9436 IFS=$as_save_IFS
9440 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9441 if test -n "$GFORTRAN_FOR_TARGET"; then
9442 { echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9443 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6; }
9444 else
9445 { echo "$as_me:$LINENO: result: no" >&5
9446 echo "${ECHO_T}no" >&6; }
9451 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9452 done
9455 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9456 set dummy gfortran
9457 if test $build = $target ; then
9458 GFORTRAN_FOR_TARGET="$2"
9459 else
9460 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9462 else
9463 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
9468 cat > conftest.c << \EOF
9469 #ifdef __GNUC__
9470 gcc_yay;
9471 #endif
9473 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9474 have_gcc_for_target=yes
9475 else
9476 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9477 have_gcc_for_target=no
9479 rm conftest.c
9484 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9485 if test -n "$with_build_time_tools"; then
9486 { echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9487 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6; }
9488 if test -x $with_build_time_tools/ar; then
9489 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9490 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9491 { echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9492 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6; }
9493 else
9494 { echo "$as_me:$LINENO: result: no" >&5
9495 echo "${ECHO_T}no" >&6; }
9497 elif test $build != $host && test $have_gcc_for_target = yes; then
9498 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
9499 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9500 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9503 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9504 # Extract the first word of "ar", so it can be a program name with args.
9505 set dummy ar; ac_word=$2
9506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9508 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511 case $AR_FOR_TARGET in
9512 [\\/]* | ?:[\\/]*)
9513 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 for as_dir in $gcc_cv_tool_dirs
9519 IFS=$as_save_IFS
9520 test -z "$as_dir" && as_dir=.
9521 for ac_exec_ext in '' $ac_executable_extensions; do
9522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9523 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9525 break 2
9527 done
9528 done
9529 IFS=$as_save_IFS
9532 esac
9534 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9535 if test -n "$AR_FOR_TARGET"; then
9536 { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9537 echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
9538 else
9539 { echo "$as_me:$LINENO: result: no" >&5
9540 echo "${ECHO_T}no" >&6; }
9545 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9548 if test -n "$AR_FOR_TARGET"; then
9549 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9550 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9551 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9554 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9555 for ncn_progname in ar; do
9556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9557 set dummy ${ncn_progname}; ac_word=$2
9558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9560 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563 if test -n "$AR_FOR_TARGET"; then
9564 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9565 else
9566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9567 for as_dir in $PATH
9569 IFS=$as_save_IFS
9570 test -z "$as_dir" && as_dir=.
9571 for ac_exec_ext in '' $ac_executable_extensions; do
9572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9573 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9575 break 2
9577 done
9578 done
9579 IFS=$as_save_IFS
9583 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9584 if test -n "$AR_FOR_TARGET"; then
9585 { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9586 echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
9587 else
9588 { echo "$as_me:$LINENO: result: no" >&5
9589 echo "${ECHO_T}no" >&6; }
9593 done
9596 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
9597 for ncn_progname in ar; do
9598 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9599 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
9600 if test -x $with_build_time_tools/${ncn_progname}; then
9601 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9602 { echo "$as_me:$LINENO: result: yes" >&5
9603 echo "${ECHO_T}yes" >&6; }
9604 break
9605 else
9606 { echo "$as_me:$LINENO: result: no" >&5
9607 echo "${ECHO_T}no" >&6; }
9609 done
9612 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9613 for ncn_progname in ar; do
9614 if test -n "$ncn_target_tool_prefix"; then
9615 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9616 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9619 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622 if test -n "$AR_FOR_TARGET"; then
9623 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9624 else
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 for as_dir in $PATH
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9632 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9634 break 2
9636 done
9637 done
9638 IFS=$as_save_IFS
9642 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9643 if test -n "$AR_FOR_TARGET"; then
9644 { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9645 echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
9646 else
9647 { echo "$as_me:$LINENO: result: no" >&5
9648 echo "${ECHO_T}no" >&6; }
9653 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9655 set dummy ${ncn_progname}; ac_word=$2
9656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9658 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 else
9661 if test -n "$AR_FOR_TARGET"; then
9662 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9663 else
9664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665 for as_dir in $PATH
9667 IFS=$as_save_IFS
9668 test -z "$as_dir" && as_dir=.
9669 for ac_exec_ext in '' $ac_executable_extensions; do
9670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9671 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9673 break 2
9675 done
9676 done
9677 IFS=$as_save_IFS
9681 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9682 if test -n "$AR_FOR_TARGET"; then
9683 { echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9684 echo "${ECHO_T}$AR_FOR_TARGET" >&6; }
9685 else
9686 { echo "$as_me:$LINENO: result: no" >&5
9687 echo "${ECHO_T}no" >&6; }
9692 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9693 done
9696 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9697 set dummy ar
9698 if test $build = $target ; then
9699 AR_FOR_TARGET="$2"
9700 else
9701 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
9703 else
9704 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
9707 else
9708 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9714 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9715 if test -n "$with_build_time_tools"; then
9716 { echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9717 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6; }
9718 if test -x $with_build_time_tools/as; then
9719 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9720 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9721 { echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9722 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6; }
9723 else
9724 { echo "$as_me:$LINENO: result: no" >&5
9725 echo "${ECHO_T}no" >&6; }
9727 elif test $build != $host && test $have_gcc_for_target = yes; then
9728 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
9729 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9730 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9733 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9734 # Extract the first word of "as", so it can be a program name with args.
9735 set dummy as; ac_word=$2
9736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9738 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741 case $AS_FOR_TARGET in
9742 [\\/]* | ?:[\\/]*)
9743 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747 for as_dir in $gcc_cv_tool_dirs
9749 IFS=$as_save_IFS
9750 test -z "$as_dir" && as_dir=.
9751 for ac_exec_ext in '' $ac_executable_extensions; do
9752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9753 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9755 break 2
9757 done
9758 done
9759 IFS=$as_save_IFS
9762 esac
9764 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9765 if test -n "$AS_FOR_TARGET"; then
9766 { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9767 echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
9768 else
9769 { echo "$as_me:$LINENO: result: no" >&5
9770 echo "${ECHO_T}no" >&6; }
9775 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9778 if test -n "$AS_FOR_TARGET"; then
9779 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9780 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9781 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9784 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9785 for ncn_progname in as; do
9786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9787 set dummy ${ncn_progname}; ac_word=$2
9788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9790 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793 if test -n "$AS_FOR_TARGET"; then
9794 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9795 else
9796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9797 for as_dir in $PATH
9799 IFS=$as_save_IFS
9800 test -z "$as_dir" && as_dir=.
9801 for ac_exec_ext in '' $ac_executable_extensions; do
9802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9803 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9805 break 2
9807 done
9808 done
9809 IFS=$as_save_IFS
9813 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9814 if test -n "$AS_FOR_TARGET"; then
9815 { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9816 echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
9817 else
9818 { echo "$as_me:$LINENO: result: no" >&5
9819 echo "${ECHO_T}no" >&6; }
9823 done
9826 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9827 for ncn_progname in as; do
9828 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9829 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
9830 if test -x $with_build_time_tools/${ncn_progname}; then
9831 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9832 { echo "$as_me:$LINENO: result: yes" >&5
9833 echo "${ECHO_T}yes" >&6; }
9834 break
9835 else
9836 { echo "$as_me:$LINENO: result: no" >&5
9837 echo "${ECHO_T}no" >&6; }
9839 done
9842 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9843 for ncn_progname in as; do
9844 if test -n "$ncn_target_tool_prefix"; then
9845 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9846 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9849 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852 if test -n "$AS_FOR_TARGET"; then
9853 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9854 else
9855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856 for as_dir in $PATH
9858 IFS=$as_save_IFS
9859 test -z "$as_dir" && as_dir=.
9860 for ac_exec_ext in '' $ac_executable_extensions; do
9861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9862 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9864 break 2
9866 done
9867 done
9868 IFS=$as_save_IFS
9872 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9873 if test -n "$AS_FOR_TARGET"; then
9874 { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9875 echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
9876 else
9877 { echo "$as_me:$LINENO: result: no" >&5
9878 echo "${ECHO_T}no" >&6; }
9883 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9885 set dummy ${ncn_progname}; ac_word=$2
9886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9888 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891 if test -n "$AS_FOR_TARGET"; then
9892 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9893 else
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 for as_dir in $PATH
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9901 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9903 break 2
9905 done
9906 done
9907 IFS=$as_save_IFS
9911 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9912 if test -n "$AS_FOR_TARGET"; then
9913 { echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9914 echo "${ECHO_T}$AS_FOR_TARGET" >&6; }
9915 else
9916 { echo "$as_me:$LINENO: result: no" >&5
9917 echo "${ECHO_T}no" >&6; }
9922 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9923 done
9926 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9927 set dummy as
9928 if test $build = $target ; then
9929 AS_FOR_TARGET="$2"
9930 else
9931 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9933 else
9934 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
9937 else
9938 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9944 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9945 if test -n "$with_build_time_tools"; then
9946 { echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9947 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6; }
9948 if test -x $with_build_time_tools/dlltool; then
9949 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9950 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9951 { echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9952 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
9953 else
9954 { echo "$as_me:$LINENO: result: no" >&5
9955 echo "${ECHO_T}no" >&6; }
9957 elif test $build != $host && test $have_gcc_for_target = yes; then
9958 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9959 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9960 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9963 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9964 # Extract the first word of "dlltool", so it can be a program name with args.
9965 set dummy dlltool; ac_word=$2
9966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9968 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971 case $DLLTOOL_FOR_TARGET in
9972 [\\/]* | ?:[\\/]*)
9973 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977 for as_dir in $gcc_cv_tool_dirs
9979 IFS=$as_save_IFS
9980 test -z "$as_dir" && as_dir=.
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9983 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9985 break 2
9987 done
9988 done
9989 IFS=$as_save_IFS
9992 esac
9994 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9995 if test -n "$DLLTOOL_FOR_TARGET"; then
9996 { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9997 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
9998 else
9999 { echo "$as_me:$LINENO: result: no" >&5
10000 echo "${ECHO_T}no" >&6; }
10005 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10008 if test -n "$DLLTOOL_FOR_TARGET"; then
10009 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10010 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10011 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10014 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10015 for ncn_progname in dlltool; do
10016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10017 set dummy ${ncn_progname}; ac_word=$2
10018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10020 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023 if test -n "$DLLTOOL_FOR_TARGET"; then
10024 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10025 else
10026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10027 for as_dir in $PATH
10029 IFS=$as_save_IFS
10030 test -z "$as_dir" && as_dir=.
10031 for ac_exec_ext in '' $ac_executable_extensions; do
10032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10033 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10035 break 2
10037 done
10038 done
10039 IFS=$as_save_IFS
10043 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10044 if test -n "$DLLTOOL_FOR_TARGET"; then
10045 { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10046 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
10047 else
10048 { echo "$as_me:$LINENO: result: no" >&5
10049 echo "${ECHO_T}no" >&6; }
10053 done
10056 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
10057 for ncn_progname in dlltool; do
10058 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10059 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
10060 if test -x $with_build_time_tools/${ncn_progname}; then
10061 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10062 { echo "$as_me:$LINENO: result: yes" >&5
10063 echo "${ECHO_T}yes" >&6; }
10064 break
10065 else
10066 { echo "$as_me:$LINENO: result: no" >&5
10067 echo "${ECHO_T}no" >&6; }
10069 done
10072 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10073 for ncn_progname in dlltool; do
10074 if test -n "$ncn_target_tool_prefix"; then
10075 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10076 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10079 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082 if test -n "$DLLTOOL_FOR_TARGET"; then
10083 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10084 else
10085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10088 IFS=$as_save_IFS
10089 test -z "$as_dir" && as_dir=.
10090 for ac_exec_ext in '' $ac_executable_extensions; do
10091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10092 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10094 break 2
10096 done
10097 done
10098 IFS=$as_save_IFS
10102 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10103 if test -n "$DLLTOOL_FOR_TARGET"; then
10104 { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10105 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
10106 else
10107 { echo "$as_me:$LINENO: result: no" >&5
10108 echo "${ECHO_T}no" >&6; }
10113 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10114 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10115 set dummy ${ncn_progname}; ac_word=$2
10116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10118 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121 if test -n "$DLLTOOL_FOR_TARGET"; then
10122 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10123 else
10124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10125 for as_dir in $PATH
10127 IFS=$as_save_IFS
10128 test -z "$as_dir" && as_dir=.
10129 for ac_exec_ext in '' $ac_executable_extensions; do
10130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10131 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10133 break 2
10135 done
10136 done
10137 IFS=$as_save_IFS
10141 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10142 if test -n "$DLLTOOL_FOR_TARGET"; then
10143 { echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10144 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6; }
10145 else
10146 { echo "$as_me:$LINENO: result: no" >&5
10147 echo "${ECHO_T}no" >&6; }
10152 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10153 done
10156 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10157 set dummy dlltool
10158 if test $build = $target ; then
10159 DLLTOOL_FOR_TARGET="$2"
10160 else
10161 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10163 else
10164 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
10167 else
10168 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10174 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10175 if test -n "$with_build_time_tools"; then
10176 { echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
10177 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6; }
10178 if test -x $with_build_time_tools/ld; then
10179 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10180 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10181 { echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
10182 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6; }
10183 else
10184 { echo "$as_me:$LINENO: result: no" >&5
10185 echo "${ECHO_T}no" >&6; }
10187 elif test $build != $host && test $have_gcc_for_target = yes; then
10188 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
10189 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10190 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10193 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10194 # Extract the first word of "ld", so it can be a program name with args.
10195 set dummy ld; ac_word=$2
10196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10198 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 else
10201 case $LD_FOR_TARGET in
10202 [\\/]* | ?:[\\/]*)
10203 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10207 for as_dir in $gcc_cv_tool_dirs
10209 IFS=$as_save_IFS
10210 test -z "$as_dir" && as_dir=.
10211 for ac_exec_ext in '' $ac_executable_extensions; do
10212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10213 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10215 break 2
10217 done
10218 done
10219 IFS=$as_save_IFS
10222 esac
10224 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10225 if test -n "$LD_FOR_TARGET"; then
10226 { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10227 echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
10228 else
10229 { echo "$as_me:$LINENO: result: no" >&5
10230 echo "${ECHO_T}no" >&6; }
10235 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10238 if test -n "$LD_FOR_TARGET"; then
10239 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10240 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10241 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10244 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10245 for ncn_progname in ld; do
10246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10247 set dummy ${ncn_progname}; ac_word=$2
10248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10250 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 else
10253 if test -n "$LD_FOR_TARGET"; then
10254 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10255 else
10256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257 for as_dir in $PATH
10259 IFS=$as_save_IFS
10260 test -z "$as_dir" && as_dir=.
10261 for ac_exec_ext in '' $ac_executable_extensions; do
10262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10263 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10265 break 2
10267 done
10268 done
10269 IFS=$as_save_IFS
10273 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10274 if test -n "$LD_FOR_TARGET"; then
10275 { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10276 echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
10277 else
10278 { echo "$as_me:$LINENO: result: no" >&5
10279 echo "${ECHO_T}no" >&6; }
10283 done
10286 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
10287 for ncn_progname in ld; do
10288 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10289 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
10290 if test -x $with_build_time_tools/${ncn_progname}; then
10291 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10292 { echo "$as_me:$LINENO: result: yes" >&5
10293 echo "${ECHO_T}yes" >&6; }
10294 break
10295 else
10296 { echo "$as_me:$LINENO: result: no" >&5
10297 echo "${ECHO_T}no" >&6; }
10299 done
10302 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10303 for ncn_progname in ld; do
10304 if test -n "$ncn_target_tool_prefix"; then
10305 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10306 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10309 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312 if test -n "$LD_FOR_TARGET"; then
10313 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10314 else
10315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10316 for as_dir in $PATH
10318 IFS=$as_save_IFS
10319 test -z "$as_dir" && as_dir=.
10320 for ac_exec_ext in '' $ac_executable_extensions; do
10321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10322 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10324 break 2
10326 done
10327 done
10328 IFS=$as_save_IFS
10332 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10333 if test -n "$LD_FOR_TARGET"; then
10334 { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10335 echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
10336 else
10337 { echo "$as_me:$LINENO: result: no" >&5
10338 echo "${ECHO_T}no" >&6; }
10343 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10345 set dummy ${ncn_progname}; ac_word=$2
10346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10348 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351 if test -n "$LD_FOR_TARGET"; then
10352 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10353 else
10354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355 for as_dir in $PATH
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10361 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10363 break 2
10365 done
10366 done
10367 IFS=$as_save_IFS
10371 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10372 if test -n "$LD_FOR_TARGET"; then
10373 { echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10374 echo "${ECHO_T}$LD_FOR_TARGET" >&6; }
10375 else
10376 { echo "$as_me:$LINENO: result: no" >&5
10377 echo "${ECHO_T}no" >&6; }
10382 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10383 done
10386 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10387 set dummy ld
10388 if test $build = $target ; then
10389 LD_FOR_TARGET="$2"
10390 else
10391 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10393 else
10394 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
10397 else
10398 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10404 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10405 if test -n "$with_build_time_tools"; then
10406 { echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10407 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6; }
10408 if test -x $with_build_time_tools/lipo; then
10409 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10410 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10411 { echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10412 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6; }
10413 else
10414 { echo "$as_me:$LINENO: result: no" >&5
10415 echo "${ECHO_T}no" >&6; }
10417 elif test $build != $host && test $have_gcc_for_target = yes; then
10418 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
10419 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10420 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10423 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10424 # Extract the first word of "lipo", so it can be a program name with args.
10425 set dummy lipo; ac_word=$2
10426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10428 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10430 else
10431 case $LIPO_FOR_TARGET in
10432 [\\/]* | ?:[\\/]*)
10433 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437 for as_dir in $gcc_cv_tool_dirs
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10443 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10447 done
10448 done
10449 IFS=$as_save_IFS
10452 esac
10454 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10455 if test -n "$LIPO_FOR_TARGET"; then
10456 { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10457 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
10458 else
10459 { echo "$as_me:$LINENO: result: no" >&5
10460 echo "${ECHO_T}no" >&6; }
10465 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10468 if test -n "$LIPO_FOR_TARGET"; then
10469 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10470 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10471 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10474 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10475 for ncn_progname in lipo; do
10476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10477 set dummy ${ncn_progname}; ac_word=$2
10478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10480 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483 if test -n "$LIPO_FOR_TARGET"; then
10484 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10485 else
10486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487 for as_dir in $PATH
10489 IFS=$as_save_IFS
10490 test -z "$as_dir" && as_dir=.
10491 for ac_exec_ext in '' $ac_executable_extensions; do
10492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10493 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10495 break 2
10497 done
10498 done
10499 IFS=$as_save_IFS
10503 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10504 if test -n "$LIPO_FOR_TARGET"; then
10505 { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10506 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
10507 else
10508 { echo "$as_me:$LINENO: result: no" >&5
10509 echo "${ECHO_T}no" >&6; }
10513 done
10516 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
10517 for ncn_progname in lipo; do
10518 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10519 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
10520 if test -x $with_build_time_tools/${ncn_progname}; then
10521 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10522 { echo "$as_me:$LINENO: result: yes" >&5
10523 echo "${ECHO_T}yes" >&6; }
10524 break
10525 else
10526 { echo "$as_me:$LINENO: result: no" >&5
10527 echo "${ECHO_T}no" >&6; }
10529 done
10532 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10533 for ncn_progname in lipo; do
10534 if test -n "$ncn_target_tool_prefix"; then
10535 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10536 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10539 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542 if test -n "$LIPO_FOR_TARGET"; then
10543 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10544 else
10545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10546 for as_dir in $PATH
10548 IFS=$as_save_IFS
10549 test -z "$as_dir" && as_dir=.
10550 for ac_exec_ext in '' $ac_executable_extensions; do
10551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10552 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10554 break 2
10556 done
10557 done
10558 IFS=$as_save_IFS
10562 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10563 if test -n "$LIPO_FOR_TARGET"; then
10564 { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10565 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
10566 else
10567 { echo "$as_me:$LINENO: result: no" >&5
10568 echo "${ECHO_T}no" >&6; }
10573 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10575 set dummy ${ncn_progname}; ac_word=$2
10576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10578 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581 if test -n "$LIPO_FOR_TARGET"; then
10582 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10583 else
10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585 for as_dir in $PATH
10587 IFS=$as_save_IFS
10588 test -z "$as_dir" && as_dir=.
10589 for ac_exec_ext in '' $ac_executable_extensions; do
10590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10591 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10593 break 2
10595 done
10596 done
10597 IFS=$as_save_IFS
10601 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10602 if test -n "$LIPO_FOR_TARGET"; then
10603 { echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10604 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6; }
10605 else
10606 { echo "$as_me:$LINENO: result: no" >&5
10607 echo "${ECHO_T}no" >&6; }
10612 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10613 done
10616 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10617 set dummy lipo
10618 if test $build = $target ; then
10619 LIPO_FOR_TARGET="$2"
10620 else
10621 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10623 else
10624 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
10627 else
10628 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10634 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10635 if test -n "$with_build_time_tools"; then
10636 { echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10637 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6; }
10638 if test -x $with_build_time_tools/nm; then
10639 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10640 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10641 { echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10642 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6; }
10643 else
10644 { echo "$as_me:$LINENO: result: no" >&5
10645 echo "${ECHO_T}no" >&6; }
10647 elif test $build != $host && test $have_gcc_for_target = yes; then
10648 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
10649 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10650 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
10653 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10654 # Extract the first word of "nm", so it can be a program name with args.
10655 set dummy nm; ac_word=$2
10656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10658 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 else
10661 case $NM_FOR_TARGET in
10662 [\\/]* | ?:[\\/]*)
10663 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667 for as_dir in $gcc_cv_tool_dirs
10669 IFS=$as_save_IFS
10670 test -z "$as_dir" && as_dir=.
10671 for ac_exec_ext in '' $ac_executable_extensions; do
10672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10673 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10675 break 2
10677 done
10678 done
10679 IFS=$as_save_IFS
10682 esac
10684 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10685 if test -n "$NM_FOR_TARGET"; then
10686 { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10687 echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
10688 else
10689 { echo "$as_me:$LINENO: result: no" >&5
10690 echo "${ECHO_T}no" >&6; }
10695 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10698 if test -n "$NM_FOR_TARGET"; then
10699 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10700 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10701 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10704 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10705 for ncn_progname in nm; do
10706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10707 set dummy ${ncn_progname}; ac_word=$2
10708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10710 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713 if test -n "$NM_FOR_TARGET"; then
10714 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10715 else
10716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717 for as_dir in $PATH
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10723 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10725 break 2
10727 done
10728 done
10729 IFS=$as_save_IFS
10733 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10734 if test -n "$NM_FOR_TARGET"; then
10735 { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10736 echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
10737 else
10738 { echo "$as_me:$LINENO: result: no" >&5
10739 echo "${ECHO_T}no" >&6; }
10743 done
10746 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
10747 for ncn_progname in nm; do
10748 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10749 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
10750 if test -x $with_build_time_tools/${ncn_progname}; then
10751 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10752 { echo "$as_me:$LINENO: result: yes" >&5
10753 echo "${ECHO_T}yes" >&6; }
10754 break
10755 else
10756 { echo "$as_me:$LINENO: result: no" >&5
10757 echo "${ECHO_T}no" >&6; }
10759 done
10762 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10763 for ncn_progname in nm; do
10764 if test -n "$ncn_target_tool_prefix"; then
10765 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10766 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10769 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 else
10772 if test -n "$NM_FOR_TARGET"; then
10773 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10774 else
10775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10776 for as_dir in $PATH
10778 IFS=$as_save_IFS
10779 test -z "$as_dir" && as_dir=.
10780 for ac_exec_ext in '' $ac_executable_extensions; do
10781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10782 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10784 break 2
10786 done
10787 done
10788 IFS=$as_save_IFS
10792 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10793 if test -n "$NM_FOR_TARGET"; then
10794 { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10795 echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
10796 else
10797 { echo "$as_me:$LINENO: result: no" >&5
10798 echo "${ECHO_T}no" >&6; }
10803 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10805 set dummy ${ncn_progname}; ac_word=$2
10806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10808 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811 if test -n "$NM_FOR_TARGET"; then
10812 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10813 else
10814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10815 for as_dir in $PATH
10817 IFS=$as_save_IFS
10818 test -z "$as_dir" && as_dir=.
10819 for ac_exec_ext in '' $ac_executable_extensions; do
10820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10821 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10823 break 2
10825 done
10826 done
10827 IFS=$as_save_IFS
10831 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10832 if test -n "$NM_FOR_TARGET"; then
10833 { echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10834 echo "${ECHO_T}$NM_FOR_TARGET" >&6; }
10835 else
10836 { echo "$as_me:$LINENO: result: no" >&5
10837 echo "${ECHO_T}no" >&6; }
10842 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10843 done
10846 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10847 set dummy nm
10848 if test $build = $target ; then
10849 NM_FOR_TARGET="$2"
10850 else
10851 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10853 else
10854 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
10857 else
10858 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10864 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10865 if test -n "$with_build_time_tools"; then
10866 { echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10867 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6; }
10868 if test -x $with_build_time_tools/objdump; then
10869 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10870 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10871 { echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10872 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
10873 else
10874 { echo "$as_me:$LINENO: result: no" >&5
10875 echo "${ECHO_T}no" >&6; }
10877 elif test $build != $host && test $have_gcc_for_target = yes; then
10878 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10879 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10880 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10883 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10884 # Extract the first word of "objdump", so it can be a program name with args.
10885 set dummy objdump; ac_word=$2
10886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10888 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891 case $OBJDUMP_FOR_TARGET in
10892 [\\/]* | ?:[\\/]*)
10893 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897 for as_dir in $gcc_cv_tool_dirs
10899 IFS=$as_save_IFS
10900 test -z "$as_dir" && as_dir=.
10901 for ac_exec_ext in '' $ac_executable_extensions; do
10902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10903 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10905 break 2
10907 done
10908 done
10909 IFS=$as_save_IFS
10912 esac
10914 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10915 if test -n "$OBJDUMP_FOR_TARGET"; then
10916 { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10917 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
10918 else
10919 { echo "$as_me:$LINENO: result: no" >&5
10920 echo "${ECHO_T}no" >&6; }
10925 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10928 if test -n "$OBJDUMP_FOR_TARGET"; then
10929 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10930 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10931 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10934 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10935 for ncn_progname in objdump; do
10936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10937 set dummy ${ncn_progname}; ac_word=$2
10938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10940 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943 if test -n "$OBJDUMP_FOR_TARGET"; then
10944 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10945 else
10946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947 for as_dir in $PATH
10949 IFS=$as_save_IFS
10950 test -z "$as_dir" && as_dir=.
10951 for ac_exec_ext in '' $ac_executable_extensions; do
10952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10953 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10955 break 2
10957 done
10958 done
10959 IFS=$as_save_IFS
10963 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10964 if test -n "$OBJDUMP_FOR_TARGET"; then
10965 { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10966 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
10967 else
10968 { echo "$as_me:$LINENO: result: no" >&5
10969 echo "${ECHO_T}no" >&6; }
10973 done
10976 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10977 for ncn_progname in objdump; do
10978 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10979 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
10980 if test -x $with_build_time_tools/${ncn_progname}; then
10981 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10982 { echo "$as_me:$LINENO: result: yes" >&5
10983 echo "${ECHO_T}yes" >&6; }
10984 break
10985 else
10986 { echo "$as_me:$LINENO: result: no" >&5
10987 echo "${ECHO_T}no" >&6; }
10989 done
10992 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10993 for ncn_progname in objdump; do
10994 if test -n "$ncn_target_tool_prefix"; then
10995 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10996 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10999 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 else
11002 if test -n "$OBJDUMP_FOR_TARGET"; then
11003 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11004 else
11005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11006 for as_dir in $PATH
11008 IFS=$as_save_IFS
11009 test -z "$as_dir" && as_dir=.
11010 for ac_exec_ext in '' $ac_executable_extensions; do
11011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11012 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11014 break 2
11016 done
11017 done
11018 IFS=$as_save_IFS
11022 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11023 if test -n "$OBJDUMP_FOR_TARGET"; then
11024 { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11025 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
11026 else
11027 { echo "$as_me:$LINENO: result: no" >&5
11028 echo "${ECHO_T}no" >&6; }
11033 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11035 set dummy ${ncn_progname}; ac_word=$2
11036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11038 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 else
11041 if test -n "$OBJDUMP_FOR_TARGET"; then
11042 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11043 else
11044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11045 for as_dir in $PATH
11047 IFS=$as_save_IFS
11048 test -z "$as_dir" && as_dir=.
11049 for ac_exec_ext in '' $ac_executable_extensions; do
11050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11051 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11053 break 2
11055 done
11056 done
11057 IFS=$as_save_IFS
11061 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11062 if test -n "$OBJDUMP_FOR_TARGET"; then
11063 { echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11064 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6; }
11065 else
11066 { echo "$as_me:$LINENO: result: no" >&5
11067 echo "${ECHO_T}no" >&6; }
11072 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11073 done
11076 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11077 set dummy objdump
11078 if test $build = $target ; then
11079 OBJDUMP_FOR_TARGET="$2"
11080 else
11081 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11083 else
11084 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
11087 else
11088 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11094 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11095 if test -n "$with_build_time_tools"; then
11096 { echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
11097 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6; }
11098 if test -x $with_build_time_tools/ranlib; then
11099 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11100 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11101 { echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11102 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
11103 else
11104 { echo "$as_me:$LINENO: result: no" >&5
11105 echo "${ECHO_T}no" >&6; }
11107 elif test $build != $host && test $have_gcc_for_target = yes; then
11108 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
11109 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11110 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11113 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11114 # Extract the first word of "ranlib", so it can be a program name with args.
11115 set dummy ranlib; ac_word=$2
11116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11118 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121 case $RANLIB_FOR_TARGET in
11122 [\\/]* | ?:[\\/]*)
11123 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127 for as_dir in $gcc_cv_tool_dirs
11129 IFS=$as_save_IFS
11130 test -z "$as_dir" && as_dir=.
11131 for ac_exec_ext in '' $ac_executable_extensions; do
11132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11133 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11135 break 2
11137 done
11138 done
11139 IFS=$as_save_IFS
11142 esac
11144 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11145 if test -n "$RANLIB_FOR_TARGET"; then
11146 { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11147 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
11148 else
11149 { echo "$as_me:$LINENO: result: no" >&5
11150 echo "${ECHO_T}no" >&6; }
11155 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11158 if test -n "$RANLIB_FOR_TARGET"; then
11159 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11160 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11161 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11164 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11165 for ncn_progname in ranlib; do
11166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11167 set dummy ${ncn_progname}; ac_word=$2
11168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11170 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173 if test -n "$RANLIB_FOR_TARGET"; then
11174 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11175 else
11176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177 for as_dir in $PATH
11179 IFS=$as_save_IFS
11180 test -z "$as_dir" && as_dir=.
11181 for ac_exec_ext in '' $ac_executable_extensions; do
11182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11183 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11185 break 2
11187 done
11188 done
11189 IFS=$as_save_IFS
11193 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11194 if test -n "$RANLIB_FOR_TARGET"; then
11195 { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11196 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
11197 else
11198 { echo "$as_me:$LINENO: result: no" >&5
11199 echo "${ECHO_T}no" >&6; }
11203 done
11206 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
11207 for ncn_progname in ranlib; do
11208 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11209 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
11210 if test -x $with_build_time_tools/${ncn_progname}; then
11211 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11212 { echo "$as_me:$LINENO: result: yes" >&5
11213 echo "${ECHO_T}yes" >&6; }
11214 break
11215 else
11216 { echo "$as_me:$LINENO: result: no" >&5
11217 echo "${ECHO_T}no" >&6; }
11219 done
11222 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11223 for ncn_progname in ranlib; do
11224 if test -n "$ncn_target_tool_prefix"; then
11225 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11226 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11229 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 else
11232 if test -n "$RANLIB_FOR_TARGET"; then
11233 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11234 else
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236 for as_dir in $PATH
11238 IFS=$as_save_IFS
11239 test -z "$as_dir" && as_dir=.
11240 for ac_exec_ext in '' $ac_executable_extensions; do
11241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11242 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11244 break 2
11246 done
11247 done
11248 IFS=$as_save_IFS
11252 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11253 if test -n "$RANLIB_FOR_TARGET"; then
11254 { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11255 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
11256 else
11257 { echo "$as_me:$LINENO: result: no" >&5
11258 echo "${ECHO_T}no" >&6; }
11263 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11265 set dummy ${ncn_progname}; ac_word=$2
11266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11268 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 else
11271 if test -n "$RANLIB_FOR_TARGET"; then
11272 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11273 else
11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
11280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11281 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 break 2
11285 done
11286 done
11287 IFS=$as_save_IFS
11291 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11292 if test -n "$RANLIB_FOR_TARGET"; then
11293 { echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11294 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6; }
11295 else
11296 { echo "$as_me:$LINENO: result: no" >&5
11297 echo "${ECHO_T}no" >&6; }
11302 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11303 done
11306 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11307 set dummy ranlib
11308 if test $build = $target ; then
11309 RANLIB_FOR_TARGET="$2"
11310 else
11311 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
11313 else
11314 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
11317 else
11318 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11324 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11325 if test -n "$with_build_time_tools"; then
11326 { echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
11327 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6; }
11328 if test -x $with_build_time_tools/strip; then
11329 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11330 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11331 { echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11332 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6; }
11333 else
11334 { echo "$as_me:$LINENO: result: no" >&5
11335 echo "${ECHO_T}no" >&6; }
11337 elif test $build != $host && test $have_gcc_for_target = yes; then
11338 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
11339 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11340 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11343 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11344 # Extract the first word of "strip", so it can be a program name with args.
11345 set dummy strip; ac_word=$2
11346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11348 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 else
11351 case $STRIP_FOR_TARGET in
11352 [\\/]* | ?:[\\/]*)
11353 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $gcc_cv_tool_dirs
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11363 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 break 2
11367 done
11368 done
11369 IFS=$as_save_IFS
11372 esac
11374 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11375 if test -n "$STRIP_FOR_TARGET"; then
11376 { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11377 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
11378 else
11379 { echo "$as_me:$LINENO: result: no" >&5
11380 echo "${ECHO_T}no" >&6; }
11385 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11388 if test -n "$STRIP_FOR_TARGET"; then
11389 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11390 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11391 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11394 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11395 for ncn_progname in strip; do
11396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11397 set dummy ${ncn_progname}; ac_word=$2
11398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11400 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 else
11403 if test -n "$STRIP_FOR_TARGET"; then
11404 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11405 else
11406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11407 for as_dir in $PATH
11409 IFS=$as_save_IFS
11410 test -z "$as_dir" && as_dir=.
11411 for ac_exec_ext in '' $ac_executable_extensions; do
11412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11413 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11415 break 2
11417 done
11418 done
11419 IFS=$as_save_IFS
11423 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11424 if test -n "$STRIP_FOR_TARGET"; then
11425 { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11426 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
11427 else
11428 { echo "$as_me:$LINENO: result: no" >&5
11429 echo "${ECHO_T}no" >&6; }
11433 done
11436 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11437 for ncn_progname in strip; do
11438 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11439 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
11440 if test -x $with_build_time_tools/${ncn_progname}; then
11441 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11442 { echo "$as_me:$LINENO: result: yes" >&5
11443 echo "${ECHO_T}yes" >&6; }
11444 break
11445 else
11446 { echo "$as_me:$LINENO: result: no" >&5
11447 echo "${ECHO_T}no" >&6; }
11449 done
11452 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11453 for ncn_progname in strip; do
11454 if test -n "$ncn_target_tool_prefix"; then
11455 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11456 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11459 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462 if test -n "$STRIP_FOR_TARGET"; then
11463 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11464 else
11465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466 for as_dir in $PATH
11468 IFS=$as_save_IFS
11469 test -z "$as_dir" && as_dir=.
11470 for ac_exec_ext in '' $ac_executable_extensions; do
11471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11472 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11474 break 2
11476 done
11477 done
11478 IFS=$as_save_IFS
11482 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11483 if test -n "$STRIP_FOR_TARGET"; then
11484 { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11485 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
11486 else
11487 { echo "$as_me:$LINENO: result: no" >&5
11488 echo "${ECHO_T}no" >&6; }
11493 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11495 set dummy ${ncn_progname}; ac_word=$2
11496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11498 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501 if test -n "$STRIP_FOR_TARGET"; then
11502 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11503 else
11504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505 for as_dir in $PATH
11507 IFS=$as_save_IFS
11508 test -z "$as_dir" && as_dir=.
11509 for ac_exec_ext in '' $ac_executable_extensions; do
11510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11511 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11513 break 2
11515 done
11516 done
11517 IFS=$as_save_IFS
11521 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11522 if test -n "$STRIP_FOR_TARGET"; then
11523 { echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11524 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6; }
11525 else
11526 { echo "$as_me:$LINENO: result: no" >&5
11527 echo "${ECHO_T}no" >&6; }
11532 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11533 done
11536 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11537 set dummy strip
11538 if test $build = $target ; then
11539 STRIP_FOR_TARGET="$2"
11540 else
11541 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11543 else
11544 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
11547 else
11548 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11554 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11555 if test -n "$with_build_time_tools"; then
11556 { echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11557 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6; }
11558 if test -x $with_build_time_tools/windres; then
11559 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11560 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11561 { echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11562 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
11563 else
11564 { echo "$as_me:$LINENO: result: no" >&5
11565 echo "${ECHO_T}no" >&6; }
11567 elif test $build != $host && test $have_gcc_for_target = yes; then
11568 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
11569 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11570 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11573 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11574 # Extract the first word of "windres", so it can be a program name with args.
11575 set dummy windres; ac_word=$2
11576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11578 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 else
11581 case $WINDRES_FOR_TARGET in
11582 [\\/]* | ?:[\\/]*)
11583 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11587 for as_dir in $gcc_cv_tool_dirs
11589 IFS=$as_save_IFS
11590 test -z "$as_dir" && as_dir=.
11591 for ac_exec_ext in '' $ac_executable_extensions; do
11592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11593 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11595 break 2
11597 done
11598 done
11599 IFS=$as_save_IFS
11602 esac
11604 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11605 if test -n "$WINDRES_FOR_TARGET"; then
11606 { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11607 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
11608 else
11609 { echo "$as_me:$LINENO: result: no" >&5
11610 echo "${ECHO_T}no" >&6; }
11615 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11618 if test -n "$WINDRES_FOR_TARGET"; then
11619 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11620 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11621 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11624 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11625 for ncn_progname in windres; do
11626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11627 set dummy ${ncn_progname}; ac_word=$2
11628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11630 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633 if test -n "$WINDRES_FOR_TARGET"; then
11634 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11635 else
11636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637 for as_dir in $PATH
11639 IFS=$as_save_IFS
11640 test -z "$as_dir" && as_dir=.
11641 for ac_exec_ext in '' $ac_executable_extensions; do
11642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11643 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11645 break 2
11647 done
11648 done
11649 IFS=$as_save_IFS
11653 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11654 if test -n "$WINDRES_FOR_TARGET"; then
11655 { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11656 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
11657 else
11658 { echo "$as_me:$LINENO: result: no" >&5
11659 echo "${ECHO_T}no" >&6; }
11663 done
11666 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
11667 for ncn_progname in windres; do
11668 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11669 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
11670 if test -x $with_build_time_tools/${ncn_progname}; then
11671 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11672 { echo "$as_me:$LINENO: result: yes" >&5
11673 echo "${ECHO_T}yes" >&6; }
11674 break
11675 else
11676 { echo "$as_me:$LINENO: result: no" >&5
11677 echo "${ECHO_T}no" >&6; }
11679 done
11682 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11683 for ncn_progname in windres; do
11684 if test -n "$ncn_target_tool_prefix"; then
11685 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11686 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11689 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692 if test -n "$WINDRES_FOR_TARGET"; then
11693 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11694 else
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696 for as_dir in $PATH
11698 IFS=$as_save_IFS
11699 test -z "$as_dir" && as_dir=.
11700 for ac_exec_ext in '' $ac_executable_extensions; do
11701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11702 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 break 2
11706 done
11707 done
11708 IFS=$as_save_IFS
11712 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11713 if test -n "$WINDRES_FOR_TARGET"; then
11714 { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11715 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
11716 else
11717 { echo "$as_me:$LINENO: result: no" >&5
11718 echo "${ECHO_T}no" >&6; }
11723 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11725 set dummy ${ncn_progname}; ac_word=$2
11726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11728 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11730 else
11731 if test -n "$WINDRES_FOR_TARGET"; then
11732 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11733 else
11734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735 for as_dir in $PATH
11737 IFS=$as_save_IFS
11738 test -z "$as_dir" && as_dir=.
11739 for ac_exec_ext in '' $ac_executable_extensions; do
11740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11741 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11743 break 2
11745 done
11746 done
11747 IFS=$as_save_IFS
11751 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11752 if test -n "$WINDRES_FOR_TARGET"; then
11753 { echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11754 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6; }
11755 else
11756 { echo "$as_me:$LINENO: result: no" >&5
11757 echo "${ECHO_T}no" >&6; }
11762 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11763 done
11766 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11767 set dummy windres
11768 if test $build = $target ; then
11769 WINDRES_FOR_TARGET="$2"
11770 else
11771 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
11773 else
11774 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
11777 else
11778 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11784 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11785 if test -n "$with_build_time_tools"; then
11786 { echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11787 echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6; }
11788 if test -x $with_build_time_tools/windmc; then
11789 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11790 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11791 { echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11792 echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
11793 else
11794 { echo "$as_me:$LINENO: result: no" >&5
11795 echo "${ECHO_T}no" >&6; }
11797 elif test $build != $host && test $have_gcc_for_target = yes; then
11798 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11799 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11800 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11803 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11804 # Extract the first word of "windmc", so it can be a program name with args.
11805 set dummy windmc; ac_word=$2
11806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11808 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 else
11811 case $WINDMC_FOR_TARGET in
11812 [\\/]* | ?:[\\/]*)
11813 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817 for as_dir in $gcc_cv_tool_dirs
11819 IFS=$as_save_IFS
11820 test -z "$as_dir" && as_dir=.
11821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11823 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11825 break 2
11827 done
11828 done
11829 IFS=$as_save_IFS
11832 esac
11834 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11835 if test -n "$WINDMC_FOR_TARGET"; then
11836 { echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11837 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6; }
11838 else
11839 { echo "$as_me:$LINENO: result: no" >&5
11840 echo "${ECHO_T}no" >&6; }
11845 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11848 if test -n "$WINDMC_FOR_TARGET"; then
11849 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11850 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11851 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11854 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11855 for ncn_progname in windmc; do
11856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11857 set dummy ${ncn_progname}; ac_word=$2
11858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11860 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 else
11863 if test -n "$WINDMC_FOR_TARGET"; then
11864 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11865 else
11866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867 for as_dir in $PATH
11869 IFS=$as_save_IFS
11870 test -z "$as_dir" && as_dir=.
11871 for ac_exec_ext in '' $ac_executable_extensions; do
11872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11873 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 break 2
11877 done
11878 done
11879 IFS=$as_save_IFS
11883 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11884 if test -n "$WINDMC_FOR_TARGET"; then
11885 { echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11886 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6; }
11887 else
11888 { echo "$as_me:$LINENO: result: no" >&5
11889 echo "${ECHO_T}no" >&6; }
11893 done
11896 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11897 for ncn_progname in windmc; do
11898 { echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11899 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6; }
11900 if test -x $with_build_time_tools/${ncn_progname}; then
11901 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11902 { echo "$as_me:$LINENO: result: yes" >&5
11903 echo "${ECHO_T}yes" >&6; }
11904 break
11905 else
11906 { echo "$as_me:$LINENO: result: no" >&5
11907 echo "${ECHO_T}no" >&6; }
11909 done
11912 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11913 for ncn_progname in windmc; do
11914 if test -n "$ncn_target_tool_prefix"; then
11915 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11916 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11919 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 else
11922 if test -n "$WINDMC_FOR_TARGET"; then
11923 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11924 else
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11928 IFS=$as_save_IFS
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11932 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 break 2
11936 done
11937 done
11938 IFS=$as_save_IFS
11942 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11943 if test -n "$WINDMC_FOR_TARGET"; then
11944 { echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11945 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6; }
11946 else
11947 { echo "$as_me:$LINENO: result: no" >&5
11948 echo "${ECHO_T}no" >&6; }
11953 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11955 set dummy ${ncn_progname}; ac_word=$2
11956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11958 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 else
11961 if test -n "$WINDMC_FOR_TARGET"; then
11962 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11963 else
11964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11965 for as_dir in $PATH
11967 IFS=$as_save_IFS
11968 test -z "$as_dir" && as_dir=.
11969 for ac_exec_ext in '' $ac_executable_extensions; do
11970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11971 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11973 break 2
11975 done
11976 done
11977 IFS=$as_save_IFS
11981 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11982 if test -n "$WINDMC_FOR_TARGET"; then
11983 { echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11984 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6; }
11985 else
11986 { echo "$as_me:$LINENO: result: no" >&5
11987 echo "${ECHO_T}no" >&6; }
11992 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11993 done
11996 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11997 set dummy windmc
11998 if test $build = $target ; then
11999 WINDMC_FOR_TARGET="$2"
12000 else
12001 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12003 else
12004 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12007 else
12008 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12012 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12014 { echo "$as_me:$LINENO: checking where to find the target ar" >&5
12015 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6; }
12016 if test "x${build}" != "x${host}" ; then
12017 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12018 # We already found the complete path
12019 ac_dir=`dirname $AR_FOR_TARGET`
12020 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12021 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12022 else
12023 # Canadian cross, just use what we found
12024 { echo "$as_me:$LINENO: result: pre-installed" >&5
12025 echo "${ECHO_T}pre-installed" >&6; }
12027 else
12028 ok=yes
12029 case " ${configdirs} " in
12030 *" binutils "*) ;;
12031 *) ok=no ;;
12032 esac
12034 if test $ok = yes; then
12035 # An in-tree tool is available and we can use it
12036 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
12037 { echo "$as_me:$LINENO: result: just compiled" >&5
12038 echo "${ECHO_T}just compiled" >&6; }
12039 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12040 # We already found the complete path
12041 ac_dir=`dirname $AR_FOR_TARGET`
12042 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12043 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12044 elif test "x$target" = "x$host"; then
12045 # We can use an host tool
12046 AR_FOR_TARGET='$(AR)'
12047 { echo "$as_me:$LINENO: result: host tool" >&5
12048 echo "${ECHO_T}host tool" >&6; }
12049 else
12050 # We need a cross tool
12051 { echo "$as_me:$LINENO: result: pre-installed" >&5
12052 echo "${ECHO_T}pre-installed" >&6; }
12056 { echo "$as_me:$LINENO: checking where to find the target as" >&5
12057 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6; }
12058 if test "x${build}" != "x${host}" ; then
12059 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12060 # We already found the complete path
12061 ac_dir=`dirname $AS_FOR_TARGET`
12062 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12063 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12064 else
12065 # Canadian cross, just use what we found
12066 { echo "$as_me:$LINENO: result: pre-installed" >&5
12067 echo "${ECHO_T}pre-installed" >&6; }
12069 else
12070 ok=yes
12071 case " ${configdirs} " in
12072 *" gas "*) ;;
12073 *) ok=no ;;
12074 esac
12076 if test $ok = yes; then
12077 # An in-tree tool is available and we can use it
12078 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
12079 { echo "$as_me:$LINENO: result: just compiled" >&5
12080 echo "${ECHO_T}just compiled" >&6; }
12081 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12082 # We already found the complete path
12083 ac_dir=`dirname $AS_FOR_TARGET`
12084 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12085 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12086 elif test "x$target" = "x$host"; then
12087 # We can use an host tool
12088 AS_FOR_TARGET='$(AS)'
12089 { echo "$as_me:$LINENO: result: host tool" >&5
12090 echo "${ECHO_T}host tool" >&6; }
12091 else
12092 # We need a cross tool
12093 { echo "$as_me:$LINENO: result: pre-installed" >&5
12094 echo "${ECHO_T}pre-installed" >&6; }
12098 { echo "$as_me:$LINENO: checking where to find the target cc" >&5
12099 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6; }
12100 if test "x${build}" != "x${host}" ; then
12101 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12102 # We already found the complete path
12103 ac_dir=`dirname $CC_FOR_TARGET`
12104 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12105 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12106 else
12107 # Canadian cross, just use what we found
12108 { echo "$as_me:$LINENO: result: pre-installed" >&5
12109 echo "${ECHO_T}pre-installed" >&6; }
12111 else
12112 ok=yes
12113 case " ${configdirs} " in
12114 *" gcc "*) ;;
12115 *) ok=no ;;
12116 esac
12118 if test $ok = yes; then
12119 # An in-tree tool is available and we can use it
12120 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12121 { echo "$as_me:$LINENO: result: just compiled" >&5
12122 echo "${ECHO_T}just compiled" >&6; }
12123 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12124 # We already found the complete path
12125 ac_dir=`dirname $CC_FOR_TARGET`
12126 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12127 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12128 elif test "x$target" = "x$host"; then
12129 # We can use an host tool
12130 CC_FOR_TARGET='$(CC)'
12131 { echo "$as_me:$LINENO: result: host tool" >&5
12132 echo "${ECHO_T}host tool" >&6; }
12133 else
12134 # We need a cross tool
12135 { echo "$as_me:$LINENO: result: pre-installed" >&5
12136 echo "${ECHO_T}pre-installed" >&6; }
12140 { echo "$as_me:$LINENO: checking where to find the target c++" >&5
12141 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6; }
12142 if test "x${build}" != "x${host}" ; then
12143 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12144 # We already found the complete path
12145 ac_dir=`dirname $CXX_FOR_TARGET`
12146 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12147 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12148 else
12149 # Canadian cross, just use what we found
12150 { echo "$as_me:$LINENO: result: pre-installed" >&5
12151 echo "${ECHO_T}pre-installed" >&6; }
12153 else
12154 ok=yes
12155 case " ${configdirs} " in
12156 *" gcc "*) ;;
12157 *) ok=no ;;
12158 esac
12159 case ,${enable_languages}, in
12160 *,c++,*) ;;
12161 *) ok=no ;;
12162 esac
12163 if test $ok = yes; then
12164 # An in-tree tool is available and we can use it
12165 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'
12166 { echo "$as_me:$LINENO: result: just compiled" >&5
12167 echo "${ECHO_T}just compiled" >&6; }
12168 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12169 # We already found the complete path
12170 ac_dir=`dirname $CXX_FOR_TARGET`
12171 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12172 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12173 elif test "x$target" = "x$host"; then
12174 # We can use an host tool
12175 CXX_FOR_TARGET='$(CXX)'
12176 { echo "$as_me:$LINENO: result: host tool" >&5
12177 echo "${ECHO_T}host tool" >&6; }
12178 else
12179 # We need a cross tool
12180 { echo "$as_me:$LINENO: result: pre-installed" >&5
12181 echo "${ECHO_T}pre-installed" >&6; }
12185 { echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
12186 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6; }
12187 if test "x${build}" != "x${host}" ; then
12188 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12189 # We already found the complete path
12190 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12191 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12192 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12193 else
12194 # Canadian cross, just use what we found
12195 { echo "$as_me:$LINENO: result: pre-installed" >&5
12196 echo "${ECHO_T}pre-installed" >&6; }
12198 else
12199 ok=yes
12200 case " ${configdirs} " in
12201 *" gcc "*) ;;
12202 *) ok=no ;;
12203 esac
12204 case ,${enable_languages}, in
12205 *,c++,*) ;;
12206 *) ok=no ;;
12207 esac
12208 if test $ok = yes; then
12209 # An in-tree tool is available and we can use it
12210 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'
12211 { echo "$as_me:$LINENO: result: just compiled" >&5
12212 echo "${ECHO_T}just compiled" >&6; }
12213 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12214 # We already found the complete path
12215 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12216 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12217 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12218 elif test "x$target" = "x$host"; then
12219 # We can use an host tool
12220 RAW_CXX_FOR_TARGET='$(CXX)'
12221 { echo "$as_me:$LINENO: result: host tool" >&5
12222 echo "${ECHO_T}host tool" >&6; }
12223 else
12224 # We need a cross tool
12225 { echo "$as_me:$LINENO: result: pre-installed" >&5
12226 echo "${ECHO_T}pre-installed" >&6; }
12230 { echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
12231 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6; }
12232 if test "x${build}" != "x${host}" ; then
12233 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12234 # We already found the complete path
12235 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12236 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12237 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12238 else
12239 # Canadian cross, just use what we found
12240 { echo "$as_me:$LINENO: result: pre-installed" >&5
12241 echo "${ECHO_T}pre-installed" >&6; }
12243 else
12244 ok=yes
12245 case " ${configdirs} " in
12246 *" binutils "*) ;;
12247 *) ok=no ;;
12248 esac
12250 if test $ok = yes; then
12251 # An in-tree tool is available and we can use it
12252 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
12253 { echo "$as_me:$LINENO: result: just compiled" >&5
12254 echo "${ECHO_T}just compiled" >&6; }
12255 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12256 # We already found the complete path
12257 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12258 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12259 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12260 elif test "x$target" = "x$host"; then
12261 # We can use an host tool
12262 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
12263 { echo "$as_me:$LINENO: result: host tool" >&5
12264 echo "${ECHO_T}host tool" >&6; }
12265 else
12266 # We need a cross tool
12267 { echo "$as_me:$LINENO: result: pre-installed" >&5
12268 echo "${ECHO_T}pre-installed" >&6; }
12272 { echo "$as_me:$LINENO: checking where to find the target gcc" >&5
12273 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6; }
12274 if test "x${build}" != "x${host}" ; then
12275 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12276 # We already found the complete path
12277 ac_dir=`dirname $GCC_FOR_TARGET`
12278 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12279 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12280 else
12281 # Canadian cross, just use what we found
12282 { echo "$as_me:$LINENO: result: pre-installed" >&5
12283 echo "${ECHO_T}pre-installed" >&6; }
12285 else
12286 ok=yes
12287 case " ${configdirs} " in
12288 *" gcc "*) ;;
12289 *) ok=no ;;
12290 esac
12292 if test $ok = yes; then
12293 # An in-tree tool is available and we can use it
12294 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12295 { echo "$as_me:$LINENO: result: just compiled" >&5
12296 echo "${ECHO_T}just compiled" >&6; }
12297 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12298 # We already found the complete path
12299 ac_dir=`dirname $GCC_FOR_TARGET`
12300 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12301 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12302 elif test "x$target" = "x$host"; then
12303 # We can use an host tool
12304 GCC_FOR_TARGET='$()'
12305 { echo "$as_me:$LINENO: result: host tool" >&5
12306 echo "${ECHO_T}host tool" >&6; }
12307 else
12308 # We need a cross tool
12309 { echo "$as_me:$LINENO: result: pre-installed" >&5
12310 echo "${ECHO_T}pre-installed" >&6; }
12314 { echo "$as_me:$LINENO: checking where to find the target gcj" >&5
12315 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6; }
12316 if test "x${build}" != "x${host}" ; then
12317 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12318 # We already found the complete path
12319 ac_dir=`dirname $GCJ_FOR_TARGET`
12320 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12321 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12322 else
12323 # Canadian cross, just use what we found
12324 { echo "$as_me:$LINENO: result: pre-installed" >&5
12325 echo "${ECHO_T}pre-installed" >&6; }
12327 else
12328 ok=yes
12329 case " ${configdirs} " in
12330 *" gcc "*) ;;
12331 *) ok=no ;;
12332 esac
12333 case ,${enable_languages}, in
12334 *,java,*) ;;
12335 *) ok=no ;;
12336 esac
12337 if test $ok = yes; then
12338 # An in-tree tool is available and we can use it
12339 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
12340 { echo "$as_me:$LINENO: result: just compiled" >&5
12341 echo "${ECHO_T}just compiled" >&6; }
12342 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12343 # We already found the complete path
12344 ac_dir=`dirname $GCJ_FOR_TARGET`
12345 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12346 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12347 elif test "x$target" = "x$host"; then
12348 # We can use an host tool
12349 GCJ_FOR_TARGET='$(GCJ)'
12350 { echo "$as_me:$LINENO: result: host tool" >&5
12351 echo "${ECHO_T}host tool" >&6; }
12352 else
12353 # We need a cross tool
12354 { echo "$as_me:$LINENO: result: pre-installed" >&5
12355 echo "${ECHO_T}pre-installed" >&6; }
12359 { echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12360 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6; }
12361 if test "x${build}" != "x${host}" ; then
12362 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12363 # We already found the complete path
12364 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12365 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12366 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12367 else
12368 # Canadian cross, just use what we found
12369 { echo "$as_me:$LINENO: result: pre-installed" >&5
12370 echo "${ECHO_T}pre-installed" >&6; }
12372 else
12373 ok=yes
12374 case " ${configdirs} " in
12375 *" gcc "*) ;;
12376 *) ok=no ;;
12377 esac
12378 case ,${enable_languages}, in
12379 *,fortran,*) ;;
12380 *) ok=no ;;
12381 esac
12382 if test $ok = yes; then
12383 # An in-tree tool is available and we can use it
12384 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
12385 { echo "$as_me:$LINENO: result: just compiled" >&5
12386 echo "${ECHO_T}just compiled" >&6; }
12387 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12388 # We already found the complete path
12389 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12390 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12391 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12392 elif test "x$target" = "x$host"; then
12393 # We can use an host tool
12394 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
12395 { echo "$as_me:$LINENO: result: host tool" >&5
12396 echo "${ECHO_T}host tool" >&6; }
12397 else
12398 # We need a cross tool
12399 { echo "$as_me:$LINENO: result: pre-installed" >&5
12400 echo "${ECHO_T}pre-installed" >&6; }
12404 { echo "$as_me:$LINENO: checking where to find the target ld" >&5
12405 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6; }
12406 if test "x${build}" != "x${host}" ; then
12407 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12408 # We already found the complete path
12409 ac_dir=`dirname $LD_FOR_TARGET`
12410 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12411 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12412 else
12413 # Canadian cross, just use what we found
12414 { echo "$as_me:$LINENO: result: pre-installed" >&5
12415 echo "${ECHO_T}pre-installed" >&6; }
12417 else
12418 ok=yes
12419 case " ${configdirs} " in
12420 *" ld "*) ;;
12421 *) ok=no ;;
12422 esac
12424 if test $ok = yes; then
12425 # An in-tree tool is available and we can use it
12426 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
12427 { echo "$as_me:$LINENO: result: just compiled" >&5
12428 echo "${ECHO_T}just compiled" >&6; }
12429 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12430 # We already found the complete path
12431 ac_dir=`dirname $LD_FOR_TARGET`
12432 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12433 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12434 elif test "x$target" = "x$host"; then
12435 # We can use an host tool
12436 LD_FOR_TARGET='$(LD)'
12437 { echo "$as_me:$LINENO: result: host tool" >&5
12438 echo "${ECHO_T}host tool" >&6; }
12439 else
12440 # We need a cross tool
12441 { echo "$as_me:$LINENO: result: pre-installed" >&5
12442 echo "${ECHO_T}pre-installed" >&6; }
12446 { echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12447 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6; }
12448 if test "x${build}" != "x${host}" ; then
12449 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12450 # We already found the complete path
12451 ac_dir=`dirname $LIPO_FOR_TARGET`
12452 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12453 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12454 else
12455 # Canadian cross, just use what we found
12456 { echo "$as_me:$LINENO: result: pre-installed" >&5
12457 echo "${ECHO_T}pre-installed" >&6; }
12459 else
12460 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12461 # We already found the complete path
12462 ac_dir=`dirname $LIPO_FOR_TARGET`
12463 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12464 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12465 elif test "x$target" = "x$host"; then
12466 # We can use an host tool
12467 LIPO_FOR_TARGET='$(LIPO)'
12468 { echo "$as_me:$LINENO: result: host tool" >&5
12469 echo "${ECHO_T}host tool" >&6; }
12470 else
12471 # We need a cross tool
12472 { echo "$as_me:$LINENO: result: pre-installed" >&5
12473 echo "${ECHO_T}pre-installed" >&6; }
12477 { echo "$as_me:$LINENO: checking where to find the target nm" >&5
12478 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6; }
12479 if test "x${build}" != "x${host}" ; then
12480 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12481 # We already found the complete path
12482 ac_dir=`dirname $NM_FOR_TARGET`
12483 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12484 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12485 else
12486 # Canadian cross, just use what we found
12487 { echo "$as_me:$LINENO: result: pre-installed" >&5
12488 echo "${ECHO_T}pre-installed" >&6; }
12490 else
12491 ok=yes
12492 case " ${configdirs} " in
12493 *" binutils "*) ;;
12494 *) ok=no ;;
12495 esac
12497 if test $ok = yes; then
12498 # An in-tree tool is available and we can use it
12499 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
12500 { echo "$as_me:$LINENO: result: just compiled" >&5
12501 echo "${ECHO_T}just compiled" >&6; }
12502 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12503 # We already found the complete path
12504 ac_dir=`dirname $NM_FOR_TARGET`
12505 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12506 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12507 elif test "x$target" = "x$host"; then
12508 # We can use an host tool
12509 NM_FOR_TARGET='$(NM)'
12510 { echo "$as_me:$LINENO: result: host tool" >&5
12511 echo "${ECHO_T}host tool" >&6; }
12512 else
12513 # We need a cross tool
12514 { echo "$as_me:$LINENO: result: pre-installed" >&5
12515 echo "${ECHO_T}pre-installed" >&6; }
12519 { echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12520 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6; }
12521 if test "x${build}" != "x${host}" ; then
12522 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12523 # We already found the complete path
12524 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12525 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12526 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12527 else
12528 # Canadian cross, just use what we found
12529 { echo "$as_me:$LINENO: result: pre-installed" >&5
12530 echo "${ECHO_T}pre-installed" >&6; }
12532 else
12533 ok=yes
12534 case " ${configdirs} " in
12535 *" binutils "*) ;;
12536 *) ok=no ;;
12537 esac
12539 if test $ok = yes; then
12540 # An in-tree tool is available and we can use it
12541 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
12542 { echo "$as_me:$LINENO: result: just compiled" >&5
12543 echo "${ECHO_T}just compiled" >&6; }
12544 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12545 # We already found the complete path
12546 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12547 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12548 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12549 elif test "x$target" = "x$host"; then
12550 # We can use an host tool
12551 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
12552 { echo "$as_me:$LINENO: result: host tool" >&5
12553 echo "${ECHO_T}host tool" >&6; }
12554 else
12555 # We need a cross tool
12556 { echo "$as_me:$LINENO: result: pre-installed" >&5
12557 echo "${ECHO_T}pre-installed" >&6; }
12561 { echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12562 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6; }
12563 if test "x${build}" != "x${host}" ; then
12564 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12565 # We already found the complete path
12566 ac_dir=`dirname $RANLIB_FOR_TARGET`
12567 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12568 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12569 else
12570 # Canadian cross, just use what we found
12571 { echo "$as_me:$LINENO: result: pre-installed" >&5
12572 echo "${ECHO_T}pre-installed" >&6; }
12574 else
12575 ok=yes
12576 case " ${configdirs} " in
12577 *" binutils "*) ;;
12578 *) ok=no ;;
12579 esac
12581 if test $ok = yes; then
12582 # An in-tree tool is available and we can use it
12583 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
12584 { echo "$as_me:$LINENO: result: just compiled" >&5
12585 echo "${ECHO_T}just compiled" >&6; }
12586 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12587 # We already found the complete path
12588 ac_dir=`dirname $RANLIB_FOR_TARGET`
12589 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12590 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12591 elif test "x$target" = "x$host"; then
12592 # We can use an host tool
12593 RANLIB_FOR_TARGET='$(RANLIB)'
12594 { echo "$as_me:$LINENO: result: host tool" >&5
12595 echo "${ECHO_T}host tool" >&6; }
12596 else
12597 # We need a cross tool
12598 { echo "$as_me:$LINENO: result: pre-installed" >&5
12599 echo "${ECHO_T}pre-installed" >&6; }
12603 { echo "$as_me:$LINENO: checking where to find the target strip" >&5
12604 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6; }
12605 if test "x${build}" != "x${host}" ; then
12606 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12607 # We already found the complete path
12608 ac_dir=`dirname $STRIP_FOR_TARGET`
12609 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12610 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12611 else
12612 # Canadian cross, just use what we found
12613 { echo "$as_me:$LINENO: result: pre-installed" >&5
12614 echo "${ECHO_T}pre-installed" >&6; }
12616 else
12617 ok=yes
12618 case " ${configdirs} " in
12619 *" binutils "*) ;;
12620 *) ok=no ;;
12621 esac
12623 if test $ok = yes; then
12624 # An in-tree tool is available and we can use it
12625 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
12626 { echo "$as_me:$LINENO: result: just compiled" >&5
12627 echo "${ECHO_T}just compiled" >&6; }
12628 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12629 # We already found the complete path
12630 ac_dir=`dirname $STRIP_FOR_TARGET`
12631 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12632 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12633 elif test "x$target" = "x$host"; then
12634 # We can use an host tool
12635 STRIP_FOR_TARGET='$(STRIP)'
12636 { echo "$as_me:$LINENO: result: host tool" >&5
12637 echo "${ECHO_T}host tool" >&6; }
12638 else
12639 # We need a cross tool
12640 { echo "$as_me:$LINENO: result: pre-installed" >&5
12641 echo "${ECHO_T}pre-installed" >&6; }
12645 { echo "$as_me:$LINENO: checking where to find the target windres" >&5
12646 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6; }
12647 if test "x${build}" != "x${host}" ; then
12648 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12649 # We already found the complete path
12650 ac_dir=`dirname $WINDRES_FOR_TARGET`
12651 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12652 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12653 else
12654 # Canadian cross, just use what we found
12655 { echo "$as_me:$LINENO: result: pre-installed" >&5
12656 echo "${ECHO_T}pre-installed" >&6; }
12658 else
12659 ok=yes
12660 case " ${configdirs} " in
12661 *" binutils "*) ;;
12662 *) ok=no ;;
12663 esac
12665 if test $ok = yes; then
12666 # An in-tree tool is available and we can use it
12667 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
12668 { echo "$as_me:$LINENO: result: just compiled" >&5
12669 echo "${ECHO_T}just compiled" >&6; }
12670 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12671 # We already found the complete path
12672 ac_dir=`dirname $WINDRES_FOR_TARGET`
12673 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12674 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12675 elif test "x$target" = "x$host"; then
12676 # We can use an host tool
12677 WINDRES_FOR_TARGET='$(WINDRES)'
12678 { echo "$as_me:$LINENO: result: host tool" >&5
12679 echo "${ECHO_T}host tool" >&6; }
12680 else
12681 # We need a cross tool
12682 { echo "$as_me:$LINENO: result: pre-installed" >&5
12683 echo "${ECHO_T}pre-installed" >&6; }
12687 { echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12688 echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6; }
12689 if test "x${build}" != "x${host}" ; then
12690 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12691 # We already found the complete path
12692 ac_dir=`dirname $WINDMC_FOR_TARGET`
12693 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12694 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12695 else
12696 # Canadian cross, just use what we found
12697 { echo "$as_me:$LINENO: result: pre-installed" >&5
12698 echo "${ECHO_T}pre-installed" >&6; }
12700 else
12701 ok=yes
12702 case " ${configdirs} " in
12703 *" binutils "*) ;;
12704 *) ok=no ;;
12705 esac
12707 if test $ok = yes; then
12708 # An in-tree tool is available and we can use it
12709 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12710 { echo "$as_me:$LINENO: result: just compiled" >&5
12711 echo "${ECHO_T}just compiled" >&6; }
12712 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12713 # We already found the complete path
12714 ac_dir=`dirname $WINDMC_FOR_TARGET`
12715 { echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12716 echo "${ECHO_T}pre-installed in $ac_dir" >&6; }
12717 elif test "x$target" = "x$host"; then
12718 # We can use an host tool
12719 WINDMC_FOR_TARGET='$(WINDMC)'
12720 { echo "$as_me:$LINENO: result: host tool" >&5
12721 echo "${ECHO_T}host tool" >&6; }
12722 else
12723 # We need a cross tool
12724 { echo "$as_me:$LINENO: result: pre-installed" >&5
12725 echo "${ECHO_T}pre-installed" >&6; }
12733 # Certain tools may need extra flags.
12734 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12735 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12736 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12738 # When building target libraries, except in a Canadian cross, we use
12739 # the same toolchain as the compiler we just built.
12740 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12741 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12742 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12743 if test $host = $build; then
12744 case " $configdirs " in
12745 *" gcc "*)
12746 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12747 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12748 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12750 esac
12757 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12758 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
12759 # Check whether --enable-maintainer-mode was given.
12760 if test "${enable_maintainer_mode+set}" = set; then
12761 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12762 else
12763 USE_MAINTAINER_MODE=no
12766 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12767 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
12770 if test "$USE_MAINTAINER_MODE" = yes; then
12771 MAINTAINER_MODE_TRUE=
12772 MAINTAINER_MODE_FALSE='#'
12773 else
12774 MAINTAINER_MODE_TRUE='#'
12775 MAINTAINER_MODE_FALSE=
12777 MAINT=$MAINTAINER_MODE_TRUE
12779 # ---------------------
12780 # GCC bootstrap support
12781 # ---------------------
12783 # Stage specific cflags for build.
12784 stage1_cflags="-g"
12785 case $build in
12786 vax-*-*)
12787 case ${GCC} in
12788 yes) stage1_cflags="-g -Wa,-J" ;;
12789 *) stage1_cflags="-g -J" ;;
12790 esac ;;
12791 esac
12793 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12794 if test "$GCC" = yes; then
12795 saved_CFLAGS="$CFLAGS"
12797 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12798 CFLAGS="$CFLAGS -fkeep-inline-functions"
12799 { echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12800 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6; }
12801 cat >conftest.$ac_ext <<_ACEOF
12802 /* confdefs.h. */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12808 #if (__GNUC__ < 3) \
12809 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12810 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12811 #error http://gcc.gnu.org/PR29382
12812 #endif
12815 main ()
12819 return 0;
12821 _ACEOF
12822 rm -f conftest.$ac_objext
12823 if { (ac_try="$ac_compile"
12824 case "(($ac_try" in
12825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826 *) ac_try_echo=$ac_try;;
12827 esac
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_compile") 2>conftest.er1
12830 ac_status=$?
12831 grep -v '^ *+' conftest.er1 >conftest.err
12832 rm -f conftest.er1
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } && {
12836 test -z "$ac_c_werror_flag" ||
12837 test ! -s conftest.err
12838 } && test -s conftest.$ac_objext; then
12839 { echo "$as_me:$LINENO: result: yes" >&5
12840 echo "${ECHO_T}yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12841 else
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12845 { echo "$as_me:$LINENO: result: no" >&5
12846 echo "${ECHO_T}no" >&6; }
12849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851 CFLAGS="$saved_CFLAGS"
12856 # Enable --enable-checking in stage1 of the compiler.
12857 # Check whether --enable-stage1-checking was given.
12858 if test "${enable_stage1_checking+set}" = set; then
12859 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
12860 else
12861 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
12862 stage1_checking=--enable-checking=yes,types
12863 else
12864 stage1_checking=--enable-checking=$enable_checking,types
12870 # Enable -Werror in bootstrap stage2 and later.
12871 # Check whether --enable-werror was given.
12872 if test "${enable_werror+set}" = set; then
12873 enableval=$enable_werror;
12874 else
12875 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12876 enable_werror=yes
12877 else
12878 enable_werror=no
12882 case ${enable_werror} in
12883 yes) stage2_werror_flag="--enable-werror-always" ;;
12884 *) stage2_werror_flag="" ;;
12885 esac
12888 # Flags needed to enable html installing and building
12890 # Check whether --with-datarootdir was given.
12891 if test "${with_datarootdir+set}" = set; then
12892 withval=$with_datarootdir; datarootdir="\${prefix}/${withval}"
12893 else
12894 datarootdir="\${prefix}/share"
12899 # Check whether --with-docdir was given.
12900 if test "${with_docdir+set}" = set; then
12901 withval=$with_docdir; docdir="\${prefix}/${withval}"
12902 else
12903 docdir="\${datarootdir}/doc"
12908 # Check whether --with-pdfdir was given.
12909 if test "${with_pdfdir+set}" = set; then
12910 withval=$with_pdfdir; pdfdir="\${prefix}/${withval}"
12911 else
12912 pdfdir="\${docdir}"
12917 # Check whether --with-htmldir was given.
12918 if test "${with_htmldir+set}" = set; then
12919 withval=$with_htmldir; htmldir="\${prefix}/${withval}"
12920 else
12921 htmldir="\${docdir}"
12930 ac_config_files="$ac_config_files Makefile"
12932 cat >confcache <<\_ACEOF
12933 # This file is a shell script that caches the results of configure
12934 # tests run on this system so they can be shared between configure
12935 # scripts and configure runs, see configure's option --config-cache.
12936 # It is not useful on other systems. If it contains results you don't
12937 # want to keep, you may remove or edit it.
12939 # config.status only pays attention to the cache file if you give it
12940 # the --recheck option to rerun configure.
12942 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12943 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12944 # following values.
12946 _ACEOF
12948 # The following way of writing the cache mishandles newlines in values,
12949 # but we know of no workaround that is simple, portable, and efficient.
12950 # So, we kill variables containing newlines.
12951 # Ultrix sh set writes to stderr and can't be redirected directly,
12952 # and sets the high bit in the cache file unless we assign to the vars.
12954 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12955 eval ac_val=\$$ac_var
12956 case $ac_val in #(
12957 *${as_nl}*)
12958 case $ac_var in #(
12959 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12960 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12961 esac
12962 case $ac_var in #(
12963 _ | IFS | as_nl) ;; #(
12964 *) $as_unset $ac_var ;;
12965 esac ;;
12966 esac
12967 done
12969 (set) 2>&1 |
12970 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12971 *${as_nl}ac_space=\ *)
12972 # `set' does not quote correctly, so add quotes (double-quote
12973 # substitution turns \\\\ into \\, and sed turns \\ into \).
12974 sed -n \
12975 "s/'/'\\\\''/g;
12976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12977 ;; #(
12979 # `set' quotes correctly as required by POSIX, so do not add quotes.
12980 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12982 esac |
12983 sort
12985 sed '
12986 /^ac_cv_env_/b end
12987 t clear
12988 :clear
12989 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12990 t end
12991 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12992 :end' >>confcache
12993 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12994 if test -w "$cache_file"; then
12995 test "x$cache_file" != "x/dev/null" &&
12996 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12997 echo "$as_me: updating cache $cache_file" >&6;}
12998 cat confcache >$cache_file
12999 else
13000 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13001 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13004 rm -f confcache
13006 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13007 # Let make expand exec_prefix.
13008 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13010 # Transform confdefs.h into DEFS.
13011 # Protect against shell expansion while executing Makefile rules.
13012 # Protect against Makefile macro expansion.
13014 # If the first sed substitution is executed (which looks for macros that
13015 # take arguments), then branch to the quote section. Otherwise,
13016 # look for a macro that doesn't take arguments.
13017 ac_script='
13018 t clear
13019 :clear
13020 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13021 t quote
13022 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13023 t quote
13024 b any
13025 :quote
13026 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13027 s/\[/\\&/g
13028 s/\]/\\&/g
13029 s/\$/$$/g
13031 :any
13034 s/^\n//
13035 s/\n/ /g
13039 DEFS=`sed -n "$ac_script" confdefs.h`
13042 ac_libobjs=
13043 ac_ltlibobjs=
13044 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13045 # 1. Remove the extension, and $U if already installed.
13046 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13047 ac_i=`echo "$ac_i" | sed "$ac_script"`
13048 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13049 # will be set to the directory where LIBOBJS objects are built.
13050 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13051 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13052 done
13053 LIBOBJS=$ac_libobjs
13055 LTLIBOBJS=$ac_ltlibobjs
13059 : ${CONFIG_STATUS=./config.status}
13060 ac_clean_files_save=$ac_clean_files
13061 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13062 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13063 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13064 cat >$CONFIG_STATUS <<_ACEOF
13065 #! $SHELL
13066 # Generated by $as_me.
13067 # Run this file to recreate the current configuration.
13068 # Compiler output produced by configure, useful for debugging
13069 # configure, is in config.log if it exists.
13071 debug=false
13072 ac_cs_recheck=false
13073 ac_cs_silent=false
13074 SHELL=\${CONFIG_SHELL-$SHELL}
13075 _ACEOF
13077 cat >>$CONFIG_STATUS <<\_ACEOF
13078 ## --------------------- ##
13079 ## M4sh Initialization. ##
13080 ## --------------------- ##
13082 # Be more Bourne compatible
13083 DUALCASE=1; export DUALCASE # for MKS sh
13084 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13085 emulate sh
13086 NULLCMD=:
13087 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13088 # is contrary to our usage. Disable this feature.
13089 alias -g '${1+"$@"}'='"$@"'
13090 setopt NO_GLOB_SUBST
13091 else
13092 case `(set -o) 2>/dev/null` in
13093 *posix*) set -o posix ;;
13094 esac
13101 # PATH needs CR
13102 # Avoid depending upon Character Ranges.
13103 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13104 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13105 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13106 as_cr_digits='0123456789'
13107 as_cr_alnum=$as_cr_Letters$as_cr_digits
13109 # The user is always right.
13110 if test "${PATH_SEPARATOR+set}" != set; then
13111 echo "#! /bin/sh" >conf$$.sh
13112 echo "exit 0" >>conf$$.sh
13113 chmod +x conf$$.sh
13114 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13115 PATH_SEPARATOR=';'
13116 else
13117 PATH_SEPARATOR=:
13119 rm -f conf$$.sh
13122 # Support unset when possible.
13123 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13124 as_unset=unset
13125 else
13126 as_unset=false
13130 # IFS
13131 # We need space, tab and new line, in precisely that order. Quoting is
13132 # there to prevent editors from complaining about space-tab.
13133 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13134 # splitting by setting IFS to empty value.)
13135 as_nl='
13137 IFS=" "" $as_nl"
13139 # Find who we are. Look in the path if we contain no directory separator.
13140 case $0 in
13141 *[\\/]* ) as_myself=$0 ;;
13142 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143 for as_dir in $PATH
13145 IFS=$as_save_IFS
13146 test -z "$as_dir" && as_dir=.
13147 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13148 done
13149 IFS=$as_save_IFS
13152 esac
13153 # We did not find ourselves, most probably we were run as `sh COMMAND'
13154 # in which case we are not to be found in the path.
13155 if test "x$as_myself" = x; then
13156 as_myself=$0
13158 if test ! -f "$as_myself"; then
13159 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13160 { (exit 1); exit 1; }
13163 # Work around bugs in pre-3.0 UWIN ksh.
13164 for as_var in ENV MAIL MAILPATH
13165 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13166 done
13167 PS1='$ '
13168 PS2='> '
13169 PS4='+ '
13171 # NLS nuisances.
13172 for as_var in \
13173 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13174 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13175 LC_TELEPHONE LC_TIME
13177 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13178 eval $as_var=C; export $as_var
13179 else
13180 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13182 done
13184 # Required to use basename.
13185 if expr a : '\(a\)' >/dev/null 2>&1 &&
13186 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13187 as_expr=expr
13188 else
13189 as_expr=false
13192 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13193 as_basename=basename
13194 else
13195 as_basename=false
13199 # Name of the executable.
13200 as_me=`$as_basename -- "$0" ||
13201 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13202 X"$0" : 'X\(//\)$' \| \
13203 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13204 echo X/"$0" |
13205 sed '/^.*\/\([^/][^/]*\)\/*$/{
13206 s//\1/
13209 /^X\/\(\/\/\)$/{
13210 s//\1/
13213 /^X\/\(\/\).*/{
13214 s//\1/
13217 s/.*/./; q'`
13219 # CDPATH.
13220 $as_unset CDPATH
13224 as_lineno_1=$LINENO
13225 as_lineno_2=$LINENO
13226 test "x$as_lineno_1" != "x$as_lineno_2" &&
13227 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13229 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13230 # uniformly replaced by the line number. The first 'sed' inserts a
13231 # line-number line after each line using $LINENO; the second 'sed'
13232 # does the real work. The second script uses 'N' to pair each
13233 # line-number line with the line containing $LINENO, and appends
13234 # trailing '-' during substitution so that $LINENO is not a special
13235 # case at line end.
13236 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13237 # scripts with optimization help from Paolo Bonzini. Blame Lee
13238 # E. McMahon (1931-1989) for sed's syntax. :-)
13239 sed -n '
13241 /[$]LINENO/=
13242 ' <$as_myself |
13243 sed '
13244 s/[$]LINENO.*/&-/
13245 t lineno
13247 :lineno
13249 :loop
13250 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13251 t loop
13252 s/-\n.*//
13253 ' >$as_me.lineno &&
13254 chmod +x "$as_me.lineno" ||
13255 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13256 { (exit 1); exit 1; }; }
13258 # Don't try to exec as it changes $[0], causing all sort of problems
13259 # (the dirname of $[0] is not the place where we might find the
13260 # original and so on. Autoconf is especially sensitive to this).
13261 . "./$as_me.lineno"
13262 # Exit status is that of the last command.
13263 exit
13267 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13268 as_dirname=dirname
13269 else
13270 as_dirname=false
13273 ECHO_C= ECHO_N= ECHO_T=
13274 case `echo -n x` in
13275 -n*)
13276 case `echo 'x\c'` in
13277 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13278 *) ECHO_C='\c';;
13279 esac;;
13281 ECHO_N='-n';;
13282 esac
13284 if expr a : '\(a\)' >/dev/null 2>&1 &&
13285 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13286 as_expr=expr
13287 else
13288 as_expr=false
13291 rm -f conf$$ conf$$.exe conf$$.file
13292 if test -d conf$$.dir; then
13293 rm -f conf$$.dir/conf$$.file
13294 else
13295 rm -f conf$$.dir
13296 mkdir conf$$.dir
13298 echo >conf$$.file
13299 if ln -s conf$$.file conf$$ 2>/dev/null; then
13300 as_ln_s='ln -s'
13301 # ... but there are two gotchas:
13302 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13303 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13304 # In both cases, we have to default to `cp -p'.
13305 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13306 as_ln_s='cp -p'
13307 elif ln conf$$.file conf$$ 2>/dev/null; then
13308 as_ln_s=ln
13309 else
13310 as_ln_s='cp -p'
13312 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13313 rmdir conf$$.dir 2>/dev/null
13315 if mkdir -p . 2>/dev/null; then
13316 as_mkdir_p=:
13317 else
13318 test -d ./-p && rmdir ./-p
13319 as_mkdir_p=false
13322 if test -x / >/dev/null 2>&1; then
13323 as_test_x='test -x'
13324 else
13325 if ls -dL / >/dev/null 2>&1; then
13326 as_ls_L_option=L
13327 else
13328 as_ls_L_option=
13330 as_test_x='
13331 eval sh -c '\''
13332 if test -d "$1"; then
13333 test -d "$1/.";
13334 else
13335 case $1 in
13336 -*)set "./$1";;
13337 esac;
13338 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13339 ???[sx]*):;;*)false;;esac;fi
13340 '\'' sh
13343 as_executable_p=$as_test_x
13345 # Sed expression to map a string onto a valid CPP name.
13346 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13348 # Sed expression to map a string onto a valid variable name.
13349 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13352 exec 6>&1
13354 # Save the log message, to keep $[0] and so on meaningful, and to
13355 # report actual input values of CONFIG_FILES etc. instead of their
13356 # values after options handling.
13357 ac_log="
13358 This file was extended by $as_me, which was
13359 generated by GNU Autoconf 2.61. Invocation command line was
13361 CONFIG_FILES = $CONFIG_FILES
13362 CONFIG_HEADERS = $CONFIG_HEADERS
13363 CONFIG_LINKS = $CONFIG_LINKS
13364 CONFIG_COMMANDS = $CONFIG_COMMANDS
13365 $ $0 $@
13367 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13370 _ACEOF
13372 cat >>$CONFIG_STATUS <<_ACEOF
13373 # Files that config.status was made for.
13374 config_files="$ac_config_files"
13376 _ACEOF
13378 cat >>$CONFIG_STATUS <<\_ACEOF
13379 ac_cs_usage="\
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 and configuration settings, 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:
13394 $config_files
13396 Report bugs to <bug-autoconf@gnu.org>."
13398 _ACEOF
13399 cat >>$CONFIG_STATUS <<_ACEOF
13400 ac_cs_version="\\
13401 config.status
13402 configured by $0, generated by GNU Autoconf 2.61,
13403 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13405 Copyright (C) 2006 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."
13409 ac_pwd='$ac_pwd'
13410 srcdir='$srcdir'
13411 INSTALL='$INSTALL'
13412 _ACEOF
13414 cat >>$CONFIG_STATUS <<\_ACEOF
13415 # If no file are specified by the user, then we need to provide default
13416 # value. By we need to know if files were specified by the user.
13417 ac_need_defaults=:
13418 while test $# != 0
13420 case $1 in
13421 --*=*)
13422 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13423 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13424 ac_shift=:
13427 ac_option=$1
13428 ac_optarg=$2
13429 ac_shift=shift
13431 esac
13433 case $ac_option in
13434 # Handling of the options.
13435 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13436 ac_cs_recheck=: ;;
13437 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13438 echo "$ac_cs_version"; exit ;;
13439 --debug | --debu | --deb | --de | --d | -d )
13440 debug=: ;;
13441 --file | --fil | --fi | --f )
13442 $ac_shift
13443 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13444 ac_need_defaults=false;;
13445 --he | --h | --help | --hel | -h )
13446 echo "$ac_cs_usage"; exit ;;
13447 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13448 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13449 ac_cs_silent=: ;;
13451 # This is an error.
13452 -*) { echo "$as_me: error: unrecognized option: $1
13453 Try \`$0 --help' for more information." >&2
13454 { (exit 1); exit 1; }; } ;;
13456 *) ac_config_targets="$ac_config_targets $1"
13457 ac_need_defaults=false ;;
13459 esac
13460 shift
13461 done
13463 ac_configure_extra_args=
13465 if $ac_cs_silent; then
13466 exec 6>/dev/null
13467 ac_configure_extra_args="$ac_configure_extra_args --silent"
13470 _ACEOF
13471 cat >>$CONFIG_STATUS <<_ACEOF
13472 if \$ac_cs_recheck; then
13473 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13474 CONFIG_SHELL=$SHELL
13475 export CONFIG_SHELL
13476 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13479 _ACEOF
13480 cat >>$CONFIG_STATUS <<\_ACEOF
13481 exec 5>>config.log
13483 echo
13484 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13485 ## Running $as_me. ##
13486 _ASBOX
13487 echo "$ac_log"
13488 } >&5
13490 _ACEOF
13491 cat >>$CONFIG_STATUS <<_ACEOF
13492 _ACEOF
13494 cat >>$CONFIG_STATUS <<\_ACEOF
13496 # Handling of arguments.
13497 for ac_config_target in $ac_config_targets
13499 case $ac_config_target in
13500 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13502 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13503 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13504 { (exit 1); exit 1; }; };;
13505 esac
13506 done
13509 # If the user did not use the arguments to specify the items to instantiate,
13510 # then the envvar interface is used. Set only those that are not.
13511 # We use the long form for the default assignment because of an extremely
13512 # bizarre bug on SunOS 4.1.3.
13513 if $ac_need_defaults; then
13514 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13517 # Have a temporary directory for convenience. Make it in the build tree
13518 # simply because there is no reason against having it here, and in addition,
13519 # creating and moving files from /tmp can sometimes cause problems.
13520 # Hook for its removal unless debugging.
13521 # Note that there is a small window in which the directory will not be cleaned:
13522 # after its creation but before its name has been assigned to `$tmp'.
13523 $debug ||
13525 tmp=
13526 trap 'exit_status=$?
13527 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13529 trap '{ (exit 1); exit 1; }' 1 2 13 15
13531 # Create a (secure) tmp directory for tmp files.
13534 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13535 test -n "$tmp" && test -d "$tmp"
13536 } ||
13538 tmp=./conf$$-$RANDOM
13539 (umask 077 && mkdir "$tmp")
13540 } ||
13542 echo "$me: cannot create a temporary directory in ." >&2
13543 { (exit 1); exit 1; }
13547 # Set up the sed scripts for CONFIG_FILES section.
13550 # No need to generate the scripts if there are no CONFIG_FILES.
13551 # This happens for instance when ./config.status config.h
13552 if test -n "$CONFIG_FILES"; then
13554 _ACEOF
13556 # Create sed commands to just substitute file output variables.
13558 # Remaining file output variables are in a fragment that also has non-file
13559 # output varibles.
13563 ac_delim='%!_!# '
13564 for ac_last_try in false false false false false :; do
13565 cat >conf$$subs.sed <<_ACEOF
13566 SHELL!$SHELL$ac_delim
13567 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13568 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13569 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13570 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13571 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13572 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13573 exec_prefix!$exec_prefix$ac_delim
13574 prefix!$prefix$ac_delim
13575 program_transform_name!$program_transform_name$ac_delim
13576 bindir!$bindir$ac_delim
13577 sbindir!$sbindir$ac_delim
13578 libexecdir!$libexecdir$ac_delim
13579 datarootdir!$datarootdir$ac_delim
13580 datadir!$datadir$ac_delim
13581 sysconfdir!$sysconfdir$ac_delim
13582 sharedstatedir!$sharedstatedir$ac_delim
13583 localstatedir!$localstatedir$ac_delim
13584 includedir!$includedir$ac_delim
13585 oldincludedir!$oldincludedir$ac_delim
13586 docdir!$docdir$ac_delim
13587 infodir!$infodir$ac_delim
13588 htmldir!$htmldir$ac_delim
13589 dvidir!$dvidir$ac_delim
13590 pdfdir!$pdfdir$ac_delim
13591 psdir!$psdir$ac_delim
13592 libdir!$libdir$ac_delim
13593 localedir!$localedir$ac_delim
13594 mandir!$mandir$ac_delim
13595 DEFS!$DEFS$ac_delim
13596 ECHO_C!$ECHO_C$ac_delim
13597 ECHO_N!$ECHO_N$ac_delim
13598 ECHO_T!$ECHO_T$ac_delim
13599 LIBS!$LIBS$ac_delim
13600 build_alias!$build_alias$ac_delim
13601 host_alias!$host_alias$ac_delim
13602 target_alias!$target_alias$ac_delim
13603 build!$build$ac_delim
13604 build_cpu!$build_cpu$ac_delim
13605 build_vendor!$build_vendor$ac_delim
13606 build_os!$build_os$ac_delim
13607 build_noncanonical!$build_noncanonical$ac_delim
13608 host_noncanonical!$host_noncanonical$ac_delim
13609 target_noncanonical!$target_noncanonical$ac_delim
13610 host!$host$ac_delim
13611 host_cpu!$host_cpu$ac_delim
13612 host_vendor!$host_vendor$ac_delim
13613 host_os!$host_os$ac_delim
13614 target!$target$ac_delim
13615 target_cpu!$target_cpu$ac_delim
13616 target_vendor!$target_vendor$ac_delim
13617 target_os!$target_os$ac_delim
13618 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13619 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13620 INSTALL_DATA!$INSTALL_DATA$ac_delim
13621 LN!$LN$ac_delim
13622 LN_S!$LN_S$ac_delim
13623 TOPLEVEL_CONFIGURE_ARGUMENTS!$TOPLEVEL_CONFIGURE_ARGUMENTS$ac_delim
13624 build_libsubdir!$build_libsubdir$ac_delim
13625 build_subdir!$build_subdir$ac_delim
13626 host_subdir!$host_subdir$ac_delim
13627 target_subdir!$target_subdir$ac_delim
13628 CC!$CC$ac_delim
13629 CFLAGS!$CFLAGS$ac_delim
13630 LDFLAGS!$LDFLAGS$ac_delim
13631 CPPFLAGS!$CPPFLAGS$ac_delim
13632 ac_ct_CC!$ac_ct_CC$ac_delim
13633 EXEEXT!$EXEEXT$ac_delim
13634 OBJEXT!$OBJEXT$ac_delim
13635 CXX!$CXX$ac_delim
13636 CXXFLAGS!$CXXFLAGS$ac_delim
13637 ac_ct_CXX!$ac_ct_CXX$ac_delim
13638 GNATBIND!$GNATBIND$ac_delim
13639 GNATMAKE!$GNATMAKE$ac_delim
13640 do_compare!$do_compare$ac_delim
13641 gmplibs!$gmplibs$ac_delim
13642 gmpinc!$gmpinc$ac_delim
13643 stage1_languages!$stage1_languages$ac_delim
13644 SYSROOT_CFLAGS_FOR_TARGET!$SYSROOT_CFLAGS_FOR_TARGET$ac_delim
13645 DEBUG_PREFIX_CFLAGS_FOR_TARGET!$DEBUG_PREFIX_CFLAGS_FOR_TARGET$ac_delim
13646 CFLAGS_FOR_TARGET!$CFLAGS_FOR_TARGET$ac_delim
13647 CXXFLAGS_FOR_TARGET!$CXXFLAGS_FOR_TARGET$ac_delim
13648 _ACEOF
13650 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
13651 break
13652 elif $ac_last_try; then
13653 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13654 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13655 { (exit 1); exit 1; }; }
13656 else
13657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13659 done
13661 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13662 if test -n "$ac_eof"; then
13663 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13664 ac_eof=`expr $ac_eof + 1`
13667 cat >>$CONFIG_STATUS <<_ACEOF
13668 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13670 /^[ ]*@serialization_dependencies@[ ]*$/{
13671 r $serialization_dependencies
13674 /^[ ]*@host_makefile_frag@[ ]*$/{
13675 r $host_makefile_frag
13678 /^[ ]*@target_makefile_frag@[ ]*$/{
13679 r $target_makefile_frag
13682 /^[ ]*@alphaieee_frag@[ ]*$/{
13683 r $alphaieee_frag
13686 /^[ ]*@ospace_frag@[ ]*$/{
13687 r $ospace_frag
13690 _ACEOF
13691 sed '
13692 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13693 s/^/s,@/; s/!/@,|#_!!_#|/
13696 s/'"$ac_delim"'$/,g/; t
13697 s/$/\\/; p
13698 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13699 ' >>$CONFIG_STATUS <conf$$subs.sed
13700 rm -f conf$$subs.sed
13701 cat >>$CONFIG_STATUS <<_ACEOF
13702 CEOF$ac_eof
13703 _ACEOF
13706 ac_delim='%!_!# '
13707 for ac_last_try in false false false false false :; do
13708 cat >conf$$subs.sed <<_ACEOF
13709 RPATH_ENVVAR!$RPATH_ENVVAR$ac_delim
13710 tooldir!$tooldir$ac_delim
13711 build_tooldir!$build_tooldir$ac_delim
13712 CONFIGURE_GDB_TK!$CONFIGURE_GDB_TK$ac_delim
13713 GDB_TK!$GDB_TK$ac_delim
13714 INSTALL_GDB_TK!$INSTALL_GDB_TK$ac_delim
13715 build_configargs!$build_configargs$ac_delim
13716 build_configdirs!$build_configdirs$ac_delim
13717 host_configargs!$host_configargs$ac_delim
13718 configdirs!$configdirs$ac_delim
13719 target_configargs!$target_configargs$ac_delim
13720 AR_FOR_BUILD!$AR_FOR_BUILD$ac_delim
13721 AS_FOR_BUILD!$AS_FOR_BUILD$ac_delim
13722 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
13723 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
13724 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
13725 CXX_FOR_BUILD!$CXX_FOR_BUILD$ac_delim
13726 DLLTOOL_FOR_BUILD!$DLLTOOL_FOR_BUILD$ac_delim
13727 GCJ_FOR_BUILD!$GCJ_FOR_BUILD$ac_delim
13728 GFORTRAN_FOR_BUILD!$GFORTRAN_FOR_BUILD$ac_delim
13729 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
13730 LD_FOR_BUILD!$LD_FOR_BUILD$ac_delim
13731 NM_FOR_BUILD!$NM_FOR_BUILD$ac_delim
13732 RANLIB_FOR_BUILD!$RANLIB_FOR_BUILD$ac_delim
13733 WINDMC_FOR_BUILD!$WINDMC_FOR_BUILD$ac_delim
13734 WINDRES_FOR_BUILD!$WINDRES_FOR_BUILD$ac_delim
13735 config_shell!$config_shell$ac_delim
13736 YACC!$YACC$ac_delim
13737 BISON!$BISON$ac_delim
13738 M4!$M4$ac_delim
13739 LEX!$LEX$ac_delim
13740 FLEX!$FLEX$ac_delim
13741 MAKEINFO!$MAKEINFO$ac_delim
13742 EXPECT!$EXPECT$ac_delim
13743 RUNTEST!$RUNTEST$ac_delim
13744 AR!$AR$ac_delim
13745 AS!$AS$ac_delim
13746 DLLTOOL!$DLLTOOL$ac_delim
13747 LD!$LD$ac_delim
13748 LIPO!$LIPO$ac_delim
13749 NM!$NM$ac_delim
13750 RANLIB!$RANLIB$ac_delim
13751 STRIP!$STRIP$ac_delim
13752 WINDRES!$WINDRES$ac_delim
13753 WINDMC!$WINDMC$ac_delim
13754 OBJCOPY!$OBJCOPY$ac_delim
13755 OBJDUMP!$OBJDUMP$ac_delim
13756 CC_FOR_TARGET!$CC_FOR_TARGET$ac_delim
13757 CXX_FOR_TARGET!$CXX_FOR_TARGET$ac_delim
13758 GCC_FOR_TARGET!$GCC_FOR_TARGET$ac_delim
13759 GCJ_FOR_TARGET!$GCJ_FOR_TARGET$ac_delim
13760 GFORTRAN_FOR_TARGET!$GFORTRAN_FOR_TARGET$ac_delim
13761 AR_FOR_TARGET!$AR_FOR_TARGET$ac_delim
13762 AS_FOR_TARGET!$AS_FOR_TARGET$ac_delim
13763 DLLTOOL_FOR_TARGET!$DLLTOOL_FOR_TARGET$ac_delim
13764 LD_FOR_TARGET!$LD_FOR_TARGET$ac_delim
13765 LIPO_FOR_TARGET!$LIPO_FOR_TARGET$ac_delim
13766 NM_FOR_TARGET!$NM_FOR_TARGET$ac_delim
13767 OBJDUMP_FOR_TARGET!$OBJDUMP_FOR_TARGET$ac_delim
13768 RANLIB_FOR_TARGET!$RANLIB_FOR_TARGET$ac_delim
13769 STRIP_FOR_TARGET!$STRIP_FOR_TARGET$ac_delim
13770 WINDRES_FOR_TARGET!$WINDRES_FOR_TARGET$ac_delim
13771 WINDMC_FOR_TARGET!$WINDMC_FOR_TARGET$ac_delim
13772 RAW_CXX_FOR_TARGET!$RAW_CXX_FOR_TARGET$ac_delim
13773 FLAGS_FOR_TARGET!$FLAGS_FOR_TARGET$ac_delim
13774 COMPILER_AS_FOR_TARGET!$COMPILER_AS_FOR_TARGET$ac_delim
13775 COMPILER_LD_FOR_TARGET!$COMPILER_LD_FOR_TARGET$ac_delim
13776 COMPILER_NM_FOR_TARGET!$COMPILER_NM_FOR_TARGET$ac_delim
13777 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
13778 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
13779 MAINT!$MAINT$ac_delim
13780 stage1_cflags!$stage1_cflags$ac_delim
13781 stage1_checking!$stage1_checking$ac_delim
13782 stage2_werror_flag!$stage2_werror_flag$ac_delim
13783 LIBOBJS!$LIBOBJS$ac_delim
13784 LTLIBOBJS!$LTLIBOBJS$ac_delim
13785 _ACEOF
13787 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
13788 break
13789 elif $ac_last_try; then
13790 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13791 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13792 { (exit 1); exit 1; }; }
13793 else
13794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13796 done
13798 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13799 if test -n "$ac_eof"; then
13800 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13801 ac_eof=`expr $ac_eof + 1`
13804 cat >>$CONFIG_STATUS <<_ACEOF
13805 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13807 _ACEOF
13808 sed '
13809 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13810 s/^/s,@/; s/!/@,|#_!!_#|/
13813 s/'"$ac_delim"'$/,g/; t
13814 s/$/\\/; p
13815 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13816 ' >>$CONFIG_STATUS <conf$$subs.sed
13817 rm -f conf$$subs.sed
13818 cat >>$CONFIG_STATUS <<_ACEOF
13819 :end
13820 s/|#_!!_#|//g
13821 CEOF$ac_eof
13822 _ACEOF
13825 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13826 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13827 # trailing colons and then remove the whole line if VPATH becomes empty
13828 # (actually we leave an empty line to preserve line numbers).
13829 if test "x$srcdir" = x.; then
13830 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13831 s/:*\$(srcdir):*/:/
13832 s/:*\${srcdir}:*/:/
13833 s/:*@srcdir@:*/:/
13834 s/^\([^=]*=[ ]*\):*/\1/
13835 s/:*$//
13836 s/^[^=]*=[ ]*$//
13840 cat >>$CONFIG_STATUS <<\_ACEOF
13841 fi # test -n "$CONFIG_FILES"
13844 for ac_tag in :F $CONFIG_FILES
13846 case $ac_tag in
13847 :[FHLC]) ac_mode=$ac_tag; continue;;
13848 esac
13849 case $ac_mode$ac_tag in
13850 :[FHL]*:*);;
13851 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13852 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13853 { (exit 1); exit 1; }; };;
13854 :[FH]-) ac_tag=-:-;;
13855 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13856 esac
13857 ac_save_IFS=$IFS
13858 IFS=:
13859 set x $ac_tag
13860 IFS=$ac_save_IFS
13861 shift
13862 ac_file=$1
13863 shift
13865 case $ac_mode in
13866 :L) ac_source=$1;;
13867 :[FH])
13868 ac_file_inputs=
13869 for ac_f
13871 case $ac_f in
13872 -) ac_f="$tmp/stdin";;
13873 *) # Look for the file first in the build tree, then in the source tree
13874 # (if the path is not absolute). The absolute path cannot be DOS-style,
13875 # because $ac_f cannot contain `:'.
13876 test -f "$ac_f" ||
13877 case $ac_f in
13878 [\\/$]*) false;;
13879 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13880 esac ||
13881 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13882 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13883 { (exit 1); exit 1; }; };;
13884 esac
13885 ac_file_inputs="$ac_file_inputs $ac_f"
13886 done
13888 # Let's still pretend it is `configure' which instantiates (i.e., don't
13889 # use $as_me), people would be surprised to read:
13890 # /* config.h. Generated by config.status. */
13891 configure_input="Generated from "`IFS=:
13892 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13893 if test x"$ac_file" != x-; then
13894 configure_input="$ac_file. $configure_input"
13895 { echo "$as_me:$LINENO: creating $ac_file" >&5
13896 echo "$as_me: creating $ac_file" >&6;}
13899 case $ac_tag in
13900 *:-:* | *:-) cat >"$tmp/stdin";;
13901 esac
13903 esac
13905 ac_dir=`$as_dirname -- "$ac_file" ||
13906 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13907 X"$ac_file" : 'X\(//\)[^/]' \| \
13908 X"$ac_file" : 'X\(//\)$' \| \
13909 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13910 echo X"$ac_file" |
13911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13912 s//\1/
13915 /^X\(\/\/\)[^/].*/{
13916 s//\1/
13919 /^X\(\/\/\)$/{
13920 s//\1/
13923 /^X\(\/\).*/{
13924 s//\1/
13927 s/.*/./; q'`
13928 { as_dir="$ac_dir"
13929 case $as_dir in #(
13930 -*) as_dir=./$as_dir;;
13931 esac
13932 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13933 as_dirs=
13934 while :; do
13935 case $as_dir in #(
13936 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13937 *) as_qdir=$as_dir;;
13938 esac
13939 as_dirs="'$as_qdir' $as_dirs"
13940 as_dir=`$as_dirname -- "$as_dir" ||
13941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13942 X"$as_dir" : 'X\(//\)[^/]' \| \
13943 X"$as_dir" : 'X\(//\)$' \| \
13944 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13945 echo X"$as_dir" |
13946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13947 s//\1/
13950 /^X\(\/\/\)[^/].*/{
13951 s//\1/
13954 /^X\(\/\/\)$/{
13955 s//\1/
13958 /^X\(\/\).*/{
13959 s//\1/
13962 s/.*/./; q'`
13963 test -d "$as_dir" && break
13964 done
13965 test -z "$as_dirs" || eval "mkdir $as_dirs"
13966 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13967 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13968 { (exit 1); exit 1; }; }; }
13969 ac_builddir=.
13971 case "$ac_dir" in
13972 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13974 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13975 # A ".." for each directory in $ac_dir_suffix.
13976 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13977 case $ac_top_builddir_sub in
13978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13980 esac ;;
13981 esac
13982 ac_abs_top_builddir=$ac_pwd
13983 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13984 # for backward compatibility:
13985 ac_top_builddir=$ac_top_build_prefix
13987 case $srcdir in
13988 .) # We are building in place.
13989 ac_srcdir=.
13990 ac_top_srcdir=$ac_top_builddir_sub
13991 ac_abs_top_srcdir=$ac_pwd ;;
13992 [\\/]* | ?:[\\/]* ) # Absolute name.
13993 ac_srcdir=$srcdir$ac_dir_suffix;
13994 ac_top_srcdir=$srcdir
13995 ac_abs_top_srcdir=$srcdir ;;
13996 *) # Relative name.
13997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13998 ac_top_srcdir=$ac_top_build_prefix$srcdir
13999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14000 esac
14001 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14004 case $ac_mode in
14007 # CONFIG_FILE
14010 case $INSTALL in
14011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14012 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14013 esac
14014 _ACEOF
14016 cat >>$CONFIG_STATUS <<\_ACEOF
14017 # If the template does not know about datarootdir, expand it.
14018 # FIXME: This hack should be removed a few years after 2.60.
14019 ac_datarootdir_hack=; ac_datarootdir_seen=
14021 case `sed -n '/datarootdir/ {
14025 /@datadir@/p
14026 /@docdir@/p
14027 /@infodir@/p
14028 /@localedir@/p
14029 /@mandir@/p
14030 ' $ac_file_inputs` in
14031 *datarootdir*) ac_datarootdir_seen=yes;;
14032 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14033 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14034 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14035 _ACEOF
14036 cat >>$CONFIG_STATUS <<_ACEOF
14037 ac_datarootdir_hack='
14038 s&@datadir@&$datadir&g
14039 s&@docdir@&$docdir&g
14040 s&@infodir@&$infodir&g
14041 s&@localedir@&$localedir&g
14042 s&@mandir@&$mandir&g
14043 s&\\\${datarootdir}&$datarootdir&g' ;;
14044 esac
14045 _ACEOF
14047 # Neutralize VPATH when `$srcdir' = `.'.
14048 # Shell code in configure.ac might set extrasub.
14049 # FIXME: do we really want to maintain this feature?
14050 cat >>$CONFIG_STATUS <<_ACEOF
14051 sed "$ac_vpsub
14052 $extrasub
14053 _ACEOF
14054 cat >>$CONFIG_STATUS <<\_ACEOF
14056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14057 s&@configure_input@&$configure_input&;t t
14058 s&@top_builddir@&$ac_top_builddir_sub&;t t
14059 s&@srcdir@&$ac_srcdir&;t t
14060 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14061 s&@top_srcdir@&$ac_top_srcdir&;t t
14062 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14063 s&@builddir@&$ac_builddir&;t t
14064 s&@abs_builddir@&$ac_abs_builddir&;t t
14065 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14066 s&@INSTALL@&$ac_INSTALL&;t t
14067 $ac_datarootdir_hack
14068 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14070 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14071 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14072 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14073 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14074 which seems to be undefined. Please make sure it is defined." >&5
14075 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14076 which seems to be undefined. Please make sure it is defined." >&2;}
14078 rm -f "$tmp/stdin"
14079 case $ac_file in
14080 -) cat "$tmp/out"; rm -f "$tmp/out";;
14081 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14082 esac
14087 esac
14089 done # for ac_tag
14092 { (exit 0); exit 0; }
14093 _ACEOF
14094 chmod +x $CONFIG_STATUS
14095 ac_clean_files=$ac_clean_files_save
14098 # configure is writing to config.log, and then calls config.status.
14099 # config.status does its own redirection, appending to config.log.
14100 # Unfortunately, on DOS this fails, as config.log is still kept open
14101 # by configure, so config.status won't be able to write to it; its
14102 # output is simply discarded. So we exec the FD to /dev/null,
14103 # effectively closing config.log, so it can be properly (re)opened and
14104 # appended to by config.status. When coming back to configure, we
14105 # need to make the FD available again.
14106 if test "$no_create" != yes; then
14107 ac_cs_success=:
14108 ac_config_status_args=
14109 test "$silent" = yes &&
14110 ac_config_status_args="$ac_config_status_args --quiet"
14111 exec 5>/dev/null
14112 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14113 exec 5>>config.log
14114 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14115 # would make configure fail if this is the last instruction.
14116 $ac_cs_success || { (exit 1); exit 1; }