2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="move-if-change"
586 enable_option_checking
=no
587 ac_subst_vars
='LTLIBOBJS
594 MAINTAINER_MODE_FALSE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
672 DEBUG_PREFIX_CFLAGS_FOR_TARGET
673 SYSROOT_CFLAGS_FOR_TARGET
675 extra_host_zlib_configure_flags
676 extra_host_libiberty_configure_flags
679 extra_linker_plugin_flags
680 extra_linker_plugin_configure_flags
687 extra_isl_gmp_configure_flags
688 extra_mpc_mpfr_configure_flags
689 extra_mpc_gmp_configure_flags
690 extra_mpfr_configure_flags
707 extra_liboffloadmic_configure_flags
734 TOPLEVEL_CONFIGURE_ARGUMENTS
762 program_transform_name
773 ac_subst_files
='serialization_dependencies
779 enable_option_checking
782 enable_as_accelerator_for
783 enable_offload_targets
786 enable_compressed_debug_sections
788 enable_libquadmath_support
807 with_static_standard_libraries
814 enable_isl_version_check
816 enable_linker_plugin_configure_flags
817 enable_linker_plugin_flags
819 enable_stage1_languages
822 with_target_bdw_gc_include
823 with_target_bdw_gc_lib
824 with_gcc_major_version_only
826 with_debug_prefix_map
829 enable_serial_configure
830 with_build_time_tools
831 enable_maintainer_mode
832 enable_stage1_checking
835 ac_precious_vars
='build_alias
882 # Initialize some variables set by options.
884 ac_init_version
=false
885 ac_unrecognized_opts
=
887 # The variables have the same names as the options, with
888 # dashes changed to underlines.
896 program_transform_name
=s
,x
,x
,
904 # Installation directory options.
905 # These are left unexpanded so users can "make install exec_prefix=/foo"
906 # and all the variables that are supposed to be based on exec_prefix
907 # by default will actually change.
908 # Use braces instead of parens because sh, perl, etc. also accept them.
909 # (The list follows the same order as the GNU Coding Standards.)
910 bindir
='${exec_prefix}/bin'
911 sbindir
='${exec_prefix}/sbin'
912 libexecdir
='${exec_prefix}/libexec'
913 datarootdir
='${prefix}/share'
914 datadir
='${datarootdir}'
915 sysconfdir
='${prefix}/etc'
916 sharedstatedir
='${prefix}/com'
917 localstatedir
='${prefix}/var'
918 includedir
='${prefix}/include'
919 oldincludedir
='/usr/include'
920 docdir
='${datarootdir}/doc/${PACKAGE}'
921 infodir
='${datarootdir}/info'
926 libdir
='${exec_prefix}/lib'
927 localedir
='${datarootdir}/locale'
928 mandir
='${datarootdir}/man'
934 # If the previous option needs an argument, assign it.
935 if test -n "$ac_prev"; then
936 eval $ac_prev=\
$ac_option
942 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 # Accept the important Cygnus configure options, so we can diagnose typos.
949 case $ac_dashdash$ac_option in
953 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
955 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
958 -build |
--build |
--buil |
--bui |
--bu)
959 ac_prev
=build_alias
;;
960 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
961 build_alias
=$ac_optarg ;;
963 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
964 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
965 ac_prev
=cache_file
;;
966 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
967 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
968 cache_file
=$ac_optarg ;;
971 cache_file
=config.cache
;;
973 -datadir |
--datadir |
--datadi |
--datad)
975 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
976 datadir
=$ac_optarg ;;
978 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
979 |
--dataroo |
--dataro |
--datar)
980 ac_prev
=datarootdir
;;
981 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
982 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
983 datarootdir
=$ac_optarg ;;
985 -disable-* |
--disable-*)
986 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
989 as_fn_error $?
"invalid feature name: $ac_useropt"
990 ac_useropt_orig
=$ac_useropt
991 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
996 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997 ac_unrecognized_sep
=', ';;
999 eval enable_
$ac_useropt=no
;;
1001 -docdir |
--docdir |
--docdi |
--doc |
--do)
1003 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1004 docdir
=$ac_optarg ;;
1006 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1008 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1009 dvidir
=$ac_optarg ;;
1011 -enable-* |
--enable-*)
1012 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1015 as_fn_error $?
"invalid feature name: $ac_useropt"
1016 ac_useropt_orig
=$ac_useropt
1017 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_
$ac_useropt"
1022 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023 ac_unrecognized_sep
=', ';;
1025 eval enable_
$ac_useropt=\
$ac_optarg ;;
1027 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1028 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1029 |
--exec |
--exe |
--ex)
1030 ac_prev
=exec_prefix
;;
1031 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1032 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1033 |
--exec=* |
--exe=* |
--ex=*)
1034 exec_prefix
=$ac_optarg ;;
1036 -gas |
--gas |
--ga |
--g)
1037 # Obsolete; use --with-gas.
1040 -help |
--help |
--hel |
--he |
-h)
1041 ac_init_help
=long
;;
1042 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1043 ac_init_help
=recursive
;;
1044 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1045 ac_init_help
=short
;;
1047 -host |
--host |
--hos |
--ho)
1048 ac_prev
=host_alias
;;
1049 -host=* |
--host=* |
--hos=* |
--ho=*)
1050 host_alias
=$ac_optarg ;;
1052 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1054 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1056 htmldir
=$ac_optarg ;;
1058 -includedir |
--includedir |
--includedi |
--included |
--include \
1059 |
--includ |
--inclu |
--incl |
--inc)
1060 ac_prev
=includedir
;;
1061 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1062 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1063 includedir
=$ac_optarg ;;
1065 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1067 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1068 infodir
=$ac_optarg ;;
1070 -libdir |
--libdir |
--libdi |
--libd)
1072 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1073 libdir
=$ac_optarg ;;
1075 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1076 |
--libexe |
--libex |
--libe)
1077 ac_prev
=libexecdir
;;
1078 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1079 |
--libexe=* |
--libex=* |
--libe=*)
1080 libexecdir
=$ac_optarg ;;
1082 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1083 ac_prev
=localedir
;;
1084 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1085 localedir
=$ac_optarg ;;
1087 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1088 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1089 ac_prev
=localstatedir
;;
1090 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1091 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1092 localstatedir
=$ac_optarg ;;
1094 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1096 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1097 mandir
=$ac_optarg ;;
1099 -nfp |
--nfp |
--nf)
1100 # Obsolete; use --without-fp.
1103 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1104 |
--no-cr |
--no-c |
-n)
1107 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1108 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1111 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1112 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1113 |
--oldin |
--oldi |
--old |
--ol |
--o)
1114 ac_prev
=oldincludedir
;;
1115 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1116 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1117 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1118 oldincludedir
=$ac_optarg ;;
1120 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1122 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1123 prefix
=$ac_optarg ;;
1125 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1126 |
--program-pre |
--program-pr |
--program-p)
1127 ac_prev
=program_prefix
;;
1128 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1129 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1130 program_prefix
=$ac_optarg ;;
1132 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1133 |
--program-suf |
--program-su |
--program-s)
1134 ac_prev
=program_suffix
;;
1135 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1136 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1137 program_suffix
=$ac_optarg ;;
1139 -program-transform-name |
--program-transform-name \
1140 |
--program-transform-nam |
--program-transform-na \
1141 |
--program-transform-n |
--program-transform- \
1142 |
--program-transform |
--program-transfor \
1143 |
--program-transfo |
--program-transf \
1144 |
--program-trans |
--program-tran \
1145 |
--progr-tra |
--program-tr |
--program-t)
1146 ac_prev
=program_transform_name
;;
1147 -program-transform-name=* |
--program-transform-name=* \
1148 |
--program-transform-nam=* |
--program-transform-na=* \
1149 |
--program-transform-n=* |
--program-transform-=* \
1150 |
--program-transform=* |
--program-transfor=* \
1151 |
--program-transfo=* |
--program-transf=* \
1152 |
--program-trans=* |
--program-tran=* \
1153 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1154 program_transform_name
=$ac_optarg ;;
1156 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1158 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1159 pdfdir
=$ac_optarg ;;
1161 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1163 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1166 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1167 |
-silent |
--silent |
--silen |
--sile |
--sil)
1170 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1172 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1174 sbindir
=$ac_optarg ;;
1176 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1177 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1178 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1180 ac_prev
=sharedstatedir
;;
1181 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1182 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1183 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1185 sharedstatedir
=$ac_optarg ;;
1187 -site |
--site |
--sit)
1189 -site=* |
--site=* |
--sit=*)
1192 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1194 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1195 srcdir
=$ac_optarg ;;
1197 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1198 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1199 ac_prev
=sysconfdir
;;
1200 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1201 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1202 sysconfdir
=$ac_optarg ;;
1204 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1205 ac_prev
=target_alias
;;
1206 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1207 target_alias
=$ac_optarg ;;
1209 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1212 -version |
--version |
--versio |
--versi |
--vers |
-V)
1213 ac_init_version
=: ;;
1216 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1219 as_fn_error $?
"invalid package name: $ac_useropt"
1220 ac_useropt_orig
=$ac_useropt
1221 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1226 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep
=', ';;
1229 eval with_
$ac_useropt=\
$ac_optarg ;;
1231 -without-* |
--without-*)
1232 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1235 as_fn_error $?
"invalid package name: $ac_useropt"
1236 ac_useropt_orig
=$ac_useropt
1237 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1242 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243 ac_unrecognized_sep
=', ';;
1245 eval with_
$ac_useropt=no
;;
1248 # Obsolete; use --with-x.
1251 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1252 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1253 ac_prev
=x_includes
;;
1254 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1255 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1256 x_includes
=$ac_optarg ;;
1258 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1259 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1260 ac_prev
=x_libraries
;;
1261 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1262 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1263 x_libraries
=$ac_optarg ;;
1265 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1266 Try \`$0 --help' for more information"
1270 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
1272 case $ac_envvar in #(
1273 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1274 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1276 eval $ac_envvar=\
$ac_optarg
1277 export $ac_envvar ;;
1280 # FIXME: should be removed in autoconf 3.0.
1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1290 if test -n "$ac_prev"; then
1291 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1292 as_fn_error $?
"missing argument to $ac_option"
1295 if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1298 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303 # Check all directory arguments for consistency.
1304 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
1309 eval ac_val
=\$
$ac_var
1310 # Remove trailing slashes.
1313 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\
$ac_val;;
1316 # Be sure to have absolute directory names.
1318 [\\/$
]* | ?
:[\\/]* ) continue;;
1319 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1321 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1324 # There might be people who depend on the old broken behavior: `$host'
1325 # used to hold the argument of --host etc.
1326 # FIXME: To remove some day.
1329 target
=$target_alias
1331 # FIXME: To remove some day.
1332 if test "x$host_alias" != x
; then
1333 if test "x$build_alias" = x
; then
1334 cross_compiling
=maybe
1335 elif test "x$build_alias" != "x$host_alias"; then
1341 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1343 test "$silent" = yes && exec 6>/dev
/null
1346 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di
=`ls -di .` &&
1348 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1349 as_fn_error $?
"working directory cannot be determined"
1350 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351 as_fn_error $?
"pwd does not report name of working directory"
1354 # Find the source files, if location was not specified.
1355 if test -z "$srcdir"; then
1356 ac_srcdir_defaulted
=yes
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir
=`$as_dirname -- "$as_myself" ||
1359 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$as_myself" : 'X\(//\)[^/]' \| \
1361 X"$as_myself" : 'X\(//\)$' \| \
1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363 $as_echo X"$as_myself" |
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1386 ac_srcdir_defaulted
=no
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1390 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1392 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1396 # When building in place, set srcdir=.
1397 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400 # Remove unnecessary trailing slashes from srcdir.
1401 # Double slashes in file names in object file debugging info
1402 # mess up M-x gdb in Emacs.
1404 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 as_fn_error $?
"path to source, $srcdir, contains spaces"
1411 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1413 for ac_var
in $ac_precious_vars; do
1414 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1416 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1421 # Report the --help message.
1423 if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1427 \`configure' configures this package to adapt to many kinds of systems.
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE. See below for descriptions of some of the useful variables.
1434 Defaults for the options are specified in brackets.
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking ...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1447 Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1458 For better control, use the options below.
1460 Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1485 --program-prefix=PREFIX prepend PREFIX to installed program names
1486 --program-suffix=SUFFIX append SUFFIX to installed program names
1487 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1490 --build=BUILD configure
for building on BUILD
[guessed
]
1491 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1492 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1496 if test -n "$ac_init_help"; then
1501 --disable-option-checking ignore unrecognized
--enable/--with options
1502 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1503 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1504 --enable-as-accelerator-for=ARG
1505 build as offload target compiler. Specify offload
1507 --enable-offload-targets=LIST
1508 enable offloading to devices from comma-separated
1509 LIST of TARGET
[=DIR
]. Use optional path to
find
1510 offload target compiler during the build
1511 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1512 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1513 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1514 Enable compressed debug sections
for gas
, gold or ld
1516 --disable-libquadmath do not build libquadmath directory
1517 --disable-libquadmath-support
1518 disable libquadmath support
for Fortran
1519 --enable-libada build libada directory
1520 --enable-libssp build libssp directory
1521 --disable-libstdcxx do not build libstdc
++-v3 directory
1522 --enable-liboffloadmic=ARG
1523 build liboffloadmic
[ARG
={no
,host,target
}]
1524 --enable-bootstrap enable bootstrapping
[yes if native build
]
1525 --disable-isl-version-check
1526 disable check
for isl version
1527 --enable-lto enable link
time optimization support
1528 --enable-linker-plugin-configure-flags=FLAGS
1529 additional flags
for configuring linker plugins
1531 --enable-linker-plugin-flags=FLAGS
1532 additional flags
for configuring and building linker
1534 --enable-host-shared build
host code as shared libraries
1535 --enable-stage1-languages[=all
]
1536 choose additional languages to build during stage1.
1537 Mostly useful
for compiler development
1538 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1540 --enable-vtable-verify Enable vtable verification feature
1541 --enable-serial-[{host,target,build}-]configure
1542 force sequential configuration of sub-packages for
1543 the host, target or build machine, or all
1545 --enable-maintainer-mode
1546 enable make rules and dependencies not useful (and
1547 sometimes confusing) to the casual installer
1548 --enable-stage1-checking[=all]
1549 choose additional checking for stage1 of the
1551 --enable-werror enable -Werror in bootstrap stage2 and later
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1556 --with-build-libsubdir=DIR Directory where to find libraries for build system
1557 --with-system-zlib use installed libz
1558 --with-debuginfod Enable debuginfo lookups with debuginfod
1560 --with-mpc=PATH specify prefix directory for installed MPC package.
1561 Equivalent to --with-mpc-include=PATH/include plus
1562 --with-mpc-lib=PATH/lib
1563 --with-mpc-include=PATH specify directory for installed MPC include files
1564 --with-mpc-lib=PATH specify directory for the installed MPC library
1565 --with-mpfr-dir=PATH this option has been REMOVED
1566 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1567 Equivalent to --with-mpfr-include=PATH/include plus
1568 --with-mpfr-lib=PATH/lib
1569 --with-mpfr-include=PATH
1570 specify directory for installed MPFR include files
1571 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1572 --with-gmp-dir=PATH this option has been REMOVED
1573 --with-gmp=PATH specify prefix directory for the installed GMP
1574 package. Equivalent to
1575 --with-gmp-include=PATH/include plus
1576 --with-gmp-lib=PATH/lib
1577 --with-gmp-include=PATH specify directory for installed GMP include files
1578 --with-gmp-lib=PATH specify directory for the installed GMP library
1579 --with-stage1-libs=LIBS libraries for stage1
1580 --with-static-standard-libraries
1581 use -static-libstdc++ and -static-libgcc
1583 --with-stage1-ldflags=FLAGS
1584 linker flags for stage1
1585 --with-boot-libs=LIBS libraries for stage2 and later
1586 --with-boot-ldflags=FLAGS
1587 linker flags for stage2 and later
1588 --with-isl=PATH Specify prefix directory for the installed isl
1589 package. Equivalent to
1590 --with-isl-include=PATH/include plus
1591 --with-isl-lib=PATH/lib
1592 --with-isl-include=PATH Specify directory for installed isl include files
1593 --with-isl-lib=PATH Specify the directory for the installed isl library
1594 --with-target-bdw-gc=PATHLIST
1595 specify prefix directory for installed bdw-gc
1596 package. Equivalent to
1597 --with-target-bdw-gc-include=PATH/include plus
1598 --with-target-bdw-gc-lib=PATH/lib
1599 --with-target-bdw-gc-include=PATHLIST
1600 specify directories for installed bdw-gc include
1602 --with-target-bdw-gc-lib=PATHLIST
1603 specify directories for installed bdw-gc library
1604 --with-gcc-major-version-only
1605 use only GCC major number in filesystem paths
1606 --with-build-sysroot=SYSROOT
1607 use sysroot as the system root during the build
1608 --with-debug-prefix-map='A
=B C
=D ...
'
1609 map A to B, C to D ... in debug information
1610 --with-build-config='NAME NAME2...
'
1611 use config/NAME.mk build configuration
1612 --with-build-time-tools=PATH
1613 use given path to find target tools during the build
1615 Some influential environment variables:
1616 CC C compiler command
1617 CFLAGS C compiler flags
1618 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1619 nonstandard directory <lib dir>
1620 LIBS libraries to pass to the linker, e.g. -l<library>
1621 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1622 you have headers in a nonstandard directory <include dir>
1623 CXX C++ compiler command
1624 CXXFLAGS C++ compiler flags
1626 additional configure arguments for build directories
1628 additional configure arguments for host directories
1630 additional configure arguments for target directories
1633 DLLTOOL DLLTOOL for the host
1635 LIPO LIPO for the host
1637 RANLIB RANLIB for the host
1638 STRIP STRIP for the host
1639 WINDRES WINDRES for the host
1640 WINDMC WINDMC for the host
1641 OBJCOPY OBJCOPY for the host
1642 OBJDUMP OBJDUMP for the host
1643 READELF READELF for the host
1651 GFORTRAN for the target
1659 DLLTOOL for the target
1667 OBJCOPY for the target
1669 OBJDUMP for the target
1671 RANLIB for the target
1673 READELF for the target
1675 STRIP for the target
1677 WINDRES for the target
1679 WINDMC for the target
1681 Use these variables to override the choices made by `configure' or to
help
1682 it to
find libraries and programs with nonstandard names
/locations.
1684 Report bugs to the package provider.
1689 if test "$ac_init_help" = "recursive"; then
1690 # If there are subdirs, report their specific --help.
1691 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1692 test -d "$ac_dir" ||
1693 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1698 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1700 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1701 # A ".." for each directory in $ac_dir_suffix.
1702 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1703 case $ac_top_builddir_sub in
1704 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1705 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1708 ac_abs_top_builddir
=$ac_pwd
1709 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1710 # for backward compatibility:
1711 ac_top_builddir
=$ac_top_build_prefix
1714 .
) # We are building in place.
1716 ac_top_srcdir
=$ac_top_builddir_sub
1717 ac_abs_top_srcdir
=$ac_pwd ;;
1718 [\\/]* | ?
:[\\/]* ) # Absolute name.
1719 ac_srcdir
=$srcdir$ac_dir_suffix;
1720 ac_top_srcdir
=$srcdir
1721 ac_abs_top_srcdir
=$srcdir ;;
1723 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1724 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1725 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1727 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1729 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1730 # Check for guested configure.
1731 if test -f "$ac_srcdir/configure.gnu"; then
1733 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1734 elif test -f "$ac_srcdir/configure"; then
1736 $SHELL "$ac_srcdir/configure" --help=recursive
1738 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1744 test -n "$ac_init_help" && exit $ac_status
1745 if $ac_init_version; then
1748 generated by GNU Autoconf
2.69
1750 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1751 This configure
script is free software
; the Free Software Foundation
1752 gives unlimited permission to copy
, distribute and modify it.
1757 ## ------------------------ ##
1758 ## Autoconf initialization. ##
1759 ## ------------------------ ##
1761 # ac_fn_c_try_compile LINENO
1762 # --------------------------
1763 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_c_try_compile
()
1766 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1767 rm -f conftest.
$ac_objext
1768 if { { ac_try
="$ac_compile"
1770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_compile") 2>conftest.err
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest.$ac_objext; then :
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1797 } # ac_fn_c_try_compile
1799 # ac_fn_cxx_try_compile LINENO
1800 # ----------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_cxx_try_compile ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext
1806 if { { ac_try="$ac_compile"
1808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1809 *) ac_try_echo
=$ac_try;;
1811 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1815 if test -s conftest.err
; then
1816 grep -v '^ *+' conftest.err
>conftest.er1
1817 cat conftest.er1
>&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_cxx_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.
$ac_objext; then :
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.
$ac_ext >&5
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status
$ac_retval
1835 } # ac_fn_cxx_try_compile
1837 # ac_fn_cxx_try_link LINENO
1838 # -------------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_cxx_try_link
()
1842 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1843 rm -f conftest.
$ac_objext conftest
$ac_exeext
1844 if { { ac_try
="$ac_link"
1846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>conftest.err
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest$ac_exeext && {
1863 test "$cross_compiling" = yes ||
1864 test -x conftest$ac_exeext
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1873 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1874 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1875 # interfere with the next link command; also delete a directory that is
1876 # left behind by Apple's compiler. We do this before executing the actions.
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1881 } # ac_fn_cxx_try_link
1883 # ac_fn_c_try_link LINENO
1884 # -----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext conftest$ac_exeext
1890 if { { ac_try="$ac_link"
1892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1893 *) ac_try_echo
=$ac_try;;
1895 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>conftest.err
1899 if test -s conftest.err
; then
1900 grep -v '^ *+' conftest.err
>conftest.er1
1901 cat conftest.er1
>&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest
$ac_exeext && {
1909 test "$cross_compiling" = yes ||
1910 test -x conftest
$ac_exeext
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.
$ac_ext >&5
1919 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921 # interfere with the next link command; also delete a directory that is
1922 # left behind by Apple's compiler. We do this before executing the actions.
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status
$ac_retval
1927 } # ac_fn_c_try_link
1929 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1930 # ---------------------------------------------
1931 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1933 ac_fn_c_check_decl
()
1935 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1936 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1937 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1939 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1940 if eval \
${$3+:} false
; then :
1941 $as_echo_n "(cached) " >&6
1943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1949 #ifndef $as_decl_name
1951 (void) $as_decl_use;
1953 (void) $as_decl_name;
1961 if ac_fn_c_try_compile
"$LINENO"; then :
1966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 } # ac_fn_c_check_decl
1974 cat >config.log
<<_ACEOF
1975 This file contains any messages produced by compilers while
1976 running configure, to aid debugging if configure makes a mistake.
1978 It was created by $as_me, which was
1979 generated by GNU Autoconf 2.69. Invocation command line was
1991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1998 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2000 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2001 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2003 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2004 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2005 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2006 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2014 test -z "$as_dir" && as_dir
=.
2015 $as_echo "PATH: $as_dir"
2031 # Keep a trace of the command line.
2032 # Strip out --no-create and --no-recursion so they do not pile up.
2033 # Strip out --silent because we don't want to record it for future runs.
2034 # Also quote any args containing shell meta-characters.
2035 # Make two passes to allow for proper duplicate-argument suppression.
2039 ac_must_keep_next
=false
2045 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2046 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2047 |
-silent |
--silent |
--silen |
--sile |
--sil)
2050 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2053 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2055 as_fn_append ac_configure_args1
" '$ac_arg'"
2056 if test $ac_must_keep_next = true
; then
2057 ac_must_keep_next
=false
# Got value, back to normal.
2060 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2061 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2062 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2063 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2064 case "$ac_configure_args0 " in
2065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2068 -* ) ac_must_keep_next
=true
;;
2071 as_fn_append ac_configure_args
" '$ac_arg'"
2076 { ac_configure_args0
=; unset ac_configure_args0
;}
2077 { ac_configure_args1
=; unset ac_configure_args1
;}
2079 # When interrupted or exit'd, cleanup temporary files, and complete
2080 # config.log. We remove comments because anyway the quotes in there
2081 # would cause problems or look ugly.
2082 # WARNING: Use '\'' to represent an apostrophe within the trap.
2083 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2084 trap 'exit_status=$?
2085 # Save into config.log some information that might help in debugging.
2089 $as_echo "## ---------------- ##
2090 ## Cache variables. ##
2091 ## ---------------- ##"
2093 # The following way of writing the cache mishandles newlines in values,
2095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2096 eval ac_val=\$$ac_var
2100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2104 _ | IFS | as_nl) ;; #(
2105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2106 *) { eval $ac_var=; unset $ac_var;} ;;
2111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2112 *${as_nl}ac_space=\ *)
2114 "s/'\''/'\''\\\\'\'''\''/g;
2115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2125 $as_echo "## ----------------- ##
2126 ## Output variables. ##
2127 ## ----------------- ##"
2129 for ac_var in $ac_subst_vars
2131 eval ac_val=\$$ac_var
2133 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2135 $as_echo "$ac_var='\''$ac_val'\''"
2139 if test -n "$ac_subst_files"; then
2140 $as_echo "## ------------------- ##
2141 ## File substitutions. ##
2142 ## ------------------- ##"
2144 for ac_var
in $ac_subst_files
2146 eval ac_val
=\$
$ac_var
2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2150 $as_echo "$ac_var='\''$ac_val'\''"
2155 if test -s confdefs.h; then
2156 $as_echo "## ----------- ##
2163 test "$ac_signal" != 0 &&
2164 $as_echo "$as_me: caught signal $ac_signal"
2165 $as_echo "$as_me: exit $exit_status"
2167 rm -f core *.core core.conftest.* &&
2168 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2171 for ac_signal
in 1 2 13 15; do
2172 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2177 rm -f -r conftest
* confdefs.h
2179 $as_echo "/* confdefs.h */" > confdefs.h
2181 # Predefined preprocessor variables.
2183 cat >>confdefs.h
<<_ACEOF
2184 #define PACKAGE_NAME "$PACKAGE_NAME"
2187 cat >>confdefs.h
<<_ACEOF
2188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2191 cat >>confdefs.h
<<_ACEOF
2192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2195 cat >>confdefs.h
<<_ACEOF
2196 #define PACKAGE_STRING "$PACKAGE_STRING"
2199 cat >>confdefs.h
<<_ACEOF
2200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2203 cat >>confdefs.h
<<_ACEOF
2204 #define PACKAGE_URL "$PACKAGE_URL"
2208 # Let the site file select an alternate cache file if it wants to.
2209 # Prefer an explicitly selected file to automatically selected ones.
2212 if test -n "$CONFIG_SITE"; then
2213 # We do not want a PATH search for config.site.
2214 case $CONFIG_SITE in #((
2215 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2216 */*) ac_site_file1
=$CONFIG_SITE;;
2217 *) ac_site_file1
=.
/$CONFIG_SITE;;
2219 elif test "x$prefix" != xNONE
; then
2220 ac_site_file1
=$prefix/share
/config.site
2221 ac_site_file2
=$prefix/etc
/config.site
2223 ac_site_file1
=$ac_default_prefix/share
/config.site
2224 ac_site_file2
=$ac_default_prefix/etc
/config.site
2226 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2228 test "x$ac_site_file" = xNONE
&& continue
2229 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2231 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2232 sed 's/^/| /' "$ac_site_file" >&5
2234 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236 as_fn_error $?
"failed to load site script $ac_site_file
2237 See \`config.log' for more details" "$LINENO" 5; }
2241 if test -r "$cache_file"; then
2242 # Some versions of bash will fail to source /dev/null (special files
2243 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2244 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2246 $as_echo "$as_me: loading cache $cache_file" >&6;}
2248 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2249 *) .
"./$cache_file";;
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2254 $as_echo "$as_me: creating cache $cache_file" >&6;}
2258 # Check that the precious variables saved in the cache have kept the same
2260 ac_cache_corrupted
=false
2261 for ac_var
in $ac_precious_vars; do
2262 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2263 eval ac_new_set
=\
$ac_env_${ac_var}_set
2264 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2265 eval ac_new_val
=\
$ac_env_${ac_var}_value
2266 case $ac_old_set,$ac_new_set in
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2269 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2270 ac_cache_corrupted
=: ;;
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2273 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2274 ac_cache_corrupted
=: ;;
2277 if test "x$ac_old_val" != "x$ac_new_val"; then
2278 # differences in whitespace do not lead to failure.
2279 ac_old_val_w
=`echo x $ac_old_val`
2280 ac_new_val_w
=`echo x $ac_new_val`
2281 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2283 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2284 ac_cache_corrupted
=:
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2287 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2288 eval $ac_var=\
$ac_old_val
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2291 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2293 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2296 # Pass precious variables to config.status.
2297 if test "$ac_new_set" = set; then
2299 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2300 *) ac_arg
=$ac_var=$ac_new_val ;;
2302 case " $ac_configure_args " in
2303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2304 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2308 if $ac_cache_corrupted; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2312 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2313 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2315 ## -------------------- ##
2316 ## Main body of script. ##
2317 ## -------------------- ##
2320 ac_cpp
='$CPP $CPPFLAGS'
2321 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2333 # if PWD already has a value, it is probably wrong.
2334 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2336 # Export original configure arguments for use by sub-configures.
2337 # Quote arguments with shell meta charatcers.
2338 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2339 set -- "$progname" "$@"
2343 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2344 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2345 # if the argument is of the form -foo=baz, quote the baz part only
2346 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2349 # Add the quoted argument to the list.
2350 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2352 if test "$silent" = yes; then
2353 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2355 # Remove the initial space we just introduced and, as these will be
2356 # expanded by make, quote '$'.
2357 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2360 # Find the build, host, and target systems.
2362 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2363 if test -f "$ac_dir/install-sh"; then
2365 ac_install_sh
="$ac_aux_dir/install-sh -c"
2367 elif test -f "$ac_dir/install.sh"; then
2369 ac_install_sh
="$ac_aux_dir/install.sh -c"
2371 elif test -f "$ac_dir/shtool"; then
2373 ac_install_sh
="$ac_aux_dir/shtool install -c"
2377 if test -z "$ac_aux_dir"; then
2378 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2381 # These three variables are undocumented and unsupported,
2382 # and are intended to be withdrawn in a future Autoconf release.
2383 # They can cause serious problems if a builder's source tree is in a directory
2384 # whose full name contains unusual characters.
2385 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2386 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2387 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2390 # Make sure we can run config.sub.
2391 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2392 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2395 $as_echo_n "checking build system type... " >&6; }
2396 if ${ac_cv_build+:} false
; then :
2397 $as_echo_n "(cached) " >&6
2399 ac_build_alias
=$build_alias
2400 test "x$ac_build_alias" = x
&&
2401 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2402 test "x$ac_build_alias" = x
&&
2403 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2404 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2405 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2409 $as_echo "$ac_cv_build" >&6; }
2410 case $ac_cv_build in
2412 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2415 ac_save_IFS
=$IFS; IFS
='-'
2421 # Remember, the first character of IFS is used to create $*,
2422 # except with old shells:
2425 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2428 case ${build_alias} in
2429 "") build_noncanonical
=${build} ;;
2430 *) build_noncanonical
=${build_alias} ;;
2435 case ${host_alias} in
2436 "") host_noncanonical
=${build_noncanonical} ;;
2437 *) host_noncanonical
=${host_alias} ;;
2442 case ${target_alias} in
2443 "") target_noncanonical
=${host_noncanonical} ;;
2444 *) target_noncanonical
=${target_alias} ;;
2450 test "$host_noncanonical" = "$target_noncanonical" &&
2451 test "$program_prefix$program_suffix$program_transform_name" = \
2453 program_transform_name
=s
,y
,y
,
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2456 $as_echo_n "checking host system type... " >&6; }
2457 if ${ac_cv_host+:} false
; then :
2458 $as_echo_n "(cached) " >&6
2460 if test "x$host_alias" = x
; then
2461 ac_cv_host
=$ac_cv_build
2463 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2464 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2469 $as_echo "$ac_cv_host" >&6; }
2472 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2475 ac_save_IFS
=$IFS; IFS
='-'
2481 # Remember, the first character of IFS is used to create $*,
2482 # except with old shells:
2485 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2489 $as_echo_n "checking target system type... " >&6; }
2490 if ${ac_cv_target+:} false
; then :
2491 $as_echo_n "(cached) " >&6
2493 if test "x$target_alias" = x
; then
2494 ac_cv_target
=$ac_cv_host
2496 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2497 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2502 $as_echo "$ac_cv_target" >&6; }
2503 case $ac_cv_target in
2505 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2507 target
=$ac_cv_target
2508 ac_save_IFS
=$IFS; IFS
='-'
2514 # Remember, the first character of IFS is used to create $*,
2515 # except with old shells:
2518 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2521 # The aliases save the names the user supplied, while $host etc.
2522 # will get canonicalized.
2523 test -n "$target_alias" &&
2524 test "$program_prefix$program_suffix$program_transform_name" = \
2526 program_prefix
=${target_alias}-
2528 test "$program_prefix" != NONE
&&
2529 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2530 # Use a double $ so make ignores it.
2531 test "$program_suffix" != NONE
&&
2532 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2533 # Double any \ or $.
2534 # By default was `s,x,x', remove it if useless.
2535 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2536 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2540 # Get 'install' or 'install-sh' and its variants.
2541 # Find a good install program. We prefer a C program (faster),
2542 # so one script is as good as another. But avoid the broken or
2543 # incompatible versions:
2544 # SysV /etc/install, /usr/sbin/install
2545 # SunOS /usr/etc/install
2546 # IRIX /sbin/install
2548 # AmigaOS /C/install, which installs bootblocks on floppy discs
2549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2552 # OS/2's system install, which has a completely different semantic
2553 # ./install, which can be erroneously created by make from ./install.sh.
2554 # Reject install programs that cannot install multiple files.
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2556 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2557 if test -z "$INSTALL"; then
2558 if ${ac_cv_path_install+:} false
; then :
2559 $as_echo_n "(cached) " >&6
2561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir
=.
2566 # Account for people who put trailing slashes in PATH elements.
2567 case $as_dir/ in #((
2568 .
/ | .
// |
/[cC
]/* | \
2569 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2570 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2573 # OSF1 and SCO ODT 3.0 have their own names for install.
2574 # Don't use installbsd from OSF since it installs stuff as root
2576 for ac_prog
in ginstall scoinst
install; do
2577 for ac_exec_ext
in '' $ac_executable_extensions; do
2578 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2579 if test $ac_prog = install &&
2580 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2581 # AIX install. It has an incompatible calling convention.
2583 elif test $ac_prog = install &&
2584 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2585 # program-specific install script used by HP pwplus--don't use.
2588 rm -rf conftest.one conftest.two conftest.dir
2589 echo one
> conftest.one
2590 echo two
> conftest.two
2592 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2593 test -s conftest.one
&& test -s conftest.two
&&
2594 test -s conftest.dir
/conftest.one
&&
2595 test -s conftest.dir
/conftest.two
2597 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2610 rm -rf conftest.one conftest.two conftest.dir
2613 if test "${ac_cv_path_install+set}" = set; then
2614 INSTALL
=$ac_cv_path_install
2616 # As a last resort, use the slow shell script. Don't cache a
2617 # value for INSTALL within a source directory, because that will
2618 # break other packages using the cache if that directory is
2619 # removed, or if the value is a relative name.
2620 INSTALL
=$ac_install_sh
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2624 $as_echo "$INSTALL" >&6; }
2626 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2627 # It thinks the first close brace ends the variable substitution.
2628 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2630 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2632 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2635 $as_echo_n "checking whether ln works... " >&6; }
2636 if ${acx_cv_prog_LN+:} false
; then :
2637 $as_echo_n "(cached) " >&6
2639 rm -f conftestdata_t
2640 echo >conftestdata_f
2641 if ln conftestdata_f conftestdata_t
2>/dev
/null
2647 rm -f conftestdata_f conftestdata_t
2650 if test $acx_cv_prog_LN = no
; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2653 $as_echo "no, using $LN" >&6; }
2655 LN
="$acx_cv_prog_LN"
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657 $as_echo "yes" >&6; }
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2661 $as_echo_n "checking whether ln -s works... " >&6; }
2663 if test "$LN_S" = "ln -s"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665 $as_echo "yes" >&6; }
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2668 $as_echo "no, using $LN_S" >&6; }
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2672 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2673 if ${ac_cv_path_SED+:} false
; then :
2674 $as_echo_n "(cached) " >&6
2676 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2677 for ac_i
in 1 2 3 4 5 6 7; do
2678 ac_script
="$ac_script$as_nl$ac_script"
2680 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2681 { ac_script
=; unset ac_script
;}
2682 if test -z "$SED"; then
2683 ac_path_SED_found
=false
2684 # Loop through the user's path and test for each of PROGNAME-LIST
2685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir
=.
2690 for ac_prog
in sed gsed
; do
2691 for ac_exec_ext
in '' $ac_executable_extensions; do
2692 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2693 as_fn_executable_p
"$ac_path_SED" ||
continue
2694 # Check for GNU ac_path_SED and select it if it is found.
2695 # Check for GNU $ac_path_SED
2696 case `"$ac_path_SED" --version 2>&1` in
2698 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2701 $as_echo_n 0123456789 >"conftest.in"
2704 cat "conftest.in" "conftest.in" >"conftest.tmp"
2705 mv "conftest.tmp" "conftest.in"
2706 cp "conftest.in" "conftest.nl"
2707 $as_echo '' >> "conftest.nl"
2708 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2709 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2710 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2711 if test $ac_count -gt ${ac_path_SED_max-0}; then
2712 # Best one so far, save it but keep looking for a better one
2713 ac_cv_path_SED
="$ac_path_SED"
2714 ac_path_SED_max
=$ac_count
2716 # 10*(2^10) chars as input seems more than enough
2717 test $ac_count -gt 10 && break
2719 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2722 $ac_path_SED_found && break 3
2727 if test -z "$ac_cv_path_SED"; then
2728 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2736 $as_echo "$ac_cv_path_SED" >&6; }
2737 SED
="$ac_cv_path_SED"
2740 for ac_prog
in gawk mawk nawk
awk
2742 # Extract the first word of "$ac_prog", so it can be a program name with args.
2743 set dummy
$ac_prog; ac_word
=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if ${ac_cv_prog_AWK+:} false
; then :
2747 $as_echo_n "(cached) " >&6
2749 if test -n "$AWK"; then
2750 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir
=.
2757 for ac_exec_ext
in '' $ac_executable_extensions; do
2758 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2759 ac_cv_prog_AWK
="$ac_prog"
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 if test -n "$AWK"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2772 $as_echo "$AWK" >&6; }
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2779 test -n "$AWK" && break
2783 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2785 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2787 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2788 INSTALL
="${srcpwd}/install-sh -c"
2791 # Set srcdir to "." if that's what it is.
2792 # This is important for multilib support.
2794 if test "${pwd}" = "${srcpwd}" ; then
2802 ### To add a new directory to the tree, first choose whether it is a target
2803 ### or a host dependent tool. Then put it into the appropriate list
2804 ### (library or tools, host or target), doing a dependency sort.
2806 # Subdirs will be configured in the order listed in build_configdirs,
2807 # configdirs, or target_configdirs; see the serialization section below.
2809 # Dependency sorting is only needed when *configuration* must be done in
2810 # a particular order. In all cases a dependency should be specified in
2811 # the Makefile, whether or not it's implicitly specified here.
2813 # Double entries in build_configdirs, configdirs, or target_configdirs may
2814 # cause circular dependencies and break everything horribly.
2816 # these library is used by various programs built for the build
2819 build_libs
="build-libiberty build-libcpp"
2821 # these tools are built for the build environment
2822 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2824 # these libraries are used by various programs built for the host environment
2826 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2828 # these tools are built for the host environment
2829 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2830 # know that we are building the simulator.
2831 # binutils, gas and ld appear in that order because it makes sense to run
2832 # "make check" in that particular order.
2833 # If --enable-gold is used, "gold" may replace "ld".
2834 host_tools
="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2836 # these libraries are built for the target environment, and are built after
2837 # the host libraries and the host tools (which may be a cross compiler)
2838 # Note that libiberty is not a target library.
2839 target_libraries
="target-libgcc \
2840 target-libbacktrace \
2844 target-liboffloadmic \
2845 target-libhsail-rt \
2848 target-libstdc++-v3 \
2849 target-libsanitizer \
2852 target-libquadmath \
2853 target-libgfortran \
2859 # these tools are built using the target libraries, and are intended to
2860 # run only in the target environment
2862 # note: any program that *uses* libraries that are in the "target_libraries"
2863 # list belongs in this list.
2865 target_tools
="target-rda"
2867 ################################################################################
2869 ## All tools belong in one of the four categories, and are assigned above
2870 ## We assign ${configdirs} this way to remove all embedded newlines. This
2871 ## is important because configure will choke if they ever get through.
2872 ## ${configdirs} is directories we build using the host tools.
2873 ## ${target_configdirs} is directories we build using the target tools.
2874 configdirs
=`echo ${host_libs} ${host_tools}`
2875 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2876 build_configdirs
=`echo ${build_libs} ${build_tools}`
2880 ################################################################################
2882 srcname
="gnu development package"
2884 # This gets set non-empty for some net releases of packages.
2887 # Define is_cross_compiler to save on calls to 'test'.
2889 if test x
"${host}" = x
"${target}" ; then
2890 is_cross_compiler
=no
2892 is_cross_compiler
=yes
2895 # Find the build and target subdir names.
2897 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2898 # have matching libraries, they should use host libraries: Makefile.tpl
2899 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2900 # However, they still use the build modules, because the corresponding
2901 # host modules (e.g. bison) are only built for the host when bootstrap
2903 # - build_subdir is where we find build modules, and never changes.
2904 # - build_libsubdir is where we find build libraries, and can be overridden.
2906 # Prefix 'build-' so this never conflicts with target_subdir.
2907 build_subdir
="build-${build_noncanonical}"
2909 # Check whether --with-build-libsubdir was given.
2910 if test "${with_build_libsubdir+set}" = set; then :
2911 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2913 build_libsubdir
="$build_subdir"
2916 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2917 if ( test $srcdir = .
&& test -d gcc
) \
2918 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2919 host_subdir
="host-${host_noncanonical}"
2924 target_subdir
=${target_noncanonical}
2926 # Be sure to cover against remnants of an in-tree build.
2927 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2928 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2929 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2932 # Skipdirs are removed silently.
2934 # Noconfigdirs are removed loudly.
2938 # Make sure we don't let GNU ld be added if we didn't want it.
2939 if test x
$with_gnu_ld = xno
; then
2941 noconfigdirs
="$noconfigdirs ld gold"
2945 # Make sure we don't let GNU as be added if we didn't want it.
2946 if test x
$with_gnu_as = xno
; then
2948 noconfigdirs
="$noconfigdirs gas"
2953 # Check whether --with-system-zlib was given.
2954 if test "${with_system_zlib+set}" = set; then :
2955 withval
=$with_system_zlib;
2958 # Make sure we don't let ZLIB be added if we didn't want it.
2959 if test x
$with_system_zlib = xyes
; then
2960 use_included_zlib
=no
2961 noconfigdirs
="$noconfigdirs zlib"
2964 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2966 if test x
$with_system_readline = xyes
; then
2967 noconfigdirs
="$noconfigdirs readline"
2970 # some tools are so dependent upon X11 that if we're not building with X,
2971 # it's not even worth trying to configure, much less build, that tool.
2974 yes |
"") ;; # the default value for this tree is that X11 is available
2976 skipdirs
="${skipdirs} tk itcl libgui"
2977 # We won't be able to build gdbtk without X.
2980 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2983 # Some are only suitable for cross toolchains.
2984 # Remove these if host=target.
2985 cross_only
="target-libgloss target-newlib target-opcodes"
2987 case $is_cross_compiler in
2988 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2991 # If both --with-headers and --with-libs are specified, default to
2993 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2994 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2995 if test x
"${with_newlib}" = x
; then
3000 # Recognize --with-newlib/--without-newlib.
3001 case ${with_newlib} in
3002 no
) skipdirs
="${skipdirs} target-newlib" ;;
3003 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3006 # Check whether --enable-as-accelerator-for was given.
3007 if test "${enable_as_accelerator_for+set}" = set; then :
3008 enableval
=$enable_as_accelerator_for;
3012 # Check whether --enable-offload-targets was given.
3013 if test "${enable_offload_targets+set}" = set; then :
3014 enableval
=$enable_offload_targets;
3015 if test x
"$enable_offload_targets" = x
; then
3016 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3020 enable_offload_targets
=
3024 # Handle --enable-gold, --enable-ld.
3025 # --disable-gold [--enable-ld]
3026 # Build only ld. Default option.
3027 # --enable-gold [--enable-ld]
3028 # Build both gold and ld. Install gold as "ld.gold", install ld
3029 # as "ld.bfd" and "ld".
3030 # --enable-gold=default [--enable-ld]
3031 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3032 # install ld as "ld.bfd".
3033 # --enable-gold[=default] --disable-ld
3034 # Build only gold, which is then installed as both "ld.gold" and "ld".
3035 # --enable-gold --enable-ld=default
3036 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3038 # In other words, ld is default
3039 # --enable-gold=default --enable-ld=default
3043 # Check whether --enable-gold was given.
3044 if test "${enable_gold+set}" = set; then :
3045 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3050 case "${ENABLE_GOLD}" in
3052 # Check for ELF target.
3055 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3056 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3057 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3058 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3060 *-*-linux*aout
* |
*-*-linux*oldld
*)
3068 if test "$is_elf" = "yes"; then
3069 # Check for target supported by gold.
3071 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3072 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-*)
3073 configdirs
="$configdirs gold"
3074 if test x
${ENABLE_GOLD} = xdefault
; then
3085 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3089 # Check whether --enable-ld was given.
3090 if test "${enable_ld+set}" = set; then :
3091 enableval
=$enable_ld; ENABLE_LD
=$enableval
3097 case "${ENABLE_LD}" in
3099 if test x
${default_ld} != x
; then
3100 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3106 if test x
${ENABLE_GOLD} != xyes
; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3108 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3110 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3113 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3118 # Decide the default method for compressing debug sections.
3119 # Provide a configure time option to override our default.
3120 # Check whether --enable-compressed_debug_sections was given.
3121 if test "${enable_compressed_debug_sections+set}" = set; then :
3122 enableval
=$enable_compressed_debug_sections;
3123 if test x
"$enable_compressed_debug_sections" = xyes
; then
3124 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3128 enable_compressed_debug_sections
=
3132 # Configure extra directories which are host specific
3136 configdirs
="$configdirs libtermcap" ;;
3139 # A target can indicate whether a language isn't supported for some reason.
3140 # Only spaces may be used in this macro; not newlines or tabs.
3141 unsupported_languages
=
3143 # Remove more programs from consideration, based on the host or
3144 # target this usually means that a port of the program doesn't
3148 i
[3456789]86-*-msdosdjgpp*)
3149 noconfigdirs
="$noconfigdirs tcl tk itcl"
3154 # Check whether --enable-libquadmath was given.
3155 if test "${enable_libquadmath+set}" = set; then :
3156 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3158 ENABLE_LIBQUADMATH
=yes
3161 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3162 noconfigdirs
="$noconfigdirs target-libquadmath"
3166 # Check whether --enable-libquadmath-support was given.
3167 if test "${enable_libquadmath_support+set}" = set; then :
3168 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3170 ENABLE_LIBQUADMATH_SUPPORT
=yes
3173 enable_libquadmath_support
=
3174 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3175 enable_libquadmath_support
=no
3179 # Check whether --enable-libada was given.
3180 if test "${enable_libada+set}" = set; then :
3181 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3186 if test "${ENABLE_LIBADA}" != "yes" ; then
3187 noconfigdirs
="$noconfigdirs gnattools"
3190 # Check whether --enable-libssp was given.
3191 if test "${enable_libssp+set}" = set; then :
3192 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3198 # Check whether --enable-libstdcxx was given.
3199 if test "${enable_libstdcxx+set}" = set; then :
3200 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3202 ENABLE_LIBSTDCXX
=default
3205 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3206 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3209 # If this is accelerator compiler and its target is intelmic we enable
3210 # target liboffloadmic by default. If this is compiler with offloading
3211 # for intelmic we enable host liboffloadmic by default. Otherwise
3212 # liboffloadmic is disabled by default.
3213 # Check whether --enable-liboffloadmic was given.
3214 if test "${enable_liboffloadmic+set}" = set; then :
3215 enableval
=$enable_liboffloadmic; case "$enableval" in
3217 enable_liboffloadmic
=$enableval ;;
3219 as_fn_error $?
"--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3222 if test x
"$enable_as_accelerator_for" != x
; then
3224 *-intelmic-* |
*-intelmicemul-*)
3225 enable_liboffloadmic
=target
3226 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=target"
3229 enable_liboffloadmic
=no
3233 case "${enable_offload_targets}" in
3234 *-intelmic-* |
*-intelmicemul-*)
3235 enable_liboffloadmic
=host
3236 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=host"
3239 enable_liboffloadmic
=no
3247 # Enable libgomp by default on hosted POSIX systems, and a few others.
3248 if test x
$enable_libgomp = x
; then
3250 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3252 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3254 *-*-solaris2* |
*-*-hpux11*)
3256 *-*-darwin* |
*-*-aix*)
3261 noconfigdirs
="$noconfigdirs target-libgomp"
3266 # Disable libatomic on unsupported systems.
3267 if test -d ${srcdir}/libatomic
; then
3268 if test x
$enable_libatomic = x
; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3270 $as_echo_n "checking for libatomic support... " >&6; }
3271 if (srcdir
=${srcdir}/libatomic
; \
3272 .
${srcdir}/configure.tgt
; \
3273 test -n "$UNSUPPORTED")
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 noconfigdirs
="$noconfigdirs target-libatomic"
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3280 $as_echo "yes" >&6; }
3285 # Disable liboffloadmic on unsupported systems.
3286 if test -d ${srcdir}/liboffloadmic
; then
3287 if test x
$enable_liboffloadmic != xno
; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3289 $as_echo_n "checking for liboffloadmic support... " >&6; }
3290 if (srcdir
=${srcdir}/liboffloadmic
; \
3291 .
${srcdir}/configure.tgt
; \
3292 test -n "$UNSUPPORTED")
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 noconfigdirs
="$noconfigdirs target-liboffloadmic"
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299 $as_echo "yes" >&6; }
3304 # Disable libitm on unsupported systems.
3305 if test -d ${srcdir}/libitm
; then
3306 if test x
$enable_libitm = x
; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3308 $as_echo_n "checking for libitm support... " >&6; }
3309 if (srcdir
=${srcdir}/libitm
; \
3310 .
${srcdir}/configure.tgt
; \
3311 test -n "$UNSUPPORTED")
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315 noconfigdirs
="$noconfigdirs target-libitm"
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318 $as_echo "yes" >&6; }
3323 # Disable libsanitizer on unsupported systems.
3324 if test -d ${srcdir}/libsanitizer
; then
3325 if test x
$enable_libsanitizer = x
; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3327 $as_echo_n "checking for libsanitizer support... " >&6; }
3328 if (srcdir
=${srcdir}/libsanitizer
; \
3329 .
${srcdir}/configure.tgt
; \
3330 test -n "$UNSUPPORTED")
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 noconfigdirs
="$noconfigdirs target-libsanitizer"
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 $as_echo "yes" >&6; }
3342 # Disable libvtv on unsupported systems.
3343 if test -d ${srcdir}/libvtv
; then
3344 if test x
$enable_libvtv = x
; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3346 $as_echo_n "checking for libvtv support... " >&6; }
3347 if (srcdir
=${srcdir}/libvtv
; \
3348 .
${srcdir}/configure.tgt
; \
3349 test "$VTV_SUPPORTED" != "yes")
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3353 noconfigdirs
="$noconfigdirs target-libvtv"
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3356 $as_echo "yes" >&6; }
3362 # Disable libhsail-rt on unsupported systems.
3363 if test -d ${srcdir}/libhsail-rt
; then
3364 if test x
$enable_libhsail_rt = x
; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3366 $as_echo_n "checking for libhsail-rt support... " >&6; }
3367 if (srcdir
=${srcdir}/libhsail-rt
; \
3368 .
${srcdir}/configure.tgt
; \
3369 test -n "$UNSUPPORTED")
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3373 unsupported_languages
="$unsupported_languages brig"
3374 # This implicitly disables also target-libhsail-rt as it won't
3375 # get added to the build without BRIG FE.
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3378 $as_echo "yes" >&6; }
3384 # Disable libquadmath for some systems.
3387 noconfigdirs
="$noconfigdirs target-libquadmath"
3389 # libquadmath is unused on AIX and libquadmath build process use of
3390 # LD_LIBRARY_PATH can break AIX bootstrap.
3391 powerpc-
*-aix* | rs6000-
*-aix*)
3392 noconfigdirs
="$noconfigdirs target-libquadmath"
3396 # Disable libssp for some systems.
3399 # No hosted I/O support.
3400 noconfigdirs
="$noconfigdirs target-libssp"
3402 powerpc-
*-aix* | rs6000-
*-aix*)
3403 noconfigdirs
="$noconfigdirs target-libssp"
3406 # libssp uses a misaligned load to trigger a fault, but the RL78
3407 # doesn't fault for those - instead, it gives a build-time error
3408 # for explicit misaligned loads.
3409 noconfigdirs
="$noconfigdirs target-libssp"
3412 # No hosted I/O support.
3413 noconfigdirs
="$noconfigdirs target-libssp"
3417 # Disable libstdc++-v3 for some systems.
3418 # Allow user to override this if they pass --enable-libstdc++-v3
3419 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3422 # VxWorks uses the Dinkumware C++ library.
3423 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3426 # the C++ libraries don't build on top of CE's C libraries
3427 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3430 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3433 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3438 # Disable Fortran for some systems.
3441 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3442 unsupported_languages
="$unsupported_languages fortran"
3446 # Disable libffi for some systems.
3450 i
[3456789]86-*-darwin*)
3452 x86_64-
*-darwin[912]*)
3455 noconfigdirs
="$noconfigdirs target-libffi"
3458 noconfigdirs
="$noconfigdirs target-libffi"
3461 noconfigdirs
="$noconfigdirs target-libffi"
3464 noconfigdirs
="$noconfigdirs target-libffi"
3467 noconfigdirs
="$noconfigdirs target-libffi"
3470 noconfigdirs
="$noconfigdirs target-libffi"
3473 noconfigdirs
="$noconfigdirs target-libffi"
3475 aarch64
*-*-freebsd*)
3476 noconfigdirs
="$noconfigdirs target-libffi"
3479 noconfigdirs
="$noconfigdirs target-libffi"
3482 noconfigdirs
="$noconfigdirs target-libffi"
3485 noconfigdirs
="$noconfigdirs target-libffi"
3488 noconfigdirs
="$noconfigdirs target-libffi"
3490 cris-
*-* | crisv32-
*-*)
3494 *) # See PR46792 regarding target-libffi.
3495 noconfigdirs
="$noconfigdirs target-libffi";;
3499 noconfigdirs
="$noconfigdirs target-libffi"
3504 noconfigdirs
="$noconfigdirs target-libffi"
3507 noconfigdirs
="$noconfigdirs target-libffi"
3509 i
[3456789]86-w64-mingw*)
3510 noconfigdirs
="$noconfigdirs target-libffi"
3512 i
[3456789]86-*-mingw*)
3513 noconfigdirs
="$noconfigdirs target-libffi"
3516 noconfigdirs
="$noconfigdirs target-libffi"
3519 noconfigdirs
="$noconfigdirs target-libffi"
3526 noconfigdirs
="$noconfigdirs target-libffi"
3529 noconfigdirs
="$noconfigdirs target-libffi"
3533 # Disable the go frontend on systems where it is known to not work. Please keep
3534 # this in sync with contrib/config-list.mk.
3536 *-*-darwin* |
*-*-cygwin* |
*-*-mingw*)
3537 unsupported_languages
="$unsupported_languages go"
3541 # Disable libgo for some systems where it is known to not work.
3542 # For testing, you can easily override this with --enable-libgo.
3543 if test x
$enable_libgo = x
; then
3547 noconfigdirs
="$noconfigdirs target-libgo"
3549 *-*-cygwin* |
*-*-mingw*)
3550 noconfigdirs
="$noconfigdirs target-libgo"
3555 # Default libgloss CPU subdirectory.
3556 libgloss_dir
="$target_cpu"
3559 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3563 libgloss_dir
=aarch64
3568 cris-
*-* | crisv32-
*-*)
3577 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3578 libgloss_dir
=m68hc11
3580 m68
*-*-* | fido-
*-*)
3594 # Disable newlib and libgloss for various target OSes.
3597 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3599 i
[3456789]86-*-linux*)
3600 # This section makes it possible to build newlib natively on linux.
3601 # If we are using a cross compiler then don't configure newlib.
3602 if test x
${is_cross_compiler} != xno
; then
3603 noconfigdirs
="$noconfigdirs target-newlib"
3605 noconfigdirs
="$noconfigdirs target-libgloss"
3606 # If we are not using a cross compiler, do configure newlib.
3607 # Note however, that newlib will only be configured in this situation
3608 # if the --with-newlib option has been given, because otherwise
3609 # 'target-newlib' will appear in skipdirs.
3611 i
[3456789]86-*-rdos*)
3612 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3614 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3615 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3618 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3621 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3624 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3627 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3630 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3633 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3635 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3636 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3639 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3642 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3645 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3648 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3651 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3654 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3657 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3665 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3666 noconfigdirs
="$noconfigdirs sim target-rda"
3669 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3670 noconfigdirs
="$noconfigdirs sim target-rda"
3673 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3674 noconfigdirs
="$noconfigdirs sim target-rda"
3676 i
[3456789]86-*-darwin*)
3677 noconfigdirs
="$noconfigdirs ld gprof"
3678 noconfigdirs
="$noconfigdirs sim target-rda"
3680 x86_64-
*-darwin[912]*)
3681 noconfigdirs
="$noconfigdirs ld gas gprof"
3682 noconfigdirs
="$noconfigdirs sim target-rda"
3685 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3686 noconfigdirs
="$noconfigdirs sim target-rda"
3691 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
3692 && test -f /usr
/local
/include
/gmp.h
; then
3697 # Remove unsupported stuff on all kaOS configurations.
3698 noconfigdirs
="$noconfigdirs target-libgloss"
3705 noconfigdirs
="$noconfigdirs target-libgloss"
3708 noconfigdirs
="$noconfigdirs target-libgloss"
3710 # The tpf target doesn't support gdb yet.
3712 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3715 noconfigdirs
="$noconfigdirs target-rda"
3720 # ld works, but does not support shared libraries.
3721 # gas doesn't generate exception information.
3722 noconfigdirs
="$noconfigdirs gas ld"
3725 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3728 # newlib is not 64 bit ready
3729 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3731 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3732 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3735 noconfigdirs
="$noconfigdirs sim"
3738 noconfigdirs
="$noconfigdirs target-libgloss"
3741 noconfigdirs
="$noconfigdirs ld target-libgloss"
3744 if test x
${with_avrlibc} != xno
; then
3745 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3748 c4x-
*-* | tic4x-
*-*)
3749 noconfigdirs
="$noconfigdirs target-libgloss"
3752 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3755 noconfigdirs
="$noconfigdirs target-libgloss"
3758 noconfigdirs
="$noconfigdirs gdb"
3761 noconfigdirs
="$noconfigdirs gdb"
3764 noconfigdirs
="$noconfigdirs target-rda gprof"
3767 noconfigdirs
="$noconfigdirs"
3770 noconfigdirs
="$noconfigdirs target-libgloss"
3773 noconfigdirs
="$noconfigdirs target-libgloss"
3775 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3778 noconfigdirs
="$noconfigdirs gdb"
3781 noconfigdirs
="$noconfigdirs gdb ld"
3789 hppa
*-*-openbsd* | \
3795 noconfigdirs
="$noconfigdirs ld"
3798 noconfigdirs
="$noconfigdirs gdb"
3801 # No gdb support yet.
3802 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3805 # No ld support yet.
3806 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3809 # No ld support yet.
3810 noconfigdirs
="$noconfigdirs libgui itcl ld"
3812 i
[3456789]86-w64-mingw*)
3814 i
[3456789]86-*-mingw*)
3815 target_configdirs
="$target_configdirs target-winsup"
3818 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3819 noconfigdirs
="$noconfigdirs target-libgloss"
3820 # always build newlib if winsup directory is present.
3821 if test -d "$srcdir/winsup/cygwin"; then
3822 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3823 elif test -d "$srcdir/newlib"; then
3824 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3828 noconfigdirs
="$noconfigdirs target-libgloss"
3830 i
[3456789]86-*-sco3.2v5
*)
3831 # The linker does not yet know about weak symbols in COFF,
3832 # and is not configured to handle mixed ELF and COFF.
3833 noconfigdirs
="$noconfigdirs ld target-libgloss"
3835 i
[3456789]86-*-sco*)
3836 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3838 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3839 noconfigdirs
="$noconfigdirs target-libgloss"
3841 i
[3456789]86-*-sysv4*)
3842 noconfigdirs
="$noconfigdirs target-libgloss"
3844 i
[3456789]86-*-beos*)
3845 noconfigdirs
="$noconfigdirs gdb"
3847 i
[3456789]86-*-rdos*)
3848 noconfigdirs
="$noconfigdirs gdb"
3851 noconfigdirs
="$noconfigdirs gdb"
3854 noconfigdirs
="$noconfigdirs sim"
3857 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3858 noconfigdirs
="$noconfigdirs $target_libraries"
3861 # copied from rs6000-*-* entry
3862 noconfigdirs
="$noconfigdirs gprof"
3864 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3865 target_configdirs
="$target_configdirs target-winsup"
3866 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3867 # always build newlib.
3868 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3870 # This is temporary until we can link against shared libraries
3871 powerpcle-
*-solaris*)
3872 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3875 noconfigdirs
="$noconfigdirs gdb"
3878 noconfigdirs
="$noconfigdirs gprof"
3881 noconfigdirs
="$noconfigdirs gprof"
3884 noconfigdirs
="$noconfigdirs gprof"
3887 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3890 noconfigdirs
="$noconfigdirs gprof"
3892 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
3893 if test x
$with_newlib = xyes
; then
3894 noconfigdirs
="$noconfigdirs gprof"
3898 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3901 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3904 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
3908 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
3909 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
3910 noconfigdirs
="$noconfigdirs ld gas gprof"
3913 noconfigdirs
="$noconfigdirs gprof"
3916 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3923 noconfigdirs
="$noconfigdirs target-libgloss" ;;
3927 if test x
${is_cross_compiler} = xno
; then
3932 noconfigdirs
="$noconfigdirs sim"
3934 tilepro
*-*-* | tilegx
*-*-*)
3935 noconfigdirs
="$noconfigdirs sim"
3938 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3941 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3944 noconfigdirs
="$noconfigdirs ld"
3948 # If we aren't building newlib, then don't build libgloss, since libgloss
3949 # depends upon some newlib header files.
3950 case "${noconfigdirs}" in
3951 *target-libgloss
*) ;;
3952 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
3955 # Work in distributions that contain no compiler tools, like Autoconf.
3956 host_makefile_frag
=/dev
/null
3957 if test -d ${srcdir}/config
; then
3959 i
[3456789]86-*-msdosdjgpp*)
3960 host_makefile_frag
="config/mh-djgpp"
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3965 $as_echo_n "checking to see if cat works as expected... " >&6; }
3966 echo a
>cygwin-cat-check
3967 if test `cat cygwin-cat-check` = a
; then
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3970 $as_echo "yes" >&6; }
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974 $as_echo "no" >&6; }
3975 as_fn_error $?
"The cat command does not ignore carriage return characters.
3976 Please either mount the build directory in binary mode or run the following
3977 commands before running any configure script:
3983 host_makefile_frag
="config/mh-cygwin"
3986 host_makefile_frag
="config/mh-mingw"
3989 host_makefile_frag
="config/mh-alpha-linux"
3992 host_makefile_frag
="config/mh-pa-hpux10"
3995 host_makefile_frag
="config/mh-pa"
3998 host_makefile_frag
="config/mh-pa"
4001 host_makefile_frag
="config/mh-darwin"
4004 host_makefile_frag
="config/mh-ppc-aix"
4007 host_makefile_frag
="config/mh-ppc-aix"
4012 if test "${build}" != "${host}" ; then
4013 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4014 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4015 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4016 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4017 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4018 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4019 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4020 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4021 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4022 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4023 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4024 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4026 AR_FOR_BUILD
="\$(AR)"
4027 AS_FOR_BUILD
="\$(AS)"
4028 CC_FOR_BUILD
="\$(CC)"
4029 CXX_FOR_BUILD
="\$(CXX)"
4030 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4031 GOC_FOR_BUILD
="\$(GOC)"
4032 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4033 LD_FOR_BUILD
="\$(LD)"
4034 NM_FOR_BUILD
="\$(NM)"
4035 RANLIB_FOR_BUILD
="\$(RANLIB)"
4036 WINDRES_FOR_BUILD
="\$(WINDRES)"
4037 WINDMC_FOR_BUILD
="\$(WINDMC)"
4041 ac_cpp
='$CPP $CPPFLAGS'
4042 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4045 if test -n "$ac_tool_prefix"; then
4046 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4047 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if ${ac_cv_prog_CC+:} false
; then :
4051 $as_echo_n "(cached) " >&6
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC
="$CC" # Let the user override the test.
4056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir
=.
4061 for ac_exec_ext
in '' $ac_executable_extensions; do
4062 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4063 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 if test -n "$CC"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076 $as_echo "$CC" >&6; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4084 if test -z "$ac_cv_prog_CC"; then
4086 # Extract the first word of "gcc", so it can be a program name with args.
4087 set dummy gcc
; ac_word
=$2
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089 $as_echo_n "checking for $ac_word... " >&6; }
4090 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4091 $as_echo_n "(cached) " >&6
4093 if test -n "$ac_ct_CC"; then
4094 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4100 test -z "$as_dir" && as_dir
=.
4101 for ac_exec_ext
in '' $ac_executable_extensions; do
4102 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4103 ac_cv_prog_ac_ct_CC
="gcc"
4104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4114 if test -n "$ac_ct_CC"; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4116 $as_echo "$ac_ct_CC" >&6; }
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4122 if test "x$ac_ct_CC" = x
; then
4125 case $cross_compiling:$ac_tool_warned in
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4129 ac_tool_warned
=yes ;;
4137 if test -z "$CC"; then
4138 if test -n "$ac_tool_prefix"; then
4139 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4140 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_CC+:} false
; then :
4144 $as_echo_n "(cached) " >&6
4146 if test -n "$CC"; then
4147 ac_cv_prog_CC
="$CC" # Let the user override the test.
4149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir
=.
4154 for ac_exec_ext
in '' $ac_executable_extensions; do
4155 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 if test -n "$CC"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4169 $as_echo "$CC" >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4178 if test -z "$CC"; then
4179 # Extract the first word of "cc", so it can be a program name with args.
4180 set dummy cc
; ac_word
=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_CC+:} false
; then :
4184 $as_echo_n "(cached) " >&6
4186 if test -n "$CC"; then
4187 ac_cv_prog_CC
="$CC" # Let the user override the test.
4190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir
=.
4195 for ac_exec_ext
in '' $ac_executable_extensions; do
4196 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4197 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4198 ac_prog_rejected
=yes
4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 if test $ac_prog_rejected = yes; then
4210 # We found a bogon in the path, so make sure we never use it.
4211 set dummy
$ac_cv_prog_CC
4213 if test $# != 0; then
4214 # We chose a different compiler from the bogus one.
4215 # However, it has the same basename, so the bogon will be chosen
4216 # first if we set CC to just the basename; use the full file name.
4218 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4224 if test -n "$CC"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4226 $as_echo "$CC" >&6; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4234 if test -z "$CC"; then
4235 if test -n "$ac_tool_prefix"; then
4236 for ac_prog
in cl.exe
4238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4239 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_CC+:} false
; then :
4243 $as_echo_n "(cached) " >&6
4245 if test -n "$CC"; then
4246 ac_cv_prog_CC
="$CC" # Let the user override the test.
4248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir
=.
4253 for ac_exec_ext
in '' $ac_executable_extensions; do
4254 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 if test -n "$CC"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4268 $as_echo "$CC" >&6; }
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4275 test -n "$CC" && break
4278 if test -z "$CC"; then
4280 for ac_prog
in cl.exe
4282 # Extract the first word of "$ac_prog", so it can be a program name with args.
4283 set dummy
$ac_prog; ac_word
=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4287 $as_echo_n "(cached) " >&6
4289 if test -n "$ac_ct_CC"; then
4290 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4296 test -z "$as_dir" && as_dir
=.
4297 for ac_exec_ext
in '' $ac_executable_extensions; do
4298 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_ac_ct_CC
="$ac_prog"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4310 if test -n "$ac_ct_CC"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4312 $as_echo "$ac_ct_CC" >&6; }
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4319 test -n "$ac_ct_CC" && break
4322 if test "x$ac_ct_CC" = x
; then
4325 case $cross_compiling:$ac_tool_warned in
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4329 ac_tool_warned
=yes ;;
4338 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4340 as_fn_error $?
"no acceptable C compiler found in \$PATH
4341 See \`config.log' for more details" "$LINENO" 5; }
4343 # Provide some information about the compiler.
4344 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4347 for ac_option
in --version -v -V -qversion; do
4348 { { ac_try
="$ac_compiler $ac_option >&5"
4350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4354 $as_echo "$ac_try_echo"; } >&5
4355 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4357 if test -s conftest.err; then
4359 ... rest of stderr output deleted ...
4360 10q' conftest.err >conftest.er1
4361 cat conftest.er1 >&5
4363 rm -f conftest.er1 conftest.err
4364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365 test $ac_status = 0; }
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4379 ac_clean_files_save=$ac_clean_files
4380 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4381 # Try to create an executable without -o first, disregard a.out.
4382 # It will help us diagnose broken compilers, and finding out an intuition
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4385 $as_echo_n "checking whether the C compiler works... " >&6; }
4386 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4388 # The possible output files:
4389 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4392 for ac_file in $ac_files
4395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4396 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4401 if { { ac_try="$ac_link_default"
4403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4404 *) ac_try_echo
=$ac_try;;
4406 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_link_default") 2>&5
4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411 test $ac_status = 0; }; then :
4412 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4413 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4414 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4415 # so that the user can short-circuit this test for compilers unknown to
4417 for ac_file
in $ac_files ''
4419 test -f "$ac_file" ||
continue
4421 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4424 # We found the default executable, but exeext='' is most
4428 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4430 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4432 # We set ac_cv_exeext here because the later test for it is not
4433 # safe: cross compilers may not add the suffix if given an `-o'
4434 # argument, so we may need to know it at that point already.
4435 # Even if this section looks crufty: it has the advantage of
4442 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4447 if test -z "$ac_file"; then :
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4450 $as_echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.
$ac_ext >&5
4453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455 as_fn_error
77 "C compiler cannot create executables
4456 See \`config.log' for more details" "$LINENO" 5; }
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4459 $as_echo "yes" >&6; }
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4462 $as_echo_n "checking for C compiler default output file name... " >&6; }
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4464 $as_echo "$ac_file" >&6; }
4465 ac_exeext
=$ac_cv_exeext
4467 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4468 ac_clean_files
=$ac_clean_files_save
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4470 $as_echo_n "checking for suffix of executables... " >&6; }
4471 if { { ac_try
="$ac_link"
4473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477 $as_echo "$ac_try_echo"; } >&5
4478 (eval "$ac_link") 2>&5
4480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4481 test $ac_status = 0; }; then :
4482 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4483 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4484 # work properly (i.e., refer to `conftest.exe'), while it won't with
4486 for ac_file
in conftest.exe conftest conftest.
*; do
4487 test -f "$ac_file" ||
continue
4489 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4490 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4498 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4499 See \`config.log' for more details" "$LINENO" 5; }
4501 rm -f conftest conftest
$ac_cv_exeext
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4503 $as_echo "$ac_cv_exeext" >&6; }
4505 rm -f conftest.
$ac_ext
4506 EXEEXT
=$ac_cv_exeext
4508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4514 FILE *f = fopen ("conftest.out", "w");
4515 return ferror (f) || fclose (f) != 0;
4521 ac_clean_files
="$ac_clean_files conftest.out"
4522 # Check that the compiler produces executables we can run. If not, either
4523 # the compiler is broken, or we cross compile.
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4525 $as_echo_n "checking whether we are cross compiling... " >&6; }
4526 if test "$cross_compiling" != yes; then
4527 { { ac_try
="$ac_link"
4529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533 $as_echo "$ac_try_echo"; } >&5
4534 (eval "$ac_link") 2>&5
4536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4537 test $ac_status = 0; }
4538 if { ac_try='./conftest$ac_cv_exeext'
4539 { { case "(($ac_try" in
4540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4541 *) ac_try_echo
=$ac_try;;
4543 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4544 $as_echo "$ac_try_echo"; } >&5
4545 (eval "$ac_try") 2>&5
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548 test $ac_status = 0; }; }; then
4551 if test "$cross_compiling" = maybe
; then
4554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4556 as_fn_error $?
"cannot run C compiled programs.
4557 If you meant to cross compile, use \`--host'.
4558 See \`config.log' for more details" "$LINENO" 5; }
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4563 $as_echo "$cross_compiling" >&6; }
4565 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4566 ac_clean_files
=$ac_clean_files_save
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4568 $as_echo_n "checking for suffix of object files... " >&6; }
4569 if ${ac_cv_objext+:} false
; then :
4570 $as_echo_n "(cached) " >&6
4572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4583 rm -f conftest.o conftest.obj
4584 if { { ac_try
="$ac_compile"
4586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4590 $as_echo "$ac_try_echo"; } >&5
4591 (eval "$ac_compile") 2>&5
4593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594 test $ac_status = 0; }; then :
4595 for ac_file in conftest.o conftest.obj conftest.*; do
4596 test -f "$ac_file" || continue;
4598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4604 $as_echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4610 See \
`config.log' for more details" "$LINENO" 5; }
4612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4615 $as_echo "$ac_cv_objext" >&6; }
4616 OBJEXT=$ac_cv_objext
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4620 if ${ac_cv_c_compiler_gnu+:} false; then :
4621 $as_echo_n "(cached) " >&6
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4637 if ac_fn_c_try_compile "$LINENO"; then :
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4647 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4648 if test $ac_compiler_gnu = yes; then
4653 ac_test_CFLAGS=${CFLAGS+set}
4654 ac_save_CFLAGS=$CFLAGS
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4656 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4657 if ${ac_cv_prog_cc_g+:} false; then :
4658 $as_echo_n "(cached) " >&6
4660 ac_save_c_werror_flag=$ac_c_werror_flag
4661 ac_c_werror_flag=yes
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4675 if ac_fn_c_try_compile "$LINENO"; then :
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4690 if ac_fn_c_try_compile "$LINENO"; then :
4693 ac_c_werror_flag=$ac_save_c_werror_flag
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4706 if ac_fn_c_try_compile "$LINENO"; then :
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 ac_c_werror_flag=$ac_save_c_werror_flag
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4717 $as_echo "$ac_cv_prog_cc_g" >&6; }
4718 if test "$ac_test_CFLAGS" = set; then
4719 CFLAGS=$ac_save_CFLAGS
4720 elif test $ac_cv_prog_cc_g = yes; then
4721 if test "$GCC" = yes; then
4727 if test "$GCC" = yes; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4735 if ${ac_cv_prog_cc_c89+:} false; then :
4736 $as_echo_n "(cached) " >&6
4738 ac_cv_prog_cc_c89=no
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4746 struct buf { int x; };
4747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4748 static char *e (p, i)
4754 static char *f (char * (*g) (char **, int), char **p, ...)
4759 s = g (p, va_arg (v,int));
4764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4765 function prototypes and stuff, but not '\xHH' hex character constants.
4766 These don't provoke an error unfortunately, instead are silently treated
4767 as 'x'. The following induces an error, until -std is added to get
4768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4769 array size at least. It's necessary to write '\x00'==0 to get something
4770 that's true only with -std. */
4771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4774 inside strings and character constants. */
4776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4778 int test (int i, double x);
4779 struct s1 {int (*f) (int a);};
4780 struct s2 {int (*f) (double a);};
4781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4795 CC="$ac_save_CC $ac_arg"
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797 ac_cv_prog_cc_c89=$ac_arg
4799 rm -f core conftest.err conftest.$ac_objext
4800 test "x$ac_cv_prog_cc_c89" != "xno" && break
4802 rm -f conftest.$ac_ext
4807 case "x$ac_cv_prog_cc_c89" in
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4810 $as_echo "none needed" >&6; } ;;
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4813 $as_echo "unsupported" >&6; } ;;
4815 CC="$CC $ac_cv_prog_cc_c89"
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4817 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4819 if test "x$ac_cv_prog_cc_c89" != xno; then :
4824 ac_cpp='$CPP $CPPFLAGS'
4825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830 ac_cpp='$CXXCPP $CPPFLAGS'
4831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4834 if test -z "$CXX"; then
4835 if test -n "$CCC"; then
4838 if test -n "$ac_tool_prefix"; then
4839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_CXX+:} false; then :
4846 $as_echo_n "(cached) " >&6
4848 if test -n "$CXX"; then
4849 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 if test -n "$CXX"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4871 $as_echo "$CXX" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 test -n "$CXX" && break
4881 if test -z "$CXX"; then
4883 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4885 # Extract the first word of "$ac_prog", so it can be a program name with args.
4886 set dummy $ac_prog; ac_word=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4890 $as_echo_n "(cached) " >&6
4892 if test -n "$ac_ct_CXX"; then
4893 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902 ac_cv_prog_ac_ct_CXX="$ac_prog"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4913 if test -n "$ac_ct_CXX"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4915 $as_echo "$ac_ct_CXX" >&6; }
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4922 test -n "$ac_ct_CXX" && break
4925 if test "x$ac_ct_CXX" = x; then
4928 case $cross_compiling:$ac_tool_warned in
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932 ac_tool_warned=yes ;;
4940 # Provide some information about the compiler.
4941 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4944 for ac_option in --version -v -V -qversion; do
4945 { { ac_try="$ac_compiler $ac_option >&5"
4947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4948 *) ac_try_echo
=$ac_try;;
4950 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4951 $as_echo "$ac_try_echo"; } >&5
4952 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4954 if test -s conftest.err
; then
4956 ... rest of stderr output deleted ...
4957 10q' conftest.err
>conftest.er1
4958 cat conftest.er1
>&5
4960 rm -f conftest.er1 conftest.err
4961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4962 test $ac_status = 0; }
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4966 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4967 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4968 $as_echo_n "(cached) " >&6
4970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4984 if ac_fn_cxx_try_compile
"$LINENO"; then :
4989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4990 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4994 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4995 if test $ac_compiler_gnu = yes; then
5000 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5001 ac_save_CXXFLAGS
=$CXXFLAGS
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5003 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5004 if ${ac_cv_prog_cxx_g+:} false
; then :
5005 $as_echo_n "(cached) " >&6
5007 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5008 ac_cxx_werror_flag
=yes
5011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5022 if ac_fn_cxx_try_compile
"$LINENO"; then :
5023 ac_cv_prog_cxx_g
=yes
5026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5037 if ac_fn_cxx_try_compile
"$LINENO"; then :
5040 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5053 if ac_fn_cxx_try_compile
"$LINENO"; then :
5054 ac_cv_prog_cxx_g
=yes
5056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5061 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5064 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5065 if test "$ac_test_CXXFLAGS" = set; then
5066 CXXFLAGS
=$ac_save_CXXFLAGS
5067 elif test $ac_cv_prog_cxx_g = yes; then
5068 if test "$GXX" = yes; then
5074 if test "$GXX" = yes; then
5081 ac_cpp
='$CPP $CPPFLAGS'
5082 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5087 # We must set the default linker to the linker used by gcc for the correct
5088 # operation of libtool. If LD is not defined and we are using gcc, try to
5089 # set the LD default to the ld used by gcc.
5090 if test -z "$LD"; then
5091 if test "$GCC" = yes; then
5094 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5096 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5098 case $gcc_prog_ld in
5099 # Accept absolute paths.
5100 [\\/]* |
[A-Za-z
]:[\\/]*)
5101 LD
="$gcc_prog_ld" ;;
5106 # Check whether -static-libstdc++ -static-libgcc is supported.
5108 if test "$GCC" = yes; then
5109 saved_LDFLAGS
="$LDFLAGS"
5111 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5113 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5115 ac_cpp
='$CXXCPP $CPPFLAGS'
5116 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5124 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5125 #error -static-libstdc++ not implemented
5129 if ac_fn_cxx_try_link
"$LINENO"; then :
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5131 $as_echo "yes" >&6; }; have_static_libs
=yes
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5136 rm -f core conftest.err conftest.
$ac_objext \
5137 conftest
$ac_exeext conftest.
$ac_ext
5139 ac_cpp
='$CPP $CPPFLAGS'
5140 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5145 LDFLAGS
="$saved_LDFLAGS"
5151 if test -n "$ac_tool_prefix"; then
5152 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5153 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_prog_GNATBIND+:} false
; then :
5157 $as_echo_n "(cached) " >&6
5159 if test -n "$GNATBIND"; then
5160 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5166 test -z "$as_dir" && as_dir
=.
5167 for ac_exec_ext
in '' $ac_executable_extensions; do
5168 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 GNATBIND
=$ac_cv_prog_GNATBIND
5180 if test -n "$GNATBIND"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5182 $as_echo "$GNATBIND" >&6; }
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5190 if test -z "$ac_cv_prog_GNATBIND"; then
5191 ac_ct_GNATBIND
=$GNATBIND
5192 # Extract the first word of "gnatbind", so it can be a program name with args.
5193 set dummy gnatbind
; ac_word
=$2
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5197 $as_echo_n "(cached) " >&6
5199 if test -n "$ac_ct_GNATBIND"; then
5200 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir
=.
5207 for ac_exec_ext
in '' $ac_executable_extensions; do
5208 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5220 if test -n "$ac_ct_GNATBIND"; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5222 $as_echo "$ac_ct_GNATBIND" >&6; }
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225 $as_echo "no" >&6; }
5228 if test "x$ac_ct_GNATBIND" = x
; then
5231 case $cross_compiling:$ac_tool_warned in
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5235 ac_tool_warned
=yes ;;
5237 GNATBIND
=$ac_ct_GNATBIND
5240 GNATBIND
="$ac_cv_prog_GNATBIND"
5243 if test -n "$ac_tool_prefix"; then
5244 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5245 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5249 $as_echo_n "(cached) " >&6
5251 if test -n "$GNATMAKE"; then
5252 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5258 test -z "$as_dir" && as_dir
=.
5259 for ac_exec_ext
in '' $ac_executable_extensions; do
5260 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 GNATMAKE
=$ac_cv_prog_GNATMAKE
5272 if test -n "$GNATMAKE"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5274 $as_echo "$GNATMAKE" >&6; }
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5282 if test -z "$ac_cv_prog_GNATMAKE"; then
5283 ac_ct_GNATMAKE
=$GNATMAKE
5284 # Extract the first word of "gnatmake", so it can be a program name with args.
5285 set dummy gnatmake
; ac_word
=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5289 $as_echo_n "(cached) " >&6
5291 if test -n "$ac_ct_GNATMAKE"; then
5292 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5298 test -z "$as_dir" && as_dir
=.
5299 for ac_exec_ext
in '' $ac_executable_extensions; do
5300 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5301 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5312 if test -n "$ac_ct_GNATMAKE"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5314 $as_echo "$ac_ct_GNATMAKE" >&6; }
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5320 if test "x$ac_ct_GNATMAKE" = x
; then
5323 case $cross_compiling:$ac_tool_warned in
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5327 ac_tool_warned
=yes ;;
5329 GNATMAKE
=$ac_ct_GNATMAKE
5332 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5336 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5337 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5338 $as_echo_n "(cached) " >&6
5340 cat >conftest.adb
<<EOF
5341 procedure conftest is begin null; end conftest;
5343 acx_cv_cc_gcc_supports_ada
=no
5344 # There is a bug in old released versions of GCC which causes the
5345 # driver to exit successfully when the appropriate language module
5346 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5347 # Therefore we must check for the error message as well as an
5348 # unsuccessful exit.
5349 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5350 # given a .adb file, but produce no object file. So we must check
5351 # if an object file was really produced to guard against this.
5352 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5353 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5354 acx_cv_cc_gcc_supports_ada
=yes
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5359 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5361 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5368 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5369 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5370 $as_echo_n "(cached) " >&6
5374 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5375 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5376 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5379 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5382 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5383 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5386 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5393 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5394 do_compare
="$gcc_cv_prog_cmp_skip"
5398 # Check whether --enable-bootstrap was given.
5399 if test "${enable_bootstrap+set}" = set; then :
5400 enableval
=$enable_bootstrap;
5402 enable_bootstrap
=default
5406 # Issue errors and warnings for invalid/strange bootstrap combinations.
5407 if test -r $srcdir/gcc
/configure
; then
5413 case "$have_compiler:$host:$target:$enable_bootstrap" in
5416 # Default behavior. Enable bootstrap if we have a compiler
5417 # and we are in a native configuration.
5418 yes:$build:$build:default
)
5419 enable_bootstrap
=yes ;;
5422 enable_bootstrap
=no
;;
5424 # We have a compiler and we are in a native configuration, bootstrap is ok
5425 yes:$build:$build:yes)
5428 # Other configurations, but we have a compiler. Assume the user knows
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5432 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5435 # No compiler: if they passed --enable-bootstrap explicitly, fail
5437 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5439 # Fail if wrong command line
5441 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5445 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5446 # C++98 compiler can still start the bootstrap.
5447 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5448 CXX
="$CXX -std=gnu++98"
5451 # Used for setting $lt_cv_objdir
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5453 $as_echo_n "checking for objdir... " >&6; }
5454 if ${lt_cv_objdir+:} false
; then :
5455 $as_echo_n "(cached) " >&6
5457 rm -f .libs
2>/dev
/null
5458 mkdir .libs
2>/dev
/null
5459 if test -d .libs
; then
5462 # MS-DOS does not allow filenames that begin with a dot.
5465 rmdir .libs
2>/dev
/null
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5468 $as_echo "$lt_cv_objdir" >&6; }
5469 objdir
=$lt_cv_objdir
5475 cat >>confdefs.h
<<_ACEOF
5476 #define LT_OBJDIR "$lt_cv_objdir/"
5481 # Check for GMP, MPFR and MPC
5482 gmplibs
="-lmpc -lmpfr -lgmp"
5486 # Check for debuginfod
5491 # Check whether --with-debuginfod was given.
5492 if test "${with_debuginfod+set}" = set; then :
5493 withval
=$with_debuginfod;
5495 with_debuginfod
=auto
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
5499 $as_echo_n "checking whether to use debuginfod... " >&6; }
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
5501 $as_echo "$with_debuginfod" >&6; }
5503 if test "${with_debuginfod}" = no
; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
5505 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debuginfod_begin in -ldebuginfod" >&5
5508 $as_echo_n "checking for debuginfod_begin in -ldebuginfod... " >&6; }
5509 if ${ac_cv_lib_debuginfod_debuginfod_begin+:} false
; then :
5510 $as_echo_n "(cached) " >&6
5512 ac_check_lib_save_LIBS
=$LIBS
5513 LIBS
="-ldebuginfod $LIBS"
5514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5517 /* Override any GCC internal prototype to avoid an error.
5518 Use char because int might match the return type of a GCC
5519 builtin and then its argument prototype would still apply. */
5523 char debuginfod_begin ();
5527 return debuginfod_begin ();
5532 if ac_fn_c_try_link
"$LINENO"; then :
5533 ac_cv_lib_debuginfod_debuginfod_begin
=yes
5535 ac_cv_lib_debuginfod_debuginfod_begin
=no
5537 rm -f core conftest.err conftest.
$ac_objext \
5538 conftest
$ac_exeext conftest.
$ac_ext
5539 LIBS
=$ac_check_lib_save_LIBS
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_debuginfod_debuginfod_begin" >&5
5542 $as_echo "$ac_cv_lib_debuginfod_debuginfod_begin" >&6; }
5543 if test "x$ac_cv_lib_debuginfod_debuginfod_begin" = xyes
; then :
5544 have_debuginfod_lib
=yes
5547 ac_fn_c_check_decl
"$LINENO" "debuginfod_begin" "ac_cv_have_decl_debuginfod_begin" "#include <elfutils/debuginfod.h>
5549 if test "x$ac_cv_have_decl_debuginfod_begin" = xyes
; then :
5550 have_debuginfod_h
=yes
5553 if test "x$have_debuginfod_lib" = "xyes" -a \
5554 "x$have_debuginfod_h" = "xyes"; then
5556 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
5558 LIBDEBUGINFOD
="-ldebuginfod"
5562 if test "$with_debuginfod" = yes; then
5563 as_fn_error $?
"debuginfod is missing or unusable" "$LINENO" 5
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod is missing or unusable; some features may be unavailable." >&5
5566 $as_echo "$as_me: WARNING: debuginfod is missing or unusable; some features may be unavailable." >&2;}
5572 # Specify a location for mpc
5573 # check for this first so it ends up on the link line before mpfr.
5575 # Check whether --with-mpc was given.
5576 if test "${with_mpc+set}" = set; then :
5581 # Check whether --with-mpc-include was given.
5582 if test "${with_mpc_include+set}" = set; then :
5583 withval
=$with_mpc_include;
5587 # Check whether --with-mpc-lib was given.
5588 if test "${with_mpc_lib+set}" = set; then :
5589 withval
=$with_mpc_lib;
5593 if test "x$with_mpc" != x
; then
5594 gmplibs
="-L$with_mpc/lib $gmplibs"
5595 gmpinc
="-I$with_mpc/include $gmpinc"
5597 if test "x$with_mpc_include" != x
; then
5598 gmpinc
="-I$with_mpc_include $gmpinc"
5600 if test "x$with_mpc_lib" != x
; then
5601 gmplibs
="-L$with_mpc_lib $gmplibs"
5603 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
5604 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5605 gmpinc
='-I$$s/mpc/src '"$gmpinc"
5606 # Do not test the mpc version. Assume that it is sufficient, since
5607 # it is in the source tree, and the library has not been built yet
5608 # but it would be included on the link line in the version check below
5609 # hence making the test fail.
5613 # Specify a location for mpfr
5614 # check for this first so it ends up on the link line before gmp.
5616 # Check whether --with-mpfr-dir was given.
5617 if test "${with_mpfr_dir+set}" = set; then :
5618 withval
=$with_mpfr_dir; as_fn_error $?
"The --with-mpfr-dir=PATH option has been removed.
5619 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5624 # Check whether --with-mpfr was given.
5625 if test "${with_mpfr+set}" = set; then :
5630 # Check whether --with-mpfr-include was given.
5631 if test "${with_mpfr_include+set}" = set; then :
5632 withval
=$with_mpfr_include;
5636 # Check whether --with-mpfr-lib was given.
5637 if test "${with_mpfr_lib+set}" = set; then :
5638 withval
=$with_mpfr_lib;
5642 if test "x$with_mpfr" != x
; then
5643 gmplibs
="-L$with_mpfr/lib $gmplibs"
5644 gmpinc
="-I$with_mpfr/include $gmpinc"
5646 if test "x$with_mpfr_include" != x
; then
5647 gmpinc
="-I$with_mpfr_include $gmpinc"
5649 if test "x$with_mpfr_lib" != x
; then
5650 gmplibs
="-L$with_mpfr_lib $gmplibs"
5652 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
5653 # MPFR v3.1.0 moved the sources into a src sub-directory.
5654 if ! test -d ${srcdir}/mpfr
/src
; then
5655 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5657 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5658 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5659 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5660 # Do not test the mpfr version. Assume that it is sufficient, since
5661 # it is in the source tree, and the library has not been built yet
5662 # but it would be included on the link line in the version check below
5663 # hence making the test fail.
5667 # Specify a location for gmp
5669 # Check whether --with-gmp-dir was given.
5670 if test "${with_gmp_dir+set}" = set; then :
5671 withval
=$with_gmp_dir; as_fn_error $?
"The --with-gmp-dir=PATH option has been removed.
5672 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5677 # Check whether --with-gmp was given.
5678 if test "${with_gmp+set}" = set; then :
5683 # Check whether --with-gmp-include was given.
5684 if test "${with_gmp_include+set}" = set; then :
5685 withval
=$with_gmp_include;
5689 # Check whether --with-gmp-lib was given.
5690 if test "${with_gmp_lib+set}" = set; then :
5691 withval
=$with_gmp_lib;
5696 if test "x$with_gmp" != x
; then
5697 gmplibs
="-L$with_gmp/lib $gmplibs"
5698 gmpinc
="-I$with_gmp/include $gmpinc"
5700 if test "x$with_gmp_include" != x
; then
5701 gmpinc
="-I$with_gmp_include $gmpinc"
5703 if test "x$with_gmp_lib" != x
; then
5704 gmplibs
="-L$with_gmp_lib $gmplibs"
5706 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
5707 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5708 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5709 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5710 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5711 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5712 # Do not test the gmp version. Assume that it is sufficient, since
5713 # it is in the source tree, and the library has not been built yet
5714 # but it would be included on the link line in the version check below
5715 # hence making the test fail.
5719 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
5721 saved_CFLAGS
="$CFLAGS"
5722 CFLAGS
="$CFLAGS $gmpinc"
5723 # Check for the recommended and required versions of GMP.
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5725 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5733 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5734 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5735 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5743 if ac_fn_c_try_compile
"$LINENO"; then :
5744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5751 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5752 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5753 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5761 if ac_fn_c_try_compile
"$LINENO"; then :
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5763 $as_echo "yes" >&6; }
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5766 $as_echo "buggy but acceptable" >&6; }
5768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }; have_gmp
=no
5773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5775 # If we have GMP, check the MPFR version.
5776 if test x
"$have_gmp" = xyes
; then
5777 # Check for the recommended and required versions of MPFR.
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5779 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5788 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5796 if ac_fn_c_try_compile
"$LINENO"; then :
5797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5805 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5813 if ac_fn_c_try_compile
"$LINENO"; then :
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5815 $as_echo "yes" >&6; }
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5818 $as_echo "buggy but acceptable" >&6; }
5820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }; have_gmp
=no
5825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5828 # Check for the MPC header version.
5829 if test x
"$have_gmp" = xyes
; then
5830 # Check for the recommended and required versions of MPC.
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5832 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5840 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5848 if ac_fn_c_try_compile
"$LINENO"; then :
5849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5856 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5864 if ac_fn_c_try_compile
"$LINENO"; then :
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5866 $as_echo "yes" >&6; }
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5869 $as_echo "buggy but acceptable" >&6; }
5871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }; have_gmp
=no
5876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5879 # Now check the MPFR library.
5880 if test x
"$have_gmp" = xyes
; then
5882 LIBS
="$LIBS $gmplibs"
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5884 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5898 mpfr_atan2 (n, n, x, GMP_RNDN);
5899 mpfr_erfc (n, x, GMP_RNDN);
5900 mpfr_subnormalize (x, t, GMP_RNDN);
5904 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5905 mpc_cosh (c, c, MPC_RNDNN);
5906 mpc_pow (c, c, c, MPC_RNDNN);
5907 mpc_acosh (c, c, MPC_RNDNN);
5914 if ac_fn_c_try_link
"$LINENO"; then :
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5916 $as_echo "yes" >&6; }
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }; have_gmp
=no
5921 rm -f core conftest.err conftest.
$ac_objext \
5922 conftest
$ac_exeext conftest.
$ac_ext
5926 CFLAGS
="$saved_CFLAGS"
5928 # The library versions listed in the error message below should match
5929 # the HARD-minimums enforced above.
5930 if test x
$have_gmp != xyes
; then
5931 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5932 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5933 their locations. Source code for these libraries can be found at
5934 their respective hosting sites as well as at
5935 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5936 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5937 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5938 make sure that you have installed both the libraries and the header
5939 files. They may be located in separate packages." "$LINENO" 5
5943 # Flags needed for both GMP, MPFR and/or MPC.
5951 # Libraries to use for stage1 or when not bootstrapping.
5953 # Check whether --with-stage1-libs was given.
5954 if test "${with_stage1_libs+set}" = set; then :
5955 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5958 stage1_libs
=$withval
5966 # Whether or not to use -static-libstdc++ and -static-libgcc. The
5967 # default is yes if gcc is being built; no otherwise. The reason for
5968 # this default is that gdb is sometimes linked against GNU Source
5969 # Highlight, which is a shared library that uses C++ exceptions. In
5970 # this case, -static-libstdc++ will cause crashes.
5972 # Check whether --with-static-standard-libraries was given.
5973 if test "${with_static_standard_libraries+set}" = set; then :
5974 withval
=$with_static_standard_libraries;
5976 with_static_standard_libraries
=auto
5979 if test "$with_static_standard_libraries" = auto
; then
5980 with_static_standard_libraries
=$have_compiler
5983 # Linker flags to use for stage1 or when not bootstrapping.
5985 # Check whether --with-stage1-ldflags was given.
5986 if test "${with_stage1_ldflags+set}" = set; then :
5987 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5990 stage1_ldflags
=$withval
5994 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5995 # if supported. But if the user explicitly specified the libraries to use,
5996 # trust that they are doing what they want.
5997 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5998 -a "$have_static_libs" = yes; then
5999 stage1_ldflags
="-static-libstdc++ -static-libgcc"
6005 # Libraries to use for stage2 and later builds.
6007 # Check whether --with-boot-libs was given.
6008 if test "${with_boot_libs+set}" = set; then :
6009 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6012 poststage1_libs
=$withval
6020 # Linker flags to use for stage2 and later builds.
6022 # Check whether --with-boot-ldflags was given.
6023 if test "${with_boot_ldflags+set}" = set; then :
6024 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6027 poststage1_ldflags
=$withval
6031 # In stages 2 and 3, default to linking libstdc++ and libgcc
6032 # statically. But if the user explicitly specified the libraries to
6033 # use, trust that they are doing what they want.
6034 if test "$poststage1_libs" = ""; then
6035 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
6041 # GCC GRAPHITE dependency isl.
6042 # Basic setup is inlined here, actual checks are in config/isl.m4
6045 # Check whether --with-isl was given.
6046 if test "${with_isl+set}" = set; then :
6051 # Treat --without-isl as a request to disable
6052 # GRAPHITE support and skip all following checks.
6053 if test "x$with_isl" != "xno"; then
6057 # Check whether --with-isl-include was given.
6058 if test "${with_isl_include+set}" = set; then :
6059 withval
=$with_isl_include;
6063 # Check whether --with-isl-lib was given.
6064 if test "${with_isl_lib+set}" = set; then :
6065 withval
=$with_isl_lib;
6069 # Check whether --enable-isl-version-check was given.
6070 if test "${enable_isl_version_check+set}" = set; then :
6071 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
6073 ENABLE_ISL_CHECK
=yes
6077 # Initialize isllibs and islinc.
6086 isllibs
="-L$with_isl/lib"
6087 islinc
="-I$with_isl/include"
6090 if test "x${with_isl_include}" != x
; then
6091 islinc
="-I$with_isl_include"
6093 if test "x${with_isl_lib}" != x
; then
6094 isllibs
="-L$with_isl_lib"
6096 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
6097 && test -d ${srcdir}/isl
; then
6098 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6099 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6102 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6105 isllibs
="${isllibs} -lisl"
6109 if test "${ENABLE_ISL_CHECK}" = yes ; then
6110 _isl_saved_CFLAGS
=$CFLAGS
6111 _isl_saved_LDFLAGS
=$LDFLAGS
6112 _isl_saved_LIBS
=$LIBS
6114 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6115 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6116 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6119 $as_echo_n "checking for isl 0.15 or later... " >&6; }
6120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6122 #include <isl/schedule.h>
6126 isl_options_set_schedule_serialize_sccs (NULL, 0);
6131 if ac_fn_c_try_link
"$LINENO"; then :
6136 rm -f core conftest.err conftest.
$ac_objext \
6137 conftest
$ac_exeext conftest.
$ac_ext
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6139 $as_echo "$gcc_cv_isl" >&6; }
6141 if test "${gcc_cv_isl}" = no
; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6143 $as_echo "required isl version is 0.15 or later" >&6; }
6146 CFLAGS
=$_isl_saved_CFLAGS
6147 LDFLAGS
=$_isl_saved_LDFLAGS
6148 LIBS
=$_isl_saved_LIBS
6156 if test "x${with_isl}" = xno
; then
6157 graphite_requested
=no
6158 elif test "x${with_isl}" != x \
6159 ||
test "x${with_isl_include}" != x \
6160 ||
test "x${with_isl_lib}" != x
; then
6161 graphite_requested
=yes
6163 graphite_requested
=no
6168 if test "${gcc_cv_isl}" = no
; then
6173 if test "${graphite_requested}" = yes \
6174 && test "x${isllibs}" = x \
6175 && test "x${islinc}" = x
; then
6177 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
6183 # If the isl check failed, disable builds of in-tree variant of isl
6184 if test "x$with_isl" = xno ||
6185 test "x$gcc_cv_isl" = xno
; then
6186 noconfigdirs
="$noconfigdirs isl"
6193 # Check for LTO support.
6194 # Check whether --enable-lto was given.
6195 if test "${enable_lto+set}" = set; then :
6196 enableval
=$enable_lto; enable_lto
=$enableval
6198 enable_lto
=yes; default_enable_lto
=yes
6207 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
6208 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
6209 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
6218 if test $target_elf = yes; then :
6219 # ELF platforms build the lto-plugin always.
6220 build_lto_plugin
=yes
6223 if test x
"$default_enable_lto" = x
"yes" ; then
6225 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
6226 # On other non-ELF platforms, LTO has yet to be validated.
6230 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6231 # It would also be nice to check the binutils support, but we don't
6232 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6233 # warn during gcc/ subconfigure; unless you're bootstrapping with
6234 # -flto it won't be needed until after installation anyway.
6236 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
6237 *) if test x
"$enable_lto" = x
"yes"; then
6238 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
6243 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6244 # Build it unless LTO was explicitly disabled.
6246 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
6253 # Check whether --enable-linker-plugin-configure-flags was given.
6254 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6255 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
6257 extra_linker_plugin_configure_flags
=
6261 # Check whether --enable-linker-plugin-flags was given.
6262 if test "${enable_linker_plugin_flags+set}" = set; then :
6263 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
6265 extra_linker_plugin_flags
=
6270 # Enable --enable-host-shared.
6271 # Checked early to determine whether jit is an 'all' language
6272 # Check whether --enable-host-shared was given.
6273 if test "${enable_host_shared+set}" = set; then :
6274 enableval
=$enable_host_shared; host_shared
=$enableval
6281 # By default, C and C++ are the only stage 1 languages.
6282 stage1_languages
=,c
,
6284 # Target libraries that we bootstrap.
6285 bootstrap_target_libs
=,target-libgcc
,
6287 # Figure out what language subdirectories are present.
6288 # Look if the user specified --enable-languages="..."; if not, use
6289 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6291 # NB: embedded tabs in this IF block -- do not untabify
6292 if test -d ${srcdir}/gcc
; then
6293 if test x
"${enable_languages+set}" != xset
; then
6294 if test x
"${LANGUAGES+set}" = xset
; then
6295 enable_languages
="${LANGUAGES}"
6296 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
6298 enable_languages
=default
6301 if test x
"${enable_languages}" = x ||
6302 test x
"${enable_languages}" = xyes
;
6304 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
6308 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6310 # 'f95' is the old name for the 'fortran' language. We issue a warning
6311 # and make the substitution.
6312 case ,${enable_languages}, in
6314 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
6315 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6319 # If bootstrapping, C++ must be enabled.
6320 case ",$enable_languages,:$enable_bootstrap" in
6323 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
6324 enable_languages
="${enable_languages},c++"
6326 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
6331 # First scan to see if an enabled language requires some other language.
6332 # We assume that a given config-lang.in will list all the language
6333 # front ends it requires, even if some are required indirectly.
6334 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
6335 case ${lang_frag} in
6337 # The odd quoting in the next line works around
6338 # an apparent bug in bash 1.12 on linux.
6339 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
6341 # From the config-lang.in, get $language, $lang_requires, and
6342 # $lang_requires_boot_languages.
6345 lang_requires_boot_languages
=
6346 # set srcdir during sourcing lang_frag to the gcc dir.
6347 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6348 # polutes this shell
6349 saved_srcdir
=${srcdir}
6350 srcdir
=${srcdir}/gcc .
${lang_frag}
6351 srcdir
=${saved_srcdir}
6352 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
6353 case ,${enable_languages}, in
6358 echo " \`$other' language required by \`$language'; enabling" 1>&2
6359 enable_languages
="${enable_languages},${other}"
6363 for other
in ${lang_requires_boot_languages} ; do
6364 if test "$other" != "c"; then
6365 case ,${enable_stage1_languages}, in
6370 case ,${enable_languages}, in
6372 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6373 enable_stage1_languages
="$enable_stage1_languages,${other}"
6384 new_enable_languages
=,c
,
6386 # If LTO is enabled, add the LTO front end.
6387 if test "$enable_lto" = "yes" ; then
6388 case ,${enable_languages}, in
6390 *) enable_languages
="${enable_languages},lto" ;;
6392 if test "${build_lto_plugin}" = "yes" ; then
6393 configdirs
="$configdirs lto-plugin"
6397 # If we're building an offloading compiler, add the LTO front end.
6398 if test x
"$enable_as_accelerator_for" != x
; then
6399 case ,${enable_languages}, in
6401 *) enable_languages
="${enable_languages},lto" ;;
6405 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6406 potential_languages
=,c
,
6408 enabled_target_libs
=
6409 disabled_target_libs
=
6411 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
6412 case ${lang_frag} in
6414 # The odd quoting in the next line works around
6415 # an apparent bug in bash 1.12 on linux.
6416 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
6418 # From the config-lang.in, get $language, $target_libs,
6419 # $lang_dirs, $boot_language, and $build_by_default
6425 build_by_default
=yes
6426 # set srcdir during sourcing. See above about save & restore
6427 saved_srcdir
=${srcdir}
6428 srcdir
=${srcdir}/gcc .
${lang_frag}
6429 srcdir
=${saved_srcdir}
6430 if test x
${language} = x
; then
6431 echo "${lang_frag} doesn't set \$language." 1>&2
6435 if test "$language" = "c++"; then
6440 # C is always enabled, so no need to add it again
6441 if test "$language" != "c"; then
6442 case ,${enable_languages}, in
6444 # Language was explicitly selected; include it
6448 # All languages are enabled
6452 # 'default' was selected, select it if it is a default language
6453 add_this_lang
=${build_by_default}
6458 # Disable languages that need other directories if these aren't available.
6459 for i
in $subdir_requires; do
6460 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6461 case ${add_this_lang} in
6463 # Specifically requested language; tell them.
6464 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6468 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6469 add_this_lang
=unsupported
6473 add_this_lang
=unsupported
6478 # Disable Ada if no preexisting GNAT is available.
6479 case ${add_this_lang}:${language}:${have_gnat} in
6481 # Specifically requested language; tell them.
6482 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6486 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6487 add_this_lang
=unsupported
6491 add_this_lang
=unsupported
6495 # Disable jit if -enable-host-shared not specified
6496 case ${add_this_lang}:${language}:${host_shared} in
6498 # PR jit/64780: explicitly specify --enable-host-shared
6500 Enabling language \"jit\" requires --enable-host-shared.
6502 --enable-host-shared typically slows the rest of the compiler down by
6503 a few %, so you must explicitly enable it.
6505 If you want to build both the jit and the regular compiler, it is often
6506 best to do this via two separate configure/builds, in separate
6507 directories, to avoid imposing the performance cost of
6508 --enable-host-shared on the regular compiler." "$LINENO" 5
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6512 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6513 add_this_lang
=unsupported
6517 add_this_lang
=unsupported
6521 # Disable a language that is unsupported by the target.
6522 case "${add_this_lang}: $unsupported_languages " in
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6527 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6528 add_this_lang
=unsupported
6532 case $add_this_lang in
6534 # Remove language-dependent dirs.
6535 disabled_target_libs
="$disabled_target_libs $target_libs"
6536 noconfigdirs
="$noconfigdirs $lang_dirs"
6539 # Remove language-dependent dirs; still show language as supported.
6540 disabled_target_libs
="$disabled_target_libs $target_libs"
6541 noconfigdirs
="$noconfigdirs $lang_dirs"
6542 potential_languages
="${potential_languages}${language},"
6545 new_enable_languages
="${new_enable_languages}${language},"
6546 potential_languages
="${potential_languages}${language},"
6547 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
6548 enabled_target_libs
="$enabled_target_libs $target_libs"
6549 case "${boot_language}:,$enable_stage1_languages," in
6550 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
6551 # Add to (comma-separated) list of stage 1 languages.
6552 case ",$stage1_languages," in
6553 *,$language,* |
,yes, |
,all
,) ;;
6554 *) stage1_languages
="${stage1_languages}${language}," ;;
6556 # We need to bootstrap any supporting libraries.
6557 bootstrap_target_libs
="${bootstrap_target_libs}${target_libs},"
6566 # Add target libraries which are only needed for disabled languages
6568 if test -n "$disabled_target_libs"; then
6569 for dir
in $disabled_target_libs; do
6570 case " $enabled_target_libs " in
6572 *) noconfigdirs
="$noconfigdirs $dir" ;;
6577 # Check whether --enable-stage1-languages was given.
6578 if test "${enable_stage1_languages+set}" = set; then :
6579 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6581 # Set it to something that will have no effect in the loop below
6582 enable_stage1_languages
=c
;;
6584 enable_stage1_languages
=`echo $new_enable_languages | \
6585 sed -e "s/^,//" -e "s/,$//" ` ;;
6587 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
6588 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6591 # Add "good" languages from enable_stage1_languages to stage1_languages,
6592 # while "bad" languages go in missing_languages. Leave no duplicates.
6593 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6594 case $potential_languages in
6596 case $stage1_languages in
6598 *) stage1_languages
="$stage1_languages$i," ;;
6601 case $missing_languages in
6603 *) missing_languages
="$missing_languages$i," ;;
6610 # Remove leading/trailing commas that were added for simplicity
6611 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6612 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6613 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6614 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6616 if test "x$missing_languages" != x
; then
6618 The following requested languages could not be built: ${missing_languages}
6619 Supported languages are: ${potential_languages}" "$LINENO" 5
6621 if test "x$new_enable_languages" != "x$enable_languages"; then
6622 echo The following languages will be built
: ${new_enable_languages}
6623 enable_languages
="$new_enable_languages"
6627 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6630 # Handle --disable-<component> generically.
6631 for dir
in $configdirs $build_configdirs $target_configdirs ; do
6632 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6633 varname
=`echo $dirname | sed -e s/+/_/g`
6634 if eval test x\
${enable_${varname}} "=" xno
; then
6635 noconfigdirs
="$noconfigdirs $dir"
6639 # Check for Boehm's garbage collector
6640 # Check whether --enable-objc-gc was given.
6641 if test "${enable_objc_gc+set}" = set; then :
6642 enableval
=$enable_objc_gc;
6646 # Check whether --with-target-bdw-gc was given.
6647 if test "${with_target_bdw_gc+set}" = set; then :
6648 withval
=$with_target_bdw_gc;
6652 # Check whether --with-target-bdw-gc-include was given.
6653 if test "${with_target_bdw_gc_include+set}" = set; then :
6654 withval
=$with_target_bdw_gc_include;
6658 # Check whether --with-target-bdw-gc-lib was given.
6659 if test "${with_target_bdw_gc_lib+set}" = set; then :
6660 withval
=$with_target_bdw_gc_lib;
6664 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6666 $as_echo_n "checking for bdw garbage collector... " >&6; }
6667 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6669 $as_echo "using bdw-gc in default locations" >&6; }
6671 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
6672 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6673 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
6674 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6677 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6682 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6683 case ,${enable_languages}, in
6685 # Disable libitm, libsanitizer if we're not building libstdc++
6686 case "${noconfigdirs}" in
6687 *target-libstdc
++-v3*)
6688 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
6694 noconfigdirs
="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6698 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6699 # $build_configdirs and $target_configdirs.
6700 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6703 for dir
in .
$skipdirs $noconfigdirs ; do
6704 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6705 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6706 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6707 if test -r $srcdir/$dirname/configure
; then
6708 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6711 notsupp
="$notsupp $dir"
6715 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6716 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6717 if test -r $srcdir/$dirname/configure
; then
6718 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6721 notsupp
="$notsupp $dir"
6725 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6726 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6727 if test -r $srcdir/$dirname/configure
; then
6728 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6731 notsupp
="$notsupp $dir"
6737 # Quietly strip out all directories which aren't configurable in this tree.
6738 # This relies on all configurable subdirectories being autoconfiscated, which
6740 build_configdirs_all
="$build_configdirs"
6742 for i
in ${build_configdirs_all} ; do
6743 j
=`echo $i | sed -e s/build-//g`
6744 if test -f ${srcdir}/$j/configure
; then
6745 build_configdirs
="${build_configdirs} $i"
6749 configdirs_all
="$configdirs"
6751 for i
in ${configdirs_all} ; do
6752 if test -f ${srcdir}/$i/configure
; then
6753 configdirs
="${configdirs} $i"
6757 target_configdirs_all
="$target_configdirs"
6759 for i
in ${target_configdirs_all} ; do
6760 j
=`echo $i | sed -e s/target-//g`
6761 if test -f ${srcdir}/$j/configure
; then
6762 target_configdirs
="${target_configdirs} $i"
6766 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6767 # so we have to add it after the preceding checks.
6768 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6770 case " $configdirs " in
6772 # If we can build libiberty, we can also build libiberty-linker-plugin.
6773 configdirs
="$configdirs libiberty-linker-plugin"
6774 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
6775 --with-libiberty=../libiberty-linker-plugin";;
6777 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
6781 # Sometimes we have special requirements for the host libiberty.
6782 extra_host_libiberty_configure_flags
=
6783 extra_host_zlib_configure_flags
=
6784 case " $configdirs " in
6785 *" lto-plugin "* |
*" libcc1 "*)
6786 # When these are to be built as shared libraries, the same applies to
6788 extra_host_libiberty_configure_flags
=--enable-shared
6791 # When bfd is to be built as a shared library, the same applies to
6793 if test "$enable_shared" = "yes"; then
6794 extra_host_zlib_configure_flags
=--enable-host-shared
6801 # Produce a warning message for the subdirs we can't configure.
6802 # This isn't especially interesting in the Cygnus tree, but in the individual
6803 # FSF releases, it's important to let people know when their machine isn't
6804 # supported by the one or two programs in a package.
6806 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6807 # If $appdirs is non-empty, at least one of those directories must still
6808 # be configured, or we error out. (E.g., if the gas release supports a
6809 # specified target in some subdirs but not the gas subdir, we shouldn't
6810 # pretend that all is well.)
6811 if test -n "$appdirs" ; then
6812 for dir
in $appdirs ; do
6813 if test -r $dir/Makefile.
in ; then
6814 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
6818 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
6824 if test -n "$appdirs" ; then
6825 echo "*** This configuration is not supported by this package." 1>&2
6829 # Okay, some application will build, or we don't care to check. Still
6830 # notify of subdirs not getting built.
6831 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6832 echo " ${notsupp}" 1>&2
6833 echo " (Any other directories should still work fine.)" 1>&2
6841 # To find our prefix, in gcc_cv_tool_prefix.
6843 # The user is always right.
6844 if test "${PATH_SEPARATOR+set}" != set; then
6845 echo "#! /bin/sh" >conf$$.sh
6846 echo "exit 0" >>conf$$.sh
6848 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6857 get_gcc_base_ver
="cat"
6859 # Check whether --with-gcc-major-version-only was given.
6860 if test "${with_gcc_major_version_only+set}" = set; then :
6861 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
6862 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
6872 if test "x$exec_prefix" = xNONE
; then
6873 if test "x$prefix" = xNONE
; then
6874 gcc_cv_tool_prefix
=$ac_default_prefix
6876 gcc_cv_tool_prefix
=$prefix
6879 gcc_cv_tool_prefix
=$exec_prefix
6882 # If there is no compiler in the tree, use the PATH only. In any
6883 # case, if there is no compiler in the tree nobody should use
6884 # AS_FOR_TARGET and LD_FOR_TARGET.
6885 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
6886 if test x
$with_gcc_major_version_only = xyes
; then
6887 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6889 gcc_version
=`cat $srcdir/gcc/BASE-VER`
6891 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6892 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6893 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6894 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6895 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6896 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6901 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
6902 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6910 # Check whether --with-build-sysroot was given.
6911 if test "${with_build_sysroot+set}" = set; then :
6912 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
6913 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
6916 SYSROOT_CFLAGS_FOR_TARGET
=
6922 # Check whether --with-debug-prefix-map was given.
6923 if test "${with_debug_prefix_map+set}" = set; then :
6924 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
6925 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
6926 for debug_map
in $withval; do
6927 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6931 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
6936 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6937 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6938 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6939 # We want to ensure that TARGET libraries (which we know are built with
6940 # gcc) are built with "-O2 -g", so include those options when setting
6941 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6942 if test "x$CFLAGS_FOR_TARGET" = x
; then
6943 if test "x${is_cross_compiler}" = xyes
; then
6944 CFLAGS_FOR_TARGET
="-g -O2"
6946 CFLAGS_FOR_TARGET
=$CFLAGS
6949 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
6952 *" -g "* |
*" -g3 "*) ;;
6953 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
6959 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
6960 if test "x${is_cross_compiler}" = xyes
; then
6961 CXXFLAGS_FOR_TARGET
="-g -O2"
6963 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
6964 case " $CXXFLAGS " in
6966 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
6968 case " $CXXFLAGS " in
6969 *" -g "* |
*" -g3 "*) ;;
6970 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
6978 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6979 # the named directory are copied to $(tooldir)/sys-include.
6980 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
6981 if test x
${is_cross_compiler} = xno
; then
6982 echo 1>&2 '***' --with-headers is only supported when cross compiling
6985 if test x
"${with_headers}" != xyes
; then
6986 x
=${gcc_cv_tool_prefix}
6987 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6991 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6992 # the name directories are copied to $(tooldir)/lib. Multiple directories
6994 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
6995 if test x
${is_cross_compiler} = xno
; then
6996 echo 1>&2 '***' --with-libs is only supported when cross compiling
6999 if test x
"${with_libs}" != xyes
; then
7000 # Copy the libraries in reverse order, so that files in the first named
7001 # library override files in subsequent libraries.
7002 x
=${gcc_cv_tool_prefix}
7003 for l
in ${with_libs}; do
7004 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7009 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7011 # This is done by determining whether or not the appropriate directory
7012 # is available, and by checking whether or not specific configurations
7013 # have requested that this magic not happen.
7015 # The command line options always override the explicit settings in
7016 # configure.ac, and the settings in configure.ac override this magic.
7018 # If the default for a toolchain is to use GNU as and ld, and you don't
7019 # want to do that, then you should use the --without-gnu-as and
7020 # --without-gnu-ld options for the configure script. Similarly, if
7021 # the default is to use the included zlib and you don't want to do that,
7022 # you should use the --with-system-zlib option for the configure script.
7024 if test x
${use_gnu_as} = x
&&
7025 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
7027 extra_host_args
="$extra_host_args --with-gnu-as"
7030 if test x
${use_gnu_ld} = x
&&
7031 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
7033 extra_host_args
="$extra_host_args --with-gnu-ld"
7036 if test x
${use_included_zlib} = x
&&
7037 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
7040 with_system_zlib
=yes
7041 extra_host_args
="$extra_host_args --with-system-zlib"
7044 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7045 # can detect this case.
7047 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
7049 extra_host_args
="$extra_host_args --with-newlib"
7052 # Handle ${copy_dirs}
7053 set fnord
${copy_dirs}
7055 while test $# != 0 ; do
7056 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
7059 echo Copying
$1 to
$2
7061 # Use the install script to create the directory and all required
7062 # parent directories.
7063 if test -d $2 ; then
7067 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
7070 # Copy the directory, assuming we have tar.
7071 # FIXME: Should we use B in the second tar? Not all systems support it.
7072 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
7074 # It is the responsibility of the user to correctly adjust all
7075 # symlinks. If somebody can figure out how to handle them correctly
7076 # here, feel free to add the code.
7083 # Determine a target-dependent exec_prefix that the installed
7084 # gcc will search in. Keep this list sorted by triplet, with
7085 # the *-*-osname triplets last.
7088 i
[34567]86-pc-msdosdjgpp*)
7089 md_exec_prefix
=/dev
/env
/DJDIR
/bin
7094 md_exec_prefix
=/usr
/ccs
/bin
7098 extra_arflags_for_target
=
7099 extra_nmflags_for_target
=
7100 extra_ranlibflags_for_target
=
7101 target_makefile_frag
=/dev
/null
7104 target_makefile_frag
="config/mt-spu"
7106 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
7107 target_makefile_frag
="config/mt-sde"
7109 mipsisa
*-*-elfoabi*)
7110 target_makefile_frag
="config/mt-mips-elfoabi"
7112 mips
*-*-*linux
* | mips
*-*-gnu*)
7113 target_makefile_frag
="config/mt-mips-gnu"
7116 target_makefile_frag
="config/mt-nios2-elf"
7119 target_makefile_frag
="config/mt-android"
7121 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
7122 target_makefile_frag
="config/mt-gnu"
7124 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
7125 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7126 # commands to handle both 32-bit and 64-bit objects. These flags are
7127 # harmless if we're using GNU nm or ar.
7128 extra_arflags_for_target
=" -X32_64"
7129 extra_nmflags_for_target
=" -B -X32_64"
7133 alphaieee_frag
=/dev
/null
7136 # This just makes sure to use the -mieee option to build target libs.
7137 # This should probably be set individually by each library.
7138 alphaieee_frag
="config/mt-alphaieee"
7142 # If --enable-target-optspace always use -Os instead of -O2 to build
7143 # the target libraries, similarly if it is not specified, use -Os
7144 # on selected platforms.
7145 ospace_frag
=/dev
/null
7146 case "${enable_target_optspace}:${target}" in
7148 ospace_frag
="config/mt-ospace"
7151 ospace_frag
="config/mt-d30v"
7153 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
7154 ospace_frag
="config/mt-ospace"
7159 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7163 # Some systems (e.g., one of the i386-aix systems the gas testers are
7164 # using) don't handle "\$" correctly, so don't use it here.
7165 tooldir
='${exec_prefix}'/${target_noncanonical}
7166 build_tooldir
=${tooldir}
7168 # Create a .gdbinit file which runs the one in srcdir
7169 # and tells GDB to look there for source files.
7171 if test -r ${srcdir}/.gdbinit
; then
7174 *) cat > .
/.gdbinit
<<EOF
7178 source ${srcdir}/.gdbinit
7184 # Make sure that the compiler is able to generate an executable. If it
7185 # can't, we are probably in trouble. We don't care whether we can run the
7186 # executable--we might be using a cross compiler--we only care whether it
7187 # can be created. At this point the main configure script has set CC.
7189 echo "int main () { return 0; }" > conftest.c
7190 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7191 if test $?
= 0 ; then
7192 if test -s conftest ||
test -s conftest.exe
; then
7198 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7199 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7206 # Decide which environment variable is used to find dynamic libraries.
7208 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
7209 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
7210 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
7211 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
7214 # On systems where the dynamic library environment variable is PATH,
7215 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7216 # built executables to PATH.
7217 if test "$RPATH_ENVVAR" = PATH
; then
7218 GCC_SHLIB_SUBDIR
=/shlib
7223 # Adjust the toplevel makefile according to whether bootstrap was selected.
7224 case $enable_bootstrap in
7226 bootstrap_suffix
=bootstrap
7227 BUILD_CONFIG
=bootstrap-debug
7230 bootstrap_suffix
=no-bootstrap
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7236 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7239 # Check whether --with-build-config was given.
7240 if test "${with_build_config+set}" = set; then :
7241 withval
=$with_build_config; case $with_build_config in
7242 yes) with_build_config
= ;;
7243 no
) with_build_config
= BUILD_CONFIG
= ;;
7248 if test "x${with_build_config}" != x
; then
7249 BUILD_CONFIG
=$with_build_config
7251 case $BUILD_CONFIG in
7253 if echo "int f (void) { return 0; }" > conftest.c
&&
7254 ${CC} -c conftest.c
&&
7255 mv conftest.o conftest.o.g0
&&
7256 ${CC} -c -g conftest.c
&&
7257 mv conftest.o conftest.o.g
&&
7258 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
7263 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7268 $as_echo "$BUILD_CONFIG" >&6; }
7271 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7273 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7274 # Check whether --enable-vtable-verify was given.
7275 if test "${enable_vtable_verify+set}" = set; then :
7276 enableval
=$enable_vtable_verify; case "$enableval" in
7277 yes) enable_vtable_verify
=yes ;;
7278 no
) enable_vtable_verify
=no
;;
7279 *) enable_vtable_verify
=no
;;
7282 enable_vtable_verify
=no
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7286 $as_echo "$enable_vtable_verify" >&6; }
7288 # Record target_configdirs and the configure arguments for target and
7289 # build configuration in Makefile.
7290 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7291 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7292 bootstrap_fixincludes
=no
7294 # If we are building libgomp, bootstrap it.
7295 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
7296 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
7299 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7300 # or bootstrap-ubsan, bootstrap it.
7301 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
7302 case "$BUILD_CONFIG" in
7303 *bootstrap-asan
* |
*bootstrap-ubsan
* )
7304 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
7305 bootstrap_fixincludes
=yes
7310 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7311 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
7312 test "$enable_vtable_verify" != no
; then
7313 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
7316 # Determine whether gdb needs tk/tcl or not.
7317 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7318 # and in that case we want gdb to be built without tk. Ugh!
7319 # In fact I believe gdb is the *only* package directly dependent on tk,
7320 # so we should be able to put the 'maybe's in unconditionally and
7321 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7322 # 100% sure that that's safe though.
7324 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7325 case "$enable_gdbtk" in
7329 GDB_TK
="${gdb_tk}" ;;
7331 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7332 # distro. Eventually someone will fix this and move Insight, nee
7333 # gdbtk to a separate directory.
7334 if test -d ${srcdir}/gdb
/gdbtk
; then
7341 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7342 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7344 # gdb depends on gnulib and gdbsupport, but as nothing else does, only
7345 # include them if gdb is built.
7346 if echo " ${configdirs} " |
grep " gdb " > /dev
/null
2>&1 ; then
7347 # The Makefile provides the ordering, so it's enough here to add to
7349 configdirs
="${configdirs} gnulib gdbsupport"
7352 # Strip out unwanted targets.
7354 # While at that, we remove Makefiles if we were started for recursive
7355 # configuration, so that the top-level Makefile reconfigures them,
7356 # like we used to do when configure itself was recursive.
7358 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7359 # but now we're fixing up the Makefile ourselves with the additional
7360 # commands passed to AC_CONFIG_FILES. Use separate variables
7361 # extrasub-{build,host,target} not because there is any reason to split
7362 # the substitutions up that way, but only to remain below the limit of
7363 # 99 commands in a script, for HP-UX sed.
7365 # Do not nest @if/@endif or @unless/@endunless pairs, because
7366 # configure will not warn you at all.
7368 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7369 yes:yes:*\ gold\
*:*,c
++,*) ;;
7370 yes:yes:*\ gold\
*:*)
7371 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7376 for module
in ${build_configdirs} ; do
7377 if test -z "${no_recursion}" \
7378 && test -f ${build_subdir}/${module}/Makefile
; then
7379 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7380 rm -f ${build_subdir}/${module}/Makefile
7382 extrasub_build
="$extrasub_build
7383 /^@if build-$module\$/d
7384 /^@endif build-$module\$/d
7385 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7386 /^@if build-$module-$bootstrap_suffix\$/d
7387 /^@endif build-$module-$bootstrap_suffix\$/d
7388 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7391 for module
in ${configdirs} ; do
7392 if test -z "${no_recursion}"; then
7393 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
7394 if test -f ${file}; then
7395 echo 1>&2 "*** removing ${file} to force reconfigure"
7400 case ${module},${bootstrap_fixincludes} in
7401 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
7402 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
7404 extrasub_host
="$extrasub_host
7406 /^@endif $module\$/d
7407 /^@unless $module\$/,/^@endunless $module\$/d
7408 /^@if $module-$host_bootstrap_suffix\$/d
7409 /^@endif $module-$host_bootstrap_suffix\$/d
7410 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7413 for module
in ${target_configdirs} ; do
7414 if test -z "${no_recursion}" \
7415 && test -f ${target_subdir}/${module}/Makefile
; then
7416 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7417 rm -f ${target_subdir}/${module}/Makefile
7420 # We only bootstrap target libraries listed in bootstrap_target_libs.
7421 case $bootstrap_target_libs in
7422 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
7423 *) target_bootstrap_suffix
=no-bootstrap
;;
7426 extrasub_target
="$extrasub_target
7427 /^@if target-$module\$/d
7428 /^@endif target-$module\$/d
7429 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7430 /^@if target-$module-$target_bootstrap_suffix\$/d
7431 /^@endif target-$module-$target_bootstrap_suffix\$/d
7432 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7435 # Do the final fixup along with target modules.
7436 extrasub_target
="$extrasub_target
7441 # Create the serialization dependencies. This uses a temporary file.
7443 # Check whether --enable-serial-configure was given.
7444 if test "${enable_serial_configure+set}" = set; then :
7445 enableval
=$enable_serial_configure;
7449 case ${enable_serial_configure} in
7451 enable_serial_build_configure
=yes
7452 enable_serial_host_configure
=yes
7453 enable_serial_target_configure
=yes
7457 # These force 'configure's to be done one at a time, to avoid problems
7458 # with contention over a shared config.cache.
7460 echo '# serdep.tmp' > serdep.tmp
7462 test "x${enable_serial_build_configure}" = xyes
&&
7463 for item
in ${build_configdirs} ; do
7466 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
7471 test "x${enable_serial_host_configure}" = xyes
&&
7472 for item
in ${configdirs} ; do
7475 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
7480 test "x${enable_serial_target_configure}" = xyes
&&
7481 for item
in ${target_configdirs} ; do
7484 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
7488 serialization_dependencies
=serdep.tmp
7491 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7492 # target, nonopt, and variable assignments. These are the ones we
7493 # might not want to pass down to subconfigures. The exception being
7494 # --cache-file=/dev/null, which is used to turn off the use of cache
7495 # files altogether, and which should be passed on to subconfigures.
7496 # Also strip program-prefix, program-suffix, and program-transform-name,
7497 # so that we can pass down a consistent program-transform-name.
7502 eval "set -- $ac_configure_args"
7505 if test X
"$skip_next" = X
"yes"; then
7509 if test X
"$keep_next" = X
"yes"; then
7512 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7514 baseargs
="$baseargs '$ac_arg'"
7515 tbaseargs
="$tbaseargs '$ac_arg'"
7520 # Handle separated arguments. Based on the logic generated by
7523 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
7524 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
7525 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
7526 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
7540 --with-* |
--without-*)
7541 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7545 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
7548 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
7557 mpc | mpfr | gmp | isl
)
7558 # If we're processing --with-$lib, --with-$lib-include or
7559 # --with-$lib-lib, for one of the libs above, and target is
7560 # different from host, don't pass the current argument to any
7561 # target library's configure.
7562 if test x
$is_cross_compiler = xyes
; then
7571 --cache-file=/dev
/null | \
7572 -cache-file=/dev
/null
)
7573 # Handled here to avoid the test to skip args below.
7574 baseargs
="$baseargs '$ac_arg'"
7575 tbaseargs
="$tbaseargs '$ac_arg'"
7576 # Assert: $separate_arg should always be no.
7577 keep_next
=$separate_arg
7593 -program-prefix* | \
7594 -program-suffix* | \
7595 -program-transform-name* )
7596 skip_next
=$separate_arg
7600 # An option. Add it.
7603 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7605 baseargs
="$baseargs '$ac_arg'"
7606 if test X
"$skip_targ" = Xno
; then
7607 tbaseargs
="$tbaseargs '$ac_arg'"
7609 keep_next
=$separate_arg
7612 # Either a variable assignment, or a nonopt (triplet). Don't
7613 # pass it down; let the Makefile handle this.
7618 # Remove the initial space we just introduced and, as these will be
7619 # expanded by make, quote '$'.
7620 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7622 # Add in --program-transform-name, after --program-prefix and
7623 # --program-suffix have been applied to it. Autoconf has already
7624 # doubled dollar signs and backslashes in program_transform_name; we want
7625 # the backslashes un-doubled, and then the entire thing wrapped in single
7626 # quotes, because this will be expanded first by make and then by the shell.
7627 # Also, because we want to override the logic in subdir configure scripts to
7628 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7629 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7630 ${program_transform_name}
7632 gcc_transform_name
=`cat conftestsed.out`
7633 rm -f conftestsed.out
7634 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
7635 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7636 if test "$silent" = yes; then
7637 baseargs
="$baseargs --silent"
7638 tbaseargs
="$tbaseargs --silent"
7640 baseargs
="$baseargs --disable-option-checking"
7641 tbaseargs
="$tbaseargs --disable-option-checking"
7643 # Record and document user additions to sub configure arguments.
7648 # For the build-side libraries, we just need to pretend we're native,
7649 # and not use the same cache file. Multilibs are neither needed nor
7650 # desired. We can't even use the same cache file for all build-side
7651 # libraries, as they're compiled differently; some with C, some with
7652 # C++ or with different feature-enabling options.
7653 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
7655 # For host modules, accept cache file option, or specification as blank.
7656 case "${cache_file}" in
7658 cache_file_option
="" ;;
7659 /* |
[A-Za-z
]:[\\/]* ) # absolute path
7660 cache_file_option
="--cache-file=${cache_file}" ;;
7662 cache_file_option
="--cache-file=../${cache_file}" ;;
7665 # Host dirs don't like to share a cache file either, horribly enough.
7666 # This seems to be due to autoconf 2.5x stupidity.
7667 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7669 target_configargs
="$target_configargs ${tbaseargs}"
7671 # Passing a --with-cross-host argument lets the target libraries know
7672 # whether they are being built with a cross-compiler or being built
7673 # native. However, it would be better to use other mechanisms to make the
7674 # sorts of decisions they want to make on this basis. Please consider
7675 # this option to be deprecated. FIXME.
7676 if test x
${is_cross_compiler} = xyes
; then
7677 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
7680 # Special user-friendly check for native x86_64-linux build, if
7681 # multilib is not explicitly enabled.
7682 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7683 x86_64-
*linux
*:yes:$build:$build:)
7684 # Make sure we have a development environment that handles 32-bit
7686 echo "int main () { return 0; }" > conftest.c
7687 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7688 if test $?
= 0 ; then
7689 if test -s conftest ||
test -s conftest.exe
; then
7694 if test x
${dev64} != xyes
; then
7695 as_fn_error $?
"I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7700 # Default to --enable-multilib.
7701 if test x
${enable_multilib} = x
; then
7702 target_configargs
="--enable-multilib ${target_configargs}"
7705 # Pass --with-newlib if appropriate. Note that target_configdirs has
7706 # changed from the earlier setting of with_newlib.
7707 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
7708 target_configargs
="--with-newlib ${target_configargs}"
7711 # Different target subdirs use different values of certain variables
7712 # (notably CXX). Worse, multilibs use *lots* of different values.
7713 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7714 # it doesn't automatically accept command-line overrides of them.
7715 # This means it's not safe for target subdirs to share a cache file,
7716 # which is disgusting, but there you have it. Hopefully this can be
7717 # fixed in future. It's still worthwhile to use a cache file for each
7718 # directory. I think.
7720 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7721 # We need to pass --target, as newer autoconf's requires consistency
7722 # for target_alias and gcc doesn't manage it consistently.
7723 target_configargs
="--cache-file=./config.cache ${target_configargs}"
7726 case " $target_configdirs " in
7728 case " $target_configargs " in
7729 *" --with-newlib "*)
7732 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7736 # If we're not building GCC, don't discard standard headers.
7737 if test -d ${srcdir}/gcc
; then
7738 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
7740 if test "${build}" != "${host}"; then
7741 # On Canadian crosses, CC_FOR_TARGET will have already been set
7742 # by `configure', so we won't have an opportunity to add -Bgcc/
7743 # to it. This is right: we don't want to search that directory
7744 # for binaries, but we want the header files in there, so add
7746 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7748 # Someone might think of using the pre-installed headers on
7749 # Canadian crosses, in case the installed compiler is not fully
7750 # compatible with the compiler being built. In this case, it
7751 # would be better to flag an error than risking having
7752 # incompatible object files being constructed. We can't
7753 # guarantee that an error will be flagged, but let's hope the
7754 # compiler will do it, when presented with incompatible header
7759 case "${target}-${is_cross_compiler}" in
7760 i
[3456789]86-*-linux*-no)
7761 # Here host == target, so we don't need to build gcc,
7762 # so we don't want to discard standard headers.
7763 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7766 # If we're building newlib, use its generic headers last, but search
7767 # for any libc-related directories first (so make it the last -B
7769 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7771 # If we're building libgloss, find the startup file, simulator library
7772 # and linker script.
7773 case " $target_configdirs " in
7775 # Look for startup file, simulator library and maybe linker script.
7776 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7777 # Look for libnosys.a in case the target needs it.
7778 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7779 # Most targets have the linker script in the source directory.
7780 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7791 x86_64-
*mingw
* |
*-w64-mingw*)
7792 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7793 # however, use a symlink named 'mingw' in ${prefix} .
7794 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7797 # MinGW can't be handled as Cygwin above since it does not use newlib.
7798 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'
7802 # Allow the user to override the flags for
7803 # our build compiler if desired.
7804 if test x
"${build}" = x
"${host}" ; then
7805 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
7806 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7807 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7810 # On Canadian crosses, we'll be searching the right directories for
7811 # the previously-installed cross compiler, so don't bother to add
7812 # flags for directories within the install tree of the compiler
7813 # being built; programs in there won't even run.
7814 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7815 # Search for pre-installed headers if nothing else fits.
7816 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7819 if test "x
${use_gnu_ld}" = x &&
7820 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
7821 # Arrange for us to find uninstalled linker scripts.
7822 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7825 # Search for other target-specific linker scripts and such.
7828 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7832 # Makefile fragments.
7833 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7835 eval fragval=\$$frag
7836 if test $fragval != /dev/null; then
7837 eval $frag=${srcdir}/$fragval
7845 # Miscellanea: directories, flags, etc.
7854 # Build module lists & subconfigure args.
7858 # Host module lists & subconfigure args.
7863 # Target module lists & subconfigure args.
7884 # Generate default definitions for YACC, M4, LEX and other programs that run
7885 # on the build machine. These are used if the Makefile can't locate these
7886 # programs in objdir.
7887 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7889 for ac_prog in 'bison -y' byacc yacc
7891 # Extract the first word of "$ac_prog", so it can be a program name with args.
7892 set dummy $ac_prog; ac_word=$2
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7894 $as_echo_n "checking
for $ac_word...
" >&6; }
7895 if ${ac_cv_prog_YACC+:} false; then :
7896 $as_echo_n "(cached
) " >&6
7898 if test -n "$YACC"; then
7899 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7908 ac_cv_prog_YACC="$ac_prog"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7918 YACC=$ac_cv_prog_YACC
7919 if test -n "$YACC"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
7921 $as_echo "$YACC" >&6; }
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7924 $as_echo "no
" >&6; }
7928 test -n "$YACC" && break
7930 test -n "$YACC" || YACC="$MISSING bison
-y"
7932 case " $build_configdirs " in
7933 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7936 for ac_prog in bison
7938 # Extract the first word of "$ac_prog", so it can be a program name with args.
7939 set dummy $ac_prog; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7941 $as_echo_n "checking
for $ac_word...
" >&6; }
7942 if ${ac_cv_prog_BISON+:} false; then :
7943 $as_echo_n "(cached
) " >&6
7945 if test -n "$BISON"; then
7946 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7955 ac_cv_prog_BISON="$ac_prog"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7965 BISON=$ac_cv_prog_BISON
7966 if test -n "$BISON"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
7968 $as_echo "$BISON" >&6; }
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7971 $as_echo "no
" >&6; }
7975 test -n "$BISON" && break
7977 test -n "$BISON" || BISON="$MISSING bison
"
7979 case " $build_configdirs " in
7980 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7983 for ac_prog in gm4 gnum4 m4
7985 # Extract the first word of "$ac_prog", so it can be a program name with args.
7986 set dummy $ac_prog; ac_word=$2
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7988 $as_echo_n "checking
for $ac_word...
" >&6; }
7989 if ${ac_cv_prog_M4+:} false; then :
7990 $as_echo_n "(cached
) " >&6
7992 if test -n "$M4"; then
7993 ac_cv_prog_M4="$M4" # Let the user override the test.
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8002 ac_cv_prog_M4="$ac_prog"
8003 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8013 if test -n "$M4"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
8015 $as_echo "$M4" >&6; }
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8018 $as_echo "no
" >&6; }
8022 test -n "$M4" && break
8024 test -n "$M4" || M4="$MISSING m4"
8026 case " $build_configdirs " in
8027 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8030 for ac_prog in flex lex
8032 # Extract the first word of "$ac_prog", so it can be a program name with args.
8033 set dummy $ac_prog; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8035 $as_echo_n "checking
for $ac_word...
" >&6; }
8036 if ${ac_cv_prog_LEX+:} false; then :
8037 $as_echo_n "(cached
) " >&6
8039 if test -n "$LEX"; then
8040 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8049 ac_cv_prog_LEX="$ac_prog"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8060 if test -n "$LEX"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
8062 $as_echo "$LEX" >&6; }
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8065 $as_echo "no
" >&6; }
8069 test -n "$LEX" && break
8071 test -n "$LEX" || LEX="$MISSING flex
"
8073 case " $build_configdirs " in
8074 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8075 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8080 # Extract the first word of "$ac_prog", so it can be a program name with args.
8081 set dummy $ac_prog; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8083 $as_echo_n "checking
for $ac_word...
" >&6; }
8084 if ${ac_cv_prog_FLEX+:} false; then :
8085 $as_echo_n "(cached
) " >&6
8087 if test -n "$FLEX"; then
8088 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097 ac_cv_prog_FLEX="$ac_prog"
8098 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8107 FLEX=$ac_cv_prog_FLEX
8108 if test -n "$FLEX"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
8110 $as_echo "$FLEX" >&6; }
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8113 $as_echo "no
" >&6; }
8117 test -n "$FLEX" && break
8119 test -n "$FLEX" || FLEX="$MISSING flex
"
8121 case " $build_configdirs " in
8122 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8125 for ac_prog in makeinfo
8127 # Extract the first word of "$ac_prog", so it can be a program name with args.
8128 set dummy $ac_prog; ac_word=$2
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8130 $as_echo_n "checking
for $ac_word...
" >&6; }
8131 if ${ac_cv_prog_MAKEINFO+:} false; then :
8132 $as_echo_n "(cached
) " >&6
8134 if test -n "$MAKEINFO"; then
8135 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8144 ac_cv_prog_MAKEINFO="$ac_prog"
8145 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8154 MAKEINFO=$ac_cv_prog_MAKEINFO
8155 if test -n "$MAKEINFO"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
8157 $as_echo "$MAKEINFO" >&6; }
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8160 $as_echo "no
" >&6; }
8164 test -n "$MAKEINFO" && break
8166 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
8168 case " $build_configdirs " in
8169 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8172 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8173 # higher, else we use the "missing
" dummy.
8174 if ${MAKEINFO} --version \
8175 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8178 MAKEINFO="$MISSING makeinfo
"
8184 # FIXME: expect and dejagnu may become build tools?
8186 for ac_prog in expect
8188 # Extract the first word of "$ac_prog", so it can be a program name with args.
8189 set dummy $ac_prog; ac_word=$2
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8191 $as_echo_n "checking
for $ac_word...
" >&6; }
8192 if ${ac_cv_prog_EXPECT+:} false; then :
8193 $as_echo_n "(cached
) " >&6
8195 if test -n "$EXPECT"; then
8196 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 test -z "$as_dir" && as_dir=.
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8205 ac_cv_prog_EXPECT="$ac_prog"
8206 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8215 EXPECT=$ac_cv_prog_EXPECT
8216 if test -n "$EXPECT"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
8218 $as_echo "$EXPECT" >&6; }
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8221 $as_echo "no
" >&6; }
8225 test -n "$EXPECT" && break
8227 test -n "$EXPECT" || EXPECT="expect
"
8229 case " $configdirs " in
8231 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8235 for ac_prog in runtest
8237 # Extract the first word of "$ac_prog", so it can be a program name with args.
8238 set dummy $ac_prog; ac_word=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8240 $as_echo_n "checking
for $ac_word...
" >&6; }
8241 if ${ac_cv_prog_RUNTEST+:} false; then :
8242 $as_echo_n "(cached
) " >&6
8244 if test -n "$RUNTEST"; then
8245 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8254 ac_cv_prog_RUNTEST="$ac_prog"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8264 RUNTEST=$ac_cv_prog_RUNTEST
8265 if test -n "$RUNTEST"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
8267 $as_echo "$RUNTEST" >&6; }
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8270 $as_echo "no
" >&6; }
8274 test -n "$RUNTEST" && break
8276 test -n "$RUNTEST" || RUNTEST="runtest
"
8278 case " $configdirs " in
8280 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8287 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8288 ncn_target_tool_prefix=
8289 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8293 if test -n "$AR"; then
8295 elif test -n "$ac_cv_prog_AR"; then
8299 if test -n "$ac_cv_prog_AR"; then
8300 for ncn_progname in ar; do
8301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8302 set dummy ${ncn_progname}; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8304 $as_echo_n "checking
for $ac_word...
" >&6; }
8305 if ${ac_cv_prog_AR+:} false; then :
8306 $as_echo_n "(cached
) " >&6
8308 if test -n "$AR"; then
8309 ac_cv_prog_AR="$AR" # Let the user override the test.
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318 ac_cv_prog_AR="${ncn_progname}"
8319 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8329 if test -n "$AR"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
8331 $as_echo "$AR" >&6; }
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8334 $as_echo "no
" >&6; }
8341 for ncn_progname in ar; do
8342 if test -n "$ncn_tool_prefix"; then
8343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8344 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8346 $as_echo_n "checking
for $ac_word...
" >&6; }
8347 if ${ac_cv_prog_AR+:} false; then :
8348 $as_echo_n "(cached
) " >&6
8350 if test -n "$AR"; then
8351 ac_cv_prog_AR="$AR" # Let the user override the test.
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357 test -z "$as_dir" && as_dir=.
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8360 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8361 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8371 if test -n "$AR"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
8373 $as_echo "$AR" >&6; }
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8376 $as_echo "no
" >&6; }
8381 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8383 set dummy ${ncn_progname}; ac_word=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8385 $as_echo_n "checking
for $ac_word...
" >&6; }
8386 if ${ac_cv_prog_AR+:} false; then :
8387 $as_echo_n "(cached
) " >&6
8389 if test -n "$AR"; then
8390 ac_cv_prog_AR="$AR" # Let the user override the test.
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8399 ac_cv_prog_AR="${ncn_progname}"
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8410 if test -n "$AR"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
8412 $as_echo "$AR" >&6; }
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8415 $as_echo "no
" >&6; }
8420 test -n "$ac_cv_prog_AR" && break
8423 if test -z "$ac_cv_prog_AR" ; then
8425 if test $build = $host ; then
8428 AR="${ncn_tool_prefix}$2"
8434 if test -n "$AS"; then
8436 elif test -n "$ac_cv_prog_AS"; then
8440 if test -n "$ac_cv_prog_AS"; then
8441 for ncn_progname in as; do
8442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8443 set dummy ${ncn_progname}; ac_word=$2
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8445 $as_echo_n "checking
for $ac_word...
" >&6; }
8446 if ${ac_cv_prog_AS+:} false; then :
8447 $as_echo_n "(cached
) " >&6
8449 if test -n "$AS"; then
8450 ac_cv_prog_AS="$AS" # Let the user override the test.
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8459 ac_cv_prog_AS="${ncn_progname}"
8460 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8470 if test -n "$AS"; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
8472 $as_echo "$AS" >&6; }
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8475 $as_echo "no
" >&6; }
8482 for ncn_progname in as; do
8483 if test -n "$ncn_tool_prefix"; then
8484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8485 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8487 $as_echo_n "checking
for $ac_word...
" >&6; }
8488 if ${ac_cv_prog_AS+:} false; then :
8489 $as_echo_n "(cached
) " >&6
8491 if test -n "$AS"; then
8492 ac_cv_prog_AS="$AS" # Let the user override the test.
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 test -z "$as_dir" && as_dir=.
8499 for ac_exec_ext in '' $ac_executable_extensions; do
8500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8501 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8502 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8512 if test -n "$AS"; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
8514 $as_echo "$AS" >&6; }
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8517 $as_echo "no
" >&6; }
8522 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8524 set dummy ${ncn_progname}; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8526 $as_echo_n "checking
for $ac_word...
" >&6; }
8527 if ${ac_cv_prog_AS+:} false; then :
8528 $as_echo_n "(cached
) " >&6
8530 if test -n "$AS"; then
8531 ac_cv_prog_AS="$AS" # Let the user override the test.
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540 ac_cv_prog_AS="${ncn_progname}"
8541 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8551 if test -n "$AS"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
8553 $as_echo "$AS" >&6; }
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8556 $as_echo "no
" >&6; }
8561 test -n "$ac_cv_prog_AS" && break
8564 if test -z "$ac_cv_prog_AS" ; then
8566 if test $build = $host ; then
8569 AS="${ncn_tool_prefix}$2"
8575 if test -n "$DLLTOOL"; then
8576 ac_cv_prog_DLLTOOL=$DLLTOOL
8577 elif test -n "$ac_cv_prog_DLLTOOL"; then
8578 DLLTOOL=$ac_cv_prog_DLLTOOL
8581 if test -n "$ac_cv_prog_DLLTOOL"; then
8582 for ncn_progname in dlltool; do
8583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8584 set dummy ${ncn_progname}; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8586 $as_echo_n "checking
for $ac_word...
" >&6; }
8587 if ${ac_cv_prog_DLLTOOL+:} false; then :
8588 $as_echo_n "(cached
) " >&6
8590 if test -n "$DLLTOOL"; then
8591 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597 test -z "$as_dir" && as_dir=.
8598 for ac_exec_ext in '' $ac_executable_extensions; do
8599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8600 ac_cv_prog_DLLTOOL="${ncn_progname}"
8601 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8610 DLLTOOL=$ac_cv_prog_DLLTOOL
8611 if test -n "$DLLTOOL"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
8613 $as_echo "$DLLTOOL" >&6; }
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8616 $as_echo "no
" >&6; }
8623 for ncn_progname in dlltool; do
8624 if test -n "$ncn_tool_prefix"; then
8625 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8626 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8628 $as_echo_n "checking
for $ac_word...
" >&6; }
8629 if ${ac_cv_prog_DLLTOOL+:} false; then :
8630 $as_echo_n "(cached
) " >&6
8632 if test -n "$DLLTOOL"; then
8633 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
8641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8642 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8643 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8652 DLLTOOL=$ac_cv_prog_DLLTOOL
8653 if test -n "$DLLTOOL"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
8655 $as_echo "$DLLTOOL" >&6; }
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8658 $as_echo "no
" >&6; }
8663 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8665 set dummy ${ncn_progname}; ac_word=$2
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8667 $as_echo_n "checking
for $ac_word...
" >&6; }
8668 if ${ac_cv_prog_DLLTOOL+:} false; then :
8669 $as_echo_n "(cached
) " >&6
8671 if test -n "$DLLTOOL"; then
8672 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8681 ac_cv_prog_DLLTOOL="${ncn_progname}"
8682 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8691 DLLTOOL=$ac_cv_prog_DLLTOOL
8692 if test -n "$DLLTOOL"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
8694 $as_echo "$DLLTOOL" >&6; }
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8697 $as_echo "no
" >&6; }
8702 test -n "$ac_cv_prog_DLLTOOL" && break
8705 if test -z "$ac_cv_prog_DLLTOOL" ; then
8707 if test $build = $host ; then
8710 DLLTOOL="${ncn_tool_prefix}$2"
8716 if test -n "$LD"; then
8718 elif test -n "$ac_cv_prog_LD"; then
8722 if test -n "$ac_cv_prog_LD"; then
8723 for ncn_progname in ld; do
8724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8725 set dummy ${ncn_progname}; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8727 $as_echo_n "checking
for $ac_word...
" >&6; }
8728 if ${ac_cv_prog_LD+:} false; then :
8729 $as_echo_n "(cached
) " >&6
8731 if test -n "$LD"; then
8732 ac_cv_prog_LD="$LD" # Let the user override the test.
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 test -z "$as_dir" && as_dir=.
8739 for ac_exec_ext in '' $ac_executable_extensions; do
8740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8741 ac_cv_prog_LD="${ncn_progname}"
8742 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8752 if test -n "$LD"; then
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
8754 $as_echo "$LD" >&6; }
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8757 $as_echo "no
" >&6; }
8764 for ncn_progname in ld; do
8765 if test -n "$ncn_tool_prefix"; then
8766 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8767 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8769 $as_echo_n "checking
for $ac_word...
" >&6; }
8770 if ${ac_cv_prog_LD+:} false; then :
8771 $as_echo_n "(cached
) " >&6
8773 if test -n "$LD"; then
8774 ac_cv_prog_LD="$LD" # Let the user override the test.
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 test -z "$as_dir" && as_dir=.
8781 for ac_exec_ext in '' $ac_executable_extensions; do
8782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8783 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8784 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8794 if test -n "$LD"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
8796 $as_echo "$LD" >&6; }
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8799 $as_echo "no
" >&6; }
8804 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8806 set dummy ${ncn_progname}; ac_word=$2
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8808 $as_echo_n "checking
for $ac_word...
" >&6; }
8809 if ${ac_cv_prog_LD+:} false; then :
8810 $as_echo_n "(cached
) " >&6
8812 if test -n "$LD"; then
8813 ac_cv_prog_LD="$LD" # Let the user override the test.
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 test -z "$as_dir" && as_dir=.
8820 for ac_exec_ext in '' $ac_executable_extensions; do
8821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8822 ac_cv_prog_LD="${ncn_progname}"
8823 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8833 if test -n "$LD"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
8835 $as_echo "$LD" >&6; }
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8838 $as_echo "no
" >&6; }
8843 test -n "$ac_cv_prog_LD" && break
8846 if test -z "$ac_cv_prog_LD" ; then
8848 if test $build = $host ; then
8851 LD="${ncn_tool_prefix}$2"
8857 if test -n "$LIPO"; then
8858 ac_cv_prog_LIPO=$LIPO
8859 elif test -n "$ac_cv_prog_LIPO"; then
8860 LIPO=$ac_cv_prog_LIPO
8863 if test -n "$ac_cv_prog_LIPO"; then
8864 for ncn_progname in lipo; do
8865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8866 set dummy ${ncn_progname}; ac_word=$2
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8868 $as_echo_n "checking
for $ac_word...
" >&6; }
8869 if ${ac_cv_prog_LIPO+:} false; then :
8870 $as_echo_n "(cached
) " >&6
8872 if test -n "$LIPO"; then
8873 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879 test -z "$as_dir" && as_dir=.
8880 for ac_exec_ext in '' $ac_executable_extensions; do
8881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8882 ac_cv_prog_LIPO="${ncn_progname}"
8883 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8892 LIPO=$ac_cv_prog_LIPO
8893 if test -n "$LIPO"; then
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
8895 $as_echo "$LIPO" >&6; }
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8898 $as_echo "no
" >&6; }
8905 for ncn_progname in lipo; do
8906 if test -n "$ncn_tool_prefix"; then
8907 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8908 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8910 $as_echo_n "checking
for $ac_word...
" >&6; }
8911 if ${ac_cv_prog_LIPO+:} false; then :
8912 $as_echo_n "(cached
) " >&6
8914 if test -n "$LIPO"; then
8915 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921 test -z "$as_dir" && as_dir=.
8922 for ac_exec_ext in '' $ac_executable_extensions; do
8923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8924 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8925 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8934 LIPO=$ac_cv_prog_LIPO
8935 if test -n "$LIPO"; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
8937 $as_echo "$LIPO" >&6; }
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8940 $as_echo "no
" >&6; }
8945 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8947 set dummy ${ncn_progname}; ac_word=$2
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8949 $as_echo_n "checking
for $ac_word...
" >&6; }
8950 if ${ac_cv_prog_LIPO+:} false; then :
8951 $as_echo_n "(cached
) " >&6
8953 if test -n "$LIPO"; then
8954 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960 test -z "$as_dir" && as_dir=.
8961 for ac_exec_ext in '' $ac_executable_extensions; do
8962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8963 ac_cv_prog_LIPO="${ncn_progname}"
8964 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8973 LIPO=$ac_cv_prog_LIPO
8974 if test -n "$LIPO"; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
8976 $as_echo "$LIPO" >&6; }
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8979 $as_echo "no
" >&6; }
8984 test -n "$ac_cv_prog_LIPO" && break
8987 if test -z "$ac_cv_prog_LIPO" ; then
8989 if test $build = $host ; then
8992 LIPO="${ncn_tool_prefix}$2"
8998 if test -n "$NM"; then
9000 elif test -n "$ac_cv_prog_NM"; then
9004 if test -n "$ac_cv_prog_NM"; then
9005 for ncn_progname in nm; do
9006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9007 set dummy ${ncn_progname}; ac_word=$2
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9009 $as_echo_n "checking
for $ac_word...
" >&6; }
9010 if ${ac_cv_prog_NM+:} false; then :
9011 $as_echo_n "(cached
) " >&6
9013 if test -n "$NM"; then
9014 ac_cv_prog_NM="$NM" # Let the user override the test.
9016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020 test -z "$as_dir" && as_dir=.
9021 for ac_exec_ext in '' $ac_executable_extensions; do
9022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9023 ac_cv_prog_NM="${ncn_progname}"
9024 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9034 if test -n "$NM"; then
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
9036 $as_echo "$NM" >&6; }
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9039 $as_echo "no
" >&6; }
9046 for ncn_progname in nm; do
9047 if test -n "$ncn_tool_prefix"; then
9048 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9049 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9051 $as_echo_n "checking
for $ac_word...
" >&6; }
9052 if ${ac_cv_prog_NM+:} false; then :
9053 $as_echo_n "(cached
) " >&6
9055 if test -n "$NM"; then
9056 ac_cv_prog_NM="$NM" # Let the user override the test.
9058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062 test -z "$as_dir" && as_dir=.
9063 for ac_exec_ext in '' $ac_executable_extensions; do
9064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9065 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9066 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9076 if test -n "$NM"; then
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
9078 $as_echo "$NM" >&6; }
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9081 $as_echo "no
" >&6; }
9086 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9088 set dummy ${ncn_progname}; ac_word=$2
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9090 $as_echo_n "checking
for $ac_word...
" >&6; }
9091 if ${ac_cv_prog_NM+:} false; then :
9092 $as_echo_n "(cached
) " >&6
9094 if test -n "$NM"; then
9095 ac_cv_prog_NM="$NM" # Let the user override the test.
9097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101 test -z "$as_dir" && as_dir=.
9102 for ac_exec_ext in '' $ac_executable_extensions; do
9103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9104 ac_cv_prog_NM="${ncn_progname}"
9105 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9115 if test -n "$NM"; then
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
9117 $as_echo "$NM" >&6; }
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9120 $as_echo "no
" >&6; }
9125 test -n "$ac_cv_prog_NM" && break
9128 if test -z "$ac_cv_prog_NM" ; then
9130 if test $build = $host ; then
9133 NM="${ncn_tool_prefix}$2"
9139 if test -n "$RANLIB"; then
9140 ac_cv_prog_RANLIB=$RANLIB
9141 elif test -n "$ac_cv_prog_RANLIB"; then
9142 RANLIB=$ac_cv_prog_RANLIB
9145 if test -n "$ac_cv_prog_RANLIB"; then
9146 for ncn_progname in ranlib; do
9147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9148 set dummy ${ncn_progname}; ac_word=$2
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9150 $as_echo_n "checking
for $ac_word...
" >&6; }
9151 if ${ac_cv_prog_RANLIB+:} false; then :
9152 $as_echo_n "(cached
) " >&6
9154 if test -n "$RANLIB"; then
9155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161 test -z "$as_dir" && as_dir=.
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9164 ac_cv_prog_RANLIB="${ncn_progname}"
9165 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9174 RANLIB=$ac_cv_prog_RANLIB
9175 if test -n "$RANLIB"; then
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
9177 $as_echo "$RANLIB" >&6; }
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9180 $as_echo "no
" >&6; }
9187 for ncn_progname in ranlib; do
9188 if test -n "$ncn_tool_prefix"; then
9189 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9190 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9192 $as_echo_n "checking
for $ac_word...
" >&6; }
9193 if ${ac_cv_prog_RANLIB+:} false; then :
9194 $as_echo_n "(cached
) " >&6
9196 if test -n "$RANLIB"; then
9197 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203 test -z "$as_dir" && as_dir=.
9204 for ac_exec_ext in '' $ac_executable_extensions; do
9205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9206 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9207 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9216 RANLIB=$ac_cv_prog_RANLIB
9217 if test -n "$RANLIB"; then
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
9219 $as_echo "$RANLIB" >&6; }
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9222 $as_echo "no
" >&6; }
9227 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9229 set dummy ${ncn_progname}; ac_word=$2
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9231 $as_echo_n "checking
for $ac_word...
" >&6; }
9232 if ${ac_cv_prog_RANLIB+:} false; then :
9233 $as_echo_n "(cached
) " >&6
9235 if test -n "$RANLIB"; then
9236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9242 test -z "$as_dir" && as_dir=.
9243 for ac_exec_ext in '' $ac_executable_extensions; do
9244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9245 ac_cv_prog_RANLIB="${ncn_progname}"
9246 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9255 RANLIB=$ac_cv_prog_RANLIB
9256 if test -n "$RANLIB"; then
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
9258 $as_echo "$RANLIB" >&6; }
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9261 $as_echo "no
" >&6; }
9266 test -n "$ac_cv_prog_RANLIB" && break
9269 if test -z "$ac_cv_prog_RANLIB" ; then
9275 if test -n "$STRIP"; then
9276 ac_cv_prog_STRIP=$STRIP
9277 elif test -n "$ac_cv_prog_STRIP"; then
9278 STRIP=$ac_cv_prog_STRIP
9281 if test -n "$ac_cv_prog_STRIP"; then
9282 for ncn_progname in strip; do
9283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9284 set dummy ${ncn_progname}; ac_word=$2
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9286 $as_echo_n "checking
for $ac_word...
" >&6; }
9287 if ${ac_cv_prog_STRIP+:} false; then :
9288 $as_echo_n "(cached
) " >&6
9290 if test -n "$STRIP"; then
9291 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297 test -z "$as_dir" && as_dir=.
9298 for ac_exec_ext in '' $ac_executable_extensions; do
9299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9300 ac_cv_prog_STRIP="${ncn_progname}"
9301 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9310 STRIP=$ac_cv_prog_STRIP
9311 if test -n "$STRIP"; then
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
9313 $as_echo "$STRIP" >&6; }
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9316 $as_echo "no
" >&6; }
9323 for ncn_progname in strip; do
9324 if test -n "$ncn_tool_prefix"; then
9325 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9326 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9328 $as_echo_n "checking
for $ac_word...
" >&6; }
9329 if ${ac_cv_prog_STRIP+:} false; then :
9330 $as_echo_n "(cached
) " >&6
9332 if test -n "$STRIP"; then
9333 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339 test -z "$as_dir" && as_dir=.
9340 for ac_exec_ext in '' $ac_executable_extensions; do
9341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9342 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9343 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9352 STRIP=$ac_cv_prog_STRIP
9353 if test -n "$STRIP"; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
9355 $as_echo "$STRIP" >&6; }
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9358 $as_echo "no
" >&6; }
9363 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9365 set dummy ${ncn_progname}; ac_word=$2
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9367 $as_echo_n "checking
for $ac_word...
" >&6; }
9368 if ${ac_cv_prog_STRIP+:} false; then :
9369 $as_echo_n "(cached
) " >&6
9371 if test -n "$STRIP"; then
9372 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378 test -z "$as_dir" && as_dir=.
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9381 ac_cv_prog_STRIP="${ncn_progname}"
9382 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9391 STRIP=$ac_cv_prog_STRIP
9392 if test -n "$STRIP"; then
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
9394 $as_echo "$STRIP" >&6; }
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9397 $as_echo "no
" >&6; }
9402 test -n "$ac_cv_prog_STRIP" && break
9405 if test -z "$ac_cv_prog_STRIP" ; then
9411 if test -n "$WINDRES"; then
9412 ac_cv_prog_WINDRES=$WINDRES
9413 elif test -n "$ac_cv_prog_WINDRES"; then
9414 WINDRES=$ac_cv_prog_WINDRES
9417 if test -n "$ac_cv_prog_WINDRES"; then
9418 for ncn_progname in windres; do
9419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9420 set dummy ${ncn_progname}; ac_word=$2
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9422 $as_echo_n "checking
for $ac_word...
" >&6; }
9423 if ${ac_cv_prog_WINDRES+:} false; then :
9424 $as_echo_n "(cached
) " >&6
9426 if test -n "$WINDRES"; then
9427 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433 test -z "$as_dir" && as_dir=.
9434 for ac_exec_ext in '' $ac_executable_extensions; do
9435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9436 ac_cv_prog_WINDRES="${ncn_progname}"
9437 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9446 WINDRES=$ac_cv_prog_WINDRES
9447 if test -n "$WINDRES"; then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
9449 $as_echo "$WINDRES" >&6; }
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9452 $as_echo "no
" >&6; }
9459 for ncn_progname in windres; do
9460 if test -n "$ncn_tool_prefix"; then
9461 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9462 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9464 $as_echo_n "checking
for $ac_word...
" >&6; }
9465 if ${ac_cv_prog_WINDRES+:} false; then :
9466 $as_echo_n "(cached
) " >&6
9468 if test -n "$WINDRES"; then
9469 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9478 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9479 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9488 WINDRES=$ac_cv_prog_WINDRES
9489 if test -n "$WINDRES"; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
9491 $as_echo "$WINDRES" >&6; }
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9494 $as_echo "no
" >&6; }
9499 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9501 set dummy ${ncn_progname}; ac_word=$2
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9503 $as_echo_n "checking
for $ac_word...
" >&6; }
9504 if ${ac_cv_prog_WINDRES+:} false; then :
9505 $as_echo_n "(cached
) " >&6
9507 if test -n "$WINDRES"; then
9508 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514 test -z "$as_dir" && as_dir=.
9515 for ac_exec_ext in '' $ac_executable_extensions; do
9516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9517 ac_cv_prog_WINDRES="${ncn_progname}"
9518 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9527 WINDRES=$ac_cv_prog_WINDRES
9528 if test -n "$WINDRES"; then
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
9530 $as_echo "$WINDRES" >&6; }
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9533 $as_echo "no
" >&6; }
9538 test -n "$ac_cv_prog_WINDRES" && break
9541 if test -z "$ac_cv_prog_WINDRES" ; then
9543 if test $build = $host ; then
9546 WINDRES="${ncn_tool_prefix}$2"
9552 if test -n "$WINDMC"; then
9553 ac_cv_prog_WINDMC=$WINDMC
9554 elif test -n "$ac_cv_prog_WINDMC"; then
9555 WINDMC=$ac_cv_prog_WINDMC
9558 if test -n "$ac_cv_prog_WINDMC"; then
9559 for ncn_progname in windmc; do
9560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9561 set dummy ${ncn_progname}; ac_word=$2
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9563 $as_echo_n "checking
for $ac_word...
" >&6; }
9564 if ${ac_cv_prog_WINDMC+:} false; then :
9565 $as_echo_n "(cached
) " >&6
9567 if test -n "$WINDMC"; then
9568 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574 test -z "$as_dir" && as_dir=.
9575 for ac_exec_ext in '' $ac_executable_extensions; do
9576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9577 ac_cv_prog_WINDMC="${ncn_progname}"
9578 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9587 WINDMC=$ac_cv_prog_WINDMC
9588 if test -n "$WINDMC"; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
9590 $as_echo "$WINDMC" >&6; }
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9593 $as_echo "no
" >&6; }
9600 for ncn_progname in windmc; do
9601 if test -n "$ncn_tool_prefix"; then
9602 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9603 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9605 $as_echo_n "checking
for $ac_word...
" >&6; }
9606 if ${ac_cv_prog_WINDMC+:} false; then :
9607 $as_echo_n "(cached
) " >&6
9609 if test -n "$WINDMC"; then
9610 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9619 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9620 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9629 WINDMC=$ac_cv_prog_WINDMC
9630 if test -n "$WINDMC"; then
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
9632 $as_echo "$WINDMC" >&6; }
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9635 $as_echo "no
" >&6; }
9640 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9642 set dummy ${ncn_progname}; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9644 $as_echo_n "checking
for $ac_word...
" >&6; }
9645 if ${ac_cv_prog_WINDMC+:} false; then :
9646 $as_echo_n "(cached
) " >&6
9648 if test -n "$WINDMC"; then
9649 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 test -z "$as_dir" && as_dir=.
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9658 ac_cv_prog_WINDMC="${ncn_progname}"
9659 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9668 WINDMC=$ac_cv_prog_WINDMC
9669 if test -n "$WINDMC"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
9671 $as_echo "$WINDMC" >&6; }
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9674 $as_echo "no
" >&6; }
9679 test -n "$ac_cv_prog_WINDMC" && break
9682 if test -z "$ac_cv_prog_WINDMC" ; then
9684 if test $build = $host ; then
9687 WINDMC="${ncn_tool_prefix}$2"
9693 if test -n "$OBJCOPY"; then
9694 ac_cv_prog_OBJCOPY=$OBJCOPY
9695 elif test -n "$ac_cv_prog_OBJCOPY"; then
9696 OBJCOPY=$ac_cv_prog_OBJCOPY
9699 if test -n "$ac_cv_prog_OBJCOPY"; then
9700 for ncn_progname in objcopy; do
9701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9702 set dummy ${ncn_progname}; ac_word=$2
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9704 $as_echo_n "checking
for $ac_word...
" >&6; }
9705 if ${ac_cv_prog_OBJCOPY+:} false; then :
9706 $as_echo_n "(cached
) " >&6
9708 if test -n "$OBJCOPY"; then
9709 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9715 test -z "$as_dir" && as_dir=.
9716 for ac_exec_ext in '' $ac_executable_extensions; do
9717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9718 ac_cv_prog_OBJCOPY="${ncn_progname}"
9719 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9728 OBJCOPY=$ac_cv_prog_OBJCOPY
9729 if test -n "$OBJCOPY"; then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
9731 $as_echo "$OBJCOPY" >&6; }
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9734 $as_echo "no
" >&6; }
9741 for ncn_progname in objcopy; do
9742 if test -n "$ncn_tool_prefix"; then
9743 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9744 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9746 $as_echo_n "checking
for $ac_word...
" >&6; }
9747 if ${ac_cv_prog_OBJCOPY+:} false; then :
9748 $as_echo_n "(cached
) " >&6
9750 if test -n "$OBJCOPY"; then
9751 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9757 test -z "$as_dir" && as_dir=.
9758 for ac_exec_ext in '' $ac_executable_extensions; do
9759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9760 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9761 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9770 OBJCOPY=$ac_cv_prog_OBJCOPY
9771 if test -n "$OBJCOPY"; then
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
9773 $as_echo "$OBJCOPY" >&6; }
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9776 $as_echo "no
" >&6; }
9781 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9783 set dummy ${ncn_progname}; ac_word=$2
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9785 $as_echo_n "checking
for $ac_word...
" >&6; }
9786 if ${ac_cv_prog_OBJCOPY+:} false; then :
9787 $as_echo_n "(cached
) " >&6
9789 if test -n "$OBJCOPY"; then
9790 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796 test -z "$as_dir" && as_dir=.
9797 for ac_exec_ext in '' $ac_executable_extensions; do
9798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9799 ac_cv_prog_OBJCOPY="${ncn_progname}"
9800 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9809 OBJCOPY=$ac_cv_prog_OBJCOPY
9810 if test -n "$OBJCOPY"; then
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
9812 $as_echo "$OBJCOPY" >&6; }
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9815 $as_echo "no
" >&6; }
9820 test -n "$ac_cv_prog_OBJCOPY" && break
9823 if test -z "$ac_cv_prog_OBJCOPY" ; then
9825 if test $build = $host ; then
9828 OBJCOPY="${ncn_tool_prefix}$2"
9834 if test -n "$OBJDUMP"; then
9835 ac_cv_prog_OBJDUMP=$OBJDUMP
9836 elif test -n "$ac_cv_prog_OBJDUMP"; then
9837 OBJDUMP=$ac_cv_prog_OBJDUMP
9840 if test -n "$ac_cv_prog_OBJDUMP"; then
9841 for ncn_progname in objdump; do
9842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9843 set dummy ${ncn_progname}; ac_word=$2
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9845 $as_echo_n "checking
for $ac_word...
" >&6; }
9846 if ${ac_cv_prog_OBJDUMP+:} false; then :
9847 $as_echo_n "(cached
) " >&6
9849 if test -n "$OBJDUMP"; then
9850 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856 test -z "$as_dir" && as_dir=.
9857 for ac_exec_ext in '' $ac_executable_extensions; do
9858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9859 ac_cv_prog_OBJDUMP="${ncn_progname}"
9860 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9869 OBJDUMP=$ac_cv_prog_OBJDUMP
9870 if test -n "$OBJDUMP"; then
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
9872 $as_echo "$OBJDUMP" >&6; }
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9875 $as_echo "no
" >&6; }
9882 for ncn_progname in objdump; do
9883 if test -n "$ncn_tool_prefix"; then
9884 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9885 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9887 $as_echo_n "checking
for $ac_word...
" >&6; }
9888 if ${ac_cv_prog_OBJDUMP+:} false; then :
9889 $as_echo_n "(cached
) " >&6
9891 if test -n "$OBJDUMP"; then
9892 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9901 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9902 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9911 OBJDUMP=$ac_cv_prog_OBJDUMP
9912 if test -n "$OBJDUMP"; then
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
9914 $as_echo "$OBJDUMP" >&6; }
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9917 $as_echo "no
" >&6; }
9922 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9924 set dummy ${ncn_progname}; ac_word=$2
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9926 $as_echo_n "checking
for $ac_word...
" >&6; }
9927 if ${ac_cv_prog_OBJDUMP+:} false; then :
9928 $as_echo_n "(cached
) " >&6
9930 if test -n "$OBJDUMP"; then
9931 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937 test -z "$as_dir" && as_dir=.
9938 for ac_exec_ext in '' $ac_executable_extensions; do
9939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9940 ac_cv_prog_OBJDUMP="${ncn_progname}"
9941 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9950 OBJDUMP=$ac_cv_prog_OBJDUMP
9951 if test -n "$OBJDUMP"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
9953 $as_echo "$OBJDUMP" >&6; }
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9956 $as_echo "no
" >&6; }
9961 test -n "$ac_cv_prog_OBJDUMP" && break
9964 if test -z "$ac_cv_prog_OBJDUMP" ; then
9966 if test $build = $host ; then
9969 OBJDUMP="${ncn_tool_prefix}$2"
9975 if test -n "$READELF"; then
9976 ac_cv_prog_READELF=$READELF
9977 elif test -n "$ac_cv_prog_READELF"; then
9978 READELF=$ac_cv_prog_READELF
9981 if test -n "$ac_cv_prog_READELF"; then
9982 for ncn_progname in readelf; do
9983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9984 set dummy ${ncn_progname}; ac_word=$2
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9986 $as_echo_n "checking
for $ac_word...
" >&6; }
9987 if ${ac_cv_prog_READELF+:} false; then :
9988 $as_echo_n "(cached
) " >&6
9990 if test -n "$READELF"; then
9991 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9997 test -z "$as_dir" && as_dir=.
9998 for ac_exec_ext in '' $ac_executable_extensions; do
9999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10000 ac_cv_prog_READELF="${ncn_progname}"
10001 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10010 READELF=$ac_cv_prog_READELF
10011 if test -n "$READELF"; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
10013 $as_echo "$READELF" >&6; }
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10016 $as_echo "no
" >&6; }
10023 for ncn_progname in readelf; do
10024 if test -n "$ncn_tool_prefix"; then
10025 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10026 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10028 $as_echo_n "checking
for $ac_word...
" >&6; }
10029 if ${ac_cv_prog_READELF+:} false; then :
10030 $as_echo_n "(cached
) " >&6
10032 if test -n "$READELF"; then
10033 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10036 for as_dir in $PATH
10039 test -z "$as_dir" && as_dir=.
10040 for ac_exec_ext in '' $ac_executable_extensions; do
10041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10042 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10043 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10052 READELF=$ac_cv_prog_READELF
10053 if test -n "$READELF"; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
10055 $as_echo "$READELF" >&6; }
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10058 $as_echo "no
" >&6; }
10063 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10065 set dummy ${ncn_progname}; ac_word=$2
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10067 $as_echo_n "checking
for $ac_word...
" >&6; }
10068 if ${ac_cv_prog_READELF+:} false; then :
10069 $as_echo_n "(cached
) " >&6
10071 if test -n "$READELF"; then
10072 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH
10078 test -z "$as_dir" && as_dir=.
10079 for ac_exec_ext in '' $ac_executable_extensions; do
10080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10081 ac_cv_prog_READELF="${ncn_progname}"
10082 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10091 READELF=$ac_cv_prog_READELF
10092 if test -n "$READELF"; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
10094 $as_echo "$READELF" >&6; }
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10097 $as_echo "no
" >&6; }
10102 test -n "$ac_cv_prog_READELF" && break
10105 if test -z "$ac_cv_prog_READELF" ; then
10107 if test $build = $host ; then
10110 READELF="${ncn_tool_prefix}$2"
10121 # Check whether --with-build-time-tools was given.
10122 if test "${with_build_time_tools+set}" = set; then :
10123 withval=$with_build_time_tools; case x"$withval" in
10126 with_build_time_tools=
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
10128 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
10132 with_build_time_tools=
10138 if test -n "$CC_FOR_TARGET"; then
10139 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10140 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10141 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10144 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10145 for ncn_progname in cc gcc; do
10146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10147 set dummy ${ncn_progname}; ac_word=$2
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10149 $as_echo_n "checking
for $ac_word...
" >&6; }
10150 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10151 $as_echo_n "(cached
) " >&6
10153 if test -n "$CC_FOR_TARGET"; then
10154 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in $PATH
10160 test -z "$as_dir" && as_dir=.
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10163 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10173 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10174 if test -n "$CC_FOR_TARGET"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
10176 $as_echo "$CC_FOR_TARGET" >&6; }
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10179 $as_echo "no
" >&6; }
10186 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10187 for ncn_progname in cc gcc; do
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
10189 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
10190 if test -x $with_build_time_tools/${ncn_progname}; then
10191 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
10193 $as_echo "yes" >&6; }
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10197 $as_echo "no
" >&6; }
10202 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10203 for ncn_progname in cc gcc; do
10204 if test -n "$ncn_target_tool_prefix"; then
10205 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10206 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10208 $as_echo_n "checking
for $ac_word...
" >&6; }
10209 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10210 $as_echo_n "(cached
) " >&6
10212 if test -n "$CC_FOR_TARGET"; then
10213 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216 for as_dir in $PATH
10219 test -z "$as_dir" && as_dir=.
10220 for ac_exec_ext in '' $ac_executable_extensions; do
10221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10222 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10223 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10232 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10233 if test -n "$CC_FOR_TARGET"; then
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
10235 $as_echo "$CC_FOR_TARGET" >&6; }
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10238 $as_echo "no
" >&6; }
10243 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10245 set dummy ${ncn_progname}; ac_word=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10247 $as_echo_n "checking
for $ac_word...
" >&6; }
10248 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10249 $as_echo_n "(cached
) " >&6
10251 if test -n "$CC_FOR_TARGET"; then
10252 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255 for as_dir in $PATH
10258 test -z "$as_dir" && as_dir=.
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10261 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10262 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10271 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10272 if test -n "$CC_FOR_TARGET"; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
10274 $as_echo "$CC_FOR_TARGET" >&6; }
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10277 $as_echo "no
" >&6; }
10282 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10286 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10288 if test $build = $target ; then
10291 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10294 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10299 if test -n "$CXX_FOR_TARGET"; then
10300 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10301 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10302 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10305 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10306 for ncn_progname in c++ g++ cxx gxx; do
10307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10308 set dummy ${ncn_progname}; ac_word=$2
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10310 $as_echo_n "checking
for $ac_word...
" >&6; }
10311 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10312 $as_echo_n "(cached
) " >&6
10314 if test -n "$CXX_FOR_TARGET"; then
10315 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10321 test -z "$as_dir" && as_dir=.
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10324 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10325 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10334 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10335 if test -n "$CXX_FOR_TARGET"; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
10337 $as_echo "$CXX_FOR_TARGET" >&6; }
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10340 $as_echo "no
" >&6; }
10347 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10348 for ncn_progname in c++ g++ cxx gxx; do
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
10350 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
10351 if test -x $with_build_time_tools/${ncn_progname}; then
10352 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
10354 $as_echo "yes" >&6; }
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10358 $as_echo "no
" >&6; }
10363 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10364 for ncn_progname in c++ g++ cxx gxx; do
10365 if test -n "$ncn_target_tool_prefix"; then
10366 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10367 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10369 $as_echo_n "checking
for $ac_word...
" >&6; }
10370 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10371 $as_echo_n "(cached
) " >&6
10373 if test -n "$CXX_FOR_TARGET"; then
10374 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377 for as_dir in $PATH
10380 test -z "$as_dir" && as_dir=.
10381 for ac_exec_ext in '' $ac_executable_extensions; do
10382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10383 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10384 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10393 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10394 if test -n "$CXX_FOR_TARGET"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
10396 $as_echo "$CXX_FOR_TARGET" >&6; }
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10399 $as_echo "no
" >&6; }
10404 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10406 set dummy ${ncn_progname}; ac_word=$2
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10408 $as_echo_n "checking
for $ac_word...
" >&6; }
10409 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10410 $as_echo_n "(cached
) " >&6
10412 if test -n "$CXX_FOR_TARGET"; then
10413 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416 for as_dir in $PATH
10419 test -z "$as_dir" && as_dir=.
10420 for ac_exec_ext in '' $ac_executable_extensions; do
10421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10422 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10423 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10432 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10433 if test -n "$CXX_FOR_TARGET"; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
10435 $as_echo "$CXX_FOR_TARGET" >&6; }
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10438 $as_echo "no
" >&6; }
10443 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10447 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10448 set dummy c++ g++ cxx gxx
10449 if test $build = $target ; then
10450 CXX_FOR_TARGET="$2"
10452 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10455 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10460 if test -n "$GCC_FOR_TARGET"; then
10461 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10462 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10463 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10466 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10467 for ncn_progname in gcc; do
10468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10469 set dummy ${ncn_progname}; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10471 $as_echo_n "checking
for $ac_word...
" >&6; }
10472 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10473 $as_echo_n "(cached
) " >&6
10475 if test -n "$GCC_FOR_TARGET"; then
10476 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH
10482 test -z "$as_dir" && as_dir=.
10483 for ac_exec_ext in '' $ac_executable_extensions; do
10484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10485 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10486 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10495 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10496 if test -n "$GCC_FOR_TARGET"; then
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
10498 $as_echo "$GCC_FOR_TARGET" >&6; }
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10501 $as_echo "no
" >&6; }
10508 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10509 for ncn_progname in gcc; do
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
10511 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
10512 if test -x $with_build_time_tools/${ncn_progname}; then
10513 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
10515 $as_echo "yes" >&6; }
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10519 $as_echo "no
" >&6; }
10524 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10525 for ncn_progname in gcc; do
10526 if test -n "$ncn_target_tool_prefix"; then
10527 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10528 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10530 $as_echo_n "checking
for $ac_word...
" >&6; }
10531 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10532 $as_echo_n "(cached
) " >&6
10534 if test -n "$GCC_FOR_TARGET"; then
10535 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538 for as_dir in $PATH
10541 test -z "$as_dir" && as_dir=.
10542 for ac_exec_ext in '' $ac_executable_extensions; do
10543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10544 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10545 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10554 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10555 if test -n "$GCC_FOR_TARGET"; then
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
10557 $as_echo "$GCC_FOR_TARGET" >&6; }
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10560 $as_echo "no
" >&6; }
10565 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10567 set dummy ${ncn_progname}; ac_word=$2
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10569 $as_echo_n "checking
for $ac_word...
" >&6; }
10570 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10571 $as_echo_n "(cached
) " >&6
10573 if test -n "$GCC_FOR_TARGET"; then
10574 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10577 for as_dir in $PATH
10580 test -z "$as_dir" && as_dir=.
10581 for ac_exec_ext in '' $ac_executable_extensions; do
10582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10583 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10584 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10593 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10594 if test -n "$GCC_FOR_TARGET"; then
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
10596 $as_echo "$GCC_FOR_TARGET" >&6; }
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10599 $as_echo "no
" >&6; }
10604 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10608 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10609 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10611 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10616 if test -n "$GFORTRAN_FOR_TARGET"; then
10617 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10618 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10619 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10622 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10623 for ncn_progname in gfortran; do
10624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10625 set dummy ${ncn_progname}; ac_word=$2
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10627 $as_echo_n "checking
for $ac_word...
" >&6; }
10628 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10629 $as_echo_n "(cached
) " >&6
10631 if test -n "$GFORTRAN_FOR_TARGET"; then
10632 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635 for as_dir in $PATH
10638 test -z "$as_dir" && as_dir=.
10639 for ac_exec_ext in '' $ac_executable_extensions; do
10640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10641 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10642 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10651 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10652 if test -n "$GFORTRAN_FOR_TARGET"; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
10654 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10657 $as_echo "no
" >&6; }
10664 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10665 for ncn_progname in gfortran; do
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
10667 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
10668 if test -x $with_build_time_tools/${ncn_progname}; then
10669 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
10671 $as_echo "yes" >&6; }
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10675 $as_echo "no
" >&6; }
10680 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10681 for ncn_progname in gfortran; do
10682 if test -n "$ncn_target_tool_prefix"; then
10683 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10684 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10686 $as_echo_n "checking
for $ac_word...
" >&6; }
10687 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10688 $as_echo_n "(cached
) " >&6
10690 if test -n "$GFORTRAN_FOR_TARGET"; then
10691 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10694 for as_dir in $PATH
10697 test -z "$as_dir" && as_dir=.
10698 for ac_exec_ext in '' $ac_executable_extensions; do
10699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10700 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10701 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10710 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10711 if test -n "$GFORTRAN_FOR_TARGET"; then
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
10713 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10716 $as_echo "no
" >&6; }
10721 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10723 set dummy ${ncn_progname}; ac_word=$2
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10725 $as_echo_n "checking
for $ac_word...
" >&6; }
10726 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10727 $as_echo_n "(cached
) " >&6
10729 if test -n "$GFORTRAN_FOR_TARGET"; then
10730 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733 for as_dir in $PATH
10736 test -z "$as_dir" && as_dir=.
10737 for ac_exec_ext in '' $ac_executable_extensions; do
10738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10739 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10740 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10749 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10750 if test -n "$GFORTRAN_FOR_TARGET"; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
10752 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10755 $as_echo "no
" >&6; }
10760 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10764 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10766 if test $build = $target ; then
10767 GFORTRAN_FOR_TARGET="$2"
10769 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10772 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10777 if test -n "$GOC_FOR_TARGET"; then
10778 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10779 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10780 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10783 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10784 for ncn_progname in gccgo; do
10785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10786 set dummy ${ncn_progname}; ac_word=$2
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10788 $as_echo_n "checking
for $ac_word...
" >&6; }
10789 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10790 $as_echo_n "(cached
) " >&6
10792 if test -n "$GOC_FOR_TARGET"; then
10793 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in $PATH
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10802 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10812 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10813 if test -n "$GOC_FOR_TARGET"; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
10815 $as_echo "$GOC_FOR_TARGET" >&6; }
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10818 $as_echo "no
" >&6; }
10825 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10826 for ncn_progname in gccgo; do
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
10828 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
10829 if test -x $with_build_time_tools/${ncn_progname}; then
10830 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
10832 $as_echo "yes" >&6; }
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10836 $as_echo "no
" >&6; }
10841 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10842 for ncn_progname in gccgo; do
10843 if test -n "$ncn_target_tool_prefix"; then
10844 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10845 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10847 $as_echo_n "checking
for $ac_word...
" >&6; }
10848 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10849 $as_echo_n "(cached
) " >&6
10851 if test -n "$GOC_FOR_TARGET"; then
10852 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10855 for as_dir in $PATH
10858 test -z "$as_dir" && as_dir=.
10859 for ac_exec_ext in '' $ac_executable_extensions; do
10860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10861 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10862 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10871 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10872 if test -n "$GOC_FOR_TARGET"; then
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
10874 $as_echo "$GOC_FOR_TARGET" >&6; }
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10877 $as_echo "no
" >&6; }
10882 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10884 set dummy ${ncn_progname}; ac_word=$2
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10886 $as_echo_n "checking
for $ac_word...
" >&6; }
10887 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10888 $as_echo_n "(cached
) " >&6
10890 if test -n "$GOC_FOR_TARGET"; then
10891 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $PATH
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10900 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10901 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10910 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10911 if test -n "$GOC_FOR_TARGET"; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
10913 $as_echo "$GOC_FOR_TARGET" >&6; }
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10916 $as_echo "no
" >&6; }
10921 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10925 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10927 if test $build = $target ; then
10928 GOC_FOR_TARGET="$2"
10930 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10933 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10938 cat > conftest.c << \EOF
10943 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10944 have_gcc_for_target=yes
10946 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10947 have_gcc_for_target=no
10954 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10955 if test -n "$with_build_time_tools"; then
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
10957 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
10958 if test -x $with_build_time_tools/ar; then
10959 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10960 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
10962 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10965 $as_echo "no
" >&6; }
10967 elif test $build != $host && test $have_gcc_for_target = yes; then
10968 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10969 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10970 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10973 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10974 # Extract the first word of "ar", so it can be a program name with args.
10975 set dummy ar; ac_word=$2
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10977 $as_echo_n "checking
for $ac_word...
" >&6; }
10978 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
10979 $as_echo_n "(cached
) " >&6
10981 case $AR_FOR_TARGET in
10983 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987 for as_dir in $gcc_cv_tool_dirs
10990 test -z "$as_dir" && as_dir=.
10991 for ac_exec_ext in '' $ac_executable_extensions; do
10992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10993 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10994 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11004 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11005 if test -n "$AR_FOR_TARGET"; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
11007 $as_echo "$AR_FOR_TARGET" >&6; }
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11010 $as_echo "no
" >&6; }
11015 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11018 if test -n "$AR_FOR_TARGET"; then
11019 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11020 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11021 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11024 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11025 for ncn_progname in ar; do
11026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11027 set dummy ${ncn_progname}; ac_word=$2
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11029 $as_echo_n "checking
for $ac_word...
" >&6; }
11030 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11031 $as_echo_n "(cached
) " >&6
11033 if test -n "$AR_FOR_TARGET"; then
11034 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037 for as_dir in $PATH
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11043 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11044 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11053 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11054 if test -n "$AR_FOR_TARGET"; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
11056 $as_echo "$AR_FOR_TARGET" >&6; }
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11059 $as_echo "no
" >&6; }
11066 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11067 for ncn_progname in ar; do
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
11069 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
11070 if test -x $with_build_time_tools/${ncn_progname}; then
11071 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
11073 $as_echo "yes" >&6; }
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11077 $as_echo "no
" >&6; }
11082 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11083 for ncn_progname in ar; do
11084 if test -n "$ncn_target_tool_prefix"; then
11085 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11086 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11088 $as_echo_n "checking
for $ac_word...
" >&6; }
11089 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11090 $as_echo_n "(cached
) " >&6
11092 if test -n "$AR_FOR_TARGET"; then
11093 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in $PATH
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11102 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11103 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11112 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11113 if test -n "$AR_FOR_TARGET"; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
11115 $as_echo "$AR_FOR_TARGET" >&6; }
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11118 $as_echo "no
" >&6; }
11123 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11125 set dummy ${ncn_progname}; ac_word=$2
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11127 $as_echo_n "checking
for $ac_word...
" >&6; }
11128 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11129 $as_echo_n "(cached
) " >&6
11131 if test -n "$AR_FOR_TARGET"; then
11132 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135 for as_dir in $PATH
11138 test -z "$as_dir" && as_dir=.
11139 for ac_exec_ext in '' $ac_executable_extensions; do
11140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11141 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11142 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11151 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11152 if test -n "$AR_FOR_TARGET"; then
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
11154 $as_echo "$AR_FOR_TARGET" >&6; }
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11157 $as_echo "no
" >&6; }
11162 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11166 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11168 if test $build = $target ; then
11171 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11174 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11178 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11184 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11185 if test -n "$with_build_time_tools"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
11187 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
11188 if test -x $with_build_time_tools/as; then
11189 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11190 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
11192 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11195 $as_echo "no
" >&6; }
11197 elif test $build != $host && test $have_gcc_for_target = yes; then
11198 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11199 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11200 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11203 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11204 # Extract the first word of "as
", so it can be a program name with args.
11205 set dummy as; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11207 $as_echo_n "checking
for $ac_word...
" >&6; }
11208 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11209 $as_echo_n "(cached
) " >&6
11211 case $AS_FOR_TARGET in
11213 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $gcc_cv_tool_dirs
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11223 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11224 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11234 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11235 if test -n "$AS_FOR_TARGET"; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
11237 $as_echo "$AS_FOR_TARGET" >&6; }
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11240 $as_echo "no
" >&6; }
11245 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11248 if test -n "$AS_FOR_TARGET"; then
11249 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11250 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11251 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11254 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11255 for ncn_progname in as; do
11256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11257 set dummy ${ncn_progname}; ac_word=$2
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11259 $as_echo_n "checking
for $ac_word...
" >&6; }
11260 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11261 $as_echo_n "(cached
) " >&6
11263 if test -n "$AS_FOR_TARGET"; then
11264 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11270 test -z "$as_dir" && as_dir=.
11271 for ac_exec_ext in '' $ac_executable_extensions; do
11272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11273 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11274 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11283 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11284 if test -n "$AS_FOR_TARGET"; then
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
11286 $as_echo "$AS_FOR_TARGET" >&6; }
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11289 $as_echo "no
" >&6; }
11296 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11297 for ncn_progname in as; do
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
11299 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
11300 if test -x $with_build_time_tools/${ncn_progname}; then
11301 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
11303 $as_echo "yes" >&6; }
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11307 $as_echo "no
" >&6; }
11312 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11313 for ncn_progname in as; do
11314 if test -n "$ncn_target_tool_prefix"; then
11315 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11316 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11318 $as_echo_n "checking
for $ac_word...
" >&6; }
11319 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11320 $as_echo_n "(cached
) " >&6
11322 if test -n "$AS_FOR_TARGET"; then
11323 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
11329 test -z "$as_dir" && as_dir=.
11330 for ac_exec_ext in '' $ac_executable_extensions; do
11331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11332 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11333 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11342 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11343 if test -n "$AS_FOR_TARGET"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
11345 $as_echo "$AS_FOR_TARGET" >&6; }
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11348 $as_echo "no
" >&6; }
11353 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11355 set dummy ${ncn_progname}; ac_word=$2
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11357 $as_echo_n "checking
for $ac_word...
" >&6; }
11358 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11359 $as_echo_n "(cached
) " >&6
11361 if test -n "$AS_FOR_TARGET"; then
11362 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365 for as_dir in $PATH
11368 test -z "$as_dir" && as_dir=.
11369 for ac_exec_ext in '' $ac_executable_extensions; do
11370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11371 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11372 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11381 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11382 if test -n "$AS_FOR_TARGET"; then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
11384 $as_echo "$AS_FOR_TARGET" >&6; }
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11387 $as_echo "no
" >&6; }
11392 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11396 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11398 if test $build = $target ; then
11401 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11404 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11408 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11414 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11415 if test -n "$with_build_time_tools"; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
11417 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
11418 if test -x $with_build_time_tools/dlltool; then
11419 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11420 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11422 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11425 $as_echo "no
" >&6; }
11427 elif test $build != $host && test $have_gcc_for_target = yes; then
11428 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11429 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11430 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11433 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11434 # Extract the first word of "dlltool
", so it can be a program name with args.
11435 set dummy dlltool; ac_word=$2
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11437 $as_echo_n "checking
for $ac_word...
" >&6; }
11438 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11439 $as_echo_n "(cached
) " >&6
11441 case $DLLTOOL_FOR_TARGET in
11443 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447 for as_dir in $gcc_cv_tool_dirs
11450 test -z "$as_dir" && as_dir=.
11451 for ac_exec_ext in '' $ac_executable_extensions; do
11452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11453 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11454 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11464 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11465 if test -n "$DLLTOOL_FOR_TARGET"; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
11467 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11470 $as_echo "no
" >&6; }
11475 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11478 if test -n "$DLLTOOL_FOR_TARGET"; then
11479 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11480 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11481 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11484 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11485 for ncn_progname in dlltool; do
11486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11487 set dummy ${ncn_progname}; ac_word=$2
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11489 $as_echo_n "checking
for $ac_word...
" >&6; }
11490 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11491 $as_echo_n "(cached
) " >&6
11493 if test -n "$DLLTOOL_FOR_TARGET"; then
11494 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497 for as_dir in $PATH
11500 test -z "$as_dir" && as_dir=.
11501 for ac_exec_ext in '' $ac_executable_extensions; do
11502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11503 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11504 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11513 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11514 if test -n "$DLLTOOL_FOR_TARGET"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
11516 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11519 $as_echo "no
" >&6; }
11526 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11527 for ncn_progname in dlltool; do
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
11529 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
11530 if test -x $with_build_time_tools/${ncn_progname}; then
11531 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
11533 $as_echo "yes" >&6; }
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11537 $as_echo "no
" >&6; }
11542 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11543 for ncn_progname in dlltool; do
11544 if test -n "$ncn_target_tool_prefix"; then
11545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11546 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11548 $as_echo_n "checking
for $ac_word...
" >&6; }
11549 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11550 $as_echo_n "(cached
) " >&6
11552 if test -n "$DLLTOOL_FOR_TARGET"; then
11553 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11562 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11563 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11572 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11573 if test -n "$DLLTOOL_FOR_TARGET"; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
11575 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11578 $as_echo "no
" >&6; }
11583 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11585 set dummy ${ncn_progname}; ac_word=$2
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11587 $as_echo_n "checking
for $ac_word...
" >&6; }
11588 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11589 $as_echo_n "(cached
) " >&6
11591 if test -n "$DLLTOOL_FOR_TARGET"; then
11592 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11601 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11602 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11611 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11612 if test -n "$DLLTOOL_FOR_TARGET"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
11614 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11617 $as_echo "no
" >&6; }
11622 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11626 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11628 if test $build = $target ; then
11629 DLLTOOL_FOR_TARGET="$2"
11631 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11634 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11638 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11644 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11645 if test -n "$with_build_time_tools"; then
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
11647 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
11648 if test -x $with_build_time_tools/ld; then
11649 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11650 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
11652 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11655 $as_echo "no
" >&6; }
11657 elif test $build != $host && test $have_gcc_for_target = yes; then
11658 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11659 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11660 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11663 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11664 # Extract the first word of "ld
", so it can be a program name with args.
11665 set dummy ld; ac_word=$2
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11667 $as_echo_n "checking
for $ac_word...
" >&6; }
11668 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11669 $as_echo_n "(cached
) " >&6
11671 case $LD_FOR_TARGET in
11673 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677 for as_dir in $gcc_cv_tool_dirs
11680 test -z "$as_dir" && as_dir=.
11681 for ac_exec_ext in '' $ac_executable_extensions; do
11682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11683 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11684 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11694 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11695 if test -n "$LD_FOR_TARGET"; then
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
11697 $as_echo "$LD_FOR_TARGET" >&6; }
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11700 $as_echo "no
" >&6; }
11705 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11708 if test -n "$LD_FOR_TARGET"; then
11709 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11710 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11711 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11714 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11715 for ncn_progname in ld; do
11716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11717 set dummy ${ncn_progname}; ac_word=$2
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11719 $as_echo_n "checking
for $ac_word...
" >&6; }
11720 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11721 $as_echo_n "(cached
) " >&6
11723 if test -n "$LD_FOR_TARGET"; then
11724 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11730 test -z "$as_dir" && as_dir=.
11731 for ac_exec_ext in '' $ac_executable_extensions; do
11732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11733 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11734 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11743 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11744 if test -n "$LD_FOR_TARGET"; then
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
11746 $as_echo "$LD_FOR_TARGET" >&6; }
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11749 $as_echo "no
" >&6; }
11756 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11757 for ncn_progname in ld; do
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
11759 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
11760 if test -x $with_build_time_tools/${ncn_progname}; then
11761 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
11763 $as_echo "yes" >&6; }
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11767 $as_echo "no
" >&6; }
11772 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11773 for ncn_progname in ld; do
11774 if test -n "$ncn_target_tool_prefix"; then
11775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11776 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11778 $as_echo_n "checking
for $ac_word...
" >&6; }
11779 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11780 $as_echo_n "(cached
) " >&6
11782 if test -n "$LD_FOR_TARGET"; then
11783 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11789 test -z "$as_dir" && as_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11793 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11802 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11803 if test -n "$LD_FOR_TARGET"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
11805 $as_echo "$LD_FOR_TARGET" >&6; }
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11808 $as_echo "no
" >&6; }
11813 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11815 set dummy ${ncn_progname}; ac_word=$2
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11817 $as_echo_n "checking
for $ac_word...
" >&6; }
11818 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11819 $as_echo_n "(cached
) " >&6
11821 if test -n "$LD_FOR_TARGET"; then
11822 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825 for as_dir in $PATH
11828 test -z "$as_dir" && as_dir=.
11829 for ac_exec_ext in '' $ac_executable_extensions; do
11830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11831 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11832 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11841 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11842 if test -n "$LD_FOR_TARGET"; then
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
11844 $as_echo "$LD_FOR_TARGET" >&6; }
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11847 $as_echo "no
" >&6; }
11852 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11856 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11858 if test $build = $target ; then
11861 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11864 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11868 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11874 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11875 if test -n "$with_build_time_tools"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
11877 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
11878 if test -x $with_build_time_tools/lipo; then
11879 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11880 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
11882 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11885 $as_echo "no
" >&6; }
11887 elif test $build != $host && test $have_gcc_for_target = yes; then
11888 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11889 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11890 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11893 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11894 # Extract the first word of "lipo
", so it can be a program name with args.
11895 set dummy lipo; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11897 $as_echo_n "checking
for $ac_word...
" >&6; }
11898 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
11899 $as_echo_n "(cached
) " >&6
11901 case $LIPO_FOR_TARGET in
11903 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907 for as_dir in $gcc_cv_tool_dirs
11910 test -z "$as_dir" && as_dir=.
11911 for ac_exec_ext in '' $ac_executable_extensions; do
11912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11913 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11914 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11924 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11925 if test -n "$LIPO_FOR_TARGET"; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
11927 $as_echo "$LIPO_FOR_TARGET" >&6; }
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11930 $as_echo "no
" >&6; }
11935 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11938 if test -n "$LIPO_FOR_TARGET"; then
11939 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11940 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11941 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11944 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11945 for ncn_progname in lipo; do
11946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11947 set dummy ${ncn_progname}; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11949 $as_echo_n "checking
for $ac_word...
" >&6; }
11950 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11951 $as_echo_n "(cached
) " >&6
11953 if test -n "$LIPO_FOR_TARGET"; then
11954 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11973 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11974 if test -n "$LIPO_FOR_TARGET"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
11976 $as_echo "$LIPO_FOR_TARGET" >&6; }
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11979 $as_echo "no
" >&6; }
11986 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11987 for ncn_progname in lipo; do
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
11989 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
11990 if test -x $with_build_time_tools/${ncn_progname}; then
11991 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
11993 $as_echo "yes" >&6; }
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11997 $as_echo "no
" >&6; }
12002 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12003 for ncn_progname in lipo; do
12004 if test -n "$ncn_target_tool_prefix"; then
12005 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12006 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12008 $as_echo_n "checking
for $ac_word...
" >&6; }
12009 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12010 $as_echo_n "(cached
) " >&6
12012 if test -n "$LIPO_FOR_TARGET"; then
12013 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016 for as_dir in $PATH
12019 test -z "$as_dir" && as_dir=.
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12022 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12023 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12032 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12033 if test -n "$LIPO_FOR_TARGET"; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
12035 $as_echo "$LIPO_FOR_TARGET" >&6; }
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12038 $as_echo "no
" >&6; }
12043 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12045 set dummy ${ncn_progname}; ac_word=$2
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12047 $as_echo_n "checking
for $ac_word...
" >&6; }
12048 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12049 $as_echo_n "(cached
) " >&6
12051 if test -n "$LIPO_FOR_TARGET"; then
12052 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12061 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12062 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12071 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12072 if test -n "$LIPO_FOR_TARGET"; then
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
12074 $as_echo "$LIPO_FOR_TARGET" >&6; }
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12077 $as_echo "no
" >&6; }
12082 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12086 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12088 if test $build = $target ; then
12089 LIPO_FOR_TARGET="$2"
12091 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12094 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12098 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12104 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12105 if test -n "$with_build_time_tools"; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
12107 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
12108 if test -x $with_build_time_tools/nm; then
12109 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12110 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
12112 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12115 $as_echo "no
" >&6; }
12117 elif test $build != $host && test $have_gcc_for_target = yes; then
12118 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12119 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12120 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12123 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12124 # Extract the first word of "nm
", so it can be a program name with args.
12125 set dummy nm; ac_word=$2
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12127 $as_echo_n "checking
for $ac_word...
" >&6; }
12128 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12129 $as_echo_n "(cached
) " >&6
12131 case $NM_FOR_TARGET in
12133 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $gcc_cv_tool_dirs
12140 test -z "$as_dir" && as_dir=.
12141 for ac_exec_ext in '' $ac_executable_extensions; do
12142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12143 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12144 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12154 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12155 if test -n "$NM_FOR_TARGET"; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
12157 $as_echo "$NM_FOR_TARGET" >&6; }
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12160 $as_echo "no
" >&6; }
12165 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12168 if test -n "$NM_FOR_TARGET"; then
12169 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12170 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12171 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12174 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12175 for ncn_progname in nm; do
12176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12177 set dummy ${ncn_progname}; ac_word=$2
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12179 $as_echo_n "checking
for $ac_word...
" >&6; }
12180 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12181 $as_echo_n "(cached
) " >&6
12183 if test -n "$NM_FOR_TARGET"; then
12184 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187 for as_dir in $PATH
12190 test -z "$as_dir" && as_dir=.
12191 for ac_exec_ext in '' $ac_executable_extensions; do
12192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12193 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12194 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12203 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12204 if test -n "$NM_FOR_TARGET"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
12206 $as_echo "$NM_FOR_TARGET" >&6; }
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12209 $as_echo "no
" >&6; }
12216 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12217 for ncn_progname in nm; do
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12219 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12220 if test -x $with_build_time_tools/${ncn_progname}; then
12221 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12223 $as_echo "yes" >&6; }
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12227 $as_echo "no
" >&6; }
12232 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12233 for ncn_progname in nm; do
12234 if test -n "$ncn_target_tool_prefix"; then
12235 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12236 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12238 $as_echo_n "checking
for $ac_word...
" >&6; }
12239 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12240 $as_echo_n "(cached
) " >&6
12242 if test -n "$NM_FOR_TARGET"; then
12243 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12252 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12262 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12263 if test -n "$NM_FOR_TARGET"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
12265 $as_echo "$NM_FOR_TARGET" >&6; }
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12268 $as_echo "no
" >&6; }
12273 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12275 set dummy ${ncn_progname}; ac_word=$2
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12277 $as_echo_n "checking
for $ac_word...
" >&6; }
12278 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12279 $as_echo_n "(cached
) " >&6
12281 if test -n "$NM_FOR_TARGET"; then
12282 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285 for as_dir in $PATH
12288 test -z "$as_dir" && as_dir=.
12289 for ac_exec_ext in '' $ac_executable_extensions; do
12290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12291 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12292 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12301 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12302 if test -n "$NM_FOR_TARGET"; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
12304 $as_echo "$NM_FOR_TARGET" >&6; }
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12307 $as_echo "no
" >&6; }
12312 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12316 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12318 if test $build = $target ; then
12321 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12324 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12328 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12334 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12335 if test -n "$with_build_time_tools"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
12337 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
12338 if test -x $with_build_time_tools/objcopy; then
12339 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12340 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12342 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12345 $as_echo "no
" >&6; }
12347 elif test $build != $host && test $have_gcc_for_target = yes; then
12348 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12349 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12350 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12353 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12354 # Extract the first word of "objcopy
", so it can be a program name with args.
12355 set dummy objcopy; ac_word=$2
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12357 $as_echo_n "checking
for $ac_word...
" >&6; }
12358 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12359 $as_echo_n "(cached
) " >&6
12361 case $OBJCOPY_FOR_TARGET in
12363 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367 for as_dir in $gcc_cv_tool_dirs
12370 test -z "$as_dir" && as_dir=.
12371 for ac_exec_ext in '' $ac_executable_extensions; do
12372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12373 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12374 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12384 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12385 if test -n "$OBJCOPY_FOR_TARGET"; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
12387 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12390 $as_echo "no
" >&6; }
12395 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12398 if test -n "$OBJCOPY_FOR_TARGET"; then
12399 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12400 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12401 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12404 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12405 for ncn_progname in objcopy; do
12406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12407 set dummy ${ncn_progname}; ac_word=$2
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12409 $as_echo_n "checking
for $ac_word...
" >&6; }
12410 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12411 $as_echo_n "(cached
) " >&6
12413 if test -n "$OBJCOPY_FOR_TARGET"; then
12414 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417 for as_dir in $PATH
12420 test -z "$as_dir" && as_dir=.
12421 for ac_exec_ext in '' $ac_executable_extensions; do
12422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12423 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12424 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12433 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12434 if test -n "$OBJCOPY_FOR_TARGET"; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
12436 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12439 $as_echo "no
" >&6; }
12446 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12447 for ncn_progname in objcopy; do
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12449 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12450 if test -x $with_build_time_tools/${ncn_progname}; then
12451 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12453 $as_echo "yes" >&6; }
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12457 $as_echo "no
" >&6; }
12462 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12463 for ncn_progname in objcopy; do
12464 if test -n "$ncn_target_tool_prefix"; then
12465 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12466 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12468 $as_echo_n "checking
for $ac_word...
" >&6; }
12469 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12470 $as_echo_n "(cached
) " >&6
12472 if test -n "$OBJCOPY_FOR_TARGET"; then
12473 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12476 for as_dir in $PATH
12479 test -z "$as_dir" && as_dir=.
12480 for ac_exec_ext in '' $ac_executable_extensions; do
12481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12482 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12483 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12492 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12493 if test -n "$OBJCOPY_FOR_TARGET"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
12495 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12498 $as_echo "no
" >&6; }
12503 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12505 set dummy ${ncn_progname}; ac_word=$2
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12507 $as_echo_n "checking
for $ac_word...
" >&6; }
12508 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12509 $as_echo_n "(cached
) " >&6
12511 if test -n "$OBJCOPY_FOR_TARGET"; then
12512 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515 for as_dir in $PATH
12518 test -z "$as_dir" && as_dir=.
12519 for ac_exec_ext in '' $ac_executable_extensions; do
12520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12521 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12522 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12531 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12532 if test -n "$OBJCOPY_FOR_TARGET"; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
12534 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12537 $as_echo "no
" >&6; }
12542 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12546 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12548 if test $build = $target ; then
12549 OBJCOPY_FOR_TARGET="$2"
12551 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12554 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12558 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12564 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12565 if test -n "$with_build_time_tools"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
12567 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
12568 if test -x $with_build_time_tools/objdump; then
12569 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12570 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12572 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12575 $as_echo "no
" >&6; }
12577 elif test $build != $host && test $have_gcc_for_target = yes; then
12578 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12579 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12580 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12583 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12584 # Extract the first word of "objdump
", so it can be a program name with args.
12585 set dummy objdump; ac_word=$2
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12587 $as_echo_n "checking
for $ac_word...
" >&6; }
12588 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12589 $as_echo_n "(cached
) " >&6
12591 case $OBJDUMP_FOR_TARGET in
12593 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $gcc_cv_tool_dirs
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12603 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12614 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12615 if test -n "$OBJDUMP_FOR_TARGET"; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
12617 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12620 $as_echo "no
" >&6; }
12625 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12628 if test -n "$OBJDUMP_FOR_TARGET"; then
12629 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12630 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12631 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12634 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12635 for ncn_progname in objdump; do
12636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12637 set dummy ${ncn_progname}; ac_word=$2
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12639 $as_echo_n "checking
for $ac_word...
" >&6; }
12640 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12641 $as_echo_n "(cached
) " >&6
12643 if test -n "$OBJDUMP_FOR_TARGET"; then
12644 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12647 for as_dir in $PATH
12650 test -z "$as_dir" && as_dir=.
12651 for ac_exec_ext in '' $ac_executable_extensions; do
12652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12653 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12654 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12663 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12664 if test -n "$OBJDUMP_FOR_TARGET"; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
12666 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12669 $as_echo "no
" >&6; }
12676 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12677 for ncn_progname in objdump; do
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12679 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12680 if test -x $with_build_time_tools/${ncn_progname}; then
12681 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12683 $as_echo "yes" >&6; }
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12687 $as_echo "no
" >&6; }
12692 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12693 for ncn_progname in objdump; do
12694 if test -n "$ncn_target_tool_prefix"; then
12695 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12696 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12698 $as_echo_n "checking
for $ac_word...
" >&6; }
12699 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12700 $as_echo_n "(cached
) " >&6
12702 if test -n "$OBJDUMP_FOR_TARGET"; then
12703 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706 for as_dir in $PATH
12709 test -z "$as_dir" && as_dir=.
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12712 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12713 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12722 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12723 if test -n "$OBJDUMP_FOR_TARGET"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
12725 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12728 $as_echo "no
" >&6; }
12733 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12735 set dummy ${ncn_progname}; ac_word=$2
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12737 $as_echo_n "checking
for $ac_word...
" >&6; }
12738 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12739 $as_echo_n "(cached
) " >&6
12741 if test -n "$OBJDUMP_FOR_TARGET"; then
12742 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745 for as_dir in $PATH
12748 test -z "$as_dir" && as_dir=.
12749 for ac_exec_ext in '' $ac_executable_extensions; do
12750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12751 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12752 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12761 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12762 if test -n "$OBJDUMP_FOR_TARGET"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
12764 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12767 $as_echo "no
" >&6; }
12772 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12776 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12778 if test $build = $target ; then
12779 OBJDUMP_FOR_TARGET="$2"
12781 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12784 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12788 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12794 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12795 if test -n "$with_build_time_tools"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
12797 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
12798 if test -x $with_build_time_tools/ranlib; then
12799 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12800 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12802 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12805 $as_echo "no
" >&6; }
12807 elif test $build != $host && test $have_gcc_for_target = yes; then
12808 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12809 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12810 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12813 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12814 # Extract the first word of "ranlib
", so it can be a program name with args.
12815 set dummy ranlib; ac_word=$2
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12817 $as_echo_n "checking
for $ac_word...
" >&6; }
12818 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
12819 $as_echo_n "(cached
) " >&6
12821 case $RANLIB_FOR_TARGET in
12823 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827 for as_dir in $gcc_cv_tool_dirs
12830 test -z "$as_dir" && as_dir=.
12831 for ac_exec_ext in '' $ac_executable_extensions; do
12832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12833 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12834 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12844 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12845 if test -n "$RANLIB_FOR_TARGET"; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
12847 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12850 $as_echo "no
" >&6; }
12855 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12858 if test -n "$RANLIB_FOR_TARGET"; then
12859 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12860 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12861 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12864 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12865 for ncn_progname in ranlib; do
12866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12867 set dummy ${ncn_progname}; ac_word=$2
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12869 $as_echo_n "checking
for $ac_word...
" >&6; }
12870 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12871 $as_echo_n "(cached
) " >&6
12873 if test -n "$RANLIB_FOR_TARGET"; then
12874 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
12882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12883 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12893 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12894 if test -n "$RANLIB_FOR_TARGET"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
12896 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12899 $as_echo "no
" >&6; }
12906 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12907 for ncn_progname in ranlib; do
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12909 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12910 if test -x $with_build_time_tools/${ncn_progname}; then
12911 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12913 $as_echo "yes" >&6; }
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12917 $as_echo "no
" >&6; }
12922 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12923 for ncn_progname in ranlib; do
12924 if test -n "$ncn_target_tool_prefix"; then
12925 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12926 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12928 $as_echo_n "checking
for $ac_word...
" >&6; }
12929 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12930 $as_echo_n "(cached
) " >&6
12932 if test -n "$RANLIB_FOR_TARGET"; then
12933 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936 for as_dir in $PATH
12939 test -z "$as_dir" && as_dir=.
12940 for ac_exec_ext in '' $ac_executable_extensions; do
12941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12942 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12943 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12952 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12953 if test -n "$RANLIB_FOR_TARGET"; then
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
12955 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12958 $as_echo "no
" >&6; }
12963 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12965 set dummy ${ncn_progname}; ac_word=$2
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12967 $as_echo_n "checking
for $ac_word...
" >&6; }
12968 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12969 $as_echo_n "(cached
) " >&6
12971 if test -n "$RANLIB_FOR_TARGET"; then
12972 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975 for as_dir in $PATH
12978 test -z "$as_dir" && as_dir=.
12979 for ac_exec_ext in '' $ac_executable_extensions; do
12980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12981 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12982 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12991 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12992 if test -n "$RANLIB_FOR_TARGET"; then
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
12994 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12997 $as_echo "no
" >&6; }
13002 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13006 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13008 if test $build = $target ; then
13009 RANLIB_FOR_TARGET="$2"
13011 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13014 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13018 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13024 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13025 if test -n "$with_build_time_tools"; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
13027 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
13028 if test -x $with_build_time_tools/readelf; then
13029 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13030 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
13032 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13035 $as_echo "no
" >&6; }
13037 elif test $build != $host && test $have_gcc_for_target = yes; then
13038 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13039 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13040 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13043 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13044 # Extract the first word of "readelf
", so it can be a program name with args.
13045 set dummy readelf; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13047 $as_echo_n "checking
for $ac_word...
" >&6; }
13048 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13049 $as_echo_n "(cached
) " >&6
13051 case $READELF_FOR_TARGET in
13053 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057 for as_dir in $gcc_cv_tool_dirs
13060 test -z "$as_dir" && as_dir=.
13061 for ac_exec_ext in '' $ac_executable_extensions; do
13062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13063 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13064 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13074 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13075 if test -n "$READELF_FOR_TARGET"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
13077 $as_echo "$READELF_FOR_TARGET" >&6; }
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13080 $as_echo "no
" >&6; }
13085 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13088 if test -n "$READELF_FOR_TARGET"; then
13089 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13090 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13091 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13094 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13095 for ncn_progname in readelf; do
13096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13097 set dummy ${ncn_progname}; ac_word=$2
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13099 $as_echo_n "checking
for $ac_word...
" >&6; }
13100 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13101 $as_echo_n "(cached
) " >&6
13103 if test -n "$READELF_FOR_TARGET"; then
13104 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13107 for as_dir in $PATH
13110 test -z "$as_dir" && as_dir=.
13111 for ac_exec_ext in '' $ac_executable_extensions; do
13112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13113 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13114 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13123 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13124 if test -n "$READELF_FOR_TARGET"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
13126 $as_echo "$READELF_FOR_TARGET" >&6; }
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13129 $as_echo "no
" >&6; }
13136 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13137 for ncn_progname in readelf; do
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13139 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13140 if test -x $with_build_time_tools/${ncn_progname}; then
13141 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13143 $as_echo "yes" >&6; }
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13147 $as_echo "no
" >&6; }
13152 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13153 for ncn_progname in readelf; do
13154 if test -n "$ncn_target_tool_prefix"; then
13155 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13156 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13158 $as_echo_n "checking
for $ac_word...
" >&6; }
13159 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13160 $as_echo_n "(cached
) " >&6
13162 if test -n "$READELF_FOR_TARGET"; then
13163 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166 for as_dir in $PATH
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13172 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13173 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13182 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13183 if test -n "$READELF_FOR_TARGET"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
13185 $as_echo "$READELF_FOR_TARGET" >&6; }
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13188 $as_echo "no
" >&6; }
13193 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13195 set dummy ${ncn_progname}; ac_word=$2
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13197 $as_echo_n "checking
for $ac_word...
" >&6; }
13198 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13199 $as_echo_n "(cached
) " >&6
13201 if test -n "$READELF_FOR_TARGET"; then
13202 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13211 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13221 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13222 if test -n "$READELF_FOR_TARGET"; then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
13224 $as_echo "$READELF_FOR_TARGET" >&6; }
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13227 $as_echo "no
" >&6; }
13232 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13236 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13238 if test $build = $target ; then
13239 READELF_FOR_TARGET="$2"
13241 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13244 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13248 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13254 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13255 if test -n "$with_build_time_tools"; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
13257 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
13258 if test -x $with_build_time_tools/strip; then
13259 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13260 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
13262 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13265 $as_echo "no
" >&6; }
13267 elif test $build != $host && test $have_gcc_for_target = yes; then
13268 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13269 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13270 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13273 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13274 # Extract the first word of "strip
", so it can be a program name with args.
13275 set dummy strip; ac_word=$2
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13277 $as_echo_n "checking
for $ac_word...
" >&6; }
13278 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13279 $as_echo_n "(cached
) " >&6
13281 case $STRIP_FOR_TARGET in
13283 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $gcc_cv_tool_dirs
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13293 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13294 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13304 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13305 if test -n "$STRIP_FOR_TARGET"; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
13307 $as_echo "$STRIP_FOR_TARGET" >&6; }
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13310 $as_echo "no
" >&6; }
13315 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13318 if test -n "$STRIP_FOR_TARGET"; then
13319 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13320 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13321 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13324 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13325 for ncn_progname in strip; do
13326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13327 set dummy ${ncn_progname}; ac_word=$2
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13329 $as_echo_n "checking
for $ac_word...
" >&6; }
13330 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13331 $as_echo_n "(cached
) " >&6
13333 if test -n "$STRIP_FOR_TARGET"; then
13334 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13340 test -z "$as_dir" && as_dir=.
13341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13343 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13344 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13353 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13354 if test -n "$STRIP_FOR_TARGET"; then
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
13356 $as_echo "$STRIP_FOR_TARGET" >&6; }
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13359 $as_echo "no
" >&6; }
13366 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13367 for ncn_progname in strip; do
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13369 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13370 if test -x $with_build_time_tools/${ncn_progname}; then
13371 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13373 $as_echo "yes" >&6; }
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13377 $as_echo "no
" >&6; }
13382 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13383 for ncn_progname in strip; do
13384 if test -n "$ncn_target_tool_prefix"; then
13385 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13386 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13388 $as_echo_n "checking
for $ac_word...
" >&6; }
13389 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13390 $as_echo_n "(cached
) " >&6
13392 if test -n "$STRIP_FOR_TARGET"; then
13393 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396 for as_dir in $PATH
13399 test -z "$as_dir" && as_dir=.
13400 for ac_exec_ext in '' $ac_executable_extensions; do
13401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13402 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13403 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13412 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13413 if test -n "$STRIP_FOR_TARGET"; then
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
13415 $as_echo "$STRIP_FOR_TARGET" >&6; }
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13418 $as_echo "no
" >&6; }
13423 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13425 set dummy ${ncn_progname}; ac_word=$2
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13427 $as_echo_n "checking
for $ac_word...
" >&6; }
13428 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13429 $as_echo_n "(cached
) " >&6
13431 if test -n "$STRIP_FOR_TARGET"; then
13432 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435 for as_dir in $PATH
13438 test -z "$as_dir" && as_dir=.
13439 for ac_exec_ext in '' $ac_executable_extensions; do
13440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13441 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13442 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13451 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13452 if test -n "$STRIP_FOR_TARGET"; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
13454 $as_echo "$STRIP_FOR_TARGET" >&6; }
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13457 $as_echo "no
" >&6; }
13462 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13466 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13468 if test $build = $target ; then
13469 STRIP_FOR_TARGET="$2"
13471 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13474 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13478 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13484 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13485 if test -n "$with_build_time_tools"; then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
13487 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
13488 if test -x $with_build_time_tools/windres; then
13489 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13490 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13492 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13495 $as_echo "no
" >&6; }
13497 elif test $build != $host && test $have_gcc_for_target = yes; then
13498 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13499 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13500 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13503 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13504 # Extract the first word of "windres
", so it can be a program name with args.
13505 set dummy windres; ac_word=$2
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13507 $as_echo_n "checking
for $ac_word...
" >&6; }
13508 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13509 $as_echo_n "(cached
) " >&6
13511 case $WINDRES_FOR_TARGET in
13513 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13517 for as_dir in $gcc_cv_tool_dirs
13520 test -z "$as_dir" && as_dir=.
13521 for ac_exec_ext in '' $ac_executable_extensions; do
13522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13523 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13524 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13534 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13535 if test -n "$WINDRES_FOR_TARGET"; then
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
13537 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13540 $as_echo "no
" >&6; }
13545 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13548 if test -n "$WINDRES_FOR_TARGET"; then
13549 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13550 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13551 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13554 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13555 for ncn_progname in windres; do
13556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13557 set dummy ${ncn_progname}; ac_word=$2
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13559 $as_echo_n "checking
for $ac_word...
" >&6; }
13560 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13561 $as_echo_n "(cached
) " >&6
13563 if test -n "$WINDRES_FOR_TARGET"; then
13564 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567 for as_dir in $PATH
13570 test -z "$as_dir" && as_dir=.
13571 for ac_exec_ext in '' $ac_executable_extensions; do
13572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13573 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13574 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13583 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13584 if test -n "$WINDRES_FOR_TARGET"; then
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
13586 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13589 $as_echo "no
" >&6; }
13596 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13597 for ncn_progname in windres; do
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13599 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13600 if test -x $with_build_time_tools/${ncn_progname}; then
13601 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13603 $as_echo "yes" >&6; }
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13607 $as_echo "no
" >&6; }
13612 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13613 for ncn_progname in windres; do
13614 if test -n "$ncn_target_tool_prefix"; then
13615 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13616 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13618 $as_echo_n "checking
for $ac_word...
" >&6; }
13619 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13620 $as_echo_n "(cached
) " >&6
13622 if test -n "$WINDRES_FOR_TARGET"; then
13623 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13626 for as_dir in $PATH
13629 test -z "$as_dir" && as_dir=.
13630 for ac_exec_ext in '' $ac_executable_extensions; do
13631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13632 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13633 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13642 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13643 if test -n "$WINDRES_FOR_TARGET"; then
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
13645 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13648 $as_echo "no
" >&6; }
13653 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13655 set dummy ${ncn_progname}; ac_word=$2
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13657 $as_echo_n "checking
for $ac_word...
" >&6; }
13658 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13659 $as_echo_n "(cached
) " >&6
13661 if test -n "$WINDRES_FOR_TARGET"; then
13662 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13665 for as_dir in $PATH
13668 test -z "$as_dir" && as_dir=.
13669 for ac_exec_ext in '' $ac_executable_extensions; do
13670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13671 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13672 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13681 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13682 if test -n "$WINDRES_FOR_TARGET"; then
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
13684 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13687 $as_echo "no
" >&6; }
13692 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13696 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13698 if test $build = $target ; then
13699 WINDRES_FOR_TARGET="$2"
13701 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13704 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13708 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13714 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13715 if test -n "$with_build_time_tools"; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
13717 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
13718 if test -x $with_build_time_tools/windmc; then
13719 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13720 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13722 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13725 $as_echo "no
" >&6; }
13727 elif test $build != $host && test $have_gcc_for_target = yes; then
13728 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13729 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13730 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13733 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13734 # Extract the first word of "windmc
", so it can be a program name with args.
13735 set dummy windmc; ac_word=$2
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13737 $as_echo_n "checking
for $ac_word...
" >&6; }
13738 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
13739 $as_echo_n "(cached
) " >&6
13741 case $WINDMC_FOR_TARGET in
13743 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747 for as_dir in $gcc_cv_tool_dirs
13750 test -z "$as_dir" && as_dir=.
13751 for ac_exec_ext in '' $ac_executable_extensions; do
13752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13753 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13754 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13764 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13765 if test -n "$WINDMC_FOR_TARGET"; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
13767 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13770 $as_echo "no
" >&6; }
13775 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13778 if test -n "$WINDMC_FOR_TARGET"; then
13779 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13780 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13781 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13784 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13785 for ncn_progname in windmc; do
13786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13787 set dummy ${ncn_progname}; ac_word=$2
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13789 $as_echo_n "checking
for $ac_word...
" >&6; }
13790 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13791 $as_echo_n "(cached
) " >&6
13793 if test -n "$WINDMC_FOR_TARGET"; then
13794 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13797 for as_dir in $PATH
13800 test -z "$as_dir" && as_dir=.
13801 for ac_exec_ext in '' $ac_executable_extensions; do
13802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13803 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13804 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13813 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13814 if test -n "$WINDMC_FOR_TARGET"; then
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
13816 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13819 $as_echo "no
" >&6; }
13826 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13827 for ncn_progname in windmc; do
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13829 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13830 if test -x $with_build_time_tools/${ncn_progname}; then
13831 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13833 $as_echo "yes" >&6; }
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13837 $as_echo "no
" >&6; }
13842 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13843 for ncn_progname in windmc; do
13844 if test -n "$ncn_target_tool_prefix"; then
13845 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13846 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13848 $as_echo_n "checking
for $ac_word...
" >&6; }
13849 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13850 $as_echo_n "(cached
) " >&6
13852 if test -n "$WINDMC_FOR_TARGET"; then
13853 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13856 for as_dir in $PATH
13859 test -z "$as_dir" && as_dir=.
13860 for ac_exec_ext in '' $ac_executable_extensions; do
13861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13862 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13863 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13872 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13873 if test -n "$WINDMC_FOR_TARGET"; then
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
13875 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13878 $as_echo "no
" >&6; }
13883 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13885 set dummy ${ncn_progname}; ac_word=$2
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13887 $as_echo_n "checking
for $ac_word...
" >&6; }
13888 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13889 $as_echo_n "(cached
) " >&6
13891 if test -n "$WINDMC_FOR_TARGET"; then
13892 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13895 for as_dir in $PATH
13898 test -z "$as_dir" && as_dir=.
13899 for ac_exec_ext in '' $ac_executable_extensions; do
13900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13901 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13902 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13911 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13912 if test -n "$WINDMC_FOR_TARGET"; then
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
13914 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13917 $as_echo "no
" >&6; }
13922 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13926 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13928 if test $build = $target ; then
13929 WINDMC_FOR_TARGET="$2"
13931 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13934 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13938 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13942 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
13945 $as_echo_n "checking where to
find the target
ar...
" >&6; }
13946 if test "x
${build}" != "x
${host}" ; then
13947 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
13948 # We already found the complete path
13949 ac_dir=`dirname $AR_FOR_TARGET`
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
13951 $as_echo "pre-installed
in $ac_dir" >&6; }
13953 # Canadian cross, just use what we found
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
13955 $as_echo "pre-installed
" >&6; }
13959 case " ${configdirs} " in
13964 if test $ok = yes; then
13965 # An in-tree tool is available and we can use it
13966 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
13968 $as_echo "just compiled
" >&6; }
13969 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
13970 # We already found the complete path
13971 ac_dir=`dirname $AR_FOR_TARGET`
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
13973 $as_echo "pre-installed
in $ac_dir" >&6; }
13974 elif test "x
$target" = "x
$host"; then
13975 # We can use an host tool
13976 AR_FOR_TARGET='$(AR)'
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
13978 $as_echo "host tool
" >&6; }
13980 # We need a cross tool
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
13982 $as_echo "pre-installed
" >&6; }
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
13987 $as_echo_n "checking where to
find the target as...
" >&6; }
13988 if test "x
${build}" != "x
${host}" ; then
13989 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
13990 # We already found the complete path
13991 ac_dir=`dirname $AS_FOR_TARGET`
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
13993 $as_echo "pre-installed
in $ac_dir" >&6; }
13995 # Canadian cross, just use what we found
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
13997 $as_echo "pre-installed
" >&6; }
14001 case " ${configdirs} " in
14006 if test $ok = yes; then
14007 # An in-tree tool is available and we can use it
14008 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14010 $as_echo "just compiled
" >&6; }
14011 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
14012 # We already found the complete path
14013 ac_dir=`dirname $AS_FOR_TARGET`
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14015 $as_echo "pre-installed
in $ac_dir" >&6; }
14016 elif test "x
$target" = "x
$host"; then
14017 # We can use an host tool
14018 AS_FOR_TARGET='$(AS)'
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14020 $as_echo "host tool
" >&6; }
14022 # We need a cross tool
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14024 $as_echo "pre-installed
" >&6; }
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
14029 $as_echo_n "checking where to
find the target cc...
" >&6; }
14030 if test "x
${build}" != "x
${host}" ; then
14031 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
14032 # We already found the complete path
14033 ac_dir=`dirname $CC_FOR_TARGET`
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14035 $as_echo "pre-installed
in $ac_dir" >&6; }
14037 # Canadian cross, just use what we found
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14039 $as_echo "pre-installed
" >&6; }
14043 case " ${configdirs} " in
14048 if test $ok = yes; then
14049 # An in-tree tool is available and we can use it
14050 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14052 $as_echo "just compiled
" >&6; }
14053 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
14054 # We already found the complete path
14055 ac_dir=`dirname $CC_FOR_TARGET`
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14057 $as_echo "pre-installed
in $ac_dir" >&6; }
14058 elif test "x
$target" = "x
$host"; then
14059 # We can use an host tool
14060 CC_FOR_TARGET='$(CC)'
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14062 $as_echo "host tool
" >&6; }
14064 # We need a cross tool
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14066 $as_echo "pre-installed
" >&6; }
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
14071 $as_echo_n "checking where to
find the target c
++...
" >&6; }
14072 if test "x
${build}" != "x
${host}" ; then
14073 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
14074 # We already found the complete path
14075 ac_dir=`dirname $CXX_FOR_TARGET`
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14077 $as_echo "pre-installed
in $ac_dir" >&6; }
14079 # Canadian cross, just use what we found
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14081 $as_echo "pre-installed
" >&6; }
14085 case " ${configdirs} " in
14089 case ,${enable_languages}, in
14093 if test $ok = yes; then
14094 # An in-tree tool is available and we can use it
14095 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14097 $as_echo "just compiled
" >&6; }
14098 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
14099 # We already found the complete path
14100 ac_dir=`dirname $CXX_FOR_TARGET`
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14102 $as_echo "pre-installed
in $ac_dir" >&6; }
14103 elif test "x
$target" = "x
$host"; then
14104 # We can use an host tool
14105 CXX_FOR_TARGET='$(CXX)'
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14107 $as_echo "host tool
" >&6; }
14109 # We need a cross tool
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14111 $as_echo "pre-installed
" >&6; }
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
14116 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
14117 if test "x
${build}" != "x
${host}" ; then
14118 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
14119 # We already found the complete path
14120 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14122 $as_echo "pre-installed
in $ac_dir" >&6; }
14124 # Canadian cross, just use what we found
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14126 $as_echo "pre-installed
" >&6; }
14130 case " ${configdirs} " in
14134 case ,${enable_languages}, in
14138 if test $ok = yes; then
14139 # An in-tree tool is available and we can use it
14140 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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14142 $as_echo "just compiled
" >&6; }
14143 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
14144 # We already found the complete path
14145 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14147 $as_echo "pre-installed
in $ac_dir" >&6; }
14148 elif test "x
$target" = "x
$host"; then
14149 # We can use an host tool
14150 RAW_CXX_FOR_TARGET='$(CXX)'
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14152 $as_echo "host tool
" >&6; }
14154 # We need a cross tool
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14156 $as_echo "pre-installed
" >&6; }
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
14161 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
14162 if test "x
${build}" != "x
${host}" ; then
14163 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
14164 # We already found the complete path
14165 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14167 $as_echo "pre-installed
in $ac_dir" >&6; }
14169 # Canadian cross, just use what we found
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14171 $as_echo "pre-installed
" >&6; }
14175 case " ${configdirs} " in
14180 if test $ok = yes; then
14181 # An in-tree tool is available and we can use it
14182 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14184 $as_echo "just compiled
" >&6; }
14185 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
14186 # We already found the complete path
14187 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14189 $as_echo "pre-installed
in $ac_dir" >&6; }
14190 elif test "x
$target" = "x
$host"; then
14191 # We can use an host tool
14192 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14194 $as_echo "host tool
" >&6; }
14196 # We need a cross tool
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14198 $as_echo "pre-installed
" >&6; }
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
14203 $as_echo_n "checking where to
find the target gcc...
" >&6; }
14204 if test "x
${build}" != "x
${host}" ; then
14205 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
14206 # We already found the complete path
14207 ac_dir=`dirname $GCC_FOR_TARGET`
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14209 $as_echo "pre-installed
in $ac_dir" >&6; }
14211 # Canadian cross, just use what we found
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14213 $as_echo "pre-installed
" >&6; }
14217 case " ${configdirs} " in
14222 if test $ok = yes; then
14223 # An in-tree tool is available and we can use it
14224 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14226 $as_echo "just compiled
" >&6; }
14227 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
14228 # We already found the complete path
14229 ac_dir=`dirname $GCC_FOR_TARGET`
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14231 $as_echo "pre-installed
in $ac_dir" >&6; }
14232 elif test "x
$target" = "x
$host"; then
14233 # We can use an host tool
14234 GCC_FOR_TARGET='$()'
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14236 $as_echo "host tool
" >&6; }
14238 # We need a cross tool
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14240 $as_echo "pre-installed
" >&6; }
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
14245 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
14246 if test "x
${build}" != "x
${host}" ; then
14247 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
14248 # We already found the complete path
14249 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14251 $as_echo "pre-installed
in $ac_dir" >&6; }
14253 # Canadian cross, just use what we found
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14255 $as_echo "pre-installed
" >&6; }
14259 case " ${configdirs} " in
14263 case ,${enable_languages}, in
14267 if test $ok = yes; then
14268 # An in-tree tool is available and we can use it
14269 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14271 $as_echo "just compiled
" >&6; }
14272 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
14273 # We already found the complete path
14274 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14276 $as_echo "pre-installed
in $ac_dir" >&6; }
14277 elif test "x
$target" = "x
$host"; then
14278 # We can use an host tool
14279 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14281 $as_echo "host tool
" >&6; }
14283 # We need a cross tool
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14285 $as_echo "pre-installed
" >&6; }
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
14290 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
14291 if test "x
${build}" != "x
${host}" ; then
14292 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
14293 # We already found the complete path
14294 ac_dir=`dirname $GOC_FOR_TARGET`
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14296 $as_echo "pre-installed
in $ac_dir" >&6; }
14298 # Canadian cross, just use what we found
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14300 $as_echo "pre-installed
" >&6; }
14304 case " ${configdirs} " in
14308 case ,${enable_languages}, in
14312 if test $ok = yes; then
14313 # An in-tree tool is available and we can use it
14314 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14316 $as_echo "just compiled
" >&6; }
14317 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
14318 # We already found the complete path
14319 ac_dir=`dirname $GOC_FOR_TARGET`
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14321 $as_echo "pre-installed
in $ac_dir" >&6; }
14322 elif test "x
$target" = "x
$host"; then
14323 # We can use an host tool
14324 GOC_FOR_TARGET='$(GOC)'
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14326 $as_echo "host tool
" >&6; }
14328 # We need a cross tool
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14330 $as_echo "pre-installed
" >&6; }
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
14335 $as_echo_n "checking where to
find the target ld...
" >&6; }
14336 if test "x
${build}" != "x
${host}" ; then
14337 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
14338 # We already found the complete path
14339 ac_dir=`dirname $LD_FOR_TARGET`
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14341 $as_echo "pre-installed
in $ac_dir" >&6; }
14343 # Canadian cross, just use what we found
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14345 $as_echo "pre-installed
" >&6; }
14349 case " ${configdirs} " in
14354 if test $ok = yes; then
14355 # An in-tree tool is available and we can use it
14356 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14358 $as_echo "just compiled
" >&6; }
14359 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
14360 # We already found the complete path
14361 ac_dir=`dirname $LD_FOR_TARGET`
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14363 $as_echo "pre-installed
in $ac_dir" >&6; }
14364 elif test "x
$target" = "x
$host"; then
14365 # We can use an host tool
14366 LD_FOR_TARGET='$(LD)'
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14368 $as_echo "host tool
" >&6; }
14370 # We need a cross tool
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14372 $as_echo "pre-installed
" >&6; }
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
14377 $as_echo_n "checking where to
find the target lipo...
" >&6; }
14378 if test "x
${build}" != "x
${host}" ; then
14379 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
14380 # We already found the complete path
14381 ac_dir=`dirname $LIPO_FOR_TARGET`
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14383 $as_echo "pre-installed
in $ac_dir" >&6; }
14385 # Canadian cross, just use what we found
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14387 $as_echo "pre-installed
" >&6; }
14390 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
14391 # We already found the complete path
14392 ac_dir=`dirname $LIPO_FOR_TARGET`
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14394 $as_echo "pre-installed
in $ac_dir" >&6; }
14395 elif test "x
$target" = "x
$host"; then
14396 # We can use an host tool
14397 LIPO_FOR_TARGET='$(LIPO)'
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14399 $as_echo "host tool
" >&6; }
14401 # We need a cross tool
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14403 $as_echo "pre-installed
" >&6; }
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
14408 $as_echo_n "checking where to
find the target nm...
" >&6; }
14409 if test "x
${build}" != "x
${host}" ; then
14410 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
14411 # We already found the complete path
14412 ac_dir=`dirname $NM_FOR_TARGET`
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14414 $as_echo "pre-installed
in $ac_dir" >&6; }
14416 # Canadian cross, just use what we found
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14418 $as_echo "pre-installed
" >&6; }
14422 case " ${configdirs} " in
14427 if test $ok = yes; then
14428 # An in-tree tool is available and we can use it
14429 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14431 $as_echo "just compiled
" >&6; }
14432 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
14433 # We already found the complete path
14434 ac_dir=`dirname $NM_FOR_TARGET`
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14436 $as_echo "pre-installed
in $ac_dir" >&6; }
14437 elif test "x
$target" = "x
$host"; then
14438 # We can use an host tool
14439 NM_FOR_TARGET='$(NM)'
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14441 $as_echo "host tool
" >&6; }
14443 # We need a cross tool
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14445 $as_echo "pre-installed
" >&6; }
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
14450 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
14451 if test "x
${build}" != "x
${host}" ; then
14452 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
14453 # We already found the complete path
14454 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14456 $as_echo "pre-installed
in $ac_dir" >&6; }
14458 # Canadian cross, just use what we found
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14460 $as_echo "pre-installed
" >&6; }
14464 case " ${configdirs} " in
14469 if test $ok = yes; then
14470 # An in-tree tool is available and we can use it
14471 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14473 $as_echo "just compiled
" >&6; }
14474 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
14475 # We already found the complete path
14476 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14478 $as_echo "pre-installed
in $ac_dir" >&6; }
14479 elif test "x
$target" = "x
$host"; then
14480 # We can use an host tool
14481 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14483 $as_echo "host tool
" >&6; }
14485 # We need a cross tool
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14487 $as_echo "pre-installed
" >&6; }
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
14492 $as_echo_n "checking where to
find the target objdump...
" >&6; }
14493 if test "x
${build}" != "x
${host}" ; then
14494 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
14495 # We already found the complete path
14496 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14498 $as_echo "pre-installed
in $ac_dir" >&6; }
14500 # Canadian cross, just use what we found
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14502 $as_echo "pre-installed
" >&6; }
14506 case " ${configdirs} " in
14511 if test $ok = yes; then
14512 # An in-tree tool is available and we can use it
14513 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14515 $as_echo "just compiled
" >&6; }
14516 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
14517 # We already found the complete path
14518 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14520 $as_echo "pre-installed
in $ac_dir" >&6; }
14521 elif test "x
$target" = "x
$host"; then
14522 # We can use an host tool
14523 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14525 $as_echo "host tool
" >&6; }
14527 # We need a cross tool
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14529 $as_echo "pre-installed
" >&6; }
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
14534 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
14535 if test "x
${build}" != "x
${host}" ; then
14536 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
14537 # We already found the complete path
14538 ac_dir=`dirname $RANLIB_FOR_TARGET`
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14540 $as_echo "pre-installed
in $ac_dir" >&6; }
14542 # Canadian cross, just use what we found
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14544 $as_echo "pre-installed
" >&6; }
14548 case " ${configdirs} " in
14553 if test $ok = yes; then
14554 # An in-tree tool is available and we can use it
14555 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14557 $as_echo "just compiled
" >&6; }
14558 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
14559 # We already found the complete path
14560 ac_dir=`dirname $RANLIB_FOR_TARGET`
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14562 $as_echo "pre-installed
in $ac_dir" >&6; }
14563 elif test "x
$target" = "x
$host"; then
14564 # We can use an host tool
14565 RANLIB_FOR_TARGET='$(RANLIB)'
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14567 $as_echo "host tool
" >&6; }
14569 # We need a cross tool
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14571 $as_echo "pre-installed
" >&6; }
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
14576 $as_echo_n "checking where to
find the target readelf...
" >&6; }
14577 if test "x
${build}" != "x
${host}" ; then
14578 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
14579 # We already found the complete path
14580 ac_dir=`dirname $READELF_FOR_TARGET`
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14582 $as_echo "pre-installed
in $ac_dir" >&6; }
14584 # Canadian cross, just use what we found
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14586 $as_echo "pre-installed
" >&6; }
14590 case " ${configdirs} " in
14595 if test $ok = yes; then
14596 # An in-tree tool is available and we can use it
14597 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14599 $as_echo "just compiled
" >&6; }
14600 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
14601 # We already found the complete path
14602 ac_dir=`dirname $READELF_FOR_TARGET`
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14604 $as_echo "pre-installed
in $ac_dir" >&6; }
14605 elif test "x
$target" = "x
$host"; then
14606 # We can use an host tool
14607 READELF_FOR_TARGET='$(READELF)'
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14609 $as_echo "host tool
" >&6; }
14611 # We need a cross tool
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14613 $as_echo "pre-installed
" >&6; }
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
14618 $as_echo_n "checking where to
find the target strip...
" >&6; }
14619 if test "x
${build}" != "x
${host}" ; then
14620 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
14621 # We already found the complete path
14622 ac_dir=`dirname $STRIP_FOR_TARGET`
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14624 $as_echo "pre-installed
in $ac_dir" >&6; }
14626 # Canadian cross, just use what we found
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14628 $as_echo "pre-installed
" >&6; }
14632 case " ${configdirs} " in
14637 if test $ok = yes; then
14638 # An in-tree tool is available and we can use it
14639 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14641 $as_echo "just compiled
" >&6; }
14642 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
14643 # We already found the complete path
14644 ac_dir=`dirname $STRIP_FOR_TARGET`
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14646 $as_echo "pre-installed
in $ac_dir" >&6; }
14647 elif test "x
$target" = "x
$host"; then
14648 # We can use an host tool
14649 STRIP_FOR_TARGET='$(STRIP)'
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14651 $as_echo "host tool
" >&6; }
14653 # We need a cross tool
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14655 $as_echo "pre-installed
" >&6; }
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
14660 $as_echo_n "checking where to
find the target windres...
" >&6; }
14661 if test "x
${build}" != "x
${host}" ; then
14662 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
14663 # We already found the complete path
14664 ac_dir=`dirname $WINDRES_FOR_TARGET`
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14666 $as_echo "pre-installed
in $ac_dir" >&6; }
14668 # Canadian cross, just use what we found
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14670 $as_echo "pre-installed
" >&6; }
14674 case " ${configdirs} " in
14679 if test $ok = yes; then
14680 # An in-tree tool is available and we can use it
14681 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14683 $as_echo "just compiled
" >&6; }
14684 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
14685 # We already found the complete path
14686 ac_dir=`dirname $WINDRES_FOR_TARGET`
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14688 $as_echo "pre-installed
in $ac_dir" >&6; }
14689 elif test "x
$target" = "x
$host"; then
14690 # We can use an host tool
14691 WINDRES_FOR_TARGET='$(WINDRES)'
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14693 $as_echo "host tool
" >&6; }
14695 # We need a cross tool
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14697 $as_echo "pre-installed
" >&6; }
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
14702 $as_echo_n "checking where to
find the target windmc...
" >&6; }
14703 if test "x
${build}" != "x
${host}" ; then
14704 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
14705 # We already found the complete path
14706 ac_dir=`dirname $WINDMC_FOR_TARGET`
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14708 $as_echo "pre-installed
in $ac_dir" >&6; }
14710 # Canadian cross, just use what we found
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14712 $as_echo "pre-installed
" >&6; }
14716 case " ${configdirs} " in
14721 if test $ok = yes; then
14722 # An in-tree tool is available and we can use it
14723 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
14725 $as_echo "just compiled
" >&6; }
14726 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
14727 # We already found the complete path
14728 ac_dir=`dirname $WINDMC_FOR_TARGET`
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
14730 $as_echo "pre-installed
in $ac_dir" >&6; }
14731 elif test "x
$target" = "x
$host"; then
14732 # We can use an host tool
14733 WINDMC_FOR_TARGET='$(WINDMC)'
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
14735 $as_echo "host tool
" >&6; }
14737 # We need a cross tool
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
14739 $as_echo "pre-installed
" >&6; }
14747 # Certain tools may need extra flags.
14748 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14749 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14750 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14752 # When building target libraries, except in a Canadian cross, we use
14753 # the same toolchain as the compiler we just built.
14754 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14755 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14756 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14757 if test $host = $build; then
14758 case " $configdirs " in
14760 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14761 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14762 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
14772 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
14773 # Check whether --enable-maintainer-mode was given.
14774 if test "${enable_maintainer_mode+set}" = set; then :
14775 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14777 USE_MAINTAINER_MODE=no
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
14781 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14784 if test "$USE_MAINTAINER_MODE" = yes; then
14785 MAINTAINER_MODE_TRUE=
14786 MAINTAINER_MODE_FALSE='#'
14788 MAINTAINER_MODE_TRUE='#'
14789 MAINTAINER_MODE_FALSE=
14791 MAINT=$MAINTAINER_MODE_TRUE
14793 # ---------------------
14794 # GCC bootstrap support
14795 # ---------------------
14797 # Stage specific cflags for build.
14802 yes) stage1_cflags="-g -Wa,-J" ;;
14803 *) stage1_cflags="-g -J" ;;
14809 # Enable --enable-checking in stage1 of the compiler.
14810 # Check whether --enable-stage1-checking was given.
14811 if test "${enable_stage1_checking+set}" = set; then :
14812 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14814 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
14815 # For --disable-checking or implicit --enable-checking=release, avoid
14816 # setting --enable-checking=gc in the default stage1 checking for LTO
14817 # bootstraps. See PR62077.
14818 case $BUILD_CONFIG in
14820 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14822 stage1_checking=--enable-checking=yes,types;;
14824 if test "x
$enable_checking" = x && \
14825 test -d ${srcdir}/gcc && \
14826 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14827 stage1_checking=--enable-checking=yes,types,extra
14830 stage1_checking=--enable-checking=$enable_checking,types
14836 # Enable -Werror in bootstrap stage2 and later.
14837 # Check whether --enable-werror was given.
14838 if test "${enable_werror+set}" = set; then :
14839 enableval=$enable_werror;
14840 case ${enable_werror} in
14841 yes) stage2_werror_flag="--enable-werror-always" ;;
14842 *) stage2_werror_flag="" ;;
14847 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14848 case $BUILD_CONFIG in
14850 stage2_werror_flag="--enable-werror-always" ;;
14852 stage2_werror_flag="--enable-werror-always" ;;
14861 # Specify what files to not compare during bootstrap.
14863 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
14865 hppa*64*-*-hpux*) ;;
14866 hppa*-*-hpux*) compare_exclusions="gcc
/cc
*-checksum\$
(objext
) |
*/libgcc
/lib2funcs
* | gcc
/ada
/*tools
/* | gcc
/function-tests.o
" ;;
14867 powerpc*-ibm-aix*) compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/* |
*libgomp
*\$
(objext
)" ;;
14871 ac_config_files="$ac_config_files Makefile
"
14873 cat >confcache <<\_ACEOF
14874 # This file is a shell script that caches the results of configure
14875 # tests run on this system so they can be shared between configure
14876 # scripts and configure runs, see configure's option --config-cache.
14877 # It is not useful on other systems. If it contains results you don't
14878 # want to keep, you may remove or edit it.
14880 # config.status only pays attention to the cache file if you give it
14881 # the --recheck option to rerun configure.
14883 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14884 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14885 # following values.
14889 # The following way of writing the cache mishandles newlines in values,
14890 # but we know of no workaround that is simple, portable, and efficient.
14891 # So, we kill variables containing newlines.
14892 # Ultrix sh set writes to stderr and can't be redirected directly,
14893 # and sets the high bit in the cache file unless we assign to the vars.
14895 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14896 eval ac_val=\$$ac_var
14900 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
14901 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
14904 _ | IFS | as_nl) ;; #(
14905 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14906 *) { eval $ac_var=; unset $ac_var;} ;;
14912 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14913 *${as_nl}ac_space=\ *)
14914 # `set' does not quote correctly, so add quotes: double-quote
14915 # substitution turns \\\\ into \\, and sed turns \\ into \.
14918 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
14921 # `set' quotes correctly as required by POSIX, so do not add quotes.
14922 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
14931 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14933 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14935 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14936 if test -w "$cache_file"; then
14937 if test "x
$cache_file" != "x
/dev
/null
"; then
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
14939 $as_echo "$as_me: updating cache
$cache_file" >&6;}
14940 if test ! -f "$cache_file" || test -h "$cache_file"; then
14941 cat confcache >"$cache_file"
14943 case $cache_file in #(
14945 mv -f confcache "$cache_file"$$ &&
14946 mv -f "$cache_file"$$ "$cache_file" ;; #(
14948 mv -f confcache "$cache_file" ;;
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
14954 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
14959 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
14960 # Let make expand exec_prefix.
14961 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
14963 # Transform confdefs.h into DEFS.
14964 # Protect against shell expansion while executing Makefile rules.
14965 # Protect against Makefile macro expansion.
14967 # If the first sed substitution is executed (which looks for macros that
14968 # take arguments), then branch to the quote section. Otherwise,
14969 # look for a macro that doesn't take arguments.
14979 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14981 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14985 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
14998 DEFS=`sed -n "$ac_script" confdefs.h`
15004 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15005 # 1. Remove the extension, and $U if already installed.
15006 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
15007 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15008 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15009 # will be set to the directory where LIBOBJS objects are built.
15010 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15011 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
15013 LIBOBJS=$ac_libobjs
15015 LTLIBOBJS=$ac_ltlibobjs
15019 : "${CONFIG_STATUS=./config.status}"
15021 ac_clean_files_save=$ac_clean_files
15022 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15024 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15026 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15028 # Generated by $as_me.
15029 # Run this file to recreate the current configuration.
15030 # Compiler output produced by configure, useful for debugging
15031 # configure, is in config.log if it exists.
15034 ac_cs_recheck=false
15037 SHELL=\${CONFIG_SHELL-$SHELL}
15040 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15041 ## -------------------- ##
15042 ## M4sh Initialization. ##
15043 ## -------------------- ##
15045 # Be more Bourne compatible
15046 DUALCASE=1; export DUALCASE # for MKS sh
15047 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15050 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15051 # is contrary to our usage. Disable this feature.
15052 alias -g '${1+"$@"}'='"$@"'
15053 setopt NO_GLOB_SUBST
15055 case `(set -o) 2>/dev/null` in #(
15067 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15068 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15069 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
15070 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15071 # Prefer a ksh shell builtin over an external printf program on Solaris,
15072 # but without wasting forks for bash or zsh.
15073 if test -z "$BASH_VERSION$ZSH_VERSION" \
15074 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
15075 as_echo
='print -r --'
15076 as_echo_n
='print -rn --'
15077 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
15078 as_echo
='printf %s\n'
15079 as_echo_n
='printf %s'
15081 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15082 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
15083 as_echo_n
='/usr/ucb/echo -n'
15085 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
15086 as_echo_n_body
='eval
15090 expr "X$arg" : "X\\(.*\\)$as_nl";
15091 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15093 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15095 export as_echo_n_body
15096 as_echo_n
='sh -c $as_echo_n_body as_echo'
15098 export as_echo_body
15099 as_echo
='sh -c $as_echo_body as_echo'
15102 # The user is always right.
15103 if test "${PATH_SEPARATOR+set}" != set; then
15105 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
15106 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
15113 # We need space, tab and new line, in precisely that order. Quoting is
15114 # there to prevent editors from complaining about space-tab.
15115 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15116 # splitting by setting IFS to empty value.)
15119 # Find who we are. Look in the path if we contain no directory separator.
15122 *[\\/]* ) as_myself
=$0 ;;
15123 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15124 for as_dir
in $PATH
15127 test -z "$as_dir" && as_dir
=.
15128 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15134 # We did not find ourselves, most probably we were run as `sh COMMAND'
15135 # in which case we are not to be found in the path.
15136 if test "x$as_myself" = x
; then
15139 if test ! -f "$as_myself"; then
15140 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15144 # Unset variables that we do not need and which cause bugs (e.g. in
15145 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15146 # suppresses any "Segmentation fault" message there. '((' could
15147 # trigger a bug in pdksh 5.2.14.
15148 for as_var
in BASH_ENV ENV MAIL MAILPATH
15149 do eval test x\
${$as_var+set} = xset \
15150 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15163 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15166 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15167 # ----------------------------------------
15168 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15169 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15170 # script with STATUS, using 1 if that was 0.
15173 as_status
=$1; test $as_status -eq 0 && as_status
=1
15175 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15176 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15178 $as_echo "$as_me: error: $2" >&2
15179 as_fn_exit
$as_status
15183 # as_fn_set_status STATUS
15184 # -----------------------
15185 # Set $? to STATUS, without forking.
15186 as_fn_set_status
()
15189 } # as_fn_set_status
15191 # as_fn_exit STATUS
15192 # -----------------
15193 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15197 as_fn_set_status
$1
15203 # Portably unset VAR.
15206 { eval $1=; unset $1;}
15208 as_unset
=as_fn_unset
15209 # as_fn_append VAR VALUE
15210 # ----------------------
15211 # Append the text in VALUE to the end of the definition contained in VAR. Take
15212 # advantage of any shell optimizations that allow amortized linear growth over
15213 # repeated appends, instead of the typical quadratic growth present in naive
15215 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15216 eval 'as_fn_append ()
15227 # as_fn_arith ARG...
15228 # ------------------
15229 # Perform arithmetic evaluation on the ARGs, and store the result in the
15230 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15231 # must be portable across $(()) and expr.
15232 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15233 eval 'as_fn_arith ()
15240 as_val
=`expr "$@" || test $? -eq 1`
15245 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15246 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15252 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15253 as_basename
=basename
15258 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15264 as_me
=`$as_basename -- "$0" ||
15265 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15266 X"$0" : 'X\(//\)$' \| \
15267 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15269 sed '/^.*\/\([^/][^/]*\)\/*$/{
15283 # Avoid depending upon Character Ranges.
15284 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15285 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15286 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15287 as_cr_digits
='0123456789'
15288 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15290 ECHO_C
= ECHO_N
= ECHO_T
=
15291 case `echo -n x` in #(((((
15293 case `echo 'xy\c'` in
15294 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15296 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15303 rm -f conf$$ conf$$.exe conf$$.
file
15304 if test -d conf$$.dir
; then
15305 rm -f conf$$.dir
/conf$$.
file
15308 mkdir conf$$.dir
2>/dev
/null
15310 if (echo >conf$$.
file) 2>/dev
/null
; then
15311 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15313 # ... but there are two gotchas:
15314 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15315 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15316 # In both cases, we have to default to `cp -pR'.
15317 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15319 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15327 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15328 rmdir conf$$.dir
2>/dev
/null
15333 # Create "$as_dir" as a directory, including parents if necessary.
15338 -*) as_dir
=.
/$as_dir;;
15340 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15344 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15345 *) as_qdir
=$as_dir;;
15347 as_dirs
="'$as_qdir' $as_dirs"
15348 as_dir
=`$as_dirname -- "$as_dir" ||
15349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15350 X"$as_dir" : 'X\(//\)[^/]' \| \
15351 X"$as_dir" : 'X\(//\)$' \| \
15352 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15353 $as_echo X"$as_dir" |
15354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15358 /^X\(\/\/\)[^/].*/{
15371 test -d "$as_dir" && break
15373 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15374 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15378 if mkdir
-p .
2>/dev
/null
; then
15379 as_mkdir_p
='mkdir -p "$as_dir"'
15381 test -d .
/-p && rmdir .
/-p
15386 # as_fn_executable_p FILE
15387 # -----------------------
15388 # Test if FILE is an executable regular file.
15389 as_fn_executable_p
()
15391 test -f "$1" && test -x "$1"
15392 } # as_fn_executable_p
15393 as_test_x
='test -x'
15394 as_executable_p
=as_fn_executable_p
15396 # Sed expression to map a string onto a valid CPP name.
15397 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15399 # Sed expression to map a string onto a valid variable name.
15400 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15404 ## ----------------------------------- ##
15405 ## Main body of $CONFIG_STATUS script. ##
15406 ## ----------------------------------- ##
15408 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15411 # Save the log message, to keep $0 and so on meaningful, and to
15412 # report actual input values of CONFIG_FILES etc. instead of their
15413 # values after options handling.
15415 This file was extended by $as_me, which was
15416 generated by GNU Autoconf 2.69. Invocation command line was
15418 CONFIG_FILES = $CONFIG_FILES
15419 CONFIG_HEADERS = $CONFIG_HEADERS
15420 CONFIG_LINKS = $CONFIG_LINKS
15421 CONFIG_COMMANDS = $CONFIG_COMMANDS
15424 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15429 case $ac_config_files in *"
15430 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15436 # Files that config.status was made for.
15437 config_files="$ac_config_files"
15441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15443 \`$as_me' instantiates files and other configuration actions
15444 from templates according to the current configuration. Unless the files
15445 and actions are specified as TAGs, all are instantiated by default.
15447 Usage: $0 [OPTION]... [TAG]...
15449 -h, --help print this help, then exit
15450 -V, --version print version number and configuration settings, then exit
15451 --config print configuration, then exit
15452 -q, --quiet, --silent
15453 do not print progress messages
15454 -d, --debug don't remove temporary files
15455 --recheck update $as_me by reconfiguring in the same conditions
15456 --file=FILE[:TEMPLATE]
15457 instantiate the configuration file FILE
15459 Configuration files:
15462 Report bugs to the package provider."
15465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15466 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15469 configured by $0, generated by GNU Autoconf 2.69,
15470 with options \\"\$ac_cs_config\\"
15472 Copyright (C) 2012 Free Software Foundation, Inc.
15473 This config.status script is free software; the Free Software Foundation
15474 gives unlimited permission to copy, distribute and modify it."
15480 test -n "\$AWK" || AWK=awk
15483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15484 # The default lists apply if the user does not specify any file.
15490 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15491 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15495 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15507 # Handling of the options.
15508 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15510 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15511 $as_echo "$ac_cs_version"; exit ;;
15512 --config |
--confi |
--conf |
--con |
--co |
--c )
15513 $as_echo "$ac_cs_config"; exit ;;
15514 --debug |
--debu |
--deb |
--de |
--d |
-d )
15516 --file |
--fil |
--fi |
--f )
15519 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15520 '') as_fn_error $?
"missing file argument" ;;
15522 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15523 ac_need_defaults
=false
;;
15524 --he |
--h |
--help |
--hel |
-h )
15525 $as_echo "$ac_cs_usage"; exit ;;
15526 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15527 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15530 # This is an error.
15531 -*) as_fn_error $?
"unrecognized option: \`$1'
15532 Try \`$0 --help' for more information." ;;
15534 *) as_fn_append ac_config_targets
" $1"
15535 ac_need_defaults
=false
;;
15541 ac_configure_extra_args
=
15543 if $ac_cs_silent; then
15545 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15550 if \$ac_cs_recheck; then
15551 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15553 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15554 CONFIG_SHELL='$SHELL'
15555 export CONFIG_SHELL
15560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15564 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15565 ## Running $as_me. ##
15571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15575 extrasub_build="$extrasub_build"
15576 extrasub_host="$extrasub_host"
15577 extrasub_target="$extrasub_target"
15581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15583 # Handling of arguments.
15584 for ac_config_target
in $ac_config_targets
15586 case $ac_config_target in
15587 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15589 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15594 # If the user did not use the arguments to specify the items to instantiate,
15595 # then the envvar interface is used. Set only those that are not.
15596 # We use the long form for the default assignment because of an extremely
15597 # bizarre bug on SunOS 4.1.3.
15598 if $ac_need_defaults; then
15599 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15602 # Have a temporary directory for convenience. Make it in the build tree
15603 # simply because there is no reason against having it here, and in addition,
15604 # creating and moving files from /tmp can sometimes cause problems.
15605 # Hook for its removal unless debugging.
15606 # Note that there is a small window in which the directory will not be cleaned:
15607 # after its creation but before its name has been assigned to `$tmp'.
15611 trap 'exit_status=$?
15612 : "${ac_tmp:=$tmp}"
15613 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15615 trap 'as_fn_exit 1' 1 2 13 15
15617 # Create a (secure) tmp directory for tmp files.
15620 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15624 tmp
=.
/conf$$
-$RANDOM
15625 (umask 077 && mkdir
"$tmp")
15626 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15629 # Set up the scripts for CONFIG_FILES section.
15630 # No need to generate them if there are no CONFIG_FILES.
15631 # This happens for instance with `./config.status config.h'.
15632 if test -n "$CONFIG_FILES"; then
15634 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15635 ac_cs_awk_getline
=:
15636 ac_cs_awk_pipe_init
=
15637 ac_cs_awk_read_file
='
15638 while ((getline aline < (F[key])) > 0)
15641 ac_cs_awk_pipe_fini
=
15643 ac_cs_awk_getline
=false
15644 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15645 ac_cs_awk_read_file
='
15647 print "cat " F[key] " &&"
15648 '$ac_cs_awk_pipe_init
15649 # The final `:' finishes the AND list.
15650 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15652 ac_cr
=`echo X | tr X '\015'`
15653 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15654 # But we know of no other shell where ac_cr would be empty at this
15655 # point, so we can use a bashism as a fallback.
15656 if test "x$ac_cr" = x
; then
15657 eval ac_cr
=\$
\'\\r
\'
15659 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15660 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15663 ac_cs_awk_cr
=$ac_cr
15666 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15669 # Create commands to substitute file output variables.
15671 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15672 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15673 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15676 } >conf$
$files.sh
&&
15677 . .
/conf$
$files.sh ||
15678 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
15679 rm -f conf$
$files.sh
15682 echo "cat >conf$$subs.awk <<_ACEOF" &&
15683 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15685 } >conf$$subs.sh ||
15686 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15687 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15689 for ac_last_try in false false false false false :; do
15690 . ./conf$$subs.sh ||
15691 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15693 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15694 if test $ac_delim_n = $ac_delim_num; then
15696 elif $ac_last_try; then
15697 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15699 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15702 rm -f conf$$subs.sh
15704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15705 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15709 s/^/S["/; s
/!.
*/"]=/
15719 s/\(.\{148\}\)..*/\1/
15721 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15726 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15733 s/\(.\{148\}\)..*/\1/
15735 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15739 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15744 ' <conf$$subs.awk | sed '
15749 ' >>$CONFIG_STATUS || ac_write_fail=1
15750 rm -f conf$$subs.awk
15751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15753 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15754 for (key in S) S_is_set[key] = 1
15756 \$ac_cs_awk_pipe_init
15760 nfields = split(line, field, "@
")
15762 len = length(field[1])
15763 for (i = 2; i < nfields; i++) {
15765 keylen = length(key)
15766 if (S_is_set[key]) {
15768 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15769 len += length(value) + length(field[++i])
15774 if (nfields == 3 && !substed) {
15776 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15777 \$ac_cs_awk_read_file
15783 \$ac_cs_awk_pipe_fini
15786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15787 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15788 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15791 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15792 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15795 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15796 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15797 # trailing colons and then remove the whole line if VPATH becomes empty
15798 # (actually we leave an empty line to preserve line numbers).
15799 if test "x
$srcdir" = x.; then
15800 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15819 fi # test -n "$CONFIG_FILES"
15822 eval set X " :F
$CONFIG_FILES "
15827 :[FHLC]) ac_mode=$ac_tag; continue;;
15829 case $ac_mode$ac_tag in
15831 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
15832 :[FH]-) ac_tag=-:-;;
15833 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15850 -) ac_f="$ac_tmp/stdin";;
15851 *) # Look for the file first in the build tree, then in the source tree
15852 # (if the path is not absolute). The absolute path cannot be DOS-style,
15853 # because $ac_f cannot contain `:'.
15857 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15859 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15861 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
15862 as_fn_append ac_file_inputs " '$ac_f'"
15865 # Let's still pretend it is `configure' which instantiates (i.e., don't
15866 # use $as_me), people would be surprised to read:
15867 # /* config.h. Generated by config.status. */
15868 configure_input='Generated from '`
15869 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15871 if test x"$ac_file" != x-; then
15872 configure_input="$ac_file.
$configure_input"
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
15874 $as_echo "$as_me: creating
$ac_file" >&6;}
15876 # Neutralize special characters interpreted by sed in replacement strings.
15877 case $configure_input in #(
15878 *\&* | *\|* | *\\* )
15879 ac_sed_conf_input=`$as_echo "$configure_input" |
15880 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15881 *) ac_sed_conf_input=$configure_input;;
15885 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
15886 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
15891 ac_dir=`$as_dirname -- "$ac_file" ||
15892 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15893 X"$ac_file" : 'X\(//\)[^/]' \| \
15894 X"$ac_file" : 'X\(//\)$' \| \
15895 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15896 $as_echo X"$ac_file" |
15897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15901 /^X\(\/\/\)[^/].*/{
15914 as_dir="$ac_dir"; as_fn_mkdir_p
15918 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15920 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15921 # A "..
" for each directory in $ac_dir_suffix.
15922 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15923 case $ac_top_builddir_sub in
15924 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15925 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15928 ac_abs_top_builddir=$ac_pwd
15929 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15930 # for backward compatibility:
15931 ac_top_builddir=$ac_top_build_prefix
15934 .) # We are building in place.
15936 ac_top_srcdir=$ac_top_builddir_sub
15937 ac_abs_top_srcdir=$ac_pwd ;;
15938 [\\/]* | ?:[\\/]* ) # Absolute name.
15939 ac_srcdir=$srcdir$ac_dir_suffix;
15940 ac_top_srcdir=$srcdir
15941 ac_abs_top_srcdir=$srcdir ;;
15942 *) # Relative name.
15943 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15944 ac_top_srcdir=$ac_top_build_prefix$srcdir
15945 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15947 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15957 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15958 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15963 # If the template does not know about datarootdir, expand it.
15964 # FIXME: This hack should be removed a few years after 2.60.
15965 ac_datarootdir_hack=; ac_datarootdir_seen=
15976 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
15977 *datarootdir*) ac_datarootdir_seen=yes;;
15978 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
15980 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
15982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15983 ac_datarootdir_hack='
15984 s&@datadir@&$datadir&g
15985 s&@docdir@&$docdir&g
15986 s&@infodir@&$infodir&g
15987 s&@localedir@&$localedir&g
15988 s&@mandir@&$mandir&g
15989 s&\\\${datarootdir}&$datarootdir&g' ;;
15993 # Neutralize VPATH when `$srcdir' = `.'.
15994 # Shell code in configure.ac might set extrasub.
15995 # FIXME: do we really want to maintain this feature?
15996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15997 ac_sed_extra="$ac_vpsub
16000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16002 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16003 s|@configure_input@|
$ac_sed_conf_input|
;t t
16004 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16005 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16006 s
&@srcdir@
&$ac_srcdir&;t t
16007 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16008 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16009 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16010 s
&@builddir@
&$ac_builddir&;t t
16011 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16012 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16013 s
&@INSTALL@
&$ac_INSTALL&;t t
16014 $ac_datarootdir_hack
16016 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16017 if $ac_cs_awk_getline; then
16018 $AWK -f "$ac_tmp/subs.
awk"
16020 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
16022 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16024 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16025 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16026 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16027 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16029 which seems to be undefined. Please make sure it is defined" >&5
16030 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16031 which seems to be undefined. Please make sure it is defined" >&2;}
16033 rm -f "$ac_tmp/stdin"
16035 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16036 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16046 case $ac_file$ac_mode in
16047 "Makefile":F) sed "$extrasub_build" Makefile |
16048 sed "$extrasub_host" |
16049 sed "$extrasub_target" > mf$$
16050 mv -f mf$$ Makefile ;;
16058 ac_clean_files=$ac_clean_files_save
16060 test $ac_write_fail = 0 ||
16061 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16064 # configure is writing to config.log, and then calls config.status.
16065 # config.status does its own redirection, appending to config.log.
16066 # Unfortunately, on DOS this fails, as config.log is still kept open
16067 # by configure, so config.status won't be able to
write to it
; its
16068 # output is simply discarded. So we exec the FD to /dev/null,
16069 # effectively closing config.log, so it can be properly (re)opened and
16070 # appended to by config.status. When coming back to configure, we
16071 # need to make the FD available again.
16072 if test "$no_create" != yes; then
16074 ac_config_status_args
=
16075 test "$silent" = yes &&
16076 ac_config_status_args
="$ac_config_status_args --quiet"
16078 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16080 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16081 # would make configure fail if this is the last instruction.
16082 $ac_cs_success || as_fn_exit
1
16084 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16086 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}