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
694 enable_libdiagnostics
699 extra_linker_plugin_flags
700 extra_linker_plugin_configure_flags
707 extra_isl_gmp_configure_flags
708 extra_mpc_mpfr_configure_flags
709 extra_mpc_gmp_configure_flags
710 extra_mpfr_configure_flags
759 TOPLEVEL_CONFIGURE_ARGUMENTS
787 program_transform_name
798 ac_subst_files
='serialization_dependencies
804 enable_option_checking
808 enable_as_accelerator_for
809 enable_offload_targets
810 enable_offload_defaulted
814 enable_compressed_debug_sections
815 enable_default_compressed_debug_sections_algorithm
818 enable_libquadmath_support
835 with_static_standard_libraries
842 enable_isl_version_check
844 enable_linker_plugin_configure_flags
845 enable_linker_plugin_flags
848 enable_libdiagnostics
849 enable_stage1_languages
852 with_target_bdw_gc_include
853 with_target_bdw_gc_lib
854 with_gcc_major_version_only
856 with_debug_prefix_map
859 enable_serial_configure
860 with_build_time_tools
861 enable_maintainer_mode
862 enable_stage1_checking
865 ac_precious_vars
='build_alias
918 # Initialize some variables set by options.
920 ac_init_version
=false
921 ac_unrecognized_opts
=
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
932 program_transform_name
=s
,x
,x
,
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir
='${exec_prefix}/bin'
947 sbindir
='${exec_prefix}/sbin'
948 libexecdir
='${exec_prefix}/libexec'
949 datarootdir
='${prefix}/share'
950 datadir
='${datarootdir}'
951 sysconfdir
='${prefix}/etc'
952 sharedstatedir
='${prefix}/com'
953 localstatedir
='${prefix}/var'
954 includedir
='${prefix}/include'
955 oldincludedir
='/usr/include'
956 docdir
='${datarootdir}/doc/${PACKAGE}'
957 infodir
='${datarootdir}/info'
962 libdir
='${exec_prefix}/lib'
963 localedir
='${datarootdir}/locale'
964 mandir
='${datarootdir}/man'
970 # If the previous option needs an argument, assign it.
971 if test -n "$ac_prev"; then
972 eval $ac_prev=\
$ac_option
978 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 # Accept the important Cygnus configure options, so we can diagnose typos.
985 case $ac_dashdash$ac_option in
989 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
991 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
994 -build |
--build |
--buil |
--bui |
--bu)
995 ac_prev
=build_alias
;;
996 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
997 build_alias
=$ac_optarg ;;
999 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1000 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1001 ac_prev
=cache_file
;;
1002 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1003 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1004 cache_file
=$ac_optarg ;;
1006 --config-cache |
-C)
1007 cache_file
=config.cache
;;
1009 -datadir |
--datadir |
--datadi |
--datad)
1011 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1012 datadir
=$ac_optarg ;;
1014 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1015 |
--dataroo |
--dataro |
--datar)
1016 ac_prev
=datarootdir
;;
1017 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1018 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1019 datarootdir
=$ac_optarg ;;
1021 -disable-* |
--disable-*)
1022 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1025 as_fn_error $?
"invalid feature name: $ac_useropt"
1026 ac_useropt_orig
=$ac_useropt
1027 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_
$ac_useropt"
1032 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1033 ac_unrecognized_sep
=', ';;
1035 eval enable_
$ac_useropt=no
;;
1037 -docdir |
--docdir |
--docdi |
--doc |
--do)
1039 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1040 docdir
=$ac_optarg ;;
1042 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1044 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1045 dvidir
=$ac_optarg ;;
1047 -enable-* |
--enable-*)
1048 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1051 as_fn_error $?
"invalid feature name: $ac_useropt"
1052 ac_useropt_orig
=$ac_useropt
1053 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_
$ac_useropt"
1058 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1059 ac_unrecognized_sep
=', ';;
1061 eval enable_
$ac_useropt=\
$ac_optarg ;;
1063 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1064 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1065 |
--exec |
--exe |
--ex)
1066 ac_prev
=exec_prefix
;;
1067 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1068 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1069 |
--exec=* |
--exe=* |
--ex=*)
1070 exec_prefix
=$ac_optarg ;;
1072 -gas |
--gas |
--ga |
--g)
1073 # Obsolete; use --with-gas.
1076 -help |
--help |
--hel |
--he |
-h)
1077 ac_init_help
=long
;;
1078 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1079 ac_init_help
=recursive
;;
1080 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1081 ac_init_help
=short
;;
1083 -host |
--host |
--hos |
--ho)
1084 ac_prev
=host_alias
;;
1085 -host=* |
--host=* |
--hos=* |
--ho=*)
1086 host_alias
=$ac_optarg ;;
1088 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1090 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1092 htmldir
=$ac_optarg ;;
1094 -includedir |
--includedir |
--includedi |
--included |
--include \
1095 |
--includ |
--inclu |
--incl |
--inc)
1096 ac_prev
=includedir
;;
1097 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1098 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1099 includedir
=$ac_optarg ;;
1101 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1103 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1104 infodir
=$ac_optarg ;;
1106 -libdir |
--libdir |
--libdi |
--libd)
1108 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1109 libdir
=$ac_optarg ;;
1111 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1112 |
--libexe |
--libex |
--libe)
1113 ac_prev
=libexecdir
;;
1114 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1115 |
--libexe=* |
--libex=* |
--libe=*)
1116 libexecdir
=$ac_optarg ;;
1118 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1119 ac_prev
=localedir
;;
1120 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1121 localedir
=$ac_optarg ;;
1123 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1124 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1125 ac_prev
=localstatedir
;;
1126 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1127 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1128 localstatedir
=$ac_optarg ;;
1130 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1132 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1133 mandir
=$ac_optarg ;;
1135 -nfp |
--nfp |
--nf)
1136 # Obsolete; use --without-fp.
1139 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1140 |
--no-cr |
--no-c |
-n)
1143 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1144 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1147 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1148 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1149 |
--oldin |
--oldi |
--old |
--ol |
--o)
1150 ac_prev
=oldincludedir
;;
1151 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1152 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1153 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1154 oldincludedir
=$ac_optarg ;;
1156 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1158 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1159 prefix
=$ac_optarg ;;
1161 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1162 |
--program-pre |
--program-pr |
--program-p)
1163 ac_prev
=program_prefix
;;
1164 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1165 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1166 program_prefix
=$ac_optarg ;;
1168 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1169 |
--program-suf |
--program-su |
--program-s)
1170 ac_prev
=program_suffix
;;
1171 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1172 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1173 program_suffix
=$ac_optarg ;;
1175 -program-transform-name |
--program-transform-name \
1176 |
--program-transform-nam |
--program-transform-na \
1177 |
--program-transform-n |
--program-transform- \
1178 |
--program-transform |
--program-transfor \
1179 |
--program-transfo |
--program-transf \
1180 |
--program-trans |
--program-tran \
1181 |
--progr-tra |
--program-tr |
--program-t)
1182 ac_prev
=program_transform_name
;;
1183 -program-transform-name=* |
--program-transform-name=* \
1184 |
--program-transform-nam=* |
--program-transform-na=* \
1185 |
--program-transform-n=* |
--program-transform-=* \
1186 |
--program-transform=* |
--program-transfor=* \
1187 |
--program-transfo=* |
--program-transf=* \
1188 |
--program-trans=* |
--program-tran=* \
1189 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1190 program_transform_name
=$ac_optarg ;;
1192 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1194 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1195 pdfdir
=$ac_optarg ;;
1197 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1199 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1202 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1203 |
-silent |
--silent |
--silen |
--sile |
--sil)
1206 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1208 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1210 sbindir
=$ac_optarg ;;
1212 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1213 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1214 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1216 ac_prev
=sharedstatedir
;;
1217 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1218 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1219 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1221 sharedstatedir
=$ac_optarg ;;
1223 -site |
--site |
--sit)
1225 -site=* |
--site=* |
--sit=*)
1228 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1230 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1231 srcdir
=$ac_optarg ;;
1233 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1234 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1235 ac_prev
=sysconfdir
;;
1236 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1237 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1238 sysconfdir
=$ac_optarg ;;
1240 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1241 ac_prev
=target_alias
;;
1242 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1243 target_alias
=$ac_optarg ;;
1245 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1248 -version |
--version |
--versio |
--versi |
--vers |
-V)
1249 ac_init_version
=: ;;
1252 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1255 as_fn_error $?
"invalid package name: $ac_useropt"
1256 ac_useropt_orig
=$ac_useropt
1257 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1262 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263 ac_unrecognized_sep
=', ';;
1265 eval with_
$ac_useropt=\
$ac_optarg ;;
1267 -without-* |
--without-*)
1268 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1271 as_fn_error $?
"invalid package name: $ac_useropt"
1272 ac_useropt_orig
=$ac_useropt
1273 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1278 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279 ac_unrecognized_sep
=', ';;
1281 eval with_
$ac_useropt=no
;;
1284 # Obsolete; use --with-x.
1287 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1288 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1289 ac_prev
=x_includes
;;
1290 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1291 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1292 x_includes
=$ac_optarg ;;
1294 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1295 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1296 ac_prev
=x_libraries
;;
1297 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1298 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1299 x_libraries
=$ac_optarg ;;
1301 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1302 Try \`$0 --help' for more information"
1306 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 case $ac_envvar in #(
1309 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1310 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1312 eval $ac_envvar=\
$ac_optarg
1313 export $ac_envvar ;;
1316 # FIXME: should be removed in autoconf 3.0.
1317 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1319 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1326 if test -n "$ac_prev"; then
1327 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1328 as_fn_error $?
"missing argument to $ac_option"
1331 if test -n "$ac_unrecognized_opts"; then
1332 case $enable_option_checking in
1334 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1335 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339 # Check all directory arguments for consistency.
1340 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1345 eval ac_val
=\$
$ac_var
1346 # Remove trailing slashes.
1349 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1350 eval $ac_var=\
$ac_val;;
1352 # Be sure to have absolute directory names.
1354 [\\/$
]* | ?
:[\\/]* ) continue;;
1355 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1357 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1365 target
=$target_alias
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x
; then
1369 if test "x$build_alias" = x
; then
1370 cross_compiling
=maybe
1371 elif test "x$build_alias" != "x$host_alias"; then
1377 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1379 test "$silent" = yes && exec 6>/dev
/null
1382 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di
=`ls -di .` &&
1384 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1385 as_fn_error $?
"working directory cannot be determined"
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 as_fn_error $?
"pwd does not report name of working directory"
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392 ac_srcdir_defaulted
=yes
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir
=`$as_dirname -- "$as_myself" ||
1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399 $as_echo X"$as_myself" |
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1422 ac_srcdir_defaulted
=no
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1426 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1428 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1430 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1440 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 as_fn_error $?
"path to source, $srcdir, contains spaces"
1447 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1449 for ac_var
in $ac_precious_vars; do
1450 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1452 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1457 # Report the --help message.
1459 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1463 \`configure' configures this package to adapt to many kinds of systems.
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables.
1470 Defaults for the options are specified in brackets.
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking ...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483 Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1494 For better control, use the options below.
1496 Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1521 --program-prefix=PREFIX prepend PREFIX to installed program names
1522 --program-suffix=SUFFIX append SUFFIX to installed program names
1523 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1526 --build=BUILD configure
for building on BUILD
[guessed
]
1527 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1528 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1532 if test -n "$ac_init_help"; then
1537 --disable-option-checking ignore unrecognized
--enable/--with options
1538 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1539 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1540 --enable-as-accelerator-for=ARG
1541 build as offload target compiler. Specify offload
1543 --enable-offload-targets=LIST
1544 enable offloading to devices from comma-separated
1545 LIST of TARGET
[=DIR
]. Use optional path to
find
1546 offload target compiler during the build
1547 --enable-offload-defaulted
1548 If enabled
, configured but not installed offload compilers and
1549 libgomp plugins are silently ignored. Useful
for distribution
1550 compilers where those are
in separate optional packages.
1552 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1553 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1554 --disable-gprofng do not build gprofng
1555 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1556 Enable compressed debug sections
for gas
, gold or ld
1558 --enable-default-compressed-debug-sections-algorithm={zlib
,zstd
}
1559 Default compression algorithm
for
1560 --enable-compressed-debug-sections.
1561 --enable-year2038 enable support
for timestamps past the year
2038
1562 --disable-libquadmath do not build libquadmath directory
1563 --disable-libquadmath-support
1564 disable libquadmath support
for Fortran
1565 --enable-libada build libada directory
1566 --enable-libgm2 build libgm2 directory
1567 --enable-libssp build libssp directory
1568 --disable-libstdcxx do not build libstdc
++-v3 directory
1569 --enable-bootstrap enable bootstrapping
[yes if native build
]
1570 --enable-pgo-build[=lto
]
1571 enable the PGO build
1572 --disable-isl-version-check
1573 disable check
for isl version
1574 --enable-lto enable link
time optimization support
1575 --enable-linker-plugin-configure-flags=FLAGS
1576 additional flags
for configuring linker plugins
1578 --enable-linker-plugin-flags=FLAGS
1579 additional flags
for configuring and building linker
1581 --enable-host-pie build position independent
host executables
1582 --enable-host-shared build
host code as shared libraries
1583 --enable-libdiagnostics build libdiagnostics shared library
1584 --enable-stage1-languages[=all
]
1585 choose additional languages to build during stage1.
1586 Mostly useful
for compiler development
1587 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1589 --enable-vtable-verify Enable vtable verification feature
1590 --enable-serial-[{host,target,build}-]configure
1591 force sequential configuration of sub-packages for
1592 the host, target or build machine, or all
1594 --enable-maintainer-mode
1595 enable make rules and dependencies not useful (and
1596 sometimes confusing) to the casual installer
1597 --enable-stage1-checking[=all]
1598 choose additional checking for stage1 of the
1600 --enable-werror enable -Werror in bootstrap stage2 and later
1603 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1604 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1605 --with-build-libsubdir=DIR Directory where to find libraries for build system
1606 --with-system-zlib use installed libz
1607 --with-zstd Support zstd compressed debug sections
1609 --with-mpc=PATH specify prefix directory for installed MPC package.
1610 Equivalent to --with-mpc-include=PATH/include plus
1611 --with-mpc-lib=PATH/lib
1612 --with-mpc-include=PATH specify directory for installed MPC include files
1613 --with-mpc-lib=PATH specify directory for the installed MPC library
1614 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1615 Equivalent to --with-mpfr-include=PATH/include plus
1616 --with-mpfr-lib=PATH/lib
1617 --with-mpfr-include=PATH
1618 specify directory for installed MPFR include files
1619 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1620 --with-gmp=PATH specify prefix directory for the installed GMP
1621 package. Equivalent to
1622 --with-gmp-include=PATH/include plus
1623 --with-gmp-lib=PATH/lib
1624 --with-gmp-include=PATH specify directory for installed GMP include files
1625 --with-gmp-lib=PATH specify directory for the installed GMP library
1626 --with-stage1-libs=LIBS libraries for stage1
1627 --with-static-standard-libraries
1628 use -static-libstdc++ and -static-libgcc
1630 --with-stage1-ldflags=FLAGS
1631 linker flags for stage1
1632 --with-boot-libs=LIBS libraries for stage2 and later
1633 --with-boot-ldflags=FLAGS
1634 linker flags for stage2 and later
1635 --with-isl=PATH Specify prefix directory for the installed isl
1636 package. Equivalent to
1637 --with-isl-include=PATH/include plus
1638 --with-isl-lib=PATH/lib
1639 --with-isl-include=PATH Specify directory for installed isl include files
1640 --with-isl-lib=PATH Specify the directory for the installed isl library
1641 --with-target-bdw-gc=PATHLIST
1642 specify prefix directory for installed bdw-gc
1643 package. Equivalent to
1644 --with-target-bdw-gc-include=PATH/include plus
1645 --with-target-bdw-gc-lib=PATH/lib
1646 --with-target-bdw-gc-include=PATHLIST
1647 specify directories for installed bdw-gc include
1649 --with-target-bdw-gc-lib=PATHLIST
1650 specify directories for installed bdw-gc library
1651 --with-gcc-major-version-only
1652 use only GCC major number in filesystem paths
1653 --with-build-sysroot=SYSROOT
1654 use sysroot as the system root during the build
1655 --with-debug-prefix-map='A
=B C
=D ...
'
1656 map A to B, C to D ... in debug information
1657 --with-build-config='NAME NAME2...
'
1658 use config/NAME.mk build configuration
1659 --with-build-time-tools=PATH
1660 use given path to find target tools during the build
1662 Some influential environment variables:
1663 CC C compiler command
1664 CFLAGS C compiler flags
1665 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1666 nonstandard directory <lib dir>
1667 LIBS libraries to pass to the linker, e.g. -l<library>
1668 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1669 you have headers in a nonstandard directory <include dir>
1670 CXX C++ compiler command
1671 CXXFLAGS C++ compiler flags
1673 additional configure arguments for build directories
1675 additional configure arguments for host directories
1677 additional configure arguments for target directories
1680 DLLTOOL DLLTOOL for the host
1681 DSYMUTIL DSYMUTIL for the host
1683 LIPO LIPO for the host
1685 RANLIB RANLIB for the host
1686 STRIP STRIP for the host
1687 WINDRES WINDRES for the host
1688 WINDMC WINDMC for the host
1689 OBJCOPY OBJCOPY for the host
1690 OBJDUMP OBJDUMP for the host
1691 OTOOL OTOOL for the host
1692 READELF READELF for the host
1700 GFORTRAN for the target
1712 DLLTOOL for the target
1714 DSYMUTIL for the target
1722 OBJCOPY for the target
1724 OBJDUMP for the target
1726 OTOOL for the target
1728 RANLIB for the target
1730 READELF for the target
1732 STRIP for the target
1734 WINDRES for the target
1736 WINDMC for the target
1738 Use these variables to override the choices made by `configure' or to
help
1739 it to
find libraries and programs with nonstandard names
/locations.
1741 Report bugs to the package provider.
1746 if test "$ac_init_help" = "recursive"; then
1747 # If there are subdirs, report their specific --help.
1748 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1749 test -d "$ac_dir" ||
1750 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1755 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1757 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1758 # A ".." for each directory in $ac_dir_suffix.
1759 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1760 case $ac_top_builddir_sub in
1761 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1762 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1765 ac_abs_top_builddir
=$ac_pwd
1766 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1767 # for backward compatibility:
1768 ac_top_builddir
=$ac_top_build_prefix
1771 .
) # We are building in place.
1773 ac_top_srcdir
=$ac_top_builddir_sub
1774 ac_abs_top_srcdir
=$ac_pwd ;;
1775 [\\/]* | ?
:[\\/]* ) # Absolute name.
1776 ac_srcdir
=$srcdir$ac_dir_suffix;
1777 ac_top_srcdir
=$srcdir
1778 ac_abs_top_srcdir
=$srcdir ;;
1780 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1781 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1782 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1784 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1786 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1787 # Check for guested configure.
1788 if test -f "$ac_srcdir/configure.gnu"; then
1790 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1791 elif test -f "$ac_srcdir/configure"; then
1793 $SHELL "$ac_srcdir/configure" --help=recursive
1795 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1797 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1801 test -n "$ac_init_help" && exit $ac_status
1802 if $ac_init_version; then
1805 generated by GNU Autoconf
2.69
1807 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1808 This configure
script is free software
; the Free Software Foundation
1809 gives unlimited permission to copy
, distribute and modify it.
1814 ## ------------------------ ##
1815 ## Autoconf initialization. ##
1816 ## ------------------------ ##
1818 # ac_fn_c_try_compile LINENO
1819 # --------------------------
1820 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_c_try_compile
()
1823 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1824 rm -f conftest.
$ac_objext
1825 if { { ac_try
="$ac_compile"
1827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_compile") 2>conftest.err
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && {
1841 test -z "$ac_c_werror_flag" ||
1842 test ! -s conftest.err
1843 } && test -s conftest.$ac_objext; then :
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status $ac_retval
1854 } # ac_fn_c_try_compile
1856 # ac_fn_cxx_try_compile LINENO
1857 # ----------------------------
1858 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_cxx_try_compile ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 rm -f conftest.$ac_objext
1863 if { { ac_try="$ac_compile"
1865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1866 *) ac_try_echo
=$ac_try;;
1868 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_compile") 2>conftest.err
1872 if test -s conftest.err
; then
1873 grep -v '^ *+' conftest.err
>conftest.er1
1874 cat conftest.er1
>&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && {
1879 test -z "$ac_cxx_werror_flag" ||
1880 test ! -s conftest.err
1881 } && test -s conftest.
$ac_objext; then :
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.
$ac_ext >&5
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status
$ac_retval
1892 } # ac_fn_cxx_try_compile
1894 # ac_fn_cxx_try_link LINENO
1895 # -------------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_cxx_try_link
()
1899 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1900 rm -f conftest.
$ac_objext conftest
$ac_exeext
1901 if { { ac_try
="$ac_link"
1903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_cxx_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 test -x conftest$ac_exeext
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_cxx_try_link
1940 # ac_fn_c_try_link LINENO
1941 # -----------------------
1942 # Try to link conftest.$ac_ext, and return whether this succeeded.
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 rm -f conftest.$ac_objext conftest$ac_exeext
1947 if { { ac_try="$ac_link"
1949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1950 *) ac_try_echo
=$ac_try;;
1952 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_link") 2>conftest.err
1956 if test -s conftest.err
; then
1957 grep -v '^ *+' conftest.err
>conftest.er1
1958 cat conftest.er1
>&5
1959 mv -f conftest.er1 conftest.err
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; } && {
1963 test -z "$ac_c_werror_flag" ||
1964 test ! -s conftest.err
1965 } && test -s conftest
$ac_exeext && {
1966 test "$cross_compiling" = yes ||
1967 test -x conftest
$ac_exeext
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.
$ac_ext >&5
1976 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1977 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1978 # interfere with the next link command; also delete a directory that is
1979 # left behind by Apple's compiler. We do this before executing the actions.
1980 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status
$ac_retval
1984 } # ac_fn_c_try_link
1985 cat >config.log
<<_ACEOF
1986 This file contains any messages produced by compilers while
1987 running configure, to aid debugging if configure makes a mistake.
1989 It was created by $as_me, which was
1990 generated by GNU Autoconf 2.69. Invocation command line was
2002 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2003 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2004 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2005 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2006 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2008 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2009 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2011 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2012 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2013 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2014 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2015 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2016 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2017 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir
=.
2026 $as_echo "PATH: $as_dir"
2042 # Keep a trace of the command line.
2043 # Strip out --no-create and --no-recursion so they do not pile up.
2044 # Strip out --silent because we don't want to record it for future runs.
2045 # Also quote any args containing shell meta-characters.
2046 # Make two passes to allow for proper duplicate-argument suppression.
2050 ac_must_keep_next
=false
2056 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2057 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2058 |
-silent |
--silent |
--silen |
--sile |
--sil)
2061 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2064 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2066 as_fn_append ac_configure_args1
" '$ac_arg'"
2067 if test $ac_must_keep_next = true
; then
2068 ac_must_keep_next
=false
# Got value, back to normal.
2071 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2072 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2073 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2074 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2075 case "$ac_configure_args0 " in
2076 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2079 -* ) ac_must_keep_next
=true
;;
2082 as_fn_append ac_configure_args
" '$ac_arg'"
2087 { ac_configure_args0
=; unset ac_configure_args0
;}
2088 { ac_configure_args1
=; unset ac_configure_args1
;}
2090 # When interrupted or exit'd, cleanup temporary files, and complete
2091 # config.log. We remove comments because anyway the quotes in there
2092 # would cause problems or look ugly.
2093 # WARNING: Use '\'' to represent an apostrophe within the trap.
2094 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2095 trap 'exit_status=$?
2096 # Save into config.log some information that might help in debugging.
2100 $as_echo "## ---------------- ##
2101 ## Cache variables. ##
2102 ## ---------------- ##"
2104 # The following way of writing the cache mishandles newlines in values,
2106 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2107 eval ac_val=\$$ac_var
2111 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2112 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2115 _ | IFS | as_nl) ;; #(
2116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2117 *) { eval $ac_var=; unset $ac_var;} ;;
2122 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2123 *${as_nl}ac_space=\ *)
2125 "s/'\''/'\''\\\\'\'''\''/g;
2126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2129 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2136 $as_echo "## ----------------- ##
2137 ## Output variables. ##
2138 ## ----------------- ##"
2140 for ac_var in $ac_subst_vars
2142 eval ac_val=\$$ac_var
2144 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 $as_echo "$ac_var='\''$ac_val'\''"
2150 if test -n "$ac_subst_files"; then
2151 $as_echo "## ------------------- ##
2152 ## File substitutions. ##
2153 ## ------------------- ##"
2155 for ac_var
in $ac_subst_files
2157 eval ac_val
=\$
$ac_var
2159 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161 $as_echo "$ac_var='\''$ac_val'\''"
2166 if test -s confdefs.h; then
2167 $as_echo "## ----------- ##
2174 test "$ac_signal" != 0 &&
2175 $as_echo "$as_me: caught signal $ac_signal"
2176 $as_echo "$as_me: exit $exit_status"
2178 rm -f core *.core core.conftest.* &&
2179 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2182 for ac_signal
in 1 2 13 15; do
2183 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2188 rm -f -r conftest
* confdefs.h
2190 $as_echo "/* confdefs.h */" > confdefs.h
2192 # Predefined preprocessor variables.
2194 cat >>confdefs.h
<<_ACEOF
2195 #define PACKAGE_NAME "$PACKAGE_NAME"
2198 cat >>confdefs.h
<<_ACEOF
2199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2202 cat >>confdefs.h
<<_ACEOF
2203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2206 cat >>confdefs.h
<<_ACEOF
2207 #define PACKAGE_STRING "$PACKAGE_STRING"
2210 cat >>confdefs.h
<<_ACEOF
2211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2214 cat >>confdefs.h
<<_ACEOF
2215 #define PACKAGE_URL "$PACKAGE_URL"
2219 # Let the site file select an alternate cache file if it wants to.
2220 # Prefer an explicitly selected file to automatically selected ones.
2223 if test -n "$CONFIG_SITE"; then
2224 # We do not want a PATH search for config.site.
2225 case $CONFIG_SITE in #((
2226 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2227 */*) ac_site_file1
=$CONFIG_SITE;;
2228 *) ac_site_file1
=.
/$CONFIG_SITE;;
2230 elif test "x$prefix" != xNONE
; then
2231 ac_site_file1
=$prefix/share
/config.site
2232 ac_site_file2
=$prefix/etc
/config.site
2234 ac_site_file1
=$ac_default_prefix/share
/config.site
2235 ac_site_file2
=$ac_default_prefix/etc
/config.site
2237 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2239 test "x$ac_site_file" = xNONE
&& continue
2240 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2242 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2243 sed 's/^/| /' "$ac_site_file" >&5
2245 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2247 as_fn_error $?
"failed to load site script $ac_site_file
2248 See \`config.log' for more details" "$LINENO" 5; }
2252 if test -r "$cache_file"; then
2253 # Some versions of bash will fail to source /dev/null (special files
2254 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2255 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2257 $as_echo "$as_me: loading cache $cache_file" >&6;}
2259 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2260 *) .
"./$cache_file";;
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2265 $as_echo "$as_me: creating cache $cache_file" >&6;}
2269 # Check that the precious variables saved in the cache have kept the same
2271 ac_cache_corrupted
=false
2272 for ac_var
in $ac_precious_vars; do
2273 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2274 eval ac_new_set
=\
$ac_env_${ac_var}_set
2275 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2276 eval ac_new_val
=\
$ac_env_${ac_var}_value
2277 case $ac_old_set,$ac_new_set in
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2280 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2281 ac_cache_corrupted
=: ;;
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2284 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2285 ac_cache_corrupted
=: ;;
2288 if test "x$ac_old_val" != "x$ac_new_val"; then
2289 # differences in whitespace do not lead to failure.
2290 ac_old_val_w
=`echo x $ac_old_val`
2291 ac_new_val_w
=`echo x $ac_new_val`
2292 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2294 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2295 ac_cache_corrupted
=:
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2298 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2299 eval $ac_var=\
$ac_old_val
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2302 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2304 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2307 # Pass precious variables to config.status.
2308 if test "$ac_new_set" = set; then
2310 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2311 *) ac_arg
=$ac_var=$ac_new_val ;;
2313 case " $ac_configure_args " in
2314 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2315 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2319 if $ac_cache_corrupted; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2323 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2324 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2326 ## -------------------- ##
2327 ## Main body of script. ##
2328 ## -------------------- ##
2331 ac_cpp
='$CPP $CPPFLAGS'
2332 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2345 # if PWD already has a value, it is probably wrong.
2346 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2348 # Export original configure arguments for use by sub-configures.
2349 # Quote arguments with shell meta charatcers.
2350 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2351 set -- "$progname" "$@"
2355 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2356 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2357 # if the argument is of the form -foo=baz, quote the baz part only
2358 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2361 # Add the quoted argument to the list.
2362 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2364 if test "$silent" = yes; then
2365 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2367 # Remove the initial space we just introduced and, as these will be
2368 # expanded by make, quote '$'.
2369 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2372 # Find the build, host, and target systems.
2374 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2375 if test -f "$ac_dir/install-sh"; then
2377 ac_install_sh
="$ac_aux_dir/install-sh -c"
2379 elif test -f "$ac_dir/install.sh"; then
2381 ac_install_sh
="$ac_aux_dir/install.sh -c"
2383 elif test -f "$ac_dir/shtool"; then
2385 ac_install_sh
="$ac_aux_dir/shtool install -c"
2389 if test -z "$ac_aux_dir"; then
2390 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2393 # These three variables are undocumented and unsupported,
2394 # and are intended to be withdrawn in a future Autoconf release.
2395 # They can cause serious problems if a builder's source tree is in a directory
2396 # whose full name contains unusual characters.
2397 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2398 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2399 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2402 # Make sure we can run config.sub.
2403 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2404 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2407 $as_echo_n "checking build system type... " >&6; }
2408 if ${ac_cv_build+:} false
; then :
2409 $as_echo_n "(cached) " >&6
2411 ac_build_alias
=$build_alias
2412 test "x$ac_build_alias" = x
&&
2413 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2414 test "x$ac_build_alias" = x
&&
2415 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2416 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2417 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2421 $as_echo "$ac_cv_build" >&6; }
2422 case $ac_cv_build in
2424 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2427 ac_save_IFS
=$IFS; IFS
='-'
2433 # Remember, the first character of IFS is used to create $*,
2434 # except with old shells:
2437 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2440 case ${build_alias} in
2441 "") build_noncanonical
=${build} ;;
2442 *) build_noncanonical
=${build_alias} ;;
2447 case ${host_alias} in
2448 "") host_noncanonical
=${build_noncanonical} ;;
2449 *) host_noncanonical
=${host_alias} ;;
2454 case ${target_alias} in
2455 "") target_noncanonical
=${host_noncanonical} ;;
2456 *) target_noncanonical
=${target_alias} ;;
2462 test "$host_noncanonical" = "$target_noncanonical" &&
2463 test "$program_prefix$program_suffix$program_transform_name" = \
2465 program_transform_name
=s
,y
,y
,
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2468 $as_echo_n "checking host system type... " >&6; }
2469 if ${ac_cv_host+:} false
; then :
2470 $as_echo_n "(cached) " >&6
2472 if test "x$host_alias" = x
; then
2473 ac_cv_host
=$ac_cv_build
2475 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2476 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2481 $as_echo "$ac_cv_host" >&6; }
2484 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2487 ac_save_IFS
=$IFS; IFS
='-'
2493 # Remember, the first character of IFS is used to create $*,
2494 # except with old shells:
2497 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2501 $as_echo_n "checking target system type... " >&6; }
2502 if ${ac_cv_target+:} false
; then :
2503 $as_echo_n "(cached) " >&6
2505 if test "x$target_alias" = x
; then
2506 ac_cv_target
=$ac_cv_host
2508 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2509 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2514 $as_echo "$ac_cv_target" >&6; }
2515 case $ac_cv_target in
2517 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2519 target
=$ac_cv_target
2520 ac_save_IFS
=$IFS; IFS
='-'
2526 # Remember, the first character of IFS is used to create $*,
2527 # except with old shells:
2530 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2533 # The aliases save the names the user supplied, while $host etc.
2534 # will get canonicalized.
2535 test -n "$target_alias" &&
2536 test "$program_prefix$program_suffix$program_transform_name" = \
2538 program_prefix
=${target_alias}-
2539 test "$program_prefix" != NONE
&&
2540 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2541 # Use a double $ so make ignores it.
2542 test "$program_suffix" != NONE
&&
2543 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2544 # Double any \ or $.
2545 # By default was `s,x,x', remove it if useless.
2546 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2547 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2551 # Get 'install' or 'install-sh' and its variants.
2552 # Find a good install program. We prefer a C program (faster),
2553 # so one script is as good as another. But avoid the broken or
2554 # incompatible versions:
2555 # SysV /etc/install, /usr/sbin/install
2556 # SunOS /usr/etc/install
2557 # IRIX /sbin/install
2559 # AmigaOS /C/install, which installs bootblocks on floppy discs
2560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2563 # OS/2's system install, which has a completely different semantic
2564 # ./install, which can be erroneously created by make from ./install.sh.
2565 # Reject install programs that cannot install multiple files.
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2567 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2568 if test -z "$INSTALL"; then
2569 if ${ac_cv_path_install+:} false
; then :
2570 $as_echo_n "(cached) " >&6
2572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2576 test -z "$as_dir" && as_dir
=.
2577 # Account for people who put trailing slashes in PATH elements.
2578 case $as_dir/ in #((
2579 .
/ | .
// |
/[cC
]/* | \
2580 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2581 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2584 # OSF1 and SCO ODT 3.0 have their own names for install.
2585 # Don't use installbsd from OSF since it installs stuff as root
2587 for ac_prog
in ginstall scoinst
install; do
2588 for ac_exec_ext
in '' $ac_executable_extensions; do
2589 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2590 if test $ac_prog = install &&
2591 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2592 # AIX install. It has an incompatible calling convention.
2594 elif test $ac_prog = install &&
2595 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2596 # program-specific install script used by HP pwplus--don't use.
2599 rm -rf conftest.one conftest.two conftest.dir
2600 echo one
> conftest.one
2601 echo two
> conftest.two
2603 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2604 test -s conftest.one
&& test -s conftest.two
&&
2605 test -s conftest.dir
/conftest.one
&&
2606 test -s conftest.dir
/conftest.two
2608 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2621 rm -rf conftest.one conftest.two conftest.dir
2624 if test "${ac_cv_path_install+set}" = set; then
2625 INSTALL
=$ac_cv_path_install
2627 # As a last resort, use the slow shell script. Don't cache a
2628 # value for INSTALL within a source directory, because that will
2629 # break other packages using the cache if that directory is
2630 # removed, or if the value is a relative name.
2631 INSTALL
=$ac_install_sh
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2635 $as_echo "$INSTALL" >&6; }
2637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2638 # It thinks the first close brace ends the variable substitution.
2639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2643 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2646 $as_echo_n "checking whether ln works... " >&6; }
2647 if ${acx_cv_prog_LN+:} false
; then :
2648 $as_echo_n "(cached) " >&6
2650 rm -f conftestdata_t
2651 echo >conftestdata_f
2652 if ln conftestdata_f conftestdata_t
2>/dev
/null
2658 rm -f conftestdata_f conftestdata_t
2661 if test $acx_cv_prog_LN = no
; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2664 $as_echo "no, using $LN" >&6; }
2666 LN
="$acx_cv_prog_LN"
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2668 $as_echo "yes" >&6; }
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2672 $as_echo_n "checking whether ln -s works... " >&6; }
2674 if test "$LN_S" = "ln -s"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2676 $as_echo "yes" >&6; }
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2679 $as_echo "no, using $LN_S" >&6; }
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2683 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2684 if ${ac_cv_path_SED+:} false
; then :
2685 $as_echo_n "(cached) " >&6
2687 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2688 for ac_i
in 1 2 3 4 5 6 7; do
2689 ac_script
="$ac_script$as_nl$ac_script"
2691 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2692 { ac_script
=; unset ac_script
;}
2693 if test -z "$SED"; then
2694 ac_path_SED_found
=false
2695 # Loop through the user's path and test for each of PROGNAME-LIST
2696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2700 test -z "$as_dir" && as_dir
=.
2701 for ac_prog
in sed gsed
; do
2702 for ac_exec_ext
in '' $ac_executable_extensions; do
2703 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2704 as_fn_executable_p
"$ac_path_SED" ||
continue
2705 # Check for GNU ac_path_SED and select it if it is found.
2706 # Check for GNU $ac_path_SED
2707 case `"$ac_path_SED" --version 2>&1` in
2709 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2712 $as_echo_n 0123456789 >"conftest.in"
2715 cat "conftest.in" "conftest.in" >"conftest.tmp"
2716 mv "conftest.tmp" "conftest.in"
2717 cp "conftest.in" "conftest.nl"
2718 $as_echo '' >> "conftest.nl"
2719 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2720 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2721 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2722 if test $ac_count -gt ${ac_path_SED_max-0}; then
2723 # Best one so far, save it but keep looking for a better one
2724 ac_cv_path_SED
="$ac_path_SED"
2725 ac_path_SED_max
=$ac_count
2727 # 10*(2^10) chars as input seems more than enough
2728 test $ac_count -gt 10 && break
2730 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2733 $ac_path_SED_found && break 3
2738 if test -z "$ac_cv_path_SED"; then
2739 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2747 $as_echo "$ac_cv_path_SED" >&6; }
2748 SED
="$ac_cv_path_SED"
2751 for ac_prog
in gawk mawk nawk
awk
2753 # Extract the first word of "$ac_prog", so it can be a program name with args.
2754 set dummy
$ac_prog; ac_word
=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if ${ac_cv_prog_AWK+:} false
; then :
2758 $as_echo_n "(cached) " >&6
2760 if test -n "$AWK"; then
2761 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir
=.
2768 for ac_exec_ext
in '' $ac_executable_extensions; do
2769 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2770 ac_cv_prog_AWK
="$ac_prog"
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 if test -n "$AWK"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2783 $as_echo "$AWK" >&6; }
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2790 test -n "$AWK" && break
2794 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2796 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2798 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2799 INSTALL
="${srcpwd}/install-sh -c"
2802 # Set srcdir to "." if that's what it is.
2803 # This is important for multilib support.
2805 if test "${pwd}" = "${srcpwd}" ; then
2813 ### To add a new directory to the tree, first choose whether it is a target
2814 ### or a host dependent tool. Then put it into the appropriate list
2815 ### (library or tools, host or target), doing a dependency sort.
2817 # Subdirs will be configured in the order listed in build_configdirs,
2818 # configdirs, or target_configdirs; see the serialization section below.
2820 # Dependency sorting is only needed when *configuration* must be done in
2821 # a particular order. In all cases a dependency should be specified in
2822 # the Makefile, whether or not it's implicitly specified here.
2824 # Double entries in build_configdirs, configdirs, or target_configdirs may
2825 # cause circular dependencies and break everything horribly.
2827 # these library is used by various programs built for the build
2830 build_libs
="build-libiberty build-libcpp"
2832 # these tools are built for the build environment
2833 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2835 # these libraries are used by various programs built for the host environment
2837 host_libs
="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2839 # these tools are built for the host environment
2840 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2841 # know that we are building the simulator.
2842 # binutils, gas and ld appear in that order because it makes sense to run
2843 # "make check" in that particular order.
2844 # If --enable-gold is used, "gold" may replace "ld".
2845 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"
2847 # these libraries are built for the target environment, and are built after
2848 # the host libraries and the host tools (which may be a cross compiler)
2849 # Note that libiberty is not a target library.
2850 target_libraries
="target-libgcc \
2851 target-libbacktrace \
2857 target-libstdc++-v3 \
2858 target-libsanitizer \
2861 target-libquadmath \
2862 target-libgfortran \
2872 # these tools are built using the target libraries, and are intended to
2873 # run only in the target environment
2875 # note: any program that *uses* libraries that are in the "target_libraries"
2876 # list belongs in this list.
2878 target_tools
="target-rda"
2880 ################################################################################
2882 ## All tools belong in one of the four categories, and are assigned above
2883 ## We assign ${configdirs} this way to remove all embedded newlines. This
2884 ## is important because configure will choke if they ever get through.
2885 ## ${configdirs} is directories we build using the host tools.
2886 ## ${target_configdirs} is directories we build using the target tools.
2887 configdirs
=`echo ${host_libs} ${host_tools}`
2888 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2889 build_configdirs
=`echo ${build_libs} ${build_tools}`
2893 ################################################################################
2895 srcname
="gnu development package"
2897 # This gets set non-empty for some net releases of packages.
2900 # Define is_cross_compiler to save on calls to 'test'.
2902 if test x
"${host}" = x
"${target}" ; then
2903 is_cross_compiler
=no
2905 is_cross_compiler
=yes
2908 # Find the build and target subdir names.
2910 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2911 # have matching libraries, they should use host libraries: Makefile.tpl
2912 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2913 # However, they still use the build modules, because the corresponding
2914 # host modules (e.g. bison) are only built for the host when bootstrap
2916 # - build_subdir is where we find build modules, and never changes.
2917 # - build_libsubdir is where we find build libraries, and can be overridden.
2919 # Prefix 'build-' so this never conflicts with target_subdir.
2920 build_subdir
="build-${build_noncanonical}"
2922 # Check whether --with-build-libsubdir was given.
2923 if test "${with_build_libsubdir+set}" = set; then :
2924 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2926 build_libsubdir
="$build_subdir"
2929 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2930 if ( test $srcdir = .
&& test -d gcc
) \
2931 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2932 host_subdir
="host-${host_noncanonical}"
2937 target_subdir
=${target_noncanonical}
2939 # Be sure to cover against remnants of an in-tree build.
2940 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2941 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2942 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2945 # Skipdirs are removed silently.
2947 # Noconfigdirs are removed loudly.
2951 # Make sure we don't let GNU ld be added if we didn't want it.
2952 if test x
$with_gnu_ld = xno
; then
2954 noconfigdirs
="$noconfigdirs ld gold"
2958 # Make sure we don't let GNU as be added if we didn't want it.
2959 if test x
$with_gnu_as = xno
; then
2961 noconfigdirs
="$noconfigdirs gas"
2966 # Check whether --with-system-zlib was given.
2967 if test "${with_system_zlib+set}" = set; then :
2968 withval
=$with_system_zlib;
2971 # Make sure we don't let ZLIB be added if we didn't want it.
2972 if test x
$with_system_zlib = xyes
; then
2973 use_included_zlib
=no
2974 noconfigdirs
="$noconfigdirs zlib"
2977 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2979 if test x
$with_system_readline = xyes
; then
2980 noconfigdirs
="$noconfigdirs readline"
2984 # Check whether --with-zstd was given.
2985 if test "${with_zstd+set}" = set; then :
2990 # some tools are so dependent upon X11 that if we're not building with X,
2991 # it's not even worth trying to configure, much less build, that tool.
2994 yes |
"") ;; # the default value for this tree is that X11 is available
2996 skipdirs
="${skipdirs} tk itcl libgui"
2997 # We won't be able to build gdbtk without X.
3000 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3003 # Some are only suitable for cross toolchains.
3004 # Remove these if host=target.
3005 cross_only
="target-libgloss target-newlib target-opcodes"
3007 case $is_cross_compiler in
3008 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
3011 # If both --with-headers and --with-libs are specified, default to
3013 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
3014 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
3015 if test x
"${with_newlib}" = x
; then
3020 # Recognize --with-newlib/--without-newlib.
3021 case ${with_newlib} in
3022 no
) skipdirs
="${skipdirs} target-newlib" ;;
3023 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3026 # Check whether --enable-as-accelerator-for was given.
3027 if test "${enable_as_accelerator_for+set}" = set; then :
3028 enableval
=$enable_as_accelerator_for;
3032 # Check whether --enable-offload-targets was given.
3033 if test "${enable_offload_targets+set}" = set; then :
3034 enableval
=$enable_offload_targets;
3035 if test x
"$enable_offload_targets" = x
; then
3036 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3040 enable_offload_targets
=
3044 # Check whether --enable-offload-defaulted was given.
3045 if test "${enable_offload_defaulted+set}" = set; then :
3046 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3048 enable_offload_defaulted
=
3052 # Handle --enable-gold, --enable-ld.
3053 # --disable-gold [--enable-ld]
3054 # Build only ld. Default option.
3055 # --enable-gold [--enable-ld]
3056 # Build both gold and ld. Install gold as "ld.gold", install ld
3057 # as "ld.bfd" and "ld".
3058 # --enable-gold=default [--enable-ld]
3059 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3060 # install ld as "ld.bfd".
3061 # --enable-gold[=default] --disable-ld
3062 # Build only gold, which is then installed as both "ld.gold" and "ld".
3063 # --enable-gold --enable-ld=default
3064 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3066 # In other words, ld is default
3067 # --enable-gold=default --enable-ld=default
3071 # Check whether --enable-gold was given.
3072 if test "${enable_gold+set}" = set; then :
3073 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3078 case "${ENABLE_GOLD}" in
3080 # Check for ELF target.
3083 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3084 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3085 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3086 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl* |
*-*-haiku*)
3088 *-*-linux*aout
* |
*-*-linux*oldld
*)
3096 if test "$is_elf" = "yes"; then
3097 # Check for target supported by gold.
3099 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3100 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-*)
3101 configdirs
="$configdirs gold"
3102 if test x
${ENABLE_GOLD} = xdefault
; then
3113 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3117 # Check whether --enable-ld was given.
3118 if test "${enable_ld+set}" = set; then :
3119 enableval
=$enable_ld; ENABLE_LD
=$enableval
3125 case "${ENABLE_LD}" in
3127 if test x
${default_ld} != x
; then
3128 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3134 if test x
${ENABLE_GOLD} != xyes
; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3136 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3138 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3141 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3145 # Check whether --enable-gprofng was given.
3146 if test "${enable_gprofng+set}" = set; then :
3147 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3152 if test "$enable_gprofng" = "yes"; then
3156 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux* | riscv64-
*-linux*)
3157 configdirs
="$configdirs gprofng"
3164 # Decide the default method for compressing debug sections.
3165 # Provide a configure time option to override our default.
3166 # Check whether --enable-compressed_debug_sections was given.
3167 if test "${enable_compressed_debug_sections+set}" = set; then :
3168 enableval
=$enable_compressed_debug_sections;
3169 if test x
"$enable_compressed_debug_sections" = xyes
; then
3170 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3174 enable_compressed_debug_sections
=
3178 # Select default compression algorithm.
3179 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3180 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3181 enableval
=$enable_default_compressed_debug_sections_algorithm;
3183 default_compressed_debug_sections_algorithm
=
3187 # Configure extra directories which are host specific
3191 configdirs
="$configdirs libtermcap" ;;
3194 # A target can indicate whether a language isn't supported for some reason.
3195 # Only spaces may be used in this macro; not newlines or tabs.
3196 unsupported_languages
=
3198 # Remove more programs from consideration, based on the host or
3199 # target this usually means that a port of the program doesn't
3203 i
[3456789]86-*-msdosdjgpp*)
3204 noconfigdirs
="$noconfigdirs tcl tk itcl"
3208 # Default to --disable-year2038 until we can handle differences between
3209 # projects that use gnulib (which understands year 2038) and projects that
3210 # do not (like BFD).
3211 # Check whether --enable-year2038 was given.
3212 if test "${enable_year2038+set}" = set; then :
3213 enableval
=$enable_year2038; ENABLE_YEAR2038
=$enableval
3219 if test "${ENABLE_YEAR2038}" = "no" ; then
3223 # Check whether --enable-libquadmath was given.
3224 if test "${enable_libquadmath+set}" = set; then :
3225 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3227 ENABLE_LIBQUADMATH
=yes
3230 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3231 noconfigdirs
="$noconfigdirs target-libquadmath"
3235 # Check whether --enable-libquadmath-support was given.
3236 if test "${enable_libquadmath_support+set}" = set; then :
3237 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3239 ENABLE_LIBQUADMATH_SUPPORT
=yes
3242 enable_libquadmath_support
=
3243 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3244 enable_libquadmath_support
=no
3248 # Check whether --enable-libada was given.
3249 if test "${enable_libada+set}" = set; then :
3250 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3255 if test "${ENABLE_LIBADA}" != "yes" ; then
3256 noconfigdirs
="$noconfigdirs gnattools"
3259 # Check whether --enable-libgm2 was given.
3260 if test "${enable_libgm2+set}" = set; then :
3261 enableval
=$enable_libgm2; ENABLE_LIBGM2
=$enableval
3266 if test "${ENABLE_LIBGM2}" != "yes" ; then
3267 noconfigdirs
="$noconfigdirs gm2tools"
3270 # Check whether --enable-libssp was given.
3271 if test "${enable_libssp+set}" = set; then :
3272 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3278 # Check whether --enable-libstdcxx was given.
3279 if test "${enable_libstdcxx+set}" = set; then :
3280 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3282 ENABLE_LIBSTDCXX
=default
3285 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3286 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3289 # Enable libgomp by default on hosted POSIX systems, and a few others.
3290 if test x
$enable_libgomp = x
; then
3292 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3294 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3296 *-*-solaris2* |
*-*-hpux11*)
3298 *-*-darwin* |
*-*-aix*)
3300 nvptx
*-*-* | amdgcn
*-*-*)
3303 noconfigdirs
="$noconfigdirs target-libgomp"
3308 # Disable libatomic on unsupported systems.
3309 if test -d ${srcdir}/libatomic
; then
3310 if test x
$enable_libatomic = x
; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3312 $as_echo_n "checking for libatomic support... " >&6; }
3313 if (srcdir
=${srcdir}/libatomic
; \
3314 .
${srcdir}/configure.tgt
; \
3315 test -n "$UNSUPPORTED")
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 noconfigdirs
="$noconfigdirs target-libatomic"
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 $as_echo "yes" >&6; }
3327 # Disable libitm on unsupported systems.
3328 if test -d ${srcdir}/libitm
; then
3329 if test x
$enable_libitm = x
; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3331 $as_echo_n "checking for libitm support... " >&6; }
3332 if (srcdir
=${srcdir}/libitm
; \
3333 .
${srcdir}/configure.tgt
; \
3334 test -n "$UNSUPPORTED")
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 noconfigdirs
="$noconfigdirs target-libitm"
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3346 # Disable libsanitizer on unsupported systems.
3347 if test -d ${srcdir}/libsanitizer
; then
3348 if test x
$enable_libsanitizer = x
; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3350 $as_echo_n "checking for libsanitizer support... " >&6; }
3351 if (srcdir
=${srcdir}/libsanitizer
; \
3352 .
${srcdir}/configure.tgt
; \
3353 test -n "$UNSUPPORTED")
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 noconfigdirs
="$noconfigdirs target-libsanitizer"
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360 $as_echo "yes" >&6; }
3365 # Disable libvtv on unsupported systems.
3366 if test -d ${srcdir}/libvtv
; then
3367 if test x
$enable_libvtv = x
; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3369 $as_echo_n "checking for libvtv support... " >&6; }
3370 if (srcdir
=${srcdir}/libvtv
; \
3371 .
${srcdir}/configure.tgt
; \
3372 test "$VTV_SUPPORTED" != "yes")
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 noconfigdirs
="$noconfigdirs target-libvtv"
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3379 $as_echo "yes" >&6; }
3384 # Disable libquadmath for some systems.
3387 noconfigdirs
="$noconfigdirs target-libquadmath"
3389 # libquadmath is unused on AIX and libquadmath build process use of
3390 # LD_LIBRARY_PATH can break AIX bootstrap.
3391 powerpc-
*-aix* | rs6000-
*-aix*)
3392 noconfigdirs
="$noconfigdirs target-libquadmath"
3396 # Disable libssp for some systems.
3399 # No hosted I/O support.
3400 noconfigdirs
="$noconfigdirs target-libssp"
3403 noconfigdirs
="$noconfigdirs target-libssp"
3405 powerpc-
*-aix* | rs6000-
*-aix*)
3406 noconfigdirs
="$noconfigdirs target-libssp"
3409 # No hosted I/O support.
3410 noconfigdirs
="$noconfigdirs target-libssp"
3413 # libssp uses a misaligned load to trigger a fault, but the RL78
3414 # doesn't fault for those - instead, it gives a build-time error
3415 # for explicit misaligned loads.
3416 noconfigdirs
="$noconfigdirs target-libssp"
3419 # No hosted I/O support.
3420 noconfigdirs
="$noconfigdirs target-libssp"
3424 # Disable libstdc++-v3 for some systems.
3425 # Allow user to override this if they pass --enable-libstdcxx
3426 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3429 # VxWorks uses the Dinkumware C++ library.
3430 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3433 # Not ported/fails to build when using newlib.
3434 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3437 # the C++ libraries don't build on top of CE's C libraries
3438 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3441 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3444 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3447 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3452 # Disable C++ on systems where it is known to not work.
3453 # For testing, you can override this with --enable-languages=c++.
3454 case ,${enable_languages}, in
3460 unsupported_languages
="$unsupported_languages c++"
3466 # Disable Objc on systems where it is known to not work.
3467 # For testing, you can override this with --enable-languages=objc.
3468 case ,${enable_languages}, in
3474 unsupported_languages
="$unsupported_languages objc"
3480 # Disable D on systems where it is known to not work.
3481 # For testing, you can override this with --enable-languages=d.
3482 case ,${enable_languages}, in
3488 unsupported_languages
="$unsupported_languages d"
3494 # Disable libphobos on unsupported systems.
3495 # For testing, you can override this with --enable-libphobos.
3496 if test -d ${srcdir}/libphobos
; then
3497 if test x
$enable_libphobos = x
; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3499 $as_echo_n "checking for libphobos support... " >&6; }
3500 if (srcdir
=${srcdir}/libphobos
; \
3501 .
${srcdir}/configure.tgt
; \
3502 test "$LIBPHOBOS_SUPPORTED" != "yes")
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3506 noconfigdirs
="$noconfigdirs target-libphobos"
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3509 $as_echo "yes" >&6; }
3514 # Disable Fortran for some systems.
3517 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3518 unsupported_languages
="$unsupported_languages fortran"
3521 unsupported_languages
="$unsupported_languages fortran"
3525 # Disable libffi for some systems.
3529 i
[3456789]86-*-darwin*)
3531 x86_64-
*-darwin[912]*)
3534 noconfigdirs
="$noconfigdirs target-libffi"
3537 noconfigdirs
="$noconfigdirs target-libffi"
3540 noconfigdirs
="$noconfigdirs target-libffi"
3543 noconfigdirs
="$noconfigdirs target-libffi"
3546 noconfigdirs
="$noconfigdirs target-libffi"
3549 noconfigdirs
="$noconfigdirs target-libffi"
3552 noconfigdirs
="$noconfigdirs target-libffi"
3554 aarch64
*-*-freebsd*)
3555 noconfigdirs
="$noconfigdirs target-libffi"
3558 noconfigdirs
="$noconfigdirs target-libffi"
3561 noconfigdirs
="$noconfigdirs target-libffi"
3564 noconfigdirs
="$noconfigdirs target-libffi"
3567 noconfigdirs
="$noconfigdirs target-libffi"
3570 noconfigdirs
="$noconfigdirs target-libffi"
3572 cris-
*-* | crisv32-
*-*)
3576 *) # See PR46792 regarding target-libffi.
3577 noconfigdirs
="$noconfigdirs target-libffi";;
3581 noconfigdirs
="$noconfigdirs target-libffi"
3586 noconfigdirs
="$noconfigdirs target-libffi"
3589 noconfigdirs
="$noconfigdirs target-libffi"
3591 i
[3456789]86-w64-mingw*)
3592 noconfigdirs
="$noconfigdirs target-libffi"
3594 i
[3456789]86-*-mingw*)
3595 noconfigdirs
="$noconfigdirs target-libffi"
3598 noconfigdirs
="$noconfigdirs target-libffi"
3601 noconfigdirs
="$noconfigdirs target-libffi"
3608 noconfigdirs
="$noconfigdirs target-libffi"
3611 noconfigdirs
="$noconfigdirs target-libffi"
3615 # Disable the go frontend on systems where it is known to not work. Please keep
3616 # this in sync with contrib/config-list.mk.
3618 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3619 unsupported_languages
="$unsupported_languages go"
3623 # Only allow gdbserver on some systems.
3624 if test -d ${srcdir}/gdbserver
; then
3625 if test x
$enable_gdbserver = x
; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3627 $as_echo_n "checking for gdbserver support... " >&6; }
3628 if (srcdir
=${srcdir}/gdbserver
; \
3629 .
${srcdir}/configure.srv
; \
3630 test -n "$UNSUPPORTED")
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3634 noconfigdirs
="$noconfigdirs gdbserver"
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3637 $as_echo "yes" >&6; }
3642 # Disable libgo for some systems where it is known to not work.
3643 # For testing, you can easily override this with --enable-libgo.
3644 if test x
$enable_libgo = x
; then
3648 noconfigdirs
="$noconfigdirs target-libgo"
3650 *-*-cygwin* |
*-*-mingw*)
3651 noconfigdirs
="$noconfigdirs target-libgo"
3654 noconfigdirs
="$noconfigdirs target-libgo"
3659 # Default libgloss CPU subdirectory.
3660 libgloss_dir
="$target_cpu"
3663 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3667 libgloss_dir
=aarch64
3672 cris-
*-* | crisv32-
*-*)
3676 libgloss_dir
=kvx-elf
3679 libgloss_dir
=kvx-mbr
3682 libgloss_dir
=kvx-cos
3691 libgloss_dir
=loongarch
3693 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3694 libgloss_dir
=m68hc11
3696 m68
*-*-* | fido-
*-*)
3713 # Disable newlib and libgloss for various target OSes.
3716 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3718 i
[3456789]86-*-linux*)
3719 # This section makes it possible to build newlib natively on linux.
3720 # If we are using a cross compiler then don't configure newlib.
3721 if test x
${is_cross_compiler} != xno
; then
3722 noconfigdirs
="$noconfigdirs target-newlib"
3724 noconfigdirs
="$noconfigdirs target-libgloss"
3725 # If we are not using a cross compiler, do configure newlib.
3726 # Note however, that newlib will only be configured in this situation
3727 # if the --with-newlib option has been given, because otherwise
3728 # 'target-newlib' will appear in skipdirs.
3730 i
[3456789]86-*-rdos*)
3731 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3733 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3734 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3737 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3740 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3743 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3746 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3749 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3752 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3755 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3757 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3758 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3761 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3764 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3767 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3770 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3773 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3776 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3779 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3783 # The ARM simulator has been deprecated for all ARM targets.
3786 noconfigdirs
="$noconfigdirs sim"
3794 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3795 noconfigdirs
="$noconfigdirs sim target-rda"
3800 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3801 noconfigdirs
="$noconfigdirs target-rda"
3804 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3805 noconfigdirs
="$noconfigdirs sim target-rda"
3807 i
[3456789]86-*-darwin*)
3808 noconfigdirs
="$noconfigdirs ld gprof"
3809 noconfigdirs
="$noconfigdirs sim target-rda"
3811 x86_64-
*-darwin[912]*)
3812 noconfigdirs
="$noconfigdirs ld gas gprof"
3813 noconfigdirs
="$noconfigdirs sim target-rda"
3816 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3817 noconfigdirs
="$noconfigdirs sim target-rda"
3822 if test "x$with_gmp" = x \
3823 && ! test -d ${srcdir}/gmp \
3824 && test -f /usr
/local
/include
/gmp.h
; then
3829 # Remove unsupported stuff on all kaOS configurations.
3830 noconfigdirs
="$noconfigdirs target-libgloss"
3837 noconfigdirs
="$noconfigdirs target-libgloss"
3840 noconfigdirs
="$noconfigdirs target-libgloss"
3842 # The tpf target doesn't support gdb yet.
3844 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3847 noconfigdirs
="$noconfigdirs target-rda"
3852 # ld works, but does not support shared libraries.
3853 # gas doesn't generate exception information.
3854 noconfigdirs
="$noconfigdirs gas ld"
3857 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3860 # newlib is not 64 bit ready
3861 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3864 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3866 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3867 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3870 noconfigdirs
="$noconfigdirs sim"
3873 noconfigdirs
="$noconfigdirs target-libgloss"
3876 noconfigdirs
="$noconfigdirs ld target-libgloss"
3879 if test x
${with_avrlibc} != xno
; then
3880 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3883 c4x-
*-* | tic4x-
*-*)
3884 noconfigdirs
="$noconfigdirs target-libgloss"
3887 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3890 noconfigdirs
="$noconfigdirs target-libgloss"
3893 noconfigdirs
="$noconfigdirs gdb"
3896 noconfigdirs
="$noconfigdirs gdb"
3899 noconfigdirs
="$noconfigdirs target-rda gprof"
3902 noconfigdirs
="$noconfigdirs"
3905 noconfigdirs
="$noconfigdirs target-libgloss"
3908 noconfigdirs
="$noconfigdirs target-libgloss"
3910 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3913 noconfigdirs
="$noconfigdirs gdb"
3916 noconfigdirs
="$noconfigdirs gdb ld"
3924 hppa
*-*-openbsd* | \
3930 noconfigdirs
="$noconfigdirs ld"
3933 noconfigdirs
="$noconfigdirs gdb"
3936 # No gdb support yet.
3937 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3940 # No ld support yet.
3941 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3944 # No ld support yet.
3945 noconfigdirs
="$noconfigdirs libgui itcl ld"
3947 i
[3456789]86-w64-mingw*)
3949 i
[3456789]86-*-mingw*)
3950 target_configdirs
="$target_configdirs target-winsup"
3953 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3954 noconfigdirs
="$noconfigdirs target-libgloss"
3955 # always build newlib if winsup directory is present.
3956 if test -d "$srcdir/winsup/cygwin"; then
3957 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3958 elif test -d "$srcdir/newlib"; then
3959 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3963 noconfigdirs
="$noconfigdirs target-libgloss"
3965 i
[3456789]86-*-sco3.2v5
*)
3966 # The linker does not yet know about weak symbols in COFF,
3967 # and is not configured to handle mixed ELF and COFF.
3968 noconfigdirs
="$noconfigdirs ld target-libgloss"
3970 i
[3456789]86-*-sco*)
3971 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3973 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3974 noconfigdirs
="$noconfigdirs target-libgloss"
3976 i
[3456789]86-*-sysv4*)
3977 noconfigdirs
="$noconfigdirs target-libgloss"
3979 i
[3456789]86-*-beos*)
3980 noconfigdirs
="$noconfigdirs gdb"
3982 i
[3456789]86-*-rdos*)
3983 noconfigdirs
="$noconfigdirs gdb"
3986 noconfigdirs
="$noconfigdirs gdb gdbserver sim"
3989 noconfigdirs
="$noconfigdirs gdb"
3992 noconfigdirs
="$noconfigdirs sim"
3995 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3996 noconfigdirs
="$noconfigdirs $target_libraries"
3999 noconfigdirs
="$noconfigdirs gdb gprof"
4002 # copied from rs6000-*-* entry
4003 noconfigdirs
="$noconfigdirs gprof"
4005 powerpc
*-*-winnt* | powerpc
*-*-pe*)
4006 target_configdirs
="$target_configdirs target-winsup"
4007 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
4008 # always build newlib.
4009 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4011 # This is temporary until we can link against shared libraries
4012 powerpcle-
*-solaris*)
4013 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
4016 noconfigdirs
="$noconfigdirs gdb"
4019 noconfigdirs
="$noconfigdirs gprof"
4022 noconfigdirs
="$noconfigdirs gprof"
4025 noconfigdirs
="$noconfigdirs gprof"
4028 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
4031 noconfigdirs
="$noconfigdirs gprof"
4033 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
4034 if test x
$with_newlib = xyes
; then
4035 noconfigdirs
="$noconfigdirs gprof"
4039 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4042 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4045 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
4049 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
4050 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
4051 noconfigdirs
="$noconfigdirs ld gas gprof"
4054 noconfigdirs
="$noconfigdirs gprof"
4057 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4064 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4068 if test x
${is_cross_compiler} = xno
; then
4073 noconfigdirs
="$noconfigdirs sim"
4075 tilepro
*-*-* | tilegx
*-*-*)
4076 noconfigdirs
="$noconfigdirs sim"
4079 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4082 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4085 noconfigdirs
="$noconfigdirs ld"
4087 loongarch
*-*-linux*)
4090 noconfigdirs
="$noconfigdirs gprof"
4094 # If we aren't building newlib, then don't build libgloss, since libgloss
4095 # depends upon some newlib header files.
4096 case "${noconfigdirs}" in
4097 *target-libgloss
*) ;;
4098 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4101 # Work in distributions that contain no compiler tools, like Autoconf.
4102 host_makefile_frag
=/dev
/null
4103 if test -d ${srcdir}/config
; then
4105 i
[3456789]86-*-msdosdjgpp*)
4106 host_makefile_frag
="config/mh-djgpp"
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4111 $as_echo_n "checking to see if cat works as expected... " >&6; }
4112 echo a
>cygwin-cat-check
4113 if test `cat cygwin-cat-check` = a
; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4116 $as_echo "yes" >&6; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 as_fn_error $?
"The cat command does not ignore carriage return characters.
4122 Please either mount the build directory in binary mode or run the following
4123 commands before running any configure script:
4129 host_makefile_frag
="config/mh-cygwin"
4132 host_makefile_frag
="config/mh-mingw"
4135 host_makefile_frag
="config/mh-alpha-linux"
4138 host_makefile_frag
="config/mh-pa"
4141 host_makefile_frag
="config/mh-pa"
4143 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4144 host_makefile_frag
="config/mh-darwin"
4147 host_makefile_frag
="config/mh-ppc-aix"
4150 host_makefile_frag
="config/mh-ppc-aix"
4155 if test "${build}" != "${host}" ; then
4156 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4157 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4158 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4159 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4160 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4161 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4162 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4163 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4164 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4165 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4166 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4167 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4168 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4169 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4170 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4172 AR_FOR_BUILD
="\$(AR)"
4173 AS_FOR_BUILD
="\$(AS)"
4174 CC_FOR_BUILD
="\$(CC)"
4175 CXX_FOR_BUILD
="\$(CXX)"
4176 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4177 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4178 GOC_FOR_BUILD
="\$(GOC)"
4179 GDC_FOR_BUILD
="\$(GDC)"
4180 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4181 LD_FOR_BUILD
="\$(LD)"
4182 NM_FOR_BUILD
="\$(NM)"
4183 RANLIB_FOR_BUILD
="\$(RANLIB)"
4184 WINDRES_FOR_BUILD
="\$(WINDRES)"
4185 WINDMC_FOR_BUILD
="\$(WINDMC)"
4189 ac_cpp
='$CPP $CPPFLAGS'
4190 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4195 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_CC+:} false
; then :
4199 $as_echo_n "(cached) " >&6
4201 if test -n "$CC"; then
4202 ac_cv_prog_CC
="$CC" # Let the user override the test.
4204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4208 test -z "$as_dir" && as_dir
=.
4209 for ac_exec_ext
in '' $ac_executable_extensions; do
4210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 if test -n "$CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4232 if test -z "$ac_cv_prog_CC"; then
4234 # Extract the first word of "gcc", so it can be a program name with args.
4235 set dummy gcc
; ac_word
=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4239 $as_echo_n "(cached) " >&6
4241 if test -n "$ac_ct_CC"; then
4242 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir
=.
4249 for ac_exec_ext
in '' $ac_executable_extensions; do
4250 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_ac_ct_CC
="gcc"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4262 if test -n "$ac_ct_CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4264 $as_echo "$ac_ct_CC" >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4270 if test "x$ac_ct_CC" = x
; then
4273 case $cross_compiling:$ac_tool_warned in
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4277 ac_tool_warned
=yes ;;
4285 if test -z "$CC"; then
4286 if test -n "$ac_tool_prefix"; then
4287 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4288 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4290 $as_echo_n "checking for $ac_word... " >&6; }
4291 if ${ac_cv_prog_CC+:} false
; then :
4292 $as_echo_n "(cached) " >&6
4294 if test -n "$CC"; then
4295 ac_cv_prog_CC
="$CC" # Let the user override the test.
4297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4301 test -z "$as_dir" && as_dir
=.
4302 for ac_exec_ext
in '' $ac_executable_extensions; do
4303 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4304 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 if test -n "$CC"; then
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4317 $as_echo "$CC" >&6; }
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4320 $as_echo "no" >&6; }
4326 if test -z "$CC"; then
4327 # Extract the first word of "cc", so it can be a program name with args.
4328 set dummy cc
; ac_word
=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if ${ac_cv_prog_CC+:} false
; then :
4332 $as_echo_n "(cached) " >&6
4334 if test -n "$CC"; then
4335 ac_cv_prog_CC
="$CC" # Let the user override the test.
4338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4342 test -z "$as_dir" && as_dir
=.
4343 for ac_exec_ext
in '' $ac_executable_extensions; do
4344 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4345 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4346 ac_prog_rejected
=yes
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 if test $ac_prog_rejected = yes; then
4358 # We found a bogon in the path, so make sure we never use it.
4359 set dummy
$ac_cv_prog_CC
4361 if test $# != 0; then
4362 # We chose a different compiler from the bogus one.
4363 # However, it has the same basename, so the bogon will be chosen
4364 # first if we set CC to just the basename; use the full file name.
4366 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4372 if test -n "$CC"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4374 $as_echo "$CC" >&6; }
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4382 if test -z "$CC"; then
4383 if test -n "$ac_tool_prefix"; then
4384 for ac_prog
in cl.exe
4386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4387 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if ${ac_cv_prog_CC+:} false
; then :
4391 $as_echo_n "(cached) " >&6
4393 if test -n "$CC"; then
4394 ac_cv_prog_CC
="$CC" # Let the user override the test.
4396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4400 test -z "$as_dir" && as_dir
=.
4401 for ac_exec_ext
in '' $ac_executable_extensions; do
4402 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 if test -n "$CC"; then
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4416 $as_echo "$CC" >&6; }
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 $as_echo "no" >&6; }
4423 test -n "$CC" && break
4426 if test -z "$CC"; then
4428 for ac_prog
in cl.exe
4430 # Extract the first word of "$ac_prog", so it can be a program name with args.
4431 set dummy
$ac_prog; ac_word
=$2
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4435 $as_echo_n "(cached) " >&6
4437 if test -n "$ac_ct_CC"; then
4438 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir
=.
4445 for ac_exec_ext
in '' $ac_executable_extensions; do
4446 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_prog_ac_ct_CC
="$ac_prog"
4448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4458 if test -n "$ac_ct_CC"; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4460 $as_echo "$ac_ct_CC" >&6; }
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4467 test -n "$ac_ct_CC" && break
4470 if test "x$ac_ct_CC" = x
; then
4473 case $cross_compiling:$ac_tool_warned in
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4477 ac_tool_warned
=yes ;;
4486 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4488 as_fn_error $?
"no acceptable C compiler found in \$PATH
4489 See \`config.log' for more details" "$LINENO" 5; }
4491 # Provide some information about the compiler.
4492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4495 for ac_option
in --version -v -V -qversion; do
4496 { { ac_try
="$ac_compiler $ac_option >&5"
4498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4505 if test -s conftest.err; then
4507 ... rest of stderr output deleted ...
4508 10q' conftest.err >conftest.er1
4509 cat conftest.er1 >&5
4511 rm -f conftest.er1 conftest.err
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4527 ac_clean_files_save=$ac_clean_files
4528 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4529 # Try to create an executable without -o first, disregard a.out.
4530 # It will help us diagnose broken compilers, and finding out an intuition
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4533 $as_echo_n "checking whether the C compiler works... " >&6; }
4534 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4536 # The possible output files:
4537 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4540 for ac_file in $ac_files
4543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4544 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4549 if { { ac_try="$ac_link_default"
4551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4552 *) ac_try_echo
=$ac_try;;
4554 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4555 $as_echo "$ac_try_echo"; } >&5
4556 (eval "$ac_link_default") 2>&5
4558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4559 test $ac_status = 0; }; then :
4560 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4561 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4562 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4563 # so that the user can short-circuit this test for compilers unknown to
4565 for ac_file
in $ac_files ''
4567 test -f "$ac_file" ||
continue
4569 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4572 # We found the default executable, but exeext='' is most
4576 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4578 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4580 # We set ac_cv_exeext here because the later test for it is not
4581 # safe: cross compilers may not add the suffix if given an `-o'
4582 # argument, so we may need to know it at that point already.
4583 # Even if this section looks crufty: it has the advantage of
4590 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4595 if test -z "$ac_file"; then :
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4598 $as_echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.
$ac_ext >&5
4601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 as_fn_error
77 "C compiler cannot create executables
4604 See \`config.log' for more details" "$LINENO" 5; }
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4607 $as_echo "yes" >&6; }
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4610 $as_echo_n "checking for C compiler default output file name... " >&6; }
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4612 $as_echo "$ac_file" >&6; }
4613 ac_exeext
=$ac_cv_exeext
4615 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4616 ac_clean_files
=$ac_clean_files_save
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4618 $as_echo_n "checking for suffix of executables... " >&6; }
4619 if { { ac_try
="$ac_link"
4621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 $as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_link") 2>&5
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }; then :
4630 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4631 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4632 # work properly (i.e., refer to `conftest.exe'), while it won't with
4634 for ac_file
in conftest.exe conftest conftest.
*; do
4635 test -f "$ac_file" ||
continue
4637 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4638 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4646 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4647 See \`config.log' for more details" "$LINENO" 5; }
4649 rm -f conftest conftest
$ac_cv_exeext
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4651 $as_echo "$ac_cv_exeext" >&6; }
4653 rm -f conftest.
$ac_ext
4654 EXEEXT
=$ac_cv_exeext
4656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4662 FILE *f = fopen ("conftest.out", "w");
4663 return ferror (f) || fclose (f) != 0;
4669 ac_clean_files
="$ac_clean_files conftest.out"
4670 # Check that the compiler produces executables we can run. If not, either
4671 # the compiler is broken, or we cross compile.
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4673 $as_echo_n "checking whether we are cross compiling... " >&6; }
4674 if test "$cross_compiling" != yes; then
4675 { { ac_try
="$ac_link"
4677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4681 $as_echo "$ac_try_echo"; } >&5
4682 (eval "$ac_link") 2>&5
4684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4685 test $ac_status = 0; }
4686 if { ac_try='./conftest$ac_cv_exeext'
4687 { { case "(($ac_try" in
4688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4689 *) ac_try_echo
=$ac_try;;
4691 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4692 $as_echo "$ac_try_echo"; } >&5
4693 (eval "$ac_try") 2>&5
4695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4696 test $ac_status = 0; }; }; then
4699 if test "$cross_compiling" = maybe
; then
4702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 as_fn_error $?
"cannot run C compiled programs.
4705 If you meant to cross compile, use \`--host'.
4706 See \`config.log' for more details" "$LINENO" 5; }
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4711 $as_echo "$cross_compiling" >&6; }
4713 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4714 ac_clean_files
=$ac_clean_files_save
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4716 $as_echo_n "checking for suffix of object files... " >&6; }
4717 if ${ac_cv_objext+:} false
; then :
4718 $as_echo_n "(cached) " >&6
4720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4731 rm -f conftest.o conftest.obj
4732 if { { ac_try
="$ac_compile"
4734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4738 $as_echo "$ac_try_echo"; } >&5
4739 (eval "$ac_compile") 2>&5
4741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4742 test $ac_status = 0; }; then :
4743 for ac_file in conftest.o conftest.obj conftest.*; do
4744 test -f "$ac_file" || continue;
4746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4747 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4752 $as_echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4757 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4758 See \
`config.log' for more details" "$LINENO" 5; }
4760 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4763 $as_echo "$ac_cv_objext" >&6; }
4764 OBJEXT=$ac_cv_objext
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4767 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4768 if ${ac_cv_c_compiler_gnu+:} false; then :
4769 $as_echo_n "(cached) " >&6
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4785 if ac_fn_c_try_compile "$LINENO"; then :
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4795 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4796 if test $ac_compiler_gnu = yes; then
4801 ac_test_CFLAGS=${CFLAGS+set}
4802 ac_save_CFLAGS=$CFLAGS
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4804 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4805 if ${ac_cv_prog_cc_g+:} false; then :
4806 $as_echo_n "(cached) " >&6
4808 ac_save_c_werror_flag=$ac_c_werror_flag
4809 ac_c_werror_flag=yes
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4823 if ac_fn_c_try_compile "$LINENO"; then :
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4838 if ac_fn_c_try_compile "$LINENO"; then :
4841 ac_c_werror_flag=$ac_save_c_werror_flag
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4854 if ac_fn_c_try_compile "$LINENO"; then :
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 ac_c_werror_flag=$ac_save_c_werror_flag
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4865 $as_echo "$ac_cv_prog_cc_g" >&6; }
4866 if test "$ac_test_CFLAGS" = set; then
4867 CFLAGS=$ac_save_CFLAGS
4868 elif test $ac_cv_prog_cc_g = yes; then
4869 if test "$GCC" = yes; then
4875 if test "$GCC" = yes; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4882 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4883 if ${ac_cv_prog_cc_c89+:} false; then :
4884 $as_echo_n "(cached) " >&6
4886 ac_cv_prog_cc_c89=no
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4893 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4894 struct buf { int x; };
4895 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4896 static char *e (p, i)
4902 static char *f (char * (*g) (char **, int), char **p, ...)
4907 s = g (p, va_arg (v,int));
4912 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4913 function prototypes and stuff, but not '\xHH' hex character constants.
4914 These don't provoke an error unfortunately, instead are silently treated
4915 as 'x'. The following induces an error, until -std is added to get
4916 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4917 array size at least. It's necessary to write '\x00'==0 to get something
4918 that's true only with -std. */
4919 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4921 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4922 inside strings and character constants. */
4924 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4926 int test (int i, double x);
4927 struct s1 {int (*f) (int a);};
4928 struct s2 {int (*f) (double a);};
4929 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4935 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4940 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4941 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4943 CC="$ac_save_CC $ac_arg"
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 ac_cv_prog_cc_c89=$ac_arg
4947 rm -f core conftest.err conftest.$ac_objext
4948 test "x$ac_cv_prog_cc_c89" != "xno" && break
4950 rm -f conftest.$ac_ext
4955 case "x$ac_cv_prog_cc_c89" in
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4958 $as_echo "none needed" >&6; } ;;
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4961 $as_echo "unsupported" >&6; } ;;
4963 CC="$CC $ac_cv_prog_cc_c89"
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4965 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4967 if test "x$ac_cv_prog_cc_c89" != xno; then :
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4978 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4979 if ${ac_cv_prog_cc_c99+:} false; then :
4980 $as_echo_n "(cached) " >&6
4982 ac_cv_prog_cc_c99=no
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4987 #include <stdbool.h>
4992 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4993 #define debug(...) fprintf (stderr, __VA_ARGS__)
4994 #define showlist(...) puts (#__VA_ARGS__)
4995 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4997 test_varargs_macros (void)
5002 debug ("X = %d\n", x);
5003 showlist (The first, second, and third items.);
5004 report (x>y, "x is %d but y is %d", x, y);
5007 // Check long long types.
5008 #define BIG64 18446744073709551615ull
5009 #define BIG32 4294967295ul
5010 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5012 your preprocessor is broken;
5016 your preprocessor is broken;
5018 static long long int bignum = -9223372036854775807LL;
5019 static unsigned long long int ubignum = BIG64;
5021 struct incomplete_array
5029 const wchar_t *name;
5033 typedef const char *ccp;
5036 test_restrict (ccp restrict text)
5038 // See if C++-style comments work.
5039 // Iterate through items via the restricted pointer.
5040 // Also check for declarations in for loops.
5041 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5046 // Check varargs and va_copy.
5048 test_varargs (const char *format, ...)
5051 va_start (args, format);
5053 va_copy (args_copy, args);
5064 str = va_arg (args_copy, const char *);
5067 number = va_arg (args_copy, int);
5070 fnumber = va_arg (args_copy, double);
5085 _Bool success = false;
5088 if (test_restrict ("String literal") == 0)
5090 char *restrict newvar = "Another string";
5093 test_varargs ("s, d' f .", "string", 65, 34.234);
5094 test_varargs_macros ();
5096 // Check flexible array members.
5097 struct incomplete_array *ia =
5098 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5100 for (int i = 0; i < ia->datasize; ++i)
5101 ia->data[i] = i * 1.234;
5103 // Check named initializers.
5104 struct named_init ni = {
5106 .name = L"Test wide string",
5107 .average = 543.34343,
5112 int dynamic_array[ni.number];
5113 dynamic_array[ni.number - 1] = 543;
5115 // work around unused variable warnings
5116 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5117 || dynamic_array[ni.number - 1] != 543);
5123 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5125 CC="$ac_save_CC $ac_arg"
5126 if ac_fn_c_try_compile "$LINENO"; then :
5127 ac_cv_prog_cc_c99=$ac_arg
5129 rm -f core conftest.err conftest.$ac_objext
5130 test "x$ac_cv_prog_cc_c99" != "xno" && break
5132 rm -f conftest.$ac_ext
5137 case "x$ac_cv_prog_cc_c99" in
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5140 $as_echo "none needed" >&6; } ;;
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5143 $as_echo "unsupported" >&6; } ;;
5145 CC="$CC $ac_cv_prog_cc_c99"
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5147 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5149 if test "x$ac_cv_prog_cc_c99" != xno; then :
5155 ac_cpp='$CXXCPP $CPPFLAGS'
5156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5159 if test -z "$CXX"; then
5160 if test -n "$CCC"; then
5163 if test -n "$ac_tool_prefix"; then
5164 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_prog_CXX+:} false; then :
5171 $as_echo_n "(cached) " >&6
5173 if test -n "$CXX"; then
5174 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 if test -n "$CXX"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5196 $as_echo "$CXX" >&6; }
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5203 test -n "$CXX" && break
5206 if test -z "$CXX"; then
5208 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5210 # Extract the first word of "$ac_prog", so it can be a program name with args.
5211 set dummy $ac_prog; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5215 $as_echo_n "(cached) " >&6
5217 if test -n "$ac_ct_CXX"; then
5218 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227 ac_cv_prog_ac_ct_CXX="$ac_prog"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5238 if test -n "$ac_ct_CXX"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5240 $as_echo "$ac_ct_CXX" >&6; }
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5247 test -n "$ac_ct_CXX" && break
5250 if test "x$ac_ct_CXX" = x; then
5253 case $cross_compiling:$ac_tool_warned in
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5257 ac_tool_warned=yes ;;
5265 # Provide some information about the compiler.
5266 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5269 for ac_option in --version -v -V -qversion; do
5270 { { ac_try="$ac_compiler $ac_option >&5"
5272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5273 *) ac_try_echo
=$ac_try;;
5275 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5276 $as_echo "$ac_try_echo"; } >&5
5277 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5279 if test -s conftest.err
; then
5281 ... rest of stderr output deleted ...
5282 10q' conftest.err
>conftest.er1
5283 cat conftest.er1
>&5
5285 rm -f conftest.er1 conftest.err
5286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5287 test $ac_status = 0; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5291 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5292 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5293 $as_echo_n "(cached) " >&6
5295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5309 if ac_fn_cxx_try_compile
"$LINENO"; then :
5314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5315 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5319 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5320 if test $ac_compiler_gnu = yes; then
5325 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5326 ac_save_CXXFLAGS
=$CXXFLAGS
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5328 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5329 if ${ac_cv_prog_cxx_g+:} false
; then :
5330 $as_echo_n "(cached) " >&6
5332 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5333 ac_cxx_werror_flag
=yes
5336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5347 if ac_fn_cxx_try_compile
"$LINENO"; then :
5348 ac_cv_prog_cxx_g
=yes
5351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5362 if ac_fn_cxx_try_compile
"$LINENO"; then :
5365 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5378 if ac_fn_cxx_try_compile
"$LINENO"; then :
5379 ac_cv_prog_cxx_g
=yes
5381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5386 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5389 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5390 if test "$ac_test_CXXFLAGS" = set; then
5391 CXXFLAGS
=$ac_save_CXXFLAGS
5392 elif test $ac_cv_prog_cxx_g = yes; then
5393 if test "$GXX" = yes; then
5399 if test "$GXX" = yes; then
5406 ac_cpp
='$CPP $CPPFLAGS'
5407 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5412 # We must set the default linker to the linker used by gcc for the correct
5413 # operation of libtool. If LD is not defined and we are using gcc, try to
5414 # set the LD default to the ld used by gcc.
5415 if test -z "$LD"; then
5416 if test "$GCC" = yes; then
5419 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5421 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5423 case $gcc_prog_ld in
5424 # Accept absolute paths.
5425 [\\/]* |
[A-Za-z
]:[\\/]*)
5426 LD
="$gcc_prog_ld" ;;
5431 # Check whether -static-libstdc++ -static-libgcc is supported.
5433 if test "$GCC" = yes; then
5434 saved_LDFLAGS
="$LDFLAGS"
5436 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5438 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5440 ac_cpp
='$CXXCPP $CPPFLAGS'
5441 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5442 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5449 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5450 #error -static-libstdc++ not implemented
5454 if ac_fn_cxx_try_link
"$LINENO"; then :
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5456 $as_echo "yes" >&6; }; have_static_libs
=yes
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5461 rm -f core conftest.err conftest.
$ac_objext \
5462 conftest
$ac_exeext conftest.
$ac_ext
5464 ac_cpp
='$CPP $CPPFLAGS'
5465 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5470 LDFLAGS
="$saved_LDFLAGS"
5476 if test -n "$ac_tool_prefix"; then
5477 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5478 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if ${ac_cv_prog_GNATBIND+:} false
; then :
5482 $as_echo_n "(cached) " >&6
5484 if test -n "$GNATBIND"; then
5485 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5491 test -z "$as_dir" && as_dir
=.
5492 for ac_exec_ext
in '' $ac_executable_extensions; do
5493 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5494 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 GNATBIND
=$ac_cv_prog_GNATBIND
5505 if test -n "$GNATBIND"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5507 $as_echo "$GNATBIND" >&6; }
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5515 if test -z "$ac_cv_prog_GNATBIND"; then
5516 ac_ct_GNATBIND
=$GNATBIND
5517 # Extract the first word of "gnatbind", so it can be a program name with args.
5518 set dummy gnatbind
; ac_word
=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5522 $as_echo_n "(cached) " >&6
5524 if test -n "$ac_ct_GNATBIND"; then
5525 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5531 test -z "$as_dir" && as_dir
=.
5532 for ac_exec_ext
in '' $ac_executable_extensions; do
5533 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5545 if test -n "$ac_ct_GNATBIND"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5547 $as_echo "$ac_ct_GNATBIND" >&6; }
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5553 if test "x$ac_ct_GNATBIND" = x
; then
5556 case $cross_compiling:$ac_tool_warned in
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560 ac_tool_warned
=yes ;;
5562 GNATBIND
=$ac_ct_GNATBIND
5565 GNATBIND
="$ac_cv_prog_GNATBIND"
5568 if test -n "$ac_tool_prefix"; then
5569 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5570 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5574 $as_echo_n "(cached) " >&6
5576 if test -n "$GNATMAKE"; then
5577 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5583 test -z "$as_dir" && as_dir
=.
5584 for ac_exec_ext
in '' $ac_executable_extensions; do
5585 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 GNATMAKE
=$ac_cv_prog_GNATMAKE
5597 if test -n "$GNATMAKE"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5599 $as_echo "$GNATMAKE" >&6; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5607 if test -z "$ac_cv_prog_GNATMAKE"; then
5608 ac_ct_GNATMAKE
=$GNATMAKE
5609 # Extract the first word of "gnatmake", so it can be a program name with args.
5610 set dummy gnatmake
; ac_word
=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5614 $as_echo_n "(cached) " >&6
5616 if test -n "$ac_ct_GNATMAKE"; then
5617 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5623 test -z "$as_dir" && as_dir
=.
5624 for ac_exec_ext
in '' $ac_executable_extensions; do
5625 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5637 if test -n "$ac_ct_GNATMAKE"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5639 $as_echo "$ac_ct_GNATMAKE" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5645 if test "x$ac_ct_GNATMAKE" = x
; then
5648 case $cross_compiling:$ac_tool_warned in
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5652 ac_tool_warned
=yes ;;
5654 GNATMAKE
=$ac_ct_GNATMAKE
5657 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5661 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5662 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5663 $as_echo_n "(cached) " >&6
5665 cat >conftest.adb
<<EOF
5666 pragma Warnings (Off);
5668 pragma Warnings (On);
5669 use type System.CRTL.int64;
5670 procedure conftest is begin null; end conftest;
5672 acx_cv_cc_gcc_supports_ada
=no
5673 # There is a bug in old released versions of GCC which causes the
5674 # driver to exit successfully when the appropriate language module
5675 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5676 # Therefore we must check for the error message as well as an
5677 # unsuccessful exit.
5678 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5679 # given a .adb file, but produce no object file. So we must check
5680 # if an object file was really produced to guard against this.
5681 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5682 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5683 acx_cv_cc_gcc_supports_ada
=yes
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5688 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5690 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5698 if test -n "$ac_tool_prefix"; then
5699 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5700 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_prog_GDC+:} false
; then :
5704 $as_echo_n "(cached) " >&6
5706 if test -n "$GDC"; then
5707 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5713 test -z "$as_dir" && as_dir
=.
5714 for ac_exec_ext
in '' $ac_executable_extensions; do
5715 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5716 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 if test -n "$GDC"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5729 $as_echo "$GDC" >&6; }
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5737 if test -z "$ac_cv_prog_GDC"; then
5739 # Extract the first word of "gdc", so it can be a program name with args.
5740 set dummy gdc
; ac_word
=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5744 $as_echo_n "(cached) " >&6
5746 if test -n "$ac_ct_GDC"; then
5747 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5753 test -z "$as_dir" && as_dir
=.
5754 for ac_exec_ext
in '' $ac_executable_extensions; do
5755 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_ac_ct_GDC
="gdc"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5767 if test -n "$ac_ct_GDC"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5769 $as_echo "$ac_ct_GDC" >&6; }
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5775 if test "x$ac_ct_GDC" = x
; then
5778 case $cross_compiling:$ac_tool_warned in
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5782 ac_tool_warned
=yes ;;
5787 GDC
="$ac_cv_prog_GDC"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5791 $as_echo_n "checking whether the D compiler works... " >&6; }
5792 if ${acx_cv_d_compiler_works+:} false
; then :
5793 $as_echo_n "(cached) " >&6
5795 cat >conftest.d
<<EOF
5796 module conftest; int main() { return 0; }
5798 acx_cv_d_compiler_works
=no
5799 if test "x$GDC" != xno
; then
5800 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5801 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5802 acx_cv_d_compiler_works
=yes
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5808 $as_echo "$acx_cv_d_compiler_works" >&6; }
5809 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5815 for ac_prog
in cargo
5817 # Extract the first word of "$ac_prog", so it can be a program name with args.
5818 set dummy
$ac_prog; ac_word
=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if ${ac_cv_prog_CARGO+:} false
; then :
5822 $as_echo_n "(cached) " >&6
5824 if test -n "$CARGO"; then
5825 ac_cv_prog_CARGO
="$CARGO" # Let the user override the test.
5827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5831 test -z "$as_dir" && as_dir
=.
5832 for ac_exec_ext
in '' $ac_executable_extensions; do
5833 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5834 ac_cv_prog_CARGO
="$ac_prog"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 CARGO
=$ac_cv_prog_CARGO
5845 if test -n "$CARGO"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5847 $as_echo "$CARGO" >&6; }
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5854 test -n "$CARGO" && break
5856 test -n "$CARGO" || CARGO
="no"
5858 if test "x$CARGO" != xno
; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5864 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5865 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5866 $as_echo_n "(cached) " >&6
5870 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5871 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5872 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5875 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5878 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5879 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5882 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5889 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5890 do_compare
="$gcc_cv_prog_cmp_skip"
5894 # Check whether --enable-bootstrap was given.
5895 if test "${enable_bootstrap+set}" = set; then :
5896 enableval
=$enable_bootstrap;
5898 enable_bootstrap
=default
5902 # Issue errors and warnings for invalid/strange bootstrap combinations.
5903 if test -r $srcdir/gcc
/configure
; then
5909 case "$have_compiler:$host:$target:$enable_bootstrap" in
5912 # Default behavior. Enable bootstrap if we have a compiler
5913 # and we are in a native configuration.
5914 yes:$build:$build:default
)
5915 enable_bootstrap
=yes ;;
5918 enable_bootstrap
=no
;;
5920 # We have a compiler and we are in a native configuration, bootstrap is ok
5921 yes:$build:$build:yes)
5924 # Other configurations, but we have a compiler. Assume the user knows
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5928 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5931 # No compiler: if they passed --enable-bootstrap explicitly, fail
5933 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5935 # Fail if wrong command line
5937 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5941 # When bootstrapping with GCC, build stage 1 in C++14 mode to ensure that a
5942 # C++14 compiler can still start the bootstrap. Otherwise, if building GCC,
5943 # require C++14 (or higher).
5944 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5945 CXX
="$CXX -std=c++14"
5946 elif test "$have_compiler" = yes; then
5947 ax_cxx_compile_alternatives
="14 1y" ax_cxx_compile_cxx14_required
=true
5949 ac_cpp
='$CXXCPP $CPPFLAGS'
5950 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5951 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5952 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
5956 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
5957 if ${ax_cv_cxx_compile_cxx14+:} false
; then :
5958 $as_echo_n "(cached) " >&6
5960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5964 // If the compiler admits that it is not ready for C++11, why torture it?
5965 // Hopefully, this will speed up the test.
5969 #error "This is not a C++ compiler"
5971 #elif __cplusplus < 201103L
5973 #error "This is not a C++11 compiler"
5980 namespace test_static_assert
5983 template <typename T>
5986 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5991 namespace test_final_override
6000 struct Derived : public Base
6002 virtual ~Derived() override {}
6003 virtual void f() override {}
6008 namespace test_double_right_angle_brackets
6011 template < typename T >
6014 typedef check<void> single_type;
6015 typedef check<check<void>> double_type;
6016 typedef check<check<check<void>>> triple_type;
6017 typedef check<check<check<check<void>>>> quadruple_type;
6021 namespace test_decltype
6034 namespace test_type_deduction
6037 template < typename T1, typename T2 >
6040 static const bool value = false;
6043 template < typename T >
6044 struct is_same<T, T>
6046 static const bool value = true;
6049 template < typename T1, typename T2 >
6051 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6057 test(const int c, volatile int v)
6059 static_assert(is_same<int, decltype(0)>::value == true, "");
6060 static_assert(is_same<int, decltype(c)>::value == false, "");
6061 static_assert(is_same<int, decltype(v)>::value == false, "");
6064 auto sumi = ac + av + 'x';
6065 auto sumf = ac + av + 1.0;
6066 static_assert(is_same<int, decltype(ac)>::value == true, "");
6067 static_assert(is_same<int, decltype(av)>::value == true, "");
6068 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6069 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6070 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6071 return (sumf > 0.0) ? sumi : add(c, v);
6076 namespace test_noexcept
6079 int f() { return 0; }
6080 int g() noexcept { return 0; }
6082 static_assert(noexcept(f()) == false, "");
6083 static_assert(noexcept(g()) == true, "");
6087 namespace test_constexpr
6090 template < typename CharT >
6091 unsigned long constexpr
6092 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6094 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6097 template < typename CharT >
6098 unsigned long constexpr
6099 strlen_c(const CharT *const s) noexcept
6101 return strlen_c_r(s, 0UL);
6104 static_assert(strlen_c("") == 0UL, "");
6105 static_assert(strlen_c("1") == 1UL, "");
6106 static_assert(strlen_c("example") == 7UL, "");
6107 static_assert(strlen_c("another\0example") == 7UL, "");
6111 namespace test_rvalue_references
6117 static constexpr int value = N;
6120 answer<1> f(int&) { return answer<1>(); }
6121 answer<2> f(const int&) { return answer<2>(); }
6122 answer<3> f(int&&) { return answer<3>(); }
6129 static_assert(decltype(f(i))::value == 1, "");
6130 static_assert(decltype(f(c))::value == 2, "");
6131 static_assert(decltype(f(0))::value == 3, "");
6136 namespace test_uniform_initialization
6141 static const int zero {};
6142 static const int one {1};
6145 static_assert(test::zero == 0, "");
6146 static_assert(test::one == 1, "");
6150 namespace test_lambdas
6156 auto lambda1 = [](){};
6157 auto lambda2 = lambda1;
6165 auto a = [](int i, int j){ return i + j; }(1, 2);
6166 auto b = []() -> int { return '0'; }();
6167 auto c = [=](){ return a + b; }();
6168 auto d = [&](){ return c; }();
6169 auto e = [a, &b](int x) mutable {
6170 const auto identity = [](int y){ return y; };
6171 for (auto i = 0; i < a; ++i)
6173 return x + identity(a + b);
6175 return a + b + c + d + e;
6181 const auto nullary = [](){ return 0; };
6182 const auto unary = [](int x){ return x; };
6183 using nullary_t = decltype(nullary);
6184 using unary_t = decltype(unary);
6185 const auto higher1st = [](nullary_t f){ return f(); };
6186 const auto higher2nd = [unary](nullary_t f1){
6187 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6189 return higher1st(nullary) + higher2nd(nullary)(unary);
6194 namespace test_variadic_templates
6200 template <int N0, int... N1toN>
6201 struct sum<N0, N1toN...>
6203 static constexpr auto value = N0 + sum<N1toN...>::value;
6209 static constexpr auto value = 0;
6212 static_assert(sum<>::value == 0, "");
6213 static_assert(sum<1>::value == 1, "");
6214 static_assert(sum<23>::value == 23, "");
6215 static_assert(sum<1, 2>::value == 3, "");
6216 static_assert(sum<5, 5, 11>::value == 21, "");
6217 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6221 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6222 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6224 namespace test_template_alias_sfinae
6229 template<typename T>
6230 using member = typename T::member_type;
6232 template<typename T>
6235 template<typename T>
6236 void func(member<T>*) {}
6240 void test() { func<foo>(0); }
6244 } // namespace cxx11
6246 #endif // __cplusplus >= 201103L
6251 // If the compiler admits that it is not ready for C++14, why torture it?
6252 // Hopefully, this will speed up the test.
6256 #error "This is not a C++ compiler"
6258 #elif __cplusplus < 201402L
6260 #error "This is not a C++14 compiler"
6267 namespace test_polymorphic_lambdas
6273 const auto lambda = [](auto&&... args){
6274 const auto istiny = [](auto x){
6275 return (sizeof(x) == 1UL) ? 1 : 0;
6277 const int aretiny[] = { istiny(args)... };
6280 return lambda(1, 1L, 1.0f, '1');
6285 namespace test_binary_literals
6288 constexpr auto ivii = 0b0000000000101010;
6289 static_assert(ivii == 42, "wrong value");
6293 namespace test_generalized_constexpr
6296 template < typename CharT >
6297 constexpr unsigned long
6298 strlen_c(const CharT *const s) noexcept
6301 for (auto p = s; *p; ++p)
6306 static_assert(strlen_c("") == 0UL, "");
6307 static_assert(strlen_c("x") == 1UL, "");
6308 static_assert(strlen_c("test") == 4UL, "");
6309 static_assert(strlen_c("another\0test") == 7UL, "");
6313 namespace test_lambda_init_capture
6320 const auto lambda1 = [a = x](int b){ return a + b; };
6321 const auto lambda2 = [a = lambda1(x)](){ return a; };
6327 namespace test_digit_separators
6330 constexpr auto ten_million = 100'000'000;
6331 static_assert(ten_million == 100000000, "");
6335 namespace test_return_type_deduction
6338 auto f(int& x) { return x; }
6339 decltype(auto) g(int& x) { return x; }
6341 template < typename T1, typename T2 >
6344 static constexpr auto value = false;
6347 template < typename T >
6348 struct is_same<T, T>
6350 static constexpr auto value = true;
6357 static_assert(is_same<int, decltype(f(x))>::value, "");
6358 static_assert(is_same<int&, decltype(g(x))>::value, "");
6364 } // namespace cxx14
6366 #endif // __cplusplus >= 201402L
6371 if ac_fn_cxx_try_compile
"$LINENO"; then :
6372 ax_cv_cxx_compile_cxx14
=yes
6374 ax_cv_cxx_compile_cxx14
=no
6376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
6379 $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
6380 if test x
$ax_cv_cxx_compile_cxx14 = xyes
; then
6384 if test x
$ac_success = xno
; then
6385 for alternative
in ${ax_cxx_compile_alternatives}; do
6386 switch
="-std=gnu++${alternative}"
6387 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6389 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6390 if eval \
${$cachevar+:} false
; then :
6391 $as_echo_n "(cached) " >&6
6395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6399 // If the compiler admits that it is not ready for C++11, why torture it?
6400 // Hopefully, this will speed up the test.
6404 #error "This is not a C++ compiler"
6406 #elif __cplusplus < 201103L
6408 #error "This is not a C++11 compiler"
6415 namespace test_static_assert
6418 template <typename T>
6421 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6426 namespace test_final_override
6435 struct Derived : public Base
6437 virtual ~Derived() override {}
6438 virtual void f() override {}
6443 namespace test_double_right_angle_brackets
6446 template < typename T >
6449 typedef check<void> single_type;
6450 typedef check<check<void>> double_type;
6451 typedef check<check<check<void>>> triple_type;
6452 typedef check<check<check<check<void>>>> quadruple_type;
6456 namespace test_decltype
6469 namespace test_type_deduction
6472 template < typename T1, typename T2 >
6475 static const bool value = false;
6478 template < typename T >
6479 struct is_same<T, T>
6481 static const bool value = true;
6484 template < typename T1, typename T2 >
6486 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6492 test(const int c, volatile int v)
6494 static_assert(is_same<int, decltype(0)>::value == true, "");
6495 static_assert(is_same<int, decltype(c)>::value == false, "");
6496 static_assert(is_same<int, decltype(v)>::value == false, "");
6499 auto sumi = ac + av + 'x';
6500 auto sumf = ac + av + 1.0;
6501 static_assert(is_same<int, decltype(ac)>::value == true, "");
6502 static_assert(is_same<int, decltype(av)>::value == true, "");
6503 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6504 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6505 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6506 return (sumf > 0.0) ? sumi : add(c, v);
6511 namespace test_noexcept
6514 int f() { return 0; }
6515 int g() noexcept { return 0; }
6517 static_assert(noexcept(f()) == false, "");
6518 static_assert(noexcept(g()) == true, "");
6522 namespace test_constexpr
6525 template < typename CharT >
6526 unsigned long constexpr
6527 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6529 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6532 template < typename CharT >
6533 unsigned long constexpr
6534 strlen_c(const CharT *const s) noexcept
6536 return strlen_c_r(s, 0UL);
6539 static_assert(strlen_c("") == 0UL, "");
6540 static_assert(strlen_c("1") == 1UL, "");
6541 static_assert(strlen_c("example") == 7UL, "");
6542 static_assert(strlen_c("another\0example") == 7UL, "");
6546 namespace test_rvalue_references
6552 static constexpr int value = N;
6555 answer<1> f(int&) { return answer<1>(); }
6556 answer<2> f(const int&) { return answer<2>(); }
6557 answer<3> f(int&&) { return answer<3>(); }
6564 static_assert(decltype(f(i))::value == 1, "");
6565 static_assert(decltype(f(c))::value == 2, "");
6566 static_assert(decltype(f(0))::value == 3, "");
6571 namespace test_uniform_initialization
6576 static const int zero {};
6577 static const int one {1};
6580 static_assert(test::zero == 0, "");
6581 static_assert(test::one == 1, "");
6585 namespace test_lambdas
6591 auto lambda1 = [](){};
6592 auto lambda2 = lambda1;
6600 auto a = [](int i, int j){ return i + j; }(1, 2);
6601 auto b = []() -> int { return '0'; }();
6602 auto c = [=](){ return a + b; }();
6603 auto d = [&](){ return c; }();
6604 auto e = [a, &b](int x) mutable {
6605 const auto identity = [](int y){ return y; };
6606 for (auto i = 0; i < a; ++i)
6608 return x + identity(a + b);
6610 return a + b + c + d + e;
6616 const auto nullary = [](){ return 0; };
6617 const auto unary = [](int x){ return x; };
6618 using nullary_t = decltype(nullary);
6619 using unary_t = decltype(unary);
6620 const auto higher1st = [](nullary_t f){ return f(); };
6621 const auto higher2nd = [unary](nullary_t f1){
6622 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6624 return higher1st(nullary) + higher2nd(nullary)(unary);
6629 namespace test_variadic_templates
6635 template <int N0, int... N1toN>
6636 struct sum<N0, N1toN...>
6638 static constexpr auto value = N0 + sum<N1toN...>::value;
6644 static constexpr auto value = 0;
6647 static_assert(sum<>::value == 0, "");
6648 static_assert(sum<1>::value == 1, "");
6649 static_assert(sum<23>::value == 23, "");
6650 static_assert(sum<1, 2>::value == 3, "");
6651 static_assert(sum<5, 5, 11>::value == 21, "");
6652 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6656 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6657 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6659 namespace test_template_alias_sfinae
6664 template<typename T>
6665 using member = typename T::member_type;
6667 template<typename T>
6670 template<typename T>
6671 void func(member<T>*) {}
6675 void test() { func<foo>(0); }
6679 } // namespace cxx11
6681 #endif // __cplusplus >= 201103L
6686 // If the compiler admits that it is not ready for C++14, why torture it?
6687 // Hopefully, this will speed up the test.
6691 #error "This is not a C++ compiler"
6693 #elif __cplusplus < 201402L
6695 #error "This is not a C++14 compiler"
6702 namespace test_polymorphic_lambdas
6708 const auto lambda = [](auto&&... args){
6709 const auto istiny = [](auto x){
6710 return (sizeof(x) == 1UL) ? 1 : 0;
6712 const int aretiny[] = { istiny(args)... };
6715 return lambda(1, 1L, 1.0f, '1');
6720 namespace test_binary_literals
6723 constexpr auto ivii = 0b0000000000101010;
6724 static_assert(ivii == 42, "wrong value");
6728 namespace test_generalized_constexpr
6731 template < typename CharT >
6732 constexpr unsigned long
6733 strlen_c(const CharT *const s) noexcept
6736 for (auto p = s; *p; ++p)
6741 static_assert(strlen_c("") == 0UL, "");
6742 static_assert(strlen_c("x") == 1UL, "");
6743 static_assert(strlen_c("test") == 4UL, "");
6744 static_assert(strlen_c("another\0test") == 7UL, "");
6748 namespace test_lambda_init_capture
6755 const auto lambda1 = [a = x](int b){ return a + b; };
6756 const auto lambda2 = [a = lambda1(x)](){ return a; };
6762 namespace test_digit_separators
6765 constexpr auto ten_million = 100'000'000;
6766 static_assert(ten_million == 100000000, "");
6770 namespace test_return_type_deduction
6773 auto f(int& x) { return x; }
6774 decltype(auto) g(int& x) { return x; }
6776 template < typename T1, typename T2 >
6779 static constexpr auto value = false;
6782 template < typename T >
6783 struct is_same<T, T>
6785 static constexpr auto value = true;
6792 static_assert(is_same<int, decltype(f(x))>::value, "");
6793 static_assert(is_same<int&, decltype(g(x))>::value, "");
6799 } // namespace cxx14
6801 #endif // __cplusplus >= 201402L
6806 if ac_fn_cxx_try_compile
"$LINENO"; then :
6811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6814 eval ac_res
=\$
$cachevar
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6816 $as_echo "$ac_res" >&6; }
6817 if eval test x\$
$cachevar = xyes
; then
6819 if test -n "$CXXCPP" ; then
6820 CXXCPP
="$CXXCPP $switch"
6828 if test x
$ac_success = xno
; then
6829 for alternative
in ${ax_cxx_compile_alternatives}; do
6830 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6831 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_
$switch" | $as_tr_sh`
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++14 features with
$switch" >&5
6833 $as_echo_n "checking whether
$CXX supports C
++14 features with
$switch...
" >&6; }
6834 if eval \${$cachevar+:} false; then :
6835 $as_echo_n "(cached
) " >&6
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6843 // If the compiler admits that it is not ready for C++11, why torture it?
6844 // Hopefully, this will speed up the test.
6848 #error "This is not a C
++ compiler
"
6850 #elif __cplusplus < 201103L
6852 #error "This is not a C
++11 compiler
"
6859 namespace test_static_assert
6862 template <typename T>
6865 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6870 namespace test_final_override
6879 struct Derived : public Base
6881 virtual ~Derived() override {}
6882 virtual void f() override {}
6887 namespace test_double_right_angle_brackets
6890 template < typename T >
6893 typedef check<void> single_type;
6894 typedef check<check<void>> double_type;
6895 typedef check<check<check<void>>> triple_type;
6896 typedef check<check<check<check<void>>>> quadruple_type;
6900 namespace test_decltype
6913 namespace test_type_deduction
6916 template < typename T1, typename T2 >
6919 static const bool value = false;
6922 template < typename T >
6923 struct is_same<T, T>
6925 static const bool value = true;
6928 template < typename T1, typename T2 >
6930 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6936 test(const int c, volatile int v)
6938 static_assert(is_same<int, decltype(0)>::value == true, "");
6939 static_assert(is_same<int, decltype(c)>::value == false, "");
6940 static_assert(is_same<int, decltype(v)>::value == false, "");
6943 auto sumi = ac + av + 'x';
6944 auto sumf = ac + av + 1.0;
6945 static_assert(is_same<int, decltype(ac)>::value == true, "");
6946 static_assert(is_same<int, decltype(av)>::value == true, "");
6947 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6948 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6949 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6950 return (sumf > 0.0) ? sumi : add(c, v);
6955 namespace test_noexcept
6958 int f() { return 0; }
6959 int g() noexcept { return 0; }
6961 static_assert(noexcept(f()) == false, "");
6962 static_assert(noexcept(g()) == true, "");
6966 namespace test_constexpr
6969 template < typename CharT >
6970 unsigned long constexpr
6971 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6973 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6976 template < typename CharT >
6977 unsigned long constexpr
6978 strlen_c(const CharT *const s) noexcept
6980 return strlen_c_r(s, 0UL);
6983 static_assert(strlen_c("") == 0UL, "");
6984 static_assert(strlen_c("1") == 1UL, "");
6985 static_assert(strlen_c("example
") == 7UL, "");
6986 static_assert(strlen_c("another\
0example
") == 7UL, "");
6990 namespace test_rvalue_references
6996 static constexpr int value = N;
6999 answer<1> f(int&) { return answer<1>(); }
7000 answer<2> f(const int&) { return answer<2>(); }
7001 answer<3> f(int&&) { return answer<3>(); }
7008 static_assert(decltype(f(i))::value == 1, "");
7009 static_assert(decltype(f(c))::value == 2, "");
7010 static_assert(decltype(f(0))::value == 3, "");
7015 namespace test_uniform_initialization
7020 static const int zero {};
7021 static const int one {1};
7024 static_assert(test::zero == 0, "");
7025 static_assert(test::one == 1, "");
7029 namespace test_lambdas
7035 auto lambda1 = [](){};
7036 auto lambda2 = lambda1;
7044 auto a = [](int i, int j){ return i + j; }(1, 2);
7045 auto b = []() -> int { return '0'; }();
7046 auto c = [=](){ return a + b; }();
7047 auto d = [&](){ return c; }();
7048 auto e = [a, &b](int x) mutable {
7049 const auto identity = [](int y){ return y; };
7050 for (auto i = 0; i < a; ++i)
7052 return x + identity(a + b);
7054 return a + b + c + d + e;
7060 const auto nullary = [](){ return 0; };
7061 const auto unary = [](int x){ return x; };
7062 using nullary_t = decltype(nullary);
7063 using unary_t = decltype(unary);
7064 const auto higher1st = [](nullary_t f){ return f(); };
7065 const auto higher2nd = [unary](nullary_t f1){
7066 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7068 return higher1st(nullary) + higher2nd(nullary)(unary);
7073 namespace test_variadic_templates
7079 template <int N0, int... N1toN>
7080 struct sum<N0, N1toN...>
7082 static constexpr auto value = N0 + sum<N1toN...>::value;
7088 static constexpr auto value = 0;
7091 static_assert(sum<>::value == 0, "");
7092 static_assert(sum<1>::value == 1, "");
7093 static_assert(sum<23>::value == 23, "");
7094 static_assert(sum<1, 2>::value == 3, "");
7095 static_assert(sum<5, 5, 11>::value == 21, "");
7096 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7100 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7101 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7103 namespace test_template_alias_sfinae
7108 template<typename T>
7109 using member = typename T::member_type;
7111 template<typename T>
7114 template<typename T>
7115 void func(member<T>*) {}
7119 void test() { func<foo>(0); }
7123 } // namespace cxx11
7125 #endif // __cplusplus >= 201103L
7130 // If the compiler admits that it is not ready for C++14, why torture it?
7131 // Hopefully, this will speed up the test.
7135 #error "This is not a C
++ compiler
"
7137 #elif __cplusplus < 201402L
7139 #error "This is not a C
++14 compiler
"
7146 namespace test_polymorphic_lambdas
7152 const auto lambda = [](auto&&... args){
7153 const auto istiny = [](auto x){
7154 return (sizeof(x) == 1UL) ? 1 : 0;
7156 const int aretiny[] = { istiny(args)... };
7159 return lambda(1, 1L, 1.0f, '1');
7164 namespace test_binary_literals
7167 constexpr auto ivii = 0b0000000000101010;
7168 static_assert(ivii == 42, "wrong value
");
7172 namespace test_generalized_constexpr
7175 template < typename CharT >
7176 constexpr unsigned long
7177 strlen_c(const CharT *const s) noexcept
7180 for (auto p = s; *p; ++p)
7185 static_assert(strlen_c("") == 0UL, "");
7186 static_assert(strlen_c("x
") == 1UL, "");
7187 static_assert(strlen_c("test") == 4UL, "");
7188 static_assert(strlen_c("another\
0test") == 7UL, "");
7192 namespace test_lambda_init_capture
7199 const auto lambda1 = [a = x](int b){ return a + b; };
7200 const auto lambda2 = [a = lambda1(x)](){ return a; };
7206 namespace test_digit_separators
7209 constexpr auto ten_million = 100'000'000;
7210 static_assert(ten_million == 100000000, "");
7214 namespace test_return_type_deduction
7217 auto f(int& x) { return x; }
7218 decltype(auto) g(int& x) { return x; }
7220 template < typename T1, typename T2 >
7223 static constexpr auto value = false;
7226 template < typename T >
7227 struct is_same<T, T>
7229 static constexpr auto value = true;
7236 static_assert(is_same<int, decltype(f(x))>::value, "");
7237 static_assert(is_same<int&, decltype(g(x))>::value, "");
7243 } // namespace cxx14
7245 #endif // __cplusplus >= 201402L
7250 if ac_fn_cxx_try_compile "$LINENO"; then :
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258 eval ac_res=\$$cachevar
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7260 $as_echo "$ac_res" >&6; }
7261 if eval test x\$$cachevar = xyes; then
7263 if test -n "$CXXCPP" ; then
7264 CXXCPP="$CXXCPP $switch"
7270 if test x$ac_success = xyes; then
7277 ac_cpp='$CPP $CPPFLAGS'
7278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282 if test x$ax_cxx_compile_cxx14_required = xtrue; then
7283 if test x$ac_success = xno; then
7284 as_fn_error $? "*** A compiler with support
for C
++14 language features is required.
" "$LINENO" 5
7287 if test x$ac_success = xno; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++14 support was found
" >&5
7290 $as_echo "$as_me: No compiler with C
++14 support was found
" >&6;}
7294 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
7300 if test "${build}" != "${host}"; then
7301 ax_cxx_compile_alternatives
="14 1y" ax_cxx_compile_cxx14_required
=true
7303 ac_cpp
='$CXXCPP $CPPFLAGS'
7304 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7308 ax_cv_cxx_compile_cxx14_orig_cxx
="$CXX"
7309 ax_cv_cxx_compile_cxx14_orig_cxxflags
="$CXXFLAGS"
7310 ax_cv_cxx_compile_cxx14_orig_cppflags
="$CPPFLAGS"
7311 CXX
="$CXX_FOR_BUILD"
7312 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
7313 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
7315 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
7316 if ${ax_cv_cxx_compile_cxx14_FOR_BUILD+:} false
; then :
7317 $as_echo_n "(cached) " >&6
7319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7323 // If the compiler admits that it is not ready for C++11, why torture it?
7324 // Hopefully, this will speed up the test.
7328 #error "This is not a C++ compiler"
7330 #elif __cplusplus < 201103L
7332 #error "This is not a C++11 compiler"
7339 namespace test_static_assert
7342 template <typename T>
7345 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7350 namespace test_final_override
7359 struct Derived : public Base
7361 virtual ~Derived() override {}
7362 virtual void f() override {}
7367 namespace test_double_right_angle_brackets
7370 template < typename T >
7373 typedef check<void> single_type;
7374 typedef check<check<void>> double_type;
7375 typedef check<check<check<void>>> triple_type;
7376 typedef check<check<check<check<void>>>> quadruple_type;
7380 namespace test_decltype
7393 namespace test_type_deduction
7396 template < typename T1, typename T2 >
7399 static const bool value = false;
7402 template < typename T >
7403 struct is_same<T, T>
7405 static const bool value = true;
7408 template < typename T1, typename T2 >
7410 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7416 test(const int c, volatile int v)
7418 static_assert(is_same<int, decltype(0)>::value == true, "");
7419 static_assert(is_same<int, decltype(c)>::value == false, "");
7420 static_assert(is_same<int, decltype(v)>::value == false, "");
7423 auto sumi = ac + av + 'x';
7424 auto sumf = ac + av + 1.0;
7425 static_assert(is_same<int, decltype(ac)>::value == true, "");
7426 static_assert(is_same<int, decltype(av)>::value == true, "");
7427 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7428 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7429 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7430 return (sumf > 0.0) ? sumi : add(c, v);
7435 namespace test_noexcept
7438 int f() { return 0; }
7439 int g() noexcept { return 0; }
7441 static_assert(noexcept(f()) == false, "");
7442 static_assert(noexcept(g()) == true, "");
7446 namespace test_constexpr
7449 template < typename CharT >
7450 unsigned long constexpr
7451 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7453 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7456 template < typename CharT >
7457 unsigned long constexpr
7458 strlen_c(const CharT *const s) noexcept
7460 return strlen_c_r(s, 0UL);
7463 static_assert(strlen_c("") == 0UL, "");
7464 static_assert(strlen_c("1") == 1UL, "");
7465 static_assert(strlen_c("example") == 7UL, "");
7466 static_assert(strlen_c("another\0example") == 7UL, "");
7470 namespace test_rvalue_references
7476 static constexpr int value = N;
7479 answer<1> f(int&) { return answer<1>(); }
7480 answer<2> f(const int&) { return answer<2>(); }
7481 answer<3> f(int&&) { return answer<3>(); }
7488 static_assert(decltype(f(i))::value == 1, "");
7489 static_assert(decltype(f(c))::value == 2, "");
7490 static_assert(decltype(f(0))::value == 3, "");
7495 namespace test_uniform_initialization
7500 static const int zero {};
7501 static const int one {1};
7504 static_assert(test::zero == 0, "");
7505 static_assert(test::one == 1, "");
7509 namespace test_lambdas
7515 auto lambda1 = [](){};
7516 auto lambda2 = lambda1;
7524 auto a = [](int i, int j){ return i + j; }(1, 2);
7525 auto b = []() -> int { return '0'; }();
7526 auto c = [=](){ return a + b; }();
7527 auto d = [&](){ return c; }();
7528 auto e = [a, &b](int x) mutable {
7529 const auto identity = [](int y){ return y; };
7530 for (auto i = 0; i < a; ++i)
7532 return x + identity(a + b);
7534 return a + b + c + d + e;
7540 const auto nullary = [](){ return 0; };
7541 const auto unary = [](int x){ return x; };
7542 using nullary_t = decltype(nullary);
7543 using unary_t = decltype(unary);
7544 const auto higher1st = [](nullary_t f){ return f(); };
7545 const auto higher2nd = [unary](nullary_t f1){
7546 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7548 return higher1st(nullary) + higher2nd(nullary)(unary);
7553 namespace test_variadic_templates
7559 template <int N0, int... N1toN>
7560 struct sum<N0, N1toN...>
7562 static constexpr auto value = N0 + sum<N1toN...>::value;
7568 static constexpr auto value = 0;
7571 static_assert(sum<>::value == 0, "");
7572 static_assert(sum<1>::value == 1, "");
7573 static_assert(sum<23>::value == 23, "");
7574 static_assert(sum<1, 2>::value == 3, "");
7575 static_assert(sum<5, 5, 11>::value == 21, "");
7576 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7580 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7581 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7583 namespace test_template_alias_sfinae
7588 template<typename T>
7589 using member = typename T::member_type;
7591 template<typename T>
7594 template<typename T>
7595 void func(member<T>*) {}
7599 void test() { func<foo>(0); }
7603 } // namespace cxx11
7605 #endif // __cplusplus >= 201103L
7610 // If the compiler admits that it is not ready for C++14, why torture it?
7611 // Hopefully, this will speed up the test.
7615 #error "This is not a C++ compiler"
7617 #elif __cplusplus < 201402L
7619 #error "This is not a C++14 compiler"
7626 namespace test_polymorphic_lambdas
7632 const auto lambda = [](auto&&... args){
7633 const auto istiny = [](auto x){
7634 return (sizeof(x) == 1UL) ? 1 : 0;
7636 const int aretiny[] = { istiny(args)... };
7639 return lambda(1, 1L, 1.0f, '1');
7644 namespace test_binary_literals
7647 constexpr auto ivii = 0b0000000000101010;
7648 static_assert(ivii == 42, "wrong value");
7652 namespace test_generalized_constexpr
7655 template < typename CharT >
7656 constexpr unsigned long
7657 strlen_c(const CharT *const s) noexcept
7660 for (auto p = s; *p; ++p)
7665 static_assert(strlen_c("") == 0UL, "");
7666 static_assert(strlen_c("x") == 1UL, "");
7667 static_assert(strlen_c("test") == 4UL, "");
7668 static_assert(strlen_c("another\0test") == 7UL, "");
7672 namespace test_lambda_init_capture
7679 const auto lambda1 = [a = x](int b){ return a + b; };
7680 const auto lambda2 = [a = lambda1(x)](){ return a; };
7686 namespace test_digit_separators
7689 constexpr auto ten_million = 100'000'000;
7690 static_assert(ten_million == 100000000, "");
7694 namespace test_return_type_deduction
7697 auto f(int& x) { return x; }
7698 decltype(auto) g(int& x) { return x; }
7700 template < typename T1, typename T2 >
7703 static constexpr auto value = false;
7706 template < typename T >
7707 struct is_same<T, T>
7709 static constexpr auto value = true;
7716 static_assert(is_same<int, decltype(f(x))>::value, "");
7717 static_assert(is_same<int&, decltype(g(x))>::value, "");
7723 } // namespace cxx14
7725 #endif // __cplusplus >= 201402L
7730 if ac_fn_cxx_try_compile
"$LINENO"; then :
7731 ax_cv_cxx_compile_cxx14_FOR_BUILD
=yes
7733 ax_cv_cxx_compile_cxx14_FOR_BUILD
=no
7735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14_FOR_BUILD" >&5
7738 $as_echo "$ax_cv_cxx_compile_cxx14_FOR_BUILD" >&6; }
7739 if test x
$ax_cv_cxx_compile_cxx14_FOR_BUILD = xyes
; then
7743 if test x
$ac_success = xno
; then
7744 for alternative
in ${ax_cxx_compile_alternatives}; do
7745 switch
="-std=gnu++${alternative}"
7746 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
7748 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
7749 if eval \
${$cachevar+:} false
; then :
7750 $as_echo_n "(cached) " >&6
7754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7758 // If the compiler admits that it is not ready for C++11, why torture it?
7759 // Hopefully, this will speed up the test.
7763 #error "This is not a C++ compiler"
7765 #elif __cplusplus < 201103L
7767 #error "This is not a C++11 compiler"
7774 namespace test_static_assert
7777 template <typename T>
7780 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7785 namespace test_final_override
7794 struct Derived : public Base
7796 virtual ~Derived() override {}
7797 virtual void f() override {}
7802 namespace test_double_right_angle_brackets
7805 template < typename T >
7808 typedef check<void> single_type;
7809 typedef check<check<void>> double_type;
7810 typedef check<check<check<void>>> triple_type;
7811 typedef check<check<check<check<void>>>> quadruple_type;
7815 namespace test_decltype
7828 namespace test_type_deduction
7831 template < typename T1, typename T2 >
7834 static const bool value = false;
7837 template < typename T >
7838 struct is_same<T, T>
7840 static const bool value = true;
7843 template < typename T1, typename T2 >
7845 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7851 test(const int c, volatile int v)
7853 static_assert(is_same<int, decltype(0)>::value == true, "");
7854 static_assert(is_same<int, decltype(c)>::value == false, "");
7855 static_assert(is_same<int, decltype(v)>::value == false, "");
7858 auto sumi = ac + av + 'x';
7859 auto sumf = ac + av + 1.0;
7860 static_assert(is_same<int, decltype(ac)>::value == true, "");
7861 static_assert(is_same<int, decltype(av)>::value == true, "");
7862 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7863 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7864 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7865 return (sumf > 0.0) ? sumi : add(c, v);
7870 namespace test_noexcept
7873 int f() { return 0; }
7874 int g() noexcept { return 0; }
7876 static_assert(noexcept(f()) == false, "");
7877 static_assert(noexcept(g()) == true, "");
7881 namespace test_constexpr
7884 template < typename CharT >
7885 unsigned long constexpr
7886 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7888 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7891 template < typename CharT >
7892 unsigned long constexpr
7893 strlen_c(const CharT *const s) noexcept
7895 return strlen_c_r(s, 0UL);
7898 static_assert(strlen_c("") == 0UL, "");
7899 static_assert(strlen_c("1") == 1UL, "");
7900 static_assert(strlen_c("example") == 7UL, "");
7901 static_assert(strlen_c("another\0example") == 7UL, "");
7905 namespace test_rvalue_references
7911 static constexpr int value = N;
7914 answer<1> f(int&) { return answer<1>(); }
7915 answer<2> f(const int&) { return answer<2>(); }
7916 answer<3> f(int&&) { return answer<3>(); }
7923 static_assert(decltype(f(i))::value == 1, "");
7924 static_assert(decltype(f(c))::value == 2, "");
7925 static_assert(decltype(f(0))::value == 3, "");
7930 namespace test_uniform_initialization
7935 static const int zero {};
7936 static const int one {1};
7939 static_assert(test::zero == 0, "");
7940 static_assert(test::one == 1, "");
7944 namespace test_lambdas
7950 auto lambda1 = [](){};
7951 auto lambda2 = lambda1;
7959 auto a = [](int i, int j){ return i + j; }(1, 2);
7960 auto b = []() -> int { return '0'; }();
7961 auto c = [=](){ return a + b; }();
7962 auto d = [&](){ return c; }();
7963 auto e = [a, &b](int x) mutable {
7964 const auto identity = [](int y){ return y; };
7965 for (auto i = 0; i < a; ++i)
7967 return x + identity(a + b);
7969 return a + b + c + d + e;
7975 const auto nullary = [](){ return 0; };
7976 const auto unary = [](int x){ return x; };
7977 using nullary_t = decltype(nullary);
7978 using unary_t = decltype(unary);
7979 const auto higher1st = [](nullary_t f){ return f(); };
7980 const auto higher2nd = [unary](nullary_t f1){
7981 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7983 return higher1st(nullary) + higher2nd(nullary)(unary);
7988 namespace test_variadic_templates
7994 template <int N0, int... N1toN>
7995 struct sum<N0, N1toN...>
7997 static constexpr auto value = N0 + sum<N1toN...>::value;
8003 static constexpr auto value = 0;
8006 static_assert(sum<>::value == 0, "");
8007 static_assert(sum<1>::value == 1, "");
8008 static_assert(sum<23>::value == 23, "");
8009 static_assert(sum<1, 2>::value == 3, "");
8010 static_assert(sum<5, 5, 11>::value == 21, "");
8011 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8015 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8016 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8018 namespace test_template_alias_sfinae
8023 template<typename T>
8024 using member = typename T::member_type;
8026 template<typename T>
8029 template<typename T>
8030 void func(member<T>*) {}
8034 void test() { func<foo>(0); }
8038 } // namespace cxx11
8040 #endif // __cplusplus >= 201103L
8045 // If the compiler admits that it is not ready for C++14, why torture it?
8046 // Hopefully, this will speed up the test.
8050 #error "This is not a C++ compiler"
8052 #elif __cplusplus < 201402L
8054 #error "This is not a C++14 compiler"
8061 namespace test_polymorphic_lambdas
8067 const auto lambda = [](auto&&... args){
8068 const auto istiny = [](auto x){
8069 return (sizeof(x) == 1UL) ? 1 : 0;
8071 const int aretiny[] = { istiny(args)... };
8074 return lambda(1, 1L, 1.0f, '1');
8079 namespace test_binary_literals
8082 constexpr auto ivii = 0b0000000000101010;
8083 static_assert(ivii == 42, "wrong value");
8087 namespace test_generalized_constexpr
8090 template < typename CharT >
8091 constexpr unsigned long
8092 strlen_c(const CharT *const s) noexcept
8095 for (auto p = s; *p; ++p)
8100 static_assert(strlen_c("") == 0UL, "");
8101 static_assert(strlen_c("x") == 1UL, "");
8102 static_assert(strlen_c("test") == 4UL, "");
8103 static_assert(strlen_c("another\0test") == 7UL, "");
8107 namespace test_lambda_init_capture
8114 const auto lambda1 = [a = x](int b){ return a + b; };
8115 const auto lambda2 = [a = lambda1(x)](){ return a; };
8121 namespace test_digit_separators
8124 constexpr auto ten_million = 100'000'000;
8125 static_assert(ten_million == 100000000, "");
8129 namespace test_return_type_deduction
8132 auto f(int& x) { return x; }
8133 decltype(auto) g(int& x) { return x; }
8135 template < typename T1, typename T2 >
8138 static constexpr auto value = false;
8141 template < typename T >
8142 struct is_same<T, T>
8144 static constexpr auto value = true;
8151 static_assert(is_same<int, decltype(f(x))>::value, "");
8152 static_assert(is_same<int&, decltype(g(x))>::value, "");
8158 } // namespace cxx14
8160 #endif // __cplusplus >= 201402L
8165 if ac_fn_cxx_try_compile
"$LINENO"; then :
8170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8173 eval ac_res
=\$
$cachevar
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8175 $as_echo "$ac_res" >&6; }
8176 if eval test x\$
$cachevar = xyes
; then
8178 if test -n "$CXXCPP" ; then
8179 CXXCPP
="$CXXCPP $switch"
8187 if test x
$ac_success = xno
; then
8188 for alternative
in ${ax_cxx_compile_alternatives}; do
8189 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
8190 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_
$switch" | $as_tr_sh`
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++14 features with
$switch" >&5
8192 $as_echo_n "checking whether
$CXX supports C
++14 features with
$switch...
" >&6; }
8193 if eval \${$cachevar+:} false; then :
8194 $as_echo_n "(cached
) " >&6
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8202 // If the compiler admits that it is not ready for C++11, why torture it?
8203 // Hopefully, this will speed up the test.
8207 #error "This is not a C
++ compiler
"
8209 #elif __cplusplus < 201103L
8211 #error "This is not a C
++11 compiler
"
8218 namespace test_static_assert
8221 template <typename T>
8224 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
8229 namespace test_final_override
8238 struct Derived : public Base
8240 virtual ~Derived() override {}
8241 virtual void f() override {}
8246 namespace test_double_right_angle_brackets
8249 template < typename T >
8252 typedef check<void> single_type;
8253 typedef check<check<void>> double_type;
8254 typedef check<check<check<void>>> triple_type;
8255 typedef check<check<check<check<void>>>> quadruple_type;
8259 namespace test_decltype
8272 namespace test_type_deduction
8275 template < typename T1, typename T2 >
8278 static const bool value = false;
8281 template < typename T >
8282 struct is_same<T, T>
8284 static const bool value = true;
8287 template < typename T1, typename T2 >
8289 add(T1 a1, T2 a2) -> decltype(a1 + a2)
8295 test(const int c, volatile int v)
8297 static_assert(is_same<int, decltype(0)>::value == true, "");
8298 static_assert(is_same<int, decltype(c)>::value == false, "");
8299 static_assert(is_same<int, decltype(v)>::value == false, "");
8302 auto sumi = ac + av + 'x';
8303 auto sumf = ac + av + 1.0;
8304 static_assert(is_same<int, decltype(ac)>::value == true, "");
8305 static_assert(is_same<int, decltype(av)>::value == true, "");
8306 static_assert(is_same<int, decltype(sumi)>::value == true, "");
8307 static_assert(is_same<int, decltype(sumf)>::value == false, "");
8308 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8309 return (sumf > 0.0) ? sumi : add(c, v);
8314 namespace test_noexcept
8317 int f() { return 0; }
8318 int g() noexcept { return 0; }
8320 static_assert(noexcept(f()) == false, "");
8321 static_assert(noexcept(g()) == true, "");
8325 namespace test_constexpr
8328 template < typename CharT >
8329 unsigned long constexpr
8330 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8332 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8335 template < typename CharT >
8336 unsigned long constexpr
8337 strlen_c(const CharT *const s) noexcept
8339 return strlen_c_r(s, 0UL);
8342 static_assert(strlen_c("") == 0UL, "");
8343 static_assert(strlen_c("1") == 1UL, "");
8344 static_assert(strlen_c("example
") == 7UL, "");
8345 static_assert(strlen_c("another\
0example
") == 7UL, "");
8349 namespace test_rvalue_references
8355 static constexpr int value = N;
8358 answer<1> f(int&) { return answer<1>(); }
8359 answer<2> f(const int&) { return answer<2>(); }
8360 answer<3> f(int&&) { return answer<3>(); }
8367 static_assert(decltype(f(i))::value == 1, "");
8368 static_assert(decltype(f(c))::value == 2, "");
8369 static_assert(decltype(f(0))::value == 3, "");
8374 namespace test_uniform_initialization
8379 static const int zero {};
8380 static const int one {1};
8383 static_assert(test::zero == 0, "");
8384 static_assert(test::one == 1, "");
8388 namespace test_lambdas
8394 auto lambda1 = [](){};
8395 auto lambda2 = lambda1;
8403 auto a = [](int i, int j){ return i + j; }(1, 2);
8404 auto b = []() -> int { return '0'; }();
8405 auto c = [=](){ return a + b; }();
8406 auto d = [&](){ return c; }();
8407 auto e = [a, &b](int x) mutable {
8408 const auto identity = [](int y){ return y; };
8409 for (auto i = 0; i < a; ++i)
8411 return x + identity(a + b);
8413 return a + b + c + d + e;
8419 const auto nullary = [](){ return 0; };
8420 const auto unary = [](int x){ return x; };
8421 using nullary_t = decltype(nullary);
8422 using unary_t = decltype(unary);
8423 const auto higher1st = [](nullary_t f){ return f(); };
8424 const auto higher2nd = [unary](nullary_t f1){
8425 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8427 return higher1st(nullary) + higher2nd(nullary)(unary);
8432 namespace test_variadic_templates
8438 template <int N0, int... N1toN>
8439 struct sum<N0, N1toN...>
8441 static constexpr auto value = N0 + sum<N1toN...>::value;
8447 static constexpr auto value = 0;
8450 static_assert(sum<>::value == 0, "");
8451 static_assert(sum<1>::value == 1, "");
8452 static_assert(sum<23>::value == 23, "");
8453 static_assert(sum<1, 2>::value == 3, "");
8454 static_assert(sum<5, 5, 11>::value == 21, "");
8455 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8459 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8460 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8462 namespace test_template_alias_sfinae
8467 template<typename T>
8468 using member = typename T::member_type;
8470 template<typename T>
8473 template<typename T>
8474 void func(member<T>*) {}
8478 void test() { func<foo>(0); }
8482 } // namespace cxx11
8484 #endif // __cplusplus >= 201103L
8489 // If the compiler admits that it is not ready for C++14, why torture it?
8490 // Hopefully, this will speed up the test.
8494 #error "This is not a C
++ compiler
"
8496 #elif __cplusplus < 201402L
8498 #error "This is not a C
++14 compiler
"
8505 namespace test_polymorphic_lambdas
8511 const auto lambda = [](auto&&... args){
8512 const auto istiny = [](auto x){
8513 return (sizeof(x) == 1UL) ? 1 : 0;
8515 const int aretiny[] = { istiny(args)... };
8518 return lambda(1, 1L, 1.0f, '1');
8523 namespace test_binary_literals
8526 constexpr auto ivii = 0b0000000000101010;
8527 static_assert(ivii == 42, "wrong value
");
8531 namespace test_generalized_constexpr
8534 template < typename CharT >
8535 constexpr unsigned long
8536 strlen_c(const CharT *const s) noexcept
8539 for (auto p = s; *p; ++p)
8544 static_assert(strlen_c("") == 0UL, "");
8545 static_assert(strlen_c("x
") == 1UL, "");
8546 static_assert(strlen_c("test") == 4UL, "");
8547 static_assert(strlen_c("another\
0test") == 7UL, "");
8551 namespace test_lambda_init_capture
8558 const auto lambda1 = [a = x](int b){ return a + b; };
8559 const auto lambda2 = [a = lambda1(x)](){ return a; };
8565 namespace test_digit_separators
8568 constexpr auto ten_million = 100'000'000;
8569 static_assert(ten_million == 100000000, "");
8573 namespace test_return_type_deduction
8576 auto f(int& x) { return x; }
8577 decltype(auto) g(int& x) { return x; }
8579 template < typename T1, typename T2 >
8582 static constexpr auto value = false;
8585 template < typename T >
8586 struct is_same<T, T>
8588 static constexpr auto value = true;
8595 static_assert(is_same<int, decltype(f(x))>::value, "");
8596 static_assert(is_same<int&, decltype(g(x))>::value, "");
8602 } // namespace cxx14
8604 #endif // __cplusplus >= 201402L
8609 if ac_fn_cxx_try_compile "$LINENO"; then :
8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 eval ac_res=\$$cachevar
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
8619 $as_echo "$ac_res" >&6; }
8620 if eval test x\$$cachevar = xyes; then
8622 if test -n "$CXXCPP" ; then
8623 CXXCPP="$CXXCPP $switch"
8629 if test x$ac_success = xyes; then
8634 CXX_FOR_BUILD="$CXX"
8635 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
8636 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
8637 CXX="$ax_cv_cxx_compile_cxx14_orig_cxx"
8638 CXXFLAGS="$ax_cv_cxx_compile_cxx14_orig_cxxflags"
8639 CPPFLAGS="$ax_cv_cxx_compile_cxx14_orig_cppflags"
8641 ac_cpp='$CPP $CPPFLAGS'
8642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8646 if test x$ax_cxx_compile_cxx14_required = xtrue; then
8647 if test x$ac_success = xno; then
8648 as_fn_error $? "*** A compiler with support
for C
++14 language features is required.
" "$LINENO" 5
8651 if test x$ac_success = xno; then
8652 HAVE_CXX14_FOR_BUILD=0
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++14 support was found
" >&5
8654 $as_echo "$as_me: No compiler with C
++14 support was found
" >&6;}
8656 HAVE_CXX14_FOR_BUILD=1
8658 $as_echo "#define HAVE_CXX14_FOR_BUILD 1" >>confdefs.h
8666 # Check whether --enable-pgo-build was given.
8667 if test "${enable_pgo_build+set}" = set; then :
8668 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
8674 # Issue errors and warnings for invalid/strange PGO build combinations.
8675 case "$have_compiler:$host:$target:$enable_pgo_build" in
8678 # Allow the PGO build only if we aren't building a compiler and
8679 # we are in a native configuration.
8680 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
8682 # Disallow the PGO bootstrap if we are building a compiler.
8683 yes:*:*:yes |
yes:*:*:lto
)
8684 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
8687 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
8691 if test "$enable_pgo_build" != "no"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
8693 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
8694 old_CFLAGS
="$CFLAGS"
8695 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
8696 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
8698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8702 if ac_fn_c_try_compile
"$LINENO"; then :
8705 PGO_BUILD_GEN_CFLAGS
=
8707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8708 CFLAGS
="$old_CFLAGS"
8709 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8711 $as_echo "yes" >&6; }
8712 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
8719 if test "$enable_pgo_build" = "lto"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
8721 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
8722 old_CFLAGS
="$CFLAGS"
8723 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
8724 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
8725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8729 if ac_fn_c_try_compile
"$LINENO"; then :
8732 PGO_BUILD_LTO_CFLAGS
=
8734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8735 CFLAGS
="$old_CFLAGS"
8736 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8738 $as_echo "yes" >&6; }
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741 $as_echo "no" >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
8743 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
8751 # Used for setting $lt_cv_objdir
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8753 $as_echo_n "checking for objdir... " >&6; }
8754 if ${lt_cv_objdir+:} false
; then :
8755 $as_echo_n "(cached) " >&6
8757 rm -f .libs
2>/dev
/null
8758 mkdir .libs
2>/dev
/null
8759 if test -d .libs
; then
8762 # MS-DOS does not allow filenames that begin with a dot.
8765 rmdir .libs
2>/dev
/null
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8768 $as_echo "$lt_cv_objdir" >&6; }
8769 objdir
=$lt_cv_objdir
8775 cat >>confdefs.h
<<_ACEOF
8776 #define LT_OBJDIR "$lt_cv_objdir/"
8781 # Check for GMP, MPFR and MPC
8784 if test -d ${srcdir}/gcc
; then
8788 if test -d ${srcdir}/gdb
; then
8789 if test "x$enable_gdb" != xno
; then
8794 gmplibs
="-lmpfr -lgmp"
8795 if test x
"$require_mpc" = "xyes" ; then
8796 gmplibs
="-lmpc $gmplibs"
8801 # Specify a location for mpc
8802 # check for this first so it ends up on the link line before mpfr.
8804 # Check whether --with-mpc was given.
8805 if test "${with_mpc+set}" = set; then :
8810 # Check whether --with-mpc-include was given.
8811 if test "${with_mpc_include+set}" = set; then :
8812 withval
=$with_mpc_include;
8816 # Check whether --with-mpc-lib was given.
8817 if test "${with_mpc_lib+set}" = set; then :
8818 withval
=$with_mpc_lib;
8822 if test "x$with_mpc" != x
; then
8823 gmplibs
="-L$with_mpc/lib $gmplibs"
8824 gmpinc
="-I$with_mpc/include $gmpinc"
8826 if test "x$with_mpc_include" != x
; then
8827 gmpinc
="-I$with_mpc_include $gmpinc"
8829 if test "x$with_mpc_lib" != x
; then
8830 gmplibs
="-L$with_mpc_lib $gmplibs"
8832 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
8833 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8834 gmpinc
='-I$$s/mpc/src '"$gmpinc"
8835 # Do not test the mpc version. Assume that it is sufficient, since
8836 # it is in the source tree, and the library has not been built yet
8837 # but it would be included on the link line in the version check below
8838 # hence making the test fail.
8842 # Specify a location for mpfr
8843 # check for this first so it ends up on the link line before gmp.
8845 # Check whether --with-mpfr was given.
8846 if test "${with_mpfr+set}" = set; then :
8851 # Check whether --with-mpfr-include was given.
8852 if test "${with_mpfr_include+set}" = set; then :
8853 withval
=$with_mpfr_include;
8857 # Check whether --with-mpfr-lib was given.
8858 if test "${with_mpfr_lib+set}" = set; then :
8859 withval
=$with_mpfr_lib;
8863 if test "x$with_mpfr" != x
; then
8864 gmplibs
="-L$with_mpfr/lib $gmplibs"
8865 gmpinc
="-I$with_mpfr/include $gmpinc"
8867 if test "x$with_mpfr_include" != x
; then
8868 gmpinc
="-I$with_mpfr_include $gmpinc"
8870 if test "x$with_mpfr_lib" != x
; then
8871 gmplibs
="-L$with_mpfr_lib $gmplibs"
8873 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8874 # MPFR v3.1.0 moved the sources into a src sub-directory.
8875 if ! test -d ${srcdir}/mpfr
/src
; then
8876 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8878 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8879 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8880 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8881 # Do not test the mpfr version. Assume that it is sufficient, since
8882 # it is in the source tree, and the library has not been built yet
8883 # but it would be included on the link line in the version check below
8884 # hence making the test fail.
8888 # Specify a location for gmp
8890 # Check whether --with-gmp was given.
8891 if test "${with_gmp+set}" = set; then :
8896 # Check whether --with-gmp-include was given.
8897 if test "${with_gmp_include+set}" = set; then :
8898 withval
=$with_gmp_include;
8902 # Check whether --with-gmp-lib was given.
8903 if test "${with_gmp_lib+set}" = set; then :
8904 withval
=$with_gmp_lib;
8909 if test "x$with_gmp" != x
; then
8910 gmplibs
="-L$with_gmp/lib $gmplibs"
8911 gmpinc
="-I$with_gmp/include $gmpinc"
8913 if test "x$with_gmp_include" != x
; then
8914 gmpinc
="-I$with_gmp_include $gmpinc"
8916 if test "x$with_gmp_lib" != x
; then
8917 gmplibs
="-L$with_gmp_lib $gmplibs"
8919 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8920 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8921 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8922 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8923 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8924 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8925 # Do not test the gmp version. Assume that it is sufficient, since
8926 # it is in the source tree, and the library has not been built yet
8927 # but it would be included on the link line in the version check below
8928 # hence making the test fail.
8932 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
8934 saved_CFLAGS
="$CFLAGS"
8935 CFLAGS
="$CFLAGS $gmpinc"
8936 # Check for the recommended and required versions of GMP.
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8938 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8946 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8947 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8948 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8956 if ac_fn_c_try_compile
"$LINENO"; then :
8957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8964 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8965 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8966 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8974 if ac_fn_c_try_compile
"$LINENO"; then :
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8976 $as_echo "yes" >&6; }
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8979 $as_echo "buggy but acceptable" >&6; }
8981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }; have_gmp
=no
8986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8988 # If we have GMP, check the MPFR version.
8989 if test x
"$have_gmp" = xyes
; then
8990 # Check for the recommended and required versions of MPFR.
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8992 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
9001 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
9009 if ac_fn_c_try_compile
"$LINENO"; then :
9010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9018 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
9026 if ac_fn_c_try_compile
"$LINENO"; then :
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9028 $as_echo "yes" >&6; }
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9031 $as_echo "buggy but acceptable" >&6; }
9033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }; have_gmp
=no
9038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9041 # Check for the MPC header version.
9042 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
9043 # Check for the recommended and required versions of MPC.
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
9045 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
9046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9053 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
9061 if ac_fn_c_try_compile
"$LINENO"; then :
9062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9069 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
9077 if ac_fn_c_try_compile
"$LINENO"; then :
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9079 $as_echo "yes" >&6; }
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9082 $as_echo "buggy but acceptable" >&6; }
9084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }; have_gmp
=no
9089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9092 # Now check the MPFR library.
9093 if test x
"$have_gmp" = xyes
; then
9095 LIBS
="$LIBS $gmplibs"
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
9097 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
9098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9110 mpfr_atan2 (n, n, x, MPFR_RNDN);
9111 mpfr_erfc (n, x, MPFR_RNDN);
9112 mpfr_subnormalize (x, t, MPFR_RNDN);
9120 if ac_fn_c_try_link
"$LINENO"; then :
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9122 $as_echo "yes" >&6; }
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125 $as_echo "no" >&6; }; have_gmp
=no
9127 rm -f core conftest.err conftest.
$ac_objext \
9128 conftest
$ac_exeext conftest.
$ac_ext
9132 # Now check the MPC library
9133 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
9135 LIBS
="$LIBS $gmplibs"
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
9137 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
9138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9147 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
9148 mpc_cosh (c, c, MPC_RNDNN);
9149 mpc_pow (c, c, c, MPC_RNDNN);
9150 mpc_acosh (c, c, MPC_RNDNN);
9157 if ac_fn_c_try_link
"$LINENO"; then :
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9159 $as_echo "yes" >&6; }
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162 $as_echo "no" >&6; }; have_gmp
=no
9164 rm -f core conftest.err conftest.
$ac_objext \
9165 conftest
$ac_exeext conftest.
$ac_ext
9169 CFLAGS
="$saved_CFLAGS"
9171 # The library versions listed in the error message below should match
9172 # the HARD-minimums enforced above.
9173 if test x
$have_gmp != xyes
; then
9174 if test -d ${srcdir}/gcc
; then
9175 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
9176 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
9177 their locations. Source code for these libraries can be found at
9178 their respective hosting sites as well as at
9179 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
9180 http://gcc.gnu.org/install/prerequisites.html for additional info. If
9181 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
9182 make sure that you have installed both the libraries and the header
9183 files. They may be located in separate packages." "$LINENO" 5
9185 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
9186 Try the --with-gmp and/or --with-mpfr options to specify
9187 their locations. If you obtained GMP and/or MPFR from a vendor
9188 distribution package, make sure that you have installed both the libraries
9189 and the header files. They may be located in separate packages." "$LINENO" 5
9194 # Flags needed for both GMP, MPFR and/or MPC.
9202 # Libraries to use for stage1 or when not bootstrapping.
9204 # Check whether --with-stage1-libs was given.
9205 if test "${with_stage1_libs+set}" = set; then :
9206 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9209 stage1_libs
=$withval
9217 # Whether or not to use -static-libstdc++ and -static-libgcc. The
9218 # default is yes if gcc is being built; no otherwise. The reason for
9219 # this default is that gdb is sometimes linked against GNU Source
9220 # Highlight, which is a shared library that uses C++ exceptions. In
9221 # this case, -static-libstdc++ will cause crashes.
9223 # Check whether --with-static-standard-libraries was given.
9224 if test "${with_static_standard_libraries+set}" = set; then :
9225 withval
=$with_static_standard_libraries;
9227 with_static_standard_libraries
=auto
9230 if test "$with_static_standard_libraries" = auto
; then
9231 with_static_standard_libraries
=$have_compiler
9234 # Linker flags to use for stage1 or when not bootstrapping.
9236 # Check whether --with-stage1-ldflags was given.
9237 if test "${with_stage1_ldflags+set}" = set; then :
9238 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9241 stage1_ldflags
=$withval
9245 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
9246 # if supported. But if the user explicitly specified the libraries to use,
9247 # trust that they are doing what they want.
9248 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
9249 -a "$have_static_libs" = yes; then
9250 stage1_ldflags
="-static-libstdc++ -static-libgcc"
9256 # Libraries to use for stage2 and later builds.
9258 # Check whether --with-boot-libs was given.
9259 if test "${with_boot_libs+set}" = set; then :
9260 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9263 poststage1_libs
=$withval
9271 # Linker flags to use for stage2 and later builds.
9273 # Check whether --with-boot-ldflags was given.
9274 if test "${with_boot_ldflags+set}" = set; then :
9275 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9278 poststage1_ldflags
=$withval
9282 # In stages 2 and 3, default to linking libstdc++ and libgcc
9283 # statically. But if the user explicitly specified the libraries to
9284 # use, trust that they are doing what they want.
9285 if test "$poststage1_libs" = ""; then
9286 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
9291 *-darwin2* |
*-darwin1[56789]*)
9292 # For these versions, we default to using embedded rpaths.
9293 if test "x$enable_darwin_at_rpath" != "xno"; then
9294 poststage1_ldflags
="$poststage1_ldflags -nodefaultrpaths"
9298 # For these versions, we only use embedded rpaths on demand.
9299 if test "x$enable_darwin_at_rpath" = "xyes"; then
9300 poststage1_ldflags
="$poststage1_ldflags -nodefaultrpaths"
9306 # GCC GRAPHITE dependency isl.
9307 # Basic setup is inlined here, actual checks are in config/isl.m4
9310 # Check whether --with-isl was given.
9311 if test "${with_isl+set}" = set; then :
9316 # Treat --without-isl as a request to disable
9317 # GRAPHITE support and skip all following checks.
9318 if test "x$with_isl" != "xno"; then
9322 # Check whether --with-isl-include was given.
9323 if test "${with_isl_include+set}" = set; then :
9324 withval
=$with_isl_include;
9328 # Check whether --with-isl-lib was given.
9329 if test "${with_isl_lib+set}" = set; then :
9330 withval
=$with_isl_lib;
9334 # Check whether --enable-isl-version-check was given.
9335 if test "${enable_isl_version_check+set}" = set; then :
9336 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
9338 ENABLE_ISL_CHECK
=yes
9342 # Initialize isllibs and islinc.
9351 isllibs
="-L$with_isl/lib"
9352 islinc
="-I$with_isl/include"
9355 if test "x${with_isl_include}" != x
; then
9356 islinc
="-I$with_isl_include"
9358 if test "x${with_isl_lib}" != x
; then
9359 isllibs
="-L$with_isl_lib"
9361 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
9362 && test -d ${srcdir}/isl
; then
9363 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
9364 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
9367 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
9370 isllibs
="${isllibs} -lisl"
9374 if test "${ENABLE_ISL_CHECK}" = yes ; then
9375 _isl_saved_CFLAGS
=$CFLAGS
9376 _isl_saved_LDFLAGS
=$LDFLAGS
9377 _isl_saved_LIBS
=$LIBS
9379 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
9380 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
9381 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
9384 $as_echo_n "checking for isl 0.15 or later... " >&6; }
9385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387 #include <isl/schedule.h>
9391 isl_options_set_schedule_serialize_sccs (NULL, 0);
9396 if ac_fn_c_try_link
"$LINENO"; then :
9401 rm -f core conftest.err conftest.
$ac_objext \
9402 conftest
$ac_exeext conftest.
$ac_ext
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
9404 $as_echo "$gcc_cv_isl" >&6; }
9406 if test "${gcc_cv_isl}" = no
; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
9408 $as_echo "required isl version is 0.15 or later" >&6; }
9411 CFLAGS
=$_isl_saved_CFLAGS
9412 LDFLAGS
=$_isl_saved_LDFLAGS
9413 LIBS
=$_isl_saved_LIBS
9421 if test "x${with_isl}" = xno
; then
9422 graphite_requested
=no
9423 elif test "x${with_isl}" != x \
9424 ||
test "x${with_isl_include}" != x \
9425 ||
test "x${with_isl_lib}" != x
; then
9426 graphite_requested
=yes
9428 graphite_requested
=no
9433 if test "${gcc_cv_isl}" = no
; then
9438 if test "${graphite_requested}" = yes \
9439 && test "x${isllibs}" = x \
9440 && test "x${islinc}" = x
; then
9442 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
9448 # If the isl check failed, disable builds of in-tree variant of isl
9449 if test "x$with_isl" = xno ||
9450 test "x$gcc_cv_isl" = xno
; then
9451 noconfigdirs
="$noconfigdirs isl"
9458 # Check for LTO support.
9459 # Check whether --enable-lto was given.
9460 if test "${enable_lto+set}" = set; then :
9461 enableval
=$enable_lto; enable_lto
=$enableval
9463 enable_lto
=yes; default_enable_lto
=yes
9472 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
9473 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
9474 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
9483 if test $target_elf = yes; then :
9484 # ELF platforms build the lto-plugin always.
9485 build_lto_plugin
=yes
9488 if test x
"$default_enable_lto" = x
"yes" ; then
9490 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
9491 # On other non-ELF platforms, LTO has yet to be validated.
9495 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
9496 # It would also be nice to check the binutils support, but we don't
9497 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
9498 # warn during gcc/ subconfigure; unless you're bootstrapping with
9499 # -flto it won't be needed until after installation anyway.
9501 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
9502 *) if test x
"$enable_lto" = x
"yes"; then
9503 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
9508 # Among non-ELF, only Windows platforms support the lto-plugin so far.
9509 # Build it unless LTO was explicitly disabled.
9511 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
9518 # Check whether --enable-linker-plugin-configure-flags was given.
9519 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
9520 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
9522 extra_linker_plugin_configure_flags
=
9526 # Check whether --enable-linker-plugin-flags was given.
9527 if test "${enable_linker_plugin_flags+set}" = set; then :
9528 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
9530 extra_linker_plugin_flags
=
9535 # Handle --enable-host-pie
9536 # If host PIE executables are the default (or must be forced on) for some host,
9537 # we must pass that configuration to the gcc directory.
9539 # Check whether --enable-host-pie was given.
9540 if test "${enable_host_pie+set}" = set; then :
9541 enableval
=$enable_host_pie; host_pie
=$enableval
9544 if test x
$host_pie != xyes
; then
9545 # for Darwin20+ this is required.
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
9547 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
9549 gcc_host_pie
=--enable-host-pie
9556 # Default to PIE (mandatory for aarch64).
9558 gcc_host_pie
=--enable-host-pie
9568 # Enable --enable-host-shared.
9569 # Checked early to determine whether jit is an 'all' language
9570 # Check whether --enable-host-shared was given.
9571 if test "${enable_host_shared+set}" = set; then :
9572 enableval
=$enable_host_shared; host_shared
=$enableval
9574 x86_64-
*-darwin* | aarch64-
*-darwin*)
9575 if test x
$host_shared != xyes
; then
9576 # PIC is the default, and actually cannot be switched off.
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
9578 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
9582 if test x
$host_pie = xyes
-a x
$host_shared != xyes
; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
9584 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
9591 # 64B x86_64 and Aarch64 Darwin default to PIC.
9592 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
9593 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
9594 *-*-darwin*) host_shared
=$host_pie ;;
9602 if test x
$host_shared = xyes
; then
9605 # Since host shared is the default for 64b Darwin, and also enabled for
9606 # host_pie, ensure that we present the PIE flag when host_pie is active.
9607 if test x
$host_pie = xyes
; then
9615 elif test x
$host_pie = xyes
; then
9624 # Check for libdiagnostics support.
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdiagnostics" >&5
9626 $as_echo_n "checking whether to enable libdiagnostics... " >&6; }
9627 # Check whether --enable-libdiagnostics was given.
9628 if test "${enable_libdiagnostics+set}" = set; then :
9629 enableval
=$enable_libdiagnostics; enable_libdiagnostics
=$enableval
9631 enable_libdiagnostics
=no
9635 if test x
$enable_libdiagnostics = xyes
; then
9636 # Disable libdiagnostics if -enable-host-shared not specified
9637 # but not if building for Mingw. All code in Windows
9638 # is position independent code (PIC).
9642 if test x
$host_shared != xyes
; then
9644 Enabling libdiagnostics requires --enable-host-shared.
9646 --enable-host-shared typically slows the rest of the compiler down by
9647 a few %, so you must explicitly enable it.
9649 If you want to build both libdiagnostics and the regular compiler, it is often
9650 best to do this via two separate configure/builds, in separate
9651 directories, to avoid imposing the performance cost of
9652 --enable-host-shared on the regular compiler." "$LINENO" 5
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libdiagnostics" >&5
9658 $as_echo "$enable_libdiagnostics" >&6; }
9662 # Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
9663 # default, so we check for them here
9664 # We are doing the test here and not in the gcc/configure to be able to nicely disable the
9665 # build of the Rust frontend in case a dep is missing.
9666 missing_rust_dynlibs
=none
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9671 $as_echo_n "checking for library containing dlopen... " >&6; }
9672 if ${ac_cv_search_dlopen+:} false
; then :
9673 $as_echo_n "(cached) " >&6
9675 ac_func_search_save_LIBS
=$LIBS
9676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9679 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9694 for ac_lib
in '' dl
; do
9695 if test -z "$ac_lib"; then
9696 ac_res
="none required"
9699 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9701 if ac_fn_c_try_link
"$LINENO"; then :
9702 ac_cv_search_dlopen
=$ac_res
9704 rm -f core conftest.err conftest.
$ac_objext \
9706 if ${ac_cv_search_dlopen+:} false
; then :
9710 if ${ac_cv_search_dlopen+:} false
; then :
9713 ac_cv_search_dlopen
=no
9716 LIBS
=$ac_func_search_save_LIBS
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9719 $as_echo "$ac_cv_search_dlopen" >&6; }
9720 ac_res
=$ac_cv_search_dlopen
9721 if test "$ac_res" != no
; then :
9722 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
9727 $as_echo_n "checking for library containing pthread_create... " >&6; }
9728 if ${ac_cv_search_pthread_create+:} false
; then :
9729 $as_echo_n "(cached) " >&6
9731 ac_func_search_save_LIBS
=$LIBS
9732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9735 /* Override any GCC internal prototype to avoid an error.
9736 Use char because int might match the return type of a GCC
9737 builtin and then its argument prototype would still apply. */
9741 char pthread_create ();
9745 return pthread_create ();
9750 for ac_lib
in '' pthread
; do
9751 if test -z "$ac_lib"; then
9752 ac_res
="none required"
9755 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9757 if ac_fn_c_try_link
"$LINENO"; then :
9758 ac_cv_search_pthread_create
=$ac_res
9760 rm -f core conftest.err conftest.
$ac_objext \
9762 if ${ac_cv_search_pthread_create+:} false
; then :
9766 if ${ac_cv_search_pthread_create+:} false
; then :
9769 ac_cv_search_pthread_create
=no
9772 LIBS
=$ac_func_search_save_LIBS
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
9775 $as_echo "$ac_cv_search_pthread_create" >&6; }
9776 ac_res
=$ac_cv_search_pthread_create
9777 if test "$ac_res" != no
; then :
9778 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9785 if test "$ac_cv_search_dlopen" = no
; then
9786 missing_rust_dynlibs
="libdl"
9789 if test "$ac_cv_search_pthread_create" = no
; then
9790 missing_rust_dynlibs
="$missing_rust_dynlibs, libpthread"
9793 CRAB1_LIBS
="$CRAB1_LIBS"
9796 # If we are building PIC/PIE host executables, and we are building dependent
9797 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
9800 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
9801 host_libs_picflag
='--with-pic'
9805 # By default, C and C++ are the only stage 1 languages.
9806 stage1_languages
=,c
,
9808 # Target libraries that we bootstrap.
9809 bootstrap_target_libs
=,target-libgcc
,
9811 # Figure out what language subdirectories are present.
9812 # Look if the user specified --enable-languages="..."; if not, use
9813 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9815 # NB: embedded tabs in this IF block -- do not untabify
9816 if test -d ${srcdir}/gcc
; then
9817 if test x
"${enable_languages+set}" != xset
; then
9818 if test x
"${LANGUAGES+set}" = xset
; then
9819 enable_languages
="${LANGUAGES}"
9820 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
9822 enable_languages
=default
9825 if test x
"${enable_languages}" = x ||
9826 test x
"${enable_languages}" = xyes
;
9828 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
9832 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
9834 # 'f95' is the old name for the 'fortran' language. We issue a warning
9835 # and make the substitution.
9836 case ,${enable_languages}, in
9838 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
9839 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
9843 # If bootstrapping, C++ must be enabled.
9844 case ",$enable_languages,:$enable_bootstrap" in
9847 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
9848 enable_languages
="${enable_languages},c++"
9850 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
9855 # First scan to see if an enabled language requires some other language.
9856 # We assume that a given config-lang.in will list all the language
9857 # front ends it requires, even if some are required indirectly.
9858 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
9859 case ${lang_frag} in
9861 # The odd quoting in the next line works around
9862 # an apparent bug in bash 1.12 on linux.
9863 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
9865 # From the config-lang.in, get $language, $lang_requires, and
9866 # $lang_requires_boot_languages.
9869 lang_requires_boot_languages
=
9870 # set srcdir during sourcing lang_frag to the gcc dir.
9871 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
9872 # pollutes this shell
9873 saved_srcdir
=${srcdir}
9874 srcdir
=${srcdir}/gcc .
${lang_frag}
9875 srcdir
=${saved_srcdir}
9876 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
9877 case ,${enable_languages}, in
9882 echo " \`$other' language required by \`$language'; enabling" 1>&2
9883 enable_languages
="${enable_languages},${other}"
9887 for other
in ${lang_requires_boot_languages} ; do
9888 if test "$other" != "c"; then
9889 case ,${enable_stage1_languages}, in
9894 case ,${enable_languages}, in
9896 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
9897 enable_stage1_languages
="$enable_stage1_languages,${other}"
9908 new_enable_languages
=,c
,
9910 # If LTO is enabled, add the LTO front end.
9911 if test "$enable_lto" = "yes" ; then
9912 case ,${enable_languages}, in
9914 *) enable_languages
="${enable_languages},lto" ;;
9916 if test "${build_lto_plugin}" = "yes" ; then
9917 configdirs
="$configdirs lto-plugin"
9921 # If we're building an offloading compiler, add the LTO front end.
9922 if test x
"$enable_as_accelerator_for" != x
; then
9923 case ,${enable_languages}, in
9925 *) enable_languages
="${enable_languages},lto" ;;
9929 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9930 potential_languages
=,c
,
9932 enabled_target_libs
=
9933 disabled_target_libs
=
9935 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
9936 case ${lang_frag} in
9938 # The odd quoting in the next line works around
9939 # an apparent bug in bash 1.12 on linux.
9940 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
9942 # From the config-lang.in, get $language, $target_libs,
9943 # $lang_dirs, $boot_language, and $build_by_default
9949 build_by_default
=yes
9950 # set srcdir during sourcing. See above about save & restore
9951 saved_srcdir
=${srcdir}
9952 srcdir
=${srcdir}/gcc .
${lang_frag}
9953 srcdir
=${saved_srcdir}
9954 if test x
${language} = x
; then
9955 echo "${lang_frag} doesn't set \$language." 1>&2
9959 if test "$language" = "c++"; then
9964 # C is always enabled, so no need to add it again
9965 if test "$language" != "c"; then
9966 case ,${enable_languages}, in
9968 # Language was explicitly selected; include it
9972 # All languages are enabled
9976 # 'default' was selected, select it if it is a default language
9977 add_this_lang
=${build_by_default}
9982 # Disable languages that need other directories if these aren't available.
9983 for i
in $subdir_requires; do
9984 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9985 case ${add_this_lang} in
9987 # Specifically requested language; tell them.
9988 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9992 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9993 add_this_lang
=unsupported
9997 add_this_lang
=unsupported
10002 # Disable Ada if no preexisting GNAT is available.
10003 case ${add_this_lang}:${language}:${have_gnat} in
10005 # Specifically requested language; tell them.
10006 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
10010 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
10011 add_this_lang
=unsupported
10014 # Silently disable.
10015 add_this_lang
=unsupported
10019 # Disable D if no preexisting GDC is available.
10020 case ${add_this_lang}:${language}:${have_gdc} in
10022 # Specifically requested language; tell them.
10023 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
10027 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
10028 add_this_lang
=unsupported
10031 # Silently disable.
10032 add_this_lang
=unsupported
10036 # Disable Rust if we are missing some required C libraries for the Rust runtime.
10037 case ${add_this_lang}:${language}:${missing_rust_dynlibs} in
10039 # Nothing to do - we're not missing any C libraries
10042 as_fn_error $?
"some C libraries are required to build $language: $missing_rust_dynlibs" "$LINENO" 5
10043 add_this_lang
=unsupported
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&5
10047 $as_echo "$as_me: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&2;}
10048 add_this_lang
=unsupported
10051 # Silently disable.
10052 add_this_lang
=unsupported
10056 # Disable jit if -enable-host-shared not specified
10057 # but not if building for Mingw. All code in Windows
10058 # is position independent code (PIC).
10062 case ${add_this_lang}:${language}:${host_shared} in
10064 # PR jit/64780: explicitly specify --enable-host-shared
10066 Enabling language \"jit\" requires --enable-host-shared.
10068 --enable-host-shared typically slows the rest of the compiler down by
10069 a few %, so you must explicitly enable it.
10071 If you want to build both the jit and the regular compiler, it is often
10072 best to do this via two separate configure/builds, in separate
10073 directories, to avoid imposing the performance cost of
10074 --enable-host-shared on the regular compiler." "$LINENO" 5
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
10078 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
10079 add_this_lang
=unsupported
10082 # Silently disable.
10083 add_this_lang
=unsupported
10089 # Pre-conditions to consider whether cargo being supported.
10090 if test x
"$have_cargo" = xyes \
10091 && test x
"$build" != x
"$host"; then
10092 # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
10093 # "'cargo' should build for the host system" is resolved:
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
10095 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
10098 # Assume that cargo-produced object files are compatible with what
10099 # we're going to build here.
10102 # Disable Rust if cargo is unavailable.
10103 case ${add_this_lang}:${language}:${have_cargo} in
10105 # Specifically requested language; tell them.
10106 as_fn_error $?
"cargo is required to build $language" "$LINENO" 5
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
10110 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
10111 add_this_lang
=unsupported
10114 # Silently disable.
10115 add_this_lang
=unsupported
10120 # Disable a language that is unsupported by the target.
10121 case "${add_this_lang}: $unsupported_languages " in
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
10126 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
10127 add_this_lang
=unsupported
10131 case $add_this_lang in
10133 # Remove language-dependent dirs.
10134 disabled_target_libs
="$disabled_target_libs $target_libs"
10135 noconfigdirs
="$noconfigdirs $lang_dirs"
10138 # Remove language-dependent dirs; still show language as supported.
10139 disabled_target_libs
="$disabled_target_libs $target_libs"
10140 noconfigdirs
="$noconfigdirs $lang_dirs"
10141 potential_languages
="${potential_languages}${language},"
10144 new_enable_languages
="${new_enable_languages}${language},"
10145 potential_languages
="${potential_languages}${language},"
10146 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
10147 enabled_target_libs
="$enabled_target_libs $target_libs"
10148 case "${boot_language}:,$enable_stage1_languages," in
10149 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
10150 # Add to (comma-separated) list of stage 1 languages.
10151 case ",$stage1_languages," in
10152 *,$language,* |
,yes, |
,all
,) ;;
10153 *) stage1_languages
="${stage1_languages}${language}," ;;
10155 # We need to bootstrap any supporting libraries.
10156 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
10165 # Add target libraries which are only needed for disabled languages
10167 if test -n "$disabled_target_libs"; then
10168 for dir
in $disabled_target_libs; do
10169 case " $enabled_target_libs " in
10171 *) noconfigdirs
="$noconfigdirs $dir" ;;
10176 # Check whether --enable-stage1-languages was given.
10177 if test "${enable_stage1_languages+set}" = set; then :
10178 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
10180 # Set it to something that will have no effect in the loop below
10181 enable_stage1_languages
=c
;;
10183 enable_stage1_languages
=`echo $new_enable_languages | \
10184 sed -e "s/^,//" -e "s/,$//" ` ;;
10186 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
10187 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
10190 # Add "good" languages from enable_stage1_languages to stage1_languages,
10191 # while "bad" languages go in missing_languages. Leave no duplicates.
10192 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
10193 case $potential_languages in
10195 case $stage1_languages in
10197 *) stage1_languages
="$stage1_languages$i," ;;
10200 case $missing_languages in
10202 *) missing_languages
="$missing_languages$i," ;;
10209 # Remove leading/trailing commas that were added for simplicity
10210 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
10211 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
10212 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
10213 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
10215 if test "x$missing_languages" != x
; then
10217 The following requested languages could not be built: ${missing_languages}
10218 Supported languages are: ${potential_languages}" "$LINENO" 5
10220 if test "x$new_enable_languages" != "x$enable_languages"; then
10221 echo The following languages will be built
: ${new_enable_languages}
10222 enable_languages
="$new_enable_languages"
10226 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
10229 # Handle --disable-<component> generically.
10230 for dir
in $configdirs $build_configdirs $target_configdirs ; do
10231 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
10232 varname
=`echo $dirname | sed -e s/+/_/g`
10233 if eval test x\
${enable_${varname}} "=" xno
; then
10234 noconfigdirs
="$noconfigdirs $dir"
10238 # Check for Boehm's garbage collector
10239 # Check whether --enable-objc-gc was given.
10240 if test "${enable_objc_gc+set}" = set; then :
10241 enableval
=$enable_objc_gc;
10245 # Check whether --with-target-bdw-gc was given.
10246 if test "${with_target_bdw_gc+set}" = set; then :
10247 withval
=$with_target_bdw_gc;
10251 # Check whether --with-target-bdw-gc-include was given.
10252 if test "${with_target_bdw_gc_include+set}" = set; then :
10253 withval
=$with_target_bdw_gc_include;
10257 # Check whether --with-target-bdw-gc-lib was given.
10258 if test "${with_target_bdw_gc_lib+set}" = set; then :
10259 withval
=$with_target_bdw_gc_lib;
10263 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
10265 $as_echo_n "checking for bdw garbage collector... " >&6; }
10266 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
10268 $as_echo "using bdw-gc in default locations" >&6; }
10270 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
10271 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
10272 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
10273 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
10276 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
10281 # Disable libitm, libsanitizer, libvtv if we're not building C++
10282 case ,${enable_languages}, in
10284 # Disable libitm, libsanitizer if we're not building libstdc++
10285 case "${noconfigdirs}" in
10286 *target-libstdc
++-v3*)
10287 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
10293 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
10297 case ,${enable_languages}, in
10299 case " ${noconfigdirs} " in
10300 *\ target-libstdc
++-v3\
*)
10301 # Disable target libgrust if we're not building target libstdc++.
10302 noconfigdirs
="$noconfigdirs target-libgrust"
10308 # If gcc/ is not in the source tree then we'll not be building a
10309 # target compiler, assume in that case we don't want to build any
10310 # target libraries or tools.
10312 # This was added primarily for the benefit for binutils-gdb who reuse
10313 # this configure script, but don't always have target tools available.
10314 if test ! -d ${srcdir}/gcc
; then
10315 skipdirs
="${skipdirs} ${target_configdirs}"
10318 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
10319 # $build_configdirs and $target_configdirs.
10320 # If we have the source for $noconfigdirs entries, add them to $notsupp.
10323 for dir
in .
$skipdirs $noconfigdirs ; do
10324 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
10325 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10326 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
10327 if test -r $srcdir/$dirname/configure
; then
10328 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10331 notsupp
="$notsupp $dir"
10335 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10336 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
10337 if test -r $srcdir/$dirname/configure
; then
10338 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10341 notsupp
="$notsupp $dir"
10345 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10346 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
10347 if test -r $srcdir/$dirname/configure
; then
10348 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10351 notsupp
="$notsupp $dir"
10357 # Quietly strip out all directories which aren't configurable in this tree.
10358 # This relies on all configurable subdirectories being autoconfiscated, which
10360 build_configdirs_all
="$build_configdirs"
10362 for i
in ${build_configdirs_all} ; do
10363 j
=`echo $i | sed -e s/build-//g`
10364 if test -f ${srcdir}/$j/configure
; then
10365 build_configdirs
="${build_configdirs} $i"
10369 configdirs_all
="$configdirs"
10371 for i
in ${configdirs_all} ; do
10372 if test -f ${srcdir}/$i/configure
; then
10373 configdirs
="${configdirs} $i"
10377 target_configdirs_all
="$target_configdirs"
10379 for i
in ${target_configdirs_all} ; do
10380 j
=`echo $i | sed -e s/target-//g`
10381 if test -f ${srcdir}/$j/configure
; then
10382 target_configdirs
="${target_configdirs} $i"
10386 # libiberty-linker-plugin is special: it doesn't have its own source directory,
10387 # so we have to add it after the preceding checks.
10388 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
10390 case " $configdirs " in
10392 # If we can build libiberty, we can also build libiberty-linker-plugin.
10393 configdirs
="$configdirs libiberty-linker-plugin"
10394 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
10395 --with-libiberty=../libiberty-linker-plugin";;
10397 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
10401 # Sometimes we have special requirements for the host libiberty.
10402 extra_host_libiberty_configure_flags
=
10403 case " $configdirs " in
10404 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
10405 # When these are to be built as shared libraries, the same applies to
10407 extra_host_libiberty_configure_flags
=--enable-shared
10412 # Sometimes we have special requirements for the host zlib.
10413 extra_host_zlib_configure_flags
=
10414 case " $configdirs " in
10416 # When bfd is to be built as a shared library, the same applies to
10418 if test "$enable_shared" = "yes"; then
10419 extra_host_zlib_configure_flags
=--enable-host-shared
10425 # Produce a warning message for the subdirs we can't configure.
10426 # This isn't especially interesting in the Cygnus tree, but in the individual
10427 # FSF releases, it's important to let people know when their machine isn't
10428 # supported by the one or two programs in a package.
10430 if test -n "${notsupp}" && test -z "${norecursion}" ; then
10431 # If $appdirs is non-empty, at least one of those directories must still
10432 # be configured, or we error out. (E.g., if the gas release supports a
10433 # specified target in some subdirs but not the gas subdir, we shouldn't
10434 # pretend that all is well.)
10435 if test -n "$appdirs" ; then
10436 for dir
in $appdirs ; do
10437 if test -r $dir/Makefile.
in ; then
10438 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10442 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
10448 if test -n "$appdirs" ; then
10449 echo "*** This configuration is not supported by this package." 1>&2
10453 # Okay, some application will build, or we don't care to check. Still
10454 # notify of subdirs not getting built.
10455 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
10456 echo " ${notsupp}" 1>&2
10457 echo " (Any other directories should still work fine.)" 1>&2
10465 # To find our prefix, in gcc_cv_tool_prefix.
10467 # The user is always right.
10468 if test "${PATH_SEPARATOR+set}" != set; then
10469 echo "#! /bin/sh" >conf$$.sh
10470 echo "exit 0" >>conf$$.sh
10472 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10481 get_gcc_base_ver
="cat"
10483 # Check whether --with-gcc-major-version-only was given.
10484 if test "${with_gcc_major_version_only+set}" = set; then :
10485 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
10486 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
10496 if test "x$exec_prefix" = xNONE
; then
10497 if test "x$prefix" = xNONE
; then
10498 gcc_cv_tool_prefix
=$ac_default_prefix
10500 gcc_cv_tool_prefix
=$prefix
10503 gcc_cv_tool_prefix
=$exec_prefix
10506 # If there is no compiler in the tree, use the PATH only. In any
10507 # case, if there is no compiler in the tree nobody should use
10508 # AS_FOR_TARGET and LD_FOR_TARGET.
10509 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
10510 if test x
$with_gcc_major_version_only = xyes
; then
10511 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
10513 gcc_version
=`cat $srcdir/gcc/BASE-VER`
10515 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10516 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
10517 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10518 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
10519 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10520 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
10525 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
10526 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
10534 # Check whether --with-build-sysroot was given.
10535 if test "${with_build_sysroot+set}" = set; then :
10536 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
10537 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
10540 SYSROOT_CFLAGS_FOR_TARGET
=
10546 # Check whether --with-debug-prefix-map was given.
10547 if test "${with_debug_prefix_map+set}" = set; then :
10548 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
10549 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
10550 for debug_map
in $withval; do
10551 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
10555 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
10560 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
10561 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
10562 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
10563 # We want to ensure that TARGET libraries (which we know are built with
10564 # gcc) are built with "-O2 -g", so include those options when setting
10565 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
10566 if test "x$CFLAGS_FOR_TARGET" = x
; then
10567 if test "x${is_cross_compiler}" = xyes
; then
10568 CFLAGS_FOR_TARGET
="-g -O2"
10570 CFLAGS_FOR_TARGET
=$CFLAGS
10571 case " $CFLAGS " in
10573 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
10575 case " $CFLAGS " in
10576 *" -g "* |
*" -g3 "*) ;;
10577 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
10583 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
10584 if test "x${is_cross_compiler}" = xyes
; then
10585 CXXFLAGS_FOR_TARGET
="-g -O2"
10587 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
10588 case " $CXXFLAGS " in
10590 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
10592 case " $CXXFLAGS " in
10593 *" -g "* |
*" -g3 "*) ;;
10594 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
10602 # Handle --with-headers=XXX. If the value is not "yes", the contents of
10603 # the named directory are copied to $(tooldir)/sys-include.
10604 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
10605 if test x
${is_cross_compiler} = xno
; then
10606 echo 1>&2 '***' --with-headers is only supported when cross compiling
10609 if test x
"${with_headers}" != xyes
; then
10610 x
=${gcc_cv_tool_prefix}
10611 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
10615 # Handle --with-libs=XXX. If the value is not "yes", the contents of
10616 # the name directories are copied to $(tooldir)/lib. Multiple directories
10618 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
10619 if test x
${is_cross_compiler} = xno
; then
10620 echo 1>&2 '***' --with-libs is only supported when cross compiling
10623 if test x
"${with_libs}" != xyes
; then
10624 # Copy the libraries in reverse order, so that files in the first named
10625 # library override files in subsequent libraries.
10626 x
=${gcc_cv_tool_prefix}
10627 for l
in ${with_libs}; do
10628 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
10633 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
10635 # This is done by determining whether or not the appropriate directory
10636 # is available, and by checking whether or not specific configurations
10637 # have requested that this magic not happen.
10639 # The command line options always override the explicit settings in
10640 # configure.ac, and the settings in configure.ac override this magic.
10642 # If the default for a toolchain is to use GNU as and ld, and you don't
10643 # want to do that, then you should use the --without-gnu-as and
10644 # --without-gnu-ld options for the configure script. Similarly, if
10645 # the default is to use the included zlib and you don't want to do that,
10646 # you should use the --with-system-zlib option for the configure script.
10648 if test x
${use_gnu_as} = x
&&
10649 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
10651 extra_host_args
="$extra_host_args --with-gnu-as"
10654 if test x
${use_gnu_ld} = x
&&
10655 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
10657 extra_host_args
="$extra_host_args --with-gnu-ld"
10660 if test x
${use_included_zlib} = x
&&
10661 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
10664 with_system_zlib
=yes
10665 extra_host_args
="$extra_host_args --with-system-zlib"
10668 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
10669 # can detect this case.
10671 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
10673 extra_host_args
="$extra_host_args --with-newlib"
10676 # Handle ${copy_dirs}
10677 set fnord
${copy_dirs}
10679 while test $# != 0 ; do
10680 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
10683 echo Copying
$1 to
$2
10685 # Use the install script to create the directory and all required
10686 # parent directories.
10687 if test -d $2 ; then
10691 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
10694 # Copy the directory, assuming we have tar.
10695 # FIXME: Should we use B in the second tar? Not all systems support it.
10696 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
10698 # It is the responsibility of the user to correctly adjust all
10699 # symlinks. If somebody can figure out how to handle them correctly
10700 # here, feel free to add the code.
10702 echo $1 > $2/COPIED
10707 # Determine a target-dependent exec_prefix that the installed
10708 # gcc will search in. Keep this list sorted by triplet, with
10709 # the *-*-osname triplets last.
10711 case "${target}" in
10712 i
[34567]86-pc-msdosdjgpp*)
10713 md_exec_prefix
=/dev
/env
/DJDIR
/bin
10718 md_exec_prefix
=/usr
/ccs
/bin
10722 extra_arflags_for_target
=
10723 extra_nmflags_for_target
=
10724 extra_ranlibflags_for_target
=
10725 target_makefile_frag
=/dev
/null
10726 case "${target}" in
10728 target_makefile_frag
="config/mt-spu"
10730 loongarch
*-*linux
* | loongarch
*-*gnu
*)
10731 target_makefile_frag
="config/mt-loongarch-gnu"
10734 target_makefile_frag
="config/mt-loongarch-elf"
10736 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
10737 target_makefile_frag
="config/mt-sde"
10739 mipsisa
*-*-elfoabi*)
10740 target_makefile_frag
="config/mt-mips-elfoabi"
10742 mips
*-*-*linux
* | mips
*-*-gnu*)
10743 target_makefile_frag
="config/mt-mips-gnu"
10745 *-*-linux-android*)
10746 target_makefile_frag
="config/mt-android"
10748 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
10749 target_makefile_frag
="config/mt-gnu"
10751 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
10752 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
10753 # commands to handle both 32-bit and 64-bit objects. These flags are
10754 # harmless if we're using GNU nm or ar.
10755 extra_arflags_for_target
=" -X32_64"
10756 extra_nmflags_for_target
=" -B -X32_64"
10760 alphaieee_frag
=/dev
/null
10763 # This just makes sure to use the -mieee option to build target libs.
10764 # This should probably be set individually by each library.
10765 alphaieee_frag
="config/mt-alphaieee"
10769 # If --enable-target-optspace always use -Os instead of -O2 to build
10770 # the target libraries, similarly if it is not specified, use -Os
10771 # on selected platforms.
10772 ospace_frag
=/dev
/null
10773 case "${enable_target_optspace}:${target}" in
10775 ospace_frag
="config/mt-ospace"
10778 ospace_frag
="config/mt-d30v"
10780 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
10781 ospace_frag
="config/mt-ospace"
10786 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
10790 # Some systems (e.g., one of the i386-aix systems the gas testers are
10791 # using) don't handle "\$" correctly, so don't use it here.
10792 tooldir
='${exec_prefix}'/${target_noncanonical}
10793 build_tooldir
=${tooldir}
10795 # Create a .gdbinit file which runs the one in srcdir
10796 # and tells GDB to look there for source files.
10798 if test -r ${srcdir}/.gdbinit
; then
10801 *) cat > .
/.gdbinit
<<EOF
10805 source ${srcdir}/.gdbinit
10811 # Make sure that the compiler is able to generate an executable. If it
10812 # can't, we are probably in trouble. We don't care whether we can run the
10813 # executable--we might be using a cross compiler--we only care whether it
10814 # can be created. At this point the main configure script has set CC.
10816 echo "int main () { return 0; }" > conftest.c
10817 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10818 if test $?
= 0 ; then
10819 if test -s conftest ||
test -s conftest.exe
; then
10825 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
10826 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
10833 # Decide which environment variable is used to find dynamic libraries.
10835 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
10836 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
10837 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
10838 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
10841 # On systems where the dynamic library environment variable is PATH,
10842 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
10843 # built executables to PATH.
10844 if test "$RPATH_ENVVAR" = PATH
; then
10845 GCC_SHLIB_SUBDIR
=/shlib
10850 # Adjust the toplevel makefile according to whether bootstrap was selected.
10851 case $enable_bootstrap in
10853 bootstrap_suffix
=bootstrap
10854 BUILD_CONFIG
=bootstrap-debug
10857 bootstrap_suffix
=no-bootstrap
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
10863 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
10866 # Check whether --with-build-config was given.
10867 if test "${with_build_config+set}" = set; then :
10868 withval
=$with_build_config; case $with_build_config in
10869 yes) with_build_config
= ;;
10870 no
) with_build_config
= BUILD_CONFIG
= ;;
10875 if test "x${with_build_config}" != x
; then
10876 BUILD_CONFIG
=$with_build_config
10878 case $BUILD_CONFIG in
10880 if echo "int f (void) { return 0; }" > conftest.c
&&
10881 ${CC} -c conftest.c
&&
10882 mv conftest.o conftest.o.g0
&&
10883 ${CC} -c -g conftest.c
&&
10884 mv conftest.o conftest.o.g
&&
10885 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
10890 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
10895 $as_echo "$BUILD_CONFIG" >&6; }
10898 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
10900 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
10901 # Check whether --enable-vtable-verify was given.
10902 if test "${enable_vtable_verify+set}" = set; then :
10903 enableval
=$enable_vtable_verify; case "$enableval" in
10904 yes) enable_vtable_verify
=yes ;;
10905 no
) enable_vtable_verify
=no
;;
10906 *) enable_vtable_verify
=no
;;
10909 enable_vtable_verify
=no
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
10913 $as_echo "$enable_vtable_verify" >&6; }
10915 # Record target_configdirs and the configure arguments for target and
10916 # build configuration in Makefile.
10917 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
10918 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
10919 bootstrap_fixincludes
=no
10921 # If we are building libgomp, bootstrap it.
10922 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
10923 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
10926 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
10927 # or bootstrap-ubsan, bootstrap it.
10928 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
10929 case "$BUILD_CONFIG" in
10930 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
10931 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
10932 bootstrap_fixincludes
=yes
10937 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
10938 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
10939 test "$enable_vtable_verify" != no
; then
10940 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
10943 # If we are building libatomic and the list of enabled languages includes the
10944 # D frontend, bootstrap it.
10945 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
10946 case ,${enable_languages}, in
10948 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
10953 # Determine whether gdb needs tk/tcl or not.
10954 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
10955 # and in that case we want gdb to be built without tk. Ugh!
10956 # In fact I believe gdb is the *only* package directly dependent on tk,
10957 # so we should be able to put the 'maybe's in unconditionally and
10958 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
10959 # 100% sure that that's safe though.
10961 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
10962 case "$enable_gdbtk" in
10966 GDB_TK
="${gdb_tk}" ;;
10968 # Only add the dependency on gdbtk when GDBtk is part of the gdb
10969 # distro. Eventually someone will fix this and move Insight, nee
10970 # gdbtk to a separate directory.
10971 if test -d ${srcdir}/gdb
/gdbtk
; then
10978 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
10979 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
10981 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
10982 # else does, only include them if one of these is built. The Makefile
10983 # provides the ordering, so it's enough here to add to the list.
10984 case " ${configdirs} " in
10986 configdirs
="${configdirs} gnulib gdbsupport"
10989 configdirs
="${configdirs} gnulib gdbsupport"
10992 configdirs
="${configdirs} gnulib"
10996 # Strip out unwanted targets.
10998 # While at that, we remove Makefiles if we were started for recursive
10999 # configuration, so that the top-level Makefile reconfigures them,
11000 # like we used to do when configure itself was recursive.
11002 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
11003 # but now we're fixing up the Makefile ourselves with the additional
11004 # commands passed to AC_CONFIG_FILES. Use separate variables
11005 # extrasub-{build,host,target} not because there is any reason to split
11006 # the substitutions up that way, but only to remain below the limit of
11007 # 99 commands in a script, for HP-UX sed.
11009 # Do not nest @if/@endif or @unless/@endunless pairs, because
11010 # configure will not warn you at all.
11012 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
11013 yes:yes:*\ gold\
*:*,c
++,*) ;;
11014 yes:yes:*\ gold\
*:*)
11015 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
11019 # Bootstrapping GCC requires libstdc++-v3 so error out if libstdc++ is disabled with bootstrapping
11020 # Note C++ is always enabled for stage1 now.
11021 case "$enable_bootstrap:${noconfigdirs}" in
11022 yes:*target-libstdc
++-v3*)
11023 as_fn_error $?
"bootstrapping with --disable-libstdcxx is not supported" "$LINENO" 5
11029 for module
in ${build_configdirs} ; do
11030 if test -z "${no_recursion}" \
11031 && test -f ${build_subdir}/${module}/Makefile
; then
11032 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
11033 rm -f ${build_subdir}/${module}/Makefile
11035 extrasub_build
="$extrasub_build
11036 /^@if build-$module\$/d
11037 /^@endif build-$module\$/d
11038 /^@unless build-$module\$/,/^@endunless build-$module\$/d
11039 /^@if build-$module-$bootstrap_suffix\$/d
11040 /^@endif build-$module-$bootstrap_suffix\$/d
11041 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
11044 for module
in ${configdirs} ; do
11045 if test -z "${no_recursion}"; then
11046 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
11047 if test -f ${file}; then
11048 echo 1>&2 "*** removing ${file} to force reconfigure"
11053 case ${module},${bootstrap_fixincludes} in
11054 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
11055 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
11057 extrasub_host
="$extrasub_host
11059 /^@endif $module\$/d
11060 /^@unless $module\$/,/^@endunless $module\$/d
11061 /^@if $module-$host_bootstrap_suffix\$/d
11062 /^@endif $module-$host_bootstrap_suffix\$/d
11063 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
11066 for module
in ${target_configdirs} ; do
11067 if test -z "${no_recursion}" \
11068 && test -f ${target_subdir}/${module}/Makefile
; then
11069 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
11070 rm -f ${target_subdir}/${module}/Makefile
11073 # We only bootstrap target libraries listed in bootstrap_target_libs.
11074 case $bootstrap_target_libs in
11075 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
11076 *) target_bootstrap_suffix
=no-bootstrap
;;
11079 extrasub_target
="$extrasub_target
11080 /^@if target-$module\$/d
11081 /^@endif target-$module\$/d
11082 /^@unless target-$module\$/,/^@endunless target-$module\$/d
11083 /^@if target-$module-$target_bootstrap_suffix\$/d
11084 /^@endif target-$module-$target_bootstrap_suffix\$/d
11085 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
11088 # Do the final fixup along with target modules.
11089 extrasub_target
="$extrasub_target
11090 /^@if /,/^@endif /d
11094 if test "$enable_pgo_build" != "no"; then
11095 extrasub_build
="$extrasub_build
11096 /^@if pgo-build\$/d
11097 /^@endif pgo-build\$/d"
11100 # Create the serialization dependencies. This uses a temporary file.
11102 # Check whether --enable-serial-configure was given.
11103 if test "${enable_serial_configure+set}" = set; then :
11104 enableval
=$enable_serial_configure;
11108 case ${enable_serial_configure} in
11110 enable_serial_build_configure
=yes
11111 enable_serial_host_configure
=yes
11112 enable_serial_target_configure
=yes
11116 # These force 'configure's to be done one at a time, to avoid problems
11117 # with contention over a shared config.cache.
11119 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes
; then
11120 echo '# serdep.tmp' > serdep.tmp
11123 test "x${enable_serial_build_configure}" = xyes
&&
11124 for item
in ${build_configdirs} ; do
11127 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
11132 test "x${enable_serial_host_configure}" = xyes
&&
11133 for item
in ${configdirs} ; do
11136 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
11141 test "x${enable_serial_target_configure}" = xyes
&&
11142 for item
in ${target_configdirs} ; do
11145 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
11149 serialization_dependencies
=serdep.tmp
11152 # Base args. Strip norecursion, cache-file, srcdir, host, build,
11153 # target, nonopt, and variable assignments. These are the ones we
11154 # might not want to pass down to subconfigures. The exception being
11155 # --cache-file=/dev/null, which is used to turn off the use of cache
11156 # files altogether, and which should be passed on to subconfigures.
11157 # Also strip program-prefix, program-suffix, and program-transform-name,
11158 # so that we can pass down a consistent program-transform-name.
11164 eval "set -- $ac_configure_args"
11167 if test X
"$skip_next" = X
"yes"; then
11171 if test X
"$keep_next" = X
"yes"; then
11174 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11176 hbaseargs
="$hbaseargs '$ac_arg'"
11177 bbaseargs
="$bbaseargs '$ac_arg'"
11178 tbaseargs
="$tbaseargs '$ac_arg'"
11183 # Handle separated arguments. Based on the logic generated by
11186 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
11187 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
11188 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
11189 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
11204 --with-* |
--without-*)
11205 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
11209 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
11212 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
11215 lib
=`echo "$libopt" | sed 's,[-_]prefix$,,'`
11218 lib
=`echo "$libopt" | sed 's,[-_]type$,,'`
11227 mpc | mpfr | gmp | isl
)
11228 # If we're processing --with-$lib, --with-$lib-include or
11229 # --with-$lib-lib, for one of the libs above, and target is
11230 # different from host, don't pass the current argument to any
11231 # target library's configure.
11232 if test x
$is_cross_compiler = xyes
; then
11236 libintl | libiconv
)
11237 # We don't want libintl (and co.) in anything but the host arguments.
11246 --cache-file=/dev
/null | \
11247 -cache-file=/dev
/null
)
11248 # Handled here to avoid the test to skip args below.
11249 hbaseargs
="$hbaseargs '$ac_arg'"
11250 bbaseargs
="$bbaseargs '$ac_arg'"
11251 tbaseargs
="$tbaseargs '$ac_arg'"
11252 # Assert: $separate_arg should always be no.
11253 keep_next
=$separate_arg
11269 -program-prefix* | \
11270 -program-suffix* | \
11271 -program-transform-name* )
11272 skip_next
=$separate_arg
11276 # An option. Add it.
11279 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11281 hbaseargs
="$hbaseargs '$ac_arg'"
11282 if test X
"$skip_barg" = Xno
; then
11283 bbaseargs
="$bbaseargs '$ac_arg'"
11285 if test X
"$skip_targ" = Xno
; then
11286 tbaseargs
="$tbaseargs '$ac_arg'"
11288 keep_next
=$separate_arg
11291 # Either a variable assignment, or a nonopt (triplet). Don't
11292 # pass it down; let the Makefile handle this.
11297 # Remove the initial space we just introduced and, as these will be
11298 # expanded by make, quote '$'.
11299 hbaseargs
=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11300 bbaseargs
=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11302 # Add in --program-transform-name, after --program-prefix and
11303 # --program-suffix have been applied to it. Autoconf has already
11304 # doubled dollar signs and backslashes in program_transform_name; we want
11305 # the backslashes un-doubled, and then the entire thing wrapped in single
11306 # quotes, because this will be expanded first by make and then by the shell.
11307 # Also, because we want to override the logic in subdir configure scripts to
11308 # choose program_transform_name, replace any s,x,x, with s,y,y,.
11309 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
11310 ${program_transform_name}
11312 gcc_transform_name
=`cat conftestsed.out`
11313 rm -f conftestsed.out
11314 hbaseargs
="$hbaseargs --program-transform-name='${gcc_transform_name}'"
11315 bbaseargs
="$bbaseargs --program-transform-name='${gcc_transform_name}'"
11316 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
11317 if test "$silent" = yes; then
11318 bbaseargs
="$bbaseargs --silent"
11319 hbaseargs
="$hbaseargs --silent"
11320 tbaseargs
="$tbaseargs --silent"
11323 bbaseargs
="$bbaseargs --disable-option-checking"
11324 hbaseargs
="$hbaseargs --disable-option-checking"
11325 tbaseargs
="$tbaseargs --disable-option-checking"
11327 if test "$enable_year2038" = no
; then
11328 bbaseargs
="$bbaseargs --disable-year2038"
11329 hbaseargs
="$hbaseargs --disable-year2038"
11330 tbaseargs
="$tbaseargs --disable-year2038"
11333 # Record and document user additions to sub configure arguments.
11338 # For the build-side libraries, we just need to pretend we're native,
11339 # and not use the same cache file. Multilibs are neither needed nor
11340 # desired. We can't even use the same cache file for all build-side
11341 # libraries, as they're compiled differently; some with C, some with
11342 # C++ or with different feature-enabling options.
11343 build_configargs
="$build_configargs --cache-file=./config.cache ${bbaseargs}"
11345 # For host modules, accept cache file option, or specification as blank.
11346 case "${cache_file}" in
11348 cache_file_option
="" ;;
11349 /* |
[A-Za-z
]:[\\/]* ) # absolute path
11350 cache_file_option
="--cache-file=${cache_file}" ;;
11352 cache_file_option
="--cache-file=../${cache_file}" ;;
11355 # Host dirs don't like to share a cache file either, horribly enough.
11356 # This seems to be due to autoconf 2.5x stupidity.
11357 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
11359 target_configargs
="$target_configargs ${tbaseargs}"
11361 # Passing a --with-cross-host argument lets the target libraries know
11362 # whether they are being built with a cross-compiler or being built
11363 # native. However, it would be better to use other mechanisms to make the
11364 # sorts of decisions they want to make on this basis. Please consider
11365 # this option to be deprecated. FIXME.
11366 if test x
${is_cross_compiler} = xyes
; then
11367 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
11370 # Special user-friendly check for native x86_64-linux build, if
11371 # multilib is not explicitly enabled.
11372 case "$target:$have_compiler:$host:$target:$enable_multilib" in
11373 x86_64-
*linux
*:yes:$build:$build:)
11374 # Make sure we have a development environment that handles 32-bit
11376 echo "int main () { return 0; }" > conftest.c
11377 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
11378 if test $?
= 0 ; then
11379 if test -s conftest ||
test -s conftest.exe
; then
11384 if test x
${dev64} != xyes
; then
11385 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
11390 # Default to --enable-multilib.
11391 if test x
${enable_multilib} = x
; then
11392 target_configargs
="--enable-multilib ${target_configargs}"
11395 # Pass --with-newlib if appropriate. Note that target_configdirs has
11396 # changed from the earlier setting of with_newlib.
11397 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
11398 target_configargs
="--with-newlib ${target_configargs}"
11401 # Different target subdirs use different values of certain variables
11402 # (notably CXX). Worse, multilibs use *lots* of different values.
11403 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
11404 # it doesn't automatically accept command-line overrides of them.
11405 # This means it's not safe for target subdirs to share a cache file,
11406 # which is disgusting, but there you have it. Hopefully this can be
11407 # fixed in future. It's still worthwhile to use a cache file for each
11408 # directory. I think.
11410 # Pass the appropriate --build, --host, --target and --cache-file arguments.
11411 # We need to pass --target, as newer autoconf's requires consistency
11412 # for target_alias and gcc doesn't manage it consistently.
11413 target_configargs
="--cache-file=./config.cache ${target_configargs}"
11416 case " $target_configdirs " in
11418 case " $target_configargs " in
11419 *" --with-newlib "*)
11422 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
11426 # If we're not building GCC, don't discard standard headers.
11427 if test -d ${srcdir}/gcc
; then
11428 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
11430 if test "${build}" != "${host}"; then
11431 # On Canadian crosses, CC_FOR_TARGET will have already been set
11432 # by `configure', so we won't have an opportunity to add -Bgcc/
11433 # to it. This is right: we don't want to search that directory
11434 # for binaries, but we want the header files in there, so add
11436 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
11438 # Someone might think of using the pre-installed headers on
11439 # Canadian crosses, in case the installed compiler is not fully
11440 # compatible with the compiler being built. In this case, it
11441 # would be better to flag an error than risking having
11442 # incompatible object files being constructed. We can't
11443 # guarantee that an error will be flagged, but let's hope the
11444 # compiler will do it, when presented with incompatible header
11449 case "${target}-${is_cross_compiler}" in
11450 i
[3456789]86-*-linux*-no)
11451 # Here host == target, so we don't need to build gcc,
11452 # so we don't want to discard standard headers.
11453 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
11456 # If we're building newlib, use its generic headers last, but search
11457 # for any libc-related directories first (so make it the last -B
11459 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
11461 # If we're building libgloss, find the startup file, simulator library
11462 # and linker script.
11463 case " $target_configdirs " in
11465 # Look for startup file, simulator library and maybe linker script.
11466 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
11467 # Look for libnosys.a in case the target needs it.
11468 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
11469 # Most targets have the linker script in the source directory.
11470 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
11481 x86_64-
*mingw
* |
*-w64-mingw*)
11482 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
11483 # however, use a symlink named 'mingw' in ${prefix} .
11484 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
11487 # MinGW can't be handled as Cygwin above since it does not use newlib.
11488 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'
11492 # Allow the user to override the flags for
11493 # our build compiler if desired.
11494 if test x
"${build}" = x
"${host}" ; then
11495 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
11496 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
11497 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
11498 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
11501 # On Canadian crosses, we'll be searching the right directories for
11502 # the previously-installed cross compiler, so don't bother to add
11503 # flags for directories within the install tree of the compiler
11504 # being built; programs in there won't even run.
11505 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
11506 # Search for pre-installed headers if nothing else fits.
11507 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
11510 if test "x
${use_gnu_ld}" = x &&
11511 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
11512 # Arrange for us to find uninstalled linker scripts.
11513 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
11516 # Search for other target-specific linker scripts and such.
11517 case "${target}" in
11519 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
11521 # The VxWorks support for shared libraries is getting in
11522 # incrementally. Make sure it doesn't get activated implicitly:
11524 if test "${enable_shared-unset}" = unset ; then
11526 # So the build of libraries knows ...
11527 target_configargs="${target_configargs} --disable-shared"
11529 host_configargs="${host_configargs} --disable-shared"
11534 # Makefile fragments.
11535 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
11537 eval fragval=\$$frag
11538 if test $fragval != /dev/null; then
11539 eval $frag=${srcdir}/$fragval
11547 # Miscellanea: directories, flags, etc.
11556 # Build module lists & subconfigure args.
11560 # Host module lists & subconfigure args.
11565 # Target module lists & subconfigure args.
11590 # Generate default definitions for YACC, M4, LEX and other programs that run
11591 # on the build machine. These are used if the Makefile can't locate these
11592 # programs in objdir.
11593 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
11595 for ac_prog in 'bison -y' byacc yacc
11597 # Extract the first word of "$ac_prog", so it can be a program name with args.
11598 set dummy $ac_prog; ac_word=$2
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11600 $as_echo_n "checking
for $ac_word...
" >&6; }
11601 if ${ac_cv_prog_YACC+:} false; then :
11602 $as_echo_n "(cached
) " >&6
11604 if test -n "$YACC"; then
11605 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608 for as_dir in $PATH
11611 test -z "$as_dir" && as_dir=.
11612 for ac_exec_ext in '' $ac_executable_extensions; do
11613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11614 ac_cv_prog_YACC="$ac_prog"
11615 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11624 YACC=$ac_cv_prog_YACC
11625 if test -n "$YACC"; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
11627 $as_echo "$YACC" >&6; }
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11630 $as_echo "no
" >&6; }
11634 test -n "$YACC" && break
11636 test -n "$YACC" || YACC="$MISSING bison
-y"
11638 case " $build_configdirs " in
11639 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
11642 for ac_prog in bison
11644 # Extract the first word of "$ac_prog", so it can be a program name with args.
11645 set dummy $ac_prog; ac_word=$2
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11647 $as_echo_n "checking
for $ac_word...
" >&6; }
11648 if ${ac_cv_prog_BISON+:} false; then :
11649 $as_echo_n "(cached
) " >&6
11651 if test -n "$BISON"; then
11652 ac_cv_prog_BISON="$BISON" # Let the user override the test.
11654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $PATH
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
11660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11661 ac_cv_prog_BISON="$ac_prog"
11662 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11671 BISON=$ac_cv_prog_BISON
11672 if test -n "$BISON"; then
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
11674 $as_echo "$BISON" >&6; }
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11677 $as_echo "no
" >&6; }
11681 test -n "$BISON" && break
11683 test -n "$BISON" || BISON="$MISSING bison
"
11685 case " $build_configdirs " in
11686 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
11689 for ac_prog in gm4 gnum4 m4
11691 # Extract the first word of "$ac_prog", so it can be a program name with args.
11692 set dummy $ac_prog; ac_word=$2
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11694 $as_echo_n "checking
for $ac_word...
" >&6; }
11695 if ${ac_cv_prog_M4+:} false; then :
11696 $as_echo_n "(cached
) " >&6
11698 if test -n "$M4"; then
11699 ac_cv_prog_M4="$M4" # Let the user override the test.
11701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702 for as_dir in $PATH
11705 test -z "$as_dir" && as_dir=.
11706 for ac_exec_ext in '' $ac_executable_extensions; do
11707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11708 ac_cv_prog_M4="$ac_prog"
11709 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11719 if test -n "$M4"; then
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
11721 $as_echo "$M4" >&6; }
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11724 $as_echo "no
" >&6; }
11728 test -n "$M4" && break
11730 test -n "$M4" || M4="$MISSING m4"
11732 case " $build_configdirs " in
11733 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
11736 for ac_prog in flex lex
11738 # Extract the first word of "$ac_prog", so it can be a program name with args.
11739 set dummy $ac_prog; ac_word=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11741 $as_echo_n "checking
for $ac_word...
" >&6; }
11742 if ${ac_cv_prog_LEX+:} false; then :
11743 $as_echo_n "(cached
) " >&6
11745 if test -n "$LEX"; then
11746 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
11754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11755 ac_cv_prog_LEX="$ac_prog"
11756 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11765 LEX=$ac_cv_prog_LEX
11766 if test -n "$LEX"; then
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
11768 $as_echo "$LEX" >&6; }
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11771 $as_echo "no
" >&6; }
11775 test -n "$LEX" && break
11777 test -n "$LEX" || LEX="$MISSING flex
"
11779 case " $build_configdirs " in
11780 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11781 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
11784 for ac_prog in flex
11786 # Extract the first word of "$ac_prog", so it can be a program name with args.
11787 set dummy $ac_prog; ac_word=$2
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11789 $as_echo_n "checking
for $ac_word...
" >&6; }
11790 if ${ac_cv_prog_FLEX+:} false; then :
11791 $as_echo_n "(cached
) " >&6
11793 if test -n "$FLEX"; then
11794 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
11796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797 for as_dir in $PATH
11800 test -z "$as_dir" && as_dir=.
11801 for ac_exec_ext in '' $ac_executable_extensions; do
11802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11803 ac_cv_prog_FLEX="$ac_prog"
11804 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11813 FLEX=$ac_cv_prog_FLEX
11814 if test -n "$FLEX"; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
11816 $as_echo "$FLEX" >&6; }
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11819 $as_echo "no
" >&6; }
11823 test -n "$FLEX" && break
11825 test -n "$FLEX" || FLEX="$MISSING flex
"
11827 case " $build_configdirs " in
11828 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11831 for ac_prog in makeinfo
11833 # Extract the first word of "$ac_prog", so it can be a program name with args.
11834 set dummy $ac_prog; ac_word=$2
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11836 $as_echo_n "checking
for $ac_word...
" >&6; }
11837 if ${ac_cv_prog_MAKEINFO+:} false; then :
11838 $as_echo_n "(cached
) " >&6
11840 if test -n "$MAKEINFO"; then
11841 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11844 for as_dir in $PATH
11847 test -z "$as_dir" && as_dir=.
11848 for ac_exec_ext in '' $ac_executable_extensions; do
11849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11850 ac_cv_prog_MAKEINFO="$ac_prog"
11851 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11860 MAKEINFO=$ac_cv_prog_MAKEINFO
11861 if test -n "$MAKEINFO"; then
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
11863 $as_echo "$MAKEINFO" >&6; }
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11866 $as_echo "no
" >&6; }
11870 test -n "$MAKEINFO" && break
11872 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
11874 case " $build_configdirs " in
11875 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
11878 # For an installed makeinfo, we require it to be from texinfo 4.7 or
11879 # higher, else we use the "missing
" dummy.
11880 if ${MAKEINFO} --version \
11881 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
11884 MAKEINFO="$MISSING makeinfo
"
11890 # FIXME: expect and dejagnu may become build tools?
11892 for ac_prog in expect
11894 # Extract the first word of "$ac_prog", so it can be a program name with args.
11895 set dummy $ac_prog; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11897 $as_echo_n "checking
for $ac_word...
" >&6; }
11898 if ${ac_cv_prog_EXPECT+:} false; then :
11899 $as_echo_n "(cached
) " >&6
11901 if test -n "$EXPECT"; then
11902 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11908 test -z "$as_dir" && as_dir=.
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11911 ac_cv_prog_EXPECT="$ac_prog"
11912 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11921 EXPECT=$ac_cv_prog_EXPECT
11922 if test -n "$EXPECT"; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
11924 $as_echo "$EXPECT" >&6; }
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11927 $as_echo "no
" >&6; }
11931 test -n "$EXPECT" && break
11933 test -n "$EXPECT" || EXPECT="expect
"
11935 case " $configdirs " in
11937 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
11941 for ac_prog in runtest
11943 # Extract the first word of "$ac_prog", so it can be a program name with args.
11944 set dummy $ac_prog; ac_word=$2
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11946 $as_echo_n "checking
for $ac_word...
" >&6; }
11947 if ${ac_cv_prog_RUNTEST+:} false; then :
11948 $as_echo_n "(cached
) " >&6
11950 if test -n "$RUNTEST"; then
11951 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
11953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11954 for as_dir in $PATH
11957 test -z "$as_dir" && as_dir=.
11958 for ac_exec_ext in '' $ac_executable_extensions; do
11959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11960 ac_cv_prog_RUNTEST="$ac_prog"
11961 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11970 RUNTEST=$ac_cv_prog_RUNTEST
11971 if test -n "$RUNTEST"; then
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
11973 $as_echo "$RUNTEST" >&6; }
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11976 $as_echo "no
" >&6; }
11980 test -n "$RUNTEST" && break
11982 test -n "$RUNTEST" || RUNTEST="runtest
"
11984 case " $configdirs " in
11986 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
11993 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
11994 ncn_target_tool_prefix=
11995 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
11999 if test -n "$AR"; then
12001 elif test -n "$ac_cv_prog_AR"; then
12005 if test -n "$ac_cv_prog_AR"; then
12006 for ncn_progname in ar; do
12007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12008 set dummy ${ncn_progname}; ac_word=$2
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12010 $as_echo_n "checking
for $ac_word...
" >&6; }
12011 if ${ac_cv_prog_AR+:} false; then :
12012 $as_echo_n "(cached
) " >&6
12014 if test -n "$AR"; then
12015 ac_cv_prog_AR="$AR" # Let the user override the test.
12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
12021 test -z "$as_dir" && as_dir=.
12022 for ac_exec_ext in '' $ac_executable_extensions; do
12023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12024 ac_cv_prog_AR="${ncn_progname}"
12025 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12035 if test -n "$AR"; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12037 $as_echo "$AR" >&6; }
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12040 $as_echo "no
" >&6; }
12047 for ncn_progname in ar; do
12048 if test -n "$ncn_tool_prefix"; then
12049 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12050 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12052 $as_echo_n "checking
for $ac_word...
" >&6; }
12053 if ${ac_cv_prog_AR+:} false; then :
12054 $as_echo_n "(cached
) " >&6
12056 if test -n "$AR"; then
12057 ac_cv_prog_AR="$AR" # Let the user override the test.
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12063 test -z "$as_dir" && as_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12066 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
12067 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12077 if test -n "$AR"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12079 $as_echo "$AR" >&6; }
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12082 $as_echo "no
" >&6; }
12087 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
12088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12089 set dummy ${ncn_progname}; ac_word=$2
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12091 $as_echo_n "checking
for $ac_word...
" >&6; }
12092 if ${ac_cv_prog_AR+:} false; then :
12093 $as_echo_n "(cached
) " >&6
12095 if test -n "$AR"; then
12096 ac_cv_prog_AR="$AR" # Let the user override the test.
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12102 test -z "$as_dir" && as_dir=.
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12105 ac_cv_prog_AR="${ncn_progname}"
12106 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12116 if test -n "$AR"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12118 $as_echo "$AR" >&6; }
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12121 $as_echo "no
" >&6; }
12126 test -n "$ac_cv_prog_AR" && break
12129 if test -z "$ac_cv_prog_AR" ; then
12131 if test $build = $host ; then
12134 AR="${ncn_tool_prefix}$2"
12140 if test -n "$AS"; then
12142 elif test -n "$ac_cv_prog_AS"; then
12146 if test -n "$ac_cv_prog_AS"; then
12147 for ncn_progname in as; do
12148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12149 set dummy ${ncn_progname}; ac_word=$2
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12151 $as_echo_n "checking
for $ac_word...
" >&6; }
12152 if ${ac_cv_prog_AS+:} false; then :
12153 $as_echo_n "(cached
) " >&6
12155 if test -n "$AS"; then
12156 ac_cv_prog_AS="$AS" # Let the user override the test.
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12165 ac_cv_prog_AS="${ncn_progname}"
12166 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12176 if test -n "$AS"; then
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
12178 $as_echo "$AS" >&6; }
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12181 $as_echo "no
" >&6; }
12188 for ncn_progname in as; do
12189 if test -n "$ncn_tool_prefix"; then
12190 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12191 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12193 $as_echo_n "checking
for $ac_word...
" >&6; }
12194 if ${ac_cv_prog_AS+:} false; then :
12195 $as_echo_n "(cached
) " >&6
12197 if test -n "$AS"; then
12198 ac_cv_prog_AS="$AS" # Let the user override the test.
12200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201 for as_dir in $PATH
12204 test -z "$as_dir" && as_dir=.
12205 for ac_exec_ext in '' $ac_executable_extensions; do
12206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12207 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
12208 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12218 if test -n "$AS"; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
12220 $as_echo "$AS" >&6; }
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12223 $as_echo "no
" >&6; }
12228 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
12229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12230 set dummy ${ncn_progname}; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12232 $as_echo_n "checking
for $ac_word...
" >&6; }
12233 if ${ac_cv_prog_AS+:} false; then :
12234 $as_echo_n "(cached
) " >&6
12236 if test -n "$AS"; then
12237 ac_cv_prog_AS="$AS" # Let the user override the test.
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12243 test -z "$as_dir" && as_dir=.
12244 for ac_exec_ext in '' $ac_executable_extensions; do
12245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12246 ac_cv_prog_AS="${ncn_progname}"
12247 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12257 if test -n "$AS"; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
12259 $as_echo "$AS" >&6; }
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12262 $as_echo "no
" >&6; }
12267 test -n "$ac_cv_prog_AS" && break
12270 if test -z "$ac_cv_prog_AS" ; then
12272 if test $build = $host ; then
12275 AS="${ncn_tool_prefix}$2"
12281 if test -n "$DLLTOOL"; then
12282 ac_cv_prog_DLLTOOL=$DLLTOOL
12283 elif test -n "$ac_cv_prog_DLLTOOL"; then
12284 DLLTOOL=$ac_cv_prog_DLLTOOL
12287 if test -n "$ac_cv_prog_DLLTOOL"; then
12288 for ncn_progname in dlltool; do
12289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12290 set dummy ${ncn_progname}; ac_word=$2
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12292 $as_echo_n "checking
for $ac_word...
" >&6; }
12293 if ${ac_cv_prog_DLLTOOL+:} false; then :
12294 $as_echo_n "(cached
) " >&6
12296 if test -n "$DLLTOOL"; then
12297 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300 for as_dir in $PATH
12303 test -z "$as_dir" && as_dir=.
12304 for ac_exec_ext in '' $ac_executable_extensions; do
12305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12306 ac_cv_prog_DLLTOOL="${ncn_progname}"
12307 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12316 DLLTOOL=$ac_cv_prog_DLLTOOL
12317 if test -n "$DLLTOOL"; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
12319 $as_echo "$DLLTOOL" >&6; }
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12322 $as_echo "no
" >&6; }
12329 for ncn_progname in dlltool; do
12330 if test -n "$ncn_tool_prefix"; then
12331 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12332 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12334 $as_echo_n "checking
for $ac_word...
" >&6; }
12335 if ${ac_cv_prog_DLLTOOL+:} false; then :
12336 $as_echo_n "(cached
) " >&6
12338 if test -n "$DLLTOOL"; then
12339 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12342 for as_dir in $PATH
12345 test -z "$as_dir" && as_dir=.
12346 for ac_exec_ext in '' $ac_executable_extensions; do
12347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12348 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
12349 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12358 DLLTOOL=$ac_cv_prog_DLLTOOL
12359 if test -n "$DLLTOOL"; then
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
12361 $as_echo "$DLLTOOL" >&6; }
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12364 $as_echo "no
" >&6; }
12369 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
12370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12371 set dummy ${ncn_progname}; ac_word=$2
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12373 $as_echo_n "checking
for $ac_word...
" >&6; }
12374 if ${ac_cv_prog_DLLTOOL+:} false; then :
12375 $as_echo_n "(cached
) " >&6
12377 if test -n "$DLLTOOL"; then
12378 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381 for as_dir in $PATH
12384 test -z "$as_dir" && as_dir=.
12385 for ac_exec_ext in '' $ac_executable_extensions; do
12386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12387 ac_cv_prog_DLLTOOL="${ncn_progname}"
12388 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12397 DLLTOOL=$ac_cv_prog_DLLTOOL
12398 if test -n "$DLLTOOL"; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
12400 $as_echo "$DLLTOOL" >&6; }
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12403 $as_echo "no
" >&6; }
12408 test -n "$ac_cv_prog_DLLTOOL" && break
12411 if test -z "$ac_cv_prog_DLLTOOL" ; then
12413 if test $build = $host ; then
12416 DLLTOOL="${ncn_tool_prefix}$2"
12422 if test -n "$DSYMUTIL"; then
12423 ac_cv_prog_DSYMUTIL=$DSYMUTIL
12424 elif test -n "$ac_cv_prog_DSYMUTIL"; then
12425 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12428 if test -n "$ac_cv_prog_DSYMUTIL"; then
12429 for ncn_progname in dsymutil; do
12430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12431 set dummy ${ncn_progname}; ac_word=$2
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12433 $as_echo_n "checking
for $ac_word...
" >&6; }
12434 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12435 $as_echo_n "(cached
) " >&6
12437 if test -n "$DSYMUTIL"; then
12438 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441 for as_dir in $PATH
12444 test -z "$as_dir" && as_dir=.
12445 for ac_exec_ext in '' $ac_executable_extensions; do
12446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12447 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12448 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12457 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12458 if test -n "$DSYMUTIL"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
12460 $as_echo "$DSYMUTIL" >&6; }
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12463 $as_echo "no
" >&6; }
12470 for ncn_progname in dsymutil; do
12471 if test -n "$ncn_tool_prefix"; then
12472 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12473 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12475 $as_echo_n "checking
for $ac_word...
" >&6; }
12476 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12477 $as_echo_n "(cached
) " >&6
12479 if test -n "$DSYMUTIL"; then
12480 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12486 test -z "$as_dir" && as_dir=.
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12489 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
12490 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12499 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12500 if test -n "$DSYMUTIL"; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
12502 $as_echo "$DSYMUTIL" >&6; }
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12505 $as_echo "no
" >&6; }
12510 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
12511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12512 set dummy ${ncn_progname}; ac_word=$2
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12514 $as_echo_n "checking
for $ac_word...
" >&6; }
12515 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12516 $as_echo_n "(cached
) " >&6
12518 if test -n "$DSYMUTIL"; then
12519 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12525 test -z "$as_dir" && as_dir=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12528 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12529 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12538 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12539 if test -n "$DSYMUTIL"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
12541 $as_echo "$DSYMUTIL" >&6; }
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12544 $as_echo "no
" >&6; }
12549 test -n "$ac_cv_prog_DSYMUTIL" && break
12552 if test -z "$ac_cv_prog_DSYMUTIL" ; then
12554 if test $build = $host ; then
12557 DSYMUTIL="${ncn_tool_prefix}$2"
12563 if test -n "$LD"; then
12565 elif test -n "$ac_cv_prog_LD"; then
12569 if test -n "$ac_cv_prog_LD"; then
12570 for ncn_progname in ld; do
12571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12572 set dummy ${ncn_progname}; ac_word=$2
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12574 $as_echo_n "checking
for $ac_word...
" >&6; }
12575 if ${ac_cv_prog_LD+:} false; then :
12576 $as_echo_n "(cached
) " >&6
12578 if test -n "$LD"; then
12579 ac_cv_prog_LD="$LD" # Let the user override the test.
12581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12582 for as_dir in $PATH
12585 test -z "$as_dir" && as_dir=.
12586 for ac_exec_ext in '' $ac_executable_extensions; do
12587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12588 ac_cv_prog_LD="${ncn_progname}"
12589 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12599 if test -n "$LD"; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
12601 $as_echo "$LD" >&6; }
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12604 $as_echo "no
" >&6; }
12611 for ncn_progname in ld; do
12612 if test -n "$ncn_tool_prefix"; then
12613 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12614 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12616 $as_echo_n "checking
for $ac_word...
" >&6; }
12617 if ${ac_cv_prog_LD+:} false; then :
12618 $as_echo_n "(cached
) " >&6
12620 if test -n "$LD"; then
12621 ac_cv_prog_LD="$LD" # Let the user override the test.
12623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12624 for as_dir in $PATH
12627 test -z "$as_dir" && as_dir=.
12628 for ac_exec_ext in '' $ac_executable_extensions; do
12629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12630 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
12631 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12641 if test -n "$LD"; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
12643 $as_echo "$LD" >&6; }
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12646 $as_echo "no
" >&6; }
12651 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
12652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12653 set dummy ${ncn_progname}; ac_word=$2
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12655 $as_echo_n "checking
for $ac_word...
" >&6; }
12656 if ${ac_cv_prog_LD+:} false; then :
12657 $as_echo_n "(cached
) " >&6
12659 if test -n "$LD"; then
12660 ac_cv_prog_LD="$LD" # Let the user override the test.
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12666 test -z "$as_dir" && as_dir=.
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12669 ac_cv_prog_LD="${ncn_progname}"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12680 if test -n "$LD"; then
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
12682 $as_echo "$LD" >&6; }
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12685 $as_echo "no
" >&6; }
12690 test -n "$ac_cv_prog_LD" && break
12693 if test -z "$ac_cv_prog_LD" ; then
12695 if test $build = $host ; then
12698 LD="${ncn_tool_prefix}$2"
12704 if test -n "$LIPO"; then
12705 ac_cv_prog_LIPO=$LIPO
12706 elif test -n "$ac_cv_prog_LIPO"; then
12707 LIPO=$ac_cv_prog_LIPO
12710 if test -n "$ac_cv_prog_LIPO"; then
12711 for ncn_progname in lipo; do
12712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12713 set dummy ${ncn_progname}; ac_word=$2
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12715 $as_echo_n "checking
for $ac_word...
" >&6; }
12716 if ${ac_cv_prog_LIPO+:} false; then :
12717 $as_echo_n "(cached
) " >&6
12719 if test -n "$LIPO"; then
12720 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723 for as_dir in $PATH
12726 test -z "$as_dir" && as_dir=.
12727 for ac_exec_ext in '' $ac_executable_extensions; do
12728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12729 ac_cv_prog_LIPO="${ncn_progname}"
12730 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12739 LIPO=$ac_cv_prog_LIPO
12740 if test -n "$LIPO"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
12742 $as_echo "$LIPO" >&6; }
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12745 $as_echo "no
" >&6; }
12752 for ncn_progname in lipo; do
12753 if test -n "$ncn_tool_prefix"; then
12754 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12755 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12757 $as_echo_n "checking
for $ac_word...
" >&6; }
12758 if ${ac_cv_prog_LIPO+:} false; then :
12759 $as_echo_n "(cached
) " >&6
12761 if test -n "$LIPO"; then
12762 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12765 for as_dir in $PATH
12768 test -z "$as_dir" && as_dir=.
12769 for ac_exec_ext in '' $ac_executable_extensions; do
12770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12771 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
12772 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12781 LIPO=$ac_cv_prog_LIPO
12782 if test -n "$LIPO"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
12784 $as_echo "$LIPO" >&6; }
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12787 $as_echo "no
" >&6; }
12792 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
12793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12794 set dummy ${ncn_progname}; ac_word=$2
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12796 $as_echo_n "checking
for $ac_word...
" >&6; }
12797 if ${ac_cv_prog_LIPO+:} false; then :
12798 $as_echo_n "(cached
) " >&6
12800 if test -n "$LIPO"; then
12801 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12804 for as_dir in $PATH
12807 test -z "$as_dir" && as_dir=.
12808 for ac_exec_ext in '' $ac_executable_extensions; do
12809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12810 ac_cv_prog_LIPO="${ncn_progname}"
12811 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12820 LIPO=$ac_cv_prog_LIPO
12821 if test -n "$LIPO"; then
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
12823 $as_echo "$LIPO" >&6; }
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12826 $as_echo "no
" >&6; }
12831 test -n "$ac_cv_prog_LIPO" && break
12834 if test -z "$ac_cv_prog_LIPO" ; then
12836 if test $build = $host ; then
12839 LIPO="${ncn_tool_prefix}$2"
12845 if test -n "$NM"; then
12847 elif test -n "$ac_cv_prog_NM"; then
12851 if test -n "$ac_cv_prog_NM"; then
12852 for ncn_progname in nm; do
12853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12854 set dummy ${ncn_progname}; ac_word=$2
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12856 $as_echo_n "checking
for $ac_word...
" >&6; }
12857 if ${ac_cv_prog_NM+:} false; then :
12858 $as_echo_n "(cached
) " >&6
12860 if test -n "$NM"; then
12861 ac_cv_prog_NM="$NM" # Let the user override the test.
12863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12864 for as_dir in $PATH
12867 test -z "$as_dir" && as_dir=.
12868 for ac_exec_ext in '' $ac_executable_extensions; do
12869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12870 ac_cv_prog_NM="${ncn_progname}"
12871 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12881 if test -n "$NM"; then
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
12883 $as_echo "$NM" >&6; }
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12886 $as_echo "no
" >&6; }
12893 for ncn_progname in nm; do
12894 if test -n "$ncn_tool_prefix"; then
12895 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12896 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12898 $as_echo_n "checking
for $ac_word...
" >&6; }
12899 if ${ac_cv_prog_NM+:} false; then :
12900 $as_echo_n "(cached
) " >&6
12902 if test -n "$NM"; then
12903 ac_cv_prog_NM="$NM" # Let the user override the test.
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $PATH
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12912 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12923 if test -n "$NM"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
12925 $as_echo "$NM" >&6; }
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12928 $as_echo "no
" >&6; }
12933 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
12934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12935 set dummy ${ncn_progname}; ac_word=$2
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12937 $as_echo_n "checking
for $ac_word...
" >&6; }
12938 if ${ac_cv_prog_NM+:} false; then :
12939 $as_echo_n "(cached
) " >&6
12941 if test -n "$NM"; then
12942 ac_cv_prog_NM="$NM" # Let the user override the test.
12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12951 ac_cv_prog_NM="${ncn_progname}"
12952 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12962 if test -n "$NM"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
12964 $as_echo "$NM" >&6; }
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12967 $as_echo "no
" >&6; }
12972 test -n "$ac_cv_prog_NM" && break
12975 if test -z "$ac_cv_prog_NM" ; then
12977 if test $build = $host ; then
12980 NM="${ncn_tool_prefix}$2"
12986 if test -n "$RANLIB"; then
12987 ac_cv_prog_RANLIB=$RANLIB
12988 elif test -n "$ac_cv_prog_RANLIB"; then
12989 RANLIB=$ac_cv_prog_RANLIB
12992 if test -n "$ac_cv_prog_RANLIB"; then
12993 for ncn_progname in ranlib; do
12994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12995 set dummy ${ncn_progname}; ac_word=$2
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12997 $as_echo_n "checking
for $ac_word...
" >&6; }
12998 if ${ac_cv_prog_RANLIB+:} false; then :
12999 $as_echo_n "(cached
) " >&6
13001 if test -n "$RANLIB"; then
13002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005 for as_dir in $PATH
13008 test -z "$as_dir" && as_dir=.
13009 for ac_exec_ext in '' $ac_executable_extensions; do
13010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13011 ac_cv_prog_RANLIB="${ncn_progname}"
13012 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13021 RANLIB=$ac_cv_prog_RANLIB
13022 if test -n "$RANLIB"; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13024 $as_echo "$RANLIB" >&6; }
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13027 $as_echo "no
" >&6; }
13034 for ncn_progname in ranlib; do
13035 if test -n "$ncn_tool_prefix"; then
13036 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13037 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13039 $as_echo_n "checking
for $ac_word...
" >&6; }
13040 if ${ac_cv_prog_RANLIB+:} false; then :
13041 $as_echo_n "(cached
) " >&6
13043 if test -n "$RANLIB"; then
13044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047 for as_dir in $PATH
13050 test -z "$as_dir" && as_dir=.
13051 for ac_exec_ext in '' $ac_executable_extensions; do
13052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13053 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
13054 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13063 RANLIB=$ac_cv_prog_RANLIB
13064 if test -n "$RANLIB"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13066 $as_echo "$RANLIB" >&6; }
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13069 $as_echo "no
" >&6; }
13074 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
13075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13076 set dummy ${ncn_progname}; ac_word=$2
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13078 $as_echo_n "checking
for $ac_word...
" >&6; }
13079 if ${ac_cv_prog_RANLIB+:} false; then :
13080 $as_echo_n "(cached
) " >&6
13082 if test -n "$RANLIB"; then
13083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086 for as_dir in $PATH
13089 test -z "$as_dir" && as_dir=.
13090 for ac_exec_ext in '' $ac_executable_extensions; do
13091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13092 ac_cv_prog_RANLIB="${ncn_progname}"
13093 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13102 RANLIB=$ac_cv_prog_RANLIB
13103 if test -n "$RANLIB"; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13105 $as_echo "$RANLIB" >&6; }
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13108 $as_echo "no
" >&6; }
13113 test -n "$ac_cv_prog_RANLIB" && break
13116 if test -z "$ac_cv_prog_RANLIB" ; then
13122 if test -n "$STRIP"; then
13123 ac_cv_prog_STRIP=$STRIP
13124 elif test -n "$ac_cv_prog_STRIP"; then
13125 STRIP=$ac_cv_prog_STRIP
13128 if test -n "$ac_cv_prog_STRIP"; then
13129 for ncn_progname in strip; do
13130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13131 set dummy ${ncn_progname}; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13133 $as_echo_n "checking
for $ac_word...
" >&6; }
13134 if ${ac_cv_prog_STRIP+:} false; then :
13135 $as_echo_n "(cached
) " >&6
13137 if test -n "$STRIP"; then
13138 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13147 ac_cv_prog_STRIP="${ncn_progname}"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13157 STRIP=$ac_cv_prog_STRIP
13158 if test -n "$STRIP"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13160 $as_echo "$STRIP" >&6; }
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13163 $as_echo "no
" >&6; }
13170 for ncn_progname in strip; do
13171 if test -n "$ncn_tool_prefix"; then
13172 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13173 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13175 $as_echo_n "checking
for $ac_word...
" >&6; }
13176 if ${ac_cv_prog_STRIP+:} false; then :
13177 $as_echo_n "(cached
) " >&6
13179 if test -n "$STRIP"; then
13180 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183 for as_dir in $PATH
13186 test -z "$as_dir" && as_dir=.
13187 for ac_exec_ext in '' $ac_executable_extensions; do
13188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13189 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
13190 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13199 STRIP=$ac_cv_prog_STRIP
13200 if test -n "$STRIP"; then
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13202 $as_echo "$STRIP" >&6; }
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13205 $as_echo "no
" >&6; }
13210 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
13211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13212 set dummy ${ncn_progname}; ac_word=$2
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13214 $as_echo_n "checking
for $ac_word...
" >&6; }
13215 if ${ac_cv_prog_STRIP+:} false; then :
13216 $as_echo_n "(cached
) " >&6
13218 if test -n "$STRIP"; then
13219 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222 for as_dir in $PATH
13225 test -z "$as_dir" && as_dir=.
13226 for ac_exec_ext in '' $ac_executable_extensions; do
13227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13228 ac_cv_prog_STRIP="${ncn_progname}"
13229 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13238 STRIP=$ac_cv_prog_STRIP
13239 if test -n "$STRIP"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13241 $as_echo "$STRIP" >&6; }
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13244 $as_echo "no
" >&6; }
13249 test -n "$ac_cv_prog_STRIP" && break
13252 if test -z "$ac_cv_prog_STRIP" ; then
13258 if test -n "$WINDRES"; then
13259 ac_cv_prog_WINDRES=$WINDRES
13260 elif test -n "$ac_cv_prog_WINDRES"; then
13261 WINDRES=$ac_cv_prog_WINDRES
13264 if test -n "$ac_cv_prog_WINDRES"; then
13265 for ncn_progname in windres; do
13266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13267 set dummy ${ncn_progname}; ac_word=$2
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13269 $as_echo_n "checking
for $ac_word...
" >&6; }
13270 if ${ac_cv_prog_WINDRES+:} false; then :
13271 $as_echo_n "(cached
) " >&6
13273 if test -n "$WINDRES"; then
13274 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277 for as_dir in $PATH
13280 test -z "$as_dir" && as_dir=.
13281 for ac_exec_ext in '' $ac_executable_extensions; do
13282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13283 ac_cv_prog_WINDRES="${ncn_progname}"
13284 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13293 WINDRES=$ac_cv_prog_WINDRES
13294 if test -n "$WINDRES"; then
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
13296 $as_echo "$WINDRES" >&6; }
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13299 $as_echo "no
" >&6; }
13306 for ncn_progname in windres; do
13307 if test -n "$ncn_tool_prefix"; then
13308 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13309 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13311 $as_echo_n "checking
for $ac_word...
" >&6; }
13312 if ${ac_cv_prog_WINDRES+:} false; then :
13313 $as_echo_n "(cached
) " >&6
13315 if test -n "$WINDRES"; then
13316 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13319 for as_dir in $PATH
13322 test -z "$as_dir" && as_dir=.
13323 for ac_exec_ext in '' $ac_executable_extensions; do
13324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13325 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
13326 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13335 WINDRES=$ac_cv_prog_WINDRES
13336 if test -n "$WINDRES"; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
13338 $as_echo "$WINDRES" >&6; }
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13341 $as_echo "no
" >&6; }
13346 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
13347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13348 set dummy ${ncn_progname}; ac_word=$2
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13350 $as_echo_n "checking
for $ac_word...
" >&6; }
13351 if ${ac_cv_prog_WINDRES+:} false; then :
13352 $as_echo_n "(cached
) " >&6
13354 if test -n "$WINDRES"; then
13355 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358 for as_dir in $PATH
13361 test -z "$as_dir" && as_dir=.
13362 for ac_exec_ext in '' $ac_executable_extensions; do
13363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13364 ac_cv_prog_WINDRES="${ncn_progname}"
13365 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13374 WINDRES=$ac_cv_prog_WINDRES
13375 if test -n "$WINDRES"; then
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
13377 $as_echo "$WINDRES" >&6; }
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13380 $as_echo "no
" >&6; }
13385 test -n "$ac_cv_prog_WINDRES" && break
13388 if test -z "$ac_cv_prog_WINDRES" ; then
13390 if test $build = $host ; then
13393 WINDRES="${ncn_tool_prefix}$2"
13399 if test -n "$WINDMC"; then
13400 ac_cv_prog_WINDMC=$WINDMC
13401 elif test -n "$ac_cv_prog_WINDMC"; then
13402 WINDMC=$ac_cv_prog_WINDMC
13405 if test -n "$ac_cv_prog_WINDMC"; then
13406 for ncn_progname in windmc; do
13407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13408 set dummy ${ncn_progname}; ac_word=$2
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13410 $as_echo_n "checking
for $ac_word...
" >&6; }
13411 if ${ac_cv_prog_WINDMC+:} false; then :
13412 $as_echo_n "(cached
) " >&6
13414 if test -n "$WINDMC"; then
13415 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418 for as_dir in $PATH
13421 test -z "$as_dir" && as_dir=.
13422 for ac_exec_ext in '' $ac_executable_extensions; do
13423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13424 ac_cv_prog_WINDMC="${ncn_progname}"
13425 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13434 WINDMC=$ac_cv_prog_WINDMC
13435 if test -n "$WINDMC"; then
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
13437 $as_echo "$WINDMC" >&6; }
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13440 $as_echo "no
" >&6; }
13447 for ncn_progname in windmc; do
13448 if test -n "$ncn_tool_prefix"; then
13449 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13450 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13452 $as_echo_n "checking
for $ac_word...
" >&6; }
13453 if ${ac_cv_prog_WINDMC+:} false; then :
13454 $as_echo_n "(cached
) " >&6
13456 if test -n "$WINDMC"; then
13457 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13460 for as_dir in $PATH
13463 test -z "$as_dir" && as_dir=.
13464 for ac_exec_ext in '' $ac_executable_extensions; do
13465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13466 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
13467 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13476 WINDMC=$ac_cv_prog_WINDMC
13477 if test -n "$WINDMC"; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
13479 $as_echo "$WINDMC" >&6; }
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13482 $as_echo "no
" >&6; }
13487 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
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_WINDMC+:} false; then :
13493 $as_echo_n "(cached
) " >&6
13495 if test -n "$WINDMC"; then
13496 ac_cv_prog_WINDMC="$WINDMC" # 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_WINDMC="${ncn_progname}"
13506 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13515 WINDMC=$ac_cv_prog_WINDMC
13516 if test -n "$WINDMC"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
13518 $as_echo "$WINDMC" >&6; }
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13521 $as_echo "no
" >&6; }
13526 test -n "$ac_cv_prog_WINDMC" && break
13529 if test -z "$ac_cv_prog_WINDMC" ; then
13531 if test $build = $host ; then
13534 WINDMC="${ncn_tool_prefix}$2"
13540 if test -n "$OBJCOPY"; then
13541 ac_cv_prog_OBJCOPY=$OBJCOPY
13542 elif test -n "$ac_cv_prog_OBJCOPY"; then
13543 OBJCOPY=$ac_cv_prog_OBJCOPY
13546 if test -n "$ac_cv_prog_OBJCOPY"; then
13547 for ncn_progname in objcopy; do
13548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13549 set dummy ${ncn_progname}; ac_word=$2
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13551 $as_echo_n "checking
for $ac_word...
" >&6; }
13552 if ${ac_cv_prog_OBJCOPY+:} false; then :
13553 $as_echo_n "(cached
) " >&6
13555 if test -n "$OBJCOPY"; then
13556 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13559 for as_dir in $PATH
13562 test -z "$as_dir" && as_dir=.
13563 for ac_exec_ext in '' $ac_executable_extensions; do
13564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13565 ac_cv_prog_OBJCOPY="${ncn_progname}"
13566 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13575 OBJCOPY=$ac_cv_prog_OBJCOPY
13576 if test -n "$OBJCOPY"; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
13578 $as_echo "$OBJCOPY" >&6; }
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13581 $as_echo "no
" >&6; }
13588 for ncn_progname in objcopy; do
13589 if test -n "$ncn_tool_prefix"; then
13590 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13591 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13593 $as_echo_n "checking
for $ac_word...
" >&6; }
13594 if ${ac_cv_prog_OBJCOPY+:} false; then :
13595 $as_echo_n "(cached
) " >&6
13597 if test -n "$OBJCOPY"; then
13598 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13601 for as_dir in $PATH
13604 test -z "$as_dir" && as_dir=.
13605 for ac_exec_ext in '' $ac_executable_extensions; do
13606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13607 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
13608 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13617 OBJCOPY=$ac_cv_prog_OBJCOPY
13618 if test -n "$OBJCOPY"; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
13620 $as_echo "$OBJCOPY" >&6; }
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13623 $as_echo "no
" >&6; }
13628 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
13629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13630 set dummy ${ncn_progname}; ac_word=$2
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13632 $as_echo_n "checking
for $ac_word...
" >&6; }
13633 if ${ac_cv_prog_OBJCOPY+:} false; then :
13634 $as_echo_n "(cached
) " >&6
13636 if test -n "$OBJCOPY"; then
13637 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13640 for as_dir in $PATH
13643 test -z "$as_dir" && as_dir=.
13644 for ac_exec_ext in '' $ac_executable_extensions; do
13645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13646 ac_cv_prog_OBJCOPY="${ncn_progname}"
13647 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13656 OBJCOPY=$ac_cv_prog_OBJCOPY
13657 if test -n "$OBJCOPY"; then
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
13659 $as_echo "$OBJCOPY" >&6; }
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13662 $as_echo "no
" >&6; }
13667 test -n "$ac_cv_prog_OBJCOPY" && break
13670 if test -z "$ac_cv_prog_OBJCOPY" ; then
13672 if test $build = $host ; then
13675 OBJCOPY="${ncn_tool_prefix}$2"
13681 if test -n "$OBJDUMP"; then
13682 ac_cv_prog_OBJDUMP=$OBJDUMP
13683 elif test -n "$ac_cv_prog_OBJDUMP"; then
13684 OBJDUMP=$ac_cv_prog_OBJDUMP
13687 if test -n "$ac_cv_prog_OBJDUMP"; then
13688 for ncn_progname in objdump; do
13689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13690 set dummy ${ncn_progname}; ac_word=$2
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13692 $as_echo_n "checking
for $ac_word...
" >&6; }
13693 if ${ac_cv_prog_OBJDUMP+:} false; then :
13694 $as_echo_n "(cached
) " >&6
13696 if test -n "$OBJDUMP"; then
13697 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13700 for as_dir in $PATH
13703 test -z "$as_dir" && as_dir=.
13704 for ac_exec_ext in '' $ac_executable_extensions; do
13705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13706 ac_cv_prog_OBJDUMP="${ncn_progname}"
13707 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13716 OBJDUMP=$ac_cv_prog_OBJDUMP
13717 if test -n "$OBJDUMP"; then
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13719 $as_echo "$OBJDUMP" >&6; }
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13722 $as_echo "no
" >&6; }
13729 for ncn_progname in objdump; do
13730 if test -n "$ncn_tool_prefix"; then
13731 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13732 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13734 $as_echo_n "checking
for $ac_word...
" >&6; }
13735 if ${ac_cv_prog_OBJDUMP+:} false; then :
13736 $as_echo_n "(cached
) " >&6
13738 if test -n "$OBJDUMP"; then
13739 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13745 test -z "$as_dir" && as_dir=.
13746 for ac_exec_ext in '' $ac_executable_extensions; do
13747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13748 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
13749 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13758 OBJDUMP=$ac_cv_prog_OBJDUMP
13759 if test -n "$OBJDUMP"; then
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13761 $as_echo "$OBJDUMP" >&6; }
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13764 $as_echo "no
" >&6; }
13769 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
13770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13771 set dummy ${ncn_progname}; ac_word=$2
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13773 $as_echo_n "checking
for $ac_word...
" >&6; }
13774 if ${ac_cv_prog_OBJDUMP+:} false; then :
13775 $as_echo_n "(cached
) " >&6
13777 if test -n "$OBJDUMP"; then
13778 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13781 for as_dir in $PATH
13784 test -z "$as_dir" && as_dir=.
13785 for ac_exec_ext in '' $ac_executable_extensions; do
13786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13787 ac_cv_prog_OBJDUMP="${ncn_progname}"
13788 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13797 OBJDUMP=$ac_cv_prog_OBJDUMP
13798 if test -n "$OBJDUMP"; then
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13800 $as_echo "$OBJDUMP" >&6; }
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13803 $as_echo "no
" >&6; }
13808 test -n "$ac_cv_prog_OBJDUMP" && break
13811 if test -z "$ac_cv_prog_OBJDUMP" ; then
13813 if test $build = $host ; then
13816 OBJDUMP="${ncn_tool_prefix}$2"
13822 if test -n "$OTOOL"; then
13823 ac_cv_prog_OTOOL=$OTOOL
13824 elif test -n "$ac_cv_prog_OTOOL"; then
13825 OTOOL=$ac_cv_prog_OTOOL
13828 if test -n "$ac_cv_prog_OTOOL"; then
13829 for ncn_progname in otool; do
13830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13831 set dummy ${ncn_progname}; ac_word=$2
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13833 $as_echo_n "checking
for $ac_word...
" >&6; }
13834 if ${ac_cv_prog_OTOOL+:} false; then :
13835 $as_echo_n "(cached
) " >&6
13837 if test -n "$OTOOL"; then
13838 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841 for as_dir in $PATH
13844 test -z "$as_dir" && as_dir=.
13845 for ac_exec_ext in '' $ac_executable_extensions; do
13846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13847 ac_cv_prog_OTOOL="${ncn_progname}"
13848 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13857 OTOOL=$ac_cv_prog_OTOOL
13858 if test -n "$OTOOL"; then
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13860 $as_echo "$OTOOL" >&6; }
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13863 $as_echo "no
" >&6; }
13870 for ncn_progname in otool; do
13871 if test -n "$ncn_tool_prefix"; then
13872 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13873 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13875 $as_echo_n "checking
for $ac_word...
" >&6; }
13876 if ${ac_cv_prog_OTOOL+:} false; then :
13877 $as_echo_n "(cached
) " >&6
13879 if test -n "$OTOOL"; then
13880 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883 for as_dir in $PATH
13886 test -z "$as_dir" && as_dir=.
13887 for ac_exec_ext in '' $ac_executable_extensions; do
13888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13889 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
13890 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13899 OTOOL=$ac_cv_prog_OTOOL
13900 if test -n "$OTOOL"; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13902 $as_echo "$OTOOL" >&6; }
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13905 $as_echo "no
" >&6; }
13910 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
13911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13912 set dummy ${ncn_progname}; ac_word=$2
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13914 $as_echo_n "checking
for $ac_word...
" >&6; }
13915 if ${ac_cv_prog_OTOOL+:} false; then :
13916 $as_echo_n "(cached
) " >&6
13918 if test -n "$OTOOL"; then
13919 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13922 for as_dir in $PATH
13925 test -z "$as_dir" && as_dir=.
13926 for ac_exec_ext in '' $ac_executable_extensions; do
13927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13928 ac_cv_prog_OTOOL="${ncn_progname}"
13929 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13938 OTOOL=$ac_cv_prog_OTOOL
13939 if test -n "$OTOOL"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13941 $as_echo "$OTOOL" >&6; }
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13944 $as_echo "no
" >&6; }
13949 test -n "$ac_cv_prog_OTOOL" && break
13952 if test -z "$ac_cv_prog_OTOOL" ; then
13954 if test $build = $host ; then
13957 OTOOL="${ncn_tool_prefix}$2"
13963 if test -n "$READELF"; then
13964 ac_cv_prog_READELF=$READELF
13965 elif test -n "$ac_cv_prog_READELF"; then
13966 READELF=$ac_cv_prog_READELF
13969 if test -n "$ac_cv_prog_READELF"; then
13970 for ncn_progname in readelf; do
13971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13972 set dummy ${ncn_progname}; ac_word=$2
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13974 $as_echo_n "checking
for $ac_word...
" >&6; }
13975 if ${ac_cv_prog_READELF+:} false; then :
13976 $as_echo_n "(cached
) " >&6
13978 if test -n "$READELF"; then
13979 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982 for as_dir in $PATH
13985 test -z "$as_dir" && as_dir=.
13986 for ac_exec_ext in '' $ac_executable_extensions; do
13987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13988 ac_cv_prog_READELF="${ncn_progname}"
13989 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13998 READELF=$ac_cv_prog_READELF
13999 if test -n "$READELF"; then
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
14001 $as_echo "$READELF" >&6; }
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14004 $as_echo "no
" >&6; }
14011 for ncn_progname in readelf; do
14012 if test -n "$ncn_tool_prefix"; then
14013 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
14014 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14016 $as_echo_n "checking
for $ac_word...
" >&6; }
14017 if ${ac_cv_prog_READELF+:} false; then :
14018 $as_echo_n "(cached
) " >&6
14020 if test -n "$READELF"; then
14021 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14024 for as_dir in $PATH
14027 test -z "$as_dir" && as_dir=.
14028 for ac_exec_ext in '' $ac_executable_extensions; do
14029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14030 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
14031 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14040 READELF=$ac_cv_prog_READELF
14041 if test -n "$READELF"; then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
14043 $as_echo "$READELF" >&6; }
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14046 $as_echo "no
" >&6; }
14051 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
14052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14053 set dummy ${ncn_progname}; ac_word=$2
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14055 $as_echo_n "checking
for $ac_word...
" >&6; }
14056 if ${ac_cv_prog_READELF+:} false; then :
14057 $as_echo_n "(cached
) " >&6
14059 if test -n "$READELF"; then
14060 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14063 for as_dir in $PATH
14066 test -z "$as_dir" && as_dir=.
14067 for ac_exec_ext in '' $ac_executable_extensions; do
14068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14069 ac_cv_prog_READELF="${ncn_progname}"
14070 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14079 READELF=$ac_cv_prog_READELF
14080 if test -n "$READELF"; then
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
14082 $as_echo "$READELF" >&6; }
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14085 $as_echo "no
" >&6; }
14090 test -n "$ac_cv_prog_READELF" && break
14093 if test -z "$ac_cv_prog_READELF" ; then
14095 if test $build = $host ; then
14098 READELF="${ncn_tool_prefix}$2"
14108 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
14112 $as_echo_n "checking
for -plugin option...
" >&6; }
14114 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
14116 for plugin in $plugin_names; do
14117 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14118 if test x$plugin_so = x$plugin; then
14119 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14121 if test x$plugin_so != x$plugin; then
14122 plugin_option="--plugin $plugin_so"
14126 if test -n "$ac_tool_prefix"; then
14127 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14128 set dummy ${ac_tool_prefix}ar; 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_AR+:} false; then :
14132 $as_echo_n "(cached
) " >&6
14134 if test -n "$AR"; then
14135 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
14145 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14155 if test -n "$AR"; then
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14157 $as_echo "$AR" >&6; }
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14160 $as_echo "no
" >&6; }
14165 if test -z "$ac_cv_prog_AR"; then
14167 # Extract the first word of "ar", so it can be a program name with args.
14168 set dummy ar; ac_word=$2
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14170 $as_echo_n "checking
for $ac_word...
" >&6; }
14171 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14172 $as_echo_n "(cached
) " >&6
14174 if test -n "$ac_ct_AR"; then
14175 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178 for as_dir in $PATH
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
14183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14184 ac_cv_prog_ac_ct_AR="ar"
14185 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14194 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14195 if test -n "$ac_ct_AR"; then
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14197 $as_echo "$ac_ct_AR" >&6; }
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14200 $as_echo "no
" >&6; }
14203 if test "x
$ac_ct_AR" = x; then
14206 case $cross_compiling:$ac_tool_warned in
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14209 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14210 ac_tool_warned=yes ;;
14215 AR="$ac_cv_prog_AR"
14218 if test "${AR}" = "" ; then
14219 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
14222 ${AR} $plugin_option rc conftest.a conftest.c
14223 if test "$?
" != 0; then
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
14225 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
14229 if test -n "$plugin_option"; then
14230 PLUGIN_OPTION="$plugin_option"
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
14232 $as_echo "$plugin_option" >&6; }
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14235 $as_echo "no
" >&6; }
14239 RANLIB_PLUGIN_OPTION=
14240 if test -n "$PLUGIN_OPTION"; then
14241 if $AR --help 2>&1 | grep -q "\
--plugin"; then
14242 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
14244 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
14245 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
14253 # Check whether --with-build-time-tools was given.
14254 if test "${with_build_time_tools+set}" = set; then :
14255 withval=$with_build_time_tools; case x"$withval" in
14258 with_build_time_tools=
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
14260 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
14264 with_build_time_tools=
14270 if test -n "$CC_FOR_TARGET"; then
14271 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
14272 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14273 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14276 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14277 for ncn_progname in cc gcc; do
14278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14279 set dummy ${ncn_progname}; ac_word=$2
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14281 $as_echo_n "checking
for $ac_word...
" >&6; }
14282 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14283 $as_echo_n "(cached
) " >&6
14285 if test -n "$CC_FOR_TARGET"; then
14286 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14289 for as_dir in $PATH
14292 test -z "$as_dir" && as_dir=.
14293 for ac_exec_ext in '' $ac_executable_extensions; do
14294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14295 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14296 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14305 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14306 if test -n "$CC_FOR_TARGET"; then
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
14308 $as_echo "$CC_FOR_TARGET" >&6; }
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14311 $as_echo "no
" >&6; }
14318 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14319 for ncn_progname in cc gcc; do
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14321 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14322 if test -x $with_build_time_tools/${ncn_progname}; then
14323 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14325 $as_echo "yes" >&6; }
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14329 $as_echo "no
" >&6; }
14334 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
14335 for ncn_progname in cc gcc; do
14336 if test -n "$ncn_target_tool_prefix"; then
14337 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14338 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14340 $as_echo_n "checking
for $ac_word...
" >&6; }
14341 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14342 $as_echo_n "(cached
) " >&6
14344 if test -n "$CC_FOR_TARGET"; then
14345 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14348 for as_dir in $PATH
14351 test -z "$as_dir" && as_dir=.
14352 for ac_exec_ext in '' $ac_executable_extensions; do
14353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14354 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14355 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14364 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14365 if test -n "$CC_FOR_TARGET"; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
14367 $as_echo "$CC_FOR_TARGET" >&6; }
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14370 $as_echo "no
" >&6; }
14375 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
14376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14377 set dummy ${ncn_progname}; ac_word=$2
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14379 $as_echo_n "checking
for $ac_word...
" >&6; }
14380 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14381 $as_echo_n "(cached
) " >&6
14383 if test -n "$CC_FOR_TARGET"; then
14384 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14387 for as_dir in $PATH
14390 test -z "$as_dir" && as_dir=.
14391 for ac_exec_ext in '' $ac_executable_extensions; do
14392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14393 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14394 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14403 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14404 if test -n "$CC_FOR_TARGET"; then
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
14406 $as_echo "$CC_FOR_TARGET" >&6; }
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14409 $as_echo "no
" >&6; }
14414 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
14418 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
14420 if test $build = $target ; then
14423 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14426 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
14431 if test -n "$CXX_FOR_TARGET"; then
14432 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
14433 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14434 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14437 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14438 for ncn_progname in c++ g++ cxx gxx; do
14439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14440 set dummy ${ncn_progname}; ac_word=$2
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14442 $as_echo_n "checking
for $ac_word...
" >&6; }
14443 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14444 $as_echo_n "(cached
) " >&6
14446 if test -n "$CXX_FOR_TARGET"; then
14447 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14450 for as_dir in $PATH
14453 test -z "$as_dir" && as_dir=.
14454 for ac_exec_ext in '' $ac_executable_extensions; do
14455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14456 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14457 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14466 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14467 if test -n "$CXX_FOR_TARGET"; then
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
14469 $as_echo "$CXX_FOR_TARGET" >&6; }
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14472 $as_echo "no
" >&6; }
14479 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
14480 for ncn_progname in c++ g++ cxx gxx; do
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14482 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14483 if test -x $with_build_time_tools/${ncn_progname}; then
14484 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14486 $as_echo "yes" >&6; }
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14490 $as_echo "no
" >&6; }
14495 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
14496 for ncn_progname in c++ g++ cxx gxx; do
14497 if test -n "$ncn_target_tool_prefix"; then
14498 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14499 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14501 $as_echo_n "checking
for $ac_word...
" >&6; }
14502 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14503 $as_echo_n "(cached
) " >&6
14505 if test -n "$CXX_FOR_TARGET"; then
14506 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14509 for as_dir in $PATH
14512 test -z "$as_dir" && as_dir=.
14513 for ac_exec_ext in '' $ac_executable_extensions; do
14514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14515 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14516 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14525 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14526 if test -n "$CXX_FOR_TARGET"; then
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
14528 $as_echo "$CXX_FOR_TARGET" >&6; }
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14531 $as_echo "no
" >&6; }
14536 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
14537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14538 set dummy ${ncn_progname}; ac_word=$2
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14540 $as_echo_n "checking
for $ac_word...
" >&6; }
14541 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14542 $as_echo_n "(cached
) " >&6
14544 if test -n "$CXX_FOR_TARGET"; then
14545 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14548 for as_dir in $PATH
14551 test -z "$as_dir" && as_dir=.
14552 for ac_exec_ext in '' $ac_executable_extensions; do
14553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14554 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14555 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14564 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14565 if test -n "$CXX_FOR_TARGET"; then
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
14567 $as_echo "$CXX_FOR_TARGET" >&6; }
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14570 $as_echo "no
" >&6; }
14575 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
14579 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
14580 set dummy c++ g++ cxx gxx
14581 if test $build = $target ; then
14582 CXX_FOR_TARGET="$2"
14584 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
14587 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
14592 if test -n "$GCC_FOR_TARGET"; then
14593 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
14594 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14595 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14598 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14599 for ncn_progname in gcc; do
14600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14601 set dummy ${ncn_progname}; ac_word=$2
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14603 $as_echo_n "checking
for $ac_word...
" >&6; }
14604 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14605 $as_echo_n "(cached
) " >&6
14607 if test -n "$GCC_FOR_TARGET"; then
14608 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14611 for as_dir in $PATH
14614 test -z "$as_dir" && as_dir=.
14615 for ac_exec_ext in '' $ac_executable_extensions; do
14616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14617 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14618 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14627 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14628 if test -n "$GCC_FOR_TARGET"; then
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
14630 $as_echo "$GCC_FOR_TARGET" >&6; }
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14633 $as_echo "no
" >&6; }
14640 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14641 for ncn_progname in gcc; do
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14643 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14644 if test -x $with_build_time_tools/${ncn_progname}; then
14645 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14647 $as_echo "yes" >&6; }
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14651 $as_echo "no
" >&6; }
14656 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
14657 for ncn_progname in gcc; do
14658 if test -n "$ncn_target_tool_prefix"; then
14659 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14660 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14662 $as_echo_n "checking
for $ac_word...
" >&6; }
14663 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14664 $as_echo_n "(cached
) " >&6
14666 if test -n "$GCC_FOR_TARGET"; then
14667 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14670 for as_dir in $PATH
14673 test -z "$as_dir" && as_dir=.
14674 for ac_exec_ext in '' $ac_executable_extensions; do
14675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14676 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14677 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14686 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14687 if test -n "$GCC_FOR_TARGET"; then
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
14689 $as_echo "$GCC_FOR_TARGET" >&6; }
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14692 $as_echo "no
" >&6; }
14697 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
14698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14699 set dummy ${ncn_progname}; ac_word=$2
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14701 $as_echo_n "checking
for $ac_word...
" >&6; }
14702 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14703 $as_echo_n "(cached
) " >&6
14705 if test -n "$GCC_FOR_TARGET"; then
14706 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14709 for as_dir in $PATH
14712 test -z "$as_dir" && as_dir=.
14713 for ac_exec_ext in '' $ac_executable_extensions; do
14714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14715 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14716 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14725 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14726 if test -n "$GCC_FOR_TARGET"; then
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
14728 $as_echo "$GCC_FOR_TARGET" >&6; }
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14731 $as_echo "no
" >&6; }
14736 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
14740 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
14741 GCC_FOR_TARGET="${CC_FOR_TARGET}"
14743 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
14748 if test -n "$GFORTRAN_FOR_TARGET"; then
14749 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
14750 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14751 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14754 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14755 for ncn_progname in gfortran; do
14756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14757 set dummy ${ncn_progname}; ac_word=$2
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14759 $as_echo_n "checking
for $ac_word...
" >&6; }
14760 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14761 $as_echo_n "(cached
) " >&6
14763 if test -n "$GFORTRAN_FOR_TARGET"; then
14764 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14767 for as_dir in $PATH
14770 test -z "$as_dir" && as_dir=.
14771 for ac_exec_ext in '' $ac_executable_extensions; do
14772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14773 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14774 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14783 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14784 if test -n "$GFORTRAN_FOR_TARGET"; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
14786 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14789 $as_echo "no
" >&6; }
14796 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
14797 for ncn_progname in gfortran; do
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14799 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14800 if test -x $with_build_time_tools/${ncn_progname}; then
14801 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14803 $as_echo "yes" >&6; }
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14807 $as_echo "no
" >&6; }
14812 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14813 for ncn_progname in gfortran; do
14814 if test -n "$ncn_target_tool_prefix"; then
14815 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14816 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14818 $as_echo_n "checking
for $ac_word...
" >&6; }
14819 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14820 $as_echo_n "(cached
) " >&6
14822 if test -n "$GFORTRAN_FOR_TARGET"; then
14823 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14826 for as_dir in $PATH
14829 test -z "$as_dir" && as_dir=.
14830 for ac_exec_ext in '' $ac_executable_extensions; do
14831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14832 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14833 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14842 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14843 if test -n "$GFORTRAN_FOR_TARGET"; then
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
14845 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14848 $as_echo "no
" >&6; }
14853 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
14854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14855 set dummy ${ncn_progname}; ac_word=$2
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14857 $as_echo_n "checking
for $ac_word...
" >&6; }
14858 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14859 $as_echo_n "(cached
) " >&6
14861 if test -n "$GFORTRAN_FOR_TARGET"; then
14862 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14865 for as_dir in $PATH
14868 test -z "$as_dir" && as_dir=.
14869 for ac_exec_ext in '' $ac_executable_extensions; do
14870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14871 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14872 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14881 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14882 if test -n "$GFORTRAN_FOR_TARGET"; then
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
14884 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14887 $as_echo "no
" >&6; }
14892 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
14896 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
14898 if test $build = $target ; then
14899 GFORTRAN_FOR_TARGET="$2"
14901 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
14904 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
14909 if test -n "$GOC_FOR_TARGET"; then
14910 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
14911 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14912 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14915 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14916 for ncn_progname in gccgo; do
14917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14918 set dummy ${ncn_progname}; ac_word=$2
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14920 $as_echo_n "checking
for $ac_word...
" >&6; }
14921 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14922 $as_echo_n "(cached
) " >&6
14924 if test -n "$GOC_FOR_TARGET"; then
14925 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14928 for as_dir in $PATH
14931 test -z "$as_dir" && as_dir=.
14932 for ac_exec_ext in '' $ac_executable_extensions; do
14933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14934 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14935 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14944 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14945 if test -n "$GOC_FOR_TARGET"; then
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
14947 $as_echo "$GOC_FOR_TARGET" >&6; }
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14950 $as_echo "no
" >&6; }
14957 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14958 for ncn_progname in gccgo; do
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14960 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14961 if test -x $with_build_time_tools/${ncn_progname}; then
14962 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14964 $as_echo "yes" >&6; }
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14968 $as_echo "no
" >&6; }
14973 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
14974 for ncn_progname in gccgo; do
14975 if test -n "$ncn_target_tool_prefix"; then
14976 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14977 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14979 $as_echo_n "checking
for $ac_word...
" >&6; }
14980 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14981 $as_echo_n "(cached
) " >&6
14983 if test -n "$GOC_FOR_TARGET"; then
14984 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14987 for as_dir in $PATH
14990 test -z "$as_dir" && as_dir=.
14991 for ac_exec_ext in '' $ac_executable_extensions; do
14992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14993 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14994 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15003 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15004 if test -n "$GOC_FOR_TARGET"; then
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
15006 $as_echo "$GOC_FOR_TARGET" >&6; }
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15009 $as_echo "no
" >&6; }
15014 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
15015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15016 set dummy ${ncn_progname}; ac_word=$2
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15018 $as_echo_n "checking
for $ac_word...
" >&6; }
15019 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
15020 $as_echo_n "(cached
) " >&6
15022 if test -n "$GOC_FOR_TARGET"; then
15023 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
15025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15026 for as_dir in $PATH
15029 test -z "$as_dir" && as_dir=.
15030 for ac_exec_ext in '' $ac_executable_extensions; do
15031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15032 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
15033 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15042 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15043 if test -n "$GOC_FOR_TARGET"; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
15045 $as_echo "$GOC_FOR_TARGET" >&6; }
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15048 $as_echo "no
" >&6; }
15053 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
15057 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
15059 if test $build = $target ; then
15060 GOC_FOR_TARGET="$2"
15062 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15065 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
15070 if test -n "$GDC_FOR_TARGET"; then
15071 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
15072 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15073 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15076 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15077 for ncn_progname in gdc; do
15078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15079 set dummy ${ncn_progname}; ac_word=$2
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15081 $as_echo_n "checking
for $ac_word...
" >&6; }
15082 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15083 $as_echo_n "(cached
) " >&6
15085 if test -n "$GDC_FOR_TARGET"; then
15086 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15089 for as_dir in $PATH
15092 test -z "$as_dir" && as_dir=.
15093 for ac_exec_ext in '' $ac_executable_extensions; do
15094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15095 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15096 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15105 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15106 if test -n "$GDC_FOR_TARGET"; then
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
15108 $as_echo "$GDC_FOR_TARGET" >&6; }
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15111 $as_echo "no
" >&6; }
15118 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15119 for ncn_progname in gdc; do
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15121 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15122 if test -x $with_build_time_tools/${ncn_progname}; then
15123 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15125 $as_echo "yes" >&6; }
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15129 $as_echo "no
" >&6; }
15134 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
15135 for ncn_progname in gdc; do
15136 if test -n "$ncn_target_tool_prefix"; then
15137 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15138 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15140 $as_echo_n "checking
for $ac_word...
" >&6; }
15141 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15142 $as_echo_n "(cached
) " >&6
15144 if test -n "$GDC_FOR_TARGET"; then
15145 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15148 for as_dir in $PATH
15151 test -z "$as_dir" && as_dir=.
15152 for ac_exec_ext in '' $ac_executable_extensions; do
15153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15154 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15155 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15164 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15165 if test -n "$GDC_FOR_TARGET"; then
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
15167 $as_echo "$GDC_FOR_TARGET" >&6; }
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15170 $as_echo "no
" >&6; }
15175 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
15176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15177 set dummy ${ncn_progname}; ac_word=$2
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15179 $as_echo_n "checking
for $ac_word...
" >&6; }
15180 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15181 $as_echo_n "(cached
) " >&6
15183 if test -n "$GDC_FOR_TARGET"; then
15184 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15187 for as_dir in $PATH
15190 test -z "$as_dir" && as_dir=.
15191 for ac_exec_ext in '' $ac_executable_extensions; do
15192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15193 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15194 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15203 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15204 if test -n "$GDC_FOR_TARGET"; then
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
15206 $as_echo "$GDC_FOR_TARGET" >&6; }
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15209 $as_echo "no
" >&6; }
15214 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
15218 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
15220 if test $build = $target ; then
15221 GDC_FOR_TARGET="$2"
15223 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15226 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
15231 if test -n "$GM2_FOR_TARGET"; then
15232 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
15233 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15234 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15237 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15238 for ncn_progname in gm2; do
15239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15240 set dummy ${ncn_progname}; ac_word=$2
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15242 $as_echo_n "checking
for $ac_word...
" >&6; }
15243 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15244 $as_echo_n "(cached
) " >&6
15246 if test -n "$GM2_FOR_TARGET"; then
15247 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15250 for as_dir in $PATH
15253 test -z "$as_dir" && as_dir=.
15254 for ac_exec_ext in '' $ac_executable_extensions; do
15255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15256 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15257 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15266 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15267 if test -n "$GM2_FOR_TARGET"; then
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
15269 $as_echo "$GM2_FOR_TARGET" >&6; }
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15272 $as_echo "no
" >&6; }
15279 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
15280 for ncn_progname in gm2; do
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15282 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15283 if test -x $with_build_time_tools/${ncn_progname}; then
15284 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15286 $as_echo "yes" >&6; }
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15290 $as_echo "no
" >&6; }
15295 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
15296 for ncn_progname in gm2; do
15297 if test -n "$ncn_target_tool_prefix"; then
15298 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15299 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15301 $as_echo_n "checking
for $ac_word...
" >&6; }
15302 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15303 $as_echo_n "(cached
) " >&6
15305 if test -n "$GM2_FOR_TARGET"; then
15306 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15309 for as_dir in $PATH
15312 test -z "$as_dir" && as_dir=.
15313 for ac_exec_ext in '' $ac_executable_extensions; do
15314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15315 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15316 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15325 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15326 if test -n "$GM2_FOR_TARGET"; then
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
15328 $as_echo "$GM2_FOR_TARGET" >&6; }
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15331 $as_echo "no
" >&6; }
15336 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
15337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15338 set dummy ${ncn_progname}; ac_word=$2
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15340 $as_echo_n "checking
for $ac_word...
" >&6; }
15341 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15342 $as_echo_n "(cached
) " >&6
15344 if test -n "$GM2_FOR_TARGET"; then
15345 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15348 for as_dir in $PATH
15351 test -z "$as_dir" && as_dir=.
15352 for ac_exec_ext in '' $ac_executable_extensions; do
15353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15354 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15355 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15364 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15365 if test -n "$GM2_FOR_TARGET"; then
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
15367 $as_echo "$GM2_FOR_TARGET" >&6; }
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15370 $as_echo "no
" >&6; }
15375 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
15379 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
15381 if test $build = $target ; then
15382 GM2_FOR_TARGET="$2"
15384 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
15387 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
15392 cat > conftest.c << \EOF
15397 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
15398 have_gcc_for_target=yes
15400 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
15401 have_gcc_for_target=no
15408 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15409 if test -n "$with_build_time_tools"; then
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
15411 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
15412 if test -x $with_build_time_tools/ar; then
15413 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
15414 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
15416 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15419 $as_echo "no
" >&6; }
15421 elif test $build != $host && test $have_gcc_for_target = yes; then
15422 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
15423 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
15424 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15427 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15428 # Extract the first word of "ar", so it can be a program name with args.
15429 set dummy ar; ac_word=$2
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15431 $as_echo_n "checking
for $ac_word...
" >&6; }
15432 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
15433 $as_echo_n "(cached
) " >&6
15435 case $AR_FOR_TARGET in
15437 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
15440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15441 for as_dir in $gcc_cv_tool_dirs
15444 test -z "$as_dir" && as_dir=.
15445 for ac_exec_ext in '' $ac_executable_extensions; do
15446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15447 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15448 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15458 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15459 if test -n "$AR_FOR_TARGET"; then
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
15461 $as_echo "$AR_FOR_TARGET" >&6; }
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15464 $as_echo "no
" >&6; }
15469 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15472 if test -n "$AR_FOR_TARGET"; then
15473 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
15474 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15475 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15478 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15479 for ncn_progname in ar; do
15480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15481 set dummy ${ncn_progname}; ac_word=$2
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15483 $as_echo_n "checking
for $ac_word...
" >&6; }
15484 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15485 $as_echo_n "(cached
) " >&6
15487 if test -n "$AR_FOR_TARGET"; then
15488 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15491 for as_dir in $PATH
15494 test -z "$as_dir" && as_dir=.
15495 for ac_exec_ext in '' $ac_executable_extensions; do
15496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15497 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15498 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15507 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15508 if test -n "$AR_FOR_TARGET"; then
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
15510 $as_echo "$AR_FOR_TARGET" >&6; }
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15513 $as_echo "no
" >&6; }
15520 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
15521 for ncn_progname in ar; do
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15523 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15524 if test -x $with_build_time_tools/${ncn_progname}; then
15525 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15527 $as_echo "yes" >&6; }
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15531 $as_echo "no
" >&6; }
15536 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
15537 for ncn_progname in ar; do
15538 if test -n "$ncn_target_tool_prefix"; then
15539 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15540 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15542 $as_echo_n "checking
for $ac_word...
" >&6; }
15543 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15544 $as_echo_n "(cached
) " >&6
15546 if test -n "$AR_FOR_TARGET"; then
15547 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15550 for as_dir in $PATH
15553 test -z "$as_dir" && as_dir=.
15554 for ac_exec_ext in '' $ac_executable_extensions; do
15555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15556 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15557 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15566 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15567 if test -n "$AR_FOR_TARGET"; then
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
15569 $as_echo "$AR_FOR_TARGET" >&6; }
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15572 $as_echo "no
" >&6; }
15577 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
15578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15579 set dummy ${ncn_progname}; ac_word=$2
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15581 $as_echo_n "checking
for $ac_word...
" >&6; }
15582 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15583 $as_echo_n "(cached
) " >&6
15585 if test -n "$AR_FOR_TARGET"; then
15586 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15589 for as_dir in $PATH
15592 test -z "$as_dir" && as_dir=.
15593 for ac_exec_ext in '' $ac_executable_extensions; do
15594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15595 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15596 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15605 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15606 if test -n "$AR_FOR_TARGET"; then
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
15608 $as_echo "$AR_FOR_TARGET" >&6; }
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15611 $as_echo "no
" >&6; }
15616 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
15620 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
15622 if test $build = $target ; then
15625 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
15628 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
15632 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15638 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15639 if test -n "$with_build_time_tools"; then
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
15641 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
15642 if test -x $with_build_time_tools/as; then
15643 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
15644 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
15646 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15649 $as_echo "no
" >&6; }
15651 elif test $build != $host && test $have_gcc_for_target = yes; then
15652 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
15653 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
15654 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15657 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15658 # Extract the first word of "as
", so it can be a program name with args.
15659 set dummy as; ac_word=$2
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15661 $as_echo_n "checking
for $ac_word...
" >&6; }
15662 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
15663 $as_echo_n "(cached
) " >&6
15665 case $AS_FOR_TARGET in
15667 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
15670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15671 for as_dir in $gcc_cv_tool_dirs
15674 test -z "$as_dir" && as_dir=.
15675 for ac_exec_ext in '' $ac_executable_extensions; do
15676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15677 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15678 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15688 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15689 if test -n "$AS_FOR_TARGET"; then
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
15691 $as_echo "$AS_FOR_TARGET" >&6; }
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15694 $as_echo "no
" >&6; }
15699 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15702 if test -n "$AS_FOR_TARGET"; then
15703 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
15704 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15705 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15708 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15709 for ncn_progname in as; do
15710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15711 set dummy ${ncn_progname}; ac_word=$2
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15713 $as_echo_n "checking
for $ac_word...
" >&6; }
15714 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15715 $as_echo_n "(cached
) " >&6
15717 if test -n "$AS_FOR_TARGET"; then
15718 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15721 for as_dir in $PATH
15724 test -z "$as_dir" && as_dir=.
15725 for ac_exec_ext in '' $ac_executable_extensions; do
15726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15727 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15728 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15737 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15738 if test -n "$AS_FOR_TARGET"; then
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
15740 $as_echo "$AS_FOR_TARGET" >&6; }
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15743 $as_echo "no
" >&6; }
15750 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
15751 for ncn_progname in as; do
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15753 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15754 if test -x $with_build_time_tools/${ncn_progname}; then
15755 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15757 $as_echo "yes" >&6; }
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15761 $as_echo "no
" >&6; }
15766 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
15767 for ncn_progname in as; do
15768 if test -n "$ncn_target_tool_prefix"; then
15769 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15770 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15772 $as_echo_n "checking
for $ac_word...
" >&6; }
15773 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15774 $as_echo_n "(cached
) " >&6
15776 if test -n "$AS_FOR_TARGET"; then
15777 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15780 for as_dir in $PATH
15783 test -z "$as_dir" && as_dir=.
15784 for ac_exec_ext in '' $ac_executable_extensions; do
15785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15786 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15787 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15796 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15797 if test -n "$AS_FOR_TARGET"; then
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
15799 $as_echo "$AS_FOR_TARGET" >&6; }
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15802 $as_echo "no
" >&6; }
15807 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
15808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15809 set dummy ${ncn_progname}; ac_word=$2
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15811 $as_echo_n "checking
for $ac_word...
" >&6; }
15812 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15813 $as_echo_n "(cached
) " >&6
15815 if test -n "$AS_FOR_TARGET"; then
15816 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15819 for as_dir in $PATH
15822 test -z "$as_dir" && as_dir=.
15823 for ac_exec_ext in '' $ac_executable_extensions; do
15824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15825 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15826 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15835 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15836 if test -n "$AS_FOR_TARGET"; then
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
15838 $as_echo "$AS_FOR_TARGET" >&6; }
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15841 $as_echo "no
" >&6; }
15846 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
15850 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
15852 if test $build = $target ; then
15855 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
15858 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
15862 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15868 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15869 if test -n "$with_build_time_tools"; then
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
15871 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
15872 if test -x $with_build_time_tools/dlltool; then
15873 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
15874 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
15876 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15879 $as_echo "no
" >&6; }
15881 elif test $build != $host && test $have_gcc_for_target = yes; then
15882 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
15883 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
15884 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15887 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15888 # Extract the first word of "dlltool
", so it can be a program name with args.
15889 set dummy dlltool; ac_word=$2
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15891 $as_echo_n "checking
for $ac_word...
" >&6; }
15892 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
15893 $as_echo_n "(cached
) " >&6
15895 case $DLLTOOL_FOR_TARGET in
15897 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
15900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15901 for as_dir in $gcc_cv_tool_dirs
15904 test -z "$as_dir" && as_dir=.
15905 for ac_exec_ext in '' $ac_executable_extensions; do
15906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15907 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15908 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15918 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15919 if test -n "$DLLTOOL_FOR_TARGET"; then
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15921 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15924 $as_echo "no
" >&6; }
15929 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15932 if test -n "$DLLTOOL_FOR_TARGET"; then
15933 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15934 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15935 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15938 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15939 for ncn_progname in dlltool; do
15940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15941 set dummy ${ncn_progname}; ac_word=$2
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15943 $as_echo_n "checking
for $ac_word...
" >&6; }
15944 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15945 $as_echo_n "(cached
) " >&6
15947 if test -n "$DLLTOOL_FOR_TARGET"; then
15948 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15951 for as_dir in $PATH
15954 test -z "$as_dir" && as_dir=.
15955 for ac_exec_ext in '' $ac_executable_extensions; do
15956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15957 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15958 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15967 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15968 if test -n "$DLLTOOL_FOR_TARGET"; then
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15970 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15973 $as_echo "no
" >&6; }
15980 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15981 for ncn_progname in dlltool; do
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15983 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15984 if test -x $with_build_time_tools/${ncn_progname}; then
15985 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15987 $as_echo "yes" >&6; }
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15991 $as_echo "no
" >&6; }
15996 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15997 for ncn_progname in dlltool; do
15998 if test -n "$ncn_target_tool_prefix"; then
15999 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16000 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16002 $as_echo_n "checking
for $ac_word...
" >&6; }
16003 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16004 $as_echo_n "(cached
) " >&6
16006 if test -n "$DLLTOOL_FOR_TARGET"; then
16007 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16010 for as_dir in $PATH
16013 test -z "$as_dir" && as_dir=.
16014 for ac_exec_ext in '' $ac_executable_extensions; do
16015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16016 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16017 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16026 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16027 if test -n "$DLLTOOL_FOR_TARGET"; then
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
16029 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16032 $as_echo "no
" >&6; }
16037 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
16038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16039 set dummy ${ncn_progname}; ac_word=$2
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16041 $as_echo_n "checking
for $ac_word...
" >&6; }
16042 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16043 $as_echo_n "(cached
) " >&6
16045 if test -n "$DLLTOOL_FOR_TARGET"; then
16046 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16049 for as_dir in $PATH
16052 test -z "$as_dir" && as_dir=.
16053 for ac_exec_ext in '' $ac_executable_extensions; do
16054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16055 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
16056 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16065 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16066 if test -n "$DLLTOOL_FOR_TARGET"; then
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
16068 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16071 $as_echo "no
" >&6; }
16076 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
16080 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
16082 if test $build = $target ; then
16083 DLLTOOL_FOR_TARGET="$2"
16085 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16088 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
16092 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
16098 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16099 if test -n "$with_build_time_tools"; then
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
16101 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
16102 if test -x $with_build_time_tools/dsymutil; then
16103 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
16104 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
16106 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16109 $as_echo "no
" >&6; }
16111 elif test $build != $host && test $have_gcc_for_target = yes; then
16112 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
16113 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
16114 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16117 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16118 # Extract the first word of "dsymutil
", so it can be a program name with args.
16119 set dummy dsymutil; ac_word=$2
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16121 $as_echo_n "checking
for $ac_word...
" >&6; }
16122 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
16123 $as_echo_n "(cached
) " >&6
16125 case $DSYMUTIL_FOR_TARGET in
16127 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
16130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16131 for as_dir in $gcc_cv_tool_dirs
16134 test -z "$as_dir" && as_dir=.
16135 for ac_exec_ext in '' $ac_executable_extensions; do
16136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16137 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16138 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16148 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16149 if test -n "$DSYMUTIL_FOR_TARGET"; then
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
16151 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16154 $as_echo "no
" >&6; }
16159 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16162 if test -n "$DSYMUTIL_FOR_TARGET"; then
16163 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16164 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16165 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16168 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16169 for ncn_progname in dsymutil; do
16170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16171 set dummy ${ncn_progname}; ac_word=$2
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16173 $as_echo_n "checking
for $ac_word...
" >&6; }
16174 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16175 $as_echo_n "(cached
) " >&6
16177 if test -n "$DSYMUTIL_FOR_TARGET"; then
16178 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16181 for as_dir in $PATH
16184 test -z "$as_dir" && as_dir=.
16185 for ac_exec_ext in '' $ac_executable_extensions; do
16186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16187 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16188 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16197 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16198 if test -n "$DSYMUTIL_FOR_TARGET"; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
16200 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16203 $as_echo "no
" >&6; }
16210 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16211 for ncn_progname in dsymutil; do
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16213 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16214 if test -x $with_build_time_tools/${ncn_progname}; then
16215 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16217 $as_echo "yes" >&6; }
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16221 $as_echo "no
" >&6; }
16226 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16227 for ncn_progname in dsymutil; do
16228 if test -n "$ncn_target_tool_prefix"; then
16229 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16230 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16232 $as_echo_n "checking
for $ac_word...
" >&6; }
16233 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16234 $as_echo_n "(cached
) " >&6
16236 if test -n "$DSYMUTIL_FOR_TARGET"; then
16237 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16240 for as_dir in $PATH
16243 test -z "$as_dir" && as_dir=.
16244 for ac_exec_ext in '' $ac_executable_extensions; do
16245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16246 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16247 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16256 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16257 if test -n "$DSYMUTIL_FOR_TARGET"; then
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
16259 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16262 $as_echo "no
" >&6; }
16267 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
16268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16269 set dummy ${ncn_progname}; ac_word=$2
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16271 $as_echo_n "checking
for $ac_word...
" >&6; }
16272 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16273 $as_echo_n "(cached
) " >&6
16275 if test -n "$DSYMUTIL_FOR_TARGET"; then
16276 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16279 for as_dir in $PATH
16282 test -z "$as_dir" && as_dir=.
16283 for ac_exec_ext in '' $ac_executable_extensions; do
16284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16285 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16286 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16295 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16296 if test -n "$DSYMUTIL_FOR_TARGET"; then
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
16298 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16301 $as_echo "no
" >&6; }
16306 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
16310 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
16312 if test $build = $target ; then
16313 DSYMUTIL_FOR_TARGET="$2"
16315 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16318 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
16322 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16328 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16329 if test -n "$with_build_time_tools"; then
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
16331 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
16332 if test -x $with_build_time_tools/ld; then
16333 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
16334 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
16336 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16339 $as_echo "no
" >&6; }
16341 elif test $build != $host && test $have_gcc_for_target = yes; then
16342 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
16343 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
16344 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16347 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16348 # Extract the first word of "ld
", so it can be a program name with args.
16349 set dummy ld; ac_word=$2
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16351 $as_echo_n "checking
for $ac_word...
" >&6; }
16352 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
16353 $as_echo_n "(cached
) " >&6
16355 case $LD_FOR_TARGET in
16357 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
16360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16361 for as_dir in $gcc_cv_tool_dirs
16364 test -z "$as_dir" && as_dir=.
16365 for ac_exec_ext in '' $ac_executable_extensions; do
16366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16367 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16368 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16378 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16379 if test -n "$LD_FOR_TARGET"; then
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
16381 $as_echo "$LD_FOR_TARGET" >&6; }
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16384 $as_echo "no
" >&6; }
16389 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16392 if test -n "$LD_FOR_TARGET"; then
16393 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
16394 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16395 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16398 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16399 for ncn_progname in ld; do
16400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16401 set dummy ${ncn_progname}; ac_word=$2
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16403 $as_echo_n "checking
for $ac_word...
" >&6; }
16404 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16405 $as_echo_n "(cached
) " >&6
16407 if test -n "$LD_FOR_TARGET"; then
16408 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16411 for as_dir in $PATH
16414 test -z "$as_dir" && as_dir=.
16415 for ac_exec_ext in '' $ac_executable_extensions; do
16416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16417 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16418 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16427 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16428 if test -n "$LD_FOR_TARGET"; then
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
16430 $as_echo "$LD_FOR_TARGET" >&6; }
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16433 $as_echo "no
" >&6; }
16440 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
16441 for ncn_progname in ld; do
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16443 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16444 if test -x $with_build_time_tools/${ncn_progname}; then
16445 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16447 $as_echo "yes" >&6; }
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16451 $as_echo "no
" >&6; }
16456 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
16457 for ncn_progname in ld; do
16458 if test -n "$ncn_target_tool_prefix"; then
16459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16460 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16462 $as_echo_n "checking
for $ac_word...
" >&6; }
16463 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16464 $as_echo_n "(cached
) " >&6
16466 if test -n "$LD_FOR_TARGET"; then
16467 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16470 for as_dir in $PATH
16473 test -z "$as_dir" && as_dir=.
16474 for ac_exec_ext in '' $ac_executable_extensions; do
16475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16476 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16477 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16486 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16487 if test -n "$LD_FOR_TARGET"; then
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
16489 $as_echo "$LD_FOR_TARGET" >&6; }
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16492 $as_echo "no
" >&6; }
16497 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
16498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16499 set dummy ${ncn_progname}; ac_word=$2
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16501 $as_echo_n "checking
for $ac_word...
" >&6; }
16502 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16503 $as_echo_n "(cached
) " >&6
16505 if test -n "$LD_FOR_TARGET"; then
16506 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16509 for as_dir in $PATH
16512 test -z "$as_dir" && as_dir=.
16513 for ac_exec_ext in '' $ac_executable_extensions; do
16514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16515 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16516 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16525 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16526 if test -n "$LD_FOR_TARGET"; then
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
16528 $as_echo "$LD_FOR_TARGET" >&6; }
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16531 $as_echo "no
" >&6; }
16536 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
16540 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
16542 if test $build = $target ; then
16545 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
16548 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
16552 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16558 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16559 if test -n "$with_build_time_tools"; then
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
16561 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
16562 if test -x $with_build_time_tools/lipo; then
16563 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
16564 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
16566 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16569 $as_echo "no
" >&6; }
16571 elif test $build != $host && test $have_gcc_for_target = yes; then
16572 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
16573 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
16574 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16577 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16578 # Extract the first word of "lipo
", so it can be a program name with args.
16579 set dummy lipo; ac_word=$2
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16581 $as_echo_n "checking
for $ac_word...
" >&6; }
16582 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
16583 $as_echo_n "(cached
) " >&6
16585 case $LIPO_FOR_TARGET in
16587 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
16590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16591 for as_dir in $gcc_cv_tool_dirs
16594 test -z "$as_dir" && as_dir=.
16595 for ac_exec_ext in '' $ac_executable_extensions; do
16596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16597 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16598 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16608 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16609 if test -n "$LIPO_FOR_TARGET"; then
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
16611 $as_echo "$LIPO_FOR_TARGET" >&6; }
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16614 $as_echo "no
" >&6; }
16619 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16622 if test -n "$LIPO_FOR_TARGET"; then
16623 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16624 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16625 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16628 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16629 for ncn_progname in lipo; do
16630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16631 set dummy ${ncn_progname}; ac_word=$2
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16633 $as_echo_n "checking
for $ac_word...
" >&6; }
16634 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16635 $as_echo_n "(cached
) " >&6
16637 if test -n "$LIPO_FOR_TARGET"; then
16638 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16641 for as_dir in $PATH
16644 test -z "$as_dir" && as_dir=.
16645 for ac_exec_ext in '' $ac_executable_extensions; do
16646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16647 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16648 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16657 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16658 if test -n "$LIPO_FOR_TARGET"; then
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
16660 $as_echo "$LIPO_FOR_TARGET" >&6; }
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16663 $as_echo "no
" >&6; }
16670 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
16671 for ncn_progname in lipo; do
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16673 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16674 if test -x $with_build_time_tools/${ncn_progname}; then
16675 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16677 $as_echo "yes" >&6; }
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16681 $as_echo "no
" >&6; }
16686 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
16687 for ncn_progname in lipo; do
16688 if test -n "$ncn_target_tool_prefix"; then
16689 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16690 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16692 $as_echo_n "checking
for $ac_word...
" >&6; }
16693 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16694 $as_echo_n "(cached
) " >&6
16696 if test -n "$LIPO_FOR_TARGET"; then
16697 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16700 for as_dir in $PATH
16703 test -z "$as_dir" && as_dir=.
16704 for ac_exec_ext in '' $ac_executable_extensions; do
16705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16706 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16707 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16716 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16717 if test -n "$LIPO_FOR_TARGET"; then
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
16719 $as_echo "$LIPO_FOR_TARGET" >&6; }
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16722 $as_echo "no
" >&6; }
16727 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
16728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16729 set dummy ${ncn_progname}; ac_word=$2
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16731 $as_echo_n "checking
for $ac_word...
" >&6; }
16732 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16733 $as_echo_n "(cached
) " >&6
16735 if test -n "$LIPO_FOR_TARGET"; then
16736 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16739 for as_dir in $PATH
16742 test -z "$as_dir" && as_dir=.
16743 for ac_exec_ext in '' $ac_executable_extensions; do
16744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16745 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16746 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16755 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16756 if test -n "$LIPO_FOR_TARGET"; then
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
16758 $as_echo "$LIPO_FOR_TARGET" >&6; }
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16761 $as_echo "no
" >&6; }
16766 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
16770 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
16772 if test $build = $target ; then
16773 LIPO_FOR_TARGET="$2"
16775 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
16778 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
16782 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16788 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16789 if test -n "$with_build_time_tools"; then
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
16791 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
16792 if test -x $with_build_time_tools/nm; then
16793 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
16794 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
16796 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16799 $as_echo "no
" >&6; }
16801 elif test $build != $host && test $have_gcc_for_target = yes; then
16802 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
16803 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
16804 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16807 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16808 # Extract the first word of "nm
", so it can be a program name with args.
16809 set dummy nm; ac_word=$2
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16811 $as_echo_n "checking
for $ac_word...
" >&6; }
16812 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
16813 $as_echo_n "(cached
) " >&6
16815 case $NM_FOR_TARGET in
16817 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
16820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16821 for as_dir in $gcc_cv_tool_dirs
16824 test -z "$as_dir" && as_dir=.
16825 for ac_exec_ext in '' $ac_executable_extensions; do
16826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16827 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16828 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16838 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16839 if test -n "$NM_FOR_TARGET"; then
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16841 $as_echo "$NM_FOR_TARGET" >&6; }
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16844 $as_echo "no
" >&6; }
16849 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16852 if test -n "$NM_FOR_TARGET"; then
16853 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
16854 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16855 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16858 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16859 for ncn_progname in nm; do
16860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16861 set dummy ${ncn_progname}; ac_word=$2
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16863 $as_echo_n "checking
for $ac_word...
" >&6; }
16864 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16865 $as_echo_n "(cached
) " >&6
16867 if test -n "$NM_FOR_TARGET"; then
16868 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16871 for as_dir in $PATH
16874 test -z "$as_dir" && as_dir=.
16875 for ac_exec_ext in '' $ac_executable_extensions; do
16876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16877 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16878 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16887 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16888 if test -n "$NM_FOR_TARGET"; then
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16890 $as_echo "$NM_FOR_TARGET" >&6; }
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16893 $as_echo "no
" >&6; }
16900 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
16901 for ncn_progname in nm; do
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16903 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16904 if test -x $with_build_time_tools/${ncn_progname}; then
16905 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16907 $as_echo "yes" >&6; }
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16911 $as_echo "no
" >&6; }
16916 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
16917 for ncn_progname in nm; do
16918 if test -n "$ncn_target_tool_prefix"; then
16919 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16920 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16922 $as_echo_n "checking
for $ac_word...
" >&6; }
16923 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16924 $as_echo_n "(cached
) " >&6
16926 if test -n "$NM_FOR_TARGET"; then
16927 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16930 for as_dir in $PATH
16933 test -z "$as_dir" && as_dir=.
16934 for ac_exec_ext in '' $ac_executable_extensions; do
16935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16936 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16937 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16946 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16947 if test -n "$NM_FOR_TARGET"; then
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16949 $as_echo "$NM_FOR_TARGET" >&6; }
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16952 $as_echo "no
" >&6; }
16957 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
16958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16959 set dummy ${ncn_progname}; ac_word=$2
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16961 $as_echo_n "checking
for $ac_word...
" >&6; }
16962 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16963 $as_echo_n "(cached
) " >&6
16965 if test -n "$NM_FOR_TARGET"; then
16966 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16969 for as_dir in $PATH
16972 test -z "$as_dir" && as_dir=.
16973 for ac_exec_ext in '' $ac_executable_extensions; do
16974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16975 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16976 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16985 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16986 if test -n "$NM_FOR_TARGET"; then
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16988 $as_echo "$NM_FOR_TARGET" >&6; }
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16991 $as_echo "no
" >&6; }
16996 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
17000 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
17002 if test $build = $target ; then
17005 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
17008 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
17012 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
17018 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17019 if test -n "$with_build_time_tools"; then
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
17021 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
17022 if test -x $with_build_time_tools/objcopy; then
17023 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
17024 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
17026 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17029 $as_echo "no
" >&6; }
17031 elif test $build != $host && test $have_gcc_for_target = yes; then
17032 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
17033 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
17034 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17037 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17038 # Extract the first word of "objcopy
", so it can be a program name with args.
17039 set dummy objcopy; ac_word=$2
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17041 $as_echo_n "checking
for $ac_word...
" >&6; }
17042 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
17043 $as_echo_n "(cached
) " >&6
17045 case $OBJCOPY_FOR_TARGET in
17047 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
17050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17051 for as_dir in $gcc_cv_tool_dirs
17054 test -z "$as_dir" && as_dir=.
17055 for ac_exec_ext in '' $ac_executable_extensions; do
17056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17057 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17058 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17068 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17069 if test -n "$OBJCOPY_FOR_TARGET"; then
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
17071 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17074 $as_echo "no
" >&6; }
17079 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17082 if test -n "$OBJCOPY_FOR_TARGET"; then
17083 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17084 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17085 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17088 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17089 for ncn_progname in objcopy; do
17090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17091 set dummy ${ncn_progname}; ac_word=$2
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17093 $as_echo_n "checking
for $ac_word...
" >&6; }
17094 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17095 $as_echo_n "(cached
) " >&6
17097 if test -n "$OBJCOPY_FOR_TARGET"; then
17098 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17101 for as_dir in $PATH
17104 test -z "$as_dir" && as_dir=.
17105 for ac_exec_ext in '' $ac_executable_extensions; do
17106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17107 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17108 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17117 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17118 if test -n "$OBJCOPY_FOR_TARGET"; then
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
17120 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17123 $as_echo "no
" >&6; }
17130 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
17131 for ncn_progname in objcopy; do
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17133 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17134 if test -x $with_build_time_tools/${ncn_progname}; then
17135 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17137 $as_echo "yes" >&6; }
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17141 $as_echo "no
" >&6; }
17146 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17147 for ncn_progname in objcopy; do
17148 if test -n "$ncn_target_tool_prefix"; then
17149 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17150 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17152 $as_echo_n "checking
for $ac_word...
" >&6; }
17153 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17154 $as_echo_n "(cached
) " >&6
17156 if test -n "$OBJCOPY_FOR_TARGET"; then
17157 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17160 for as_dir in $PATH
17163 test -z "$as_dir" && as_dir=.
17164 for ac_exec_ext in '' $ac_executable_extensions; do
17165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17166 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17167 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17176 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17177 if test -n "$OBJCOPY_FOR_TARGET"; then
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
17179 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17182 $as_echo "no
" >&6; }
17187 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
17188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17189 set dummy ${ncn_progname}; ac_word=$2
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17191 $as_echo_n "checking
for $ac_word...
" >&6; }
17192 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17193 $as_echo_n "(cached
) " >&6
17195 if test -n "$OBJCOPY_FOR_TARGET"; then
17196 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17199 for as_dir in $PATH
17202 test -z "$as_dir" && as_dir=.
17203 for ac_exec_ext in '' $ac_executable_extensions; do
17204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17205 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17206 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17215 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17216 if test -n "$OBJCOPY_FOR_TARGET"; then
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
17218 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17221 $as_echo "no
" >&6; }
17226 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
17230 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
17232 if test $build = $target ; then
17233 OBJCOPY_FOR_TARGET="$2"
17235 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
17238 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
17242 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17248 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17249 if test -n "$with_build_time_tools"; then
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
17251 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
17252 if test -x $with_build_time_tools/objdump; then
17253 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
17254 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
17256 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17259 $as_echo "no
" >&6; }
17261 elif test $build != $host && test $have_gcc_for_target = yes; then
17262 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
17263 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
17264 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17267 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17268 # Extract the first word of "objdump
", so it can be a program name with args.
17269 set dummy objdump; ac_word=$2
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17271 $as_echo_n "checking
for $ac_word...
" >&6; }
17272 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
17273 $as_echo_n "(cached
) " >&6
17275 case $OBJDUMP_FOR_TARGET in
17277 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
17280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17281 for as_dir in $gcc_cv_tool_dirs
17284 test -z "$as_dir" && as_dir=.
17285 for ac_exec_ext in '' $ac_executable_extensions; do
17286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17287 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17288 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17298 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17299 if test -n "$OBJDUMP_FOR_TARGET"; then
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
17301 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17304 $as_echo "no
" >&6; }
17309 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17312 if test -n "$OBJDUMP_FOR_TARGET"; then
17313 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17314 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17315 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17318 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17319 for ncn_progname in objdump; do
17320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17321 set dummy ${ncn_progname}; ac_word=$2
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17323 $as_echo_n "checking
for $ac_word...
" >&6; }
17324 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17325 $as_echo_n "(cached
) " >&6
17327 if test -n "$OBJDUMP_FOR_TARGET"; then
17328 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17331 for as_dir in $PATH
17334 test -z "$as_dir" && as_dir=.
17335 for ac_exec_ext in '' $ac_executable_extensions; do
17336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17337 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17338 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17347 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17348 if test -n "$OBJDUMP_FOR_TARGET"; then
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
17350 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17353 $as_echo "no
" >&6; }
17360 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17361 for ncn_progname in objdump; do
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17363 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17364 if test -x $with_build_time_tools/${ncn_progname}; then
17365 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17367 $as_echo "yes" >&6; }
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17371 $as_echo "no
" >&6; }
17376 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17377 for ncn_progname in objdump; do
17378 if test -n "$ncn_target_tool_prefix"; then
17379 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17380 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17382 $as_echo_n "checking
for $ac_word...
" >&6; }
17383 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17384 $as_echo_n "(cached
) " >&6
17386 if test -n "$OBJDUMP_FOR_TARGET"; then
17387 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17390 for as_dir in $PATH
17393 test -z "$as_dir" && as_dir=.
17394 for ac_exec_ext in '' $ac_executable_extensions; do
17395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17396 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17397 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17406 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17407 if test -n "$OBJDUMP_FOR_TARGET"; then
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
17409 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17412 $as_echo "no
" >&6; }
17417 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
17418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17419 set dummy ${ncn_progname}; ac_word=$2
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17421 $as_echo_n "checking
for $ac_word...
" >&6; }
17422 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17423 $as_echo_n "(cached
) " >&6
17425 if test -n "$OBJDUMP_FOR_TARGET"; then
17426 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17429 for as_dir in $PATH
17432 test -z "$as_dir" && as_dir=.
17433 for ac_exec_ext in '' $ac_executable_extensions; do
17434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17435 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17436 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17445 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17446 if test -n "$OBJDUMP_FOR_TARGET"; then
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
17448 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17451 $as_echo "no
" >&6; }
17456 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
17460 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
17462 if test $build = $target ; then
17463 OBJDUMP_FOR_TARGET="$2"
17465 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17468 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
17472 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17478 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17479 if test -n "$with_build_time_tools"; then
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
17481 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
17482 if test -x $with_build_time_tools/otool; then
17483 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
17484 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
17486 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17489 $as_echo "no
" >&6; }
17491 elif test $build != $host && test $have_gcc_for_target = yes; then
17492 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
17493 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
17494 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17497 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17498 # Extract the first word of "otool
", so it can be a program name with args.
17499 set dummy otool; ac_word=$2
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17501 $as_echo_n "checking
for $ac_word...
" >&6; }
17502 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
17503 $as_echo_n "(cached
) " >&6
17505 case $OTOOL_FOR_TARGET in
17507 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
17510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17511 for as_dir in $gcc_cv_tool_dirs
17514 test -z "$as_dir" && as_dir=.
17515 for ac_exec_ext in '' $ac_executable_extensions; do
17516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17517 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17518 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17528 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17529 if test -n "$OTOOL_FOR_TARGET"; then
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
17531 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17534 $as_echo "no
" >&6; }
17539 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17542 if test -n "$OTOOL_FOR_TARGET"; then
17543 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17544 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17545 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17548 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17549 for ncn_progname in otool; do
17550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17551 set dummy ${ncn_progname}; ac_word=$2
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17553 $as_echo_n "checking
for $ac_word...
" >&6; }
17554 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17555 $as_echo_n "(cached
) " >&6
17557 if test -n "$OTOOL_FOR_TARGET"; then
17558 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17561 for as_dir in $PATH
17564 test -z "$as_dir" && as_dir=.
17565 for ac_exec_ext in '' $ac_executable_extensions; do
17566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17567 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17568 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17577 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17578 if test -n "$OTOOL_FOR_TARGET"; then
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
17580 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17583 $as_echo "no
" >&6; }
17590 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
17591 for ncn_progname in otool; do
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17593 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17594 if test -x $with_build_time_tools/${ncn_progname}; then
17595 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17597 $as_echo "yes" >&6; }
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17601 $as_echo "no
" >&6; }
17606 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17607 for ncn_progname in otool; do
17608 if test -n "$ncn_target_tool_prefix"; then
17609 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17610 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17612 $as_echo_n "checking
for $ac_word...
" >&6; }
17613 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17614 $as_echo_n "(cached
) " >&6
17616 if test -n "$OTOOL_FOR_TARGET"; then
17617 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17620 for as_dir in $PATH
17623 test -z "$as_dir" && as_dir=.
17624 for ac_exec_ext in '' $ac_executable_extensions; do
17625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17626 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17627 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17636 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17637 if test -n "$OTOOL_FOR_TARGET"; then
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
17639 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17642 $as_echo "no
" >&6; }
17647 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
17648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17649 set dummy ${ncn_progname}; ac_word=$2
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17651 $as_echo_n "checking
for $ac_word...
" >&6; }
17652 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17653 $as_echo_n "(cached
) " >&6
17655 if test -n "$OTOOL_FOR_TARGET"; then
17656 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17659 for as_dir in $PATH
17662 test -z "$as_dir" && as_dir=.
17663 for ac_exec_ext in '' $ac_executable_extensions; do
17664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17665 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17666 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17675 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17676 if test -n "$OTOOL_FOR_TARGET"; then
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
17678 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17681 $as_echo "no
" >&6; }
17686 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
17690 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
17692 if test $build = $target ; then
17693 OTOOL_FOR_TARGET="$2"
17695 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
17698 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
17702 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17708 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17709 if test -n "$with_build_time_tools"; then
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
17711 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
17712 if test -x $with_build_time_tools/ranlib; then
17713 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
17714 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
17716 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17719 $as_echo "no
" >&6; }
17721 elif test $build != $host && test $have_gcc_for_target = yes; then
17722 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
17723 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
17724 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17727 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17728 # Extract the first word of "ranlib
", so it can be a program name with args.
17729 set dummy ranlib; ac_word=$2
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17731 $as_echo_n "checking
for $ac_word...
" >&6; }
17732 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
17733 $as_echo_n "(cached
) " >&6
17735 case $RANLIB_FOR_TARGET in
17737 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
17740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17741 for as_dir in $gcc_cv_tool_dirs
17744 test -z "$as_dir" && as_dir=.
17745 for ac_exec_ext in '' $ac_executable_extensions; do
17746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17747 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17748 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17758 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17759 if test -n "$RANLIB_FOR_TARGET"; then
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
17761 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17764 $as_echo "no
" >&6; }
17769 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17772 if test -n "$RANLIB_FOR_TARGET"; then
17773 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17774 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17775 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17778 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17779 for ncn_progname in ranlib; do
17780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17781 set dummy ${ncn_progname}; ac_word=$2
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17783 $as_echo_n "checking
for $ac_word...
" >&6; }
17784 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17785 $as_echo_n "(cached
) " >&6
17787 if test -n "$RANLIB_FOR_TARGET"; then
17788 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17791 for as_dir in $PATH
17794 test -z "$as_dir" && as_dir=.
17795 for ac_exec_ext in '' $ac_executable_extensions; do
17796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17797 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17798 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17807 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17808 if test -n "$RANLIB_FOR_TARGET"; then
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
17810 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17813 $as_echo "no
" >&6; }
17820 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
17821 for ncn_progname in ranlib; do
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17823 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17824 if test -x $with_build_time_tools/${ncn_progname}; then
17825 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17827 $as_echo "yes" >&6; }
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17831 $as_echo "no
" >&6; }
17836 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17837 for ncn_progname in ranlib; do
17838 if test -n "$ncn_target_tool_prefix"; then
17839 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17840 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17842 $as_echo_n "checking
for $ac_word...
" >&6; }
17843 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17844 $as_echo_n "(cached
) " >&6
17846 if test -n "$RANLIB_FOR_TARGET"; then
17847 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17850 for as_dir in $PATH
17853 test -z "$as_dir" && as_dir=.
17854 for ac_exec_ext in '' $ac_executable_extensions; do
17855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17856 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17857 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17866 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17867 if test -n "$RANLIB_FOR_TARGET"; then
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
17869 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17872 $as_echo "no
" >&6; }
17877 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
17878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17879 set dummy ${ncn_progname}; ac_word=$2
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17881 $as_echo_n "checking
for $ac_word...
" >&6; }
17882 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17883 $as_echo_n "(cached
) " >&6
17885 if test -n "$RANLIB_FOR_TARGET"; then
17886 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17889 for as_dir in $PATH
17892 test -z "$as_dir" && as_dir=.
17893 for ac_exec_ext in '' $ac_executable_extensions; do
17894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17895 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17896 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17905 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17906 if test -n "$RANLIB_FOR_TARGET"; then
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
17908 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17911 $as_echo "no
" >&6; }
17916 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
17920 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
17922 if test $build = $target ; then
17923 RANLIB_FOR_TARGET="$2"
17925 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
17928 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
17932 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17938 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17939 if test -n "$with_build_time_tools"; then
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
17941 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
17942 if test -x $with_build_time_tools/readelf; then
17943 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
17944 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
17946 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17949 $as_echo "no
" >&6; }
17951 elif test $build != $host && test $have_gcc_for_target = yes; then
17952 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
17953 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
17954 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17957 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17958 # Extract the first word of "readelf
", so it can be a program name with args.
17959 set dummy readelf; ac_word=$2
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17961 $as_echo_n "checking
for $ac_word...
" >&6; }
17962 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
17963 $as_echo_n "(cached
) " >&6
17965 case $READELF_FOR_TARGET in
17967 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
17970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17971 for as_dir in $gcc_cv_tool_dirs
17974 test -z "$as_dir" && as_dir=.
17975 for ac_exec_ext in '' $ac_executable_extensions; do
17976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17977 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17978 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17988 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17989 if test -n "$READELF_FOR_TARGET"; then
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17991 $as_echo "$READELF_FOR_TARGET" >&6; }
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17994 $as_echo "no
" >&6; }
17999 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
18002 if test -n "$READELF_FOR_TARGET"; then
18003 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
18004 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18005 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18008 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18009 for ncn_progname in readelf; do
18010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18011 set dummy ${ncn_progname}; ac_word=$2
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18013 $as_echo_n "checking
for $ac_word...
" >&6; }
18014 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18015 $as_echo_n "(cached
) " >&6
18017 if test -n "$READELF_FOR_TARGET"; then
18018 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18021 for as_dir in $PATH
18024 test -z "$as_dir" && as_dir=.
18025 for ac_exec_ext in '' $ac_executable_extensions; do
18026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18027 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18028 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18037 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18038 if test -n "$READELF_FOR_TARGET"; then
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
18040 $as_echo "$READELF_FOR_TARGET" >&6; }
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18043 $as_echo "no
" >&6; }
18050 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
18051 for ncn_progname in readelf; do
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
18053 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
18054 if test -x $with_build_time_tools/${ncn_progname}; then
18055 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
18057 $as_echo "yes" >&6; }
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18061 $as_echo "no
" >&6; }
18066 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
18067 for ncn_progname in readelf; do
18068 if test -n "$ncn_target_tool_prefix"; then
18069 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18070 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18072 $as_echo_n "checking
for $ac_word...
" >&6; }
18073 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18074 $as_echo_n "(cached
) " >&6
18076 if test -n "$READELF_FOR_TARGET"; then
18077 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18080 for as_dir in $PATH
18083 test -z "$as_dir" && as_dir=.
18084 for ac_exec_ext in '' $ac_executable_extensions; do
18085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18086 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18087 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18096 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18097 if test -n "$READELF_FOR_TARGET"; then
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
18099 $as_echo "$READELF_FOR_TARGET" >&6; }
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18102 $as_echo "no
" >&6; }
18107 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
18108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18109 set dummy ${ncn_progname}; ac_word=$2
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18111 $as_echo_n "checking
for $ac_word...
" >&6; }
18112 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18113 $as_echo_n "(cached
) " >&6
18115 if test -n "$READELF_FOR_TARGET"; then
18116 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18119 for as_dir in $PATH
18122 test -z "$as_dir" && as_dir=.
18123 for ac_exec_ext in '' $ac_executable_extensions; do
18124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18125 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18126 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18135 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18136 if test -n "$READELF_FOR_TARGET"; then
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
18138 $as_echo "$READELF_FOR_TARGET" >&6; }
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18141 $as_echo "no
" >&6; }
18146 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
18150 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
18152 if test $build = $target ; then
18153 READELF_FOR_TARGET="$2"
18155 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
18158 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
18162 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
18168 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18169 if test -n "$with_build_time_tools"; then
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
18171 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
18172 if test -x $with_build_time_tools/strip; then
18173 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
18174 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
18176 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18179 $as_echo "no
" >&6; }
18181 elif test $build != $host && test $have_gcc_for_target = yes; then
18182 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
18183 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
18184 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18187 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18188 # Extract the first word of "strip
", so it can be a program name with args.
18189 set dummy strip; ac_word=$2
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18191 $as_echo_n "checking
for $ac_word...
" >&6; }
18192 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
18193 $as_echo_n "(cached
) " >&6
18195 case $STRIP_FOR_TARGET in
18197 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
18200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18201 for as_dir in $gcc_cv_tool_dirs
18204 test -z "$as_dir" && as_dir=.
18205 for ac_exec_ext in '' $ac_executable_extensions; do
18206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18207 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18208 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18218 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18219 if test -n "$STRIP_FOR_TARGET"; then
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
18221 $as_echo "$STRIP_FOR_TARGET" >&6; }
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18224 $as_echo "no
" >&6; }
18229 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18232 if test -n "$STRIP_FOR_TARGET"; then
18233 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18234 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18235 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18238 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18239 for ncn_progname in strip; do
18240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18241 set dummy ${ncn_progname}; ac_word=$2
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18243 $as_echo_n "checking
for $ac_word...
" >&6; }
18244 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18245 $as_echo_n "(cached
) " >&6
18247 if test -n "$STRIP_FOR_TARGET"; then
18248 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18251 for as_dir in $PATH
18254 test -z "$as_dir" && as_dir=.
18255 for ac_exec_ext in '' $ac_executable_extensions; do
18256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18257 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18258 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18267 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18268 if test -n "$STRIP_FOR_TARGET"; then
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
18270 $as_echo "$STRIP_FOR_TARGET" >&6; }
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18273 $as_echo "no
" >&6; }
18280 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
18281 for ncn_progname in strip; do
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
18283 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
18284 if test -x $with_build_time_tools/${ncn_progname}; then
18285 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
18287 $as_echo "yes" >&6; }
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18291 $as_echo "no
" >&6; }
18296 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
18297 for ncn_progname in strip; do
18298 if test -n "$ncn_target_tool_prefix"; then
18299 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18300 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18302 $as_echo_n "checking
for $ac_word...
" >&6; }
18303 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18304 $as_echo_n "(cached
) " >&6
18306 if test -n "$STRIP_FOR_TARGET"; then
18307 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18310 for as_dir in $PATH
18313 test -z "$as_dir" && as_dir=.
18314 for ac_exec_ext in '' $ac_executable_extensions; do
18315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18316 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18317 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18326 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18327 if test -n "$STRIP_FOR_TARGET"; then
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
18329 $as_echo "$STRIP_FOR_TARGET" >&6; }
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18332 $as_echo "no
" >&6; }
18337 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
18338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18339 set dummy ${ncn_progname}; ac_word=$2
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18341 $as_echo_n "checking
for $ac_word...
" >&6; }
18342 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18343 $as_echo_n "(cached
) " >&6
18345 if test -n "$STRIP_FOR_TARGET"; then
18346 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18349 for as_dir in $PATH
18352 test -z "$as_dir" && as_dir=.
18353 for ac_exec_ext in '' $ac_executable_extensions; do
18354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18355 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18356 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18365 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18366 if test -n "$STRIP_FOR_TARGET"; then
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
18368 $as_echo "$STRIP_FOR_TARGET" >&6; }
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18371 $as_echo "no
" >&6; }
18376 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
18380 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
18382 if test $build = $target ; then
18383 STRIP_FOR_TARGET="$2"
18385 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
18388 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
18392 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18398 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18399 if test -n "$with_build_time_tools"; then
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
18401 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
18402 if test -x $with_build_time_tools/windres; then
18403 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
18404 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
18406 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18409 $as_echo "no
" >&6; }
18411 elif test $build != $host && test $have_gcc_for_target = yes; then
18412 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
18413 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
18414 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18417 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18418 # Extract the first word of "windres
", so it can be a program name with args.
18419 set dummy windres; ac_word=$2
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18421 $as_echo_n "checking
for $ac_word...
" >&6; }
18422 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
18423 $as_echo_n "(cached
) " >&6
18425 case $WINDRES_FOR_TARGET in
18427 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
18430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18431 for as_dir in $gcc_cv_tool_dirs
18434 test -z "$as_dir" && as_dir=.
18435 for ac_exec_ext in '' $ac_executable_extensions; do
18436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18437 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18438 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18448 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18449 if test -n "$WINDRES_FOR_TARGET"; then
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
18451 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18454 $as_echo "no
" >&6; }
18459 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18462 if test -n "$WINDRES_FOR_TARGET"; then
18463 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18464 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18465 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18468 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18469 for ncn_progname in windres; do
18470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18471 set dummy ${ncn_progname}; ac_word=$2
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18473 $as_echo_n "checking
for $ac_word...
" >&6; }
18474 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18475 $as_echo_n "(cached
) " >&6
18477 if test -n "$WINDRES_FOR_TARGET"; then
18478 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18481 for as_dir in $PATH
18484 test -z "$as_dir" && as_dir=.
18485 for ac_exec_ext in '' $ac_executable_extensions; do
18486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18487 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18488 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18497 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18498 if test -n "$WINDRES_FOR_TARGET"; then
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
18500 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18503 $as_echo "no
" >&6; }
18510 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
18511 for ncn_progname in windres; do
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
18513 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
18514 if test -x $with_build_time_tools/${ncn_progname}; then
18515 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
18517 $as_echo "yes" >&6; }
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18521 $as_echo "no
" >&6; }
18526 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18527 for ncn_progname in windres; do
18528 if test -n "$ncn_target_tool_prefix"; then
18529 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18530 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18532 $as_echo_n "checking
for $ac_word...
" >&6; }
18533 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18534 $as_echo_n "(cached
) " >&6
18536 if test -n "$WINDRES_FOR_TARGET"; then
18537 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18540 for as_dir in $PATH
18543 test -z "$as_dir" && as_dir=.
18544 for ac_exec_ext in '' $ac_executable_extensions; do
18545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18546 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18547 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18556 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18557 if test -n "$WINDRES_FOR_TARGET"; then
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
18559 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18562 $as_echo "no
" >&6; }
18567 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
18568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18569 set dummy ${ncn_progname}; ac_word=$2
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18571 $as_echo_n "checking
for $ac_word...
" >&6; }
18572 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18573 $as_echo_n "(cached
) " >&6
18575 if test -n "$WINDRES_FOR_TARGET"; then
18576 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18579 for as_dir in $PATH
18582 test -z "$as_dir" && as_dir=.
18583 for ac_exec_ext in '' $ac_executable_extensions; do
18584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18585 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18586 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18595 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18596 if test -n "$WINDRES_FOR_TARGET"; then
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
18598 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18601 $as_echo "no
" >&6; }
18606 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
18610 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
18612 if test $build = $target ; then
18613 WINDRES_FOR_TARGET="$2"
18615 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
18618 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
18622 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18628 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18629 if test -n "$with_build_time_tools"; then
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
18631 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
18632 if test -x $with_build_time_tools/windmc; then
18633 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
18634 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
18636 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18639 $as_echo "no
" >&6; }
18641 elif test $build != $host && test $have_gcc_for_target = yes; then
18642 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
18643 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
18644 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18647 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18648 # Extract the first word of "windmc
", so it can be a program name with args.
18649 set dummy windmc; ac_word=$2
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18651 $as_echo_n "checking
for $ac_word...
" >&6; }
18652 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
18653 $as_echo_n "(cached
) " >&6
18655 case $WINDMC_FOR_TARGET in
18657 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
18660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18661 for as_dir in $gcc_cv_tool_dirs
18664 test -z "$as_dir" && as_dir=.
18665 for ac_exec_ext in '' $ac_executable_extensions; do
18666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18667 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18668 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18678 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18679 if test -n "$WINDMC_FOR_TARGET"; then
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
18681 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18684 $as_echo "no
" >&6; }
18689 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18692 if test -n "$WINDMC_FOR_TARGET"; then
18693 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18694 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18695 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18698 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18699 for ncn_progname in windmc; do
18700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18701 set dummy ${ncn_progname}; ac_word=$2
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18703 $as_echo_n "checking
for $ac_word...
" >&6; }
18704 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18705 $as_echo_n "(cached
) " >&6
18707 if test -n "$WINDMC_FOR_TARGET"; then
18708 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18711 for as_dir in $PATH
18714 test -z "$as_dir" && as_dir=.
18715 for ac_exec_ext in '' $ac_executable_extensions; do
18716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18717 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18718 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18727 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18728 if test -n "$WINDMC_FOR_TARGET"; then
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
18730 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18733 $as_echo "no
" >&6; }
18740 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
18741 for ncn_progname in windmc; do
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
18743 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
18744 if test -x $with_build_time_tools/${ncn_progname}; then
18745 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
18747 $as_echo "yes" >&6; }
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18751 $as_echo "no
" >&6; }
18756 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18757 for ncn_progname in windmc; do
18758 if test -n "$ncn_target_tool_prefix"; then
18759 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18760 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18762 $as_echo_n "checking
for $ac_word...
" >&6; }
18763 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18764 $as_echo_n "(cached
) " >&6
18766 if test -n "$WINDMC_FOR_TARGET"; then
18767 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18770 for as_dir in $PATH
18773 test -z "$as_dir" && as_dir=.
18774 for ac_exec_ext in '' $ac_executable_extensions; do
18775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18776 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18777 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18786 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18787 if test -n "$WINDMC_FOR_TARGET"; then
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
18789 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18792 $as_echo "no
" >&6; }
18797 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
18798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18799 set dummy ${ncn_progname}; ac_word=$2
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18801 $as_echo_n "checking
for $ac_word...
" >&6; }
18802 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18803 $as_echo_n "(cached
) " >&6
18805 if test -n "$WINDMC_FOR_TARGET"; then
18806 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18809 for as_dir in $PATH
18812 test -z "$as_dir" && as_dir=.
18813 for ac_exec_ext in '' $ac_executable_extensions; do
18814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18815 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18816 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18825 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18826 if test -n "$WINDMC_FOR_TARGET"; then
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
18828 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18831 $as_echo "no
" >&6; }
18836 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
18840 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
18842 if test $build = $target ; then
18843 WINDMC_FOR_TARGET="$2"
18845 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
18848 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
18852 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18856 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
18859 $as_echo_n "checking where to
find the target
ar...
" >&6; }
18860 if test "x
${build}" != "x
${host}" ; then
18861 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
18862 # We already found the complete path
18863 ac_dir=`dirname $AR_FOR_TARGET`
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18865 $as_echo "pre-installed
in $ac_dir" >&6; }
18867 # Canadian cross, just use what we found
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18869 $as_echo "pre-installed
" >&6; }
18873 case " ${configdirs} " in
18878 if test $ok = yes; then
18879 # An in-tree tool is available and we can use it
18880 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18882 $as_echo "just compiled
" >&6; }
18883 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
18884 # We already found the complete path
18885 ac_dir=`dirname $AR_FOR_TARGET`
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18887 $as_echo "pre-installed
in $ac_dir" >&6; }
18888 elif test "x
$target" = "x
$host"; then
18889 # We can use an host tool
18890 AR_FOR_TARGET='$(AR)'
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18892 $as_echo "host tool
" >&6; }
18894 # We need a cross tool
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18896 $as_echo "pre-installed
" >&6; }
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
18901 $as_echo_n "checking where to
find the target as...
" >&6; }
18902 if test "x
${build}" != "x
${host}" ; then
18903 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
18904 # We already found the complete path
18905 ac_dir=`dirname $AS_FOR_TARGET`
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18907 $as_echo "pre-installed
in $ac_dir" >&6; }
18909 # Canadian cross, just use what we found
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18911 $as_echo "pre-installed
" >&6; }
18915 case " ${configdirs} " in
18920 if test $ok = yes; then
18921 # An in-tree tool is available and we can use it
18922 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18924 $as_echo "just compiled
" >&6; }
18925 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
18926 # We already found the complete path
18927 ac_dir=`dirname $AS_FOR_TARGET`
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18929 $as_echo "pre-installed
in $ac_dir" >&6; }
18930 elif test "x
$target" = "x
$host"; then
18931 # We can use an host tool
18932 AS_FOR_TARGET='$(AS)'
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18934 $as_echo "host tool
" >&6; }
18936 # We need a cross tool
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18938 $as_echo "pre-installed
" >&6; }
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
18943 $as_echo_n "checking where to
find the target cc...
" >&6; }
18944 if test "x
${build}" != "x
${host}" ; then
18945 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
18946 # We already found the complete path
18947 ac_dir=`dirname $CC_FOR_TARGET`
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18949 $as_echo "pre-installed
in $ac_dir" >&6; }
18951 # Canadian cross, just use what we found
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18953 $as_echo "pre-installed
" >&6; }
18957 case " ${configdirs} " in
18962 if test $ok = yes; then
18963 # An in-tree tool is available and we can use it
18964 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18966 $as_echo "just compiled
" >&6; }
18967 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
18968 # We already found the complete path
18969 ac_dir=`dirname $CC_FOR_TARGET`
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18971 $as_echo "pre-installed
in $ac_dir" >&6; }
18972 elif test "x
$target" = "x
$host"; then
18973 # We can use an host tool
18974 CC_FOR_TARGET='$(CC)'
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18976 $as_echo "host tool
" >&6; }
18978 # We need a cross tool
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18980 $as_echo "pre-installed
" >&6; }
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
18985 $as_echo_n "checking where to
find the target c
++...
" >&6; }
18986 if test "x
${build}" != "x
${host}" ; then
18987 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
18988 # We already found the complete path
18989 ac_dir=`dirname $CXX_FOR_TARGET`
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18991 $as_echo "pre-installed
in $ac_dir" >&6; }
18993 # Canadian cross, just use what we found
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18995 $as_echo "pre-installed
" >&6; }
18999 case " ${configdirs} " in
19003 case ,${enable_languages}, in
19007 if test $ok = yes; then
19008 # An in-tree tool is available and we can use it
19009 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'
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19011 $as_echo "just compiled
" >&6; }
19012 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
19013 # We already found the complete path
19014 ac_dir=`dirname $CXX_FOR_TARGET`
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19016 $as_echo "pre-installed
in $ac_dir" >&6; }
19017 elif test "x
$target" = "x
$host"; then
19018 # We can use an host tool
19019 CXX_FOR_TARGET='$(CXX)'
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19021 $as_echo "host tool
" >&6; }
19023 # We need a cross tool
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19025 $as_echo "pre-installed
" >&6; }
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
19030 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
19031 if test "x
${build}" != "x
${host}" ; then
19032 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
19033 # We already found the complete path
19034 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19036 $as_echo "pre-installed
in $ac_dir" >&6; }
19038 # Canadian cross, just use what we found
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19040 $as_echo "pre-installed
" >&6; }
19044 case " ${configdirs} " in
19048 case ,${enable_languages}, in
19052 if test $ok = yes; then
19053 # An in-tree tool is available and we can use it
19054 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'
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19056 $as_echo "just compiled
" >&6; }
19057 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
19058 # We already found the complete path
19059 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19061 $as_echo "pre-installed
in $ac_dir" >&6; }
19062 elif test "x
$target" = "x
$host"; then
19063 # We can use an host tool
19064 RAW_CXX_FOR_TARGET='$(CXX)'
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19066 $as_echo "host tool
" >&6; }
19068 # We need a cross tool
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19070 $as_echo "pre-installed
" >&6; }
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
19075 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
19076 if test "x
${build}" != "x
${host}" ; then
19077 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
19078 # We already found the complete path
19079 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19081 $as_echo "pre-installed
in $ac_dir" >&6; }
19083 # Canadian cross, just use what we found
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19085 $as_echo "pre-installed
" >&6; }
19089 case " ${configdirs} " in
19094 if test $ok = yes; then
19095 # An in-tree tool is available and we can use it
19096 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19098 $as_echo "just compiled
" >&6; }
19099 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
19100 # We already found the complete path
19101 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19103 $as_echo "pre-installed
in $ac_dir" >&6; }
19104 elif test "x
$target" = "x
$host"; then
19105 # We can use an host tool
19106 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19108 $as_echo "host tool
" >&6; }
19110 # We need a cross tool
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19112 $as_echo "pre-installed
" >&6; }
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
19117 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
19118 if test "x
${build}" != "x
${host}" ; then
19119 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
19120 # We already found the complete path
19121 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19123 $as_echo "pre-installed
in $ac_dir" >&6; }
19125 # Canadian cross, just use what we found
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19127 $as_echo "pre-installed
" >&6; }
19130 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
19131 # We already found the complete path
19132 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19134 $as_echo "pre-installed
in $ac_dir" >&6; }
19135 elif test "x
$target" = "x
$host"; then
19136 # We can use an host tool
19137 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19139 $as_echo "host tool
" >&6; }
19141 # We need a cross tool
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19143 $as_echo "pre-installed
" >&6; }
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
19148 $as_echo_n "checking where to
find the target gcc...
" >&6; }
19149 if test "x
${build}" != "x
${host}" ; then
19150 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
19151 # We already found the complete path
19152 ac_dir=`dirname $GCC_FOR_TARGET`
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19154 $as_echo "pre-installed
in $ac_dir" >&6; }
19156 # Canadian cross, just use what we found
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19158 $as_echo "pre-installed
" >&6; }
19162 case " ${configdirs} " in
19167 if test $ok = yes; then
19168 # An in-tree tool is available and we can use it
19169 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19171 $as_echo "just compiled
" >&6; }
19172 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
19173 # We already found the complete path
19174 ac_dir=`dirname $GCC_FOR_TARGET`
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19176 $as_echo "pre-installed
in $ac_dir" >&6; }
19177 elif test "x
$target" = "x
$host"; then
19178 # We can use an host tool
19179 GCC_FOR_TARGET='$()'
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19181 $as_echo "host tool
" >&6; }
19183 # We need a cross tool
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19185 $as_echo "pre-installed
" >&6; }
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
19190 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
19191 if test "x
${build}" != "x
${host}" ; then
19192 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
19193 # We already found the complete path
19194 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19196 $as_echo "pre-installed
in $ac_dir" >&6; }
19198 # Canadian cross, just use what we found
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19200 $as_echo "pre-installed
" >&6; }
19204 case " ${configdirs} " in
19208 case ,${enable_languages}, in
19212 if test $ok = yes; then
19213 # An in-tree tool is available and we can use it
19214 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19216 $as_echo "just compiled
" >&6; }
19217 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
19218 # We already found the complete path
19219 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19221 $as_echo "pre-installed
in $ac_dir" >&6; }
19222 elif test "x
$target" = "x
$host"; then
19223 # We can use an host tool
19224 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19226 $as_echo "host tool
" >&6; }
19228 # We need a cross tool
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19230 $as_echo "pre-installed
" >&6; }
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
19235 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
19236 if test "x
${build}" != "x
${host}" ; then
19237 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
19238 # We already found the complete path
19239 ac_dir=`dirname $GOC_FOR_TARGET`
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19241 $as_echo "pre-installed
in $ac_dir" >&6; }
19243 # Canadian cross, just use what we found
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19245 $as_echo "pre-installed
" >&6; }
19249 case " ${configdirs} " in
19253 case ,${enable_languages}, in
19257 if test $ok = yes; then
19258 # An in-tree tool is available and we can use it
19259 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19261 $as_echo "just compiled
" >&6; }
19262 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
19263 # We already found the complete path
19264 ac_dir=`dirname $GOC_FOR_TARGET`
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19266 $as_echo "pre-installed
in $ac_dir" >&6; }
19267 elif test "x
$target" = "x
$host"; then
19268 # We can use an host tool
19269 GOC_FOR_TARGET='$(GOC)'
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19271 $as_echo "host tool
" >&6; }
19273 # We need a cross tool
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19275 $as_echo "pre-installed
" >&6; }
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
19280 $as_echo_n "checking where to
find the target gdc...
" >&6; }
19281 if test "x
${build}" != "x
${host}" ; then
19282 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
19283 # We already found the complete path
19284 ac_dir=`dirname $GDC_FOR_TARGET`
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19286 $as_echo "pre-installed
in $ac_dir" >&6; }
19288 # Canadian cross, just use what we found
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19290 $as_echo "pre-installed
" >&6; }
19294 case " ${configdirs} " in
19298 case ,${enable_languages}, in
19302 if test $ok = yes; then
19303 # An in-tree tool is available and we can use it
19304 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19306 $as_echo "just compiled
" >&6; }
19307 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
19308 # We already found the complete path
19309 ac_dir=`dirname $GDC_FOR_TARGET`
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19311 $as_echo "pre-installed
in $ac_dir" >&6; }
19312 elif test "x
$target" = "x
$host"; then
19313 # We can use an host tool
19314 GDC_FOR_TARGET='$(GDC)'
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19316 $as_echo "host tool
" >&6; }
19318 # We need a cross tool
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19320 $as_echo "pre-installed
" >&6; }
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gm2
" >&5
19325 $as_echo_n "checking where to
find the target gm2...
" >&6; }
19326 if test "x
${build}" != "x
${host}" ; then
19327 if expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
19328 # We already found the complete path
19329 ac_dir=`dirname $GM2_FOR_TARGET`
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19331 $as_echo "pre-installed
in $ac_dir" >&6; }
19333 # Canadian cross, just use what we found
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19335 $as_echo "pre-installed
" >&6; }
19339 case " ${configdirs} " in
19343 case ,${enable_languages}, in
19347 if test $ok = yes; then
19348 # An in-tree tool is available and we can use it
19349 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19351 $as_echo "just compiled
" >&6; }
19352 elif expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
19353 # We already found the complete path
19354 ac_dir=`dirname $GM2_FOR_TARGET`
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19356 $as_echo "pre-installed
in $ac_dir" >&6; }
19357 elif test "x
$target" = "x
$host"; then
19358 # We can use an host tool
19359 GM2_FOR_TARGET='$(GM2)'
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19361 $as_echo "host tool
" >&6; }
19363 # We need a cross tool
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19365 $as_echo "pre-installed
" >&6; }
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
19370 $as_echo_n "checking where to
find the target ld...
" >&6; }
19371 if test "x
${build}" != "x
${host}" ; then
19372 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
19373 # We already found the complete path
19374 ac_dir=`dirname $LD_FOR_TARGET`
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19376 $as_echo "pre-installed
in $ac_dir" >&6; }
19378 # Canadian cross, just use what we found
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19380 $as_echo "pre-installed
" >&6; }
19384 case " ${configdirs} " in
19389 if test $ok = yes; then
19390 # An in-tree tool is available and we can use it
19391 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19393 $as_echo "just compiled
" >&6; }
19394 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
19395 # We already found the complete path
19396 ac_dir=`dirname $LD_FOR_TARGET`
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19398 $as_echo "pre-installed
in $ac_dir" >&6; }
19399 elif test "x
$target" = "x
$host"; then
19400 # We can use an host tool
19401 LD_FOR_TARGET='$(LD)'
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19403 $as_echo "host tool
" >&6; }
19405 # We need a cross tool
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19407 $as_echo "pre-installed
" >&6; }
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
19412 $as_echo_n "checking where to
find the target lipo...
" >&6; }
19413 if test "x
${build}" != "x
${host}" ; then
19414 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
19415 # We already found the complete path
19416 ac_dir=`dirname $LIPO_FOR_TARGET`
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19418 $as_echo "pre-installed
in $ac_dir" >&6; }
19420 # Canadian cross, just use what we found
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19422 $as_echo "pre-installed
" >&6; }
19425 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
19426 # We already found the complete path
19427 ac_dir=`dirname $LIPO_FOR_TARGET`
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19429 $as_echo "pre-installed
in $ac_dir" >&6; }
19430 elif test "x
$target" = "x
$host"; then
19431 # We can use an host tool
19432 LIPO_FOR_TARGET='$(LIPO)'
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19434 $as_echo "host tool
" >&6; }
19436 # We need a cross tool
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19438 $as_echo "pre-installed
" >&6; }
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
19443 $as_echo_n "checking where to
find the target nm...
" >&6; }
19444 if test "x
${build}" != "x
${host}" ; then
19445 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
19446 # We already found the complete path
19447 ac_dir=`dirname $NM_FOR_TARGET`
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19449 $as_echo "pre-installed
in $ac_dir" >&6; }
19451 # Canadian cross, just use what we found
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19453 $as_echo "pre-installed
" >&6; }
19457 case " ${configdirs} " in
19462 if test $ok = yes; then
19463 # An in-tree tool is available and we can use it
19464 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19466 $as_echo "just compiled
" >&6; }
19467 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
19468 # We already found the complete path
19469 ac_dir=`dirname $NM_FOR_TARGET`
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19471 $as_echo "pre-installed
in $ac_dir" >&6; }
19472 elif test "x
$target" = "x
$host"; then
19473 # We can use an host tool
19474 NM_FOR_TARGET='$(NM)'
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19476 $as_echo "host tool
" >&6; }
19478 # We need a cross tool
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19480 $as_echo "pre-installed
" >&6; }
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
19485 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
19486 if test "x
${build}" != "x
${host}" ; then
19487 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
19488 # We already found the complete path
19489 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19491 $as_echo "pre-installed
in $ac_dir" >&6; }
19493 # Canadian cross, just use what we found
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19495 $as_echo "pre-installed
" >&6; }
19499 case " ${configdirs} " in
19504 if test $ok = yes; then
19505 # An in-tree tool is available and we can use it
19506 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19508 $as_echo "just compiled
" >&6; }
19509 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
19510 # We already found the complete path
19511 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19513 $as_echo "pre-installed
in $ac_dir" >&6; }
19514 elif test "x
$target" = "x
$host"; then
19515 # We can use an host tool
19516 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19518 $as_echo "host tool
" >&6; }
19520 # We need a cross tool
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19522 $as_echo "pre-installed
" >&6; }
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
19527 $as_echo_n "checking where to
find the target objdump...
" >&6; }
19528 if test "x
${build}" != "x
${host}" ; then
19529 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
19530 # We already found the complete path
19531 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19533 $as_echo "pre-installed
in $ac_dir" >&6; }
19535 # Canadian cross, just use what we found
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19537 $as_echo "pre-installed
" >&6; }
19541 case " ${configdirs} " in
19546 if test $ok = yes; then
19547 # An in-tree tool is available and we can use it
19548 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19550 $as_echo "just compiled
" >&6; }
19551 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
19552 # We already found the complete path
19553 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19555 $as_echo "pre-installed
in $ac_dir" >&6; }
19556 elif test "x
$target" = "x
$host"; then
19557 # We can use an host tool
19558 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19560 $as_echo "host tool
" >&6; }
19562 # We need a cross tool
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19564 $as_echo "pre-installed
" >&6; }
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
19569 $as_echo_n "checking where to
find the target otool...
" >&6; }
19570 if test "x
${build}" != "x
${host}" ; then
19571 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
19572 # We already found the complete path
19573 ac_dir=`dirname $OTOOL_FOR_TARGET`
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19575 $as_echo "pre-installed
in $ac_dir" >&6; }
19577 # Canadian cross, just use what we found
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19579 $as_echo "pre-installed
" >&6; }
19582 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
19583 # We already found the complete path
19584 ac_dir=`dirname $OTOOL_FOR_TARGET`
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19586 $as_echo "pre-installed
in $ac_dir" >&6; }
19587 elif test "x
$target" = "x
$host"; then
19588 # We can use an host tool
19589 OTOOL_FOR_TARGET='$(OTOOL)'
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19591 $as_echo "host tool
" >&6; }
19593 # We need a cross tool
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19595 $as_echo "pre-installed
" >&6; }
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
19600 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
19601 if test "x
${build}" != "x
${host}" ; then
19602 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
19603 # We already found the complete path
19604 ac_dir=`dirname $RANLIB_FOR_TARGET`
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19606 $as_echo "pre-installed
in $ac_dir" >&6; }
19608 # Canadian cross, just use what we found
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19610 $as_echo "pre-installed
" >&6; }
19614 case " ${configdirs} " in
19619 if test $ok = yes; then
19620 # An in-tree tool is available and we can use it
19621 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19623 $as_echo "just compiled
" >&6; }
19624 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
19625 # We already found the complete path
19626 ac_dir=`dirname $RANLIB_FOR_TARGET`
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19628 $as_echo "pre-installed
in $ac_dir" >&6; }
19629 elif test "x
$target" = "x
$host"; then
19630 # We can use an host tool
19631 RANLIB_FOR_TARGET='$(RANLIB)'
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19633 $as_echo "host tool
" >&6; }
19635 # We need a cross tool
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19637 $as_echo "pre-installed
" >&6; }
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
19642 $as_echo_n "checking where to
find the target readelf...
" >&6; }
19643 if test "x
${build}" != "x
${host}" ; then
19644 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
19645 # We already found the complete path
19646 ac_dir=`dirname $READELF_FOR_TARGET`
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19648 $as_echo "pre-installed
in $ac_dir" >&6; }
19650 # Canadian cross, just use what we found
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19652 $as_echo "pre-installed
" >&6; }
19656 case " ${configdirs} " in
19661 if test $ok = yes; then
19662 # An in-tree tool is available and we can use it
19663 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19665 $as_echo "just compiled
" >&6; }
19666 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
19667 # We already found the complete path
19668 ac_dir=`dirname $READELF_FOR_TARGET`
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19670 $as_echo "pre-installed
in $ac_dir" >&6; }
19671 elif test "x
$target" = "x
$host"; then
19672 # We can use an host tool
19673 READELF_FOR_TARGET='$(READELF)'
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19675 $as_echo "host tool
" >&6; }
19677 # We need a cross tool
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19679 $as_echo "pre-installed
" >&6; }
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
19684 $as_echo_n "checking where to
find the target strip...
" >&6; }
19685 if test "x
${build}" != "x
${host}" ; then
19686 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
19687 # We already found the complete path
19688 ac_dir=`dirname $STRIP_FOR_TARGET`
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19690 $as_echo "pre-installed
in $ac_dir" >&6; }
19692 # Canadian cross, just use what we found
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19694 $as_echo "pre-installed
" >&6; }
19698 case " ${configdirs} " in
19703 if test $ok = yes; then
19704 # An in-tree tool is available and we can use it
19705 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19707 $as_echo "just compiled
" >&6; }
19708 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
19709 # We already found the complete path
19710 ac_dir=`dirname $STRIP_FOR_TARGET`
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19712 $as_echo "pre-installed
in $ac_dir" >&6; }
19713 elif test "x
$target" = "x
$host"; then
19714 # We can use an host tool
19715 STRIP_FOR_TARGET='$(STRIP)'
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19717 $as_echo "host tool
" >&6; }
19719 # We need a cross tool
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19721 $as_echo "pre-installed
" >&6; }
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
19726 $as_echo_n "checking where to
find the target windres...
" >&6; }
19727 if test "x
${build}" != "x
${host}" ; then
19728 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
19729 # We already found the complete path
19730 ac_dir=`dirname $WINDRES_FOR_TARGET`
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19732 $as_echo "pre-installed
in $ac_dir" >&6; }
19734 # Canadian cross, just use what we found
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19736 $as_echo "pre-installed
" >&6; }
19740 case " ${configdirs} " in
19745 if test $ok = yes; then
19746 # An in-tree tool is available and we can use it
19747 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19749 $as_echo "just compiled
" >&6; }
19750 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
19751 # We already found the complete path
19752 ac_dir=`dirname $WINDRES_FOR_TARGET`
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19754 $as_echo "pre-installed
in $ac_dir" >&6; }
19755 elif test "x
$target" = "x
$host"; then
19756 # We can use an host tool
19757 WINDRES_FOR_TARGET='$(WINDRES)'
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19759 $as_echo "host tool
" >&6; }
19761 # We need a cross tool
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19763 $as_echo "pre-installed
" >&6; }
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
19768 $as_echo_n "checking where to
find the target windmc...
" >&6; }
19769 if test "x
${build}" != "x
${host}" ; then
19770 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
19771 # We already found the complete path
19772 ac_dir=`dirname $WINDMC_FOR_TARGET`
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19774 $as_echo "pre-installed
in $ac_dir" >&6; }
19776 # Canadian cross, just use what we found
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19778 $as_echo "pre-installed
" >&6; }
19782 case " ${configdirs} " in
19787 if test $ok = yes; then
19788 # An in-tree tool is available and we can use it
19789 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19791 $as_echo "just compiled
" >&6; }
19792 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
19793 # We already found the complete path
19794 ac_dir=`dirname $WINDMC_FOR_TARGET`
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19796 $as_echo "pre-installed
in $ac_dir" >&6; }
19797 elif test "x
$target" = "x
$host"; then
19798 # We can use an host tool
19799 WINDMC_FOR_TARGET='$(WINDMC)'
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19801 $as_echo "host tool
" >&6; }
19803 # We need a cross tool
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19805 $as_echo "pre-installed
" >&6; }
19813 # Certain tools may need extra flags.
19814 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
19815 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
19816 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
19818 # When building target libraries, except in a Canadian cross, we use
19819 # the same toolchain as the compiler we just built.
19820 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
19821 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
19822 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
19823 if test $host = $build; then
19824 case " $configdirs " in
19826 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
19827 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
19828 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
19838 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
19839 # Check whether --enable-maintainer-mode was given.
19840 if test "${enable_maintainer_mode+set}" = set; then :
19841 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19843 USE_MAINTAINER_MODE=no
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
19847 $as_echo "$USE_MAINTAINER_MODE" >&6; }
19850 if test "$USE_MAINTAINER_MODE" = yes; then
19851 MAINTAINER_MODE_TRUE=
19852 MAINTAINER_MODE_FALSE='#'
19854 MAINTAINER_MODE_TRUE='#'
19855 MAINTAINER_MODE_FALSE=
19857 MAINT=$MAINTAINER_MODE_TRUE
19859 # ---------------------
19860 # GCC bootstrap support
19861 # ---------------------
19863 # Stage specific cflags for build.
19868 yes) stage1_cflags="-g -Wa,-J" ;;
19869 *) stage1_cflags="-g -J" ;;
19875 # Enable --enable-checking in stage1 of the compiler.
19876 # Check whether --enable-stage1-checking was given.
19877 if test "${enable_stage1_checking+set}" = set; then :
19878 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
19880 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
19881 # For --disable-checking or implicit --enable-checking=release, avoid
19882 # setting --enable-checking=gc in the default stage1 checking for LTO
19883 # bootstraps. See PR62077.
19884 case $BUILD_CONFIG in
19886 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
19888 stage1_checking=--enable-checking=yes,types;;
19890 if test "x
$enable_checking" = x && \
19891 test -d ${srcdir}/gcc && \
19892 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
19893 stage1_checking=--enable-checking=yes,types,extra
19896 stage1_checking=--enable-checking=$enable_checking,types
19902 # Enable -Werror in bootstrap stage2 and later.
19903 # Check whether --enable-werror was given.
19904 if test "${enable_werror+set}" = set; then :
19905 enableval=$enable_werror;
19906 case ${enable_werror} in
19907 yes) stage2_werror_flag="--enable-werror-always" ;;
19908 *) stage2_werror_flag="" ;;
19913 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
19914 case $BUILD_CONFIG in
19916 stage2_werror_flag="--enable-werror-always" ;;
19918 stage2_werror_flag="--enable-werror-always" ;;
19927 # Specify what files to not compare during bootstrap.
19929 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
19930 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/M2Version
*"
19931 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/SYSTEM
*"
19932 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2version
*"
19934 hppa*64*-*-hpux*) ;;
19935 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
19939 ac_config_files="$ac_config_files Makefile
"
19941 cat >confcache <<\_ACEOF
19942 # This file is a shell script that caches the results of configure
19943 # tests run on this system so they can be shared between configure
19944 # scripts and configure runs, see configure's option --config-cache.
19945 # It is not useful on other systems. If it contains results you don't
19946 # want to keep, you may remove or edit it.
19948 # config.status only pays attention to the cache file if you give it
19949 # the --recheck option to rerun configure.
19951 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19952 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19953 # following values.
19957 # The following way of writing the cache mishandles newlines in values,
19958 # but we know of no workaround that is simple, portable, and efficient.
19959 # So, we kill variables containing newlines.
19960 # Ultrix sh set writes to stderr and can't be redirected directly,
19961 # and sets the high bit in the cache file unless we assign to the vars.
19963 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19964 eval ac_val=\$$ac_var
19968 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
19969 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
19972 _ | IFS | as_nl) ;; #(
19973 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19974 *) { eval $ac_var=; unset $ac_var;} ;;
19980 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19981 *${as_nl}ac_space=\ *)
19982 # `set' does not quote correctly, so add quotes: double-quote
19983 # substitution turns \\\\ into \\, and sed turns \\ into \.
19986 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
19989 # `set' quotes correctly as required by POSIX, so do not add quotes.
19990 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
19999 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20001 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20003 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20004 if test -w "$cache_file"; then
20005 if test "x
$cache_file" != "x
/dev
/null
"; then
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
20007 $as_echo "$as_me: updating cache
$cache_file" >&6;}
20008 if test ! -f "$cache_file" || test -h "$cache_file"; then
20009 cat confcache >"$cache_file"
20011 case $cache_file in #(
20013 mv -f confcache "$cache_file"$$ &&
20014 mv -f "$cache_file"$$ "$cache_file" ;; #(
20016 mv -f confcache "$cache_file" ;;
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
20022 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
20027 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
20028 # Let make expand exec_prefix.
20029 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
20031 # Transform confdefs.h into DEFS.
20032 # Protect against shell expansion while executing Makefile rules.
20033 # Protect against Makefile macro expansion.
20035 # If the first sed substitution is executed (which looks for macros that
20036 # take arguments), then branch to the quote section. Otherwise,
20037 # look for a macro that doesn't take arguments.
20047 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20049 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20053 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
20066 DEFS=`sed -n "$ac_script" confdefs.h`
20072 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20073 # 1. Remove the extension, and $U if already installed.
20074 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
20075 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20076 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20077 # will be set to the directory where LIBOBJS objects are built.
20078 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20079 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
20081 LIBOBJS=$ac_libobjs
20083 LTLIBOBJS=$ac_ltlibobjs
20087 : "${CONFIG_STATUS=./config.status}"
20089 ac_clean_files_save=$ac_clean_files
20090 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20092 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20094 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20096 # Generated by $as_me.
20097 # Run this file to recreate the current configuration.
20098 # Compiler output produced by configure, useful for debugging
20099 # configure, is in config.log if it exists.
20102 ac_cs_recheck=false
20105 SHELL=\${CONFIG_SHELL-$SHELL}
20108 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20109 ## -------------------- ##
20110 ## M4sh Initialization. ##
20111 ## -------------------- ##
20113 # Be more Bourne compatible
20114 DUALCASE=1; export DUALCASE # for MKS sh
20115 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20118 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20119 # is contrary to our usage. Disable this feature.
20120 alias -g '${1+"$@"}'='"$@"'
20121 setopt NO_GLOB_SUBST
20123 case `(set -o) 2>/dev/null` in #(
20135 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20136 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20137 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
20138 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20139 # Prefer a ksh shell builtin over an external printf program on Solaris,
20140 # but without wasting forks for bash or zsh.
20141 if test -z "$BASH_VERSION$ZSH_VERSION" \
20142 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
20143 as_echo
='print -r --'
20144 as_echo_n
='print -rn --'
20145 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
20146 as_echo
='printf %s\n'
20147 as_echo_n
='printf %s'
20149 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20150 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
20151 as_echo_n
='/usr/ucb/echo -n'
20153 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
20154 as_echo_n_body
='eval
20158 expr "X$arg" : "X\\(.*\\)$as_nl";
20159 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20161 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20163 export as_echo_n_body
20164 as_echo_n
='sh -c $as_echo_n_body as_echo'
20166 export as_echo_body
20167 as_echo
='sh -c $as_echo_body as_echo'
20170 # The user is always right.
20171 if test "${PATH_SEPARATOR+set}" != set; then
20173 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
20174 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
20181 # We need space, tab and new line, in precisely that order. Quoting is
20182 # there to prevent editors from complaining about space-tab.
20183 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20184 # splitting by setting IFS to empty value.)
20187 # Find who we are. Look in the path if we contain no directory separator.
20190 *[\\/]* ) as_myself
=$0 ;;
20191 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20192 for as_dir
in $PATH
20195 test -z "$as_dir" && as_dir
=.
20196 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20202 # We did not find ourselves, most probably we were run as `sh COMMAND'
20203 # in which case we are not to be found in the path.
20204 if test "x$as_myself" = x
; then
20207 if test ! -f "$as_myself"; then
20208 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20212 # Unset variables that we do not need and which cause bugs (e.g. in
20213 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20214 # suppresses any "Segmentation fault" message there. '((' could
20215 # trigger a bug in pdksh 5.2.14.
20216 for as_var
in BASH_ENV ENV MAIL MAILPATH
20217 do eval test x\
${$as_var+set} = xset \
20218 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20231 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20234 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20235 # ----------------------------------------
20236 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20237 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20238 # script with STATUS, using 1 if that was 0.
20241 as_status
=$1; test $as_status -eq 0 && as_status
=1
20243 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20244 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20246 $as_echo "$as_me: error: $2" >&2
20247 as_fn_exit
$as_status
20251 # as_fn_set_status STATUS
20252 # -----------------------
20253 # Set $? to STATUS, without forking.
20254 as_fn_set_status
()
20257 } # as_fn_set_status
20259 # as_fn_exit STATUS
20260 # -----------------
20261 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20265 as_fn_set_status
$1
20271 # Portably unset VAR.
20274 { eval $1=; unset $1;}
20276 as_unset
=as_fn_unset
20277 # as_fn_append VAR VALUE
20278 # ----------------------
20279 # Append the text in VALUE to the end of the definition contained in VAR. Take
20280 # advantage of any shell optimizations that allow amortized linear growth over
20281 # repeated appends, instead of the typical quadratic growth present in naive
20283 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20284 eval 'as_fn_append ()
20295 # as_fn_arith ARG...
20296 # ------------------
20297 # Perform arithmetic evaluation on the ARGs, and store the result in the
20298 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20299 # must be portable across $(()) and expr.
20300 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20301 eval 'as_fn_arith ()
20308 as_val
=`expr "$@" || test $? -eq 1`
20313 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20314 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20320 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20321 as_basename
=basename
20326 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20332 as_me
=`$as_basename -- "$0" ||
20333 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20334 X"$0" : 'X\(//\)$' \| \
20335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20337 sed '/^.*\/\([^/][^/]*\)\/*$/{
20351 # Avoid depending upon Character Ranges.
20352 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20353 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20354 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20355 as_cr_digits
='0123456789'
20356 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20358 ECHO_C
= ECHO_N
= ECHO_T
=
20359 case `echo -n x` in #(((((
20361 case `echo 'xy\c'` in
20362 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20364 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20371 rm -f conf$$ conf$$.exe conf$$.
file
20372 if test -d conf$$.dir
; then
20373 rm -f conf$$.dir
/conf$$.
file
20376 mkdir conf$$.dir
2>/dev
/null
20378 if (echo >conf$$.
file) 2>/dev
/null
; then
20379 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20381 # ... but there are two gotchas:
20382 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20383 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20384 # In both cases, we have to default to `cp -pR'.
20385 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20387 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20395 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20396 rmdir conf$$.dir
2>/dev
/null
20401 # Create "$as_dir" as a directory, including parents if necessary.
20406 -*) as_dir
=.
/$as_dir;;
20408 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20412 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20413 *) as_qdir
=$as_dir;;
20415 as_dirs
="'$as_qdir' $as_dirs"
20416 as_dir
=`$as_dirname -- "$as_dir" ||
20417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20418 X"$as_dir" : 'X\(//\)[^/]' \| \
20419 X"$as_dir" : 'X\(//\)$' \| \
20420 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20421 $as_echo X"$as_dir" |
20422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20426 /^X\(\/\/\)[^/].*/{
20439 test -d "$as_dir" && break
20441 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20442 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20446 if mkdir
-p .
2>/dev
/null
; then
20447 as_mkdir_p
='mkdir -p "$as_dir"'
20449 test -d .
/-p && rmdir .
/-p
20454 # as_fn_executable_p FILE
20455 # -----------------------
20456 # Test if FILE is an executable regular file.
20457 as_fn_executable_p
()
20459 test -f "$1" && test -x "$1"
20460 } # as_fn_executable_p
20461 as_test_x
='test -x'
20462 as_executable_p
=as_fn_executable_p
20464 # Sed expression to map a string onto a valid CPP name.
20465 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20467 # Sed expression to map a string onto a valid variable name.
20468 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20472 ## ----------------------------------- ##
20473 ## Main body of $CONFIG_STATUS script. ##
20474 ## ----------------------------------- ##
20476 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20479 # Save the log message, to keep $0 and so on meaningful, and to
20480 # report actual input values of CONFIG_FILES etc. instead of their
20481 # values after options handling.
20483 This file was extended by $as_me, which was
20484 generated by GNU Autoconf 2.69. Invocation command line was
20486 CONFIG_FILES = $CONFIG_FILES
20487 CONFIG_HEADERS = $CONFIG_HEADERS
20488 CONFIG_LINKS = $CONFIG_LINKS
20489 CONFIG_COMMANDS = $CONFIG_COMMANDS
20492 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20497 case $ac_config_files in *"
20498 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20504 # Files that config.status was made for.
20505 config_files="$ac_config_files"
20509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20511 \`$as_me' instantiates files and other configuration actions
20512 from templates according to the current configuration. Unless the files
20513 and actions are specified as TAGs, all are instantiated by default.
20515 Usage: $0 [OPTION]... [TAG]...
20517 -h, --help print this help, then exit
20518 -V, --version print version number and configuration settings, then exit
20519 --config print configuration, then exit
20520 -q, --quiet, --silent
20521 do not print progress messages
20522 -d, --debug don't remove temporary files
20523 --recheck update $as_me by reconfiguring in the same conditions
20524 --file=FILE[:TEMPLATE]
20525 instantiate the configuration file FILE
20527 Configuration files:
20530 Report bugs to the package provider."
20533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20534 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20537 configured by $0, generated by GNU Autoconf 2.69,
20538 with options \\"\$ac_cs_config\\"
20540 Copyright (C) 2012 Free Software Foundation, Inc.
20541 This config.status script is free software; the Free Software Foundation
20542 gives unlimited permission to copy, distribute and modify it."
20548 test -n "\$AWK" || AWK=awk
20551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20552 # The default lists apply if the user does not specify any file.
20558 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20559 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20563 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20575 # Handling of the options.
20576 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20578 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20579 $as_echo "$ac_cs_version"; exit ;;
20580 --config |
--confi |
--conf |
--con |
--co |
--c )
20581 $as_echo "$ac_cs_config"; exit ;;
20582 --debug |
--debu |
--deb |
--de |
--d |
-d )
20584 --file |
--fil |
--fi |
--f )
20587 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20588 '') as_fn_error $?
"missing file argument" ;;
20590 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20591 ac_need_defaults
=false
;;
20592 --he |
--h |
--help |
--hel |
-h )
20593 $as_echo "$ac_cs_usage"; exit ;;
20594 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20595 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20598 # This is an error.
20599 -*) as_fn_error $?
"unrecognized option: \`$1'
20600 Try \`$0 --help' for more information." ;;
20602 *) as_fn_append ac_config_targets
" $1"
20603 ac_need_defaults
=false
;;
20609 ac_configure_extra_args
=
20611 if $ac_cs_silent; then
20613 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20618 if \$ac_cs_recheck; then
20619 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20621 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20622 CONFIG_SHELL='$SHELL'
20623 export CONFIG_SHELL
20628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20632 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20633 ## Running $as_me. ##
20639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20643 extrasub_build="$extrasub_build"
20644 extrasub_host="$extrasub_host"
20645 extrasub_target="$extrasub_target"
20649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20651 # Handling of arguments.
20652 for ac_config_target
in $ac_config_targets
20654 case $ac_config_target in
20655 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20657 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20662 # If the user did not use the arguments to specify the items to instantiate,
20663 # then the envvar interface is used. Set only those that are not.
20664 # We use the long form for the default assignment because of an extremely
20665 # bizarre bug on SunOS 4.1.3.
20666 if $ac_need_defaults; then
20667 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20670 # Have a temporary directory for convenience. Make it in the build tree
20671 # simply because there is no reason against having it here, and in addition,
20672 # creating and moving files from /tmp can sometimes cause problems.
20673 # Hook for its removal unless debugging.
20674 # Note that there is a small window in which the directory will not be cleaned:
20675 # after its creation but before its name has been assigned to `$tmp'.
20679 trap 'exit_status=$?
20680 : "${ac_tmp:=$tmp}"
20681 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20683 trap 'as_fn_exit 1' 1 2 13 15
20685 # Create a (secure) tmp directory for tmp files.
20688 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20692 tmp
=.
/conf$$
-$RANDOM
20693 (umask 077 && mkdir
"$tmp")
20694 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20697 # Set up the scripts for CONFIG_FILES section.
20698 # No need to generate them if there are no CONFIG_FILES.
20699 # This happens for instance with `./config.status config.h'.
20700 if test -n "$CONFIG_FILES"; then
20702 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20703 ac_cs_awk_getline
=:
20704 ac_cs_awk_pipe_init
=
20705 ac_cs_awk_read_file
='
20706 while ((getline aline < (F[key])) > 0)
20709 ac_cs_awk_pipe_fini
=
20711 ac_cs_awk_getline
=false
20712 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20713 ac_cs_awk_read_file
='
20715 print "cat " F[key] " &&"
20716 '$ac_cs_awk_pipe_init
20717 # The final `:' finishes the AND list.
20718 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20720 ac_cr
=`echo X | tr X '\015'`
20721 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20722 # But we know of no other shell where ac_cr would be empty at this
20723 # point, so we can use a bashism as a fallback.
20724 if test "x$ac_cr" = x
; then
20725 eval ac_cr
=\$
\'\\r
\'
20727 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20728 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20731 ac_cs_awk_cr
=$ac_cr
20734 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20737 # Create commands to substitute file output variables.
20739 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20740 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20741 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20744 } >conf$
$files.sh
&&
20745 . .
/conf$
$files.sh ||
20746 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20747 rm -f conf$
$files.sh
20750 echo "cat >conf$$subs.awk <<_ACEOF" &&
20751 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20753 } >conf$$subs.sh ||
20754 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20755 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20757 for ac_last_try in false false false false false :; do
20758 . ./conf$$subs.sh ||
20759 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20761 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20762 if test $ac_delim_n = $ac_delim_num; then
20764 elif $ac_last_try; then
20765 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20767 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20770 rm -f conf$$subs.sh
20772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20773 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20777 s/^/S["/; s
/!.
*/"]=/
20787 s/\(.\{148\}\)..*/\1/
20789 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20794 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20801 s/\(.\{148\}\)..*/\1/
20803 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20807 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20812 ' <conf$$subs.awk | sed '
20817 ' >>$CONFIG_STATUS || ac_write_fail=1
20818 rm -f conf$$subs.awk
20819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20821 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20822 for (key in S) S_is_set[key] = 1
20824 \$ac_cs_awk_pipe_init
20828 nfields = split(line, field, "@
")
20830 len = length(field[1])
20831 for (i = 2; i < nfields; i++) {
20833 keylen = length(key)
20834 if (S_is_set[key]) {
20836 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20837 len += length(value) + length(field[++i])
20842 if (nfields == 3 && !substed) {
20844 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20845 \$ac_cs_awk_read_file
20851 \$ac_cs_awk_pipe_fini
20854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20855 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20856 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20859 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20860 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20863 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20864 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20865 # trailing colons and then remove the whole line if VPATH becomes empty
20866 # (actually we leave an empty line to preserve line numbers).
20867 if test "x
$srcdir" = x.; then
20868 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20887 fi # test -n "$CONFIG_FILES"
20890 eval set X " :F
$CONFIG_FILES "
20895 :[FHLC]) ac_mode=$ac_tag; continue;;
20897 case $ac_mode$ac_tag in
20899 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
20900 :[FH]-) ac_tag=-:-;;
20901 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20918 -) ac_f="$ac_tmp/stdin";;
20919 *) # Look for the file first in the build tree, then in the source tree
20920 # (if the path is not absolute). The absolute path cannot be DOS-style,
20921 # because $ac_f cannot contain `:'.
20925 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20927 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20929 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
20930 as_fn_append ac_file_inputs " '$ac_f'"
20933 # Let's still pretend it is `configure' which instantiates (i.e., don't
20934 # use $as_me), people would be surprised to read:
20935 # /* config.h. Generated by config.status. */
20936 configure_input='Generated from '`
20937 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20939 if test x"$ac_file" != x-; then
20940 configure_input="$ac_file.
$configure_input"
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
20942 $as_echo "$as_me: creating
$ac_file" >&6;}
20944 # Neutralize special characters interpreted by sed in replacement strings.
20945 case $configure_input in #(
20946 *\&* | *\|* | *\\* )
20947 ac_sed_conf_input=`$as_echo "$configure_input" |
20948 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20949 *) ac_sed_conf_input=$configure_input;;
20953 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
20954 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
20959 ac_dir=`$as_dirname -- "$ac_file" ||
20960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20961 X"$ac_file" : 'X\(//\)[^/]' \| \
20962 X"$ac_file" : 'X\(//\)$' \| \
20963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20964 $as_echo X"$ac_file" |
20965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20969 /^X\(\/\/\)[^/].*/{
20982 as_dir="$ac_dir"; as_fn_mkdir_p
20986 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20988 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20989 # A "..
" for each directory in $ac_dir_suffix.
20990 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20991 case $ac_top_builddir_sub in
20992 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20993 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20996 ac_abs_top_builddir=$ac_pwd
20997 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20998 # for backward compatibility:
20999 ac_top_builddir=$ac_top_build_prefix
21002 .) # We are building in place.
21004 ac_top_srcdir=$ac_top_builddir_sub
21005 ac_abs_top_srcdir=$ac_pwd ;;
21006 [\\/]* | ?:[\\/]* ) # Absolute name.
21007 ac_srcdir=$srcdir$ac_dir_suffix;
21008 ac_top_srcdir=$srcdir
21009 ac_abs_top_srcdir=$srcdir ;;
21010 *) # Relative name.
21011 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21012 ac_top_srcdir=$ac_top_build_prefix$srcdir
21013 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21015 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21025 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21026 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21031 # If the template does not know about datarootdir, expand it.
21032 # FIXME: This hack should be removed a few years after 2.60.
21033 ac_datarootdir_hack=; ac_datarootdir_seen=
21044 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
21045 *datarootdir*) ac_datarootdir_seen=yes;;
21046 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
21048 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
21050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21051 ac_datarootdir_hack='
21052 s&@datadir@&$datadir&g
21053 s&@docdir@&$docdir&g
21054 s&@infodir@&$infodir&g
21055 s&@localedir@&$localedir&g
21056 s&@mandir@&$mandir&g
21057 s&\\\${datarootdir}&$datarootdir&g' ;;
21061 # Neutralize VPATH when `$srcdir' = `.'.
21062 # Shell code in configure.ac might set extrasub.
21063 # FIXME: do we really want to maintain this feature?
21064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21065 ac_sed_extra="$ac_vpsub
21068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21070 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21071 s|@configure_input@|
$ac_sed_conf_input|
;t t
21072 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21073 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21074 s
&@srcdir@
&$ac_srcdir&;t t
21075 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21076 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21077 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21078 s
&@builddir@
&$ac_builddir&;t t
21079 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21080 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21081 s
&@INSTALL@
&$ac_INSTALL&;t t
21082 $ac_datarootdir_hack
21084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21085 if $ac_cs_awk_getline; then
21086 $AWK -f "$ac_tmp/subs.
awk"
21088 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
21090 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21092 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21093 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21095 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21097 which seems to be undefined. Please make sure it is defined" >&5
21098 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21099 which seems to be undefined. Please make sure it is defined" >&2;}
21101 rm -f "$ac_tmp/stdin"
21103 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21104 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21114 case $ac_file$ac_mode in
21115 "Makefile":F) sed "$extrasub_build" Makefile |
21116 sed "$extrasub_host" |
21117 sed "$extrasub_target" > mf$$
21118 mv -f mf$$ Makefile ;;
21126 ac_clean_files=$ac_clean_files_save
21128 test $ac_write_fail = 0 ||
21129 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21132 # configure is writing to config.log, and then calls config.status.
21133 # config.status does its own redirection, appending to config.log.
21134 # Unfortunately, on DOS this fails, as config.log is still kept open
21135 # by configure, so config.status won't be able to
write to it
; its
21136 # output is simply discarded. So we exec the FD to /dev/null,
21137 # effectively closing config.log, so it can be properly (re)opened and
21138 # appended to by config.status. When coming back to configure, we
21139 # need to make the FD available again.
21140 if test "$no_create" != yes; then
21142 ac_config_status_args
=
21143 test "$silent" = yes &&
21144 ac_config_status_args
="$ac_config_status_args --quiet"
21146 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21148 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21149 # would make configure fail if this is the last instruction.
21150 $ac_cs_success || as_fn_exit
1
21152 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21154 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}