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
686 DEBUG_PREFIX_CFLAGS_FOR_TARGET
687 SYSROOT_CFLAGS_FOR_TARGET
689 extra_host_zlib_configure_flags
690 extra_host_libiberty_configure_flags
698 extra_linker_plugin_flags
699 extra_linker_plugin_configure_flags
706 extra_isl_gmp_configure_flags
707 extra_mpc_mpfr_configure_flags
708 extra_mpc_gmp_configure_flags
709 extra_mpfr_configure_flags
758 TOPLEVEL_CONFIGURE_ARGUMENTS
786 program_transform_name
797 ac_subst_files
='serialization_dependencies
803 enable_option_checking
807 enable_as_accelerator_for
808 enable_offload_targets
809 enable_offload_defaulted
813 enable_compressed_debug_sections
814 enable_default_compressed_debug_sections_algorithm
817 enable_libquadmath_support
834 with_static_standard_libraries
841 enable_isl_version_check
843 enable_linker_plugin_configure_flags
844 enable_linker_plugin_flags
847 enable_stage1_languages
850 with_target_bdw_gc_include
851 with_target_bdw_gc_lib
852 with_gcc_major_version_only
854 with_debug_prefix_map
857 enable_serial_configure
858 with_build_time_tools
859 enable_maintainer_mode
860 enable_stage1_checking
863 ac_precious_vars
='build_alias
916 # Initialize some variables set by options.
918 ac_init_version
=false
919 ac_unrecognized_opts
=
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
930 program_transform_name
=s
,x
,x
,
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir
='${exec_prefix}/bin'
945 sbindir
='${exec_prefix}/sbin'
946 libexecdir
='${exec_prefix}/libexec'
947 datarootdir
='${prefix}/share'
948 datadir
='${datarootdir}'
949 sysconfdir
='${prefix}/etc'
950 sharedstatedir
='${prefix}/com'
951 localstatedir
='${prefix}/var'
952 includedir
='${prefix}/include'
953 oldincludedir
='/usr/include'
954 docdir
='${datarootdir}/doc/${PACKAGE}'
955 infodir
='${datarootdir}/info'
960 libdir
='${exec_prefix}/lib'
961 localedir
='${datarootdir}/locale'
962 mandir
='${datarootdir}/man'
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\
$ac_option
976 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 # Accept the important Cygnus configure options, so we can diagnose typos.
983 case $ac_dashdash$ac_option in
987 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
989 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
992 -build |
--build |
--buil |
--bui |
--bu)
993 ac_prev
=build_alias
;;
994 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
995 build_alias
=$ac_optarg ;;
997 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
998 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
999 ac_prev
=cache_file
;;
1000 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1001 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1002 cache_file
=$ac_optarg ;;
1004 --config-cache |
-C)
1005 cache_file
=config.cache
;;
1007 -datadir |
--datadir |
--datadi |
--datad)
1009 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1010 datadir
=$ac_optarg ;;
1012 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1013 |
--dataroo |
--dataro |
--datar)
1014 ac_prev
=datarootdir
;;
1015 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1016 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1017 datarootdir
=$ac_optarg ;;
1019 -disable-* |
--disable-*)
1020 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1023 as_fn_error $?
"invalid feature name: $ac_useropt"
1024 ac_useropt_orig
=$ac_useropt
1025 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_
$ac_useropt"
1030 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep
=', ';;
1033 eval enable_
$ac_useropt=no
;;
1035 -docdir |
--docdir |
--docdi |
--doc |
--do)
1037 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1038 docdir
=$ac_optarg ;;
1040 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1042 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1043 dvidir
=$ac_optarg ;;
1045 -enable-* |
--enable-*)
1046 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1049 as_fn_error $?
"invalid feature name: $ac_useropt"
1050 ac_useropt_orig
=$ac_useropt
1051 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_
$ac_useropt"
1056 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057 ac_unrecognized_sep
=', ';;
1059 eval enable_
$ac_useropt=\
$ac_optarg ;;
1061 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1062 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1063 |
--exec |
--exe |
--ex)
1064 ac_prev
=exec_prefix
;;
1065 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1066 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1067 |
--exec=* |
--exe=* |
--ex=*)
1068 exec_prefix
=$ac_optarg ;;
1070 -gas |
--gas |
--ga |
--g)
1071 # Obsolete; use --with-gas.
1074 -help |
--help |
--hel |
--he |
-h)
1075 ac_init_help
=long
;;
1076 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1077 ac_init_help
=recursive
;;
1078 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1079 ac_init_help
=short
;;
1081 -host |
--host |
--hos |
--ho)
1082 ac_prev
=host_alias
;;
1083 -host=* |
--host=* |
--hos=* |
--ho=*)
1084 host_alias
=$ac_optarg ;;
1086 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1088 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1090 htmldir
=$ac_optarg ;;
1092 -includedir |
--includedir |
--includedi |
--included |
--include \
1093 |
--includ |
--inclu |
--incl |
--inc)
1094 ac_prev
=includedir
;;
1095 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1096 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1097 includedir
=$ac_optarg ;;
1099 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1101 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1102 infodir
=$ac_optarg ;;
1104 -libdir |
--libdir |
--libdi |
--libd)
1106 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1107 libdir
=$ac_optarg ;;
1109 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1110 |
--libexe |
--libex |
--libe)
1111 ac_prev
=libexecdir
;;
1112 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1113 |
--libexe=* |
--libex=* |
--libe=*)
1114 libexecdir
=$ac_optarg ;;
1116 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1117 ac_prev
=localedir
;;
1118 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1119 localedir
=$ac_optarg ;;
1121 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1122 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1123 ac_prev
=localstatedir
;;
1124 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1125 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1126 localstatedir
=$ac_optarg ;;
1128 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1130 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1131 mandir
=$ac_optarg ;;
1133 -nfp |
--nfp |
--nf)
1134 # Obsolete; use --without-fp.
1137 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1138 |
--no-cr |
--no-c |
-n)
1141 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1142 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1145 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1146 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1147 |
--oldin |
--oldi |
--old |
--ol |
--o)
1148 ac_prev
=oldincludedir
;;
1149 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1150 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1151 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1152 oldincludedir
=$ac_optarg ;;
1154 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1156 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1157 prefix
=$ac_optarg ;;
1159 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1160 |
--program-pre |
--program-pr |
--program-p)
1161 ac_prev
=program_prefix
;;
1162 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1163 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1164 program_prefix
=$ac_optarg ;;
1166 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1167 |
--program-suf |
--program-su |
--program-s)
1168 ac_prev
=program_suffix
;;
1169 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1170 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1171 program_suffix
=$ac_optarg ;;
1173 -program-transform-name |
--program-transform-name \
1174 |
--program-transform-nam |
--program-transform-na \
1175 |
--program-transform-n |
--program-transform- \
1176 |
--program-transform |
--program-transfor \
1177 |
--program-transfo |
--program-transf \
1178 |
--program-trans |
--program-tran \
1179 |
--progr-tra |
--program-tr |
--program-t)
1180 ac_prev
=program_transform_name
;;
1181 -program-transform-name=* |
--program-transform-name=* \
1182 |
--program-transform-nam=* |
--program-transform-na=* \
1183 |
--program-transform-n=* |
--program-transform-=* \
1184 |
--program-transform=* |
--program-transfor=* \
1185 |
--program-transfo=* |
--program-transf=* \
1186 |
--program-trans=* |
--program-tran=* \
1187 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1188 program_transform_name
=$ac_optarg ;;
1190 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1192 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1193 pdfdir
=$ac_optarg ;;
1195 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1197 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1200 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1201 |
-silent |
--silent |
--silen |
--sile |
--sil)
1204 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1206 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1208 sbindir
=$ac_optarg ;;
1210 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1211 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1212 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1214 ac_prev
=sharedstatedir
;;
1215 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1216 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1217 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1219 sharedstatedir
=$ac_optarg ;;
1221 -site |
--site |
--sit)
1223 -site=* |
--site=* |
--sit=*)
1226 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1228 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1229 srcdir
=$ac_optarg ;;
1231 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1232 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1233 ac_prev
=sysconfdir
;;
1234 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1235 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1236 sysconfdir
=$ac_optarg ;;
1238 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1239 ac_prev
=target_alias
;;
1240 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1241 target_alias
=$ac_optarg ;;
1243 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1246 -version |
--version |
--versio |
--versi |
--vers |
-V)
1247 ac_init_version
=: ;;
1250 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1253 as_fn_error $?
"invalid package name: $ac_useropt"
1254 ac_useropt_orig
=$ac_useropt
1255 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1260 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep
=', ';;
1263 eval with_
$ac_useropt=\
$ac_optarg ;;
1265 -without-* |
--without-*)
1266 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1269 as_fn_error $?
"invalid package name: $ac_useropt"
1270 ac_useropt_orig
=$ac_useropt
1271 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1276 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277 ac_unrecognized_sep
=', ';;
1279 eval with_
$ac_useropt=no
;;
1282 # Obsolete; use --with-x.
1285 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1286 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1287 ac_prev
=x_includes
;;
1288 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1289 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1290 x_includes
=$ac_optarg ;;
1292 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1293 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1294 ac_prev
=x_libraries
;;
1295 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1296 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1297 x_libraries
=$ac_optarg ;;
1299 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1300 Try \`$0 --help' for more information"
1304 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
1306 case $ac_envvar in #(
1307 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1308 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1310 eval $ac_envvar=\
$ac_optarg
1311 export $ac_envvar ;;
1314 # FIXME: should be removed in autoconf 3.0.
1315 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1317 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1324 if test -n "$ac_prev"; then
1325 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1326 as_fn_error $?
"missing argument to $ac_option"
1329 if test -n "$ac_unrecognized_opts"; then
1330 case $enable_option_checking in
1332 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337 # Check all directory arguments for consistency.
1338 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
1343 eval ac_val
=\$
$ac_var
1344 # Remove trailing slashes.
1347 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\
$ac_val;;
1350 # Be sure to have absolute directory names.
1352 [\\/$
]* | ?
:[\\/]* ) continue;;
1353 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1355 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1363 target
=$target_alias
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x
; then
1367 if test "x$build_alias" = x
; then
1368 cross_compiling
=maybe
1369 elif test "x$build_alias" != "x$host_alias"; then
1375 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1377 test "$silent" = yes && exec 6>/dev
/null
1380 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1381 ac_ls_di
=`ls -di .` &&
1382 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1383 as_fn_error $?
"working directory cannot be determined"
1384 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385 as_fn_error $?
"pwd does not report name of working directory"
1388 # Find the source files, if location was not specified.
1389 if test -z "$srcdir"; then
1390 ac_srcdir_defaulted
=yes
1391 # Try the directory containing this script, then the parent directory.
1392 ac_confdir
=`$as_dirname -- "$as_myself" ||
1393 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$as_myself" : 'X\(//\)[^/]' \| \
1395 X"$as_myself" : 'X\(//\)$' \| \
1396 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1397 $as_echo X"$as_myself" |
1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1420 ac_srcdir_defaulted
=no
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1424 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1426 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1428 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1430 # When building in place, set srcdir=.
1431 if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 # Remove unnecessary trailing slashes from srcdir.
1435 # Double slashes in file names in object file debugging info
1436 # mess up M-x gdb in Emacs.
1438 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 as_fn_error $?
"path to source, $srcdir, contains spaces"
1445 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1447 for ac_var
in $ac_precious_vars; do
1448 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1450 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1455 # Report the --help message.
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1461 \`configure' configures this package to adapt to many kinds of systems.
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1468 Defaults for the options are specified in brackets.
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking ...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1492 For better control, use the options below.
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1519 --program-prefix=PREFIX prepend PREFIX to installed program names
1520 --program-suffix=SUFFIX append SUFFIX to installed program names
1521 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1524 --build=BUILD configure
for building on BUILD
[guessed
]
1525 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1526 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1530 if test -n "$ac_init_help"; then
1535 --disable-option-checking ignore unrecognized
--enable/--with options
1536 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1537 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1538 --enable-as-accelerator-for=ARG
1539 build as offload target compiler. Specify offload
1541 --enable-offload-targets=LIST
1542 enable offloading to devices from comma-separated
1543 LIST of TARGET
[=DIR
]. Use optional path to
find
1544 offload target compiler during the build
1545 --enable-offload-defaulted
1546 If enabled
, configured but not installed offload compilers and
1547 libgomp plugins are silently ignored. Useful
for distribution
1548 compilers where those are
in separate optional packages.
1550 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1551 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1552 --enable-gprofng[=ARG
] build gprofng
[ARG
={yes,no
}]
1553 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1554 Enable compressed debug sections
for gas
, gold or ld
1556 --enable-default-compressed-debug-sections-algorithm={zlib
,zstd
}
1557 Default compression algorithm
for
1558 --enable-compressed-debug-sections.
1559 --enable-year2038 enable support
for timestamps past the year
2038
1560 --disable-libquadmath do not build libquadmath directory
1561 --disable-libquadmath-support
1562 disable libquadmath support
for Fortran
1563 --enable-libada build libada directory
1564 --enable-libgm2 build libgm2 directory
1565 --enable-libssp build libssp directory
1566 --disable-libstdcxx do not build libstdc
++-v3 directory
1567 --enable-bootstrap enable bootstrapping
[yes if native build
]
1568 --enable-pgo-build[=lto
]
1569 enable the PGO build
1570 --disable-isl-version-check
1571 disable check
for isl version
1572 --enable-lto enable link
time optimization support
1573 --enable-linker-plugin-configure-flags=FLAGS
1574 additional flags
for configuring linker plugins
1576 --enable-linker-plugin-flags=FLAGS
1577 additional flags
for configuring and building linker
1579 --enable-host-pie build position independent
host executables
1580 --enable-host-shared build
host code as shared libraries
1581 --enable-stage1-languages[=all
]
1582 choose additional languages to build during stage1.
1583 Mostly useful
for compiler development
1584 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1586 --enable-vtable-verify Enable vtable verification feature
1587 --enable-serial-[{host,target,build}-]configure
1588 force sequential configuration of sub-packages for
1589 the host, target or build machine, or all
1591 --enable-maintainer-mode
1592 enable make rules and dependencies not useful (and
1593 sometimes confusing) to the casual installer
1594 --enable-stage1-checking[=all]
1595 choose additional checking for stage1 of the
1597 --enable-werror enable -Werror in bootstrap stage2 and later
1600 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1601 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1602 --with-build-libsubdir=DIR Directory where to find libraries for build system
1603 --with-system-zlib use installed libz
1604 --with-zstd Support zstd compressed debug sections
1606 --with-mpc=PATH specify prefix directory for installed MPC package.
1607 Equivalent to --with-mpc-include=PATH/include plus
1608 --with-mpc-lib=PATH/lib
1609 --with-mpc-include=PATH specify directory for installed MPC include files
1610 --with-mpc-lib=PATH specify directory for the installed MPC library
1611 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1612 Equivalent to --with-mpfr-include=PATH/include plus
1613 --with-mpfr-lib=PATH/lib
1614 --with-mpfr-include=PATH
1615 specify directory for installed MPFR include files
1616 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1617 --with-gmp=PATH specify prefix directory for the installed GMP
1618 package. Equivalent to
1619 --with-gmp-include=PATH/include plus
1620 --with-gmp-lib=PATH/lib
1621 --with-gmp-include=PATH specify directory for installed GMP include files
1622 --with-gmp-lib=PATH specify directory for the installed GMP library
1623 --with-stage1-libs=LIBS libraries for stage1
1624 --with-static-standard-libraries
1625 use -static-libstdc++ and -static-libgcc
1627 --with-stage1-ldflags=FLAGS
1628 linker flags for stage1
1629 --with-boot-libs=LIBS libraries for stage2 and later
1630 --with-boot-ldflags=FLAGS
1631 linker flags for stage2 and later
1632 --with-isl=PATH Specify prefix directory for the installed isl
1633 package. Equivalent to
1634 --with-isl-include=PATH/include plus
1635 --with-isl-lib=PATH/lib
1636 --with-isl-include=PATH Specify directory for installed isl include files
1637 --with-isl-lib=PATH Specify the directory for the installed isl library
1638 --with-target-bdw-gc=PATHLIST
1639 specify prefix directory for installed bdw-gc
1640 package. Equivalent to
1641 --with-target-bdw-gc-include=PATH/include plus
1642 --with-target-bdw-gc-lib=PATH/lib
1643 --with-target-bdw-gc-include=PATHLIST
1644 specify directories for installed bdw-gc include
1646 --with-target-bdw-gc-lib=PATHLIST
1647 specify directories for installed bdw-gc library
1648 --with-gcc-major-version-only
1649 use only GCC major number in filesystem paths
1650 --with-build-sysroot=SYSROOT
1651 use sysroot as the system root during the build
1652 --with-debug-prefix-map='A
=B C
=D ...
'
1653 map A to B, C to D ... in debug information
1654 --with-build-config='NAME NAME2...
'
1655 use config/NAME.mk build configuration
1656 --with-build-time-tools=PATH
1657 use given path to find target tools during the build
1659 Some influential environment variables:
1660 CC C compiler command
1661 CFLAGS C compiler flags
1662 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1663 nonstandard directory <lib dir>
1664 LIBS libraries to pass to the linker, e.g. -l<library>
1665 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1666 you have headers in a nonstandard directory <include dir>
1667 CXX C++ compiler command
1668 CXXFLAGS C++ compiler flags
1670 additional configure arguments for build directories
1672 additional configure arguments for host directories
1674 additional configure arguments for target directories
1677 DLLTOOL DLLTOOL for the host
1678 DSYMUTIL DSYMUTIL for the host
1680 LIPO LIPO for the host
1682 RANLIB RANLIB for the host
1683 STRIP STRIP for the host
1684 WINDRES WINDRES for the host
1685 WINDMC WINDMC for the host
1686 OBJCOPY OBJCOPY for the host
1687 OBJDUMP OBJDUMP for the host
1688 OTOOL OTOOL for the host
1689 READELF READELF for the host
1697 GFORTRAN for the target
1709 DLLTOOL for the target
1711 DSYMUTIL for the target
1719 OBJCOPY for the target
1721 OBJDUMP for the target
1723 OTOOL for the target
1725 RANLIB for the target
1727 READELF for the target
1729 STRIP for the target
1731 WINDRES for the target
1733 WINDMC for the target
1735 Use these variables to override the choices made by `configure' or to
help
1736 it to
find libraries and programs with nonstandard names
/locations.
1738 Report bugs to the package provider.
1743 if test "$ac_init_help" = "recursive"; then
1744 # If there are subdirs, report their specific --help.
1745 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1746 test -d "$ac_dir" ||
1747 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1752 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1754 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1755 # A ".." for each directory in $ac_dir_suffix.
1756 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1757 case $ac_top_builddir_sub in
1758 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1759 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1762 ac_abs_top_builddir
=$ac_pwd
1763 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1764 # for backward compatibility:
1765 ac_top_builddir
=$ac_top_build_prefix
1768 .
) # We are building in place.
1770 ac_top_srcdir
=$ac_top_builddir_sub
1771 ac_abs_top_srcdir
=$ac_pwd ;;
1772 [\\/]* | ?
:[\\/]* ) # Absolute name.
1773 ac_srcdir
=$srcdir$ac_dir_suffix;
1774 ac_top_srcdir
=$srcdir
1775 ac_abs_top_srcdir
=$srcdir ;;
1777 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1778 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1779 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1781 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1783 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1784 # Check for guested configure.
1785 if test -f "$ac_srcdir/configure.gnu"; then
1787 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1788 elif test -f "$ac_srcdir/configure"; then
1790 $SHELL "$ac_srcdir/configure" --help=recursive
1792 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1794 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1798 test -n "$ac_init_help" && exit $ac_status
1799 if $ac_init_version; then
1802 generated by GNU Autoconf
2.69
1804 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1805 This configure
script is free software
; the Free Software Foundation
1806 gives unlimited permission to copy
, distribute and modify it.
1811 ## ------------------------ ##
1812 ## Autoconf initialization. ##
1813 ## ------------------------ ##
1815 # ac_fn_c_try_compile LINENO
1816 # --------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_compile
()
1820 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1821 rm -f conftest.
$ac_objext
1822 if { { ac_try
="$ac_compile"
1824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_c_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1851 } # ac_fn_c_try_compile
1853 # ac_fn_cxx_try_compile LINENO
1854 # ----------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1863 *) ac_try_echo
=$ac_try;;
1865 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1869 if test -s conftest.err
; then
1870 grep -v '^ *+' conftest.err
>conftest.er1
1871 cat conftest.er1
>&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.
$ac_objext; then :
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.
$ac_ext >&5
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status
$ac_retval
1889 } # ac_fn_cxx_try_compile
1891 # ac_fn_cxx_try_link LINENO
1892 # -------------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_cxx_try_link
()
1896 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1897 rm -f conftest.
$ac_objext conftest
$ac_exeext
1898 if { { ac_try
="$ac_link"
1900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_cxx_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 test -x conftest$ac_exeext
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1935 } # ac_fn_cxx_try_link
1937 # ac_fn_c_try_link LINENO
1938 # -----------------------
1939 # Try to link conftest.$ac_ext, and return whether this succeeded.
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 rm -f conftest.$ac_objext conftest$ac_exeext
1944 if { { ac_try="$ac_link"
1946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1947 *) ac_try_echo
=$ac_try;;
1949 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_link") 2>conftest.err
1953 if test -s conftest.err
; then
1954 grep -v '^ *+' conftest.err
>conftest.er1
1955 cat conftest.er1
>&5
1956 mv -f conftest.er1 conftest.err
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && {
1960 test -z "$ac_c_werror_flag" ||
1961 test ! -s conftest.err
1962 } && test -s conftest
$ac_exeext && {
1963 test "$cross_compiling" = yes ||
1964 test -x conftest
$ac_exeext
1968 $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.
$ac_ext >&5
1973 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1974 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1975 # interfere with the next link command; also delete a directory that is
1976 # left behind by Apple's compiler. We do this before executing the actions.
1977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 as_fn_set_status
$ac_retval
1981 } # ac_fn_c_try_link
1982 cat >config.log
<<_ACEOF
1983 This file contains any messages produced by compilers while
1984 running configure, to aid debugging if configure makes a mistake.
1986 It was created by $as_me, which was
1987 generated by GNU Autoconf 2.69. Invocation command line was
1999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2006 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2008 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2009 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2011 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2012 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2013 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2014 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir
=.
2023 $as_echo "PATH: $as_dir"
2039 # Keep a trace of the command line.
2040 # Strip out --no-create and --no-recursion so they do not pile up.
2041 # Strip out --silent because we don't want to record it for future runs.
2042 # Also quote any args containing shell meta-characters.
2043 # Make two passes to allow for proper duplicate-argument suppression.
2047 ac_must_keep_next
=false
2053 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2054 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2055 |
-silent |
--silent |
--silen |
--sile |
--sil)
2058 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2061 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2063 as_fn_append ac_configure_args1
" '$ac_arg'"
2064 if test $ac_must_keep_next = true
; then
2065 ac_must_keep_next
=false
# Got value, back to normal.
2068 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2069 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2070 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2071 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2072 case "$ac_configure_args0 " in
2073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2076 -* ) ac_must_keep_next
=true
;;
2079 as_fn_append ac_configure_args
" '$ac_arg'"
2084 { ac_configure_args0
=; unset ac_configure_args0
;}
2085 { ac_configure_args1
=; unset ac_configure_args1
;}
2087 # When interrupted or exit'd, cleanup temporary files, and complete
2088 # config.log. We remove comments because anyway the quotes in there
2089 # would cause problems or look ugly.
2090 # WARNING: Use '\'' to represent an apostrophe within the trap.
2091 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2092 trap 'exit_status=$?
2093 # Save into config.log some information that might help in debugging.
2097 $as_echo "## ---------------- ##
2098 ## Cache variables. ##
2099 ## ---------------- ##"
2101 # The following way of writing the cache mishandles newlines in values,
2103 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2104 eval ac_val=\$$ac_var
2108 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2109 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2112 _ | IFS | as_nl) ;; #(
2113 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2114 *) { eval $ac_var=; unset $ac_var;} ;;
2119 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2120 *${as_nl}ac_space=\ *)
2122 "s/'\''/'\''\\\\'\'''\''/g;
2123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2126 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2133 $as_echo "## ----------------- ##
2134 ## Output variables. ##
2135 ## ----------------- ##"
2137 for ac_var in $ac_subst_vars
2139 eval ac_val=\$$ac_var
2141 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143 $as_echo "$ac_var='\''$ac_val'\''"
2147 if test -n "$ac_subst_files"; then
2148 $as_echo "## ------------------- ##
2149 ## File substitutions. ##
2150 ## ------------------- ##"
2152 for ac_var
in $ac_subst_files
2154 eval ac_val
=\$
$ac_var
2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2158 $as_echo "$ac_var='\''$ac_val'\''"
2163 if test -s confdefs.h; then
2164 $as_echo "## ----------- ##
2171 test "$ac_signal" != 0 &&
2172 $as_echo "$as_me: caught signal $ac_signal"
2173 $as_echo "$as_me: exit $exit_status"
2175 rm -f core *.core core.conftest.* &&
2176 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2179 for ac_signal
in 1 2 13 15; do
2180 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2184 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2185 rm -f -r conftest
* confdefs.h
2187 $as_echo "/* confdefs.h */" > confdefs.h
2189 # Predefined preprocessor variables.
2191 cat >>confdefs.h
<<_ACEOF
2192 #define PACKAGE_NAME "$PACKAGE_NAME"
2195 cat >>confdefs.h
<<_ACEOF
2196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2199 cat >>confdefs.h
<<_ACEOF
2200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2203 cat >>confdefs.h
<<_ACEOF
2204 #define PACKAGE_STRING "$PACKAGE_STRING"
2207 cat >>confdefs.h
<<_ACEOF
2208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2211 cat >>confdefs.h
<<_ACEOF
2212 #define PACKAGE_URL "$PACKAGE_URL"
2216 # Let the site file select an alternate cache file if it wants to.
2217 # Prefer an explicitly selected file to automatically selected ones.
2220 if test -n "$CONFIG_SITE"; then
2221 # We do not want a PATH search for config.site.
2222 case $CONFIG_SITE in #((
2223 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2224 */*) ac_site_file1
=$CONFIG_SITE;;
2225 *) ac_site_file1
=.
/$CONFIG_SITE;;
2227 elif test "x$prefix" != xNONE
; then
2228 ac_site_file1
=$prefix/share
/config.site
2229 ac_site_file2
=$prefix/etc
/config.site
2231 ac_site_file1
=$ac_default_prefix/share
/config.site
2232 ac_site_file2
=$ac_default_prefix/etc
/config.site
2234 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2236 test "x$ac_site_file" = xNONE
&& continue
2237 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2239 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2240 sed 's/^/| /' "$ac_site_file" >&5
2242 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2244 as_fn_error $?
"failed to load site script $ac_site_file
2245 See \`config.log' for more details" "$LINENO" 5; }
2249 if test -r "$cache_file"; then
2250 # Some versions of bash will fail to source /dev/null (special files
2251 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2252 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2254 $as_echo "$as_me: loading cache $cache_file" >&6;}
2256 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2257 *) .
"./$cache_file";;
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2262 $as_echo "$as_me: creating cache $cache_file" >&6;}
2266 # Check that the precious variables saved in the cache have kept the same
2268 ac_cache_corrupted
=false
2269 for ac_var
in $ac_precious_vars; do
2270 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2271 eval ac_new_set
=\
$ac_env_${ac_var}_set
2272 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2273 eval ac_new_val
=\
$ac_env_${ac_var}_value
2274 case $ac_old_set,$ac_new_set in
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2277 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2278 ac_cache_corrupted
=: ;;
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2281 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2282 ac_cache_corrupted
=: ;;
2285 if test "x$ac_old_val" != "x$ac_new_val"; then
2286 # differences in whitespace do not lead to failure.
2287 ac_old_val_w
=`echo x $ac_old_val`
2288 ac_new_val_w
=`echo x $ac_new_val`
2289 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2291 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2292 ac_cache_corrupted
=:
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2295 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2296 eval $ac_var=\
$ac_old_val
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2299 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2301 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2304 # Pass precious variables to config.status.
2305 if test "$ac_new_set" = set; then
2307 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2308 *) ac_arg
=$ac_var=$ac_new_val ;;
2310 case " $ac_configure_args " in
2311 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2312 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2316 if $ac_cache_corrupted; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2320 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2321 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2323 ## -------------------- ##
2324 ## Main body of script. ##
2325 ## -------------------- ##
2328 ac_cpp
='$CPP $CPPFLAGS'
2329 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2341 # if PWD already has a value, it is probably wrong.
2342 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2344 # Export original configure arguments for use by sub-configures.
2345 # Quote arguments with shell meta charatcers.
2346 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2347 set -- "$progname" "$@"
2351 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2352 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2353 # if the argument is of the form -foo=baz, quote the baz part only
2354 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2357 # Add the quoted argument to the list.
2358 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2360 if test "$silent" = yes; then
2361 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2363 # Remove the initial space we just introduced and, as these will be
2364 # expanded by make, quote '$'.
2365 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2368 # Find the build, host, and target systems.
2370 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2371 if test -f "$ac_dir/install-sh"; then
2373 ac_install_sh
="$ac_aux_dir/install-sh -c"
2375 elif test -f "$ac_dir/install.sh"; then
2377 ac_install_sh
="$ac_aux_dir/install.sh -c"
2379 elif test -f "$ac_dir/shtool"; then
2381 ac_install_sh
="$ac_aux_dir/shtool install -c"
2385 if test -z "$ac_aux_dir"; then
2386 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2389 # These three variables are undocumented and unsupported,
2390 # and are intended to be withdrawn in a future Autoconf release.
2391 # They can cause serious problems if a builder's source tree is in a directory
2392 # whose full name contains unusual characters.
2393 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2394 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2395 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2398 # Make sure we can run config.sub.
2399 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2400 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2403 $as_echo_n "checking build system type... " >&6; }
2404 if ${ac_cv_build+:} false
; then :
2405 $as_echo_n "(cached) " >&6
2407 ac_build_alias
=$build_alias
2408 test "x$ac_build_alias" = x
&&
2409 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2410 test "x$ac_build_alias" = x
&&
2411 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2412 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2413 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2417 $as_echo "$ac_cv_build" >&6; }
2418 case $ac_cv_build in
2420 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2423 ac_save_IFS
=$IFS; IFS
='-'
2429 # Remember, the first character of IFS is used to create $*,
2430 # except with old shells:
2433 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2436 case ${build_alias} in
2437 "") build_noncanonical
=${build} ;;
2438 *) build_noncanonical
=${build_alias} ;;
2443 case ${host_alias} in
2444 "") host_noncanonical
=${build_noncanonical} ;;
2445 *) host_noncanonical
=${host_alias} ;;
2450 case ${target_alias} in
2451 "") target_noncanonical
=${host_noncanonical} ;;
2452 *) target_noncanonical
=${target_alias} ;;
2458 test "$host_noncanonical" = "$target_noncanonical" &&
2459 test "$program_prefix$program_suffix$program_transform_name" = \
2461 program_transform_name
=s
,y
,y
,
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2464 $as_echo_n "checking host system type... " >&6; }
2465 if ${ac_cv_host+:} false
; then :
2466 $as_echo_n "(cached) " >&6
2468 if test "x$host_alias" = x
; then
2469 ac_cv_host
=$ac_cv_build
2471 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2472 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2477 $as_echo "$ac_cv_host" >&6; }
2480 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2483 ac_save_IFS
=$IFS; IFS
='-'
2489 # Remember, the first character of IFS is used to create $*,
2490 # except with old shells:
2493 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2497 $as_echo_n "checking target system type... " >&6; }
2498 if ${ac_cv_target+:} false
; then :
2499 $as_echo_n "(cached) " >&6
2501 if test "x$target_alias" = x
; then
2502 ac_cv_target
=$ac_cv_host
2504 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2505 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2510 $as_echo "$ac_cv_target" >&6; }
2511 case $ac_cv_target in
2513 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2515 target
=$ac_cv_target
2516 ac_save_IFS
=$IFS; IFS
='-'
2522 # Remember, the first character of IFS is used to create $*,
2523 # except with old shells:
2526 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2529 # The aliases save the names the user supplied, while $host etc.
2530 # will get canonicalized.
2531 test -n "$target_alias" &&
2532 test "$program_prefix$program_suffix$program_transform_name" = \
2534 program_prefix
=${target_alias}-
2536 test "$program_prefix" != NONE
&&
2537 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2538 # Use a double $ so make ignores it.
2539 test "$program_suffix" != NONE
&&
2540 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2541 # Double any \ or $.
2542 # By default was `s,x,x', remove it if useless.
2543 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2544 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2548 # Get 'install' or 'install-sh' and its variants.
2549 # Find a good install program. We prefer a C program (faster),
2550 # so one script is as good as another. But avoid the broken or
2551 # incompatible versions:
2552 # SysV /etc/install, /usr/sbin/install
2553 # SunOS /usr/etc/install
2554 # IRIX /sbin/install
2556 # AmigaOS /C/install, which installs bootblocks on floppy discs
2557 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2558 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2559 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2560 # OS/2's system install, which has a completely different semantic
2561 # ./install, which can be erroneously created by make from ./install.sh.
2562 # Reject install programs that cannot install multiple files.
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2564 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2565 if test -z "$INSTALL"; then
2566 if ${ac_cv_path_install+:} false
; then :
2567 $as_echo_n "(cached) " >&6
2569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2573 test -z "$as_dir" && as_dir
=.
2574 # Account for people who put trailing slashes in PATH elements.
2575 case $as_dir/ in #((
2576 .
/ | .
// |
/[cC
]/* | \
2577 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2578 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2581 # OSF1 and SCO ODT 3.0 have their own names for install.
2582 # Don't use installbsd from OSF since it installs stuff as root
2584 for ac_prog
in ginstall scoinst
install; do
2585 for ac_exec_ext
in '' $ac_executable_extensions; do
2586 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2587 if test $ac_prog = install &&
2588 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2589 # AIX install. It has an incompatible calling convention.
2591 elif test $ac_prog = install &&
2592 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2593 # program-specific install script used by HP pwplus--don't use.
2596 rm -rf conftest.one conftest.two conftest.dir
2597 echo one
> conftest.one
2598 echo two
> conftest.two
2600 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2601 test -s conftest.one
&& test -s conftest.two
&&
2602 test -s conftest.dir
/conftest.one
&&
2603 test -s conftest.dir
/conftest.two
2605 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2618 rm -rf conftest.one conftest.two conftest.dir
2621 if test "${ac_cv_path_install+set}" = set; then
2622 INSTALL
=$ac_cv_path_install
2624 # As a last resort, use the slow shell script. Don't cache a
2625 # value for INSTALL within a source directory, because that will
2626 # break other packages using the cache if that directory is
2627 # removed, or if the value is a relative name.
2628 INSTALL
=$ac_install_sh
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2632 $as_echo "$INSTALL" >&6; }
2634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2635 # It thinks the first close brace ends the variable substitution.
2636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2638 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2640 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2643 $as_echo_n "checking whether ln works... " >&6; }
2644 if ${acx_cv_prog_LN+:} false
; then :
2645 $as_echo_n "(cached) " >&6
2647 rm -f conftestdata_t
2648 echo >conftestdata_f
2649 if ln conftestdata_f conftestdata_t
2>/dev
/null
2655 rm -f conftestdata_f conftestdata_t
2658 if test $acx_cv_prog_LN = no
; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2661 $as_echo "no, using $LN" >&6; }
2663 LN
="$acx_cv_prog_LN"
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665 $as_echo "yes" >&6; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2669 $as_echo_n "checking whether ln -s works... " >&6; }
2671 if test "$LN_S" = "ln -s"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673 $as_echo "yes" >&6; }
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2676 $as_echo "no, using $LN_S" >&6; }
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2680 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2681 if ${ac_cv_path_SED+:} false
; then :
2682 $as_echo_n "(cached) " >&6
2684 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2685 for ac_i
in 1 2 3 4 5 6 7; do
2686 ac_script
="$ac_script$as_nl$ac_script"
2688 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2689 { ac_script
=; unset ac_script
;}
2690 if test -z "$SED"; then
2691 ac_path_SED_found
=false
2692 # Loop through the user's path and test for each of PROGNAME-LIST
2693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2697 test -z "$as_dir" && as_dir
=.
2698 for ac_prog
in sed gsed
; do
2699 for ac_exec_ext
in '' $ac_executable_extensions; do
2700 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2701 as_fn_executable_p
"$ac_path_SED" ||
continue
2702 # Check for GNU ac_path_SED and select it if it is found.
2703 # Check for GNU $ac_path_SED
2704 case `"$ac_path_SED" --version 2>&1` in
2706 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2709 $as_echo_n 0123456789 >"conftest.in"
2712 cat "conftest.in" "conftest.in" >"conftest.tmp"
2713 mv "conftest.tmp" "conftest.in"
2714 cp "conftest.in" "conftest.nl"
2715 $as_echo '' >> "conftest.nl"
2716 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2717 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2718 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2719 if test $ac_count -gt ${ac_path_SED_max-0}; then
2720 # Best one so far, save it but keep looking for a better one
2721 ac_cv_path_SED
="$ac_path_SED"
2722 ac_path_SED_max
=$ac_count
2724 # 10*(2^10) chars as input seems more than enough
2725 test $ac_count -gt 10 && break
2727 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2730 $ac_path_SED_found && break 3
2735 if test -z "$ac_cv_path_SED"; then
2736 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2744 $as_echo "$ac_cv_path_SED" >&6; }
2745 SED
="$ac_cv_path_SED"
2748 for ac_prog
in gawk mawk nawk
awk
2750 # Extract the first word of "$ac_prog", so it can be a program name with args.
2751 set dummy
$ac_prog; ac_word
=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_AWK+:} false
; then :
2755 $as_echo_n "(cached) " >&6
2757 if test -n "$AWK"; then
2758 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir
=.
2765 for ac_exec_ext
in '' $ac_executable_extensions; do
2766 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_AWK
="$ac_prog"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 if test -n "$AWK"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2780 $as_echo "$AWK" >&6; }
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2787 test -n "$AWK" && break
2791 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2793 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2795 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2796 INSTALL
="${srcpwd}/install-sh -c"
2799 # Set srcdir to "." if that's what it is.
2800 # This is important for multilib support.
2802 if test "${pwd}" = "${srcpwd}" ; then
2810 ### To add a new directory to the tree, first choose whether it is a target
2811 ### or a host dependent tool. Then put it into the appropriate list
2812 ### (library or tools, host or target), doing a dependency sort.
2814 # Subdirs will be configured in the order listed in build_configdirs,
2815 # configdirs, or target_configdirs; see the serialization section below.
2817 # Dependency sorting is only needed when *configuration* must be done in
2818 # a particular order. In all cases a dependency should be specified in
2819 # the Makefile, whether or not it's implicitly specified here.
2821 # Double entries in build_configdirs, configdirs, or target_configdirs may
2822 # cause circular dependencies and break everything horribly.
2824 # these library is used by various programs built for the build
2827 build_libs
="build-libiberty build-libcpp"
2829 # these tools are built for the build environment
2830 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2832 # these libraries are used by various programs built for the host environment
2834 host_libs
="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2836 # these tools are built for the host environment
2837 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2838 # know that we are building the simulator.
2839 # binutils, gas and ld appear in that order because it makes sense to run
2840 # "make check" in that particular order.
2841 # If --enable-gold is used, "gold" may replace "ld".
2842 host_tools
="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
2844 # these libraries are built for the target environment, and are built after
2845 # the host libraries and the host tools (which may be a cross compiler)
2846 # Note that libiberty is not a target library.
2847 target_libraries
="target-libgcc \
2848 target-libbacktrace \
2854 target-libstdc++-v3 \
2855 target-libsanitizer \
2858 target-libquadmath \
2859 target-libgfortran \
2869 # these tools are built using the target libraries, and are intended to
2870 # run only in the target environment
2872 # note: any program that *uses* libraries that are in the "target_libraries"
2873 # list belongs in this list.
2875 target_tools
="target-rda"
2877 ################################################################################
2879 ## All tools belong in one of the four categories, and are assigned above
2880 ## We assign ${configdirs} this way to remove all embedded newlines. This
2881 ## is important because configure will choke if they ever get through.
2882 ## ${configdirs} is directories we build using the host tools.
2883 ## ${target_configdirs} is directories we build using the target tools.
2884 configdirs
=`echo ${host_libs} ${host_tools}`
2885 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2886 build_configdirs
=`echo ${build_libs} ${build_tools}`
2890 ################################################################################
2892 srcname
="gnu development package"
2894 # This gets set non-empty for some net releases of packages.
2897 # Define is_cross_compiler to save on calls to 'test'.
2899 if test x
"${host}" = x
"${target}" ; then
2900 is_cross_compiler
=no
2902 is_cross_compiler
=yes
2905 # Find the build and target subdir names.
2907 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2908 # have matching libraries, they should use host libraries: Makefile.tpl
2909 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2910 # However, they still use the build modules, because the corresponding
2911 # host modules (e.g. bison) are only built for the host when bootstrap
2913 # - build_subdir is where we find build modules, and never changes.
2914 # - build_libsubdir is where we find build libraries, and can be overridden.
2916 # Prefix 'build-' so this never conflicts with target_subdir.
2917 build_subdir
="build-${build_noncanonical}"
2919 # Check whether --with-build-libsubdir was given.
2920 if test "${with_build_libsubdir+set}" = set; then :
2921 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2923 build_libsubdir
="$build_subdir"
2926 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2927 if ( test $srcdir = .
&& test -d gcc
) \
2928 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2929 host_subdir
="host-${host_noncanonical}"
2934 target_subdir
=${target_noncanonical}
2936 # Be sure to cover against remnants of an in-tree build.
2937 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2938 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2939 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2942 # Skipdirs are removed silently.
2944 # Noconfigdirs are removed loudly.
2948 # Make sure we don't let GNU ld be added if we didn't want it.
2949 if test x
$with_gnu_ld = xno
; then
2951 noconfigdirs
="$noconfigdirs ld gold"
2955 # Make sure we don't let GNU as be added if we didn't want it.
2956 if test x
$with_gnu_as = xno
; then
2958 noconfigdirs
="$noconfigdirs gas"
2963 # Check whether --with-system-zlib was given.
2964 if test "${with_system_zlib+set}" = set; then :
2965 withval
=$with_system_zlib;
2968 # Make sure we don't let ZLIB be added if we didn't want it.
2969 if test x
$with_system_zlib = xyes
; then
2970 use_included_zlib
=no
2971 noconfigdirs
="$noconfigdirs zlib"
2974 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2976 if test x
$with_system_readline = xyes
; then
2977 noconfigdirs
="$noconfigdirs readline"
2981 # Check whether --with-zstd was given.
2982 if test "${with_zstd+set}" = set; then :
2987 # some tools are so dependent upon X11 that if we're not building with X,
2988 # it's not even worth trying to configure, much less build, that tool.
2991 yes |
"") ;; # the default value for this tree is that X11 is available
2993 skipdirs
="${skipdirs} tk itcl libgui"
2994 # We won't be able to build gdbtk without X.
2997 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3000 # Some are only suitable for cross toolchains.
3001 # Remove these if host=target.
3002 cross_only
="target-libgloss target-newlib target-opcodes"
3004 case $is_cross_compiler in
3005 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
3008 # If both --with-headers and --with-libs are specified, default to
3010 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
3011 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
3012 if test x
"${with_newlib}" = x
; then
3017 # Recognize --with-newlib/--without-newlib.
3018 case ${with_newlib} in
3019 no
) skipdirs
="${skipdirs} target-newlib" ;;
3020 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3023 # Check whether --enable-as-accelerator-for was given.
3024 if test "${enable_as_accelerator_for+set}" = set; then :
3025 enableval
=$enable_as_accelerator_for;
3029 # Check whether --enable-offload-targets was given.
3030 if test "${enable_offload_targets+set}" = set; then :
3031 enableval
=$enable_offload_targets;
3032 if test x
"$enable_offload_targets" = x
; then
3033 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3037 enable_offload_targets
=
3041 # Check whether --enable-offload-defaulted was given.
3042 if test "${enable_offload_defaulted+set}" = set; then :
3043 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3045 enable_offload_defaulted
=
3049 # Handle --enable-gold, --enable-ld.
3050 # --disable-gold [--enable-ld]
3051 # Build only ld. Default option.
3052 # --enable-gold [--enable-ld]
3053 # Build both gold and ld. Install gold as "ld.gold", install ld
3054 # as "ld.bfd" and "ld".
3055 # --enable-gold=default [--enable-ld]
3056 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3057 # install ld as "ld.bfd".
3058 # --enable-gold[=default] --disable-ld
3059 # Build only gold, which is then installed as both "ld.gold" and "ld".
3060 # --enable-gold --enable-ld=default
3061 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3063 # In other words, ld is default
3064 # --enable-gold=default --enable-ld=default
3068 # Check whether --enable-gold was given.
3069 if test "${enable_gold+set}" = set; then :
3070 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3075 case "${ENABLE_GOLD}" in
3077 # Check for ELF target.
3080 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3081 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3082 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3083 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl* |
*-*-haiku*)
3085 *-*-linux*aout
* |
*-*-linux*oldld
*)
3093 if test "$is_elf" = "yes"; then
3094 # Check for target supported by gold.
3096 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3097 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-*)
3098 configdirs
="$configdirs gold"
3099 if test x
${ENABLE_GOLD} = xdefault
; then
3110 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3114 # Check whether --enable-ld was given.
3115 if test "${enable_ld+set}" = set; then :
3116 enableval
=$enable_ld; ENABLE_LD
=$enableval
3122 case "${ENABLE_LD}" in
3124 if test x
${default_ld} != x
; then
3125 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3131 if test x
${ENABLE_GOLD} != xyes
; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3133 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3135 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3138 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3142 # Check whether --enable-gprofng was given.
3143 if test "${enable_gprofng+set}" = set; then :
3144 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3149 if test "$enable_gprofng" = "yes"; then
3151 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux*)
3152 configdirs
="$configdirs gprofng"
3159 # Decide the default method for compressing debug sections.
3160 # Provide a configure time option to override our default.
3161 # Check whether --enable-compressed_debug_sections was given.
3162 if test "${enable_compressed_debug_sections+set}" = set; then :
3163 enableval
=$enable_compressed_debug_sections;
3164 if test x
"$enable_compressed_debug_sections" = xyes
; then
3165 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3169 enable_compressed_debug_sections
=
3173 # Select default compression algorithm.
3174 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3175 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3176 enableval
=$enable_default_compressed_debug_sections_algorithm;
3178 default_compressed_debug_sections_algorithm
=
3182 # Configure extra directories which are host specific
3186 configdirs
="$configdirs libtermcap" ;;
3189 # A target can indicate whether a language isn't supported for some reason.
3190 # Only spaces may be used in this macro; not newlines or tabs.
3191 unsupported_languages
=
3193 # Remove more programs from consideration, based on the host or
3194 # target this usually means that a port of the program doesn't
3198 i
[3456789]86-*-msdosdjgpp*)
3199 noconfigdirs
="$noconfigdirs tcl tk itcl"
3203 # Default to --disable-year2038 until we can handle differences between
3204 # projects that use gnulib (which understands year 2038) and projects that
3205 # do not (like BFD).
3206 # Check whether --enable-year2038 was given.
3207 if test "${enable_year2038+set}" = set; then :
3208 enableval
=$enable_year2038; ENABLE_YEAR2038
=$enableval
3214 if test "${ENABLE_YEAR2038}" = "no" ; then
3218 # Check whether --enable-libquadmath was given.
3219 if test "${enable_libquadmath+set}" = set; then :
3220 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3222 ENABLE_LIBQUADMATH
=yes
3225 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3226 noconfigdirs
="$noconfigdirs target-libquadmath"
3230 # Check whether --enable-libquadmath-support was given.
3231 if test "${enable_libquadmath_support+set}" = set; then :
3232 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3234 ENABLE_LIBQUADMATH_SUPPORT
=yes
3237 enable_libquadmath_support
=
3238 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3239 enable_libquadmath_support
=no
3243 # Check whether --enable-libada was given.
3244 if test "${enable_libada+set}" = set; then :
3245 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3250 if test "${ENABLE_LIBADA}" != "yes" ; then
3251 noconfigdirs
="$noconfigdirs gnattools"
3254 # Check whether --enable-libgm2 was given.
3255 if test "${enable_libgm2+set}" = set; then :
3256 enableval
=$enable_libgm2; ENABLE_LIBGM2
=$enableval
3261 if test "${ENABLE_LIBGM2}" != "yes" ; then
3262 noconfigdirs
="$noconfigdirs gm2tools"
3265 # Check whether --enable-libssp was given.
3266 if test "${enable_libssp+set}" = set; then :
3267 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3273 # Check whether --enable-libstdcxx was given.
3274 if test "${enable_libstdcxx+set}" = set; then :
3275 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3277 ENABLE_LIBSTDCXX
=default
3280 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3281 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3284 # Enable libgomp by default on hosted POSIX systems, and a few others.
3285 if test x
$enable_libgomp = x
; then
3287 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3289 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3291 *-*-solaris2* |
*-*-hpux11*)
3293 *-*-darwin* |
*-*-aix*)
3295 nvptx
*-*-* | amdgcn
*-*-*)
3298 noconfigdirs
="$noconfigdirs target-libgomp"
3303 # Disable libatomic on unsupported systems.
3304 if test -d ${srcdir}/libatomic
; then
3305 if test x
$enable_libatomic = x
; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3307 $as_echo_n "checking for libatomic support... " >&6; }
3308 if (srcdir
=${srcdir}/libatomic
; \
3309 .
${srcdir}/configure.tgt
; \
3310 test -n "$UNSUPPORTED")
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 noconfigdirs
="$noconfigdirs target-libatomic"
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317 $as_echo "yes" >&6; }
3322 # Disable libitm on unsupported systems.
3323 if test -d ${srcdir}/libitm
; then
3324 if test x
$enable_libitm = x
; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3326 $as_echo_n "checking for libitm support... " >&6; }
3327 if (srcdir
=${srcdir}/libitm
; \
3328 .
${srcdir}/configure.tgt
; \
3329 test -n "$UNSUPPORTED")
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 noconfigdirs
="$noconfigdirs target-libitm"
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3341 # Disable libsanitizer on unsupported systems.
3342 if test -d ${srcdir}/libsanitizer
; then
3343 if test x
$enable_libsanitizer = x
; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3345 $as_echo_n "checking for libsanitizer support... " >&6; }
3346 if (srcdir
=${srcdir}/libsanitizer
; \
3347 .
${srcdir}/configure.tgt
; \
3348 test -n "$UNSUPPORTED")
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 noconfigdirs
="$noconfigdirs target-libsanitizer"
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3355 $as_echo "yes" >&6; }
3360 # Disable libvtv on unsupported systems.
3361 if test -d ${srcdir}/libvtv
; then
3362 if test x
$enable_libvtv = x
; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3364 $as_echo_n "checking for libvtv support... " >&6; }
3365 if (srcdir
=${srcdir}/libvtv
; \
3366 .
${srcdir}/configure.tgt
; \
3367 test "$VTV_SUPPORTED" != "yes")
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 noconfigdirs
="$noconfigdirs target-libvtv"
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374 $as_echo "yes" >&6; }
3379 # Disable libquadmath for some systems.
3382 noconfigdirs
="$noconfigdirs target-libquadmath"
3384 # libquadmath is unused on AIX and libquadmath build process use of
3385 # LD_LIBRARY_PATH can break AIX bootstrap.
3386 powerpc-
*-aix* | rs6000-
*-aix*)
3387 noconfigdirs
="$noconfigdirs target-libquadmath"
3391 # Disable libssp for some systems.
3394 # No hosted I/O support.
3395 noconfigdirs
="$noconfigdirs target-libssp"
3398 noconfigdirs
="$noconfigdirs target-libssp"
3400 powerpc-
*-aix* | rs6000-
*-aix*)
3401 noconfigdirs
="$noconfigdirs target-libssp"
3404 # No hosted I/O support.
3405 noconfigdirs
="$noconfigdirs target-libssp"
3408 # libssp uses a misaligned load to trigger a fault, but the RL78
3409 # doesn't fault for those - instead, it gives a build-time error
3410 # for explicit misaligned loads.
3411 noconfigdirs
="$noconfigdirs target-libssp"
3414 # No hosted I/O support.
3415 noconfigdirs
="$noconfigdirs target-libssp"
3419 # Disable libstdc++-v3 for some systems.
3420 # Allow user to override this if they pass --enable-libstdcxx
3421 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3424 # VxWorks uses the Dinkumware C++ library.
3425 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3428 # Not ported/fails to build when using newlib.
3429 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3432 # the C++ libraries don't build on top of CE's C libraries
3433 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3436 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3439 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3442 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3447 # Disable C++ on systems where it is known to not work.
3448 # For testing, you can override this with --enable-languages=c++.
3449 case ,${enable_languages}, in
3455 unsupported_languages
="$unsupported_languages c++"
3461 # Disable Objc on systems where it is known to not work.
3462 # For testing, you can override this with --enable-languages=objc.
3463 case ,${enable_languages}, in
3469 unsupported_languages
="$unsupported_languages objc"
3475 # Disable D on systems where it is known to not work.
3476 # For testing, you can override this with --enable-languages=d.
3477 case ,${enable_languages}, in
3483 unsupported_languages
="$unsupported_languages d"
3489 # Disable libphobos on unsupported systems.
3490 # For testing, you can override this with --enable-libphobos.
3491 if test -d ${srcdir}/libphobos
; then
3492 if test x
$enable_libphobos = x
; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3494 $as_echo_n "checking for libphobos support... " >&6; }
3495 if (srcdir
=${srcdir}/libphobos
; \
3496 .
${srcdir}/configure.tgt
; \
3497 test "$LIBPHOBOS_SUPPORTED" != "yes")
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3501 noconfigdirs
="$noconfigdirs target-libphobos"
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3504 $as_echo "yes" >&6; }
3509 # Disable Fortran for some systems.
3512 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3513 unsupported_languages
="$unsupported_languages fortran"
3516 unsupported_languages
="$unsupported_languages fortran"
3520 # Disable libffi for some systems.
3524 i
[3456789]86-*-darwin*)
3526 x86_64-
*-darwin[912]*)
3529 noconfigdirs
="$noconfigdirs target-libffi"
3532 noconfigdirs
="$noconfigdirs target-libffi"
3535 noconfigdirs
="$noconfigdirs target-libffi"
3538 noconfigdirs
="$noconfigdirs target-libffi"
3541 noconfigdirs
="$noconfigdirs target-libffi"
3544 noconfigdirs
="$noconfigdirs target-libffi"
3547 noconfigdirs
="$noconfigdirs target-libffi"
3549 aarch64
*-*-freebsd*)
3550 noconfigdirs
="$noconfigdirs target-libffi"
3553 noconfigdirs
="$noconfigdirs target-libffi"
3556 noconfigdirs
="$noconfigdirs target-libffi"
3559 noconfigdirs
="$noconfigdirs target-libffi"
3562 noconfigdirs
="$noconfigdirs target-libffi"
3565 noconfigdirs
="$noconfigdirs target-libffi"
3567 cris-
*-* | crisv32-
*-*)
3571 *) # See PR46792 regarding target-libffi.
3572 noconfigdirs
="$noconfigdirs target-libffi";;
3576 noconfigdirs
="$noconfigdirs target-libffi"
3581 noconfigdirs
="$noconfigdirs target-libffi"
3584 noconfigdirs
="$noconfigdirs target-libffi"
3586 i
[3456789]86-w64-mingw*)
3587 noconfigdirs
="$noconfigdirs target-libffi"
3589 i
[3456789]86-*-mingw*)
3590 noconfigdirs
="$noconfigdirs target-libffi"
3593 noconfigdirs
="$noconfigdirs target-libffi"
3596 noconfigdirs
="$noconfigdirs target-libffi"
3603 noconfigdirs
="$noconfigdirs target-libffi"
3606 noconfigdirs
="$noconfigdirs target-libffi"
3610 # Disable the go frontend on systems where it is known to not work. Please keep
3611 # this in sync with contrib/config-list.mk.
3613 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3614 unsupported_languages
="$unsupported_languages go"
3618 # Only allow gdbserver on some systems.
3619 if test -d ${srcdir}/gdbserver
; then
3620 if test x
$enable_gdbserver = x
; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3622 $as_echo_n "checking for gdbserver support... " >&6; }
3623 if (srcdir
=${srcdir}/gdbserver
; \
3624 .
${srcdir}/configure.srv
; \
3625 test -n "$UNSUPPORTED")
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3629 noconfigdirs
="$noconfigdirs gdbserver"
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3632 $as_echo "yes" >&6; }
3637 # Disable libgo for some systems where it is known to not work.
3638 # For testing, you can easily override this with --enable-libgo.
3639 if test x
$enable_libgo = x
; then
3643 noconfigdirs
="$noconfigdirs target-libgo"
3645 *-*-cygwin* |
*-*-mingw*)
3646 noconfigdirs
="$noconfigdirs target-libgo"
3649 noconfigdirs
="$noconfigdirs target-libgo"
3654 # Default libgloss CPU subdirectory.
3655 libgloss_dir
="$target_cpu"
3658 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3662 libgloss_dir
=aarch64
3667 cris-
*-* | crisv32-
*-*)
3677 libgloss_dir
=loongarch
3679 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3680 libgloss_dir
=m68hc11
3682 m68
*-*-* | fido-
*-*)
3699 # Disable newlib and libgloss for various target OSes.
3702 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3704 i
[3456789]86-*-linux*)
3705 # This section makes it possible to build newlib natively on linux.
3706 # If we are using a cross compiler then don't configure newlib.
3707 if test x
${is_cross_compiler} != xno
; then
3708 noconfigdirs
="$noconfigdirs target-newlib"
3710 noconfigdirs
="$noconfigdirs target-libgloss"
3711 # If we are not using a cross compiler, do configure newlib.
3712 # Note however, that newlib will only be configured in this situation
3713 # if the --with-newlib option has been given, because otherwise
3714 # 'target-newlib' will appear in skipdirs.
3716 i
[3456789]86-*-rdos*)
3717 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3719 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3720 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3723 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3726 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3729 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3732 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3735 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3738 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3741 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3743 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3744 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3747 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3750 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3753 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3756 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3759 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3762 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3765 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3773 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3774 noconfigdirs
="$noconfigdirs sim target-rda"
3779 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3780 noconfigdirs
="$noconfigdirs sim target-rda"
3783 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3784 noconfigdirs
="$noconfigdirs sim target-rda"
3786 i
[3456789]86-*-darwin*)
3787 noconfigdirs
="$noconfigdirs ld gprof"
3788 noconfigdirs
="$noconfigdirs sim target-rda"
3790 x86_64-
*-darwin[912]*)
3791 noconfigdirs
="$noconfigdirs ld gas gprof"
3792 noconfigdirs
="$noconfigdirs sim target-rda"
3795 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3796 noconfigdirs
="$noconfigdirs sim target-rda"
3801 if test "x$with_gmp" = x \
3802 && ! test -d ${srcdir}/gmp \
3803 && test -f /usr
/local
/include
/gmp.h
; then
3808 # Remove unsupported stuff on all kaOS configurations.
3809 noconfigdirs
="$noconfigdirs target-libgloss"
3816 noconfigdirs
="$noconfigdirs target-libgloss"
3819 noconfigdirs
="$noconfigdirs target-libgloss"
3821 # The tpf target doesn't support gdb yet.
3823 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3826 noconfigdirs
="$noconfigdirs target-rda"
3831 # ld works, but does not support shared libraries.
3832 # gas doesn't generate exception information.
3833 noconfigdirs
="$noconfigdirs gas ld"
3836 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3839 # newlib is not 64 bit ready
3840 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3843 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3845 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3846 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3849 noconfigdirs
="$noconfigdirs sim"
3852 noconfigdirs
="$noconfigdirs target-libgloss"
3855 noconfigdirs
="$noconfigdirs ld target-libgloss"
3858 if test x
${with_avrlibc} != xno
; then
3859 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3862 c4x-
*-* | tic4x-
*-*)
3863 noconfigdirs
="$noconfigdirs target-libgloss"
3866 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3869 noconfigdirs
="$noconfigdirs target-libgloss"
3872 noconfigdirs
="$noconfigdirs gdb"
3875 noconfigdirs
="$noconfigdirs gdb"
3878 noconfigdirs
="$noconfigdirs target-rda gprof"
3881 noconfigdirs
="$noconfigdirs"
3884 noconfigdirs
="$noconfigdirs target-libgloss"
3887 noconfigdirs
="$noconfigdirs target-libgloss"
3889 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3892 noconfigdirs
="$noconfigdirs gdb"
3895 noconfigdirs
="$noconfigdirs gdb ld"
3903 hppa
*-*-openbsd* | \
3909 noconfigdirs
="$noconfigdirs ld"
3912 noconfigdirs
="$noconfigdirs gdb"
3915 # No gdb support yet.
3916 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3919 # No ld support yet.
3920 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3923 # No ld support yet.
3924 noconfigdirs
="$noconfigdirs libgui itcl ld"
3926 i
[3456789]86-w64-mingw*)
3928 i
[3456789]86-*-mingw*)
3929 target_configdirs
="$target_configdirs target-winsup"
3932 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3933 noconfigdirs
="$noconfigdirs target-libgloss"
3934 # always build newlib if winsup directory is present.
3935 if test -d "$srcdir/winsup/cygwin"; then
3936 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3937 elif test -d "$srcdir/newlib"; then
3938 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3942 noconfigdirs
="$noconfigdirs target-libgloss"
3944 i
[3456789]86-*-sco3.2v5
*)
3945 # The linker does not yet know about weak symbols in COFF,
3946 # and is not configured to handle mixed ELF and COFF.
3947 noconfigdirs
="$noconfigdirs ld target-libgloss"
3949 i
[3456789]86-*-sco*)
3950 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3952 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3953 noconfigdirs
="$noconfigdirs target-libgloss"
3955 i
[3456789]86-*-sysv4*)
3956 noconfigdirs
="$noconfigdirs target-libgloss"
3958 i
[3456789]86-*-beos*)
3959 noconfigdirs
="$noconfigdirs gdb"
3961 i
[3456789]86-*-rdos*)
3962 noconfigdirs
="$noconfigdirs gdb"
3965 noconfigdirs
="$noconfigdirs gdb"
3968 noconfigdirs
="$noconfigdirs sim"
3971 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3972 noconfigdirs
="$noconfigdirs $target_libraries"
3975 noconfigdirs
="$noconfigdirs gdb gprof"
3978 # copied from rs6000-*-* entry
3979 noconfigdirs
="$noconfigdirs gprof"
3981 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3982 target_configdirs
="$target_configdirs target-winsup"
3983 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3984 # always build newlib.
3985 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3987 # This is temporary until we can link against shared libraries
3988 powerpcle-
*-solaris*)
3989 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3992 noconfigdirs
="$noconfigdirs gdb"
3995 noconfigdirs
="$noconfigdirs gprof"
3998 noconfigdirs
="$noconfigdirs gprof"
4001 noconfigdirs
="$noconfigdirs gprof"
4004 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
4007 noconfigdirs
="$noconfigdirs gprof"
4009 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
4010 if test x
$with_newlib = xyes
; then
4011 noconfigdirs
="$noconfigdirs gprof"
4015 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4018 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4021 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
4025 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
4026 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
4027 noconfigdirs
="$noconfigdirs ld gas gprof"
4030 noconfigdirs
="$noconfigdirs gprof"
4033 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4040 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4044 if test x
${is_cross_compiler} = xno
; then
4049 noconfigdirs
="$noconfigdirs sim"
4051 tilepro
*-*-* | tilegx
*-*-*)
4052 noconfigdirs
="$noconfigdirs sim"
4055 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4058 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4061 noconfigdirs
="$noconfigdirs ld"
4063 loongarch
*-*-linux*)
4066 noconfigdirs
="$noconfigdirs gprof"
4070 # If we aren't building newlib, then don't build libgloss, since libgloss
4071 # depends upon some newlib header files.
4072 case "${noconfigdirs}" in
4073 *target-libgloss
*) ;;
4074 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4077 # Work in distributions that contain no compiler tools, like Autoconf.
4078 host_makefile_frag
=/dev
/null
4079 if test -d ${srcdir}/config
; then
4081 i
[3456789]86-*-msdosdjgpp*)
4082 host_makefile_frag
="config/mh-djgpp"
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4087 $as_echo_n "checking to see if cat works as expected... " >&6; }
4088 echo a
>cygwin-cat-check
4089 if test `cat cygwin-cat-check` = a
; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4092 $as_echo "yes" >&6; }
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4097 as_fn_error $?
"The cat command does not ignore carriage return characters.
4098 Please either mount the build directory in binary mode or run the following
4099 commands before running any configure script:
4105 host_makefile_frag
="config/mh-cygwin"
4108 host_makefile_frag
="config/mh-mingw"
4111 host_makefile_frag
="config/mh-alpha-linux"
4114 host_makefile_frag
="config/mh-pa"
4117 host_makefile_frag
="config/mh-pa"
4119 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4120 host_makefile_frag
="config/mh-darwin"
4123 host_makefile_frag
="config/mh-ppc-aix"
4126 host_makefile_frag
="config/mh-ppc-aix"
4131 if test "${build}" != "${host}" ; then
4132 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4133 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4134 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4135 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4136 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4137 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4138 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4139 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4140 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4141 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4142 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4143 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4144 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4145 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4146 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4148 AR_FOR_BUILD
="\$(AR)"
4149 AS_FOR_BUILD
="\$(AS)"
4150 CC_FOR_BUILD
="\$(CC)"
4151 CXX_FOR_BUILD
="\$(CXX)"
4152 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4153 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4154 GOC_FOR_BUILD
="\$(GOC)"
4155 GDC_FOR_BUILD
="\$(GDC)"
4156 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4157 LD_FOR_BUILD
="\$(LD)"
4158 NM_FOR_BUILD
="\$(NM)"
4159 RANLIB_FOR_BUILD
="\$(RANLIB)"
4160 WINDRES_FOR_BUILD
="\$(WINDRES)"
4161 WINDMC_FOR_BUILD
="\$(WINDMC)"
4165 ac_cpp
='$CPP $CPPFLAGS'
4166 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4169 if test -n "$ac_tool_prefix"; then
4170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4171 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_CC+:} false
; then :
4175 $as_echo_n "(cached) " >&6
4177 if test -n "$CC"; then
4178 ac_cv_prog_CC
="$CC" # Let the user override the test.
4180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4184 test -z "$as_dir" && as_dir
=.
4185 for ac_exec_ext
in '' $ac_executable_extensions; do
4186 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 if test -n "$CC"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4200 $as_echo "$CC" >&6; }
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4208 if test -z "$ac_cv_prog_CC"; then
4210 # Extract the first word of "gcc", so it can be a program name with args.
4211 set dummy gcc
; ac_word
=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4215 $as_echo_n "(cached) " >&6
4217 if test -n "$ac_ct_CC"; then
4218 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4224 test -z "$as_dir" && as_dir
=.
4225 for ac_exec_ext
in '' $ac_executable_extensions; do
4226 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4227 ac_cv_prog_ac_ct_CC
="gcc"
4228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4238 if test -n "$ac_ct_CC"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4240 $as_echo "$ac_ct_CC" >&6; }
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4246 if test "x$ac_ct_CC" = x
; then
4249 case $cross_compiling:$ac_tool_warned in
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4253 ac_tool_warned
=yes ;;
4261 if test -z "$CC"; then
4262 if test -n "$ac_tool_prefix"; then
4263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4264 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_CC+:} false
; then :
4268 $as_echo_n "(cached) " >&6
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC
="$CC" # Let the user override the test.
4273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4277 test -z "$as_dir" && as_dir
=.
4278 for ac_exec_ext
in '' $ac_executable_extensions; do
4279 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4280 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 if test -n "$CC"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293 $as_echo "$CC" >&6; }
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4302 if test -z "$CC"; then
4303 # Extract the first word of "cc", so it can be a program name with args.
4304 set dummy cc
; ac_word
=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_CC+:} false
; then :
4308 $as_echo_n "(cached) " >&6
4310 if test -n "$CC"; then
4311 ac_cv_prog_CC
="$CC" # Let the user override the test.
4314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4318 test -z "$as_dir" && as_dir
=.
4319 for ac_exec_ext
in '' $ac_executable_extensions; do
4320 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4321 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4322 ac_prog_rejected
=yes
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 if test $ac_prog_rejected = yes; then
4334 # We found a bogon in the path, so make sure we never use it.
4335 set dummy
$ac_cv_prog_CC
4337 if test $# != 0; then
4338 # We chose a different compiler from the bogus one.
4339 # However, it has the same basename, so the bogon will be chosen
4340 # first if we set CC to just the basename; use the full file name.
4342 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4348 if test -n "$CC"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4350 $as_echo "$CC" >&6; }
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4358 if test -z "$CC"; then
4359 if test -n "$ac_tool_prefix"; then
4360 for ac_prog
in cl.exe
4362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4363 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if ${ac_cv_prog_CC+:} false
; then :
4367 $as_echo_n "(cached) " >&6
4369 if test -n "$CC"; then
4370 ac_cv_prog_CC
="$CC" # Let the user override the test.
4372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir
=.
4377 for ac_exec_ext
in '' $ac_executable_extensions; do
4378 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4379 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 if test -n "$CC"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4392 $as_echo "$CC" >&6; }
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4399 test -n "$CC" && break
4402 if test -z "$CC"; then
4404 for ac_prog
in cl.exe
4406 # Extract the first word of "$ac_prog", so it can be a program name with args.
4407 set dummy
$ac_prog; ac_word
=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4411 $as_echo_n "(cached) " >&6
4413 if test -n "$ac_ct_CC"; then
4414 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4420 test -z "$as_dir" && as_dir
=.
4421 for ac_exec_ext
in '' $ac_executable_extensions; do
4422 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4423 ac_cv_prog_ac_ct_CC
="$ac_prog"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4434 if test -n "$ac_ct_CC"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4436 $as_echo "$ac_ct_CC" >&6; }
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4443 test -n "$ac_ct_CC" && break
4446 if test "x$ac_ct_CC" = x
; then
4449 case $cross_compiling:$ac_tool_warned in
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4453 ac_tool_warned
=yes ;;
4462 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4464 as_fn_error $?
"no acceptable C compiler found in \$PATH
4465 See \`config.log' for more details" "$LINENO" 5; }
4467 # Provide some information about the compiler.
4468 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4471 for ac_option
in --version -v -V -qversion; do
4472 { { ac_try
="$ac_compiler $ac_option >&5"
4474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 $as_echo "$ac_try_echo"; } >&5
4479 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4481 if test -s conftest.err; then
4483 ... rest of stderr output deleted ...
4484 10q' conftest.err >conftest.er1
4485 cat conftest.er1 >&5
4487 rm -f conftest.er1 conftest.err
4488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4489 test $ac_status = 0; }
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4503 ac_clean_files_save=$ac_clean_files
4504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4505 # Try to create an executable without -o first, disregard a.out.
4506 # It will help us diagnose broken compilers, and finding out an intuition
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4509 $as_echo_n "checking whether the C compiler works... " >&6; }
4510 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4512 # The possible output files:
4513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4516 for ac_file in $ac_files
4519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4520 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4525 if { { ac_try="$ac_link_default"
4527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4528 *) ac_try_echo
=$ac_try;;
4530 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4531 $as_echo "$ac_try_echo"; } >&5
4532 (eval "$ac_link_default") 2>&5
4534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535 test $ac_status = 0; }; then :
4536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4538 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4539 # so that the user can short-circuit this test for compilers unknown to
4541 for ac_file
in $ac_files ''
4543 test -f "$ac_file" ||
continue
4545 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4548 # We found the default executable, but exeext='' is most
4552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4554 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4556 # We set ac_cv_exeext here because the later test for it is not
4557 # safe: cross compilers may not add the suffix if given an `-o'
4558 # argument, so we may need to know it at that point already.
4559 # Even if this section looks crufty: it has the advantage of
4566 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4571 if test -z "$ac_file"; then :
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4574 $as_echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.
$ac_ext >&5
4577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error
77 "C compiler cannot create executables
4580 See \`config.log' for more details" "$LINENO" 5; }
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4583 $as_echo "yes" >&6; }
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4586 $as_echo_n "checking for C compiler default output file name... " >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4588 $as_echo "$ac_file" >&6; }
4589 ac_exeext
=$ac_cv_exeext
4591 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4592 ac_clean_files
=$ac_clean_files_save
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4594 $as_echo_n "checking for suffix of executables... " >&6; }
4595 if { { ac_try
="$ac_link"
4597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4601 $as_echo "$ac_try_echo"; } >&5
4602 (eval "$ac_link") 2>&5
4604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4605 test $ac_status = 0; }; then :
4606 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4607 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4608 # work properly (i.e., refer to `conftest.exe'), while it won't with
4610 for ac_file
in conftest.exe conftest conftest.
*; do
4611 test -f "$ac_file" ||
continue
4613 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4614 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4622 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4623 See \`config.log' for more details" "$LINENO" 5; }
4625 rm -f conftest conftest
$ac_cv_exeext
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4627 $as_echo "$ac_cv_exeext" >&6; }
4629 rm -f conftest.
$ac_ext
4630 EXEEXT
=$ac_cv_exeext
4632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4638 FILE *f = fopen ("conftest.out", "w");
4639 return ferror (f) || fclose (f) != 0;
4645 ac_clean_files
="$ac_clean_files conftest.out"
4646 # Check that the compiler produces executables we can run. If not, either
4647 # the compiler is broken, or we cross compile.
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4649 $as_echo_n "checking whether we are cross compiling... " >&6; }
4650 if test "$cross_compiling" != yes; then
4651 { { ac_try
="$ac_link"
4653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4657 $as_echo "$ac_try_echo"; } >&5
4658 (eval "$ac_link") 2>&5
4660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4661 test $ac_status = 0; }
4662 if { ac_try='./conftest$ac_cv_exeext'
4663 { { case "(($ac_try" in
4664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4665 *) ac_try_echo
=$ac_try;;
4667 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4668 $as_echo "$ac_try_echo"; } >&5
4669 (eval "$ac_try") 2>&5
4671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4672 test $ac_status = 0; }; }; then
4675 if test "$cross_compiling" = maybe
; then
4678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680 as_fn_error $?
"cannot run C compiled programs.
4681 If you meant to cross compile, use \`--host'.
4682 See \`config.log' for more details" "$LINENO" 5; }
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4687 $as_echo "$cross_compiling" >&6; }
4689 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4690 ac_clean_files
=$ac_clean_files_save
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4692 $as_echo_n "checking for suffix of object files... " >&6; }
4693 if ${ac_cv_objext+:} false
; then :
4694 $as_echo_n "(cached) " >&6
4696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4707 rm -f conftest.o conftest.obj
4708 if { { ac_try
="$ac_compile"
4710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4714 $as_echo "$ac_try_echo"; } >&5
4715 (eval "$ac_compile") 2>&5
4717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4718 test $ac_status = 0; }; then :
4719 for ac_file in conftest.o conftest.obj conftest.*; do
4720 test -f "$ac_file" || continue;
4722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4723 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4728 $as_echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4733 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4734 See \
`config.log' for more details" "$LINENO" 5; }
4736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4739 $as_echo "$ac_cv_objext" >&6; }
4740 OBJEXT=$ac_cv_objext
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4743 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4744 if ${ac_cv_c_compiler_gnu+:} false; then :
4745 $as_echo_n "(cached) " >&6
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4761 if ac_fn_c_try_compile "$LINENO"; then :
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4771 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4772 if test $ac_compiler_gnu = yes; then
4777 ac_test_CFLAGS=${CFLAGS+set}
4778 ac_save_CFLAGS=$CFLAGS
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4780 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4781 if ${ac_cv_prog_cc_g+:} false; then :
4782 $as_echo_n "(cached) " >&6
4784 ac_save_c_werror_flag=$ac_c_werror_flag
4785 ac_c_werror_flag=yes
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4799 if ac_fn_c_try_compile "$LINENO"; then :
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4814 if ac_fn_c_try_compile "$LINENO"; then :
4817 ac_c_werror_flag=$ac_save_c_werror_flag
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4830 if ac_fn_c_try_compile "$LINENO"; then :
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838 ac_c_werror_flag=$ac_save_c_werror_flag
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4841 $as_echo "$ac_cv_prog_cc_g" >&6; }
4842 if test "$ac_test_CFLAGS" = set; then
4843 CFLAGS=$ac_save_CFLAGS
4844 elif test $ac_cv_prog_cc_g = yes; then
4845 if test "$GCC" = yes; then
4851 if test "$GCC" = yes; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4858 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4859 if ${ac_cv_prog_cc_c89+:} false; then :
4860 $as_echo_n "(cached) " >&6
4862 ac_cv_prog_cc_c89=no
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4869 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4870 struct buf { int x; };
4871 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4872 static char *e (p, i)
4878 static char *f (char * (*g) (char **, int), char **p, ...)
4883 s = g (p, va_arg (v,int));
4888 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4889 function prototypes and stuff, but not '\xHH' hex character constants.
4890 These don't provoke an error unfortunately, instead are silently treated
4891 as 'x'. The following induces an error, until -std is added to get
4892 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4893 array size at least. It's necessary to write '\x00'==0 to get something
4894 that's true only with -std. */
4895 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4897 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4898 inside strings and character constants. */
4900 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4902 int test (int i, double x);
4903 struct s1 {int (*f) (int a);};
4904 struct s2 {int (*f) (double a);};
4905 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4911 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4916 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4917 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4919 CC="$ac_save_CC $ac_arg"
4920 if ac_fn_c_try_compile "$LINENO"; then :
4921 ac_cv_prog_cc_c89=$ac_arg
4923 rm -f core conftest.err conftest.$ac_objext
4924 test "x$ac_cv_prog_cc_c89" != "xno" && break
4926 rm -f conftest.$ac_ext
4931 case "x$ac_cv_prog_cc_c89" in
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4934 $as_echo "none needed" >&6; } ;;
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4937 $as_echo "unsupported" >&6; } ;;
4939 CC="$CC $ac_cv_prog_cc_c89"
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4941 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4943 if test "x$ac_cv_prog_cc_c89" != xno; then :
4948 ac_cpp='$CPP $CPPFLAGS'
4949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4954 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4955 if ${ac_cv_prog_cc_c99+:} false; then :
4956 $as_echo_n "(cached) " >&6
4958 ac_cv_prog_cc_c99=no
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4963 #include <stdbool.h>
4968 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4969 #define debug(...) fprintf (stderr, __VA_ARGS__)
4970 #define showlist(...) puts (#__VA_ARGS__)
4971 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4973 test_varargs_macros (void)
4978 debug ("X = %d\n", x);
4979 showlist (The first, second, and third items.);
4980 report (x>y, "x is %d but y is %d", x, y);
4983 // Check long long types.
4984 #define BIG64 18446744073709551615ull
4985 #define BIG32 4294967295ul
4986 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4988 your preprocessor is broken;
4992 your preprocessor is broken;
4994 static long long int bignum = -9223372036854775807LL;
4995 static unsigned long long int ubignum = BIG64;
4997 struct incomplete_array
5005 const wchar_t *name;
5009 typedef const char *ccp;
5012 test_restrict (ccp restrict text)
5014 // See if C++-style comments work.
5015 // Iterate through items via the restricted pointer.
5016 // Also check for declarations in for loops.
5017 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5022 // Check varargs and va_copy.
5024 test_varargs (const char *format, ...)
5027 va_start (args, format);
5029 va_copy (args_copy, args);
5040 str = va_arg (args_copy, const char *);
5043 number = va_arg (args_copy, int);
5046 fnumber = va_arg (args_copy, double);
5061 _Bool success = false;
5064 if (test_restrict ("String literal") == 0)
5066 char *restrict newvar = "Another string";
5069 test_varargs ("s, d' f .", "string", 65, 34.234);
5070 test_varargs_macros ();
5072 // Check flexible array members.
5073 struct incomplete_array *ia =
5074 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5076 for (int i = 0; i < ia->datasize; ++i)
5077 ia->data[i] = i * 1.234;
5079 // Check named initializers.
5080 struct named_init ni = {
5082 .name = L"Test wide string",
5083 .average = 543.34343,
5088 int dynamic_array[ni.number];
5089 dynamic_array[ni.number - 1] = 543;
5091 // work around unused variable warnings
5092 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5093 || dynamic_array[ni.number - 1] != 543);
5099 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5101 CC="$ac_save_CC $ac_arg"
5102 if ac_fn_c_try_compile "$LINENO"; then :
5103 ac_cv_prog_cc_c99=$ac_arg
5105 rm -f core conftest.err conftest.$ac_objext
5106 test "x$ac_cv_prog_cc_c99" != "xno" && break
5108 rm -f conftest.$ac_ext
5113 case "x$ac_cv_prog_cc_c99" in
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5116 $as_echo "none needed" >&6; } ;;
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5119 $as_echo "unsupported" >&6; } ;;
5121 CC="$CC $ac_cv_prog_cc_c99"
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5123 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5125 if test "x$ac_cv_prog_cc_c99" != xno; then :
5131 ac_cpp='$CXXCPP $CPPFLAGS'
5132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5135 if test -z "$CXX"; then
5136 if test -n "$CCC"; then
5139 if test -n "$ac_tool_prefix"; then
5140 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_CXX+:} false; then :
5147 $as_echo_n "(cached) " >&6
5149 if test -n "$CXX"; then
5150 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 if test -n "$CXX"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5172 $as_echo "$CXX" >&6; }
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5179 test -n "$CXX" && break
5182 if test -z "$CXX"; then
5184 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5186 # Extract the first word of "$ac_prog", so it can be a program name with args.
5187 set dummy $ac_prog; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5191 $as_echo_n "(cached) " >&6
5193 if test -n "$ac_ct_CXX"; then
5194 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_ac_ct_CXX="$ac_prog"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5214 if test -n "$ac_ct_CXX"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5216 $as_echo "$ac_ct_CXX" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5223 test -n "$ac_ct_CXX" && break
5226 if test "x$ac_ct_CXX" = x; then
5229 case $cross_compiling:$ac_tool_warned in
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5233 ac_tool_warned=yes ;;
5241 # Provide some information about the compiler.
5242 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5245 for ac_option in --version -v -V -qversion; do
5246 { { ac_try="$ac_compiler $ac_option >&5"
5248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5249 *) ac_try_echo
=$ac_try;;
5251 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5252 $as_echo "$ac_try_echo"; } >&5
5253 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5255 if test -s conftest.err
; then
5257 ... rest of stderr output deleted ...
5258 10q' conftest.err
>conftest.er1
5259 cat conftest.er1
>&5
5261 rm -f conftest.er1 conftest.err
5262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5263 test $ac_status = 0; }
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5267 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5268 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5269 $as_echo_n "(cached) " >&6
5271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5285 if ac_fn_cxx_try_compile
"$LINENO"; then :
5290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5291 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5295 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5296 if test $ac_compiler_gnu = yes; then
5301 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5302 ac_save_CXXFLAGS
=$CXXFLAGS
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5304 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5305 if ${ac_cv_prog_cxx_g+:} false
; then :
5306 $as_echo_n "(cached) " >&6
5308 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5309 ac_cxx_werror_flag
=yes
5312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5323 if ac_fn_cxx_try_compile
"$LINENO"; then :
5324 ac_cv_prog_cxx_g
=yes
5327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5338 if ac_fn_cxx_try_compile
"$LINENO"; then :
5341 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5354 if ac_fn_cxx_try_compile
"$LINENO"; then :
5355 ac_cv_prog_cxx_g
=yes
5357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5362 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5365 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5366 if test "$ac_test_CXXFLAGS" = set; then
5367 CXXFLAGS
=$ac_save_CXXFLAGS
5368 elif test $ac_cv_prog_cxx_g = yes; then
5369 if test "$GXX" = yes; then
5375 if test "$GXX" = yes; then
5382 ac_cpp
='$CPP $CPPFLAGS'
5383 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5388 # We must set the default linker to the linker used by gcc for the correct
5389 # operation of libtool. If LD is not defined and we are using gcc, try to
5390 # set the LD default to the ld used by gcc.
5391 if test -z "$LD"; then
5392 if test "$GCC" = yes; then
5395 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5397 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5399 case $gcc_prog_ld in
5400 # Accept absolute paths.
5401 [\\/]* |
[A-Za-z
]:[\\/]*)
5402 LD
="$gcc_prog_ld" ;;
5407 # Check whether -static-libstdc++ -static-libgcc is supported.
5409 if test "$GCC" = yes; then
5410 saved_LDFLAGS
="$LDFLAGS"
5412 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5414 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5416 ac_cpp
='$CXXCPP $CPPFLAGS'
5417 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5425 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5426 #error -static-libstdc++ not implemented
5430 if ac_fn_cxx_try_link
"$LINENO"; then :
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5432 $as_echo "yes" >&6; }; have_static_libs
=yes
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5437 rm -f core conftest.err conftest.
$ac_objext \
5438 conftest
$ac_exeext conftest.
$ac_ext
5440 ac_cpp
='$CPP $CPPFLAGS'
5441 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5442 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5446 LDFLAGS
="$saved_LDFLAGS"
5452 if test -n "$ac_tool_prefix"; then
5453 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5454 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_GNATBIND+:} false
; then :
5458 $as_echo_n "(cached) " >&6
5460 if test -n "$GNATBIND"; then
5461 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5467 test -z "$as_dir" && as_dir
=.
5468 for ac_exec_ext
in '' $ac_executable_extensions; do
5469 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 GNATBIND
=$ac_cv_prog_GNATBIND
5481 if test -n "$GNATBIND"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5483 $as_echo "$GNATBIND" >&6; }
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5491 if test -z "$ac_cv_prog_GNATBIND"; then
5492 ac_ct_GNATBIND
=$GNATBIND
5493 # Extract the first word of "gnatbind", so it can be a program name with args.
5494 set dummy gnatbind
; ac_word
=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5498 $as_echo_n "(cached) " >&6
5500 if test -n "$ac_ct_GNATBIND"; then
5501 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5507 test -z "$as_dir" && as_dir
=.
5508 for ac_exec_ext
in '' $ac_executable_extensions; do
5509 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5521 if test -n "$ac_ct_GNATBIND"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5523 $as_echo "$ac_ct_GNATBIND" >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5529 if test "x$ac_ct_GNATBIND" = x
; then
5532 case $cross_compiling:$ac_tool_warned in
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5536 ac_tool_warned
=yes ;;
5538 GNATBIND
=$ac_ct_GNATBIND
5541 GNATBIND
="$ac_cv_prog_GNATBIND"
5544 if test -n "$ac_tool_prefix"; then
5545 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5546 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5550 $as_echo_n "(cached) " >&6
5552 if test -n "$GNATMAKE"; then
5553 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5559 test -z "$as_dir" && as_dir
=.
5560 for ac_exec_ext
in '' $ac_executable_extensions; do
5561 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 GNATMAKE
=$ac_cv_prog_GNATMAKE
5573 if test -n "$GNATMAKE"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5575 $as_echo "$GNATMAKE" >&6; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5583 if test -z "$ac_cv_prog_GNATMAKE"; then
5584 ac_ct_GNATMAKE
=$GNATMAKE
5585 # Extract the first word of "gnatmake", so it can be a program name with args.
5586 set dummy gnatmake
; ac_word
=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5590 $as_echo_n "(cached) " >&6
5592 if test -n "$ac_ct_GNATMAKE"; then
5593 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5599 test -z "$as_dir" && as_dir
=.
5600 for ac_exec_ext
in '' $ac_executable_extensions; do
5601 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5612 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5613 if test -n "$ac_ct_GNATMAKE"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5615 $as_echo "$ac_ct_GNATMAKE" >&6; }
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5621 if test "x$ac_ct_GNATMAKE" = x
; then
5624 case $cross_compiling:$ac_tool_warned in
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5628 ac_tool_warned
=yes ;;
5630 GNATMAKE
=$ac_ct_GNATMAKE
5633 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5637 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5638 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5639 $as_echo_n "(cached) " >&6
5641 cat >conftest.adb
<<EOF
5642 pragma Warnings (Off);
5644 pragma Warnings (On);
5645 use type System.CRTL.int64;
5646 procedure conftest is begin null; end conftest;
5648 acx_cv_cc_gcc_supports_ada
=no
5649 # There is a bug in old released versions of GCC which causes the
5650 # driver to exit successfully when the appropriate language module
5651 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5652 # Therefore we must check for the error message as well as an
5653 # unsuccessful exit.
5654 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5655 # given a .adb file, but produce no object file. So we must check
5656 # if an object file was really produced to guard against this.
5657 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5658 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5659 acx_cv_cc_gcc_supports_ada
=yes
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5664 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5666 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5674 if test -n "$ac_tool_prefix"; then
5675 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5676 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_prog_GDC+:} false
; then :
5680 $as_echo_n "(cached) " >&6
5682 if test -n "$GDC"; then
5683 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5689 test -z "$as_dir" && as_dir
=.
5690 for ac_exec_ext
in '' $ac_executable_extensions; do
5691 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 if test -n "$GDC"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5705 $as_echo "$GDC" >&6; }
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5713 if test -z "$ac_cv_prog_GDC"; then
5715 # Extract the first word of "gdc", so it can be a program name with args.
5716 set dummy gdc
; ac_word
=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5720 $as_echo_n "(cached) " >&6
5722 if test -n "$ac_ct_GDC"; then
5723 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5729 test -z "$as_dir" && as_dir
=.
5730 for ac_exec_ext
in '' $ac_executable_extensions; do
5731 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_ac_ct_GDC
="gdc"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5743 if test -n "$ac_ct_GDC"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5745 $as_echo "$ac_ct_GDC" >&6; }
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5751 if test "x$ac_ct_GDC" = x
; then
5754 case $cross_compiling:$ac_tool_warned in
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758 ac_tool_warned
=yes ;;
5763 GDC
="$ac_cv_prog_GDC"
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5767 $as_echo_n "checking whether the D compiler works... " >&6; }
5768 if ${acx_cv_d_compiler_works+:} false
; then :
5769 $as_echo_n "(cached) " >&6
5771 cat >conftest.d
<<EOF
5772 module conftest; int main() { return 0; }
5774 acx_cv_d_compiler_works
=no
5775 if test "x$GDC" != xno
; then
5776 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5777 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5778 acx_cv_d_compiler_works
=yes
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5784 $as_echo "$acx_cv_d_compiler_works" >&6; }
5785 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5791 for ac_prog
in cargo
5793 # Extract the first word of "$ac_prog", so it can be a program name with args.
5794 set dummy
$ac_prog; ac_word
=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_prog_CARGO+:} false
; then :
5798 $as_echo_n "(cached) " >&6
5800 if test -n "$CARGO"; then
5801 ac_cv_prog_CARGO
="$CARGO" # Let the user override the test.
5803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5807 test -z "$as_dir" && as_dir
=.
5808 for ac_exec_ext
in '' $ac_executable_extensions; do
5809 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5810 ac_cv_prog_CARGO
="$ac_prog"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 CARGO
=$ac_cv_prog_CARGO
5821 if test -n "$CARGO"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5823 $as_echo "$CARGO" >&6; }
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5830 test -n "$CARGO" && break
5832 test -n "$CARGO" || CARGO
="no"
5834 if test "x$CARGO" != xno
; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5840 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5841 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5842 $as_echo_n "(cached) " >&6
5846 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5847 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5848 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5851 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5854 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5855 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5858 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5865 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5866 do_compare
="$gcc_cv_prog_cmp_skip"
5870 # Check whether --enable-bootstrap was given.
5871 if test "${enable_bootstrap+set}" = set; then :
5872 enableval
=$enable_bootstrap;
5874 enable_bootstrap
=default
5878 # Issue errors and warnings for invalid/strange bootstrap combinations.
5879 if test -r $srcdir/gcc
/configure
; then
5885 case "$have_compiler:$host:$target:$enable_bootstrap" in
5888 # Default behavior. Enable bootstrap if we have a compiler
5889 # and we are in a native configuration.
5890 yes:$build:$build:default
)
5891 enable_bootstrap
=yes ;;
5894 enable_bootstrap
=no
;;
5896 # We have a compiler and we are in a native configuration, bootstrap is ok
5897 yes:$build:$build:yes)
5900 # Other configurations, but we have a compiler. Assume the user knows
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5904 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5907 # No compiler: if they passed --enable-bootstrap explicitly, fail
5909 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5911 # Fail if wrong command line
5913 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5917 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5918 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5919 # require C++11 (or higher).
5920 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5921 CXX
="$CXX -std=c++11"
5922 elif test "$have_compiler" = yes; then
5923 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5925 ac_cpp
='$CXXCPP $CPPFLAGS'
5926 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5932 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5933 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5934 $as_echo_n "(cached) " >&6
5936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5940 // If the compiler admits that it is not ready for C++11, why torture it?
5941 // Hopefully, this will speed up the test.
5945 #error "This is not a C++ compiler"
5947 #elif __cplusplus < 201103L
5949 #error "This is not a C++11 compiler"
5956 namespace test_static_assert
5959 template <typename T>
5962 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5967 namespace test_final_override
5976 struct Derived : public Base
5978 virtual ~Derived() override {}
5979 virtual void f() override {}
5984 namespace test_double_right_angle_brackets
5987 template < typename T >
5990 typedef check<void> single_type;
5991 typedef check<check<void>> double_type;
5992 typedef check<check<check<void>>> triple_type;
5993 typedef check<check<check<check<void>>>> quadruple_type;
5997 namespace test_decltype
6010 namespace test_type_deduction
6013 template < typename T1, typename T2 >
6016 static const bool value = false;
6019 template < typename T >
6020 struct is_same<T, T>
6022 static const bool value = true;
6025 template < typename T1, typename T2 >
6027 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6033 test(const int c, volatile int v)
6035 static_assert(is_same<int, decltype(0)>::value == true, "");
6036 static_assert(is_same<int, decltype(c)>::value == false, "");
6037 static_assert(is_same<int, decltype(v)>::value == false, "");
6040 auto sumi = ac + av + 'x';
6041 auto sumf = ac + av + 1.0;
6042 static_assert(is_same<int, decltype(ac)>::value == true, "");
6043 static_assert(is_same<int, decltype(av)>::value == true, "");
6044 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6045 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6046 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6047 return (sumf > 0.0) ? sumi : add(c, v);
6052 namespace test_noexcept
6055 int f() { return 0; }
6056 int g() noexcept { return 0; }
6058 static_assert(noexcept(f()) == false, "");
6059 static_assert(noexcept(g()) == true, "");
6063 namespace test_constexpr
6066 template < typename CharT >
6067 unsigned long constexpr
6068 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6070 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6073 template < typename CharT >
6074 unsigned long constexpr
6075 strlen_c(const CharT *const s) noexcept
6077 return strlen_c_r(s, 0UL);
6080 static_assert(strlen_c("") == 0UL, "");
6081 static_assert(strlen_c("1") == 1UL, "");
6082 static_assert(strlen_c("example") == 7UL, "");
6083 static_assert(strlen_c("another\0example") == 7UL, "");
6087 namespace test_rvalue_references
6093 static constexpr int value = N;
6096 answer<1> f(int&) { return answer<1>(); }
6097 answer<2> f(const int&) { return answer<2>(); }
6098 answer<3> f(int&&) { return answer<3>(); }
6105 static_assert(decltype(f(i))::value == 1, "");
6106 static_assert(decltype(f(c))::value == 2, "");
6107 static_assert(decltype(f(0))::value == 3, "");
6112 namespace test_uniform_initialization
6117 static const int zero {};
6118 static const int one {1};
6121 static_assert(test::zero == 0, "");
6122 static_assert(test::one == 1, "");
6126 namespace test_lambdas
6132 auto lambda1 = [](){};
6133 auto lambda2 = lambda1;
6141 auto a = [](int i, int j){ return i + j; }(1, 2);
6142 auto b = []() -> int { return '0'; }();
6143 auto c = [=](){ return a + b; }();
6144 auto d = [&](){ return c; }();
6145 auto e = [a, &b](int x) mutable {
6146 const auto identity = [](int y){ return y; };
6147 for (auto i = 0; i < a; ++i)
6149 return x + identity(a + b);
6151 return a + b + c + d + e;
6157 const auto nullary = [](){ return 0; };
6158 const auto unary = [](int x){ return x; };
6159 using nullary_t = decltype(nullary);
6160 using unary_t = decltype(unary);
6161 const auto higher1st = [](nullary_t f){ return f(); };
6162 const auto higher2nd = [unary](nullary_t f1){
6163 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6165 return higher1st(nullary) + higher2nd(nullary)(unary);
6170 namespace test_variadic_templates
6176 template <int N0, int... N1toN>
6177 struct sum<N0, N1toN...>
6179 static constexpr auto value = N0 + sum<N1toN...>::value;
6185 static constexpr auto value = 0;
6188 static_assert(sum<>::value == 0, "");
6189 static_assert(sum<1>::value == 1, "");
6190 static_assert(sum<23>::value == 23, "");
6191 static_assert(sum<1, 2>::value == 3, "");
6192 static_assert(sum<5, 5, 11>::value == 21, "");
6193 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6197 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6198 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6200 namespace test_template_alias_sfinae
6205 template<typename T>
6206 using member = typename T::member_type;
6208 template<typename T>
6211 template<typename T>
6212 void func(member<T>*) {}
6216 void test() { func<foo>(0); }
6220 } // namespace cxx11
6222 #endif // __cplusplus >= 201103L
6227 if ac_fn_cxx_try_compile
"$LINENO"; then :
6228 ax_cv_cxx_compile_cxx11
=yes
6230 ax_cv_cxx_compile_cxx11
=no
6232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6235 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6236 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6240 if test x
$ac_success = xno
; then
6241 for alternative
in ${ax_cxx_compile_alternatives}; do
6242 switch
="-std=gnu++${alternative}"
6243 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6245 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6246 if eval \
${$cachevar+:} false
; then :
6247 $as_echo_n "(cached) " >&6
6251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6255 // If the compiler admits that it is not ready for C++11, why torture it?
6256 // Hopefully, this will speed up the test.
6260 #error "This is not a C++ compiler"
6262 #elif __cplusplus < 201103L
6264 #error "This is not a C++11 compiler"
6271 namespace test_static_assert
6274 template <typename T>
6277 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6282 namespace test_final_override
6291 struct Derived : public Base
6293 virtual ~Derived() override {}
6294 virtual void f() override {}
6299 namespace test_double_right_angle_brackets
6302 template < typename T >
6305 typedef check<void> single_type;
6306 typedef check<check<void>> double_type;
6307 typedef check<check<check<void>>> triple_type;
6308 typedef check<check<check<check<void>>>> quadruple_type;
6312 namespace test_decltype
6325 namespace test_type_deduction
6328 template < typename T1, typename T2 >
6331 static const bool value = false;
6334 template < typename T >
6335 struct is_same<T, T>
6337 static const bool value = true;
6340 template < typename T1, typename T2 >
6342 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6348 test(const int c, volatile int v)
6350 static_assert(is_same<int, decltype(0)>::value == true, "");
6351 static_assert(is_same<int, decltype(c)>::value == false, "");
6352 static_assert(is_same<int, decltype(v)>::value == false, "");
6355 auto sumi = ac + av + 'x';
6356 auto sumf = ac + av + 1.0;
6357 static_assert(is_same<int, decltype(ac)>::value == true, "");
6358 static_assert(is_same<int, decltype(av)>::value == true, "");
6359 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6360 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6361 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6362 return (sumf > 0.0) ? sumi : add(c, v);
6367 namespace test_noexcept
6370 int f() { return 0; }
6371 int g() noexcept { return 0; }
6373 static_assert(noexcept(f()) == false, "");
6374 static_assert(noexcept(g()) == true, "");
6378 namespace test_constexpr
6381 template < typename CharT >
6382 unsigned long constexpr
6383 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6385 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6388 template < typename CharT >
6389 unsigned long constexpr
6390 strlen_c(const CharT *const s) noexcept
6392 return strlen_c_r(s, 0UL);
6395 static_assert(strlen_c("") == 0UL, "");
6396 static_assert(strlen_c("1") == 1UL, "");
6397 static_assert(strlen_c("example") == 7UL, "");
6398 static_assert(strlen_c("another\0example") == 7UL, "");
6402 namespace test_rvalue_references
6408 static constexpr int value = N;
6411 answer<1> f(int&) { return answer<1>(); }
6412 answer<2> f(const int&) { return answer<2>(); }
6413 answer<3> f(int&&) { return answer<3>(); }
6420 static_assert(decltype(f(i))::value == 1, "");
6421 static_assert(decltype(f(c))::value == 2, "");
6422 static_assert(decltype(f(0))::value == 3, "");
6427 namespace test_uniform_initialization
6432 static const int zero {};
6433 static const int one {1};
6436 static_assert(test::zero == 0, "");
6437 static_assert(test::one == 1, "");
6441 namespace test_lambdas
6447 auto lambda1 = [](){};
6448 auto lambda2 = lambda1;
6456 auto a = [](int i, int j){ return i + j; }(1, 2);
6457 auto b = []() -> int { return '0'; }();
6458 auto c = [=](){ return a + b; }();
6459 auto d = [&](){ return c; }();
6460 auto e = [a, &b](int x) mutable {
6461 const auto identity = [](int y){ return y; };
6462 for (auto i = 0; i < a; ++i)
6464 return x + identity(a + b);
6466 return a + b + c + d + e;
6472 const auto nullary = [](){ return 0; };
6473 const auto unary = [](int x){ return x; };
6474 using nullary_t = decltype(nullary);
6475 using unary_t = decltype(unary);
6476 const auto higher1st = [](nullary_t f){ return f(); };
6477 const auto higher2nd = [unary](nullary_t f1){
6478 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6480 return higher1st(nullary) + higher2nd(nullary)(unary);
6485 namespace test_variadic_templates
6491 template <int N0, int... N1toN>
6492 struct sum<N0, N1toN...>
6494 static constexpr auto value = N0 + sum<N1toN...>::value;
6500 static constexpr auto value = 0;
6503 static_assert(sum<>::value == 0, "");
6504 static_assert(sum<1>::value == 1, "");
6505 static_assert(sum<23>::value == 23, "");
6506 static_assert(sum<1, 2>::value == 3, "");
6507 static_assert(sum<5, 5, 11>::value == 21, "");
6508 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6512 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6513 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6515 namespace test_template_alias_sfinae
6520 template<typename T>
6521 using member = typename T::member_type;
6523 template<typename T>
6526 template<typename T>
6527 void func(member<T>*) {}
6531 void test() { func<foo>(0); }
6535 } // namespace cxx11
6537 #endif // __cplusplus >= 201103L
6542 if ac_fn_cxx_try_compile
"$LINENO"; then :
6547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6550 eval ac_res
=\$
$cachevar
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6552 $as_echo "$ac_res" >&6; }
6553 if eval test x\$
$cachevar = xyes
; then
6555 if test -n "$CXXCPP" ; then
6556 CXXCPP
="$CXXCPP $switch"
6564 if test x
$ac_success = xno
; then
6565 for alternative
in ${ax_cxx_compile_alternatives}; do
6566 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6567 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6569 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6570 if eval \${$cachevar+:} false; then :
6571 $as_echo_n "(cached
) " >&6
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6579 // If the compiler admits that it is not ready for C++11, why torture it?
6580 // Hopefully, this will speed up the test.
6584 #error "This is not a C
++ compiler
"
6586 #elif __cplusplus < 201103L
6588 #error "This is not a C
++11 compiler
"
6595 namespace test_static_assert
6598 template <typename T>
6601 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6606 namespace test_final_override
6615 struct Derived : public Base
6617 virtual ~Derived() override {}
6618 virtual void f() override {}
6623 namespace test_double_right_angle_brackets
6626 template < typename T >
6629 typedef check<void> single_type;
6630 typedef check<check<void>> double_type;
6631 typedef check<check<check<void>>> triple_type;
6632 typedef check<check<check<check<void>>>> quadruple_type;
6636 namespace test_decltype
6649 namespace test_type_deduction
6652 template < typename T1, typename T2 >
6655 static const bool value = false;
6658 template < typename T >
6659 struct is_same<T, T>
6661 static const bool value = true;
6664 template < typename T1, typename T2 >
6666 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6672 test(const int c, volatile int v)
6674 static_assert(is_same<int, decltype(0)>::value == true, "");
6675 static_assert(is_same<int, decltype(c)>::value == false, "");
6676 static_assert(is_same<int, decltype(v)>::value == false, "");
6679 auto sumi = ac + av + 'x';
6680 auto sumf = ac + av + 1.0;
6681 static_assert(is_same<int, decltype(ac)>::value == true, "");
6682 static_assert(is_same<int, decltype(av)>::value == true, "");
6683 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6684 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6685 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6686 return (sumf > 0.0) ? sumi : add(c, v);
6691 namespace test_noexcept
6694 int f() { return 0; }
6695 int g() noexcept { return 0; }
6697 static_assert(noexcept(f()) == false, "");
6698 static_assert(noexcept(g()) == true, "");
6702 namespace test_constexpr
6705 template < typename CharT >
6706 unsigned long constexpr
6707 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6709 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6712 template < typename CharT >
6713 unsigned long constexpr
6714 strlen_c(const CharT *const s) noexcept
6716 return strlen_c_r(s, 0UL);
6719 static_assert(strlen_c("") == 0UL, "");
6720 static_assert(strlen_c("1") == 1UL, "");
6721 static_assert(strlen_c("example
") == 7UL, "");
6722 static_assert(strlen_c("another\
0example
") == 7UL, "");
6726 namespace test_rvalue_references
6732 static constexpr int value = N;
6735 answer<1> f(int&) { return answer<1>(); }
6736 answer<2> f(const int&) { return answer<2>(); }
6737 answer<3> f(int&&) { return answer<3>(); }
6744 static_assert(decltype(f(i))::value == 1, "");
6745 static_assert(decltype(f(c))::value == 2, "");
6746 static_assert(decltype(f(0))::value == 3, "");
6751 namespace test_uniform_initialization
6756 static const int zero {};
6757 static const int one {1};
6760 static_assert(test::zero == 0, "");
6761 static_assert(test::one == 1, "");
6765 namespace test_lambdas
6771 auto lambda1 = [](){};
6772 auto lambda2 = lambda1;
6780 auto a = [](int i, int j){ return i + j; }(1, 2);
6781 auto b = []() -> int { return '0'; }();
6782 auto c = [=](){ return a + b; }();
6783 auto d = [&](){ return c; }();
6784 auto e = [a, &b](int x) mutable {
6785 const auto identity = [](int y){ return y; };
6786 for (auto i = 0; i < a; ++i)
6788 return x + identity(a + b);
6790 return a + b + c + d + e;
6796 const auto nullary = [](){ return 0; };
6797 const auto unary = [](int x){ return x; };
6798 using nullary_t = decltype(nullary);
6799 using unary_t = decltype(unary);
6800 const auto higher1st = [](nullary_t f){ return f(); };
6801 const auto higher2nd = [unary](nullary_t f1){
6802 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6804 return higher1st(nullary) + higher2nd(nullary)(unary);
6809 namespace test_variadic_templates
6815 template <int N0, int... N1toN>
6816 struct sum<N0, N1toN...>
6818 static constexpr auto value = N0 + sum<N1toN...>::value;
6824 static constexpr auto value = 0;
6827 static_assert(sum<>::value == 0, "");
6828 static_assert(sum<1>::value == 1, "");
6829 static_assert(sum<23>::value == 23, "");
6830 static_assert(sum<1, 2>::value == 3, "");
6831 static_assert(sum<5, 5, 11>::value == 21, "");
6832 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6836 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6837 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6839 namespace test_template_alias_sfinae
6844 template<typename T>
6845 using member = typename T::member_type;
6847 template<typename T>
6850 template<typename T>
6851 void func(member<T>*) {}
6855 void test() { func<foo>(0); }
6859 } // namespace cxx11
6861 #endif // __cplusplus >= 201103L
6866 if ac_fn_cxx_try_compile "$LINENO"; then :
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6874 eval ac_res=\$$cachevar
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6876 $as_echo "$ac_res" >&6; }
6877 if eval test x\$$cachevar = xyes; then
6879 if test -n "$CXXCPP" ; then
6880 CXXCPP="$CXXCPP $switch"
6886 if test x$ac_success = xyes; then
6893 ac_cpp='$CPP $CPPFLAGS'
6894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6898 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6899 if test x$ac_success = xno; then
6900 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6903 if test x$ac_success = xno; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6906 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6910 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6916 if test "${build}" != "${host}"; then
6917 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6919 ac_cpp
='$CXXCPP $CPPFLAGS'
6920 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6921 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6922 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6924 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6925 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6926 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6927 CXX
="$CXX_FOR_BUILD"
6928 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6929 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6931 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6932 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6933 $as_echo_n "(cached) " >&6
6935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6939 // If the compiler admits that it is not ready for C++11, why torture it?
6940 // Hopefully, this will speed up the test.
6944 #error "This is not a C++ compiler"
6946 #elif __cplusplus < 201103L
6948 #error "This is not a C++11 compiler"
6955 namespace test_static_assert
6958 template <typename T>
6961 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6966 namespace test_final_override
6975 struct Derived : public Base
6977 virtual ~Derived() override {}
6978 virtual void f() override {}
6983 namespace test_double_right_angle_brackets
6986 template < typename T >
6989 typedef check<void> single_type;
6990 typedef check<check<void>> double_type;
6991 typedef check<check<check<void>>> triple_type;
6992 typedef check<check<check<check<void>>>> quadruple_type;
6996 namespace test_decltype
7009 namespace test_type_deduction
7012 template < typename T1, typename T2 >
7015 static const bool value = false;
7018 template < typename T >
7019 struct is_same<T, T>
7021 static const bool value = true;
7024 template < typename T1, typename T2 >
7026 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7032 test(const int c, volatile int v)
7034 static_assert(is_same<int, decltype(0)>::value == true, "");
7035 static_assert(is_same<int, decltype(c)>::value == false, "");
7036 static_assert(is_same<int, decltype(v)>::value == false, "");
7039 auto sumi = ac + av + 'x';
7040 auto sumf = ac + av + 1.0;
7041 static_assert(is_same<int, decltype(ac)>::value == true, "");
7042 static_assert(is_same<int, decltype(av)>::value == true, "");
7043 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7044 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7045 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7046 return (sumf > 0.0) ? sumi : add(c, v);
7051 namespace test_noexcept
7054 int f() { return 0; }
7055 int g() noexcept { return 0; }
7057 static_assert(noexcept(f()) == false, "");
7058 static_assert(noexcept(g()) == true, "");
7062 namespace test_constexpr
7065 template < typename CharT >
7066 unsigned long constexpr
7067 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7069 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7072 template < typename CharT >
7073 unsigned long constexpr
7074 strlen_c(const CharT *const s) noexcept
7076 return strlen_c_r(s, 0UL);
7079 static_assert(strlen_c("") == 0UL, "");
7080 static_assert(strlen_c("1") == 1UL, "");
7081 static_assert(strlen_c("example") == 7UL, "");
7082 static_assert(strlen_c("another\0example") == 7UL, "");
7086 namespace test_rvalue_references
7092 static constexpr int value = N;
7095 answer<1> f(int&) { return answer<1>(); }
7096 answer<2> f(const int&) { return answer<2>(); }
7097 answer<3> f(int&&) { return answer<3>(); }
7104 static_assert(decltype(f(i))::value == 1, "");
7105 static_assert(decltype(f(c))::value == 2, "");
7106 static_assert(decltype(f(0))::value == 3, "");
7111 namespace test_uniform_initialization
7116 static const int zero {};
7117 static const int one {1};
7120 static_assert(test::zero == 0, "");
7121 static_assert(test::one == 1, "");
7125 namespace test_lambdas
7131 auto lambda1 = [](){};
7132 auto lambda2 = lambda1;
7140 auto a = [](int i, int j){ return i + j; }(1, 2);
7141 auto b = []() -> int { return '0'; }();
7142 auto c = [=](){ return a + b; }();
7143 auto d = [&](){ return c; }();
7144 auto e = [a, &b](int x) mutable {
7145 const auto identity = [](int y){ return y; };
7146 for (auto i = 0; i < a; ++i)
7148 return x + identity(a + b);
7150 return a + b + c + d + e;
7156 const auto nullary = [](){ return 0; };
7157 const auto unary = [](int x){ return x; };
7158 using nullary_t = decltype(nullary);
7159 using unary_t = decltype(unary);
7160 const auto higher1st = [](nullary_t f){ return f(); };
7161 const auto higher2nd = [unary](nullary_t f1){
7162 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7164 return higher1st(nullary) + higher2nd(nullary)(unary);
7169 namespace test_variadic_templates
7175 template <int N0, int... N1toN>
7176 struct sum<N0, N1toN...>
7178 static constexpr auto value = N0 + sum<N1toN...>::value;
7184 static constexpr auto value = 0;
7187 static_assert(sum<>::value == 0, "");
7188 static_assert(sum<1>::value == 1, "");
7189 static_assert(sum<23>::value == 23, "");
7190 static_assert(sum<1, 2>::value == 3, "");
7191 static_assert(sum<5, 5, 11>::value == 21, "");
7192 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7196 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7197 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7199 namespace test_template_alias_sfinae
7204 template<typename T>
7205 using member = typename T::member_type;
7207 template<typename T>
7210 template<typename T>
7211 void func(member<T>*) {}
7215 void test() { func<foo>(0); }
7219 } // namespace cxx11
7221 #endif // __cplusplus >= 201103L
7226 if ac_fn_cxx_try_compile
"$LINENO"; then :
7227 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7229 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7234 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7235 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7239 if test x
$ac_success = xno
; then
7240 for alternative
in ${ax_cxx_compile_alternatives}; do
7241 switch
="-std=gnu++${alternative}"
7242 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7244 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7245 if eval \
${$cachevar+:} false
; then :
7246 $as_echo_n "(cached) " >&6
7250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7254 // If the compiler admits that it is not ready for C++11, why torture it?
7255 // Hopefully, this will speed up the test.
7259 #error "This is not a C++ compiler"
7261 #elif __cplusplus < 201103L
7263 #error "This is not a C++11 compiler"
7270 namespace test_static_assert
7273 template <typename T>
7276 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7281 namespace test_final_override
7290 struct Derived : public Base
7292 virtual ~Derived() override {}
7293 virtual void f() override {}
7298 namespace test_double_right_angle_brackets
7301 template < typename T >
7304 typedef check<void> single_type;
7305 typedef check<check<void>> double_type;
7306 typedef check<check<check<void>>> triple_type;
7307 typedef check<check<check<check<void>>>> quadruple_type;
7311 namespace test_decltype
7324 namespace test_type_deduction
7327 template < typename T1, typename T2 >
7330 static const bool value = false;
7333 template < typename T >
7334 struct is_same<T, T>
7336 static const bool value = true;
7339 template < typename T1, typename T2 >
7341 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7347 test(const int c, volatile int v)
7349 static_assert(is_same<int, decltype(0)>::value == true, "");
7350 static_assert(is_same<int, decltype(c)>::value == false, "");
7351 static_assert(is_same<int, decltype(v)>::value == false, "");
7354 auto sumi = ac + av + 'x';
7355 auto sumf = ac + av + 1.0;
7356 static_assert(is_same<int, decltype(ac)>::value == true, "");
7357 static_assert(is_same<int, decltype(av)>::value == true, "");
7358 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7359 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7360 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7361 return (sumf > 0.0) ? sumi : add(c, v);
7366 namespace test_noexcept
7369 int f() { return 0; }
7370 int g() noexcept { return 0; }
7372 static_assert(noexcept(f()) == false, "");
7373 static_assert(noexcept(g()) == true, "");
7377 namespace test_constexpr
7380 template < typename CharT >
7381 unsigned long constexpr
7382 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7384 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7387 template < typename CharT >
7388 unsigned long constexpr
7389 strlen_c(const CharT *const s) noexcept
7391 return strlen_c_r(s, 0UL);
7394 static_assert(strlen_c("") == 0UL, "");
7395 static_assert(strlen_c("1") == 1UL, "");
7396 static_assert(strlen_c("example") == 7UL, "");
7397 static_assert(strlen_c("another\0example") == 7UL, "");
7401 namespace test_rvalue_references
7407 static constexpr int value = N;
7410 answer<1> f(int&) { return answer<1>(); }
7411 answer<2> f(const int&) { return answer<2>(); }
7412 answer<3> f(int&&) { return answer<3>(); }
7419 static_assert(decltype(f(i))::value == 1, "");
7420 static_assert(decltype(f(c))::value == 2, "");
7421 static_assert(decltype(f(0))::value == 3, "");
7426 namespace test_uniform_initialization
7431 static const int zero {};
7432 static const int one {1};
7435 static_assert(test::zero == 0, "");
7436 static_assert(test::one == 1, "");
7440 namespace test_lambdas
7446 auto lambda1 = [](){};
7447 auto lambda2 = lambda1;
7455 auto a = [](int i, int j){ return i + j; }(1, 2);
7456 auto b = []() -> int { return '0'; }();
7457 auto c = [=](){ return a + b; }();
7458 auto d = [&](){ return c; }();
7459 auto e = [a, &b](int x) mutable {
7460 const auto identity = [](int y){ return y; };
7461 for (auto i = 0; i < a; ++i)
7463 return x + identity(a + b);
7465 return a + b + c + d + e;
7471 const auto nullary = [](){ return 0; };
7472 const auto unary = [](int x){ return x; };
7473 using nullary_t = decltype(nullary);
7474 using unary_t = decltype(unary);
7475 const auto higher1st = [](nullary_t f){ return f(); };
7476 const auto higher2nd = [unary](nullary_t f1){
7477 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7479 return higher1st(nullary) + higher2nd(nullary)(unary);
7484 namespace test_variadic_templates
7490 template <int N0, int... N1toN>
7491 struct sum<N0, N1toN...>
7493 static constexpr auto value = N0 + sum<N1toN...>::value;
7499 static constexpr auto value = 0;
7502 static_assert(sum<>::value == 0, "");
7503 static_assert(sum<1>::value == 1, "");
7504 static_assert(sum<23>::value == 23, "");
7505 static_assert(sum<1, 2>::value == 3, "");
7506 static_assert(sum<5, 5, 11>::value == 21, "");
7507 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7511 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7512 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7514 namespace test_template_alias_sfinae
7519 template<typename T>
7520 using member = typename T::member_type;
7522 template<typename T>
7525 template<typename T>
7526 void func(member<T>*) {}
7530 void test() { func<foo>(0); }
7534 } // namespace cxx11
7536 #endif // __cplusplus >= 201103L
7541 if ac_fn_cxx_try_compile
"$LINENO"; then :
7546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7549 eval ac_res
=\$
$cachevar
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7551 $as_echo "$ac_res" >&6; }
7552 if eval test x\$
$cachevar = xyes
; then
7554 if test -n "$CXXCPP" ; then
7555 CXXCPP
="$CXXCPP $switch"
7563 if test x
$ac_success = xno
; then
7564 for alternative
in ${ax_cxx_compile_alternatives}; do
7565 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7566 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7568 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7569 if eval \${$cachevar+:} false; then :
7570 $as_echo_n "(cached
) " >&6
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7578 // If the compiler admits that it is not ready for C++11, why torture it?
7579 // Hopefully, this will speed up the test.
7583 #error "This is not a C
++ compiler
"
7585 #elif __cplusplus < 201103L
7587 #error "This is not a C
++11 compiler
"
7594 namespace test_static_assert
7597 template <typename T>
7600 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7605 namespace test_final_override
7614 struct Derived : public Base
7616 virtual ~Derived() override {}
7617 virtual void f() override {}
7622 namespace test_double_right_angle_brackets
7625 template < typename T >
7628 typedef check<void> single_type;
7629 typedef check<check<void>> double_type;
7630 typedef check<check<check<void>>> triple_type;
7631 typedef check<check<check<check<void>>>> quadruple_type;
7635 namespace test_decltype
7648 namespace test_type_deduction
7651 template < typename T1, typename T2 >
7654 static const bool value = false;
7657 template < typename T >
7658 struct is_same<T, T>
7660 static const bool value = true;
7663 template < typename T1, typename T2 >
7665 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7671 test(const int c, volatile int v)
7673 static_assert(is_same<int, decltype(0)>::value == true, "");
7674 static_assert(is_same<int, decltype(c)>::value == false, "");
7675 static_assert(is_same<int, decltype(v)>::value == false, "");
7678 auto sumi = ac + av + 'x';
7679 auto sumf = ac + av + 1.0;
7680 static_assert(is_same<int, decltype(ac)>::value == true, "");
7681 static_assert(is_same<int, decltype(av)>::value == true, "");
7682 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7683 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7684 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7685 return (sumf > 0.0) ? sumi : add(c, v);
7690 namespace test_noexcept
7693 int f() { return 0; }
7694 int g() noexcept { return 0; }
7696 static_assert(noexcept(f()) == false, "");
7697 static_assert(noexcept(g()) == true, "");
7701 namespace test_constexpr
7704 template < typename CharT >
7705 unsigned long constexpr
7706 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7708 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7711 template < typename CharT >
7712 unsigned long constexpr
7713 strlen_c(const CharT *const s) noexcept
7715 return strlen_c_r(s, 0UL);
7718 static_assert(strlen_c("") == 0UL, "");
7719 static_assert(strlen_c("1") == 1UL, "");
7720 static_assert(strlen_c("example
") == 7UL, "");
7721 static_assert(strlen_c("another\
0example
") == 7UL, "");
7725 namespace test_rvalue_references
7731 static constexpr int value = N;
7734 answer<1> f(int&) { return answer<1>(); }
7735 answer<2> f(const int&) { return answer<2>(); }
7736 answer<3> f(int&&) { return answer<3>(); }
7743 static_assert(decltype(f(i))::value == 1, "");
7744 static_assert(decltype(f(c))::value == 2, "");
7745 static_assert(decltype(f(0))::value == 3, "");
7750 namespace test_uniform_initialization
7755 static const int zero {};
7756 static const int one {1};
7759 static_assert(test::zero == 0, "");
7760 static_assert(test::one == 1, "");
7764 namespace test_lambdas
7770 auto lambda1 = [](){};
7771 auto lambda2 = lambda1;
7779 auto a = [](int i, int j){ return i + j; }(1, 2);
7780 auto b = []() -> int { return '0'; }();
7781 auto c = [=](){ return a + b; }();
7782 auto d = [&](){ return c; }();
7783 auto e = [a, &b](int x) mutable {
7784 const auto identity = [](int y){ return y; };
7785 for (auto i = 0; i < a; ++i)
7787 return x + identity(a + b);
7789 return a + b + c + d + e;
7795 const auto nullary = [](){ return 0; };
7796 const auto unary = [](int x){ return x; };
7797 using nullary_t = decltype(nullary);
7798 using unary_t = decltype(unary);
7799 const auto higher1st = [](nullary_t f){ return f(); };
7800 const auto higher2nd = [unary](nullary_t f1){
7801 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7803 return higher1st(nullary) + higher2nd(nullary)(unary);
7808 namespace test_variadic_templates
7814 template <int N0, int... N1toN>
7815 struct sum<N0, N1toN...>
7817 static constexpr auto value = N0 + sum<N1toN...>::value;
7823 static constexpr auto value = 0;
7826 static_assert(sum<>::value == 0, "");
7827 static_assert(sum<1>::value == 1, "");
7828 static_assert(sum<23>::value == 23, "");
7829 static_assert(sum<1, 2>::value == 3, "");
7830 static_assert(sum<5, 5, 11>::value == 21, "");
7831 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7835 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7836 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7838 namespace test_template_alias_sfinae
7843 template<typename T>
7844 using member = typename T::member_type;
7846 template<typename T>
7849 template<typename T>
7850 void func(member<T>*) {}
7854 void test() { func<foo>(0); }
7858 } // namespace cxx11
7860 #endif // __cplusplus >= 201103L
7865 if ac_fn_cxx_try_compile "$LINENO"; then :
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873 eval ac_res=\$$cachevar
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7875 $as_echo "$ac_res" >&6; }
7876 if eval test x\$$cachevar = xyes; then
7878 if test -n "$CXXCPP" ; then
7879 CXXCPP="$CXXCPP $switch"
7885 if test x$ac_success = xyes; then
7890 CXX_FOR_BUILD="$CXX"
7891 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7892 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7893 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7894 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7895 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7897 ac_cpp='$CPP $CPPFLAGS'
7898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7903 if test x$ac_success = xno; then
7904 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7907 if test x$ac_success = xno; then
7908 HAVE_CXX11_FOR_BUILD=0
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7910 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7912 HAVE_CXX11_FOR_BUILD=1
7914 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7922 # Check whether --enable-pgo-build was given.
7923 if test "${enable_pgo_build+set}" = set; then :
7924 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7930 # Issue errors and warnings for invalid/strange PGO build combinations.
7931 case "$have_compiler:$host:$target:$enable_pgo_build" in
7934 # Allow the PGO build only if we aren't building a compiler and
7935 # we are in a native configuration.
7936 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7938 # Disallow the PGO bootstrap if we are building a compiler.
7939 yes:*:*:yes |
yes:*:*:lto
)
7940 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7943 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7947 if test "$enable_pgo_build" != "no"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7949 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7950 old_CFLAGS
="$CFLAGS"
7951 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7952 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7955 /* end confdefs.h. */
7958 if ac_fn_c_try_compile
"$LINENO"; then :
7961 PGO_BUILD_GEN_CFLAGS
=
7963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7964 CFLAGS
="$old_CFLAGS"
7965 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7967 $as_echo "yes" >&6; }
7968 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7972 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7975 if test "$enable_pgo_build" = "lto"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7977 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7978 old_CFLAGS
="$CFLAGS"
7979 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7980 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7985 if ac_fn_c_try_compile
"$LINENO"; then :
7988 PGO_BUILD_LTO_CFLAGS
=
7990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7991 CFLAGS
="$old_CFLAGS"
7992 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7994 $as_echo "yes" >&6; }
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7999 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
8007 # Used for setting $lt_cv_objdir
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8009 $as_echo_n "checking for objdir... " >&6; }
8010 if ${lt_cv_objdir+:} false
; then :
8011 $as_echo_n "(cached) " >&6
8013 rm -f .libs
2>/dev
/null
8014 mkdir .libs
2>/dev
/null
8015 if test -d .libs
; then
8018 # MS-DOS does not allow filenames that begin with a dot.
8021 rmdir .libs
2>/dev
/null
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8024 $as_echo "$lt_cv_objdir" >&6; }
8025 objdir
=$lt_cv_objdir
8031 cat >>confdefs.h
<<_ACEOF
8032 #define LT_OBJDIR "$lt_cv_objdir/"
8037 # Check for GMP, MPFR and MPC
8040 if test -d ${srcdir}/gcc
; then
8044 if test -d ${srcdir}/gdb
; then
8045 if test "x$enable_gdb" != xno
; then
8050 gmplibs
="-lmpfr -lgmp"
8051 if test x
"$require_mpc" = "xyes" ; then
8052 gmplibs
="-lmpc $gmplibs"
8057 # Specify a location for mpc
8058 # check for this first so it ends up on the link line before mpfr.
8060 # Check whether --with-mpc was given.
8061 if test "${with_mpc+set}" = set; then :
8066 # Check whether --with-mpc-include was given.
8067 if test "${with_mpc_include+set}" = set; then :
8068 withval
=$with_mpc_include;
8072 # Check whether --with-mpc-lib was given.
8073 if test "${with_mpc_lib+set}" = set; then :
8074 withval
=$with_mpc_lib;
8078 if test "x$with_mpc" != x
; then
8079 gmplibs
="-L$with_mpc/lib $gmplibs"
8080 gmpinc
="-I$with_mpc/include $gmpinc"
8082 if test "x$with_mpc_include" != x
; then
8083 gmpinc
="-I$with_mpc_include $gmpinc"
8085 if test "x$with_mpc_lib" != x
; then
8086 gmplibs
="-L$with_mpc_lib $gmplibs"
8088 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
8089 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8090 gmpinc
='-I$$s/mpc/src '"$gmpinc"
8091 # Do not test the mpc version. Assume that it is sufficient, since
8092 # it is in the source tree, and the library has not been built yet
8093 # but it would be included on the link line in the version check below
8094 # hence making the test fail.
8098 # Specify a location for mpfr
8099 # check for this first so it ends up on the link line before gmp.
8101 # Check whether --with-mpfr was given.
8102 if test "${with_mpfr+set}" = set; then :
8107 # Check whether --with-mpfr-include was given.
8108 if test "${with_mpfr_include+set}" = set; then :
8109 withval
=$with_mpfr_include;
8113 # Check whether --with-mpfr-lib was given.
8114 if test "${with_mpfr_lib+set}" = set; then :
8115 withval
=$with_mpfr_lib;
8119 if test "x$with_mpfr" != x
; then
8120 gmplibs
="-L$with_mpfr/lib $gmplibs"
8121 gmpinc
="-I$with_mpfr/include $gmpinc"
8123 if test "x$with_mpfr_include" != x
; then
8124 gmpinc
="-I$with_mpfr_include $gmpinc"
8126 if test "x$with_mpfr_lib" != x
; then
8127 gmplibs
="-L$with_mpfr_lib $gmplibs"
8129 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8130 # MPFR v3.1.0 moved the sources into a src sub-directory.
8131 if ! test -d ${srcdir}/mpfr
/src
; then
8132 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8134 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8135 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8136 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8137 # Do not test the mpfr version. Assume that it is sufficient, since
8138 # it is in the source tree, and the library has not been built yet
8139 # but it would be included on the link line in the version check below
8140 # hence making the test fail.
8144 # Specify a location for gmp
8146 # Check whether --with-gmp was given.
8147 if test "${with_gmp+set}" = set; then :
8152 # Check whether --with-gmp-include was given.
8153 if test "${with_gmp_include+set}" = set; then :
8154 withval
=$with_gmp_include;
8158 # Check whether --with-gmp-lib was given.
8159 if test "${with_gmp_lib+set}" = set; then :
8160 withval
=$with_gmp_lib;
8165 if test "x$with_gmp" != x
; then
8166 gmplibs
="-L$with_gmp/lib $gmplibs"
8167 gmpinc
="-I$with_gmp/include $gmpinc"
8169 if test "x$with_gmp_include" != x
; then
8170 gmpinc
="-I$with_gmp_include $gmpinc"
8172 if test "x$with_gmp_lib" != x
; then
8173 gmplibs
="-L$with_gmp_lib $gmplibs"
8175 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8176 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8177 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8178 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8179 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8180 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8181 # Do not test the gmp version. Assume that it is sufficient, since
8182 # it is in the source tree, and the library has not been built yet
8183 # but it would be included on the link line in the version check below
8184 # hence making the test fail.
8188 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
8190 saved_CFLAGS
="$CFLAGS"
8191 CFLAGS
="$CFLAGS $gmpinc"
8192 # Check for the recommended and required versions of GMP.
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8194 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8202 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8203 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8204 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8212 if ac_fn_c_try_compile
"$LINENO"; then :
8213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8220 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8221 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8222 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8230 if ac_fn_c_try_compile
"$LINENO"; then :
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8232 $as_echo "yes" >&6; }
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8235 $as_echo "buggy but acceptable" >&6; }
8237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }; have_gmp
=no
8242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8244 # If we have GMP, check the MPFR version.
8245 if test x
"$have_gmp" = xyes
; then
8246 # Check for the recommended and required versions of MPFR.
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8248 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8250 /* end confdefs.h. */
8257 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8265 if ac_fn_c_try_compile
"$LINENO"; then :
8266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8274 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8282 if ac_fn_c_try_compile
"$LINENO"; then :
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8284 $as_echo "yes" >&6; }
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8287 $as_echo "buggy but acceptable" >&6; }
8289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }; have_gmp
=no
8294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8297 # Check for the MPC header version.
8298 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8299 # Check for the recommended and required versions of MPC.
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8301 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8309 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8317 if ac_fn_c_try_compile
"$LINENO"; then :
8318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8325 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8333 if ac_fn_c_try_compile
"$LINENO"; then :
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8335 $as_echo "yes" >&6; }
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8338 $as_echo "buggy but acceptable" >&6; }
8340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }; have_gmp
=no
8345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8348 # Now check the MPFR library.
8349 if test x
"$have_gmp" = xyes
; then
8351 LIBS
="$LIBS $gmplibs"
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8353 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8366 mpfr_atan2 (n, n, x, MPFR_RNDN);
8367 mpfr_erfc (n, x, MPFR_RNDN);
8368 mpfr_subnormalize (x, t, MPFR_RNDN);
8376 if ac_fn_c_try_link
"$LINENO"; then :
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8378 $as_echo "yes" >&6; }
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }; have_gmp
=no
8383 rm -f core conftest.err conftest.
$ac_objext \
8384 conftest
$ac_exeext conftest.
$ac_ext
8388 # Now check the MPC library
8389 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8391 LIBS
="$LIBS $gmplibs"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8393 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8403 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8404 mpc_cosh (c, c, MPC_RNDNN);
8405 mpc_pow (c, c, c, MPC_RNDNN);
8406 mpc_acosh (c, c, MPC_RNDNN);
8413 if ac_fn_c_try_link
"$LINENO"; then :
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8415 $as_echo "yes" >&6; }
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }; have_gmp
=no
8420 rm -f core conftest.err conftest.
$ac_objext \
8421 conftest
$ac_exeext conftest.
$ac_ext
8425 CFLAGS
="$saved_CFLAGS"
8427 # The library versions listed in the error message below should match
8428 # the HARD-minimums enforced above.
8429 if test x
$have_gmp != xyes
; then
8430 if test -d ${srcdir}/gcc
; then
8431 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8432 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8433 their locations. Source code for these libraries can be found at
8434 their respective hosting sites as well as at
8435 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8436 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8437 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8438 make sure that you have installed both the libraries and the header
8439 files. They may be located in separate packages." "$LINENO" 5
8441 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8442 Try the --with-gmp and/or --with-mpfr options to specify
8443 their locations. If you obtained GMP and/or MPFR from a vendor
8444 distribution package, make sure that you have installed both the libraries
8445 and the header files. They may be located in separate packages." "$LINENO" 5
8450 # Flags needed for both GMP, MPFR and/or MPC.
8458 # Libraries to use for stage1 or when not bootstrapping.
8460 # Check whether --with-stage1-libs was given.
8461 if test "${with_stage1_libs+set}" = set; then :
8462 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8465 stage1_libs
=$withval
8473 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8474 # default is yes if gcc is being built; no otherwise. The reason for
8475 # this default is that gdb is sometimes linked against GNU Source
8476 # Highlight, which is a shared library that uses C++ exceptions. In
8477 # this case, -static-libstdc++ will cause crashes.
8479 # Check whether --with-static-standard-libraries was given.
8480 if test "${with_static_standard_libraries+set}" = set; then :
8481 withval
=$with_static_standard_libraries;
8483 with_static_standard_libraries
=auto
8486 if test "$with_static_standard_libraries" = auto
; then
8487 with_static_standard_libraries
=$have_compiler
8490 # Linker flags to use for stage1 or when not bootstrapping.
8492 # Check whether --with-stage1-ldflags was given.
8493 if test "${with_stage1_ldflags+set}" = set; then :
8494 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8497 stage1_ldflags
=$withval
8501 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8502 # if supported. But if the user explicitly specified the libraries to use,
8503 # trust that they are doing what they want.
8504 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8505 -a "$have_static_libs" = yes; then
8506 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8512 # Libraries to use for stage2 and later builds.
8514 # Check whether --with-boot-libs was given.
8515 if test "${with_boot_libs+set}" = set; then :
8516 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8519 poststage1_libs
=$withval
8527 # Linker flags to use for stage2 and later builds.
8529 # Check whether --with-boot-ldflags was given.
8530 if test "${with_boot_ldflags+set}" = set; then :
8531 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8534 poststage1_ldflags
=$withval
8538 # In stages 2 and 3, default to linking libstdc++ and libgcc
8539 # statically. But if the user explicitly specified the libraries to
8540 # use, trust that they are doing what they want.
8541 if test "$poststage1_libs" = ""; then
8542 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8547 *-darwin2* |
*-darwin1[56789]*)
8548 # For these versions, we default to using embedded rpaths.
8549 if test "x$enable_darwin_at_rpath" != "xno"; then
8550 poststage1_ldflags
="$poststage1_ldflags -nodefaultrpaths"
8554 # For these versions, we only use embedded rpaths on demand.
8555 if test "x$enable_darwin_at_rpath" = "xyes"; then
8556 poststage1_ldflags
="$poststage1_ldflags -nodefaultrpaths"
8562 # GCC GRAPHITE dependency isl.
8563 # Basic setup is inlined here, actual checks are in config/isl.m4
8566 # Check whether --with-isl was given.
8567 if test "${with_isl+set}" = set; then :
8572 # Treat --without-isl as a request to disable
8573 # GRAPHITE support and skip all following checks.
8574 if test "x$with_isl" != "xno"; then
8578 # Check whether --with-isl-include was given.
8579 if test "${with_isl_include+set}" = set; then :
8580 withval
=$with_isl_include;
8584 # Check whether --with-isl-lib was given.
8585 if test "${with_isl_lib+set}" = set; then :
8586 withval
=$with_isl_lib;
8590 # Check whether --enable-isl-version-check was given.
8591 if test "${enable_isl_version_check+set}" = set; then :
8592 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8594 ENABLE_ISL_CHECK
=yes
8598 # Initialize isllibs and islinc.
8607 isllibs
="-L$with_isl/lib"
8608 islinc
="-I$with_isl/include"
8611 if test "x${with_isl_include}" != x
; then
8612 islinc
="-I$with_isl_include"
8614 if test "x${with_isl_lib}" != x
; then
8615 isllibs
="-L$with_isl_lib"
8617 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8618 && test -d ${srcdir}/isl
; then
8619 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8620 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8623 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8626 isllibs
="${isllibs} -lisl"
8630 if test "${ENABLE_ISL_CHECK}" = yes ; then
8631 _isl_saved_CFLAGS
=$CFLAGS
8632 _isl_saved_LDFLAGS
=$LDFLAGS
8633 _isl_saved_LIBS
=$LIBS
8635 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8636 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8637 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8640 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 #include <isl/schedule.h>
8647 isl_options_set_schedule_serialize_sccs (NULL, 0);
8652 if ac_fn_c_try_link
"$LINENO"; then :
8657 rm -f core conftest.err conftest.
$ac_objext \
8658 conftest
$ac_exeext conftest.
$ac_ext
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8660 $as_echo "$gcc_cv_isl" >&6; }
8662 if test "${gcc_cv_isl}" = no
; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8664 $as_echo "required isl version is 0.15 or later" >&6; }
8667 CFLAGS
=$_isl_saved_CFLAGS
8668 LDFLAGS
=$_isl_saved_LDFLAGS
8669 LIBS
=$_isl_saved_LIBS
8677 if test "x${with_isl}" = xno
; then
8678 graphite_requested
=no
8679 elif test "x${with_isl}" != x \
8680 ||
test "x${with_isl_include}" != x \
8681 ||
test "x${with_isl_lib}" != x
; then
8682 graphite_requested
=yes
8684 graphite_requested
=no
8689 if test "${gcc_cv_isl}" = no
; then
8694 if test "${graphite_requested}" = yes \
8695 && test "x${isllibs}" = x \
8696 && test "x${islinc}" = x
; then
8698 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8704 # If the isl check failed, disable builds of in-tree variant of isl
8705 if test "x$with_isl" = xno ||
8706 test "x$gcc_cv_isl" = xno
; then
8707 noconfigdirs
="$noconfigdirs isl"
8714 # Check for LTO support.
8715 # Check whether --enable-lto was given.
8716 if test "${enable_lto+set}" = set; then :
8717 enableval
=$enable_lto; enable_lto
=$enableval
8719 enable_lto
=yes; default_enable_lto
=yes
8728 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8729 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8730 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8739 if test $target_elf = yes; then :
8740 # ELF platforms build the lto-plugin always.
8741 build_lto_plugin
=yes
8744 if test x
"$default_enable_lto" = x
"yes" ; then
8746 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8747 # On other non-ELF platforms, LTO has yet to be validated.
8751 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8752 # It would also be nice to check the binutils support, but we don't
8753 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8754 # warn during gcc/ subconfigure; unless you're bootstrapping with
8755 # -flto it won't be needed until after installation anyway.
8757 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8758 *) if test x
"$enable_lto" = x
"yes"; then
8759 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8764 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8765 # Build it unless LTO was explicitly disabled.
8767 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8774 # Check whether --enable-linker-plugin-configure-flags was given.
8775 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8776 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8778 extra_linker_plugin_configure_flags
=
8782 # Check whether --enable-linker-plugin-flags was given.
8783 if test "${enable_linker_plugin_flags+set}" = set; then :
8784 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8786 extra_linker_plugin_flags
=
8791 # Handle --enable-host-pie
8792 # If host PIE executables are the default (or must be forced on) for some host,
8793 # we must pass that configuration to the gcc directory.
8795 # Check whether --enable-host-pie was given.
8796 if test "${enable_host_pie+set}" = set; then :
8797 enableval
=$enable_host_pie; host_pie
=$enableval
8800 if test x
$host_pie != xyes
; then
8801 # for Darwin20+ this is required.
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8803 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8805 gcc_host_pie
=--enable-host-pie
8812 # Default to PIE (mandatory for aarch64).
8814 gcc_host_pie
=--enable-host-pie
8824 # Enable --enable-host-shared.
8825 # Checked early to determine whether jit is an 'all' language
8826 # Check whether --enable-host-shared was given.
8827 if test "${enable_host_shared+set}" = set; then :
8828 enableval
=$enable_host_shared; host_shared
=$enableval
8830 x86_64-
*-darwin* | aarch64-
*-darwin*)
8831 if test x
$host_shared != xyes
; then
8832 # PIC is the default, and actually cannot be switched off.
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8834 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8838 if test x
$host_pie = xyes
-a x
$host_shared != xyes
; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8840 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8847 # 64B x86_64 and Aarch64 Darwin default to PIC.
8848 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8849 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8850 *-*-darwin*) host_shared
=$host_pie ;;
8858 if test x
$host_shared = xyes
; then
8861 # Since host shared is the default for 64b Darwin, and also enabled for
8862 # host_pie, ensure that we present the PIE flag when host_pie is active.
8863 if test x
$host_pie = xyes
; then
8871 elif test x
$host_pie = xyes
; then
8879 # Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
8880 # default, so we check for them here
8881 # We are doing the test here and not in the gcc/configure to be able to nicely disable the
8882 # build of the Rust frontend in case a dep is missing.
8883 missing_rust_dynlibs
=none
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8888 $as_echo_n "checking for library containing dlopen... " >&6; }
8889 if ${ac_cv_search_dlopen+:} false
; then :
8890 $as_echo_n "(cached) " >&6
8892 ac_func_search_save_LIBS
=$LIBS
8893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8896 /* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
8911 for ac_lib
in '' dl
; do
8912 if test -z "$ac_lib"; then
8913 ac_res
="none required"
8916 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8918 if ac_fn_c_try_link
"$LINENO"; then :
8919 ac_cv_search_dlopen
=$ac_res
8921 rm -f core conftest.err conftest.
$ac_objext \
8923 if ${ac_cv_search_dlopen+:} false
; then :
8927 if ${ac_cv_search_dlopen+:} false
; then :
8930 ac_cv_search_dlopen
=no
8933 LIBS
=$ac_func_search_save_LIBS
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8936 $as_echo "$ac_cv_search_dlopen" >&6; }
8937 ac_res
=$ac_cv_search_dlopen
8938 if test "$ac_res" != no
; then :
8939 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
8944 $as_echo_n "checking for library containing pthread_create... " >&6; }
8945 if ${ac_cv_search_pthread_create+:} false
; then :
8946 $as_echo_n "(cached) " >&6
8948 ac_func_search_save_LIBS
=$LIBS
8949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h. */
8952 /* Override any GCC internal prototype to avoid an error.
8953 Use char because int might match the return type of a GCC
8954 builtin and then its argument prototype would still apply. */
8958 char pthread_create ();
8962 return pthread_create ();
8967 for ac_lib
in '' pthread
; do
8968 if test -z "$ac_lib"; then
8969 ac_res
="none required"
8972 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8974 if ac_fn_c_try_link
"$LINENO"; then :
8975 ac_cv_search_pthread_create
=$ac_res
8977 rm -f core conftest.err conftest.
$ac_objext \
8979 if ${ac_cv_search_pthread_create+:} false
; then :
8983 if ${ac_cv_search_pthread_create+:} false
; then :
8986 ac_cv_search_pthread_create
=no
8989 LIBS
=$ac_func_search_save_LIBS
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
8992 $as_echo "$ac_cv_search_pthread_create" >&6; }
8993 ac_res
=$ac_cv_search_pthread_create
8994 if test "$ac_res" != no
; then :
8995 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9002 if test "$ac_cv_search_dlopen" = no
; then
9003 missing_rust_dynlibs
="libdl"
9006 if test "$ac_cv_search_pthread_create" = no
; then
9007 missing_rust_dynlibs
="$missing_rust_dynlibs, libpthread"
9010 CRAB1_LIBS
="$CRAB1_LIBS"
9013 # If we are building PIC/PIE host executables, and we are building dependent
9014 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
9017 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
9018 host_libs_picflag
='--with-pic'
9022 # By default, C and C++ are the only stage 1 languages.
9023 stage1_languages
=,c
,
9025 # Target libraries that we bootstrap.
9026 bootstrap_target_libs
=,target-libgcc
,
9028 # Figure out what language subdirectories are present.
9029 # Look if the user specified --enable-languages="..."; if not, use
9030 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9032 # NB: embedded tabs in this IF block -- do not untabify
9033 if test -d ${srcdir}/gcc
; then
9034 if test x
"${enable_languages+set}" != xset
; then
9035 if test x
"${LANGUAGES+set}" = xset
; then
9036 enable_languages
="${LANGUAGES}"
9037 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
9039 enable_languages
=default
9042 if test x
"${enable_languages}" = x ||
9043 test x
"${enable_languages}" = xyes
;
9045 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
9049 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
9051 # 'f95' is the old name for the 'fortran' language. We issue a warning
9052 # and make the substitution.
9053 case ,${enable_languages}, in
9055 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
9056 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
9060 # If bootstrapping, C++ must be enabled.
9061 case ",$enable_languages,:$enable_bootstrap" in
9064 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
9065 enable_languages
="${enable_languages},c++"
9067 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
9072 # First scan to see if an enabled language requires some other language.
9073 # We assume that a given config-lang.in will list all the language
9074 # front ends it requires, even if some are required indirectly.
9075 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
9076 case ${lang_frag} in
9078 # The odd quoting in the next line works around
9079 # an apparent bug in bash 1.12 on linux.
9080 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
9082 # From the config-lang.in, get $language, $lang_requires, and
9083 # $lang_requires_boot_languages.
9086 lang_requires_boot_languages
=
9087 # set srcdir during sourcing lang_frag to the gcc dir.
9088 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
9089 # pollutes this shell
9090 saved_srcdir
=${srcdir}
9091 srcdir
=${srcdir}/gcc .
${lang_frag}
9092 srcdir
=${saved_srcdir}
9093 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
9094 case ,${enable_languages}, in
9099 echo " \`$other' language required by \`$language'; enabling" 1>&2
9100 enable_languages
="${enable_languages},${other}"
9104 for other
in ${lang_requires_boot_languages} ; do
9105 if test "$other" != "c"; then
9106 case ,${enable_stage1_languages}, in
9111 case ,${enable_languages}, in
9113 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
9114 enable_stage1_languages
="$enable_stage1_languages,${other}"
9125 new_enable_languages
=,c
,
9127 # If LTO is enabled, add the LTO front end.
9128 if test "$enable_lto" = "yes" ; then
9129 case ,${enable_languages}, in
9131 *) enable_languages
="${enable_languages},lto" ;;
9133 if test "${build_lto_plugin}" = "yes" ; then
9134 configdirs
="$configdirs lto-plugin"
9138 # If we're building an offloading compiler, add the LTO front end.
9139 if test x
"$enable_as_accelerator_for" != x
; then
9140 case ,${enable_languages}, in
9142 *) enable_languages
="${enable_languages},lto" ;;
9146 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9147 potential_languages
=,c
,
9149 enabled_target_libs
=
9150 disabled_target_libs
=
9152 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
9153 case ${lang_frag} in
9155 # The odd quoting in the next line works around
9156 # an apparent bug in bash 1.12 on linux.
9157 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
9159 # From the config-lang.in, get $language, $target_libs,
9160 # $lang_dirs, $boot_language, and $build_by_default
9166 build_by_default
=yes
9167 # set srcdir during sourcing. See above about save & restore
9168 saved_srcdir
=${srcdir}
9169 srcdir
=${srcdir}/gcc .
${lang_frag}
9170 srcdir
=${saved_srcdir}
9171 if test x
${language} = x
; then
9172 echo "${lang_frag} doesn't set \$language." 1>&2
9176 if test "$language" = "c++"; then
9181 # C is always enabled, so no need to add it again
9182 if test "$language" != "c"; then
9183 case ,${enable_languages}, in
9185 # Language was explicitly selected; include it
9189 # All languages are enabled
9193 # 'default' was selected, select it if it is a default language
9194 add_this_lang
=${build_by_default}
9199 # Disable languages that need other directories if these aren't available.
9200 for i
in $subdir_requires; do
9201 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9202 case ${add_this_lang} in
9204 # Specifically requested language; tell them.
9205 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9209 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9210 add_this_lang
=unsupported
9214 add_this_lang
=unsupported
9219 # Disable Ada if no preexisting GNAT is available.
9220 case ${add_this_lang}:${language}:${have_gnat} in
9222 # Specifically requested language; tell them.
9223 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
9227 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
9228 add_this_lang
=unsupported
9232 add_this_lang
=unsupported
9236 # Disable D if no preexisting GDC is available.
9237 case ${add_this_lang}:${language}:${have_gdc} in
9239 # Specifically requested language; tell them.
9240 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9244 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9245 add_this_lang
=unsupported
9249 add_this_lang
=unsupported
9253 # Disable Rust if we are missing some required C libraries for the Rust runtime.
9254 case ${add_this_lang}:${language}:${missing_rust_dynlibs} in
9256 # Nothing to do - we're not missing any C libraries
9259 as_fn_error $?
"some C libraries are required to build $language: $missing_rust_dynlibs" "$LINENO" 5
9260 add_this_lang
=unsupported
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&5
9264 $as_echo "$as_me: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&2;}
9265 add_this_lang
=unsupported
9269 add_this_lang
=unsupported
9273 # Disable jit if -enable-host-shared not specified
9274 # but not if building for Mingw. All code in Windows
9275 # is position independent code (PIC).
9279 case ${add_this_lang}:${language}:${host_shared} in
9281 # PR jit/64780: explicitly specify --enable-host-shared
9283 Enabling language \"jit\" requires --enable-host-shared.
9285 --enable-host-shared typically slows the rest of the compiler down by
9286 a few %, so you must explicitly enable it.
9288 If you want to build both the jit and the regular compiler, it is often
9289 best to do this via two separate configure/builds, in separate
9290 directories, to avoid imposing the performance cost of
9291 --enable-host-shared on the regular compiler." "$LINENO" 5
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9295 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9296 add_this_lang
=unsupported
9300 add_this_lang
=unsupported
9306 # Pre-conditions to consider whether cargo being supported.
9307 if test x
"$have_cargo" = xyes \
9308 && test x
"$build" != x
"$host"; then
9309 # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
9310 # "'cargo' should build for the host system" is resolved:
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
9312 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
9315 # Assume that cargo-produced object files are compatible with what
9316 # we're going to build here.
9319 # Disable Rust if cargo is unavailable.
9320 case ${add_this_lang}:${language}:${have_cargo} in
9322 # Specifically requested language; tell them.
9323 as_fn_error $?
"cargo is required to build $language" "$LINENO" 5
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
9327 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
9328 add_this_lang
=unsupported
9332 add_this_lang
=unsupported
9337 # Disable a language that is unsupported by the target.
9338 case "${add_this_lang}: $unsupported_languages " in
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9343 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9344 add_this_lang
=unsupported
9348 case $add_this_lang in
9350 # Remove language-dependent dirs.
9351 disabled_target_libs
="$disabled_target_libs $target_libs"
9352 noconfigdirs
="$noconfigdirs $lang_dirs"
9355 # Remove language-dependent dirs; still show language as supported.
9356 disabled_target_libs
="$disabled_target_libs $target_libs"
9357 noconfigdirs
="$noconfigdirs $lang_dirs"
9358 potential_languages
="${potential_languages}${language},"
9361 new_enable_languages
="${new_enable_languages}${language},"
9362 potential_languages
="${potential_languages}${language},"
9363 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
9364 enabled_target_libs
="$enabled_target_libs $target_libs"
9365 case "${boot_language}:,$enable_stage1_languages," in
9366 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
9367 # Add to (comma-separated) list of stage 1 languages.
9368 case ",$stage1_languages," in
9369 *,$language,* |
,yes, |
,all
,) ;;
9370 *) stage1_languages
="${stage1_languages}${language}," ;;
9372 # We need to bootstrap any supporting libraries.
9373 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9382 # Add target libraries which are only needed for disabled languages
9384 if test -n "$disabled_target_libs"; then
9385 for dir
in $disabled_target_libs; do
9386 case " $enabled_target_libs " in
9388 *) noconfigdirs
="$noconfigdirs $dir" ;;
9393 # Check whether --enable-stage1-languages was given.
9394 if test "${enable_stage1_languages+set}" = set; then :
9395 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9397 # Set it to something that will have no effect in the loop below
9398 enable_stage1_languages
=c
;;
9400 enable_stage1_languages
=`echo $new_enable_languages | \
9401 sed -e "s/^,//" -e "s/,$//" ` ;;
9403 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
9404 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9407 # Add "good" languages from enable_stage1_languages to stage1_languages,
9408 # while "bad" languages go in missing_languages. Leave no duplicates.
9409 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9410 case $potential_languages in
9412 case $stage1_languages in
9414 *) stage1_languages
="$stage1_languages$i," ;;
9417 case $missing_languages in
9419 *) missing_languages
="$missing_languages$i," ;;
9426 # Remove leading/trailing commas that were added for simplicity
9427 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9428 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9429 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9430 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9432 if test "x$missing_languages" != x
; then
9434 The following requested languages could not be built: ${missing_languages}
9435 Supported languages are: ${potential_languages}" "$LINENO" 5
9437 if test "x$new_enable_languages" != "x$enable_languages"; then
9438 echo The following languages will be built
: ${new_enable_languages}
9439 enable_languages
="$new_enable_languages"
9443 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9446 # Handle --disable-<component> generically.
9447 for dir
in $configdirs $build_configdirs $target_configdirs ; do
9448 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9449 varname
=`echo $dirname | sed -e s/+/_/g`
9450 if eval test x\
${enable_${varname}} "=" xno
; then
9451 noconfigdirs
="$noconfigdirs $dir"
9455 # Check for Boehm's garbage collector
9456 # Check whether --enable-objc-gc was given.
9457 if test "${enable_objc_gc+set}" = set; then :
9458 enableval
=$enable_objc_gc;
9462 # Check whether --with-target-bdw-gc was given.
9463 if test "${with_target_bdw_gc+set}" = set; then :
9464 withval
=$with_target_bdw_gc;
9468 # Check whether --with-target-bdw-gc-include was given.
9469 if test "${with_target_bdw_gc_include+set}" = set; then :
9470 withval
=$with_target_bdw_gc_include;
9474 # Check whether --with-target-bdw-gc-lib was given.
9475 if test "${with_target_bdw_gc_lib+set}" = set; then :
9476 withval
=$with_target_bdw_gc_lib;
9480 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9482 $as_echo_n "checking for bdw garbage collector... " >&6; }
9483 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9485 $as_echo "using bdw-gc in default locations" >&6; }
9487 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9488 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9489 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9490 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9493 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9498 # Disable libitm, libsanitizer, libvtv if we're not building C++
9499 case ,${enable_languages}, in
9501 # Disable libitm, libsanitizer if we're not building libstdc++
9502 case "${noconfigdirs}" in
9503 *target-libstdc
++-v3*)
9504 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9510 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9514 case ,${enable_languages}, in
9516 case " ${noconfigdirs} " in
9517 *\ target-libstdc
++-v3\
*)
9518 # Disable target libgrust if we're not building target libstdc++.
9519 noconfigdirs
="$noconfigdirs target-libgrust"
9525 # If gcc/ is not in the source tree then we'll not be building a
9526 # target compiler, assume in that case we don't want to build any
9527 # target libraries or tools.
9529 # This was added primarily for the benefit for binutils-gdb who reuse
9530 # this configure script, but don't always have target tools available.
9531 if test ! -d ${srcdir}/gcc
; then
9532 skipdirs
="${skipdirs} ${target_configdirs}"
9535 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9536 # $build_configdirs and $target_configdirs.
9537 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9540 for dir
in .
$skipdirs $noconfigdirs ; do
9541 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9542 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9543 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9544 if test -r $srcdir/$dirname/configure
; then
9545 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9548 notsupp
="$notsupp $dir"
9552 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9553 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9554 if test -r $srcdir/$dirname/configure
; then
9555 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9558 notsupp
="$notsupp $dir"
9562 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9563 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9564 if test -r $srcdir/$dirname/configure
; then
9565 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9568 notsupp
="$notsupp $dir"
9574 # Quietly strip out all directories which aren't configurable in this tree.
9575 # This relies on all configurable subdirectories being autoconfiscated, which
9577 build_configdirs_all
="$build_configdirs"
9579 for i
in ${build_configdirs_all} ; do
9580 j
=`echo $i | sed -e s/build-//g`
9581 if test -f ${srcdir}/$j/configure
; then
9582 build_configdirs
="${build_configdirs} $i"
9586 configdirs_all
="$configdirs"
9588 for i
in ${configdirs_all} ; do
9589 if test -f ${srcdir}/$i/configure
; then
9590 configdirs
="${configdirs} $i"
9594 target_configdirs_all
="$target_configdirs"
9596 for i
in ${target_configdirs_all} ; do
9597 j
=`echo $i | sed -e s/target-//g`
9598 if test -f ${srcdir}/$j/configure
; then
9599 target_configdirs
="${target_configdirs} $i"
9603 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9604 # so we have to add it after the preceding checks.
9605 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9607 case " $configdirs " in
9609 # If we can build libiberty, we can also build libiberty-linker-plugin.
9610 configdirs
="$configdirs libiberty-linker-plugin"
9611 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9612 --with-libiberty=../libiberty-linker-plugin";;
9614 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9618 # Sometimes we have special requirements for the host libiberty.
9619 extra_host_libiberty_configure_flags
=
9620 case " $configdirs " in
9621 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9622 # When these are to be built as shared libraries, the same applies to
9624 extra_host_libiberty_configure_flags
=--enable-shared
9629 # Sometimes we have special requirements for the host zlib.
9630 extra_host_zlib_configure_flags
=
9631 case " $configdirs " in
9633 # When bfd is to be built as a shared library, the same applies to
9635 if test "$enable_shared" = "yes"; then
9636 extra_host_zlib_configure_flags
=--enable-host-shared
9642 # Produce a warning message for the subdirs we can't configure.
9643 # This isn't especially interesting in the Cygnus tree, but in the individual
9644 # FSF releases, it's important to let people know when their machine isn't
9645 # supported by the one or two programs in a package.
9647 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9648 # If $appdirs is non-empty, at least one of those directories must still
9649 # be configured, or we error out. (E.g., if the gas release supports a
9650 # specified target in some subdirs but not the gas subdir, we shouldn't
9651 # pretend that all is well.)
9652 if test -n "$appdirs" ; then
9653 for dir
in $appdirs ; do
9654 if test -r $dir/Makefile.
in ; then
9655 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9659 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9665 if test -n "$appdirs" ; then
9666 echo "*** This configuration is not supported by this package." 1>&2
9670 # Okay, some application will build, or we don't care to check. Still
9671 # notify of subdirs not getting built.
9672 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9673 echo " ${notsupp}" 1>&2
9674 echo " (Any other directories should still work fine.)" 1>&2
9682 # To find our prefix, in gcc_cv_tool_prefix.
9684 # The user is always right.
9685 if test "${PATH_SEPARATOR+set}" != set; then
9686 echo "#! /bin/sh" >conf$$.sh
9687 echo "exit 0" >>conf$$.sh
9689 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9698 get_gcc_base_ver
="cat"
9700 # Check whether --with-gcc-major-version-only was given.
9701 if test "${with_gcc_major_version_only+set}" = set; then :
9702 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9703 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9713 if test "x$exec_prefix" = xNONE
; then
9714 if test "x$prefix" = xNONE
; then
9715 gcc_cv_tool_prefix
=$ac_default_prefix
9717 gcc_cv_tool_prefix
=$prefix
9720 gcc_cv_tool_prefix
=$exec_prefix
9723 # If there is no compiler in the tree, use the PATH only. In any
9724 # case, if there is no compiler in the tree nobody should use
9725 # AS_FOR_TARGET and LD_FOR_TARGET.
9726 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9727 if test x
$with_gcc_major_version_only = xyes
; then
9728 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9730 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9732 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9733 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9734 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9735 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9736 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9737 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9742 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9743 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9751 # Check whether --with-build-sysroot was given.
9752 if test "${with_build_sysroot+set}" = set; then :
9753 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9754 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9757 SYSROOT_CFLAGS_FOR_TARGET
=
9763 # Check whether --with-debug-prefix-map was given.
9764 if test "${with_debug_prefix_map+set}" = set; then :
9765 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9766 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9767 for debug_map
in $withval; do
9768 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9772 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9777 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9778 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9779 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9780 # We want to ensure that TARGET libraries (which we know are built with
9781 # gcc) are built with "-O2 -g", so include those options when setting
9782 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9783 if test "x$CFLAGS_FOR_TARGET" = x
; then
9784 if test "x${is_cross_compiler}" = xyes
; then
9785 CFLAGS_FOR_TARGET
="-g -O2"
9787 CFLAGS_FOR_TARGET
=$CFLAGS
9790 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9793 *" -g "* |
*" -g3 "*) ;;
9794 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9800 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9801 if test "x${is_cross_compiler}" = xyes
; then
9802 CXXFLAGS_FOR_TARGET
="-g -O2"
9804 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9805 case " $CXXFLAGS " in
9807 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9809 case " $CXXFLAGS " in
9810 *" -g "* |
*" -g3 "*) ;;
9811 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9819 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9820 # the named directory are copied to $(tooldir)/sys-include.
9821 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9822 if test x
${is_cross_compiler} = xno
; then
9823 echo 1>&2 '***' --with-headers is only supported when cross compiling
9826 if test x
"${with_headers}" != xyes
; then
9827 x
=${gcc_cv_tool_prefix}
9828 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9832 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9833 # the name directories are copied to $(tooldir)/lib. Multiple directories
9835 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9836 if test x
${is_cross_compiler} = xno
; then
9837 echo 1>&2 '***' --with-libs is only supported when cross compiling
9840 if test x
"${with_libs}" != xyes
; then
9841 # Copy the libraries in reverse order, so that files in the first named
9842 # library override files in subsequent libraries.
9843 x
=${gcc_cv_tool_prefix}
9844 for l
in ${with_libs}; do
9845 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9850 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9852 # This is done by determining whether or not the appropriate directory
9853 # is available, and by checking whether or not specific configurations
9854 # have requested that this magic not happen.
9856 # The command line options always override the explicit settings in
9857 # configure.ac, and the settings in configure.ac override this magic.
9859 # If the default for a toolchain is to use GNU as and ld, and you don't
9860 # want to do that, then you should use the --without-gnu-as and
9861 # --without-gnu-ld options for the configure script. Similarly, if
9862 # the default is to use the included zlib and you don't want to do that,
9863 # you should use the --with-system-zlib option for the configure script.
9865 if test x
${use_gnu_as} = x
&&
9866 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9868 extra_host_args
="$extra_host_args --with-gnu-as"
9871 if test x
${use_gnu_ld} = x
&&
9872 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9874 extra_host_args
="$extra_host_args --with-gnu-ld"
9877 if test x
${use_included_zlib} = x
&&
9878 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9881 with_system_zlib
=yes
9882 extra_host_args
="$extra_host_args --with-system-zlib"
9885 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9886 # can detect this case.
9888 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9890 extra_host_args
="$extra_host_args --with-newlib"
9893 # Handle ${copy_dirs}
9894 set fnord
${copy_dirs}
9896 while test $# != 0 ; do
9897 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9900 echo Copying
$1 to
$2
9902 # Use the install script to create the directory and all required
9903 # parent directories.
9904 if test -d $2 ; then
9908 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9911 # Copy the directory, assuming we have tar.
9912 # FIXME: Should we use B in the second tar? Not all systems support it.
9913 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9915 # It is the responsibility of the user to correctly adjust all
9916 # symlinks. If somebody can figure out how to handle them correctly
9917 # here, feel free to add the code.
9924 # Determine a target-dependent exec_prefix that the installed
9925 # gcc will search in. Keep this list sorted by triplet, with
9926 # the *-*-osname triplets last.
9929 i
[34567]86-pc-msdosdjgpp*)
9930 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9935 md_exec_prefix
=/usr
/ccs
/bin
9939 extra_arflags_for_target
=
9940 extra_nmflags_for_target
=
9941 extra_ranlibflags_for_target
=
9942 target_makefile_frag
=/dev
/null
9945 target_makefile_frag
="config/mt-spu"
9947 loongarch
*-*linux
* | loongarch
*-*gnu
*)
9948 target_makefile_frag
="config/mt-loongarch-gnu"
9951 target_makefile_frag
="config/mt-loongarch-elf"
9953 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9954 target_makefile_frag
="config/mt-sde"
9956 mipsisa
*-*-elfoabi*)
9957 target_makefile_frag
="config/mt-mips-elfoabi"
9959 mips
*-*-*linux
* | mips
*-*-gnu*)
9960 target_makefile_frag
="config/mt-mips-gnu"
9963 target_makefile_frag
="config/mt-nios2-elf"
9966 target_makefile_frag
="config/mt-android"
9968 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9969 target_makefile_frag
="config/mt-gnu"
9971 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9972 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9973 # commands to handle both 32-bit and 64-bit objects. These flags are
9974 # harmless if we're using GNU nm or ar.
9975 extra_arflags_for_target
=" -X32_64"
9976 extra_nmflags_for_target
=" -B -X32_64"
9980 alphaieee_frag
=/dev
/null
9983 # This just makes sure to use the -mieee option to build target libs.
9984 # This should probably be set individually by each library.
9985 alphaieee_frag
="config/mt-alphaieee"
9989 # If --enable-target-optspace always use -Os instead of -O2 to build
9990 # the target libraries, similarly if it is not specified, use -Os
9991 # on selected platforms.
9992 ospace_frag
=/dev
/null
9993 case "${enable_target_optspace}:${target}" in
9995 ospace_frag
="config/mt-ospace"
9998 ospace_frag
="config/mt-d30v"
10000 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
10001 ospace_frag
="config/mt-ospace"
10006 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
10010 # Some systems (e.g., one of the i386-aix systems the gas testers are
10011 # using) don't handle "\$" correctly, so don't use it here.
10012 tooldir
='${exec_prefix}'/${target_noncanonical}
10013 build_tooldir
=${tooldir}
10015 # Create a .gdbinit file which runs the one in srcdir
10016 # and tells GDB to look there for source files.
10018 if test -r ${srcdir}/.gdbinit
; then
10021 *) cat > .
/.gdbinit
<<EOF
10025 source ${srcdir}/.gdbinit
10031 # Make sure that the compiler is able to generate an executable. If it
10032 # can't, we are probably in trouble. We don't care whether we can run the
10033 # executable--we might be using a cross compiler--we only care whether it
10034 # can be created. At this point the main configure script has set CC.
10036 echo "int main () { return 0; }" > conftest.c
10037 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10038 if test $?
= 0 ; then
10039 if test -s conftest ||
test -s conftest.exe
; then
10045 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
10046 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
10053 # Decide which environment variable is used to find dynamic libraries.
10055 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
10056 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
10057 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
10058 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
10061 # On systems where the dynamic library environment variable is PATH,
10062 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
10063 # built executables to PATH.
10064 if test "$RPATH_ENVVAR" = PATH
; then
10065 GCC_SHLIB_SUBDIR
=/shlib
10070 # Adjust the toplevel makefile according to whether bootstrap was selected.
10071 case $enable_bootstrap in
10073 bootstrap_suffix
=bootstrap
10074 BUILD_CONFIG
=bootstrap-debug
10077 bootstrap_suffix
=no-bootstrap
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
10083 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
10086 # Check whether --with-build-config was given.
10087 if test "${with_build_config+set}" = set; then :
10088 withval
=$with_build_config; case $with_build_config in
10089 yes) with_build_config
= ;;
10090 no
) with_build_config
= BUILD_CONFIG
= ;;
10095 if test "x${with_build_config}" != x
; then
10096 BUILD_CONFIG
=$with_build_config
10098 case $BUILD_CONFIG in
10100 if echo "int f (void) { return 0; }" > conftest.c
&&
10101 ${CC} -c conftest.c
&&
10102 mv conftest.o conftest.o.g0
&&
10103 ${CC} -c -g conftest.c
&&
10104 mv conftest.o conftest.o.g
&&
10105 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
10110 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
10115 $as_echo "$BUILD_CONFIG" >&6; }
10118 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
10120 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
10121 # Check whether --enable-vtable-verify was given.
10122 if test "${enable_vtable_verify+set}" = set; then :
10123 enableval
=$enable_vtable_verify; case "$enableval" in
10124 yes) enable_vtable_verify
=yes ;;
10125 no
) enable_vtable_verify
=no
;;
10126 *) enable_vtable_verify
=no
;;
10129 enable_vtable_verify
=no
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
10133 $as_echo "$enable_vtable_verify" >&6; }
10135 # Record target_configdirs and the configure arguments for target and
10136 # build configuration in Makefile.
10137 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
10138 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
10139 bootstrap_fixincludes
=no
10141 # If we are building libgomp, bootstrap it.
10142 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
10143 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
10146 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
10147 # or bootstrap-ubsan, bootstrap it.
10148 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
10149 case "$BUILD_CONFIG" in
10150 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
10151 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
10152 bootstrap_fixincludes
=yes
10157 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
10158 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
10159 test "$enable_vtable_verify" != no
; then
10160 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
10163 # If we are building libatomic and the list of enabled languages includes the
10164 # D frontend, bootstrap it.
10165 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
10166 case ,${enable_languages}, in
10168 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
10173 # Determine whether gdb needs tk/tcl or not.
10174 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
10175 # and in that case we want gdb to be built without tk. Ugh!
10176 # In fact I believe gdb is the *only* package directly dependent on tk,
10177 # so we should be able to put the 'maybe's in unconditionally and
10178 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
10179 # 100% sure that that's safe though.
10181 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
10182 case "$enable_gdbtk" in
10186 GDB_TK
="${gdb_tk}" ;;
10188 # Only add the dependency on gdbtk when GDBtk is part of the gdb
10189 # distro. Eventually someone will fix this and move Insight, nee
10190 # gdbtk to a separate directory.
10191 if test -d ${srcdir}/gdb
/gdbtk
; then
10198 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
10199 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
10201 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
10202 # else does, only include them if one of these is built. The Makefile
10203 # provides the ordering, so it's enough here to add to the list.
10204 case " ${configdirs} " in
10206 configdirs
="${configdirs} gnulib gdbsupport"
10209 configdirs
="${configdirs} gnulib gdbsupport"
10212 configdirs
="${configdirs} gnulib"
10216 # Strip out unwanted targets.
10218 # While at that, we remove Makefiles if we were started for recursive
10219 # configuration, so that the top-level Makefile reconfigures them,
10220 # like we used to do when configure itself was recursive.
10222 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
10223 # but now we're fixing up the Makefile ourselves with the additional
10224 # commands passed to AC_CONFIG_FILES. Use separate variables
10225 # extrasub-{build,host,target} not because there is any reason to split
10226 # the substitutions up that way, but only to remain below the limit of
10227 # 99 commands in a script, for HP-UX sed.
10229 # Do not nest @if/@endif or @unless/@endunless pairs, because
10230 # configure will not warn you at all.
10232 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
10233 yes:yes:*\ gold\
*:*,c
++,*) ;;
10234 yes:yes:*\ gold\
*:*)
10235 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
10240 for module
in ${build_configdirs} ; do
10241 if test -z "${no_recursion}" \
10242 && test -f ${build_subdir}/${module}/Makefile
; then
10243 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
10244 rm -f ${build_subdir}/${module}/Makefile
10246 extrasub_build
="$extrasub_build
10247 /^@if build-$module\$/d
10248 /^@endif build-$module\$/d
10249 /^@unless build-$module\$/,/^@endunless build-$module\$/d
10250 /^@if build-$module-$bootstrap_suffix\$/d
10251 /^@endif build-$module-$bootstrap_suffix\$/d
10252 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
10255 for module
in ${configdirs} ; do
10256 if test -z "${no_recursion}"; then
10257 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
10258 if test -f ${file}; then
10259 echo 1>&2 "*** removing ${file} to force reconfigure"
10264 case ${module},${bootstrap_fixincludes} in
10265 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
10266 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
10268 extrasub_host
="$extrasub_host
10270 /^@endif $module\$/d
10271 /^@unless $module\$/,/^@endunless $module\$/d
10272 /^@if $module-$host_bootstrap_suffix\$/d
10273 /^@endif $module-$host_bootstrap_suffix\$/d
10274 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
10277 for module
in ${target_configdirs} ; do
10278 if test -z "${no_recursion}" \
10279 && test -f ${target_subdir}/${module}/Makefile
; then
10280 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
10281 rm -f ${target_subdir}/${module}/Makefile
10284 # We only bootstrap target libraries listed in bootstrap_target_libs.
10285 case $bootstrap_target_libs in
10286 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
10287 *) target_bootstrap_suffix
=no-bootstrap
;;
10290 extrasub_target
="$extrasub_target
10291 /^@if target-$module\$/d
10292 /^@endif target-$module\$/d
10293 /^@unless target-$module\$/,/^@endunless target-$module\$/d
10294 /^@if target-$module-$target_bootstrap_suffix\$/d
10295 /^@endif target-$module-$target_bootstrap_suffix\$/d
10296 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
10299 # Do the final fixup along with target modules.
10300 extrasub_target
="$extrasub_target
10301 /^@if /,/^@endif /d
10305 if test "$enable_pgo_build" != "no"; then
10306 extrasub_build
="$extrasub_build
10307 /^@if pgo-build\$/d
10308 /^@endif pgo-build\$/d"
10311 # Create the serialization dependencies. This uses a temporary file.
10313 # Check whether --enable-serial-configure was given.
10314 if test "${enable_serial_configure+set}" = set; then :
10315 enableval
=$enable_serial_configure;
10319 case ${enable_serial_configure} in
10321 enable_serial_build_configure
=yes
10322 enable_serial_host_configure
=yes
10323 enable_serial_target_configure
=yes
10327 # These force 'configure's to be done one at a time, to avoid problems
10328 # with contention over a shared config.cache.
10330 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes
; then
10331 echo '# serdep.tmp' > serdep.tmp
10334 test "x${enable_serial_build_configure}" = xyes
&&
10335 for item
in ${build_configdirs} ; do
10338 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
10343 test "x${enable_serial_host_configure}" = xyes
&&
10344 for item
in ${configdirs} ; do
10347 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
10352 test "x${enable_serial_target_configure}" = xyes
&&
10353 for item
in ${target_configdirs} ; do
10356 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
10360 serialization_dependencies
=serdep.tmp
10363 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10364 # target, nonopt, and variable assignments. These are the ones we
10365 # might not want to pass down to subconfigures. The exception being
10366 # --cache-file=/dev/null, which is used to turn off the use of cache
10367 # files altogether, and which should be passed on to subconfigures.
10368 # Also strip program-prefix, program-suffix, and program-transform-name,
10369 # so that we can pass down a consistent program-transform-name.
10375 eval "set -- $ac_configure_args"
10378 if test X
"$skip_next" = X
"yes"; then
10382 if test X
"$keep_next" = X
"yes"; then
10385 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10387 hbaseargs
="$hbaseargs '$ac_arg'"
10388 bbaseargs
="$bbaseargs '$ac_arg'"
10389 tbaseargs
="$tbaseargs '$ac_arg'"
10394 # Handle separated arguments. Based on the logic generated by
10397 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
10398 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
10399 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
10400 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
10415 --with-* |
--without-*)
10416 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10420 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
10423 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
10426 lib
=`echo "$libopt" | sed 's,[-_]prefix$,,'`
10429 lib
=`echo "$libopt" | sed 's,[-_]type$,,'`
10438 mpc | mpfr | gmp | isl
)
10439 # If we're processing --with-$lib, --with-$lib-include or
10440 # --with-$lib-lib, for one of the libs above, and target is
10441 # different from host, don't pass the current argument to any
10442 # target library's configure.
10443 if test x
$is_cross_compiler = xyes
; then
10447 libintl | libiconv
)
10448 # We don't want libintl (and co.) in anything but the host arguments.
10457 --cache-file=/dev
/null | \
10458 -cache-file=/dev
/null
)
10459 # Handled here to avoid the test to skip args below.
10460 hbaseargs
="$hbaseargs '$ac_arg'"
10461 bbaseargs
="$bbaseargs '$ac_arg'"
10462 tbaseargs
="$tbaseargs '$ac_arg'"
10463 # Assert: $separate_arg should always be no.
10464 keep_next
=$separate_arg
10480 -program-prefix* | \
10481 -program-suffix* | \
10482 -program-transform-name* )
10483 skip_next
=$separate_arg
10487 # An option. Add it.
10490 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10492 hbaseargs
="$hbaseargs '$ac_arg'"
10493 if test X
"$skip_barg" = Xno
; then
10494 bbaseargs
="$bbaseargs '$ac_arg'"
10496 if test X
"$skip_targ" = Xno
; then
10497 tbaseargs
="$tbaseargs '$ac_arg'"
10499 keep_next
=$separate_arg
10502 # Either a variable assignment, or a nonopt (triplet). Don't
10503 # pass it down; let the Makefile handle this.
10508 # Remove the initial space we just introduced and, as these will be
10509 # expanded by make, quote '$'.
10510 hbaseargs
=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10511 bbaseargs
=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10513 # Add in --program-transform-name, after --program-prefix and
10514 # --program-suffix have been applied to it. Autoconf has already
10515 # doubled dollar signs and backslashes in program_transform_name; we want
10516 # the backslashes un-doubled, and then the entire thing wrapped in single
10517 # quotes, because this will be expanded first by make and then by the shell.
10518 # Also, because we want to override the logic in subdir configure scripts to
10519 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10520 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10521 ${program_transform_name}
10523 gcc_transform_name
=`cat conftestsed.out`
10524 rm -f conftestsed.out
10525 hbaseargs
="$hbaseargs --program-transform-name='${gcc_transform_name}'"
10526 bbaseargs
="$bbaseargs --program-transform-name='${gcc_transform_name}'"
10527 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10528 if test "$silent" = yes; then
10529 bbaseargs
="$bbaseargs --silent"
10530 hbaseargs
="$hbaseargs --silent"
10531 tbaseargs
="$tbaseargs --silent"
10534 bbaseargs
="$bbaseargs --disable-option-checking"
10535 hbaseargs
="$hbaseargs --disable-option-checking"
10536 tbaseargs
="$tbaseargs --disable-option-checking"
10538 if test "$enable_year2038" = no
; then
10539 baseargs
="$baseargs --disable-year2038"
10540 tbaseargs
="$tbaseargs --disable-year2038"
10543 # Record and document user additions to sub configure arguments.
10548 # For the build-side libraries, we just need to pretend we're native,
10549 # and not use the same cache file. Multilibs are neither needed nor
10550 # desired. We can't even use the same cache file for all build-side
10551 # libraries, as they're compiled differently; some with C, some with
10552 # C++ or with different feature-enabling options.
10553 build_configargs
="$build_configargs --cache-file=./config.cache ${bbaseargs}"
10555 # For host modules, accept cache file option, or specification as blank.
10556 case "${cache_file}" in
10558 cache_file_option
="" ;;
10559 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10560 cache_file_option
="--cache-file=${cache_file}" ;;
10562 cache_file_option
="--cache-file=../${cache_file}" ;;
10565 # Host dirs don't like to share a cache file either, horribly enough.
10566 # This seems to be due to autoconf 2.5x stupidity.
10567 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
10569 target_configargs
="$target_configargs ${tbaseargs}"
10571 # Passing a --with-cross-host argument lets the target libraries know
10572 # whether they are being built with a cross-compiler or being built
10573 # native. However, it would be better to use other mechanisms to make the
10574 # sorts of decisions they want to make on this basis. Please consider
10575 # this option to be deprecated. FIXME.
10576 if test x
${is_cross_compiler} = xyes
; then
10577 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10580 # Special user-friendly check for native x86_64-linux build, if
10581 # multilib is not explicitly enabled.
10582 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10583 x86_64-
*linux
*:yes:$build:$build:)
10584 # Make sure we have a development environment that handles 32-bit
10586 echo "int main () { return 0; }" > conftest.c
10587 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10588 if test $?
= 0 ; then
10589 if test -s conftest ||
test -s conftest.exe
; then
10594 if test x
${dev64} != xyes
; then
10595 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
10600 # Default to --enable-multilib.
10601 if test x
${enable_multilib} = x
; then
10602 target_configargs
="--enable-multilib ${target_configargs}"
10605 # Pass --with-newlib if appropriate. Note that target_configdirs has
10606 # changed from the earlier setting of with_newlib.
10607 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10608 target_configargs
="--with-newlib ${target_configargs}"
10611 # Different target subdirs use different values of certain variables
10612 # (notably CXX). Worse, multilibs use *lots* of different values.
10613 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10614 # it doesn't automatically accept command-line overrides of them.
10615 # This means it's not safe for target subdirs to share a cache file,
10616 # which is disgusting, but there you have it. Hopefully this can be
10617 # fixed in future. It's still worthwhile to use a cache file for each
10618 # directory. I think.
10620 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10621 # We need to pass --target, as newer autoconf's requires consistency
10622 # for target_alias and gcc doesn't manage it consistently.
10623 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10626 case " $target_configdirs " in
10628 case " $target_configargs " in
10629 *" --with-newlib "*)
10632 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10636 # If we're not building GCC, don't discard standard headers.
10637 if test -d ${srcdir}/gcc
; then
10638 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10640 if test "${build}" != "${host}"; then
10641 # On Canadian crosses, CC_FOR_TARGET will have already been set
10642 # by `configure', so we won't have an opportunity to add -Bgcc/
10643 # to it. This is right: we don't want to search that directory
10644 # for binaries, but we want the header files in there, so add
10646 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10648 # Someone might think of using the pre-installed headers on
10649 # Canadian crosses, in case the installed compiler is not fully
10650 # compatible with the compiler being built. In this case, it
10651 # would be better to flag an error than risking having
10652 # incompatible object files being constructed. We can't
10653 # guarantee that an error will be flagged, but let's hope the
10654 # compiler will do it, when presented with incompatible header
10659 case "${target}-${is_cross_compiler}" in
10660 i
[3456789]86-*-linux*-no)
10661 # Here host == target, so we don't need to build gcc,
10662 # so we don't want to discard standard headers.
10663 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10666 # If we're building newlib, use its generic headers last, but search
10667 # for any libc-related directories first (so make it the last -B
10669 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10671 # If we're building libgloss, find the startup file, simulator library
10672 # and linker script.
10673 case " $target_configdirs " in
10675 # Look for startup file, simulator library and maybe linker script.
10676 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10677 # Look for libnosys.a in case the target needs it.
10678 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10679 # Most targets have the linker script in the source directory.
10680 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10691 x86_64-
*mingw
* |
*-w64-mingw*)
10692 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10693 # however, use a symlink named 'mingw' in ${prefix} .
10694 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10697 # MinGW can't be handled as Cygwin above since it does not use newlib.
10698 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'
10702 # Allow the user to override the flags for
10703 # our build compiler if desired.
10704 if test x
"${build}" = x
"${host}" ; then
10705 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10706 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10707 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10708 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10711 # On Canadian crosses, we'll be searching the right directories for
10712 # the previously-installed cross compiler, so don't bother to add
10713 # flags for directories within the install tree of the compiler
10714 # being built; programs in there won't even run.
10715 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10716 # Search for pre-installed headers if nothing else fits.
10717 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10720 if test "x
${use_gnu_ld}" = x &&
10721 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10722 # Arrange for us to find uninstalled linker scripts.
10723 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10726 # Search for other target-specific linker scripts and such.
10727 case "${target}" in
10729 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10731 # The VxWorks support for shared libraries is getting in
10732 # incrementally. Make sure it doesn't get activated implicitly:
10734 if test "${enable_shared-unset}" = unset ; then
10736 # So the build of libraries knows ...
10737 target_configargs="${target_configargs} --disable-shared"
10739 host_configargs="${host_configargs} --disable-shared"
10744 # Makefile fragments.
10745 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10747 eval fragval=\$$frag
10748 if test $fragval != /dev/null; then
10749 eval $frag=${srcdir}/$fragval
10757 # Miscellanea: directories, flags, etc.
10766 # Build module lists & subconfigure args.
10770 # Host module lists & subconfigure args.
10775 # Target module lists & subconfigure args.
10800 # Generate default definitions for YACC, M4, LEX and other programs that run
10801 # on the build machine. These are used if the Makefile can't locate these
10802 # programs in objdir.
10803 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10805 for ac_prog in 'bison -y' byacc yacc
10807 # Extract the first word of "$ac_prog", so it can be a program name with args.
10808 set dummy $ac_prog; ac_word=$2
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10810 $as_echo_n "checking
for $ac_word...
" >&6; }
10811 if ${ac_cv_prog_YACC+:} false; then :
10812 $as_echo_n "(cached
) " >&6
10814 if test -n "$YACC"; then
10815 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10818 for as_dir in $PATH
10821 test -z "$as_dir" && as_dir=.
10822 for ac_exec_ext in '' $ac_executable_extensions; do
10823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10824 ac_cv_prog_YACC="$ac_prog"
10825 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10834 YACC=$ac_cv_prog_YACC
10835 if test -n "$YACC"; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10837 $as_echo "$YACC" >&6; }
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10840 $as_echo "no
" >&6; }
10844 test -n "$YACC" && break
10846 test -n "$YACC" || YACC="$MISSING bison
-y"
10848 case " $build_configdirs " in
10849 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10852 for ac_prog in bison
10854 # Extract the first word of "$ac_prog", so it can be a program name with args.
10855 set dummy $ac_prog; ac_word=$2
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10857 $as_echo_n "checking
for $ac_word...
" >&6; }
10858 if ${ac_cv_prog_BISON+:} false; then :
10859 $as_echo_n "(cached
) " >&6
10861 if test -n "$BISON"; then
10862 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10865 for as_dir in $PATH
10868 test -z "$as_dir" && as_dir=.
10869 for ac_exec_ext in '' $ac_executable_extensions; do
10870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10871 ac_cv_prog_BISON="$ac_prog"
10872 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10881 BISON=$ac_cv_prog_BISON
10882 if test -n "$BISON"; then
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10884 $as_echo "$BISON" >&6; }
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10887 $as_echo "no
" >&6; }
10891 test -n "$BISON" && break
10893 test -n "$BISON" || BISON="$MISSING bison
"
10895 case " $build_configdirs " in
10896 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10899 for ac_prog in gm4 gnum4 m4
10901 # Extract the first word of "$ac_prog", so it can be a program name with args.
10902 set dummy $ac_prog; ac_word=$2
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10904 $as_echo_n "checking
for $ac_word...
" >&6; }
10905 if ${ac_cv_prog_M4+:} false; then :
10906 $as_echo_n "(cached
) " >&6
10908 if test -n "$M4"; then
10909 ac_cv_prog_M4="$M4" # Let the user override the test.
10911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912 for as_dir in $PATH
10915 test -z "$as_dir" && as_dir=.
10916 for ac_exec_ext in '' $ac_executable_extensions; do
10917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10918 ac_cv_prog_M4="$ac_prog"
10919 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10929 if test -n "$M4"; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10931 $as_echo "$M4" >&6; }
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10934 $as_echo "no
" >&6; }
10938 test -n "$M4" && break
10940 test -n "$M4" || M4="$MISSING m4"
10942 case " $build_configdirs " in
10943 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10946 for ac_prog in flex lex
10948 # Extract the first word of "$ac_prog", so it can be a program name with args.
10949 set dummy $ac_prog; ac_word=$2
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10951 $as_echo_n "checking
for $ac_word...
" >&6; }
10952 if ${ac_cv_prog_LEX+:} false; then :
10953 $as_echo_n "(cached
) " >&6
10955 if test -n "$LEX"; then
10956 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10959 for as_dir in $PATH
10962 test -z "$as_dir" && as_dir=.
10963 for ac_exec_ext in '' $ac_executable_extensions; do
10964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10965 ac_cv_prog_LEX="$ac_prog"
10966 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10975 LEX=$ac_cv_prog_LEX
10976 if test -n "$LEX"; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10978 $as_echo "$LEX" >&6; }
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10981 $as_echo "no
" >&6; }
10985 test -n "$LEX" && break
10987 test -n "$LEX" || LEX="$MISSING flex
"
10989 case " $build_configdirs " in
10990 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10991 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10994 for ac_prog in flex
10996 # Extract the first word of "$ac_prog", so it can be a program name with args.
10997 set dummy $ac_prog; ac_word=$2
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10999 $as_echo_n "checking
for $ac_word...
" >&6; }
11000 if ${ac_cv_prog_FLEX+:} false; then :
11001 $as_echo_n "(cached
) " >&6
11003 if test -n "$FLEX"; then
11004 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
11006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11007 for as_dir in $PATH
11010 test -z "$as_dir" && as_dir=.
11011 for ac_exec_ext in '' $ac_executable_extensions; do
11012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11013 ac_cv_prog_FLEX="$ac_prog"
11014 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11023 FLEX=$ac_cv_prog_FLEX
11024 if test -n "$FLEX"; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
11026 $as_echo "$FLEX" >&6; }
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11029 $as_echo "no
" >&6; }
11033 test -n "$FLEX" && break
11035 test -n "$FLEX" || FLEX="$MISSING flex
"
11037 case " $build_configdirs " in
11038 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11041 for ac_prog in makeinfo
11043 # Extract the first word of "$ac_prog", so it can be a program name with args.
11044 set dummy $ac_prog; ac_word=$2
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11046 $as_echo_n "checking
for $ac_word...
" >&6; }
11047 if ${ac_cv_prog_MAKEINFO+:} false; then :
11048 $as_echo_n "(cached
) " >&6
11050 if test -n "$MAKEINFO"; then
11051 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054 for as_dir in $PATH
11057 test -z "$as_dir" && as_dir=.
11058 for ac_exec_ext in '' $ac_executable_extensions; do
11059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11060 ac_cv_prog_MAKEINFO="$ac_prog"
11061 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11070 MAKEINFO=$ac_cv_prog_MAKEINFO
11071 if test -n "$MAKEINFO"; then
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
11073 $as_echo "$MAKEINFO" >&6; }
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11076 $as_echo "no
" >&6; }
11080 test -n "$MAKEINFO" && break
11082 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
11084 case " $build_configdirs " in
11085 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
11088 # For an installed makeinfo, we require it to be from texinfo 4.7 or
11089 # higher, else we use the "missing
" dummy.
11090 if ${MAKEINFO} --version \
11091 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
11094 MAKEINFO="$MISSING makeinfo
"
11100 # FIXME: expect and dejagnu may become build tools?
11102 for ac_prog in expect
11104 # Extract the first word of "$ac_prog", so it can be a program name with args.
11105 set dummy $ac_prog; ac_word=$2
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11107 $as_echo_n "checking
for $ac_word...
" >&6; }
11108 if ${ac_cv_prog_EXPECT+:} false; then :
11109 $as_echo_n "(cached
) " >&6
11111 if test -n "$EXPECT"; then
11112 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
11114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11115 for as_dir in $PATH
11118 test -z "$as_dir" && as_dir=.
11119 for ac_exec_ext in '' $ac_executable_extensions; do
11120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11121 ac_cv_prog_EXPECT="$ac_prog"
11122 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11131 EXPECT=$ac_cv_prog_EXPECT
11132 if test -n "$EXPECT"; then
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
11134 $as_echo "$EXPECT" >&6; }
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11137 $as_echo "no
" >&6; }
11141 test -n "$EXPECT" && break
11143 test -n "$EXPECT" || EXPECT="expect
"
11145 case " $configdirs " in
11147 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
11151 for ac_prog in runtest
11153 # Extract the first word of "$ac_prog", so it can be a program name with args.
11154 set dummy $ac_prog; ac_word=$2
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11156 $as_echo_n "checking
for $ac_word...
" >&6; }
11157 if ${ac_cv_prog_RUNTEST+:} false; then :
11158 $as_echo_n "(cached
) " >&6
11160 if test -n "$RUNTEST"; then
11161 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11170 ac_cv_prog_RUNTEST="$ac_prog"
11171 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11180 RUNTEST=$ac_cv_prog_RUNTEST
11181 if test -n "$RUNTEST"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
11183 $as_echo "$RUNTEST" >&6; }
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11186 $as_echo "no
" >&6; }
11190 test -n "$RUNTEST" && break
11192 test -n "$RUNTEST" || RUNTEST="runtest
"
11194 case " $configdirs " in
11196 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
11203 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
11204 ncn_target_tool_prefix=
11205 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
11209 if test -n "$AR"; then
11211 elif test -n "$ac_cv_prog_AR"; then
11215 if test -n "$ac_cv_prog_AR"; then
11216 for ncn_progname in ar; do
11217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11218 set dummy ${ncn_progname}; ac_word=$2
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11220 $as_echo_n "checking
for $ac_word...
" >&6; }
11221 if ${ac_cv_prog_AR+:} false; then :
11222 $as_echo_n "(cached
) " >&6
11224 if test -n "$AR"; then
11225 ac_cv_prog_AR="$AR" # Let the user override the test.
11227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228 for as_dir in $PATH
11231 test -z "$as_dir" && as_dir=.
11232 for ac_exec_ext in '' $ac_executable_extensions; do
11233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11234 ac_cv_prog_AR="${ncn_progname}"
11235 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11245 if test -n "$AR"; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
11247 $as_echo "$AR" >&6; }
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11250 $as_echo "no
" >&6; }
11257 for ncn_progname in ar; do
11258 if test -n "$ncn_tool_prefix"; then
11259 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11260 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11262 $as_echo_n "checking
for $ac_word...
" >&6; }
11263 if ${ac_cv_prog_AR+:} false; then :
11264 $as_echo_n "(cached
) " >&6
11266 if test -n "$AR"; then
11267 ac_cv_prog_AR="$AR" # Let the user override the test.
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
11277 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11287 if test -n "$AR"; then
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
11289 $as_echo "$AR" >&6; }
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11292 $as_echo "no
" >&6; }
11297 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
11298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11299 set dummy ${ncn_progname}; ac_word=$2
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11301 $as_echo_n "checking
for $ac_word...
" >&6; }
11302 if ${ac_cv_prog_AR+:} false; then :
11303 $as_echo_n "(cached
) " >&6
11305 if test -n "$AR"; then
11306 ac_cv_prog_AR="$AR" # Let the user override the test.
11308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309 for as_dir in $PATH
11312 test -z "$as_dir" && as_dir=.
11313 for ac_exec_ext in '' $ac_executable_extensions; do
11314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11315 ac_cv_prog_AR="${ncn_progname}"
11316 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11326 if test -n "$AR"; then
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
11328 $as_echo "$AR" >&6; }
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11331 $as_echo "no
" >&6; }
11336 test -n "$ac_cv_prog_AR" && break
11339 if test -z "$ac_cv_prog_AR" ; then
11341 if test $build = $host ; then
11344 AR="${ncn_tool_prefix}$2"
11350 if test -n "$AS"; then
11352 elif test -n "$ac_cv_prog_AS"; then
11356 if test -n "$ac_cv_prog_AS"; then
11357 for ncn_progname in as; do
11358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11359 set dummy ${ncn_progname}; ac_word=$2
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11361 $as_echo_n "checking
for $ac_word...
" >&6; }
11362 if ${ac_cv_prog_AS+:} false; then :
11363 $as_echo_n "(cached
) " >&6
11365 if test -n "$AS"; then
11366 ac_cv_prog_AS="$AS" # Let the user override the test.
11368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369 for as_dir in $PATH
11372 test -z "$as_dir" && as_dir=.
11373 for ac_exec_ext in '' $ac_executable_extensions; do
11374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11375 ac_cv_prog_AS="${ncn_progname}"
11376 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11386 if test -n "$AS"; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11388 $as_echo "$AS" >&6; }
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11391 $as_echo "no
" >&6; }
11398 for ncn_progname in as; do
11399 if test -n "$ncn_tool_prefix"; then
11400 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11401 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11403 $as_echo_n "checking
for $ac_word...
" >&6; }
11404 if ${ac_cv_prog_AS+:} false; then :
11405 $as_echo_n "(cached
) " >&6
11407 if test -n "$AS"; then
11408 ac_cv_prog_AS="$AS" # Let the user override the test.
11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411 for as_dir in $PATH
11414 test -z "$as_dir" && as_dir=.
11415 for ac_exec_ext in '' $ac_executable_extensions; do
11416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11417 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11418 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11428 if test -n "$AS"; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11430 $as_echo "$AS" >&6; }
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11433 $as_echo "no
" >&6; }
11438 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11440 set dummy ${ncn_progname}; ac_word=$2
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11442 $as_echo_n "checking
for $ac_word...
" >&6; }
11443 if ${ac_cv_prog_AS+:} false; then :
11444 $as_echo_n "(cached
) " >&6
11446 if test -n "$AS"; then
11447 ac_cv_prog_AS="$AS" # Let the user override the test.
11449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450 for as_dir in $PATH
11453 test -z "$as_dir" && as_dir=.
11454 for ac_exec_ext in '' $ac_executable_extensions; do
11455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11456 ac_cv_prog_AS="${ncn_progname}"
11457 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11467 if test -n "$AS"; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11469 $as_echo "$AS" >&6; }
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11472 $as_echo "no
" >&6; }
11477 test -n "$ac_cv_prog_AS" && break
11480 if test -z "$ac_cv_prog_AS" ; then
11482 if test $build = $host ; then
11485 AS="${ncn_tool_prefix}$2"
11491 if test -n "$DLLTOOL"; then
11492 ac_cv_prog_DLLTOOL=$DLLTOOL
11493 elif test -n "$ac_cv_prog_DLLTOOL"; then
11494 DLLTOOL=$ac_cv_prog_DLLTOOL
11497 if test -n "$ac_cv_prog_DLLTOOL"; then
11498 for ncn_progname in dlltool; do
11499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11500 set dummy ${ncn_progname}; ac_word=$2
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11502 $as_echo_n "checking
for $ac_word...
" >&6; }
11503 if ${ac_cv_prog_DLLTOOL+:} false; then :
11504 $as_echo_n "(cached
) " >&6
11506 if test -n "$DLLTOOL"; then
11507 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11510 for as_dir in $PATH
11513 test -z "$as_dir" && as_dir=.
11514 for ac_exec_ext in '' $ac_executable_extensions; do
11515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11516 ac_cv_prog_DLLTOOL="${ncn_progname}"
11517 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11526 DLLTOOL=$ac_cv_prog_DLLTOOL
11527 if test -n "$DLLTOOL"; then
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11529 $as_echo "$DLLTOOL" >&6; }
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11532 $as_echo "no
" >&6; }
11539 for ncn_progname in dlltool; do
11540 if test -n "$ncn_tool_prefix"; then
11541 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11542 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11544 $as_echo_n "checking
for $ac_word...
" >&6; }
11545 if ${ac_cv_prog_DLLTOOL+:} false; then :
11546 $as_echo_n "(cached
) " >&6
11548 if test -n "$DLLTOOL"; then
11549 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552 for as_dir in $PATH
11555 test -z "$as_dir" && as_dir=.
11556 for ac_exec_ext in '' $ac_executable_extensions; do
11557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11558 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11559 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11568 DLLTOOL=$ac_cv_prog_DLLTOOL
11569 if test -n "$DLLTOOL"; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11571 $as_echo "$DLLTOOL" >&6; }
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11574 $as_echo "no
" >&6; }
11579 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11581 set dummy ${ncn_progname}; ac_word=$2
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11583 $as_echo_n "checking
for $ac_word...
" >&6; }
11584 if ${ac_cv_prog_DLLTOOL+:} false; then :
11585 $as_echo_n "(cached
) " >&6
11587 if test -n "$DLLTOOL"; then
11588 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591 for as_dir in $PATH
11594 test -z "$as_dir" && as_dir=.
11595 for ac_exec_ext in '' $ac_executable_extensions; do
11596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11597 ac_cv_prog_DLLTOOL="${ncn_progname}"
11598 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11607 DLLTOOL=$ac_cv_prog_DLLTOOL
11608 if test -n "$DLLTOOL"; then
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11610 $as_echo "$DLLTOOL" >&6; }
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11613 $as_echo "no
" >&6; }
11618 test -n "$ac_cv_prog_DLLTOOL" && break
11621 if test -z "$ac_cv_prog_DLLTOOL" ; then
11623 if test $build = $host ; then
11626 DLLTOOL="${ncn_tool_prefix}$2"
11632 if test -n "$DSYMUTIL"; then
11633 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11634 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11635 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11638 if test -n "$ac_cv_prog_DSYMUTIL"; then
11639 for ncn_progname in dsymutil; do
11640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11641 set dummy ${ncn_progname}; ac_word=$2
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11643 $as_echo_n "checking
for $ac_word...
" >&6; }
11644 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11645 $as_echo_n "(cached
) " >&6
11647 if test -n "$DSYMUTIL"; then
11648 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
11656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11657 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11658 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11667 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11668 if test -n "$DSYMUTIL"; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11670 $as_echo "$DSYMUTIL" >&6; }
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11673 $as_echo "no
" >&6; }
11680 for ncn_progname in dsymutil; do
11681 if test -n "$ncn_tool_prefix"; then
11682 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11683 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11685 $as_echo_n "checking
for $ac_word...
" >&6; }
11686 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11687 $as_echo_n "(cached
) " >&6
11689 if test -n "$DSYMUTIL"; then
11690 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11696 test -z "$as_dir" && as_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11699 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11700 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11709 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11710 if test -n "$DSYMUTIL"; then
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11712 $as_echo "$DSYMUTIL" >&6; }
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11715 $as_echo "no
" >&6; }
11720 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11722 set dummy ${ncn_progname}; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11724 $as_echo_n "checking
for $ac_word...
" >&6; }
11725 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11726 $as_echo_n "(cached
) " >&6
11728 if test -n "$DSYMUTIL"; then
11729 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11732 for as_dir in $PATH
11735 test -z "$as_dir" && as_dir=.
11736 for ac_exec_ext in '' $ac_executable_extensions; do
11737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11738 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11739 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11748 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11749 if test -n "$DSYMUTIL"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11751 $as_echo "$DSYMUTIL" >&6; }
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11754 $as_echo "no
" >&6; }
11759 test -n "$ac_cv_prog_DSYMUTIL" && break
11762 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11764 if test $build = $host ; then
11767 DSYMUTIL="${ncn_tool_prefix}$2"
11773 if test -n "$LD"; then
11775 elif test -n "$ac_cv_prog_LD"; then
11779 if test -n "$ac_cv_prog_LD"; then
11780 for ncn_progname in ld; do
11781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11782 set dummy ${ncn_progname}; ac_word=$2
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11784 $as_echo_n "checking
for $ac_word...
" >&6; }
11785 if ${ac_cv_prog_LD+:} false; then :
11786 $as_echo_n "(cached
) " >&6
11788 if test -n "$LD"; then
11789 ac_cv_prog_LD="$LD" # Let the user override the test.
11791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792 for as_dir in $PATH
11795 test -z "$as_dir" && as_dir=.
11796 for ac_exec_ext in '' $ac_executable_extensions; do
11797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11798 ac_cv_prog_LD="${ncn_progname}"
11799 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11809 if test -n "$LD"; then
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11811 $as_echo "$LD" >&6; }
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11814 $as_echo "no
" >&6; }
11821 for ncn_progname in ld; do
11822 if test -n "$ncn_tool_prefix"; then
11823 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11824 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11826 $as_echo_n "checking
for $ac_word...
" >&6; }
11827 if ${ac_cv_prog_LD+:} false; then :
11828 $as_echo_n "(cached
) " >&6
11830 if test -n "$LD"; then
11831 ac_cv_prog_LD="$LD" # Let the user override the test.
11833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834 for as_dir in $PATH
11837 test -z "$as_dir" && as_dir=.
11838 for ac_exec_ext in '' $ac_executable_extensions; do
11839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11840 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11841 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11851 if test -n "$LD"; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11853 $as_echo "$LD" >&6; }
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11856 $as_echo "no
" >&6; }
11861 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11863 set dummy ${ncn_progname}; ac_word=$2
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11865 $as_echo_n "checking
for $ac_word...
" >&6; }
11866 if ${ac_cv_prog_LD+:} false; then :
11867 $as_echo_n "(cached
) " >&6
11869 if test -n "$LD"; then
11870 ac_cv_prog_LD="$LD" # Let the user override the test.
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11879 ac_cv_prog_LD="${ncn_progname}"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11890 if test -n "$LD"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11892 $as_echo "$LD" >&6; }
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11895 $as_echo "no
" >&6; }
11900 test -n "$ac_cv_prog_LD" && break
11903 if test -z "$ac_cv_prog_LD" ; then
11905 if test $build = $host ; then
11908 LD="${ncn_tool_prefix}$2"
11914 if test -n "$LIPO"; then
11915 ac_cv_prog_LIPO=$LIPO
11916 elif test -n "$ac_cv_prog_LIPO"; then
11917 LIPO=$ac_cv_prog_LIPO
11920 if test -n "$ac_cv_prog_LIPO"; then
11921 for ncn_progname in lipo; do
11922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11923 set dummy ${ncn_progname}; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11925 $as_echo_n "checking
for $ac_word...
" >&6; }
11926 if ${ac_cv_prog_LIPO+:} false; then :
11927 $as_echo_n "(cached
) " >&6
11929 if test -n "$LIPO"; then
11930 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11936 test -z "$as_dir" && as_dir=.
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11939 ac_cv_prog_LIPO="${ncn_progname}"
11940 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11949 LIPO=$ac_cv_prog_LIPO
11950 if test -n "$LIPO"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11952 $as_echo "$LIPO" >&6; }
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11955 $as_echo "no
" >&6; }
11962 for ncn_progname in lipo; do
11963 if test -n "$ncn_tool_prefix"; then
11964 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11965 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11967 $as_echo_n "checking
for $ac_word...
" >&6; }
11968 if ${ac_cv_prog_LIPO+:} false; then :
11969 $as_echo_n "(cached
) " >&6
11971 if test -n "$LIPO"; then
11972 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975 for as_dir in $PATH
11978 test -z "$as_dir" && as_dir=.
11979 for ac_exec_ext in '' $ac_executable_extensions; do
11980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11981 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11982 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11991 LIPO=$ac_cv_prog_LIPO
11992 if test -n "$LIPO"; then
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11994 $as_echo "$LIPO" >&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" && test $build = $host ; then
12003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12004 set dummy ${ncn_progname}; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12006 $as_echo_n "checking
for $ac_word...
" >&6; }
12007 if ${ac_cv_prog_LIPO+:} false; then :
12008 $as_echo_n "(cached
) " >&6
12010 if test -n "$LIPO"; then
12011 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12020 ac_cv_prog_LIPO="${ncn_progname}"
12021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12030 LIPO=$ac_cv_prog_LIPO
12031 if test -n "$LIPO"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
12033 $as_echo "$LIPO" >&6; }
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12036 $as_echo "no
" >&6; }
12041 test -n "$ac_cv_prog_LIPO" && break
12044 if test -z "$ac_cv_prog_LIPO" ; then
12046 if test $build = $host ; then
12049 LIPO="${ncn_tool_prefix}$2"
12055 if test -n "$NM"; then
12057 elif test -n "$ac_cv_prog_NM"; then
12061 if test -n "$ac_cv_prog_NM"; then
12062 for ncn_progname in nm; do
12063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12064 set dummy ${ncn_progname}; ac_word=$2
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12066 $as_echo_n "checking
for $ac_word...
" >&6; }
12067 if ${ac_cv_prog_NM+:} false; then :
12068 $as_echo_n "(cached
) " >&6
12070 if test -n "$NM"; then
12071 ac_cv_prog_NM="$NM" # Let the user override the test.
12073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12074 for as_dir in $PATH
12077 test -z "$as_dir" && as_dir=.
12078 for ac_exec_ext in '' $ac_executable_extensions; do
12079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12080 ac_cv_prog_NM="${ncn_progname}"
12081 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12091 if test -n "$NM"; then
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
12093 $as_echo "$NM" >&6; }
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12096 $as_echo "no
" >&6; }
12103 for ncn_progname in nm; do
12104 if test -n "$ncn_tool_prefix"; then
12105 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12106 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12108 $as_echo_n "checking
for $ac_word...
" >&6; }
12109 if ${ac_cv_prog_NM+:} false; then :
12110 $as_echo_n "(cached
) " >&6
12112 if test -n "$NM"; then
12113 ac_cv_prog_NM="$NM" # Let the user override the test.
12115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12116 for as_dir in $PATH
12119 test -z "$as_dir" && as_dir=.
12120 for ac_exec_ext in '' $ac_executable_extensions; do
12121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12122 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
12123 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12133 if test -n "$NM"; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
12135 $as_echo "$NM" >&6; }
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12138 $as_echo "no
" >&6; }
12143 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
12144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12145 set dummy ${ncn_progname}; ac_word=$2
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12147 $as_echo_n "checking
for $ac_word...
" >&6; }
12148 if ${ac_cv_prog_NM+:} false; then :
12149 $as_echo_n "(cached
) " >&6
12151 if test -n "$NM"; then
12152 ac_cv_prog_NM="$NM" # Let the user override the test.
12154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155 for as_dir in $PATH
12158 test -z "$as_dir" && as_dir=.
12159 for ac_exec_ext in '' $ac_executable_extensions; do
12160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12161 ac_cv_prog_NM="${ncn_progname}"
12162 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12172 if test -n "$NM"; then
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
12174 $as_echo "$NM" >&6; }
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12177 $as_echo "no
" >&6; }
12182 test -n "$ac_cv_prog_NM" && break
12185 if test -z "$ac_cv_prog_NM" ; then
12187 if test $build = $host ; then
12190 NM="${ncn_tool_prefix}$2"
12196 if test -n "$RANLIB"; then
12197 ac_cv_prog_RANLIB=$RANLIB
12198 elif test -n "$ac_cv_prog_RANLIB"; then
12199 RANLIB=$ac_cv_prog_RANLIB
12202 if test -n "$ac_cv_prog_RANLIB"; then
12203 for ncn_progname in ranlib; do
12204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12205 set dummy ${ncn_progname}; ac_word=$2
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12207 $as_echo_n "checking
for $ac_word...
" >&6; }
12208 if ${ac_cv_prog_RANLIB+:} false; then :
12209 $as_echo_n "(cached
) " >&6
12211 if test -n "$RANLIB"; then
12212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12215 for as_dir in $PATH
12218 test -z "$as_dir" && as_dir=.
12219 for ac_exec_ext in '' $ac_executable_extensions; do
12220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12221 ac_cv_prog_RANLIB="${ncn_progname}"
12222 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12231 RANLIB=$ac_cv_prog_RANLIB
12232 if test -n "$RANLIB"; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12234 $as_echo "$RANLIB" >&6; }
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12237 $as_echo "no
" >&6; }
12244 for ncn_progname in ranlib; do
12245 if test -n "$ncn_tool_prefix"; then
12246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12247 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12249 $as_echo_n "checking
for $ac_word...
" >&6; }
12250 if ${ac_cv_prog_RANLIB+:} false; then :
12251 $as_echo_n "(cached
) " >&6
12253 if test -n "$RANLIB"; then
12254 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12257 for as_dir in $PATH
12260 test -z "$as_dir" && as_dir=.
12261 for ac_exec_ext in '' $ac_executable_extensions; do
12262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12263 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
12264 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12273 RANLIB=$ac_cv_prog_RANLIB
12274 if test -n "$RANLIB"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12276 $as_echo "$RANLIB" >&6; }
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12279 $as_echo "no
" >&6; }
12284 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
12285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12286 set dummy ${ncn_progname}; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12288 $as_echo_n "checking
for $ac_word...
" >&6; }
12289 if ${ac_cv_prog_RANLIB+:} false; then :
12290 $as_echo_n "(cached
) " >&6
12292 if test -n "$RANLIB"; then
12293 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12299 test -z "$as_dir" && as_dir=.
12300 for ac_exec_ext in '' $ac_executable_extensions; do
12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302 ac_cv_prog_RANLIB="${ncn_progname}"
12303 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12312 RANLIB=$ac_cv_prog_RANLIB
12313 if test -n "$RANLIB"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12315 $as_echo "$RANLIB" >&6; }
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12318 $as_echo "no
" >&6; }
12323 test -n "$ac_cv_prog_RANLIB" && break
12326 if test -z "$ac_cv_prog_RANLIB" ; then
12332 if test -n "$STRIP"; then
12333 ac_cv_prog_STRIP=$STRIP
12334 elif test -n "$ac_cv_prog_STRIP"; then
12335 STRIP=$ac_cv_prog_STRIP
12338 if test -n "$ac_cv_prog_STRIP"; then
12339 for ncn_progname in strip; do
12340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12341 set dummy ${ncn_progname}; ac_word=$2
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12343 $as_echo_n "checking
for $ac_word...
" >&6; }
12344 if ${ac_cv_prog_STRIP+:} false; then :
12345 $as_echo_n "(cached
) " >&6
12347 if test -n "$STRIP"; then
12348 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12354 test -z "$as_dir" && as_dir=.
12355 for ac_exec_ext in '' $ac_executable_extensions; do
12356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12357 ac_cv_prog_STRIP="${ncn_progname}"
12358 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12367 STRIP=$ac_cv_prog_STRIP
12368 if test -n "$STRIP"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12370 $as_echo "$STRIP" >&6; }
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12373 $as_echo "no
" >&6; }
12380 for ncn_progname in strip; do
12381 if test -n "$ncn_tool_prefix"; then
12382 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12383 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12385 $as_echo_n "checking
for $ac_word...
" >&6; }
12386 if ${ac_cv_prog_STRIP+:} false; then :
12387 $as_echo_n "(cached
) " >&6
12389 if test -n "$STRIP"; then
12390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393 for as_dir in $PATH
12396 test -z "$as_dir" && as_dir=.
12397 for ac_exec_ext in '' $ac_executable_extensions; do
12398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12399 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12400 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12409 STRIP=$ac_cv_prog_STRIP
12410 if test -n "$STRIP"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12412 $as_echo "$STRIP" >&6; }
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12415 $as_echo "no
" >&6; }
12420 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12422 set dummy ${ncn_progname}; ac_word=$2
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12424 $as_echo_n "checking
for $ac_word...
" >&6; }
12425 if ${ac_cv_prog_STRIP+:} false; then :
12426 $as_echo_n "(cached
) " >&6
12428 if test -n "$STRIP"; then
12429 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12432 for as_dir in $PATH
12435 test -z "$as_dir" && as_dir=.
12436 for ac_exec_ext in '' $ac_executable_extensions; do
12437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12438 ac_cv_prog_STRIP="${ncn_progname}"
12439 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12448 STRIP=$ac_cv_prog_STRIP
12449 if test -n "$STRIP"; then
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12451 $as_echo "$STRIP" >&6; }
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12454 $as_echo "no
" >&6; }
12459 test -n "$ac_cv_prog_STRIP" && break
12462 if test -z "$ac_cv_prog_STRIP" ; then
12468 if test -n "$WINDRES"; then
12469 ac_cv_prog_WINDRES=$WINDRES
12470 elif test -n "$ac_cv_prog_WINDRES"; then
12471 WINDRES=$ac_cv_prog_WINDRES
12474 if test -n "$ac_cv_prog_WINDRES"; then
12475 for ncn_progname in windres; do
12476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12477 set dummy ${ncn_progname}; ac_word=$2
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12479 $as_echo_n "checking
for $ac_word...
" >&6; }
12480 if ${ac_cv_prog_WINDRES+:} false; then :
12481 $as_echo_n "(cached
) " >&6
12483 if test -n "$WINDRES"; then
12484 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487 for as_dir in $PATH
12490 test -z "$as_dir" && as_dir=.
12491 for ac_exec_ext in '' $ac_executable_extensions; do
12492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12493 ac_cv_prog_WINDRES="${ncn_progname}"
12494 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12503 WINDRES=$ac_cv_prog_WINDRES
12504 if test -n "$WINDRES"; then
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12506 $as_echo "$WINDRES" >&6; }
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12509 $as_echo "no
" >&6; }
12516 for ncn_progname in windres; do
12517 if test -n "$ncn_tool_prefix"; then
12518 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12519 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12521 $as_echo_n "checking
for $ac_word...
" >&6; }
12522 if ${ac_cv_prog_WINDRES+:} false; then :
12523 $as_echo_n "(cached
) " >&6
12525 if test -n "$WINDRES"; then
12526 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12529 for as_dir in $PATH
12532 test -z "$as_dir" && as_dir=.
12533 for ac_exec_ext in '' $ac_executable_extensions; do
12534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12535 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12536 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12545 WINDRES=$ac_cv_prog_WINDRES
12546 if test -n "$WINDRES"; then
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12548 $as_echo "$WINDRES" >&6; }
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12551 $as_echo "no
" >&6; }
12556 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12558 set dummy ${ncn_progname}; ac_word=$2
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12560 $as_echo_n "checking
for $ac_word...
" >&6; }
12561 if ${ac_cv_prog_WINDRES+:} false; then :
12562 $as_echo_n "(cached
) " >&6
12564 if test -n "$WINDRES"; then
12565 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12571 test -z "$as_dir" && as_dir=.
12572 for ac_exec_ext in '' $ac_executable_extensions; do
12573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12574 ac_cv_prog_WINDRES="${ncn_progname}"
12575 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12584 WINDRES=$ac_cv_prog_WINDRES
12585 if test -n "$WINDRES"; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12587 $as_echo "$WINDRES" >&6; }
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12590 $as_echo "no
" >&6; }
12595 test -n "$ac_cv_prog_WINDRES" && break
12598 if test -z "$ac_cv_prog_WINDRES" ; then
12600 if test $build = $host ; then
12603 WINDRES="${ncn_tool_prefix}$2"
12609 if test -n "$WINDMC"; then
12610 ac_cv_prog_WINDMC=$WINDMC
12611 elif test -n "$ac_cv_prog_WINDMC"; then
12612 WINDMC=$ac_cv_prog_WINDMC
12615 if test -n "$ac_cv_prog_WINDMC"; then
12616 for ncn_progname in windmc; do
12617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12618 set dummy ${ncn_progname}; ac_word=$2
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12620 $as_echo_n "checking
for $ac_word...
" >&6; }
12621 if ${ac_cv_prog_WINDMC+:} false; then :
12622 $as_echo_n "(cached
) " >&6
12624 if test -n "$WINDMC"; then
12625 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12628 for as_dir in $PATH
12631 test -z "$as_dir" && as_dir=.
12632 for ac_exec_ext in '' $ac_executable_extensions; do
12633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12634 ac_cv_prog_WINDMC="${ncn_progname}"
12635 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12644 WINDMC=$ac_cv_prog_WINDMC
12645 if test -n "$WINDMC"; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12647 $as_echo "$WINDMC" >&6; }
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12650 $as_echo "no
" >&6; }
12657 for ncn_progname in windmc; do
12658 if test -n "$ncn_tool_prefix"; then
12659 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12660 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12662 $as_echo_n "checking
for $ac_word...
" >&6; }
12663 if ${ac_cv_prog_WINDMC+:} false; then :
12664 $as_echo_n "(cached
) " >&6
12666 if test -n "$WINDMC"; then
12667 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670 for as_dir in $PATH
12673 test -z "$as_dir" && as_dir=.
12674 for ac_exec_ext in '' $ac_executable_extensions; do
12675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12676 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12677 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12686 WINDMC=$ac_cv_prog_WINDMC
12687 if test -n "$WINDMC"; then
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12689 $as_echo "$WINDMC" >&6; }
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12692 $as_echo "no
" >&6; }
12697 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12699 set dummy ${ncn_progname}; ac_word=$2
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12701 $as_echo_n "checking
for $ac_word...
" >&6; }
12702 if ${ac_cv_prog_WINDMC+:} false; then :
12703 $as_echo_n "(cached
) " >&6
12705 if test -n "$WINDMC"; then
12706 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709 for as_dir in $PATH
12712 test -z "$as_dir" && as_dir=.
12713 for ac_exec_ext in '' $ac_executable_extensions; do
12714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12715 ac_cv_prog_WINDMC="${ncn_progname}"
12716 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12725 WINDMC=$ac_cv_prog_WINDMC
12726 if test -n "$WINDMC"; then
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12728 $as_echo "$WINDMC" >&6; }
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12731 $as_echo "no
" >&6; }
12736 test -n "$ac_cv_prog_WINDMC" && break
12739 if test -z "$ac_cv_prog_WINDMC" ; then
12741 if test $build = $host ; then
12744 WINDMC="${ncn_tool_prefix}$2"
12750 if test -n "$OBJCOPY"; then
12751 ac_cv_prog_OBJCOPY=$OBJCOPY
12752 elif test -n "$ac_cv_prog_OBJCOPY"; then
12753 OBJCOPY=$ac_cv_prog_OBJCOPY
12756 if test -n "$ac_cv_prog_OBJCOPY"; then
12757 for ncn_progname in objcopy; do
12758 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12759 set dummy ${ncn_progname}; ac_word=$2
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12761 $as_echo_n "checking
for $ac_word...
" >&6; }
12762 if ${ac_cv_prog_OBJCOPY+:} false; then :
12763 $as_echo_n "(cached
) " >&6
12765 if test -n "$OBJCOPY"; then
12766 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769 for as_dir in $PATH
12772 test -z "$as_dir" && as_dir=.
12773 for ac_exec_ext in '' $ac_executable_extensions; do
12774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12775 ac_cv_prog_OBJCOPY="${ncn_progname}"
12776 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12785 OBJCOPY=$ac_cv_prog_OBJCOPY
12786 if test -n "$OBJCOPY"; then
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12788 $as_echo "$OBJCOPY" >&6; }
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12791 $as_echo "no
" >&6; }
12798 for ncn_progname in objcopy; do
12799 if test -n "$ncn_tool_prefix"; then
12800 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12801 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12803 $as_echo_n "checking
for $ac_word...
" >&6; }
12804 if ${ac_cv_prog_OBJCOPY+:} false; then :
12805 $as_echo_n "(cached
) " >&6
12807 if test -n "$OBJCOPY"; then
12808 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12811 for as_dir in $PATH
12814 test -z "$as_dir" && as_dir=.
12815 for ac_exec_ext in '' $ac_executable_extensions; do
12816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12817 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12818 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12827 OBJCOPY=$ac_cv_prog_OBJCOPY
12828 if test -n "$OBJCOPY"; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12830 $as_echo "$OBJCOPY" >&6; }
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12833 $as_echo "no
" >&6; }
12838 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12840 set dummy ${ncn_progname}; ac_word=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12842 $as_echo_n "checking
for $ac_word...
" >&6; }
12843 if ${ac_cv_prog_OBJCOPY+:} false; then :
12844 $as_echo_n "(cached
) " >&6
12846 if test -n "$OBJCOPY"; then
12847 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12850 for as_dir in $PATH
12853 test -z "$as_dir" && as_dir=.
12854 for ac_exec_ext in '' $ac_executable_extensions; do
12855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12856 ac_cv_prog_OBJCOPY="${ncn_progname}"
12857 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12866 OBJCOPY=$ac_cv_prog_OBJCOPY
12867 if test -n "$OBJCOPY"; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12869 $as_echo "$OBJCOPY" >&6; }
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12872 $as_echo "no
" >&6; }
12877 test -n "$ac_cv_prog_OBJCOPY" && break
12880 if test -z "$ac_cv_prog_OBJCOPY" ; then
12882 if test $build = $host ; then
12885 OBJCOPY="${ncn_tool_prefix}$2"
12891 if test -n "$OBJDUMP"; then
12892 ac_cv_prog_OBJDUMP=$OBJDUMP
12893 elif test -n "$ac_cv_prog_OBJDUMP"; then
12894 OBJDUMP=$ac_cv_prog_OBJDUMP
12897 if test -n "$ac_cv_prog_OBJDUMP"; then
12898 for ncn_progname in objdump; do
12899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12900 set dummy ${ncn_progname}; ac_word=$2
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12902 $as_echo_n "checking
for $ac_word...
" >&6; }
12903 if ${ac_cv_prog_OBJDUMP+:} false; then :
12904 $as_echo_n "(cached
) " >&6
12906 if test -n "$OBJDUMP"; then
12907 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910 for as_dir in $PATH
12913 test -z "$as_dir" && as_dir=.
12914 for ac_exec_ext in '' $ac_executable_extensions; do
12915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12916 ac_cv_prog_OBJDUMP="${ncn_progname}"
12917 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12926 OBJDUMP=$ac_cv_prog_OBJDUMP
12927 if test -n "$OBJDUMP"; then
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12929 $as_echo "$OBJDUMP" >&6; }
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12932 $as_echo "no
" >&6; }
12939 for ncn_progname in objdump; do
12940 if test -n "$ncn_tool_prefix"; then
12941 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12942 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12944 $as_echo_n "checking
for $ac_word...
" >&6; }
12945 if ${ac_cv_prog_OBJDUMP+:} false; then :
12946 $as_echo_n "(cached
) " >&6
12948 if test -n "$OBJDUMP"; then
12949 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12952 for as_dir in $PATH
12955 test -z "$as_dir" && as_dir=.
12956 for ac_exec_ext in '' $ac_executable_extensions; do
12957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12958 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12959 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12968 OBJDUMP=$ac_cv_prog_OBJDUMP
12969 if test -n "$OBJDUMP"; then
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12971 $as_echo "$OBJDUMP" >&6; }
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12974 $as_echo "no
" >&6; }
12979 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12981 set dummy ${ncn_progname}; ac_word=$2
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12983 $as_echo_n "checking
for $ac_word...
" >&6; }
12984 if ${ac_cv_prog_OBJDUMP+:} false; then :
12985 $as_echo_n "(cached
) " >&6
12987 if test -n "$OBJDUMP"; then
12988 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $PATH
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
12996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12997 ac_cv_prog_OBJDUMP="${ncn_progname}"
12998 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13007 OBJDUMP=$ac_cv_prog_OBJDUMP
13008 if test -n "$OBJDUMP"; then
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13010 $as_echo "$OBJDUMP" >&6; }
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13013 $as_echo "no
" >&6; }
13018 test -n "$ac_cv_prog_OBJDUMP" && break
13021 if test -z "$ac_cv_prog_OBJDUMP" ; then
13023 if test $build = $host ; then
13026 OBJDUMP="${ncn_tool_prefix}$2"
13032 if test -n "$OTOOL"; then
13033 ac_cv_prog_OTOOL=$OTOOL
13034 elif test -n "$ac_cv_prog_OTOOL"; then
13035 OTOOL=$ac_cv_prog_OTOOL
13038 if test -n "$ac_cv_prog_OTOOL"; then
13039 for ncn_progname in otool; do
13040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13041 set dummy ${ncn_progname}; ac_word=$2
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13043 $as_echo_n "checking
for $ac_word...
" >&6; }
13044 if ${ac_cv_prog_OTOOL+:} false; then :
13045 $as_echo_n "(cached
) " >&6
13047 if test -n "$OTOOL"; then
13048 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051 for as_dir in $PATH
13054 test -z "$as_dir" && as_dir=.
13055 for ac_exec_ext in '' $ac_executable_extensions; do
13056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13057 ac_cv_prog_OTOOL="${ncn_progname}"
13058 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13067 OTOOL=$ac_cv_prog_OTOOL
13068 if test -n "$OTOOL"; then
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13070 $as_echo "$OTOOL" >&6; }
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13073 $as_echo "no
" >&6; }
13080 for ncn_progname in otool; do
13081 if test -n "$ncn_tool_prefix"; then
13082 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13083 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13085 $as_echo_n "checking
for $ac_word...
" >&6; }
13086 if ${ac_cv_prog_OTOOL+:} false; then :
13087 $as_echo_n "(cached
) " >&6
13089 if test -n "$OTOOL"; then
13090 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13093 for as_dir in $PATH
13096 test -z "$as_dir" && as_dir=.
13097 for ac_exec_ext in '' $ac_executable_extensions; do
13098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13099 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
13100 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13109 OTOOL=$ac_cv_prog_OTOOL
13110 if test -n "$OTOOL"; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13112 $as_echo "$OTOOL" >&6; }
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13115 $as_echo "no
" >&6; }
13120 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
13121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13122 set dummy ${ncn_progname}; ac_word=$2
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13124 $as_echo_n "checking
for $ac_word...
" >&6; }
13125 if ${ac_cv_prog_OTOOL+:} false; then :
13126 $as_echo_n "(cached
) " >&6
13128 if test -n "$OTOOL"; then
13129 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132 for as_dir in $PATH
13135 test -z "$as_dir" && as_dir=.
13136 for ac_exec_ext in '' $ac_executable_extensions; do
13137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13138 ac_cv_prog_OTOOL="${ncn_progname}"
13139 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13148 OTOOL=$ac_cv_prog_OTOOL
13149 if test -n "$OTOOL"; then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13151 $as_echo "$OTOOL" >&6; }
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13154 $as_echo "no
" >&6; }
13159 test -n "$ac_cv_prog_OTOOL" && break
13162 if test -z "$ac_cv_prog_OTOOL" ; then
13164 if test $build = $host ; then
13167 OTOOL="${ncn_tool_prefix}$2"
13173 if test -n "$READELF"; then
13174 ac_cv_prog_READELF=$READELF
13175 elif test -n "$ac_cv_prog_READELF"; then
13176 READELF=$ac_cv_prog_READELF
13179 if test -n "$ac_cv_prog_READELF"; then
13180 for ncn_progname in readelf; do
13181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13182 set dummy ${ncn_progname}; ac_word=$2
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13184 $as_echo_n "checking
for $ac_word...
" >&6; }
13185 if ${ac_cv_prog_READELF+:} false; then :
13186 $as_echo_n "(cached
) " >&6
13188 if test -n "$READELF"; then
13189 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192 for as_dir in $PATH
13195 test -z "$as_dir" && as_dir=.
13196 for ac_exec_ext in '' $ac_executable_extensions; do
13197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13198 ac_cv_prog_READELF="${ncn_progname}"
13199 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13208 READELF=$ac_cv_prog_READELF
13209 if test -n "$READELF"; then
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
13211 $as_echo "$READELF" >&6; }
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13214 $as_echo "no
" >&6; }
13221 for ncn_progname in readelf; do
13222 if test -n "$ncn_tool_prefix"; then
13223 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13224 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13226 $as_echo_n "checking
for $ac_word...
" >&6; }
13227 if ${ac_cv_prog_READELF+:} false; then :
13228 $as_echo_n "(cached
) " >&6
13230 if test -n "$READELF"; then
13231 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234 for as_dir in $PATH
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
13239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13240 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
13241 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13250 READELF=$ac_cv_prog_READELF
13251 if test -n "$READELF"; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
13253 $as_echo "$READELF" >&6; }
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13256 $as_echo "no
" >&6; }
13261 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
13262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13263 set dummy ${ncn_progname}; ac_word=$2
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13265 $as_echo_n "checking
for $ac_word...
" >&6; }
13266 if ${ac_cv_prog_READELF+:} false; then :
13267 $as_echo_n "(cached
) " >&6
13269 if test -n "$READELF"; then
13270 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13279 ac_cv_prog_READELF="${ncn_progname}"
13280 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13289 READELF=$ac_cv_prog_READELF
13290 if test -n "$READELF"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
13292 $as_echo "$READELF" >&6; }
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13295 $as_echo "no
" >&6; }
13300 test -n "$ac_cv_prog_READELF" && break
13303 if test -z "$ac_cv_prog_READELF" ; then
13305 if test $build = $host ; then
13308 READELF="${ncn_tool_prefix}$2"
13318 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
13322 $as_echo_n "checking
for -plugin option...
" >&6; }
13324 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
13326 for plugin in $plugin_names; do
13327 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13328 if test x$plugin_so = x$plugin; then
13329 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13331 if test x$plugin_so != x$plugin; then
13332 plugin_option="--plugin $plugin_so"
13336 if test -n "$ac_tool_prefix"; then
13337 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13338 set dummy ${ac_tool_prefix}ar; ac_word=$2
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13340 $as_echo_n "checking
for $ac_word...
" >&6; }
13341 if ${ac_cv_prog_AR+:} false; then :
13342 $as_echo_n "(cached
) " >&6
13344 if test -n "$AR"; then
13345 ac_cv_prog_AR="$AR" # Let the user override the test.
13347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13348 for as_dir in $PATH
13351 test -z "$as_dir" && as_dir=.
13352 for ac_exec_ext in '' $ac_executable_extensions; do
13353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13354 ac_cv_prog_AR="${ac_tool_prefix}ar"
13355 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13365 if test -n "$AR"; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13367 $as_echo "$AR" >&6; }
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13370 $as_echo "no
" >&6; }
13375 if test -z "$ac_cv_prog_AR"; then
13377 # Extract the first word of "ar", so it can be a program name with args.
13378 set dummy ar; ac_word=$2
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13380 $as_echo_n "checking
for $ac_word...
" >&6; }
13381 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13382 $as_echo_n "(cached
) " >&6
13384 if test -n "$ac_ct_AR"; then
13385 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $PATH
13391 test -z "$as_dir" && as_dir=.
13392 for ac_exec_ext in '' $ac_executable_extensions; do
13393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13394 ac_cv_prog_ac_ct_AR="ar"
13395 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13404 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13405 if test -n "$ac_ct_AR"; then
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13407 $as_echo "$ac_ct_AR" >&6; }
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13410 $as_echo "no
" >&6; }
13413 if test "x
$ac_ct_AR" = x; then
13416 case $cross_compiling:$ac_tool_warned in
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13419 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13420 ac_tool_warned=yes ;;
13425 AR="$ac_cv_prog_AR"
13428 if test "${AR}" = "" ; then
13429 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
13432 ${AR} $plugin_option rc conftest.a conftest.c
13433 if test "$?
" != 0; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
13435 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
13439 if test -n "$plugin_option"; then
13440 PLUGIN_OPTION="$plugin_option"
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
13442 $as_echo "$plugin_option" >&6; }
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13445 $as_echo "no
" >&6; }
13449 RANLIB_PLUGIN_OPTION=
13450 if test -n "$PLUGIN_OPTION"; then
13451 if $AR --help 2>&1 | grep -q "\
--plugin"; then
13452 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13454 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
13455 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13463 # Check whether --with-build-time-tools was given.
13464 if test "${with_build_time_tools+set}" = set; then :
13465 withval=$with_build_time_tools; case x"$withval" in
13468 with_build_time_tools=
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
13470 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
13474 with_build_time_tools=
13480 if test -n "$CC_FOR_TARGET"; then
13481 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13482 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13483 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13486 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13487 for ncn_progname in cc gcc; do
13488 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13489 set dummy ${ncn_progname}; ac_word=$2
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13491 $as_echo_n "checking
for $ac_word...
" >&6; }
13492 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13493 $as_echo_n "(cached
) " >&6
13495 if test -n "$CC_FOR_TARGET"; then
13496 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13499 for as_dir in $PATH
13502 test -z "$as_dir" && as_dir=.
13503 for ac_exec_ext in '' $ac_executable_extensions; do
13504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13505 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13506 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13515 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13516 if test -n "$CC_FOR_TARGET"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13518 $as_echo "$CC_FOR_TARGET" >&6; }
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13521 $as_echo "no
" >&6; }
13528 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13529 for ncn_progname in cc gcc; do
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13531 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13532 if test -x $with_build_time_tools/${ncn_progname}; then
13533 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13535 $as_echo "yes" >&6; }
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13539 $as_echo "no
" >&6; }
13544 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13545 for ncn_progname in cc gcc; do
13546 if test -n "$ncn_target_tool_prefix"; then
13547 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13548 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13550 $as_echo_n "checking
for $ac_word...
" >&6; }
13551 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13552 $as_echo_n "(cached
) " >&6
13554 if test -n "$CC_FOR_TARGET"; then
13555 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13558 for as_dir in $PATH
13561 test -z "$as_dir" && as_dir=.
13562 for ac_exec_ext in '' $ac_executable_extensions; do
13563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13564 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13565 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13574 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13575 if test -n "$CC_FOR_TARGET"; then
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13577 $as_echo "$CC_FOR_TARGET" >&6; }
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13580 $as_echo "no
" >&6; }
13585 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13587 set dummy ${ncn_progname}; ac_word=$2
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13589 $as_echo_n "checking
for $ac_word...
" >&6; }
13590 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13591 $as_echo_n "(cached
) " >&6
13593 if test -n "$CC_FOR_TARGET"; then
13594 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13597 for as_dir in $PATH
13600 test -z "$as_dir" && as_dir=.
13601 for ac_exec_ext in '' $ac_executable_extensions; do
13602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13603 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13604 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13613 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13614 if test -n "$CC_FOR_TARGET"; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13616 $as_echo "$CC_FOR_TARGET" >&6; }
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13619 $as_echo "no
" >&6; }
13624 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13628 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13630 if test $build = $target ; then
13633 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13636 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13641 if test -n "$CXX_FOR_TARGET"; then
13642 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13643 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13644 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13647 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13648 for ncn_progname in c++ g++ cxx gxx; do
13649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13650 set dummy ${ncn_progname}; ac_word=$2
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13652 $as_echo_n "checking
for $ac_word...
" >&6; }
13653 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13654 $as_echo_n "(cached
) " >&6
13656 if test -n "$CXX_FOR_TARGET"; then
13657 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660 for as_dir in $PATH
13663 test -z "$as_dir" && as_dir=.
13664 for ac_exec_ext in '' $ac_executable_extensions; do
13665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13666 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13667 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13676 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13677 if test -n "$CXX_FOR_TARGET"; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13679 $as_echo "$CXX_FOR_TARGET" >&6; }
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13682 $as_echo "no
" >&6; }
13689 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13690 for ncn_progname in c++ g++ cxx gxx; do
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13692 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13693 if test -x $with_build_time_tools/${ncn_progname}; then
13694 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13696 $as_echo "yes" >&6; }
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13700 $as_echo "no
" >&6; }
13705 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13706 for ncn_progname in c++ g++ cxx gxx; do
13707 if test -n "$ncn_target_tool_prefix"; then
13708 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13709 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13711 $as_echo_n "checking
for $ac_word...
" >&6; }
13712 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13713 $as_echo_n "(cached
) " >&6
13715 if test -n "$CXX_FOR_TARGET"; then
13716 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13719 for as_dir in $PATH
13722 test -z "$as_dir" && as_dir=.
13723 for ac_exec_ext in '' $ac_executable_extensions; do
13724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13725 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13726 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13735 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13736 if test -n "$CXX_FOR_TARGET"; then
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13738 $as_echo "$CXX_FOR_TARGET" >&6; }
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13741 $as_echo "no
" >&6; }
13746 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13748 set dummy ${ncn_progname}; ac_word=$2
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13750 $as_echo_n "checking
for $ac_word...
" >&6; }
13751 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13752 $as_echo_n "(cached
) " >&6
13754 if test -n "$CXX_FOR_TARGET"; then
13755 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13758 for as_dir in $PATH
13761 test -z "$as_dir" && as_dir=.
13762 for ac_exec_ext in '' $ac_executable_extensions; do
13763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13764 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13765 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13774 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13775 if test -n "$CXX_FOR_TARGET"; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13777 $as_echo "$CXX_FOR_TARGET" >&6; }
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13780 $as_echo "no
" >&6; }
13785 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13789 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13790 set dummy c++ g++ cxx gxx
13791 if test $build = $target ; then
13792 CXX_FOR_TARGET="$2"
13794 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13797 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13802 if test -n "$GCC_FOR_TARGET"; then
13803 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13804 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13805 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13808 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13809 for ncn_progname in gcc; do
13810 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13811 set dummy ${ncn_progname}; ac_word=$2
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13813 $as_echo_n "checking
for $ac_word...
" >&6; }
13814 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13815 $as_echo_n "(cached
) " >&6
13817 if test -n "$GCC_FOR_TARGET"; then
13818 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13821 for as_dir in $PATH
13824 test -z "$as_dir" && as_dir=.
13825 for ac_exec_ext in '' $ac_executable_extensions; do
13826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13827 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13828 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13837 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13838 if test -n "$GCC_FOR_TARGET"; then
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13840 $as_echo "$GCC_FOR_TARGET" >&6; }
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13843 $as_echo "no
" >&6; }
13850 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13851 for ncn_progname in gcc; do
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13853 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13854 if test -x $with_build_time_tools/${ncn_progname}; then
13855 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13857 $as_echo "yes" >&6; }
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13861 $as_echo "no
" >&6; }
13866 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13867 for ncn_progname in gcc; do
13868 if test -n "$ncn_target_tool_prefix"; then
13869 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13870 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13872 $as_echo_n "checking
for $ac_word...
" >&6; }
13873 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13874 $as_echo_n "(cached
) " >&6
13876 if test -n "$GCC_FOR_TARGET"; then
13877 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880 for as_dir in $PATH
13883 test -z "$as_dir" && as_dir=.
13884 for ac_exec_ext in '' $ac_executable_extensions; do
13885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13886 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13887 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13896 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13897 if test -n "$GCC_FOR_TARGET"; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13899 $as_echo "$GCC_FOR_TARGET" >&6; }
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13902 $as_echo "no
" >&6; }
13907 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13909 set dummy ${ncn_progname}; ac_word=$2
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13911 $as_echo_n "checking
for $ac_word...
" >&6; }
13912 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13913 $as_echo_n "(cached
) " >&6
13915 if test -n "$GCC_FOR_TARGET"; then
13916 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13919 for as_dir in $PATH
13922 test -z "$as_dir" && as_dir=.
13923 for ac_exec_ext in '' $ac_executable_extensions; do
13924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13925 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13926 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13935 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13936 if test -n "$GCC_FOR_TARGET"; then
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13938 $as_echo "$GCC_FOR_TARGET" >&6; }
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13941 $as_echo "no
" >&6; }
13946 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13950 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13951 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13953 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13958 if test -n "$GFORTRAN_FOR_TARGET"; then
13959 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13960 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13961 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13964 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13965 for ncn_progname in gfortran; do
13966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13967 set dummy ${ncn_progname}; ac_word=$2
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13969 $as_echo_n "checking
for $ac_word...
" >&6; }
13970 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13971 $as_echo_n "(cached
) " >&6
13973 if test -n "$GFORTRAN_FOR_TARGET"; then
13974 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13977 for as_dir in $PATH
13980 test -z "$as_dir" && as_dir=.
13981 for ac_exec_ext in '' $ac_executable_extensions; do
13982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13983 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13984 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13993 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13994 if test -n "$GFORTRAN_FOR_TARGET"; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13996 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13999 $as_echo "no
" >&6; }
14006 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
14007 for ncn_progname in gfortran; do
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14009 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14010 if test -x $with_build_time_tools/${ncn_progname}; then
14011 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14013 $as_echo "yes" >&6; }
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14017 $as_echo "no
" >&6; }
14022 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14023 for ncn_progname in gfortran; do
14024 if test -n "$ncn_target_tool_prefix"; then
14025 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14026 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14028 $as_echo_n "checking
for $ac_word...
" >&6; }
14029 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14030 $as_echo_n "(cached
) " >&6
14032 if test -n "$GFORTRAN_FOR_TARGET"; then
14033 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14036 for as_dir in $PATH
14039 test -z "$as_dir" && as_dir=.
14040 for ac_exec_ext in '' $ac_executable_extensions; do
14041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14042 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14043 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14052 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14053 if test -n "$GFORTRAN_FOR_TARGET"; then
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
14055 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14058 $as_echo "no
" >&6; }
14063 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
14064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14065 set dummy ${ncn_progname}; ac_word=$2
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14067 $as_echo_n "checking
for $ac_word...
" >&6; }
14068 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14069 $as_echo_n "(cached
) " >&6
14071 if test -n "$GFORTRAN_FOR_TARGET"; then
14072 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14075 for as_dir in $PATH
14078 test -z "$as_dir" && as_dir=.
14079 for ac_exec_ext in '' $ac_executable_extensions; do
14080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14081 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14082 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14091 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14092 if test -n "$GFORTRAN_FOR_TARGET"; then
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
14094 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14097 $as_echo "no
" >&6; }
14102 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
14106 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
14108 if test $build = $target ; then
14109 GFORTRAN_FOR_TARGET="$2"
14111 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
14114 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
14119 if test -n "$GOC_FOR_TARGET"; then
14120 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
14121 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14122 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14125 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14126 for ncn_progname in gccgo; do
14127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14128 set dummy ${ncn_progname}; ac_word=$2
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14130 $as_echo_n "checking
for $ac_word...
" >&6; }
14131 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14132 $as_echo_n "(cached
) " >&6
14134 if test -n "$GOC_FOR_TARGET"; then
14135 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14144 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14145 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14154 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14155 if test -n "$GOC_FOR_TARGET"; then
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
14157 $as_echo "$GOC_FOR_TARGET" >&6; }
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14160 $as_echo "no
" >&6; }
14167 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14168 for ncn_progname in gccgo; do
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14170 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14171 if test -x $with_build_time_tools/${ncn_progname}; then
14172 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14174 $as_echo "yes" >&6; }
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14178 $as_echo "no
" >&6; }
14183 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
14184 for ncn_progname in gccgo; do
14185 if test -n "$ncn_target_tool_prefix"; then
14186 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14187 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14189 $as_echo_n "checking
for $ac_word...
" >&6; }
14190 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14191 $as_echo_n "(cached
) " >&6
14193 if test -n "$GOC_FOR_TARGET"; then
14194 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14197 for as_dir in $PATH
14200 test -z "$as_dir" && as_dir=.
14201 for ac_exec_ext in '' $ac_executable_extensions; do
14202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14203 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14204 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14213 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14214 if test -n "$GOC_FOR_TARGET"; then
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
14216 $as_echo "$GOC_FOR_TARGET" >&6; }
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14219 $as_echo "no
" >&6; }
14224 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
14225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14226 set dummy ${ncn_progname}; ac_word=$2
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14228 $as_echo_n "checking
for $ac_word...
" >&6; }
14229 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14230 $as_echo_n "(cached
) " >&6
14232 if test -n "$GOC_FOR_TARGET"; then
14233 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14239 test -z "$as_dir" && as_dir=.
14240 for ac_exec_ext in '' $ac_executable_extensions; do
14241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14242 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14243 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14252 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14253 if test -n "$GOC_FOR_TARGET"; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
14255 $as_echo "$GOC_FOR_TARGET" >&6; }
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14258 $as_echo "no
" >&6; }
14263 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
14267 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
14269 if test $build = $target ; then
14270 GOC_FOR_TARGET="$2"
14272 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14275 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
14280 if test -n "$GDC_FOR_TARGET"; then
14281 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
14282 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14283 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14286 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14287 for ncn_progname in gdc; do
14288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14289 set dummy ${ncn_progname}; ac_word=$2
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14291 $as_echo_n "checking
for $ac_word...
" >&6; }
14292 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14293 $as_echo_n "(cached
) " >&6
14295 if test -n "$GDC_FOR_TARGET"; then
14296 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14299 for as_dir in $PATH
14302 test -z "$as_dir" && as_dir=.
14303 for ac_exec_ext in '' $ac_executable_extensions; do
14304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14305 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14306 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14315 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14316 if test -n "$GDC_FOR_TARGET"; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14318 $as_echo "$GDC_FOR_TARGET" >&6; }
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14321 $as_echo "no
" >&6; }
14328 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14329 for ncn_progname in gdc; do
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14331 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14332 if test -x $with_build_time_tools/${ncn_progname}; then
14333 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14335 $as_echo "yes" >&6; }
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14339 $as_echo "no
" >&6; }
14344 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14345 for ncn_progname in gdc; do
14346 if test -n "$ncn_target_tool_prefix"; then
14347 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14348 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14350 $as_echo_n "checking
for $ac_word...
" >&6; }
14351 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14352 $as_echo_n "(cached
) " >&6
14354 if test -n "$GDC_FOR_TARGET"; then
14355 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14358 for as_dir in $PATH
14361 test -z "$as_dir" && as_dir=.
14362 for ac_exec_ext in '' $ac_executable_extensions; do
14363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14364 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14365 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14374 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14375 if test -n "$GDC_FOR_TARGET"; then
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14377 $as_echo "$GDC_FOR_TARGET" >&6; }
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14380 $as_echo "no
" >&6; }
14385 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14387 set dummy ${ncn_progname}; ac_word=$2
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14389 $as_echo_n "checking
for $ac_word...
" >&6; }
14390 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14391 $as_echo_n "(cached
) " >&6
14393 if test -n "$GDC_FOR_TARGET"; then
14394 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14397 for as_dir in $PATH
14400 test -z "$as_dir" && as_dir=.
14401 for ac_exec_ext in '' $ac_executable_extensions; do
14402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14403 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14404 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14413 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14414 if test -n "$GDC_FOR_TARGET"; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14416 $as_echo "$GDC_FOR_TARGET" >&6; }
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14419 $as_echo "no
" >&6; }
14424 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14428 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14430 if test $build = $target ; then
14431 GDC_FOR_TARGET="$2"
14433 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14436 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14441 if test -n "$GM2_FOR_TARGET"; then
14442 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14443 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14444 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14447 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14448 for ncn_progname in gm2; do
14449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14450 set dummy ${ncn_progname}; ac_word=$2
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14452 $as_echo_n "checking
for $ac_word...
" >&6; }
14453 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14454 $as_echo_n "(cached
) " >&6
14456 if test -n "$GM2_FOR_TARGET"; then
14457 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14460 for as_dir in $PATH
14463 test -z "$as_dir" && as_dir=.
14464 for ac_exec_ext in '' $ac_executable_extensions; do
14465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14466 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14467 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14476 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14477 if test -n "$GM2_FOR_TARGET"; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14479 $as_echo "$GM2_FOR_TARGET" >&6; }
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14482 $as_echo "no
" >&6; }
14489 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14490 for ncn_progname in gm2; do
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14492 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14493 if test -x $with_build_time_tools/${ncn_progname}; then
14494 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14496 $as_echo "yes" >&6; }
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14500 $as_echo "no
" >&6; }
14505 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14506 for ncn_progname in gm2; do
14507 if test -n "$ncn_target_tool_prefix"; then
14508 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14509 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14511 $as_echo_n "checking
for $ac_word...
" >&6; }
14512 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14513 $as_echo_n "(cached
) " >&6
14515 if test -n "$GM2_FOR_TARGET"; then
14516 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14519 for as_dir in $PATH
14522 test -z "$as_dir" && as_dir=.
14523 for ac_exec_ext in '' $ac_executable_extensions; do
14524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14525 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14526 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14535 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14536 if test -n "$GM2_FOR_TARGET"; then
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14538 $as_echo "$GM2_FOR_TARGET" >&6; }
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14541 $as_echo "no
" >&6; }
14546 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14548 set dummy ${ncn_progname}; ac_word=$2
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14550 $as_echo_n "checking
for $ac_word...
" >&6; }
14551 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14552 $as_echo_n "(cached
) " >&6
14554 if test -n "$GM2_FOR_TARGET"; then
14555 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14558 for as_dir in $PATH
14561 test -z "$as_dir" && as_dir=.
14562 for ac_exec_ext in '' $ac_executable_extensions; do
14563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14564 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14565 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14574 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14575 if test -n "$GM2_FOR_TARGET"; then
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14577 $as_echo "$GM2_FOR_TARGET" >&6; }
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14580 $as_echo "no
" >&6; }
14585 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14589 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14591 if test $build = $target ; then
14592 GM2_FOR_TARGET="$2"
14594 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14597 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14602 cat > conftest.c << \EOF
14607 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14608 have_gcc_for_target=yes
14610 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14611 have_gcc_for_target=no
14618 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14619 if test -n "$with_build_time_tools"; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
14621 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
14622 if test -x $with_build_time_tools/ar; then
14623 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14624 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
14626 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14629 $as_echo "no
" >&6; }
14631 elif test $build != $host && test $have_gcc_for_target = yes; then
14632 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14633 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14634 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14637 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14638 # Extract the first word of "ar", so it can be a program name with args.
14639 set dummy ar; ac_word=$2
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14641 $as_echo_n "checking
for $ac_word...
" >&6; }
14642 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14643 $as_echo_n "(cached
) " >&6
14645 case $AR_FOR_TARGET in
14647 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651 for as_dir in $gcc_cv_tool_dirs
14654 test -z "$as_dir" && as_dir=.
14655 for ac_exec_ext in '' $ac_executable_extensions; do
14656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14657 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14658 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14668 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14669 if test -n "$AR_FOR_TARGET"; then
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14671 $as_echo "$AR_FOR_TARGET" >&6; }
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14674 $as_echo "no
" >&6; }
14679 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14682 if test -n "$AR_FOR_TARGET"; then
14683 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14684 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14685 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14688 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14689 for ncn_progname in ar; do
14690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14691 set dummy ${ncn_progname}; ac_word=$2
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14693 $as_echo_n "checking
for $ac_word...
" >&6; }
14694 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14695 $as_echo_n "(cached
) " >&6
14697 if test -n "$AR_FOR_TARGET"; then
14698 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14701 for as_dir in $PATH
14704 test -z "$as_dir" && as_dir=.
14705 for ac_exec_ext in '' $ac_executable_extensions; do
14706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14707 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14708 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14717 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14718 if test -n "$AR_FOR_TARGET"; then
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14720 $as_echo "$AR_FOR_TARGET" >&6; }
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14723 $as_echo "no
" >&6; }
14730 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14731 for ncn_progname in ar; do
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14733 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14734 if test -x $with_build_time_tools/${ncn_progname}; then
14735 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14737 $as_echo "yes" >&6; }
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14741 $as_echo "no
" >&6; }
14746 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14747 for ncn_progname in ar; do
14748 if test -n "$ncn_target_tool_prefix"; then
14749 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14750 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14752 $as_echo_n "checking
for $ac_word...
" >&6; }
14753 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14754 $as_echo_n "(cached
) " >&6
14756 if test -n "$AR_FOR_TARGET"; then
14757 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14760 for as_dir in $PATH
14763 test -z "$as_dir" && as_dir=.
14764 for ac_exec_ext in '' $ac_executable_extensions; do
14765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14766 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14767 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14776 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14777 if test -n "$AR_FOR_TARGET"; then
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14779 $as_echo "$AR_FOR_TARGET" >&6; }
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14782 $as_echo "no
" >&6; }
14787 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14789 set dummy ${ncn_progname}; ac_word=$2
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14791 $as_echo_n "checking
for $ac_word...
" >&6; }
14792 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14793 $as_echo_n "(cached
) " >&6
14795 if test -n "$AR_FOR_TARGET"; then
14796 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14799 for as_dir in $PATH
14802 test -z "$as_dir" && as_dir=.
14803 for ac_exec_ext in '' $ac_executable_extensions; do
14804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14805 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14806 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14815 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14816 if test -n "$AR_FOR_TARGET"; then
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14818 $as_echo "$AR_FOR_TARGET" >&6; }
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14821 $as_echo "no
" >&6; }
14826 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14830 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14832 if test $build = $target ; then
14835 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14838 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14842 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14848 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14849 if test -n "$with_build_time_tools"; then
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14851 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14852 if test -x $with_build_time_tools/as; then
14853 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14854 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14856 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14859 $as_echo "no
" >&6; }
14861 elif test $build != $host && test $have_gcc_for_target = yes; then
14862 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14863 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14864 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14867 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14868 # Extract the first word of "as
", so it can be a program name with args.
14869 set dummy as; ac_word=$2
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14871 $as_echo_n "checking
for $ac_word...
" >&6; }
14872 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14873 $as_echo_n "(cached
) " >&6
14875 case $AS_FOR_TARGET in
14877 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14881 for as_dir in $gcc_cv_tool_dirs
14884 test -z "$as_dir" && as_dir=.
14885 for ac_exec_ext in '' $ac_executable_extensions; do
14886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14887 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14888 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14898 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14899 if test -n "$AS_FOR_TARGET"; then
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14901 $as_echo "$AS_FOR_TARGET" >&6; }
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14904 $as_echo "no
" >&6; }
14909 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14912 if test -n "$AS_FOR_TARGET"; then
14913 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14914 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14915 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14918 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14919 for ncn_progname in as; do
14920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14921 set dummy ${ncn_progname}; ac_word=$2
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14923 $as_echo_n "checking
for $ac_word...
" >&6; }
14924 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14925 $as_echo_n "(cached
) " >&6
14927 if test -n "$AS_FOR_TARGET"; then
14928 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14931 for as_dir in $PATH
14934 test -z "$as_dir" && as_dir=.
14935 for ac_exec_ext in '' $ac_executable_extensions; do
14936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14937 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14938 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14947 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14948 if test -n "$AS_FOR_TARGET"; then
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14950 $as_echo "$AS_FOR_TARGET" >&6; }
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14953 $as_echo "no
" >&6; }
14960 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14961 for ncn_progname in as; do
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14963 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14964 if test -x $with_build_time_tools/${ncn_progname}; then
14965 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14967 $as_echo "yes" >&6; }
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14971 $as_echo "no
" >&6; }
14976 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14977 for ncn_progname in as; do
14978 if test -n "$ncn_target_tool_prefix"; then
14979 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14980 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14982 $as_echo_n "checking
for $ac_word...
" >&6; }
14983 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14984 $as_echo_n "(cached
) " >&6
14986 if test -n "$AS_FOR_TARGET"; then
14987 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14990 for as_dir in $PATH
14993 test -z "$as_dir" && as_dir=.
14994 for ac_exec_ext in '' $ac_executable_extensions; do
14995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14996 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14997 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15006 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15007 if test -n "$AS_FOR_TARGET"; then
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
15009 $as_echo "$AS_FOR_TARGET" >&6; }
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15012 $as_echo "no
" >&6; }
15017 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
15018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15019 set dummy ${ncn_progname}; ac_word=$2
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15021 $as_echo_n "checking
for $ac_word...
" >&6; }
15022 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15023 $as_echo_n "(cached
) " >&6
15025 if test -n "$AS_FOR_TARGET"; then
15026 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15029 for as_dir in $PATH
15032 test -z "$as_dir" && as_dir=.
15033 for ac_exec_ext in '' $ac_executable_extensions; do
15034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15035 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15036 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15045 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15046 if test -n "$AS_FOR_TARGET"; then
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
15048 $as_echo "$AS_FOR_TARGET" >&6; }
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15051 $as_echo "no
" >&6; }
15056 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
15060 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
15062 if test $build = $target ; then
15065 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
15068 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
15072 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15078 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15079 if test -n "$with_build_time_tools"; then
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
15081 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
15082 if test -x $with_build_time_tools/dlltool; then
15083 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
15084 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
15086 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15089 $as_echo "no
" >&6; }
15091 elif test $build != $host && test $have_gcc_for_target = yes; then
15092 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
15093 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
15094 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15097 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15098 # Extract the first word of "dlltool
", so it can be a program name with args.
15099 set dummy dlltool; ac_word=$2
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15101 $as_echo_n "checking
for $ac_word...
" >&6; }
15102 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
15103 $as_echo_n "(cached
) " >&6
15105 case $DLLTOOL_FOR_TARGET in
15107 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
15110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15111 for as_dir in $gcc_cv_tool_dirs
15114 test -z "$as_dir" && as_dir=.
15115 for ac_exec_ext in '' $ac_executable_extensions; do
15116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15117 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15118 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15128 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15129 if test -n "$DLLTOOL_FOR_TARGET"; then
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15131 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15134 $as_echo "no
" >&6; }
15139 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15142 if test -n "$DLLTOOL_FOR_TARGET"; then
15143 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15144 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15145 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15148 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15149 for ncn_progname in dlltool; do
15150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15151 set dummy ${ncn_progname}; ac_word=$2
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15153 $as_echo_n "checking
for $ac_word...
" >&6; }
15154 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15155 $as_echo_n "(cached
) " >&6
15157 if test -n "$DLLTOOL_FOR_TARGET"; then
15158 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15161 for as_dir in $PATH
15164 test -z "$as_dir" && as_dir=.
15165 for ac_exec_ext in '' $ac_executable_extensions; do
15166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15167 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15177 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15178 if test -n "$DLLTOOL_FOR_TARGET"; then
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15180 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15183 $as_echo "no
" >&6; }
15190 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15191 for ncn_progname in dlltool; do
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15193 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15194 if test -x $with_build_time_tools/${ncn_progname}; then
15195 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15197 $as_echo "yes" >&6; }
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15201 $as_echo "no
" >&6; }
15206 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15207 for ncn_progname in dlltool; do
15208 if test -n "$ncn_target_tool_prefix"; then
15209 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15210 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15212 $as_echo_n "checking
for $ac_word...
" >&6; }
15213 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15214 $as_echo_n "(cached
) " >&6
15216 if test -n "$DLLTOOL_FOR_TARGET"; then
15217 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15220 for as_dir in $PATH
15223 test -z "$as_dir" && as_dir=.
15224 for ac_exec_ext in '' $ac_executable_extensions; do
15225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15226 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15227 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15236 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15237 if test -n "$DLLTOOL_FOR_TARGET"; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15239 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15242 $as_echo "no
" >&6; }
15247 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
15248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15249 set dummy ${ncn_progname}; ac_word=$2
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15251 $as_echo_n "checking
for $ac_word...
" >&6; }
15252 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15253 $as_echo_n "(cached
) " >&6
15255 if test -n "$DLLTOOL_FOR_TARGET"; then
15256 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15259 for as_dir in $PATH
15262 test -z "$as_dir" && as_dir=.
15263 for ac_exec_ext in '' $ac_executable_extensions; do
15264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15265 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15266 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15275 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15276 if test -n "$DLLTOOL_FOR_TARGET"; then
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15278 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15281 $as_echo "no
" >&6; }
15286 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
15290 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
15292 if test $build = $target ; then
15293 DLLTOOL_FOR_TARGET="$2"
15295 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15298 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
15302 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15308 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15309 if test -n "$with_build_time_tools"; then
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
15311 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
15312 if test -x $with_build_time_tools/dsymutil; then
15313 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
15314 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
15316 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15319 $as_echo "no
" >&6; }
15321 elif test $build != $host && test $have_gcc_for_target = yes; then
15322 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15323 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15324 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15327 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15328 # Extract the first word of "dsymutil
", so it can be a program name with args.
15329 set dummy dsymutil; ac_word=$2
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15331 $as_echo_n "checking
for $ac_word...
" >&6; }
15332 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15333 $as_echo_n "(cached
) " >&6
15335 case $DSYMUTIL_FOR_TARGET in
15337 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15341 for as_dir in $gcc_cv_tool_dirs
15344 test -z "$as_dir" && as_dir=.
15345 for ac_exec_ext in '' $ac_executable_extensions; do
15346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15347 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15348 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15358 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15359 if test -n "$DSYMUTIL_FOR_TARGET"; then
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15361 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15364 $as_echo "no
" >&6; }
15369 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15372 if test -n "$DSYMUTIL_FOR_TARGET"; then
15373 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15374 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15375 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15378 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15379 for ncn_progname in dsymutil; do
15380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15381 set dummy ${ncn_progname}; ac_word=$2
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15383 $as_echo_n "checking
for $ac_word...
" >&6; }
15384 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15385 $as_echo_n "(cached
) " >&6
15387 if test -n "$DSYMUTIL_FOR_TARGET"; then
15388 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15391 for as_dir in $PATH
15394 test -z "$as_dir" && as_dir=.
15395 for ac_exec_ext in '' $ac_executable_extensions; do
15396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15397 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15398 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15407 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15408 if test -n "$DSYMUTIL_FOR_TARGET"; then
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15410 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15413 $as_echo "no
" >&6; }
15420 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15421 for ncn_progname in dsymutil; do
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15423 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15424 if test -x $with_build_time_tools/${ncn_progname}; then
15425 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15427 $as_echo "yes" >&6; }
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15431 $as_echo "no
" >&6; }
15436 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15437 for ncn_progname in dsymutil; do
15438 if test -n "$ncn_target_tool_prefix"; then
15439 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15440 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15442 $as_echo_n "checking
for $ac_word...
" >&6; }
15443 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15444 $as_echo_n "(cached
) " >&6
15446 if test -n "$DSYMUTIL_FOR_TARGET"; then
15447 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15450 for as_dir in $PATH
15453 test -z "$as_dir" && as_dir=.
15454 for ac_exec_ext in '' $ac_executable_extensions; do
15455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15456 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15457 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15466 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15467 if test -n "$DSYMUTIL_FOR_TARGET"; then
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15469 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15472 $as_echo "no
" >&6; }
15477 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15479 set dummy ${ncn_progname}; ac_word=$2
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15481 $as_echo_n "checking
for $ac_word...
" >&6; }
15482 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15483 $as_echo_n "(cached
) " >&6
15485 if test -n "$DSYMUTIL_FOR_TARGET"; then
15486 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15489 for as_dir in $PATH
15492 test -z "$as_dir" && as_dir=.
15493 for ac_exec_ext in '' $ac_executable_extensions; do
15494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15495 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15496 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15505 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15506 if test -n "$DSYMUTIL_FOR_TARGET"; then
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15508 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15511 $as_echo "no
" >&6; }
15516 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15520 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15522 if test $build = $target ; then
15523 DSYMUTIL_FOR_TARGET="$2"
15525 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15528 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15532 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15538 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15539 if test -n "$with_build_time_tools"; then
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
15541 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
15542 if test -x $with_build_time_tools/ld; then
15543 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15544 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
15546 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15549 $as_echo "no
" >&6; }
15551 elif test $build != $host && test $have_gcc_for_target = yes; then
15552 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15553 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15554 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15557 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15558 # Extract the first word of "ld
", so it can be a program name with args.
15559 set dummy ld; ac_word=$2
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15561 $as_echo_n "checking
for $ac_word...
" >&6; }
15562 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15563 $as_echo_n "(cached
) " >&6
15565 case $LD_FOR_TARGET in
15567 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15571 for as_dir in $gcc_cv_tool_dirs
15574 test -z "$as_dir" && as_dir=.
15575 for ac_exec_ext in '' $ac_executable_extensions; do
15576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15577 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15578 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15588 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15589 if test -n "$LD_FOR_TARGET"; then
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15591 $as_echo "$LD_FOR_TARGET" >&6; }
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15594 $as_echo "no
" >&6; }
15599 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15602 if test -n "$LD_FOR_TARGET"; then
15603 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15604 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15605 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15608 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15609 for ncn_progname in ld; do
15610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15611 set dummy ${ncn_progname}; ac_word=$2
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15613 $as_echo_n "checking
for $ac_word...
" >&6; }
15614 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15615 $as_echo_n "(cached
) " >&6
15617 if test -n "$LD_FOR_TARGET"; then
15618 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15621 for as_dir in $PATH
15624 test -z "$as_dir" && as_dir=.
15625 for ac_exec_ext in '' $ac_executable_extensions; do
15626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15627 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15628 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15637 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15638 if test -n "$LD_FOR_TARGET"; then
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15640 $as_echo "$LD_FOR_TARGET" >&6; }
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15643 $as_echo "no
" >&6; }
15650 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15651 for ncn_progname in ld; do
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15653 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15654 if test -x $with_build_time_tools/${ncn_progname}; then
15655 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15657 $as_echo "yes" >&6; }
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15661 $as_echo "no
" >&6; }
15666 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15667 for ncn_progname in ld; do
15668 if test -n "$ncn_target_tool_prefix"; then
15669 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15670 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15672 $as_echo_n "checking
for $ac_word...
" >&6; }
15673 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15674 $as_echo_n "(cached
) " >&6
15676 if test -n "$LD_FOR_TARGET"; then
15677 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15680 for as_dir in $PATH
15683 test -z "$as_dir" && as_dir=.
15684 for ac_exec_ext in '' $ac_executable_extensions; do
15685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15686 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15687 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15696 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15697 if test -n "$LD_FOR_TARGET"; then
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15699 $as_echo "$LD_FOR_TARGET" >&6; }
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15702 $as_echo "no
" >&6; }
15707 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15709 set dummy ${ncn_progname}; ac_word=$2
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15711 $as_echo_n "checking
for $ac_word...
" >&6; }
15712 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15713 $as_echo_n "(cached
) " >&6
15715 if test -n "$LD_FOR_TARGET"; then
15716 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15719 for as_dir in $PATH
15722 test -z "$as_dir" && as_dir=.
15723 for ac_exec_ext in '' $ac_executable_extensions; do
15724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15725 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15726 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15735 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15736 if test -n "$LD_FOR_TARGET"; then
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15738 $as_echo "$LD_FOR_TARGET" >&6; }
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15741 $as_echo "no
" >&6; }
15746 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15750 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15752 if test $build = $target ; then
15755 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15758 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15762 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15768 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15769 if test -n "$with_build_time_tools"; then
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15771 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15772 if test -x $with_build_time_tools/lipo; then
15773 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15774 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15776 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15779 $as_echo "no
" >&6; }
15781 elif test $build != $host && test $have_gcc_for_target = yes; then
15782 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15783 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15784 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15787 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15788 # Extract the first word of "lipo
", so it can be a program name with args.
15789 set dummy lipo; ac_word=$2
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15791 $as_echo_n "checking
for $ac_word...
" >&6; }
15792 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15793 $as_echo_n "(cached
) " >&6
15795 case $LIPO_FOR_TARGET in
15797 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15801 for as_dir in $gcc_cv_tool_dirs
15804 test -z "$as_dir" && as_dir=.
15805 for ac_exec_ext in '' $ac_executable_extensions; do
15806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15807 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15808 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15818 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15819 if test -n "$LIPO_FOR_TARGET"; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15821 $as_echo "$LIPO_FOR_TARGET" >&6; }
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15824 $as_echo "no
" >&6; }
15829 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15832 if test -n "$LIPO_FOR_TARGET"; then
15833 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15834 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15835 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15838 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15839 for ncn_progname in lipo; do
15840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15841 set dummy ${ncn_progname}; ac_word=$2
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15843 $as_echo_n "checking
for $ac_word...
" >&6; }
15844 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15845 $as_echo_n "(cached
) " >&6
15847 if test -n "$LIPO_FOR_TARGET"; then
15848 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15851 for as_dir in $PATH
15854 test -z "$as_dir" && as_dir=.
15855 for ac_exec_ext in '' $ac_executable_extensions; do
15856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15857 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15858 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15867 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15868 if test -n "$LIPO_FOR_TARGET"; then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15870 $as_echo "$LIPO_FOR_TARGET" >&6; }
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15873 $as_echo "no
" >&6; }
15880 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15881 for ncn_progname in lipo; do
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15883 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15884 if test -x $with_build_time_tools/${ncn_progname}; then
15885 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15887 $as_echo "yes" >&6; }
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15891 $as_echo "no
" >&6; }
15896 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15897 for ncn_progname in lipo; do
15898 if test -n "$ncn_target_tool_prefix"; then
15899 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15900 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15902 $as_echo_n "checking
for $ac_word...
" >&6; }
15903 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15904 $as_echo_n "(cached
) " >&6
15906 if test -n "$LIPO_FOR_TARGET"; then
15907 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15910 for as_dir in $PATH
15913 test -z "$as_dir" && as_dir=.
15914 for ac_exec_ext in '' $ac_executable_extensions; do
15915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15916 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15917 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15926 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15927 if test -n "$LIPO_FOR_TARGET"; then
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15929 $as_echo "$LIPO_FOR_TARGET" >&6; }
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15932 $as_echo "no
" >&6; }
15937 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15939 set dummy ${ncn_progname}; ac_word=$2
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15941 $as_echo_n "checking
for $ac_word...
" >&6; }
15942 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15943 $as_echo_n "(cached
) " >&6
15945 if test -n "$LIPO_FOR_TARGET"; then
15946 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15949 for as_dir in $PATH
15952 test -z "$as_dir" && as_dir=.
15953 for ac_exec_ext in '' $ac_executable_extensions; do
15954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15955 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15956 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15965 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15966 if test -n "$LIPO_FOR_TARGET"; then
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15968 $as_echo "$LIPO_FOR_TARGET" >&6; }
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15971 $as_echo "no
" >&6; }
15976 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15980 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15982 if test $build = $target ; then
15983 LIPO_FOR_TARGET="$2"
15985 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15988 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15992 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15998 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15999 if test -n "$with_build_time_tools"; then
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
16001 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
16002 if test -x $with_build_time_tools/nm; then
16003 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
16004 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
16006 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16009 $as_echo "no
" >&6; }
16011 elif test $build != $host && test $have_gcc_for_target = yes; then
16012 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
16013 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
16014 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16017 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16018 # Extract the first word of "nm
", so it can be a program name with args.
16019 set dummy nm; ac_word=$2
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16021 $as_echo_n "checking
for $ac_word...
" >&6; }
16022 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
16023 $as_echo_n "(cached
) " >&6
16025 case $NM_FOR_TARGET in
16027 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
16030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16031 for as_dir in $gcc_cv_tool_dirs
16034 test -z "$as_dir" && as_dir=.
16035 for ac_exec_ext in '' $ac_executable_extensions; do
16036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16037 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16038 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16048 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16049 if test -n "$NM_FOR_TARGET"; then
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16051 $as_echo "$NM_FOR_TARGET" >&6; }
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16054 $as_echo "no
" >&6; }
16059 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16062 if test -n "$NM_FOR_TARGET"; then
16063 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
16064 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16065 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16068 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16069 for ncn_progname in nm; do
16070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16071 set dummy ${ncn_progname}; ac_word=$2
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16073 $as_echo_n "checking
for $ac_word...
" >&6; }
16074 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16075 $as_echo_n "(cached
) " >&6
16077 if test -n "$NM_FOR_TARGET"; then
16078 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16081 for as_dir in $PATH
16084 test -z "$as_dir" && as_dir=.
16085 for ac_exec_ext in '' $ac_executable_extensions; do
16086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16087 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16088 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16097 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16098 if test -n "$NM_FOR_TARGET"; then
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16100 $as_echo "$NM_FOR_TARGET" >&6; }
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16103 $as_echo "no
" >&6; }
16110 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
16111 for ncn_progname in nm; do
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16113 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16114 if test -x $with_build_time_tools/${ncn_progname}; then
16115 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16117 $as_echo "yes" >&6; }
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16121 $as_echo "no
" >&6; }
16126 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
16127 for ncn_progname in nm; do
16128 if test -n "$ncn_target_tool_prefix"; then
16129 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16130 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16132 $as_echo_n "checking
for $ac_word...
" >&6; }
16133 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16134 $as_echo_n "(cached
) " >&6
16136 if test -n "$NM_FOR_TARGET"; then
16137 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16140 for as_dir in $PATH
16143 test -z "$as_dir" && as_dir=.
16144 for ac_exec_ext in '' $ac_executable_extensions; do
16145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16146 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16147 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16156 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16157 if test -n "$NM_FOR_TARGET"; then
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16159 $as_echo "$NM_FOR_TARGET" >&6; }
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16162 $as_echo "no
" >&6; }
16167 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
16168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16169 set dummy ${ncn_progname}; ac_word=$2
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16171 $as_echo_n "checking
for $ac_word...
" >&6; }
16172 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16173 $as_echo_n "(cached
) " >&6
16175 if test -n "$NM_FOR_TARGET"; then
16176 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16179 for as_dir in $PATH
16182 test -z "$as_dir" && as_dir=.
16183 for ac_exec_ext in '' $ac_executable_extensions; do
16184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16185 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16186 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16195 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16196 if test -n "$NM_FOR_TARGET"; then
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16198 $as_echo "$NM_FOR_TARGET" >&6; }
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16201 $as_echo "no
" >&6; }
16206 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
16210 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
16212 if test $build = $target ; then
16215 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
16218 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
16222 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16228 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16229 if test -n "$with_build_time_tools"; then
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
16231 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
16232 if test -x $with_build_time_tools/objcopy; then
16233 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
16234 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
16236 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16239 $as_echo "no
" >&6; }
16241 elif test $build != $host && test $have_gcc_for_target = yes; then
16242 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
16243 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
16244 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16247 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16248 # Extract the first word of "objcopy
", so it can be a program name with args.
16249 set dummy objcopy; ac_word=$2
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16251 $as_echo_n "checking
for $ac_word...
" >&6; }
16252 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
16253 $as_echo_n "(cached
) " >&6
16255 case $OBJCOPY_FOR_TARGET in
16257 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
16260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16261 for as_dir in $gcc_cv_tool_dirs
16264 test -z "$as_dir" && as_dir=.
16265 for ac_exec_ext in '' $ac_executable_extensions; do
16266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16267 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16268 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16278 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16279 if test -n "$OBJCOPY_FOR_TARGET"; then
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16281 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16284 $as_echo "no
" >&6; }
16289 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16292 if test -n "$OBJCOPY_FOR_TARGET"; then
16293 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16294 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16295 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16298 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16299 for ncn_progname in objcopy; do
16300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16301 set dummy ${ncn_progname}; ac_word=$2
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16303 $as_echo_n "checking
for $ac_word...
" >&6; }
16304 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16305 $as_echo_n "(cached
) " >&6
16307 if test -n "$OBJCOPY_FOR_TARGET"; then
16308 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16311 for as_dir in $PATH
16314 test -z "$as_dir" && as_dir=.
16315 for ac_exec_ext in '' $ac_executable_extensions; do
16316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16317 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16318 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16327 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16328 if test -n "$OBJCOPY_FOR_TARGET"; then
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16330 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16333 $as_echo "no
" >&6; }
16340 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16341 for ncn_progname in objcopy; do
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16343 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16344 if test -x $with_build_time_tools/${ncn_progname}; then
16345 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16347 $as_echo "yes" >&6; }
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16351 $as_echo "no
" >&6; }
16356 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16357 for ncn_progname in objcopy; do
16358 if test -n "$ncn_target_tool_prefix"; then
16359 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16360 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16362 $as_echo_n "checking
for $ac_word...
" >&6; }
16363 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16364 $as_echo_n "(cached
) " >&6
16366 if test -n "$OBJCOPY_FOR_TARGET"; then
16367 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16370 for as_dir in $PATH
16373 test -z "$as_dir" && as_dir=.
16374 for ac_exec_ext in '' $ac_executable_extensions; do
16375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16376 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16377 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16386 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16387 if test -n "$OBJCOPY_FOR_TARGET"; then
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16389 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16392 $as_echo "no
" >&6; }
16397 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16399 set dummy ${ncn_progname}; ac_word=$2
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16401 $as_echo_n "checking
for $ac_word...
" >&6; }
16402 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16403 $as_echo_n "(cached
) " >&6
16405 if test -n "$OBJCOPY_FOR_TARGET"; then
16406 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16409 for as_dir in $PATH
16412 test -z "$as_dir" && as_dir=.
16413 for ac_exec_ext in '' $ac_executable_extensions; do
16414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16415 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16416 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16425 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16426 if test -n "$OBJCOPY_FOR_TARGET"; then
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16428 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16431 $as_echo "no
" >&6; }
16436 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16440 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16442 if test $build = $target ; then
16443 OBJCOPY_FOR_TARGET="$2"
16445 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16448 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16452 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16458 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16459 if test -n "$with_build_time_tools"; then
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
16461 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
16462 if test -x $with_build_time_tools/objdump; then
16463 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16464 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16466 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16469 $as_echo "no
" >&6; }
16471 elif test $build != $host && test $have_gcc_for_target = yes; then
16472 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
16473 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16474 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16477 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16478 # Extract the first word of "objdump
", so it can be a program name with args.
16479 set dummy objdump; ac_word=$2
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16481 $as_echo_n "checking
for $ac_word...
" >&6; }
16482 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
16483 $as_echo_n "(cached
) " >&6
16485 case $OBJDUMP_FOR_TARGET in
16487 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16491 for as_dir in $gcc_cv_tool_dirs
16494 test -z "$as_dir" && as_dir=.
16495 for ac_exec_ext in '' $ac_executable_extensions; do
16496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16497 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16498 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16508 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16509 if test -n "$OBJDUMP_FOR_TARGET"; then
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16511 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16514 $as_echo "no
" >&6; }
16519 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16522 if test -n "$OBJDUMP_FOR_TARGET"; then
16523 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16524 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16525 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16528 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16529 for ncn_progname in objdump; do
16530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16531 set dummy ${ncn_progname}; ac_word=$2
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16533 $as_echo_n "checking
for $ac_word...
" >&6; }
16534 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16535 $as_echo_n "(cached
) " >&6
16537 if test -n "$OBJDUMP_FOR_TARGET"; then
16538 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16541 for as_dir in $PATH
16544 test -z "$as_dir" && as_dir=.
16545 for ac_exec_ext in '' $ac_executable_extensions; do
16546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16547 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16548 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16557 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16558 if test -n "$OBJDUMP_FOR_TARGET"; then
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16560 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16563 $as_echo "no
" >&6; }
16570 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16571 for ncn_progname in objdump; do
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16573 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16574 if test -x $with_build_time_tools/${ncn_progname}; then
16575 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16577 $as_echo "yes" >&6; }
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16581 $as_echo "no
" >&6; }
16586 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16587 for ncn_progname in objdump; do
16588 if test -n "$ncn_target_tool_prefix"; then
16589 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16590 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16592 $as_echo_n "checking
for $ac_word...
" >&6; }
16593 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16594 $as_echo_n "(cached
) " >&6
16596 if test -n "$OBJDUMP_FOR_TARGET"; then
16597 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16600 for as_dir in $PATH
16603 test -z "$as_dir" && as_dir=.
16604 for ac_exec_ext in '' $ac_executable_extensions; do
16605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16606 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16607 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16616 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16617 if test -n "$OBJDUMP_FOR_TARGET"; then
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16619 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16622 $as_echo "no
" >&6; }
16627 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16629 set dummy ${ncn_progname}; ac_word=$2
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16631 $as_echo_n "checking
for $ac_word...
" >&6; }
16632 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16633 $as_echo_n "(cached
) " >&6
16635 if test -n "$OBJDUMP_FOR_TARGET"; then
16636 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16639 for as_dir in $PATH
16642 test -z "$as_dir" && as_dir=.
16643 for ac_exec_ext in '' $ac_executable_extensions; do
16644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16645 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16646 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16655 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16656 if test -n "$OBJDUMP_FOR_TARGET"; then
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16658 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16661 $as_echo "no
" >&6; }
16666 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16670 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16672 if test $build = $target ; then
16673 OBJDUMP_FOR_TARGET="$2"
16675 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16678 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16682 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16688 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16689 if test -n "$with_build_time_tools"; then
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16691 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16692 if test -x $with_build_time_tools/otool; then
16693 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16694 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16696 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16699 $as_echo "no
" >&6; }
16701 elif test $build != $host && test $have_gcc_for_target = yes; then
16702 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16703 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16704 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16707 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16708 # Extract the first word of "otool
", so it can be a program name with args.
16709 set dummy otool; ac_word=$2
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16711 $as_echo_n "checking
for $ac_word...
" >&6; }
16712 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16713 $as_echo_n "(cached
) " >&6
16715 case $OTOOL_FOR_TARGET in
16717 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16721 for as_dir in $gcc_cv_tool_dirs
16724 test -z "$as_dir" && as_dir=.
16725 for ac_exec_ext in '' $ac_executable_extensions; do
16726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16727 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16728 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16738 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16739 if test -n "$OTOOL_FOR_TARGET"; then
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16741 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16744 $as_echo "no
" >&6; }
16749 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16752 if test -n "$OTOOL_FOR_TARGET"; then
16753 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16754 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16755 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16758 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16759 for ncn_progname in otool; do
16760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16761 set dummy ${ncn_progname}; ac_word=$2
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16763 $as_echo_n "checking
for $ac_word...
" >&6; }
16764 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16765 $as_echo_n "(cached
) " >&6
16767 if test -n "$OTOOL_FOR_TARGET"; then
16768 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16771 for as_dir in $PATH
16774 test -z "$as_dir" && as_dir=.
16775 for ac_exec_ext in '' $ac_executable_extensions; do
16776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16777 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16778 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16787 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16788 if test -n "$OTOOL_FOR_TARGET"; then
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16790 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16793 $as_echo "no
" >&6; }
16800 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16801 for ncn_progname in otool; do
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16803 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16804 if test -x $with_build_time_tools/${ncn_progname}; then
16805 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16807 $as_echo "yes" >&6; }
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16811 $as_echo "no
" >&6; }
16816 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16817 for ncn_progname in otool; do
16818 if test -n "$ncn_target_tool_prefix"; then
16819 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16820 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16822 $as_echo_n "checking
for $ac_word...
" >&6; }
16823 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16824 $as_echo_n "(cached
) " >&6
16826 if test -n "$OTOOL_FOR_TARGET"; then
16827 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16830 for as_dir in $PATH
16833 test -z "$as_dir" && as_dir=.
16834 for ac_exec_ext in '' $ac_executable_extensions; do
16835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16836 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16837 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16846 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16847 if test -n "$OTOOL_FOR_TARGET"; then
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16849 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16852 $as_echo "no
" >&6; }
16857 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16859 set dummy ${ncn_progname}; ac_word=$2
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16861 $as_echo_n "checking
for $ac_word...
" >&6; }
16862 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16863 $as_echo_n "(cached
) " >&6
16865 if test -n "$OTOOL_FOR_TARGET"; then
16866 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16869 for as_dir in $PATH
16872 test -z "$as_dir" && as_dir=.
16873 for ac_exec_ext in '' $ac_executable_extensions; do
16874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16875 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16876 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16885 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16886 if test -n "$OTOOL_FOR_TARGET"; then
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16888 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16891 $as_echo "no
" >&6; }
16896 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16900 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16902 if test $build = $target ; then
16903 OTOOL_FOR_TARGET="$2"
16905 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16908 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16912 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16918 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16919 if test -n "$with_build_time_tools"; then
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16921 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16922 if test -x $with_build_time_tools/ranlib; then
16923 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16924 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16926 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16929 $as_echo "no
" >&6; }
16931 elif test $build != $host && test $have_gcc_for_target = yes; then
16932 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16933 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16934 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16937 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16938 # Extract the first word of "ranlib
", so it can be a program name with args.
16939 set dummy ranlib; ac_word=$2
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16941 $as_echo_n "checking
for $ac_word...
" >&6; }
16942 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16943 $as_echo_n "(cached
) " >&6
16945 case $RANLIB_FOR_TARGET in
16947 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16951 for as_dir in $gcc_cv_tool_dirs
16954 test -z "$as_dir" && as_dir=.
16955 for ac_exec_ext in '' $ac_executable_extensions; do
16956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16957 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16958 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16968 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16969 if test -n "$RANLIB_FOR_TARGET"; then
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16971 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16974 $as_echo "no
" >&6; }
16979 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16982 if test -n "$RANLIB_FOR_TARGET"; then
16983 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16984 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16985 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16988 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16989 for ncn_progname in ranlib; do
16990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16991 set dummy ${ncn_progname}; ac_word=$2
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16993 $as_echo_n "checking
for $ac_word...
" >&6; }
16994 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16995 $as_echo_n "(cached
) " >&6
16997 if test -n "$RANLIB_FOR_TARGET"; then
16998 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17001 for as_dir in $PATH
17004 test -z "$as_dir" && as_dir=.
17005 for ac_exec_ext in '' $ac_executable_extensions; do
17006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17007 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17008 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17017 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17018 if test -n "$RANLIB_FOR_TARGET"; then
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
17020 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17023 $as_echo "no
" >&6; }
17030 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
17031 for ncn_progname in ranlib; do
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17033 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17034 if test -x $with_build_time_tools/${ncn_progname}; then
17035 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17037 $as_echo "yes" >&6; }
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17041 $as_echo "no
" >&6; }
17046 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17047 for ncn_progname in ranlib; do
17048 if test -n "$ncn_target_tool_prefix"; then
17049 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17050 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17052 $as_echo_n "checking
for $ac_word...
" >&6; }
17053 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17054 $as_echo_n "(cached
) " >&6
17056 if test -n "$RANLIB_FOR_TARGET"; then
17057 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17060 for as_dir in $PATH
17063 test -z "$as_dir" && as_dir=.
17064 for ac_exec_ext in '' $ac_executable_extensions; do
17065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17066 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17067 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17076 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17077 if test -n "$RANLIB_FOR_TARGET"; then
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
17079 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17082 $as_echo "no
" >&6; }
17087 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
17088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17089 set dummy ${ncn_progname}; ac_word=$2
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17091 $as_echo_n "checking
for $ac_word...
" >&6; }
17092 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17093 $as_echo_n "(cached
) " >&6
17095 if test -n "$RANLIB_FOR_TARGET"; then
17096 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17099 for as_dir in $PATH
17102 test -z "$as_dir" && as_dir=.
17103 for ac_exec_ext in '' $ac_executable_extensions; do
17104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17105 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17106 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17115 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17116 if test -n "$RANLIB_FOR_TARGET"; then
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
17118 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17121 $as_echo "no
" >&6; }
17126 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
17130 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
17132 if test $build = $target ; then
17133 RANLIB_FOR_TARGET="$2"
17135 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
17138 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
17142 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17148 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17149 if test -n "$with_build_time_tools"; then
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
17151 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
17152 if test -x $with_build_time_tools/readelf; then
17153 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
17154 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
17156 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17159 $as_echo "no
" >&6; }
17161 elif test $build != $host && test $have_gcc_for_target = yes; then
17162 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
17163 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
17164 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17167 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17168 # Extract the first word of "readelf
", so it can be a program name with args.
17169 set dummy readelf; ac_word=$2
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17171 $as_echo_n "checking
for $ac_word...
" >&6; }
17172 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
17173 $as_echo_n "(cached
) " >&6
17175 case $READELF_FOR_TARGET in
17177 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
17180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17181 for as_dir in $gcc_cv_tool_dirs
17184 test -z "$as_dir" && as_dir=.
17185 for ac_exec_ext in '' $ac_executable_extensions; do
17186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17187 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17188 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17198 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17199 if test -n "$READELF_FOR_TARGET"; then
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17201 $as_echo "$READELF_FOR_TARGET" >&6; }
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17204 $as_echo "no
" >&6; }
17209 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17212 if test -n "$READELF_FOR_TARGET"; then
17213 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
17214 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17215 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17218 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
17219 for ncn_progname in readelf; do
17220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17221 set dummy ${ncn_progname}; ac_word=$2
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17223 $as_echo_n "checking
for $ac_word...
" >&6; }
17224 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17225 $as_echo_n "(cached
) " >&6
17227 if test -n "$READELF_FOR_TARGET"; then
17228 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17231 for as_dir in $PATH
17234 test -z "$as_dir" && as_dir=.
17235 for ac_exec_ext in '' $ac_executable_extensions; do
17236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17237 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17238 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17247 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17248 if test -n "$READELF_FOR_TARGET"; then
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17250 $as_echo "$READELF_FOR_TARGET" >&6; }
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17253 $as_echo "no
" >&6; }
17260 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
17261 for ncn_progname in readelf; do
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17263 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17264 if test -x $with_build_time_tools/${ncn_progname}; then
17265 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17267 $as_echo "yes" >&6; }
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17271 $as_echo "no
" >&6; }
17276 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
17277 for ncn_progname in readelf; do
17278 if test -n "$ncn_target_tool_prefix"; then
17279 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17280 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17282 $as_echo_n "checking
for $ac_word...
" >&6; }
17283 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17284 $as_echo_n "(cached
) " >&6
17286 if test -n "$READELF_FOR_TARGET"; then
17287 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17290 for as_dir in $PATH
17293 test -z "$as_dir" && as_dir=.
17294 for ac_exec_ext in '' $ac_executable_extensions; do
17295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17296 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17297 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17306 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17307 if test -n "$READELF_FOR_TARGET"; then
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17309 $as_echo "$READELF_FOR_TARGET" >&6; }
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17312 $as_echo "no
" >&6; }
17317 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
17318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17319 set dummy ${ncn_progname}; ac_word=$2
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17321 $as_echo_n "checking
for $ac_word...
" >&6; }
17322 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17323 $as_echo_n "(cached
) " >&6
17325 if test -n "$READELF_FOR_TARGET"; then
17326 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17329 for as_dir in $PATH
17332 test -z "$as_dir" && as_dir=.
17333 for ac_exec_ext in '' $ac_executable_extensions; do
17334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17335 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17336 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17345 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17346 if test -n "$READELF_FOR_TARGET"; then
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17348 $as_echo "$READELF_FOR_TARGET" >&6; }
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17351 $as_echo "no
" >&6; }
17356 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17360 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17362 if test $build = $target ; then
17363 READELF_FOR_TARGET="$2"
17365 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17368 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17372 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17378 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17379 if test -n "$with_build_time_tools"; then
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
17381 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
17382 if test -x $with_build_time_tools/strip; then
17383 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17384 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
17386 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17389 $as_echo "no
" >&6; }
17391 elif test $build != $host && test $have_gcc_for_target = yes; then
17392 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
17393 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17394 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17397 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17398 # Extract the first word of "strip
", so it can be a program name with args.
17399 set dummy strip; ac_word=$2
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17401 $as_echo_n "checking
for $ac_word...
" >&6; }
17402 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
17403 $as_echo_n "(cached
) " >&6
17405 case $STRIP_FOR_TARGET in
17407 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17411 for as_dir in $gcc_cv_tool_dirs
17414 test -z "$as_dir" && as_dir=.
17415 for ac_exec_ext in '' $ac_executable_extensions; do
17416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17417 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17418 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17428 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17429 if test -n "$STRIP_FOR_TARGET"; then
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17431 $as_echo "$STRIP_FOR_TARGET" >&6; }
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17434 $as_echo "no
" >&6; }
17439 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17442 if test -n "$STRIP_FOR_TARGET"; then
17443 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17444 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17445 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17448 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17449 for ncn_progname in strip; do
17450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17451 set dummy ${ncn_progname}; ac_word=$2
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17453 $as_echo_n "checking
for $ac_word...
" >&6; }
17454 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17455 $as_echo_n "(cached
) " >&6
17457 if test -n "$STRIP_FOR_TARGET"; then
17458 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17461 for as_dir in $PATH
17464 test -z "$as_dir" && as_dir=.
17465 for ac_exec_ext in '' $ac_executable_extensions; do
17466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17467 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17468 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17477 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17478 if test -n "$STRIP_FOR_TARGET"; then
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17480 $as_echo "$STRIP_FOR_TARGET" >&6; }
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17483 $as_echo "no
" >&6; }
17490 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17491 for ncn_progname in strip; do
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17493 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17494 if test -x $with_build_time_tools/${ncn_progname}; then
17495 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17497 $as_echo "yes" >&6; }
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17501 $as_echo "no
" >&6; }
17506 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17507 for ncn_progname in strip; do
17508 if test -n "$ncn_target_tool_prefix"; then
17509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17510 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17512 $as_echo_n "checking
for $ac_word...
" >&6; }
17513 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17514 $as_echo_n "(cached
) " >&6
17516 if test -n "$STRIP_FOR_TARGET"; then
17517 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17520 for as_dir in $PATH
17523 test -z "$as_dir" && as_dir=.
17524 for ac_exec_ext in '' $ac_executable_extensions; do
17525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17526 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17527 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17536 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17537 if test -n "$STRIP_FOR_TARGET"; then
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17539 $as_echo "$STRIP_FOR_TARGET" >&6; }
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17542 $as_echo "no
" >&6; }
17547 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17549 set dummy ${ncn_progname}; ac_word=$2
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17551 $as_echo_n "checking
for $ac_word...
" >&6; }
17552 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17553 $as_echo_n "(cached
) " >&6
17555 if test -n "$STRIP_FOR_TARGET"; then
17556 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17559 for as_dir in $PATH
17562 test -z "$as_dir" && as_dir=.
17563 for ac_exec_ext in '' $ac_executable_extensions; do
17564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17565 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17566 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17575 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17576 if test -n "$STRIP_FOR_TARGET"; then
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17578 $as_echo "$STRIP_FOR_TARGET" >&6; }
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17581 $as_echo "no
" >&6; }
17586 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17590 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17592 if test $build = $target ; then
17593 STRIP_FOR_TARGET="$2"
17595 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17598 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17602 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17608 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17609 if test -n "$with_build_time_tools"; then
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
17611 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
17612 if test -x $with_build_time_tools/windres; then
17613 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17614 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17616 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17619 $as_echo "no
" >&6; }
17621 elif test $build != $host && test $have_gcc_for_target = yes; then
17622 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17623 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17624 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17627 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17628 # Extract the first word of "windres
", so it can be a program name with args.
17629 set dummy windres; ac_word=$2
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17631 $as_echo_n "checking
for $ac_word...
" >&6; }
17632 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17633 $as_echo_n "(cached
) " >&6
17635 case $WINDRES_FOR_TARGET in
17637 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17641 for as_dir in $gcc_cv_tool_dirs
17644 test -z "$as_dir" && as_dir=.
17645 for ac_exec_ext in '' $ac_executable_extensions; do
17646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17647 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17648 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17658 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17659 if test -n "$WINDRES_FOR_TARGET"; then
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17661 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17664 $as_echo "no
" >&6; }
17669 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17672 if test -n "$WINDRES_FOR_TARGET"; then
17673 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17674 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17675 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17678 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17679 for ncn_progname in windres; do
17680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17681 set dummy ${ncn_progname}; ac_word=$2
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17683 $as_echo_n "checking
for $ac_word...
" >&6; }
17684 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17685 $as_echo_n "(cached
) " >&6
17687 if test -n "$WINDRES_FOR_TARGET"; then
17688 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17691 for as_dir in $PATH
17694 test -z "$as_dir" && as_dir=.
17695 for ac_exec_ext in '' $ac_executable_extensions; do
17696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17697 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17698 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17707 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17708 if test -n "$WINDRES_FOR_TARGET"; then
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17710 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17713 $as_echo "no
" >&6; }
17720 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17721 for ncn_progname in windres; do
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17723 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17724 if test -x $with_build_time_tools/${ncn_progname}; then
17725 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17727 $as_echo "yes" >&6; }
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17731 $as_echo "no
" >&6; }
17736 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17737 for ncn_progname in windres; do
17738 if test -n "$ncn_target_tool_prefix"; then
17739 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17740 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17742 $as_echo_n "checking
for $ac_word...
" >&6; }
17743 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17744 $as_echo_n "(cached
) " >&6
17746 if test -n "$WINDRES_FOR_TARGET"; then
17747 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17750 for as_dir in $PATH
17753 test -z "$as_dir" && as_dir=.
17754 for ac_exec_ext in '' $ac_executable_extensions; do
17755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17756 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17757 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17766 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17767 if test -n "$WINDRES_FOR_TARGET"; then
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17769 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17772 $as_echo "no
" >&6; }
17777 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17779 set dummy ${ncn_progname}; ac_word=$2
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17781 $as_echo_n "checking
for $ac_word...
" >&6; }
17782 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17783 $as_echo_n "(cached
) " >&6
17785 if test -n "$WINDRES_FOR_TARGET"; then
17786 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17789 for as_dir in $PATH
17792 test -z "$as_dir" && as_dir=.
17793 for ac_exec_ext in '' $ac_executable_extensions; do
17794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17795 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17796 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17805 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17806 if test -n "$WINDRES_FOR_TARGET"; then
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17808 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17811 $as_echo "no
" >&6; }
17816 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17820 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17822 if test $build = $target ; then
17823 WINDRES_FOR_TARGET="$2"
17825 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17828 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17832 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17838 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17839 if test -n "$with_build_time_tools"; then
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17841 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17842 if test -x $with_build_time_tools/windmc; then
17843 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17844 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17846 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17849 $as_echo "no
" >&6; }
17851 elif test $build != $host && test $have_gcc_for_target = yes; then
17852 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17853 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17854 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17857 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17858 # Extract the first word of "windmc
", so it can be a program name with args.
17859 set dummy windmc; ac_word=$2
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17861 $as_echo_n "checking
for $ac_word...
" >&6; }
17862 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17863 $as_echo_n "(cached
) " >&6
17865 case $WINDMC_FOR_TARGET in
17867 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17871 for as_dir in $gcc_cv_tool_dirs
17874 test -z "$as_dir" && as_dir=.
17875 for ac_exec_ext in '' $ac_executable_extensions; do
17876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17877 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17878 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17888 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17889 if test -n "$WINDMC_FOR_TARGET"; then
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17891 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17894 $as_echo "no
" >&6; }
17899 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17902 if test -n "$WINDMC_FOR_TARGET"; then
17903 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17904 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17905 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17908 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17909 for ncn_progname in windmc; do
17910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17911 set dummy ${ncn_progname}; ac_word=$2
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17913 $as_echo_n "checking
for $ac_word...
" >&6; }
17914 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17915 $as_echo_n "(cached
) " >&6
17917 if test -n "$WINDMC_FOR_TARGET"; then
17918 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17921 for as_dir in $PATH
17924 test -z "$as_dir" && as_dir=.
17925 for ac_exec_ext in '' $ac_executable_extensions; do
17926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17927 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17928 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17937 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17938 if test -n "$WINDMC_FOR_TARGET"; then
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17940 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17943 $as_echo "no
" >&6; }
17950 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17951 for ncn_progname in windmc; do
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17953 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17954 if test -x $with_build_time_tools/${ncn_progname}; then
17955 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17957 $as_echo "yes" >&6; }
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17961 $as_echo "no
" >&6; }
17966 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17967 for ncn_progname in windmc; do
17968 if test -n "$ncn_target_tool_prefix"; then
17969 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17970 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17972 $as_echo_n "checking
for $ac_word...
" >&6; }
17973 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17974 $as_echo_n "(cached
) " >&6
17976 if test -n "$WINDMC_FOR_TARGET"; then
17977 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17980 for as_dir in $PATH
17983 test -z "$as_dir" && as_dir=.
17984 for ac_exec_ext in '' $ac_executable_extensions; do
17985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17986 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17987 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17996 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17997 if test -n "$WINDMC_FOR_TARGET"; then
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17999 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18002 $as_echo "no
" >&6; }
18007 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
18008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18009 set dummy ${ncn_progname}; ac_word=$2
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18011 $as_echo_n "checking
for $ac_word...
" >&6; }
18012 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18013 $as_echo_n "(cached
) " >&6
18015 if test -n "$WINDMC_FOR_TARGET"; then
18016 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18019 for as_dir in $PATH
18022 test -z "$as_dir" && as_dir=.
18023 for ac_exec_ext in '' $ac_executable_extensions; do
18024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18025 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18026 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18035 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18036 if test -n "$WINDMC_FOR_TARGET"; then
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
18038 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18041 $as_echo "no
" >&6; }
18046 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
18050 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
18052 if test $build = $target ; then
18053 WINDMC_FOR_TARGET="$2"
18055 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
18058 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
18062 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18066 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
18069 $as_echo_n "checking where to
find the target
ar...
" >&6; }
18070 if test "x
${build}" != "x
${host}" ; then
18071 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
18072 # We already found the complete path
18073 ac_dir=`dirname $AR_FOR_TARGET`
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18075 $as_echo "pre-installed
in $ac_dir" >&6; }
18077 # Canadian cross, just use what we found
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18079 $as_echo "pre-installed
" >&6; }
18083 case " ${configdirs} " in
18088 if test $ok = yes; then
18089 # An in-tree tool is available and we can use it
18090 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18092 $as_echo "just compiled
" >&6; }
18093 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
18094 # We already found the complete path
18095 ac_dir=`dirname $AR_FOR_TARGET`
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18097 $as_echo "pre-installed
in $ac_dir" >&6; }
18098 elif test "x
$target" = "x
$host"; then
18099 # We can use an host tool
18100 AR_FOR_TARGET='$(AR)'
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18102 $as_echo "host tool
" >&6; }
18104 # We need a cross tool
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18106 $as_echo "pre-installed
" >&6; }
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
18111 $as_echo_n "checking where to
find the target as...
" >&6; }
18112 if test "x
${build}" != "x
${host}" ; then
18113 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
18114 # We already found the complete path
18115 ac_dir=`dirname $AS_FOR_TARGET`
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18117 $as_echo "pre-installed
in $ac_dir" >&6; }
18119 # Canadian cross, just use what we found
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18121 $as_echo "pre-installed
" >&6; }
18125 case " ${configdirs} " in
18130 if test $ok = yes; then
18131 # An in-tree tool is available and we can use it
18132 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18134 $as_echo "just compiled
" >&6; }
18135 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
18136 # We already found the complete path
18137 ac_dir=`dirname $AS_FOR_TARGET`
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18139 $as_echo "pre-installed
in $ac_dir" >&6; }
18140 elif test "x
$target" = "x
$host"; then
18141 # We can use an host tool
18142 AS_FOR_TARGET='$(AS)'
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18144 $as_echo "host tool
" >&6; }
18146 # We need a cross tool
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18148 $as_echo "pre-installed
" >&6; }
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
18153 $as_echo_n "checking where to
find the target cc...
" >&6; }
18154 if test "x
${build}" != "x
${host}" ; then
18155 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
18156 # We already found the complete path
18157 ac_dir=`dirname $CC_FOR_TARGET`
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18159 $as_echo "pre-installed
in $ac_dir" >&6; }
18161 # Canadian cross, just use what we found
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18163 $as_echo "pre-installed
" >&6; }
18167 case " ${configdirs} " in
18172 if test $ok = yes; then
18173 # An in-tree tool is available and we can use it
18174 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18176 $as_echo "just compiled
" >&6; }
18177 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
18178 # We already found the complete path
18179 ac_dir=`dirname $CC_FOR_TARGET`
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18181 $as_echo "pre-installed
in $ac_dir" >&6; }
18182 elif test "x
$target" = "x
$host"; then
18183 # We can use an host tool
18184 CC_FOR_TARGET='$(CC)'
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18186 $as_echo "host tool
" >&6; }
18188 # We need a cross tool
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18190 $as_echo "pre-installed
" >&6; }
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
18195 $as_echo_n "checking where to
find the target c
++...
" >&6; }
18196 if test "x
${build}" != "x
${host}" ; then
18197 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
18198 # We already found the complete path
18199 ac_dir=`dirname $CXX_FOR_TARGET`
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18201 $as_echo "pre-installed
in $ac_dir" >&6; }
18203 # Canadian cross, just use what we found
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18205 $as_echo "pre-installed
" >&6; }
18209 case " ${configdirs} " in
18213 case ,${enable_languages}, in
18217 if test $ok = yes; then
18218 # An in-tree tool is available and we can use it
18219 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'
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18221 $as_echo "just compiled
" >&6; }
18222 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
18223 # We already found the complete path
18224 ac_dir=`dirname $CXX_FOR_TARGET`
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18226 $as_echo "pre-installed
in $ac_dir" >&6; }
18227 elif test "x
$target" = "x
$host"; then
18228 # We can use an host tool
18229 CXX_FOR_TARGET='$(CXX)'
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18231 $as_echo "host tool
" >&6; }
18233 # We need a cross tool
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18235 $as_echo "pre-installed
" >&6; }
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
18240 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
18241 if test "x
${build}" != "x
${host}" ; then
18242 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
18243 # We already found the complete path
18244 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18246 $as_echo "pre-installed
in $ac_dir" >&6; }
18248 # Canadian cross, just use what we found
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18250 $as_echo "pre-installed
" >&6; }
18254 case " ${configdirs} " in
18258 case ,${enable_languages}, in
18262 if test $ok = yes; then
18263 # An in-tree tool is available and we can use it
18264 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'
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18266 $as_echo "just compiled
" >&6; }
18267 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
18268 # We already found the complete path
18269 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18271 $as_echo "pre-installed
in $ac_dir" >&6; }
18272 elif test "x
$target" = "x
$host"; then
18273 # We can use an host tool
18274 RAW_CXX_FOR_TARGET='$(CXX)'
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18276 $as_echo "host tool
" >&6; }
18278 # We need a cross tool
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18280 $as_echo "pre-installed
" >&6; }
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
18285 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
18286 if test "x
${build}" != "x
${host}" ; then
18287 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18288 # We already found the complete path
18289 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18291 $as_echo "pre-installed
in $ac_dir" >&6; }
18293 # Canadian cross, just use what we found
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18295 $as_echo "pre-installed
" >&6; }
18299 case " ${configdirs} " in
18304 if test $ok = yes; then
18305 # An in-tree tool is available and we can use it
18306 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18308 $as_echo "just compiled
" >&6; }
18309 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18310 # We already found the complete path
18311 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18313 $as_echo "pre-installed
in $ac_dir" >&6; }
18314 elif test "x
$target" = "x
$host"; then
18315 # We can use an host tool
18316 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18318 $as_echo "host tool
" >&6; }
18320 # We need a cross tool
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18322 $as_echo "pre-installed
" >&6; }
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
18327 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
18328 if test "x
${build}" != "x
${host}" ; then
18329 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
18330 # We already found the complete path
18331 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18333 $as_echo "pre-installed
in $ac_dir" >&6; }
18335 # Canadian cross, just use what we found
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18337 $as_echo "pre-installed
" >&6; }
18340 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
18341 # We already found the complete path
18342 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18344 $as_echo "pre-installed
in $ac_dir" >&6; }
18345 elif test "x
$target" = "x
$host"; then
18346 # We can use an host tool
18347 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18349 $as_echo "host tool
" >&6; }
18351 # We need a cross tool
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18353 $as_echo "pre-installed
" >&6; }
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
18358 $as_echo_n "checking where to
find the target gcc...
" >&6; }
18359 if test "x
${build}" != "x
${host}" ; then
18360 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
18361 # We already found the complete path
18362 ac_dir=`dirname $GCC_FOR_TARGET`
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18364 $as_echo "pre-installed
in $ac_dir" >&6; }
18366 # Canadian cross, just use what we found
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18368 $as_echo "pre-installed
" >&6; }
18372 case " ${configdirs} " in
18377 if test $ok = yes; then
18378 # An in-tree tool is available and we can use it
18379 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18381 $as_echo "just compiled
" >&6; }
18382 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
18383 # We already found the complete path
18384 ac_dir=`dirname $GCC_FOR_TARGET`
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18386 $as_echo "pre-installed
in $ac_dir" >&6; }
18387 elif test "x
$target" = "x
$host"; then
18388 # We can use an host tool
18389 GCC_FOR_TARGET='$()'
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18391 $as_echo "host tool
" >&6; }
18393 # We need a cross tool
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18395 $as_echo "pre-installed
" >&6; }
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
18400 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
18401 if test "x
${build}" != "x
${host}" ; then
18402 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
18403 # We already found the complete path
18404 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18406 $as_echo "pre-installed
in $ac_dir" >&6; }
18408 # Canadian cross, just use what we found
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18410 $as_echo "pre-installed
" >&6; }
18414 case " ${configdirs} " in
18418 case ,${enable_languages}, in
18422 if test $ok = yes; then
18423 # An in-tree tool is available and we can use it
18424 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18426 $as_echo "just compiled
" >&6; }
18427 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
18428 # We already found the complete path
18429 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18431 $as_echo "pre-installed
in $ac_dir" >&6; }
18432 elif test "x
$target" = "x
$host"; then
18433 # We can use an host tool
18434 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18436 $as_echo "host tool
" >&6; }
18438 # We need a cross tool
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18440 $as_echo "pre-installed
" >&6; }
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
18445 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
18446 if test "x
${build}" != "x
${host}" ; then
18447 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
18448 # We already found the complete path
18449 ac_dir=`dirname $GOC_FOR_TARGET`
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18451 $as_echo "pre-installed
in $ac_dir" >&6; }
18453 # Canadian cross, just use what we found
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18455 $as_echo "pre-installed
" >&6; }
18459 case " ${configdirs} " in
18463 case ,${enable_languages}, in
18467 if test $ok = yes; then
18468 # An in-tree tool is available and we can use it
18469 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18471 $as_echo "just compiled
" >&6; }
18472 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
18473 # We already found the complete path
18474 ac_dir=`dirname $GOC_FOR_TARGET`
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18476 $as_echo "pre-installed
in $ac_dir" >&6; }
18477 elif test "x
$target" = "x
$host"; then
18478 # We can use an host tool
18479 GOC_FOR_TARGET='$(GOC)'
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18481 $as_echo "host tool
" >&6; }
18483 # We need a cross tool
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18485 $as_echo "pre-installed
" >&6; }
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
18490 $as_echo_n "checking where to
find the target gdc...
" >&6; }
18491 if test "x
${build}" != "x
${host}" ; then
18492 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18493 # We already found the complete path
18494 ac_dir=`dirname $GDC_FOR_TARGET`
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18496 $as_echo "pre-installed
in $ac_dir" >&6; }
18498 # Canadian cross, just use what we found
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18500 $as_echo "pre-installed
" >&6; }
18504 case " ${configdirs} " in
18508 case ,${enable_languages}, in
18512 if test $ok = yes; then
18513 # An in-tree tool is available and we can use it
18514 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18516 $as_echo "just compiled
" >&6; }
18517 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18518 # We already found the complete path
18519 ac_dir=`dirname $GDC_FOR_TARGET`
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18521 $as_echo "pre-installed
in $ac_dir" >&6; }
18522 elif test "x
$target" = "x
$host"; then
18523 # We can use an host tool
18524 GDC_FOR_TARGET='$(GDC)'
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18526 $as_echo "host tool
" >&6; }
18528 # We need a cross tool
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18530 $as_echo "pre-installed
" >&6; }
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gm2
" >&5
18535 $as_echo_n "checking where to
find the target gm2...
" >&6; }
18536 if test "x
${build}" != "x
${host}" ; then
18537 if expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18538 # We already found the complete path
18539 ac_dir=`dirname $GM2_FOR_TARGET`
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18541 $as_echo "pre-installed
in $ac_dir" >&6; }
18543 # Canadian cross, just use what we found
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18545 $as_echo "pre-installed
" >&6; }
18549 case " ${configdirs} " in
18553 case ,${enable_languages}, in
18557 if test $ok = yes; then
18558 # An in-tree tool is available and we can use it
18559 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18561 $as_echo "just compiled
" >&6; }
18562 elif expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18563 # We already found the complete path
18564 ac_dir=`dirname $GM2_FOR_TARGET`
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18566 $as_echo "pre-installed
in $ac_dir" >&6; }
18567 elif test "x
$target" = "x
$host"; then
18568 # We can use an host tool
18569 GM2_FOR_TARGET='$(GM2)'
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18571 $as_echo "host tool
" >&6; }
18573 # We need a cross tool
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18575 $as_echo "pre-installed
" >&6; }
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
18580 $as_echo_n "checking where to
find the target ld...
" >&6; }
18581 if test "x
${build}" != "x
${host}" ; then
18582 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18583 # We already found the complete path
18584 ac_dir=`dirname $LD_FOR_TARGET`
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18586 $as_echo "pre-installed
in $ac_dir" >&6; }
18588 # Canadian cross, just use what we found
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18590 $as_echo "pre-installed
" >&6; }
18594 case " ${configdirs} " in
18599 if test $ok = yes; then
18600 # An in-tree tool is available and we can use it
18601 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18603 $as_echo "just compiled
" >&6; }
18604 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18605 # We already found the complete path
18606 ac_dir=`dirname $LD_FOR_TARGET`
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18608 $as_echo "pre-installed
in $ac_dir" >&6; }
18609 elif test "x
$target" = "x
$host"; then
18610 # We can use an host tool
18611 LD_FOR_TARGET='$(LD)'
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18613 $as_echo "host tool
" >&6; }
18615 # We need a cross tool
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18617 $as_echo "pre-installed
" >&6; }
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
18622 $as_echo_n "checking where to
find the target lipo...
" >&6; }
18623 if test "x
${build}" != "x
${host}" ; then
18624 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18625 # We already found the complete path
18626 ac_dir=`dirname $LIPO_FOR_TARGET`
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18628 $as_echo "pre-installed
in $ac_dir" >&6; }
18630 # Canadian cross, just use what we found
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18632 $as_echo "pre-installed
" >&6; }
18635 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18636 # We already found the complete path
18637 ac_dir=`dirname $LIPO_FOR_TARGET`
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18639 $as_echo "pre-installed
in $ac_dir" >&6; }
18640 elif test "x
$target" = "x
$host"; then
18641 # We can use an host tool
18642 LIPO_FOR_TARGET='$(LIPO)'
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18644 $as_echo "host tool
" >&6; }
18646 # We need a cross tool
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18648 $as_echo "pre-installed
" >&6; }
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
18653 $as_echo_n "checking where to
find the target nm...
" >&6; }
18654 if test "x
${build}" != "x
${host}" ; then
18655 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18656 # We already found the complete path
18657 ac_dir=`dirname $NM_FOR_TARGET`
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18659 $as_echo "pre-installed
in $ac_dir" >&6; }
18661 # Canadian cross, just use what we found
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18663 $as_echo "pre-installed
" >&6; }
18667 case " ${configdirs} " in
18672 if test $ok = yes; then
18673 # An in-tree tool is available and we can use it
18674 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18676 $as_echo "just compiled
" >&6; }
18677 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18678 # We already found the complete path
18679 ac_dir=`dirname $NM_FOR_TARGET`
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18681 $as_echo "pre-installed
in $ac_dir" >&6; }
18682 elif test "x
$target" = "x
$host"; then
18683 # We can use an host tool
18684 NM_FOR_TARGET='$(NM)'
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18686 $as_echo "host tool
" >&6; }
18688 # We need a cross tool
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18690 $as_echo "pre-installed
" >&6; }
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
18695 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
18696 if test "x
${build}" != "x
${host}" ; then
18697 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18698 # We already found the complete path
18699 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18701 $as_echo "pre-installed
in $ac_dir" >&6; }
18703 # Canadian cross, just use what we found
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18705 $as_echo "pre-installed
" >&6; }
18709 case " ${configdirs} " in
18714 if test $ok = yes; then
18715 # An in-tree tool is available and we can use it
18716 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18718 $as_echo "just compiled
" >&6; }
18719 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18720 # We already found the complete path
18721 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18723 $as_echo "pre-installed
in $ac_dir" >&6; }
18724 elif test "x
$target" = "x
$host"; then
18725 # We can use an host tool
18726 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18728 $as_echo "host tool
" >&6; }
18730 # We need a cross tool
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18732 $as_echo "pre-installed
" >&6; }
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
18737 $as_echo_n "checking where to
find the target objdump...
" >&6; }
18738 if test "x
${build}" != "x
${host}" ; then
18739 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18740 # We already found the complete path
18741 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18743 $as_echo "pre-installed
in $ac_dir" >&6; }
18745 # Canadian cross, just use what we found
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18747 $as_echo "pre-installed
" >&6; }
18751 case " ${configdirs} " in
18756 if test $ok = yes; then
18757 # An in-tree tool is available and we can use it
18758 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18760 $as_echo "just compiled
" >&6; }
18761 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18762 # We already found the complete path
18763 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18765 $as_echo "pre-installed
in $ac_dir" >&6; }
18766 elif test "x
$target" = "x
$host"; then
18767 # We can use an host tool
18768 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18770 $as_echo "host tool
" >&6; }
18772 # We need a cross tool
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18774 $as_echo "pre-installed
" >&6; }
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
18779 $as_echo_n "checking where to
find the target otool...
" >&6; }
18780 if test "x
${build}" != "x
${host}" ; then
18781 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18782 # We already found the complete path
18783 ac_dir=`dirname $OTOOL_FOR_TARGET`
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18785 $as_echo "pre-installed
in $ac_dir" >&6; }
18787 # Canadian cross, just use what we found
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18789 $as_echo "pre-installed
" >&6; }
18792 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18793 # We already found the complete path
18794 ac_dir=`dirname $OTOOL_FOR_TARGET`
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18796 $as_echo "pre-installed
in $ac_dir" >&6; }
18797 elif test "x
$target" = "x
$host"; then
18798 # We can use an host tool
18799 OTOOL_FOR_TARGET='$(OTOOL)'
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18801 $as_echo "host tool
" >&6; }
18803 # We need a cross tool
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18805 $as_echo "pre-installed
" >&6; }
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18810 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18811 if test "x
${build}" != "x
${host}" ; then
18812 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18813 # We already found the complete path
18814 ac_dir=`dirname $RANLIB_FOR_TARGET`
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18816 $as_echo "pre-installed
in $ac_dir" >&6; }
18818 # Canadian cross, just use what we found
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18820 $as_echo "pre-installed
" >&6; }
18824 case " ${configdirs} " in
18829 if test $ok = yes; then
18830 # An in-tree tool is available and we can use it
18831 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18833 $as_echo "just compiled
" >&6; }
18834 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18835 # We already found the complete path
18836 ac_dir=`dirname $RANLIB_FOR_TARGET`
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18838 $as_echo "pre-installed
in $ac_dir" >&6; }
18839 elif test "x
$target" = "x
$host"; then
18840 # We can use an host tool
18841 RANLIB_FOR_TARGET='$(RANLIB)'
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18843 $as_echo "host tool
" >&6; }
18845 # We need a cross tool
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18847 $as_echo "pre-installed
" >&6; }
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18852 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18853 if test "x
${build}" != "x
${host}" ; then
18854 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18855 # We already found the complete path
18856 ac_dir=`dirname $READELF_FOR_TARGET`
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18858 $as_echo "pre-installed
in $ac_dir" >&6; }
18860 # Canadian cross, just use what we found
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18862 $as_echo "pre-installed
" >&6; }
18866 case " ${configdirs} " in
18871 if test $ok = yes; then
18872 # An in-tree tool is available and we can use it
18873 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18875 $as_echo "just compiled
" >&6; }
18876 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18877 # We already found the complete path
18878 ac_dir=`dirname $READELF_FOR_TARGET`
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18880 $as_echo "pre-installed
in $ac_dir" >&6; }
18881 elif test "x
$target" = "x
$host"; then
18882 # We can use an host tool
18883 READELF_FOR_TARGET='$(READELF)'
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18885 $as_echo "host tool
" >&6; }
18887 # We need a cross tool
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18889 $as_echo "pre-installed
" >&6; }
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18894 $as_echo_n "checking where to
find the target strip...
" >&6; }
18895 if test "x
${build}" != "x
${host}" ; then
18896 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18897 # We already found the complete path
18898 ac_dir=`dirname $STRIP_FOR_TARGET`
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18900 $as_echo "pre-installed
in $ac_dir" >&6; }
18902 # Canadian cross, just use what we found
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18904 $as_echo "pre-installed
" >&6; }
18908 case " ${configdirs} " in
18913 if test $ok = yes; then
18914 # An in-tree tool is available and we can use it
18915 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18917 $as_echo "just compiled
" >&6; }
18918 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18919 # We already found the complete path
18920 ac_dir=`dirname $STRIP_FOR_TARGET`
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18922 $as_echo "pre-installed
in $ac_dir" >&6; }
18923 elif test "x
$target" = "x
$host"; then
18924 # We can use an host tool
18925 STRIP_FOR_TARGET='$(STRIP)'
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18927 $as_echo "host tool
" >&6; }
18929 # We need a cross tool
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18931 $as_echo "pre-installed
" >&6; }
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18936 $as_echo_n "checking where to
find the target windres...
" >&6; }
18937 if test "x
${build}" != "x
${host}" ; then
18938 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18939 # We already found the complete path
18940 ac_dir=`dirname $WINDRES_FOR_TARGET`
18941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18942 $as_echo "pre-installed
in $ac_dir" >&6; }
18944 # Canadian cross, just use what we found
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18946 $as_echo "pre-installed
" >&6; }
18950 case " ${configdirs} " in
18955 if test $ok = yes; then
18956 # An in-tree tool is available and we can use it
18957 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18959 $as_echo "just compiled
" >&6; }
18960 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18961 # We already found the complete path
18962 ac_dir=`dirname $WINDRES_FOR_TARGET`
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18964 $as_echo "pre-installed
in $ac_dir" >&6; }
18965 elif test "x
$target" = "x
$host"; then
18966 # We can use an host tool
18967 WINDRES_FOR_TARGET='$(WINDRES)'
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18969 $as_echo "host tool
" >&6; }
18971 # We need a cross tool
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18973 $as_echo "pre-installed
" >&6; }
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18978 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18979 if test "x
${build}" != "x
${host}" ; then
18980 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18981 # We already found the complete path
18982 ac_dir=`dirname $WINDMC_FOR_TARGET`
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18984 $as_echo "pre-installed
in $ac_dir" >&6; }
18986 # Canadian cross, just use what we found
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18988 $as_echo "pre-installed
" >&6; }
18992 case " ${configdirs} " in
18997 if test $ok = yes; then
18998 # An in-tree tool is available and we can use it
18999 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19001 $as_echo "just compiled
" >&6; }
19002 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
19003 # We already found the complete path
19004 ac_dir=`dirname $WINDMC_FOR_TARGET`
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19006 $as_echo "pre-installed
in $ac_dir" >&6; }
19007 elif test "x
$target" = "x
$host"; then
19008 # We can use an host tool
19009 WINDMC_FOR_TARGET='$(WINDMC)'
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19011 $as_echo "host tool
" >&6; }
19013 # We need a cross tool
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19015 $as_echo "pre-installed
" >&6; }
19023 # Certain tools may need extra flags.
19024 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
19025 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
19026 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
19028 # When building target libraries, except in a Canadian cross, we use
19029 # the same toolchain as the compiler we just built.
19030 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
19031 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
19032 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
19033 if test $host = $build; then
19034 case " $configdirs " in
19036 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
19037 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
19038 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
19048 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
19049 # Check whether --enable-maintainer-mode was given.
19050 if test "${enable_maintainer_mode+set}" = set; then :
19051 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19053 USE_MAINTAINER_MODE=no
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
19057 $as_echo "$USE_MAINTAINER_MODE" >&6; }
19060 if test "$USE_MAINTAINER_MODE" = yes; then
19061 MAINTAINER_MODE_TRUE=
19062 MAINTAINER_MODE_FALSE='#'
19064 MAINTAINER_MODE_TRUE='#'
19065 MAINTAINER_MODE_FALSE=
19067 MAINT=$MAINTAINER_MODE_TRUE
19069 # ---------------------
19070 # GCC bootstrap support
19071 # ---------------------
19073 # Stage specific cflags for build.
19078 yes) stage1_cflags="-g -Wa,-J" ;;
19079 *) stage1_cflags="-g -J" ;;
19085 # Enable --enable-checking in stage1 of the compiler.
19086 # Check whether --enable-stage1-checking was given.
19087 if test "${enable_stage1_checking+set}" = set; then :
19088 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
19090 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
19091 # For --disable-checking or implicit --enable-checking=release, avoid
19092 # setting --enable-checking=gc in the default stage1 checking for LTO
19093 # bootstraps. See PR62077.
19094 case $BUILD_CONFIG in
19096 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
19098 stage1_checking=--enable-checking=yes,types;;
19100 if test "x
$enable_checking" = x && \
19101 test -d ${srcdir}/gcc && \
19102 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
19103 stage1_checking=--enable-checking=yes,types,extra
19106 stage1_checking=--enable-checking=$enable_checking,types
19112 # Enable -Werror in bootstrap stage2 and later.
19113 # Check whether --enable-werror was given.
19114 if test "${enable_werror+set}" = set; then :
19115 enableval=$enable_werror;
19116 case ${enable_werror} in
19117 yes) stage2_werror_flag="--enable-werror-always" ;;
19118 *) stage2_werror_flag="" ;;
19123 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
19124 case $BUILD_CONFIG in
19126 stage2_werror_flag="--enable-werror-always" ;;
19128 stage2_werror_flag="--enable-werror-always" ;;
19137 # Specify what files to not compare during bootstrap.
19139 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
19140 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/M2Version
*"
19141 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/SYSTEM
*"
19142 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2version
*"
19144 hppa*64*-*-hpux*) ;;
19145 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
19149 ac_config_files="$ac_config_files Makefile
"
19151 cat >confcache <<\_ACEOF
19152 # This file is a shell script that caches the results of configure
19153 # tests run on this system so they can be shared between configure
19154 # scripts and configure runs, see configure's option --config-cache.
19155 # It is not useful on other systems. If it contains results you don't
19156 # want to keep, you may remove or edit it.
19158 # config.status only pays attention to the cache file if you give it
19159 # the --recheck option to rerun configure.
19161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19163 # following values.
19167 # The following way of writing the cache mishandles newlines in values,
19168 # but we know of no workaround that is simple, portable, and efficient.
19169 # So, we kill variables containing newlines.
19170 # Ultrix sh set writes to stderr and can't be redirected directly,
19171 # and sets the high bit in the cache file unless we assign to the vars.
19173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19174 eval ac_val=\$$ac_var
19178 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
19179 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
19182 _ | IFS | as_nl) ;; #(
19183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19184 *) { eval $ac_var=; unset $ac_var;} ;;
19190 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19191 *${as_nl}ac_space=\ *)
19192 # `set' does not quote correctly, so add quotes: double-quote
19193 # substitution turns \\\\ into \\, and sed turns \\ into \.
19196 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
19199 # `set' quotes correctly as required by POSIX, so do not add quotes.
19200 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
19209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19211 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19213 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19214 if test -w "$cache_file"; then
19215 if test "x
$cache_file" != "x
/dev
/null
"; then
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
19217 $as_echo "$as_me: updating cache
$cache_file" >&6;}
19218 if test ! -f "$cache_file" || test -h "$cache_file"; then
19219 cat confcache >"$cache_file"
19221 case $cache_file in #(
19223 mv -f confcache "$cache_file"$$ &&
19224 mv -f "$cache_file"$$ "$cache_file" ;; #(
19226 mv -f confcache "$cache_file" ;;
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
19232 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
19237 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
19238 # Let make expand exec_prefix.
19239 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
19241 # Transform confdefs.h into DEFS.
19242 # Protect against shell expansion while executing Makefile rules.
19243 # Protect against Makefile macro expansion.
19245 # If the first sed substitution is executed (which looks for macros that
19246 # take arguments), then branch to the quote section. Otherwise,
19247 # look for a macro that doesn't take arguments.
19257 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19259 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19263 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
19276 DEFS=`sed -n "$ac_script" confdefs.h`
19282 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19283 # 1. Remove the extension, and $U if already installed.
19284 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
19285 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19286 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19287 # will be set to the directory where LIBOBJS objects are built.
19288 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19289 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
19291 LIBOBJS=$ac_libobjs
19293 LTLIBOBJS=$ac_ltlibobjs
19297 : "${CONFIG_STATUS=./config.status}"
19299 ac_clean_files_save=$ac_clean_files
19300 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19302 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19304 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19306 # Generated by $as_me.
19307 # Run this file to recreate the current configuration.
19308 # Compiler output produced by configure, useful for debugging
19309 # configure, is in config.log if it exists.
19312 ac_cs_recheck=false
19315 SHELL=\${CONFIG_SHELL-$SHELL}
19318 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19319 ## -------------------- ##
19320 ## M4sh Initialization. ##
19321 ## -------------------- ##
19323 # Be more Bourne compatible
19324 DUALCASE=1; export DUALCASE # for MKS sh
19325 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19328 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19329 # is contrary to our usage. Disable this feature.
19330 alias -g '${1+"$@"}'='"$@"'
19331 setopt NO_GLOB_SUBST
19333 case `(set -o) 2>/dev/null` in #(
19345 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19346 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19347 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
19348 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19349 # Prefer a ksh shell builtin over an external printf program on Solaris,
19350 # but without wasting forks for bash or zsh.
19351 if test -z "$BASH_VERSION$ZSH_VERSION" \
19352 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
19353 as_echo
='print -r --'
19354 as_echo_n
='print -rn --'
19355 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
19356 as_echo
='printf %s\n'
19357 as_echo_n
='printf %s'
19359 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19360 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
19361 as_echo_n
='/usr/ucb/echo -n'
19363 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
19364 as_echo_n_body
='eval
19368 expr "X$arg" : "X\\(.*\\)$as_nl";
19369 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19371 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19373 export as_echo_n_body
19374 as_echo_n
='sh -c $as_echo_n_body as_echo'
19376 export as_echo_body
19377 as_echo
='sh -c $as_echo_body as_echo'
19380 # The user is always right.
19381 if test "${PATH_SEPARATOR+set}" != set; then
19383 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
19384 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
19391 # We need space, tab and new line, in precisely that order. Quoting is
19392 # there to prevent editors from complaining about space-tab.
19393 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19394 # splitting by setting IFS to empty value.)
19397 # Find who we are. Look in the path if we contain no directory separator.
19400 *[\\/]* ) as_myself
=$0 ;;
19401 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19402 for as_dir
in $PATH
19405 test -z "$as_dir" && as_dir
=.
19406 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19412 # We did not find ourselves, most probably we were run as `sh COMMAND'
19413 # in which case we are not to be found in the path.
19414 if test "x$as_myself" = x
; then
19417 if test ! -f "$as_myself"; then
19418 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19422 # Unset variables that we do not need and which cause bugs (e.g. in
19423 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19424 # suppresses any "Segmentation fault" message there. '((' could
19425 # trigger a bug in pdksh 5.2.14.
19426 for as_var
in BASH_ENV ENV MAIL MAILPATH
19427 do eval test x\
${$as_var+set} = xset \
19428 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19441 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19444 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19445 # ----------------------------------------
19446 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19447 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19448 # script with STATUS, using 1 if that was 0.
19451 as_status
=$1; test $as_status -eq 0 && as_status
=1
19453 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19454 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19456 $as_echo "$as_me: error: $2" >&2
19457 as_fn_exit
$as_status
19461 # as_fn_set_status STATUS
19462 # -----------------------
19463 # Set $? to STATUS, without forking.
19464 as_fn_set_status
()
19467 } # as_fn_set_status
19469 # as_fn_exit STATUS
19470 # -----------------
19471 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19475 as_fn_set_status
$1
19481 # Portably unset VAR.
19484 { eval $1=; unset $1;}
19486 as_unset
=as_fn_unset
19487 # as_fn_append VAR VALUE
19488 # ----------------------
19489 # Append the text in VALUE to the end of the definition contained in VAR. Take
19490 # advantage of any shell optimizations that allow amortized linear growth over
19491 # repeated appends, instead of the typical quadratic growth present in naive
19493 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19494 eval 'as_fn_append ()
19505 # as_fn_arith ARG...
19506 # ------------------
19507 # Perform arithmetic evaluation on the ARGs, and store the result in the
19508 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19509 # must be portable across $(()) and expr.
19510 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19511 eval 'as_fn_arith ()
19518 as_val
=`expr "$@" || test $? -eq 1`
19523 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19524 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19530 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19531 as_basename
=basename
19536 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19542 as_me
=`$as_basename -- "$0" ||
19543 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19544 X"$0" : 'X\(//\)$' \| \
19545 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19547 sed '/^.*\/\([^/][^/]*\)\/*$/{
19561 # Avoid depending upon Character Ranges.
19562 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19563 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19564 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19565 as_cr_digits
='0123456789'
19566 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19568 ECHO_C
= ECHO_N
= ECHO_T
=
19569 case `echo -n x` in #(((((
19571 case `echo 'xy\c'` in
19572 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19574 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19581 rm -f conf$$ conf$$.exe conf$$.
file
19582 if test -d conf$$.dir
; then
19583 rm -f conf$$.dir
/conf$$.
file
19586 mkdir conf$$.dir
2>/dev
/null
19588 if (echo >conf$$.
file) 2>/dev
/null
; then
19589 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19591 # ... but there are two gotchas:
19592 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19593 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19594 # In both cases, we have to default to `cp -pR'.
19595 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19597 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19605 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19606 rmdir conf$$.dir
2>/dev
/null
19611 # Create "$as_dir" as a directory, including parents if necessary.
19616 -*) as_dir
=.
/$as_dir;;
19618 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19622 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19623 *) as_qdir
=$as_dir;;
19625 as_dirs
="'$as_qdir' $as_dirs"
19626 as_dir
=`$as_dirname -- "$as_dir" ||
19627 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19628 X"$as_dir" : 'X\(//\)[^/]' \| \
19629 X"$as_dir" : 'X\(//\)$' \| \
19630 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19631 $as_echo X"$as_dir" |
19632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19636 /^X\(\/\/\)[^/].*/{
19649 test -d "$as_dir" && break
19651 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19652 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19656 if mkdir
-p .
2>/dev
/null
; then
19657 as_mkdir_p
='mkdir -p "$as_dir"'
19659 test -d .
/-p && rmdir .
/-p
19664 # as_fn_executable_p FILE
19665 # -----------------------
19666 # Test if FILE is an executable regular file.
19667 as_fn_executable_p
()
19669 test -f "$1" && test -x "$1"
19670 } # as_fn_executable_p
19671 as_test_x
='test -x'
19672 as_executable_p
=as_fn_executable_p
19674 # Sed expression to map a string onto a valid CPP name.
19675 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19677 # Sed expression to map a string onto a valid variable name.
19678 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19682 ## ----------------------------------- ##
19683 ## Main body of $CONFIG_STATUS script. ##
19684 ## ----------------------------------- ##
19686 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19689 # Save the log message, to keep $0 and so on meaningful, and to
19690 # report actual input values of CONFIG_FILES etc. instead of their
19691 # values after options handling.
19693 This file was extended by $as_me, which was
19694 generated by GNU Autoconf 2.69. Invocation command line was
19696 CONFIG_FILES = $CONFIG_FILES
19697 CONFIG_HEADERS = $CONFIG_HEADERS
19698 CONFIG_LINKS = $CONFIG_LINKS
19699 CONFIG_COMMANDS = $CONFIG_COMMANDS
19702 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19707 case $ac_config_files in *"
19708 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19714 # Files that config.status was made for.
19715 config_files="$ac_config_files"
19719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19721 \`$as_me' instantiates files and other configuration actions
19722 from templates according to the current configuration. Unless the files
19723 and actions are specified as TAGs, all are instantiated by default.
19725 Usage: $0 [OPTION]... [TAG]...
19727 -h, --help print this help, then exit
19728 -V, --version print version number and configuration settings, then exit
19729 --config print configuration, then exit
19730 -q, --quiet, --silent
19731 do not print progress messages
19732 -d, --debug don't remove temporary files
19733 --recheck update $as_me by reconfiguring in the same conditions
19734 --file=FILE[:TEMPLATE]
19735 instantiate the configuration file FILE
19737 Configuration files:
19740 Report bugs to the package provider."
19743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19744 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19747 configured by $0, generated by GNU Autoconf 2.69,
19748 with options \\"\$ac_cs_config\\"
19750 Copyright (C) 2012 Free Software Foundation, Inc.
19751 This config.status script is free software; the Free Software Foundation
19752 gives unlimited permission to copy, distribute and modify it."
19758 test -n "\$AWK" || AWK=awk
19761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19762 # The default lists apply if the user does not specify any file.
19768 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19769 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19773 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19785 # Handling of the options.
19786 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19788 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19789 $as_echo "$ac_cs_version"; exit ;;
19790 --config |
--confi |
--conf |
--con |
--co |
--c )
19791 $as_echo "$ac_cs_config"; exit ;;
19792 --debug |
--debu |
--deb |
--de |
--d |
-d )
19794 --file |
--fil |
--fi |
--f )
19797 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19798 '') as_fn_error $?
"missing file argument" ;;
19800 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19801 ac_need_defaults
=false
;;
19802 --he |
--h |
--help |
--hel |
-h )
19803 $as_echo "$ac_cs_usage"; exit ;;
19804 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19805 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19808 # This is an error.
19809 -*) as_fn_error $?
"unrecognized option: \`$1'
19810 Try \`$0 --help' for more information." ;;
19812 *) as_fn_append ac_config_targets
" $1"
19813 ac_need_defaults
=false
;;
19819 ac_configure_extra_args
=
19821 if $ac_cs_silent; then
19823 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19828 if \$ac_cs_recheck; then
19829 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19831 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19832 CONFIG_SHELL='$SHELL'
19833 export CONFIG_SHELL
19838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19842 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19843 ## Running $as_me. ##
19849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19853 extrasub_build="$extrasub_build"
19854 extrasub_host="$extrasub_host"
19855 extrasub_target="$extrasub_target"
19859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19861 # Handling of arguments.
19862 for ac_config_target
in $ac_config_targets
19864 case $ac_config_target in
19865 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19867 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19872 # If the user did not use the arguments to specify the items to instantiate,
19873 # then the envvar interface is used. Set only those that are not.
19874 # We use the long form for the default assignment because of an extremely
19875 # bizarre bug on SunOS 4.1.3.
19876 if $ac_need_defaults; then
19877 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19880 # Have a temporary directory for convenience. Make it in the build tree
19881 # simply because there is no reason against having it here, and in addition,
19882 # creating and moving files from /tmp can sometimes cause problems.
19883 # Hook for its removal unless debugging.
19884 # Note that there is a small window in which the directory will not be cleaned:
19885 # after its creation but before its name has been assigned to `$tmp'.
19889 trap 'exit_status=$?
19890 : "${ac_tmp:=$tmp}"
19891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19893 trap 'as_fn_exit 1' 1 2 13 15
19895 # Create a (secure) tmp directory for tmp files.
19898 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19902 tmp
=.
/conf$$
-$RANDOM
19903 (umask 077 && mkdir
"$tmp")
19904 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19907 # Set up the scripts for CONFIG_FILES section.
19908 # No need to generate them if there are no CONFIG_FILES.
19909 # This happens for instance with `./config.status config.h'.
19910 if test -n "$CONFIG_FILES"; then
19912 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19913 ac_cs_awk_getline
=:
19914 ac_cs_awk_pipe_init
=
19915 ac_cs_awk_read_file
='
19916 while ((getline aline < (F[key])) > 0)
19919 ac_cs_awk_pipe_fini
=
19921 ac_cs_awk_getline
=false
19922 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19923 ac_cs_awk_read_file
='
19925 print "cat " F[key] " &&"
19926 '$ac_cs_awk_pipe_init
19927 # The final `:' finishes the AND list.
19928 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19930 ac_cr
=`echo X | tr X '\015'`
19931 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19932 # But we know of no other shell where ac_cr would be empty at this
19933 # point, so we can use a bashism as a fallback.
19934 if test "x$ac_cr" = x
; then
19935 eval ac_cr
=\$
\'\\r
\'
19937 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19938 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19941 ac_cs_awk_cr
=$ac_cr
19944 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19947 # Create commands to substitute file output variables.
19949 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19950 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19951 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19954 } >conf$
$files.sh
&&
19955 . .
/conf$
$files.sh ||
19956 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19957 rm -f conf$
$files.sh
19960 echo "cat >conf$$subs.awk <<_ACEOF" &&
19961 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19963 } >conf$$subs.sh ||
19964 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19965 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19967 for ac_last_try in false false false false false :; do
19968 . ./conf$$subs.sh ||
19969 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19971 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19972 if test $ac_delim_n = $ac_delim_num; then
19974 elif $ac_last_try; then
19975 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19977 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19980 rm -f conf$$subs.sh
19982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19983 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19987 s/^/S["/; s
/!.
*/"]=/
19997 s/\(.\{148\}\)..*/\1/
19999 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20004 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20011 s/\(.\{148\}\)..*/\1/
20013 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20017 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20022 ' <conf$$subs.awk | sed '
20027 ' >>$CONFIG_STATUS || ac_write_fail=1
20028 rm -f conf$$subs.awk
20029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20031 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20032 for (key in S) S_is_set[key] = 1
20034 \$ac_cs_awk_pipe_init
20038 nfields = split(line, field, "@
")
20040 len = length(field[1])
20041 for (i = 2; i < nfields; i++) {
20043 keylen = length(key)
20044 if (S_is_set[key]) {
20046 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20047 len += length(value) + length(field[++i])
20052 if (nfields == 3 && !substed) {
20054 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20055 \$ac_cs_awk_read_file
20061 \$ac_cs_awk_pipe_fini
20064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20065 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20066 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20069 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20070 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20073 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20074 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20075 # trailing colons and then remove the whole line if VPATH becomes empty
20076 # (actually we leave an empty line to preserve line numbers).
20077 if test "x
$srcdir" = x.; then
20078 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20097 fi # test -n "$CONFIG_FILES"
20100 eval set X " :F
$CONFIG_FILES "
20105 :[FHLC]) ac_mode=$ac_tag; continue;;
20107 case $ac_mode$ac_tag in
20109 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
20110 :[FH]-) ac_tag=-:-;;
20111 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20128 -) ac_f="$ac_tmp/stdin";;
20129 *) # Look for the file first in the build tree, then in the source tree
20130 # (if the path is not absolute). The absolute path cannot be DOS-style,
20131 # because $ac_f cannot contain `:'.
20135 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20137 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20139 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
20140 as_fn_append ac_file_inputs " '$ac_f'"
20143 # Let's still pretend it is `configure' which instantiates (i.e., don't
20144 # use $as_me), people would be surprised to read:
20145 # /* config.h. Generated by config.status. */
20146 configure_input='Generated from '`
20147 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20149 if test x"$ac_file" != x-; then
20150 configure_input="$ac_file.
$configure_input"
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
20152 $as_echo "$as_me: creating
$ac_file" >&6;}
20154 # Neutralize special characters interpreted by sed in replacement strings.
20155 case $configure_input in #(
20156 *\&* | *\|* | *\\* )
20157 ac_sed_conf_input=`$as_echo "$configure_input" |
20158 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20159 *) ac_sed_conf_input=$configure_input;;
20163 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
20164 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
20169 ac_dir=`$as_dirname -- "$ac_file" ||
20170 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20171 X"$ac_file" : 'X\(//\)[^/]' \| \
20172 X"$ac_file" : 'X\(//\)$' \| \
20173 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20174 $as_echo X"$ac_file" |
20175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20179 /^X\(\/\/\)[^/].*/{
20192 as_dir="$ac_dir"; as_fn_mkdir_p
20196 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20198 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20199 # A "..
" for each directory in $ac_dir_suffix.
20200 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20201 case $ac_top_builddir_sub in
20202 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20203 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20206 ac_abs_top_builddir=$ac_pwd
20207 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20208 # for backward compatibility:
20209 ac_top_builddir=$ac_top_build_prefix
20212 .) # We are building in place.
20214 ac_top_srcdir=$ac_top_builddir_sub
20215 ac_abs_top_srcdir=$ac_pwd ;;
20216 [\\/]* | ?:[\\/]* ) # Absolute name.
20217 ac_srcdir=$srcdir$ac_dir_suffix;
20218 ac_top_srcdir=$srcdir
20219 ac_abs_top_srcdir=$srcdir ;;
20220 *) # Relative name.
20221 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20222 ac_top_srcdir=$ac_top_build_prefix$srcdir
20223 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20225 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20235 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20236 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20241 # If the template does not know about datarootdir, expand it.
20242 # FIXME: This hack should be removed a few years after 2.60.
20243 ac_datarootdir_hack=; ac_datarootdir_seen=
20254 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
20255 *datarootdir*) ac_datarootdir_seen=yes;;
20256 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
20258 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
20260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20261 ac_datarootdir_hack='
20262 s&@datadir@&$datadir&g
20263 s&@docdir@&$docdir&g
20264 s&@infodir@&$infodir&g
20265 s&@localedir@&$localedir&g
20266 s&@mandir@&$mandir&g
20267 s&\\\${datarootdir}&$datarootdir&g' ;;
20271 # Neutralize VPATH when `$srcdir' = `.'.
20272 # Shell code in configure.ac might set extrasub.
20273 # FIXME: do we really want to maintain this feature?
20274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20275 ac_sed_extra="$ac_vpsub
20278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20280 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20281 s|@configure_input@|
$ac_sed_conf_input|
;t t
20282 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20283 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20284 s
&@srcdir@
&$ac_srcdir&;t t
20285 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20286 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20287 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20288 s
&@builddir@
&$ac_builddir&;t t
20289 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20290 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20291 s
&@INSTALL@
&$ac_INSTALL&;t t
20292 $ac_datarootdir_hack
20294 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20295 if $ac_cs_awk_getline; then
20296 $AWK -f "$ac_tmp/subs.
awk"
20298 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20300 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20302 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20303 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20304 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20305 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20307 which seems to be undefined. Please make sure it is defined" >&5
20308 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20309 which seems to be undefined. Please make sure it is defined" >&2;}
20311 rm -f "$ac_tmp/stdin"
20313 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20314 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20324 case $ac_file$ac_mode in
20325 "Makefile":F) sed "$extrasub_build" Makefile |
20326 sed "$extrasub_host" |
20327 sed "$extrasub_target" > mf$$
20328 mv -f mf$$ Makefile ;;
20336 ac_clean_files=$ac_clean_files_save
20338 test $ac_write_fail = 0 ||
20339 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20342 # configure is writing to config.log, and then calls config.status.
20343 # config.status does its own redirection, appending to config.log.
20344 # Unfortunately, on DOS this fails, as config.log is still kept open
20345 # by configure, so config.status won't be able to
write to it
; its
20346 # output is simply discarded. So we exec the FD to /dev/null,
20347 # effectively closing config.log, so it can be properly (re)opened and
20348 # appended to by config.status. When coming back to configure, we
20349 # need to make the FD available again.
20350 if test "$no_create" != yes; then
20352 ac_config_status_args
=
20353 test "$silent" = yes &&
20354 ac_config_status_args
="$ac_config_status_args --quiet"
20356 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20358 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20359 # would make configure fail if this is the last instruction.
20360 $ac_cs_success || as_fn_exit
1
20362 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20364 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}